@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.
- package/dist/acpExecutor.js +6 -2
- package/dist/index.js +31 -16
- package/package.json +1 -1
package/dist/acpExecutor.js
CHANGED
|
@@ -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
|
-
//
|
|
8
|
-
//
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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);
|