@crewx/workflow 0.3.22-rc.21 → 0.3.22-rc.211

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.
Files changed (48) hide show
  1. package/SKILL.md +4 -4
  2. package/dist/cli.d.ts +1 -1
  3. package/dist/cli.js +21 -1012
  4. package/dist/src/card-state.d.ts +20 -0
  5. package/dist/src/card-state.js +1 -0
  6. package/dist/src/engine.d.ts +10 -3
  7. package/dist/src/engine.js +1 -348
  8. package/dist/src/failure.d.ts +41 -0
  9. package/dist/src/failure.js +1 -0
  10. package/dist/src/file-lock.d.ts +1 -1
  11. package/dist/src/file-lock.js +1 -97
  12. package/dist/src/list-view.d.ts +22 -0
  13. package/dist/src/list-view.js +3 -0
  14. package/dist/src/mermaid.d.ts +1 -1
  15. package/dist/src/mermaid.js +2 -133
  16. package/dist/src/parent-task-sync.d.ts +139 -0
  17. package/dist/src/parent-task-sync.js +1 -0
  18. package/dist/src/retry-policy.d.ts +38 -0
  19. package/dist/src/retry-policy.js +1 -0
  20. package/dist/src/run-manager.d.ts +37 -3
  21. package/dist/src/run-manager.js +4 -1228
  22. package/dist/src/types.d.ts +37 -4
  23. package/dist/src/types.js +1 -3
  24. package/dist/src/utils/output-format.d.ts +1 -1
  25. package/dist/src/utils/output-format.js +12 -157
  26. package/dist/src/utils/shell-security.d.ts +1 -1
  27. package/dist/src/utils/shell-security.js +1 -138
  28. package/dist/src/workflow-persistence.d.ts +48 -0
  29. package/dist/src/workflow-persistence.js +1 -0
  30. package/dist/workflow-schema.json +25 -4
  31. package/package.json +23 -4
  32. package/workflow-schema.json +25 -4
  33. package/dist/cli.d.ts.map +0 -1
  34. package/dist/cli.js.map +0 -1
  35. package/dist/src/engine.d.ts.map +0 -1
  36. package/dist/src/engine.js.map +0 -1
  37. package/dist/src/file-lock.d.ts.map +0 -1
  38. package/dist/src/file-lock.js.map +0 -1
  39. package/dist/src/mermaid.d.ts.map +0 -1
  40. package/dist/src/mermaid.js.map +0 -1
  41. package/dist/src/run-manager.d.ts.map +0 -1
  42. package/dist/src/run-manager.js.map +0 -1
  43. package/dist/src/types.d.ts.map +0 -1
  44. package/dist/src/types.js.map +0 -1
  45. package/dist/src/utils/output-format.d.ts.map +0 -1
  46. package/dist/src/utils/output-format.js.map +0 -1
  47. package/dist/src/utils/shell-security.d.ts.map +0 -1
  48. package/dist/src/utils/shell-security.js.map +0 -1
package/SKILL.md CHANGED
@@ -334,7 +334,7 @@ extract_attachments:
334
334
  | `output_schema` | object | No | Standard JSON Schema 2020-12 for parsed output. |
335
335
  | `output_retry` | integer | No | Retry attempts if JSON parse or schema validation fails. |
336
336
 
337
- `skill_task` uses `CREWX_CLI` (default: `npx crewx`) and executes the equivalent of:
337
+ `skill_task` uses `CREWX_CLI` (default: `crewx`) and executes the equivalent of:
338
338
 
339
339
  ```bash
340
340
  crewx skill <skill> ...args
@@ -597,7 +597,7 @@ Examples:
597
597
  | Input | Run behavior |
598
598
  |-------|--------------|
599
599
  | `/wf rc-publish` | Starts `rc-publish` in auto mode |
600
- | `/wf rc-publish 미리승인한다` | Starts `rc-publish` with `state.input = "미리승인한다"` |
600
+ | `/wf rc-publish pre-approved` | Starts `rc-publish` with `state.input = "pre-approved"` |
601
601
  | `/wf rc-publish --manual dry run` | Creates the run in manual mode with `state.input = "dry run"` |
602
602
  | `/wf rc-publish --auto prepare RC notes` | Explicit auto mode; same as default |
603
603
 
@@ -625,7 +625,7 @@ Branches and templates may also read `state.input`:
625
625
  condition: state.input.includes("dry run")
626
626
  ```
627
627
 
628
- Important security rule: `state.input` is **not authority**. It may influence prompts, branches, and templates, but it must never bypass an `approval` node. For example, `/wf rc-publish 미리승인한다` stores the text in `state.input`; it does not approve publishing. Approval still requires the signed ChatCard action button.
628
+ Important security rule: `state.input` is **not authority**. It may influence prompts, branches, and templates, but it must never bypass an `approval` node. For example, `/wf rc-publish pre-approved` stores the text in `state.input`; it does not approve publishing. Approval still requires the signed ChatCard action button.
629
629
 
630
630
  ### Stored ChatCard
631
631
 
@@ -681,7 +681,7 @@ Rules:
681
681
  | Variable | Description | Default |
682
682
  |----------|-------------|---------|
683
683
  | `CREWX_WORKSPACE` | Workspace directory (where `workflows/` lives) | `.` |
684
- | `CREWX_CLI` | CrewX CLI path (for `agent_task` and `skill_task`) | `npx crewx` |
684
+ | `CREWX_CLI` | CrewX CLI path (for `agent_task` and `skill_task`) | `crewx` |
685
685
  | `CREWX_WORKFLOW_TIMEOUT` | `agent_task` execution timeout (ms) | `1800000` (30 min) |
686
686
  | `CREWX_WORKFLOW_SHELL` | First safety gate for `shell_task`; must be `1` | unset |
687
687
  | `CREWX_CONFIG` | Custom config file path | `crewx.yaml` |
package/dist/cli.d.ts CHANGED
@@ -10,4 +10,4 @@ export declare function resolveWorkflow(nameOrPath: string, paths: string[], eng
10
10
  export declare function findNextNodeForCAL(currentNode: string, executedNodeId: string, nodes: Record<string, WorkflowNode>): string | null;
11
11
  export declare function getFlowChain(nodes: Record<string, WorkflowNode>): string[];
12
12
  export declare function main(inputArgs?: string[]): Promise<void>;
13
- //# sourceMappingURL=cli.d.ts.map
13
+