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