@agenticprimitives/content-primitives 1.0.0-alpha.10 → 1.0.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticprimitives/content-primitives",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "Verifiable Content Substrate SDK: name, resolve, commit, entitlement-gate, and cite off-platform content controlled by third-party rights holders. Owns CanonicalLocus / CorpusManifest / ContentDescriptor / CitationAssertion / Entitlement (FRBR-aligned), deterministic locusId, Merkle corpus commitments, and issuer-signature verification. Content-agnostic — no vertical/faith vocabulary, no content text (ADR-0033).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "viem": "^2.52.2",
40
- "@agenticprimitives/types": "1.0.0-alpha.9",
41
- "@agenticprimitives/verifiable-credentials": "0.0.0-alpha.6"
40
+ "@agenticprimitives/types": "1.0.0-alpha.10",
41
+ "@agenticprimitives/verifiable-credentials": "0.0.0-alpha.7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.7.0",
package/dist/jcs.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare function canonicalize(value: unknown): unknown;
2
- /** Canonical JSON string of `value` (sorted keys, undefined omitted). */
3
- export declare function jcsString(value: unknown): string;
4
- //# sourceMappingURL=jcs.d.ts.map
package/dist/jcs.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"jcs.d.ts","sourceRoot":"","sources":["../src/jcs.ts"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYpD;AAED,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEhD"}
package/dist/jcs.js DELETED
@@ -1,25 +0,0 @@
1
- // Deterministic, sorted-key canonical JSON (JCS-style). Sufficient for our
2
- // records (string/hex/number/bool fields); not a full RFC 8785 number
3
- // normalizer — keep numeric fields integer-valued. Used for both the canonical
4
- // locus id and the descriptor signing digest so hashing is stable regardless of
5
- // key insertion order.
6
- export function canonicalize(value) {
7
- if (Array.isArray(value))
8
- return value.map(canonicalize);
9
- if (value && typeof value === 'object') {
10
- const out = {};
11
- for (const k of Object.keys(value).sort()) {
12
- const v = value[k];
13
- if (v === undefined)
14
- continue; // omit undefined so optional fields don't shift the hash
15
- out[k] = canonicalize(v);
16
- }
17
- return out;
18
- }
19
- return value;
20
- }
21
- /** Canonical JSON string of `value` (sorted keys, undefined omitted). */
22
- export function jcsString(value) {
23
- return JSON.stringify(canonicalize(value));
24
- }
25
- //# sourceMappingURL=jcs.js.map
package/dist/jcs.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"jcs.js","sourceRoot":"","sources":["../src/jcs.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,sEAAsE;AACtE,+EAA+E;AAC/E,gFAAgF;AAChF,uBAAuB;AAEvB,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACzD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,GAAG,GAA4B,EAAE,CAAC;QACxC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAgC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;YACrE,MAAM,CAAC,GAAI,KAAiC,CAAC,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,KAAK,SAAS;gBAAE,SAAS,CAAC,yDAAyD;YACxF,GAAG,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC"}