agent-contracts 0.19.2 → 0.19.3

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 CHANGED
@@ -229,6 +229,7 @@ A **Workflow** defines a phase-level execution sequence:
229
229
  Workflow steps support additional properties:
230
230
 
231
231
  * `group` — consecutive steps with the same group are rendered as `par` (parallel) blocks in sequence diagrams
232
+ * `depends_on` — list of step task IDs that must complete before this step starts. When specified, the runtime can execute independent steps in parallel. When omitted, the step implicitly depends on all preceding steps (sequential execution)
232
233
  * `max_retries` (delegate steps) — maximum number of full task re-executions (new sessions) allowed per step. Defaults to `0` (no retries), or `1` when a `retry` block is present
233
234
  * `max_follow_ups` (delegate steps) — maximum number of lightweight same-session follow-up messages for output format corrections
234
235
  * `retry` (delegate steps) — defines a conditional retry loop with `condition`, `fix_task`, and optional `revalidate_task`. These are rendered as recovery instructions in the LLM prompt
package/dist/cli.js CHANGED
@@ -48983,6 +48983,7 @@ var WorkflowDelegateStepSchema = z14.object({
48983
48983
  task: z14.string(),
48984
48984
  from_agent: z14.string(),
48985
48985
  group: z14.string().optional(),
48986
+ depends_on: z14.array(z14.string()).optional(),
48986
48987
  max_retries: z14.number().int().min(0).optional(),
48987
48988
  max_follow_ups: z14.number().int().min(0).optional(),
48988
48989
  retry: RetrySchema.optional()
@@ -48991,7 +48992,8 @@ var WorkflowGateStepSchema = z14.object({
48991
48992
  type: z14.literal("gate"),
48992
48993
  description: z14.string().optional(),
48993
48994
  gate_kind: z14.string(),
48994
- group: z14.string().optional()
48995
+ group: z14.string().optional(),
48996
+ depends_on: z14.array(z14.string()).optional()
48995
48997
  }).passthrough();
48996
48998
  var WorkflowHandoffStepSchema = z14.object({
48997
48999
  type: z14.literal("handoff"),
@@ -49000,13 +49002,15 @@ var WorkflowHandoffStepSchema = z14.object({
49000
49002
  task: z14.string().optional(),
49001
49003
  from_agent: z14.string().optional(),
49002
49004
  group: z14.string().optional(),
49005
+ depends_on: z14.array(z14.string()).optional(),
49003
49006
  retry: RetrySchema.optional()
49004
49007
  }).passthrough();
49005
49008
  var WorkflowValidationStepSchema = z14.object({
49006
49009
  type: z14.literal("validation"),
49007
49010
  description: z14.string().optional(),
49008
49011
  validation: z14.string(),
49009
- group: z14.string().optional()
49012
+ group: z14.string().optional(),
49013
+ depends_on: z14.array(z14.string()).optional()
49010
49014
  }).passthrough();
49011
49015
  var WorkflowDecisionStepSchema = z14.object({
49012
49016
  type: z14.literal("decision"),
@@ -49015,7 +49019,8 @@ var WorkflowDecisionStepSchema = z14.object({
49015
49019
  on: z14.string().optional(),
49016
49020
  routing_key: z14.string().optional(),
49017
49021
  branches: z14.record(z14.string(), z14.array(z14.string())),
49018
- group: z14.string().optional()
49022
+ group: z14.string().optional(),
49023
+ depends_on: z14.array(z14.string()).optional()
49019
49024
  }).passthrough();
49020
49025
  var WorkflowTeamTaskStepSchema = z14.object({
49021
49026
  type: z14.literal("team_task"),
@@ -49024,7 +49029,8 @@ var WorkflowTeamTaskStepSchema = z14.object({
49024
49029
  workflow: z14.string(),
49025
49030
  handoff: z14.string(),
49026
49031
  expects: z14.string(),
49027
- group: z14.string().optional()
49032
+ group: z14.string().optional(),
49033
+ depends_on: z14.array(z14.string()).optional()
49028
49034
  }).passthrough();
49029
49035
  var WorkflowStepSchema = z14.discriminatedUnion("type", [
49030
49036
  WorkflowDelegateStepSchema,