@shipfox/workflow-document 2.0.0 → 2.1.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/document/index.d.ts +1 -0
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +1 -0
- package/dist/document/index.js.map +1 -1
- package/dist/document/step-enums.d.ts.map +1 -1
- package/dist/document/step-enums.js +6 -2
- package/dist/document/step-enums.js.map +1 -1
- package/dist/document/workflow-document.d.ts +1 -0
- package/dist/document/workflow-document.d.ts.map +1 -1
- package/dist/document/workflow-document.js +195 -70
- package/dist/document/workflow-document.js.map +1 -1
- package/dist/document/workflow-json-schema.d.ts +7 -0
- package/dist/document/workflow-json-schema.d.ts.map +1 -0
- package/dist/document/workflow-json-schema.js +143 -0
- package/dist/document/workflow-json-schema.js.map +1 -0
- 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 +10 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type JsonSchema = Record<string, unknown>;
|
|
2
|
+
export interface BuildWorkflowJsonSchemaOptions {
|
|
3
|
+
id?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function buildWorkflowJsonSchema({ id, }?: BuildWorkflowJsonSchemaOptions): JsonSchema;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=workflow-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-json-schema.d.ts","sourceRoot":"","sources":["../../src/document/workflow-json-schema.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1C,MAAM,WAAW,8BAA8B;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,uBAAuB,CAAC,EACtC,EAAuD,GACxD,GAAE,8BAAmC,GAAG,UAAU,CAwClD"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { thinkingLevelsForHarness } from './step-enums.js';
|
|
3
|
+
import { workflowDocumentAgentStepFields, workflowDocumentSchema } from './workflow-document.js';
|
|
4
|
+
export function buildWorkflowJsonSchema({ id = 'https://www.shipfox.io/docs/workflow.schema.json' } = {}) {
|
|
5
|
+
const schema = z.toJSONSchema(workflowDocumentSchema, {
|
|
6
|
+
io: 'input',
|
|
7
|
+
unrepresentable: 'any'
|
|
8
|
+
});
|
|
9
|
+
const stepSchema = stepSchemaFor(schema);
|
|
10
|
+
const stepProperties = propertiesOf(stepSchema);
|
|
11
|
+
const thinkingSchema = object(stepProperties.thinking);
|
|
12
|
+
delete stepProperties.agent;
|
|
13
|
+
projectWorkflowValidation(schema, stepSchema);
|
|
14
|
+
const thinkingConditionals = [
|
|
15
|
+
'pi',
|
|
16
|
+
'claude'
|
|
17
|
+
].map((harness)=>{
|
|
18
|
+
const conditional = {
|
|
19
|
+
if: {
|
|
20
|
+
properties: {
|
|
21
|
+
harness: {
|
|
22
|
+
...object(stepProperties.harness),
|
|
23
|
+
const: harness
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
required: [
|
|
27
|
+
'harness'
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
// biome-ignore lint/suspicious/noThenProperty: JSON Schema uses "then" for a conditional branch.
|
|
32
|
+
conditional.then = {
|
|
33
|
+
properties: {
|
|
34
|
+
thinking: {
|
|
35
|
+
...thinkingSchema,
|
|
36
|
+
enum: [
|
|
37
|
+
...thinkingLevelsForHarness(harness)
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return conditional;
|
|
43
|
+
});
|
|
44
|
+
stepSchema.allOf = [
|
|
45
|
+
...objects(stepSchema.allOf),
|
|
46
|
+
...thinkingConditionals
|
|
47
|
+
];
|
|
48
|
+
schema.$schema = 'https://json-schema.org/draft/2020-12/schema';
|
|
49
|
+
schema.$id = id;
|
|
50
|
+
schema.title = 'Shipfox Workflow';
|
|
51
|
+
return schema;
|
|
52
|
+
}
|
|
53
|
+
function projectWorkflowValidation(schema, stepSchema) {
|
|
54
|
+
const rootProperties = propertiesOf(schema);
|
|
55
|
+
const jobs = object(rootProperties.jobs);
|
|
56
|
+
const triggers = object(rootProperties.triggers);
|
|
57
|
+
jobs.minProperties = 1;
|
|
58
|
+
triggers.minProperties = 1;
|
|
59
|
+
stepSchema.allOf = [
|
|
60
|
+
...objects(stepSchema.allOf),
|
|
61
|
+
{
|
|
62
|
+
oneOf: [
|
|
63
|
+
{
|
|
64
|
+
required: [
|
|
65
|
+
'run'
|
|
66
|
+
],
|
|
67
|
+
not: {
|
|
68
|
+
anyOf: workflowDocumentAgentStepFields.map((field)=>({
|
|
69
|
+
required: [
|
|
70
|
+
field
|
|
71
|
+
]
|
|
72
|
+
}))
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
required: [
|
|
77
|
+
'prompt'
|
|
78
|
+
],
|
|
79
|
+
not: {
|
|
80
|
+
anyOf: [
|
|
81
|
+
{
|
|
82
|
+
required: [
|
|
83
|
+
'run'
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
required: [
|
|
88
|
+
'env'
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
];
|
|
97
|
+
const job = object(jobs.additionalProperties);
|
|
98
|
+
const jobOutputs = object(propertiesOf(job).outputs);
|
|
99
|
+
jobOutputs.minProperties = 1;
|
|
100
|
+
const listening = object(propertiesOf(job).listening);
|
|
101
|
+
const batch = object(propertiesOf(listening).batch);
|
|
102
|
+
addAtLeastOneConstraint(batch, [
|
|
103
|
+
'debounce',
|
|
104
|
+
'max_size',
|
|
105
|
+
'max_wait'
|
|
106
|
+
]);
|
|
107
|
+
const gate = object(propertiesOf(stepSchema).gate);
|
|
108
|
+
addAtLeastOneConstraint(gate, [
|
|
109
|
+
'success',
|
|
110
|
+
'on_failure'
|
|
111
|
+
]);
|
|
112
|
+
}
|
|
113
|
+
function addAtLeastOneConstraint(schema, fields) {
|
|
114
|
+
schema.allOf = [
|
|
115
|
+
...objects(schema.allOf),
|
|
116
|
+
{
|
|
117
|
+
anyOf: fields.map((field)=>({
|
|
118
|
+
required: [
|
|
119
|
+
field
|
|
120
|
+
]
|
|
121
|
+
}))
|
|
122
|
+
}
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
function stepSchemaFor(schema) {
|
|
126
|
+
const jobs = object(propertiesOf(schema).jobs);
|
|
127
|
+
const job = object(jobs.additionalProperties);
|
|
128
|
+
const steps = object(propertiesOf(job).steps);
|
|
129
|
+
return object(steps.items);
|
|
130
|
+
}
|
|
131
|
+
function propertiesOf(schema) {
|
|
132
|
+
const properties = object(schema.properties);
|
|
133
|
+
schema.properties = properties;
|
|
134
|
+
return properties;
|
|
135
|
+
}
|
|
136
|
+
function object(value) {
|
|
137
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value) ? value : {};
|
|
138
|
+
}
|
|
139
|
+
function objects(value) {
|
|
140
|
+
return Array.isArray(value) ? value.filter((item)=>typeof item === 'object' && item !== null && !Array.isArray(item)) : [];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
//# sourceMappingURL=workflow-json-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/document/workflow-json-schema.ts"],"sourcesContent":["import {z} from 'zod';\nimport {thinkingLevelsForHarness} from './step-enums.js';\nimport {workflowDocumentAgentStepFields, workflowDocumentSchema} from './workflow-document.js';\n\ntype JsonSchema = Record<string, unknown>;\n\nexport interface BuildWorkflowJsonSchemaOptions {\n id?: string;\n}\n\nexport function buildWorkflowJsonSchema({\n id = 'https://www.shipfox.io/docs/workflow.schema.json',\n}: BuildWorkflowJsonSchemaOptions = {}): JsonSchema {\n const schema = z.toJSONSchema(workflowDocumentSchema, {\n io: 'input',\n unrepresentable: 'any',\n }) as JsonSchema;\n const stepSchema = stepSchemaFor(schema);\n const stepProperties = propertiesOf(stepSchema);\n const thinkingSchema = object(stepProperties.thinking);\n\n delete stepProperties.agent;\n projectWorkflowValidation(schema, stepSchema);\n const thinkingConditionals = (['pi', 'claude'] as const).map((harness) => {\n const conditional: JsonSchema = {\n if: {\n properties: {\n harness: {\n ...object(stepProperties.harness),\n const: harness,\n },\n },\n required: ['harness'],\n },\n };\n // biome-ignore lint/suspicious/noThenProperty: JSON Schema uses \"then\" for a conditional branch.\n conditional.then = {\n properties: {\n thinking: {\n ...thinkingSchema,\n enum: [...thinkingLevelsForHarness(harness)],\n },\n },\n };\n return conditional;\n });\n stepSchema.allOf = [...objects(stepSchema.allOf), ...thinkingConditionals];\n schema.$schema = 'https://json-schema.org/draft/2020-12/schema';\n schema.$id = id;\n schema.title = 'Shipfox Workflow';\n\n return schema;\n}\n\nfunction projectWorkflowValidation(schema: JsonSchema, stepSchema: JsonSchema) {\n const rootProperties = propertiesOf(schema);\n const jobs = object(rootProperties.jobs);\n const triggers = object(rootProperties.triggers);\n jobs.minProperties = 1;\n triggers.minProperties = 1;\n\n stepSchema.allOf = [\n ...objects(stepSchema.allOf),\n {\n oneOf: [\n {\n required: ['run'],\n not: {anyOf: workflowDocumentAgentStepFields.map((field) => ({required: [field]}))},\n },\n {\n required: ['prompt'],\n not: {anyOf: [{required: ['run']}, {required: ['env']}]},\n },\n ],\n },\n ];\n\n const job = object(jobs.additionalProperties);\n const jobOutputs = object(propertiesOf(job).outputs);\n jobOutputs.minProperties = 1;\n const listening = object(propertiesOf(job).listening);\n const batch = object(propertiesOf(listening).batch);\n addAtLeastOneConstraint(batch, ['debounce', 'max_size', 'max_wait']);\n\n const gate = object(propertiesOf(stepSchema).gate);\n addAtLeastOneConstraint(gate, ['success', 'on_failure']);\n}\n\nfunction addAtLeastOneConstraint(schema: JsonSchema, fields: string[]) {\n schema.allOf = [...objects(schema.allOf), {anyOf: fields.map((field) => ({required: [field]}))}];\n}\n\nfunction stepSchemaFor(schema: JsonSchema): JsonSchema {\n const jobs = object(propertiesOf(schema).jobs);\n const job = object(jobs.additionalProperties);\n const steps = object(propertiesOf(job).steps);\n return object(steps.items);\n}\n\nfunction propertiesOf(schema: JsonSchema): Record<string, JsonSchema> {\n const properties = object(schema.properties);\n schema.properties = properties;\n return properties as Record<string, JsonSchema>;\n}\n\nfunction object(value: unknown): JsonSchema {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n ? (value as JsonSchema)\n : {};\n}\n\nfunction objects(value: unknown): JsonSchema[] {\n return Array.isArray(value)\n ? value.filter(\n (item): item is JsonSchema =>\n typeof item === 'object' && item !== null && !Array.isArray(item),\n )\n : [];\n}\n"],"names":["z","thinkingLevelsForHarness","workflowDocumentAgentStepFields","workflowDocumentSchema","buildWorkflowJsonSchema","id","schema","toJSONSchema","io","unrepresentable","stepSchema","stepSchemaFor","stepProperties","propertiesOf","thinkingSchema","object","thinking","agent","projectWorkflowValidation","thinkingConditionals","map","harness","conditional","if","properties","const","required","then","enum","allOf","objects","$schema","$id","title","rootProperties","jobs","triggers","minProperties","oneOf","not","anyOf","field","job","additionalProperties","jobOutputs","outputs","listening","batch","addAtLeastOneConstraint","gate","fields","steps","items","value","Array","isArray","filter","item"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,wBAAwB,QAAO,kBAAkB;AACzD,SAAQC,+BAA+B,EAAEC,sBAAsB,QAAO,yBAAyB;AAQ/F,OAAO,SAASC,wBAAwB,EACtCC,KAAK,kDAAkD,EACxB,GAAG,CAAC,CAAC;IACpC,MAAMC,SAASN,EAAEO,YAAY,CAACJ,wBAAwB;QACpDK,IAAI;QACJC,iBAAiB;IACnB;IACA,MAAMC,aAAaC,cAAcL;IACjC,MAAMM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F,SACjBA,MAAMG,MAAM,CACV,CAACC,OACC,OAAOA,SAAS,YAAYA,SAAS,QAAQ,CAACH,MAAMC,OAAO,CAACE,SAEhE,EAAE;AACR"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type AgentThinking, agentThinkingByHarness, agentThinkingSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, type Harness, harnessSchema, InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument, 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, type WorkflowDocument, type WorkflowDocumentEnv, type WorkflowDocumentJob, type WorkflowDocumentJobCheckout, type WorkflowDocumentRunStepGate, type WorkflowDocumentStep, type WorkflowDocumentStepIntegration, type WorkflowDocumentStepOutputs, type WorkflowDocumentStepOutputType, type WorkflowDocumentTrigger, workflowDocumentEnvSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema, } from '#document/index.js';
|
|
1
|
+
export { type AgentThinking, agentThinkingByHarness, agentThinkingSchema, type BuildWorkflowJsonSchemaOptions, buildWorkflowJsonSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, type Harness, harnessSchema, InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument, 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, type WorkflowDocument, type WorkflowDocumentEnv, type WorkflowDocumentJob, type WorkflowDocumentJobCheckout, type WorkflowDocumentRunStepGate, type WorkflowDocumentStep, type WorkflowDocumentStepIntegration, type WorkflowDocumentStepOutputs, type WorkflowDocumentStepOutputType, type WorkflowDocumentTrigger, workflowDocumentEnvSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema, } from '#document/index.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/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,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,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,yBAAyB,EACzB,sBAAsB,EACtB,qCAAqC,EACrC,8CAA8C,EAC9C,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,8BAA8B,EACnC,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,KAAK,OAAO,EACZ,aAAa,EACb,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,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,yBAAyB,EACzB,sBAAsB,EACtB,qCAAqC,EACrC,8CAA8C,EAC9C,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { agentThinkingByHarness, agentThinkingSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, harnessSchema, InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument, 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, workflowDocumentEnvSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema } from '#document/index.js';
|
|
1
|
+
export { agentThinkingByHarness, agentThinkingSchema, buildWorkflowJsonSchema, claudeAgentThinkingSchema, DEFAULT_AGENT_THINKING, DEFAULT_HARNESS, DEFAULT_MODEL_PROVIDER, harnessSchema, InvalidWorkflowDocumentError, invalidWorkflowDocumentErrorCode, parseWorkflowDocument, 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, workflowDocumentEnvSchema, workflowDocumentSchema, workflowDocumentStepIntegrationSchema, workflowDocumentStepIntegrationSelectionSchema, workflowDocumentStepOutputsSchema, workflowDocumentStepOutputTypes, workflowDocumentStepSchema } from '#document/index.js';
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/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 InvalidWorkflowDocumentError,\n invalidWorkflowDocumentErrorCode,\n parseWorkflowDocument,\n piAgentThinkingSchema,\n thinkingLevelsForHarness,\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 workflowDocumentEnvSchema,\n workflowDocumentSchema,\n workflowDocumentStepIntegrationSchema,\n workflowDocumentStepIntegrationSelectionSchema,\n workflowDocumentStepOutputsSchema,\n workflowDocumentStepOutputTypes,\n workflowDocumentStepSchema,\n} from '#document/index.js';\n"],"names":["agentThinkingByHarness","agentThinkingSchema","claudeAgentThinkingSchema","DEFAULT_AGENT_THINKING","DEFAULT_HARNESS","DEFAULT_MODEL_PROVIDER","harnessSchema","InvalidWorkflowDocumentError","invalidWorkflowDocumentErrorCode","parseWorkflowDocument","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","workflowDocumentEnvSchema","workflowDocumentSchema","workflowDocumentStepIntegrationSchema","workflowDocumentStepIntegrationSelectionSchema","workflowDocumentStepOutputsSchema","workflowDocumentStepOutputTypes","workflowDocumentStepSchema"],"mappings":"AAAA,SAEEA,sBAAsB,EACtBC,mBAAmB,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentThinking,\n agentThinkingByHarness,\n agentThinkingSchema,\n type BuildWorkflowJsonSchemaOptions,\n buildWorkflowJsonSchema,\n claudeAgentThinkingSchema,\n DEFAULT_AGENT_THINKING,\n DEFAULT_HARNESS,\n DEFAULT_MODEL_PROVIDER,\n type Harness,\n harnessSchema,\n InvalidWorkflowDocumentError,\n invalidWorkflowDocumentErrorCode,\n parseWorkflowDocument,\n piAgentThinkingSchema,\n thinkingLevelsForHarness,\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 workflowDocumentEnvSchema,\n workflowDocumentSchema,\n workflowDocumentStepIntegrationSchema,\n workflowDocumentStepIntegrationSelectionSchema,\n workflowDocumentStepOutputsSchema,\n workflowDocumentStepOutputTypes,\n workflowDocumentStepSchema,\n} from '#document/index.js';\n"],"names":["agentThinkingByHarness","agentThinkingSchema","buildWorkflowJsonSchema","claudeAgentThinkingSchema","DEFAULT_AGENT_THINKING","DEFAULT_HARNESS","DEFAULT_MODEL_PROVIDER","harnessSchema","InvalidWorkflowDocumentError","invalidWorkflowDocumentErrorCode","parseWorkflowDocument","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","workflowDocumentEnvSchema","workflowDocumentSchema","workflowDocumentStepIntegrationSchema","workflowDocumentStepIntegrationSelectionSchema","workflowDocumentStepOutputsSchema","workflowDocumentStepOutputTypes","workflowDocumentStepSchema"],"mappings":"AAAA,SAEEA,sBAAsB,EACtBC,mBAAmB,EAEnBC,uBAAuB,EACvBC,yBAAyB,EACzBC,sBAAsB,EACtBC,eAAe,EACfC,sBAAsB,EAEtBC,aAAa,EACbC,4BAA4B,EAC5BC,gCAAgC,EAChCC,qBAAqB,EACrBC,qBAAqB,EACrBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,iCAAiC,EACjCC,0CAA0C,EAC1CC,8CAA8C,EAC9CC,yDAAyD,EACzDC,0CAA0C,EAW1CC,yBAAyB,EACzBC,sBAAsB,EACtBC,qCAAqC,EACrCC,8CAA8C,EAC9CC,iCAAiC,EACjCC,+BAA+B,EAC/BC,0BAA0B,QACrB,qBAAqB"}
|