@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
  },
@@ -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,65 +473,65 @@
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
  }
@@ -551,15 +551,15 @@
551
551
  ],
552
552
  "pipelines": [
553
553
  {
554
- "id": "ops-knowledge-pull",
555
- "name": "Scheduled knowledge pull from ops-source",
554
+ "id": "opx-knowledge-pull",
555
+ "name": "Scheduled knowledge pull from opx-source",
556
556
  "trigger": "scheduled",
557
557
  "mode": "knowledge",
558
558
  "steps": [
559
559
  {
560
560
  "id": "pull",
561
561
  "kind": "memory-pull",
562
- "sourceId": "ops-source"
562
+ "sourceId": "opx-source"
563
563
  },
564
564
  {
565
565
  "id": "land-raw",
@@ -576,13 +576,13 @@
576
576
  {
577
577
  "id": "normalize-svc",
578
578
  "kind": "invoke-service",
579
- "serviceId": "ops-normalize"
579
+ "serviceId": "opx-normalize"
580
580
  },
581
581
  {
582
582
  "id": "complete",
583
583
  "kind": "completion",
584
- "serviceId": "ops-completion",
585
- "mappingId": "ops-work-items-completion-priority",
584
+ "serviceId": "opx-completion",
585
+ "mappingId": "opx-work-items-completion-priority",
586
586
  "completionPolicy": {
587
587
  "mode": "fill-missing",
588
588
  "maxFields": 20
@@ -591,7 +591,7 @@
591
591
  ]
592
592
  },
593
593
  {
594
- "id": "ops-context-pull",
594
+ "id": "opx-context-pull",
595
595
  "name": "On-demand work-item context pull",
596
596
  "trigger": "on-demand",
597
597
  "mode": "context",
@@ -599,7 +599,7 @@
599
599
  {
600
600
  "id": "pull",
601
601
  "kind": "memory-pull",
602
- "sourceId": "ops-source"
602
+ "sourceId": "opx-source"
603
603
  },
604
604
  {
605
605
  "id": "land-raw",
@@ -616,7 +616,7 @@
616
616
  ]
617
617
  },
618
618
  {
619
- "id": "ops-relationship-build",
619
+ "id": "opx-relationship-build",
620
620
  "name": "Discover and write lightweight relationships",
621
621
  "trigger": "explicit",
622
622
  "steps": [
@@ -635,7 +635,7 @@
635
635
  ]
636
636
  },
637
637
  {
638
- "id": "ops-analysis",
638
+ "id": "opx-analysis",
639
639
  "name": "Work-item analysis sibling",
640
640
  "trigger": "explicit",
641
641
  "steps": [
@@ -651,7 +651,7 @@
651
651
  ]
652
652
  },
653
653
  {
654
- "id": "ops-workflow",
654
+ "id": "opx-workflow",
655
655
  "name": "Work-item workflow sibling",
656
656
  "trigger": "explicit",
657
657
  "steps": [
@@ -669,8 +669,8 @@
669
669
  ],
670
670
  "schedules": [
671
671
  {
672
- "id": "ops-knowledge-hourly",
673
- "pipelineId": "ops-knowledge-pull",
672
+ "id": "opx-knowledge-hourly",
673
+ "pipelineId": "opx-knowledge-pull",
674
674
  "cron": "0 * * * *",
675
675
  "timezone": "UTC",
676
676
  "enabled": true