@cat-factory/contracts 0.342.0 → 0.344.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/agent-presentation.d.ts +2 -2
- package/dist/bugFishing.d.ts +379 -0
- package/dist/bugFishing.d.ts.map +1 -0
- package/dist/bugFishing.js +412 -0
- package/dist/bugFishing.js.map +1 -0
- package/dist/deploy-fix.d.ts +53 -3
- package/dist/deploy-fix.d.ts.map +1 -1
- package/dist/deploy-fix.js +39 -2
- package/dist/deploy-fix.js.map +1 -1
- package/dist/entities.d.ts +18 -1
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +15 -0
- package/dist/entities.js.map +1 -1
- package/dist/environment-investigation.d.ts +55 -5
- package/dist/environment-investigation.d.ts.map +1 -1
- package/dist/environment-investigation.js +19 -2
- package/dist/environment-investigation.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +18 -0
- package/dist/errors.js.map +1 -1
- package/dist/execution.d.ts +107 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +12 -0
- package/dist/execution.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/initiative.d.ts +15 -5
- package/dist/initiative.d.ts.map +1 -1
- package/dist/notification-routing.d.ts +3 -3
- package/dist/notification-webhooks.d.ts +7 -5
- package/dist/notification-webhooks.d.ts.map +1 -1
- package/dist/notifications.d.ts +25 -3
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +17 -0
- package/dist/notifications.js.map +1 -1
- package/dist/pipeline-purpose.d.ts +4 -0
- package/dist/pipeline-purpose.d.ts.map +1 -1
- package/dist/pipeline-purpose.js +6 -0
- package/dist/pipeline-purpose.js.map +1 -1
- package/dist/pr-report.d.ts +414 -6
- package/dist/pr-report.d.ts.map +1 -1
- package/dist/pr-report.js +143 -2
- package/dist/pr-report.js.map +1 -1
- package/dist/primitives.d.ts +71 -7
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +24 -1
- package/dist/primitives.js.map +1 -1
- package/dist/public-api.d.ts +6 -4
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-task-types.d.ts.map +1 -1
- package/dist/public-task-types.js +20 -0
- package/dist/public-task-types.js.map +1 -1
- package/dist/recurring.d.ts +12 -8
- package/dist/recurring.d.ts.map +1 -1
- package/dist/recurring.js +10 -5
- package/dist/recurring.js.map +1 -1
- package/dist/requests.d.ts +47 -7
- package/dist/requests.d.ts.map +1 -1
- package/dist/result-views.d.ts +1 -1
- package/dist/result-views.d.ts.map +1 -1
- package/dist/result-views.js +1 -0
- package/dist/result-views.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +86 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/board.d.ts +99 -20
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/bug-hunt.d.ts +94 -2
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/bugFishing.d.ts +307 -0
- package/dist/routes/bugFishing.d.ts.map +1 -0
- package/dist/routes/bugFishing.js +51 -0
- package/dist/routes/bugFishing.js.map +1 -0
- package/dist/routes/execution.d.ts +438 -2
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +43 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +215 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/initiative.d.ts +52 -17
- package/dist/routes/initiative.d.ts.map +1 -1
- package/dist/routes/notification-webhooks.d.ts +14 -14
- package/dist/routes/notifications.d.ts +12 -6
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/public-api.d.ts +17 -11
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-board.d.ts +2 -2
- package/dist/routes/public-evidence.d.ts +24 -1
- package/dist/routes/public-evidence.d.ts.map +1 -1
- package/dist/routes/recurring.d.ts +5 -5
- package/dist/routes/slack.d.ts +3 -3
- package/dist/routes/tasks.d.ts +12 -3
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +129 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspace-settings.d.ts +6 -3
- package/dist/routes/workspace-settings.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +122 -14
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +61 -7
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/testing.d.ts +11 -0
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +11 -0
- package/dist/testing.js.map +1 -1
- package/dist/workspace-settings.d.ts +26 -3
- package/dist/workspace-settings.d.ts.map +1 -1
- package/dist/workspace-settings.js +23 -0
- package/dist/workspace-settings.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { addressBugFishingFindingsSchema, bugFishingStepStateSchema, resolveBugFishingSchema, } from '../bugFishing.js';
|
|
4
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Bug-fishing expedition route contracts. Mounted under `/workspaces/:workspaceId`,
|
|
7
|
+
// so the paths here are relative to that prefix. The read returns the run's active
|
|
8
|
+
// expedition state (or null when no `bug-fisher` step carries one); `address` marks
|
|
9
|
+
// findings and spawns a bug-fix task per marked finding; `dismiss` drops one from
|
|
10
|
+
// triage; `resolve` finishes a parked expedition. See BugFishingController in
|
|
11
|
+
// @cat-factory/server.
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
const executionIdParams = singleStringParam('executionId');
|
|
14
|
+
const findingParams = withObjectKeys(v.object({ executionId: v.string(), findingId: v.string() }));
|
|
15
|
+
export const getBugFishingContract = defineApiContract({
|
|
16
|
+
method: 'get',
|
|
17
|
+
requestPathParamsSchema: executionIdParams,
|
|
18
|
+
pathResolver: ({ executionId }) => `/executions/${executionId}/bug-fishing`,
|
|
19
|
+
responsesByStatusCode: { 200: v.nullable(bugFishingStepStateSchema), ...errorResponses },
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Mark findings to be addressed: each spawns its own bug-fix task linked to the expedition.
|
|
23
|
+
*
|
|
24
|
+
* Deliberately accepted while the expedition is STILL FISHING later phases as well as once it
|
|
25
|
+
* parks: a completed phase's findings are actionable the moment they land, and making a human
|
|
26
|
+
* wait for the last angle is exactly the delay running the angles separately is meant to avoid.
|
|
27
|
+
*/
|
|
28
|
+
export const addressBugFishingFindingsContract = defineApiContract({
|
|
29
|
+
method: 'post',
|
|
30
|
+
requestPathParamsSchema: executionIdParams,
|
|
31
|
+
pathResolver: ({ executionId }) => `/executions/${executionId}/bug-fishing/address`,
|
|
32
|
+
requestBodySchema: addressBugFishingFindingsSchema,
|
|
33
|
+
responsesByStatusCode: { 200: bugFishingStepStateSchema, ...errorResponses },
|
|
34
|
+
});
|
|
35
|
+
/** Dismiss a finding: it stays on the expedition's record, struck through, and is not spawnable. */
|
|
36
|
+
export const dismissBugFishingFindingContract = defineApiContract({
|
|
37
|
+
method: 'post',
|
|
38
|
+
requestPathParamsSchema: findingParams,
|
|
39
|
+
pathResolver: ({ executionId, findingId }) => `/executions/${executionId}/bug-fishing/findings/${findingId}/dismiss`,
|
|
40
|
+
requestBodySchema: resolveBugFishingSchema,
|
|
41
|
+
responsesByStatusCode: { 200: bugFishingStepStateSchema, ...errorResponses },
|
|
42
|
+
});
|
|
43
|
+
/** Finish a parked expedition (the human is done triaging); the run advances past the step. */
|
|
44
|
+
export const resolveBugFishingContract = defineApiContract({
|
|
45
|
+
method: 'post',
|
|
46
|
+
requestPathParamsSchema: executionIdParams,
|
|
47
|
+
pathResolver: ({ executionId }) => `/executions/${executionId}/bug-fishing/resolve`,
|
|
48
|
+
requestBodySchema: resolveBugFishingSchema,
|
|
49
|
+
responsesByStatusCode: { 200: bugFishingStepStateSchema, ...errorResponses },
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=bugFishing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugFishing.js","sourceRoot":"","sources":["../../src/routes/bugFishing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,oFAAoF;AACpF,mFAAmF;AACnF,oFAAoF;AACpF,kFAAkF;AAClF,8EAA8E;AAC9E,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAA;AAC1D,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AAElG,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,cAAc;IAC3E,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,Q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