@namzu/anthropic 0.2.0 → 1.1.0
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/CHANGELOG.md +132 -0
- package/dist/__tests__/anthropic.test.js +218 -2
- package/dist/__tests__/anthropic.test.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +336 -115
- package/dist/client.js.map +1 -1
- package/dist/types.d.ts +20 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/anthropic.test.ts +249 -2
- package/src/client.ts +367 -107
- package/src/types.ts +20 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8c07556: Tool-loading economics: honor prompt caching in the Anthropic provider and
|
|
8
|
+
make deferred-tool discovery ranked and bounded.
|
|
9
|
+
|
|
10
|
+
`@namzu/anthropic`:
|
|
11
|
+
|
|
12
|
+
- `cacheControl` on `ChatCompletionParams` is now honored (it was silently
|
|
13
|
+
dropped; `cache_read_input_tokens` was always 0). The provider emits up to
|
|
14
|
+
three `cache_control: {type:'ephemeral'}` breakpoints per request: the
|
|
15
|
+
tools-array tail, the last `'cache'`-tagged system block, and the last
|
|
16
|
+
message block (render order tools → system → messages).
|
|
17
|
+
- System messages are sent as a block array preserving `SystemMessage.cacheHint`
|
|
18
|
+
segment boundaries instead of being joined into one string. The OAuth
|
|
19
|
+
Claude Code identity block stays first.
|
|
20
|
+
- `toolChoice: 'none'` now maps to Anthropic's first-class
|
|
21
|
+
`tool_choice: {type:'none'}` instead of `{type:'auto'}`, and `tool_choice`
|
|
22
|
+
is only sent alongside a `tools` param.
|
|
23
|
+
- `parallelToolCalls: false` now maps to `disable_parallel_tool_use: true`
|
|
24
|
+
on the `tool_choice` (previously unmapped).
|
|
25
|
+
|
|
26
|
+
`@namzu/sdk`:
|
|
27
|
+
|
|
28
|
+
- The runtime keeps the tools param byte-stable on forced-final iterations
|
|
29
|
+
(resource-limit finalization) and forbids tool use via `toolChoice: 'none'`
|
|
30
|
+
instead of omitting `tools` — omitting busted the whole prompt-cache prefix
|
|
31
|
+
and risked a 400 with `tool_use`/`tool_result` blocks in history.
|
|
32
|
+
- `ToolRegistry.toPromptSection()` lists active tools name-only (their
|
|
33
|
+
descriptions and schemas already ride the runtime tools param every
|
|
34
|
+
request) and gives deferred tools a first-sentence hint (≤100 chars) so the
|
|
35
|
+
model can discover what a deferred name does before searching.
|
|
36
|
+
- `ToolRegistry.searchDeferred()` is now a ranked weighted search (exact
|
|
37
|
+
name 12, name substring 8, description 5, argument names 3 — the
|
|
38
|
+
`ToolCatalog.searchTools` weights) with generic CRUD verbs (`list`,
|
|
39
|
+
`read`, `create`, `update`, `get`, `find`, `delete`, `search`) added to the
|
|
40
|
+
stop-token set. `search_tools` activates only the top-5 ranked matches and
|
|
41
|
+
reports up to 5 near-misses as name+hint WITHOUT activating them, so a
|
|
42
|
+
retrieval miss becomes a cheap re-query instead of a dead end. The
|
|
43
|
+
`search_tools` input wire shape (`{query}`) is unchanged.
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- 9df35d1: Make a Stop abort the IN-FLIGHT model turn, not only between turns.
|
|
48
|
+
|
|
49
|
+
`ChatCompletionParams` gains an optional `signal?: AbortSignal`. The query
|
|
50
|
+
runtime threads the run's abort signal into every provider call (the streaming
|
|
51
|
+
turn and the forced-final summary) and now drives the provider stream through a
|
|
52
|
+
MANUAL iterator that RACES each `next()` against the abort — so a cancellation
|
|
53
|
+
tears the turn down within a tick even if a transport buffers or ignores the
|
|
54
|
+
signal, with the abort propagating out of the generator so the run settles as
|
|
55
|
+
`cancelled`. The stream consumer cleans up on every exit (removes the abort
|
|
56
|
+
listener, calls `iterator.return()`), and the natural-completion break
|
|
57
|
+
re-checks the signal so a Stop that lands exactly as the turn finishes is
|
|
58
|
+
recorded as cancelled rather than a normal end-of-turn.
|
|
59
|
+
|
|
60
|
+
Every provider now honours the signal at the transport: Anthropic
|
|
61
|
+
(`messages.create({ signal })`), OpenAI (`create(..., { signal })`), Bedrock
|
|
62
|
+
(`send(..., { abortSignal })`), OpenRouter + HTTP (compose with the request
|
|
63
|
+
timeout via `AbortSignal.any`), Ollama (the returned iterator's `.abort()`),
|
|
64
|
+
and LM Studio (`respond(..., { signal })` → the SDK's websocket cancel) — each
|
|
65
|
+
plus a cheap per-chunk `signal.throwIfAborted()` for promptness.
|
|
66
|
+
|
|
67
|
+
Fully additive and inert when unset: a never-aborted signal is behaviourally
|
|
68
|
+
identical to omitting it, so existing callers and uncancelled runs are
|
|
69
|
+
byte-identical.
|
|
70
|
+
|
|
71
|
+
## 1.0.0
|
|
72
|
+
|
|
73
|
+
### Minor Changes
|
|
74
|
+
|
|
75
|
+
- 229ff8b: **Auto-pick Claude Code's macOS Keychain OAuth token; OAuth-aware Anthropic provider; tighter picker UX.**
|
|
76
|
+
|
|
77
|
+
Hotfix landing two coupled pieces — namzu now starts cleanly on a host where claude-code is already signed in, without asking the user to export anything.
|
|
78
|
+
|
|
79
|
+
**Credentials side (`@namzu/cli`):**
|
|
80
|
+
|
|
81
|
+
- New: macOS Keychain reader. Reads the `Claude Code-credentials` generic-password entry from the login Keychain and extracts the `claudeAiOauth.accessToken` JSON field. Pattern ported from Nous Research's hermes-agent (`agent/anthropic_adapter.py:_read_claude_code_credentials_from_keychain`). Non-throwing — every failure path (non-Darwin, security command missing, entry absent, payload malformed) returns null so the discoverer treats it as "no source" rather than crashing.
|
|
82
|
+
- Discoverer extended: after env vars and clawtool `secrets.toml`, anthropic also accepts the Keychain credential. Detection source is reported as `keychain · Claude Code-credentials` in the picker, so the user can see where their token came from.
|
|
83
|
+
- Token-shape detector: `isAnthropicOAuthToken(value)` identifies OAuth tokens by prefix (`cc-`, `sk-ant-oat`, `eyJ`) vs console API keys (`sk-ant-api`). Drives the apiKey-vs-authToken decision when constructing the Anthropic provider.
|
|
84
|
+
|
|
85
|
+
**Provider side (`@namzu/anthropic`):**
|
|
86
|
+
|
|
87
|
+
- `AnthropicConfig.apiKey` is now optional, mutually exclusive with the new `authToken` field. Exactly one must be set; the constructor throws if neither is.
|
|
88
|
+
- When `authToken` is supplied, the underlying `@anthropic-ai/sdk` client is constructed with `authToken: <token>` (Bearer auth) and the `anthropic-beta: oauth-2025-04-20` header is injected so Anthropic's OAuth routes accept the request. User-supplied `defaultHeaders` merge on top.
|
|
89
|
+
- API-key path unchanged — existing `apiKey` callers see no behavior change.
|
|
90
|
+
|
|
91
|
+
**Picker UX:**
|
|
92
|
+
|
|
93
|
+
- Width capped at 72 chars; previously stretched to the full terminal and looked uncomfortable on wide screens.
|
|
94
|
+
- Empty-state copy tightened — concrete `export ANTHROPIC_API_KEY=…` lines instead of a long paragraph; explicit mention that on macOS a signed-in claude-code is auto-detected via the Keychain.
|
|
95
|
+
- Source labels condensed (`env · ANTHROPIC_API_KEY`, `keychain · Claude Code-credentials`, `clawtool · [work]`, `local · localhost:11434/api/tags`).
|
|
96
|
+
|
|
97
|
+
**Tests:** 5 new keychain unit cases (token-shape detection) plus existing discover tests updated to opt out of host-ambient sources (`skipKeychain: true`) so the suite stays hermetic on any laptop. Total 165/165 (was 160).
|
|
98
|
+
|
|
99
|
+
**Live verification:** on this machine, `namzu` now auto-detects the Claude Code OAuth credential from the Keychain, picker shows `Anthropic (Claude) keychain · Claude Code-credentials ← current` after first pick, and `provider.chatStream()` constructs through the Bearer-auth path with the required beta header.
|
|
100
|
+
|
|
101
|
+
- 52af97e: **Paste images into the conversation (vision input).**
|
|
102
|
+
|
|
103
|
+
A user message can now carry image attachments. `@namzu/sdk` adds an optional `attachments` field to user messages (`ImageAttachment { data, mediaType }`, additive — text messages are unchanged), and the Anthropic provider sends them as image content blocks so the model can see them. In the CLI, press `Ctrl+V` to paste an image from the clipboard — it shows as an `⎘ Image #N` chip in the composer and is sent to the model as vision input when you submit.
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- 2cf78ed: **Complete the Claude Code OAuth identity so tokens actually authorize.**
|
|
108
|
+
|
|
109
|
+
A valid (non-expired) Claude Code OAuth token was still rejected with `401 Invalid authentication credentials` because Anthropic authorizes OAuth-scoped tokens only when the request carries the full Claude Code identity, not just Bearer auth. When `authToken` is set, the provider now sends:
|
|
110
|
+
|
|
111
|
+
- `anthropic-beta: claude-code-20250219,oauth-2025-04-20` (both flags, was only the second).
|
|
112
|
+
- `user-agent: claude-cli/<version> (external, cli)` — version detected from the installed `claude` binary, with a static fallback (Anthropic validates the version server-side).
|
|
113
|
+
- A leading system block `"You are Claude Code, Anthropic's official CLI for Claude."` — required as the first `system` element on OAuth requests.
|
|
114
|
+
|
|
115
|
+
All three apply only on the `authToken` path; the `apiKey` (console key, `x-api-key`) path is unchanged. Verified end-to-end against the live Anthropic API.
|
|
116
|
+
|
|
117
|
+
- Updated dependencies [542f057]
|
|
118
|
+
- Updated dependencies [df09910]
|
|
119
|
+
- Updated dependencies [140bcc0]
|
|
120
|
+
- Updated dependencies [ea21863]
|
|
121
|
+
- Updated dependencies [38c4b62]
|
|
122
|
+
- Updated dependencies [265150b]
|
|
123
|
+
- Updated dependencies [a1c6694]
|
|
124
|
+
- Updated dependencies [52af97e]
|
|
125
|
+
- Updated dependencies [a71422a]
|
|
126
|
+
- Updated dependencies [d6b5bc1]
|
|
127
|
+
- Updated dependencies [8fd9349]
|
|
128
|
+
- Updated dependencies [63e44f7]
|
|
129
|
+
- Updated dependencies [63b4885]
|
|
130
|
+
- Updated dependencies [38c4b62]
|
|
131
|
+
- Updated dependencies [6b74cd0]
|
|
132
|
+
- Updated dependencies [d86b161]
|
|
133
|
+
- @namzu/sdk@1.0.0
|
|
134
|
+
|
|
3
135
|
## 0.2.0
|
|
4
136
|
|
|
5
137
|
### Minor Changes
|
|
@@ -48,8 +48,12 @@ describe('@namzu/anthropic', () => {
|
|
|
48
48
|
expect(provider.id).toBe('anthropic');
|
|
49
49
|
expect(provider.name).toBe('Anthropic');
|
|
50
50
|
});
|
|
51
|
-
it('throws when constructed without an apiKey', () => {
|
|
52
|
-
expect(() => new AnthropicProvider({})).toThrow(/apiKey
|
|
51
|
+
it('throws when constructed without an apiKey or authToken', () => {
|
|
52
|
+
expect(() => new AnthropicProvider({})).toThrow(/apiKey.*or.*authToken.*required/);
|
|
53
|
+
});
|
|
54
|
+
it('accepts an authToken instead of an apiKey (OAuth path)', () => {
|
|
55
|
+
const provider = new AnthropicProvider({ authToken: 'cc-oauth-token' });
|
|
56
|
+
expect(provider.id).toBe('anthropic');
|
|
53
57
|
});
|
|
54
58
|
it('creates via ProviderRegistry.create with the registered type', () => {
|
|
55
59
|
registerAnthropic();
|
|
@@ -61,6 +65,218 @@ describe('@namzu/anthropic', () => {
|
|
|
61
65
|
expect(provider.id).toBe('anthropic');
|
|
62
66
|
expect(capabilities).toEqual(ANTHROPIC_CAPABILITIES);
|
|
63
67
|
});
|
|
68
|
+
it('does not enforce a provider-local stream idle timeout by default', async () => {
|
|
69
|
+
const provider = new AnthropicProvider({
|
|
70
|
+
apiKey: 'test-key',
|
|
71
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
72
|
+
});
|
|
73
|
+
provider.client = {
|
|
74
|
+
messages: {
|
|
75
|
+
create: async () => delayedAnthropicStream(10),
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
const chunks = [];
|
|
79
|
+
for await (const chunk of provider.chatStream({
|
|
80
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
81
|
+
messages: [{ role: 'user', content: 'hello' }],
|
|
82
|
+
maxTokens: 100,
|
|
83
|
+
})) {
|
|
84
|
+
chunks.push(chunk);
|
|
85
|
+
}
|
|
86
|
+
expect(chunks.length).toBeGreaterThan(0);
|
|
87
|
+
});
|
|
88
|
+
it('supports an opt-in stream idle timeout for deployments that need it', async () => {
|
|
89
|
+
const provider = new AnthropicProvider({
|
|
90
|
+
apiKey: 'test-key',
|
|
91
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
92
|
+
streamIdleTimeoutMs: 1,
|
|
93
|
+
});
|
|
94
|
+
provider.client = {
|
|
95
|
+
messages: {
|
|
96
|
+
create: async () => delayedAnthropicStream(20),
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
const drain = async () => {
|
|
100
|
+
for await (const _chunk of provider.chatStream({
|
|
101
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
102
|
+
messages: [{ role: 'user', content: 'hello' }],
|
|
103
|
+
maxTokens: 100,
|
|
104
|
+
})) {
|
|
105
|
+
// Drain the stream.
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
await expect(drain()).rejects.toThrow(/stream idle/);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
describe('AnthropicProvider — buildCreateParams', () => {
|
|
113
|
+
const buildParams = (provider, params, stream = false) => provider.buildCreateParams(params, stream);
|
|
114
|
+
const makeProvider = () => new AnthropicProvider({ apiKey: 'test-key', model: 'claude-sonnet-4-5-20250929' });
|
|
115
|
+
const tools = [
|
|
116
|
+
{
|
|
117
|
+
type: 'function',
|
|
118
|
+
function: { name: 'alpha', description: 'first', parameters: { type: 'object' } },
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: 'function',
|
|
122
|
+
function: { name: 'beta', description: 'second', parameters: { type: 'object' } },
|
|
123
|
+
},
|
|
124
|
+
];
|
|
125
|
+
describe('tool_choice mapping', () => {
|
|
126
|
+
it("maps 'none' to the first-class {type:'none'} while KEEPING the tools param", () => {
|
|
127
|
+
const body = buildParams(makeProvider(), {
|
|
128
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
129
|
+
messages: [{ role: 'user', content: 'hi' }],
|
|
130
|
+
tools,
|
|
131
|
+
toolChoice: 'none',
|
|
132
|
+
});
|
|
133
|
+
expect(body.tool_choice).toEqual({ type: 'none' });
|
|
134
|
+
expect(body.tools).toHaveLength(2);
|
|
135
|
+
});
|
|
136
|
+
it("maps 'auto' → auto, 'required' → any, and function → tool", () => {
|
|
137
|
+
const base = {
|
|
138
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
139
|
+
messages: [{ role: 'user', content: 'hi' }],
|
|
140
|
+
tools,
|
|
141
|
+
};
|
|
142
|
+
expect(buildParams(makeProvider(), { ...base, toolChoice: 'auto' }).tool_choice).toEqual({
|
|
143
|
+
type: 'auto',
|
|
144
|
+
});
|
|
145
|
+
expect(buildParams(makeProvider(), { ...base, toolChoice: 'required' }).tool_choice).toEqual({
|
|
146
|
+
type: 'any',
|
|
147
|
+
});
|
|
148
|
+
expect(buildParams(makeProvider(), {
|
|
149
|
+
...base,
|
|
150
|
+
toolChoice: { type: 'function', function: { name: 'alpha' } },
|
|
151
|
+
}).tool_choice).toEqual({ type: 'tool', name: 'alpha' });
|
|
152
|
+
});
|
|
153
|
+
it('omits tool_choice entirely when no tools are present', () => {
|
|
154
|
+
const body = buildParams(makeProvider(), {
|
|
155
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
156
|
+
messages: [{ role: 'user', content: 'hi' }],
|
|
157
|
+
toolChoice: 'none',
|
|
158
|
+
});
|
|
159
|
+
expect(body.tools).toBeUndefined();
|
|
160
|
+
expect(body.tool_choice).toBeUndefined();
|
|
161
|
+
});
|
|
162
|
+
it('maps parallelToolCalls:false to disable_parallel_tool_use on tool_choice', () => {
|
|
163
|
+
const body = buildParams(makeProvider(), {
|
|
164
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
165
|
+
messages: [{ role: 'user', content: 'hi' }],
|
|
166
|
+
tools,
|
|
167
|
+
parallelToolCalls: false,
|
|
168
|
+
});
|
|
169
|
+
expect(body.tool_choice).toEqual({ type: 'auto', disable_parallel_tool_use: true });
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
describe('prompt caching', () => {
|
|
173
|
+
const cachedParams = () => ({
|
|
174
|
+
model: 'claude-sonnet-4-5-20250929',
|
|
175
|
+
messages: [
|
|
176
|
+
{ role: 'system', content: 'STATIC PREFIX', cacheHint: 'cache' },
|
|
177
|
+
{ role: 'system', content: 'DYNAMIC SEGMENT', cacheHint: 'ephemeral' },
|
|
178
|
+
{ role: 'user', content: 'hello' },
|
|
179
|
+
],
|
|
180
|
+
tools,
|
|
181
|
+
cacheControl: { type: 'auto' },
|
|
182
|
+
});
|
|
183
|
+
it('emits zero cache_control blocks when cacheControl is not requested', () => {
|
|
184
|
+
const params = cachedParams();
|
|
185
|
+
params.cacheControl = undefined;
|
|
186
|
+
const body = buildParams(makeProvider(), params);
|
|
187
|
+
expect(JSON.stringify(body)).not.toContain('cache_control');
|
|
188
|
+
// System still arrives as cacheHint-preserving blocks.
|
|
189
|
+
expect(body.system).toEqual([
|
|
190
|
+
{ type: 'text', text: 'STATIC PREFIX' },
|
|
191
|
+
{ type: 'text', text: 'DYNAMIC SEGMENT' },
|
|
192
|
+
]);
|
|
193
|
+
});
|
|
194
|
+
it('preserves system segment boundaries and marks only the cache-tagged block', () => {
|
|
195
|
+
const body = buildParams(makeProvider(), cachedParams());
|
|
196
|
+
expect(body.system).toEqual([
|
|
197
|
+
{ type: 'text', text: 'STATIC PREFIX', cache_control: { type: 'ephemeral' } },
|
|
198
|
+
{ type: 'text', text: 'DYNAMIC SEGMENT' },
|
|
199
|
+
]);
|
|
200
|
+
});
|
|
201
|
+
it('marks the tools-array tail and the last message block', () => {
|
|
202
|
+
const body = buildParams(makeProvider(), cachedParams());
|
|
203
|
+
const bodyTools = body.tools;
|
|
204
|
+
expect(bodyTools[0]?.cache_control).toBeUndefined();
|
|
205
|
+
expect(bodyTools[1]?.cache_control).toEqual({ type: 'ephemeral' });
|
|
206
|
+
const messages = body.messages;
|
|
207
|
+
expect(messages[messages.length - 1]?.content).toEqual([
|
|
208
|
+
{ type: 'text', text: 'hello', cache_control: { type: 'ephemeral' } },
|
|
209
|
+
]);
|
|
210
|
+
});
|
|
211
|
+
it('places the final breakpoint on the last tool_result block of a tool turn', () => {
|
|
212
|
+
const params = cachedParams();
|
|
213
|
+
params.messages = [
|
|
214
|
+
{ role: 'system', content: 'STATIC PREFIX', cacheHint: 'cache' },
|
|
215
|
+
{ role: 'user', content: 'run the tool' },
|
|
216
|
+
{
|
|
217
|
+
role: 'assistant',
|
|
218
|
+
content: null,
|
|
219
|
+
toolCalls: [
|
|
220
|
+
{ id: 'tu_1', type: 'function', function: { name: 'alpha', arguments: '{}' } },
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
{ role: 'tool', content: 'tool says hi', toolCallId: 'tu_1' },
|
|
224
|
+
];
|
|
225
|
+
const body = buildParams(makeProvider(), params);
|
|
226
|
+
const messages = body.messages;
|
|
227
|
+
expect(messages[messages.length - 1]?.content).toEqual([
|
|
228
|
+
{
|
|
229
|
+
type: 'tool_result',
|
|
230
|
+
tool_use_id: 'tu_1',
|
|
231
|
+
content: 'tool says hi',
|
|
232
|
+
cache_control: { type: 'ephemeral' },
|
|
233
|
+
},
|
|
234
|
+
]);
|
|
235
|
+
});
|
|
236
|
+
it('keeps the Claude Code identity block FIRST on the OAuth path', () => {
|
|
237
|
+
const provider = new AnthropicProvider({ authToken: 'cc-oauth-token' });
|
|
238
|
+
const body = buildParams(provider, cachedParams());
|
|
239
|
+
const system = body.system;
|
|
240
|
+
expect(system[0]?.text).toMatch(/^You are Claude Code/);
|
|
241
|
+
expect(system[0]?.cache_control).toBeUndefined();
|
|
242
|
+
expect(system[1]).toEqual({
|
|
243
|
+
type: 'text',
|
|
244
|
+
text: 'STATIC PREFIX',
|
|
245
|
+
cache_control: { type: 'ephemeral' },
|
|
246
|
+
});
|
|
247
|
+
});
|
|
64
248
|
});
|
|
65
249
|
});
|
|
250
|
+
async function* delayedAnthropicStream(delayMs) {
|
|
251
|
+
yield {
|
|
252
|
+
type: 'message_start',
|
|
253
|
+
message: {
|
|
254
|
+
id: 'msg_test',
|
|
255
|
+
usage: { input_tokens: 1, output_tokens: 0 },
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
259
|
+
yield {
|
|
260
|
+
type: 'content_block_start',
|
|
261
|
+
index: 0,
|
|
262
|
+
content_block: { type: 'text' },
|
|
263
|
+
};
|
|
264
|
+
yield {
|
|
265
|
+
type: 'content_block_delta',
|
|
266
|
+
index: 0,
|
|
267
|
+
delta: { type: 'text_delta', text: 'ok' },
|
|
268
|
+
};
|
|
269
|
+
yield {
|
|
270
|
+
type: 'content_block_stop',
|
|
271
|
+
index: 0,
|
|
272
|
+
};
|
|
273
|
+
yield {
|
|
274
|
+
type: 'message_delta',
|
|
275
|
+
delta: { stop_reason: 'end_turn' },
|
|
276
|
+
usage: { output_tokens: 1 },
|
|
277
|
+
};
|
|
278
|
+
yield {
|
|
279
|
+
type: 'message_stop',
|
|
280
|
+
};
|
|
281
|
+
}
|
|
66
282
|
//# sourceMappingURL=anthropic.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic.test.js","sourceRoot":"","sources":["../../src/__tests__/anthropic.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAEvE,6EAA6E;AAC7E,2EAA2E;AAC3E,8CAA8C;AAC9C,UAAU,CAAC,GAAG,EAAE;IACf,IAAI,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;QAC/C,gBAAgB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;IACzC,CAAC;AACF,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,kBA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I,EAAE,eAAe;QACrB,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE;QAClC,KAAK,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;KAC3B,CAAA;IACD,MAAM;QACL,IAAI,EAAE,cAAc;KACpB,CAAA;AACF,CAAC"}
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,oBAAoB,EAEpB,WAAW,EACX,SAAS,EACT,WAAW,EAGX,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAiWjD,qBAAa,iBAAkB,YAAW,WAAW;IACpD,QAAQ,CAAC,EAAE,eAAc;IACzB,QAAQ,CAAC,IAAI,eAAc;IAE3B,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,MAAM,CAAiB;gBAEnB,MAAM,EAAE,eAAe;IA8BnC,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,iBAAiB;IA8CzB;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAcV,UAAU,CAAC,MAAM,EAAE,oBAAoB,GAAG,aAAa,CAAC,WAAW,CAAC;IA6KrE,UAAU,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IA+BxC,OAAO,CAAC,WAAW;IAmCb,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;CAMrC"}
|