@n8n/instance-ai 1.14.7 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/apply-agent-thinking.js +3 -3
- package/dist/agent/apply-agent-thinking.js.map +1 -1
- package/dist/agent/computer-use-prompt.js +12 -10
- package/dist/agent/computer-use-prompt.js.map +1 -1
- package/dist/agent/instance-agent.js +5 -2
- package/dist/agent/instance-agent.js.map +1 -1
- package/dist/agent/sanitize-mcp-schemas.js +3 -3
- package/dist/agent/sanitize-mcp-schemas.js.map +1 -1
- package/dist/agent/shared-prompts.js +3 -5
- package/dist/agent/shared-prompts.js.map +1 -1
- package/dist/agent/sub-agent-debriefing.d.ts +4 -4
- package/dist/agent/system-prompt.d.ts +1 -0
- package/dist/agent/system-prompt.js +10 -5
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/debug/run-debug-buffer.js +4 -4
- package/dist/debug/run-debug-buffer.js.map +1 -1
- package/dist/debug/sanitize-debug-snapshot.js +6 -5
- package/dist/debug/sanitize-debug-snapshot.js.map +1 -1
- package/dist/domain-access/domain-access-tracker.d.ts +8 -4
- package/dist/domain-access/domain-access-tracker.js +12 -7
- package/dist/domain-access/domain-access-tracker.js.map +1 -1
- package/dist/domain-access/domain-gating.d.ts +4 -4
- package/dist/domain-access/domain-gating.js +5 -5
- package/dist/domain-access/domain-gating.js.map +1 -1
- package/dist/error-formatting.js +3 -3
- package/dist/error-formatting.js.map +1 -1
- package/dist/index.d.ts +3 -20
- package/dist/index.js +4 -22
- package/dist/index.js.map +1 -1
- package/dist/mcp/mcp-client-manager.d.ts +11 -2
- package/dist/mcp/mcp-client-manager.js +17 -9
- package/dist/mcp/mcp-client-manager.js.map +1 -1
- package/dist/runtime/resumable-stream-executor.js +8 -8
- package/dist/runtime/resumable-stream-executor.js.map +1 -1
- package/dist/runtime/run-state-registry.d.ts +4 -0
- package/dist/runtime/run-state-registry.js +22 -8
- package/dist/runtime/run-state-registry.js.map +1 -1
- package/dist/runtime/terminal-response-guard.js +6 -1
- package/dist/runtime/terminal-response-guard.js.map +1 -1
- package/dist/storage/terminal-outcome-storage.d.ts +4 -4
- package/dist/storage/workflow-loop-storage.d.ts +94 -94
- package/dist/stream/map-chunk.js +17 -17
- package/dist/stream/map-chunk.js.map +1 -1
- package/dist/stream/output-redaction.js +8 -6
- package/dist/stream/output-redaction.js.map +1 -1
- package/dist/stream/usage-accumulator.d.ts +18 -18
- 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 -2
- package/dist/tools/data-tables.tool.js +2 -2
- package/dist/tools/data-tables.tool.js.map +1 -1
- package/dist/tools/evals/column-ref-utils.js +4 -4
- package/dist/tools/evals/column-ref-utils.js.map +1 -1
- package/dist/tools/evals/describe-metric-for-workflow.service.js +3 -3
- package/dist/tools/evals/describe-metric-for-workflow.service.js.map +1 -1
- package/dist/tools/evals/detect-tool-refs.service.js +2 -2
- package/dist/tools/evals/detect-tool-refs.service.js.map +1 -1
- package/dist/tools/evals/eval-data-requirements.service.js +10 -10
- package/dist/tools/evals/eval-data-requirements.service.js.map +1 -1
- package/dist/tools/evals/evals.tool.js +7 -8
- package/dist/tools/evals/evals.tool.js.map +1 -1
- package/dist/tools/evals/extract-rows-from-history.service.js +7 -7
- package/dist/tools/evals/extract-rows-from-history.service.js.map +1 -1
- package/dist/tools/evals/generate-sample-rows.service.js +5 -5
- package/dist/tools/evals/generate-sample-rows.service.js.map +1 -1
- package/dist/tools/evals/metric-catalog.js +3 -3
- package/dist/tools/evals/metric-catalog.js.map +1 -1
- package/dist/tools/executions.tool.js +4 -6
- package/dist/tools/executions.tool.js.map +1 -1
- package/dist/tools/filesystem/create-tools-from-mcp-server.js +6 -6
- package/dist/tools/filesystem/create-tools-from-mcp-server.js.map +1 -1
- package/dist/tools/n8n-docs/schemas.d.ts +4 -4
- package/dist/tools/nodes/node-search-engine.js +3 -3
- package/dist/tools/nodes/node-search-engine.js.map +1 -1
- package/dist/tools/nodes.tool.js +13 -30
- package/dist/tools/nodes.tool.js.map +1 -1
- package/dist/tools/orchestration/complete-checkpoint.tool.js +2 -2
- package/dist/tools/orchestration/complete-checkpoint.tool.js.map +1 -1
- package/dist/tools/orchestration/delegate.schemas.d.ts +1 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.d.ts +8 -8
- package/dist/tools/orchestration/verification/analyze-result.js +4 -3
- package/dist/tools/orchestration/verification/analyze-result.js.map +1 -1
- package/dist/tools/orchestration/verify-built-workflow.tool.d.ts +2 -2
- package/dist/tools/orchestration/verify-built-workflow.tool.js +4 -7
- package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -1
- package/dist/tools/research.tool.js +2 -2
- package/dist/tools/research.tool.js.map +1 -1
- package/dist/tools/shared/ask-user.tool.d.ts +4 -4
- package/dist/tools/shared/ask-user.tool.js +11 -21
- package/dist/tools/shared/ask-user.tool.js.map +1 -1
- package/dist/tools/tool-ids.d.ts +1 -0
- package/dist/tools/tool-ids.js +2 -1
- package/dist/tools/tool-ids.js.map +1 -1
- package/dist/tools/workflows/apply-workflow-credentials.tool.js +6 -11
- package/dist/tools/workflows/apply-workflow-credentials.tool.js.map +1 -1
- package/dist/tools/workflows/build-workflow.tool.d.ts +9 -2
- package/dist/tools/workflows/build-workflow.tool.js +127 -5
- package/dist/tools/workflows/build-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/classify-node-destructiveness.service.js +4 -4
- package/dist/tools/workflows/classify-node-destructiveness.service.js.map +1 -1
- package/dist/tools/workflows/credential-url-resolver.d.ts +21 -0
- package/dist/tools/workflows/credential-url-resolver.js +79 -0
- package/dist/tools/workflows/credential-url-resolver.js.map +1 -0
- package/dist/tools/workflows/credential-utils.d.ts +28 -0
- package/dist/tools/workflows/credential-utils.js +61 -0
- package/dist/tools/workflows/credential-utils.js.map +1 -0
- package/dist/tools/workflows/detect-array-input-collapse.js +4 -4
- package/dist/tools/workflows/detect-array-input-collapse.js.map +1 -1
- package/dist/tools/workflows/detect-wrong-kind-locator.d.ts +10 -0
- package/dist/tools/workflows/detect-wrong-kind-locator.js +105 -0
- package/dist/tools/workflows/detect-wrong-kind-locator.js.map +1 -0
- package/dist/tools/workflows/generate-simulation-fixtures.service.js +3 -3
- package/dist/tools/workflows/generate-simulation-fixtures.service.js.map +1 -1
- package/dist/tools/workflows/materialize-node-type.tool.d.ts +4 -4
- package/dist/tools/workflows/setup-workflow.schema.d.ts +63 -27
- package/dist/tools/workflows/setup-workflow.service.js +26 -43
- package/dist/tools/workflows/setup-workflow.service.js.map +1 -1
- package/dist/tools/workflows/summarize-workflow.d.ts +5 -0
- package/dist/tools/workflows/summarize-workflow.js +114 -0
- package/dist/tools/workflows/summarize-workflow.js.map +1 -0
- package/dist/tools/workflows/workflow-json-utils.js +6 -5
- package/dist/tools/workflows/workflow-json-utils.js.map +1 -1
- package/dist/tools/workflows/workflow-source-compiler.js +48 -9
- package/dist/tools/workflows/workflow-source-compiler.js.map +1 -1
- package/dist/tools/workflows/workflow-validation-warnings.js +5 -1
- package/dist/tools/workflows/workflow-validation-warnings.js.map +1 -1
- package/dist/tools/workflows.tool.d.ts +1 -1
- package/dist/tools/workflows.tool.js +47 -22
- package/dist/tools/workflows.tool.js.map +1 -1
- package/dist/tracing/langsmith-tracing.d.ts +5 -1
- package/dist/tracing/langsmith-tracing.js +66 -13
- package/dist/tracing/langsmith-tracing.js.map +1 -1
- package/dist/tracing/trace-payloads.d.ts +1 -0
- package/dist/tracing/trace-payloads.js +46 -29
- package/dist/tracing/trace-payloads.js.map +1 -1
- package/dist/types.d.ts +16 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/stream-helpers.js +5 -5
- package/dist/utils/stream-helpers.js.map +1 -1
- package/dist/workflow-builder/index.d.ts +0 -1
- package/dist/workflow-builder/index.js +1 -6
- package/dist/workflow-builder/index.js.map +1 -1
- package/dist/workflow-loop/index.d.ts +0 -1
- package/dist/workflow-loop/index.js +1 -3
- package/dist/workflow-loop/index.js.map +1 -1
- package/dist/workflow-loop/workflow-loop-state.d.ts +112 -112
- package/dist/workspace/snapshot-image-context.js +24 -11
- package/dist/workspace/snapshot-image-context.js.map +1 -1
- package/dist/workspace/snapshot-manager.d.ts +0 -1
- package/dist/workspace/snapshot-manager.js +0 -7
- package/dist/workspace/snapshot-manager.js.map +1 -1
- package/dist/workspace/template-telemetry.js +5 -4
- package/dist/workspace/template-telemetry.js.map +1 -1
- package/dist/workspace/workspace-manifest.js +2 -2
- package/dist/workspace/workspace-manifest.js.map +1 -1
- package/knowledge-base/reference/workflow-builder-guardrails.md +33 -0
- package/package.json +14 -12
- package/skills/post-build-flow/SKILL.md +106 -10
- package/skills/workflow-builder/SKILL.md +174 -225
- package/skills/workflow-builder/references/compositional-workflows.md +66 -0
- package/skills/workflow-builder/references/error-workflows.md +35 -0
- package/dist/tools/nodes/suggested-nodes-data.d.ts +0 -11
- package/dist/tools/nodes/suggested-nodes-data.js +0 -333
- package/dist/tools/nodes/suggested-nodes-data.js.map +0 -1
- package/dist/workflow-builder/sdk-prompt-sections.d.ts +0 -1
- package/dist/workflow-builder/sdk-prompt-sections.js +0 -9
- package/dist/workflow-builder/sdk-prompt-sections.js.map +0 -1
- package/dist/workflow-loop/terminal-remediation-guard.d.ts +0 -6
- package/dist/workflow-loop/terminal-remediation-guard.js +0 -18
- package/dist/workflow-loop/terminal-remediation-guard.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: "blocked" | "code_fixable" | "needs_setup";
|
|
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: "blocked" | "code_fixable" | "needs_setup";
|
|
22
22
|
shouldEdit: boolean;
|
|
23
23
|
guidance: string;
|
|
24
24
|
reason?: string | undefined;
|
|
@@ -95,14 +95,14 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
95
95
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
category: "
|
|
98
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
99
99
|
shouldEdit: boolean;
|
|
100
100
|
guidance: string;
|
|
101
101
|
reason?: string | undefined;
|
|
102
102
|
remainingSubmitFixes?: number | undefined;
|
|
103
103
|
attemptCount?: number | undefined;
|
|
104
104
|
}, {
|
|
105
|
-
category: "
|
|
105
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
106
106
|
shouldEdit: boolean;
|
|
107
107
|
guidance: string;
|
|
108
108
|
reason?: string | undefined;
|
|
@@ -115,11 +115,12 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
115
115
|
setupRoutingClaimExpiresAt: z.ZodOptional<z.ZodString>;
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
117
|
status: "blocked" | "active" | "completed";
|
|
118
|
+
threadId: string;
|
|
118
119
|
source: "create" | "modify";
|
|
119
120
|
workItemId: string;
|
|
120
|
-
|
|
121
|
-
phase: "blocked" | "building" | "verifying" | "repairing" | "done";
|
|
121
|
+
phase: "building" | "verifying" | "repairing" | "done" | "blocked";
|
|
122
122
|
rebuildAttempts: number;
|
|
123
|
+
runId?: string | undefined;
|
|
123
124
|
owner?: {
|
|
124
125
|
type: "direct";
|
|
125
126
|
} | {
|
|
@@ -127,7 +128,6 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
127
128
|
taskId: string;
|
|
128
129
|
} | undefined;
|
|
129
130
|
plannedTaskId?: string | undefined;
|
|
130
|
-
runId?: string | undefined;
|
|
131
131
|
workflowId?: string | undefined;
|
|
132
132
|
sourceFilePath?: string | undefined;
|
|
133
133
|
lastTaskId?: string | undefined;
|
|
@@ -140,7 +140,7 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
140
140
|
preSaveSubmitFailures?: number | undefined;
|
|
141
141
|
postSubmitRemediationSubmitsUsed?: number | undefined;
|
|
142
142
|
lastRemediation?: {
|
|
143
|
-
category: "
|
|
143
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
144
144
|
shouldEdit: boolean;
|
|
145
145
|
guidance: string;
|
|
146
146
|
reason?: string | undefined;
|
|
@@ -153,11 +153,12 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
153
153
|
setupRoutingClaimExpiresAt?: string | undefined;
|
|
154
154
|
}, {
|
|
155
155
|
status: "blocked" | "active" | "completed";
|
|
156
|
+
threadId: string;
|
|
156
157
|
source: "create" | "modify";
|
|
157
158
|
workItemId: string;
|
|
158
|
-
|
|
159
|
-
phase: "blocked" | "building" | "verifying" | "repairing" | "done";
|
|
159
|
+
phase: "building" | "verifying" | "repairing" | "done" | "blocked";
|
|
160
160
|
rebuildAttempts: number;
|
|
161
|
+
runId?: string | undefined;
|
|
161
162
|
owner?: {
|
|
162
163
|
type: "direct";
|
|
163
164
|
} | {
|
|
@@ -165,7 +166,6 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
165
166
|
taskId: string;
|
|
166
167
|
} | undefined;
|
|
167
168
|
plannedTaskId?: string | undefined;
|
|
168
|
-
runId?: string | undefined;
|
|
169
169
|
workflowId?: string | undefined;
|
|
170
170
|
sourceFilePath?: string | undefined;
|
|
171
171
|
lastTaskId?: string | undefined;
|
|
@@ -178,7 +178,7 @@ export declare const workflowLoopStateSchema: z.ZodObject<{
|
|
|
178
178
|
preSaveSubmitFailures?: number | undefined;
|
|
179
179
|
postSubmitRemediationSubmitsUsed?: number | undefined;
|
|
180
180
|
lastRemediation?: {
|
|
181
|
-
category: "
|
|
181
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
182
182
|
shouldEdit: boolean;
|
|
183
183
|
guidance: string;
|
|
184
184
|
reason?: string | undefined;
|
|
@@ -214,34 +214,34 @@ export declare const attemptRecordSchema: z.ZodObject<{
|
|
|
214
214
|
createdAt: z.ZodString;
|
|
215
215
|
}, "strip", z.ZodTypeAny, {
|
|
216
216
|
attempt: number;
|
|
217
|
-
action: "
|
|
218
|
-
result: "
|
|
217
|
+
action: "patch" | "build" | "verify" | "rebuild";
|
|
218
|
+
result: "success" | "blocked" | "failure";
|
|
219
219
|
workItemId: string;
|
|
220
|
-
phase: "
|
|
220
|
+
phase: "building" | "verifying" | "repairing" | "done" | "blocked";
|
|
221
221
|
createdAt: string;
|
|
222
222
|
diagnosis?: string | undefined;
|
|
223
223
|
fixApplied?: string | undefined;
|
|
224
|
+
workflowId?: string | undefined;
|
|
224
225
|
executionId?: string | undefined;
|
|
225
226
|
failureSignature?: string | undefined;
|
|
226
|
-
workflowId?: string | undefined;
|
|
227
227
|
workflowInspection?: string | undefined;
|
|
228
|
-
remediationCategory?: "
|
|
228
|
+
remediationCategory?: "blocked" | "code_fixable" | "needs_setup" | undefined;
|
|
229
229
|
remediationShouldEdit?: boolean | undefined;
|
|
230
230
|
remediationGuidance?: string | undefined;
|
|
231
231
|
}, {
|
|
232
232
|
attempt: number;
|
|
233
|
-
action: "
|
|
234
|
-
result: "
|
|
233
|
+
action: "patch" | "build" | "verify" | "rebuild";
|
|
234
|
+
result: "success" | "blocked" | "failure";
|
|
235
235
|
workItemId: string;
|
|
236
|
-
phase: "
|
|
236
|
+
phase: "building" | "verifying" | "repairing" | "done" | "blocked";
|
|
237
237
|
createdAt: string;
|
|
238
238
|
diagnosis?: string | undefined;
|
|
239
239
|
fixApplied?: string | undefined;
|
|
240
|
+
workflowId?: string | undefined;
|
|
240
241
|
executionId?: string | undefined;
|
|
241
242
|
failureSignature?: string | undefined;
|
|
242
|
-
workflowId?: string | undefined;
|
|
243
243
|
workflowInspection?: string | undefined;
|
|
244
|
-
remediationCategory?: "
|
|
244
|
+
remediationCategory?: "blocked" | "code_fixable" | "needs_setup" | undefined;
|
|
245
245
|
remediationShouldEdit?: boolean | undefined;
|
|
246
246
|
remediationGuidance?: string | undefined;
|
|
247
247
|
}>;
|
|
@@ -276,9 +276,9 @@ export declare const workflowVerificationEvidenceSchema: z.ZodObject<{
|
|
|
276
276
|
}>>;
|
|
277
277
|
verifiedAt: z.ZodOptional<z.ZodString>;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
attempted: boolean;
|
|
280
279
|
success: boolean;
|
|
281
|
-
|
|
280
|
+
attempted: boolean;
|
|
281
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
282
282
|
executionId?: string | undefined;
|
|
283
283
|
failureSignature?: string | undefined;
|
|
284
284
|
evidence?: {
|
|
@@ -290,9 +290,9 @@ export declare const workflowVerificationEvidenceSchema: z.ZodObject<{
|
|
|
290
290
|
} | undefined;
|
|
291
291
|
verifiedAt?: string | undefined;
|
|
292
292
|
}, {
|
|
293
|
-
attempted: boolean;
|
|
294
293
|
success: boolean;
|
|
295
|
-
|
|
294
|
+
attempted: boolean;
|
|
295
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
296
296
|
executionId?: string | undefined;
|
|
297
297
|
failureSignature?: string | undefined;
|
|
298
298
|
evidence?: {
|
|
@@ -323,24 +323,24 @@ export declare const workflowVerificationReadinessSchema: z.ZodDiscriminatedUnio
|
|
|
323
323
|
guidance: z.ZodString;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
325
|
status: "needs_setup";
|
|
326
|
-
guidance: string;
|
|
327
326
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
327
|
+
guidance: string;
|
|
328
328
|
}, {
|
|
329
329
|
status: "needs_setup";
|
|
330
|
-
guidance: string;
|
|
331
330
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
331
|
+
guidance: string;
|
|
332
332
|
}>, z.ZodObject<{
|
|
333
333
|
status: z.ZodLiteral<"not_verifiable">;
|
|
334
334
|
reason: z.ZodEnum<["not-submitted", "missing-workflow-id", "non-mockable-trigger"]>;
|
|
335
335
|
guidance: z.ZodString;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
337
|
status: "not_verifiable";
|
|
338
|
-
guidance: string;
|
|
339
338
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
339
|
+
guidance: string;
|
|
340
340
|
}, {
|
|
341
341
|
status: "not_verifiable";
|
|
342
|
-
guidance: string;
|
|
343
342
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
343
|
+
guidance: string;
|
|
344
344
|
}>]>;
|
|
345
345
|
export type WorkflowVerificationReadiness = z.infer<typeof workflowVerificationReadinessSchema>;
|
|
346
346
|
export declare const workflowSetupRequirementSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
@@ -355,12 +355,12 @@ export declare const workflowSetupRequirementSchema: z.ZodDiscriminatedUnion<"st
|
|
|
355
355
|
guidance: z.ZodString;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
357
|
status: "required";
|
|
358
|
-
guidance: string;
|
|
359
358
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
359
|
+
guidance: string;
|
|
360
360
|
}, {
|
|
361
361
|
status: "required";
|
|
362
|
-
guidance: string;
|
|
363
362
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
363
|
+
guidance: string;
|
|
364
364
|
}>]>;
|
|
365
365
|
export type WorkflowSetupRequirement = z.infer<typeof workflowSetupRequirementSchema>;
|
|
366
366
|
export declare const triggerNodeDescriptorSchema: z.ZodObject<{
|
|
@@ -381,17 +381,17 @@ export declare const nodeSimulationVerdictSchema: z.ZodObject<{
|
|
|
381
381
|
confidence: z.ZodEnum<["high", "low"]>;
|
|
382
382
|
source: z.ZodEnum<["deterministic", "llm", "fallback"]>;
|
|
383
383
|
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
source: "deterministic" | "llm" | "fallback";
|
|
384
385
|
reason: string;
|
|
385
386
|
nodeName: string;
|
|
386
387
|
verdict: "execute" | "simulate";
|
|
387
|
-
confidence: "
|
|
388
|
-
source: "deterministic" | "llm" | "fallback";
|
|
388
|
+
confidence: "low" | "high";
|
|
389
389
|
}, {
|
|
390
|
+
source: "deterministic" | "llm" | "fallback";
|
|
390
391
|
reason: string;
|
|
391
392
|
nodeName: string;
|
|
392
393
|
verdict: "execute" | "simulate";
|
|
393
|
-
confidence: "
|
|
394
|
-
source: "deterministic" | "llm" | "fallback";
|
|
394
|
+
confidence: "low" | "high";
|
|
395
395
|
}>;
|
|
396
396
|
export type NodeSimulationVerdict = z.infer<typeof nodeSimulationVerdictSchema>;
|
|
397
397
|
export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
@@ -444,17 +444,17 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
444
444
|
confidence: z.ZodEnum<["high", "low"]>;
|
|
445
445
|
source: z.ZodEnum<["deterministic", "llm", "fallback"]>;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
source: "deterministic" | "llm" | "fallback";
|
|
447
448
|
reason: string;
|
|
448
449
|
nodeName: string;
|
|
449
450
|
verdict: "execute" | "simulate";
|
|
450
|
-
confidence: "
|
|
451
|
-
source: "deterministic" | "llm" | "fallback";
|
|
451
|
+
confidence: "low" | "high";
|
|
452
452
|
}, {
|
|
453
|
+
source: "deterministic" | "llm" | "fallback";
|
|
453
454
|
reason: string;
|
|
454
455
|
nodeName: string;
|
|
455
456
|
verdict: "execute" | "simulate";
|
|
456
|
-
confidence: "
|
|
457
|
-
source: "deterministic" | "llm" | "fallback";
|
|
457
|
+
confidence: "low" | "high";
|
|
458
458
|
}>, "many">>;
|
|
459
459
|
simulationFixtures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
|
|
460
460
|
supportingWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -477,24 +477,24 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
477
477
|
guidance: z.ZodString;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
479
|
status: "needs_setup";
|
|
480
|
-
guidance: string;
|
|
481
480
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
481
|
+
guidance: string;
|
|
482
482
|
}, {
|
|
483
483
|
status: "needs_setup";
|
|
484
|
-
guidance: string;
|
|
485
484
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
485
|
+
guidance: string;
|
|
486
486
|
}>, z.ZodObject<{
|
|
487
487
|
status: z.ZodLiteral<"not_verifiable">;
|
|
488
488
|
reason: z.ZodEnum<["not-submitted", "missing-workflow-id", "non-mockable-trigger"]>;
|
|
489
489
|
guidance: z.ZodString;
|
|
490
490
|
}, "strip", z.ZodTypeAny, {
|
|
491
491
|
status: "not_verifiable";
|
|
492
|
-
guidance: string;
|
|
493
492
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
493
|
+
guidance: string;
|
|
494
494
|
}, {
|
|
495
495
|
status: "not_verifiable";
|
|
496
|
-
guidance: string;
|
|
497
496
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
497
|
+
guidance: string;
|
|
498
498
|
}>]>>;
|
|
499
499
|
setupRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
500
500
|
status: z.ZodLiteral<"not_required">;
|
|
@@ -508,12 +508,12 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
508
508
|
guidance: z.ZodString;
|
|
509
509
|
}, "strip", z.ZodTypeAny, {
|
|
510
510
|
status: "required";
|
|
511
|
-
guidance: string;
|
|
512
511
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
512
|
+
guidance: string;
|
|
513
513
|
}, {
|
|
514
514
|
status: "required";
|
|
515
|
-
guidance: string;
|
|
516
515
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
516
|
+
guidance: string;
|
|
517
517
|
}>]>>;
|
|
518
518
|
remediation: z.ZodOptional<z.ZodObject<{
|
|
519
519
|
category: z.ZodEnum<["code_fixable", "needs_setup", "blocked"]>;
|
|
@@ -523,14 +523,14 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
523
523
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
524
524
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
525
525
|
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
category: "
|
|
526
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
527
527
|
shouldEdit: boolean;
|
|
528
528
|
guidance: string;
|
|
529
529
|
reason?: string | undefined;
|
|
530
530
|
remainingSubmitFixes?: number | undefined;
|
|
531
531
|
attemptCount?: number | undefined;
|
|
532
532
|
}, {
|
|
533
|
-
category: "
|
|
533
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
534
534
|
shouldEdit: boolean;
|
|
535
535
|
guidance: string;
|
|
536
536
|
reason?: string | undefined;
|
|
@@ -565,9 +565,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
565
565
|
}>>;
|
|
566
566
|
verifiedAt: z.ZodOptional<z.ZodString>;
|
|
567
567
|
}, "strip", z.ZodTypeAny, {
|
|
568
|
-
attempted: boolean;
|
|
569
568
|
success: boolean;
|
|
570
|
-
|
|
569
|
+
attempted: boolean;
|
|
570
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
571
571
|
executionId?: string | undefined;
|
|
572
572
|
failureSignature?: string | undefined;
|
|
573
573
|
evidence?: {
|
|
@@ -579,9 +579,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
579
579
|
} | undefined;
|
|
580
580
|
verifiedAt?: string | undefined;
|
|
581
581
|
}, {
|
|
582
|
-
attempted: boolean;
|
|
583
582
|
success: boolean;
|
|
584
|
-
|
|
583
|
+
attempted: boolean;
|
|
584
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
585
585
|
executionId?: string | undefined;
|
|
586
586
|
failureSignature?: string | undefined;
|
|
587
587
|
evidence?: {
|
|
@@ -601,6 +601,7 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
601
601
|
triggerType: "manual_or_testable" | "trigger_only";
|
|
602
602
|
needsUserInput: boolean;
|
|
603
603
|
summary: string;
|
|
604
|
+
runId?: string | undefined;
|
|
604
605
|
owner?: {
|
|
605
606
|
type: "direct";
|
|
606
607
|
} | {
|
|
@@ -608,12 +609,11 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
608
609
|
taskId: string;
|
|
609
610
|
} | undefined;
|
|
610
611
|
plannedTaskId?: string | undefined;
|
|
611
|
-
failureSignature?: string | undefined;
|
|
612
|
-
runId?: string | undefined;
|
|
613
612
|
workflowId?: string | undefined;
|
|
614
613
|
sourceFilePath?: string | undefined;
|
|
615
614
|
mockedCredentialTypes?: string[] | undefined;
|
|
616
615
|
hasUnresolvedPlaceholders?: boolean | undefined;
|
|
616
|
+
failureSignature?: string | undefined;
|
|
617
617
|
triggerNodes?: {
|
|
618
618
|
nodeName: string;
|
|
619
619
|
nodeType: string;
|
|
@@ -624,11 +624,11 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
624
624
|
verificationPinData?: Record<string, Record<string, unknown>[]> | undefined;
|
|
625
625
|
usesWorkflowPinDataForVerification?: boolean | undefined;
|
|
626
626
|
nodeSimulationPlan?: {
|
|
627
|
+
source: "deterministic" | "llm" | "fallback";
|
|
627
628
|
reason: string;
|
|
628
629
|
nodeName: string;
|
|
629
630
|
verdict: "execute" | "simulate";
|
|
630
|
-
confidence: "
|
|
631
|
-
source: "deterministic" | "llm" | "fallback";
|
|
631
|
+
confidence: "low" | "high";
|
|
632
632
|
}[] | undefined;
|
|
633
633
|
simulationFixtures?: Record<string, Record<string, unknown>[]> | undefined;
|
|
634
634
|
supportingWorkflowIds?: string[] | undefined;
|
|
@@ -638,22 +638,22 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
638
638
|
status: "already_verified";
|
|
639
639
|
} | {
|
|
640
640
|
status: "needs_setup";
|
|
641
|
-
guidance: string;
|
|
642
641
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
642
|
+
guidance: string;
|
|
643
643
|
} | {
|
|
644
644
|
status: "not_verifiable";
|
|
645
|
-
guidance: string;
|
|
646
645
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
646
|
+
guidance: string;
|
|
647
647
|
} | undefined;
|
|
648
648
|
setupRequirement?: {
|
|
649
649
|
status: "not_required";
|
|
650
650
|
} | {
|
|
651
651
|
status: "required";
|
|
652
|
-
guidance: string;
|
|
653
652
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
653
|
+
guidance: string;
|
|
654
654
|
} | undefined;
|
|
655
655
|
remediation?: {
|
|
656
|
-
category: "
|
|
656
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
657
657
|
shouldEdit: boolean;
|
|
658
658
|
guidance: string;
|
|
659
659
|
reason?: string | undefined;
|
|
@@ -662,9 +662,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
662
662
|
} | undefined;
|
|
663
663
|
verifyAttempts?: number | undefined;
|
|
664
664
|
verification?: {
|
|
665
|
-
attempted: boolean;
|
|
666
665
|
success: boolean;
|
|
667
|
-
|
|
666
|
+
attempted: boolean;
|
|
667
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
668
668
|
executionId?: string | undefined;
|
|
669
669
|
failureSignature?: string | undefined;
|
|
670
670
|
evidence?: {
|
|
@@ -683,6 +683,7 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
683
683
|
triggerType: "manual_or_testable" | "trigger_only";
|
|
684
684
|
needsUserInput: boolean;
|
|
685
685
|
summary: string;
|
|
686
|
+
runId?: string | undefined;
|
|
686
687
|
owner?: {
|
|
687
688
|
type: "direct";
|
|
688
689
|
} | {
|
|
@@ -690,12 +691,11 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
690
691
|
taskId: string;
|
|
691
692
|
} | undefined;
|
|
692
693
|
plannedTaskId?: string | undefined;
|
|
693
|
-
failureSignature?: string | undefined;
|
|
694
|
-
runId?: string | undefined;
|
|
695
694
|
workflowId?: string | undefined;
|
|
696
695
|
sourceFilePath?: string | undefined;
|
|
697
696
|
mockedCredentialTypes?: string[] | undefined;
|
|
698
697
|
hasUnresolvedPlaceholders?: boolean | undefined;
|
|
698
|
+
failureSignature?: string | undefined;
|
|
699
699
|
triggerNodes?: {
|
|
700
700
|
nodeName: string;
|
|
701
701
|
nodeType: string;
|
|
@@ -706,11 +706,11 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
706
706
|
verificationPinData?: Record<string, Record<string, unknown>[]> | undefined;
|
|
707
707
|
usesWorkflowPinDataForVerification?: boolean | undefined;
|
|
708
708
|
nodeSimulationPlan?: {
|
|
709
|
+
source: "deterministic" | "llm" | "fallback";
|
|
709
710
|
reason: string;
|
|
710
711
|
nodeName: string;
|
|
711
712
|
verdict: "execute" | "simulate";
|
|
712
|
-
confidence: "
|
|
713
|
-
source: "deterministic" | "llm" | "fallback";
|
|
713
|
+
confidence: "low" | "high";
|
|
714
714
|
}[] | undefined;
|
|
715
715
|
simulationFixtures?: Record<string, Record<string, unknown>[]> | undefined;
|
|
716
716
|
supportingWorkflowIds?: string[] | undefined;
|
|
@@ -720,22 +720,22 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
720
720
|
status: "already_verified";
|
|
721
721
|
} | {
|
|
722
722
|
status: "needs_setup";
|
|
723
|
-
guidance: string;
|
|
724
723
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
724
|
+
guidance: string;
|
|
725
725
|
} | {
|
|
726
726
|
status: "not_verifiable";
|
|
727
|
-
guidance: string;
|
|
728
727
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
728
|
+
guidance: string;
|
|
729
729
|
} | undefined;
|
|
730
730
|
setupRequirement?: {
|
|
731
731
|
status: "not_required";
|
|
732
732
|
} | {
|
|
733
733
|
status: "required";
|
|
734
|
-
guidance: string;
|
|
735
734
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
735
|
+
guidance: string;
|
|
736
736
|
} | undefined;
|
|
737
737
|
remediation?: {
|
|
738
|
-
category: "
|
|
738
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
739
739
|
shouldEdit: boolean;
|
|
740
740
|
guidance: string;
|
|
741
741
|
reason?: string | undefined;
|
|
@@ -744,9 +744,9 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
|
|
|
744
744
|
} | undefined;
|
|
745
745
|
verifyAttempts?: number | undefined;
|
|
746
746
|
verification?: {
|
|
747
|
-
attempted: boolean;
|
|
748
747
|
success: boolean;
|
|
749
|
-
|
|
748
|
+
attempted: boolean;
|
|
749
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
750
750
|
executionId?: string | undefined;
|
|
751
751
|
failureSignature?: string | undefined;
|
|
752
752
|
evidence?: {
|
|
@@ -808,24 +808,24 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
808
808
|
guidance: z.ZodString;
|
|
809
809
|
}, "strip", z.ZodTypeAny, {
|
|
810
810
|
status: "needs_setup";
|
|
811
|
-
guidance: string;
|
|
812
811
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
812
|
+
guidance: string;
|
|
813
813
|
}, {
|
|
814
814
|
status: "needs_setup";
|
|
815
|
-
guidance: string;
|
|
816
815
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
816
|
+
guidance: string;
|
|
817
817
|
}>, z.ZodObject<{
|
|
818
818
|
status: z.ZodLiteral<"not_verifiable">;
|
|
819
819
|
reason: z.ZodEnum<["not-submitted", "missing-workflow-id", "non-mockable-trigger"]>;
|
|
820
820
|
guidance: z.ZodString;
|
|
821
821
|
}, "strip", z.ZodTypeAny, {
|
|
822
822
|
status: "not_verifiable";
|
|
823
|
-
guidance: string;
|
|
824
823
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
824
|
+
guidance: string;
|
|
825
825
|
}, {
|
|
826
826
|
status: "not_verifiable";
|
|
827
|
-
guidance: string;
|
|
828
827
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
828
|
+
guidance: string;
|
|
829
829
|
}>]>>;
|
|
830
830
|
setupRequirement: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
831
831
|
status: z.ZodLiteral<"not_required">;
|
|
@@ -839,12 +839,12 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
839
839
|
guidance: z.ZodString;
|
|
840
840
|
}, "strip", z.ZodTypeAny, {
|
|
841
841
|
status: "required";
|
|
842
|
-
guidance: string;
|
|
843
842
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
843
|
+
guidance: string;
|
|
844
844
|
}, {
|
|
845
845
|
status: "required";
|
|
846
|
-
guidance: string;
|
|
847
846
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
847
|
+
guidance: string;
|
|
848
848
|
}>]>>;
|
|
849
849
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
850
850
|
attempted: z.ZodBoolean;
|
|
@@ -873,9 +873,9 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
873
873
|
}>>;
|
|
874
874
|
verifiedAt: z.ZodOptional<z.ZodString>;
|
|
875
875
|
}, "strip", z.ZodTypeAny, {
|
|
876
|
-
attempted: boolean;
|
|
877
876
|
success: boolean;
|
|
878
|
-
|
|
877
|
+
attempted: boolean;
|
|
878
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
879
879
|
executionId?: string | undefined;
|
|
880
880
|
failureSignature?: string | undefined;
|
|
881
881
|
evidence?: {
|
|
@@ -887,9 +887,9 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
887
887
|
} | undefined;
|
|
888
888
|
verifiedAt?: string | undefined;
|
|
889
889
|
}, {
|
|
890
|
-
attempted: boolean;
|
|
891
890
|
success: boolean;
|
|
892
|
-
|
|
891
|
+
attempted: boolean;
|
|
892
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
893
893
|
executionId?: string | undefined;
|
|
894
894
|
failureSignature?: string | undefined;
|
|
895
895
|
evidence?: {
|
|
@@ -904,24 +904,26 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
904
904
|
blockingReason: z.ZodOptional<z.ZodString>;
|
|
905
905
|
updatedAt: z.ZodString;
|
|
906
906
|
}, "strip", z.ZodTypeAny, {
|
|
907
|
-
status: "
|
|
907
|
+
status: "verifying" | "blocked" | "needs_setup" | "not_verifiable" | "pending_build" | "ready_to_verify" | "verified";
|
|
908
|
+
threadId: string;
|
|
908
909
|
source: "direct" | "planned";
|
|
909
910
|
workItemId: string;
|
|
910
|
-
threadId: string;
|
|
911
911
|
policy: "required" | "best_effort" | "manual";
|
|
912
912
|
updatedAt: string;
|
|
913
|
+
runId?: string | undefined;
|
|
914
|
+
taskId?: string | undefined;
|
|
913
915
|
owner?: {
|
|
914
916
|
type: "direct";
|
|
915
917
|
} | {
|
|
916
918
|
type: "planned";
|
|
917
919
|
taskId: string;
|
|
918
920
|
} | undefined;
|
|
919
|
-
taskId?: string | undefined;
|
|
920
921
|
plannedTaskId?: string | undefined;
|
|
922
|
+
workflowId?: string | undefined;
|
|
921
923
|
evidence?: {
|
|
922
|
-
attempted: boolean;
|
|
923
924
|
success: boolean;
|
|
924
|
-
|
|
925
|
+
attempted: boolean;
|
|
926
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
925
927
|
executionId?: string | undefined;
|
|
926
928
|
failureSignature?: string | undefined;
|
|
927
929
|
evidence?: {
|
|
@@ -933,15 +935,13 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
933
935
|
} | undefined;
|
|
934
936
|
verifiedAt?: string | undefined;
|
|
935
937
|
} | undefined;
|
|
936
|
-
runId?: string | undefined;
|
|
937
|
-
workflowId?: string | undefined;
|
|
938
938
|
blockingReason?: string | undefined;
|
|
939
939
|
setupRequirement?: {
|
|
940
940
|
status: "not_required";
|
|
941
941
|
} | {
|
|
942
942
|
status: "required";
|
|
943
|
-
guidance: string;
|
|
944
943
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
944
|
+
guidance: string;
|
|
945
945
|
} | undefined;
|
|
946
946
|
readiness?: {
|
|
947
947
|
status: "ready";
|
|
@@ -949,32 +949,34 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
949
949
|
status: "already_verified";
|
|
950
950
|
} | {
|
|
951
951
|
status: "needs_setup";
|
|
952
|
-
guidance: string;
|
|
953
952
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
953
|
+
guidance: string;
|
|
954
954
|
} | {
|
|
955
955
|
status: "not_verifiable";
|
|
956
|
-
guidance: string;
|
|
957
956
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
957
|
+
guidance: string;
|
|
958
958
|
} | undefined;
|
|
959
959
|
}, {
|
|
960
|
-
status: "
|
|
960
|
+
status: "verifying" | "blocked" | "needs_setup" | "not_verifiable" | "pending_build" | "ready_to_verify" | "verified";
|
|
961
|
+
threadId: string;
|
|
961
962
|
source: "direct" | "planned";
|
|
962
963
|
workItemId: string;
|
|
963
|
-
threadId: string;
|
|
964
964
|
policy: "required" | "best_effort" | "manual";
|
|
965
965
|
updatedAt: string;
|
|
966
|
+
runId?: string | undefined;
|
|
967
|
+
taskId?: string | undefined;
|
|
966
968
|
owner?: {
|
|
967
969
|
type: "direct";
|
|
968
970
|
} | {
|
|
969
971
|
type: "planned";
|
|
970
972
|
taskId: string;
|
|
971
973
|
} | undefined;
|
|
972
|
-
taskId?: string | undefined;
|
|
973
974
|
plannedTaskId?: string | undefined;
|
|
975
|
+
workflowId?: string | undefined;
|
|
974
976
|
evidence?: {
|
|
975
|
-
attempted: boolean;
|
|
976
977
|
success: boolean;
|
|
977
|
-
|
|
978
|
+
attempted: boolean;
|
|
979
|
+
status?: "unknown" | "success" | "error" | "waiting" | "running" | undefined;
|
|
978
980
|
executionId?: string | undefined;
|
|
979
981
|
failureSignature?: string | undefined;
|
|
980
982
|
evidence?: {
|
|
@@ -986,15 +988,13 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
986
988
|
} | undefined;
|
|
987
989
|
verifiedAt?: string | undefined;
|
|
988
990
|
} | undefined;
|
|
989
|
-
runId?: string | undefined;
|
|
990
|
-
workflowId?: string | undefined;
|
|
991
991
|
blockingReason?: string | undefined;
|
|
992
992
|
setupRequirement?: {
|
|
993
993
|
status: "not_required";
|
|
994
994
|
} | {
|
|
995
995
|
status: "required";
|
|
996
|
-
guidance: string;
|
|
997
996
|
reason: "unresolved-placeholders" | "workflow-needs-setup" | "mocked-credentials";
|
|
997
|
+
guidance: string;
|
|
998
998
|
} | undefined;
|
|
999
999
|
readiness?: {
|
|
1000
1000
|
status: "ready";
|
|
@@ -1002,12 +1002,12 @@ export declare const workflowVerificationObligationSchema: z.ZodObject<{
|
|
|
1002
1002
|
status: "already_verified";
|
|
1003
1003
|
} | {
|
|
1004
1004
|
status: "needs_setup";
|
|
1005
|
-
guidance: string;
|
|
1006
1005
|
reason: "unresolved-placeholders" | "missing-mocked-credential-pin-data" | "workflow-needs-setup";
|
|
1006
|
+
guidance: string;
|
|
1007
1007
|
} | {
|
|
1008
1008
|
status: "not_verifiable";
|
|
1009
|
-
guidance: string;
|
|
1010
1009
|
reason: "not-submitted" | "missing-workflow-id" | "non-mockable-trigger";
|
|
1010
|
+
guidance: string;
|
|
1011
1011
|
} | undefined;
|
|
1012
1012
|
}>;
|
|
1013
1013
|
export type WorkflowVerificationObligationStatus = z.infer<typeof workflowVerificationObligationStatusSchema>;
|
|
@@ -1034,14 +1034,14 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
1034
1034
|
remainingSubmitFixes: z.ZodOptional<z.ZodNumber>;
|
|
1035
1035
|
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
1036
1036
|
}, "strip", z.ZodTypeAny, {
|
|
1037
|
-
category: "
|
|
1037
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
1038
1038
|
shouldEdit: boolean;
|
|
1039
1039
|
guidance: string;
|
|
1040
1040
|
reason?: string | undefined;
|
|
1041
1041
|
remainingSubmitFixes?: number | undefined;
|
|
1042
1042
|
attemptCount?: number | undefined;
|
|
1043
1043
|
}, {
|
|
1044
|
-
category: "
|
|
1044
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
1045
1045
|
shouldEdit: boolean;
|
|
1046
1046
|
guidance: string;
|
|
1047
1047
|
reason?: string | undefined;
|
|
@@ -1050,18 +1050,18 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
1050
1050
|
}>>;
|
|
1051
1051
|
summary: z.ZodString;
|
|
1052
1052
|
}, "strip", z.ZodTypeAny, {
|
|
1053
|
-
verdict: "trigger_only" | "verified" | "needs_patch" | "needs_rebuild" | "needs_user_input" | "failed_terminal";
|
|
1054
1053
|
workItemId: string;
|
|
1055
1054
|
workflowId: string;
|
|
1055
|
+
verdict: "trigger_only" | "verified" | "needs_patch" | "needs_rebuild" | "needs_user_input" | "failed_terminal";
|
|
1056
1056
|
summary: string;
|
|
1057
|
+
patch?: Record<string, unknown> | undefined;
|
|
1058
|
+
runId?: string | undefined;
|
|
1057
1059
|
diagnosis?: string | undefined;
|
|
1058
1060
|
executionId?: string | undefined;
|
|
1059
1061
|
failureSignature?: string | undefined;
|
|
1060
|
-
runId?: string | undefined;
|
|
1061
|
-
patch?: Record<string, unknown> | undefined;
|
|
1062
1062
|
workflowInspection?: string | undefined;
|
|
1063
1063
|
remediation?: {
|
|
1064
|
-
category: "
|
|
1064
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
1065
1065
|
shouldEdit: boolean;
|
|
1066
1066
|
guidance: string;
|
|
1067
1067
|
reason?: string | undefined;
|
|
@@ -1070,18 +1070,18 @@ export declare const verificationResultSchema: z.ZodObject<{
|
|
|
1070
1070
|
} | undefined;
|
|
1071
1071
|
failedNodeName?: string | undefined;
|
|
1072
1072
|
}, {
|
|
1073
|
-
verdict: "trigger_only" | "verified" | "needs_patch" | "needs_rebuild" | "needs_user_input" | "failed_terminal";
|
|
1074
1073
|
workItemId: string;
|
|
1075
1074
|
workflowId: string;
|
|
1075
|
+
verdict: "trigger_only" | "verified" | "needs_patch" | "needs_rebuild" | "needs_user_input" | "failed_terminal";
|
|
1076
1076
|
summary: string;
|
|
1077
|
+
patch?: Record<string, unknown> | undefined;
|
|
1078
|
+
runId?: string | undefined;
|
|
1077
1079
|
diagnosis?: string | undefined;
|
|
1078
1080
|
executionId?: string | undefined;
|
|
1079
1081
|
failureSignature?: string | undefined;
|
|
1080
|
-
runId?: string | undefined;
|
|
1081
|
-
patch?: Record<string, unknown> | undefined;
|
|
1082
1082
|
workflowInspection?: string | undefined;
|
|
1083
1083
|
remediation?: {
|
|
1084
|
-
category: "
|
|
1084
|
+
category: "blocked" | "code_fixable" | "needs_setup";
|
|
1085
1085
|
shouldEdit: boolean;
|
|
1086
1086
|
guidance: string;
|
|
1087
1087
|
reason?: string | undefined;
|