@workflow-manager/runner 0.5.0 → 0.5.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.
@@ -4,8 +4,12 @@ import path from "node:path";
4
4
  import { ClientSideConnection, PROTOCOL_VERSION, ndJsonStream, } from "@zed-industries/agent-client-protocol";
5
5
  import { resolveTaskAdapter } from "./adapters.js";
6
6
  import { resolveSkill } from "./skillResolver.js";
7
- // Best-effort presets so claude-code / opencode / a named agent route through ACP
8
- // without explicit commands. All are overridable via payload.acpCommand or WFM_ACP_COMMAND.
7
+ // Presets so claude-code / opencode / a named agent route through ACP without an
8
+ // explicit command. Verified invocations (gemini --experimental-acp and opencode acp
9
+ // confirmed against gemini 0.31 / opencode 1.2; claude-code-acp is the @zed-industries
10
+ // bridge — `claude` itself has no native ACP). All overridable via payload.acpCommand /
11
+ // acpArgs or WFM_ACP_COMMAND. codex has no preset: it lacks native ACP, so route it by
12
+ // setting payload.acpCommand to an ACP bridge.
9
13
  const ACP_COMMAND_PRESETS = {
10
14
  "claude-code": { command: "claude-code-acp", args: [] },
11
15
  opencode: { command: "opencode", args: ["acp"] },
package/dist/index.js CHANGED
@@ -24,22 +24,37 @@ function cliDisplayName() {
24
24
  }
25
25
  function usage() {
26
26
  const cli = cliDisplayName();
27
- console.log(`${cli} commands:
28
- doctor [workflow.md|workflow.json] [--json]
29
- skill list
30
- skill install [name ...] [--agent claude|opencode] [--global] [--dir path] [--all] [--force]
31
- scaffold [path] [--format markdown|json]
32
- validate <workflow.md|workflow.json>
33
- run <workflow.md|workflow.json> [--input input.json] [--objective "string"] [--confirm stepA,stepB:human] [--auto-confirm-all] [--port 43121] [--verbose] [--json]
34
- approve [--url http://127.0.0.1:43121] [--token token] [--run-id run_123] [--step review] [--actor alice] [--note "LGTM"]
35
- resume [--url http://127.0.0.1:43121] [--token token] [--run-id run_123] [--step review] [--actor alice] [--note "continue"]
36
- cancel [--url http://127.0.0.1:43121] [--token token] [--run-id run_123] [--step review] [--actor alice] [--note "stop this run"]
37
- auth <login|whoami|logout> [--token <token>]
38
- publish <workflow.md|workflow.json> [--slug slug] [--title title] [--description text] [--visibility public|private] [--version version] [--tag a,b] [--draft]
39
- pull <owner/slug> [--version version] [--output path]
40
- search [query]
41
- remote info <owner/slug>
42
- man`);
27
+ const row = (command, description) => ` ${command.padEnd(28)}${description}`;
28
+ console.log([
29
+ `${cli} — run multi-step AI agent workflows from the CLI`,
30
+ "",
31
+ `Usage: ${cli} <command> [options]`,
32
+ "",
33
+ "Author and run workflows",
34
+ row("scaffold [path]", "Write a starter workflow file"),
35
+ row("validate <file>", "Check a workflow for errors"),
36
+ row("doctor [file]", "Check host setup; with a file, preflight it"),
37
+ row("run <file>", "Run a workflow with live progress"),
38
+ "",
39
+ "Control a running workflow",
40
+ row("approve", "Approve a step waiting for review"),
41
+ row("resume", "Resume a step waiting on external input"),
42
+ row("cancel", "Cancel a waiting step"),
43
+ "",
44
+ "Share workflows (remote registry)",
45
+ row("auth <login|whoami|logout>", "Sign in, check, or sign out"),
46
+ row("search [query]", "Find shared workflows"),
47
+ row("publish <file>", "Publish a workflow"),
48
+ row("pull <owner/slug>", "Download a shared workflow"),
49
+ row("remote info <owner/slug>", "Show a shared workflow's details"),
50
+ "",
51
+ "Agent skills and help",
52
+ row("skill list", "List skills bundled with wfm"),
53
+ row("skill install [name ...]", "Install skills into an agent (Claude Code, opencode)"),
54
+ row("man", "Full manual with every option and examples"),
55
+ "",
56
+ `Run \`${cli} man\` for all flags and examples.`,
57
+ ].join("\n"));
43
58
  }
44
59
  function getFlag(name) {
45
60
  const idx = process.argv.indexOf(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow-manager/runner",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "CLI runner for in-memory and markdown workflow orchestration using ATEP-like envelopes",
5
5
  "repository": {
6
6
  "type": "git",