@cat-factory/orchestration 0.193.0 → 0.195.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/container/dependencies.d.ts +17 -1
- package/dist/container/dependencies.d.ts.map +1 -1
- package/dist/container/module-shapes.d.ts +5 -0
- package/dist/container/module-shapes.d.ts.map +1 -1
- package/dist/container/platform-modules.d.ts.map +1 -1
- package/dist/container/platform-modules.js +14 -1
- package/dist/container/platform-modules.js.map +1 -1
- package/dist/container.d.ts +20 -2
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +14 -0
- package/dist/container.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/board/BoardService.d.ts +2 -0
- package/dist/modules/board/BoardService.d.ts.map +1 -1
- package/dist/modules/board/BoardService.js +4 -0
- package/dist/modules/board/BoardService.js.map +1 -1
- package/dist/modules/board/publicBoardReads.d.ts +12 -0
- package/dist/modules/board/publicBoardReads.d.ts.map +1 -1
- package/dist/modules/board/publicBoardReads.js +19 -4
- package/dist/modules/board/publicBoardReads.js.map +1 -1
- package/dist/modules/debug/RunDebugService.d.ts +27 -1
- package/dist/modules/debug/RunDebugService.d.ts.map +1 -1
- package/dist/modules/debug/RunDebugService.js +24 -2
- package/dist/modules/debug/RunDebugService.js.map +1 -1
- package/dist/modules/debug/debug.logic.d.ts +3 -3
- package/dist/modules/debug/debug.logic.d.ts.map +1 -1
- package/dist/modules/debug/debug.logic.js +4 -1
- package/dist/modules/debug/debug.logic.js.map +1 -1
- package/dist/modules/execution/AgentDispatchController.d.ts +115 -0
- package/dist/modules/execution/AgentDispatchController.d.ts.map +1 -0
- package/dist/modules/execution/AgentDispatchController.js +307 -0
- package/dist/modules/execution/AgentDispatchController.js.map +1 -0
- package/dist/modules/execution/ExecutionService.d.ts +18 -105
- package/dist/modules/execution/ExecutionService.d.ts.map +1 -1
- package/dist/modules/execution/ExecutionService.js +77 -589
- package/dist/modules/execution/ExecutionService.js.map +1 -1
- package/dist/modules/execution/ExecutionServiceDependencies.d.ts +6 -0
- package/dist/modules/execution/ExecutionServiceDependencies.d.ts.map +1 -1
- package/dist/modules/execution/IterationCapController.d.ts +57 -0
- package/dist/modules/execution/IterationCapController.d.ts.map +1 -0
- package/dist/modules/execution/IterationCapController.js +141 -0
- package/dist/modules/execution/IterationCapController.js.map +1 -0
- package/dist/modules/execution/MergeResolver.d.ts +14 -2
- package/dist/modules/execution/MergeResolver.d.ts.map +1 -1
- package/dist/modules/execution/MergeResolver.js +83 -30
- package/dist/modules/execution/MergeResolver.js.map +1 -1
- package/dist/modules/execution/PrVerificationReportController.d.ts +23 -0
- package/dist/modules/execution/PrVerificationReportController.d.ts.map +1 -1
- package/dist/modules/execution/PrVerificationReportController.js +18 -0
- package/dist/modules/execution/PrVerificationReportController.js.map +1 -1
- package/dist/modules/execution/RunDispatcher.d.ts +31 -195
- package/dist/modules/execution/RunDispatcher.d.ts.map +1 -1
- package/dist/modules/execution/RunDispatcher.js +47 -313
- package/dist/modules/execution/RunDispatcher.js.map +1 -1
- package/dist/modules/execution/RunDispatcherDependencies.d.ts +142 -0
- package/dist/modules/execution/RunDispatcherDependencies.d.ts.map +1 -0
- package/dist/modules/execution/RunDispatcherDependencies.js +27 -0
- package/dist/modules/execution/RunDispatcherDependencies.js.map +1 -0
- package/dist/modules/execution/RunLifecycleController.d.ts +154 -0
- package/dist/modules/execution/RunLifecycleController.d.ts.map +1 -0
- package/dist/modules/execution/RunLifecycleController.js +507 -0
- package/dist/modules/execution/RunLifecycleController.js.map +1 -0
- package/dist/modules/execution/RunStateMachine.d.ts.map +1 -1
- package/dist/modules/execution/RunStateMachine.js +27 -14
- package/dist/modules/execution/RunStateMachine.js.map +1 -1
- package/dist/modules/execution/StepDecisionController.d.ts +20 -0
- package/dist/modules/execution/StepDecisionController.d.ts.map +1 -1
- package/dist/modules/execution/StepDecisionController.js +30 -0
- package/dist/modules/execution/StepDecisionController.js.map +1 -1
- package/dist/modules/execution/policy-types.d.ts +14 -1
- package/dist/modules/execution/policy-types.d.ts.map +1 -1
- package/dist/modules/execution/prReport.commands.d.ts +54 -0
- package/dist/modules/execution/prReport.commands.d.ts.map +1 -0
- package/dist/modules/execution/prReport.commands.js +316 -0
- package/dist/modules/execution/prReport.commands.js.map +1 -0
- package/dist/modules/execution/prReport.environments.d.ts +11 -0
- package/dist/modules/execution/prReport.environments.d.ts.map +1 -1
- package/dist/modules/execution/prReport.environments.js +9 -1
- package/dist/modules/execution/prReport.environments.js.map +1 -1
- package/dist/modules/execution/prReport.logic.d.ts.map +1 -1
- package/dist/modules/execution/prReport.logic.js +23 -2
- package/dist/modules/execution/prReport.logic.js.map +1 -1
- package/dist/modules/execution/reproductionProof.logic.js +1 -1
- package/dist/modules/execution/reproductionProof.logic.js.map +1 -1
- package/dist/modules/execution/retry.logic.d.ts +3 -2
- package/dist/modules/execution/retry.logic.d.ts.map +1 -1
- package/dist/modules/execution/retry.logic.js +14 -2
- package/dist/modules/execution/retry.logic.js.map +1 -1
- package/dist/modules/execution/run-action-controllers.d.ts +18 -0
- package/dist/modules/execution/run-action-controllers.d.ts.map +1 -0
- package/dist/modules/execution/run-action-controllers.js +19 -0
- package/dist/modules/execution/run-action-controllers.js.map +1 -0
- package/dist/modules/execution/runMode.logic.d.ts +78 -0
- package/dist/modules/execution/runMode.logic.d.ts.map +1 -0
- package/dist/modules/execution/runMode.logic.js +78 -0
- package/dist/modules/execution/runMode.logic.js.map +1 -0
- package/dist/modules/execution/runStartOptions.d.ts +16 -1
- package/dist/modules/execution/runStartOptions.d.ts.map +1 -1
- package/dist/modules/merge/RiskPolicyService.d.ts.map +1 -1
- package/dist/modules/merge/RiskPolicyService.js +4 -0
- package/dist/modules/merge/RiskPolicyService.js.map +1 -1
- package/dist/modules/observability/LlmObservabilityService.d.ts +35 -4
- package/dist/modules/observability/LlmObservabilityService.d.ts.map +1 -1
- package/dist/modules/observability/LlmObservabilityService.js +43 -7
- package/dist/modules/observability/LlmObservabilityService.js.map +1 -1
- package/dist/modules/observability/observability.logic.d.ts +12 -2
- package/dist/modules/observability/observability.logic.d.ts.map +1 -1
- package/dist/modules/observability/observability.logic.js +31 -2
- package/dist/modules/observability/observability.logic.js.map +1 -1
- package/dist/modules/tutorial/TutorialProgressService.d.ts +51 -0
- package/dist/modules/tutorial/TutorialProgressService.d.ts.map +1 -0
- package/dist/modules/tutorial/TutorialProgressService.js +111 -0
- package/dist/modules/tutorial/TutorialProgressService.js.map +1 -0
- package/dist/modules/tutorial/TutorialTelemetryService.d.ts +47 -0
- package/dist/modules/tutorial/TutorialTelemetryService.d.ts.map +1 -0
- package/dist/modules/tutorial/TutorialTelemetryService.js +67 -0
- package/dist/modules/tutorial/TutorialTelemetryService.js.map +1 -0
- package/package.json +11 -11
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { noopLogger } from '@cat-factory/kernel';
|
|
2
|
+
/**
|
|
3
|
+
* How many DISTINCT tour ids one process (one isolate, on the Worker) will report as its own
|
|
4
|
+
* dimension value before folding the rest onto {@link OTHER_TOUR}.
|
|
5
|
+
*
|
|
6
|
+
* Sized well above any real catalog — the built-ins ship 13, and a deployment contributing its own
|
|
7
|
+
* is still counted in tens — so a healthy deployment never reaches it and an overflow is a genuine
|
|
8
|
+
* signal rather than a routine truncation.
|
|
9
|
+
*/
|
|
10
|
+
export const MAX_DISTINCT_TOURS = 64;
|
|
11
|
+
/** The bucket every id past the cap is counted under. Visible in the data, never dropped. */
|
|
12
|
+
export const OTHER_TOUR = 'other';
|
|
13
|
+
const COUNTER = {
|
|
14
|
+
started: 'tutorial.tour_started',
|
|
15
|
+
completed: 'tutorial.tour_completed',
|
|
16
|
+
abandoned: 'tutorial.tour_abandoned',
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Counts in-app tutorial funnel events, with the one thing a browser-supplied metric dimension
|
|
20
|
+
* cannot be trusted to be: BOUNDED.
|
|
21
|
+
*
|
|
22
|
+
* Every distinct dimension value is its own time series in the operator's backend, so an
|
|
23
|
+
* unbounded one costs them money and eventually gets the whole series dropped. The wire schema
|
|
24
|
+
* already constrains an id's SHAPE, which stops junk but not volume: a buggy or hostile client can
|
|
25
|
+
* still emit an unlimited number of well-formed ids. So this holds the set it has already reported
|
|
26
|
+
* and folds everything past {@link MAX_DISTINCT_TOURS} onto {@link OTHER_TOUR}.
|
|
27
|
+
*
|
|
28
|
+
* The overflow is REPORTED, not silently absorbed, in both the ways that matter: the `other` series
|
|
29
|
+
* exists in the data (so a reader can see that something was folded rather than concluding the tail
|
|
30
|
+
* was never sent), and the first overflow logs once, naming the cap. A cap nobody can see reads
|
|
31
|
+
* exactly like complete coverage.
|
|
32
|
+
*
|
|
33
|
+
* Per process rather than shared, matching the collector it feeds: a counter is accumulated and
|
|
34
|
+
* flushed per process on Node and per ISOLATE on the Worker, so a cap held anywhere else would be
|
|
35
|
+
* a different scope from the thing it is protecting.
|
|
36
|
+
*/
|
|
37
|
+
export class TutorialTelemetryService {
|
|
38
|
+
deps;
|
|
39
|
+
log;
|
|
40
|
+
seen = new Set();
|
|
41
|
+
overflowReported = false;
|
|
42
|
+
constructor(deps) {
|
|
43
|
+
this.deps = deps;
|
|
44
|
+
this.log = deps.logger ?? noopLogger;
|
|
45
|
+
}
|
|
46
|
+
record(event, tourId) {
|
|
47
|
+
this.deps.metrics.increment(COUNTER[event], { tour: this.dimension(tourId) });
|
|
48
|
+
}
|
|
49
|
+
/** The bounded dimension value for a tour id: itself, or the overflow bucket. */
|
|
50
|
+
dimension(tourId) {
|
|
51
|
+
if (this.seen.has(tourId))
|
|
52
|
+
return tourId;
|
|
53
|
+
if (this.seen.size < MAX_DISTINCT_TOURS) {
|
|
54
|
+
this.seen.add(tourId);
|
|
55
|
+
return tourId;
|
|
56
|
+
}
|
|
57
|
+
if (!this.overflowReported) {
|
|
58
|
+
this.overflowReported = true;
|
|
59
|
+
this.log.warn('Tutorial event dimension cap reached; further tours counted as "other"', {
|
|
60
|
+
limit: MAX_DISTINCT_TOURS,
|
|
61
|
+
tourId,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return OTHER_TOUR;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=TutorialTelemetryService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TutorialTelemetryService.js","sourceRoot":"","sources":["../../../src/modules/tutorial/TutorialTelemetryService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEpC,6FAA6F;AAC7F,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAA;AAEjC,MAAM,OAAO,GAA8C;IACzD,OAAO,EAAE,uBAAuB;IAChC,SAAS,EAAE,yBAAyB;IACpC,SAAS,EAAE,yBAAyB;CACrC,CAAA;AAOD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,wBAAwB;IAKN,IAAI;IAJhB,GAAG,CAAQ;IACX,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;IACjC,gBAAgB,GAAG,KAAK,CAAA;IAEhC,YAA6B,IAA0C;oBAA1C,IAAI;QAC/B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,CAAA;IACtC,CAAC;IAED,MAAM,CAAC,KAAoB,EAAE,MAAc;QACzC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC/E,CAAC;IAED,iFAAiF;IACzE,SAAS,CAAC,MAAc;QAC9B,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;YAAE,OAAO,MAAM,CAAA;QACxC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,kBAAkB,EAAE,CAAC;YACxC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YACrB,OAAO,MAAM,CAAA;QACf,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAA;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,wEAAwE,EAAE;gBACtF,KAAK,EAAE,kBAAkB;gBACzB,MAAM;aACP,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/orchestration",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.0",
|
|
4
4
|
"description": "Delivery-workflow engine for the Agent Architecture Board (execution, bootstrap, pipelines, board, boardScan, requirements, and composition root).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ai": "^7.0.47",
|
|
28
|
-
"@cat-factory/agents": "0.
|
|
29
|
-
"@cat-factory/caching": "0.14.
|
|
30
|
-
"@cat-factory/contracts": "0.
|
|
31
|
-
"@cat-factory/integrations": "0.
|
|
32
|
-
"@cat-factory/kernel": "0.
|
|
33
|
-
"@cat-factory/prompt-fragments": "0.15.
|
|
34
|
-
"@cat-factory/sandbox": "0.11.
|
|
35
|
-
"@cat-factory/spend": "0.
|
|
36
|
-
"@cat-factory/workspaces": "0.21.
|
|
28
|
+
"@cat-factory/agents": "0.108.0",
|
|
29
|
+
"@cat-factory/caching": "0.14.2",
|
|
30
|
+
"@cat-factory/contracts": "0.224.0",
|
|
31
|
+
"@cat-factory/integrations": "0.122.1",
|
|
32
|
+
"@cat-factory/kernel": "0.226.0",
|
|
33
|
+
"@cat-factory/prompt-fragments": "0.15.49",
|
|
34
|
+
"@cat-factory/sandbox": "0.11.43",
|
|
35
|
+
"@cat-factory/spend": "0.14.0",
|
|
36
|
+
"@cat-factory/workspaces": "0.21.36"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "7.0.2",
|
|
40
40
|
"vitest": "^4.1.10",
|
|
41
|
-
"@cat-factory/sandbox-fixtures": "0.7.
|
|
41
|
+
"@cat-factory/sandbox-fixtures": "0.7.257"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc -b tsconfig.build.json",
|