multicorn-shield 1.10.0 → 1.11.1

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/proxy.cjs CHANGED
@@ -224,6 +224,7 @@ async function fetchGrantedScopes(agentId, apiKey, baseUrl) {
224
224
  if (perm.revoked_at !== null) continue;
225
225
  if (perm.read) scopes.push({ service: perm.service, permissionLevel: "read" });
226
226
  if (perm.write) scopes.push({ service: perm.service, permissionLevel: "write" });
227
+ if (perm.delete === true) scopes.push({ service: perm.service, permissionLevel: "delete" });
227
228
  if (perm.execute) scopes.push({ service: perm.service, permissionLevel: "execute" });
228
229
  }
229
230
  return scopes;
@@ -289,6 +290,7 @@ function isValidLogLevel(value) {
289
290
  var PERMISSION_LEVELS = {
290
291
  Read: "read",
291
292
  Write: "write",
293
+ Delete: "delete",
292
294
  Execute: "execute",
293
295
  Publish: "publish",
294
296
  Create: "create"
package/dist/proxy.d.cts CHANGED
@@ -56,6 +56,8 @@ declare function extractActionFromToolName(toolName: string): string;
56
56
  *
57
57
  * - `read`: observe data without modification
58
58
  * - `write`: create or modify data
59
+ * - `delete`: destroy data (kept distinct from `write` so saving a file never
60
+ * implies the right to delete one; used by the hosted workspace filesystem)
59
61
  * - `execute`: trigger side-effects (e.g. send an email, make a payment)
60
62
  * - `publish`: make existing content publicly accessible (e.g. deploy, publish, make live)
61
63
  * - `create`: create new content that is immediately public (e.g. tweet, public commit, forum post)
@@ -63,6 +65,7 @@ declare function extractActionFromToolName(toolName: string): string;
63
65
  declare const PERMISSION_LEVELS: {
64
66
  readonly Read: "read";
65
67
  readonly Write: "write";
68
+ readonly Delete: "delete";
66
69
  readonly Execute: "execute";
67
70
  readonly Publish: "publish";
68
71
  readonly Create: "create";
package/dist/proxy.d.ts CHANGED
@@ -56,6 +56,8 @@ declare function extractActionFromToolName(toolName: string): string;
56
56
  *
57
57
  * - `read`: observe data without modification
58
58
  * - `write`: create or modify data
59
+ * - `delete`: destroy data (kept distinct from `write` so saving a file never
60
+ * implies the right to delete one; used by the hosted workspace filesystem)
59
61
  * - `execute`: trigger side-effects (e.g. send an email, make a payment)
60
62
  * - `publish`: make existing content publicly accessible (e.g. deploy, publish, make live)
61
63
  * - `create`: create new content that is immediately public (e.g. tweet, public commit, forum post)
@@ -63,6 +65,7 @@ declare function extractActionFromToolName(toolName: string): string;
63
65
  declare const PERMISSION_LEVELS: {
64
66
  readonly Read: "read";
65
67
  readonly Write: "write";
68
+ readonly Delete: "delete";
66
69
  readonly Execute: "execute";
67
70
  readonly Publish: "publish";
68
71
  readonly Create: "create";
package/dist/proxy.js CHANGED
@@ -222,6 +222,7 @@ async function fetchGrantedScopes(agentId, apiKey, baseUrl) {
222
222
  if (perm.revoked_at !== null) continue;
223
223
  if (perm.read) scopes.push({ service: perm.service, permissionLevel: "read" });
224
224
  if (perm.write) scopes.push({ service: perm.service, permissionLevel: "write" });
225
+ if (perm.delete === true) scopes.push({ service: perm.service, permissionLevel: "delete" });
225
226
  if (perm.execute) scopes.push({ service: perm.service, permissionLevel: "execute" });
226
227
  }
227
228
  return scopes;
@@ -287,6 +288,7 @@ function isValidLogLevel(value) {
287
288
  var PERMISSION_LEVELS = {
288
289
  Read: "read",
289
290
  Write: "write",
291
+ Delete: "delete",
290
292
  Execute: "execute",
291
293
  Publish: "publish",
292
294
  Create: "create"