@tangle-network/agent-provider-tangle 0.4.10 → 0.5.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/dist/index.d.ts +9 -2
- package/dist/index.js +10 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BackendType, CreateSandboxOptions, ExecResult as SandboxExecResult, PromptOptions, PromptResult, SandboxEvent } from "@tangle-network/sandbox";
|
|
2
2
|
import { type AgentEnvironmentCapabilities, type AgentEnvironmentProvider, type CreateAgentEnvironmentInput } from "@tangle-network/agent-interface/environment-provider";
|
|
3
|
-
import type { InputPart } from "@tangle-network/agent-interface";
|
|
3
|
+
import type { HarnessType, InputPart } from "@tangle-network/agent-interface";
|
|
4
4
|
import { type TangleExactProcessOptions } from "./exact-process.js";
|
|
5
5
|
export type { TangleExactProcessOptions } from "./exact-process.js";
|
|
6
6
|
export interface SandboxClientLike {
|
|
@@ -116,4 +116,11 @@ export interface TangleProviderOptions {
|
|
|
116
116
|
exactProcess?: TangleExactProcessOptions;
|
|
117
117
|
}
|
|
118
118
|
export declare function createTangleProvider(options: TangleProviderOptions): AgentEnvironmentProvider;
|
|
119
|
-
|
|
119
|
+
/**
|
|
120
|
+
* @param harness The harness the sandbox will materialize the profile with. The prompt intents are
|
|
121
|
+
* that harness's, not this adapter's: forwarding the whole profile on the wire makes both fields
|
|
122
|
+
* *expressible*, but the sandbox's materializer refuses the intent its harness has no control for
|
|
123
|
+
* (opencode has no replacement, codex and gemini no addition). Omit it and both intents declare
|
|
124
|
+
* `false` — an adapter that cannot name its harness cannot promise either one.
|
|
125
|
+
*/
|
|
126
|
+
export declare function defaultTangleSandboxCapabilities(harness?: HarnessType): AgentEnvironmentCapabilities;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash, randomUUID } from "node:crypto";
|
|
2
2
|
import { AgentEnvironmentCapabilitiesSchema, } from "@tangle-network/agent-interface/environment-provider";
|
|
3
|
-
import { AgentRunControlRefSchema, ContextTransferReceiptSchema, } from "@tangle-network/agent-interface";
|
|
3
|
+
import { AgentRunControlRefSchema, ContextTransferReceiptSchema, harnessSystemPromptIntents, } from "@tangle-network/agent-interface";
|
|
4
4
|
import { createTangleExactProcessProvider, } from "./exact-process.js";
|
|
5
5
|
export function createTangleProvider(options) {
|
|
6
6
|
const providerName = options.name ?? "tangle-sandbox";
|
|
@@ -646,11 +646,18 @@ function sessionStatusFromUnknown(status) {
|
|
|
646
646
|
return status;
|
|
647
647
|
return statusFromUnknown(status);
|
|
648
648
|
}
|
|
649
|
-
|
|
649
|
+
/**
|
|
650
|
+
* @param harness The harness the sandbox will materialize the profile with. The prompt intents are
|
|
651
|
+
* that harness's, not this adapter's: forwarding the whole profile on the wire makes both fields
|
|
652
|
+
* *expressible*, but the sandbox's materializer refuses the intent its harness has no control for
|
|
653
|
+
* (opencode has no replacement, codex and gemini no addition). Omit it and both intents declare
|
|
654
|
+
* `false` — an adapter that cannot name its harness cannot promise either one.
|
|
655
|
+
*/
|
|
656
|
+
export function defaultTangleSandboxCapabilities(harness) {
|
|
650
657
|
return {
|
|
651
658
|
profile: {
|
|
652
659
|
namedProfiles: true,
|
|
653
|
-
systemPrompt:
|
|
660
|
+
systemPrompt: harnessSystemPromptIntents(harness),
|
|
654
661
|
instructions: true,
|
|
655
662
|
tools: true,
|
|
656
663
|
permissions: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-provider-tangle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"LICENSE"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tangle-network/agent-interface": "0.
|
|
34
|
+
"@tangle-network/agent-interface": "0.44.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@tangle-network/sandbox": ">=0.17.0 <1.0.0"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/node": "25.6.0",
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
48
|
"vitest": "^4.1.5",
|
|
49
|
-
"@tangle-network/agent-provider-testkit": "0.5.
|
|
49
|
+
"@tangle-network/agent-provider-testkit": "0.5.4"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsc -p tsconfig.json",
|