@ycodium-ai/agent-claude 0.2.2169 → 0.2.2488

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
@@ -3,13 +3,10 @@
3
3
  Claude executor plugin. Talks to Claude Code through
4
4
  `@anthropic-ai/claude-agent-sdk` (`query()`), not ACP.
5
5
 
6
- Since 2026-09-19 this package **is** the Claude hand: the catalog row carries
7
- `executorPlugin: "@ycodium-ai/agent-claude"`, the host `ClaudeDriver` /
6
+ Since 2026-09-19 this package **is** the Claude hand: the host `ClaudeDriver` /
8
7
  `ClaudeAdapter` / `ClaudeProvider` / `ClaudeTextGeneration` are deleted, and the
9
- built-in `claudeAgent` card no longer joins the catalog. The host keeps one copy
10
- of the connectivity literal (`executorRegistry.ts` → `officialCardForDriver`)
11
- because `compileBinding` is synchronous and cannot read the plugin registry;
12
- `executorRegistry.test.ts` pins the two copies to be byte-identical.
8
+ card lives only here. The host hands it no endpoint, key or model: Claude Code reaches a
9
+ model service through the variables set on the instance (ADR-0032).
13
10
 
14
11
  Facts:
15
12
 
@@ -20,13 +17,21 @@ Facts:
20
17
  - Manifest permission is `{ kind: "executor" }`.
21
18
  - Card capabilities: `sessionModelSwitch: "in-session"`, `runtimeModeSwitch: "in-session"`,
22
19
  `contextCompaction: "native"`, `turnSteering: true`.
23
- - `modelConnectivity` carries `baseUrlEnvKey: ANTHROPIC_BASE_URL`,
24
- `credentialEnvKey: ANTHROPIC_AUTH_TOKEN` and seven `extraEnv` rows pinning every
25
- model-role variable to `$model`. It deliberately does **not** claim
26
- `supportsNativeSubscription`: Ycodium has no Claude native-subscription login.
27
- - Recordings: `test/fixtures/*.sdk.ndjson`, ten scenes captured from Claude Code
28
- 2.1.277 by `scripts/record-claude-sdk-session.ts`; `src/replay.test.ts` replays
29
- them through the same `createQuery` seam the recorder tapped.
20
+ - `modelConnectivity` describes how Claude Code reaches a model: it speaks
21
+ `anthropic-messages`, and `ANTHROPIC_BASE_URL` / `ANTHROPIC_AUTH_TOKEN` (or
22
+ `ANTHROPIC_API_KEY`) carry the address and key a person sets on the instance.
23
+ `backendSwitchEnvKeys` lists the `CLAUDE_CODE_USE_*` cloud switches Claude Code
24
+ reads as truthy (`1` / `true` / `yes` / `on`). Settings gives an instance that
25
+ sets any of these its own credentials directory.
26
+ - Models and reasoning levels are not hard-coded. `probe()` asks Claude Code itself through
27
+ the Agent SDK (`query.supportedModels()`, read from the initialize handshake, no prompt sent)
28
+ and reports that list: slug = the SDK's `value`, effort choices = `supportedEffortLevels`,
29
+ a Fast Mode switch when `supportsFastMode`. The SDK carries no context window and no default
30
+ effort, so both stay unknown. The list is cached per CLI version (30 min TTL); a failed read keeps
31
+ the previous list. See `src/sdkModels.ts`.
32
+ - Recordings: `test/fixtures/*.sdk.ndjson`, captured by
33
+ `scripts/record-claude-sdk-session.ts`; `src/replay.test.ts` replays them through
34
+ the same `createQuery` seam the recorder tapped.
30
35
  - Quota-probe dissolution: `credentialSources` lists the json-file and
31
36
  macOS-keychain locations. `sessions.scan` / `sessions.read` take the Claude
32
37
  half of session-import.