@cat-factory/worker 0.102.0 → 0.104.0

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 (34) hide show
  1. package/dist/infrastructure/config/index.d.ts +2 -1
  2. package/dist/infrastructure/config/index.d.ts.map +1 -1
  3. package/dist/infrastructure/config/index.js +2 -0
  4. package/dist/infrastructure/config/index.js.map +1 -1
  5. package/dist/infrastructure/config/notificationWebhooks.d.ts +12 -0
  6. package/dist/infrastructure/config/notificationWebhooks.d.ts.map +1 -0
  7. package/dist/infrastructure/config/notificationWebhooks.js +15 -0
  8. package/dist/infrastructure/config/notificationWebhooks.js.map +1 -0
  9. package/dist/infrastructure/container-assembly.d.ts +12 -1
  10. package/dist/infrastructure/container-assembly.d.ts.map +1 -1
  11. package/dist/infrastructure/container-assembly.js +29 -4
  12. package/dist/infrastructure/container-assembly.js.map +1 -1
  13. package/dist/infrastructure/container.d.ts +31 -7
  14. package/dist/infrastructure/container.d.ts.map +1 -1
  15. package/dist/infrastructure/container.js +68 -37
  16. package/dist/infrastructure/container.js.map +1 -1
  17. package/dist/infrastructure/env.d.ts +9 -0
  18. package/dist/infrastructure/env.d.ts.map +1 -1
  19. package/dist/infrastructure/env.js.map +1 -1
  20. package/dist/infrastructure/repositories/D1NotificationWebhookRepository.d.ts +13 -0
  21. package/dist/infrastructure/repositories/D1NotificationWebhookRepository.d.ts.map +1 -0
  22. package/dist/infrastructure/repositories/D1NotificationWebhookRepository.js +45 -0
  23. package/dist/infrastructure/repositories/D1NotificationWebhookRepository.js.map +1 -0
  24. package/dist/infrastructure/repositories/D1ValidationConfigRepository.d.ts +19 -0
  25. package/dist/infrastructure/repositories/D1ValidationConfigRepository.d.ts.map +1 -0
  26. package/dist/infrastructure/repositories/D1ValidationConfigRepository.js +77 -0
  27. package/dist/infrastructure/repositories/D1ValidationConfigRepository.js.map +1 -0
  28. package/dist/infrastructure/wireCredentialServices.d.ts +18 -1
  29. package/dist/infrastructure/wireCredentialServices.d.ts.map +1 -1
  30. package/dist/infrastructure/wireCredentialServices.js +40 -1
  31. package/dist/infrastructure/wireCredentialServices.js.map +1 -1
  32. package/migrations/0061_notification_webhooks.sql +18 -0
  33. package/migrations/0061_validation_configs.sql +14 -0
  34. package/package.json +18 -18
@@ -0,0 +1,18 @@
1
+ -- Outbound notification webhook: ONE endpoint per workspace that receives the workspace's
2
+ -- notifications as they are raised. This is the delivery channel a HEADLESS integration needs —
3
+ -- it has no in-app inbox to watch and no browser to hold a WebSocket open — and it exists chiefly
4
+ -- so a public-API run that PARKS on a human decision reaches its caller by push rather than by
5
+ -- polling. See docs/initiatives/headless-clarification-loop.md (D3).
6
+ --
7
+ -- `secret_sealed` is the signing secret, encrypted with the deployment SecretCipher; it is never
8
+ -- read back over the API (the projection reports only whether one is set). `types` is a JSON array
9
+ -- of notification types; EMPTY means "the defaults" (the parking + actionable-tail types), not
10
+ -- "everything", so registering an endpoint can't accidentally fire-hose every operator card at it.
11
+ CREATE TABLE notification_webhooks (
12
+ workspace_id TEXT PRIMARY KEY,
13
+ url TEXT NOT NULL,
14
+ types TEXT NOT NULL DEFAULT '[]',
15
+ enabled INTEGER NOT NULL DEFAULT 1,
16
+ secret_sealed TEXT,
17
+ updated_at INTEGER NOT NULL
18
+ );
@@ -0,0 +1,14 @@
1
+ -- Pre-PR validation checks: the shell commands the executor-harness runs against the
2
+ -- checkout after the coding agent settles and BEFORE the PR opens, keyed by SERVICE FRAME
3
+ -- block (a run resolves its checks by walking its block up the frame chain).
4
+ -- `checks` is a JSON array of `{ label, command }`. Mirrors the Drizzle `validation_configs`
5
+ -- table on the Node facade. See docs/initiatives/pre-pr-validation.md.
6
+ CREATE TABLE validation_configs (
7
+ workspace_id TEXT NOT NULL,
8
+ block_id TEXT NOT NULL,
9
+ checks TEXT NOT NULL DEFAULT '[]',
10
+ max_attempts INTEGER NOT NULL DEFAULT 3,
11
+ created_at INTEGER NOT NULL,
12
+ updated_at INTEGER NOT NULL,
13
+ PRIMARY KEY (workspace_id, block_id)
14
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/worker",
3
- "version": "0.102.0",
3
+ "version": "0.104.0",
4
4
  "description": "Reusable Cloudflare Worker library (Hono + D1) exposing the Agent Architecture Board core: the `createApp()` Hono factory, the default fetch/scheduled/queue handler, and the Durable Object + Workflow classes. Deployments (see deploy/backend) supply the wrangler.toml + config and re-export these.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,22 +42,22 @@
42
42
  "pino": "^10.3.1",
43
43
  "valibot": "^1.4.2",
44
44
  "workers-ai-provider": "^4.0.0",
45
- "@cat-factory/consensus": "0.11.33",
46
- "@cat-factory/caching": "0.10.37",
47
- "@cat-factory/eks": "0.1.132",
48
- "@cat-factory/contracts": "0.162.0",
49
- "@cat-factory/agents": "0.69.4",
50
- "@cat-factory/gates": "0.7.24",
51
- "@cat-factory/integrations": "0.94.1",
52
- "@cat-factory/kernel": "0.156.0",
53
- "@cat-factory/observability-langfuse": "0.7.255",
54
- "@cat-factory/orchestration": "0.137.0",
55
- "@cat-factory/prompt-fragments": "0.14.10",
56
- "@cat-factory/provider-cloudflare": "0.7.283",
57
- "@cat-factory/server": "0.147.0",
58
- "@cat-factory/gitlab": "0.13.0",
59
- "@cat-factory/observability-otel": "0.2.38",
60
- "@cat-factory/spend": "0.12.81"
45
+ "@cat-factory/agents": "0.69.6",
46
+ "@cat-factory/caching": "0.10.39",
47
+ "@cat-factory/consensus": "0.11.35",
48
+ "@cat-factory/contracts": "0.164.0",
49
+ "@cat-factory/eks": "0.1.134",
50
+ "@cat-factory/gates": "0.7.26",
51
+ "@cat-factory/gitlab": "0.13.2",
52
+ "@cat-factory/integrations": "0.96.0",
53
+ "@cat-factory/kernel": "0.158.0",
54
+ "@cat-factory/observability-langfuse": "0.7.257",
55
+ "@cat-factory/observability-otel": "0.2.40",
56
+ "@cat-factory/orchestration": "0.139.0",
57
+ "@cat-factory/prompt-fragments": "0.14.12",
58
+ "@cat-factory/provider-cloudflare": "0.7.285",
59
+ "@cat-factory/server": "0.149.0",
60
+ "@cat-factory/spend": "0.12.83"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@cloudflare/vitest-pool-workers": "^0.18.7",
@@ -65,7 +65,7 @@
65
65
  "typescript": "7.0.2",
66
66
  "vitest": "^4.1.10",
67
67
  "wrangler": "^4.113.0",
68
- "@cat-factory/conformance": "0.11.69"
68
+ "@cat-factory/conformance": "0.11.71"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsc -b tsconfig.build.json",