@vite-hub/workflow 0.5.0 → 0.5.1

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.
Files changed (59) hide show
  1. package/dist/{app-2Y7sBAG6.js → app-DXUHElAz.js} +2 -3
  2. package/dist/{app-BojnC_yf.d.ts → app-wkVFd7m-.d.ts} +0 -2
  3. package/dist/{client-CgBcDlGn.js → client-CbBg4HlH.js} +17 -22
  4. package/dist/{cloudflare-Datj_znU.js → cloudflare-Sgywkm1N.js} +3 -5
  5. package/dist/{cloudflare-env-CGLx7lUd.js → cloudflare-env-DHhzRZOs.js} +2 -4
  6. package/dist/cloudflare-env-lookup-BqomAHN5.d.ts +2 -0
  7. package/dist/{cloudflare-shared-CTqh_a2s.d.ts → cloudflare-shared-B9cY3-jD.d.ts} +1 -3
  8. package/dist/{config-z1651xc2.js → config-CizNRTMi.js} +4 -7
  9. package/dist/definition.d.ts +2 -4
  10. package/dist/definition.js +3 -4
  11. package/dist/{delay-CHN4tv3i.js → delay-CtT3442d.js} +2 -3
  12. package/dist/{dev-recorder-CTN5Fkao.js → dev-recorder-Dltdmlkv.js} +1 -2
  13. package/dist/durability.d.ts +2 -4
  14. package/dist/durability.js +2 -3
  15. package/dist/{error-diagnostics-DMeaFmQD.js → error-diagnostics--2cV_ER1.js} +1 -2
  16. package/dist/{error-diagnostics-C0KyI408.js → error-diagnostics-kKXseq8d.js} +5 -2
  17. package/dist/{errors-D-fNDVg0.d.ts → errors-CJZuvOcx.d.ts} +0 -2
  18. package/dist/{errors-BNxEeeCO.js → errors-CZf7oz4k.js} +1 -2
  19. package/dist/index.d.ts +2 -8
  20. package/dist/index.js +5 -6
  21. package/dist/{inspect-B72iFyj-.js → inspect-NBCAwsxi.js} +1 -2
  22. package/dist/{object-Da1zyPCR.js → object-CAK6UYR5.js} +1 -2
  23. package/dist/{openworkflow-BoaENgh9.d.ts → openworkflow-CdKbUGGa.d.ts} +1 -3
  24. package/dist/{openworkflow-defaults-DDig2M4s.js → openworkflow-defaults-DfQWtSRU.js} +2 -4
  25. package/dist/{openworkflow-storage-Dj9zUAsk.js → openworkflow-storage-Dde_f0es.js} +1 -2
  26. package/dist/openworkflow.js +1 -2
  27. package/dist/{operation-definition-CI2PJGqu.d.ts → operation-definition-CqZkx1Rm.d.ts} +0 -4
  28. package/dist/{operations-CYntpf-T.js → operations-BBTmDm2H.js} +8 -10
  29. package/dist/operations.d.ts +2 -6
  30. package/dist/operations.js +8 -13
  31. package/dist/{out-DxLKolA0.js → out-r9T3bhTE.js} +2933 -2301
  32. package/dist/{rolldown-runtime-B4iAMlE-.js → rolldown-runtime-DYf_mQCB.js} +2 -3
  33. package/dist/{run-error-Ctn50EYz.js → run-error-8p4BtTMv.js} +5 -7
  34. package/dist/{run-failed-gVGo1BaF.js → run-failed-BcSjSU2t.js} +1 -2
  35. package/dist/runtime/cloudflare-runner.d.ts +3 -5
  36. package/dist/runtime/cloudflare-runner.js +6 -7
  37. package/dist/runtime/cloudflare-shared.d.ts +2 -2
  38. package/dist/runtime/cloudflare-shared.js +1 -2
  39. package/dist/runtime/cloudflare-vite.d.ts +5 -7
  40. package/dist/runtime/cloudflare-vite.js +5 -7
  41. package/dist/runtime/dev-runs.d.ts +1 -3
  42. package/dist/runtime/dev-runs.js +2 -3
  43. package/dist/runtime/execute.d.ts +3 -5
  44. package/dist/runtime/execute.js +5 -6
  45. package/dist/runtime/openworkflow-worker.d.ts +3 -4
  46. package/dist/runtime/openworkflow-worker.js +5 -6
  47. package/dist/runtime/openworkflow.d.ts +1 -1
  48. package/dist/runtime/openworkflow.js +8 -9
  49. package/dist/runtime/state.d.ts +2 -4
  50. package/dist/runtime/state.js +4 -5
  51. package/dist/runtime/vercel-vite.d.ts +3 -6
  52. package/dist/runtime/vercel-vite.js +4 -6
  53. package/dist/{signals-C1iolifd.js → signals-BHQdxoJo.js} +2 -3
  54. package/dist/{types-BWPHeugk.d.ts → types-DvYcvbPG.d.ts} +0 -2
  55. package/dist/{vercel-BIkBFrQQ.js → vercel-Cw_Z9-j4.js} +5 -6
  56. package/dist/vite.d.ts +2 -24
  57. package/dist/vite.js +1435 -924
  58. package/package.json +13 -13
  59. package/dist/cloudflare-env-lookup-CfX6wZKb.d.ts +0 -4
@@ -1,8 +1,8 @@
1
- import { n as isRecordOrFunction } from "./object-Da1zyPCR.js";
2
- import { t as internalErrorDiagnostics } from "./error-diagnostics-C0KyI408.js";
1
+ import { n as isRecordOrFunction } from "./object-CAK6UYR5.js";
2
+ import { t as internalErrorDiagnostics } from "./error-diagnostics-kKXseq8d.js";
3
3
  import { toJsonSchema } from "@valibot/to-json-schema";
4
4
  import * as v from "valibot";
5
- //#region ../internal/src/standard-schema.ts
5
+ // ../internal/src/standard-schema.ts
6
6
  function readOwn(value, key) {
7
7
  if (value === null || Object(value) !== value) return;
8
8
  try {
@@ -31,8 +31,7 @@ function standardJsonSchema(schema, direction, target = "draft-2020-12", library
31
31
  return;
32
32
  }
33
33
  }
34
- //#endregion
35
- //#region ../internal/src/valibot.ts
34
+ // ../internal/src/valibot.ts
36
35
  const valibotTargets = /* @__PURE__ */ new Set([
37
36
  "draft-07",
38
37
  "draft-2020-12",
@@ -73,8 +72,7 @@ function withValibotJsonSchema(schema, options = {}) {
73
72
  }
74
73
  };
75
74
  }
76
- //#endregion
77
- //#region ../internal/src/operation-definition.ts
75
+ // ../internal/src/operation-definition.ts
78
76
  const nameFormat = /^[a-z][a-z0-9-]*\.[a-z][a-z0-9-]*$/;
79
77
  const kinds = /* @__PURE__ */ new Set([
80
78
  "read",
@@ -134,16 +132,14 @@ function isSectionId(section) {
134
132
  function operationInputJsonSchema(operation) {
135
133
  return standardJsonSchema(operation.input, "input") ?? { type: "object" };
136
134
  }
137
- //#endregion
138
- //#region ../internal/src/operations.ts
135
+ // ../internal/src/operations.ts
139
136
  /** Align rows of text cells in columns for CLI output. The last column is not padded. */
140
137
  function table(rows) {
141
138
  const widths = rows[0].map((_, column) => Math.max(...rows.map((row) => row[column].length)));
142
139
  return rows.map((row) => row.map((cell, column) => column === row.length - 1 ? cell : cell.padEnd(widths[column])).join(" ")).join("\n");
143
140
  }
144
- //#endregion
145
- //#region src/operations.ts
146
- const runtime = () => import("./operations-CYntpf-T.js");
141
+ // src/operations.ts
142
+ const runtime = () => import("./operations-BBTmDm2H.js");
147
143
  const name = v.pipe(v.string(), v.check((value) => value.trim() !== "", "Name a Workflow."));
148
144
  const runId = v.pipe(v.string(), v.check((value) => value.trim() !== "", "Pass the id of a run."));
149
145
  const maxRequestBytes = 1048576;
@@ -305,5 +301,4 @@ const workflowOperations = [
305
301
  run: async () => (await runtime()).clearWorkflowRuns()
306
302
  })
307
303
  ];
308
- //#endregion
309
304
  export { workflowOperations };