@shipfox/workflow-document 3.0.0 → 3.0.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/dist/document/index.d.ts +1 -1
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +1 -1
- package/dist/document/index.js.map +1 -1
- package/dist/document/step-enums.d.ts +16 -16
- package/dist/document/workflow-document-parser.d.ts.map +1 -1
- package/dist/document/workflow-document.d.ts +57 -56
- package/dist/document/workflow-document.d.ts.map +1 -1
- package/dist/document/workflow-document.js +12 -2
- package/dist/document/workflow-document.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/document/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type CheckoutTargetValidationIssue, checkoutTargetValidationIssues, } from './checkout-target-validation.js';
|
|
2
2
|
export { type AgentThinking, agentThinkingByHarness, agentThinkingSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, type Harness, harnessSchema, piAgentThinkingSchema, thinkingLevelsForHarness, } from './step-enums.js';
|
|
3
|
-
export { triggerSourceConfigSchemas, WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES, WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES, type WorkflowDocument, type WorkflowDocumentCheckout, type WorkflowDocumentEnv, type WorkflowDocumentJob, type WorkflowDocumentJobCheckout, type WorkflowDocumentRunStepGate, type WorkflowDocumentStep, type WorkflowDocumentStepIntegration, type WorkflowDocumentStepOutputs, type WorkflowDocumentStepOutputType, type WorkflowDocumentTrigger, workflowDocumentCheckoutSchema, workflowDocumentEnvSchema, workflowDocumentJobSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema, workflowDocumentTriggerSchema, } from './workflow-document.js';
|
|
3
|
+
export { triggerSourceConfigSchemas, WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES, WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES, type WorkflowDocument, type WorkflowDocumentCheckout, type WorkflowDocumentEnv, type WorkflowDocumentJob, type WorkflowDocumentJobCheckout, type WorkflowDocumentRunStepGate, type WorkflowDocumentStep, type WorkflowDocumentStepIntegration, type WorkflowDocumentStepOutputs, type WorkflowDocumentStepOutputType, type WorkflowDocumentTrigger, workflowDocumentCheckoutSchema, workflowDocumentEnvSchema, workflowDocumentJobSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema, workflowDocumentTriggerSchema, } from './workflow-document.js';
|
|
4
4
|
export { InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument, } from './workflow-document-parser.js';
|
|
5
5
|
export { type BuildWorkflowJsonSchemaOptions, buildWorkflowJsonSchema, } from './workflow-json-schema.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,6BAA6B,EAClC,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,aAAa,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,KAAK,OAAO,EACZ,aAAa,EACb,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,iCAAiC,EACjC,0CAA0C,EAC1C,8CAA8C,EAC9C,yDAAyD,EACzD,0CAA0C,EAC1C,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,qCAAqC,EACrC,8CAA8C,EAC9C,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,8BAA8B,EACnC,uBAAuB,GACxB,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,6BAA6B,EAClC,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,aAAa,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,KAAK,OAAO,EACZ,aAAa,EACb,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,iCAAiC,EACjC,0CAA0C,EAC1C,yCAAyC,EACzC,8CAA8C,EAC9C,yDAAyD,EACzD,0CAA0C,EAC1C,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,qCAAqC,EACrC,8CAA8C,EAC9C,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,8BAA8B,EACnC,uBAAuB,GACxB,MAAM,2BAA2B,CAAC"}
|
package/dist/document/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { checkoutTargetValidationIssues } from './checkout-target-validation.js';
|
|
2
2
|
export { agentThinkingByHarness, agentThinkingSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, harnessSchema, piAgentThinkingSchema, thinkingLevelsForHarness } from './step-enums.js';
|
|
3
|
-
export { triggerSourceConfigSchemas, WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES, WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES, workflowDocumentCheckoutSchema, workflowDocumentEnvSchema, workflowDocumentJobSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema, workflowDocumentTriggerSchema } from './workflow-document.js';
|
|
3
|
+
export { triggerSourceConfigSchemas, WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES, WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH, WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES, WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES, workflowDocumentCheckoutSchema, workflowDocumentEnvSchema, workflowDocumentJobSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema, workflowDocumentTriggerSchema } from './workflow-document.js';
|
|
4
4
|
export { InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument } from './workflow-document-parser.js';
|
|
5
5
|
export { buildWorkflowJsonSchema } from './workflow-json-schema.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/document/index.ts"],"sourcesContent":["export {\n type CheckoutTargetValidationIssue,\n checkoutTargetValidationIssues,\n} from './checkout-target-validation.js';\nexport {\n type AgentThinking,\n agentThinkingByHarness,\n agentThinkingSchema,\n claudeAgentThinkingSchema,\n DEFAULT_AGENT_THINKING,\n DEFAULT_HARNESS,\n DEFAULT_MODEL_PROVIDER,\n type Harness,\n harnessSchema,\n piAgentThinkingSchema,\n thinkingLevelsForHarness,\n} from './step-enums.js';\nexport {\n triggerSourceConfigSchemas,\n WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES,\n WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES,\n WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH,\n WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES,\n WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES,\n type WorkflowDocument,\n type WorkflowDocumentCheckout,\n type WorkflowDocumentEnv,\n type WorkflowDocumentJob,\n type WorkflowDocumentJobCheckout,\n type WorkflowDocumentRunStepGate,\n type WorkflowDocumentStep,\n type WorkflowDocumentStepIntegration,\n type WorkflowDocumentStepOutputs,\n type WorkflowDocumentStepOutputType,\n type WorkflowDocumentTrigger,\n workflowDocumentCheckoutSchema,\n workflowDocumentEnvSchema,\n workflowDocumentJobSchema,\n workflowDocumentSchema,\n workflowDocumentStepIntegrationSchema,\n workflowDocumentStepIntegrationSelectionSchema,\n workflowDocumentStepOutputsSchema,\n workflowDocumentStepOutputTypes,\n workflowDocumentStepSchema,\n workflowDocumentTriggerSchema,\n} from './workflow-document.js';\nexport {\n InvalidWorkflowDocumentError,\n invalidWorkflowDocumentErrorCode,\n parseWorkflowDocument,\n} from './workflow-document-parser.js';\nexport {\n type BuildWorkflowJsonSchemaOptions,\n buildWorkflowJsonSchema,\n} from './workflow-json-schema.js';\n"],"names":["checkoutTargetValidationIssues","agentThinkingByHarness","agentThinkingSchema","claudeAgentThinkingSchema","DEFAULT_AGENT_THINKING","DEFAULT_HARNESS","DEFAULT_MODEL_PROVIDER","harnessSchema","piAgentThinkingSchema","thinkingLevelsForHarness","triggerSourceConfigSchemas","WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES","WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES","WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH","WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES","WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES","workflowDocumentCheckoutSchema","workflowDocumentEnvSchema","workflowDocumentJobSchema","workflowDocumentSchema","workflowDocumentStepIntegrationSchema","workflowDocumentStepIntegrationSelectionSchema","workflowDocumentStepOutputsSchema","workflowDocumentStepOutputTypes","workflowDocumentStepSchema","workflowDocumentTriggerSchema","InvalidWorkflowDocumentError","invalidWorkflowDocumentErrorCode","parseWorkflowDocument","buildWorkflowJsonSchema"],"mappings":"AAAA,SAEEA,8BAA8B,QACzB,kCAAkC;AACzC,SAEEC,sBAAsB,EACtBC,mBAAmB,EACnBC,yBAAyB,EACzBC,sBAAsB,EACtBC,eAAe,EACfC,sBAAsB,EAEtBC,aAAa,EACbC,qBAAqB,EACrBC,wBAAwB,QACnB,kBAAkB;AACzB,SACEC,0BAA0B,EAC1BC,iCAAiC,EACjCC,0CAA0C,EAC1CC,8CAA8C,EAC9CC,yDAAyD,EACzDC,0CAA0C,EAY1CC,8BAA8B,EAC9BC,yBAAyB,EACzBC,yBAAyB,EACzBC,sBAAsB,EACtBC,qCAAqC,EACrCC,8CAA8C,EAC9CC,iCAAiC,EACjCC,+BAA+B,EAC/BC,0BAA0B,EAC1BC,6BAA6B,QACxB,yBAAyB;AAChC,SACEC,4BAA4B,EAC5BC,gCAAgC,EAChCC,qBAAqB,QAChB,gCAAgC;AACvC,SAEEC,uBAAuB,QAClB,4BAA4B"}
|
|
1
|
+
{"version":3,"sources":["../../src/document/index.ts"],"sourcesContent":["export {\n type CheckoutTargetValidationIssue,\n checkoutTargetValidationIssues,\n} from './checkout-target-validation.js';\nexport {\n type AgentThinking,\n agentThinkingByHarness,\n agentThinkingSchema,\n claudeAgentThinkingSchema,\n DEFAULT_AGENT_THINKING,\n DEFAULT_HARNESS,\n DEFAULT_MODEL_PROVIDER,\n type Harness,\n harnessSchema,\n piAgentThinkingSchema,\n thinkingLevelsForHarness,\n} from './step-enums.js';\nexport {\n triggerSourceConfigSchemas,\n WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES,\n WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES,\n WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES,\n WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH,\n WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES,\n WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES,\n type WorkflowDocument,\n type WorkflowDocumentCheckout,\n type WorkflowDocumentEnv,\n type WorkflowDocumentJob,\n type WorkflowDocumentJobCheckout,\n type WorkflowDocumentRunStepGate,\n type WorkflowDocumentStep,\n type WorkflowDocumentStepIntegration,\n type WorkflowDocumentStepOutputs,\n type WorkflowDocumentStepOutputType,\n type WorkflowDocumentTrigger,\n workflowDocumentCheckoutSchema,\n workflowDocumentEnvSchema,\n workflowDocumentJobSchema,\n workflowDocumentSchema,\n workflowDocumentStepIntegrationSchema,\n workflowDocumentStepIntegrationSelectionSchema,\n workflowDocumentStepOutputsSchema,\n workflowDocumentStepOutputTypes,\n workflowDocumentStepSchema,\n workflowDocumentTriggerSchema,\n} from './workflow-document.js';\nexport {\n InvalidWorkflowDocumentError,\n invalidWorkflowDocumentErrorCode,\n parseWorkflowDocument,\n} from './workflow-document-parser.js';\nexport {\n type BuildWorkflowJsonSchemaOptions,\n buildWorkflowJsonSchema,\n} from './workflow-json-schema.js';\n"],"names":["checkoutTargetValidationIssues","agentThinkingByHarness","agentThinkingSchema","claudeAgentThinkingSchema","DEFAULT_AGENT_THINKING","DEFAULT_HARNESS","DEFAULT_MODEL_PROVIDER","harnessSchema","piAgentThinkingSchema","thinkingLevelsForHarness","triggerSourceConfigSchemas","WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES","WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES","WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES","WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH","WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES","WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES","workflowDocumentCheckoutSchema","workflowDocumentEnvSchema","workflowDocumentJobSchema","workflowDocumentSchema","workflowDocumentStepIntegrationSchema","workflowDocumentStepIntegrationSelectionSchema","workflowDocumentStepOutputsSchema","workflowDocumentStepOutputTypes","workflowDocumentStepSchema","workflowDocumentTriggerSchema","InvalidWorkflowDocumentError","invalidWorkflowDocumentErrorCode","parseWorkflowDocument","buildWorkflowJsonSchema"],"mappings":"AAAA,SAEEA,8BAA8B,QACzB,kCAAkC;AACzC,SAEEC,sBAAsB,EACtBC,mBAAmB,EACnBC,yBAAyB,EACzBC,sBAAsB,EACtBC,eAAe,EACfC,sBAAsB,EAEtBC,aAAa,EACbC,qBAAqB,EACrBC,wBAAwB,QACnB,kBAAkB;AACzB,SACEC,0BAA0B,EAC1BC,iCAAiC,EACjCC,0CAA0C,EAC1CC,yCAAyC,EACzCC,8CAA8C,EAC9CC,yDAAyD,EACzDC,0CAA0C,EAY1CC,8BAA8B,EAC9BC,yBAAyB,EACzBC,yBAAyB,EACzBC,sBAAsB,EACtBC,qCAAqC,EACrCC,8CAA8C,EAC9CC,iCAAiC,EACjCC,+BAA+B,EAC/BC,0BAA0B,EAC1BC,6BAA6B,QACxB,yBAAyB;AAChC,SACEC,4BAA4B,EAC5BC,gCAAgC,EAChCC,qBAAqB,QAChB,gCAAgC;AACvC,SAEEC,uBAAuB,QAClB,4BAA4B"}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const harnessSchema: z.ZodEnum<{
|
|
3
|
-
pi: "pi";
|
|
4
3
|
claude: "claude";
|
|
4
|
+
pi: "pi";
|
|
5
5
|
}>;
|
|
6
6
|
export type Harness = z.infer<typeof harnessSchema>;
|
|
7
7
|
export declare const DEFAULT_HARNESS: "pi";
|
|
8
8
|
export declare const piAgentThinkingSchema: z.ZodEnum<{
|
|
9
|
-
|
|
10
|
-
minimal: "minimal";
|
|
9
|
+
high: "high";
|
|
11
10
|
low: "low";
|
|
12
11
|
medium: "medium";
|
|
13
|
-
|
|
12
|
+
minimal: "minimal";
|
|
13
|
+
off: "off";
|
|
14
14
|
xhigh: "xhigh";
|
|
15
15
|
}>;
|
|
16
16
|
export declare const claudeAgentThinkingSchema: z.ZodEnum<{
|
|
17
|
+
high: "high";
|
|
17
18
|
low: "low";
|
|
19
|
+
max: "max";
|
|
18
20
|
medium: "medium";
|
|
19
|
-
high: "high";
|
|
20
21
|
xhigh: "xhigh";
|
|
21
|
-
max: "max";
|
|
22
22
|
}>;
|
|
23
23
|
export declare const agentThinkingSchema: z.ZodEnum<{
|
|
24
|
-
|
|
25
|
-
minimal: "minimal";
|
|
24
|
+
high: "high";
|
|
26
25
|
low: "low";
|
|
26
|
+
max: "max";
|
|
27
27
|
medium: "medium";
|
|
28
|
-
|
|
28
|
+
minimal: "minimal";
|
|
29
|
+
off: "off";
|
|
29
30
|
xhigh: "xhigh";
|
|
30
|
-
max: "max";
|
|
31
31
|
}>;
|
|
32
32
|
export type AgentThinking = z.infer<typeof agentThinkingSchema>;
|
|
33
33
|
export declare const DEFAULT_AGENT_THINKING: "xhigh";
|
|
34
34
|
export declare const agentThinkingByHarness: {
|
|
35
35
|
readonly pi: z.ZodEnum<{
|
|
36
|
-
|
|
37
|
-
minimal: "minimal";
|
|
36
|
+
high: "high";
|
|
38
37
|
low: "low";
|
|
39
38
|
medium: "medium";
|
|
40
|
-
|
|
39
|
+
minimal: "minimal";
|
|
40
|
+
off: "off";
|
|
41
41
|
xhigh: "xhigh";
|
|
42
42
|
}>;
|
|
43
43
|
readonly claude: z.ZodEnum<{
|
|
44
|
+
high: "high";
|
|
44
45
|
low: "low";
|
|
46
|
+
max: "max";
|
|
45
47
|
medium: "medium";
|
|
46
|
-
high: "high";
|
|
47
48
|
xhigh: "xhigh";
|
|
48
|
-
max: "max";
|
|
49
49
|
}>;
|
|
50
50
|
};
|
|
51
51
|
export declare function thinkingLevelsForHarness(harness: Harness): readonly AgentThinking[];
|
|
52
|
-
export declare const DEFAULT_MODEL_PROVIDER:
|
|
52
|
+
export declare const DEFAULT_MODEL_PROVIDER: 'anthropic';
|
|
53
53
|
//# sourceMappingURL=step-enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-document-parser.d.ts","sourceRoot":"","sources":["../../src/document/workflow-document-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAC,KAAK,gBAAgB,EAAyB,MAAM,wBAAwB,CAAC;AAErF,eAAO,MAAM,gCAAgC,8BAA8B,CAAC;AAE5E,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,IAAI,+BAAoC;IACjD,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-document-parser.d.ts","sourceRoot":"","sources":["../../src/document/workflow-document-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAC,KAAK,gBAAgB,EAAyB,MAAM,wBAAwB,CAAC;AAErF,eAAO,MAAM,gCAAgC,8BAA8B,CAAC;AAE5E,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,IAAI,+BAAoC;IACjD,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAEvD,YAAY,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAIxD;CACF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAKtE"}
|
|
@@ -2,34 +2,35 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const WORKFLOW_LITERAL_NAME_PATTERN: RegExp;
|
|
3
3
|
export declare const WORKFLOW_INTERPOLATED_VALUE_PATTERN: RegExp;
|
|
4
4
|
export declare const agentThinkingFieldSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
|
-
|
|
6
|
-
minimal: "minimal";
|
|
5
|
+
high: "high";
|
|
7
6
|
low: "low";
|
|
7
|
+
max: "max";
|
|
8
8
|
medium: "medium";
|
|
9
|
-
|
|
9
|
+
minimal: "minimal";
|
|
10
|
+
off: "off";
|
|
10
11
|
xhigh: "xhigh";
|
|
11
|
-
max: "max";
|
|
12
12
|
}>, z.ZodString]>;
|
|
13
13
|
export declare const WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES = 128;
|
|
14
14
|
export declare const WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES: number;
|
|
15
|
-
export declare const workflowDocumentStepOutputTypes: readonly [
|
|
15
|
+
export declare const workflowDocumentStepOutputTypes: readonly ['string', 'number', 'boolean', 'json'];
|
|
16
|
+
export declare const WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES = 128;
|
|
16
17
|
export declare const WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES = 128;
|
|
17
18
|
export declare const WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES: number;
|
|
18
19
|
export declare const WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH = 64;
|
|
19
20
|
export declare const workflowDocumentEnvSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
20
21
|
export declare const workflowDocumentStepOutputsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
21
|
-
string: "string";
|
|
22
|
-
number: "number";
|
|
23
22
|
boolean: "boolean";
|
|
24
23
|
json: "json";
|
|
24
|
+
number: "number";
|
|
25
|
+
string: "string";
|
|
25
26
|
}>, z.ZodTransform<{
|
|
26
|
-
type: "
|
|
27
|
-
}, "
|
|
27
|
+
type: "boolean" | "json" | "number" | "string";
|
|
28
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
28
29
|
type: z.ZodEnum<{
|
|
29
|
-
string: "string";
|
|
30
|
-
number: "number";
|
|
31
30
|
boolean: "boolean";
|
|
32
31
|
json: "json";
|
|
32
|
+
number: "number";
|
|
33
|
+
string: "string";
|
|
33
34
|
}>;
|
|
34
35
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
35
36
|
}, z.core.$strict>]>>;
|
|
@@ -40,26 +41,26 @@ export declare const triggerSourceConfigSchemas: {
|
|
|
40
41
|
}, z.core.$strict>;
|
|
41
42
|
};
|
|
42
43
|
export declare const workflowDocumentTriggerSchema: z.ZodObject<{
|
|
43
|
-
event: z.ZodString;
|
|
44
44
|
source: z.ZodString;
|
|
45
45
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
46
|
filter: z.ZodOptional<z.ZodString>;
|
|
47
47
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
48
|
+
event: z.ZodString;
|
|
48
49
|
}, z.core.$strict>;
|
|
49
50
|
declare const workflowDocumentListeningSchema: z.ZodObject<{
|
|
50
51
|
on: z.ZodArray<z.ZodObject<{
|
|
51
|
-
event: z.ZodString;
|
|
52
52
|
source: z.ZodString;
|
|
53
53
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
54
54
|
filter: z.ZodOptional<z.ZodString>;
|
|
55
55
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
+
event: z.ZodString;
|
|
56
57
|
}, z.core.$strict>>;
|
|
57
58
|
until: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
-
event: z.ZodString;
|
|
59
59
|
source: z.ZodString;
|
|
60
60
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
61
|
filter: z.ZodOptional<z.ZodString>;
|
|
62
62
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
+
event: z.ZodString;
|
|
63
64
|
}, z.core.$strict>>>;
|
|
64
65
|
timeout: z.ZodOptional<z.ZodString>;
|
|
65
66
|
max_executions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -69,8 +70,8 @@ declare const workflowDocumentListeningSchema: z.ZodObject<{
|
|
|
69
70
|
max_wait: z.ZodOptional<z.ZodString>;
|
|
70
71
|
}, z.core.$strict>>;
|
|
71
72
|
on_resolve: z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
finish: "finish";
|
|
73
73
|
cancel: "cancel";
|
|
74
|
+
finish: "finish";
|
|
74
75
|
}>>;
|
|
75
76
|
}, z.core.$strict>;
|
|
76
77
|
declare const workflowDocumentStepGateSchema: z.ZodObject<{
|
|
@@ -112,7 +113,7 @@ export declare const workflowDocumentStepIntegrationSchema: z.ZodObject<{
|
|
|
112
113
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
114
|
allow_write: z.ZodOptional<z.ZodBoolean>;
|
|
114
115
|
}, z.core.$strict>;
|
|
115
|
-
export declare const workflowDocumentAgentStepFields: readonly [
|
|
116
|
+
export declare const workflowDocumentAgentStepFields: readonly ['model', 'prompt', 'harness', 'thinking', 'provider', 'tools', 'integrations'];
|
|
116
117
|
export declare const workflowDocumentStepSchema: z.ZodObject<{
|
|
117
118
|
key: z.ZodOptional<z.ZodString>;
|
|
118
119
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -138,17 +139,17 @@ export declare const workflowDocumentStepSchema: z.ZodObject<{
|
|
|
138
139
|
model: z.ZodOptional<z.ZodString>;
|
|
139
140
|
prompt: z.ZodOptional<z.ZodString>;
|
|
140
141
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
141
|
-
pi: "pi";
|
|
142
142
|
claude: "claude";
|
|
143
|
+
pi: "pi";
|
|
143
144
|
}>>;
|
|
144
145
|
thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
145
|
-
|
|
146
|
-
minimal: "minimal";
|
|
146
|
+
high: "high";
|
|
147
147
|
low: "low";
|
|
148
|
+
max: "max";
|
|
148
149
|
medium: "medium";
|
|
149
|
-
|
|
150
|
+
minimal: "minimal";
|
|
151
|
+
off: "off";
|
|
150
152
|
xhigh: "xhigh";
|
|
151
|
-
max: "max";
|
|
152
153
|
}>, z.ZodString]>>;
|
|
153
154
|
provider: z.ZodOptional<z.ZodString>;
|
|
154
155
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -168,18 +169,18 @@ export declare const workflowDocumentStepSchema: z.ZodObject<{
|
|
|
168
169
|
}, z.core.$strict>>;
|
|
169
170
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
170
171
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
171
|
-
string: "string";
|
|
172
|
-
number: "number";
|
|
173
172
|
boolean: "boolean";
|
|
174
173
|
json: "json";
|
|
174
|
+
number: "number";
|
|
175
|
+
string: "string";
|
|
175
176
|
}>, z.ZodTransform<{
|
|
176
|
-
type: "
|
|
177
|
-
}, "
|
|
177
|
+
type: "boolean" | "json" | "number" | "string";
|
|
178
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
178
179
|
type: z.ZodEnum<{
|
|
179
|
-
string: "string";
|
|
180
|
-
number: "number";
|
|
181
180
|
boolean: "boolean";
|
|
182
181
|
json: "json";
|
|
182
|
+
number: "number";
|
|
183
|
+
string: "string";
|
|
183
184
|
}>;
|
|
184
185
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
185
186
|
}, z.core.$strict>]>>>;
|
|
@@ -202,18 +203,18 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
202
203
|
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
203
204
|
listening: z.ZodOptional<z.ZodObject<{
|
|
204
205
|
on: z.ZodArray<z.ZodObject<{
|
|
205
|
-
event: z.ZodString;
|
|
206
206
|
source: z.ZodString;
|
|
207
207
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
208
208
|
filter: z.ZodOptional<z.ZodString>;
|
|
209
209
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
210
|
+
event: z.ZodString;
|
|
210
211
|
}, z.core.$strict>>;
|
|
211
212
|
until: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
212
|
-
event: z.ZodString;
|
|
213
213
|
source: z.ZodString;
|
|
214
214
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
215
215
|
filter: z.ZodOptional<z.ZodString>;
|
|
216
216
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
217
|
+
event: z.ZodString;
|
|
217
218
|
}, z.core.$strict>>>;
|
|
218
219
|
timeout: z.ZodOptional<z.ZodString>;
|
|
219
220
|
max_executions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -223,8 +224,8 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
223
224
|
max_wait: z.ZodOptional<z.ZodString>;
|
|
224
225
|
}, z.core.$strict>>;
|
|
225
226
|
on_resolve: z.ZodOptional<z.ZodEnum<{
|
|
226
|
-
finish: "finish";
|
|
227
227
|
cancel: "cancel";
|
|
228
|
+
finish: "finish";
|
|
228
229
|
}>>;
|
|
229
230
|
}, z.core.$strict>>;
|
|
230
231
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -255,17 +256,17 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
255
256
|
model: z.ZodOptional<z.ZodString>;
|
|
256
257
|
prompt: z.ZodOptional<z.ZodString>;
|
|
257
258
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
258
|
-
pi: "pi";
|
|
259
259
|
claude: "claude";
|
|
260
|
+
pi: "pi";
|
|
260
261
|
}>>;
|
|
261
262
|
thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
262
|
-
|
|
263
|
-
minimal: "minimal";
|
|
263
|
+
high: "high";
|
|
264
264
|
low: "low";
|
|
265
|
+
max: "max";
|
|
265
266
|
medium: "medium";
|
|
266
|
-
|
|
267
|
+
minimal: "minimal";
|
|
268
|
+
off: "off";
|
|
267
269
|
xhigh: "xhigh";
|
|
268
|
-
max: "max";
|
|
269
270
|
}>, z.ZodString]>>;
|
|
270
271
|
provider: z.ZodOptional<z.ZodString>;
|
|
271
272
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -285,18 +286,18 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
285
286
|
}, z.core.$strict>>;
|
|
286
287
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
287
288
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
288
|
-
string: "string";
|
|
289
|
-
number: "number";
|
|
290
289
|
boolean: "boolean";
|
|
291
290
|
json: "json";
|
|
291
|
+
number: "number";
|
|
292
|
+
string: "string";
|
|
292
293
|
}>, z.ZodTransform<{
|
|
293
|
-
type: "
|
|
294
|
-
}, "
|
|
294
|
+
type: "boolean" | "json" | "number" | "string";
|
|
295
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
295
296
|
type: z.ZodEnum<{
|
|
296
|
-
string: "string";
|
|
297
|
-
number: "number";
|
|
298
297
|
boolean: "boolean";
|
|
299
298
|
json: "json";
|
|
299
|
+
number: "number";
|
|
300
|
+
string: "string";
|
|
300
301
|
}>;
|
|
301
302
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
302
303
|
}, z.core.$strict>]>>>;
|
|
@@ -308,11 +309,11 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
308
309
|
runner: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
309
310
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
310
311
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
311
|
-
event: z.ZodString;
|
|
312
312
|
source: z.ZodString;
|
|
313
313
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
314
314
|
filter: z.ZodOptional<z.ZodString>;
|
|
315
315
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
316
|
+
event: z.ZodString;
|
|
316
317
|
}, z.core.$strict>>>;
|
|
317
318
|
jobs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
318
319
|
needs: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -332,18 +333,18 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
332
333
|
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
333
334
|
listening: z.ZodOptional<z.ZodObject<{
|
|
334
335
|
on: z.ZodArray<z.ZodObject<{
|
|
335
|
-
event: z.ZodString;
|
|
336
336
|
source: z.ZodString;
|
|
337
337
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
338
338
|
filter: z.ZodOptional<z.ZodString>;
|
|
339
339
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
340
|
+
event: z.ZodString;
|
|
340
341
|
}, z.core.$strict>>;
|
|
341
342
|
until: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
342
|
-
event: z.ZodString;
|
|
343
343
|
source: z.ZodString;
|
|
344
344
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
345
345
|
filter: z.ZodOptional<z.ZodString>;
|
|
346
346
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
347
|
+
event: z.ZodString;
|
|
347
348
|
}, z.core.$strict>>>;
|
|
348
349
|
timeout: z.ZodOptional<z.ZodString>;
|
|
349
350
|
max_executions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -353,8 +354,8 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
353
354
|
max_wait: z.ZodOptional<z.ZodString>;
|
|
354
355
|
}, z.core.$strict>>;
|
|
355
356
|
on_resolve: z.ZodOptional<z.ZodEnum<{
|
|
356
|
-
finish: "finish";
|
|
357
357
|
cancel: "cancel";
|
|
358
|
+
finish: "finish";
|
|
358
359
|
}>>;
|
|
359
360
|
}, z.core.$strict>>;
|
|
360
361
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -385,17 +386,17 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
385
386
|
model: z.ZodOptional<z.ZodString>;
|
|
386
387
|
prompt: z.ZodOptional<z.ZodString>;
|
|
387
388
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
388
|
-
pi: "pi";
|
|
389
389
|
claude: "claude";
|
|
390
|
+
pi: "pi";
|
|
390
391
|
}>>;
|
|
391
392
|
thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
392
|
-
|
|
393
|
-
minimal: "minimal";
|
|
393
|
+
high: "high";
|
|
394
394
|
low: "low";
|
|
395
|
+
max: "max";
|
|
395
396
|
medium: "medium";
|
|
396
|
-
|
|
397
|
+
minimal: "minimal";
|
|
398
|
+
off: "off";
|
|
397
399
|
xhigh: "xhigh";
|
|
398
|
-
max: "max";
|
|
399
400
|
}>, z.ZodString]>>;
|
|
400
401
|
provider: z.ZodOptional<z.ZodString>;
|
|
401
402
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -415,18 +416,18 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
415
416
|
}, z.core.$strict>>;
|
|
416
417
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
417
418
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
418
|
-
string: "string";
|
|
419
|
-
number: "number";
|
|
420
419
|
boolean: "boolean";
|
|
421
420
|
json: "json";
|
|
421
|
+
number: "number";
|
|
422
|
+
string: "string";
|
|
422
423
|
}>, z.ZodTransform<{
|
|
423
|
-
type: "
|
|
424
|
-
}, "
|
|
424
|
+
type: "boolean" | "json" | "number" | "string";
|
|
425
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
425
426
|
type: z.ZodEnum<{
|
|
426
|
-
string: "string";
|
|
427
|
-
number: "number";
|
|
428
427
|
boolean: "boolean";
|
|
429
428
|
json: "json";
|
|
429
|
+
number: "number";
|
|
430
|
+
string: "string";
|
|
430
431
|
}>;
|
|
431
432
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
432
433
|
}, z.core.$strict>]>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-document.d.ts","sourceRoot":"","sources":["../../src/document/workflow-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAUtB,eAAO,MAAM,6BAA6B,QAAoC,CAAC;AAG/E,eAAO,MAAM,mCAAmC,QAAyC,CAAC;AAK1F,eAAO,MAAM,wBAAwB;;;;;;;;iBAajC,CAAC;AAmBL,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,0CAA0C,QAAY,CAAC;AACpE,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"workflow-document.d.ts","sourceRoot":"","sources":["../../src/document/workflow-document.ts"],"names":[],"mappings":"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"}
|
|
@@ -48,6 +48,7 @@ export const workflowDocumentStepOutputTypes = [
|
|
|
48
48
|
'boolean',
|
|
49
49
|
'json'
|
|
50
50
|
];
|
|
51
|
+
export const WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES = WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES;
|
|
51
52
|
export const WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES = WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES;
|
|
52
53
|
export const WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES = WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES;
|
|
53
54
|
export const WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH = 64;
|
|
@@ -502,6 +503,15 @@ export const workflowDocumentStepSchema = z.strictObject({
|
|
|
502
503
|
});
|
|
503
504
|
}
|
|
504
505
|
});
|
|
506
|
+
const workflowDocumentJobOutputsSchema = nonEmptyRecordSchema(z.string().min(1)).superRefine((outputs, ctx)=>{
|
|
507
|
+
const entries = Object.keys(outputs).length;
|
|
508
|
+
if (entries > WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES) {
|
|
509
|
+
ctx.addIssue({
|
|
510
|
+
code: 'custom',
|
|
511
|
+
message: `Job outputs cannot define more than ${WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES} entries.`
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
});
|
|
505
515
|
export const workflowDocumentJobSchema = z.strictObject({
|
|
506
516
|
needs: stringOrStringArraySchema.optional().meta({
|
|
507
517
|
description: 'Job key or keys that must complete before this job starts.'
|
|
@@ -515,8 +525,8 @@ export const workflowDocumentJobSchema = z.strictObject({
|
|
|
515
525
|
success: z.string().min(1).optional().meta({
|
|
516
526
|
description: 'CEL expression that determines whether the job succeeds. See [Expressions](/reference/expressions#functions-and-macros) and [Contexts](/reference/contexts#context-availability).'
|
|
517
527
|
}),
|
|
518
|
-
outputs:
|
|
519
|
-
description:
|
|
528
|
+
outputs: workflowDocumentJobOutputsSchema.optional().meta({
|
|
529
|
+
description: `Named job outputs mapped from step values. A mapping with exactly one expression preserves an inferred non-string source type. Each job allows up to ${WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES} declarations.`
|
|
520
530
|
}),
|
|
521
531
|
execution_timeout: z.string().min(1).optional().meta({
|
|
522
532
|
description: 'Maximum duration for one job execution.'
|