@tangle-network/agent-provider-tangle 5.0.4 → 5.0.6
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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/tangle-contract-safety.d.ts +2 -0
- package/dist/tangle-contract-safety.js +4 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @tangle-network/agent-provider-tangle
|
|
2
2
|
|
|
3
3
|
Wraps `@tangle-network/sandbox` as an `AgentEnvironmentProvider`.
|
|
4
|
-
The Sandbox peer range is `>=0.
|
|
4
|
+
The Sandbox peer range is `>=1.0.151 <2.0.0`. Sandbox 1.0.141 cannot deliver a profile whose files exceed one gateway request when a turn carries it: its file-mount delivery fails reading its upload manifest. 1.0.151 delivers it.
|
|
5
5
|
|
|
6
6
|
Terminal `result` and `done` events use the Sandbox SDK's `projectAgentTerminalRecord` summary. Cumulative tool history stays in native evidence; bounded approval identity survives projection, and malformed or conflicting approval sources fail closed. Terminal events omit the duplicate raw `providerEvent` payload.
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { TangleExactProcessOptions } from "./tangle-types.js";
|
|
2
|
-
export { JsonBoundError, MAX_INLINE_PAYLOAD_BYTES, MAX_PAYLOAD_STRING_BYTES, MAX_TOTAL_PAYLOAD_BYTES, } from "./tangle-contract-safety.js";
|
|
2
|
+
export { createProfileBoundViolation, JsonBoundError, MAX_INLINE_PAYLOAD_BYTES, MAX_PAYLOAD_STRING_BYTES, MAX_TOTAL_PAYLOAD_BYTES, } from "./tangle-contract-safety.js";
|
|
3
3
|
export type { JsonBoundRule, JsonBoundViolation } from "./tangle-contract-safety.js";
|
|
4
4
|
export * from "./tangle-types.js";
|
|
5
5
|
export { createTangleProvider } from "./tangle-provider.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { JsonBoundError, MAX_INLINE_PAYLOAD_BYTES, MAX_PAYLOAD_STRING_BYTES, MAX_TOTAL_PAYLOAD_BYTES, } from "./tangle-contract-safety.js";
|
|
1
|
+
export { createProfileBoundViolation, JsonBoundError, MAX_INLINE_PAYLOAD_BYTES, MAX_PAYLOAD_STRING_BYTES, MAX_TOTAL_PAYLOAD_BYTES, } from "./tangle-contract-safety.js";
|
|
2
2
|
export * from "./tangle-types.js";
|
|
3
3
|
export { createTangleProvider } from "./tangle-provider.js";
|
|
4
4
|
export { TangleDispatchNotAdmittedError } from "./tangle-session-control.js";
|
|
@@ -97,6 +97,8 @@ export declare const PROFILE_AT_BACKEND_PROFILE: ProfileLocation;
|
|
|
97
97
|
*/
|
|
98
98
|
export declare function firstJsonBoundViolation(value: unknown, profileAt?: ProfileLocation): JsonBoundViolation | undefined;
|
|
99
99
|
export declare function isBoundedJson(value: unknown, profileAt?: ProfileLocation): boolean;
|
|
100
|
+
/** The first bound a create profile breaks, as `createTangleProvider` checks it before create; undefined when it fits. */
|
|
101
|
+
export declare function createProfileBoundViolation(profile: unknown): JsonBoundViolation | undefined;
|
|
100
102
|
/**
|
|
101
103
|
* One line naming the rule, where it broke, what was measured, and the limit — and never the
|
|
102
104
|
* value. Profile and metadata strings carry prompt text, mounted briefs, and through `env`,
|
|
@@ -260,6 +260,10 @@ export function firstJsonBoundViolation(value, profileAt) {
|
|
|
260
260
|
export function isBoundedJson(value, profileAt) {
|
|
261
261
|
return firstJsonBoundViolation(value, profileAt) === undefined;
|
|
262
262
|
}
|
|
263
|
+
/** The first bound a create profile breaks, as `createTangleProvider` checks it before create; undefined when it fits. */
|
|
264
|
+
export function createProfileBoundViolation(profile) {
|
|
265
|
+
return firstJsonBoundViolation(profile, PROFILE_AT_ROOT);
|
|
266
|
+
}
|
|
263
267
|
/**
|
|
264
268
|
* One line naming the rule, where it broke, what was measured, and the limit — and never the
|
|
265
269
|
* value. Profile and metadata strings carry prompt text, mounted briefs, and through `env`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-provider-tangle",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@tangle-network/agent-interface": "^5.10.10"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tangle-network/sandbox": ">=1.0.
|
|
39
|
+
"@tangle-network/sandbox": ">=1.0.151 <2.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@tangle-network/sandbox": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@tangle-network/agent-provider-testkit": "0.12.
|
|
47
|
+
"@tangle-network/agent-provider-testkit": "0.12.4",
|
|
48
48
|
"@tangle-network/agent-runtime": "0.349.0",
|
|
49
|
-
"@tangle-network/sandbox": "1.0.
|
|
49
|
+
"@tangle-network/sandbox": "1.0.151",
|
|
50
50
|
"@types/node": "26.6.5",
|
|
51
51
|
"typescript": "6.0.3",
|
|
52
52
|
"vitest": "5.0.5"
|