@cat-factory/orchestration 0.225.0 → 0.228.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 +23 -1
- package/dist/container/dependencies.d.ts.map +1 -1
- package/dist/container/foundation.d.ts.map +1 -1
- package/dist/container/foundation.js +17 -6
- package/dist/container/foundation.js.map +1 -1
- package/dist/container/modules.js +2 -2
- package/dist/container/modules.js.map +1 -1
- package/dist/container/platform-modules.d.ts.map +1 -1
- package/dist/container/platform-modules.js +1 -0
- package/dist/container/platform-modules.js.map +1 -1
- package/dist/container.d.ts +21 -8
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +4 -1
- package/dist/container.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/board/BoardService.d.ts +22 -9
- package/dist/modules/board/BoardService.d.ts.map +1 -1
- package/dist/modules/board/BoardService.js +42 -106
- package/dist/modules/board/BoardService.js.map +1 -1
- package/dist/modules/board/publicBoardReads.d.ts +3 -3
- package/dist/modules/board/publicBoardReads.d.ts.map +1 -1
- package/dist/modules/board/publicBoardReads.js.map +1 -1
- package/dist/modules/board/reparentWrite.d.ts +43 -0
- package/dist/modules/board/reparentWrite.d.ts.map +1 -0
- package/dist/modules/board/reparentWrite.js +126 -0
- package/dist/modules/board/reparentWrite.js.map +1 -0
- package/dist/modules/board/riskPolicySelectionGuard.d.ts +45 -4
- package/dist/modules/board/riskPolicySelectionGuard.d.ts.map +1 -1
- package/dist/modules/board/riskPolicySelectionGuard.js +84 -20
- package/dist/modules/board/riskPolicySelectionGuard.js.map +1 -1
- package/dist/modules/boardScan/BoardScanService.js +6 -6
- package/dist/modules/boardScan/BoardScanService.js.map +1 -1
- package/dist/modules/execution/ExecutionServiceDependencies.d.ts +2 -1
- package/dist/modules/execution/ExecutionServiceDependencies.d.ts.map +1 -1
- package/dist/modules/execution/MergeResolver.d.ts +3 -3
- package/dist/modules/execution/MergeResolver.d.ts.map +1 -1
- package/dist/modules/execution/MergeResolver.js +76 -34
- package/dist/modules/execution/MergeResolver.js.map +1 -1
- package/dist/modules/execution/PostMergeBoardController.d.ts.map +1 -1
- package/dist/modules/execution/PostMergeBoardController.js +6 -1
- package/dist/modules/execution/PostMergeBoardController.js.map +1 -1
- package/dist/modules/execution/RunMergePolicy.d.ts +3 -2
- package/dist/modules/execution/RunMergePolicy.d.ts.map +1 -1
- package/dist/modules/execution/RunMergePolicy.js +1 -1
- package/dist/modules/execution/RunMergePolicy.js.map +1 -1
- package/dist/modules/execution/StepGraph.d.ts.map +1 -1
- package/dist/modules/execution/StepGraph.js +20 -0
- package/dist/modules/execution/StepGraph.js.map +1 -1
- package/dist/modules/execution/policy-types.d.ts +5 -4
- package/dist/modules/execution/policy-types.d.ts.map +1 -1
- package/dist/modules/merge/RiskPolicyService.d.ts +22 -11
- package/dist/modules/merge/RiskPolicyService.d.ts.map +1 -1
- package/dist/modules/merge/RiskPolicyService.js +27 -48
- package/dist/modules/merge/RiskPolicyService.js.map +1 -1
- package/dist/modules/merge/riskPolicyResolution.d.ts +36 -4
- package/dist/modules/merge/riskPolicyResolution.d.ts.map +1 -1
- package/dist/modules/merge/riskPolicyResolution.js +36 -8
- package/dist/modules/merge/riskPolicyResolution.js.map +1 -1
- package/dist/modules/observability/retentionPass.d.ts +82 -1
- package/dist/modules/observability/retentionPass.d.ts.map +1 -1
- package/dist/modules/observability/retentionPass.js +104 -0
- package/dist/modules/observability/retentionPass.js.map +1 -1
- package/dist/modules/reports/ReportsService.d.ts +29 -6
- package/dist/modules/reports/ReportsService.d.ts.map +1 -1
- package/dist/modules/reports/ReportsService.js +64 -18
- package/dist/modules/reports/ReportsService.js.map +1 -1
- package/dist/modules/reports/reports.logic.d.ts +16 -2
- package/dist/modules/reports/reports.logic.d.ts.map +1 -1
- package/dist/modules/reports/reports.logic.js +26 -5
- package/dist/modules/reports/reports.logic.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReportActivityRow, ReportSpendRow, ReportTotals, ReportTrendPoint, ReportWindow } from '@cat-factory/contracts';
|
|
1
|
+
import type { ReportActivityRow, ReportSpendRow, ReportSpendSource, ReportTotals, ReportTrendPoint, ReportWindow } from '@cat-factory/contracts';
|
|
2
2
|
import type { ReportActivityGroup, ReportSpendGroup, ReportSpendTrendBucket } from '@cat-factory/kernel';
|
|
3
3
|
/**
|
|
4
4
|
* The window's start, snapped DOWN to a bucket edge.
|
|
@@ -12,10 +12,24 @@ import type { ReportActivityGroup, ReportSpendGroup, ReportSpendTrendBucket } fr
|
|
|
12
12
|
* nominal length; the projection reports the real `since` so the view says what it charted.
|
|
13
13
|
*/
|
|
14
14
|
export declare function alignWindowStart(until: number, windowMs: number, bucketMs: number): number;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Per-window sizing: how far back to aggregate, how wide each trend bucket is, and WHICH
|
|
17
|
+
* store answers the spend half.
|
|
18
|
+
*
|
|
19
|
+
* The two long windows read the durable `spend_days` rollup. That is not only a cost
|
|
20
|
+
* decision (though a quarter of a busy deployment's ledger is a lot of rows to group at read
|
|
21
|
+
* time): those are the windows a TCO question is actually asked over, and only the rollup
|
|
22
|
+
* carries the attribution as it stood when the money was spent. The two short windows stay on
|
|
23
|
+
* the ledger, where the rollup's sweep cadence would be visible as a missing tail.
|
|
24
|
+
*
|
|
25
|
+
* Every rollup-backed bucket is a whole number of UTC days, which is what lets a day-grained
|
|
26
|
+
* table serve them: `alignWindowStart` snaps `since` down to a bucket edge, and a multiple of
|
|
27
|
+
* one day (`30d`) or three (`90d`) is always a UTC midnight.
|
|
28
|
+
*/
|
|
16
29
|
export declare const REPORT_WINDOWS: Record<ReportWindow, {
|
|
17
30
|
windowMs: number;
|
|
18
31
|
bucketMs: number;
|
|
32
|
+
source: ReportSpendSource;
|
|
19
33
|
}>;
|
|
20
34
|
/** Widen a port spend group into its wire row (the shapes match; this pins the boundary). */
|
|
21
35
|
export declare function toSpendRow(group: ReportSpendGroup): ReportSpendRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.logic.d.ts","sourceRoot":"","sources":["../../../src/modules/reports/reports.logic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACb,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAM5B;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE1F;AAED
|
|
1
|
+
{"version":3,"file":"reports.logic.d.ts","sourceRoot":"","sources":["../../../src/modules/reports/reports.logic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACb,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAM5B;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE1F;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,YAAY,EACZ;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAA;CAAE,CAclE,CAAA;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,cAAc,CAUlE;AAED,qDAAqD;AACrD,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,GAAG,iBAAiB,CAW3E;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,YAAY,CAgB/D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,sBAAsB,EAAE,EACjC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,gBAAgB,EAAE,CAyBpB"}
|
|
@@ -15,12 +15,33 @@
|
|
|
15
15
|
export function alignWindowStart(until, windowMs, bucketMs) {
|
|
16
16
|
return Math.floor((until - windowMs) / bucketMs) * bucketMs;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Per-window sizing: how far back to aggregate, how wide each trend bucket is, and WHICH
|
|
20
|
+
* store answers the spend half.
|
|
21
|
+
*
|
|
22
|
+
* The two long windows read the durable `spend_days` rollup. That is not only a cost
|
|
23
|
+
* decision (though a quarter of a busy deployment's ledger is a lot of rows to group at read
|
|
24
|
+
* time): those are the windows a TCO question is actually asked over, and only the rollup
|
|
25
|
+
* carries the attribution as it stood when the money was spent. The two short windows stay on
|
|
26
|
+
* the ledger, where the rollup's sweep cadence would be visible as a missing tail.
|
|
27
|
+
*
|
|
28
|
+
* Every rollup-backed bucket is a whole number of UTC days, which is what lets a day-grained
|
|
29
|
+
* table serve them: `alignWindowStart` snaps `since` down to a bucket edge, and a multiple of
|
|
30
|
+
* one day (`30d`) or three (`90d`) is always a UTC midnight.
|
|
31
|
+
*/
|
|
19
32
|
export const REPORT_WINDOWS = {
|
|
20
|
-
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
'
|
|
33
|
+
// 24 × 1h buckets
|
|
34
|
+
'24h': { windowMs: 24 * 60 * 60_000, bucketMs: 60 * 60_000, source: 'ledger' },
|
|
35
|
+
// 28 × 6h buckets
|
|
36
|
+
'7d': { windowMs: 7 * 24 * 60 * 60_000, bucketMs: 6 * 60 * 60_000, source: 'ledger' },
|
|
37
|
+
// 30 × 1d buckets
|
|
38
|
+
'30d': { windowMs: 30 * 24 * 60 * 60_000, bucketMs: 24 * 60 * 60_000, source: 'daily-rollup' },
|
|
39
|
+
// 30 × 3d buckets
|
|
40
|
+
'90d': {
|
|
41
|
+
windowMs: 90 * 24 * 60 * 60_000,
|
|
42
|
+
bucketMs: 3 * 24 * 60 * 60_000,
|
|
43
|
+
source: 'daily-rollup',
|
|
44
|
+
},
|
|
24
45
|
};
|
|
25
46
|
/** Widen a port spend group into its wire row (the shapes match; this pins the boundary). */
|
|
26
47
|
export function toSpendRow(group) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.logic.js","sourceRoot":"","sources":["../../../src/modules/reports/reports.logic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reports.logic.js","sourceRoot":"","sources":["../../../src/modules/reports/reports.logic.ts"],"names":[],"mappings":"AAcA,mFAAmF;AACnF,wFAAwF;AACxF,qEAAqE;AAErE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,QAAgB,EAAE,QAAgB;IAChF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,QAAQ,CAAA;AAC7D,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,cAAc,GAGvB;IACF,kBAAkB;IAClB,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE;IAC9E,kBAAkB;IAClB,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,CAAC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QAC7B,+EAA+E;QAC/E,sFAAsF;QACtF,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;QAC1E,KAAK,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,CAAA;QACvC,KAAK,CAAC,gBAAgB,IAAI,MAAM,CAAC,gBAAgB,CAAA;QACjD,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAA;QAC3B,KAAK,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,CAAA;QACvC,KAAK,CAAC,YAAY,IAAI,MAAM,CAAC,YAAY,CAAA;QACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;IACxC,CAAC;IACD,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;AAChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/orchestration",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.228.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.51",
|
|
28
|
-
"@cat-factory/
|
|
29
|
-
"@cat-factory/
|
|
30
|
-
"@cat-factory/contracts": "0.
|
|
31
|
-
"@cat-factory/integrations": "0.
|
|
32
|
-
"@cat-factory/
|
|
33
|
-
"@cat-factory/
|
|
34
|
-
"@cat-factory/sandbox": "0.11.
|
|
35
|
-
"@cat-factory/spend": "0.15.
|
|
36
|
-
"@cat-factory/workspaces": "0.
|
|
28
|
+
"@cat-factory/agents": "0.116.6",
|
|
29
|
+
"@cat-factory/caching": "0.17.0",
|
|
30
|
+
"@cat-factory/contracts": "0.261.0",
|
|
31
|
+
"@cat-factory/integrations": "0.140.0",
|
|
32
|
+
"@cat-factory/kernel": "0.259.0",
|
|
33
|
+
"@cat-factory/prompt-fragments": "1.0.7",
|
|
34
|
+
"@cat-factory/sandbox": "0.11.84",
|
|
35
|
+
"@cat-factory/spend": "0.15.25",
|
|
36
|
+
"@cat-factory/workspaces": "0.25.0"
|
|
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.295"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc -b tsconfig.build.json",
|