@cat-factory/worker 0.51.5 → 0.52.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/infrastructure/repositories/D1MergePresetRepository.d.ts.map +1 -1
- package/dist/infrastructure/repositories/D1MergePresetRepository.js +5 -2
- package/dist/infrastructure/repositories/D1MergePresetRepository.js.map +1 -1
- package/migrations/0031_tester_quality_iterations.sql +5 -0
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"D1MergePresetRepository.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/repositories/D1MergePresetRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAA2B,MAAM,wBAAwB,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"D1MergePresetRepository.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/repositories/D1MergePresetRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAA2B,MAAM,wBAAwB,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AA0C3D;;;;;GAKG;AACH,qBAAa,uBAAwB,YAAW,qBAAqB;IACnE,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAY;IAE/B,YAAY,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,UAAU,CAAA;KAAE,EAErC;IAEK,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAM/E;IAEK,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAQ/D;IAEK,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAU1E;IAEK,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyD7E;IAEK,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3D;CACF"}
|
|
@@ -8,6 +8,7 @@ function rowToPreset(row) {
|
|
|
8
8
|
ciMaxAttempts: row.ci_max_attempts,
|
|
9
9
|
maxRequirementIterations: row.max_requirement_iterations,
|
|
10
10
|
maxRequirementConcernAllowed: row.max_requirement_concern_allowed,
|
|
11
|
+
maxTesterQualityIterations: row.max_tester_quality_iterations,
|
|
11
12
|
releaseWatchWindowMinutes: row.release_watch_window_minutes,
|
|
12
13
|
releaseMaxAttempts: row.release_max_attempts,
|
|
13
14
|
humanReviewGraceMinutes: row.human_review_grace_minutes,
|
|
@@ -65,9 +66,10 @@ export class D1MergePresetRepository {
|
|
|
65
66
|
.prepare(`INSERT INTO merge_threshold_presets
|
|
66
67
|
(workspace_id, id, name, max_complexity, max_risk, max_impact, ci_max_attempts,
|
|
67
68
|
max_requirement_iterations, max_requirement_concern_allowed,
|
|
69
|
+
max_tester_quality_iterations,
|
|
68
70
|
release_watch_window_minutes, release_max_attempts, human_review_grace_minutes,
|
|
69
71
|
auto_merge_enabled, version, is_default, created_at)
|
|
70
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
72
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
71
73
|
ON CONFLICT (workspace_id, id) DO UPDATE SET
|
|
72
74
|
name = excluded.name,
|
|
73
75
|
max_complexity = excluded.max_complexity,
|
|
@@ -76,13 +78,14 @@ export class D1MergePresetRepository {
|
|
|
76
78
|
ci_max_attempts = excluded.ci_max_attempts,
|
|
77
79
|
max_requirement_iterations = excluded.max_requirement_iterations,
|
|
78
80
|
max_requirement_concern_allowed = excluded.max_requirement_concern_allowed,
|
|
81
|
+
max_tester_quality_iterations = excluded.max_tester_quality_iterations,
|
|
79
82
|
release_watch_window_minutes = excluded.release_watch_window_minutes,
|
|
80
83
|
release_max_attempts = excluded.release_max_attempts,
|
|
81
84
|
human_review_grace_minutes = excluded.human_review_grace_minutes,
|
|
82
85
|
auto_merge_enabled = excluded.auto_merge_enabled,
|
|
83
86
|
version = excluded.version,
|
|
84
87
|
is_default = excluded.is_default`)
|
|
85
|
-
.bind(workspaceId, preset.id, preset.name, preset.maxComplexity, preset.maxRisk, preset.maxImpact, preset.ciMaxAttempts, preset.maxRequirementIterations, preset.maxRequirementConcernAllowed, preset.releaseWatchWindowMinutes, preset.releaseMaxAttempts, preset.humanReviewGraceMinutes, preset.autoMergeEnabled ? 1 : 0, preset.version ?? null, preset.isDefault ? 1 : 0, preset.createdAt)
|
|
88
|
+
.bind(workspaceId, preset.id, preset.name, preset.maxComplexity, preset.maxRisk, preset.maxImpact, preset.ciMaxAttempts, preset.maxRequirementIterations, preset.maxRequirementConcernAllowed, preset.maxTesterQualityIterations, preset.releaseWatchWindowMinutes, preset.releaseMaxAttempts, preset.humanReviewGraceMinutes, preset.autoMergeEnabled ? 1 : 0, preset.version ?? null, preset.isDefault ? 1 : 0, preset.createdAt)
|
|
86
89
|
.run();
|
|
87
90
|
}
|
|
88
91
|
async remove(workspaceId, id) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"D1MergePresetRepository.js","sourceRoot":"","sources":["../../../src/infrastructure/repositories/D1MergePresetRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"D1MergePresetRepository.js","sourceRoot":"","sources":["../../../src/infrastructure/repositories/D1MergePresetRepository.ts"],"names":[],"mappings":"AAuBA,SAAS,WAAW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AgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/B,MAAM,CAAC,OAAO,IAAI,IAAI,EACtB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACxB,MAAM,CAAC,SAAS,CACjB;aACA,GAAG,EAAE,CAAA;IACV,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,WAAmB,EAAE,EAAU;QAC1C,MAAM,IAAI,CAAC,EAAE;aACV,OAAO,CACN,0FAA0F,CAC3F;aACA,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;aACrB,GAAG,EAAE,CAAA;IACV,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
-- Test quality-control companion: per-preset budget for how many times the QC companion
|
|
2
|
+
-- may loop the Tester for a more complete report before letting the run proceed to the
|
|
3
|
+
-- greenlight / fixer decision. Default 3, matching DEFAULT_MERGE_PRESET.
|
|
4
|
+
ALTER TABLE merge_threshold_presets
|
|
5
|
+
ADD COLUMN max_tester_quality_iterations INTEGER NOT NULL DEFAULT 3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/worker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.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,19 +42,19 @@
|
|
|
42
42
|
"pino": "^10.3.1",
|
|
43
43
|
"valibot": "^1.4.2",
|
|
44
44
|
"workers-ai-provider": "^3.2.1",
|
|
45
|
-
"@cat-factory/agents": "0.
|
|
46
|
-
"@cat-factory/consensus": "0.8.
|
|
47
|
-
"@cat-factory/contracts": "0.
|
|
48
|
-
"@cat-factory/gates": "0.2.
|
|
49
|
-
"@cat-factory/gitlab": "0.4.
|
|
50
|
-
"@cat-factory/integrations": "0.52.
|
|
51
|
-
"@cat-factory/kernel": "0.
|
|
52
|
-
"@cat-factory/observability-langfuse": "0.7.
|
|
53
|
-
"@cat-factory/orchestration": "0.
|
|
54
|
-
"@cat-factory/prompt-fragments": "0.9.
|
|
55
|
-
"@cat-factory/provider-cloudflare": "0.7.
|
|
56
|
-
"@cat-factory/server": "0.64.
|
|
57
|
-
"@cat-factory/spend": "0.10.
|
|
45
|
+
"@cat-factory/agents": "0.26.0",
|
|
46
|
+
"@cat-factory/consensus": "0.8.1",
|
|
47
|
+
"@cat-factory/contracts": "0.78.0",
|
|
48
|
+
"@cat-factory/gates": "0.2.59",
|
|
49
|
+
"@cat-factory/gitlab": "0.4.30",
|
|
50
|
+
"@cat-factory/integrations": "0.52.1",
|
|
51
|
+
"@cat-factory/kernel": "0.68.0",
|
|
52
|
+
"@cat-factory/observability-langfuse": "0.7.102",
|
|
53
|
+
"@cat-factory/orchestration": "0.55.0",
|
|
54
|
+
"@cat-factory/prompt-fragments": "0.9.33",
|
|
55
|
+
"@cat-factory/provider-cloudflare": "0.7.106",
|
|
56
|
+
"@cat-factory/server": "0.64.2",
|
|
57
|
+
"@cat-factory/spend": "0.10.63"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@cloudflare/vitest-pool-workers": "^0.16.20",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"typescript": "7.0.1-rc",
|
|
63
63
|
"vitest": "^4.1.9",
|
|
64
64
|
"wrangler": "^4.105.0",
|
|
65
|
-
"@cat-factory/conformance": "0.9.
|
|
65
|
+
"@cat-factory/conformance": "0.9.79"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsc -b tsconfig.build.json",
|