@wular/coder 0.1.4 → 0.1.7
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 +10 -8
- package/dist/cli.js +65 -62
- package/package.json +1 -1
- package/plugins/claude/commands/setup.md +13 -10
- package/plugins/claude/skills/coder/SKILL.md +1 -1
- package/plugins/codex/skills/coder/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Set up the Coder runtime (install the CLI, verify engines, configure the chain)
|
|
3
|
+
model: sonnet
|
|
4
|
+
effort: low
|
|
3
5
|
---
|
|
4
6
|
|
|
5
|
-
Set up the Coder runtime for this machine.
|
|
7
|
+
Set up the Coder runtime for this machine. Work quickly and tersely: run the
|
|
8
|
+
shell steps, keep commentary to a line or two, and only expand when something
|
|
9
|
+
needs the user's decision. Use AskUserQuestion for the decision points.
|
|
6
10
|
|
|
7
|
-
1.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
6. Suggest trying it: "Use Coder to <some small task>".
|
|
11
|
+
1. In one shell call, ensure the runtime then read its status:
|
|
12
|
+
`command -v coder >/dev/null || npm install -g @wular/coder; coder setup --json`
|
|
13
|
+
(codex/claude availability and auth are in the JSON).
|
|
14
|
+
2. Codex is the recommended primary engine; Claude (opus subagents in Claude Code) is the fallback. Choose the default from what is installed. Do NOT ask about chain ordering:
|
|
15
|
+
- **Codex installed** (logged in, or logged out; installed still counts): keep the default `codex → claude` chain. If it is logged out, tell the user to run `codex login` themselves, then re-run `coder setup` to confirm.
|
|
16
|
+
- **Codex not installed**: run `coder config set chain claude,codex` so tasks run on Claude opus subagents immediately, tell the user that is the default for now, then ask (AskUserQuestion) whether to install Codex since it is the recommended primary. On yes: `npm install -g @openai/codex`, have them run `codex login`, then `coder config set chain codex,claude`.
|
|
17
|
+
3. Show the final config (`coder config`) and mention overrides live in `~/.coder/config.json` (machine) and `coder.config.json` (per repo).
|
|
18
|
+
4. Suggest trying it: "Use Coder to <some small task>".
|
|
16
19
|
|
|
17
20
|
$ARGUMENTS
|
|
@@ -7,7 +7,7 @@ description: Use Coder for any coding, implementation, or investigation task - f
|
|
|
7
7
|
|
|
8
8
|
You dispatch coding tasks through the `coder` runtime instead of implementing them yourself. By default the runtime picks the engine from its configured chain; Flags like `--agent`/`--model`/`--effort` override it.
|
|
9
9
|
|
|
10
|
-
If `coder` is not on PATH,
|
|
10
|
+
If `coder` is not on PATH, install it yourself without asking (`npm install -g @wular/coder`), then continue; suggest the user run `/coder:setup` to configure the engines and chain.
|
|
11
11
|
|
|
12
12
|
## Dispatching a task
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ description: Use Coder for any coding, implementation, or investigation task - f
|
|
|
7
7
|
|
|
8
8
|
You dispatch coding tasks through the `coder` runtime instead of implementing them yourself. By default the runtime picks the engine from its configured chain; `--agent`/`--model`/`--effort` override it. You never spawn agents yourself in this host.
|
|
9
9
|
|
|
10
|
-
If `coder` is not on PATH,
|
|
10
|
+
If `coder` is not on PATH, install it yourself without asking: `npm install -g @wular/coder`, then `coder setup --codex`. Only if that fails, show the user the error and those two commands. On first setup, mention the chain is Codex-first with Claude on fallback. The Claude fallback engine needs the claude CLI; if it is not installed, ask the user before installing it (on yes: `npm install -g @anthropic-ai/claude-code`, then have them run `claude` once to log in). If the user prefers Claude engines first, run `coder config set chain claude,codex`.
|
|
11
11
|
|
|
12
12
|
## Dispatching a task
|
|
13
13
|
|