@agenticprimitives/content-primitives 1.0.0-alpha.26 → 1.0.0-alpha.28

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @agenticprimitives/content-primitives
2
2
 
3
+ > Part of **[Agentic Primitives](https://agenticprimitives.dev)** — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. [Developer kit](https://github.com/agentictrustlabs/agentic-primitives) · [All packages](https://agenticprimitives.dev/developers)
4
+
3
5
  The verifiable content substrate — name, resolve, commit, entitlement-gate, and cite content that lives off-platform and is controlled by third-party rights holders.
4
6
 
5
7
  Agents increasingly act on content they do not own: quoting a licensed text, citing a canonical passage, gating access to a rights-held corpus. The naive approaches all fail — copy the text and you violate the license; trust the platform and the citation is unverifiable; mint every passage an identity and the identity layer drowns. This package takes the third path: content is **never an agent and never stored**. A unit of content gets a deterministic, scheme-anchored address; an issuer (who IS a Smart Agent) signs a commitment to it; readers verify the signature, evaluate the entitlement, and cite the result — all without the text ever entering the substrate ([ADR-0033](../../docs/architecture/decisions/0033-content-agnostic-verifiable-content-firewall.md)).
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@agenticprimitives/content-primitives",
3
- "version": "1.0.0-alpha.26",
3
+ "version": "1.0.0-alpha.28",
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
+ "homepage": "https://agenticprimitives.dev",
6
+ "bugs": {
7
+ "url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
8
+ },
9
+ "author": {
10
+ "name": "Agentic Trust Labs",
11
+ "url": "https://agenticprimitives.dev"
12
+ },
5
13
  "license": "MIT",
6
14
  "repository": {
7
15
  "type": "git",
8
16
  "url": "git+https://github.com/agentictrustlabs/agenticprimitives.git",
9
17
  "directory": "packages/content-primitives"
10
18
  },
11
- "homepage": "https://github.com/agentictrustlabs/agenticprimitives/tree/master/packages/content-primitives",
12
- "bugs": {
13
- "url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
14
- },
15
19
  "type": "module",
16
20
  "main": "./dist/index.js",
17
21
  "types": "./dist/index.d.ts",
@@ -37,8 +41,8 @@
37
41
  },
38
42
  "peerDependencies": {
39
43
  "viem": "^2.52.2",
40
- "@agenticprimitives/types": "1.0.0-alpha.25",
41
- "@agenticprimitives/verifiable-credentials": "0.0.0-alpha.22"
44
+ "@agenticprimitives/types": "1.0.0-alpha.27",
45
+ "@agenticprimitives/verifiable-credentials": "0.0.0-alpha.24"
42
46
  },
43
47
  "devDependencies": {
44
48
  "@types/node": "^22.7.0",
@@ -50,7 +54,12 @@
50
54
  "merkle",
51
55
  "provenance",
52
56
  "citation",
53
- "agentic"
57
+ "agentic",
58
+ "agentic-primitives",
59
+ "agenticprimitives",
60
+ "ai-agents",
61
+ "agent-authority",
62
+ "agentic-trust"
54
63
  ],
55
64
  "scripts": {
56
65
  "build": "tsc -p tsconfig.build.json",
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"}