eve-hub 0.16.104 → 0.16.105

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.
@@ -7923,38 +7923,38 @@ function isRecursive(inst, stack) {
7923
7923
  if (stack.has(inst)) return true;
7924
7924
  stack.add(inst);
7925
7925
  let result = false;
7926
- const check3 = /* @__PURE__ */ __name((child) => {
7926
+ const check4 = /* @__PURE__ */ __name((child) => {
7927
7927
  if (!result && child?._zod && isRecursive(child, stack)) result = true;
7928
7928
  }, "check");
7929
7929
  const def = inst._zod.def;
7930
7930
  const kind = def.type;
7931
7931
  switch (kind) {
7932
7932
  case "object": {
7933
- for (const key of Reflect.ownKeys(def.shape)) check3(def.shape[key]);
7934
- check3(def.catchall);
7933
+ for (const key of Reflect.ownKeys(def.shape)) check4(def.shape[key]);
7934
+ check4(def.catchall);
7935
7935
  break;
7936
7936
  }
7937
7937
  case "array":
7938
- check3(def.element);
7938
+ check4(def.element);
7939
7939
  break;
7940
7940
  case "tuple":
7941
- for (const el of def.items) check3(el);
7942
- check3(def.rest);
7941
+ for (const el of def.items) check4(el);
7942
+ check4(def.rest);
7943
7943
  break;
7944
7944
  case "record":
7945
7945
  case "map":
7946
- check3(def.keyType);
7947
- check3(def.valueType);
7946
+ check4(def.keyType);
7947
+ check4(def.valueType);
7948
7948
  break;
7949
7949
  case "set":
7950
- check3(def.valueType);
7950
+ check4(def.valueType);
7951
7951
  break;
7952
7952
  case "union":
7953
- for (const el of def.options) check3(el);
7953
+ for (const el of def.options) check4(el);
7954
7954
  break;
7955
7955
  case "intersection":
7956
- check3(def.left);
7957
- check3(def.right);
7956
+ check4(def.left);
7957
+ check4(def.right);
7958
7958
  break;
7959
7959
  case "optional":
7960
7960
  case "nullable":
@@ -7965,19 +7965,19 @@ function isRecursive(inst, stack) {
7965
7965
  case "nonoptional":
7966
7966
  case "promise":
7967
7967
  case "success":
7968
- check3(def.innerType);
7968
+ check4(def.innerType);
7969
7969
  break;
7970
7970
  case "pipe":
7971
- check3(def.in);
7972
- check3(def.out);
7971
+ check4(def.in);
7972
+ check4(def.out);
7973
7973
  break;
7974
7974
  case "function":
7975
- check3(def.input);
7976
- check3(def.output);
7975
+ check4(def.input);
7976
+ check4(def.output);
7977
7977
  break;
7978
7978
  // reading `_zod.innerType` resolves the getter once and caches it
7979
7979
  case "lazy":
7980
- check3(inst._zod.innerType);
7980
+ check4(inst._zod.innerType);
7981
7981
  break;
7982
7982
  // a leaf by choice: `parts` are regex fragments, not data positions
7983
7983
  case "template_literal":
@@ -8009,8 +8009,8 @@ function isRecursive(inst, stack) {
8009
8009
  if (!desc || desc.get) continue;
8010
8010
  const value = desc.value;
8011
8011
  if (!value || typeof value !== "object") continue;
8012
- if (value._zod) check3(value);
8013
- else if (Array.isArray(value)) for (const el of value) check3(el);
8012
+ if (value._zod) check4(value);
8013
+ else if (Array.isArray(value)) for (const el of value) check4(el);
8014
8014
  }
8015
8015
  }
8016
8016
  }
@@ -17158,8 +17158,8 @@ function generateChecks(doc, ctx, schema, accessor) {
17158
17158
  const schemaChecks = schema._zod.def.checks;
17159
17159
  if (!schemaChecks || schemaChecks.length === 0) return accessor;
17160
17160
  let currentAccessor = accessor;
17161
- for (const check3 of schemaChecks) {
17162
- const def = check3._zod.def;
17161
+ for (const check4 of schemaChecks) {
17162
+ const def = check4._zod.def;
17163
17163
  if (def.when && !WHEN_DEFAULTED_CHECKS.has(def.check)) {
17164
17164
  throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
17165
17165
  }
@@ -17207,7 +17207,7 @@ function generateChecks(doc, ctx, schema, accessor) {
17207
17207
  currentAccessor = generateStringFormatCheck(doc, ctx, def, currentAccessor);
17208
17208
  break;
17209
17209
  case "custom":
17210
- currentAccessor = generateCustomRefineCheck(doc, ctx, check3, currentAccessor);
17210
+ currentAccessor = generateCustomRefineCheck(doc, ctx, check4, currentAccessor);
17211
17211
  break;
17212
17212
  case "bigint_format":
17213
17213
  generateBigIntFormatCheck(doc, def, currentAccessor);
@@ -17220,7 +17220,7 @@ function generateChecks(doc, ctx, schema, accessor) {
17220
17220
  break;
17221
17221
  case "overwrite": {
17222
17222
  const newAccessor = newVar(ctx);
17223
- generateOverwriteCheck(doc, ctx, check3, currentAccessor, newAccessor);
17223
+ generateOverwriteCheck(doc, ctx, check4, currentAccessor, newAccessor);
17224
17224
  currentAccessor = newAccessor;
17225
17225
  break;
17226
17226
  }
@@ -17326,8 +17326,8 @@ function generatePropertyCheck(doc, ctx, def, accessor) {
17326
17326
  const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`;
17327
17327
  generateCheck(doc, ctx, def.schema, propAccessor);
17328
17328
  }
17329
- function generateOverwriteCheck(doc, ctx, check3, currentAccessor, newAccessor) {
17330
- const tx = check3._zod.def.tx;
17329
+ function generateOverwriteCheck(doc, ctx, check4, currentAccessor, newAccessor) {
17330
+ const tx = check4._zod.def.tx;
17331
17331
  if (!tx) {
17332
17332
  throw new ZodCompileUnsupportedError("overwrite check without a transform function");
17333
17333
  }
@@ -17343,8 +17343,8 @@ function throwAsync() {
17343
17343
  function pushIssue(issue3) {
17344
17344
  this.issues.push(issue3);
17345
17345
  }
17346
- function generateCustomRefineCheck(doc, ctx, check3, accessor) {
17347
- const def = check3._zod.def;
17346
+ function generateCustomRefineCheck(doc, ctx, check4, accessor) {
17347
+ const def = check4._zod.def;
17348
17348
  if (def.fn) {
17349
17349
  if (isAsyncFunction(def.fn)) {
17350
17350
  throw new ZodCompileAsyncError("z.compile: async .refine() predicates are not supported");
@@ -17357,11 +17357,11 @@ function generateCustomRefineCheck(doc, ctx, check3, accessor) {
17357
17357
  doc.write(`if (!${resVar}) return INVALID;`);
17358
17358
  return accessor;
17359
17359
  }
17360
- if (check3._zod.check) {
17361
- if (isAsyncFunction(check3._zod.check)) {
17360
+ if (check4._zod.check) {
17361
+ if (isAsyncFunction(check4._zod.check)) {
17362
17362
  throw new ZodCompileAsyncError("z.compile: async .superRefine() / check functions are not supported");
17363
17363
  }
17364
- const checkFn = check3._zod.check;
17364
+ const checkFn = check4._zod.check;
17365
17365
  const helperFn = /* @__PURE__ */ __name((value) => {
17366
17366
  const fakePayload = {
17367
17367
  value,
@@ -22401,8 +22401,8 @@ var init_schemas2 = __esm({
22401
22401
  reg.add(this, meta5);
22402
22402
  return this;
22403
22403
  },
22404
- refine(check3, params) {
22405
- return this.check(refine(check3, params));
22404
+ refine(check4, params) {
22405
+ return this.check(refine(check4, params));
22406
22406
  },
22407
22407
  superRefine(refinement, params) {
22408
22408
  return this.check(superRefine(refinement, params));
@@ -35680,38 +35680,38 @@ function isRecursive2(inst, stack) {
35680
35680
  if (stack.has(inst)) return true;
35681
35681
  stack.add(inst);
35682
35682
  let result = false;
35683
- const check3 = /* @__PURE__ */ __name((child) => {
35683
+ const check4 = /* @__PURE__ */ __name((child) => {
35684
35684
  if (!result && child?._zod && isRecursive2(child, stack)) result = true;
35685
35685
  }, "check");
35686
35686
  const def = inst._zod.def;
35687
35687
  const kind = def.type;
35688
35688
  switch (kind) {
35689
35689
  case "object": {
35690
- for (const key of Reflect.ownKeys(def.shape)) check3(def.shape[key]);
35691
- check3(def.catchall);
35690
+ for (const key of Reflect.ownKeys(def.shape)) check4(def.shape[key]);
35691
+ check4(def.catchall);
35692
35692
  break;
35693
35693
  }
35694
35694
  case "array":
35695
- check3(def.element);
35695
+ check4(def.element);
35696
35696
  break;
35697
35697
  case "tuple":
35698
- for (const el of def.items) check3(el);
35699
- check3(def.rest);
35698
+ for (const el of def.items) check4(el);
35699
+ check4(def.rest);
35700
35700
  break;
35701
35701
  case "record":
35702
35702
  case "map":
35703
- check3(def.keyType);
35704
- check3(def.valueType);
35703
+ check4(def.keyType);
35704
+ check4(def.valueType);
35705
35705
  break;
35706
35706
  case "set":
35707
- check3(def.valueType);
35707
+ check4(def.valueType);
35708
35708
  break;
35709
35709
  case "union":
35710
- for (const el of def.options) check3(el);
35710
+ for (const el of def.options) check4(el);
35711
35711
  break;
35712
35712
  case "intersection":
35713
- check3(def.left);
35714
- check3(def.right);
35713
+ check4(def.left);
35714
+ check4(def.right);
35715
35715
  break;
35716
35716
  case "optional":
35717
35717
  case "nullable":
@@ -35722,19 +35722,19 @@ function isRecursive2(inst, stack) {
35722
35722
  case "nonoptional":
35723
35723
  case "promise":
35724
35724
  case "success":
35725
- check3(def.innerType);
35725
+ check4(def.innerType);
35726
35726
  break;
35727
35727
  case "pipe":
35728
- check3(def.in);
35729
- check3(def.out);
35728
+ check4(def.in);
35729
+ check4(def.out);
35730
35730
  break;
35731
35731
  case "function":
35732
- check3(def.input);
35733
- check3(def.output);
35732
+ check4(def.input);
35733
+ check4(def.output);
35734
35734
  break;
35735
35735
  // reading `_zod.innerType` resolves the getter once and caches it
35736
35736
  case "lazy":
35737
- check3(inst._zod.innerType);
35737
+ check4(inst._zod.innerType);
35738
35738
  break;
35739
35739
  // a leaf by choice: `parts` are regex fragments, not data positions
35740
35740
  case "template_literal":
@@ -35766,8 +35766,8 @@ function isRecursive2(inst, stack) {
35766
35766
  if (!desc || desc.get) continue;
35767
35767
  const value = desc.value;
35768
35768
  if (!value || typeof value !== "object") continue;
35769
- if (value._zod) check3(value);
35770
- else if (Array.isArray(value)) for (const el of value) check3(el);
35769
+ if (value._zod) check4(value);
35770
+ else if (Array.isArray(value)) for (const el of value) check4(el);
35771
35771
  }
35772
35772
  }
35773
35773
  }
@@ -44915,8 +44915,8 @@ function generateChecks2(doc, ctx, schema, accessor) {
44915
44915
  const schemaChecks = schema._zod.def.checks;
44916
44916
  if (!schemaChecks || schemaChecks.length === 0) return accessor;
44917
44917
  let currentAccessor = accessor;
44918
- for (const check3 of schemaChecks) {
44919
- const def = check3._zod.def;
44918
+ for (const check4 of schemaChecks) {
44919
+ const def = check4._zod.def;
44920
44920
  if (def.when && !WHEN_DEFAULTED_CHECKS2.has(def.check)) {
44921
44921
  throw new ZodCompileUnsupportedError2(`check with a custom "when" condition`);
44922
44922
  }
@@ -44964,7 +44964,7 @@ function generateChecks2(doc, ctx, schema, accessor) {
44964
44964
  currentAccessor = generateStringFormatCheck2(doc, ctx, def, currentAccessor);
44965
44965
  break;
44966
44966
  case "custom":
44967
- currentAccessor = generateCustomRefineCheck2(doc, ctx, check3, currentAccessor);
44967
+ currentAccessor = generateCustomRefineCheck2(doc, ctx, check4, currentAccessor);
44968
44968
  break;
44969
44969
  case "bigint_format":
44970
44970
  generateBigIntFormatCheck2(doc, def, currentAccessor);
@@ -44977,7 +44977,7 @@ function generateChecks2(doc, ctx, schema, accessor) {
44977
44977
  break;
44978
44978
  case "overwrite": {
44979
44979
  const newAccessor = newVar2(ctx);
44980
- generateOverwriteCheck2(doc, ctx, check3, currentAccessor, newAccessor);
44980
+ generateOverwriteCheck2(doc, ctx, check4, currentAccessor, newAccessor);
44981
44981
  currentAccessor = newAccessor;
44982
44982
  break;
44983
44983
  }
@@ -45083,8 +45083,8 @@ function generatePropertyCheck2(doc, ctx, def, accessor) {
45083
45083
  const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`;
45084
45084
  generateCheck2(doc, ctx, def.schema, propAccessor);
45085
45085
  }
45086
- function generateOverwriteCheck2(doc, ctx, check3, currentAccessor, newAccessor) {
45087
- const tx = check3._zod.def.tx;
45086
+ function generateOverwriteCheck2(doc, ctx, check4, currentAccessor, newAccessor) {
45087
+ const tx = check4._zod.def.tx;
45088
45088
  if (!tx) {
45089
45089
  throw new ZodCompileUnsupportedError2("overwrite check without a transform function");
45090
45090
  }
@@ -45100,8 +45100,8 @@ function throwAsync2() {
45100
45100
  function pushIssue2(issue3) {
45101
45101
  this.issues.push(issue3);
45102
45102
  }
45103
- function generateCustomRefineCheck2(doc, ctx, check3, accessor) {
45104
- const def = check3._zod.def;
45103
+ function generateCustomRefineCheck2(doc, ctx, check4, accessor) {
45104
+ const def = check4._zod.def;
45105
45105
  if (def.fn) {
45106
45106
  if (isAsyncFunction2(def.fn)) {
45107
45107
  throw new ZodCompileAsyncError2("z.compile: async .refine() predicates are not supported");
@@ -45114,11 +45114,11 @@ function generateCustomRefineCheck2(doc, ctx, check3, accessor) {
45114
45114
  doc.write(`if (!${resVar}) return INVALID;`);
45115
45115
  return accessor;
45116
45116
  }
45117
- if (check3._zod.check) {
45118
- if (isAsyncFunction2(check3._zod.check)) {
45117
+ if (check4._zod.check) {
45118
+ if (isAsyncFunction2(check4._zod.check)) {
45119
45119
  throw new ZodCompileAsyncError2("z.compile: async .superRefine() / check functions are not supported");
45120
45120
  }
45121
- const checkFn = check3._zod.check;
45121
+ const checkFn = check4._zod.check;
45122
45122
  const helperFn = /* @__PURE__ */ __name((value) => {
45123
45123
  const fakePayload = {
45124
45124
  value,
@@ -50158,8 +50158,8 @@ var init_schemas4 = __esm({
50158
50158
  reg.add(this, meta5);
50159
50159
  return this;
50160
50160
  },
50161
- refine(check3, params) {
50162
- return this.check(refine2(check3, params));
50161
+ refine(check4, params) {
50162
+ return this.check(refine2(check4, params));
50163
50163
  },
50164
50164
  superRefine(refinement, params) {
50165
50165
  return this.check(superRefine2(refinement, params));
@@ -68237,6 +68237,26 @@ async function provision(workspaceId) {
68237
68237
  __name(provision, "provision");
68238
68238
  provision.workflowId = "workflow//./src/work/provision//provision";
68239
68239
 
68240
+ // src/work/runner-lost.ts
68241
+ async function check3(workspaceId, token, closedAt) {
68242
+ return (await hubSteps()).runnerLost(workspaceId, token, closedAt);
68243
+ }
68244
+ __name(check3, "check");
68245
+ (function(__wf_fn, __wf_id) {
68246
+ var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
68247
+ __wf_reg.set(__wf_id, __wf_fn);
68248
+ __wf_fn.stepId = __wf_id;
68249
+ Object.defineProperty(__wf_fn, "name", {
68250
+ value: "check",
68251
+ configurable: true
68252
+ });
68253
+ })(check3, "step//./src/work/runner-lost//check");
68254
+ async function runnerLost(workspaceId, token, closedAt) {
68255
+ throw new Error("You attempted to execute workflow runnerLost function directly. To start a workflow, use start(runnerLost) from workflow/api");
68256
+ }
68257
+ __name(runnerLost, "runnerLost");
68258
+ runnerLost.workflowId = "workflow//./src/work/runner-lost//runnerLost";
68259
+
68240
68260
  // src/work/stop.ts
68241
68261
  async function cancel(workspaceId) {
68242
68262
  return (await hubSteps()).cancel(workspaceId);
@@ -7,6 +7,7 @@
7
7
  "/home/runner/work/hub/hub/hosted-hub/src/work/deliver.ts",
8
8
  "/home/runner/work/hub/hub/hosted-hub/src/work/follow.ts",
9
9
  "/home/runner/work/hub/hub/hosted-hub/src/work/provision.ts",
10
+ "/home/runner/work/hub/hub/hosted-hub/src/work/runner-lost.ts",
10
11
  "/home/runner/work/hub/hub/hosted-hub/src/work/stop.ts",
11
12
  "/home/runner/work/hub/hub/hosted-hub/src/work/upgrade-workspace.ts",
12
13
  "/home/runner/work/hub/hub/hosted-hub/src/work/upgrade.ts"
@@ -16,6 +17,7 @@
16
17
  "/home/runner/work/hub/hub/hosted-hub/src/work/deliver.ts",
17
18
  "/home/runner/work/hub/hub/hosted-hub/src/work/follow.ts",
18
19
  "/home/runner/work/hub/hub/hosted-hub/src/work/provision.ts",
20
+ "/home/runner/work/hub/hub/hosted-hub/src/work/runner-lost.ts",
19
21
  "/home/runner/work/hub/hub/hosted-hub/src/work/stop.ts",
20
22
  "/home/runner/work/hub/hub/hosted-hub/src/work/upgrade-workspace.ts",
21
23
  "/home/runner/work/hub/hub/hosted-hub/src/work/upgrade.ts"