@cat-factory/server 0.139.0 → 0.140.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrReviewController.d.ts","sourceRoot":"","sources":["../../../src/modules/prReview/PrReviewController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PrReviewController.d.ts","sourceRoot":"","sources":["../../../src/modules/prReview/PrReviewController.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAG/C;;;;;;GAMG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAAC,MAAM,CAAC,CAuDjD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getPrReviewContract, resolvePrReviewContract } from '@cat-factory/contracts';
|
|
1
|
+
import { challengePrReviewFindingContract, dismissPrReviewFindingContract, getPrReviewContract, resolvePrReviewContract, } from '@cat-factory/contracts';
|
|
2
2
|
import { buildHonoRoute } from '@toad-contracts/hono';
|
|
3
3
|
import { Hono } from 'hono';
|
|
4
4
|
import { runWithInitiator } from '../../github/runInitiatorContext.js';
|
|
@@ -31,6 +31,25 @@ export function prReviewController() {
|
|
|
31
31
|
.executionService.resolvePrReview(param(c, 'workspaceId'), executionId, input));
|
|
32
32
|
return c.json(state, 200);
|
|
33
33
|
});
|
|
34
|
+
// Dismiss a parked finding entirely (curation, not a resolution — the run stays parked).
|
|
35
|
+
buildHonoRoute(app, dismissPrReviewFindingContract, async (c) => {
|
|
36
|
+
const { executionId, findingId } = c.req.valid('param');
|
|
37
|
+
const state = await c
|
|
38
|
+
.get('container')
|
|
39
|
+
.executionService.dismissPrReviewFinding(param(c, 'workspaceId'), executionId, findingId);
|
|
40
|
+
return c.json(state, 200);
|
|
41
|
+
});
|
|
42
|
+
// Challenge a parked finding: dispatch the Challenge Investigator to re-examine it. Runs under
|
|
43
|
+
// the acting user's ambient context (the investigator dispatch mints tokens like other run work).
|
|
44
|
+
buildHonoRoute(app, challengePrReviewFindingContract, async (c) => {
|
|
45
|
+
const { executionId, findingId } = c.req.valid('param');
|
|
46
|
+
const input = c.req.valid('json');
|
|
47
|
+
const userId = c.get('user')?.id;
|
|
48
|
+
const state = await runWithInitiator(userId, () => c
|
|
49
|
+
.get('container')
|
|
50
|
+
.executionService.challengePrReviewFinding(param(c, 'workspaceId'), executionId, findingId, input));
|
|
51
|
+
return c.json(state, 200);
|
|
52
|
+
});
|
|
34
53
|
return app;
|
|
35
54
|
}
|
|
36
55
|
//# sourceMappingURL=PrReviewController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrReviewController.js","sourceRoot":"","sources":["../../../src/modules/prReview/PrReviewController.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PrReviewController.js","sourceRoot":"","sources":["../../../src/modules/prReview/PrReviewController.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB;IAChC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAU,CAAA;IAE9B,gFAAgF;IAChF,cAAc,CAAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;QACnD,MAAM,KAAK,GAAG,MAAM,CAAC;aAClB,GAAG,CAAC,WAAW,CAAC;aAChB,gBAAgB,CAAC,WA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AAW,EAAE,SAAS,CAAC,CAAA;QAC3F,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IAEF,+FAA+F;IAC/F,kGAAkG;IAClG,cAAc,CAAC,GAAG,EAAE,gCAAgC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;QAChE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QACvD,MAAM,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACjC,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAA;QAChC,MAAM,KAAK,GAAG,MAAM,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAChD,CAAC;aACE,GAAG,CAAC,WAAW,CAAC;aAChB,gBAAgB,CAAC,wBAAwB,CACxC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC,EACvB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CACJ,CAAA;QACD,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.0",
|
|
4
4
|
"description": "Runtime-neutral HTTP layer for the Agent Architecture Board: the Hono controllers, middleware (auth/authz/CORS/error), request helpers and the gateway seams shared by every deployment facade (Cloudflare Worker, Node service).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"p-map": "^7.0.5",
|
|
32
32
|
"pino": "^10.3.1",
|
|
33
33
|
"valibot": "^1.4.2",
|
|
34
|
-
"@cat-factory/
|
|
35
|
-
"@cat-factory/
|
|
36
|
-
"@cat-factory/
|
|
37
|
-
"@cat-factory/
|
|
38
|
-
"@cat-factory/
|
|
39
|
-
"@cat-factory/prompt-fragments": "0.13.
|
|
40
|
-
"@cat-factory/spend": "0.12.
|
|
34
|
+
"@cat-factory/integrations": "0.88.13",
|
|
35
|
+
"@cat-factory/agents": "0.67.0",
|
|
36
|
+
"@cat-factory/kernel": "0.148.1",
|
|
37
|
+
"@cat-factory/orchestration": "0.131.0",
|
|
38
|
+
"@cat-factory/contracts": "0.154.0",
|
|
39
|
+
"@cat-factory/prompt-fragments": "0.13.47",
|
|
40
|
+
"@cat-factory/spend": "0.12.67"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^26.1.1",
|