@tangle-network/agent-provider-tangle 3.6.12 → 4.0.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/tangle-provider.js +12 -0
- package/package.json +3 -3
package/dist/tangle-provider.js
CHANGED
|
@@ -46,6 +46,12 @@ export function createTangleProvider(options) {
|
|
|
46
46
|
? await options.capabilities()
|
|
47
47
|
: options.capabilities
|
|
48
48
|
: defaultTangleSandboxCapabilities(harness.success ? harness.data : undefined);
|
|
49
|
+
if (configured.create?.workspaceSnapshot === true) {
|
|
50
|
+
throw new Error("Tangle provider does not support portable workspace snapshots in this receiver deployment");
|
|
51
|
+
}
|
|
52
|
+
if (configured.contextTransfer?.attach === true) {
|
|
53
|
+
throw new Error("Tangle context transfer attachment is not qualified by this receiver deployment");
|
|
54
|
+
}
|
|
49
55
|
if (!exactProcess && configured.exactProcess) {
|
|
50
56
|
throw new Error("Tangle capabilities cannot advertise exactProcess without exactProcess configuration");
|
|
51
57
|
}
|
|
@@ -66,6 +72,9 @@ export function createTangleProvider(options) {
|
|
|
66
72
|
const resolveCapabilities = async () => narrowedProviderCapabilities(await resolveDeclaredCapabilities(options.defaultBackend));
|
|
67
73
|
const createRecords = new Map();
|
|
68
74
|
const createEnvironment = async (input) => {
|
|
75
|
+
if (input.workspace?.snapshot !== undefined) {
|
|
76
|
+
throw new Error("Tangle provider does not support portable workspace snapshots in this receiver deployment");
|
|
77
|
+
}
|
|
69
78
|
const parsedWorkspace = assertCreateInputShape(input);
|
|
70
79
|
input.signal?.throwIfAborted();
|
|
71
80
|
assertNoInlineSecretValues(input, parsedWorkspace);
|
|
@@ -297,6 +306,9 @@ export function createTangleProvider(options) {
|
|
|
297
306
|
...(options.client.get
|
|
298
307
|
? {
|
|
299
308
|
async get(id, operation) {
|
|
309
|
+
if (operation?.contextTransfer !== undefined) {
|
|
310
|
+
throw new Error("Tangle context transfer attachment is not qualified by this receiver deployment");
|
|
311
|
+
}
|
|
300
312
|
assertProviderOperationOptions(operation, "Tangle get");
|
|
301
313
|
boundedIdentifier(id, "Tangle environment id");
|
|
302
314
|
await resolveCapabilities();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-provider-tangle",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"dist/model-credential-capacity.d.ts"
|
|
129
129
|
],
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@tangle-network/agent-interface": "^
|
|
131
|
+
"@tangle-network/agent-interface": "^5.0.0"
|
|
132
132
|
},
|
|
133
133
|
"peerDependencies": {
|
|
134
134
|
"@tangle-network/sandbox": ">=0.60.27 <1.0.0"
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@tangle-network/agent-provider-testkit": "0.
|
|
142
|
+
"@tangle-network/agent-provider-testkit": "0.12.0",
|
|
143
143
|
"@tangle-network/agent-runtime": "0.292.3",
|
|
144
144
|
"@tangle-network/sandbox": "0.60.27",
|
|
145
145
|
"@types/node": "26.6.3",
|