@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
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "format": "memorix-metadata/1",
3
- "agentId": "ops",
3
+ "agentId": "opx",
4
4
  "version": "0.1.0",
5
5
  "agents": [
6
6
  {
7
- "id": "ops",
7
+ "id": "opx",
8
8
  "name": "Ops",
9
9
  "parentId": "missing-parent"
10
10
  }
@@ -136,11 +136,11 @@
136
136
  }
137
137
  },
138
138
  {
139
- "id": "procedures",
140
- "name": "Procedures",
139
+ "id": "playbooks",
140
+ "name": "Playbooks",
141
141
  "dataCategory": "knowledge",
142
142
  "abstractTypes": [
143
- "Procedures"
143
+ "Playbooks"
144
144
  ],
145
145
  "contentTypes": [
146
146
  {
@@ -191,8 +191,8 @@
191
191
  "category": "entity"
192
192
  },
193
193
  {
194
- "id": "Procedures",
195
- "name": "Procedures",
194
+ "id": "Playbooks",
195
+ "name": "Playbooks",
196
196
  "meaning": "Reusable operational knowledge / playbooks",
197
197
  "category": "knowledge"
198
198
  },
@@ -212,7 +212,7 @@
212
212
  "contractors"
213
213
  ],
214
214
  "union": true,
215
- "notes": "People = Employees ∪ Contractors. No abstract records exist."
215
+ "notes": "People = Employees \u222a Contractors. No abstract records exist."
216
216
  },
217
217
  {
218
218
  "id": "work-items-concrete",
@@ -223,10 +223,10 @@
223
223
  "union": false
224
224
  },
225
225
  {
226
- "id": "procedures-concrete",
227
- "abstractType": "Procedures",
226
+ "id": "playbooks-concrete",
227
+ "abstractType": "Playbooks",
228
228
  "concreteObjectTypes": [
229
- "procedures"
229
+ "playbooks"
230
230
  ],
231
231
  "union": false
232
232
  },
@@ -258,28 +258,28 @@
258
258
  "id": "from-source-assignee",
259
259
  "kind": "source-field",
260
260
  "sourcePath": "assigneeId",
261
- "notes": "ops-source work-items.assigneeId resolves across employees and contractors"
261
+ "notes": "opx-source work-items.assigneeId resolves across employees and contractors"
262
262
  }
263
263
  ]
264
264
  },
265
265
  {
266
- "id": "work-items-use-procedures",
267
- "name": "Work items use procedures",
268
- "meaning": "A work item follows one or more reusable procedures",
266
+ "id": "work-items-use-playbooks",
267
+ "name": "Work items use playbooks",
268
+ "meaning": "A work item follows one or more reusable playbooks",
269
269
  "directionality": "directed",
270
270
  "from": {
271
271
  "abstractType": "WorkItems",
272
- "path": "usedProcedures"
272
+ "path": "usedPlaybooks"
273
273
  },
274
274
  "to": {
275
- "abstractType": "Procedures",
275
+ "abstractType": "Playbooks",
276
276
  "path": "usedByWorkItems"
277
277
  },
278
278
  "discoveryRules": [
279
279
  {
280
- "id": "from-source-procedure-ids",
280
+ "id": "from-source-playbook-ids",
281
281
  "kind": "source-field",
282
- "sourcePath": "procedureIds"
282
+ "sourcePath": "playbookIds"
283
283
  }
284
284
  ]
285
285
  },
@@ -349,8 +349,8 @@
349
349
  ],
350
350
  "mappings": [
351
351
  {
352
- "id": "ops-source-employees-to-raw",
353
- "sourceId": "ops-source",
352
+ "id": "opx-source-employees-to-raw",
353
+ "sourceId": "opx-source",
354
354
  "endpoint": "/employees",
355
355
  "objectType": "employees",
356
356
  "contentType": "raw",
@@ -364,8 +364,8 @@
364
364
  "purpose": "source"
365
365
  },
366
366
  {
367
- "id": "ops-source-work-items-to-raw",
368
- "sourceId": "ops-source",
367
+ "id": "opx-source-work-items-to-raw",
368
+ "sourceId": "opx-source",
369
369
  "endpoint": "/work-items",
370
370
  "objectType": "work-items",
371
371
  "contentType": "raw",
@@ -379,8 +379,8 @@
379
379
  "purpose": "source"
380
380
  },
381
381
  {
382
- "id": "ops-source-work-item-context",
383
- "sourceId": "ops-source",
382
+ "id": "opx-source-work-item-context",
383
+ "sourceId": "opx-source",
384
384
  "endpoint": "/work-items/:id/context",
385
385
  "objectType": "work-items",
386
386
  "contentType": "context",
@@ -395,7 +395,7 @@
395
395
  "purpose": "source"
396
396
  },
397
397
  {
398
- "id": "ops-people-abstract-title",
398
+ "id": "opx-people-abstract-title",
399
399
  "purpose": "abstract",
400
400
  "abstractType": "People",
401
401
  "objectType": "employees",
@@ -408,7 +408,7 @@
408
408
  }
409
409
  },
410
410
  {
411
- "id": "ops-work-items-completion-priority",
411
+ "id": "opx-work-items-completion-priority",
412
412
  "purpose": "completion",
413
413
  "objectType": "work-items",
414
414
  "contentType": "snapshots",
@@ -422,7 +422,7 @@
422
422
  ],
423
423
  "views": [
424
424
  {
425
- "id": "ops-work-items-list",
425
+ "id": "opx-work-items-list",
426
426
  "kind": "list",
427
427
  "objectType": "work-items",
428
428
  "title": "Work items",
@@ -433,7 +433,7 @@
433
433
  ]
434
434
  },
435
435
  {
436
- "id": "ops-work-items-item",
436
+ "id": "opx-work-items-item",
437
437
  "kind": "item",
438
438
  "objectType": "work-items",
439
439
  "title": "Work item",
@@ -446,7 +446,7 @@
446
446
  ]
447
447
  },
448
448
  {
449
- "id": "ops-people-list",
449
+ "id": "opx-people-list",
450
450
  "kind": "list",
451
451
  "abstractType": "People",
452
452
  "title": "People",
@@ -457,7 +457,7 @@
457
457
  ]
458
458
  },
459
459
  {
460
- "id": "ops-work-item-expand-people",
460
+ "id": "opx-work-item-expand-people",
461
461
  "kind": "relationship-expansion",
462
462
  "objectType": "work-items",
463
463
  "relationshipDefinitionId": "people-assigned-to-work-items",
@@ -466,80 +466,80 @@
466
466
  ],
467
467
  "writes": [
468
468
  {
469
- "id": "ops-employees-snapshots",
469
+ "id": "opx-employees-snapshots",
470
470
  "objectType": "employees",
471
471
  "contentType": "snapshots",
472
472
  "identity": {
473
473
  "primaryKind": "employeeId",
474
- "issuer": "ops-source"
474
+ "issuer": "opx-source"
475
475
  }
476
476
  },
477
477
  {
478
- "id": "ops-contractors-snapshots",
478
+ "id": "opx-contractors-snapshots",
479
479
  "objectType": "contractors",
480
480
  "contentType": "snapshots",
481
481
  "identity": {
482
482
  "primaryKind": "contractorId",
483
- "issuer": "ops-source"
483
+ "issuer": "opx-source"
484
484
  }
485
485
  },
486
486
  {
487
- "id": "ops-work-items-snapshots",
487
+ "id": "opx-work-items-snapshots",
488
488
  "objectType": "work-items",
489
489
  "contentType": "snapshots",
490
490
  "identity": {
491
491
  "primaryKind": "workItemId",
492
- "issuer": "ops-source"
492
+ "issuer": "opx-source"
493
493
  }
494
494
  },
495
495
  {
496
- "id": "ops-procedures-snapshots",
497
- "objectType": "procedures",
496
+ "id": "opx-playbooks-snapshots",
497
+ "objectType": "playbooks",
498
498
  "contentType": "snapshots",
499
499
  "identity": {
500
- "primaryKind": "procedureId",
501
- "issuer": "ops-source"
500
+ "primaryKind": "playbookId",
501
+ "issuer": "opx-source"
502
502
  }
503
503
  },
504
504
  {
505
- "id": "ops-activity-events-snapshots",
505
+ "id": "opx-activity-events-snapshots",
506
506
  "objectType": "activity-events",
507
507
  "contentType": "snapshots",
508
508
  "identity": {
509
509
  "primaryKind": "activityEventId",
510
- "issuer": "ops-source"
510
+ "issuer": "opx-source"
511
511
  }
512
512
  }
513
513
  ],
514
514
  "sources": [
515
515
  {
516
- "id": "ops-source",
517
- "name": "Fieldstone ops fixture source",
518
- "kind": "rest-fixture",
519
- "baseUrlEnv": "OPS_SOURCE_URL",
520
- "defaultBaseUrl": "http://127.0.0.1:7099",
521
- "credentialRef": "ops-source-local",
516
+ "id": "opx-source",
517
+ "name": "Opx-service",
518
+ "kind": "rest",
519
+ "baseUrlEnv": "OPX_SOURCE_URL",
520
+ "defaultBaseUrl": "http://127.0.0.1:5102",
521
+ "credentialRef": "opx-source-local",
522
522
  "endpoints": [
523
523
  "/employees",
524
524
  "/contractors",
525
525
  "/work-items",
526
526
  "/activity-events",
527
- "/procedures",
527
+ "/playbooks",
528
528
  "/work-items/:id/context"
529
529
  ]
530
530
  }
531
531
  ],
532
532
  "pipelines": [
533
533
  {
534
- "id": "ops-knowledge-pull",
535
- "name": "Scheduled knowledge pull from ops-source",
534
+ "id": "opx-knowledge-pull",
535
+ "name": "Scheduled knowledge pull from opx-source",
536
536
  "trigger": "scheduled",
537
537
  "mode": "knowledge",
538
538
  "steps": [
539
539
  {
540
540
  "id": "pull",
541
541
  "kind": "memory-pull",
542
- "sourceId": "ops-source"
542
+ "sourceId": "opx-source"
543
543
  },
544
544
  {
545
545
  "id": "land-raw",
@@ -556,13 +556,13 @@
556
556
  {
557
557
  "id": "normalize-svc",
558
558
  "kind": "invoke-service",
559
- "serviceId": "ops-normalize"
559
+ "serviceId": "opx-normalize"
560
560
  },
561
561
  {
562
562
  "id": "complete",
563
563
  "kind": "completion",
564
- "serviceId": "ops-completion",
565
- "mappingId": "ops-work-items-completion-priority",
564
+ "serviceId": "opx-completion",
565
+ "mappingId": "opx-work-items-completion-priority",
566
566
  "completionPolicy": {
567
567
  "mode": "fill-missing",
568
568
  "maxFields": 20
@@ -571,7 +571,7 @@
571
571
  ]
572
572
  },
573
573
  {
574
- "id": "ops-context-pull",
574
+ "id": "opx-context-pull",
575
575
  "name": "On-demand work-item context pull",
576
576
  "trigger": "on-demand",
577
577
  "mode": "context",
@@ -579,7 +579,7 @@
579
579
  {
580
580
  "id": "pull",
581
581
  "kind": "memory-pull",
582
- "sourceId": "ops-source"
582
+ "sourceId": "opx-source"
583
583
  },
584
584
  {
585
585
  "id": "land-raw",
@@ -596,7 +596,7 @@
596
596
  ]
597
597
  },
598
598
  {
599
- "id": "ops-relationship-build",
599
+ "id": "opx-relationship-build",
600
600
  "name": "Discover and write lightweight relationships",
601
601
  "trigger": "explicit",
602
602
  "steps": [
@@ -615,7 +615,7 @@
615
615
  ]
616
616
  },
617
617
  {
618
- "id": "ops-analysis",
618
+ "id": "opx-analysis",
619
619
  "name": "Work-item analysis sibling",
620
620
  "trigger": "explicit",
621
621
  "steps": [
@@ -631,7 +631,7 @@
631
631
  ]
632
632
  },
633
633
  {
634
- "id": "ops-workflow",
634
+ "id": "opx-workflow",
635
635
  "name": "Work-item workflow sibling",
636
636
  "trigger": "explicit",
637
637
  "steps": [
@@ -649,8 +649,8 @@
649
649
  ],
650
650
  "schedules": [
651
651
  {
652
- "id": "ops-knowledge-hourly",
653
- "pipelineId": "ops-knowledge-pull",
652
+ "id": "opx-knowledge-hourly",
653
+ "pipelineId": "opx-knowledge-pull",
654
654
  "cron": "0 * * * *",
655
655
  "timezone": "UTC",
656
656
  "enabled": true
@@ -658,7 +658,7 @@
658
658
  ],
659
659
  "services": [
660
660
  {
661
- "id": "ops-normalize",
661
+ "id": "opx-normalize",
662
662
  "name": "Normalize records",
663
663
  "description": "Logical normalize capability for ops knowledge pull",
664
664
  "capabilities": [
@@ -667,13 +667,13 @@
667
667
  "inputs": [
668
668
  {
669
669
  "id": "raw-records",
670
- "schemaRef": "memorix-record/raw"
670
+ "abstractType": "People"
671
671
  }
672
672
  ],
673
673
  "outputs": [
674
674
  {
675
675
  "id": "normalized-records",
676
- "schemaRef": "memorix-record/snapshots"
676
+ "abstractType": "People"
677
677
  }
678
678
  ],
679
679
  "invocation": {
@@ -682,7 +682,7 @@
682
682
  }
683
683
  },
684
684
  {
685
- "id": "ops-completion",
685
+ "id": "opx-completion",
686
686
  "name": "Field completion",
687
687
  "capabilities": [
688
688
  "completion"
@@ -690,13 +690,13 @@
690
690
  "inputs": [
691
691
  {
692
692
  "id": "snapshot",
693
- "schemaRef": "memorix-record/snapshots"
693
+ "abstractType": "People"
694
694
  }
695
695
  ],
696
696
  "outputs": [
697
697
  {
698
698
  "id": "completed",
699
- "schemaRef": "memorix-record/snapshots"
699
+ "abstractType": "People"
700
700
  }
701
701
  ],
702
702
  "invocation": {