@voyantjs/workflow-runs 0.107.4 → 0.107.6

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/routes.js CHANGED
@@ -57,7 +57,7 @@ export function mountWorkflowRunsAdminRoutes(hono, opts = {}) {
57
57
  if (!parsed.success) {
58
58
  return c.json({ error: "invalid_query", detail: parsed.error.issues }, 400);
59
59
  }
60
- // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed
60
+ // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed -- owner: workflow-runs; existing suppression is intentional pending typed cleanup.
61
61
  const db = c.var.db;
62
62
  if (!db) {
63
63
  console.error("[workflow-runs] c.var.db is undefined — middleware ordering issue?");
@@ -76,7 +76,7 @@ export function mountWorkflowRunsAdminRoutes(hono, opts = {}) {
76
76
  }
77
77
  });
78
78
  hono.get("/v1/admin/workflow-runs/:id", async (c) => {
79
- // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed
79
+ // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed -- owner: workflow-runs; existing suppression is intentional pending typed cleanup.
80
80
  const db = c.var.db;
81
81
  if (!db)
82
82
  return c.json({ error: "db_unavailable" }, 500);
@@ -140,7 +140,7 @@ export function mountWorkflowRunsAdminRoutes(hono, opts = {}) {
140
140
  }
141
141
  });
142
142
  hono.post("/v1/admin/workflow-runs/:id/rerun", async (c) => {
143
- // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed
143
+ // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed -- owner: workflow-runs; existing suppression is intentional pending typed cleanup.
144
144
  const db = c.var.db;
145
145
  if (!db)
146
146
  return c.json({ error: "db_unavailable" }, 500);
@@ -200,7 +200,7 @@ export function mountWorkflowRunsAdminRoutes(hono, opts = {}) {
200
200
  }
201
201
  });
202
202
  hono.post("/v1/admin/workflow-runs/:id/resume", async (c) => {
203
- // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed
203
+ // biome-ignore lint/suspicious/noExplicitAny: Hono's c.var.db is loosely typed -- owner: workflow-runs; existing suppression is intentional pending typed cleanup.
204
204
  const db = c.var.db;
205
205
  if (!db)
206
206
  return c.json({ error: "db_unavailable" }, 500);
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,eAAO,MAAM,qBAAqB,uFAKhC,CAAA;AAEF,eAAO,MAAM,yBAAyB,oGAMpC,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDxB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB5B,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAA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AAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,YAAY,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,YAAY,CAAC,YAAY,CAAA;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA;AAClE,MAAM,MAAM,kBAAkB,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA"}
package/dist/schema.js CHANGED
@@ -69,6 +69,7 @@ export const workflowRuns = pgTable("workflow_runs", {
69
69
  index("idx_workflow_runs_correlation").on(table.correlationId),
70
70
  index("idx_workflow_runs_parent").on(table.parentRunId),
71
71
  // GIN index on tags so `tags @> '["bookingId:bk_…"]'::jsonb` is fast.
72
+ // agent-quality: raw-sql reviewed -- owner: workflow-runs; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
72
73
  index("idx_workflow_runs_tags_gin").using("gin", sql `${table.tags}`),
73
74
  check("ck_workflow_runs_completion", sql `(
74
75
  ${table.status} = 'running' AND ${table.completedAt} IS NULL
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAkC,MAAM,aAAa,CAAA;AAEpG,MAAM,WAAW,qBAAqB;IACpC,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,wBAAwB;IACxB,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAA;IACzD,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AA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CAAC;QAAE,GAAG,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,eAAe,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;CAUlE,CAAA"}
package/dist/service.js CHANGED
@@ -17,6 +17,7 @@ export const workflowRunsService = {
17
17
  conds.push(eq(workflowRuns.parentRunId, query.parentRunId));
18
18
  if (query.tag) {
19
19
  // jsonb contains — `tags @> '["bookingId:bk_…"]'::jsonb`
20
+ // agent-quality: raw-sql reviewed -- owner: workflow-runs; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
20
21
  conds.push(sql `${workflowRuns.tags} @> ${JSON.stringify([query.tag])}::jsonb`);
21
22
  }
22
23
  const where = conds.length > 0 ? and(...conds) : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/workflow-runs",
3
- "version": "0.107.4",
3
+ "version": "0.107.6",
4
4
  "description": "Workflow run recording, admin routes, and rerun/resume dispatch primitives for Voyant operator apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -47,15 +47,15 @@
47
47
  "hono": "^4.12.10",
48
48
  "zod": "^4.3.6",
49
49
  "@voyantjs/core": "^0.109.0",
50
- "@voyantjs/db": "^0.107.0",
51
- "@voyantjs/hono": "^0.109.0",
52
- "@voyantjs/workflows": "^0.107.4"
50
+ "@voyantjs/db": "^0.108.0",
51
+ "@voyantjs/hono": "^0.109.1",
52
+ "@voyantjs/workflows": "^0.107.6"
53
53
  },
54
54
  "devDependencies": {
55
55
  "typescript": "^6.0.2",
56
56
  "vitest": "^4.1.2",
57
57
  "@voyantjs/voyant-typescript-config": "^0.1.0",
58
- "@voyantjs/workflows-orchestrator": "^0.107.4"
58
+ "@voyantjs/workflows-orchestrator": "^0.107.6"
59
59
  },
60
60
  "files": [
61
61
  "dist"