@mastra/factory 0.26.0-alpha.0 → 0.26.0-alpha.2
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/README.md +158 -57
- package/dist/auth.d.ts.map +1 -1
- package/dist/boards/card-facts.d.ts +5 -0
- package/dist/boards/card-facts.d.ts.map +1 -0
- package/dist/boards/card-facts.js +19 -0
- package/dist/boards/card-facts.js.map +1 -0
- package/dist/boards/define-board.d.ts +109 -13
- package/dist/boards/define-board.d.ts.map +1 -1
- package/dist/boards/define-board.js +163 -21
- package/dist/boards/define-board.js.map +1 -1
- package/dist/boards/index.d.ts +4 -3
- package/dist/boards/index.d.ts.map +1 -1
- package/dist/boards/index.js +3 -2
- package/dist/boards/index.js.map +1 -1
- package/dist/boards/legacy-plan-role.d.ts +14 -0
- package/dist/boards/legacy-plan-role.d.ts.map +1 -0
- package/dist/boards/legacy-plan-role.js +32 -0
- package/dist/boards/legacy-plan-role.js.map +1 -0
- package/dist/boards/phase-automation.d.ts +13 -0
- package/dist/boards/phase-automation.d.ts.map +1 -0
- package/dist/boards/phase-automation.js +25 -0
- package/dist/boards/phase-automation.js.map +1 -0
- package/dist/boards/phase-runner.d.ts +13 -0
- package/dist/boards/phase-runner.d.ts.map +1 -0
- package/dist/boards/phase-runner.js +44 -0
- package/dist/boards/phase-runner.js.map +1 -0
- package/dist/boards/relocate.d.ts.map +1 -1
- package/dist/boards/relocate.js +2 -0
- package/dist/boards/relocate.js.map +1 -1
- package/dist/boards/review.d.ts +1 -1
- package/dist/boards/review.d.ts.map +1 -1
- package/dist/boards/review.js +18 -18
- package/dist/boards/review.js.map +1 -1
- package/dist/boards/semantics.d.ts.map +1 -1
- package/dist/boards/semantics.js +11 -7
- package/dist/boards/semantics.js.map +1 -1
- package/dist/boards/transition-policy.d.ts +10 -10
- package/dist/boards/work-tool-rules.d.ts +3 -3
- package/dist/boards/work-tool-rules.d.ts.map +1 -1
- package/dist/boards/work-tool-rules.js +1 -1
- package/dist/boards/work-tool-rules.js.map +1 -1
- package/dist/boards/work.d.ts +3 -3
- package/dist/boards/work.d.ts.map +1 -1
- package/dist/boards/work.js +31 -29
- package/dist/boards/work.js.map +1 -1
- package/dist/environment/build-runner.d.ts +4 -4
- package/dist/environment/build-runner.d.ts.map +1 -1
- package/dist/environment/build-workflow.d.ts +6 -6
- package/dist/environment/build-workflow.js +1 -1
- package/dist/environment/build.d.ts +2 -2
- package/dist/environment/build.d.ts.map +1 -1
- package/dist/environment/build.js +2 -0
- package/dist/environment/build.js.map +1 -1
- package/dist/factory.d.ts +8 -0
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +8 -2
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/integrations/github/app-identity.d.ts.map +1 -1
- package/dist/integrations/github/default-rules.d.ts +71 -71
- package/dist/integrations/github/default-rules.d.ts.map +1 -1
- package/dist/integrations/github/integration.d.ts +5 -4
- package/dist/integrations/github/integration.d.ts.map +1 -1
- package/dist/integrations/github/integration.js +10 -8
- package/dist/integrations/github/integration.js.map +1 -1
- package/dist/integrations/github/reconcile-worker.d.ts.map +1 -1
- package/dist/integrations/github/rules.d.ts.map +1 -1
- package/dist/integrations/github/sandbox.d.ts +2 -2
- package/dist/integrations/github/sandbox.d.ts.map +1 -1
- package/dist/integrations/github/sandbox.js +6 -1
- package/dist/integrations/github/sandbox.js.map +1 -1
- package/dist/integrations/gitlab/api.d.ts.map +1 -1
- package/dist/integrations/gitlab/default-rules.d.ts +38 -38
- package/dist/integrations/gitlab/default-rules.d.ts.map +1 -1
- package/dist/integrations/gitlab/integration.d.ts.map +1 -1
- package/dist/integrations/gitlab/rules.d.ts.map +1 -1
- package/dist/integrations/incidentio/api.d.ts.map +1 -1
- package/dist/integrations/incidentio/default-rules.d.ts +3 -3
- package/dist/integrations/incidentio/default-rules.d.ts.map +1 -1
- package/dist/integrations/incidentio/integration.d.ts.map +1 -1
- package/dist/integrations/incidentio/rules.d.ts.map +1 -1
- package/dist/integrations/issue-reconcile-worker.d.ts.map +1 -1
- package/dist/integrations/jira/api.d.ts +1 -1
- package/dist/integrations/jira/api.d.ts.map +1 -1
- package/dist/integrations/jira/default-rules.d.ts +3 -3
- package/dist/integrations/jira/default-rules.d.ts.map +1 -1
- package/dist/integrations/jira/integration.d.ts.map +1 -1
- package/dist/integrations/jira/rules.d.ts.map +1 -1
- package/dist/integrations/linear/default-rules.d.ts +8 -8
- package/dist/integrations/linear/default-rules.d.ts.map +1 -1
- package/dist/integrations/linear/integration.d.ts.map +1 -1
- package/dist/integrations/linear/rules.d.ts.map +1 -1
- package/dist/integrations/platform/api-client.d.ts.map +1 -1
- package/dist/integrations/platform/github/event-worker.d.ts.map +1 -1
- package/dist/integrations/platform/github/integration.d.ts +5 -0
- package/dist/integrations/platform/github/integration.d.ts.map +1 -1
- package/dist/integrations/platform/github/integration.js +7 -0
- package/dist/integrations/platform/github/integration.js.map +1 -1
- package/dist/integrations/platform/gitlab/event-worker.d.ts.map +1 -1
- package/dist/integrations/platform/gitlab/integration.d.ts.map +1 -1
- package/dist/integrations/platform/incidentio/integration.d.ts.map +1 -1
- package/dist/integrations/platform/jira/integration.d.ts.map +1 -1
- package/dist/integrations/platform/linear/event-worker.d.ts.map +1 -1
- package/dist/integrations/platform/linear/integration.d.ts.map +1 -1
- package/dist/integrations/slack/channel-reply-processor.d.ts.map +1 -1
- package/dist/integrations/slack/channel-session-link-processor.d.ts.map +1 -1
- package/dist/integrations/slack/feed-publisher.d.ts.map +1 -1
- package/dist/integrations/slack/integration.d.ts.map +1 -1
- package/dist/integrations/slack/reply-reminder-processor.d.ts.map +1 -1
- package/dist/integrations/slack/reply-tool.d.ts.map +1 -1
- package/dist/integrations/slack/slack.d.ts.map +1 -1
- package/dist/integrations/workos/integration.d.ts.map +1 -1
- package/dist/mcp/events.d.ts +3 -3
- package/dist/mcp/routes.js +1 -1
- package/dist/routes/attention-activity.d.ts +1 -1
- package/dist/routes/attention-activity.d.ts.map +1 -1
- package/dist/routes/attention-parked.d.ts +1 -1
- package/dist/routes/attention-parked.d.ts.map +1 -1
- package/dist/routes/attention-providers.d.ts +1 -1
- package/dist/routes/attention-providers.d.ts.map +1 -1
- package/dist/routes/automation-runs.d.ts.map +1 -1
- package/dist/routes/config.d.ts.map +1 -1
- package/dist/routes/contracts.d.ts +159 -136
- package/dist/routes/contracts.d.ts.map +1 -1
- package/dist/routes/contracts.js +23 -0
- package/dist/routes/contracts.js.map +1 -1
- package/dist/routes/fs.d.ts.map +1 -1
- package/dist/routes/fs.js +24 -0
- package/dist/routes/fs.js.map +1 -1
- package/dist/routes/intake.d.ts.map +1 -1
- package/dist/routes/knowledge.d.ts.map +1 -1
- package/dist/routes/oauth.d.ts.map +1 -1
- package/dist/routes/projects.d.ts.map +1 -1
- package/dist/routes/route.d.ts.map +1 -1
- package/dist/routes/skills.d.ts +3 -0
- package/dist/routes/skills.d.ts.map +1 -1
- package/dist/routes/skills.js +1 -1
- package/dist/routes/skills.js.map +1 -1
- package/dist/routes/surface.d.ts +3 -0
- package/dist/routes/surface.d.ts.map +1 -1
- package/dist/routes/surface.js +24 -22
- package/dist/routes/surface.js.map +1 -1
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/tenant-credentials.d.ts.map +1 -1
- package/dist/routes/work-items.d.ts.map +1 -1
- package/dist/routes/work-items.js +19 -3
- package/dist/routes/work-items.js.map +1 -1
- package/dist/rules/decision-applicability.d.ts.map +1 -1
- package/dist/rules/decision-applicability.js +3 -1
- package/dist/rules/decision-applicability.js.map +1 -1
- package/dist/rules/dispatch-errors.d.ts.map +1 -1
- package/dist/rules/dispatch-errors.js +4 -0
- package/dist/rules/dispatch-errors.js.map +1 -1
- package/dist/rules/dispatcher.d.ts.map +1 -1
- package/dist/rules/dispatcher.js +17 -3
- package/dist/rules/dispatcher.js.map +1 -1
- package/dist/rules/processor.d.ts.map +1 -1
- package/dist/rules/processor.js +4 -2
- package/dist/rules/processor.js.map +1 -1
- package/dist/rules/rule-group.d.ts +29 -0
- package/dist/rules/rule-group.d.ts.map +1 -0
- package/dist/rules/rule-group.js +141 -0
- package/dist/rules/rule-group.js.map +1 -0
- package/dist/rules/start-coordinator.d.ts.map +1 -1
- package/dist/rules/terminal-cleanup.d.ts.map +1 -1
- package/dist/rules/tools.d.ts +1 -1
- package/dist/rules/tools.d.ts.map +1 -1
- package/dist/rules/transition-service.d.ts.map +1 -1
- package/dist/rules/transition-service.js +5 -3
- package/dist/rules/transition-service.js.map +1 -1
- package/dist/rules/types.d.ts +25 -14
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/rules/types.js.map +1 -1
- package/dist/rules/validation.d.ts +2 -0
- package/dist/rules/validation.d.ts.map +1 -1
- package/dist/rules/validation.js +6 -3
- package/dist/rules/validation.js.map +1 -1
- package/dist/sandbox/callback-factory-sandbox.d.ts.map +1 -1
- package/dist/sandbox/local-factory-sandbox.d.ts +4 -1
- package/dist/sandbox/local-factory-sandbox.d.ts.map +1 -1
- package/dist/sandbox/local-factory-sandbox.js +1 -1
- package/dist/sandbox/local-factory-sandbox.js.map +1 -1
- package/dist/sandbox/session-retirement.d.ts.map +1 -1
- package/dist/session/environment-state-processor.d.ts.map +1 -1
- package/dist/session/factory-session.d.ts.map +1 -1
- package/dist/session/live-sessions.d.ts.map +1 -1
- package/dist/session/reply-credential-processor.d.ts.map +1 -1
- package/dist/session/run-audit.d.ts +1 -1
- package/dist/session/run-audit.d.ts.map +1 -1
- package/dist/skills/app-skills.d.ts +11 -0
- package/dist/skills/app-skills.d.ts.map +1 -0
- package/dist/skills/app-skills.js +37 -0
- package/dist/skills/app-skills.js.map +1 -0
- package/dist/skills/catalog.d.ts +9 -3
- package/dist/skills/catalog.d.ts.map +1 -1
- package/dist/skills/catalog.js +35 -19
- package/dist/skills/catalog.js.map +1 -1
- package/dist/skills/service.d.ts.map +1 -1
- package/dist/spa-static.d.ts.map +1 -1
- package/dist/storage/domains/audit/actions.d.ts +6 -6
- package/dist/storage/domains/audit/actions.d.ts.map +1 -1
- package/dist/storage/domains/audit/actors.d.ts +1 -1
- package/dist/storage/domains/audit/actors.d.ts.map +1 -1
- package/dist/storage/domains/audit/base.d.ts.map +1 -1
- package/dist/storage/domains/audit/domain.d.ts.map +1 -1
- package/dist/storage/domains/channel-identity/base.d.ts.map +1 -1
- package/dist/storage/domains/comments/base.d.ts.map +1 -1
- package/dist/storage/domains/comments/domain.d.ts.map +1 -1
- package/dist/storage/domains/comments/feed-context.d.ts.map +1 -1
- package/dist/storage/domains/credentials/base.d.ts.map +1 -1
- package/dist/storage/domains/custom-providers/base.d.ts.map +1 -1
- package/dist/storage/domains/filesystem/base.d.ts.map +1 -1
- package/dist/storage/domains/intake/base.d.ts.map +1 -1
- package/dist/storage/domains/integrations/base.d.ts.map +1 -1
- package/dist/storage/domains/memory-settings/base.d.ts.map +1 -1
- package/dist/storage/domains/model-defaults/base.d.ts.map +1 -1
- package/dist/storage/domains/projects/base.d.ts +1 -1
- package/dist/storage/domains/projects/base.d.ts.map +1 -1
- package/dist/storage/domains/queue-health/base.d.ts.map +1 -1
- package/dist/storage/domains/source-control/base.d.ts.map +1 -1
- package/dist/storage/domains/source-control/inmemory.d.ts +5 -5
- package/dist/storage/domains/source-control/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/work-items/base.d.ts +2 -2
- package/dist/storage/domains/work-items/base.d.ts.map +1 -1
- package/dist/storage/domains/work-items/base.js +1 -0
- package/dist/storage/domains/work-items/base.js.map +1 -1
- package/dist/storage/domains/work-items/board-version.d.ts.map +1 -1
- package/dist/telemetry-types.d.ts +1 -1
- package/dist/telemetry-types.d.ts.map +1 -1
- package/dist/timing.d.ts.map +1 -1
- package/dist/tools/session-tools.d.ts.map +1 -1
- package/dist/tools/session-tools.js +3 -1
- package/dist/tools/session-tools.js.map +1 -1
- package/dist/tools/sessions-state-processor.d.ts.map +1 -1
- package/dist/tools/work-item-tools.js +1 -1
- package/dist/workspace.d.ts +15 -6
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +79 -18
- package/dist/workspace.js.map +1 -1
- package/package.json +9 -9
|
@@ -16,8 +16,8 @@ export declare const createProjectBodySchema: z.ZodObject<{
|
|
|
16
16
|
description: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string | null, string>>, z.ZodNull]>>>;
|
|
17
17
|
modelScope: z.ZodOptional<z.ZodEnum<{
|
|
18
18
|
factory: "factory";
|
|
19
|
-
user: "user";
|
|
20
19
|
hybrid: "hybrid";
|
|
20
|
+
user: "user";
|
|
21
21
|
}>>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export declare const updateProjectBodySchema: z.ZodObject<{
|
|
@@ -26,16 +26,16 @@ export declare const updateProjectBodySchema: z.ZodObject<{
|
|
|
26
26
|
defaultModelId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string | null, string>>, z.ZodNull]>>;
|
|
27
27
|
modelScope: z.ZodOptional<z.ZodEnum<{
|
|
28
28
|
factory: "factory";
|
|
29
|
-
user: "user";
|
|
30
29
|
hybrid: "hybrid";
|
|
30
|
+
user: "user";
|
|
31
31
|
}>>;
|
|
32
32
|
defaultThinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
33
|
-
|
|
33
|
+
high: "high";
|
|
34
34
|
low: "low";
|
|
35
|
+
max: "max";
|
|
35
36
|
medium: "medium";
|
|
36
|
-
|
|
37
|
+
off: "off";
|
|
37
38
|
xhigh: "xhigh";
|
|
38
|
-
max: "max";
|
|
39
39
|
}>>;
|
|
40
40
|
autoRunEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
41
41
|
autoApprovePlans: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -101,9 +101,9 @@ export declare const projectEnvironmentResponseSchema: z.ZodObject<{
|
|
|
101
101
|
setupCommand: z.ZodNullable<z.ZodString>;
|
|
102
102
|
teardownCommand: z.ZodNullable<z.ZodString>;
|
|
103
103
|
lastBuildStatus: z.ZodEnum<{
|
|
104
|
-
unbuilt: "unbuilt";
|
|
105
104
|
configured: "configured";
|
|
106
105
|
failed: "failed";
|
|
106
|
+
unbuilt: "unbuilt";
|
|
107
107
|
}>;
|
|
108
108
|
lastBuildError: z.ZodNullable<z.ZodString>;
|
|
109
109
|
lastBuiltAt: z.ZodNullable<z.ZodString>;
|
|
@@ -128,9 +128,9 @@ export declare const projectEnvironmentResponseSchema: z.ZodObject<{
|
|
|
128
128
|
}, z.core.$strip>;
|
|
129
129
|
export declare const environmentBuildStartResponseSchema: z.ZodObject<{
|
|
130
130
|
outcome: z.ZodEnum<{
|
|
131
|
-
started: "started";
|
|
132
131
|
failed: "failed";
|
|
133
132
|
skipped: "skipped";
|
|
133
|
+
started: "started";
|
|
134
134
|
unavailable: "unavailable";
|
|
135
135
|
}>;
|
|
136
136
|
buildId: z.ZodOptional<z.ZodString>;
|
|
@@ -140,11 +140,11 @@ export declare const environmentBuildStartResponseSchema: z.ZodObject<{
|
|
|
140
140
|
export declare const environmentBuildSchema: z.ZodObject<{
|
|
141
141
|
buildId: z.ZodString;
|
|
142
142
|
status: z.ZodEnum<{
|
|
143
|
-
|
|
143
|
+
building: "building";
|
|
144
144
|
failed: "failed";
|
|
145
145
|
pending: "pending";
|
|
146
146
|
ready: "ready";
|
|
147
|
-
|
|
147
|
+
unknown: "unknown";
|
|
148
148
|
}>;
|
|
149
149
|
templateId: z.ZodOptional<z.ZodString>;
|
|
150
150
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -156,11 +156,11 @@ export declare const environmentBuildsResponseSchema: z.ZodObject<{
|
|
|
156
156
|
builds: z.ZodArray<z.ZodObject<{
|
|
157
157
|
buildId: z.ZodString;
|
|
158
158
|
status: z.ZodEnum<{
|
|
159
|
-
|
|
159
|
+
building: "building";
|
|
160
160
|
failed: "failed";
|
|
161
161
|
pending: "pending";
|
|
162
162
|
ready: "ready";
|
|
163
|
-
|
|
163
|
+
unknown: "unknown";
|
|
164
164
|
}>;
|
|
165
165
|
templateId: z.ZodOptional<z.ZodString>;
|
|
166
166
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -173,11 +173,11 @@ export declare const environmentBuildResponseSchema: z.ZodObject<{
|
|
|
173
173
|
build: z.ZodObject<{
|
|
174
174
|
buildId: z.ZodString;
|
|
175
175
|
status: z.ZodEnum<{
|
|
176
|
-
|
|
176
|
+
building: "building";
|
|
177
177
|
failed: "failed";
|
|
178
178
|
pending: "pending";
|
|
179
179
|
ready: "ready";
|
|
180
|
-
|
|
180
|
+
unknown: "unknown";
|
|
181
181
|
}>;
|
|
182
182
|
templateId: z.ZodOptional<z.ZodString>;
|
|
183
183
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -252,15 +252,15 @@ export declare const transitionBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
252
252
|
cause: z.ZodString;
|
|
253
253
|
reenter: z.ZodOptional<z.ZodUnknown>;
|
|
254
254
|
}, z.core.$strip>, z.ZodTransform<{
|
|
255
|
-
reenter?: boolean | undefined;
|
|
256
255
|
board: string;
|
|
257
256
|
stage: string;
|
|
258
257
|
expectedRevision: number;
|
|
259
258
|
ingress: {
|
|
260
|
-
type:
|
|
259
|
+
type: 'human';
|
|
261
260
|
identity: string;
|
|
262
261
|
};
|
|
263
262
|
cause: string;
|
|
263
|
+
reenter?: boolean | undefined;
|
|
264
264
|
}, {
|
|
265
265
|
board: string;
|
|
266
266
|
stage: string;
|
|
@@ -312,54 +312,63 @@ export declare const metricsQuerySchema: z.ZodObject<{
|
|
|
312
312
|
to: z.ZodOptional<z.ZodString>;
|
|
313
313
|
}, z.core.$strip>;
|
|
314
314
|
export declare const decisionQuerySchema: z.ZodObject<{
|
|
315
|
-
statuses: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<("dismissed" | "
|
|
315
|
+
statuses: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<("dismissed" | "failed" | "leased" | "pending" | "proposed" | "retry" | "succeeded" | "superseded")[] | undefined, string | undefined>>;
|
|
316
316
|
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<{
|
|
317
317
|
createdAt: Date;
|
|
318
318
|
id: string;
|
|
319
319
|
} | undefined, string | undefined>>;
|
|
320
320
|
limit: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number, string | undefined>>;
|
|
321
321
|
}, z.core.$strip>;
|
|
322
|
+
declare const attentionKindSchema: z.ZodEnum<{
|
|
323
|
+
activity: "activity";
|
|
324
|
+
"agent-waiting": "agent-waiting";
|
|
325
|
+
"automation-failed": "automation-failed";
|
|
326
|
+
"automation-proposed": "automation-proposed";
|
|
327
|
+
mention: "mention";
|
|
328
|
+
}>;
|
|
329
|
+
type AttentionKind = z.infer<typeof attentionKindSchema>;
|
|
322
330
|
type AttentionStreamPosition = {
|
|
323
331
|
occurredAt: Date;
|
|
324
332
|
id: string;
|
|
325
333
|
};
|
|
334
|
+
type AttentionCursorMap = Map<AttentionKind, AttentionStreamPosition | undefined>;
|
|
326
335
|
export declare const attentionQuerySchema: z.ZodObject<{
|
|
327
336
|
view: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
337
|
+
archived: "archived";
|
|
328
338
|
open: "open";
|
|
329
339
|
unread: "unread";
|
|
330
|
-
archived: "archived";
|
|
331
340
|
}>>>;
|
|
332
341
|
kind: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
333
342
|
activity: "activity";
|
|
343
|
+
"agent-waiting": "agent-waiting";
|
|
334
344
|
"automation-failed": "automation-failed";
|
|
335
345
|
"automation-proposed": "automation-proposed";
|
|
336
346
|
mention: "mention";
|
|
337
|
-
"agent-waiting": "agent-waiting";
|
|
338
347
|
}>>>;
|
|
339
|
-
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<
|
|
348
|
+
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<AttentionCursorMap | undefined, string | undefined>>;
|
|
340
349
|
limit: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number, string | undefined>>;
|
|
341
350
|
search: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
342
351
|
}, z.core.$strip>;
|
|
343
352
|
export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
344
353
|
readonly projectList: {
|
|
345
|
-
readonly method:
|
|
346
|
-
readonly path:
|
|
347
|
-
readonly description:
|
|
354
|
+
readonly method: 'GET';
|
|
355
|
+
readonly path: '/web/factory/projects';
|
|
356
|
+
readonly description: 'List Factory projects for the current organization';
|
|
348
357
|
readonly responseSchema: z.ZodObject<{
|
|
349
358
|
projects: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
350
359
|
}, z.core.$strip>;
|
|
351
360
|
};
|
|
352
361
|
readonly projectCreate: {
|
|
353
|
-
readonly method:
|
|
354
|
-
readonly path:
|
|
355
|
-
readonly description:
|
|
362
|
+
readonly method: 'POST';
|
|
363
|
+
readonly path: '/web/factory/projects';
|
|
364
|
+
readonly description: 'Create a Factory project';
|
|
356
365
|
readonly bodySchema: z.ZodObject<{
|
|
357
366
|
name: z.ZodString;
|
|
358
367
|
description: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string | null, string>>, z.ZodNull]>>>;
|
|
359
368
|
modelScope: z.ZodOptional<z.ZodEnum<{
|
|
360
369
|
factory: "factory";
|
|
361
|
-
user: "user";
|
|
362
370
|
hybrid: "hybrid";
|
|
371
|
+
user: "user";
|
|
363
372
|
}>>;
|
|
364
373
|
}, z.core.$strip>;
|
|
365
374
|
readonly responseSchema: z.ZodObject<{
|
|
@@ -367,9 +376,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
367
376
|
}, z.core.$strip>;
|
|
368
377
|
};
|
|
369
378
|
readonly projectGet: {
|
|
370
|
-
readonly method:
|
|
371
|
-
readonly path:
|
|
372
|
-
readonly description:
|
|
379
|
+
readonly method: 'GET';
|
|
380
|
+
readonly path: '/web/factory/projects/:id';
|
|
381
|
+
readonly description: 'Get a Factory project';
|
|
373
382
|
readonly pathSchema: z.ZodObject<{
|
|
374
383
|
id: z.ZodString;
|
|
375
384
|
}, z.core.$strip>;
|
|
@@ -378,9 +387,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
378
387
|
}, z.core.$strip>;
|
|
379
388
|
};
|
|
380
389
|
readonly projectUpdate: {
|
|
381
|
-
readonly method:
|
|
382
|
-
readonly path:
|
|
383
|
-
readonly description:
|
|
390
|
+
readonly method: 'PATCH';
|
|
391
|
+
readonly path: '/web/factory/projects/:id';
|
|
392
|
+
readonly description: 'Update a Factory project';
|
|
384
393
|
readonly pathSchema: z.ZodObject<{
|
|
385
394
|
id: z.ZodString;
|
|
386
395
|
}, z.core.$strip>;
|
|
@@ -390,16 +399,16 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
390
399
|
defaultModelId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string | null, string>>, z.ZodNull]>>;
|
|
391
400
|
modelScope: z.ZodOptional<z.ZodEnum<{
|
|
392
401
|
factory: "factory";
|
|
393
|
-
user: "user";
|
|
394
402
|
hybrid: "hybrid";
|
|
403
|
+
user: "user";
|
|
395
404
|
}>>;
|
|
396
405
|
defaultThinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
397
|
-
|
|
406
|
+
high: "high";
|
|
398
407
|
low: "low";
|
|
408
|
+
max: "max";
|
|
399
409
|
medium: "medium";
|
|
400
|
-
|
|
410
|
+
off: "off";
|
|
401
411
|
xhigh: "xhigh";
|
|
402
|
-
max: "max";
|
|
403
412
|
}>>;
|
|
404
413
|
autoRunEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
405
414
|
autoApprovePlans: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -411,9 +420,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
411
420
|
}, z.core.$strip>;
|
|
412
421
|
};
|
|
413
422
|
readonly projectEnvironmentGet: {
|
|
414
|
-
readonly method:
|
|
415
|
-
readonly path:
|
|
416
|
-
readonly description:
|
|
423
|
+
readonly method: 'GET';
|
|
424
|
+
readonly path: '/web/factory/projects/:id/environment';
|
|
425
|
+
readonly description: 'Get the sandbox environment of a Factory project: provider settings and its repositories in order';
|
|
417
426
|
readonly pathSchema: z.ZodObject<{
|
|
418
427
|
id: z.ZodString;
|
|
419
428
|
}, z.core.$strip>;
|
|
@@ -446,9 +455,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
446
455
|
setupCommand: z.ZodNullable<z.ZodString>;
|
|
447
456
|
teardownCommand: z.ZodNullable<z.ZodString>;
|
|
448
457
|
lastBuildStatus: z.ZodEnum<{
|
|
449
|
-
unbuilt: "unbuilt";
|
|
450
458
|
configured: "configured";
|
|
451
459
|
failed: "failed";
|
|
460
|
+
unbuilt: "unbuilt";
|
|
452
461
|
}>;
|
|
453
462
|
lastBuildError: z.ZodNullable<z.ZodString>;
|
|
454
463
|
lastBuiltAt: z.ZodNullable<z.ZodString>;
|
|
@@ -473,9 +482,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
473
482
|
}, z.core.$strip>;
|
|
474
483
|
};
|
|
475
484
|
readonly projectEnvironmentUpdate: {
|
|
476
|
-
readonly method:
|
|
477
|
-
readonly path:
|
|
478
|
-
readonly description:
|
|
485
|
+
readonly method: 'PATCH';
|
|
486
|
+
readonly path: '/web/factory/projects/:id/environment';
|
|
487
|
+
readonly description: 'Update the sandbox environment of a Factory project: provider settings, repository order and setup';
|
|
479
488
|
readonly pathSchema: z.ZodObject<{
|
|
480
489
|
id: z.ZodString;
|
|
481
490
|
}, z.core.$strip>;
|
|
@@ -531,9 +540,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
531
540
|
setupCommand: z.ZodNullable<z.ZodString>;
|
|
532
541
|
teardownCommand: z.ZodNullable<z.ZodString>;
|
|
533
542
|
lastBuildStatus: z.ZodEnum<{
|
|
534
|
-
unbuilt: "unbuilt";
|
|
535
543
|
configured: "configured";
|
|
536
544
|
failed: "failed";
|
|
545
|
+
unbuilt: "unbuilt";
|
|
537
546
|
}>;
|
|
538
547
|
lastBuildError: z.ZodNullable<z.ZodString>;
|
|
539
548
|
lastBuiltAt: z.ZodNullable<z.ZodString>;
|
|
@@ -558,17 +567,17 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
558
567
|
}, z.core.$strip>;
|
|
559
568
|
};
|
|
560
569
|
readonly projectEnvironmentBuild: {
|
|
561
|
-
readonly method:
|
|
562
|
-
readonly path:
|
|
563
|
-
readonly description:
|
|
570
|
+
readonly method: 'POST';
|
|
571
|
+
readonly path: '/web/factory/projects/:id/environment/build';
|
|
572
|
+
readonly description: 'Build the sandbox environment template of a Factory project now';
|
|
564
573
|
readonly pathSchema: z.ZodObject<{
|
|
565
574
|
id: z.ZodString;
|
|
566
575
|
}, z.core.$strip>;
|
|
567
576
|
readonly responseSchema: z.ZodObject<{
|
|
568
577
|
outcome: z.ZodEnum<{
|
|
569
|
-
started: "started";
|
|
570
578
|
failed: "failed";
|
|
571
579
|
skipped: "skipped";
|
|
580
|
+
started: "started";
|
|
572
581
|
unavailable: "unavailable";
|
|
573
582
|
}>;
|
|
574
583
|
buildId: z.ZodOptional<z.ZodString>;
|
|
@@ -577,9 +586,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
577
586
|
}, z.core.$strip>;
|
|
578
587
|
};
|
|
579
588
|
readonly projectEnvironmentBuilds: {
|
|
580
|
-
readonly method:
|
|
581
|
-
readonly path:
|
|
582
|
-
readonly description:
|
|
589
|
+
readonly method: 'GET';
|
|
590
|
+
readonly path: '/web/factory/projects/:id/environment/builds';
|
|
591
|
+
readonly description: 'List the environment template builds of a Factory project, newest first, when the provider keeps history';
|
|
583
592
|
readonly pathSchema: z.ZodObject<{
|
|
584
593
|
id: z.ZodString;
|
|
585
594
|
}, z.core.$strip>;
|
|
@@ -587,11 +596,11 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
587
596
|
builds: z.ZodArray<z.ZodObject<{
|
|
588
597
|
buildId: z.ZodString;
|
|
589
598
|
status: z.ZodEnum<{
|
|
590
|
-
|
|
599
|
+
building: "building";
|
|
591
600
|
failed: "failed";
|
|
592
601
|
pending: "pending";
|
|
593
602
|
ready: "ready";
|
|
594
|
-
|
|
603
|
+
unknown: "unknown";
|
|
595
604
|
}>;
|
|
596
605
|
templateId: z.ZodOptional<z.ZodString>;
|
|
597
606
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -602,9 +611,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
602
611
|
}, z.core.$strip>;
|
|
603
612
|
};
|
|
604
613
|
readonly projectEnvironmentBuildGet: {
|
|
605
|
-
readonly method:
|
|
606
|
-
readonly path:
|
|
607
|
-
readonly description:
|
|
614
|
+
readonly method: 'GET';
|
|
615
|
+
readonly path: '/web/factory/projects/:id/environment/builds/:buildId';
|
|
616
|
+
readonly description: 'Get the live status of one environment template build of a Factory project';
|
|
608
617
|
readonly pathSchema: z.ZodObject<{
|
|
609
618
|
id: z.ZodString;
|
|
610
619
|
buildId: z.ZodString;
|
|
@@ -613,11 +622,11 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
613
622
|
build: z.ZodObject<{
|
|
614
623
|
buildId: z.ZodString;
|
|
615
624
|
status: z.ZodEnum<{
|
|
616
|
-
|
|
625
|
+
building: "building";
|
|
617
626
|
failed: "failed";
|
|
618
627
|
pending: "pending";
|
|
619
628
|
ready: "ready";
|
|
620
|
-
|
|
629
|
+
unknown: "unknown";
|
|
621
630
|
}>;
|
|
622
631
|
templateId: z.ZodOptional<z.ZodString>;
|
|
623
632
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -628,9 +637,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
628
637
|
}, z.core.$strip>;
|
|
629
638
|
};
|
|
630
639
|
readonly projectApplyDefaultModel: {
|
|
631
|
-
readonly method:
|
|
632
|
-
readonly path:
|
|
633
|
-
readonly description:
|
|
640
|
+
readonly method: 'POST';
|
|
641
|
+
readonly path: '/web/factory/projects/:id/apply-default-model';
|
|
642
|
+
readonly description: 'Apply the Factory default model to running work and review threads';
|
|
634
643
|
readonly pathSchema: z.ZodObject<{
|
|
635
644
|
id: z.ZodString;
|
|
636
645
|
}, z.core.$strip>;
|
|
@@ -640,29 +649,29 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
640
649
|
skipped: z.ZodArray<z.ZodObject<{
|
|
641
650
|
threadId: z.ZodString;
|
|
642
651
|
reason: z.ZodEnum<{
|
|
652
|
+
"apply-failed": "apply-failed";
|
|
653
|
+
"mode-unknown": "mode-unknown";
|
|
643
654
|
"not-running": "not-running";
|
|
644
|
-
"work-item-missing": "work-item-missing";
|
|
645
655
|
"stage-inactive": "stage-inactive";
|
|
646
656
|
"thread-missing": "thread-missing";
|
|
647
|
-
"
|
|
648
|
-
"apply-failed": "apply-failed";
|
|
657
|
+
"work-item-missing": "work-item-missing";
|
|
649
658
|
}>;
|
|
650
659
|
}, z.core.$strip>>;
|
|
651
660
|
}, z.core.$strip>;
|
|
652
661
|
};
|
|
653
662
|
readonly projectDelete: {
|
|
654
|
-
readonly method:
|
|
655
|
-
readonly path:
|
|
656
|
-
readonly description:
|
|
663
|
+
readonly method: 'DELETE';
|
|
664
|
+
readonly path: '/web/factory/projects/:id';
|
|
665
|
+
readonly description: 'Delete a Factory project';
|
|
657
666
|
readonly pathSchema: z.ZodObject<{
|
|
658
667
|
id: z.ZodString;
|
|
659
668
|
}, z.core.$strip>;
|
|
660
669
|
readonly responseSchema: z.ZodNull;
|
|
661
670
|
};
|
|
662
671
|
readonly metricsGet: {
|
|
663
|
-
readonly method:
|
|
664
|
-
readonly path:
|
|
665
|
-
readonly description:
|
|
672
|
+
readonly method: 'GET';
|
|
673
|
+
readonly path: '/web/factory/projects/:id/metrics';
|
|
674
|
+
readonly description: 'Get Factory project metrics';
|
|
666
675
|
readonly pathSchema: z.ZodObject<{
|
|
667
676
|
id: z.ZodString;
|
|
668
677
|
}, z.core.$strip>;
|
|
@@ -675,9 +684,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
675
684
|
}, z.core.$strip>;
|
|
676
685
|
};
|
|
677
686
|
readonly healthThresholdsGet: {
|
|
678
|
-
readonly method:
|
|
679
|
-
readonly path:
|
|
680
|
-
readonly description:
|
|
687
|
+
readonly method: 'GET';
|
|
688
|
+
readonly path: '/web/factory/projects/:id/health/thresholds';
|
|
689
|
+
readonly description: 'Get queue-health thresholds';
|
|
681
690
|
readonly pathSchema: z.ZodObject<{
|
|
682
691
|
id: z.ZodString;
|
|
683
692
|
}, z.core.$strip>;
|
|
@@ -686,26 +695,40 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
686
695
|
}, z.core.$strip>;
|
|
687
696
|
};
|
|
688
697
|
readonly boardCatalog: {
|
|
689
|
-
readonly method:
|
|
690
|
-
readonly path:
|
|
691
|
-
readonly description:
|
|
698
|
+
readonly method: 'GET';
|
|
699
|
+
readonly path: '/web/factory/projects/:id/boards';
|
|
700
|
+
readonly description: 'List installed Factory boards';
|
|
692
701
|
readonly pathSchema: z.ZodObject<{
|
|
693
702
|
id: z.ZodString;
|
|
694
703
|
}, z.core.$strip>;
|
|
695
704
|
readonly responseSchema: z.ZodObject<{
|
|
696
705
|
boards: z.ZodArray<z.ZodObject<{
|
|
697
706
|
id: z.ZodString;
|
|
707
|
+
name: z.ZodOptional<z.ZodString>;
|
|
698
708
|
title: z.ZodString;
|
|
709
|
+
description: z.ZodOptional<z.ZodString>;
|
|
699
710
|
initialPhase: z.ZodString;
|
|
700
711
|
phases: z.ZodArray<z.ZodObject<{
|
|
701
712
|
id: z.ZodString;
|
|
713
|
+
name: z.ZodOptional<z.ZodString>;
|
|
702
714
|
title: z.ZodString;
|
|
715
|
+
description: z.ZodOptional<z.ZodString>;
|
|
703
716
|
kind: z.ZodEnum<{
|
|
704
717
|
resting: "resting";
|
|
705
|
-
working: "working";
|
|
706
718
|
terminal: "terminal";
|
|
719
|
+
working: "working";
|
|
707
720
|
}>;
|
|
721
|
+
nextPhases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
722
|
+
context: z.ZodOptional<z.ZodString>;
|
|
708
723
|
role: z.ZodOptional<z.ZodString>;
|
|
724
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
725
|
+
autoStart: z.ZodOptional<z.ZodBoolean>;
|
|
726
|
+
autoStartWhen: z.ZodOptional<z.ZodType<import("../index.js").RuleGroup, unknown, z.core.$ZodTypeInternals<import("../index.js").RuleGroup, unknown>>>;
|
|
727
|
+
exitTool: z.ZodOptional<z.ZodObject<{
|
|
728
|
+
id: z.ZodString;
|
|
729
|
+
autoApprove: z.ZodBoolean;
|
|
730
|
+
autoApproveWhen: z.ZodOptional<z.ZodType<import("../index.js").RuleGroup, unknown, z.core.$ZodTypeInternals<import("../index.js").RuleGroup, unknown>>>;
|
|
731
|
+
}, z.core.$strip>>;
|
|
709
732
|
transitions: z.ZodArray<z.ZodObject<{
|
|
710
733
|
outcome: z.ZodNullable<z.ZodString>;
|
|
711
734
|
to: z.ZodString;
|
|
@@ -715,9 +738,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
715
738
|
}, z.core.$strip>;
|
|
716
739
|
};
|
|
717
740
|
readonly workItemList: {
|
|
718
|
-
readonly method:
|
|
719
|
-
readonly path:
|
|
720
|
-
readonly description:
|
|
741
|
+
readonly method: 'GET';
|
|
742
|
+
readonly path: '/web/factory/projects/:id/work-items';
|
|
743
|
+
readonly description: 'List Factory work items and running sessions';
|
|
721
744
|
readonly pathSchema: z.ZodObject<{
|
|
722
745
|
id: z.ZodString;
|
|
723
746
|
}, z.core.$strip>;
|
|
@@ -728,9 +751,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
728
751
|
}, z.core.$strip>;
|
|
729
752
|
};
|
|
730
753
|
readonly workItemCreate: {
|
|
731
|
-
readonly method:
|
|
732
|
-
readonly path:
|
|
733
|
-
readonly description:
|
|
754
|
+
readonly method: 'POST';
|
|
755
|
+
readonly path: '/web/factory/projects/:id/work-items';
|
|
756
|
+
readonly description: 'Create a work item in Intake';
|
|
734
757
|
readonly pathSchema: z.ZodObject<{
|
|
735
758
|
id: z.ZodString;
|
|
736
759
|
}, z.core.$strip>;
|
|
@@ -759,9 +782,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
759
782
|
}, z.core.$strip>;
|
|
760
783
|
};
|
|
761
784
|
readonly workItemUpdate: {
|
|
762
|
-
readonly method:
|
|
763
|
-
readonly path:
|
|
764
|
-
readonly description:
|
|
785
|
+
readonly method: 'PATCH';
|
|
786
|
+
readonly path: '/web/factory/work-items/:id';
|
|
787
|
+
readonly description: 'Update non-stage work-item fields';
|
|
765
788
|
readonly pathSchema: z.ZodObject<{
|
|
766
789
|
id: z.ZodString;
|
|
767
790
|
}, z.core.$strip>;
|
|
@@ -785,9 +808,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
785
808
|
}, z.core.$strip>;
|
|
786
809
|
};
|
|
787
810
|
readonly workItemDelete: {
|
|
788
|
-
readonly method:
|
|
789
|
-
readonly path:
|
|
790
|
-
readonly description:
|
|
811
|
+
readonly method: 'DELETE';
|
|
812
|
+
readonly path: '/web/factory/work-items/:id';
|
|
813
|
+
readonly description: 'Delete a Factory work item';
|
|
791
814
|
readonly pathSchema: z.ZodObject<{
|
|
792
815
|
id: z.ZodString;
|
|
793
816
|
}, z.core.$strip>;
|
|
@@ -796,9 +819,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
796
819
|
}, z.core.$strip>;
|
|
797
820
|
};
|
|
798
821
|
readonly workItemTransition: {
|
|
799
|
-
readonly method:
|
|
800
|
-
readonly path:
|
|
801
|
-
readonly description:
|
|
822
|
+
readonly method: 'POST';
|
|
823
|
+
readonly path: '/web/factory/projects/:id/work-items/:workItemId/transition';
|
|
824
|
+
readonly description: 'Transition a work item with its expected revision';
|
|
802
825
|
readonly pathSchema: z.ZodObject<{
|
|
803
826
|
id: z.ZodString;
|
|
804
827
|
workItemId: z.ZodString;
|
|
@@ -811,15 +834,15 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
811
834
|
cause: z.ZodString;
|
|
812
835
|
reenter: z.ZodOptional<z.ZodUnknown>;
|
|
813
836
|
}, z.core.$strip>, z.ZodTransform<{
|
|
814
|
-
reenter?: boolean | undefined;
|
|
815
837
|
board: string;
|
|
816
838
|
stage: string;
|
|
817
839
|
expectedRevision: number;
|
|
818
840
|
ingress: {
|
|
819
|
-
type:
|
|
841
|
+
type: 'human';
|
|
820
842
|
identity: string;
|
|
821
843
|
};
|
|
822
844
|
cause: string;
|
|
845
|
+
reenter?: boolean | undefined;
|
|
823
846
|
}, {
|
|
824
847
|
board: string;
|
|
825
848
|
stage: string;
|
|
@@ -831,9 +854,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
831
854
|
readonly responseSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
832
855
|
};
|
|
833
856
|
readonly workItemStart: {
|
|
834
|
-
readonly method:
|
|
835
|
-
readonly path:
|
|
836
|
-
readonly description:
|
|
857
|
+
readonly method: 'POST';
|
|
858
|
+
readonly path: '/web/factory/projects/:id/runs/start';
|
|
859
|
+
readonly description: 'Explicitly start a Factory work-item run';
|
|
837
860
|
readonly pathSchema: z.ZodObject<{
|
|
838
861
|
id: z.ZodString;
|
|
839
862
|
}, z.core.$strip>;
|
|
@@ -869,9 +892,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
869
892
|
readonly responseSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
870
893
|
};
|
|
871
894
|
readonly workItemAutomationRun: {
|
|
872
|
-
readonly method:
|
|
873
|
-
readonly path:
|
|
874
|
-
readonly description:
|
|
895
|
+
readonly method: 'POST';
|
|
896
|
+
readonly path: '/web/factory/projects/:id/work-items/:workItemId/automation-runs';
|
|
897
|
+
readonly description: 'Enqueue an idempotent deferred skill dispatch for a trusted external orchestrator';
|
|
875
898
|
readonly pathSchema: z.ZodObject<{
|
|
876
899
|
id: z.ZodString;
|
|
877
900
|
workItemId: z.ZodString;
|
|
@@ -888,14 +911,14 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
888
911
|
readonly responseSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
889
912
|
};
|
|
890
913
|
readonly decisionList: {
|
|
891
|
-
readonly method:
|
|
892
|
-
readonly path:
|
|
893
|
-
readonly description:
|
|
914
|
+
readonly method: 'GET';
|
|
915
|
+
readonly path: '/web/factory/projects/:id/decisions';
|
|
916
|
+
readonly description: 'List Factory decisions';
|
|
894
917
|
readonly pathSchema: z.ZodObject<{
|
|
895
918
|
id: z.ZodString;
|
|
896
919
|
}, z.core.$strip>;
|
|
897
920
|
readonly querySchema: z.ZodObject<{
|
|
898
|
-
statuses: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<("dismissed" | "
|
|
921
|
+
statuses: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<("dismissed" | "failed" | "leased" | "pending" | "proposed" | "retry" | "succeeded" | "superseded")[] | undefined, string | undefined>>;
|
|
899
922
|
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<{
|
|
900
923
|
createdAt: Date;
|
|
901
924
|
id: string;
|
|
@@ -908,9 +931,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
908
931
|
}, z.core.$strip>;
|
|
909
932
|
};
|
|
910
933
|
readonly decisionApprove: {
|
|
911
|
-
readonly method:
|
|
912
|
-
readonly path:
|
|
913
|
-
readonly description:
|
|
934
|
+
readonly method: 'POST';
|
|
935
|
+
readonly path: '/web/factory/projects/:id/decisions/:decisionId/approve';
|
|
936
|
+
readonly description: 'Approve a proposed Factory decision';
|
|
914
937
|
readonly pathSchema: z.ZodObject<{
|
|
915
938
|
id: z.ZodString;
|
|
916
939
|
decisionId: z.ZodString;
|
|
@@ -920,9 +943,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
920
943
|
}, z.core.$strip>;
|
|
921
944
|
};
|
|
922
945
|
readonly decisionDismiss: {
|
|
923
|
-
readonly method:
|
|
924
|
-
readonly path:
|
|
925
|
-
readonly description:
|
|
946
|
+
readonly method: 'POST';
|
|
947
|
+
readonly path: '/web/factory/projects/:id/decisions/:decisionId/dismiss';
|
|
948
|
+
readonly description: 'Dismiss a proposed Factory decision';
|
|
926
949
|
readonly pathSchema: z.ZodObject<{
|
|
927
950
|
id: z.ZodString;
|
|
928
951
|
decisionId: z.ZodString;
|
|
@@ -932,9 +955,9 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
932
955
|
}, z.core.$strip>;
|
|
933
956
|
};
|
|
934
957
|
readonly decisionRetry: {
|
|
935
|
-
readonly method:
|
|
936
|
-
readonly path:
|
|
937
|
-
readonly description:
|
|
958
|
+
readonly method: 'POST';
|
|
959
|
+
readonly path: '/web/factory/projects/:id/decisions/:decisionId/retry';
|
|
960
|
+
readonly description: 'Retry a failed retryable Factory decision';
|
|
938
961
|
readonly pathSchema: z.ZodObject<{
|
|
939
962
|
id: z.ZodString;
|
|
940
963
|
decisionId: z.ZodString;
|
|
@@ -944,26 +967,26 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
944
967
|
}, z.core.$strip>;
|
|
945
968
|
};
|
|
946
969
|
readonly attentionList: {
|
|
947
|
-
readonly method:
|
|
948
|
-
readonly path:
|
|
949
|
-
readonly description:
|
|
970
|
+
readonly method: 'GET';
|
|
971
|
+
readonly path: '/web/factory/projects/:id/attention';
|
|
972
|
+
readonly description: 'List the Factory attention inbox';
|
|
950
973
|
readonly pathSchema: z.ZodObject<{
|
|
951
974
|
id: z.ZodString;
|
|
952
975
|
}, z.core.$strip>;
|
|
953
976
|
readonly querySchema: z.ZodObject<{
|
|
954
977
|
view: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
978
|
+
archived: "archived";
|
|
955
979
|
open: "open";
|
|
956
980
|
unread: "unread";
|
|
957
|
-
archived: "archived";
|
|
958
981
|
}>>>;
|
|
959
982
|
kind: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
960
983
|
activity: "activity";
|
|
984
|
+
"agent-waiting": "agent-waiting";
|
|
961
985
|
"automation-failed": "automation-failed";
|
|
962
986
|
"automation-proposed": "automation-proposed";
|
|
963
987
|
mention: "mention";
|
|
964
|
-
"agent-waiting": "agent-waiting";
|
|
965
988
|
}>>>;
|
|
966
|
-
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<
|
|
989
|
+
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<AttentionCursorMap | undefined, string | undefined>>;
|
|
967
990
|
limit: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number, string | undefined>>;
|
|
968
991
|
search: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
969
992
|
}, z.core.$strip>;
|
|
@@ -971,10 +994,10 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
971
994
|
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
972
995
|
kinds: z.ZodRecord<z.ZodEnum<{
|
|
973
996
|
activity: "activity";
|
|
997
|
+
"agent-waiting": "agent-waiting";
|
|
974
998
|
"automation-failed": "automation-failed";
|
|
975
999
|
"automation-proposed": "automation-proposed";
|
|
976
1000
|
mention: "mention";
|
|
977
|
-
"agent-waiting": "agent-waiting";
|
|
978
1001
|
}>, z.ZodObject<{
|
|
979
1002
|
open: z.ZodNumber;
|
|
980
1003
|
unread: z.ZodNumber;
|
|
@@ -989,14 +1012,14 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
989
1012
|
}, z.core.$strip>;
|
|
990
1013
|
};
|
|
991
1014
|
readonly attentionReadAll: {
|
|
992
|
-
readonly method:
|
|
993
|
-
readonly path:
|
|
994
|
-
readonly description:
|
|
1015
|
+
readonly method: 'POST';
|
|
1016
|
+
readonly path: '/web/factory/projects/:id/attention/read-all';
|
|
1017
|
+
readonly description: 'Mark all Factory attention as read';
|
|
995
1018
|
readonly pathSchema: z.ZodObject<{
|
|
996
1019
|
id: z.ZodString;
|
|
997
1020
|
}, z.core.$strip>;
|
|
998
1021
|
readonly querySchema: z.ZodObject<{
|
|
999
|
-
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<
|
|
1022
|
+
before: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<AttentionCursorMap | undefined, string | undefined>>;
|
|
1000
1023
|
}, z.core.$strip>;
|
|
1001
1024
|
readonly responseSchema: z.ZodObject<{
|
|
1002
1025
|
ok: z.ZodLiteral<true>;
|
|
@@ -1005,17 +1028,17 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1005
1028
|
}, z.core.$strip>;
|
|
1006
1029
|
};
|
|
1007
1030
|
readonly attentionRead: {
|
|
1008
|
-
readonly method:
|
|
1009
|
-
readonly path:
|
|
1010
|
-
readonly description:
|
|
1031
|
+
readonly method: 'POST';
|
|
1032
|
+
readonly path: '/web/factory/projects/:id/attention/:kind/:sourceId/:occurrence/read';
|
|
1033
|
+
readonly description: 'Mark a Factory attention receipt as read';
|
|
1011
1034
|
readonly pathSchema: z.ZodObject<{
|
|
1012
1035
|
id: z.ZodString;
|
|
1013
1036
|
kind: z.ZodEnum<{
|
|
1014
1037
|
activity: "activity";
|
|
1038
|
+
"agent-waiting": "agent-waiting";
|
|
1015
1039
|
"automation-failed": "automation-failed";
|
|
1016
1040
|
"automation-proposed": "automation-proposed";
|
|
1017
1041
|
mention: "mention";
|
|
1018
|
-
"agent-waiting": "agent-waiting";
|
|
1019
1042
|
}>;
|
|
1020
1043
|
sourceId: z.ZodString;
|
|
1021
1044
|
occurrence: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
@@ -1025,17 +1048,17 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1025
1048
|
}, z.core.$strip>;
|
|
1026
1049
|
};
|
|
1027
1050
|
readonly attentionArchive: {
|
|
1028
|
-
readonly method:
|
|
1029
|
-
readonly path:
|
|
1030
|
-
readonly description:
|
|
1051
|
+
readonly method: 'POST';
|
|
1052
|
+
readonly path: '/web/factory/projects/:id/attention/:kind/:sourceId/:occurrence/archive';
|
|
1053
|
+
readonly description: 'Archive a Factory attention receipt';
|
|
1031
1054
|
readonly pathSchema: z.ZodObject<{
|
|
1032
1055
|
id: z.ZodString;
|
|
1033
1056
|
kind: z.ZodEnum<{
|
|
1034
1057
|
activity: "activity";
|
|
1058
|
+
"agent-waiting": "agent-waiting";
|
|
1035
1059
|
"automation-failed": "automation-failed";
|
|
1036
1060
|
"automation-proposed": "automation-proposed";
|
|
1037
1061
|
mention: "mention";
|
|
1038
|
-
"agent-waiting": "agent-waiting";
|
|
1039
1062
|
}>;
|
|
1040
1063
|
sourceId: z.ZodString;
|
|
1041
1064
|
occurrence: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
@@ -1045,17 +1068,17 @@ export declare const FACTORY_ROUTE_CONTRACTS: {
|
|
|
1045
1068
|
}, z.core.$strip>;
|
|
1046
1069
|
};
|
|
1047
1070
|
readonly attentionRestore: {
|
|
1048
|
-
readonly method:
|
|
1049
|
-
readonly path:
|
|
1050
|
-
readonly description:
|
|
1071
|
+
readonly method: 'POST';
|
|
1072
|
+
readonly path: '/web/factory/projects/:id/attention/:kind/:sourceId/:occurrence/restore';
|
|
1073
|
+
readonly description: 'Restore an archived Factory attention receipt';
|
|
1051
1074
|
readonly pathSchema: z.ZodObject<{
|
|
1052
1075
|
id: z.ZodString;
|
|
1053
1076
|
kind: z.ZodEnum<{
|
|
1054
1077
|
activity: "activity";
|
|
1078
|
+
"agent-waiting": "agent-waiting";
|
|
1055
1079
|
"automation-failed": "automation-failed";
|
|
1056
1080
|
"automation-proposed": "automation-proposed";
|
|
1057
1081
|
mention: "mention";
|
|
1058
|
-
"agent-waiting": "agent-waiting";
|
|
1059
1082
|
}>;
|
|
1060
1083
|
sourceId: z.ZodString;
|
|
1061
1084
|
occurrence: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|