@nexus-cortex/types 4.53.0 → 4.54.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.
@@ -0,0 +1,57 @@
1
+ /**
2
+ * ArtifactManifest — canon's SECOND canonical record kind (beside Message).
3
+ *
4
+ * Capability artifacts (skills, agents, MCP configs, plugins) and the intent
5
+ * layer (projects, plans) are versioned document/config BUNDLES, not temporal
6
+ * event streams — they deliberately do NOT use the Message schema
7
+ * (CANON_CROSS_HARNESS_PLAN.md §27p). A manifest records identity, version,
8
+ * blob-addressed content, provenance, and per-harness compatibility; the
9
+ * artifact bytes live in the store's top-level taxonomy dirs and are
10
+ * translated between harnesses by per-kind LAYOUT adapters (skill-dir ↔
11
+ * skill-dir, agent-frontmatter ↔ agent-frontmatter) — never by the gateway
12
+ * Message conversion.
13
+ *
14
+ * plans/projects carry a thin `state` field (doc-snapshot + state — fork 1;
15
+ * NOT a full event log).
16
+ */
17
+ export type ArtifactKind = 'skill' | 'agent' | 'mcp' | 'plugin' | 'project' | 'plan';
18
+ export interface ArtifactProvenance {
19
+ /** Originating harness or source label (claude-code, nexus-cortex, agents-dir, workspace). */
20
+ harness: string;
21
+ /** Absolute or store-relative path of the native artifact root captured from. */
22
+ native: string;
23
+ /** git blob SHA (12 hex) of the primary content file — content-stable version anchor. */
24
+ ref: string;
25
+ }
26
+ export interface ArtifactContentEntry {
27
+ /** Artifact-relative file path. */
28
+ path: string;
29
+ /** git blob SHA (12 hex) of the file content (sha1 of "blob <len>\0" + bytes). */
30
+ ref: string;
31
+ bytes: number;
32
+ }
33
+ export interface ArtifactManifest {
34
+ /** Record-kind discriminator vs canon Message records. */
35
+ recordKind: 'artifact-manifest';
36
+ kind: ArtifactKind;
37
+ /** Stable slug (skill/agent name, config id, project label). */
38
+ id: string;
39
+ /** Content-derived version = the primary file's blob ref (changes iff content changes). */
40
+ version: string;
41
+ name?: string;
42
+ description?: string;
43
+ /** ISO capture time (when this manifest snapshot was taken). */
44
+ timestamp: string;
45
+ /** Artifact-relative path of the defining file (SKILL.md, <agent>.md, config json). */
46
+ primary: string;
47
+ /** Blob-addressed content listing (bytes live under the store taxonomy dir). */
48
+ content: ArtifactContentEntry[];
49
+ provenance: ArtifactProvenance;
50
+ /** Per-harness compatibility, when known. */
51
+ harnessCompat?: Record<string, 'supported' | 'degraded' | 'absent'>;
52
+ /** Per-kind layout-adapter hints (target paths per harness, transform notes). */
53
+ projectionRules?: Record<string, unknown>;
54
+ /** plans/projects only: thin task/status state — doc-snapshot + state, never an event log. */
55
+ state?: Record<string, unknown>;
56
+ }
57
+ //# sourceMappingURL=artifacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAErF,MAAM,WAAW,kBAAkB;IACjC,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,yFAAyF;IACzF,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,UAAU,EAAE,mBAAmB,CAAC;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,gEAAgE;IAChE,EAAE,EAAE,MAAM,CAAC;IACX,2FAA2F;IAC3F,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,OAAO,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,UAAU,EAAE,kBAAkB,CAAC;IAC/B,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC,CAAC;IACpE,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * ArtifactManifest — canon's SECOND canonical record kind (beside Message).
3
+ *
4
+ * Capability artifacts (skills, agents, MCP configs, plugins) and the intent
5
+ * layer (projects, plans) are versioned document/config BUNDLES, not temporal
6
+ * event streams — they deliberately do NOT use the Message schema
7
+ * (CANON_CROSS_HARNESS_PLAN.md §27p). A manifest records identity, version,
8
+ * blob-addressed content, provenance, and per-harness compatibility; the
9
+ * artifact bytes live in the store's top-level taxonomy dirs and are
10
+ * translated between harnesses by per-kind LAYOUT adapters (skill-dir ↔
11
+ * skill-dir, agent-frontmatter ↔ agent-frontmatter) — never by the gateway
12
+ * Message conversion.
13
+ *
14
+ * plans/projects carry a thin `state` field (doc-snapshot + state — fork 1;
15
+ * NOT a full event log).
16
+ */
17
+ export {};
18
+ //# sourceMappingURL=artifacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"}
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@
14
14
  */
15
15
  export * from './tools';
16
16
  export * from './messages';
17
+ export * from './artifacts';
17
18
  export * from './session';
18
19
  export * from './models';
19
20
  export * from './adapters';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAG5B,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@
16
16
  export * from './tools';
17
17
  // Export all message-related types
18
18
  export * from './messages';
19
+ export * from './artifacts';
19
20
  // Export all session-related types
20
21
  export * from './session';
21
22
  // Export all model-related types
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,gCAAgC;AAChC,cAAc,SAAS,CAAC;AAExB,mCAAmC;AACnC,cAAc,YAAY,CAAC;AAE3B,mCAAmC;AACnC,cAAc,WAAW,CAAC;AAE1B,iCAAiC;AACjC,cAAc,UAAU,CAAC;AAEzB,mCAAmC;AACnC,cAAc,YAAY,CAAC;AAE3B,oCAAoC;AACpC,cAAc,YAAY,CAAC;AAE3B,mCAAmC;AACnC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,gCAAgC;AAChC,cAAc,SAAS,CAAC;AAExB,mCAAmC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAE5B,mCAAmC;AACnC,cAAc,WAAW,CAAC;AAE1B,iCAAiC;AACjC,cAAc,UAAU,CAAC;AAEzB,mCAAmC;AACnC,cAAc,YAAY,CAAC;AAE3B,oCAAoC;AACpC,cAAc,YAAY,CAAC;AAE3B,mCAAmC;AACnC,cAAc,cAAc,CAAC"}
@@ -72,5 +72,28 @@ export interface CanonicalMessage {
72
72
  /** Additional metadata */
73
73
  [key: string]: unknown;
74
74
  };
75
+ /**
76
+ * J-space state channel (JSPACE_STATE_CHANNEL_PLAN.md S1) — the agent's
77
+ * per-turn "state of mind" in canonical cluster space, tied to the
78
+ * canonical history. Optional and non-breaking by construction. Assistant
79
+ * turns only. Inline `summary` keeps the store light; full per-token
80
+ * trajectories ride the blob tier via `trajectoryRef` (R2 / git-LFS,
81
+ * encrypted-at-rest for repo-backed canon). State trails are partial model
82
+ * internals — P5-style gate before ANY public exposure.
83
+ */
84
+ jspaceState?: JSpaceState;
85
+ }
86
+ /** Per-turn j-space state annotation (see CanonicalMessage.jspaceState). */
87
+ export interface JSpaceState {
88
+ /** Model + lens-fit version (fit-once-cache identity). */
89
+ lensId: string;
90
+ /** Cluster-taxonomy version — a new basis is a new league table (D20). */
91
+ basisVersion: string;
92
+ /** Per-turn cluster activation vector — small, inline. */
93
+ summary: number[];
94
+ /** Blob ref (R2 / git-LFS) for the full per-token trajectory. */
95
+ trajectoryRef?: string;
96
+ /** Chaperone cross-checks, when present. */
97
+ agreement?: Record<string, unknown>;
75
98
  }
76
99
  //# sourceMappingURL=messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WA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CAAC;IAGF,QAAQ,CAAC,EAAE;QACT,uCAAuC;QACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAE1B,qCAAqC;QACrC,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB,kBAAkB;QAClB,KAAK,CAAC,EAAE,UAAU,CAAC;QAEnB,kBAAkB;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,kDAAkD;QAClD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;QAEzB,oDAAoD;QACpD,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB,yCAAyC;QACzC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAE/B,0BAA0B;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IAEF;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,4EAA4E;AAC5E,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/types",
3
- "version": "4.53.0",
3
+ "version": "4.54.1",
4
4
  "description": "Shared TypeScript types for Nexus Cortex - breaks circular dependency between core and executors",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",