@x12i/memorix-metadata 3.0.2 → 3.0.3

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 (52) hide show
  1. package/README.md +6 -6
  2. package/dist/index.d.ts +4 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +4 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/kinds.js +1 -1
  7. package/dist/kinds.js.map +1 -1
  8. package/dist/multi-agent-rule.d.ts +3 -3
  9. package/dist/multi-agent-rule.d.ts.map +1 -1
  10. package/dist/multi-agent-rule.js +7 -7
  11. package/dist/multi-agent-rule.js.map +1 -1
  12. package/dist/normalize.d.ts +2 -2
  13. package/dist/normalize.d.ts.map +1 -1
  14. package/dist/normalize.js +13 -4
  15. package/dist/normalize.js.map +1 -1
  16. package/dist/resolve.d.ts +14 -2
  17. package/dist/resolve.d.ts.map +1 -1
  18. package/dist/resolve.js +216 -131
  19. package/dist/resolve.js.map +1 -1
  20. package/dist/streams.d.ts +17 -0
  21. package/dist/streams.d.ts.map +1 -0
  22. package/dist/streams.js +76 -0
  23. package/dist/streams.js.map +1 -0
  24. package/dist/types.d.ts +70 -2
  25. package/dist/types.d.ts.map +1 -1
  26. package/dist/types.js +22 -2
  27. package/dist/types.js.map +1 -1
  28. package/dist/validate.d.ts.map +1 -1
  29. package/dist/validate.js +87 -2
  30. package/dist/validate.js.map +1 -1
  31. package/examples/custom-kinds/acme-ui-tabs.pack.json +2 -2
  32. package/examples/invalid/agent-classification.json +45 -45
  33. package/examples/invalid/broken-binding.json +49 -49
  34. package/examples/invalid/completion-mapping-with-exec-policy.json +41 -41
  35. package/examples/invalid/missing-parent.json +45 -45
  36. package/examples/invalid/operational-kind-root.json +49 -49
  37. package/examples/invalid/pipeline-unknown-service.json +38 -38
  38. package/examples/invalid/relationship-missing-rules.json +48 -48
  39. package/examples/invalid/relationship-with-storage.json +48 -48
  40. package/examples/invalid/service-with-secrets.json +47 -47
  41. package/examples/knowx/normalized/pack.json +579 -0
  42. package/examples/{ops → opx}/normalized/pack.json +61 -61
  43. package/examples/{ops → opx}/raw/agents.json +8 -8
  44. package/examples/{ops → opx}/raw/pipelines-and-sources.json +14 -14
  45. package/examples/{ops → opx}/raw/relationship-definitions.json +1 -1
  46. package/examples/{ops → opx}/raw/view-definitions.json +4 -4
  47. package/examples/{ops → opx}/raw/write-and-source-mappings.json +18 -18
  48. package/examples/{project-ops → project-opx}/normalized/pack.json +60 -60
  49. package/package.json +1 -1
  50. /package/examples/{ops → opx}/raw/abstract-bindings.json +0 -0
  51. /package/examples/{ops → opx}/raw/abstract-types.json +0 -0
  52. /package/examples/{ops → opx}/raw/object-types.json +0 -0
@@ -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": [
@@ -265,8 +265,8 @@
265
265
  ],
266
266
  "mappings": [
267
267
  {
268
- "id": "ops-source-employees-to-raw",
269
- "sourceId": "ops-source",
268
+ "id": "opx-source-employees-to-raw",
269
+ "sourceId": "opx-source",
270
270
  "endpoint": "/employees",
271
271
  "objectType": "employees",
272
272
  "contentType": "raw",
@@ -280,8 +280,8 @@
280
280
  "purpose": "source"
281
281
  },
282
282
  {
283
- "id": "ops-source-work-items-to-raw",
284
- "sourceId": "ops-source",
283
+ "id": "opx-source-work-items-to-raw",
284
+ "sourceId": "opx-source",
285
285
  "endpoint": "/work-items",
286
286
  "objectType": "work-items",
287
287
  "contentType": "raw",
@@ -295,8 +295,8 @@
295
295
  "purpose": "source"
296
296
  },
297
297
  {
298
- "id": "ops-source-work-item-context",
299
- "sourceId": "ops-source",
298
+ "id": "opx-source-work-item-context",
299
+ "sourceId": "opx-source",
300
300
  "endpoint": "/work-items/:id/context",
301
301
  "objectType": "work-items",
302
302
  "contentType": "context",
@@ -311,7 +311,7 @@
311
311
  "purpose": "source"
312
312
  },
313
313
  {
314
- "id": "ops-people-abstract-title",
314
+ "id": "opx-people-abstract-title",
315
315
  "purpose": "abstract",
316
316
  "abstractType": "People",
317
317
  "objectType": "employees",
@@ -324,7 +324,7 @@
324
324
  }
325
325
  },
326
326
  {
327
- "id": "ops-work-items-completion-priority",
327
+ "id": "opx-work-items-completion-priority",
328
328
  "purpose": "completion",
329
329
  "objectType": "work-items",
330
330
  "contentType": "snapshots",
@@ -338,7 +338,7 @@
338
338
  ],
339
339
  "views": [
340
340
  {
341
- "id": "ops-work-items-list",
341
+ "id": "opx-work-items-list",
342
342
  "kind": "list",
343
343
  "objectType": "work-items",
344
344
  "title": "Work items",
@@ -349,7 +349,7 @@
349
349
  ]
350
350
  },
351
351
  {
352
- "id": "ops-work-items-item",
352
+ "id": "opx-work-items-item",
353
353
  "kind": "item",
354
354
  "objectType": "work-items",
355
355
  "title": "Work item",
@@ -362,7 +362,7 @@
362
362
  ]
363
363
  },
364
364
  {
365
- "id": "ops-people-list",
365
+ "id": "opx-people-list",
366
366
  "kind": "list",
367
367
  "abstractType": "People",
368
368
  "title": "People",
@@ -373,7 +373,7 @@
373
373
  ]
374
374
  },
375
375
  {
376
- "id": "ops-work-item-expand-people",
376
+ "id": "opx-work-item-expand-people",
377
377
  "kind": "relationship-expansion",
378
378
  "objectType": "work-items",
379
379
  "relationshipDefinitionId": "people-assigned-to-work-items",
@@ -382,59 +382,59 @@
382
382
  ],
383
383
  "writes": [
384
384
  {
385
- "id": "ops-employees-snapshots",
385
+ "id": "opx-employees-snapshots",
386
386
  "objectType": "employees",
387
387
  "contentType": "snapshots",
388
388
  "identity": {
389
389
  "primaryKind": "employeeId",
390
- "issuer": "ops-source"
390
+ "issuer": "opx-source"
391
391
  }
392
392
  },
393
393
  {
394
- "id": "ops-contractors-snapshots",
394
+ "id": "opx-contractors-snapshots",
395
395
  "objectType": "contractors",
396
396
  "contentType": "snapshots",
397
397
  "identity": {
398
398
  "primaryKind": "contractorId",
399
- "issuer": "ops-source"
399
+ "issuer": "opx-source"
400
400
  }
401
401
  },
402
402
  {
403
- "id": "ops-work-items-snapshots",
403
+ "id": "opx-work-items-snapshots",
404
404
  "objectType": "work-items",
405
405
  "contentType": "snapshots",
406
406
  "identity": {
407
407
  "primaryKind": "workItemId",
408
- "issuer": "ops-source"
408
+ "issuer": "opx-source"
409
409
  }
410
410
  },
411
411
  {
412
- "id": "ops-procedures-snapshots",
412
+ "id": "opx-procedures-snapshots",
413
413
  "objectType": "procedures",
414
414
  "contentType": "snapshots",
415
415
  "identity": {
416
416
  "primaryKind": "procedureId",
417
- "issuer": "ops-source"
417
+ "issuer": "opx-source"
418
418
  }
419
419
  },
420
420
  {
421
- "id": "ops-activity-events-snapshots",
421
+ "id": "opx-activity-events-snapshots",
422
422
  "objectType": "activity-events",
423
423
  "contentType": "snapshots",
424
424
  "identity": {
425
425
  "primaryKind": "activityEventId",
426
- "issuer": "ops-source"
426
+ "issuer": "opx-source"
427
427
  }
428
428
  }
429
429
  ],
430
430
  "sources": [
431
431
  {
432
- "id": "ops-source",
433
- "name": "Fieldstone ops fixture source",
432
+ "id": "opx-source",
433
+ "name": "Opx-service",
434
434
  "kind": "rest-fixture",
435
- "baseUrlEnv": "OPS_SOURCE_URL",
436
- "defaultBaseUrl": "http://127.0.0.1:7099",
437
- "credentialRef": "ops-source-local",
435
+ "baseUrlEnv": "OPX_SOURCE_URL",
436
+ "defaultBaseUrl": "http://127.0.0.1:5102",
437
+ "credentialRef": "opx-source-local",
438
438
  "endpoints": [
439
439
  "/employees",
440
440
  "/contractors",
@@ -447,7 +447,7 @@
447
447
  ],
448
448
  "services": [
449
449
  {
450
- "id": "ops-normalize",
450
+ "id": "opx-normalize",
451
451
  "name": "Normalize records",
452
452
  "description": "Logical normalize capability for ops knowledge pull",
453
453
  "capabilities": [
@@ -471,7 +471,7 @@
471
471
  }
472
472
  },
473
473
  {
474
- "id": "ops-completion",
474
+ "id": "opx-completion",
475
475
  "name": "Field completion",
476
476
  "capabilities": [
477
477
  "completion"
@@ -496,15 +496,15 @@
496
496
  ],
497
497
  "pipelines": [
498
498
  {
499
- "id": "ops-knowledge-pull",
500
- "name": "Scheduled knowledge pull from ops-source",
499
+ "id": "opx-knowledge-pull",
500
+ "name": "Scheduled knowledge pull from opx-source",
501
501
  "trigger": "scheduled",
502
502
  "mode": "knowledge",
503
503
  "steps": [
504
504
  {
505
505
  "id": "pull",
506
506
  "kind": "memory-pull",
507
- "sourceId": "ops-source"
507
+ "sourceId": "opx-source"
508
508
  },
509
509
  {
510
510
  "id": "land-raw",
@@ -521,13 +521,13 @@
521
521
  {
522
522
  "id": "normalize-svc",
523
523
  "kind": "invoke-service",
524
- "serviceId": "ops-normalize"
524
+ "serviceId": "opx-normalize"
525
525
  },
526
526
  {
527
527
  "id": "complete",
528
528
  "kind": "completion",
529
- "serviceId": "ops-completion",
530
- "mappingId": "ops-work-items-completion-priority",
529
+ "serviceId": "opx-completion",
530
+ "mappingId": "opx-work-items-completion-priority",
531
531
  "completionPolicy": {
532
532
  "mode": "fill-missing",
533
533
  "maxFields": 20
@@ -536,7 +536,7 @@
536
536
  ]
537
537
  },
538
538
  {
539
- "id": "ops-context-pull",
539
+ "id": "opx-context-pull",
540
540
  "name": "On-demand work-item context pull",
541
541
  "trigger": "on-demand",
542
542
  "mode": "context",
@@ -544,7 +544,7 @@
544
544
  {
545
545
  "id": "pull",
546
546
  "kind": "memory-pull",
547
- "sourceId": "ops-source"
547
+ "sourceId": "opx-source"
548
548
  },
549
549
  {
550
550
  "id": "land-raw",
@@ -561,7 +561,7 @@
561
561
  ]
562
562
  },
563
563
  {
564
- "id": "ops-relationship-build",
564
+ "id": "opx-relationship-build",
565
565
  "name": "Discover and write lightweight relationships",
566
566
  "trigger": "explicit",
567
567
  "steps": [
@@ -580,7 +580,7 @@
580
580
  ]
581
581
  },
582
582
  {
583
- "id": "ops-analysis",
583
+ "id": "opx-analysis",
584
584
  "name": "Work-item analysis sibling",
585
585
  "trigger": "explicit",
586
586
  "steps": [
@@ -596,7 +596,7 @@
596
596
  ]
597
597
  },
598
598
  {
599
- "id": "ops-workflow",
599
+ "id": "opx-workflow",
600
600
  "name": "Work-item workflow sibling",
601
601
  "trigger": "explicit",
602
602
  "steps": [
@@ -614,8 +614,8 @@
614
614
  ],
615
615
  "schedules": [
616
616
  {
617
- "id": "ops-knowledge-hourly",
618
- "pipelineId": "ops-knowledge-pull",
617
+ "id": "opx-knowledge-hourly",
618
+ "pipelineId": "opx-knowledge-pull",
619
619
  "cron": "0 * * * *",
620
620
  "timezone": "UTC",
621
621
  "enabled": true
@@ -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": [
@@ -272,8 +272,8 @@
272
272
  ],
273
273
  "mappings": [
274
274
  {
275
- "id": "ops-source-employees-to-raw",
276
- "sourceId": "ops-source",
275
+ "id": "opx-source-employees-to-raw",
276
+ "sourceId": "opx-source",
277
277
  "endpoint": "/employees",
278
278
  "objectType": "employees",
279
279
  "contentType": "raw",
@@ -287,8 +287,8 @@
287
287
  "purpose": "source"
288
288
  },
289
289
  {
290
- "id": "ops-source-work-items-to-raw",
291
- "sourceId": "ops-source",
290
+ "id": "opx-source-work-items-to-raw",
291
+ "sourceId": "opx-source",
292
292
  "endpoint": "/work-items",
293
293
  "objectType": "work-items",
294
294
  "contentType": "raw",
@@ -302,8 +302,8 @@
302
302
  "purpose": "source"
303
303
  },
304
304
  {
305
- "id": "ops-source-work-item-context",
306
- "sourceId": "ops-source",
305
+ "id": "opx-source-work-item-context",
306
+ "sourceId": "opx-source",
307
307
  "endpoint": "/work-items/:id/context",
308
308
  "objectType": "work-items",
309
309
  "contentType": "context",
@@ -318,7 +318,7 @@
318
318
  "purpose": "source"
319
319
  },
320
320
  {
321
- "id": "ops-people-abstract-title",
321
+ "id": "opx-people-abstract-title",
322
322
  "purpose": "abstract",
323
323
  "abstractType": "People",
324
324
  "objectType": "employees",
@@ -331,7 +331,7 @@
331
331
  }
332
332
  },
333
333
  {
334
- "id": "ops-work-items-completion-priority",
334
+ "id": "opx-work-items-completion-priority",
335
335
  "purpose": "completion",
336
336
  "objectType": "work-items",
337
337
  "contentType": "snapshots",
@@ -345,7 +345,7 @@
345
345
  ],
346
346
  "views": [
347
347
  {
348
- "id": "ops-work-items-list",
348
+ "id": "opx-work-items-list",
349
349
  "kind": "list",
350
350
  "objectType": "work-items",
351
351
  "title": "Work items",
@@ -356,7 +356,7 @@
356
356
  ]
357
357
  },
358
358
  {
359
- "id": "ops-work-items-item",
359
+ "id": "opx-work-items-item",
360
360
  "kind": "item",
361
361
  "objectType": "work-items",
362
362
  "title": "Work item",
@@ -369,7 +369,7 @@
369
369
  ]
370
370
  },
371
371
  {
372
- "id": "ops-people-list",
372
+ "id": "opx-people-list",
373
373
  "kind": "list",
374
374
  "abstractType": "People",
375
375
  "title": "People",
@@ -380,7 +380,7 @@
380
380
  ]
381
381
  },
382
382
  {
383
- "id": "ops-work-item-expand-people",
383
+ "id": "opx-work-item-expand-people",
384
384
  "kind": "relationship-expansion",
385
385
  "objectType": "work-items",
386
386
  "relationshipDefinitionId": "people-assigned-to-work-items",
@@ -389,59 +389,59 @@
389
389
  ],
390
390
  "writes": [
391
391
  {
392
- "id": "ops-employees-snapshots",
392
+ "id": "opx-employees-snapshots",
393
393
  "objectType": "employees",
394
394
  "contentType": "snapshots",
395
395
  "identity": {
396
396
  "primaryKind": "employeeId",
397
- "issuer": "ops-source"
397
+ "issuer": "opx-source"
398
398
  }
399
399
  },
400
400
  {
401
- "id": "ops-contractors-snapshots",
401
+ "id": "opx-contractors-snapshots",
402
402
  "objectType": "contractors",
403
403
  "contentType": "snapshots",
404
404
  "identity": {
405
405
  "primaryKind": "contractorId",
406
- "issuer": "ops-source"
406
+ "issuer": "opx-source"
407
407
  }
408
408
  },
409
409
  {
410
- "id": "ops-work-items-snapshots",
410
+ "id": "opx-work-items-snapshots",
411
411
  "objectType": "work-items",
412
412
  "contentType": "snapshots",
413
413
  "identity": {
414
414
  "primaryKind": "workItemId",
415
- "issuer": "ops-source"
415
+ "issuer": "opx-source"
416
416
  }
417
417
  },
418
418
  {
419
- "id": "ops-procedures-snapshots",
419
+ "id": "opx-procedures-snapshots",
420
420
  "objectType": "procedures",
421
421
  "contentType": "snapshots",
422
422
  "identity": {
423
423
  "primaryKind": "procedureId",
424
- "issuer": "ops-source"
424
+ "issuer": "opx-source"
425
425
  }
426
426
  },
427
427
  {
428
- "id": "ops-activity-events-snapshots",
428
+ "id": "opx-activity-events-snapshots",
429
429
  "objectType": "activity-events",
430
430
  "contentType": "snapshots",
431
431
  "identity": {
432
432
  "primaryKind": "activityEventId",
433
- "issuer": "ops-source"
433
+ "issuer": "opx-source"
434
434
  }
435
435
  }
436
436
  ],
437
437
  "sources": [
438
438
  {
439
- "id": "ops-source",
440
- "name": "Fieldstone ops fixture source",
439
+ "id": "opx-source",
440
+ "name": "Opx-service",
441
441
  "kind": "rest-fixture",
442
- "baseUrlEnv": "OPS_SOURCE_URL",
443
- "defaultBaseUrl": "http://127.0.0.1:7099",
444
- "credentialRef": "ops-source-local",
442
+ "baseUrlEnv": "OPX_SOURCE_URL",
443
+ "defaultBaseUrl": "http://127.0.0.1:5102",
444
+ "credentialRef": "opx-source-local",
445
445
  "endpoints": [
446
446
  "/employees",
447
447
  "/contractors",
@@ -454,7 +454,7 @@
454
454
  ],
455
455
  "services": [
456
456
  {
457
- "id": "ops-normalize",
457
+ "id": "opx-normalize",
458
458
  "name": "Normalize records",
459
459
  "description": "Logical normalize capability for ops knowledge pull",
460
460
  "capabilities": [
@@ -478,7 +478,7 @@
478
478
  }
479
479
  },
480
480
  {
481
- "id": "ops-completion",
481
+ "id": "opx-completion",
482
482
  "name": "Field completion",
483
483
  "capabilities": [
484
484
  "completion"
@@ -503,15 +503,15 @@
503
503
  ],
504
504
  "pipelines": [
505
505
  {
506
- "id": "ops-knowledge-pull",
507
- "name": "Scheduled knowledge pull from ops-source",
506
+ "id": "opx-knowledge-pull",
507
+ "name": "Scheduled knowledge pull from opx-source",
508
508
  "trigger": "scheduled",
509
509
  "mode": "knowledge",
510
510
  "steps": [
511
511
  {
512
512
  "id": "pull",
513
513
  "kind": "memory-pull",
514
- "sourceId": "ops-source"
514
+ "sourceId": "opx-source"
515
515
  },
516
516
  {
517
517
  "id": "land-raw",
@@ -528,13 +528,13 @@
528
528
  {
529
529
  "id": "normalize-svc",
530
530
  "kind": "invoke-service",
531
- "serviceId": "ops-normalize"
531
+ "serviceId": "opx-normalize"
532
532
  },
533
533
  {
534
534
  "id": "complete",
535
535
  "kind": "completion",
536
- "serviceId": "ops-completion",
537
- "mappingId": "ops-work-items-completion-priority",
536
+ "serviceId": "opx-completion",
537
+ "mappingId": "opx-work-items-completion-priority",
538
538
  "completionPolicy": {
539
539
  "mode": "fill-missing",
540
540
  "maxFields": 20
@@ -543,7 +543,7 @@
543
543
  ]
544
544
  },
545
545
  {
546
- "id": "ops-context-pull",
546
+ "id": "opx-context-pull",
547
547
  "name": "On-demand work-item context pull",
548
548
  "trigger": "on-demand",
549
549
  "mode": "context",
@@ -551,7 +551,7 @@
551
551
  {
552
552
  "id": "pull",
553
553
  "kind": "memory-pull",
554
- "sourceId": "ops-source"
554
+ "sourceId": "opx-source"
555
555
  },
556
556
  {
557
557
  "id": "land-raw",
@@ -568,7 +568,7 @@
568
568
  ]
569
569
  },
570
570
  {
571
- "id": "ops-relationship-build",
571
+ "id": "opx-relationship-build",
572
572
  "name": "Discover and write lightweight relationships",
573
573
  "trigger": "explicit",
574
574
  "steps": [
@@ -587,7 +587,7 @@
587
587
  ]
588
588
  },
589
589
  {
590
- "id": "ops-analysis",
590
+ "id": "opx-analysis",
591
591
  "name": "Work-item analysis sibling",
592
592
  "trigger": "explicit",
593
593
  "steps": [
@@ -603,7 +603,7 @@
603
603
  ]
604
604
  },
605
605
  {
606
- "id": "ops-workflow",
606
+ "id": "opx-workflow",
607
607
  "name": "Work-item workflow sibling",
608
608
  "trigger": "explicit",
609
609
  "steps": [
@@ -621,8 +621,8 @@
621
621
  ],
622
622
  "schedules": [
623
623
  {
624
- "id": "ops-knowledge-hourly",
625
- "pipelineId": "ops-knowledge-pull",
624
+ "id": "opx-knowledge-hourly",
625
+ "pipelineId": "opx-knowledge-pull",
626
626
  "cron": "0 * * * *",
627
627
  "timezone": "UTC",
628
628
  "enabled": true