@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,19 +1,19 @@
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": "Operations (generic parent)",
9
9
  "description": "Complete generic parent agent for ordinary operational work. Permanent Memorix acceptance pack.",
10
10
  "parentId": null
11
11
  },
12
12
  {
13
- "id": "project-ops",
14
- "name": "Project Operations (child of ops)",
15
- "description": "Inheritance smoke agent. Extends ops without replacing core definitions.",
16
- "parentId": "ops"
13
+ "id": "project-opx",
14
+ "name": "Project Operations (child of opx)",
15
+ "description": "Inheritance smoke agent. Extends opx without replacing core definitions.",
16
+ "parentId": "opx"
17
17
  }
18
18
  ],
19
19
  "objectTypes": [
@@ -143,11 +143,11 @@
143
143
  }
144
144
  },
145
145
  {
146
- "id": "procedures",
147
- "name": "Procedures",
146
+ "id": "playbooks",
147
+ "name": "Playbooks",
148
148
  "dataCategory": "knowledge",
149
149
  "abstractTypes": [
150
- "Procedures"
150
+ "Playbooks"
151
151
  ],
152
152
  "contentTypes": [
153
153
  {
@@ -198,8 +198,8 @@
198
198
  "category": "entity"
199
199
  },
200
200
  {
201
- "id": "Procedures",
202
- "name": "Procedures",
201
+ "id": "Playbooks",
202
+ "name": "Playbooks",
203
203
  "meaning": "Reusable operational knowledge / playbooks",
204
204
  "category": "knowledge"
205
205
  },
@@ -219,7 +219,7 @@
219
219
  "contractors"
220
220
  ],
221
221
  "union": true,
222
- "notes": "People = Employees ∪ Contractors. No abstract records exist."
222
+ "notes": "People = Employees \u222a Contractors. No abstract records exist."
223
223
  },
224
224
  {
225
225
  "id": "work-items-concrete",
@@ -230,10 +230,10 @@
230
230
  "union": false
231
231
  },
232
232
  {
233
- "id": "procedures-concrete",
234
- "abstractType": "Procedures",
233
+ "id": "playbooks-concrete",
234
+ "abstractType": "Playbooks",
235
235
  "concreteObjectTypes": [
236
- "procedures"
236
+ "playbooks"
237
237
  ],
238
238
  "union": false
239
239
  },
@@ -265,28 +265,28 @@
265
265
  "id": "from-source-assignee",
266
266
  "kind": "source-field",
267
267
  "sourcePath": "assigneeId",
268
- "notes": "ops-source work-items.assigneeId resolves across employees and contractors"
268
+ "notes": "opx-source work-items.assigneeId resolves across employees and contractors"
269
269
  }
270
270
  ]
271
271
  },
272
272
  {
273
- "id": "work-items-use-procedures",
274
- "name": "Work items use procedures",
275
- "meaning": "A work item follows one or more reusable procedures",
273
+ "id": "work-items-use-playbooks",
274
+ "name": "Work items use playbooks",
275
+ "meaning": "A work item follows one or more reusable playbooks",
276
276
  "directionality": "directed",
277
277
  "from": {
278
278
  "abstractType": "WorkItems",
279
- "path": "usedProcedures"
279
+ "path": "usedPlaybooks"
280
280
  },
281
281
  "to": {
282
- "abstractType": "Procedures",
282
+ "abstractType": "Playbooks",
283
283
  "path": "usedByWorkItems"
284
284
  },
285
285
  "discoveryRules": [
286
286
  {
287
- "id": "from-source-procedure-ids",
287
+ "id": "from-source-playbook-ids",
288
288
  "kind": "source-field",
289
- "sourcePath": "procedureIds"
289
+ "sourcePath": "playbookIds"
290
290
  }
291
291
  ]
292
292
  },
@@ -356,8 +356,8 @@
356
356
  ],
357
357
  "mappings": [
358
358
  {
359
- "id": "ops-source-employees-to-raw",
360
- "sourceId": "ops-source",
359
+ "id": "opx-source-employees-to-raw",
360
+ "sourceId": "opx-source",
361
361
  "endpoint": "/employees",
362
362
  "objectType": "employees",
363
363
  "contentType": "raw",
@@ -371,8 +371,8 @@
371
371
  "purpose": "source"
372
372
  },
373
373
  {
374
- "id": "ops-source-work-items-to-raw",
375
- "sourceId": "ops-source",
374
+ "id": "opx-source-work-items-to-raw",
375
+ "sourceId": "opx-source",
376
376
  "endpoint": "/work-items",
377
377
  "objectType": "work-items",
378
378
  "contentType": "raw",
@@ -386,8 +386,8 @@
386
386
  "purpose": "source"
387
387
  },
388
388
  {
389
- "id": "ops-source-work-item-context",
390
- "sourceId": "ops-source",
389
+ "id": "opx-source-work-item-context",
390
+ "sourceId": "opx-source",
391
391
  "endpoint": "/work-items/:id/context",
392
392
  "objectType": "work-items",
393
393
  "contentType": "context",
@@ -402,7 +402,7 @@
402
402
  "purpose": "source"
403
403
  },
404
404
  {
405
- "id": "ops-people-abstract-title",
405
+ "id": "opx-people-abstract-title",
406
406
  "purpose": "abstract",
407
407
  "abstractType": "People",
408
408
  "objectType": "employees",
@@ -415,7 +415,7 @@
415
415
  }
416
416
  },
417
417
  {
418
- "id": "ops-work-items-completion-priority",
418
+ "id": "opx-work-items-completion-priority",
419
419
  "purpose": "completion",
420
420
  "objectType": "work-items",
421
421
  "contentType": "snapshots",
@@ -429,7 +429,7 @@
429
429
  ],
430
430
  "views": [
431
431
  {
432
- "id": "ops-work-items-list",
432
+ "id": "opx-work-items-list",
433
433
  "kind": "list",
434
434
  "objectType": "work-items",
435
435
  "title": "Work items",
@@ -440,7 +440,7 @@
440
440
  ]
441
441
  },
442
442
  {
443
- "id": "ops-work-items-item",
443
+ "id": "opx-work-items-item",
444
444
  "kind": "item",
445
445
  "objectType": "work-items",
446
446
  "title": "Work item",
@@ -453,7 +453,7 @@
453
453
  ]
454
454
  },
455
455
  {
456
- "id": "ops-people-list",
456
+ "id": "opx-people-list",
457
457
  "kind": "list",
458
458
  "abstractType": "People",
459
459
  "title": "People",
@@ -464,7 +464,7 @@
464
464
  ]
465
465
  },
466
466
  {
467
- "id": "ops-work-item-expand-people",
467
+ "id": "opx-work-item-expand-people",
468
468
  "kind": "relationship-expansion",
469
469
  "objectType": "work-items",
470
470
  "relationshipDefinitionId": "people-assigned-to-work-items",
@@ -473,80 +473,80 @@
473
473
  ],
474
474
  "writes": [
475
475
  {
476
- "id": "ops-employees-snapshots",
476
+ "id": "opx-employees-snapshots",
477
477
  "objectType": "employees",
478
478
  "contentType": "snapshots",
479
479
  "identity": {
480
480
  "primaryKind": "employeeId",
481
- "issuer": "ops-source"
481
+ "issuer": "opx-source"
482
482
  }
483
483
  },
484
484
  {
485
- "id": "ops-contractors-snapshots",
485
+ "id": "opx-contractors-snapshots",
486
486
  "objectType": "contractors",
487
487
  "contentType": "snapshots",
488
488
  "identity": {
489
489
  "primaryKind": "contractorId",
490
- "issuer": "ops-source"
490
+ "issuer": "opx-source"
491
491
  }
492
492
  },
493
493
  {
494
- "id": "ops-work-items-snapshots",
494
+ "id": "opx-work-items-snapshots",
495
495
  "objectType": "work-items",
496
496
  "contentType": "snapshots",
497
497
  "identity": {
498
498
  "primaryKind": "workItemId",
499
- "issuer": "ops-source"
499
+ "issuer": "opx-source"
500
500
  }
501
501
  },
502
502
  {
503
- "id": "ops-procedures-snapshots",
504
- "objectType": "procedures",
503
+ "id": "opx-playbooks-snapshots",
504
+ "objectType": "playbooks",
505
505
  "contentType": "snapshots",
506
506
  "identity": {
507
- "primaryKind": "procedureId",
508
- "issuer": "ops-source"
507
+ "primaryKind": "playbookId",
508
+ "issuer": "opx-source"
509
509
  }
510
510
  },
511
511
  {
512
- "id": "ops-activity-events-snapshots",
512
+ "id": "opx-activity-events-snapshots",
513
513
  "objectType": "activity-events",
514
514
  "contentType": "snapshots",
515
515
  "identity": {
516
516
  "primaryKind": "activityEventId",
517
- "issuer": "ops-source"
517
+ "issuer": "opx-source"
518
518
  }
519
519
  }
520
520
  ],
521
521
  "sources": [
522
522
  {
523
- "id": "ops-source",
524
- "name": "Fieldstone ops fixture source",
525
- "kind": "rest-fixture",
526
- "baseUrlEnv": "OPS_SOURCE_URL",
527
- "defaultBaseUrl": "http://127.0.0.1:7099",
528
- "credentialRef": "ops-source-local",
523
+ "id": "opx-source",
524
+ "name": "Opx-service",
525
+ "kind": "rest",
526
+ "baseUrlEnv": "OPX_SOURCE_URL",
527
+ "defaultBaseUrl": "http://127.0.0.1:5102",
528
+ "credentialRef": "opx-source-local",
529
529
  "endpoints": [
530
530
  "/employees",
531
531
  "/contractors",
532
532
  "/work-items",
533
533
  "/activity-events",
534
- "/procedures",
534
+ "/playbooks",
535
535
  "/work-items/:id/context"
536
536
  ]
537
537
  }
538
538
  ],
539
539
  "pipelines": [
540
540
  {
541
- "id": "ops-knowledge-pull",
542
- "name": "Scheduled knowledge pull from ops-source",
541
+ "id": "opx-knowledge-pull",
542
+ "name": "Scheduled knowledge pull from opx-source",
543
543
  "trigger": "scheduled",
544
544
  "mode": "knowledge",
545
545
  "steps": [
546
546
  {
547
547
  "id": "pull",
548
548
  "kind": "memory-pull",
549
- "sourceId": "ops-source"
549
+ "sourceId": "opx-source"
550
550
  },
551
551
  {
552
552
  "id": "land-raw",
@@ -563,13 +563,13 @@
563
563
  {
564
564
  "id": "normalize-svc",
565
565
  "kind": "invoke-service",
566
- "serviceId": "ops-normalize"
566
+ "serviceId": "opx-normalize"
567
567
  },
568
568
  {
569
569
  "id": "complete",
570
570
  "kind": "completion",
571
- "serviceId": "ops-completion",
572
- "mappingId": "ops-work-items-completion-priority",
571
+ "serviceId": "opx-completion",
572
+ "mappingId": "opx-work-items-completion-priority",
573
573
  "completionPolicy": {
574
574
  "mode": "fill-missing",
575
575
  "maxFields": 20
@@ -578,7 +578,7 @@
578
578
  ]
579
579
  },
580
580
  {
581
- "id": "ops-context-pull",
581
+ "id": "opx-context-pull",
582
582
  "name": "On-demand work-item context pull",
583
583
  "trigger": "on-demand",
584
584
  "mode": "context",
@@ -586,7 +586,7 @@
586
586
  {
587
587
  "id": "pull",
588
588
  "kind": "memory-pull",
589
- "sourceId": "ops-source"
589
+ "sourceId": "opx-source"
590
590
  },
591
591
  {
592
592
  "id": "land-raw",
@@ -603,7 +603,7 @@
603
603
  ]
604
604
  },
605
605
  {
606
- "id": "ops-relationship-build",
606
+ "id": "opx-relationship-build",
607
607
  "name": "Discover and write lightweight relationships",
608
608
  "trigger": "explicit",
609
609
  "steps": [
@@ -622,7 +622,7 @@
622
622
  ]
623
623
  },
624
624
  {
625
- "id": "ops-analysis",
625
+ "id": "opx-analysis",
626
626
  "name": "Work-item analysis sibling",
627
627
  "trigger": "explicit",
628
628
  "steps": [
@@ -638,7 +638,7 @@
638
638
  ]
639
639
  },
640
640
  {
641
- "id": "ops-workflow",
641
+ "id": "opx-workflow",
642
642
  "name": "Work-item workflow sibling",
643
643
  "trigger": "explicit",
644
644
  "steps": [
@@ -656,8 +656,8 @@
656
656
  ],
657
657
  "schedules": [
658
658
  {
659
- "id": "ops-knowledge-hourly",
660
- "pipelineId": "ops-knowledge-pull",
659
+ "id": "opx-knowledge-hourly",
660
+ "pipelineId": "opx-knowledge-pull",
661
661
  "cron": "0 * * * *",
662
662
  "timezone": "UTC",
663
663
  "enabled": true
@@ -670,7 +670,7 @@
670
670
  ],
671
671
  "services": [
672
672
  {
673
- "id": "ops-normalize",
673
+ "id": "opx-normalize",
674
674
  "name": "Normalize records",
675
675
  "description": "Logical normalize capability for ops knowledge pull",
676
676
  "capabilities": [
@@ -679,13 +679,13 @@
679
679
  "inputs": [
680
680
  {
681
681
  "id": "raw-records",
682
- "schemaRef": "memorix-record/raw"
682
+ "abstractType": "People"
683
683
  }
684
684
  ],
685
685
  "outputs": [
686
686
  {
687
687
  "id": "normalized-records",
688
- "schemaRef": "memorix-record/snapshots"
688
+ "abstractType": "People"
689
689
  }
690
690
  ],
691
691
  "invocation": {
@@ -694,7 +694,7 @@
694
694
  }
695
695
  },
696
696
  {
697
- "id": "ops-completion",
697
+ "id": "opx-completion",
698
698
  "name": "Field completion",
699
699
  "capabilities": [
700
700
  "completion"
@@ -702,13 +702,13 @@
702
702
  "inputs": [
703
703
  {
704
704
  "id": "snapshot",
705
- "schemaRef": "memorix-record/snapshots"
705
+ "abstractType": "People"
706
706
  }
707
707
  ],
708
708
  "outputs": [
709
709
  {
710
710
  "id": "completed",
711
- "schemaRef": "memorix-record/snapshots"
711
+ "abstractType": "People"
712
712
  }
713
713
  ],
714
714
  "invocation": {