@voyantjs/hono 0.30.0 → 0.30.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.
package/dist/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAoBlF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB,CAAC,SAAS,GAAG,OAAO;IACtD;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3C;AAED,wBAAgB,SAAS,CAAC,SAAS,SAAS,cAAc,EACxD,MAAM,EAAE,eAAe,CAAC,SAAS,CAAC,GACjC,IAAI,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAuP5F"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AA2BlF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB,CAAC,SAAS,GAAG,OAAO;IACtD;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3C;AAED,wBAAgB,SAAS,CAAC,SAAS,SAAS,cAAc,EACxD,MAAM,EAAE,eAAe,CAAC,SAAS,CAAC,GACjC,IAAI,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAuP5F"}
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createContainer, createEventBus, createQueryRunner, } from "@voyantjs/core";
2
- import { buildManifest } from "@voyantjs/workflows/events";
2
+ import { buildManifest, } from "@voyantjs/workflows/events";
3
3
  import { Hono } from "hono";
4
4
  import { requireAuth } from "./middleware/auth.js";
5
5
  import { cors } from "./middleware/cors.js";
@@ -18,6 +18,10 @@ function resolveSurfaceMountPath(prefix, path, fallback) {
18
18
  }
19
19
  return `${prefix}/${normalized.replace(/^\/+|\/+$/g, "")}`;
20
20
  }
21
+ function toManifestWorkflowDescriptor(wf) {
22
+ const candidate = wf;
23
+ return candidate.config ? { id: wf.id, config: candidate.config } : { id: wf.id };
24
+ }
21
25
  export function createApp(config) {
22
26
  const app = new Hono();
23
27
  app.onError(handleApiError);
@@ -266,7 +270,7 @@ async function wireWorkflowRuntime(args) {
266
270
  const manifest = await buildManifest({
267
271
  projectId: args.projectId,
268
272
  environment: args.environment,
269
- workflows: args.collectedWorkflows.map((w) => ({ id: w.id })),
273
+ workflows: args.collectedWorkflows.map(toManifestWorkflowDescriptor),
270
274
  eventFilters: filterEntries,
271
275
  });
272
276
  await args.driver.registerManifest({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/hono",
3
- "version": "0.30.0",
3
+ "version": "0.30.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -94,18 +94,18 @@
94
94
  "drizzle-orm": "^0.45.2",
95
95
  "hono": "^4.12.10",
96
96
  "zod": "^4.3.6",
97
- "@voyantjs/core": "0.30.0",
98
- "@voyantjs/db": "0.30.0",
99
- "@voyantjs/types": "0.30.0",
100
- "@voyantjs/utils": "0.30.0",
101
- "@voyantjs/workflows": "0.30.0"
97
+ "@voyantjs/core": "0.30.3",
98
+ "@voyantjs/db": "0.30.3",
99
+ "@voyantjs/types": "0.30.3",
100
+ "@voyantjs/utils": "0.30.3",
101
+ "@voyantjs/workflows": "0.30.3"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@cloudflare/workers-types": "^4.20260426.1",
105
105
  "typescript": "^6.0.2",
106
106
  "vitest": "^4.1.2",
107
107
  "@voyantjs/voyant-typescript-config": "0.1.0",
108
- "@voyantjs/workflows-orchestrator": "0.30.0"
108
+ "@voyantjs/workflows-orchestrator": "0.30.3"
109
109
  },
110
110
  "files": [
111
111
  "dist"