@n8n/instance-ai 1.10.2 → 1.11.1
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 +128 -0
- package/dist/agent/instance-agent.js +8 -0
- package/dist/agent/instance-agent.js.map +1 -1
- package/dist/agent/shared-prompts.d.ts +1 -0
- package/dist/agent/shared-prompts.js +25 -0
- package/dist/agent/shared-prompts.js.map +1 -1
- package/dist/agent/sub-agent-debriefing.d.ts +8 -8
- package/dist/agent/system-prompt.d.ts +2 -0
- package/dist/agent/system-prompt.js +52 -93
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/constants/max-steps.d.ts +0 -1
- package/dist/constants/max-steps.js +0 -1
- package/dist/constants/max-steps.js.map +1 -1
- package/dist/index.d.ts +123 -33
- package/dist/index.js +103 -96
- package/dist/index.js.map +1 -1
- package/dist/knowledge-base/build-templates-index.d.ts +12 -0
- package/dist/knowledge-base/build-templates-index.js +113 -0
- package/dist/knowledge-base/build-templates-index.js.map +1 -0
- package/dist/knowledge-base/extract-builder-templates-archive.d.ts +2 -0
- package/dist/knowledge-base/extract-builder-templates-archive.js +89 -0
- package/dist/knowledge-base/extract-builder-templates-archive.js.map +1 -0
- package/dist/knowledge-base/materialize-knowledge-base.d.ts +67 -0
- package/dist/knowledge-base/materialize-knowledge-base.js +186 -0
- package/dist/knowledge-base/materialize-knowledge-base.js.map +1 -0
- package/dist/mcp/mcp-client-manager.js +6 -1
- package/dist/mcp/mcp-client-manager.js.map +1 -1
- package/dist/parsers/pdf-parser.js +4 -0
- package/dist/parsers/pdf-parser.js.map +1 -1
- package/dist/planned-tasks/planned-task-service.d.ts +5 -1
- package/dist/planned-tasks/planned-task-service.js +29 -1
- package/dist/planned-tasks/planned-task-service.js.map +1 -1
- package/dist/runtime/run-state-registry.d.ts +8 -0
- package/dist/runtime/run-state-registry.js.map +1 -1
- package/dist/runtime/terminal-response-guard.d.ts +2 -1
- package/dist/runtime/terminal-response-guard.js +20 -0
- package/dist/runtime/terminal-response-guard.js.map +1 -1
- package/dist/skills/materialize-runtime-skills.d.ts +1 -7
- package/dist/skills/materialize-runtime-skills.js +96 -176
- package/dist/skills/materialize-runtime-skills.js.map +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/planned-task-storage.js +1 -0
- package/dist/storage/planned-task-storage.js.map +1 -1
- package/dist/storage/terminal-outcome-storage.d.ts +2 -2
- package/dist/storage/workflow-loop-storage.d.ts +199 -70
- package/dist/storage/workflow-loop-storage.js +107 -0
- package/dist/storage/workflow-loop-storage.js.map +1 -1
- package/dist/stream/work-summary-accumulator.d.ts +6 -6
- package/dist/tools/attachments/parse-file.tool.d.ts +18 -18
- package/dist/tools/credentials.tool.d.ts +2 -5
- package/dist/tools/credentials.tool.js +2 -6
- package/dist/tools/credentials.tool.js.map +1 -1
- package/dist/tools/executions.tool.js +53 -7
- package/dist/tools/executions.tool.js.map +1 -1
- package/dist/tools/index.js +3 -9
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/nodes/node-search-engine.d.ts +2 -0
- package/dist/tools/nodes/node-search-engine.js +66 -7
- package/dist/tools/nodes/node-search-engine.js.map +1 -1
- package/dist/tools/nodes.tool.js +10 -3
- package/dist/tools/nodes.tool.js.map +1 -1
- package/dist/tools/orchestration/complete-checkpoint.tool.js +69 -0
- package/dist/tools/orchestration/complete-checkpoint.tool.js.map +1 -1
- package/dist/tools/orchestration/delegate.schemas.d.ts +5 -5
- package/dist/tools/orchestration/delegate.tool.js +1 -1
- package/dist/tools/orchestration/delegate.tool.js.map +1 -1
- package/dist/tools/orchestration/plan.tool.js +96 -60
- package/dist/tools/orchestration/plan.tool.js.map +1 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.d.ts +9 -6
- package/dist/tools/orchestration/report-verification-verdict.tool.js +6 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.js.map +1 -1
- package/dist/tools/orchestration/verify-built-workflow.tool.js +3 -2
- package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -1
- package/dist/tools/tool-ids.d.ts +0 -5
- package/dist/tools/tool-ids.js +3 -7
- package/dist/tools/tool-ids.js.map +1 -1
- package/dist/tools/workflows/build-workflow.tool.d.ts +8 -2
- package/dist/tools/workflows/build-workflow.tool.js +371 -17
- package/dist/tools/workflows/build-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/materialize-node-type.tool.d.ts +4 -4
- package/dist/tools/workflows/materialize-node-type.tool.js +2 -2
- package/dist/tools/workflows/materialize-node-type.tool.js.map +1 -1
- package/dist/tools/workflows/setup-workflow.schema.d.ts +32 -32
- package/dist/tools/workflows/submit-workflow.tool.d.ts +16 -12
- package/dist/tools/workflows/submit-workflow.tool.js +9 -2
- package/dist/tools/workflows/submit-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/write-sandbox-file.tool.js +2 -2
- package/dist/tools/workflows/write-sandbox-file.tool.js.map +1 -1
- package/dist/tools/workflows.tool.js +5 -0
- package/dist/tools/workflows.tool.js.map +1 -1
- package/dist/tracing/langsmith-tracing.js +6 -1
- package/dist/tracing/langsmith-tracing.js.map +1 -1
- package/dist/tracing/trace-payloads.js +2 -6
- package/dist/tracing/trace-payloads.js.map +1 -1
- package/dist/types.d.ts +48 -9
- package/dist/types.js.map +1 -1
- package/dist/workflow-builder/build-failure-tracker.d.ts +10 -0
- package/dist/workflow-builder/build-failure-tracker.js +36 -0
- package/dist/workflow-builder/build-failure-tracker.js.map +1 -0
- package/dist/workflow-builder/index.d.ts +1 -0
- package/dist/workflow-builder/index.js +4 -1
- package/dist/workflow-builder/index.js.map +1 -1
- package/dist/workflow-loop/guidance.js +10 -6
- package/dist/workflow-loop/guidance.js.map +1 -1
- package/dist/workflow-loop/index.d.ts +3 -2
- package/dist/workflow-loop/index.js +14 -1
- package/dist/workflow-loop/index.js.map +1 -1
- package/dist/workflow-loop/runtime.js +3 -1
- package/dist/workflow-loop/runtime.js.map +1 -1
- package/dist/workflow-loop/verification-obligation.d.ts +15 -0
- package/dist/workflow-loop/verification-obligation.js +140 -0
- package/dist/workflow-loop/verification-obligation.js.map +1 -0
- package/dist/workflow-loop/workflow-loop-controller.js +26 -1
- package/dist/workflow-loop/workflow-loop-controller.js.map +1 -1
- package/dist/workflow-loop/workflow-loop-state.d.ts +416 -62
- package/dist/workflow-loop/workflow-loop-state.js +66 -1
- package/dist/workflow-loop/workflow-loop-state.js.map +1 -1
- package/dist/workspace/builder-templates-service.js.map +1 -1
- package/dist/workspace/compute-workspace-content-hash.d.ts +1 -0
- package/dist/workspace/compute-workspace-content-hash.js +15 -0
- package/dist/workspace/compute-workspace-content-hash.js.map +1 -0
- package/dist/workspace/create-workspace.d.ts +9 -43
- package/dist/workspace/create-workspace.js +45 -55
- package/dist/workspace/create-workspace.js.map +1 -1
- package/dist/workspace/lazy-runtime-workspace.js +1 -1
- package/dist/workspace/lazy-runtime-workspace.js.map +1 -1
- package/dist/workspace/prebaked-workspace-bundle.d.ts +39 -0
- package/dist/workspace/prebaked-workspace-bundle.js +75 -0
- package/dist/workspace/prebaked-workspace-bundle.js.map +1 -0
- package/dist/workspace/sandbox-fs.d.ts +9 -24
- package/dist/workspace/sandbox-fs.js +2 -16
- package/dist/workspace/sandbox-fs.js.map +1 -1
- package/dist/workspace/sandbox-setup.d.ts +1 -7
- package/dist/workspace/sandbox-setup.js +28 -170
- package/dist/workspace/sandbox-setup.js.map +1 -1
- package/dist/workspace/snapshot-image-context.d.ts +5 -0
- package/dist/workspace/snapshot-image-context.js +36 -0
- package/dist/workspace/snapshot-image-context.js.map +1 -0
- package/dist/workspace/snapshot-manager.d.ts +9 -9
- package/dist/workspace/snapshot-manager.js +57 -67
- package/dist/workspace/snapshot-manager.js.map +1 -1
- package/dist/workspace/template-telemetry.js +4 -4
- package/dist/workspace/template-telemetry.js.map +1 -1
- package/dist/workspace/workspace-file-content.d.ts +2 -0
- package/dist/workspace/workspace-file-content.js +11 -0
- package/dist/workspace/workspace-file-content.js.map +1 -0
- package/dist/workspace/workspace-files.d.ts +20 -0
- package/dist/workspace/workspace-files.js +74 -0
- package/dist/workspace/workspace-files.js.map +1 -0
- package/dist/workspace/workspace-manifest.d.ts +12 -0
- package/dist/workspace/workspace-manifest.js +28 -0
- package/dist/workspace/workspace-manifest.js.map +1 -0
- package/package.json +21 -15
- package/skills/data-table-manager/SKILL.md +6 -6
- package/skills/debugging-executions/SKILL.md +44 -0
- package/skills/planned-task-runtime/SKILL.md +163 -0
- package/skills/planning/SKILL.md +137 -0
- package/skills/post-build-flow/SKILL.md +119 -0
- package/skills/post-build-flow/references/trigger-input-data-shapes.md +38 -0
- package/skills/workflow-builder/SKILL.md +608 -0
- package/dist/tools/best-practices/index.d.ts +0 -2
- package/dist/tools/best-practices/index.js +0 -10
- package/dist/tools/best-practices/index.js.map +0 -1
- package/dist/tools/best-practices/techniques.d.ts +0 -1
- package/dist/tools/best-practices/techniques.js +0 -7
- package/dist/tools/best-practices/techniques.js.map +0 -1
- package/dist/tools/orchestration/add-plan-item.tool.d.ts +0 -5
- package/dist/tools/orchestration/add-plan-item.tool.js +0 -89
- package/dist/tools/orchestration/add-plan-item.tool.js.map +0 -1
- package/dist/tools/orchestration/blueprint-accumulator.d.ts +0 -49
- package/dist/tools/orchestration/blueprint-accumulator.js +0 -176
- package/dist/tools/orchestration/blueprint-accumulator.js.map +0 -1
- package/dist/tools/orchestration/blueprint.schema.d.ts +0 -182
- package/dist/tools/orchestration/blueprint.schema.js +0 -56
- package/dist/tools/orchestration/blueprint.schema.js.map +0 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.d.ts +0 -8
- package/dist/tools/orchestration/build-workflow-agent.prompt.js +0 -466
- package/dist/tools/orchestration/build-workflow-agent.prompt.js.map +0 -1
- package/dist/tools/orchestration/build-workflow-agent.tool.d.ts +0 -148
- package/dist/tools/orchestration/build-workflow-agent.tool.js +0 -1498
- package/dist/tools/orchestration/build-workflow-agent.tool.js.map +0 -1
- package/dist/tools/orchestration/builder-memory-compaction.d.ts +0 -42
- package/dist/tools/orchestration/builder-memory-compaction.js +0 -132
- package/dist/tools/orchestration/builder-memory-compaction.js.map +0 -1
- package/dist/tools/orchestration/plan-agent-prompt.d.ts +0 -1
- package/dist/tools/orchestration/plan-agent-prompt.js +0 -83
- package/dist/tools/orchestration/plan-agent-prompt.js.map +0 -1
- package/dist/tools/orchestration/plan-with-agent.tool.d.ts +0 -27
- package/dist/tools/orchestration/plan-with-agent.tool.js +0 -710
- package/dist/tools/orchestration/plan-with-agent.tool.js.map +0 -1
- package/dist/tools/orchestration/submit-plan.tool.d.ts +0 -3
- package/dist/tools/orchestration/submit-plan.tool.js +0 -98
- package/dist/tools/orchestration/submit-plan.tool.js.map +0 -1
- package/dist/tools/templates.tool.d.ts +0 -1
- package/dist/tools/templates.tool.js +0 -58
- package/dist/tools/templates.tool.js.map +0 -1
- package/dist/workspace/daytona-auth-manager.d.ts +0 -26
- package/dist/workspace/daytona-auth-manager.js +0 -90
- package/dist/workspace/daytona-auth-manager.js.map +0 -1
- package/dist/workspace/daytona-filesystem.d.ts +0 -25
- package/dist/workspace/daytona-filesystem.js +0 -132
- package/dist/workspace/daytona-filesystem.js.map +0 -1
- package/dist/workspace/daytona-sandbox.d.ts +0 -71
- package/dist/workspace/daytona-sandbox.js +0 -368
- package/dist/workspace/daytona-sandbox.js.map +0 -1
- package/dist/workspace/lazy-daytona.d.ts +0 -2
- package/dist/workspace/lazy-daytona.js +0 -12
- package/dist/workspace/lazy-daytona.js.map +0 -1
- package/dist/workspace/local-filesystem.d.ts +0 -48
- package/dist/workspace/local-filesystem.js +0 -250
- package/dist/workspace/local-filesystem.js.map +0 -1
- package/dist/workspace/local-sandbox.d.ts +0 -28
- package/dist/workspace/local-sandbox.js +0 -121
- package/dist/workspace/local-sandbox.js.map +0 -1
- package/dist/workspace/n8n-sandbox-filesystem.d.ts +0 -25
- package/dist/workspace/n8n-sandbox-filesystem.js +0 -128
- package/dist/workspace/n8n-sandbox-filesystem.js.map +0 -1
- package/dist/workspace/n8n-sandbox-sandbox.d.ts +0 -35
- package/dist/workspace/n8n-sandbox-sandbox.js +0 -143
- package/dist/workspace/n8n-sandbox-sandbox.js.map +0 -1
|
@@ -11,14 +11,14 @@ export declare const remediationMetadataSchema: z.ZodObject<{
|
|
|
11
11
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
category: "
|
|
14
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
15
15
|
shouldEdit: boolean;
|
|
16
16
|
guidance: string;
|
|
17
17
|
reason?: string | undefined;
|
|
18
18
|
remainingSubmitFixes?: number | undefined;
|
|
19
19
|
attemptCount?: number | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
category: "
|
|
21
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
22
22
|
shouldEdit: boolean;
|
|
23
23
|
guidance: string;
|
|
24
24
|
reason?: string | undefined;
|
|
@@ -27,6 +27,30 @@ export declare const remediationMetadataSchema: z.ZodObject<{
|
|
|
27
27
|
}>;
|
|
28
28
|
export type RemediationCategory = z.infer<typeof remediationCategorySchema>;
|
|
29
29
|
export type RemediationMetadata = z.infer<typeof remediationMetadataSchema>;
|
|
30
|
+
export declare const workflowBuildOwnerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"direct">;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
type: "direct";
|
|
34
|
+
}, {
|
|
35
|
+
type: "direct";
|
|
36
|
+
}>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"planned">;
|
|
38
|
+
taskId: z.ZodString;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
type: "planned";
|
|
41
|
+
taskId: string;
|
|
42
|
+
}, {
|
|
43
|
+
type: "planned";
|
|
44
|
+
taskId: string;
|
|
45
|
+
}>]>;
|
|
46
|
+
export type WorkflowBuildOwner = z.infer<typeof workflowBuildOwnerSchema>;
|
|
47
|
+
type WorkflowBuildOwnerSource = {
|
|
48
|
+
owner?: WorkflowBuildOwner;
|
|
49
|
+
plannedTaskId?: string;
|
|
50
|
+
};
|
|
51
|
+
export declare function resolveWorkflowBuildOwner(...sources: Array<WorkflowBuildOwnerSource | undefined>): WorkflowBuildOwner;
|
|
52
|
+
export declare function plannedTaskIdFromWorkflowBuildOwner(owner: WorkflowBuildOwner | undefined): string | undefined;
|
|
53
|
+
export declare function isPlannedWorkflowBuildOwner(owner: WorkflowBuildOwner | undefined): boolean;
|
|
30
54
|
export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
31
55
|
workItemId: z.ZodString;
|
|
32
56
|
threadId: z.ZodString;
|
|
@@ -35,9 +59,27 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
35
59
|
phase: z.ZodEnum<["building", "verifying", "repairing", "done", "blocked"]>;
|
|
36
60
|
status: z.ZodEnum<["active", "completed", "blocked"]>;
|
|
37
61
|
source: z.ZodEnum<["create", "modify"]>;
|
|
62
|
+
owner: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"direct">;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
type: "direct";
|
|
66
|
+
}, {
|
|
67
|
+
type: "direct";
|
|
68
|
+
}>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"planned">;
|
|
70
|
+
taskId: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
type: "planned";
|
|
73
|
+
taskId: string;
|
|
74
|
+
}, {
|
|
75
|
+
type: "planned";
|
|
76
|
+
taskId: string;
|
|
77
|
+
}>]>>;
|
|
78
|
+
plannedTaskId: z.ZodOptional<z.ZodString>;
|
|
38
79
|
lastTaskId: z.ZodOptional<z.ZodString>;
|
|
39
80
|
lastExecutionId: z.ZodOptional<z.ZodString>;
|
|
40
81
|
lastFailureSignature: z.ZodOptional<z.ZodString>;
|
|
82
|
+
lastWorkflowInspection: z.ZodOptional<z.ZodString>;
|
|
41
83
|
rebuildAttempts: z.ZodNumber;
|
|
42
84
|
mockedCredentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
85
|
hasUnresolvedPlaceholders: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -52,70 +94,98 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
52
94
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
53
95
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
54
96
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
category: "
|
|
97
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
56
98
|
shouldEdit: boolean;
|
|
57
99
|
guidance: string;
|
|
58
100
|
reason?: string | undefined;
|
|
59
101
|
remainingSubmitFixes?: number | undefined;
|
|
60
102
|
attemptCount?: number | undefined;
|
|
61
103
|
}, {
|
|
62
|
-
category: "
|
|
104
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
63
105
|
shouldEdit: boolean;
|
|
64
106
|
guidance: string;
|
|
65
107
|
reason?: string | undefined;
|
|
66
108
|
remainingSubmitFixes?: number | undefined;
|
|
67
109
|
attemptCount?: number | undefined;
|
|
68
110
|
}>>;
|
|
111
|
+
setupRoutedAt: z.ZodOptional<z.ZodString>;
|
|
112
|
+
setupRoutingClaimId: z.ZodOptional<z.ZodString>;
|
|
113
|
+
setupRoutingClaimedAt: z.ZodOptional<z.ZodString>;
|
|
114
|
+
setupRoutingClaimExpiresAt: z.ZodOptional<z.ZodString>;
|
|
69
115
|
}, "strip", z.ZodTypeAny, {
|
|
70
116
|
status: "blocked" | "active" | "completed";
|
|
71
|
-
source: "create" | "modify";
|
|
72
117
|
workItemId: string;
|
|
73
118
|
threadId: string;
|
|
74
|
-
phase: "
|
|
119
|
+
phase: "blocked" | "building" | "verifying" | "repairing" | "done";
|
|
120
|
+
source: "create" | "modify";
|
|
75
121
|
rebuildAttempts: number;
|
|
122
|
+
owner?: {
|
|
123
|
+
type: "direct";
|
|
124
|
+
} | {
|
|
125
|
+
type: "planned";
|
|
126
|
+
taskId: string;
|
|
127
|
+
} | undefined;
|
|
128
|
+
plannedTaskId?: string | undefined;
|
|
76
129
|
runId?: string | undefined;
|
|
77
130
|
workflowId?: string | undefined;
|
|
78
131
|
lastTaskId?: string | undefined;
|
|
79
132
|
lastExecutionId?: string | undefined;
|
|
80
133
|
lastFailureSignature?: string | undefined;
|
|
134
|
+
lastWorkflowInspection?: string | undefined;
|
|
81
135
|
mockedCredentialTypes?: string[] | undefined;
|
|
82
136
|
hasUnresolvedPlaceholders?: boolean | undefined;
|
|
83
137
|
successfulSubmitSeen?: boolean | undefined;
|
|
84
138
|
preSaveSubmitFailures?: number | undefined;
|
|
85
139
|
postSubmitRemediationSubmitsUsed?: number | undefined;
|
|
86
140
|
lastRemediation?: {
|
|
87
|
-
category: "
|
|
141
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
88
142
|
shouldEdit: boolean;
|
|
89
143
|
guidance: string;
|
|
90
144
|
reason?: string | undefined;
|
|
91
145
|
remainingSubmitFixes?: number | undefined;
|
|
92
146
|
attemptCount?: number | undefined;
|
|
93
147
|
} | undefined;
|
|
148
|
+
setupRoutedAt?: string | undefined;
|
|
149
|
+
setupRoutingClaimId?: string | undefined;
|
|
150
|
+
setupRoutingClaimedAt?: string | undefined;
|
|
151
|
+
setupRoutingClaimExpiresAt?: string | undefined;
|
|
94
152
|
}, {
|
|
95
153
|
status: "blocked" | "active" | "completed";
|
|
96
|
-
source: "create" | "modify";
|
|
97
154
|
workItemId: string;
|
|
98
155
|
threadId: string;
|
|
99
|
-
phase: "
|
|
156
|
+
phase: "blocked" | "building" | "verifying" | "repairing" | "done";
|
|
157
|
+
source: "create" | "modify";
|
|
100
158
|
rebuildAttempts: number;
|
|
159
|
+
owner?: {
|
|
160
|
+
type: "direct";
|
|
161
|
+
} | {
|
|
162
|
+
type: "planned";
|
|
163
|
+
taskId: string;
|
|
164
|
+
} | undefined;
|
|
165
|
+
plannedTaskId?: string | undefined;
|
|
101
166
|
runId?: string | undefined;
|
|
102
167
|
workflowId?: string | undefined;
|
|
103
168
|
lastTaskId?: string | undefined;
|
|
104
169
|
lastExecutionId?: string | undefined;
|
|
105
170
|
lastFailureSignature?: string | undefined;
|
|
171
|
+
lastWorkflowInspection?: string | undefined;
|
|
106
172
|
mockedCredentialTypes?: string[] | undefined;
|
|
107
173
|
hasUnresolvedPlaceholders?: boolean | undefined;
|
|
108
174
|
successfulSubmitSeen?: boolean | undefined;
|
|
109
175
|
preSaveSubmitFailures?: number | undefined;
|
|
110
176
|
postSubmitRemediationSubmitsUsed?: number | undefined;
|
|
111
177
|
lastRemediation?: {
|
|
112
|
-
category: "
|
|
178
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
113
179
|
shouldEdit: boolean;
|
|
114
180
|
guidance: string;
|
|
115
181
|
reason?: string | undefined;
|
|
116
182
|
remainingSubmitFixes?: number | undefined;
|
|
117
183
|
attemptCount?: number | undefined;
|
|
118
184
|
} | undefined;
|
|
185
|
+
setupRoutedAt?: string | undefined;
|
|
186
|
+
setupRoutingClaimId?: string | undefined;
|
|
187
|
+
setupRoutingClaimedAt?: string | undefined;
|
|
188
|
+
setupRoutingClaimExpiresAt?: string | undefined;
|
|
119
189
|
}>;
|
|
120
190
|
export type WorkflowLoopPhase = z.infer<typeof workflowLoopPhaseSchema>;
|
|
121
191
|
export type WorkflowLoopStatus = z.infer<typeof workflowLoopStatusSchema>;
|
|
@@ -132,6 +202,7 @@ export declare const attemptRecordSchema: z.ZodObject<{
|
|
|
132
202
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
133
203
|
executionId: z.ZodOptional<z.ZodString>;
|
|
134
204
|
failureSignature: z.ZodOptional<z.ZodString>;
|
|
205
|
+
workflowInspection: z.ZodOptional<z.ZodString>;
|
|
135
206
|
diagnosis: z.ZodOptional<z.ZodString>;
|
|
136
207
|
fixApplied: z.ZodOptional<z.ZodString>;
|
|
137
208
|
remediationCategory: z.ZodOptional<z.ZodEnum<["code_fixable", "needs_setup", "blocked"]>>;
|
|
@@ -143,14 +214,15 @@ export declare const attemptRecordSchema: z.ZodObject<{
|
|
|
143
214
|
action: "build" | "verify" | "rebuild" | "patch";
|
|
144
215
|
result: "blocked" | "success" | "failure";
|
|
145
216
|
workItemId: string;
|
|
146
|
-
phase: "
|
|
217
|
+
phase: "blocked" | "building" | "verifying" | "repairing" | "done";
|
|
147
218
|
createdAt: string;
|
|
148
219
|
diagnosis?: string | undefined;
|
|
149
220
|
fixApplied?: string | undefined;
|
|
150
|
-
workflowId?: string | undefined;
|
|
151
221
|
executionId?: string | undefined;
|
|
152
222
|
failureSignature?: string | undefined;
|
|
153
|
-
|
|
223
|
+
workflowId?: string | undefined;
|
|
224
|
+
workflowInspection?: string | undefined;
|
|
225
|
+
remediationCategory?: "code_fixable" | "needs_setup" | "blocked" | undefined;
|
|
154
226
|
remediationShouldEdit?: boolean | undefined;
|
|
155
227
|
remediationGuidance?: string | undefined;
|
|
156
228
|
}, {
|
|
@@ -158,14 +230,15 @@ export declare const attemptRecordSchema: z.ZodObject<{
|
|
|
158
230
|
action: "build" | "verify" | "rebuild" | "patch";
|
|
159
231
|
result: "blocked" | "success" | "failure";
|
|
160
232
|
workItemId: string;
|
|
161
|
-
phase: "
|
|
233
|
+
phase: "blocked" | "building" | "verifying" | "repairing" | "done";
|
|
162
234
|
createdAt: string;
|
|
163
235
|
diagnosis?: string | undefined;
|
|
164
236
|
fixApplied?: string | undefined;
|
|
165
|
-
workflowId?: string | undefined;
|
|
166
237
|
executionId?: string | undefined;
|
|
167
238
|
failureSignature?: string | undefined;
|
|
168
|
-
|
|
239
|
+
workflowId?: string | undefined;
|
|
240
|
+
workflowInspection?: string | undefined;
|
|
241
|
+
remediationCategory?: "code_fixable" | "needs_setup" | "blocked" | undefined;
|
|
169
242
|
remediationShouldEdit?: boolean | undefined;
|
|
170
243
|
remediationGuidance?: string | undefined;
|
|
171
244
|
}>;
|
|
@@ -197,9 +270,9 @@ export declare const workflowVerificationEvidenceSchema: z.ZodObject<{
|
|
|
197
270
|
}>>;
|
|
198
271
|
verifiedAt: z.ZodOptional<z.ZodString>;
|
|
199
272
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
success: boolean;
|
|
201
273
|
attempted: boolean;
|
|
202
|
-
|
|
274
|
+
success: boolean;
|
|
275
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
203
276
|
executionId?: string | undefined;
|
|
204
277
|
failureSignature?: string | undefined;
|
|
205
278
|
evidence?: {
|
|
@@ -210,9 +283,9 @@ export declare const workflowVerificationEvidenceSchema: z.ZodObject<{
|
|
|
210
283
|
} | undefined;
|
|
211
284
|
verifiedAt?: string | undefined;
|
|
212
285
|
}, {
|
|
213
|
-
success: boolean;
|
|
214
286
|
attempted: boolean;
|
|
215
|
-
|
|
287
|
+
success: boolean;
|
|
288
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
216
289
|
executionId?: string | undefined;
|
|
217
290
|
failureSignature?: string | undefined;
|
|
218
291
|
evidence?: {
|
|
@@ -242,24 +315,24 @@ export declare const workflowVerificationReadinessSchema: z.ZodDiscriminatedUnio
|
|
|
242
315
|
guidance: z.ZodString;
|
|
243
316
|
}, "strip", z.ZodTypeAny, {
|
|
244
317
|
status: "needs_setup";
|
|
245
|
-
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
246
318
|
guidance: string;
|
|
319
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
247
320
|
}, {
|
|
248
321
|
status: "needs_setup";
|
|
249
|
-
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
250
322
|
guidance: string;
|
|
323
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
251
324
|
}>, z.ZodObject<{
|
|
252
325
|
status: z.ZodLiteral<"not_verifiable">;
|
|
253
326
|
reason: z.ZodEnum<["not-submitted", "missing-workflow-id", "non-mockable-trigger"]>;
|
|
254
327
|
guidance: z.ZodString;
|
|
255
328
|
}, "strip", z.ZodTypeAny, {
|
|
256
329
|
status: "not_verifiable";
|
|
257
|
-
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
258
330
|
guidance: string;
|
|
331
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
259
332
|
}, {
|
|
260
333
|
status: "not_verifiable";
|
|
261
|
-
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
262
334
|
guidance: string;
|
|
335
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
263
336
|
}>]>;
|
|
264
337
|
export type WorkflowVerificationReadiness = z.infer<typeof workflowVerificationReadinessSchema>;
|
|
265
338
|
export declare const workflowSetupRequirementSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
@@ -274,12 +347,12 @@ export declare const workflowSetupRequirementSchema: z.ZodDiscriminatedUnion<"st
|
|
|
274
347
|
guidance: z.ZodString;
|
|
275
348
|
}, "strip", z.ZodTypeAny, {
|
|
276
349
|
status: "required";
|
|
277
|
-
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
278
350
|
guidance: string;
|
|
351
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
279
352
|
}, {
|
|
280
353
|
status: "required";
|
|
281
|
-
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
282
354
|
guidance: string;
|
|
355
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
283
356
|
}>]>;
|
|
284
357
|
export type WorkflowSetupRequirement = z.infer<typeof workflowSetupRequirementSchema>;
|
|
285
358
|
export declare const triggerNodeDescriptorSchema: z.ZodObject<{
|
|
@@ -297,6 +370,23 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
297
370
|
workItemId: z.ZodString;
|
|
298
371
|
runId: z.ZodOptional<z.ZodString>;
|
|
299
372
|
taskId: z.ZodString;
|
|
373
|
+
owner: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
374
|
+
type: z.ZodLiteral<"direct">;
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
type: "direct";
|
|
377
|
+
}, {
|
|
378
|
+
type: "direct";
|
|
379
|
+
}>, z.ZodObject<{
|
|
380
|
+
type: z.ZodLiteral<"planned">;
|
|
381
|
+
taskId: z.ZodString;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
type: "planned";
|
|
384
|
+
taskId: string;
|
|
385
|
+
}, {
|
|
386
|
+
type: "planned";
|
|
387
|
+
taskId: string;
|
|
388
|
+
}>]>>;
|
|
389
|
+
plannedTaskId: z.ZodOptional<z.ZodString>;
|
|
300
390
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
301
391
|
submitted: z.ZodBoolean;
|
|
302
392
|
triggerType: z.ZodEnum<["manual_or_testable", "trigger_only"]>;
|
|
@@ -338,24 +428,24 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
338
428
|
guidance: z.ZodString;
|
|
339
429
|
}, "strip", z.ZodTypeAny, {
|
|
340
430
|
status: "needs_setup";
|
|
341
|
-
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
342
431
|
guidance: string;
|
|
432
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
343
433
|
}, {
|
|
344
434
|
status: "needs_setup";
|
|
345
|
-
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
346
435
|
guidance: string;
|
|
436
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
347
437
|
}>, z.ZodObject<{
|
|
348
438
|
status: z.ZodLiteral<"not_verifiable">;
|
|
349
439
|
reason: z.ZodEnum<["not-submitted", "missing-workflow-id", "non-mockable-trigger"]>;
|
|
350
440
|
guidance: z.ZodString;
|
|
351
441
|
}, "strip", z.ZodTypeAny, {
|
|
352
442
|
status: "not_verifiable";
|
|
353
|
-
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
354
443
|
guidance: string;
|
|
444
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
355
445
|
}, {
|
|
356
446
|
status: "not_verifiable";
|
|
357
|
-
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
358
447
|
guidance: string;
|
|
448
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
359
449
|
}>]>>;
|
|
360
450
|
setupRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
361
451
|
status: z.ZodLiteral<"not_required">;
|
|
@@ -369,12 +459,12 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
369
459
|
guidance: z.ZodString;
|
|
370
460
|
}, "strip", z.ZodTypeAny, {
|
|
371
461
|
status: "required";
|
|
372
|
-
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
373
462
|
guidance: string;
|
|
463
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
374
464
|
}, {
|
|
375
465
|
status: "required";
|
|
376
|
-
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
377
466
|
guidance: string;
|
|
467
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
378
468
|
}>]>>;
|
|
379
469
|
remediation: z.ZodOptional<z.ZodObject<{
|
|
380
470
|
category: z.ZodEnum<["code_fixable", "needs_setup", "blocked"]>;
|
|
@@ -384,14 +474,14 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
384
474
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
385
475
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
386
476
|
}, "strip", z.ZodTypeAny, {
|
|
387
|
-
category: "
|
|
477
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
388
478
|
shouldEdit: boolean;
|
|
389
479
|
guidance: string;
|
|
390
480
|
reason?: string | undefined;
|
|
391
481
|
remainingSubmitFixes?: number | undefined;
|
|
392
482
|
attemptCount?: number | undefined;
|
|
393
483
|
}, {
|
|
394
|
-
category: "
|
|
484
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
395
485
|
shouldEdit: boolean;
|
|
396
486
|
guidance: string;
|
|
397
487
|
reason?: string | undefined;
|
|
@@ -422,9 +512,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
422
512
|
}>>;
|
|
423
513
|
verifiedAt: z.ZodOptional<z.ZodString>;
|
|
424
514
|
}, "strip", z.ZodTypeAny, {
|
|
425
|
-
success: boolean;
|
|
426
515
|
attempted: boolean;
|
|
427
|
-
|
|
516
|
+
success: boolean;
|
|
517
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
428
518
|
executionId?: string | undefined;
|
|
429
519
|
failureSignature?: string | undefined;
|
|
430
520
|
evidence?: {
|
|
@@ -435,9 +525,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
435
525
|
} | undefined;
|
|
436
526
|
verifiedAt?: string | undefined;
|
|
437
527
|
}, {
|
|
438
|
-
success: boolean;
|
|
439
528
|
attempted: boolean;
|
|
440
|
-
|
|
529
|
+
success: boolean;
|
|
530
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
441
531
|
executionId?: string | undefined;
|
|
442
532
|
failureSignature?: string | undefined;
|
|
443
533
|
evidence?: {
|
|
@@ -450,17 +540,24 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
450
540
|
}>>;
|
|
451
541
|
summary: z.ZodString;
|
|
452
542
|
}, "strip", z.ZodTypeAny, {
|
|
453
|
-
workItemId: string;
|
|
454
543
|
taskId: string;
|
|
544
|
+
workItemId: string;
|
|
455
545
|
submitted: boolean;
|
|
456
546
|
triggerType: "manual_or_testable" | "trigger_only";
|
|
457
547
|
needsUserInput: boolean;
|
|
458
548
|
summary: string;
|
|
549
|
+
owner?: {
|
|
550
|
+
type: "direct";
|
|
551
|
+
} | {
|
|
552
|
+
type: "planned";
|
|
553
|
+
taskId: string;
|
|
554
|
+
} | undefined;
|
|
555
|
+
plannedTaskId?: string | undefined;
|
|
556
|
+
failureSignature?: string | undefined;
|
|
459
557
|
runId?: string | undefined;
|
|
460
558
|
workflowId?: string | undefined;
|
|
461
559
|
mockedCredentialTypes?: string[] | undefined;
|
|
462
560
|
hasUnresolvedPlaceholders?: boolean | undefined;
|
|
463
|
-
failureSignature?: string | undefined;
|
|
464
561
|
triggerNodes?: {
|
|
465
562
|
nodeName: string;
|
|
466
563
|
nodeType: string;
|
|
@@ -477,22 +574,22 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
477
574
|
status: "already_verified";
|
|
478
575
|
} | {
|
|
479
576
|
status: "needs_setup";
|
|
480
|
-
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
481
577
|
guidance: string;
|
|
578
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
482
579
|
} | {
|
|
483
580
|
status: "not_verifiable";
|
|
484
|
-
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
485
581
|
guidance: string;
|
|
582
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
486
583
|
} | undefined;
|
|
487
584
|
setupRequirement?: {
|
|
488
585
|
status: "not_required";
|
|
489
586
|
} | {
|
|
490
587
|
status: "required";
|
|
491
|
-
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
492
588
|
guidance: string;
|
|
589
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
493
590
|
} | undefined;
|
|
494
591
|
remediation?: {
|
|
495
|
-
category: "
|
|
592
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
496
593
|
shouldEdit: boolean;
|
|
497
594
|
guidance: string;
|
|
498
595
|
reason?: string | undefined;
|
|
@@ -500,9 +597,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
500
597
|
attemptCount?: number | undefined;
|
|
501
598
|
} | undefined;
|
|
502
599
|
verification?: {
|
|
503
|
-
success: boolean;
|
|
504
600
|
attempted: boolean;
|
|
505
|
-
|
|
601
|
+
success: boolean;
|
|
602
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
506
603
|
executionId?: string | undefined;
|
|
507
604
|
failureSignature?: string | undefined;
|
|
508
605
|
evidence?: {
|
|
@@ -514,17 +611,24 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
514
611
|
verifiedAt?: string | undefined;
|
|
515
612
|
} | undefined;
|
|
516
613
|
}, {
|
|
517
|
-
workItemId: string;
|
|
518
614
|
taskId: string;
|
|
615
|
+
workItemId: string;
|
|
519
616
|
submitted: boolean;
|
|
520
617
|
triggerType: "manual_or_testable" | "trigger_only";
|
|
521
618
|
needsUserInput: boolean;
|
|
522
619
|
summary: string;
|
|
620
|
+
owner?: {
|
|
621
|
+
type: "direct";
|
|
622
|
+
} | {
|
|
623
|
+
type: "planned";
|
|
624
|
+
taskId: string;
|
|
625
|
+
} | undefined;
|
|
626
|
+
plannedTaskId?: string | undefined;
|
|
627
|
+
failureSignature?: string | undefined;
|
|
523
628
|
runId?: string | undefined;
|
|
524
629
|
workflowId?: string | undefined;
|
|
525
630
|
mockedCredentialTypes?: string[] | undefined;
|
|
526
631
|
hasUnresolvedPlaceholders?: boolean | undefined;
|
|
527
|
-
failureSignature?: string | undefined;
|
|
528
632
|
triggerNodes?: {
|
|
529
633
|
nodeName: string;
|
|
530
634
|
nodeType: string;
|
|
@@ -541,22 +645,22 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
541
645
|
status: "already_verified";
|
|
542
646
|
} | {
|
|
543
647
|
status: "needs_setup";
|
|
544
|
-
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
545
648
|
guidance: string;
|
|
649
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
546
650
|
} | {
|
|
547
651
|
status: "not_verifiable";
|
|
548
|
-
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
549
652
|
guidance: string;
|
|
653
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
550
654
|
} | undefined;
|
|
551
655
|
setupRequirement?: {
|
|
552
656
|
status: "not_required";
|
|
553
657
|
} | {
|
|
554
658
|
status: "required";
|
|
555
|
-
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
556
659
|
guidance: string;
|
|
660
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
557
661
|
} | undefined;
|
|
558
662
|
remediation?: {
|
|
559
|
-
category: "
|
|
663
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
560
664
|
shouldEdit: boolean;
|
|
561
665
|
guidance: string;
|
|
562
666
|
reason?: string | undefined;
|
|
@@ -564,9 +668,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
564
668
|
attemptCount?: number | undefined;
|
|
565
669
|
} | undefined;
|
|
566
670
|
verification?: {
|
|
567
|
-
success: boolean;
|
|
568
671
|
attempted: boolean;
|
|
569
|
-
|
|
672
|
+
success: boolean;
|
|
673
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
570
674
|
executionId?: string | undefined;
|
|
571
675
|
failureSignature?: string | undefined;
|
|
572
676
|
evidence?: {
|
|
@@ -580,6 +684,252 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
580
684
|
}>;
|
|
581
685
|
export type TriggerType = z.infer<typeof triggerTypeSchema>;
|
|
582
686
|
export type WorkflowBuildOutcome = z.infer<typeof workflowBuildOutcomeSchema>;
|
|
687
|
+
export declare const workflowVerificationObligationStatusSchema: z.ZodEnum<["pending_build", "ready_to_verify", "verifying", "verified", "needs_setup", "not_verifiable", "blocked"]>;
|
|
688
|
+
export declare const workflowVerificationObligationPolicySchema: z.ZodEnum<["required", "best_effort", "manual"]>;
|
|
689
|
+
export declare const workflowVerificationObligationSourceSchema: z.ZodEnum<["direct", "planned"]>;
|
|
690
|
+
export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
691
|
+
workItemId: z.ZodString;
|
|
692
|
+
threadId: z.ZodString;
|
|
693
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
694
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
695
|
+
owner: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
696
|
+
type: z.ZodLiteral<"direct">;
|
|
697
|
+
}, "strip", z.ZodTypeAny, {
|
|
698
|
+
type: "direct";
|
|
699
|
+
}, {
|
|
700
|
+
type: "direct";
|
|
701
|
+
}>, z.ZodObject<{
|
|
702
|
+
type: z.ZodLiteral<"planned">;
|
|
703
|
+
taskId: z.ZodString;
|
|
704
|
+
}, "strip", z.ZodTypeAny, {
|
|
705
|
+
type: "planned";
|
|
706
|
+
taskId: string;
|
|
707
|
+
}, {
|
|
708
|
+
type: "planned";
|
|
709
|
+
taskId: string;
|
|
710
|
+
}>]>>;
|
|
711
|
+
plannedTaskId: z.ZodOptional<z.ZodString>;
|
|
712
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
713
|
+
source: z.ZodEnum<["direct", "planned"]>;
|
|
714
|
+
policy: z.ZodEnum<["required", "best_effort", "manual"]>;
|
|
715
|
+
status: z.ZodEnum<["pending_build", "ready_to_verify", "verifying", "verified", "needs_setup", "not_verifiable", "blocked"]>;
|
|
716
|
+
readiness: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
717
|
+
status: z.ZodLiteral<"ready">;
|
|
718
|
+
}, "strip", z.ZodTypeAny, {
|
|
719
|
+
status: "ready";
|
|
720
|
+
}, {
|
|
721
|
+
status: "ready";
|
|
722
|
+
}>, z.ZodObject<{
|
|
723
|
+
status: z.ZodLiteral<"already_verified">;
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
|
+
status: "already_verified";
|
|
726
|
+
}, {
|
|
727
|
+
status: "already_verified";
|
|
728
|
+
}>, z.ZodObject<{
|
|
729
|
+
status: z.ZodLiteral<"needs_setup">;
|
|
730
|
+
reason: z.ZodEnum<["unresolved-placeholders", "missing-mocked-credential-pin-data", "workflow-needs-setup"]>;
|
|
731
|
+
guidance: z.ZodString;
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
|
+
status: "needs_setup";
|
|
734
|
+
guidance: string;
|
|
735
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
736
|
+
}, {
|
|
737
|
+
status: "needs_setup";
|
|
738
|
+
guidance: string;
|
|
739
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
740
|
+
}>, z.ZodObject<{
|
|
741
|
+
status: z.ZodLiteral<"not_verifiable">;
|
|
742
|
+
reason: z.ZodEnum<["not-submitted", "missing-workflow-id", "non-mockable-trigger"]>;
|
|
743
|
+
guidance: z.ZodString;
|
|
744
|
+
}, "strip", z.ZodTypeAny, {
|
|
745
|
+
status: "not_verifiable";
|
|
746
|
+
guidance: string;
|
|
747
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
748
|
+
}, {
|
|
749
|
+
status: "not_verifiable";
|
|
750
|
+
guidance: string;
|
|
751
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
752
|
+
}>]>>;
|
|
753
|
+
setupRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
754
|
+
status: z.ZodLiteral<"not_required">;
|
|
755
|
+
}, "strip", z.ZodTypeAny, {
|
|
756
|
+
status: "not_required";
|
|
757
|
+
}, {
|
|
758
|
+
status: "not_required";
|
|
759
|
+
}>, z.ZodObject<{
|
|
760
|
+
status: z.ZodLiteral<"required">;
|
|
761
|
+
reason: z.ZodEnum<["mocked-credentials", "unresolved-placeholders", "workflow-needs-setup"]>;
|
|
762
|
+
guidance: z.ZodString;
|
|
763
|
+
}, "strip", z.ZodTypeAny, {
|
|
764
|
+
status: "required";
|
|
765
|
+
guidance: string;
|
|
766
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
767
|
+
}, {
|
|
768
|
+
status: "required";
|
|
769
|
+
guidance: string;
|
|
770
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
771
|
+
}>]>>;
|
|
772
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
773
|
+
attempted: z.ZodBoolean;
|
|
774
|
+
success: z.ZodBoolean;
|
|
775
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
776
|
+
status: z.ZodOptional<z.ZodEnum<["success", "error", "waiting", "running", "unknown"]>>;
|
|
777
|
+
failureSignature: z.ZodOptional<z.ZodString>;
|
|
778
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
779
|
+
nodesExecuted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
780
|
+
producedOutputRows: z.ZodOptional<z.ZodNumber>;
|
|
781
|
+
errorNodeName: z.ZodOptional<z.ZodString>;
|
|
782
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
783
|
+
}, "strip", z.ZodTypeAny, {
|
|
784
|
+
nodesExecuted?: string[] | undefined;
|
|
785
|
+
producedOutputRows?: number | undefined;
|
|
786
|
+
errorNodeName?: string | undefined;
|
|
787
|
+
errorMessage?: string | undefined;
|
|
788
|
+
}, {
|
|
789
|
+
nodesExecuted?: string[] | undefined;
|
|
790
|
+
producedOutputRows?: number | undefined;
|
|
791
|
+
errorNodeName?: string | undefined;
|
|
792
|
+
errorMessage?: string | undefined;
|
|
793
|
+
}>>;
|
|
794
|
+
verifiedAt: z.ZodOptional<z.ZodString>;
|
|
795
|
+
}, "strip", z.ZodTypeAny, {
|
|
796
|
+
attempted: boolean;
|
|
797
|
+
success: boolean;
|
|
798
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
799
|
+
executionId?: string | undefined;
|
|
800
|
+
failureSignature?: string | undefined;
|
|
801
|
+
evidence?: {
|
|
802
|
+
nodesExecuted?: string[] | undefined;
|
|
803
|
+
producedOutputRows?: number | undefined;
|
|
804
|
+
errorNodeName?: string | undefined;
|
|
805
|
+
errorMessage?: string | undefined;
|
|
806
|
+
} | undefined;
|
|
807
|
+
verifiedAt?: string | undefined;
|
|
808
|
+
}, {
|
|
809
|
+
attempted: boolean;
|
|
810
|
+
success: boolean;
|
|
811
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
812
|
+
executionId?: string | undefined;
|
|
813
|
+
failureSignature?: string | undefined;
|
|
814
|
+
evidence?: {
|
|
815
|
+
nodesExecuted?: string[] | undefined;
|
|
816
|
+
producedOutputRows?: number | undefined;
|
|
817
|
+
errorNodeName?: string | undefined;
|
|
818
|
+
errorMessage?: string | undefined;
|
|
819
|
+
} | undefined;
|
|
820
|
+
verifiedAt?: string | undefined;
|
|
821
|
+
}>>;
|
|
822
|
+
blockingReason: z.ZodOptional<z.ZodString>;
|
|
823
|
+
updatedAt: z.ZodString;
|
|
824
|
+
}, "strip", z.ZodTypeAny, {
|
|
825
|
+
status: "needs_setup" | "blocked" | "not_verifiable" | "verifying" | "pending_build" | "ready_to_verify" | "verified";
|
|
826
|
+
workItemId: string;
|
|
827
|
+
threadId: string;
|
|
828
|
+
source: "direct" | "planned";
|
|
829
|
+
policy: "required" | "best_effort" | "manual";
|
|
830
|
+
updatedAt: string;
|
|
831
|
+
owner?: {
|
|
832
|
+
type: "direct";
|
|
833
|
+
} | {
|
|
834
|
+
type: "planned";
|
|
835
|
+
taskId: string;
|
|
836
|
+
} | undefined;
|
|
837
|
+
taskId?: string | undefined;
|
|
838
|
+
plannedTaskId?: string | undefined;
|
|
839
|
+
evidence?: {
|
|
840
|
+
attempted: boolean;
|
|
841
|
+
success: boolean;
|
|
842
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
843
|
+
executionId?: string | undefined;
|
|
844
|
+
failureSignature?: string | undefined;
|
|
845
|
+
evidence?: {
|
|
846
|
+
nodesExecuted?: string[] | undefined;
|
|
847
|
+
producedOutputRows?: number | undefined;
|
|
848
|
+
errorNodeName?: string | undefined;
|
|
849
|
+
errorMessage?: string | undefined;
|
|
850
|
+
} | undefined;
|
|
851
|
+
verifiedAt?: string | undefined;
|
|
852
|
+
} | undefined;
|
|
853
|
+
runId?: string | undefined;
|
|
854
|
+
workflowId?: string | undefined;
|
|
855
|
+
blockingReason?: string | undefined;
|
|
856
|
+
setupRequirement?: {
|
|
857
|
+
status: "not_required";
|
|
858
|
+
} | {
|
|
859
|
+
status: "required";
|
|
860
|
+
guidance: string;
|
|
861
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
862
|
+
} | undefined;
|
|
863
|
+
readiness?: {
|
|
864
|
+
status: "ready";
|
|
865
|
+
} | {
|
|
866
|
+
status: "already_verified";
|
|
867
|
+
} | {
|
|
868
|
+
status: "needs_setup";
|
|
869
|
+
guidance: string;
|
|
870
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
871
|
+
} | {
|
|
872
|
+
status: "not_verifiable";
|
|
873
|
+
guidance: string;
|
|
874
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
875
|
+
} | undefined;
|
|
876
|
+
}, {
|
|
877
|
+
status: "needs_setup" | "blocked" | "not_verifiable" | "verifying" | "pending_build" | "ready_to_verify" | "verified";
|
|
878
|
+
workItemId: string;
|
|
879
|
+
threadId: string;
|
|
880
|
+
source: "direct" | "planned";
|
|
881
|
+
policy: "required" | "best_effort" | "manual";
|
|
882
|
+
updatedAt: string;
|
|
883
|
+
owner?: {
|
|
884
|
+
type: "direct";
|
|
885
|
+
} | {
|
|
886
|
+
type: "planned";
|
|
887
|
+
taskId: string;
|
|
888
|
+
} | undefined;
|
|
889
|
+
taskId?: string | undefined;
|
|
890
|
+
plannedTaskId?: string | undefined;
|
|
891
|
+
evidence?: {
|
|
892
|
+
attempted: boolean;
|
|
893
|
+
success: boolean;
|
|
894
|
+
status?: "error" | "unknown" | "success" | "waiting" | "running" | undefined;
|
|
895
|
+
executionId?: string | undefined;
|
|
896
|
+
failureSignature?: string | undefined;
|
|
897
|
+
evidence?: {
|
|
898
|
+
nodesExecuted?: string[] | undefined;
|
|
899
|
+
producedOutputRows?: number | undefined;
|
|
900
|
+
errorNodeName?: string | undefined;
|
|
901
|
+
errorMessage?: string | undefined;
|
|
902
|
+
} | undefined;
|
|
903
|
+
verifiedAt?: string | undefined;
|
|
904
|
+
} | undefined;
|
|
905
|
+
runId?: string | undefined;
|
|
906
|
+
workflowId?: string | undefined;
|
|
907
|
+
blockingReason?: string | undefined;
|
|
908
|
+
setupRequirement?: {
|
|
909
|
+
status: "not_required";
|
|
910
|
+
} | {
|
|
911
|
+
status: "required";
|
|
912
|
+
guidance: string;
|
|
913
|
+
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
914
|
+
} | undefined;
|
|
915
|
+
readiness?: {
|
|
916
|
+
status: "ready";
|
|
917
|
+
} | {
|
|
918
|
+
status: "already_verified";
|
|
919
|
+
} | {
|
|
920
|
+
status: "needs_setup";
|
|
921
|
+
guidance: string;
|
|
922
|
+
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
923
|
+
} | {
|
|
924
|
+
status: "not_verifiable";
|
|
925
|
+
guidance: string;
|
|
926
|
+
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
927
|
+
} | undefined;
|
|
928
|
+
}>;
|
|
929
|
+
export type WorkflowVerificationObligationStatus = z.infer<typeof workflowVerificationObligationStatusSchema>;
|
|
930
|
+
export type WorkflowVerificationObligationPolicy = z.infer<typeof workflowVerificationObligationPolicySchema>;
|
|
931
|
+
export type WorkflowVerificationObligationSource = z.infer<typeof workflowVerificationObligationSourceSchema>;
|
|
932
|
+
export type WorkflowVerificationObligation = z.infer<typeof workflowVerificationObligationSchema>;
|
|
583
933
|
export declare const verificationVerdictSchema: z.ZodEnum<["verified", "needs_patch", "needs_rebuild", "trigger_only", "needs_user_input", "failed_terminal"]>;
|
|
584
934
|
export declare const verificationResultSchema: z.ZodObject<{
|
|
585
935
|
workItemId: z.ZodString;
|
|
@@ -587,6 +937,7 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
587
937
|
workflowId: z.ZodString;
|
|
588
938
|
executionId: z.ZodOptional<z.ZodString>;
|
|
589
939
|
verdict: z.ZodEnum<["verified", "needs_patch", "needs_rebuild", "trigger_only", "needs_user_input", "failed_terminal"]>;
|
|
940
|
+
workflowInspection: z.ZodOptional<z.ZodString>;
|
|
590
941
|
failureSignature: z.ZodOptional<z.ZodString>;
|
|
591
942
|
failedNodeName: z.ZodOptional<z.ZodString>;
|
|
592
943
|
diagnosis: z.ZodOptional<z.ZodString>;
|
|
@@ -599,14 +950,14 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
599
950
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
600
951
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
601
952
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
category: "
|
|
953
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
603
954
|
shouldEdit: boolean;
|
|
604
955
|
guidance: string;
|
|
605
956
|
reason?: string | undefined;
|
|
606
957
|
remainingSubmitFixes?: number | undefined;
|
|
607
958
|
attemptCount?: number | undefined;
|
|
608
959
|
}, {
|
|
609
|
-
category: "
|
|
960
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
610
961
|
shouldEdit: boolean;
|
|
611
962
|
guidance: string;
|
|
612
963
|
reason?: string | undefined;
|
|
@@ -620,12 +971,13 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
620
971
|
summary: string;
|
|
621
972
|
verdict: "trigger_only" | "verified" | "needs_patch" | "needs_rebuild" | "needs_user_input" | "failed_terminal";
|
|
622
973
|
diagnosis?: string | undefined;
|
|
623
|
-
runId?: string | undefined;
|
|
624
|
-
patch?: Record<string, unknown> | undefined;
|
|
625
974
|
executionId?: string | undefined;
|
|
626
975
|
failureSignature?: string | undefined;
|
|
976
|
+
runId?: string | undefined;
|
|
977
|
+
patch?: Record<string, unknown> | undefined;
|
|
978
|
+
workflowInspection?: string | undefined;
|
|
627
979
|
remediation?: {
|
|
628
|
-
category: "
|
|
980
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
629
981
|
shouldEdit: boolean;
|
|
630
982
|
guidance: string;
|
|
631
983
|
reason?: string | undefined;
|
|
@@ -639,12 +991,13 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
639
991
|
summary: string;
|
|
640
992
|
verdict: "trigger_only" | "verified" | "needs_patch" | "needs_rebuild" | "needs_user_input" | "failed_terminal";
|
|
641
993
|
diagnosis?: string | undefined;
|
|
642
|
-
runId?: string | undefined;
|
|
643
|
-
patch?: Record<string, unknown> | undefined;
|
|
644
994
|
executionId?: string | undefined;
|
|
645
995
|
failureSignature?: string | undefined;
|
|
996
|
+
runId?: string | undefined;
|
|
997
|
+
patch?: Record<string, unknown> | undefined;
|
|
998
|
+
workflowInspection?: string | undefined;
|
|
646
999
|
remediation?: {
|
|
647
|
-
category: "
|
|
1000
|
+
category: "code_fixable" | "needs_setup" | "blocked";
|
|
648
1001
|
shouldEdit: boolean;
|
|
649
1002
|
guidance: string;
|
|
650
1003
|
reason?: string | undefined;
|
|
@@ -684,3 +1037,4 @@ export type WorkflowLoopAction = {
|
|
|
684
1037
|
type: 'blocked';
|
|
685
1038
|
reason: string;
|
|
686
1039
|
};
|
|
1040
|
+
export {};
|