@tangle-network/agent-provider-tangle 5.0.5 → 5.0.7
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
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`,
|