@cat-factory/worker 0.201.13 → 0.203.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.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ai/providerEndpoints.d.ts +8 -1
- package/dist/infrastructure/ai/providerEndpoints.d.ts.map +1 -1
- package/dist/infrastructure/ai/providerEndpoints.js +10 -1
- package/dist/infrastructure/ai/providerEndpoints.js.map +1 -1
- package/dist/infrastructure/config/index.d.ts.map +1 -1
- package/dist/infrastructure/config/index.js +7 -0
- package/dist/infrastructure/config/index.js.map +1 -1
- package/dist/infrastructure/config/serviceCatalog.d.ts +14 -0
- package/dist/infrastructure/config/serviceCatalog.d.ts.map +1 -0
- package/dist/infrastructure/config/serviceCatalog.js +18 -0
- package/dist/infrastructure/config/serviceCatalog.js.map +1 -0
- package/dist/infrastructure/container-assembly.js +1 -1
- package/dist/infrastructure/container-assembly.js.map +1 -1
- package/dist/infrastructure/container-content-library-deps.d.ts +40 -0
- package/dist/infrastructure/container-content-library-deps.d.ts.map +1 -0
- package/dist/infrastructure/container-content-library-deps.js +122 -0
- package/dist/infrastructure/container-content-library-deps.js.map +1 -0
- package/dist/infrastructure/container-model-resolver.d.ts.map +1 -1
- package/dist/infrastructure/container-model-resolver.js +2 -1
- package/dist/infrastructure/container-model-resolver.js.map +1 -1
- package/dist/infrastructure/container.d.ts +1 -33
- package/dist/infrastructure/container.d.ts.map +1 -1
- package/dist/infrastructure/container.js +5 -90
- package/dist/infrastructure/container.js.map +1 -1
- package/dist/infrastructure/env.d.ts +25 -0
- package/dist/infrastructure/env.d.ts.map +1 -1
- package/dist/infrastructure/env.js.map +1 -1
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.d.ts.map +1 -1
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.js +6 -4
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.js.map +1 -1
- package/dist/infrastructure/repositories/D1FoundationalServiceRepository.d.ts +7 -0
- package/dist/infrastructure/repositories/D1FoundationalServiceRepository.d.ts.map +1 -1
- package/dist/infrastructure/repositories/D1FoundationalServiceRepository.js +83 -24
- package/dist/infrastructure/repositories/D1FoundationalServiceRepository.js.map +1 -1
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.d.ts.map +1 -1
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.js +8 -3
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.js.map +1 -1
- package/dist/infrastructure/repositories/D1ServiceCatalogConnectionRepository.d.ts +32 -0
- package/dist/infrastructure/repositories/D1ServiceCatalogConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ServiceCatalogConnectionRepository.js +118 -0
- package/dist/infrastructure/repositories/D1ServiceCatalogConnectionRepository.js.map +1 -0
- package/migrations/0097_service_catalog_connections.sql +45 -0
- package/migrations/0098_environment_status_note.sql +17 -0
- package/package.json +19 -19
- package/telemetry-migrations/0007_llm_call_gateway_attribution.sql +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/worker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.203.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",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"@ai-sdk/anthropic": "^4.0.46",
|
|
37
37
|
"@ai-sdk/openai": "^4.0.52",
|
|
38
38
|
"@ai-sdk/openai-compatible": "^3.0.41",
|
|
39
|
-
"@cat-factory/agents": "0.
|
|
40
|
-
"@cat-factory/binary-generators": "0.3.
|
|
41
|
-
"@cat-factory/caching": "0.20.
|
|
42
|
-
"@cat-factory/consensus": "0.17.
|
|
43
|
-
"@cat-factory/contracts": "0.
|
|
44
|
-
"@cat-factory/eks": "0.1.
|
|
45
|
-
"@cat-factory/gates": "0.11.
|
|
46
|
-
"@cat-factory/gitlab": "0.22.
|
|
47
|
-
"@cat-factory/integrations": "0.
|
|
48
|
-
"@cat-factory/kernel": "0.
|
|
49
|
-
"@cat-factory/observability-langfuse": "0.11.
|
|
50
|
-
"@cat-factory/observability-otel": "0.23.
|
|
51
|
-
"@cat-factory/orchestration": "0.
|
|
52
|
-
"@cat-factory/prompt-fragments": "1.1.
|
|
53
|
-
"@cat-factory/provider-cloudflare": "0.7.
|
|
54
|
-
"@cat-factory/server": "0.
|
|
55
|
-
"@cat-factory/spend": "0.
|
|
39
|
+
"@cat-factory/agents": "0.148.0",
|
|
40
|
+
"@cat-factory/binary-generators": "0.3.23",
|
|
41
|
+
"@cat-factory/caching": "0.20.57",
|
|
42
|
+
"@cat-factory/consensus": "0.17.23",
|
|
43
|
+
"@cat-factory/contracts": "0.336.0",
|
|
44
|
+
"@cat-factory/eks": "0.1.362",
|
|
45
|
+
"@cat-factory/gates": "0.11.23",
|
|
46
|
+
"@cat-factory/gitlab": "0.22.23",
|
|
47
|
+
"@cat-factory/integrations": "0.168.0",
|
|
48
|
+
"@cat-factory/kernel": "0.325.0",
|
|
49
|
+
"@cat-factory/observability-langfuse": "0.11.23",
|
|
50
|
+
"@cat-factory/observability-otel": "0.23.16",
|
|
51
|
+
"@cat-factory/orchestration": "0.292.0",
|
|
52
|
+
"@cat-factory/prompt-fragments": "1.1.19",
|
|
53
|
+
"@cat-factory/provider-cloudflare": "0.7.515",
|
|
54
|
+
"@cat-factory/server": "0.309.0",
|
|
55
|
+
"@cat-factory/spend": "0.17.1",
|
|
56
56
|
"@cloudflare/containers": "^0.3.7",
|
|
57
57
|
"@hono/valibot-validator": "^0.6.1",
|
|
58
58
|
"ai": "^7.0.85",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"workers-ai-provider": "^4.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@cat-factory/conformance": "0.
|
|
65
|
+
"@cat-factory/conformance": "0.49.0",
|
|
66
66
|
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
|
67
67
|
"@cloudflare/workers-types": "5.20260815.1",
|
|
68
68
|
"typescript": "7.0.2",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
-- Record what a GATEWAY reports about a call, rather than only what we can derive about it.
|
|
2
|
+
--
|
|
3
|
+
-- Every cost figure this platform holds is derived: `(model, token classes) x` the spend price
|
|
4
|
+
-- table. Against a direct vendor that is the best available answer. Against OpenRouter, a
|
|
5
|
+
-- passthrough gateway reselling 300+ models at the underlying vendor's rates, it is a guess with
|
|
6
|
+
-- two failure modes we could not see: a model outside the curated `openrouter:<slug>` rows falls
|
|
7
|
+
-- back to one bare per-provider rate, and nothing anywhere said WHICH upstream served the call, so
|
|
8
|
+
-- a slow or failing one is indistinguishable from the gateway itself.
|
|
9
|
+
--
|
|
10
|
+
-- With usage accounting requested (`usage: { include: true }`, set by `openRouterResolver` and by
|
|
11
|
+
-- the container proxy's gateway params) OpenRouter answers both: its own ledger cost and the
|
|
12
|
+
-- upstream's name.
|
|
13
|
+
--
|
|
14
|
+
-- Both columns are NULLABLE and NULL is the load-bearing value. A derived-cost row and a
|
|
15
|
+
-- reported-cost row are different facts, so a 0 default would turn "this producer reports nothing"
|
|
16
|
+
-- into "this call was free" on every pre-column row and on every direct-vendor row forever. Same
|
|
17
|
+
-- rule for the upstream: absent means the `provider` column already names who served it.
|
|
18
|
+
--
|
|
19
|
+
-- `reported_cost_usd` is the vendor's own USD figure, stored unconverted. The USD→spend-currency
|
|
20
|
+
-- rate is this platform's fixed assumption (`usdRateForSpendCurrency`); the reported figure is
|
|
21
|
+
-- not, and folding one into the other would make the only measured number on the table carry an
|
|
22
|
+
-- estimate inside it.
|
|
23
|
+
--
|
|
24
|
+
-- No backfill (nothing to backfill from) and no index: the table is pruned to
|
|
25
|
+
-- LLM_CALL_METRICS_RETENTION_DAYS and every read of these two rides
|
|
26
|
+
-- idx_llm_call_metrics_execution.
|
|
27
|
+
ALTER TABLE llm_call_metrics ADD COLUMN reported_cost_usd REAL;
|
|
28
|
+
ALTER TABLE llm_call_metrics ADD COLUMN upstream_provider TEXT;
|