@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wular/coder",
3
- "version": "0.1.4",
3
+ "version": "0.1.7",
4
4
  "description": "Delegating coding-agent runtime",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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. Use AskUserQuestion for the decision points.
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. Runtime: `command -v coder`; if missing, install it (`npm install -g @wular/coder`).
8
- 2. Run `coder setup --json` and read it (codex/claude availability and auth).
9
- 3. Tell the user Coder uses Codex as the primary engine with Claude as fallback, and ask if that ordering suits them. If they prefer Claude first: `coder config set chain claude,codex`.
10
- 4. If Codex is kept first but is not ready:
11
- - Not installed: ask if they want it installed; on yes run `npm install -g @openai/codex`.
12
- - Not logged in: ask them to run `codex login` themselves (interactive), then re-run `coder setup` to confirm.
13
- - If they decline Codex: `coder config set chain claude,codex` so tasks go straight to the Claude engine, and say Codex can be enabled later by reversing the chain.
14
- 5. Show the final config (`coder config`) and mention overrides live in `~/.coder/config.json` (machine) and `coder.config.json` (per repo).
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, tell the user to set it up (`npm install -g @wular/coder`, then `/coder:setup`) and stop.
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, set it up yourself: `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 and Claude on fallback; if the user prefers Claude engines first, run `coder config set chain claude,codex` (the Claude engine needs the claude CLI: `npm install -g @anthropic-ai/claude-code`, then run `claude` once to log in).
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