@@ -3,25 +3,43 @@ var __getProtoOf = Object.getPrototypeOf;
33var __defProp = Object.defineProperty;
44var __getOwnPropNames = Object.getOwnPropertyNames;
55var __hasOwnProp = Object.prototype.hasOwnProperty;
6+ function __accessProp(key) {
7+ return this[key];
8+ }
9+ var __toESMCache_node;
10+ var __toESMCache_esm;
611var __toESM = (mod, isNodeMode, target) => {
12+ var canCache = mod != null && typeof mod === "object";
13+ if (canCache) {
14+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
15+ var cached = cache.get(mod);
16+ if (cached)
17+ return cached;
18+ }
719 target = mod != null ? __create(__getProtoOf(mod)) : {};
820 const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
921 for (let key of __getOwnPropNames(mod))
1022 if (!__hasOwnProp.call(to, key))
1123 __defProp(to, key, {
12- get: () => mod[ key] ,
24+ get: __accessProp.bind( mod, key) ,
1325 enumerable: true
1426 });
27+ if (canCache)
28+ cache.set(mod, to);
1529 return to;
1630};
1731var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
32+ var __returnValue = (v) => v;
33+ function __exportSetter(name, newValue) {
34+ this[name] = __returnValue.bind(null, newValue);
35+ }
1836var __export = (target, all) => {
1937 for (var name in all)
2038 __defProp(target, name, {
2139 get: all[name],
2240 enumerable: true,
2341 configurable: true,
24- set: (newValue) => all[name] = () => newValue
42+ set: __exportSetter.bind( all, name)
2543 });
2644};
2745
@@ -3447,7 +3465,7 @@ var require_constants2 = __commonJS((exports2, module2) => {
34473465 }
34483466 })();
34493467 var channel;
3450- var structuredClone = globalThis.structuredClone ?? function structuredClone (value, options = undefined) {
3468+ var structuredClone = globalThis.structuredClone ?? function structuredClone2 (value, options = undefined) {
34513469 if (arguments.length === 0) {
34523470 throw new TypeError("missing argument");
34533471 }
@@ -16372,7 +16390,7 @@ var require_undici = __commonJS((exports2, module2) => {
1637216390 module2.exports.getGlobalDispatcher = getGlobalDispatcher;
1637316391 if (util.nodeMajor > 16 || util.nodeMajor === 16 && util.nodeMinor >= 8) {
1637416392 let fetchImpl = null;
16375- module2.exports.fetch = async function fetch (resource) {
16393+ module2.exports.fetch = async function fetch2 (resource) {
1637616394 if (!fetchImpl) {
1637716395 fetchImpl = require_fetch().fetch;
1637816396 }
@@ -26966,10 +26984,8 @@ class CoderTaskAction {
2696626984 const existingTask = await this.coder.getTask(coderUsername, taskName);
2696726985 if (existingTask) {
2696826986 core.info(`Coder Task: already exists: ${existingTask.name} (id: ${existingTask.id} status: ${existingTask.status})`);
26969- if (existingTask.status !== "active") {
26970- core.info(`Coder Task: waiting for task ${existingTask.name} to become active...`);
26971- await this.coder.waitForTaskActive(coderUsername, existingTask.id, core.debug, 1200000);
26972- }
26987+ core.info(`Coder Task: waiting for task ${existingTask.name} to become active and idle...`);
26988+ await this.coder.waitForTaskActive(coderUsername, existingTask.id, core.debug, 1200000);
2697326989 core.info("Coder Task: Sending prompt to existing task...");
2697426990 await this.coder.sendTaskInput(coderUsername, existingTask.id, this.inputs.coderTaskPrompt);
2697526991 core.info("Coder Task: Prompt sent successfully");
0 commit comments