@shipfox/workflow-document 2.1.3 → 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/README.md +4 -1
- package/dist/document/checkout-target-validation.d.ts +19 -0
- package/dist/document/checkout-target-validation.d.ts.map +1 -0
- package/dist/document/checkout-target-validation.js +36 -0
- package/dist/document/checkout-target-validation.js.map +1 -0
- package/dist/document/index.d.ts +2 -1
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +2 -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 +146 -63
- package/dist/document/workflow-document.d.ts.map +1 -1
- package/dist/document/workflow-document.js +152 -35
- package/dist/document/workflow-document.js.map +1 -1
- package/dist/document/workflow-json-schema.d.ts.map +1 -1
- package/dist/document/workflow-json-schema.js +116 -7
- package/dist/document/workflow-json-schema.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/README.md
CHANGED
|
@@ -139,9 +139,12 @@ parseWorkflowDocument({
|
|
|
139
139
|
});
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
## Behavior
|
|
142
|
+
## Behavior notes
|
|
143
143
|
|
|
144
144
|
- The public contract is the Zod schema and the TypeScript types built from it.
|
|
145
|
+
- Workflow and job `name` fields must be literal and reject `${{ ... }}`. Put
|
|
146
|
+
runtime interpolation in `run_name` or `execution_name`; write a literal
|
|
147
|
+
`${{` as `$${{`.
|
|
145
148
|
- Bad input throws a typed `Error`; UI or API code can read `validationError.issues` for field details.
|
|
146
149
|
- The `checkout` block is checked as input shape here. Default resolution,
|
|
147
150
|
permission capping, credential minting, and runner checkout behavior belong to
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CheckoutTargetValidationIssue = {
|
|
2
|
+
kind: 'project-with-connection';
|
|
3
|
+
path: 'connection';
|
|
4
|
+
fields: readonly ['project', 'connection'];
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'project-with-repository';
|
|
7
|
+
path: 'repository';
|
|
8
|
+
fields: readonly ['project', 'repository'];
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'connection-without-repository';
|
|
11
|
+
path: 'repository';
|
|
12
|
+
fields: readonly ['connection', 'repository'];
|
|
13
|
+
};
|
|
14
|
+
export declare function checkoutTargetValidationIssues(target: {
|
|
15
|
+
readonly project?: unknown;
|
|
16
|
+
readonly connection?: unknown;
|
|
17
|
+
readonly repository?: unknown;
|
|
18
|
+
}): readonly CheckoutTargetValidationIssue[];
|
|
19
|
+
//# sourceMappingURL=checkout-target-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-target-validation.d.ts","sourceRoot":"","sources":["../../src/document/checkout-target-validation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GACrC;IACE,IAAI,EAAE,yBAAyB,CAAC;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;CAC5C,GACD;IACE,IAAI,EAAE,yBAAyB,CAAC;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;CAC5C,GACD;IACE,IAAI,EAAE,+BAA+B,CAAC;IACtC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;CAC/C,CAAC;AAEN,wBAAgB,8BAA8B,CAAC,MAAM,EAAE;IACrD,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,SAAS,6BAA6B,EAAE,CA8B3C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export function checkoutTargetValidationIssues(target) {
|
|
2
|
+
const issues = [];
|
|
3
|
+
if (target.project !== undefined && target.connection !== undefined) {
|
|
4
|
+
issues.push({
|
|
5
|
+
kind: 'project-with-connection',
|
|
6
|
+
path: 'connection',
|
|
7
|
+
fields: [
|
|
8
|
+
'project',
|
|
9
|
+
'connection'
|
|
10
|
+
]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
if (target.project !== undefined && target.repository !== undefined) {
|
|
14
|
+
issues.push({
|
|
15
|
+
kind: 'project-with-repository',
|
|
16
|
+
path: 'repository',
|
|
17
|
+
fields: [
|
|
18
|
+
'project',
|
|
19
|
+
'repository'
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (target.project === undefined && target.connection !== undefined && target.repository === undefined) {
|
|
24
|
+
issues.push({
|
|
25
|
+
kind: 'connection-without-repository',
|
|
26
|
+
path: 'repository',
|
|
27
|
+
fields: [
|
|
28
|
+
'connection',
|
|
29
|
+
'repository'
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return issues;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=checkout-target-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/document/checkout-target-validation.ts"],"sourcesContent":["export type CheckoutTargetValidationIssue =\n | {\n kind: 'project-with-connection';\n path: 'connection';\n fields: readonly ['project', 'connection'];\n }\n | {\n kind: 'project-with-repository';\n path: 'repository';\n fields: readonly ['project', 'repository'];\n }\n | {\n kind: 'connection-without-repository';\n path: 'repository';\n fields: readonly ['connection', 'repository'];\n };\n\nexport function checkoutTargetValidationIssues(target: {\n readonly project?: unknown;\n readonly connection?: unknown;\n readonly repository?: unknown;\n}): readonly CheckoutTargetValidationIssue[] {\n const issues: CheckoutTargetValidationIssue[] = [];\n\n if (target.project !== undefined && target.connection !== undefined) {\n issues.push({\n kind: 'project-with-connection',\n path: 'connection',\n fields: ['project', 'connection'],\n });\n }\n if (target.project !== undefined && target.repository !== undefined) {\n issues.push({\n kind: 'project-with-repository',\n path: 'repository',\n fields: ['project', 'repository'],\n });\n }\n if (\n target.project === undefined &&\n target.connection !== undefined &&\n target.repository === undefined\n ) {\n issues.push({\n kind: 'connection-without-repository',\n path: 'repository',\n fields: ['connection', 'repository'],\n });\n }\n\n return issues;\n}\n"],"names":["checkoutTargetValidationIssues","target","issues","project","undefined","connection","push","kind","path","fields","repository"],"mappings":"AAiBA,OAAO,SAASA,+BAA+BC,MAI9C;IACC,MAAMC,SAA0C,EAAE;IAElD,IAAID,OAAOE,OAAO,KAAKC,aAAaH,OAAOI,UAAU,KAAKD,WAAW;QACnEF,OAAOI,IAAI,CAAC;YACVC,MAAM;YACNC,MAAM;YACNC,QAAQ;gBAAC;gBAAW;aAAa;QACnC;IACF;IACA,IAAIR,OAAOE,OAAO,KAAKC,aAAaH,OAAOS,UAAU,KAAKN,WAAW;QACnEF,OAAOI,IAAI,CAAC;YACVC,MAAM;YACNC,MAAM;YACNC,QAAQ;gBAAC;gBAAW;aAAa;QACnC;IACF;IACA,IACER,OAAOE,OAAO,KAAKC,aACnBH,OAAOI,UAAU,KAAKD,aACtBH,OAAOS,UAAU,KAAKN,WACtB;QACAF,OAAOI,IAAI,CAAC;YACVC,MAAM;YACNC,MAAM;YACNC,QAAQ;gBAAC;gBAAc;aAAa;QACtC;IACF;IAEA,OAAOP;AACT"}
|
package/dist/document/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export { type CheckoutTargetValidationIssue, checkoutTargetValidationIssues, } from './checkout-target-validation.js';
|
|
1
2
|
export { type AgentThinking, agentThinkingByHarness, agentThinkingSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, type Harness, harnessSchema, piAgentThinkingSchema, thinkingLevelsForHarness, } from './step-enums.js';
|
|
2
|
-
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 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';
|
|
3
4
|
export { InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument, } from './workflow-document-parser.js';
|
|
4
5
|
export { type BuildWorkflowJsonSchemaOptions, buildWorkflowJsonSchema, } from './workflow-json-schema.js';
|
|
5
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,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,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,5 +1,6 @@
|
|
|
1
|
+
export { checkoutTargetValidationIssues } from './checkout-target-validation.js';
|
|
1
2
|
export { agentThinkingByHarness, agentThinkingSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, harnessSchema, piAgentThinkingSchema, thinkingLevelsForHarness } from './step-enums.js';
|
|
2
|
-
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';
|
|
3
4
|
export { InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument } from './workflow-document-parser.js';
|
|
4
5
|
export { buildWorkflowJsonSchema } from './workflow-json-schema.js';
|
|
5
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/document/index.ts"],"sourcesContent":["export {\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 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":["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,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,
|
|
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"}
|