@tinycloud/sdk-core 2.11.0-beta.7 → 2.11.0-beta.8

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.
@@ -5859,10 +5859,6 @@ var import_sha2564 = require("@noble/hashes/sha256");
5859
5859
 
5860
5860
  // src/policy/signed-object.ts
5861
5861
  var import_ed255194 = require("@noble/curves/ed25519");
5862
- var import_viem3 = require("viem");
5863
-
5864
- // src/policy/capability.ts
5865
- var import_bootstrap = require("@tinycloud/bootstrap");
5866
5862
  var import_viem2 = require("viem");
5867
5863
 
5868
5864
  // src/policy/errors.ts
@@ -6061,33 +6057,11 @@ function assertUnicodeScalarString(value, path) {
6061
6057
  }
6062
6058
  }
6063
6059
 
6064
- // src/policy/capability.ts
6060
+ // src/policy/signed-object.ts
6065
6061
  var textEncoder2 = new TextEncoder();
6066
6062
  var objectHasOwn2 = Object.hasOwn ?? Object.prototype.hasOwnProperty.call.bind(
6067
6063
  Object.prototype.hasOwnProperty
6068
6064
  );
6069
- var CEILING_SERVICES = /* @__PURE__ */ new Set(["tinycloud.kv", "tinycloud.sql", "tinycloud.vfs"]);
6070
- var GRANTABLE_ACTIONS = /* @__PURE__ */ new Map();
6071
- for (const entry of import_bootstrap.CAPABILITY_REGISTRY) {
6072
- if (!CEILING_SERVICES.has(entry.service)) {
6073
- continue;
6074
- }
6075
- if (entry.aliasOf !== void 0 || entry.implies !== void 0 || entry.urn.endsWith("/*")) {
6076
- continue;
6077
- }
6078
- const existing = GRANTABLE_ACTIONS.get(entry.service);
6079
- if (existing === void 0) {
6080
- GRANTABLE_ACTIONS.set(entry.service, /* @__PURE__ */ new Set([entry.urn]));
6081
- continue;
6082
- }
6083
- existing.add(entry.urn);
6084
- }
6085
-
6086
- // src/policy/signed-object.ts
6087
- var textEncoder3 = new TextEncoder();
6088
- var objectHasOwn3 = Object.hasOwn ?? Object.prototype.hasOwnProperty.call.bind(
6089
- Object.prototype.hasOwnProperty
6090
- );
6091
6065
  function canonicalizeSignedObjectUnsigned(input) {
6092
6066
  return jcsCanonicalize(input);
6093
6067
  }