@mmmnt/feature 0.3.1 → 0.4.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.
- package/LICENSE +16 -23
- package/README.md +887 -12
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +4 -3
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/diff.d.ts.map +1 -1
- package/dist/commands/diff.js +3 -0
- package/dist/commands/diff.js.map +1 -1
- package/dist/commands/fmt.d.ts.map +1 -1
- package/dist/commands/fmt.js +3 -2
- package/dist/commands/fmt.js.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +3 -1
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +7 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +3 -3
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +6 -5
- package/dist/commands/report.js.map +1 -1
- package/dist/commands/run.d.ts +1 -0
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +66 -8
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +21 -17
- package/dist/commands/verify.js.map +1 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +2 -1
- package/dist/commands/watch.js.map +1 -1
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +56 -0
- package/dist/config.js.map +1 -0
- package/dist/evidence.d.ts.map +1 -1
- package/dist/evidence.js +92 -3
- package/dist/evidence.js.map +1 -1
- package/dist/namespaces.d.ts +5 -0
- package/dist/namespaces.d.ts.map +1 -0
- package/dist/namespaces.js +12 -0
- package/dist/namespaces.js.map +1 -0
- package/dist/pipeline.d.ts +36 -2
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +136 -40
- package/dist/pipeline.js.map +1 -1
- package/dist/seed-fixtures.d.ts +27 -0
- package/dist/seed-fixtures.d.ts.map +1 -0
- package/dist/seed-fixtures.js +203 -0
- package/dist/seed-fixtures.js.map +1 -0
- package/dist/shard.d.ts +9 -0
- package/dist/shard.d.ts.map +1 -0
- package/dist/shard.js +27 -0
- package/dist/shard.js.map +1 -0
- package/package.json +9 -9
- package/schemas/evidence.schema.json +66 -0
|
@@ -13,6 +13,17 @@
|
|
|
13
13
|
"verify"
|
|
14
14
|
],
|
|
15
15
|
"additionalProperties": false,
|
|
16
|
+
"definitions": {
|
|
17
|
+
"configFile": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": ["path", "digest"],
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"properties": {
|
|
22
|
+
"path": { "type": "string" },
|
|
23
|
+
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
16
27
|
"properties": {
|
|
17
28
|
"contract": {
|
|
18
29
|
"enum": [
|
|
@@ -69,6 +80,61 @@
|
|
|
69
80
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
70
81
|
"description": "The environment the run verified (ADR-0016), copied from the config's top-level `environment`. Absent when the config declares none \u2014 the bundle never claims an environment the adapters weren't pointed at."
|
|
71
82
|
},
|
|
83
|
+
"config": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"required": ["resolved"],
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"description": "ADR-0024: the files behind the config the run used. `resolved` digests the merged config; `overlay` and `base` are present when the config extends a base.",
|
|
88
|
+
"properties": {
|
|
89
|
+
"resolved": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
90
|
+
"overlay": { "$ref": "#/definitions/configFile" },
|
|
91
|
+
"base": { "$ref": "#/definitions/configFile" }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"bindings": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": ["services"],
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"description": "ADR-0024: what the run's adapters were bound to (adapter, version, consistency, timeouts) and what each could observe (observes, fault consumption), so an integration bundle is distinguishable from a spec-tier one.",
|
|
99
|
+
"properties": {
|
|
100
|
+
"response": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"required": ["adapter"],
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"properties": {
|
|
105
|
+
"adapter": { "type": "string" },
|
|
106
|
+
"adapterVersion": { "type": "string", "description": "The version of the adapter's npm package, resolved from the project that owns the config. Absent for a local module." }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"services": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"required": ["key", "adapter", "consistency"],
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"properties": {
|
|
116
|
+
"key": { "type": "string" },
|
|
117
|
+
"adapter": { "type": "string" },
|
|
118
|
+
"adapterVersion": { "type": "string", "description": "The version of the adapter's npm package, resolved from the project that owns the config. Absent for a local module." },
|
|
119
|
+
"consistency": { "enum": ["acid", "strong", "eventual"] },
|
|
120
|
+
"convergenceTimeout": { "type": "integer", "minimum": 0 },
|
|
121
|
+
"absenceTimeout": { "type": "integer", "minimum": 0 },
|
|
122
|
+
"observes": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"required": ["diff", "state"],
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"description": "ADR-0023: the observation modes the adapter serves. An adapter that declares nothing is recorded as { diff: native, state: true }, as the harness reads it.",
|
|
127
|
+
"properties": {
|
|
128
|
+
"diff": { "enum": ["native", "snapshot"] },
|
|
129
|
+
"state": { "type": "boolean" }
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"faultConsumptionObservable": { "type": "boolean", "description": "ADR-0023: true when the adapter reports how often an armed fault was consumed (firedFaults), so an unconsumed fault is checked." }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
72
138
|
"commit": {
|
|
73
139
|
"type": "string",
|
|
74
140
|
"pattern": "^[0-9a-fA-F]{7,40}$",
|