@cat-factory/worker 0.168.0 → 0.168.1
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationalFlush.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/observability/operationalFlush.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAA8B,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"operationalFlush.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/observability/operationalFlush.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAA8B,MAAM,qBAAqB,CAAA;AAwC9F;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,KAAK,CAAA;CAAO,GACvD,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAgBtB"}
|
|
@@ -12,10 +12,14 @@ import { logger, operationalMetrics } from '@cat-factory/server';
|
|
|
12
12
|
// events and silently zero everything the request and queue paths did, which is precisely the
|
|
13
13
|
// "an absent number reads as a zero" failure this initiative exists to remove.
|
|
14
14
|
//
|
|
15
|
-
// So
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
15
|
+
// So each of the three HANDLERS (`fetch` / `scheduled` / `queue`) flushes what its own isolate
|
|
16
|
+
// accumulated, as a `waitUntil` after the response. Only those three, so a counter recorded
|
|
17
|
+
// inside a Workflow entrypoint or a Durable Object is never exported at all. The LOG export next
|
|
18
|
+
// door has closed the workflow half of that gap (`workflows/logExport.ts` brackets each wake, a
|
|
19
|
+
// shape a trailing `waitUntil` cannot give it); the counters have no counterpart yet, so a
|
|
20
|
+
// wake's metrics still die with its isolate. Flushing per handler is only correct because the
|
|
21
|
+
// counters export as DELTAS: N isolates each reporting their own slice sum correctly in the
|
|
22
|
+
// backend, where N isolates each reporting a cumulative total would not. The CRON path flushes through `SweepTick.settled()` rather than
|
|
19
23
|
// immediately — its passes run on `waitUntil` and record after the handler returns, so a flush
|
|
20
24
|
// that did not wait for them drained an empty collector and orphaned their counters in an
|
|
21
25
|
// isolate no later tick was guaranteed to reach.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationalFlush.js","sourceRoot":"","sources":["../../../src/infrastructure/observability/operationalFlush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAA;AACnF,OAAO,EAAgC,MAAM,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE9F,yFAAyF;AACzF,qEAAqE;AACrE,EAAE;AACF,6FAA6F;AAC7F,4FAA4F;AAC5F,4FAA4F;AAC5F,8FAA8F;AAC9F,yFAAyF;AACzF,8FAA8F;AAC9F,+EAA+E;AAC/E,EAAE;AACF,4FAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"operationalFlush.js","sourceRoot":"","sources":["../../../src/infrastructure/observability/operationalFlush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAA;AACnF,OAAO,EAAgC,MAAM,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE9F,yFAAyF;AACzF,qEAAqE;AACrE,EAAE;AACF,6FAA6F;AAC7F,4FAA4F;AAC5F,4FAA4F;AAC5F,8FAA8F;AAC9F,yFAAyF;AACzF,8FAA8F;AAC9F,+EAA+E;AAC/E,EAAE;AACF,+FAA+F;AAC/F,4FAA4F;AAC5F,iGAAiG;AACjG,gGAAgG;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1",
|
|
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",
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
"pino": "^10.3.1",
|
|
44
44
|
"valibot": "^1.4.2",
|
|
45
45
|
"workers-ai-provider": "^4.0.0",
|
|
46
|
-
"@cat-factory/agents": "0.116.
|
|
47
|
-
"@cat-factory/caching": "0.17.
|
|
48
|
-
"@cat-factory/consensus": "0.14.
|
|
46
|
+
"@cat-factory/agents": "0.116.7",
|
|
47
|
+
"@cat-factory/caching": "0.17.1",
|
|
48
|
+
"@cat-factory/consensus": "0.14.44",
|
|
49
49
|
"@cat-factory/contracts": "0.261.0",
|
|
50
|
-
"@cat-factory/eks": "0.1.
|
|
51
|
-
"@cat-factory/gates": "0.9.
|
|
52
|
-
"@cat-factory/gitlab": "0.16.
|
|
53
|
-
"@cat-factory/integrations": "0.140.
|
|
54
|
-
"@cat-factory/kernel": "0.
|
|
55
|
-
"@cat-factory/observability-langfuse": "0.10.
|
|
56
|
-
"@cat-factory/observability-otel": "0.16.
|
|
57
|
-
"@cat-factory/orchestration": "0.228.
|
|
58
|
-
"@cat-factory/prompt-fragments": "1.0.
|
|
59
|
-
"@cat-factory/provider-cloudflare": "0.7.
|
|
60
|
-
"@cat-factory/server": "0.239.
|
|
61
|
-
"@cat-factory/spend": "0.15.
|
|
50
|
+
"@cat-factory/eks": "0.1.256",
|
|
51
|
+
"@cat-factory/gates": "0.9.24",
|
|
52
|
+
"@cat-factory/gitlab": "0.16.15",
|
|
53
|
+
"@cat-factory/integrations": "0.140.1",
|
|
54
|
+
"@cat-factory/kernel": "0.260.0",
|
|
55
|
+
"@cat-factory/observability-langfuse": "0.10.28",
|
|
56
|
+
"@cat-factory/observability-otel": "0.16.8",
|
|
57
|
+
"@cat-factory/orchestration": "0.228.1",
|
|
58
|
+
"@cat-factory/prompt-fragments": "1.0.8",
|
|
59
|
+
"@cat-factory/provider-cloudflare": "0.7.406",
|
|
60
|
+
"@cat-factory/server": "0.239.1",
|
|
61
|
+
"@cat-factory/spend": "0.15.26"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@cloudflare/vitest-pool-workers": "^0.20.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typescript": "7.0.2",
|
|
67
67
|
"vitest": "^4.1.10",
|
|
68
68
|
"wrangler": "^4.118.0",
|
|
69
|
-
"@cat-factory/conformance": "0.31.
|
|
69
|
+
"@cat-factory/conformance": "0.31.20"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsc -b tsconfig.build.json",
|