@tangle-network/sdk-provider-cli-base 0.13.15 → 0.13.17
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 +8 -7
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,8 @@ import { BindableLaunchControl, CODEX_DISABLED_FEATURE_ARGS, HarnessId, HarnessI
|
|
|
5
5
|
import { CliExecResult, CliExitResult, CliLauncher, CliProcess, CliSpawnConfig, InvalidAttachmentError, JsonRpcError, RpcBridge, StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
6
6
|
import { AgentExecutionInput, AgentExecutionOutcome, AgentExecutionResult, AgentProfile, AgentProfileSecretProvider, AgentRuntimeAttachments, BackendCapabilities, BackendMessage, CliAuthFile, DurablePlan, GetMessagesOptions, HarnessType, InputPart, InteractionExecutionBinding, InteractionResponse, LocalMcpConfig, McpConfig, McpStatusResponse, PlanProviderState, ProviderConfig, ReasoningEffort, RequestedInteractions, SdkHostServices, SdkPlanHost, SdkProviderAdapter, StreamEvent, TokenUsage, ToolPart } from "@tangle-network/agent-interface";
|
|
7
7
|
import { HarnessSessionContract } from "@tangle-network/cli-agent-registry/session-contract";
|
|
8
|
-
import
|
|
8
|
+
import * as _$_tangle_network_sdk_session_persistence0 from "@tangle-network/sdk-session-persistence";
|
|
9
|
+
import { MessagePart, MessageStore, PersistedMessage, PersistedSession, SessionStore, readProviderMessageIds } from "@tangle-network/sdk-session-persistence";
|
|
9
10
|
import { ProviderLogger } from "@tangle-network/cli-agent-registry";
|
|
10
11
|
import { NATIVE_SESSION_CONTRACTS } from "@tangle-network/cli-agent-registry/native-session-contracts";
|
|
11
12
|
import { DEFAULT_INTERACTION_MCP_SERVER_NAME, InteractionMcpServer as InteractionMcpServer$1, InteractionMcpServerConfig as InteractionMcpServerConfig$1, interactionMcpToolName } from "@tangle-network/agent-core/interactions/mcp";
|
|
@@ -514,7 +515,7 @@ declare abstract class CliAdapterProfile<TConfig extends CliProviderConfig = Cli
|
|
|
514
515
|
protected profilePlanMayFillClearedEnvironmentVariable(_name: string, _value: string): boolean;
|
|
515
516
|
protected preparePromptInput(parts: InputPart[], workspaceRoot: string, sessionId: string, options?: Parameters<typeof preparePromptInputParts>[3]): Promise<{
|
|
516
517
|
promptText: string;
|
|
517
|
-
persistedParts: MessagePart[];
|
|
518
|
+
persistedParts: _$_tangle_network_sdk_session_persistence0.MessagePart[];
|
|
518
519
|
attachments: PreparedAttachment[];
|
|
519
520
|
}>;
|
|
520
521
|
/** Attachment kinds this adapter forwards natively via buildExecArgs (argv flag / stdin content block) instead of the `[Image: ...]` / `[File: ...]` text marker. */
|
|
@@ -585,7 +586,7 @@ declare abstract class CliAdapterSessions<TConfig extends CliProviderConfig = Cl
|
|
|
585
586
|
}): Promise<string>;
|
|
586
587
|
getMessages(options: GetMessagesOptions): Promise<BackendMessage[]>;
|
|
587
588
|
protected toBackendMessage(msg: PersistedMessage): BackendMessage;
|
|
588
|
-
protected buildAssistantParts(state: ExecutionState): MessagePart
|
|
589
|
+
protected buildAssistantParts(state: ExecutionState): MessagePart[];
|
|
589
590
|
protected extractToolInvocations(state: ExecutionState): AgentExecutionResult["toolInvocations"];
|
|
590
591
|
/**
|
|
591
592
|
* Names of tools this provider substitutes for a model tool call it could
|
|
@@ -721,13 +722,13 @@ declare abstract class CliProviderAdapterBase<TConfig extends CliProviderConfig
|
|
|
721
722
|
/** Report and record a failed turn, then throw its error. */
|
|
722
723
|
private failCliTurn;
|
|
723
724
|
protected openTurnSession(input: AgentExecutionInput, recorder: SdkHostServices["recorder"], onEvent: ((event: StreamEvent) => void) | undefined): Promise<{
|
|
724
|
-
providerMessageIds:
|
|
725
|
+
providerMessageIds: _$_tangle_network_sdk_session_persistence0.ProviderMessageIds | undefined;
|
|
725
726
|
cached: AgentExecutionResult;
|
|
726
727
|
sessionId: string;
|
|
727
728
|
providerSessionId: string | undefined;
|
|
728
729
|
transcriptReplay: "fork" | "restored" | undefined;
|
|
729
730
|
} | {
|
|
730
|
-
providerMessageIds:
|
|
731
|
+
providerMessageIds: _$_tangle_network_sdk_session_persistence0.ProviderMessageIds | undefined;
|
|
731
732
|
cached: undefined;
|
|
732
733
|
sessionId: string;
|
|
733
734
|
providerSessionId: string | undefined;
|
|
@@ -747,7 +748,7 @@ declare abstract class CliProviderAdapterBase<TConfig extends CliProviderConfig
|
|
|
747
748
|
}): Promise<{
|
|
748
749
|
preparedInput: {
|
|
749
750
|
promptText: string;
|
|
750
|
-
persistedParts:
|
|
751
|
+
persistedParts: _$_tangle_network_sdk_session_persistence0.MessagePart[];
|
|
751
752
|
attachments: PreparedAttachment[];
|
|
752
753
|
};
|
|
753
754
|
promptText: string;
|
|
@@ -795,7 +796,7 @@ declare abstract class AcpProviderAdapterBase<TConfig extends AcpBridgeConfig, T
|
|
|
795
796
|
}, turn: TTurn): string;
|
|
796
797
|
protected abstract promptBlocks(input: AgentExecutionInput, prepared: {
|
|
797
798
|
promptText: string;
|
|
798
|
-
persistedParts: MessagePart
|
|
799
|
+
persistedParts: MessagePart[];
|
|
799
800
|
attachments: PreparedAttachment[];
|
|
800
801
|
}, turn: TTurn): AcpContentBlock[];
|
|
801
802
|
protected spawnBridge(request: AcpBridgeSpawn): RpcBridge;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sdk-provider-cli-base",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.17",
|
|
4
4
|
"description": "Base adapter for CLI-based AI agent providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
25
25
|
"@tangle-network/agent-core": "^1.0.3",
|
|
26
26
|
"@tangle-network/agent-interface": "^5.10.20",
|
|
27
|
-
"@tangle-network/agent-profile-materialize": "1.1.
|
|
27
|
+
"@tangle-network/agent-profile-materialize": "1.1.40",
|
|
28
28
|
"@tangle-network/agent-trace-contract": "^2.2.0",
|
|
29
|
-
"@tangle-network/cli-agent-registry": "0.15.
|
|
30
|
-
"@tangle-network/sdk-cli-runner": "0.3.
|
|
31
|
-
"@tangle-network/sdk-session-persistence": "0.7.
|
|
29
|
+
"@tangle-network/cli-agent-registry": "0.15.29",
|
|
30
|
+
"@tangle-network/sdk-cli-runner": "0.3.9",
|
|
31
|
+
"@tangle-network/sdk-session-persistence": "0.7.5",
|
|
32
32
|
"zod": "4.6.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"registry": "https://registry.npmjs.org"
|
|
44
44
|
},
|
|
45
45
|
"tangleRelease": {
|
|
46
|
-
"sourceSha": "
|
|
47
|
-
"mergedAt": "2026-11-
|
|
46
|
+
"sourceSha": "c031351b28b2abaf6d63d36376b76cb6b5728fd9",
|
|
47
|
+
"mergedAt": "2026-11-05T17:09:47-08:00"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown",
|
|
51
|
-
"test": "vitest run",
|
|
52
|
-
"test:watch": "vitest",
|
|
51
|
+
"test": "vitest run --config ../../vitest.config.cjs",
|
|
52
|
+
"test:watch": "vitest --config ../../vitest.config.cjs",
|
|
53
53
|
"lint": "biome check --write .",
|
|
54
54
|
"check-types": "node ../../scripts/tsc-native.mjs --noEmit"
|
|
55
55
|
}
|