@shipfox/workflow-document 2.1.2 → 3.0.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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { thinkingLevelsForHarness } from './step-enums.js';
3
- import { workflowDocumentAgentStepFields, workflowDocumentSchema } from './workflow-document.js';
3
+ import { WORKFLOW_LITERAL_NAME_PATTERN, workflowDocumentAgentStepFields, workflowDocumentSchema } from './workflow-document.js';
4
4
  export function buildWorkflowJsonSchema({ id = 'https://www.shipfox.io/docs/workflow.schema.json' } = {}) {
5
5
  const schema = z.toJSONSchema(workflowDocumentSchema, {
6
6
  io: 'input',
@@ -9,6 +9,11 @@ export function buildWorkflowJsonSchema({ id = 'https://www.shipfox.io/docs/work
9
9
  const stepSchema = stepSchemaFor(schema);
10
10
  const stepProperties = propertiesOf(stepSchema);
11
11
  const thinkingSchema = object(stepProperties.thinking);
12
+ // `thinking` accepts an enum value or a template, so the per-harness branch
13
+ // narrows the enum alternative and keeps the template alternative intact.
14
+ const thinkingBranches = objects(thinkingSchema.anyOf);
15
+ const thinkingEnumBranch = thinkingBranches.find((branch)=>Array.isArray(branch.enum)) ?? {};
16
+ const thinkingTemplateBranches = thinkingBranches.filter((branch)=>!Array.isArray(branch.enum));
12
17
  delete stepProperties.agent;
13
18
  projectWorkflowValidation(schema, stepSchema);
14
19
  const thinkingConditionals = [
@@ -32,9 +37,17 @@ export function buildWorkflowJsonSchema({ id = 'https://www.shipfox.io/docs/work
32
37
  conditional.then = {
33
38
  properties: {
34
39
  thinking: {
35
- ...thinkingSchema,
36
- enum: [
37
- ...thinkingLevelsForHarness(harness)
40
+ ...typeof thinkingSchema.description === 'string' ? {
41
+ description: thinkingSchema.description
42
+ } : {},
43
+ anyOf: [
44
+ {
45
+ ...thinkingEnumBranch,
46
+ enum: [
47
+ ...thinkingLevelsForHarness(harness)
48
+ ]
49
+ },
50
+ ...thinkingTemplateBranches
38
51
  ]
39
52
  }
40
53
  }
@@ -54,6 +67,7 @@ function projectWorkflowValidation(schema, stepSchema) {
54
67
  const rootProperties = propertiesOf(schema);
55
68
  const jobs = object(rootProperties.jobs);
56
69
  const triggers = object(rootProperties.triggers);
70
+ addLiteralNamePattern(rootProperties.name);
57
71
  jobs.minProperties = 1;
58
72
  triggers.minProperties = 1;
59
73
  stepSchema.allOf = [
@@ -65,11 +79,18 @@ function projectWorkflowValidation(schema, stepSchema) {
65
79
  'run'
66
80
  ],
67
81
  not: {
68
- anyOf: workflowDocumentAgentStepFields.map((field)=>({
82
+ anyOf: [
83
+ ...workflowDocumentAgentStepFields.map((field)=>({
84
+ required: [
85
+ field
86
+ ]
87
+ })),
88
+ {
69
89
  required: [
70
- field
90
+ 'checkout'
71
91
  ]
72
- }))
92
+ }
93
+ ]
73
94
  }
74
95
  },
75
96
  {
@@ -83,6 +104,35 @@ function projectWorkflowValidation(schema, stepSchema) {
83
104
  'run'
84
105
  ]
85
106
  },
107
+ {
108
+ required: [
109
+ 'checkout'
110
+ ]
111
+ },
112
+ {
113
+ required: [
114
+ 'env'
115
+ ]
116
+ }
117
+ ]
118
+ }
119
+ },
120
+ {
121
+ required: [
122
+ 'checkout'
123
+ ],
124
+ not: {
125
+ anyOf: [
126
+ {
127
+ required: [
128
+ 'run'
129
+ ]
130
+ },
131
+ ...workflowDocumentAgentStepFields.map((field)=>({
132
+ required: [
133
+ field
134
+ ]
135
+ })),
86
136
  {
87
137
  required: [
88
138
  'env'
@@ -95,6 +145,8 @@ function projectWorkflowValidation(schema, stepSchema) {
95
145
  }
96
146
  ];
97
147
  const job = object(jobs.additionalProperties);
148
+ addLiteralNamePattern(propertiesOf(job).name);
149
+ projectCheckoutTargetValidation(propertiesOf(stepSchema).checkout);
98
150
  const jobOutputs = object(propertiesOf(job).outputs);
99
151
  jobOutputs.minProperties = 1;
100
152
  const listening = object(propertiesOf(job).listening);
@@ -110,6 +162,58 @@ function projectWorkflowValidation(schema, stepSchema) {
110
162
  'on_failure'
111
163
  ]);
112
164
  }
165
+ function addLiteralNamePattern(schema) {
166
+ if (schema === undefined) return;
167
+ schema.pattern = WORKFLOW_LITERAL_NAME_PATTERN.source;
168
+ }
169
+ function projectCheckoutTargetValidation(schema) {
170
+ const checkout = objectSchemaFor(schema);
171
+ if (Object.keys(checkout).length === 0) return;
172
+ checkout.allOf = [
173
+ ...objects(checkout.allOf),
174
+ {
175
+ not: {
176
+ allOf: [
177
+ {
178
+ required: [
179
+ 'project'
180
+ ]
181
+ },
182
+ {
183
+ anyOf: [
184
+ {
185
+ required: [
186
+ 'connection'
187
+ ]
188
+ },
189
+ {
190
+ required: [
191
+ 'repository'
192
+ ]
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ (()=>{
200
+ const conditional = {
201
+ if: {
202
+ required: [
203
+ 'connection'
204
+ ]
205
+ }
206
+ };
207
+ // biome-ignore lint/suspicious/noThenProperty: JSON Schema uses "then" for a conditional branch.
208
+ conditional.then = {
209
+ required: [
210
+ 'repository'
211
+ ]
212
+ };
213
+ return conditional;
214
+ })()
215
+ ];
216
+ }
113
217
  function addAtLeastOneConstraint(schema, fields) {
114
218
  schema.allOf = [
115
219
  ...objects(schema.allOf),
@@ -136,6 +240,11 @@ function propertiesOf(schema) {
136
240
  function object(value) {
137
241
  return typeof value === 'object' && value !== null && !Array.isArray(value) ? value : {};
138
242
  }
243
+ function objectSchemaFor(value) {
244
+ const schema = object(value);
245
+ if (schema.type === 'object' || schema.properties) return schema;
246
+ return objects(schema.anyOf).find((option)=>option.type === 'object' || option.properties) ?? {};
247
+ }
139
248
  function objects(value) {
140
249
  return Array.isArray(value) ? value.filter((item)=>typeof item === 'object' && item !== null && !Array.isArray(item)) : [];
141
250
  }
@@ -1 +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,CAA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A,UAAU,QAAQ,CAACC,MAAMC,OAAO,CAACF,SAChEA,QACD,CAAC;AACP;AAEA,SAASvB,QAAQuB,KAAc;IAC7B,OAAOC,MAAMC,OAAO,CAACF,SACjBA,MAAMG,MAAM,CACV,CAACC,OACC,OAAOA,SAAS,YAAYA,SAAS,QAAQ,CAACH,MAAMC,OAAO,CAACE,SAEhE,EAAE;AACR"}
1
+ {"version":3,"sources":["../../src/document/workflow-json-schema.ts"],"sourcesContent":["import {z} from 'zod';\nimport {thinkingLevelsForHarness} from './step-enums.js';\nimport {\n WORKFLOW_LITERAL_NAME_PATTERN,\n workflowDocumentAgentStepFields,\n workflowDocumentSchema,\n} 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 // `thinking` accepts an enum value or a template, so the per-harness branch\n // narrows the enum alternative and keeps the template alternative intact.\n const thinkingBranches = objects(thinkingSchema.anyOf);\n const thinkingEnumBranch = thinkingBranches.find((branch) => Array.isArray(branch.enum)) ?? {};\n const thinkingTemplateBranches = thinkingBranches.filter((branch) => !Array.isArray(branch.enum));\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 ...(typeof thinkingSchema.description === 'string'\n ? {description: thinkingSchema.description}\n : {}),\n anyOf: [\n {...thinkingEnumBranch, enum: [...thinkingLevelsForHarness(harness)]},\n ...thinkingTemplateBranches,\n ],\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 addLiteralNamePattern(rootProperties.name);\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: {\n anyOf: [\n ...workflowDocumentAgentStepFields.map((field) => ({required: [field]})),\n {required: ['checkout']},\n ],\n },\n },\n {\n required: ['prompt'],\n not: {anyOf: [{required: ['run']}, {required: ['checkout']}, {required: ['env']}]},\n },\n {\n required: ['checkout'],\n not: {\n anyOf: [\n {required: ['run']},\n ...workflowDocumentAgentStepFields.map((field) => ({required: [field]})),\n {required: ['env']},\n ],\n },\n },\n ],\n },\n ];\n\n const job = object(jobs.additionalProperties);\n addLiteralNamePattern(propertiesOf(job).name);\n projectCheckoutTargetValidation(propertiesOf(stepSchema).checkout);\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 addLiteralNamePattern(schema: JsonSchema | undefined) {\n if (schema === undefined) return;\n schema.pattern = WORKFLOW_LITERAL_NAME_PATTERN.source;\n}\n\nfunction projectCheckoutTargetValidation(schema: JsonSchema | undefined) {\n const checkout = objectSchemaFor(schema);\n if (Object.keys(checkout).length === 0) return;\n\n checkout.allOf = [\n ...objects(checkout.allOf),\n {\n not: {\n allOf: [\n {required: ['project']},\n {anyOf: [{required: ['connection']}, {required: ['repository']}]},\n ],\n },\n },\n (() => {\n const conditional: JsonSchema = {if: {required: ['connection']}};\n // biome-ignore lint/suspicious/noThenProperty: JSON Schema uses \"then\" for a conditional branch.\n conditional.then = {required: ['repository']};\n return conditional;\n })(),\n ];\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 objectSchemaFor(value: unknown): JsonSchema {\n const schema = object(value);\n if (schema.type === 'object' || schema.properties) return schema;\n return (\n objects(schema.anyOf).find((option) => option.type === 'object' || option.properties) ?? {}\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","WORKFLOW_LITERAL_NAME_PATTERN","workflowDocumentAgentStepFields","workflowDocumentSchema","buildWorkflowJsonSchema","id","schema","toJSONSchema","io","unrepresentable","stepSchema","stepSchemaFor","stepProperties","propertiesOf","thinkingSchema","object","thinking","thinkingBranches","objects","anyOf","thinkingEnumBranch","find","branch","Array","isArray","enum","thinkingTemplateBranches","filter","agent","projectWorkflowValidation","thinkingConditionals","map","harness","conditional","if","properties","const","required","then","description","allOf","$schema","$id","title","rootProperties","jobs","triggers","addLiteralNamePattern","name","minProperties","oneOf","not","field","job","additionalProperties","projectCheckoutTargetValidation","checkout","jobOutputs","outputs","listening","batch","addAtLeastOneConstraint","gate","undefined","pattern","source","objectSchemaFor","Object","keys","length","fields","steps","items","value","type","option","item"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,wBAAwB,QAAO,kBAAkB;AACzD,SACEC,6BAA6B,EAC7BC,+BAA+B,EAC/BC,sBAAsB,QACjB,yBAAyB;AAQhC,OAAO,SAASC,wBAAwB,EACtCC,KAAK,kDAAkD,EACxB,GAAG,CAAC,CAAC;IACpC,MAAMC,SAASP,EAAEQ,YAAY,CAACJ,wBAAwB;QACpDK,IAAI;QACJC,iBAAiB;IACnB;IACA,MAAMC,aAAaC,cAAcL;IACjC,MAAMM,iBAAiBC,aAAaH;IACpC,MAAMI,iBAAiBC,OAAOH,eAAeI,QAAQ;IACrD,4EAA4E;IAC5E,0EAA0E;IAC1E,MAAMC,mBAAmBC,QAAQJ,eAAeK,KAAK;IACrD,MAAMC,qBAAqBH,iBAAiBI,IAAI,CAAC,CAACC,SAAWC,MAAMC,OAAO,CAACF,OAAOG,IAAI,MAAM,CAAC;IAC7F,MAAMC,2BAA2BT,iBAAiBU,MAAM,CAAC,CAACL,SAAW,CAACC,MAAMC,OAAO,CAACF,OAAOG,IAAI;IAE/F,OAAOb,eAAegB,KAAK;IAC3BC,0BAA0BvB,QAAQI;IAClC,MAAMoB,uBAAuB,AAAC;QAAC;QAAM;KAAS,CAAWC,GAAG,CAAC,CAACC;QAC5D,MAAMC,cAA0B;YAC9BC,IAAI;gBACFC,YAAY;oBACVH,SAAS;wBACP,GAAGjB,OAAOH,eAAeoB,OAAO,CAAC;wBACjCI,OAAOJ;oBACT;gBACF;gBACAK,UAAU;oBAAC;iBAAU;YACvB;QACF;QACA,iGAAiG;QACjGJ,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D,OACC,OAAOA,SAAS,YAAYA,SAAS,QAAQ,CAACrD,MAAMC,OAAO,CAACoD,SAEhE,EAAE;AACR"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
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';
1
+ export { type AgentThinking, agentThinkingByHarness, agentThinkingSchema, type BuildWorkflowJsonSchemaOptions, buildWorkflowJsonSchema, type CheckoutTargetValidationIssue, checkoutTargetValidationIssues, 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 WorkflowDocumentCheckout, 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
@@ -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,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"}
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,KAAK,6BAA6B,EAClC,8BAA8B,EAC9B,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,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,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, 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';
1
+ export { agentThinkingByHarness, agentThinkingSchema, buildWorkflowJsonSchema, checkoutTargetValidationIssues, 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 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"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentThinking,\n agentThinkingByHarness,\n agentThinkingSchema,\n type BuildWorkflowJsonSchemaOptions,\n buildWorkflowJsonSchema,\n type CheckoutTargetValidationIssue,\n checkoutTargetValidationIssues,\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 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 workflowDocumentEnvSchema,\n workflowDocumentSchema,\n workflowDocumentStepIntegrationSchema,\n workflowDocumentStepIntegrationSelectionSchema,\n workflowDocumentStepOutputsSchema,\n workflowDocumentStepOutputTypes,\n workflowDocumentStepSchema,\n} from '#document/index.js';\n"],"names":["agentThinkingByHarness","agentThinkingSchema","buildWorkflowJsonSchema","checkoutTargetValidationIssues","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,EAEvBC,8BAA8B,EAC9BC,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,EAY1CC,yBAAyB,EACzBC,sBAAsB,EACtBC,qCAAqC,EACrCC,8CAA8C,EAC9CC,iCAAiC,EACjCC,+BAA+B,EAC/BC,0BAA0B,QACrB,qBAAqB"}