@makaio/adapter-anthropic-sdk 1.0.0-dev-1781260968078 → 1.0.0-dev-1781884053376
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/dist/index.d.mts
CHANGED
|
@@ -1368,6 +1368,8 @@ interface AnthropicSdkSessionConfig {
|
|
|
1368
1368
|
agentId: string;
|
|
1369
1369
|
/** Makaio session ID for tool execution context */
|
|
1370
1370
|
sessionId?: string;
|
|
1371
|
+
/** Provider-assigned session identifier forwarded to tool execution context. */
|
|
1372
|
+
adapterSessionId?: string;
|
|
1371
1373
|
cwd: string;
|
|
1372
1374
|
model: string;
|
|
1373
1375
|
reasoningEffort?: AIReasoningLevel;
|
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 createAnthropicSdkAdapter, c as AnthropicSdkConnector, d as AnthropicSdkConnectorTurn, f as registerToolApprovalHandler, h as ANTHROPIC_SDK_NAMESPACE, i as AnthropicSdkAdapter, l as AnthropicSdkAdapterName, m as AnthropicSdkConnectorSubjects, n as providerIds, o as AnthropicSdkConfig, p as AnthropicSdkConnectorNamespace, r as testPresetId, s as AnthropicSdkAgent, t as anthropicSdkPackage, u as AnthropicSdkSession } from "./package-
|
|
2
|
+
import { a as createAnthropicSdkAdapter, c as AnthropicSdkConnector, d as AnthropicSdkConnectorTurn, f as registerToolApprovalHandler, h as ANTHROPIC_SDK_NAMESPACE, i as AnthropicSdkAdapter, l as AnthropicSdkAdapterName, m as AnthropicSdkConnectorSubjects, n as providerIds, o as AnthropicSdkConfig, p as AnthropicSdkConnectorNamespace, r as testPresetId, s as AnthropicSdkAgent, t as anthropicSdkPackage, u as AnthropicSdkSession } from "./package-CJbFAndl.mjs";
|
|
3
3
|
import { UserMessageQueue, resolveConformanceTestPreset, resolveTestConfig } from "@makaio/framework/adapters";
|
|
4
4
|
|
|
5
5
|
//#region src/index.ts
|
|
@@ -1333,6 +1333,7 @@ var AnthropicSdkSession = class extends BaseStreamSession {
|
|
|
1333
1333
|
agentId: this.config.agentId,
|
|
1334
1334
|
adapterId: this.config.adapterId,
|
|
1335
1335
|
adapterName: this.config.adapterName,
|
|
1336
|
+
adapterSessionId: this.config.adapterSessionId,
|
|
1336
1337
|
turnId: currentHandle.messageId,
|
|
1337
1338
|
turnContext: currentHandle.turnContext,
|
|
1338
1339
|
reasoning: result.reasoning,
|
|
@@ -1468,6 +1469,7 @@ var AnthropicSdkConnector = class extends BaseStreamConnector {
|
|
|
1468
1469
|
adapterName: this.config.adapterName ?? "",
|
|
1469
1470
|
agentId: this.agentId,
|
|
1470
1471
|
sessionId: this.config.sessionId,
|
|
1472
|
+
adapterSessionId: this.adapterSessionId,
|
|
1471
1473
|
cwd: this.cwd,
|
|
1472
1474
|
model: this.model ?? "",
|
|
1473
1475
|
reasoningEffort: this.config.reasoningEffort,
|
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-CJbFAndl.mjs";
|
|
3
3
|
|
|
4
4
|
export { anthropicSdkPackage as default };
|
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-1781884053376",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@anthropic-ai/sdk": ">=0.91.1 <1.0.0",
|
|
45
|
-
"@makaio/framework": "
|
|
45
|
+
"@makaio/framework": ">=1.0.0-0 <2.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@anthropic-ai/sdk": "0.98.0",
|