@lunora/workflow 1.0.0-alpha.1 → 1.0.0-alpha.3

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.
@@ -1,5 +1,5 @@
1
1
  import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from 'cloudflare:workers';
2
- import { W as WorkflowDefinition } from "../packem_shared/types.d-CQO_koGe.mjs";
2
+ import { W as WorkflowDefinition } from "../packem_shared/types.d-gNYxuUwu.mjs";
3
3
  import '@lunora/values';
4
4
  /**
5
5
  * Base class for the generated `WorkflowEntrypoint` classes. Applies a
@@ -1,5 +1,5 @@
1
1
  import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from 'cloudflare:workers';
2
- import { W as WorkflowDefinition } from "../packem_shared/types.d-CQO_koGe.js";
2
+ import { W as WorkflowDefinition } from "../packem_shared/types.d-gNYxuUwu.js";
3
3
  import '@lunora/values';
4
4
  /**
5
5
  * Base class for the generated `WorkflowEntrypoint` classes. Applies a
package/dist/do/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { WorkflowEntrypoint } from 'cloudflare:workers';
2
2
  import { NonRetryableError } from 'cloudflare:workflows';
3
- import { convertNonRetryableError } from '../packem_shared/convertNonRetryableError-Dn2dTyBS.mjs';
4
- import { createWorkflowRunContext } from '../packem_shared/createWorkflowLogger-FktqxNLe.mjs';
3
+ import { convertNonRetryableError } from '../packem_shared/NonRetryableError-Dn2dTyBS.mjs';
4
+ import { createWorkflowRunContext } from '../packem_shared/createWorkflowRunContext-DJj_y0fa.mjs';
5
5
 
6
6
  class LunoraWorkflow extends WorkflowEntrypoint {
7
7
  /** The `lunora/workflows.ts` export name, for log correlation. */
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as Workflows, L as LunoraWorkflowsOptions, S as StepArgsValidator, b as StepConfig, c as StepDefinition, d as WorkflowConfig, W as WorkflowDefinition, e as WorkflowInstanceStatus, f as WorkflowLogger, g as WorkflowEventLike, h as WorkflowStepLike, i as WorkflowRunContext, j as WorkflowRunFunction, k as WorkflowRunStepFunction } from "./packem_shared/types.d-CQO_koGe.mjs";
2
- export type { A as ArgsOf, F as FunctionReference, I as InferStepArgs, R as RunFunctionOptions, l as RunStepOptions, m as StepHandler, n as StepRollbackContext, o as StepRollbackHandler, p as StepRunContext, q as WorkflowBindingLike, r as WorkflowCreateOptions, s as WorkflowHandle, t as WorkflowHandler, u as WorkflowInstanceLike, v as WorkflowRollbackContextLike, w as WorkflowRollbackHandlerLike, x as WorkflowStatusResult, y as WorkflowStepConfigLike, z as WorkflowStepContextLike, B as WorkflowStepRollbackOptionsLike } from "./packem_shared/types.d-CQO_koGe.mjs";
1
+ import { a as Workflows, L as LunoraWorkflowsOptions, S as StepArgsValidator, b as StepConfig, c as StepDefinition, d as WorkflowConfig, W as WorkflowDefinition, e as WorkflowInstanceStatus, f as WorkflowEventLike, g as WorkflowStepLike, h as WorkflowRunContext, i as WorkflowLogger, j as WorkflowRunFunction, k as WorkflowRunStepFunction } from "./packem_shared/types.d-gNYxuUwu.mjs";
2
+ export type { A as ArgsOf, F as FunctionReference, I as InferStepArgs, R as RunFunctionOptions, l as RunStepOptions, m as StepHandler, n as StepRollbackContext, o as StepRollbackHandler, p as StepRunContext, q as WorkflowBindingLike, r as WorkflowCreateOptions, s as WorkflowHandle, t as WorkflowHandler, u as WorkflowInstanceLike, v as WorkflowRollbackContextLike, w as WorkflowRollbackHandlerLike, x as WorkflowStatusResult, y as WorkflowStepConfigLike, z as WorkflowStepContextLike, B as WorkflowStepRollbackOptionsLike } from "./packem_shared/types.d-gNYxuUwu.mjs";
3
3
  import '@lunora/values';
4
4
  /** Wiring info for one declared workflow, emitted by codegen into the generated shard. */
5
5
  interface WorkflowBindingSpec {
@@ -209,24 +209,6 @@ interface WorkflowsRestClient {
209
209
  * snake_case payload into the camelCase shapes the studio renders.
210
210
  */
211
211
  declare const createWorkflowsRestClient: (config: WorkflowsRestConfig) => WorkflowsRestClient;
212
- interface RunnerOptions {
213
- /** Worker `env` — read `LUNORA_ORIGIN_URL` + `LUNORA_ADMIN_TOKEN` at call time. */
214
- env: Record<string, unknown>;
215
- /** Injectable fetch (tests); defaults to the global. */
216
- fetchImpl?: typeof fetch;
217
- }
218
- /**
219
- * Build a {@link WorkflowRunFunction} that invokes a Lunora function by POSTing
220
- * to the Worker's `/_lunora/scheduler/dispatch` endpoint — the same path the
221
- * SchedulerDO and the Queues workpool dispatch through — authenticated with the
222
- * admin bearer. The parsed JSON body (the function's return value) is resolved;
223
- * an empty/non-JSON body resolves to `undefined`.
224
- *
225
- * Wrap calls in `ctx.step.do(...)` to make them durable + memoized + retried.
226
- */
227
- declare const createWorkflowRunner: (options: RunnerOptions) => WorkflowRunFunction;
228
- /** Console-backed logger, prefixed with the workflow name for log correlation. */
229
- declare const createWorkflowLogger: (exportName: string) => WorkflowLogger;
230
212
  interface RunContextOptions<Params> {
231
213
  env: Record<string, unknown>;
232
214
  event: WorkflowEventLike<Params>;
@@ -266,4 +248,4 @@ interface RunStepDeps {
266
248
  * converted to the native one and any declared rollback forwarded to Cloudflare.
267
249
  */
268
250
  declare const createRunStep: (deps: RunStepDeps) => WorkflowRunStepFunction;
269
- export { type LunoraWorkflowsOptions, type NativeNonRetryableErrorConstructor, NonRetryableError, type StepArgsValidator, type StepConfig, type StepDefinition, type WorkflowBindingSpec, type WorkflowConfig, type WorkflowDefinition, type WorkflowEventLike, type WorkflowInstanceAction, type WorkflowInstanceDetail, type WorkflowInstancePage, type WorkflowInstanceStatus, type WorkflowInstanceSummary, type WorkflowLogger, type WorkflowRunContext, type WorkflowRunFunction, type WorkflowRunStepFunction, type WorkflowStepDetail, type WorkflowStepLike, type Workflows, type WorkflowsRestClient, type WorkflowsRestConfig, WorkflowsRestError, convertNonRetryableError, createRunStep, createWorkflowContext, createWorkflowLogger, createWorkflowRunContext, createWorkflowRunner, createWorkflows, createWorkflowsRestClient, defineStep, defineWorkflow, isNonRetryableError, isStepDefinition, isWorkflowDefinition, toNativeNonRetryableError, validateStepArgs, workflowBindingName, workflowClassName, workflowDefaultName };
251
+ export { type LunoraWorkflowsOptions, type NativeNonRetryableErrorConstructor, NonRetryableError, type StepArgsValidator, type StepConfig, type StepDefinition, type WorkflowBindingSpec, type WorkflowConfig, type WorkflowDefinition, type WorkflowEventLike, type WorkflowInstanceAction, type WorkflowInstanceDetail, type WorkflowInstancePage, type WorkflowInstanceStatus, type WorkflowInstanceSummary, type WorkflowLogger, type WorkflowRunContext, type WorkflowRunFunction, type WorkflowRunStepFunction, type WorkflowStepDetail, type WorkflowStepLike, type Workflows, type WorkflowsRestClient, type WorkflowsRestConfig, WorkflowsRestError, convertNonRetryableError, createRunStep, createWorkflowContext, createWorkflowRunContext, createWorkflows, createWorkflowsRestClient, defineStep, defineWorkflow, isNonRetryableError, isStepDefinition, isWorkflowDefinition, toNativeNonRetryableError, validateStepArgs, workflowBindingName, workflowClassName, workflowDefaultName };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as Workflows, L as LunoraWorkflowsOptions, S as StepArgsValidator, b as StepConfig, c as StepDefinition, d as WorkflowConfig, W as WorkflowDefinition, e as WorkflowInstanceStatus, f as WorkflowLogger, g as WorkflowEventLike, h as WorkflowStepLike, i as WorkflowRunContext, j as WorkflowRunFunction, k as WorkflowRunStepFunction } from "./packem_shared/types.d-CQO_koGe.js";
2
- export type { A as ArgsOf, F as FunctionReference, I as InferStepArgs, R as RunFunctionOptions, l as RunStepOptions, m as StepHandler, n as StepRollbackContext, o as StepRollbackHandler, p as StepRunContext, q as WorkflowBindingLike, r as WorkflowCreateOptions, s as WorkflowHandle, t as WorkflowHandler, u as WorkflowInstanceLike, v as WorkflowRollbackContextLike, w as WorkflowRollbackHandlerLike, x as WorkflowStatusResult, y as WorkflowStepConfigLike, z as WorkflowStepContextLike, B as WorkflowStepRollbackOptionsLike } from "./packem_shared/types.d-CQO_koGe.js";
1
+ import { a as Workflows, L as LunoraWorkflowsOptions, S as StepArgsValidator, b as StepConfig, c as StepDefinition, d as WorkflowConfig, W as WorkflowDefinition, e as WorkflowInstanceStatus, f as WorkflowEventLike, g as WorkflowStepLike, h as WorkflowRunContext, i as WorkflowLogger, j as WorkflowRunFunction, k as WorkflowRunStepFunction } from "./packem_shared/types.d-gNYxuUwu.js";
2
+ export type { A as ArgsOf, F as FunctionReference, I as InferStepArgs, R as RunFunctionOptions, l as RunStepOptions, m as StepHandler, n as StepRollbackContext, o as StepRollbackHandler, p as StepRunContext, q as WorkflowBindingLike, r as WorkflowCreateOptions, s as WorkflowHandle, t as WorkflowHandler, u as WorkflowInstanceLike, v as WorkflowRollbackContextLike, w as WorkflowRollbackHandlerLike, x as WorkflowStatusResult, y as WorkflowStepConfigLike, z as WorkflowStepContextLike, B as WorkflowStepRollbackOptionsLike } from "./packem_shared/types.d-gNYxuUwu.js";
3
3
  import '@lunora/values';
4
4
  /** Wiring info for one declared workflow, emitted by codegen into the generated shard. */
5
5
  interface WorkflowBindingSpec {
@@ -209,24 +209,6 @@ interface WorkflowsRestClient {
209
209
  * snake_case payload into the camelCase shapes the studio renders.
210
210
  */
211
211
  declare const createWorkflowsRestClient: (config: WorkflowsRestConfig) => WorkflowsRestClient;
212
- interface RunnerOptions {
213
- /** Worker `env` — read `LUNORA_ORIGIN_URL` + `LUNORA_ADMIN_TOKEN` at call time. */
214
- env: Record<string, unknown>;
215
- /** Injectable fetch (tests); defaults to the global. */
216
- fetchImpl?: typeof fetch;
217
- }
218
- /**
219
- * Build a {@link WorkflowRunFunction} that invokes a Lunora function by POSTing
220
- * to the Worker's `/_lunora/scheduler/dispatch` endpoint — the same path the
221
- * SchedulerDO and the Queues workpool dispatch through — authenticated with the
222
- * admin bearer. The parsed JSON body (the function's return value) is resolved;
223
- * an empty/non-JSON body resolves to `undefined`.
224
- *
225
- * Wrap calls in `ctx.step.do(...)` to make them durable + memoized + retried.
226
- */
227
- declare const createWorkflowRunner: (options: RunnerOptions) => WorkflowRunFunction;
228
- /** Console-backed logger, prefixed with the workflow name for log correlation. */
229
- declare const createWorkflowLogger: (exportName: string) => WorkflowLogger;
230
212
  interface RunContextOptions<Params> {
231
213
  env: Record<string, unknown>;
232
214
  event: WorkflowEventLike<Params>;
@@ -266,4 +248,4 @@ interface RunStepDeps {
266
248
  * converted to the native one and any declared rollback forwarded to Cloudflare.
267
249
  */
268
250
  declare const createRunStep: (deps: RunStepDeps) => WorkflowRunStepFunction;
269
- export { type LunoraWorkflowsOptions, type NativeNonRetryableErrorConstructor, NonRetryableError, type StepArgsValidator, type StepConfig, type StepDefinition, type WorkflowBindingSpec, type WorkflowConfig, type WorkflowDefinition, type WorkflowEventLike, type WorkflowInstanceAction, type WorkflowInstanceDetail, type WorkflowInstancePage, type WorkflowInstanceStatus, type WorkflowInstanceSummary, type WorkflowLogger, type WorkflowRunContext, type WorkflowRunFunction, type WorkflowRunStepFunction, type WorkflowStepDetail, type WorkflowStepLike, type Workflows, type WorkflowsRestClient, type WorkflowsRestConfig, WorkflowsRestError, convertNonRetryableError, createRunStep, createWorkflowContext, createWorkflowLogger, createWorkflowRunContext, createWorkflowRunner, createWorkflows, createWorkflowsRestClient, defineStep, defineWorkflow, isNonRetryableError, isStepDefinition, isWorkflowDefinition, toNativeNonRetryableError, validateStepArgs, workflowBindingName, workflowClassName, workflowDefaultName };
251
+ export { type LunoraWorkflowsOptions, type NativeNonRetryableErrorConstructor, NonRetryableError, type StepArgsValidator, type StepConfig, type StepDefinition, type WorkflowBindingSpec, type WorkflowConfig, type WorkflowDefinition, type WorkflowEventLike, type WorkflowInstanceAction, type WorkflowInstanceDetail, type WorkflowInstancePage, type WorkflowInstanceStatus, type WorkflowInstanceSummary, type WorkflowLogger, type WorkflowRunContext, type WorkflowRunFunction, type WorkflowRunStepFunction, type WorkflowStepDetail, type WorkflowStepLike, type Workflows, type WorkflowsRestClient, type WorkflowsRestConfig, WorkflowsRestError, convertNonRetryableError, createRunStep, createWorkflowContext, createWorkflowRunContext, createWorkflows, createWorkflowsRestClient, defineStep, defineWorkflow, isNonRetryableError, isStepDefinition, isWorkflowDefinition, toNativeNonRetryableError, validateStepArgs, workflowBindingName, workflowClassName, workflowDefaultName };
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ export { createWorkflowContext } from './packem_shared/createWorkflowContext-D6t
2
2
  export { default as createWorkflows } from './packem_shared/createWorkflows-BoSYVIXg.mjs';
3
3
  export { defineStep, isStepDefinition } from './packem_shared/defineStep-DJQtLw7g.mjs';
4
4
  export { defineWorkflow, isWorkflowDefinition, workflowBindingName, workflowClassName, workflowDefaultName } from './packem_shared/defineWorkflow-DbUC-oCN.mjs';
5
- export { NonRetryableError, convertNonRetryableError, isNonRetryableError, toNativeNonRetryableError } from './packem_shared/convertNonRetryableError-Dn2dTyBS.mjs';
5
+ export { NonRetryableError, convertNonRetryableError, isNonRetryableError, toNativeNonRetryableError } from './packem_shared/NonRetryableError-Dn2dTyBS.mjs';
6
6
  export { WorkflowsRestError, createWorkflowsRestClient } from './packem_shared/WorkflowsRestError-b06i7K5j.mjs';
7
- export { createWorkflowLogger, createWorkflowRunContext, createWorkflowRunner } from './packem_shared/createWorkflowLogger-FktqxNLe.mjs';
8
- export { createRunStep, validateStepArgs } from './packem_shared/createRunStep-BsK4LsUX.mjs';
7
+ export { createWorkflowRunContext } from './packem_shared/createWorkflowRunContext-DJj_y0fa.mjs';
8
+ export { createRunStep, validateStepArgs } from './packem_shared/createRunStep-8jOXxP2o.mjs';
@@ -1,5 +1,5 @@
1
1
  import { parseValidatorMap } from '@lunora/values';
2
- import { convertNonRetryableError, NonRetryableError } from './convertNonRetryableError-Dn2dTyBS.mjs';
2
+ import { convertNonRetryableError, NonRetryableError } from './NonRetryableError-Dn2dTyBS.mjs';
3
3
 
4
4
  const validateStepArgs = (validators, source) => parseValidatorMap(validators, source, "step args");
5
5
  const createRunStep = (deps) => async (step, args, options) => {
@@ -1,5 +1,23 @@
1
- import { createRunStep } from './createRunStep-BsK4LsUX.mjs';
1
+ import { createRunStep } from './createRunStep-8jOXxP2o.mjs';
2
2
 
3
+ const createDispatchLogger = (prefix) => {
4
+ return {
5
+ debug: (message, ...rest) => {
6
+ console.debug(prefix, message, ...rest);
7
+ },
8
+ error: (message, ...rest) => {
9
+ console.error(prefix, message, ...rest);
10
+ },
11
+ info: (message, ...rest) => {
12
+ console.info(prefix, message, ...rest);
13
+ },
14
+ warn: (message, ...rest) => {
15
+ console.warn(prefix, message, ...rest);
16
+ }
17
+ };
18
+ };
19
+
20
+ const SCHEDULER_DISPATCH_PATH = "/_lunora/scheduler/dispatch";
3
21
  const trimTrailingSlashes = (value) => {
4
22
  let end = value.length;
5
23
  while (end > 0 && value[end - 1] === "/") {
@@ -7,29 +25,30 @@ const trimTrailingSlashes = (value) => {
7
25
  }
8
26
  return value.slice(0, end);
9
27
  };
10
- const createWorkflowRunner = (options) => {
28
+ const createDispatchRunner = (options) => {
29
+ const { label } = options;
11
30
  const globalFetch = globalThis.fetch;
12
31
  const fetchImpl = options.fetchImpl ?? (typeof globalFetch === "function" ? globalFetch.bind(globalThis) : void 0);
13
32
  return async (function_, args, runOptions = {}) => {
14
33
  if (typeof fetchImpl !== "function") {
15
- throw new TypeError("@lunora/workflow: no fetch implementation available — pass fetchImpl or run on a platform with global fetch");
34
+ throw new TypeError(`${label}: no fetch implementation available — pass fetchImpl or run on a platform with global fetch`);
16
35
  }
17
36
  const origin = options.env.LUNORA_ORIGIN_URL;
18
37
  if (typeof origin !== "string" || origin.length === 0) {
19
- throw new Error("@lunora/workflow: `LUNORA_ORIGIN_URL` must be set on the Worker env so a workflow can call back into Lunora functions");
38
+ throw new Error(`${label}: \`LUNORA_ORIGIN_URL\` must be set on the Worker env so a handler can call back into Lunora functions`);
20
39
  }
21
40
  const token = options.env.LUNORA_ADMIN_TOKEN;
22
41
  if (typeof token !== "string" || token.length === 0) {
23
- throw new Error("@lunora/workflow: `LUNORA_ADMIN_TOKEN` must be set on the Worker env to authenticate workflow function dispatch");
42
+ throw new Error(`${label}: \`LUNORA_ADMIN_TOKEN\` must be set on the Worker env to authenticate function dispatch`);
24
43
  }
25
- const url = `${trimTrailingSlashes(origin)}/_lunora/scheduler/dispatch`;
44
+ const url = `${trimTrailingSlashes(origin)}${SCHEDULER_DISPATCH_PATH}`;
26
45
  const response = await fetchImpl(url, {
27
46
  body: JSON.stringify({ args: args ?? {}, functionPath: function_.__lunoraRef, shardKey: runOptions.shardKey }),
28
47
  headers: { authorization: `Bearer ${token}`, "content-type": "application/json" },
29
48
  method: "POST"
30
49
  });
31
50
  if (!response.ok) {
32
- throw new Error(`@lunora/workflow: function dispatch failed (${String(response.status)}): ${await response.text()}`);
51
+ throw new Error(`${label}: function dispatch failed (${String(response.status)}): ${await response.text()}`);
33
52
  }
34
53
  const text = await response.text();
35
54
  if (text.length === 0) {
@@ -42,26 +61,10 @@ const createWorkflowRunner = (options) => {
42
61
  }
43
62
  };
44
63
  };
45
- const createWorkflowLogger = (exportName) => {
46
- const prefix = `[workflow:${exportName}]`;
47
- return {
48
- debug: (message, ...rest) => {
49
- console.debug(prefix, message, ...rest);
50
- },
51
- error: (message, ...rest) => {
52
- console.error(prefix, message, ...rest);
53
- },
54
- info: (message, ...rest) => {
55
- console.info(prefix, message, ...rest);
56
- },
57
- warn: (message, ...rest) => {
58
- console.warn(prefix, message, ...rest);
59
- }
60
- };
61
- };
64
+
62
65
  const createWorkflowRunContext = (options) => {
63
- const log = createWorkflowLogger(options.exportName);
64
- const run = createWorkflowRunner({ env: options.env, fetchImpl: options.fetchImpl });
66
+ const log = createDispatchLogger(`[workflow:${options.exportName}]`);
67
+ const run = createDispatchRunner({ env: options.env, fetchImpl: options.fetchImpl, label: "@lunora/workflow" });
65
68
  return {
66
69
  env: options.env,
67
70
  event: options.event,
@@ -73,4 +76,4 @@ const createWorkflowRunContext = (options) => {
73
76
  };
74
77
  };
75
78
 
76
- export { createWorkflowLogger, createWorkflowRunContext, createWorkflowRunner };
79
+ export { createWorkflowRunContext };
@@ -341,4 +341,4 @@ interface LunoraWorkflowsOptions {
341
341
  */
342
342
  bindings: Record<string, WorkflowBindingLike>;
343
343
  }
344
- export { ArgsOf as A, WorkflowStepRollbackOptionsLike as B, FunctionReference as F, InferStepArgs as I, LunoraWorkflowsOptions as L, RunFunctionOptions as R, StepArgsValidator as S, WorkflowDefinition as W, Workflows as a, StepConfig as b, StepDefinition as c, WorkflowConfig as d, WorkflowInstanceStatus as e, WorkflowLogger as f, WorkflowEventLike as g, WorkflowStepLike as h, WorkflowRunContext as i, WorkflowRunFunction as j, WorkflowRunStepFunction as k, RunStepOptions as l, StepHandler as m, StepRollbackContext as n, StepRollbackHandler as o, StepRunContext as p, WorkflowBindingLike as q, WorkflowCreateOptions as r, WorkflowHandle as s, WorkflowHandler as t, WorkflowInstanceLike as u, WorkflowRollbackContextLike as v, WorkflowRollbackHandlerLike as w, WorkflowStatusResult as x, WorkflowStepConfigLike as y, WorkflowStepContextLike as z };
344
+ export { ArgsOf as A, WorkflowStepRollbackOptionsLike as B, FunctionReference as F, InferStepArgs as I, LunoraWorkflowsOptions as L, RunFunctionOptions as R, StepArgsValidator as S, WorkflowDefinition as W, Workflows as a, StepConfig as b, StepDefinition as c, WorkflowConfig as d, WorkflowInstanceStatus as e, WorkflowEventLike as f, WorkflowStepLike as g, WorkflowRunContext as h, WorkflowLogger as i, WorkflowRunFunction as j, WorkflowRunStepFunction as k, RunStepOptions as l, StepHandler as m, StepRollbackContext as n, StepRollbackHandler as o, StepRunContext as p, WorkflowBindingLike as q, WorkflowCreateOptions as r, WorkflowHandle as s, WorkflowHandler as t, WorkflowInstanceLike as u, WorkflowRollbackContextLike as v, WorkflowRollbackHandlerLike as w, WorkflowStatusResult as x, WorkflowStepConfigLike as y, WorkflowStepContextLike as z };
@@ -341,4 +341,4 @@ interface LunoraWorkflowsOptions {
341
341
  */
342
342
  bindings: Record<string, WorkflowBindingLike>;
343
343
  }
344
- export { ArgsOf as A, WorkflowStepRollbackOptionsLike as B, FunctionReference as F, InferStepArgs as I, LunoraWorkflowsOptions as L, RunFunctionOptions as R, StepArgsValidator as S, WorkflowDefinition as W, Workflows as a, StepConfig as b, StepDefinition as c, WorkflowConfig as d, WorkflowInstanceStatus as e, WorkflowLogger as f, WorkflowEventLike as g, WorkflowStepLike as h, WorkflowRunContext as i, WorkflowRunFunction as j, WorkflowRunStepFunction as k, RunStepOptions as l, StepHandler as m, StepRollbackContext as n, StepRollbackHandler as o, StepRunContext as p, WorkflowBindingLike as q, WorkflowCreateOptions as r, WorkflowHandle as s, WorkflowHandler as t, WorkflowInstanceLike as u, WorkflowRollbackContextLike as v, WorkflowRollbackHandlerLike as w, WorkflowStatusResult as x, WorkflowStepConfigLike as y, WorkflowStepContextLike as z };
344
+ export { ArgsOf as A, WorkflowStepRollbackOptionsLike as B, FunctionReference as F, InferStepArgs as I, LunoraWorkflowsOptions as L, RunFunctionOptions as R, StepArgsValidator as S, WorkflowDefinition as W, Workflows as a, StepConfig as b, StepDefinition as c, WorkflowConfig as d, WorkflowInstanceStatus as e, WorkflowEventLike as f, WorkflowStepLike as g, WorkflowRunContext as h, WorkflowLogger as i, WorkflowRunFunction as j, WorkflowRunStepFunction as k, RunStepOptions as l, StepHandler as m, StepRollbackContext as n, StepRollbackHandler as o, StepRunContext as p, WorkflowBindingLike as q, WorkflowCreateOptions as r, WorkflowHandle as s, WorkflowHandler as t, WorkflowInstanceLike as u, WorkflowRollbackContextLike as v, WorkflowRollbackHandlerLike as w, WorkflowStatusResult as x, WorkflowStepConfigLike as y, WorkflowStepContextLike as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/workflow",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "Durable workflows for Lunora: defineWorkflow over Cloudflare Workflows, generated WorkflowEntrypoint classes, and the ctx.workflows surface",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -23,7 +23,7 @@
23
23
  "directory": "packages/workflow"
24
24
  },
25
25
  "files": [
26
- "dist",
26
+ "./dist",
27
27
  "README.md",
28
28
  "LICENSE.md",
29
29
  "__assets__"
@@ -48,7 +48,7 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@lunora/values": "1.0.0-alpha.1"
51
+ "@lunora/values": "1.0.0-alpha.3"
52
52
  },
53
53
  "engines": {
54
54
  "node": "^22.15.0 || >=24.11.0"