@tangle-network/agent-app 0.60.255 → 0.60.257

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.
@@ -49,7 +49,7 @@ import {
49
49
  createSandboxRunTool,
50
50
  escalationHints,
51
51
  flattenHistory
52
- } from "../chunk-4GCPADYG.js";
52
+ } from "../chunk-3Q2JI5MQ.js";
53
53
  import "../chunk-4LBCTFBP.js";
54
54
  import "../chunk-DSMGS4IV.js";
55
55
  import "../chunk-5BJHKQ33.js";
@@ -3487,29 +3487,21 @@ async function driveSandboxTurn(shell, box, message, options) {
3487
3487
  }
3488
3488
 
3489
3489
  // src/sandbox/access.ts
3490
- async function syncSandboxMemberAdd(box, seam, userId, role) {
3491
- try {
3492
- await box.permissions.add({ userId, role: seam.roleToSandboxRole(role) });
3493
- return ok(void 0);
3494
- } catch (err) {
3495
- return fail(err);
3490
+ var SandboxMemberPermissionsUnsupportedError = class extends Error {
3491
+ code = "sandbox_member_permissions_unsupported";
3492
+ constructor() {
3493
+ super("Sandbox member permissions are not served by the platform; @tangle-network/sandbox 0.64 removed box.permissions.");
3494
+ this.name = "SandboxMemberPermissionsUnsupportedError";
3496
3495
  }
3496
+ };
3497
+ async function syncSandboxMemberAdd(_box, _seam, _userId, _role) {
3498
+ return fail(new SandboxMemberPermissionsUnsupportedError());
3497
3499
  }
3498
- async function syncSandboxMemberRemove(box, userId) {
3499
- try {
3500
- await box.permissions.remove(userId, { preserveHomeDir: true });
3501
- return ok(void 0);
3502
- } catch (err) {
3503
- return fail(err);
3504
- }
3500
+ async function syncSandboxMemberRemove(_box, _userId) {
3501
+ return fail(new SandboxMemberPermissionsUnsupportedError());
3505
3502
  }
3506
- async function syncSandboxMemberRole(box, seam, userId, role) {
3507
- try {
3508
- await box.permissions.update(userId, { role: seam.roleToSandboxRole(role) });
3509
- return ok(void 0);
3510
- } catch (err) {
3511
- return fail(err);
3512
- }
3503
+ async function syncSandboxMemberRole(_box, _seam, _userId, _role) {
3504
+ return fail(new SandboxMemberPermissionsUnsupportedError());
3513
3505
  }
3514
3506
  function secretStoreFromClient(shell) {
3515
3507
  const client = getClient(shell);
@@ -3670,4 +3662,4 @@ export {
3670
3662
  deleteSecret,
3671
3663
  mintSandboxScopedToken
3672
3664
  };
3673
- //# sourceMappingURL=chunk-4GCPADYG.js.map
3665
+ //# sourceMappingURL=chunk-3Q2JI5MQ.js.map