@tangle-network/agent-provider-tangle 5.0.10 → 5.0.11

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.
@@ -21,15 +21,14 @@ function profileFileMountIssues(profile) {
21
21
  }];
22
22
  }
23
23
  }
24
- /** Sandbox's pre-box verdict where the SDK ships it; oversize only warns: this provider stages a large profile's files. */
24
+ /** Sandbox's pre-box verdict where the SDK ships it: create sends the whole profile, so oversize refuses too (a live 1.5 MB create answered 413). */
25
25
  function profileVerdictIssues(profile) {
26
26
  const verdict = Sandbox.validateProfileForCreate;
27
27
  const harness = typeof profile === "string" ? undefined : profile.harness;
28
28
  const result = verdict && harness ? verdict(profile, harness) : undefined;
29
29
  if (!result || result.ok || !result.error)
30
30
  return [];
31
- const code = result.error.code ?? "PROFILE_UNSUPPORTED";
32
- return [{ level: code === "PAYLOAD_TOO_LARGE" ? "warning" : "error", code, message: result.error.message }];
31
+ return [{ level: "error", code: result.error.code ?? "PROFILE_UNSUPPORTED", message: result.error.message }];
33
32
  }
34
33
  /** The provider's validateProfile: the Sandbox mount check and pre-box verdict, then any caller-supplied validator. */
35
34
  export function tangleProfileValidator(supplied) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-provider-tangle",
3
- "version": "5.0.10",
3
+ "version": "5.0.11",
4
4
  "description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
5
5
  "type": "module",
6
6
  "license": "MIT",