contractspec 4.0.0 → 4.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.
- package/contractsrc.schema.json +281 -15
- package/package.json +6 -2
package/contractsrc.schema.json
CHANGED
|
@@ -76,6 +76,22 @@
|
|
|
76
76
|
"default": "forms",
|
|
77
77
|
"type": "string"
|
|
78
78
|
},
|
|
79
|
+
"capabilities": {
|
|
80
|
+
"default": "capabilities",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"policies": {
|
|
84
|
+
"default": "policies",
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"tests": {
|
|
88
|
+
"default": "tests",
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"translations": {
|
|
92
|
+
"default": "translations",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
79
95
|
"groupByFeature": {
|
|
80
96
|
"default": true,
|
|
81
97
|
"type": "boolean"
|
|
@@ -384,6 +400,107 @@
|
|
|
384
400
|
}
|
|
385
401
|
},
|
|
386
402
|
"additionalProperties": false
|
|
403
|
+
},
|
|
404
|
+
"packageDeclarations": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"severity": {
|
|
408
|
+
"default": "error",
|
|
409
|
+
"type": "string",
|
|
410
|
+
"enum": ["off", "warning", "error"]
|
|
411
|
+
},
|
|
412
|
+
"requiredByKind": {
|
|
413
|
+
"type": "object",
|
|
414
|
+
"properties": {
|
|
415
|
+
"libs": {
|
|
416
|
+
"default": "feature",
|
|
417
|
+
"type": "string",
|
|
418
|
+
"enum": [
|
|
419
|
+
"feature",
|
|
420
|
+
"integration",
|
|
421
|
+
"app-config",
|
|
422
|
+
"module-bundle",
|
|
423
|
+
"example"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"modules": {
|
|
427
|
+
"default": "feature",
|
|
428
|
+
"type": "string",
|
|
429
|
+
"enum": [
|
|
430
|
+
"feature",
|
|
431
|
+
"integration",
|
|
432
|
+
"app-config",
|
|
433
|
+
"module-bundle",
|
|
434
|
+
"example"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
"integrations": {
|
|
438
|
+
"default": "integration",
|
|
439
|
+
"type": "string",
|
|
440
|
+
"enum": [
|
|
441
|
+
"feature",
|
|
442
|
+
"integration",
|
|
443
|
+
"app-config",
|
|
444
|
+
"module-bundle",
|
|
445
|
+
"example"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"bundles": {
|
|
449
|
+
"default": "module-bundle",
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"feature",
|
|
453
|
+
"integration",
|
|
454
|
+
"app-config",
|
|
455
|
+
"module-bundle",
|
|
456
|
+
"example"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"apps": {
|
|
460
|
+
"default": "app-config",
|
|
461
|
+
"type": "string",
|
|
462
|
+
"enum": [
|
|
463
|
+
"feature",
|
|
464
|
+
"integration",
|
|
465
|
+
"app-config",
|
|
466
|
+
"module-bundle",
|
|
467
|
+
"example"
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
"appsRegistry": {
|
|
471
|
+
"default": "app-config",
|
|
472
|
+
"type": "string",
|
|
473
|
+
"enum": [
|
|
474
|
+
"feature",
|
|
475
|
+
"integration",
|
|
476
|
+
"app-config",
|
|
477
|
+
"module-bundle",
|
|
478
|
+
"example"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"examples": {
|
|
482
|
+
"default": "example",
|
|
483
|
+
"type": "string",
|
|
484
|
+
"enum": [
|
|
485
|
+
"feature",
|
|
486
|
+
"integration",
|
|
487
|
+
"app-config",
|
|
488
|
+
"module-bundle",
|
|
489
|
+
"example"
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"additionalProperties": false
|
|
494
|
+
},
|
|
495
|
+
"allowMissing": {
|
|
496
|
+
"default": [],
|
|
497
|
+
"type": "array",
|
|
498
|
+
"items": {
|
|
499
|
+
"type": "string"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"additionalProperties": false
|
|
387
504
|
}
|
|
388
505
|
},
|
|
389
506
|
"additionalProperties": false
|
|
@@ -493,17 +610,27 @@
|
|
|
493
610
|
"event",
|
|
494
611
|
"presentation",
|
|
495
612
|
"feature",
|
|
496
|
-
"
|
|
613
|
+
"capability",
|
|
497
614
|
"data-view",
|
|
615
|
+
"visualization",
|
|
616
|
+
"form",
|
|
617
|
+
"agent",
|
|
498
618
|
"migration",
|
|
499
|
-
"
|
|
619
|
+
"workflow",
|
|
500
620
|
"experiment",
|
|
501
|
-
"app-config",
|
|
502
621
|
"integration",
|
|
622
|
+
"theme",
|
|
503
623
|
"knowledge",
|
|
624
|
+
"telemetry",
|
|
625
|
+
"example",
|
|
626
|
+
"app-config",
|
|
627
|
+
"product-intent",
|
|
504
628
|
"policy",
|
|
505
|
-
"
|
|
506
|
-
"
|
|
629
|
+
"test-spec",
|
|
630
|
+
"harness-scenario",
|
|
631
|
+
"harness-suite",
|
|
632
|
+
"type",
|
|
633
|
+
"knowledge-space",
|
|
507
634
|
"job",
|
|
508
635
|
"translation"
|
|
509
636
|
]
|
|
@@ -567,17 +694,27 @@
|
|
|
567
694
|
"event",
|
|
568
695
|
"presentation",
|
|
569
696
|
"feature",
|
|
570
|
-
"
|
|
697
|
+
"capability",
|
|
571
698
|
"data-view",
|
|
699
|
+
"visualization",
|
|
700
|
+
"form",
|
|
701
|
+
"agent",
|
|
572
702
|
"migration",
|
|
573
|
-
"
|
|
703
|
+
"workflow",
|
|
574
704
|
"experiment",
|
|
575
|
-
"app-config",
|
|
576
705
|
"integration",
|
|
706
|
+
"theme",
|
|
577
707
|
"knowledge",
|
|
708
|
+
"telemetry",
|
|
709
|
+
"example",
|
|
710
|
+
"app-config",
|
|
711
|
+
"product-intent",
|
|
578
712
|
"policy",
|
|
579
|
-
"
|
|
580
|
-
"
|
|
713
|
+
"test-spec",
|
|
714
|
+
"harness-scenario",
|
|
715
|
+
"harness-suite",
|
|
716
|
+
"type",
|
|
717
|
+
"knowledge-space",
|
|
581
718
|
"job",
|
|
582
719
|
"translation"
|
|
583
720
|
]
|
|
@@ -616,17 +753,27 @@
|
|
|
616
753
|
"event",
|
|
617
754
|
"presentation",
|
|
618
755
|
"feature",
|
|
619
|
-
"
|
|
756
|
+
"capability",
|
|
620
757
|
"data-view",
|
|
758
|
+
"visualization",
|
|
759
|
+
"form",
|
|
760
|
+
"agent",
|
|
621
761
|
"migration",
|
|
622
|
-
"
|
|
762
|
+
"workflow",
|
|
623
763
|
"experiment",
|
|
624
|
-
"app-config",
|
|
625
764
|
"integration",
|
|
765
|
+
"theme",
|
|
626
766
|
"knowledge",
|
|
767
|
+
"telemetry",
|
|
768
|
+
"example",
|
|
769
|
+
"app-config",
|
|
770
|
+
"product-intent",
|
|
627
771
|
"policy",
|
|
628
|
-
"
|
|
629
|
-
"
|
|
772
|
+
"test-spec",
|
|
773
|
+
"harness-scenario",
|
|
774
|
+
"harness-suite",
|
|
775
|
+
"type",
|
|
776
|
+
"knowledge-space",
|
|
630
777
|
"job",
|
|
631
778
|
"translation"
|
|
632
779
|
]
|
|
@@ -1195,6 +1342,125 @@
|
|
|
1195
1342
|
}
|
|
1196
1343
|
},
|
|
1197
1344
|
"additionalProperties": false
|
|
1345
|
+
},
|
|
1346
|
+
"adoption": {
|
|
1347
|
+
"type": "object",
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"enabled": {
|
|
1350
|
+
"default": false,
|
|
1351
|
+
"type": "boolean"
|
|
1352
|
+
},
|
|
1353
|
+
"catalog": {
|
|
1354
|
+
"type": "object",
|
|
1355
|
+
"properties": {
|
|
1356
|
+
"indexPath": {
|
|
1357
|
+
"default": ".contractspec/adoption/catalog.json",
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1360
|
+
"overrideManifestPath": {
|
|
1361
|
+
"default": ".contractspec/adoption/overrides.json",
|
|
1362
|
+
"type": "string"
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
"additionalProperties": false
|
|
1366
|
+
},
|
|
1367
|
+
"workspaceScan": {
|
|
1368
|
+
"type": "object",
|
|
1369
|
+
"properties": {
|
|
1370
|
+
"include": {
|
|
1371
|
+
"default": [
|
|
1372
|
+
"src/**/*.{ts,tsx,js,jsx}",
|
|
1373
|
+
"app/**/*.{ts,tsx,js,jsx}",
|
|
1374
|
+
"components/**/*.{ts,tsx,js,jsx}",
|
|
1375
|
+
"packages/**/*.{ts,tsx,js,jsx}"
|
|
1376
|
+
],
|
|
1377
|
+
"type": "array",
|
|
1378
|
+
"items": {
|
|
1379
|
+
"type": "string"
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"exclude": {
|
|
1383
|
+
"default": [
|
|
1384
|
+
"**/node_modules/**",
|
|
1385
|
+
"**/dist/**",
|
|
1386
|
+
"**/.next/**",
|
|
1387
|
+
"**/coverage/**",
|
|
1388
|
+
"**/generated/**",
|
|
1389
|
+
"**/*.test.*",
|
|
1390
|
+
"**/*.spec.*",
|
|
1391
|
+
"**/*.stories.*"
|
|
1392
|
+
],
|
|
1393
|
+
"type": "array",
|
|
1394
|
+
"items": {
|
|
1395
|
+
"type": "string"
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"additionalProperties": false
|
|
1400
|
+
},
|
|
1401
|
+
"families": {
|
|
1402
|
+
"type": "object",
|
|
1403
|
+
"properties": {
|
|
1404
|
+
"ui": {
|
|
1405
|
+
"default": true,
|
|
1406
|
+
"type": "boolean"
|
|
1407
|
+
},
|
|
1408
|
+
"contracts": {
|
|
1409
|
+
"default": true,
|
|
1410
|
+
"type": "boolean"
|
|
1411
|
+
},
|
|
1412
|
+
"integrations": {
|
|
1413
|
+
"default": true,
|
|
1414
|
+
"type": "boolean"
|
|
1415
|
+
},
|
|
1416
|
+
"runtime": {
|
|
1417
|
+
"default": true,
|
|
1418
|
+
"type": "boolean"
|
|
1419
|
+
},
|
|
1420
|
+
"sharedLibs": {
|
|
1421
|
+
"default": true,
|
|
1422
|
+
"type": "boolean"
|
|
1423
|
+
},
|
|
1424
|
+
"solutions": {
|
|
1425
|
+
"default": true,
|
|
1426
|
+
"type": "boolean"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"additionalProperties": false
|
|
1430
|
+
},
|
|
1431
|
+
"thresholds": {
|
|
1432
|
+
"type": "object",
|
|
1433
|
+
"properties": {
|
|
1434
|
+
"workspaceReuse": {
|
|
1435
|
+
"default": "rewrite",
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"enum": ["permit", "rewrite", "require_review", "deny"]
|
|
1438
|
+
},
|
|
1439
|
+
"contractspecReuse": {
|
|
1440
|
+
"default": "rewrite",
|
|
1441
|
+
"type": "string",
|
|
1442
|
+
"enum": ["permit", "rewrite", "require_review", "deny"]
|
|
1443
|
+
},
|
|
1444
|
+
"ambiguous": {
|
|
1445
|
+
"default": "require_review",
|
|
1446
|
+
"type": "string",
|
|
1447
|
+
"enum": ["permit", "rewrite", "require_review", "deny"]
|
|
1448
|
+
},
|
|
1449
|
+
"newExternalDependency": {
|
|
1450
|
+
"default": "require_review",
|
|
1451
|
+
"type": "string",
|
|
1452
|
+
"enum": ["permit", "rewrite", "require_review", "deny"]
|
|
1453
|
+
},
|
|
1454
|
+
"newImplementation": {
|
|
1455
|
+
"default": "require_review",
|
|
1456
|
+
"type": "string",
|
|
1457
|
+
"enum": ["permit", "rewrite", "require_review", "deny"]
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
"additionalProperties": false
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
"additionalProperties": false
|
|
1198
1464
|
}
|
|
1199
1465
|
},
|
|
1200
1466
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contractspec",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "CLI tool for creating, building, and validating contract specifications",
|
|
5
5
|
"bin": {
|
|
6
6
|
"contractspec": "./bin/contractspec.mjs"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@contractspec/app.cli-contractspec": "
|
|
9
|
+
"@contractspec/app.cli-contractspec": "6.0.2",
|
|
10
|
+
"@contractspec/lib.contracts-spec": "5.5.0"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
13
|
"bin",
|
|
@@ -35,5 +36,8 @@
|
|
|
35
36
|
"type": "git",
|
|
36
37
|
"url": "https://github.com/lssm-tech/contractspec.git",
|
|
37
38
|
"directory": "packages/apps-registry/contractspec"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": "./src/index.ts"
|
|
38
42
|
}
|
|
39
43
|
}
|