@ycodium-ai/agent-claude 0.2.6212 → 0.2.6253

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 CHANGED
@@ -15,6 +15,10 @@ Facts:
15
15
  - Isolation is `CLAUDE_CONFIG_DIR` and, when set, `CLAUDE_SECURESTORAGE_CONFIG_DIR`.
16
16
  `HOME` is never overridden (macOS keychain lookup lives under `$HOME`).
17
17
  - Manifest permission is `{ kind: "executor" }`.
18
+ - Ships `./skills/claude-setup` (`ycodium-claude-setup` in sessions, marked `user-invocable: false`
19
+ so it stays out of the composer `/` menu) with on-demand `references/reclaude.md` guidance for
20
+ configuring multi-account, gateway, router, and ReClaude (`rec`) `claudeAgent` instances without
21
+ engine special cases.
18
22
  - `UserPromptSubmit` and `SessionStart` report the main session's `session_id` and
19
23
  `transcript_path` through `thread.metadata.updated.payload.nativeHistory`, once per path.
20
24
  SDK sessions do not call back `SessionStart` on startup or resume (Claude Code 2.1.312),
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import * as NodePath16 from "node:path";
3
3
  import { definePlugin } from "@ycodium-ai/plugin-api";
4
4
 
5
5
  // ../../packages/plugin-api/src/version.ts
6
- var PLUGIN_API_VERSION = 201;
6
+ var PLUGIN_API_VERSION = 202;
7
7
 
8
8
  // src/index.ts
9
9
  import {
@@ -21454,6 +21454,9 @@ function classifyToolItemType(toolName) {
21454
21454
  if (normalized.startsWith("mcp__")) {
21455
21455
  return "mcp_tool_call";
21456
21456
  }
21457
+ if (isTodoTool(toolName) || isClaudeTaskTool(toolName)) {
21458
+ return "dynamic_tool_call";
21459
+ }
21457
21460
  if (normalized.includes("agent")) {
21458
21461
  return "collab_agent_tool_call";
21459
21462
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-claude",
3
- "version": "0.2.6212",
3
+ "version": "0.2.6253",
4
4
  "description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -11,6 +11,7 @@
11
11
  "dist",
12
12
  "assets",
13
13
  "locales",
14
+ "skills",
14
15
  "README.md"
15
16
  ],
16
17
  "type": "module",
@@ -24,11 +25,11 @@
24
25
  "@types/node": "24.12.4",
25
26
  "esbuild": "0.28.1",
26
27
  "vite-plus": "0.2.2",
27
- "@ycodium-ai/plugin-api": "0.2.6212",
28
+ "@ycodium-ai/plugin-api": "0.2.6253",
28
29
  "ycodium-instance-config": "0.0.0",
29
- "ycodium-executor-testing": "0.0.0",
30
+ "ycodium-text-generation": "0.0.0",
30
31
  "ycodium-jsonl-stream": "0.0.0",
31
- "ycodium-text-generation": "0.0.0"
32
+ "ycodium-executor-testing": "0.0.0"
32
33
  },
33
34
  "ycodium": {
34
35
  "plugin": "./dist/index.js",
@@ -37,6 +38,14 @@
37
38
  "description": "Use Claude Code in Ycodium, switching models mid-session.",
38
39
  "descriptionKey": "presentation.description",
39
40
  "icon": "./assets/icon.svg",
41
+ "skills": [
42
+ {
43
+ "dir": "./skills/claude-setup",
44
+ "files": [
45
+ "references/reclaude.md"
46
+ ]
47
+ }
48
+ ],
40
49
  "permissions": [
41
50
  {
42
51
  "kind": "executor"
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: claude-setup
3
+ description: Configure, verify, or troubleshoot Claude Code providers in Ycodium, including multiple accounts, Anthropic-compatible gateways (OpenRouter, DeepSeek, GLM), Claude Code Router, and ReClaude (rec).
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Configure Claude Code providers in Ycodium
8
+
9
+ Each Claude Code setup in Ycodium is a provider instance with `driver: "claudeAgent"` on the machine running this thread. Never print or echo API keys, tokens, or raw credential files.
10
+
11
+ ## Find Ycodium's settings tools
12
+
13
+ Use `get_machine_settings_sync`, `update_machine_settings`, `list_provider_instances`, `list_providers`, and `list_models` on this machine. Your harness may add its MCP server prefix. When omitted from your direct tool list, inspect schemas with `ycodium_tools` (`names: ["get_machine_settings_sync", "update_machine_settings", "list_provider_instances", "list_providers", "list_models"]`) and call them via `ycodium_call`.
14
+
15
+ ## Choose the setup pattern
16
+
17
+ - **Multiple Anthropic accounts (for example work and personal)**: Leave `config.homePath` unset on both providers so existing threads can switch between them. Leave `config.credentialsPath` unset on the primary account and set a dedicated folder (such as `~/.claude-personal`) on each additional account.
18
+ - **Anthropic-compatible services and routers (OpenRouter, DeepSeek, GLM, Claude Code Router)**: Put `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN` (`sensitive: true`) in the instance's `environment` (plus an empty `ANTHROPIC_API_KEY` when preventing fallback to a local Anthropic login, and `ENABLE_TOOL_SEARCH=true` on Claude Code older than `2.1.305`). Set a dedicated `config.credentialsPath` so the instance does not share the plan login.
19
+ - **ReClaude (`reclaude` or `rec`)**: Read [references/reclaude.md](references/reclaude.md) in this skill's directory (if using `skill_read`, open `references/reclaude.md` inside the returned `directory`) before changing any setting. ReClaude manages its own `~/.rec` account directories and fails if `homePath` or `credentialsPath` is set.
20
+
21
+ ## Apply and verify safely
22
+
23
+ 1. Read `get_machine_settings_sync` and `list_provider_instances` first to capture the current `revision`, existing instances, and `textGenerationModelSelection` (background task model).
24
+ 2. Before disabling or removing an unhealthy instance, move `textGenerationModelSelection` to a verified healthy instance if it currently points at the affected one.
25
+ 3. Patch settings on this machine with `update_machine_settings` using the current `revision`. On a stale-revision error (such as unsaved edits in Settings or a concurrent sync update), re-read `get_machine_settings_sync`, ask the user to close or discard any unsaved Settings draft if needed, and re-apply your changes.
26
+ 4. Confirm readiness and model availability with `list_providers` and `list_models`.
27
+ 5. **When UI or cross-machine edits are needed**: `update_machine_settings` applies only to the machine hosting this thread. If the user asks you to configure **other paired machines** (such as machine-local paths under **Settings → Providers → `<instance>` → Run locations**), trigger **Check status** across machines, or resolve an open Settings draft on their desktop:
28
+ - Ask for permission to control their Ycodium window first unless already authorized in this thread, and discover the `computer-use` plugin tools (`ycodium_tools` with `pluginId: "computer-use"`; if unavailable, tell the user they can enable **Settings → Plugins → Computer use**).
29
+ - Operate only the Ycodium Settings window, verify each target machine row reaches **Ready**, close Settings so no unsaved draft lingers, and call `computer-use_stop` to release the desktop lease as soon as finished.
@@ -0,0 +1,52 @@
1
+ # ReClaude (`reclaude` / `rec`) Setup and Troubleshooting
2
+
3
+ ReClaude (`reclaude`, alias `rec`) wraps Claude Code with its own local relay and per-account configuration directories under `~/.rec` (such as `~/.rec/claude/accounts/<device_id>/config`). In Ycodium, each ReClaude organization runs as a `claudeAgent` provider instance pointing at the `reclaude` executable with a numeric `RECLAUDE_ORG` environment variable.
4
+
5
+ ## Boundaries
6
+
7
+ - Never run `reclaude login`, `reclaude logout`, or `reclaude org use` unless the user explicitly asks. `reclaude login` opens interactive browser sign-in, and `reclaude org use` changes the global active organization for external terminals rather than scoping one Ycodium provider.
8
+ - Never print, log, or copy `sk-rec-...` tokens or raw credential contents from `~/.rec` or command output.
9
+ - Stay within the machines and organizations the user asked to configure.
10
+
11
+ ## Inspect ReClaude on this machine
12
+
13
+ 1. Locate the `reclaude` executable and resolve its **absolute** path on this machine (`~` and `%VAR%` environment placeholders are rejected in Ycodium's `binaryPath`):
14
+ - Check `PATH` first (`where.exe reclaude` on Windows, `command -v reclaude` on macOS and Linux).
15
+ - If missing from `PATH`, check standard install locations: `<LOCALAPPDATA>\Programs\reclaude\bin\reclaude.exe` on Windows, or `~/.local/bin/reclaude` and `/usr/local/bin/reclaude` on macOS and Linux.
16
+ - If `reclaude` is not installed on this machine, stop and report that to the user before creating or enabling instances for it.
17
+ 2. Inspect bound organizations and pool health (read-only):
18
+ ```sh
19
+ reclaude org list
20
+ reclaude status --check --json
21
+ ```
22
+ Note each organization's **numeric ID**, display name, bound platform account email, and upstream pool status (`gateway.healthy`, `403 account_banned`, unbound, or expired). Do not echo token fields.
23
+
24
+ ## Required `claudeAgent` instance fields
25
+
26
+ For each healthy ReClaude organization the user wants in Ycodium, configure a `claudeAgent` provider instance with:
27
+
28
+ - `config.binaryPath`: The resolved absolute path to `reclaude` (`reclaude.exe` on Windows) on this machine.
29
+ - `config.homePath` and `config.credentialsPath`: **Omit or clear both fields.** Setting either field makes Ycodium inject `CLAUDE_CONFIG_DIR` or `CLAUDE_SECURESTORAGE_CONFIG_DIR`, overriding ReClaude's own `~/.rec/claude/accounts/<device_id>/config` isolation and breaking sign-in.
30
+ - `config.keepBackgroundServices`: Set `true`. On Windows, this keeps the shared ReClaude background relay alive when one thread ends so other active threads do not lose their connection.
31
+ - `environment`: Include `{ name: "RECLAUDE_ORG", value: "<numeric_org_id>", sensitive: false }` using the **numeric** organization ID (for example `"4265"`), never the organization name or slug.
32
+
33
+ ## Multi-machine sync
34
+
35
+ When multiple machines are signed in to the same Ycodium account:
36
+
37
+ - **Synced across machines**: `displayName`, `enabled`, `environment` (`RECLAUDE_ORG`), and `keepBackgroundServices`.
38
+ - **Local to each machine**: `binaryPath`, `homePath`, and `credentialsPath`, plus ReClaude's own `~/.rec` sign-in state.
39
+
40
+ When a synced `claudeAgent` instance first appears on another machine, Ycodium may fill `binaryPath` with `claude` and allocate a local `~/.claude-*` `credentialsPath`. On each additional machine that should run ReClaude:
41
+
42
+ 1. Confirm `reclaude` is installed and signed in to the bound organizations (`reclaude org list` and `reclaude status --check --json`).
43
+ 2. Clear `credentialsPath` (and `homePath` if set) and set `binaryPath` to that machine's absolute `reclaude` path — either from a Ycodium thread running directly on that machine, or (with the user's permission to control their Ycodium window via the `computer-use` plugin tools) by editing that machine's row under **Settings → Providers → `<instance>` → Run locations**, clicking **Check status** to confirm **Ready**, closing Settings, and calling `computer-use_stop`.
44
+
45
+ Machines that do not use ReClaude can leave those instances unconfigured locally or turn them off for that machine.
46
+
47
+ ## Adding another ReClaude account
48
+
49
+ If the user wants to bind organizations from an additional ReClaude platform email on the same machine:
50
+
51
+ 1. Ask the user to run `reclaude login` in their own terminal and sign in with **one** new account first.
52
+ 2. Re-run `reclaude org list` and `reclaude status --check --json` to confirm earlier `device_id` bindings remain active alongside the new organization IDs before signing in further accounts or adding Ycodium instances.
@@ -0,0 +1,4 @@
1
+ {
2
+ "en": "Configures and troubleshoots Claude Code accounts, compatible gateways, routers, and ReClaude.",
3
+ "zh-CN": "配置与排查 Claude Code 多账号、兼容网关、路由工具及 ReClaude。"
4
+ }