@principal-ai/principal-view-core 0.28.12 → 0.28.13

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,35 @@
1
+ "use strict";
2
+ /**
3
+ * Subsystem Graph Types
4
+ *
5
+ * Two layers — do not conflate them:
6
+ *
7
+ * 1. **Portable document** (`SubsystemGraphDocument`) — the shareable standard.
8
+ * Schema: `schemas/subsystem-graph.schema.json`
9
+ * (`https://principal-ai.dev/schemas/subsystem-graph.schema.json`).
10
+ *
11
+ * 2. **Hydrated envelope** (`SubsystemGraphHydrated`) — portable document plus
12
+ * host/machine binding (local roots, provenance, store ids, verification).
13
+ * Used by viewers and stores; not part of the portable standard.
14
+ *
15
+ * Ontology: construct = what a node is, framework + stereotype = which
16
+ * framework pattern it plays, role = where it sits, process = where it runs.
17
+ * `symbol` is the code identity; `name` is the display label.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.isSubsystemGraphDocument = void 0;
21
+ /**
22
+ * Type guard: true when the value plausibly conforms to a portable
23
+ * subsystem graph. Shallow check — full validation belongs to the schema /
24
+ * host validator.
25
+ */
26
+ function isSubsystemGraphDocument(value) {
27
+ if (!value || typeof value !== 'object')
28
+ return false;
29
+ const v = value;
30
+ return (typeof v.title === 'string' &&
31
+ Array.isArray(v.components) &&
32
+ Array.isArray(v.edges));
33
+ }
34
+ exports.isSubsystemGraphDocument = isSubsystemGraphDocument;
35
+ //# sourceMappingURL=subsystem-graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subsystem-graph.js","sourceRoot":"","sources":["../../src/types/subsystem-graph.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAwTH;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,KAAc;IACrD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,MAAM,CAAC,GAAG,KAIT,CAAC;IACF,OAAO,CACL,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ;QAC3B,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;QAC3B,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CACvB,CAAC;AACJ,CAAC;AAZD,4DAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ai/principal-view-core",
3
- "version": "0.28.12",
3
+ "version": "0.28.13",
4
4
  "description": "Core logic and types for graph-based principal view framework",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -56,11 +56,11 @@
56
56
  "zod": "3.22.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@principal-ai/agent-monitoring": "^0.3.31",
59
+ "@principal-ai/agent-monitoring": "^0.3.43",
60
60
  "@principal-ai/codebase-composition": "^0.2.43"
61
61
  },
62
62
  "devDependencies": {
63
- "@principal-ai/agent-monitoring": "^0.3.35",
63
+ "@principal-ai/agent-monitoring": "^0.3.43",
64
64
  "@principal-ai/codebase-composition": "^0.2.43",
65
65
  "@principal-ai/principal-view-core": "0.24.10",
66
66
  "@types/better-sqlite3": "^7.6.13",
@@ -1,10 +1,12 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://principal-ai.dev/schemas/auxiliary.manifest.schema.json",
4
4
  "title": "Auxiliary Manifest",
5
5
  "description": "Catalogs project regions outside the OTEL telemetry surface (docs, .github, etc.). Lives at .principal-views/auxiliary.manifest.json.",
6
6
  "type": "object",
7
- "required": ["areas"],
7
+ "required": [
8
+ "areas"
9
+ ],
8
10
  "additionalProperties": false,
9
11
  "properties": {
10
12
  "$schema": {
@@ -14,13 +16,19 @@
14
16
  "areas": {
15
17
  "type": "array",
16
18
  "description": "Project areas — folders or files that support the project but don't emit OTEL telemetry.",
17
- "items": { "$ref": "#/definitions/projectArea" }
19
+ "items": {
20
+ "$ref": "#/$defs/projectArea"
21
+ }
18
22
  }
19
23
  },
20
- "definitions": {
24
+ "$defs": {
21
25
  "projectArea": {
22
26
  "type": "object",
23
- "required": ["name", "paths", "description"],
27
+ "required": [
28
+ "name",
29
+ "paths",
30
+ "description"
31
+ ],
24
32
  "additionalProperties": false,
25
33
  "properties": {
26
34
  "name": {