@x12i/memorix-metadata 3.0.2 → 3.1.0

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.
Files changed (72) hide show
  1. package/README.md +10 -6
  2. package/dist/abstracts.d.ts +9 -3
  3. package/dist/abstracts.d.ts.map +1 -1
  4. package/dist/abstracts.js +70 -66
  5. package/dist/abstracts.js.map +1 -1
  6. package/dist/fold-bindings.d.ts +19 -0
  7. package/dist/fold-bindings.d.ts.map +1 -0
  8. package/dist/fold-bindings.js +103 -0
  9. package/dist/fold-bindings.js.map +1 -0
  10. package/dist/index.d.ts +7 -3
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +7 -3
  13. package/dist/index.js.map +1 -1
  14. package/dist/kind-fields.d.ts.map +1 -1
  15. package/dist/kind-fields.js +0 -1
  16. package/dist/kind-fields.js.map +1 -1
  17. package/dist/kinds.d.ts +1 -1
  18. package/dist/kinds.d.ts.map +1 -1
  19. package/dist/kinds.js +6 -11
  20. package/dist/kinds.js.map +1 -1
  21. package/dist/multi-agent-rule.d.ts +3 -3
  22. package/dist/multi-agent-rule.d.ts.map +1 -1
  23. package/dist/multi-agent-rule.js +7 -7
  24. package/dist/multi-agent-rule.js.map +1 -1
  25. package/dist/normalize.d.ts +3 -2
  26. package/dist/normalize.d.ts.map +1 -1
  27. package/dist/normalize.js +18 -5
  28. package/dist/normalize.js.map +1 -1
  29. package/dist/resolve.d.ts +14 -2
  30. package/dist/resolve.d.ts.map +1 -1
  31. package/dist/resolve.js +229 -133
  32. package/dist/resolve.js.map +1 -1
  33. package/dist/streams.d.ts +17 -0
  34. package/dist/streams.d.ts.map +1 -0
  35. package/dist/streams.js +76 -0
  36. package/dist/streams.js.map +1 -0
  37. package/dist/topology.d.ts +52 -0
  38. package/dist/topology.d.ts.map +1 -0
  39. package/dist/topology.js +348 -0
  40. package/dist/topology.js.map +1 -0
  41. package/dist/types.d.ts +133 -17
  42. package/dist/types.d.ts.map +1 -1
  43. package/dist/types.js +22 -2
  44. package/dist/types.js.map +1 -1
  45. package/dist/validate.d.ts.map +1 -1
  46. package/dist/validate.js +188 -64
  47. package/dist/validate.js.map +1 -1
  48. package/examples/custom-kinds/acme-ui-tabs.pack.json +2 -2
  49. package/examples/invalid/agent-classification.json +69 -69
  50. package/examples/invalid/broken-binding.json +69 -69
  51. package/examples/invalid/completion-mapping-with-exec-policy.json +65 -65
  52. package/examples/invalid/missing-parent.json +69 -69
  53. package/examples/invalid/operational-kind-root.json +73 -73
  54. package/examples/invalid/pipeline-unknown-service.json +62 -62
  55. package/examples/invalid/relationship-missing-rules.json +65 -65
  56. package/examples/invalid/relationship-with-storage.json +65 -65
  57. package/examples/invalid/service-with-secrets.json +66 -66
  58. package/examples/knowx/normalized/pack.json +1538 -0
  59. package/examples/{ops → opx}/normalized/pack.json +340 -322
  60. package/examples/opx/raw/abstract-types.json +244 -0
  61. package/examples/{ops → opx}/raw/agents.json +8 -8
  62. package/examples/opx/raw/object-types.json +101 -0
  63. package/examples/{ops → opx}/raw/pipelines-and-sources.json +79 -31
  64. package/examples/{ops → opx}/raw/relationship-definitions.json +17 -47
  65. package/examples/{ops → opx}/raw/view-definitions.json +7 -21
  66. package/examples/opx/raw/write-and-source-mappings.json +223 -0
  67. package/examples/{project-ops → project-opx}/normalized/pack.json +391 -299
  68. package/package.json +1 -1
  69. package/examples/ops/raw/abstract-bindings.json +0 -38
  70. package/examples/ops/raw/abstract-types.json +0 -28
  71. package/examples/ops/raw/object-types.json +0 -170
  72. package/examples/ops/raw/write-and-source-mappings.json +0 -108
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/memorix-metadata",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "description": "Canonical Memorix metadata contracts, effective multi-agent resolution, and metadata-only abstract unions (Phase 3).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,38 +0,0 @@
1
- {
2
- "bindings": [
3
- {
4
- "id": "people-employees-contractors",
5
- "abstractType": "People",
6
- "concreteObjectTypes": [
7
- "employees",
8
- "contractors"
9
- ],
10
- "union": true,
11
- "notes": "People = Employees ∪ Contractors. No abstract records exist."
12
- },
13
- {
14
- "id": "work-items-concrete",
15
- "abstractType": "WorkItems",
16
- "concreteObjectTypes": [
17
- "work-items"
18
- ],
19
- "union": false
20
- },
21
- {
22
- "id": "procedures-concrete",
23
- "abstractType": "Procedures",
24
- "concreteObjectTypes": [
25
- "procedures"
26
- ],
27
- "union": false
28
- },
29
- {
30
- "id": "activity-events-concrete",
31
- "abstractType": "ActivityEvents",
32
- "concreteObjectTypes": [
33
- "activity-events"
34
- ],
35
- "union": false
36
- }
37
- ]
38
- }
@@ -1,28 +0,0 @@
1
- {
2
- "abstractTypes": [
3
- {
4
- "id": "People",
5
- "name": "People",
6
- "meaning": "Employees and contractors who perform operational work",
7
- "category": "entity"
8
- },
9
- {
10
- "id": "WorkItems",
11
- "name": "Work Items",
12
- "meaning": "Units of operational work",
13
- "category": "entity"
14
- },
15
- {
16
- "id": "Procedures",
17
- "name": "Procedures",
18
- "meaning": "Reusable operational knowledge / playbooks",
19
- "category": "knowledge"
20
- },
21
- {
22
- "id": "ActivityEvents",
23
- "name": "Activity Events",
24
- "meaning": "Progress and activity reports about work items",
25
- "category": "event"
26
- }
27
- ]
28
- }
@@ -1,170 +0,0 @@
1
- {
2
- "objectTypes": [
3
- {
4
- "id": "employees",
5
- "name": "Employees",
6
- "dataCategory": "entity",
7
- "abstractTypes": [
8
- "People"
9
- ],
10
- "contentTypes": [
11
- {
12
- "id": "raw",
13
- "required": true
14
- },
15
- {
16
- "id": "snapshots",
17
- "required": true
18
- },
19
- {
20
- "id": "discovery",
21
- "discriminator": {
22
- "path": "data.discoveryType",
23
- "required": false,
24
- "defaultValue": "default"
25
- }
26
- },
27
- {
28
- "id": "analysis",
29
- "discriminator": {
30
- "path": "data.analysisType",
31
- "required": false,
32
- "defaultValue": "default"
33
- }
34
- },
35
- {
36
- "id": "relationships",
37
- "notes": "Candidate store shape until Gate G4"
38
- }
39
- ]
40
- },
41
- {
42
- "id": "contractors",
43
- "name": "Contractors",
44
- "dataCategory": "entity",
45
- "abstractTypes": [
46
- "People"
47
- ],
48
- "contentTypes": [
49
- {
50
- "id": "raw"
51
- },
52
- {
53
- "id": "snapshots"
54
- },
55
- {
56
- "id": "discovery",
57
- "discriminator": {
58
- "path": "data.discoveryType",
59
- "required": false
60
- }
61
- },
62
- {
63
- "id": "analysis",
64
- "discriminator": {
65
- "path": "data.analysisType",
66
- "required": false
67
- }
68
- },
69
- {
70
- "id": "relationships"
71
- }
72
- ]
73
- },
74
- {
75
- "id": "work-items",
76
- "name": "Work Items",
77
- "dataCategory": "entity",
78
- "abstractTypes": [
79
- "WorkItems"
80
- ],
81
- "contentTypes": [
82
- {
83
- "id": "raw"
84
- },
85
- {
86
- "id": "snapshots"
87
- },
88
- {
89
- "id": "discovery",
90
- "discriminator": {
91
- "path": "data.discoveryType",
92
- "required": false
93
- }
94
- },
95
- {
96
- "id": "analysis",
97
- "discriminator": {
98
- "path": "data.analysisType",
99
- "required": false,
100
- "defaultValue": "delivery-risk"
101
- }
102
- },
103
- {
104
- "id": "decisions",
105
- "discriminator": {
106
- "path": "data.decisionType",
107
- "required": false,
108
- "defaultValue": "priority"
109
- }
110
- },
111
- {
112
- "id": "workflow"
113
- },
114
- {
115
- "id": "context",
116
- "retention": "work-scoped-ttl"
117
- },
118
- {
119
- "id": "relationships"
120
- }
121
- ],
122
- "snapshotBuckets": {
123
- "analytics": "optional",
124
- "enrichment": "optional",
125
- "insights": "optional"
126
- }
127
- },
128
- {
129
- "id": "procedures",
130
- "name": "Procedures",
131
- "dataCategory": "knowledge",
132
- "abstractTypes": [
133
- "Procedures"
134
- ],
135
- "contentTypes": [
136
- {
137
- "id": "raw"
138
- },
139
- {
140
- "id": "snapshots",
141
- "notes": "Persistent knowledge content"
142
- },
143
- {
144
- "id": "relationships"
145
- }
146
- ],
147
- "retention": "persistent-knowledge"
148
- },
149
- {
150
- "id": "activity-events",
151
- "name": "Activity Events",
152
- "dataCategory": "event",
153
- "abstractTypes": [
154
- "ActivityEvents"
155
- ],
156
- "contentTypes": [
157
- {
158
- "id": "raw"
159
- },
160
- {
161
- "id": "snapshots",
162
- "notes": "Normalized event content"
163
- },
164
- {
165
- "id": "relationships"
166
- }
167
- ]
168
- }
169
- ]
170
- }
@@ -1,108 +0,0 @@
1
- {
2
- "writeDefinitions": [
3
- {
4
- "id": "ops-employees-snapshots",
5
- "objectType": "employees",
6
- "contentType": "snapshots",
7
- "identity": {
8
- "primaryKind": "employeeId",
9
- "issuer": "ops-source"
10
- }
11
- },
12
- {
13
- "id": "ops-contractors-snapshots",
14
- "objectType": "contractors",
15
- "contentType": "snapshots",
16
- "identity": {
17
- "primaryKind": "contractorId",
18
- "issuer": "ops-source"
19
- }
20
- },
21
- {
22
- "id": "ops-work-items-snapshots",
23
- "objectType": "work-items",
24
- "contentType": "snapshots",
25
- "identity": {
26
- "primaryKind": "workItemId",
27
- "issuer": "ops-source"
28
- }
29
- },
30
- {
31
- "id": "ops-procedures-snapshots",
32
- "objectType": "procedures",
33
- "contentType": "snapshots",
34
- "identity": {
35
- "primaryKind": "procedureId",
36
- "issuer": "ops-source"
37
- }
38
- },
39
- {
40
- "id": "ops-activity-events-snapshots",
41
- "objectType": "activity-events",
42
- "contentType": "snapshots",
43
- "identity": {
44
- "primaryKind": "activityEventId",
45
- "issuer": "ops-source"
46
- }
47
- }
48
- ],
49
- "sourceMappings": [
50
- {
51
- "id": "ops-source-employees-to-raw",
52
- "sourceId": "ops-source",
53
- "endpoint": "/employees",
54
- "objectType": "employees",
55
- "contentType": "raw",
56
- "mode": "knowledge",
57
- "map": {
58
- "data": {
59
- "op": "path",
60
- "path": "$"
61
- }
62
- }
63
- },
64
- {
65
- "id": "ops-source-work-items-to-raw",
66
- "sourceId": "ops-source",
67
- "endpoint": "/work-items",
68
- "objectType": "work-items",
69
- "contentType": "raw",
70
- "mode": "knowledge",
71
- "map": {
72
- "data": {
73
- "op": "path",
74
- "path": "$"
75
- }
76
- }
77
- },
78
- {
79
- "id": "ops-source-procedures-to-raw",
80
- "sourceId": "ops-source",
81
- "endpoint": "/procedures",
82
- "objectType": "procedures",
83
- "contentType": "raw",
84
- "mode": "knowledge",
85
- "map": {
86
- "data": {
87
- "op": "path",
88
- "path": "$"
89
- }
90
- }
91
- },
92
- {
93
- "id": "ops-source-work-item-context",
94
- "sourceId": "ops-source",
95
- "endpoint": "/work-items/:id/context",
96
- "objectType": "work-items",
97
- "contentType": "raw",
98
- "mode": "context",
99
- "trigger": "on-demand",
100
- "map": {
101
- "data": {
102
- "op": "path",
103
- "path": "$"
104
- }
105
- }
106
- }
107
- ]
108
- }