@tangle-network/sdk-provider-cli-base 0.13.0 → 0.13.1
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 +7 -8
- package/package.json +10 -6
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,7 @@ 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
|
|
9
|
-
import { MessagePart, MessageStore, PersistedMessage, PersistedSession, SessionStore, readProviderMessageIds } from "@tangle-network/sdk-session-persistence";
|
|
8
|
+
import { MessagePart as MessagePart$1, MessageStore, PersistedMessage, PersistedSession, SessionStore, readProviderMessageIds } from "@tangle-network/sdk-session-persistence";
|
|
10
9
|
import { ProviderLogger } from "@tangle-network/cli-agent-registry";
|
|
11
10
|
import { NATIVE_SESSION_CONTRACTS } from "@tangle-network/cli-agent-registry/native-session-contracts";
|
|
12
11
|
import { DEFAULT_INTERACTION_MCP_SERVER_NAME, InteractionMcpServer as InteractionMcpServer$1, InteractionMcpServerConfig as InteractionMcpServerConfig$1, interactionMcpToolName } from "@tangle-network/agent-core/interactions/mcp";
|
|
@@ -513,7 +512,7 @@ declare abstract class CliAdapterProfile<TConfig extends CliProviderConfig = Cli
|
|
|
513
512
|
protected profilePlanMayFillClearedEnvironmentVariable(_name: string, _value: string): boolean;
|
|
514
513
|
protected preparePromptInput(parts: InputPart[], workspaceRoot: string, sessionId: string, options?: Parameters<typeof preparePromptInputParts>[3]): Promise<{
|
|
515
514
|
promptText: string;
|
|
516
|
-
persistedParts:
|
|
515
|
+
persistedParts: MessagePart[];
|
|
517
516
|
attachments: PreparedAttachment[];
|
|
518
517
|
}>;
|
|
519
518
|
/** Attachment kinds this adapter forwards natively via buildExecArgs (argv flag / stdin content block) instead of the `[Image: ...]` / `[File: ...]` text marker. */
|
|
@@ -584,7 +583,7 @@ declare abstract class CliAdapterSessions<TConfig extends CliProviderConfig = Cl
|
|
|
584
583
|
}): Promise<string>;
|
|
585
584
|
getMessages(options: GetMessagesOptions): Promise<BackendMessage[]>;
|
|
586
585
|
protected toBackendMessage(msg: PersistedMessage): BackendMessage;
|
|
587
|
-
protected buildAssistantParts(state: ExecutionState): MessagePart[];
|
|
586
|
+
protected buildAssistantParts(state: ExecutionState): MessagePart$1[];
|
|
588
587
|
protected extractToolInvocations(state: ExecutionState): AgentExecutionResult["toolInvocations"];
|
|
589
588
|
/**
|
|
590
589
|
* Names of tools this provider substitutes for a model tool call it could
|
|
@@ -720,13 +719,13 @@ declare abstract class CliProviderAdapterBase<TConfig extends CliProviderConfig
|
|
|
720
719
|
/** Report and record a failed turn, then throw its error. */
|
|
721
720
|
private failCliTurn;
|
|
722
721
|
protected openTurnSession(input: AgentExecutionInput, recorder: SdkHostServices["recorder"], onEvent: ((event: StreamEvent) => void) | undefined): Promise<{
|
|
723
|
-
providerMessageIds:
|
|
722
|
+
providerMessageIds: any;
|
|
724
723
|
cached: AgentExecutionResult;
|
|
725
724
|
sessionId: string;
|
|
726
725
|
providerSessionId: string | undefined;
|
|
727
726
|
transcriptReplay: "fork" | "restored" | undefined;
|
|
728
727
|
} | {
|
|
729
|
-
providerMessageIds:
|
|
728
|
+
providerMessageIds: any;
|
|
730
729
|
cached: undefined;
|
|
731
730
|
sessionId: string;
|
|
732
731
|
providerSessionId: string | undefined;
|
|
@@ -746,7 +745,7 @@ declare abstract class CliProviderAdapterBase<TConfig extends CliProviderConfig
|
|
|
746
745
|
}): Promise<{
|
|
747
746
|
preparedInput: {
|
|
748
747
|
promptText: string;
|
|
749
|
-
persistedParts:
|
|
748
|
+
persistedParts: readProviderMessageIds[];
|
|
750
749
|
attachments: PreparedAttachment[];
|
|
751
750
|
};
|
|
752
751
|
promptText: string;
|
|
@@ -794,7 +793,7 @@ declare abstract class AcpProviderAdapterBase<TConfig extends AcpBridgeConfig, T
|
|
|
794
793
|
}, turn: TTurn): string;
|
|
795
794
|
protected abstract promptBlocks(input: AgentExecutionInput, prepared: {
|
|
796
795
|
promptText: string;
|
|
797
|
-
persistedParts: MessagePart[];
|
|
796
|
+
persistedParts: MessagePart$1[];
|
|
798
797
|
attachments: PreparedAttachment[];
|
|
799
798
|
}, turn: TTurn): AcpContentBlock[];
|
|
800
799
|
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.1",
|
|
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.0",
|
|
26
26
|
"@tangle-network/agent-interface": "^5.10.13",
|
|
27
|
-
"
|
|
28
|
-
"@tangle-network/agent-
|
|
29
|
-
"@tangle-network/cli-
|
|
30
|
-
"@tangle-network/sdk-
|
|
31
|
-
"
|
|
27
|
+
"@tangle-network/agent-profile-materialize": "1.1.25",
|
|
28
|
+
"@tangle-network/cli-agent-registry": "0.15.1",
|
|
29
|
+
"@tangle-network/sdk-cli-runner": "0.3.6",
|
|
30
|
+
"@tangle-network/sdk-session-persistence": "0.7.2",
|
|
31
|
+
"zod": "4.6.6"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "~2.5.15",
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"access": "public",
|
|
42
42
|
"registry": "https://registry.npmjs.org"
|
|
43
43
|
},
|
|
44
|
+
"tangleRelease": {
|
|
45
|
+
"sourceSha": "40d962aa0db50ba5bf53f55ac724694e1b13acde",
|
|
46
|
+
"mergedAt": "2026-11-02T10:03:01-08:00"
|
|
47
|
+
},
|
|
44
48
|
"scripts": {
|
|
45
49
|
"build": "tsdown",
|
|
46
50
|
"test": "vitest run --passWithNoTests",
|