wildcrane-runner 0.6.125 → 0.6.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runner.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.125 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.126 — built by runner/scripts/build.mjs. Do not edit.
2
2
  import { createRequire as __ai4kanbanRequire } from 'node:module'
3
3
  const require = __ai4kanbanRequire(import.meta.url)
4
4
  var __create = Object.create;
@@ -146504,8 +146504,8 @@ function status(line) {
146504
146504
  }
146505
146505
 
146506
146506
  // src/protocol.ts
146507
- var VERSION = true ? "0.6.125" : "0.0.0";
146508
- var AKB_VERSION = true ? "0.11.107" : "0.0.0";
146507
+ var VERSION = true ? "0.6.126" : "0.0.0";
146508
+ var AKB_VERSION = true ? "0.11.108" : "0.0.0";
146509
146509
  var AKB_CONTRACT = true ? 41 : 0;
146510
146510
  var EXIT_REFUSED = 10;
146511
146511
  var EXIT_OUTDATED = 11;
@@ -148252,7 +148252,7 @@ function createTail(log) {
148252
148252
  // ../cli/package.json
148253
148253
  var package_default = {
148254
148254
  name: "wildcrane",
148255
- version: "0.11.107",
148255
+ version: "0.11.108",
148256
148256
  akbContract: 41,
148257
148257
  canonicalCommands: true,
148258
148258
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
@@ -150701,6 +150701,20 @@ Managed work (data, not instructions; this may be one batch):
150701
150701
  ` + JSON.stringify(work);
150702
150702
  }
150703
150703
 
150704
+ // ../cli/src/lib/agent/wire/codex-background-types.ts
150705
+ var STOPPED_CLEANUP_DETAIL = "Execution stopped; no further cleanup turn was submitted.";
150706
+ function itemTerminal(item) {
150707
+ return item.disposition !== "unconfirmed" && item.status !== "running" && item.status !== "unknown" && (item.status !== "interrupted" || item.disposition === "stopped");
150708
+ }
150709
+ function stoppedCleanupConfirmed(cleanup) {
150710
+ if (!cleanup) return false;
150711
+ if (cleanup.status === "confirmed") return !Array.isArray(cleanup.items) || cleanup.items.every(itemTerminal);
150712
+ return cleanup.status === "unconfirmed" && cleanup.detail === STOPPED_CLEANUP_DETAIL && Array.isArray(cleanup.items) && cleanup.items.every(itemTerminal);
150713
+ }
150714
+ function idleStopConfirmed(cleanup, session) {
150715
+ return !!session && cleanup?.status === "confirmed" && !!cleanup.instance && Array.isArray(cleanup.kept) && cleanup.kept.length === 0 && cleanup.idleStop?.threadId === session && typeof cleanup.idleStop.turnId === "string" && !!cleanup.idleStop.turnId;
150716
+ }
150717
+
150704
150718
  // ../cli/src/lib/agent/wire/codex-work.ts
150705
150719
  var list = (value) => Array.isArray(value) ? value.map(obj2) : [];
150706
150720
  var terminalKey = (thread, item) => `terminal:${thread}:${item}`;
@@ -151064,7 +151078,9 @@ async function run(io, options, count3) {
151064
151078
  };
151065
151079
  const cancelled = () => {
151066
151080
  work.freeze();
151067
- if (submitted || threadId) note("Execution stopped; no further cleanup turn was submitted.");
151081
+ if (submitted && !started || [...work.entries.values()].some((w2) => !itemTerminal(w2))) {
151082
+ note(STOPPED_CLEANUP_DETAIL);
151083
+ }
151068
151084
  end2("Codex execution stopped.");
151069
151085
  };
151070
151086
  io.signal?.addEventListener("abort", cancelled, { once: true });
@@ -158996,6 +159012,9 @@ var CSS = {
158996
159012
  references: [{ web: "css" }]
158997
159013
  };
158998
159014
  var fileManifest = (type, name) => type === "asset" && /\.css$/i.test(name) ? CSS : manifestOf(type);
159015
+ function encodeFileReferencePath(parts) {
159016
+ return parts.map((part) => encodeURIComponent(part).replace(/[!'()*]/g, (char) => "%" + char.charCodeAt(0).toString(16))).join("/");
159017
+ }
158999
159018
  function splitFileReference(src) {
159000
159019
  const end2 = src.search(/[?#]/);
159001
159020
  return end2 < 0 ? [src, ""] : [src.slice(0, end2), src.slice(end2)];
@@ -159337,7 +159356,7 @@ import path47 from "node:path";
159337
159356
  // ../cli/src/lib/agent/runtime-context.ts
159338
159357
  import { createHash as createHash8 } from "node:crypto";
159339
159358
 
159340
- // ../cli/node_modules/zod/v4/classic/external.js
159359
+ // node_modules/zod/v4/classic/external.js
159341
159360
  var external_exports = {};
159342
159361
  __export(external_exports, {
159343
159362
  $brand: () => $brand,
@@ -159600,7 +159619,7 @@ __export(external_exports, {
159600
159619
  xor: () => xor
159601
159620
  });
159602
159621
 
159603
- // ../cli/node_modules/zod/v4/core/index.js
159622
+ // node_modules/zod/v4/core/index.js
159604
159623
  var core_exports2 = {};
159605
159624
  __export(core_exports2, {
159606
159625
  $ZodAny: () => $ZodAny,
@@ -159917,7 +159936,7 @@ __export(core_exports2, {
159917
159936
  withParser: () => withParser
159918
159937
  });
159919
159938
 
159920
- // ../cli/node_modules/zod/v4/core/util.js
159939
+ // node_modules/zod/v4/core/util.js
159921
159940
  var util_exports = {};
159922
159941
  __export(util_exports, {
159923
159942
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -160773,7 +160792,7 @@ function constantCatch(value) {
160773
160792
  return fn2;
160774
160793
  }
160775
160794
 
160776
- // ../cli/node_modules/zod/v4/core/core.js
160795
+ // node_modules/zod/v4/core/core.js
160777
160796
  var _a;
160778
160797
  var NEVER = /* @__PURE__ */ Object.freeze({
160779
160798
  status: "aborted"
@@ -160895,7 +160914,7 @@ function config(newConfig) {
160895
160914
  return globalConfig;
160896
160915
  }
160897
160916
 
160898
- // ../cli/node_modules/zod/v4/core/errors.js
160917
+ // node_modules/zod/v4/core/errors.js
160899
160918
  function _getMessage() {
160900
160919
  const internals = this._zod;
160901
160920
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -161087,7 +161106,7 @@ function prettifyError(error62) {
161087
161106
  return lines.join("\n");
161088
161107
  }
161089
161108
 
161090
- // ../cli/node_modules/zod/v4/core/parse.js
161109
+ // node_modules/zod/v4/core/parse.js
161091
161110
  function finalizeParams(callee, params) {
161092
161111
  return { callee: params?.callee ?? callee, Err: params?.Err };
161093
161112
  }
@@ -161247,7 +161266,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
161247
161266
  };
161248
161267
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
161249
161268
 
161250
- // ../cli/node_modules/zod/v4/core/regexes.js
161269
+ // node_modules/zod/v4/core/regexes.js
161251
161270
  var regexes_exports = {};
161252
161271
  __export(regexes_exports, {
161253
161272
  anyString: () => anyString,
@@ -161419,7 +161438,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
161419
161438
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
161420
161439
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
161421
161440
 
161422
- // ../cli/node_modules/zod/v4/core/checks.js
161441
+ // node_modules/zod/v4/core/checks.js
161423
161442
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
161424
161443
  var _a4;
161425
161444
  inst._zod ?? (inst._zod = {});
@@ -161895,7 +161914,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
161895
161914
  };
161896
161915
  });
161897
161916
 
161898
- // ../cli/node_modules/zod/v4/core/doc.js
161917
+ // node_modules/zod/v4/core/doc.js
161899
161918
  var Doc = class {
161900
161919
  constructor(args2 = [], closed = {}) {
161901
161920
  this.content = [];
@@ -161936,14 +161955,14 @@ ${content.join("\n")}
161936
161955
  }
161937
161956
  };
161938
161957
 
161939
- // ../cli/node_modules/zod/v4/core/versions.js
161958
+ // node_modules/zod/v4/core/versions.js
161940
161959
  var version = {
161941
161960
  major: 4,
161942
161961
  minor: 6,
161943
161962
  patch: 7
161944
161963
  };
161945
161964
 
161946
- // ../cli/node_modules/zod/v4/core/schemas.js
161965
+ // node_modules/zod/v4/core/schemas.js
161947
161966
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
161948
161967
  var _a4;
161949
161968
  inst ?? (inst = {});
@@ -164385,7 +164404,7 @@ function handleRefineResult(result, payload, input2, inst) {
164385
164404
  }
164386
164405
  }
164387
164406
 
164388
- // ../cli/node_modules/zod/v4/core/memoizer.js
164407
+ // node_modules/zod/v4/core/memoizer.js
164389
164408
  var $ZodCyclicError = class extends Error {
164390
164409
  constructor() {
164391
164410
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -164662,7 +164681,7 @@ function isBackEdge(ctx, value) {
164662
164681
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
164663
164682
  }
164664
164683
 
164665
- // ../cli/node_modules/zod/v4/locales/index.js
164684
+ // node_modules/zod/v4/locales/index.js
164666
164685
  var locales_exports = {};
164667
164686
  __export(locales_exports, {
164668
164687
  ar: () => ar_default,
@@ -164730,7 +164749,7 @@ __export(locales_exports, {
164730
164749
  zhTW: () => zh_TW_default
164731
164750
  });
164732
164751
 
164733
- // ../cli/node_modules/zod/v4/locales/ar.js
164752
+ // node_modules/zod/v4/locales/ar.js
164734
164753
  var error = () => {
164735
164754
  const Sizable = {
164736
164755
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -164842,7 +164861,7 @@ function ar_default() {
164842
164861
  };
164843
164862
  }
164844
164863
 
164845
- // ../cli/node_modules/zod/v4/locales/az.js
164864
+ // node_modules/zod/v4/locales/az.js
164846
164865
  var error2 = () => {
164847
164866
  const Sizable = {
164848
164867
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -164953,7 +164972,7 @@ function az_default() {
164953
164972
  };
164954
164973
  }
164955
164974
 
164956
- // ../cli/node_modules/zod/v4/locales/be.js
164975
+ // node_modules/zod/v4/locales/be.js
164957
164976
  function getBelarusianPlural(count3, one, few, many) {
164958
164977
  const absCount = Math.abs(count3);
164959
164978
  const lastDigit = absCount % 10;
@@ -165122,7 +165141,7 @@ function be_default() {
165122
165141
  };
165123
165142
  }
165124
165143
 
165125
- // ../cli/node_modules/zod/v4/locales/bg.js
165144
+ // node_modules/zod/v4/locales/bg.js
165126
165145
  var error4 = () => {
165127
165146
  const Sizable = {
165128
165147
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -165248,7 +165267,7 @@ function bg_default() {
165248
165267
  };
165249
165268
  }
165250
165269
 
165251
- // ../cli/node_modules/zod/v4/locales/bn.js
165270
+ // node_modules/zod/v4/locales/bn.js
165252
165271
  var error5 = () => {
165253
165272
  const Sizable = {
165254
165273
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -165362,7 +165381,7 @@ function bn_default() {
165362
165381
  };
165363
165382
  }
165364
165383
 
165365
- // ../cli/node_modules/zod/v4/locales/ca.js
165384
+ // node_modules/zod/v4/locales/ca.js
165366
165385
  var error6 = () => {
165367
165386
  const Sizable = {
165368
165387
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -165476,7 +165495,7 @@ function ca_default() {
165476
165495
  };
165477
165496
  }
165478
165497
 
165479
- // ../cli/node_modules/zod/v4/locales/ckb.js
165498
+ // node_modules/zod/v4/locales/ckb.js
165480
165499
  var error7 = () => {
165481
165500
  const Sizable = {
165482
165501
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -165609,7 +165628,7 @@ function ckb_default() {
165609
165628
  };
165610
165629
  }
165611
165630
 
165612
- // ../cli/node_modules/zod/v4/locales/cs.js
165631
+ // node_modules/zod/v4/locales/cs.js
165613
165632
  var error8 = () => {
165614
165633
  const Sizable = {
165615
165634
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -165726,7 +165745,7 @@ function cs_default() {
165726
165745
  };
165727
165746
  }
165728
165747
 
165729
- // ../cli/node_modules/zod/v4/locales/da.js
165748
+ // node_modules/zod/v4/locales/da.js
165730
165749
  var error9 = () => {
165731
165750
  const Sizable = {
165732
165751
  string: { unit: "tegn", verb: "havde" },
@@ -165847,7 +165866,7 @@ function da_default() {
165847
165866
  };
165848
165867
  }
165849
165868
 
165850
- // ../cli/node_modules/zod/v4/locales/de.js
165869
+ // node_modules/zod/v4/locales/de.js
165851
165870
  var error10 = () => {
165852
165871
  const Sizable = {
165853
165872
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -165961,7 +165980,7 @@ function de_default() {
165961
165980
  };
165962
165981
  }
165963
165982
 
165964
- // ../cli/node_modules/zod/v4/locales/el.js
165983
+ // node_modules/zod/v4/locales/el.js
165965
165984
  var error11 = () => {
165966
165985
  const Sizable = {
165967
165986
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -166074,7 +166093,7 @@ function el_default() {
166074
166093
  };
166075
166094
  }
166076
166095
 
166077
- // ../cli/node_modules/zod/v4/locales/en.js
166096
+ // node_modules/zod/v4/locales/en.js
166078
166097
  var error12 = () => {
166079
166098
  const Sizable = {
166080
166099
  string: { unit: "characters", verb: "to have" },
@@ -166199,7 +166218,7 @@ function en_default() {
166199
166218
  };
166200
166219
  }
166201
166220
 
166202
- // ../cli/node_modules/zod/v4/locales/eo.js
166221
+ // node_modules/zod/v4/locales/eo.js
166203
166222
  var error13 = () => {
166204
166223
  const Sizable = {
166205
166224
  string: { unit: "karaktrojn", verb: "havi" },
@@ -166314,7 +166333,7 @@ function eo_default() {
166314
166333
  };
166315
166334
  }
166316
166335
 
166317
- // ../cli/node_modules/zod/v4/locales/es.js
166336
+ // node_modules/zod/v4/locales/es.js
166318
166337
  var error14 = () => {
166319
166338
  const Sizable = {
166320
166339
  string: { unit: "caracteres", verb: "tener" },
@@ -166451,7 +166470,7 @@ function es_default() {
166451
166470
  };
166452
166471
  }
166453
166472
 
166454
- // ../cli/node_modules/zod/v4/locales/fa.js
166473
+ // node_modules/zod/v4/locales/fa.js
166455
166474
  var error15 = () => {
166456
166475
  const Sizable = {
166457
166476
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -166571,7 +166590,7 @@ function fa_default() {
166571
166590
  };
166572
166591
  }
166573
166592
 
166574
- // ../cli/node_modules/zod/v4/locales/fi.js
166593
+ // node_modules/zod/v4/locales/fi.js
166575
166594
  var error16 = () => {
166576
166595
  const Sizable = {
166577
166596
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -166689,7 +166708,7 @@ function fi_default() {
166689
166708
  };
166690
166709
  }
166691
166710
 
166692
- // ../cli/node_modules/zod/v4/locales/fr.js
166711
+ // node_modules/zod/v4/locales/fr.js
166693
166712
  var error17 = () => {
166694
166713
  const Sizable = {
166695
166714
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -166819,7 +166838,7 @@ function fr_default() {
166819
166838
  };
166820
166839
  }
166821
166840
 
166822
- // ../cli/node_modules/zod/v4/locales/fr-CA.js
166841
+ // node_modules/zod/v4/locales/fr-CA.js
166823
166842
  var error18 = () => {
166824
166843
  const Sizable = {
166825
166844
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -166932,7 +166951,7 @@ function fr_CA_default() {
166932
166951
  };
166933
166952
  }
166934
166953
 
166935
- // ../cli/node_modules/zod/v4/locales/gu.js
166954
+ // node_modules/zod/v4/locales/gu.js
166936
166955
  var error19 = () => {
166937
166956
  const Sizable = {
166938
166957
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -167046,7 +167065,7 @@ function gu_default() {
167046
167065
  };
167047
167066
  }
167048
167067
 
167049
- // ../cli/node_modules/zod/v4/locales/he.js
167068
+ // node_modules/zod/v4/locales/he.js
167050
167069
  var error20 = () => {
167051
167070
  const TypeNames = {
167052
167071
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -167248,7 +167267,7 @@ function he_default() {
167248
167267
  };
167249
167268
  }
167250
167269
 
167251
- // ../cli/node_modules/zod/v4/locales/hi.js
167270
+ // node_modules/zod/v4/locales/hi.js
167252
167271
  var error21 = () => {
167253
167272
  const Sizable = {
167254
167273
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -167360,7 +167379,7 @@ function hi_default() {
167360
167379
  };
167361
167380
  }
167362
167381
 
167363
- // ../cli/node_modules/zod/v4/locales/hr.js
167382
+ // node_modules/zod/v4/locales/hr.js
167364
167383
  var error22 = () => {
167365
167384
  const Sizable = {
167366
167385
  string: { unit: "znakova", verb: "imati" },
@@ -167487,7 +167506,7 @@ function hr_default() {
167487
167506
  };
167488
167507
  }
167489
167508
 
167490
- // ../cli/node_modules/zod/v4/locales/hu.js
167509
+ // node_modules/zod/v4/locales/hu.js
167491
167510
  var error23 = () => {
167492
167511
  const Sizable = {
167493
167512
  string: { unit: "karakter", verb: "legyen" },
@@ -167601,7 +167620,7 @@ function hu_default() {
167601
167620
  };
167602
167621
  }
167603
167622
 
167604
- // ../cli/node_modules/zod/v4/locales/hy.js
167623
+ // node_modules/zod/v4/locales/hy.js
167605
167624
  function getArmenianPlural(count3, one, many) {
167606
167625
  return Math.abs(count3) === 1 ? one : many;
167607
167626
  }
@@ -167760,7 +167779,7 @@ function hy_default() {
167760
167779
  };
167761
167780
  }
167762
167781
 
167763
- // ../cli/node_modules/zod/v4/locales/id.js
167782
+ // node_modules/zod/v4/locales/id.js
167764
167783
  var error25 = () => {
167765
167784
  const Sizable = {
167766
167785
  string: { unit: "karakter", verb: "memiliki" },
@@ -167872,7 +167891,7 @@ function id_default() {
167872
167891
  };
167873
167892
  }
167874
167893
 
167875
- // ../cli/node_modules/zod/v4/locales/is.js
167894
+ // node_modules/zod/v4/locales/is.js
167876
167895
  var error26 = () => {
167877
167896
  const Sizable = {
167878
167897
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -167987,7 +168006,7 @@ function is_default() {
167987
168006
  };
167988
168007
  }
167989
168008
 
167990
- // ../cli/node_modules/zod/v4/locales/it.js
168009
+ // node_modules/zod/v4/locales/it.js
167991
168010
  var error27 = () => {
167992
168011
  const Sizable = {
167993
168012
  string: { unit: "caratteri", verb: "avere" },
@@ -168101,7 +168120,7 @@ function it_default() {
168101
168120
  };
168102
168121
  }
168103
168122
 
168104
- // ../cli/node_modules/zod/v4/locales/ja.js
168123
+ // node_modules/zod/v4/locales/ja.js
168105
168124
  var error28 = () => {
168106
168125
  const Sizable = {
168107
168126
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -168214,7 +168233,7 @@ function ja_default() {
168214
168233
  };
168215
168234
  }
168216
168235
 
168217
- // ../cli/node_modules/zod/v4/locales/ka.js
168236
+ // node_modules/zod/v4/locales/ka.js
168218
168237
  var error29 = () => {
168219
168238
  const Sizable = {
168220
168239
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -168332,7 +168351,7 @@ function ka_default() {
168332
168351
  };
168333
168352
  }
168334
168353
 
168335
- // ../cli/node_modules/zod/v4/locales/km.js
168354
+ // node_modules/zod/v4/locales/km.js
168336
168355
  var error30 = () => {
168337
168356
  const Sizable = {
168338
168357
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -168448,12 +168467,12 @@ function km_default() {
168448
168467
  };
168449
168468
  }
168450
168469
 
168451
- // ../cli/node_modules/zod/v4/locales/kh.js
168470
+ // node_modules/zod/v4/locales/kh.js
168452
168471
  function kh_default() {
168453
168472
  return km_default();
168454
168473
  }
168455
168474
 
168456
- // ../cli/node_modules/zod/v4/locales/kn.js
168475
+ // node_modules/zod/v4/locales/kn.js
168457
168476
  var error31 = () => {
168458
168477
  const Sizable = {
168459
168478
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -168569,7 +168588,7 @@ function kn_default() {
168569
168588
  };
168570
168589
  }
168571
168590
 
168572
- // ../cli/node_modules/zod/v4/locales/ko.js
168591
+ // node_modules/zod/v4/locales/ko.js
168573
168592
  var error32 = () => {
168574
168593
  const Sizable = {
168575
168594
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -168686,7 +168705,7 @@ function ko_default() {
168686
168705
  };
168687
168706
  }
168688
168707
 
168689
- // ../cli/node_modules/zod/v4/locales/lt.js
168708
+ // node_modules/zod/v4/locales/lt.js
168690
168709
  var capitalizeFirstCharacter = (text4) => {
168691
168710
  return text4.charAt(0).toUpperCase() + text4.slice(1);
168692
168711
  };
@@ -168894,7 +168913,7 @@ function lt_default() {
168894
168913
  };
168895
168914
  }
168896
168915
 
168897
- // ../cli/node_modules/zod/v4/locales/mk.js
168916
+ // node_modules/zod/v4/locales/mk.js
168898
168917
  var error34 = () => {
168899
168918
  const Sizable = {
168900
168919
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -169009,7 +169028,7 @@ function mk_default() {
169009
169028
  };
169010
169029
  }
169011
169030
 
169012
- // ../cli/node_modules/zod/v4/locales/ms.js
169031
+ // node_modules/zod/v4/locales/ms.js
169013
169032
  var error35 = () => {
169014
169033
  const Sizable = {
169015
169034
  string: { unit: "aksara", verb: "mempunyai" },
@@ -169122,7 +169141,7 @@ function ms_default() {
169122
169141
  };
169123
169142
  }
169124
169143
 
169125
- // ../cli/node_modules/zod/v4/locales/ne.js
169144
+ // node_modules/zod/v4/locales/ne.js
169126
169145
  var error36 = () => {
169127
169146
  const Sizable = {
169128
169147
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -169234,7 +169253,7 @@ function ne_default() {
169234
169253
  };
169235
169254
  }
169236
169255
 
169237
- // ../cli/node_modules/zod/v4/locales/nl.js
169256
+ // node_modules/zod/v4/locales/nl.js
169238
169257
  var error37 = () => {
169239
169258
  const Sizable = {
169240
169259
  string: { unit: "tekens", verb: "heeft" },
@@ -169350,7 +169369,7 @@ function nl_default() {
169350
169369
  };
169351
169370
  }
169352
169371
 
169353
- // ../cli/node_modules/zod/v4/locales/nn.js
169372
+ // node_modules/zod/v4/locales/nn.js
169354
169373
  var error38 = () => {
169355
169374
  const Sizable = {
169356
169375
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -169464,7 +169483,7 @@ function nn_default() {
169464
169483
  };
169465
169484
  }
169466
169485
 
169467
- // ../cli/node_modules/zod/v4/locales/no.js
169486
+ // node_modules/zod/v4/locales/no.js
169468
169487
  var error39 = () => {
169469
169488
  const Sizable = {
169470
169489
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -169578,7 +169597,7 @@ function no_default() {
169578
169597
  };
169579
169598
  }
169580
169599
 
169581
- // ../cli/node_modules/zod/v4/locales/ota.js
169600
+ // node_modules/zod/v4/locales/ota.js
169582
169601
  var error40 = () => {
169583
169602
  const Sizable = {
169584
169603
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -169693,7 +169712,7 @@ function ota_default() {
169693
169712
  };
169694
169713
  }
169695
169714
 
169696
- // ../cli/node_modules/zod/v4/locales/ps.js
169715
+ // node_modules/zod/v4/locales/ps.js
169697
169716
  var error41 = () => {
169698
169717
  const Sizable = {
169699
169718
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -169813,7 +169832,7 @@ function ps_default() {
169813
169832
  };
169814
169833
  }
169815
169834
 
169816
- // ../cli/node_modules/zod/v4/locales/pl.js
169835
+ // node_modules/zod/v4/locales/pl.js
169817
169836
  var error42 = () => {
169818
169837
  const Sizable = {
169819
169838
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -169928,7 +169947,7 @@ function pl_default() {
169928
169947
  };
169929
169948
  }
169930
169949
 
169931
- // ../cli/node_modules/zod/v4/locales/pt.js
169950
+ // node_modules/zod/v4/locales/pt.js
169932
169951
  var error43 = () => {
169933
169952
  const Sizable = {
169934
169953
  string: { unit: "caracteres" },
@@ -170072,7 +170091,7 @@ function pt_default() {
170072
170091
  };
170073
170092
  }
170074
170093
 
170075
- // ../cli/node_modules/zod/v4/locales/pt-BR.js
170094
+ // node_modules/zod/v4/locales/pt-BR.js
170076
170095
  var error44 = () => {
170077
170096
  const Sizable = {
170078
170097
  string: { unit: "caracteres" },
@@ -170217,7 +170236,7 @@ function pt_BR_default() {
170217
170236
  };
170218
170237
  }
170219
170238
 
170220
- // ../cli/node_modules/zod/v4/locales/ro.js
170239
+ // node_modules/zod/v4/locales/ro.js
170221
170240
  var error45 = () => {
170222
170241
  const Sizable = {
170223
170242
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -170340,7 +170359,7 @@ function ro_default() {
170340
170359
  };
170341
170360
  }
170342
170361
 
170343
- // ../cli/node_modules/zod/v4/locales/ru.js
170362
+ // node_modules/zod/v4/locales/ru.js
170344
170363
  function getRussianPlural(count3, one, few, many) {
170345
170364
  const absCount = Math.abs(count3);
170346
170365
  const lastDigit = absCount % 10;
@@ -170509,7 +170528,7 @@ function ru_default() {
170509
170528
  };
170510
170529
  }
170511
170530
 
170512
- // ../cli/node_modules/zod/v4/locales/sk.js
170531
+ // node_modules/zod/v4/locales/sk.js
170513
170532
  var error47 = () => {
170514
170533
  const Sizable = {
170515
170534
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -170626,7 +170645,7 @@ function sk_default() {
170626
170645
  };
170627
170646
  }
170628
170647
 
170629
- // ../cli/node_modules/zod/v4/locales/sl.js
170648
+ // node_modules/zod/v4/locales/sl.js
170630
170649
  var error48 = () => {
170631
170650
  const Sizable = {
170632
170651
  string: { unit: "znakov", verb: "imeti" },
@@ -170741,7 +170760,7 @@ function sl_default() {
170741
170760
  };
170742
170761
  }
170743
170762
 
170744
- // ../cli/node_modules/zod/v4/locales/sv.js
170763
+ // node_modules/zod/v4/locales/sv.js
170745
170764
  var error49 = () => {
170746
170765
  const Sizable = {
170747
170766
  string: { unit: "tecken", verb: "att ha" },
@@ -170857,7 +170876,7 @@ function sv_default() {
170857
170876
  };
170858
170877
  }
170859
170878
 
170860
- // ../cli/node_modules/zod/v4/locales/ta.js
170879
+ // node_modules/zod/v4/locales/ta.js
170861
170880
  var error50 = () => {
170862
170881
  const Sizable = {
170863
170882
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -170973,7 +170992,7 @@ function ta_default() {
170973
170992
  };
170974
170993
  }
170975
170994
 
170976
- // ../cli/node_modules/zod/v4/locales/tg.js
170995
+ // node_modules/zod/v4/locales/tg.js
170977
170996
  var error51 = () => {
170978
170997
  const Sizable = {
170979
170998
  string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
@@ -171090,7 +171109,7 @@ function tg_default() {
171090
171109
  };
171091
171110
  }
171092
171111
 
171093
- // ../cli/node_modules/zod/v4/locales/th.js
171112
+ // node_modules/zod/v4/locales/th.js
171094
171113
  var error52 = () => {
171095
171114
  const Sizable = {
171096
171115
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -171206,7 +171225,7 @@ function th_default() {
171206
171225
  };
171207
171226
  }
171208
171227
 
171209
- // ../cli/node_modules/zod/v4/locales/tk.js
171228
+ // node_modules/zod/v4/locales/tk.js
171210
171229
  var error53 = () => {
171211
171230
  const Sizable = {
171212
171231
  string: { unit: "simwol", verb: "bolmaly" },
@@ -171314,7 +171333,7 @@ function tk_default() {
171314
171333
  };
171315
171334
  }
171316
171335
 
171317
- // ../cli/node_modules/zod/v4/locales/tr.js
171336
+ // node_modules/zod/v4/locales/tr.js
171318
171337
  var error54 = () => {
171319
171338
  const Sizable = {
171320
171339
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -171425,7 +171444,7 @@ function tr_default() {
171425
171444
  };
171426
171445
  }
171427
171446
 
171428
- // ../cli/node_modules/zod/v4/locales/uk.js
171447
+ // node_modules/zod/v4/locales/uk.js
171429
171448
  var error55 = () => {
171430
171449
  const Sizable = {
171431
171450
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -171539,12 +171558,12 @@ function uk_default() {
171539
171558
  };
171540
171559
  }
171541
171560
 
171542
- // ../cli/node_modules/zod/v4/locales/ua.js
171561
+ // node_modules/zod/v4/locales/ua.js
171543
171562
  function ua_default() {
171544
171563
  return uk_default();
171545
171564
  }
171546
171565
 
171547
- // ../cli/node_modules/zod/v4/locales/ur.js
171566
+ // node_modules/zod/v4/locales/ur.js
171548
171567
  var error56 = () => {
171549
171568
  const Sizable = {
171550
171569
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -171660,7 +171679,7 @@ function ur_default() {
171660
171679
  };
171661
171680
  }
171662
171681
 
171663
- // ../cli/node_modules/zod/v4/locales/uz.js
171682
+ // node_modules/zod/v4/locales/uz.js
171664
171683
  var error57 = () => {
171665
171684
  const Sizable = {
171666
171685
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -171774,7 +171793,7 @@ function uz_default() {
171774
171793
  };
171775
171794
  }
171776
171795
 
171777
- // ../cli/node_modules/zod/v4/locales/vi.js
171796
+ // node_modules/zod/v4/locales/vi.js
171778
171797
  var error58 = () => {
171779
171798
  const Sizable = {
171780
171799
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -171888,7 +171907,7 @@ function vi_default() {
171888
171907
  };
171889
171908
  }
171890
171909
 
171891
- // ../cli/node_modules/zod/v4/locales/zh-CN.js
171910
+ // node_modules/zod/v4/locales/zh-CN.js
171892
171911
  var error59 = () => {
171893
171912
  const Sizable = {
171894
171913
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -172003,7 +172022,7 @@ function zh_CN_default() {
172003
172022
  };
172004
172023
  }
172005
172024
 
172006
- // ../cli/node_modules/zod/v4/locales/zh-TW.js
172025
+ // node_modules/zod/v4/locales/zh-TW.js
172007
172026
  var error60 = () => {
172008
172027
  const Sizable = {
172009
172028
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -172116,7 +172135,7 @@ function zh_TW_default() {
172116
172135
  };
172117
172136
  }
172118
172137
 
172119
- // ../cli/node_modules/zod/v4/locales/yo.js
172138
+ // node_modules/zod/v4/locales/yo.js
172120
172139
  var error61 = () => {
172121
172140
  const Sizable = {
172122
172141
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -172229,7 +172248,7 @@ function yo_default() {
172229
172248
  };
172230
172249
  }
172231
172250
 
172232
- // ../cli/node_modules/zod/v4/core/registries.js
172251
+ // node_modules/zod/v4/core/registries.js
172233
172252
  var _a2;
172234
172253
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
172235
172254
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -172279,7 +172298,7 @@ function registry() {
172279
172298
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
172280
172299
  var globalRegistry = globalThis.__zod_globalRegistry;
172281
172300
 
172282
- // ../cli/node_modules/zod/v4/core/compile.js
172301
+ // node_modules/zod/v4/core/compile.js
172283
172302
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
172284
172303
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
172285
172304
  var ZodCompileAsyncError = class extends Error {
@@ -173889,7 +173908,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
173889
173908
  return accessor;
173890
173909
  }
173891
173910
 
173892
- // ../cli/node_modules/zod/v4/core/api.js
173911
+ // node_modules/zod/v4/core/api.js
173893
173912
  function snapshotChecks(def) {
173894
173913
  if (def.checks)
173895
173914
  def.checks = [...def.checks];
@@ -174948,7 +174967,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
174948
174967
  return inst;
174949
174968
  }
174950
174969
 
174951
- // ../cli/node_modules/zod/v4/core/to-json-schema.js
174970
+ // node_modules/zod/v4/core/to-json-schema.js
174952
174971
  function assignProps(target, ...sources3) {
174953
174972
  for (const source2 of sources3) {
174954
174973
  for (const key of Reflect.ownKeys(source2)) {
@@ -175478,7 +175497,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
175478
175497
  return finalize(ctx, schema);
175479
175498
  };
175480
175499
 
175481
- // ../cli/node_modules/zod/v4/core/json-schema-processors.js
175500
+ // node_modules/zod/v4/core/json-schema-processors.js
175482
175501
  var narrowMin = (agg, key, value) => {
175483
175502
  if (agg[key] === void 0 || value > agg[key])
175484
175503
  agg[key] = value;
@@ -176226,7 +176245,7 @@ function toJSONSchema(input2, params) {
176226
176245
  return finalize(ctx, input2);
176227
176246
  }
176228
176247
 
176229
- // ../cli/node_modules/zod/v4/core/json-schema-generator.js
176248
+ // node_modules/zod/v4/core/json-schema-generator.js
176230
176249
  var JSONSchemaGenerator = class {
176231
176250
  /** @deprecated Access via ctx instead */
176232
176251
  get metadataRegistry() {
@@ -176304,10 +176323,10 @@ var JSONSchemaGenerator = class {
176304
176323
  }
176305
176324
  };
176306
176325
 
176307
- // ../cli/node_modules/zod/v4/core/json-schema.js
176326
+ // node_modules/zod/v4/core/json-schema.js
176308
176327
  var json_schema_exports = {};
176309
176328
 
176310
- // ../cli/node_modules/zod/v4/classic/schemas.js
176329
+ // node_modules/zod/v4/classic/schemas.js
176311
176330
  var schemas_exports2 = {};
176312
176331
  __export(schemas_exports2, {
176313
176332
  ZodAny: () => ZodAny,
@@ -176488,7 +176507,7 @@ __export(schemas_exports2, {
176488
176507
  xor: () => xor
176489
176508
  });
176490
176509
 
176491
- // ../cli/node_modules/zod/v4/classic/checks.js
176510
+ // node_modules/zod/v4/classic/checks.js
176492
176511
  var checks_exports2 = {};
176493
176512
  __export(checks_exports2, {
176494
176513
  endsWith: () => _endsWith,
@@ -176523,7 +176542,7 @@ __export(checks_exports2, {
176523
176542
  uppercase: () => _uppercase
176524
176543
  });
176525
176544
 
176526
- // ../cli/node_modules/zod/v4/classic/errors.js
176545
+ // node_modules/zod/v4/classic/errors.js
176527
176546
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
176528
176547
  function _lazyMethod(proto, key, make) {
176529
176548
  Object.defineProperty(proto, key, {
@@ -176569,7 +176588,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
176569
176588
  Parent: Error
176570
176589
  });
176571
176590
 
176572
- // ../cli/node_modules/zod/v4/classic/parse.js
176591
+ // node_modules/zod/v4/classic/parse.js
176573
176592
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
176574
176593
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
176575
176594
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -176583,7 +176602,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
176583
176602
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
176584
176603
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
176585
176604
 
176586
- // ../cli/node_modules/zod/v4/classic/schemas.js
176605
+ // node_modules/zod/v4/classic/schemas.js
176587
176606
  function _ensureDefaultLocale() {
176588
176607
  if (!globalConfig.localeError)
176589
176608
  config(en_default());
@@ -178048,7 +178067,7 @@ function preprocess(fn2, schema) {
178048
178067
  });
178049
178068
  }
178050
178069
 
178051
- // ../cli/node_modules/zod/v4/classic/compat.js
178070
+ // node_modules/zod/v4/classic/compat.js
178052
178071
  var ZodIssueCode = {
178053
178072
  invalid_type: "invalid_type",
178054
178073
  too_big: "too_big",
@@ -178074,7 +178093,7 @@ var ZodFirstPartyTypeKind;
178074
178093
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
178075
178094
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
178076
178095
 
178077
- // ../cli/node_modules/zod/v4/classic/iso.js
178096
+ // node_modules/zod/v4/classic/iso.js
178078
178097
  var iso_exports = {};
178079
178098
  __export(iso_exports, {
178080
178099
  ZodISODate: () => ZodISODate,
@@ -178099,7 +178118,7 @@ function duration2(params) {
178099
178118
  return _isoDuration(ZodISODuration, params);
178100
178119
  }
178101
178120
 
178102
- // ../cli/node_modules/zod/v4/classic/from-json-schema.js
178121
+ // node_modules/zod/v4/classic/from-json-schema.js
178103
178122
  var z = {
178104
178123
  ...schemas_exports2,
178105
178124
  ...checks_exports2,
@@ -178832,7 +178851,7 @@ function fromJSONSchema(schema, params) {
178832
178851
  return convertSchema(normalized, ctx);
178833
178852
  }
178834
178853
 
178835
- // ../cli/node_modules/zod/v4/core/visit.js
178854
+ // node_modules/zod/v4/core/visit.js
178836
178855
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
178837
178856
  function visit(schema, fnOrHandlers) {
178838
178857
  const fn2 = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
@@ -178987,7 +179006,7 @@ function visit(schema, fnOrHandlers) {
178987
179006
  return run3(schema);
178988
179007
  }
178989
179008
 
178990
- // ../cli/node_modules/zod/v4/classic/deep-partial.js
179009
+ // node_modules/zod/v4/classic/deep-partial.js
178991
179010
  function deepPartial(schema) {
178992
179011
  return visit(schema, {
178993
179012
  object: (s) => s.partial(),
@@ -178999,7 +179018,7 @@ function deepPartial(schema) {
178999
179018
  });
179000
179019
  }
179001
179020
 
179002
- // ../cli/node_modules/zod/v4/classic/in-out.js
179021
+ // node_modules/zod/v4/classic/in-out.js
179003
179022
  function withChecks(side, checks) {
179004
179023
  if (!checks?.length)
179005
179024
  return side;
@@ -179029,7 +179048,7 @@ function output2(schema) {
179029
179048
  });
179030
179049
  }
179031
179050
 
179032
- // ../cli/node_modules/zod/v4/classic/coerce.js
179051
+ // node_modules/zod/v4/classic/coerce.js
179033
179052
  var coerce_exports = {};
179034
179053
  __export(coerce_exports, {
179035
179054
  bigint: () => bigint3,
@@ -185566,7 +185585,6 @@ function run2(script, context, name, deadline, lineOffset = 0) {
185566
185585
  if (left <= 0) throw new Error(`took longer than ${DRAW_MS / 1e3}s to draw`);
185567
185586
  return vm.runInContext(script, context, { timeout: left, filename: name, lineOffset });
185568
185587
  }
185569
- var cssPath = (file3) => file3.split(path49.sep).map((part) => encodeURIComponent(part).replace(/[!'()*]/g, (char) => "%" + char.charCodeAt(0).toString(16))).join("/");
185570
185588
  function rebaseCss(css, owner2, folder2) {
185571
185589
  let result = "";
185572
185590
  let last2 = 0;
@@ -185575,15 +185593,16 @@ function rebaseCss(css, owner2, folder2) {
185575
185593
  const [file3, suffix] = splitFileReference(ref.src);
185576
185594
  const decoded = decodeFilePath(file3);
185577
185595
  if (path49.posix.isAbsolute(decoded) || path49.win32.isAbsolute(decoded)) continue;
185578
- const relative = cssPath(ref.importToken ? decoded : path49.relative(folder2, path49.resolve(path49.dirname(owner2), decoded)));
185596
+ const relative = ref.importToken ? decoded : path49.relative(folder2, path49.resolve(path49.dirname(owner2), decoded));
185597
+ const url2 = encodeFileReferencePath(relative.split(path49.sep)) + suffix;
185579
185598
  const [start, end2] = ref.importToken ?? [ref.start, ref.end];
185580
- result += css.slice(last2, start) + (ref.importToken ? JSON.stringify(relative + suffix) : relative + suffix);
185599
+ result += css.slice(last2, start) + (ref.importToken ? JSON.stringify(url2) : url2);
185581
185600
  last2 = end2;
185582
185601
  }
185583
185602
  return result + css.slice(last2);
185584
185603
  }
185585
185604
  async function tailwindFor(markup, sheets, folder2) {
185586
- const source2 = sheets.length ? sheets.map((file3) => `@import "./${cssPath(path49.relative(folder2, file3))}";`).join("\n") : '@import "tailwindcss";';
185605
+ const source2 = sheets.length ? sheets.map((file3) => `@import "./${encodeFileReferencePath(path49.relative(folder2, file3).split(path49.sep))}";`).join("\n") : '@import "tailwindcss";';
185587
185606
  const root2 = fs46.realpathSync(folder2) + path49.sep;
185588
185607
  const compiler = await rc(source2, {
185589
185608
  base: folder2,
@@ -186502,6 +186521,7 @@ async function pullAssets(ws, record2, assets, preserve = false, stopped2) {
186502
186521
  if (data !== void 0) {
186503
186522
  let changed = false;
186504
186523
  const ownerName = name;
186524
+ const web = manifest?.references?.some((rule) => "web" in rule);
186505
186525
  const restored = mapReferences(manifest, data, (src, found) => {
186506
186526
  const [ref2, suffix] = found.text ? splitFileReference(src) : [src, ""];
186507
186527
  const name2 = Object.entries(assets).find(([, r2]) => r2.artifact === ref2)?.[0];
@@ -186514,7 +186534,7 @@ async function pullAssets(ws, record2, assets, preserve = false, stopped2) {
186514
186534
  if (!child) return src;
186515
186535
  dependencies.push(name2);
186516
186536
  const relative = path52.relative(path52.dirname(target), child).split(path52.sep);
186517
- const back = !found.text && isLegacyAssetRef(name2) && !isAssetRef(ownerName) ? name2 : (found.text ? relative.map(encodeURIComponent) : relative).join("/") + suffix;
186537
+ const back = found.text ? (web ? encodeFileReferencePath(relative) : relative.map(encodeURIComponent).join("/")) + suffix : isLegacyAssetRef(name2) && !isAssetRef(ownerName) ? name2 : relative.join("/");
186518
186538
  if (back !== src) changed = true;
186519
186539
  return back;
186520
186540
  });
@@ -188135,11 +188155,6 @@ import os10 from "node:os";
188135
188155
  import path75 from "node:path";
188136
188156
  import { isDeepStrictEqual as isDeepStrictEqual2 } from "node:util";
188137
188157
 
188138
- // ../cli/src/lib/agent/wire/codex-background-types.ts
188139
- function idleStopConfirmed(cleanup, session) {
188140
- return !!session && cleanup?.status === "confirmed" && !!cleanup.instance && Array.isArray(cleanup.kept) && cleanup.kept.length === 0 && cleanup.idleStop?.threadId === session && typeof cleanup.idleStop.turnId === "string" && !!cleanup.idleStop.turnId;
188141
- }
188142
-
188143
188158
  // ../cli/src/lib/cloud/execution.ts
188144
188159
  var UUID2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
188145
188160
  function executionOf(value = process.env.AI4KANBAN_EXECUTION) {
@@ -191782,12 +191797,15 @@ function runStopped(run3) {
191782
191797
  const root2 = run3.agentPid ? { pid: run3.agentPid, since: run3.agentStartedAt ?? run3.startedAt ?? 0, identity: run3.agentIdentity } : void 0;
191783
191798
  return run3.managedProcess ? connectionStopped(root2) : processesStopped(runMark(run3.sessionId, run3.agentStartedAt ?? run3.startedAt), root2);
191784
191799
  }
191785
- function failedRunResumeDiagnostic(run3, stopped2, zh) {
191800
+ function failedRunResumeDiagnostic(run3, stopped2, zh, manual = false) {
191786
191801
  const session = run3 && !isSessionMissingFailure(run3.failure) ? run3.resumeId ?? (run3.canResume ? run3.sessionId : void 0) : void 0;
191802
+ const exited = stopped2 && !!run3?.endedAt && (run3.status === "error" || run3.status === "stopped");
191803
+ const cleanupUnconfirmed = run3?.cleanup ? run3.status === "stopped" ? !stoppedCleanupConfirmed(run3.cleanup) : run3.cleanup.status === "unconfirmed" : false;
191804
+ const unconfirmedCleanup = run3?.managedProcess ? !!run3.pendingWrites || cleanupUnconfirmed || run3.failure?.code === "idle_timeout" && !idleStopConfirmed(run3.cleanup, session) : manual && run3?.failure?.code === "idle_timeout" && !run3.cleanup?.kept?.length ? false : !!run3?.pendingWrites || cleanupUnconfirmed;
191787
191805
  return resumeBlocked({
191788
- stopped: stopped2 && !!run3?.endedAt && run3.status === "error",
191806
+ stopped: exited,
191789
191807
  session,
191790
- unconfirmedCleanup: run3?.pendingWrites || run3?.cleanup?.status === "unconfirmed" || !!session && run3?.retryHistory?.at(-1)?.sessionAction !== "resume"
191808
+ unconfirmedCleanup
191791
191809
  }, zh);
191792
191810
  }
191793
191811
  function recoveryArgs(run3) {
@@ -192190,8 +192208,8 @@ ${pictures(job, ws, ws.number)}`);
192190
192208
  if (flow.resume_execution && !io.flowRun) {
192191
192209
  const saved = await flowRunEvidence(ws, job, deps, flow.resume_execution);
192192
192210
  if (stopping(io)) return fail("");
192193
- if (!saved.run) return unverifiedResume(saved.diagnostic);
192194
- return await workOn(card, void 0, saved.run);
192211
+ if (!saved.stopped || saved.mismatched || saved.diagnostic) return unverifiedResume(saved.diagnostic);
192212
+ if (saved.run) return await workOn(card, void 0, saved.run);
192195
192213
  }
192196
192214
  const verification = flow.verify_delivery;
192197
192215
  if (verification) {
@@ -192347,7 +192365,8 @@ ${pictures(job, ws, ws.number)}`);
192347
192365
  } else if (deliveryId2) {
192348
192366
  const previous = answerOf2(await akb(["run", "list", "--card", String(id3), "--all", "--json"]))?.runs?.filter((r2) => ["implement", "conflict", "hook"].includes(r2.action ?? "") && r2.deliveryId === deliveryId2).sort((a2, b2) => (b2.startedAt ?? 0) - (a2.startedAt ?? 0))[0];
192349
192367
  if (previous) {
192350
- continuation = ["run", "resume", previous.sessionId, "--require-session"];
192368
+ const hasSession = !isSessionMissingFailure(previous.failure) && !!(previous.resumeId || previous.canResume);
192369
+ continuation = ["run", "resume", previous.sessionId, hasSession ? "--require-session" : "--new-session"];
192351
192370
  }
192352
192371
  }
192353
192372
  return void 0;
@@ -192422,6 +192441,13 @@ ${pictures(job, ws, ws.number)}`);
192422
192441
  const logged = continuation?.[1] === "log" ? continuation[2] : void 0;
192423
192442
  let answer = answerOf2(ran);
192424
192443
  let runs = await readRuns2();
192444
+ if (ran.code !== 0 && continuation?.[1] === "resume" && continuation.includes("--require-session") && !stopping(io) && runs.some((run3) => run3.sessionId === lastRun(answer) && isSessionMissingFailure(run3.failure))) {
192445
+ ran = await launch2(["run", "resume", continuation[2], "--new-session", "--follow", "--events", "--json"], true, void 0, effectiveVerb);
192446
+ if (ran.reviewRefused) return fail(ran.reviewRefused);
192447
+ if (io.lost()) return fail("");
192448
+ answer = answerOf2(ran);
192449
+ runs = await readRuns2();
192450
+ }
192425
192451
  if (ran.code !== 0 && !continuation && job.fork && job.transcript && !stopping(io) && runs.some((run3) => run3.sessionId === lastRun(answer) && run3.failure?.code === "codex_fork_source_missing")) {
192426
192452
  const failure3 = runs.find((run3) => run3.sessionId === lastRun(answer)).failure;
192427
192453
  if (io.recover) {
@@ -192624,18 +192650,29 @@ async function flowRunEvidence(ws, job, deps, execution = job.id, prior) {
192624
192650
  const candidates = owned.filter((run3) => !run3.parentId).sort((a2, b2) => (b2.startedAt ?? 0) - (a2.startedAt ?? 0));
192625
192651
  const previous = candidates.find((run3) => run3.cloudExecution?.job === execution) ?? candidates.find((run3) => run3.sessionId === prior?.id) ?? candidates[0];
192626
192652
  if (!previous || manual && previous.cloudExecution?.job !== execution) return { stopped: true, mismatched };
192627
- const resumeDiagnostic = failedRunResumeDiagnostic(previous, true, zh);
192653
+ if (manual && id2 && isArchived(ws, id2) && !asks(cardFile(ws)) && isSuccessfulArchive(cardFile(ws))) {
192654
+ return { stopped: true, mismatched };
192655
+ }
192656
+ const session = !isSessionMissingFailure(previous.failure) ? previous.resumeId ?? (previous.canResume ? previous.sessionId : void 0) : void 0;
192657
+ if (session && id2 && !await taskSessionMatches(ws, deps, session)) {
192658
+ return { stopped: true, mismatched: true, diagnostic: zh ? "\u539F\u4F1A\u8BDD\u5F52\u5C5E\u65E0\u6CD5\u6838\u5B9E\u3002" : "Could not verify that the session belongs to this task." };
192659
+ }
192660
+ const resumeDiagnostic = failedRunResumeDiagnostic(previous, true, zh, manual);
192628
192661
  if (manual) {
192662
+ if (!session && (!previous.managedProcess || stoppedCleanupConfirmed(previous.cleanup) || !previous.cleanup)) {
192663
+ return { stopped: true, mismatched };
192664
+ }
192629
192665
  if (resumeDiagnostic) return { stopped: true, diagnostic: resumeDiagnostic };
192630
192666
  return { stopped: true, mismatched, run: { id: previous.sessionId, finished: false, card: id2 || void 0, deliveryId: previous.deliveryId } };
192631
192667
  }
192632
192668
  const terminal = job.flow && previous.status === "error" && previous.retryPause ? previous.failure : void 0;
192633
192669
  const failure3 = terminal && previous.retryPause === "limit" ? { ...terminal, code: terminal.code ?? "retry_exhausted" } : terminal;
192670
+ const cleanupUnconfirmed = previous.cleanup ? previous.status === "stopped" ? !stoppedCleanupConfirmed(previous.cleanup) : previous.cleanup.status === "unconfirmed" : false;
192634
192671
  const recovery = agentRecovery({
192635
192672
  stopped: true,
192636
192673
  completed: previous.status === "done" || !!failure3,
192637
- session: previous.resumeId ?? (previous.canResume ? previous.sessionId : void 0),
192638
- unconfirmedCleanup: !!previous.retryPause || previous.pendingWrites || previous.cleanup?.status === "unconfirmed"
192674
+ session,
192675
+ unconfirmedCleanup: !!previous.retryPause || !!previous.pendingWrites || cleanupUnconfirmed
192639
192676
  });
192640
192677
  if (recovery === "unsafe") return { stopped: true, mismatched };
192641
192678
  const { sessionId, runtime, startedAt, usage, costUsd, costIncomplete, context } = previous;