@makaio/adapter-anthropic-sdk 1.0.0-dev-1783705652236 → 1.0.0-dev-1785347612784
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 +11 -1
- package/dist/agent.d.ts +3 -0
- package/dist/config.d.ts +1 -1
- package/dist/connector.d.ts +5 -10
- package/dist/constructor-auth.d.ts +15 -0
- package/dist/index.mjs +1 -1
- package/dist/{package-C1GT65Ps.mjs → package-wChURkif.mjs} +97 -40
- package/dist/provider.d.ts +167 -10
- package/dist/schemas.d.ts +0 -10
- package/dist/server.mjs +1 -1
- package/dist/types/index.d.ts +2 -3
- package/package.json +4 -26
- package/dist/adapter.d.ts.map +0 -1
- package/dist/agent.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/conformance.d.ts.map +0 -1
- package/dist/connector.d.ts.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/definition.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mcp-integration.d.ts.map +0 -1
- package/dist/namespaces/index.d.ts.map +0 -1
- package/dist/namespaces/schemas/chunk.d.ts.map +0 -1
- package/dist/namespaces/schemas/index.d.ts.map +0 -1
- package/dist/namespaces/schemas/message.d.ts.map +0 -1
- package/dist/namespaces/schemas/reasoning.d.ts.map +0 -1
- package/dist/namespaces/schemas/tool-calls.d.ts.map +0 -1
- package/dist/namespaces/schemas/turn-state.d.ts.map +0 -1
- package/dist/namespaces/schemas/usage.d.ts.map +0 -1
- package/dist/package.d.ts.map +0 -1
- package/dist/provider.d.ts.map +0 -1
- package/dist/schemas.d.ts.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/session.d.ts.map +0 -1
- package/dist/stream-bridge.d.ts.map +0 -1
- package/dist/test/index.d.ts +0 -2
- package/dist/test/index.d.ts.map +0 -1
- package/dist/tool-handling.d.ts.map +0 -1
- package/dist/turn.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/buildMessageCreateRequest.d.ts.map +0 -1
- package/dist/utils/classifyAnthropicError.d.ts.map +0 -1
- package/dist/utils/convertMessageHistory.d.ts.map +0 -1
- package/dist/utils/parse-tool-use-input.d.ts.map +0 -1
- package/dist/utils/parseReasoningLevel.d.ts.map +0 -1
- package/dist/utils/usage.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -75,6 +75,16 @@ Conformance-test capabilities returned by `createTestConfig()`:
|
|
|
75
75
|
| `supportsInterrupt` | Yes — `connector.interrupt()` |
|
|
76
76
|
| `supportsUsageMetrics` | Yes — token usage tracked via stream events |
|
|
77
77
|
|
|
78
|
+
## Usage Telemetry
|
|
79
|
+
|
|
80
|
+
Each `agent.usage` event corresponds to exactly one Anthropic API call: token
|
|
81
|
+
counts are merged from the `message_start` and `message_delta` stream events.
|
|
82
|
+
The API reports no monetary amount, so no `cost` is emitted. Every event
|
|
83
|
+
carries a runtime-generated `llmCallId` identifying the concrete provider
|
|
84
|
+
request (projected to `x-factory-llm-call-id` when request correlation
|
|
85
|
+
headers are enabled). See
|
|
86
|
+
[Usage & Provenance](../../../docs/architecture/adapters/usage-and-provenance.md).
|
|
87
|
+
|
|
78
88
|
## Conformance Testing
|
|
79
89
|
|
|
80
90
|
```typescript
|
|
@@ -96,7 +106,7 @@ const config = await createTestConfig();
|
|
|
96
106
|
| `src/stream-bridge.ts` | Streaming event parsing bridge |
|
|
97
107
|
| `src/provider.ts` | Provider presets and model configuration |
|
|
98
108
|
| `src/config.ts` | Internal adapter config factory |
|
|
99
|
-
| `src/schemas.ts` | `AnthropicSdkProviderConfigSchema`
|
|
109
|
+
| `src/schemas.ts` | `AnthropicSdkProviderConfigSchema` for non-secret provider settings |
|
|
100
110
|
| `src/tool-handling.ts` | Tool approval bridging and tool format conversion |
|
|
101
111
|
| `src/definition.ts` | Internal adapter definition consumed by the package descriptor |
|
|
102
112
|
| `src/package.ts` | `MakaioExtension` package descriptor with `adapters[]` contribution |
|
package/dist/agent.d.ts
CHANGED
|
@@ -64,6 +64,9 @@ export declare class AnthropicSdkAgent extends BaseStreamAgent<AnthropicSdkConne
|
|
|
64
64
|
*
|
|
65
65
|
* Reads Anthropic-specific cache fields: `cache_read_input_tokens` and
|
|
66
66
|
* `cache_creation_input_tokens`.
|
|
67
|
+
*
|
|
68
|
+
* Granularity is `provider-call`: each usage event is merged from the
|
|
69
|
+
* `message_start`/`message_delta` frames of exactly one Anthropic request.
|
|
67
70
|
* @param payload - Anthropic usage event payload
|
|
68
71
|
* @returns Normalized usage metrics
|
|
69
72
|
*/
|
package/dist/config.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const AnthropicSdkConfig: {
|
|
|
10
10
|
adapterId?: string;
|
|
11
11
|
}>>(input: TInput) => Promise<Partial<Omit<AnthropicSdkAgentConfig & {
|
|
12
12
|
adapterId?: string;
|
|
13
|
-
}, "adapterName" | "agentId" | "bus" | "sessionId">> & Omit<TInput, "providerConfig"> & import("@makaio/framework/adapters/config").FactoryGuaranteedFields<{
|
|
13
|
+
}, "adapterName" | "agentId" | "bus" | "sessionId">> & Omit<TInput, "adapterProviderAuth" | "compatibleProviderAuths" | "providerConfig" | "providerContextRequired"> & import("@makaio/framework/adapters/config").FactoryGuaranteedFields<{
|
|
14
14
|
baseUrl?: string | undefined;
|
|
15
15
|
requestCorrelationHeaders?: "factory-v1" | undefined;
|
|
16
16
|
maxTokens?: number | undefined;
|
package/dist/connector.d.ts
CHANGED
|
@@ -15,13 +15,11 @@ import { AnthropicSdkSession } from './session.js';
|
|
|
15
15
|
* on the first turn. Tool execution routes through MakaioBus.request(ToolSubjects.execute)
|
|
16
16
|
* to the ToolRegistry, which validates input and executes the tool handler.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* fields and never leave the connector.
|
|
18
|
+
* Authentication is resolved once by the central adapter runtime and delivered
|
|
19
|
+
* through the Anthropic constructor target.
|
|
21
20
|
*/
|
|
22
21
|
export declare class AnthropicSdkConnector extends BaseStreamConnector<AnthropicSdkBus, AnthropicSdkSession, AnthropicSdkAgentConfig> {
|
|
23
|
-
|
|
24
|
-
private resolvedApiKey;
|
|
22
|
+
private readonly constructorAuth;
|
|
25
23
|
private client?;
|
|
26
24
|
/** Anthropic-format tools for messages.create (fetched from bus on first turn) */
|
|
27
25
|
private anthropicTools;
|
|
@@ -30,11 +28,8 @@ export declare class AnthropicSdkConnector extends BaseStreamConnector<Anthropic
|
|
|
30
28
|
adapterId?: string;
|
|
31
29
|
});
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* Resolves `apiKey` from `providerContext.credentialRefs` via the encrypted
|
|
36
|
-
* credential channel, then initializes the Anthropic SDK client. Called once
|
|
37
|
-
* by `BaseStreamConnector.initializeSession()` before `createSession()`.
|
|
31
|
+
* Initialize the Anthropic SDK with the centrally delivered authentication
|
|
32
|
+
* snapshot and fetch available tools from the bus.
|
|
38
33
|
*
|
|
39
34
|
* Also converts fetched tools to Anthropic format and caches them in
|
|
40
35
|
* `this.anthropicTools` for use in `createSession`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ClientOptions } from '@anthropic-ai/sdk';
|
|
2
|
+
import type { ResolvedAdapterAuth } from '@makaio/framework/adapters/config';
|
|
3
|
+
/** Connector target owned by the Anthropic SDK constructor boundary. */
|
|
4
|
+
export declare const ANTHROPIC_SDK_CONSTRUCTOR_TARGET = "anthropic-sdk.constructor";
|
|
5
|
+
/** Credential-free error for malformed or foreign connector delivery. */
|
|
6
|
+
export declare class AnthropicSdkAuthDeliveryError extends Error {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Consume the exact Anthropic constructor delivery while suppressing both SDK ambient fallbacks.
|
|
11
|
+
* @param auth - Final connector-local authentication snapshot
|
|
12
|
+
* @returns Explicit constructor authentication options
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveAnthropicConstructorAuth(auth: ResolvedAdapterAuth | undefined): Pick<ClientOptions, 'apiKey' | 'authToken'>;
|
|
15
|
+
//# sourceMappingURL=constructor-auth.d.ts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import { a as AnthropicSdkAdapterName, c as AnthropicSdkAgent, d as ANTHROPIC_SDK_NAMESPACE, i as AnthropicSdkConnector, l as AnthropicSdkConnectorNamespace, n as AnthropicSdkAdapter, o as AnthropicSdkSession, r as createAnthropicSdkAdapter, s as AnthropicSdkConnectorTurn, t as anthropicSdkPackage, u as AnthropicSdkConnectorSubjects } from "./package-
|
|
2
|
+
import { a as AnthropicSdkAdapterName, c as AnthropicSdkAgent, d as ANTHROPIC_SDK_NAMESPACE, i as AnthropicSdkConnector, l as AnthropicSdkConnectorNamespace, n as AnthropicSdkAdapter, o as AnthropicSdkSession, r as createAnthropicSdkAdapter, s as AnthropicSdkConnectorTurn, t as anthropicSdkPackage, u as AnthropicSdkConnectorSubjects } from "./package-wChURkif.mjs";
|
|
3
3
|
import { UserMessageQueue } from "@makaio/framework/adapters";
|
|
4
4
|
|
|
5
5
|
export { ANTHROPIC_SDK_NAMESPACE, AnthropicSdkAdapter, AnthropicSdkAdapterName, AnthropicSdkAgent, AnthropicSdkConnector, AnthropicSdkConnectorNamespace, AnthropicSdkConnectorSubjects, AnthropicSdkConnectorTurn, AnthropicSdkSession, UserMessageQueue, anthropicSdkPackage, createAnthropicSdkAdapter };
|
|
@@ -4,9 +4,9 @@ import { AgentCompleteEventSchema, AgentStartedEventSchema, BaseStreamAgent, Bas
|
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import Anthropic, { APIError } from "@anthropic-ai/sdk";
|
|
6
6
|
import { MakaioBus } from "@makaio/framework/bus";
|
|
7
|
-
import { createAdapterConfigFactory, resolveConnectorCredentials } from "@makaio/framework/adapters/config";
|
|
8
7
|
import { AuthenticationError, ModelUnavailableError, QuotaExceededError, RateLimitError } from "@makaio/framework/core";
|
|
9
|
-
import {
|
|
8
|
+
import { createAdapterConfigFactory } from "@makaio/framework/adapters/config";
|
|
9
|
+
import { defineAdapterProviderAuth, dep } from "@makaio/framework/contracts";
|
|
10
10
|
|
|
11
11
|
//#region src/types/index.ts
|
|
12
12
|
/**
|
|
@@ -377,8 +377,7 @@ var AnthropicSdkAgent = class extends BaseStreamAgent {
|
|
|
377
377
|
toolStarted: AnthropicSdkConnectorSubjects.tool_started,
|
|
378
378
|
toolCompleted: AnthropicSdkConnectorSubjects.tool_completed,
|
|
379
379
|
agentStarted: AnthropicSdkConnectorSubjects.agent_started,
|
|
380
|
-
agentComplete: AnthropicSdkConnectorSubjects.agent_complete
|
|
381
|
-
error: AnthropicSdkConnectorSubjects.error
|
|
380
|
+
agentComplete: AnthropicSdkConnectorSubjects.agent_complete
|
|
382
381
|
};
|
|
383
382
|
}
|
|
384
383
|
/**
|
|
@@ -399,6 +398,9 @@ var AnthropicSdkAgent = class extends BaseStreamAgent {
|
|
|
399
398
|
*
|
|
400
399
|
* Reads Anthropic-specific cache fields: `cache_read_input_tokens` and
|
|
401
400
|
* `cache_creation_input_tokens`.
|
|
401
|
+
*
|
|
402
|
+
* Granularity is `provider-call`: each usage event is merged from the
|
|
403
|
+
* `message_start`/`message_delta` frames of exactly one Anthropic request.
|
|
402
404
|
* @param payload - Anthropic usage event payload
|
|
403
405
|
* @returns Normalized usage metrics
|
|
404
406
|
*/
|
|
@@ -408,6 +410,7 @@ var AnthropicSdkAgent = class extends BaseStreamAgent {
|
|
|
408
410
|
...usage.llmCallId !== void 0 ? { llmCallId: usage.llmCallId } : {},
|
|
409
411
|
...usage.executionId !== void 0 ? { executionId: usage.executionId } : {},
|
|
410
412
|
...usage.frameId !== void 0 ? { frameId: usage.frameId } : {},
|
|
413
|
+
granularity: "provider-call",
|
|
411
414
|
provider: "anthropic",
|
|
412
415
|
inputTokens: usage.prompt_tokens,
|
|
413
416
|
inputCachedTokens: usage.cache_read_input_tokens ?? 0,
|
|
@@ -1663,6 +1666,42 @@ const DEFAULT_TIMEOUTS = {
|
|
|
1663
1666
|
eventWait: 3e4
|
|
1664
1667
|
};
|
|
1665
1668
|
|
|
1669
|
+
//#endregion
|
|
1670
|
+
//#region src/constructor-auth.ts
|
|
1671
|
+
/** Connector target owned by the Anthropic SDK constructor boundary. */
|
|
1672
|
+
const ANTHROPIC_SDK_CONSTRUCTOR_TARGET = "anthropic-sdk.constructor";
|
|
1673
|
+
/** Credential-free error for malformed or foreign connector delivery. */
|
|
1674
|
+
var AnthropicSdkAuthDeliveryError = class extends Error {
|
|
1675
|
+
constructor() {
|
|
1676
|
+
super("Anthropic SDK constructor authentication delivery is invalid.");
|
|
1677
|
+
this.name = "AnthropicSdkAuthDeliveryError";
|
|
1678
|
+
}
|
|
1679
|
+
};
|
|
1680
|
+
/**
|
|
1681
|
+
* Consume the exact Anthropic constructor delivery while suppressing both SDK ambient fallbacks.
|
|
1682
|
+
* @param auth - Final connector-local authentication snapshot
|
|
1683
|
+
* @returns Explicit constructor authentication options
|
|
1684
|
+
*/
|
|
1685
|
+
function resolveAnthropicConstructorAuth(auth) {
|
|
1686
|
+
if (auth === void 0) return {
|
|
1687
|
+
apiKey: null,
|
|
1688
|
+
authToken: null
|
|
1689
|
+
};
|
|
1690
|
+
if (Object.keys(auth.processEnv).length !== 0 || auth.configInheritance !== "empty") throw new AnthropicSdkAuthDeliveryError();
|
|
1691
|
+
const deliveries = auth.connectorDeliveries;
|
|
1692
|
+
if (deliveries.length === 0) return {
|
|
1693
|
+
apiKey: null,
|
|
1694
|
+
authToken: null
|
|
1695
|
+
};
|
|
1696
|
+
if (deliveries.length !== 1 || deliveries[0]?.target !== "anthropic-sdk.constructor") throw new AnthropicSdkAuthDeliveryError();
|
|
1697
|
+
const values = deliveries[0].values;
|
|
1698
|
+
if (Object.keys(values).sort().join(",") !== "apiKey,authToken" || typeof values["apiKey"] !== "string" || values["apiKey"].trim() === "" || values["authToken"] !== null) throw new AnthropicSdkAuthDeliveryError();
|
|
1699
|
+
return {
|
|
1700
|
+
apiKey: values["apiKey"],
|
|
1701
|
+
authToken: null
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1666
1705
|
//#endregion
|
|
1667
1706
|
//#region src/connector.ts
|
|
1668
1707
|
/** Default scoped bus for Anthropic SDK adapter */
|
|
@@ -1680,13 +1719,11 @@ const defaultBus = await AnthropicSdkConnectorNamespace.scopedBus();
|
|
|
1680
1719
|
* on the first turn. Tool execution routes through MakaioBus.request(ToolSubjects.execute)
|
|
1681
1720
|
* to the ToolRegistry, which validates input and executes the tool handler.
|
|
1682
1721
|
*
|
|
1683
|
-
*
|
|
1684
|
-
*
|
|
1685
|
-
* fields and never leave the connector.
|
|
1722
|
+
* Authentication is resolved once by the central adapter runtime and delivered
|
|
1723
|
+
* through the Anthropic constructor target.
|
|
1686
1724
|
*/
|
|
1687
1725
|
var AnthropicSdkConnector = class extends BaseStreamConnector {
|
|
1688
|
-
|
|
1689
|
-
resolvedApiKey = "";
|
|
1726
|
+
constructorAuth;
|
|
1690
1727
|
client;
|
|
1691
1728
|
/** Anthropic-format tools for messages.create (fetched from bus on first turn) */
|
|
1692
1729
|
anthropicTools = [];
|
|
@@ -1698,32 +1735,29 @@ var AnthropicSdkConnector = class extends BaseStreamConnector {
|
|
|
1698
1735
|
await this.emit(AnthropicSdkConnectorSubjects.sdk.event, { event });
|
|
1699
1736
|
}
|
|
1700
1737
|
constructor(config) {
|
|
1738
|
+
const { adapterAuth, ...baseConfig } = config;
|
|
1701
1739
|
super({
|
|
1702
|
-
...
|
|
1740
|
+
...baseConfig,
|
|
1741
|
+
env: baseConfig.env ?? {},
|
|
1703
1742
|
bus: config?.bus ?? defaultBus,
|
|
1704
1743
|
adapterId: config?.adapterId ?? crypto.randomUUID(),
|
|
1705
1744
|
adapterName: config?.adapterName ?? "anthropic-sdk"
|
|
1706
1745
|
});
|
|
1746
|
+
this.constructorAuth = resolveAnthropicConstructorAuth(adapterAuth);
|
|
1707
1747
|
this.model = config?.model ?? "claude-sonnet-4-5-20250929";
|
|
1708
1748
|
this.initAdapterSessionId();
|
|
1709
1749
|
}
|
|
1710
1750
|
/**
|
|
1711
|
-
*
|
|
1712
|
-
*
|
|
1713
|
-
* Resolves `apiKey` from `providerContext.credentialRefs` via the encrypted
|
|
1714
|
-
* credential channel, then initializes the Anthropic SDK client. Called once
|
|
1715
|
-
* by `BaseStreamConnector.initializeSession()` before `createSession()`.
|
|
1751
|
+
* Initialize the Anthropic SDK with the centrally delivered authentication
|
|
1752
|
+
* snapshot and fetch available tools from the bus.
|
|
1716
1753
|
*
|
|
1717
1754
|
* Also converts fetched tools to Anthropic format and caches them in
|
|
1718
1755
|
* `this.anthropicTools` for use in `createSession`.
|
|
1719
1756
|
*/
|
|
1720
1757
|
async fetchTools() {
|
|
1721
|
-
const credentialRefs = this.config.providerContext?.credentialRefs ?? {};
|
|
1722
|
-
const credentials = await resolveConnectorCredentials(this.config.bus, credentialRefs);
|
|
1723
|
-
this.resolvedApiKey = credentials["apiKey"] ?? "";
|
|
1724
1758
|
const baseUrl = this.config.providerConfig?.baseUrl;
|
|
1725
1759
|
this.client = new Anthropic({
|
|
1726
|
-
...this.
|
|
1760
|
+
...this.constructorAuth,
|
|
1727
1761
|
baseURL: baseUrl ?? void 0
|
|
1728
1762
|
});
|
|
1729
1763
|
this.anthropicTools = await fetchToolsForAnthropic(this.config.globalBus ?? MakaioBus, this.adapterId, this.adapterName, {
|
|
@@ -1772,7 +1806,7 @@ var AnthropicSdkConnector = class extends BaseStreamConnector {
|
|
|
1772
1806
|
model: this.model ?? "",
|
|
1773
1807
|
reasoningEffort: this.config.reasoningEffort,
|
|
1774
1808
|
streamStartTimeoutMs: this.getTimeoutMs("eventWait"),
|
|
1775
|
-
env: this.config.
|
|
1809
|
+
env: { ...this.config.contextEnv ?? {} },
|
|
1776
1810
|
client: this.client,
|
|
1777
1811
|
anthropicTools: this.anthropicTools,
|
|
1778
1812
|
requestCorrelationHeaders: this.config.providerConfig?.requestCorrelationHeaders,
|
|
@@ -1844,22 +1878,6 @@ const AnthropicSdkProviderConfigSchema = z.object({
|
|
|
1844
1878
|
description: "Maximum number of tokens to generate per API request (default: 32,000)"
|
|
1845
1879
|
})
|
|
1846
1880
|
});
|
|
1847
|
-
/**
|
|
1848
|
-
* Zod schema for Anthropic SDK credential input.
|
|
1849
|
-
*
|
|
1850
|
-
* Used for:
|
|
1851
|
-
* 1. Write-only credential capture in settings UI
|
|
1852
|
-
* 2. Secure storage in credential service
|
|
1853
|
-
*/
|
|
1854
|
-
const AnthropicSdkCredentialSchema = z.object({
|
|
1855
|
-
/**
|
|
1856
|
-
* API key for Anthropic.
|
|
1857
|
-
*/
|
|
1858
|
-
apiKey: z.string().optional().meta({
|
|
1859
|
-
title: "API Key",
|
|
1860
|
-
format: "password",
|
|
1861
|
-
description: "Anthropic API key"
|
|
1862
|
-
}) });
|
|
1863
1881
|
|
|
1864
1882
|
//#endregion
|
|
1865
1883
|
//#region src/config.ts
|
|
@@ -1876,8 +1894,7 @@ const AnthropicSdkConfig = createAdapterConfigFactory(() => ({
|
|
|
1876
1894
|
providerConfig: {}
|
|
1877
1895
|
},
|
|
1878
1896
|
schema: AnthropicSdkProviderConfigSchema,
|
|
1879
|
-
adapterDefinition: { defaultTimeouts: DEFAULT_TIMEOUTS }
|
|
1880
|
-
protocol: "anthropic"
|
|
1897
|
+
adapterDefinition: { defaultTimeouts: DEFAULT_TIMEOUTS }
|
|
1881
1898
|
}));
|
|
1882
1899
|
|
|
1883
1900
|
//#endregion
|
|
@@ -1969,6 +1986,43 @@ const providerIds = [
|
|
|
1969
1986
|
"opencode-go-anthropic",
|
|
1970
1987
|
"anthropic"
|
|
1971
1988
|
];
|
|
1989
|
+
const ANTHROPIC_SDK_AUTH_SCRUB_ENV_VARS = [
|
|
1990
|
+
"Z_AI_API_KEY",
|
|
1991
|
+
"BAILIAN_CODING_PLAN_API_KEY",
|
|
1992
|
+
"OPENCODE_GO_API_KEY",
|
|
1993
|
+
"ANTHROPIC_API_KEY",
|
|
1994
|
+
"ANTHROPIC_AUTH_TOKEN"
|
|
1995
|
+
];
|
|
1996
|
+
/**
|
|
1997
|
+
* Define deterministic Anthropic SDK constructor delivery for one provider API key.
|
|
1998
|
+
* @param providerDefinitionId - Provider definition that owns the API-key method.
|
|
1999
|
+
* @returns Validated adapter/provider authentication metadata.
|
|
2000
|
+
*/
|
|
2001
|
+
function defineProviderAuth(providerDefinitionId) {
|
|
2002
|
+
return defineAdapterProviderAuth({
|
|
2003
|
+
bindings: [{
|
|
2004
|
+
method: {
|
|
2005
|
+
owner: "provider",
|
|
2006
|
+
providerDefinitionId,
|
|
2007
|
+
methodId: "api-key"
|
|
2008
|
+
},
|
|
2009
|
+
deliveries: [{
|
|
2010
|
+
kind: "connector",
|
|
2011
|
+
target: "anthropic-sdk.constructor",
|
|
2012
|
+
fields: { apiKey: "apiKey" },
|
|
2013
|
+
constants: { authToken: null }
|
|
2014
|
+
}]
|
|
2015
|
+
}],
|
|
2016
|
+
scrubEnvVars: ANTHROPIC_SDK_AUTH_SCRUB_ENV_VARS
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
/** Validated authentication metadata keyed by supported provider definition ID. */
|
|
2020
|
+
const providerAuthById = {
|
|
2021
|
+
"z-ai": defineProviderAuth("z-ai"),
|
|
2022
|
+
alibaba: defineProviderAuth("alibaba"),
|
|
2023
|
+
"opencode-go-anthropic": defineProviderAuth("opencode-go-anthropic"),
|
|
2024
|
+
anthropic: defineProviderAuth("anthropic")
|
|
2025
|
+
};
|
|
1972
2026
|
/**
|
|
1973
2027
|
* Default provider id to use when no provider is explicitly configured.
|
|
1974
2028
|
*
|
|
@@ -1983,9 +2037,12 @@ const adapterDefinition = {
|
|
|
1983
2037
|
displayName: "Anthropic SDK",
|
|
1984
2038
|
defaultPresetId,
|
|
1985
2039
|
description: "Anthropic Messages API with streaming, tool calling, and extended thinking",
|
|
1986
|
-
providers: providerIds.map((definitionId) => ({
|
|
2040
|
+
providers: providerIds.map((definitionId) => ({
|
|
2041
|
+
definitionId,
|
|
2042
|
+
protocol: "anthropic",
|
|
2043
|
+
auth: providerAuthById[definitionId]
|
|
2044
|
+
})),
|
|
1987
2045
|
providerConfigSchema: AnthropicSdkProviderConfigSchema,
|
|
1988
|
-
providerCredentialSchema: AnthropicSdkCredentialSchema,
|
|
1989
2046
|
defaultTimeouts: DEFAULT_TIMEOUTS,
|
|
1990
2047
|
helpLinks: [{
|
|
1991
2048
|
label: "Anthropic API Documentation",
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,14 +1,171 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider IDs and preset configuration for the Anthropic SDK adapter.
|
|
3
|
-
*
|
|
4
|
-
* The Anthropic SDK adapter supports any Anthropic-compatible API.
|
|
5
|
-
* Provider compatibility is declared by stable definition ID — the adapter
|
|
6
|
-
* subsystem resolves each ID to a full ProviderDefinitionInput from the
|
|
7
|
-
* provider registry at boot time.
|
|
8
|
-
*
|
|
9
|
-
* Add new provider IDs here when introducing an Anthropic-compatible provider.
|
|
10
|
-
*/
|
|
11
1
|
export declare const providerIds: readonly ['z-ai', 'alibaba', 'opencode-go-anthropic', 'anthropic'];
|
|
2
|
+
/** Validated authentication metadata keyed by supported provider definition ID. */
|
|
3
|
+
export declare const providerAuthById: {
|
|
4
|
+
'z-ai': {
|
|
5
|
+
bindings: {
|
|
6
|
+
method: {
|
|
7
|
+
owner: "provider";
|
|
8
|
+
providerDefinitionId: string;
|
|
9
|
+
methodId: string;
|
|
10
|
+
} | {
|
|
11
|
+
owner: "client";
|
|
12
|
+
clientId: string;
|
|
13
|
+
methodId: string;
|
|
14
|
+
};
|
|
15
|
+
deliveries: [{
|
|
16
|
+
kind: "process-env";
|
|
17
|
+
fields: Record<string, string>;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "connector";
|
|
20
|
+
target: string;
|
|
21
|
+
fields: Record<string, string>;
|
|
22
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "native-client";
|
|
25
|
+
clientId: string;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "none";
|
|
28
|
+
}, ...({
|
|
29
|
+
kind: "process-env";
|
|
30
|
+
fields: Record<string, string>;
|
|
31
|
+
} | {
|
|
32
|
+
kind: "connector";
|
|
33
|
+
target: string;
|
|
34
|
+
fields: Record<string, string>;
|
|
35
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
36
|
+
} | {
|
|
37
|
+
kind: "native-client";
|
|
38
|
+
clientId: string;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "none";
|
|
41
|
+
})[]];
|
|
42
|
+
}[];
|
|
43
|
+
scrubEnvVars: string[];
|
|
44
|
+
} & import("zod").$brand<"AdapterProviderAuth">;
|
|
45
|
+
alibaba: {
|
|
46
|
+
bindings: {
|
|
47
|
+
method: {
|
|
48
|
+
owner: "provider";
|
|
49
|
+
providerDefinitionId: string;
|
|
50
|
+
methodId: string;
|
|
51
|
+
} | {
|
|
52
|
+
owner: "client";
|
|
53
|
+
clientId: string;
|
|
54
|
+
methodId: string;
|
|
55
|
+
};
|
|
56
|
+
deliveries: [{
|
|
57
|
+
kind: "process-env";
|
|
58
|
+
fields: Record<string, string>;
|
|
59
|
+
} | {
|
|
60
|
+
kind: "connector";
|
|
61
|
+
target: string;
|
|
62
|
+
fields: Record<string, string>;
|
|
63
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
64
|
+
} | {
|
|
65
|
+
kind: "native-client";
|
|
66
|
+
clientId: string;
|
|
67
|
+
} | {
|
|
68
|
+
kind: "none";
|
|
69
|
+
}, ...({
|
|
70
|
+
kind: "process-env";
|
|
71
|
+
fields: Record<string, string>;
|
|
72
|
+
} | {
|
|
73
|
+
kind: "connector";
|
|
74
|
+
target: string;
|
|
75
|
+
fields: Record<string, string>;
|
|
76
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
77
|
+
} | {
|
|
78
|
+
kind: "native-client";
|
|
79
|
+
clientId: string;
|
|
80
|
+
} | {
|
|
81
|
+
kind: "none";
|
|
82
|
+
})[]];
|
|
83
|
+
}[];
|
|
84
|
+
scrubEnvVars: string[];
|
|
85
|
+
} & import("zod").$brand<"AdapterProviderAuth">;
|
|
86
|
+
'opencode-go-anthropic': {
|
|
87
|
+
bindings: {
|
|
88
|
+
method: {
|
|
89
|
+
owner: "provider";
|
|
90
|
+
providerDefinitionId: string;
|
|
91
|
+
methodId: string;
|
|
92
|
+
} | {
|
|
93
|
+
owner: "client";
|
|
94
|
+
clientId: string;
|
|
95
|
+
methodId: string;
|
|
96
|
+
};
|
|
97
|
+
deliveries: [{
|
|
98
|
+
kind: "process-env";
|
|
99
|
+
fields: Record<string, string>;
|
|
100
|
+
} | {
|
|
101
|
+
kind: "connector";
|
|
102
|
+
target: string;
|
|
103
|
+
fields: Record<string, string>;
|
|
104
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
kind: "native-client";
|
|
107
|
+
clientId: string;
|
|
108
|
+
} | {
|
|
109
|
+
kind: "none";
|
|
110
|
+
}, ...({
|
|
111
|
+
kind: "process-env";
|
|
112
|
+
fields: Record<string, string>;
|
|
113
|
+
} | {
|
|
114
|
+
kind: "connector";
|
|
115
|
+
target: string;
|
|
116
|
+
fields: Record<string, string>;
|
|
117
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
118
|
+
} | {
|
|
119
|
+
kind: "native-client";
|
|
120
|
+
clientId: string;
|
|
121
|
+
} | {
|
|
122
|
+
kind: "none";
|
|
123
|
+
})[]];
|
|
124
|
+
}[];
|
|
125
|
+
scrubEnvVars: string[];
|
|
126
|
+
} & import("zod").$brand<"AdapterProviderAuth">;
|
|
127
|
+
anthropic: {
|
|
128
|
+
bindings: {
|
|
129
|
+
method: {
|
|
130
|
+
owner: "provider";
|
|
131
|
+
providerDefinitionId: string;
|
|
132
|
+
methodId: string;
|
|
133
|
+
} | {
|
|
134
|
+
owner: "client";
|
|
135
|
+
clientId: string;
|
|
136
|
+
methodId: string;
|
|
137
|
+
};
|
|
138
|
+
deliveries: [{
|
|
139
|
+
kind: "process-env";
|
|
140
|
+
fields: Record<string, string>;
|
|
141
|
+
} | {
|
|
142
|
+
kind: "connector";
|
|
143
|
+
target: string;
|
|
144
|
+
fields: Record<string, string>;
|
|
145
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
146
|
+
} | {
|
|
147
|
+
kind: "native-client";
|
|
148
|
+
clientId: string;
|
|
149
|
+
} | {
|
|
150
|
+
kind: "none";
|
|
151
|
+
}, ...({
|
|
152
|
+
kind: "process-env";
|
|
153
|
+
fields: Record<string, string>;
|
|
154
|
+
} | {
|
|
155
|
+
kind: "connector";
|
|
156
|
+
target: string;
|
|
157
|
+
fields: Record<string, string>;
|
|
158
|
+
constants?: Record<string, string | number | boolean | null> | undefined;
|
|
159
|
+
} | {
|
|
160
|
+
kind: "native-client";
|
|
161
|
+
clientId: string;
|
|
162
|
+
} | {
|
|
163
|
+
kind: "none";
|
|
164
|
+
})[]];
|
|
165
|
+
}[];
|
|
166
|
+
scrubEnvVars: string[];
|
|
167
|
+
} & import("zod").$brand<"AdapterProviderAuth">;
|
|
168
|
+
};
|
|
12
169
|
/**
|
|
13
170
|
* Default provider id to use when no provider is explicitly configured.
|
|
14
171
|
*
|
package/dist/schemas.d.ts
CHANGED
|
@@ -12,16 +12,6 @@ export declare const AnthropicSdkProviderConfigSchema: z.ZodObject<{
|
|
|
12
12
|
requestCorrelationHeaders: z.ZodOptional<z.ZodLiteral<"factory-v1">>;
|
|
13
13
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
/**
|
|
16
|
-
* Zod schema for Anthropic SDK credential input.
|
|
17
|
-
*
|
|
18
|
-
* Used for:
|
|
19
|
-
* 1. Write-only credential capture in settings UI
|
|
20
|
-
* 2. Secure storage in credential service
|
|
21
|
-
*/
|
|
22
|
-
export declare const AnthropicSdkCredentialSchema: z.ZodObject<{
|
|
23
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
15
|
/**
|
|
26
16
|
* Provider settings input type (pre-validation, fields optional).
|
|
27
17
|
*/
|
package/dist/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import { t as anthropicSdkPackage } from "./package-
|
|
2
|
+
import { t as anthropicSdkPackage } from "./package-wChURkif.mjs";
|
|
3
3
|
|
|
4
4
|
export { anthropicSdkPackage as default };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,9 +16,8 @@ export type AnthropicSdkBus = ScopedBus<typeof ANTHROPIC_SDK_NAMESPACE>;
|
|
|
16
16
|
/**
|
|
17
17
|
* Provider-specific configuration for the Anthropic SDK connector.
|
|
18
18
|
*
|
|
19
|
-
* Contains only non-credential settings.
|
|
20
|
-
*
|
|
21
|
-
* `resolveConnectorCredentials()` and never appear in this type.
|
|
19
|
+
* Contains only non-credential settings. Authentication is supplied separately
|
|
20
|
+
* through the connector-local normalized runtime snapshot.
|
|
22
21
|
*/
|
|
23
22
|
export type AnthropicSdkProviderConfig = AnthropicSdkProviderSettings;
|
|
24
23
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makaio/adapter-anthropic-sdk",
|
|
3
3
|
"description": "Anthropic SDK adapter using the official @anthropic-ai/sdk streaming API.",
|
|
4
|
-
"version": "1.0.0-dev-
|
|
4
|
+
"version": "1.0.0-dev-1785347612784",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -44,30 +44,8 @@
|
|
|
44
44
|
"@anthropic-ai/sdk": ">=0.91.1 <1.0.0",
|
|
45
45
|
"@makaio/framework": ">=1.0.0-0 <2.0.0"
|
|
46
46
|
},
|
|
47
|
-
"
|
|
48
|
-
"@anthropic-ai/sdk": "0.98.0",
|
|
49
|
-
"@makaio/ai-adapters-core": "1.0.0",
|
|
50
|
-
"@makaio/ai-adapters-stream-session": "1.0.0",
|
|
51
|
-
"@makaio/build-tooling": "1.0.0",
|
|
52
|
-
"@makaio/bus-core": "1.0.0",
|
|
53
|
-
"@makaio/contracts": "1.0.0",
|
|
54
|
-
"@makaio/core": "1.0.0",
|
|
55
|
-
"@makaio/utils": "1.0.0",
|
|
56
|
-
"@types/node": "^24.3.0"
|
|
57
|
-
},
|
|
47
|
+
"private": false,
|
|
58
48
|
"publishConfig": {
|
|
59
|
-
"access": "public"
|
|
60
|
-
"directory": "node_modules/.makaio-publish",
|
|
61
|
-
"exports": {
|
|
62
|
-
".": {
|
|
63
|
-
"types": "./dist/index.d.ts",
|
|
64
|
-
"default": "./dist/index.mjs"
|
|
65
|
-
},
|
|
66
|
-
"./server": {
|
|
67
|
-
"types": "./dist/server.d.ts",
|
|
68
|
-
"default": "./dist/server.mjs"
|
|
69
|
-
},
|
|
70
|
-
"./package.json": "./package.json"
|
|
71
|
-
}
|
|
49
|
+
"access": "public"
|
|
72
50
|
}
|
|
73
|
-
}
|
|
51
|
+
}
|
package/dist/adapter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAkC,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtG,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OA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;;OAOG;IACH,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAMnE;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,mBAAmB,CAgBnF;IAED;;;;;;OAMG;IACH,UAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAY5F;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,yBAAyB,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CAExD;IAED;;;;;;OAMG;IACH,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAE3D;IAED;;;;;;OAMG;IACH,SAAS,CAAC,kCAAkC,IAAI,MAAM,CAIrD;IAED;;;;;;OAMG;IACH,SAAS,CAAC,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAExE;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,mBAAmB,CAMnF;IAED;;;;;;OAMG;IACH,SAAS,CAAC,mBAAmB,CAAC,SAAS,EAAE,qBAAqB,GAAG,IAAI,CAgBpE;CACF"}
|
package/dist/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAKhE;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;oBAAsE,MAAM;;;;;;;;;oBAAN,MAAM;;CASxG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../src/conformance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAE1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,aACjB,kCAAkC,KAC3C,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,iBAAiB,CAAC,CAiCnG,CAAC"}
|
package/dist/connector.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAOzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAQnD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,qBAAsB,SAAQ,mBAAmB,CAC5D,eAAe,EACf,mBAAmB,EACnB,uBAAuB,CACxB;IACC,iFAAiF;IACjF,OAAO,CAAC,cAAc,CAAM;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAY;IAC3B,kFAAkF;IAClF,OAAO,CAAC,cAAc,CAA0D;YAMlE,YAAY;IAI1B,YAAmB,MAAM,EAAE,uBAAuB,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EAa1E;IAMD;;;;;;;;;OASG;IACH,UAAgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAoB1C;IAED;;;;;;;;;OASG;IACH,UAAyB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAcrD;IAED;;;;;;OAMG;IACH,SAAS,CAAC,aAAa,IAAI,mBAAmB,CA4C7C;IAED;;;OAGG;IACH,SAAS,CAAC,eAAe,IAAI,mBAAmB,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAE7E;CACF"}
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,gEAAgE;AAChE,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AAEvD,sCAAsC;AACtC,eAAO,MAAM,aAAa,+BAA+B,CAAC;AAE1D,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB;;;;;;CAMI,CAAC"}
|
package/dist/definition.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAKpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CACjD,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,CAyBlB,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAGvG,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,KAAK,QAAQ,EACb,KAAK,eAAe,GACrB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-integration.d.ts","sourceRoot":"","sources":["../src/mcp-integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,mBAAmB,CAAC;AAEzE;;;;;;GAMG;AACH,qBAAa,uBAAwB,YAAW,sBAAsB;IACpE,SAAgB,IAAI,EAAG,gBAAgB,CAAU;IACjD,SAAgB,4BAA4B,SAAS;IAErD;;;;;OAKG;IACU,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAQ1F;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/namespaces/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAA0C,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/chunk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuCxB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;iBAM3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACzF,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGlF,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,GACX,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/reasoning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;iBAAgC,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;iBAMvC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-calls.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/tool-calls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,QAAA,MAAM,cAAc;;;;;;;;iBAGlB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;iBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"turn-state.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/turn-state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/namespaces/schemas/usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAkB3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/package.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AASnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,UAAU,CAqB/D,CAAC;eAEa,mBAAmB"}
|
package/dist/provider.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,YAAI,MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE,WAAW,CAAU,CAAC;AAE9F;;;;GAIG;AACH,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,0BAA0B,CAAC"}
|
package/dist/schemas.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC;;;;iBA2B3C,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;iBASvC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
package/dist/server.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/session.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,YAAY,EACZ,IAAI,EACL,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,gBAAgB,EAGtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAiC,KAAK,oBAAoB,EA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ED;;;OAGG;IACH,SAAS,CAAC,4BAA4B,IAAI,MAAM,CAE/C;IAED;;;;;OAKG;IACH,SAAS,CAAC,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAK1G;IAED;;;;;;;;OAQG;IACH,UAAgB,cAAc,CAC5B,IAAI,EAAE,yBAAyB,EAC/B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,IAAI,CAAC,CAkDf;IAED;;;OAGG;IACH,SAAS,CAAC,kBAAkB,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAE9D;IAED;;;;;;;;;;OAUG;IACH,UAAgB,oBAAoB,CAClC,MAAM,EAAE,oBAAoB,EAC5B,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAqEf;IAED;;;;OAIG;IACH,OAAO,CAAC,wCAAwC;IAqBhD;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;;OAIG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAE7C;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-bridge.d.ts","sourceRoot":"","sources":["../src/stream-bridge.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,kBAAkB,CAAC;AA+LhF;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAC5C,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,IAAI,CAAC,CAuDf"}
|
package/dist/test/index.d.ts
DELETED
package/dist/test/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-handling.d.ts","sourceRoot":"","sources":["../src/tool-handling.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAEnG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,6BAA6B,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC3G,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAA+D,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnH,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EAErB,WAAW,EAEX,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EAAE,eAAe,EAAE,6BAA6B,EAAE,CAAC;AAI/D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,2BAA2B,wLAKvC,CAAC;AASF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,WAAW,EAAE,CAAC;AAEtE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,CAMnE;AAED;;;;;;;GAOG;AACH,wBAAs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E,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IACxE;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildMessageCreateRequest.d.ts","sourceRoot":"","sources":["../../src/utils/buildMessageCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EACV,4BAA4B,EAC5B,YAAY,EAEZ,IAAI,EACL,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAMlE,sFAAsF;AACtF,UAAU,8BAA8B;IACtC,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,iHAAiH;IACjH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,qEAAqE;IACrE,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,2GAA2G;IAC3G,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,2FAA2F;IAC3F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sGAAsG;IACtG,cAAc,CAAC,EAAE,wBAAwB,CAAC;CAC3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,GAAG,4BAA4B,CAyB7G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classifyAnthropicError.d.ts","sourceRoot":"","sources":["../../src/utils/classifyAnthropicError.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CA4C5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convertMessageHistory.d.ts","sourceRoot":"","sources":["../../src/utils/convertMessageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,cAAc,EAIf,MAAM,kDAAkD,CAAC;AAG1D,OAAO,KAAK,EAAiB,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASrF,sEAAsE;AACtE,KAAK,gBAAgB,GAAG,cAAc,GAAG,eAAe,GAAG,kBAAkB,CAAC;AA2O9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,GAAG,gBAAgB,EAAE,CAQ5F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAuBxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-tool-use-input.d.ts","sourceRoot":"","sources":["../../src/utils/parse-tool-use-input.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAW1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseReasoningLevel.d.ts","sourceRoot":"","sources":["../../src/utils/parseReasoningLevel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMpE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/utils/usage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AAEjG,oFAAoF;AACpF,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAYD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,CAS3D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,GAAG,WAAW,CAS5F"}
|