assertledger 1.4.0 → 1.5.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 (107) hide show
  1. package/README.fr.md +5 -2
  2. package/README.md +5 -2
  3. package/conformance/schema-extensions.json +15 -0
  4. package/dist/build-info.json +1 -1
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +213 -8
  7. package/dist/cli.js.map +1 -1
  8. package/dist/contracts/index.d.ts +467 -4
  9. package/dist/contracts/index.d.ts.map +1 -1
  10. package/dist/contracts/index.js +256 -3
  11. package/dist/contracts/index.js.map +1 -1
  12. package/dist/contracts/qualification.d.ts +528 -0
  13. package/dist/contracts/qualification.d.ts.map +1 -0
  14. package/dist/contracts/qualification.js +357 -0
  15. package/dist/contracts/qualification.js.map +1 -0
  16. package/dist/core/index.d.ts +9 -0
  17. package/dist/core/index.d.ts.map +1 -1
  18. package/dist/core/index.js +46 -2
  19. package/dist/core/index.js.map +1 -1
  20. package/dist/core/qualification.d.ts +17 -0
  21. package/dist/core/qualification.d.ts.map +1 -0
  22. package/dist/core/qualification.js +571 -0
  23. package/dist/core/qualification.js.map +1 -0
  24. package/dist/diagnostics.d.ts.map +1 -1
  25. package/dist/diagnostics.js +81 -4
  26. package/dist/diagnostics.js.map +1 -1
  27. package/dist/engine/adapters/bun-native.d.ts +35 -0
  28. package/dist/engine/adapters/bun-native.d.ts.map +1 -0
  29. package/dist/engine/adapters/bun-native.js +179 -0
  30. package/dist/engine/adapters/bun-native.js.map +1 -0
  31. package/dist/engine/adapters/bun-test-designated-profile.d.ts +23 -0
  32. package/dist/engine/adapters/bun-test-designated-profile.d.ts.map +1 -0
  33. package/dist/engine/adapters/bun-test-designated-profile.js +24 -0
  34. package/dist/engine/adapters/bun-test-designated-profile.js.map +1 -0
  35. package/dist/engine/container.d.ts +7 -0
  36. package/dist/engine/container.d.ts.map +1 -1
  37. package/dist/engine/container.js +22 -7
  38. package/dist/engine/container.js.map +1 -1
  39. package/dist/engine/git-regression.d.ts.map +1 -1
  40. package/dist/engine/git-regression.js +9 -2
  41. package/dist/engine/git-regression.js.map +1 -1
  42. package/dist/engine/index.d.ts +14 -0
  43. package/dist/engine/index.d.ts.map +1 -1
  44. package/dist/engine/index.js +828 -97
  45. package/dist/engine/index.js.map +1 -1
  46. package/dist/engine/qualification.d.ts +154 -0
  47. package/dist/engine/qualification.d.ts.map +1 -0
  48. package/dist/engine/qualification.js +725 -0
  49. package/dist/engine/qualification.js.map +1 -0
  50. package/dist/engine/test-closure.d.ts +39 -0
  51. package/dist/engine/test-closure.d.ts.map +1 -0
  52. package/dist/engine/test-closure.js +513 -0
  53. package/dist/engine/test-closure.js.map +1 -0
  54. package/dist/engine/witness-import.d.ts +31 -0
  55. package/dist/engine/witness-import.d.ts.map +1 -0
  56. package/dist/engine/witness-import.js +224 -0
  57. package/dist/engine/witness-import.js.map +1 -0
  58. package/dist/index.d.ts +3 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +3 -0
  61. package/dist/index.js.map +1 -1
  62. package/dist/mcp/index.d.ts.map +1 -1
  63. package/dist/mcp/index.js +65 -0
  64. package/dist/mcp/index.js.map +1 -1
  65. package/dist/sdk/index.d.ts +292 -3
  66. package/dist/sdk/index.d.ts.map +1 -1
  67. package/dist/sdk/index.js +39 -1
  68. package/dist/sdk/index.js.map +1 -1
  69. package/docs/container-isolation.md +6 -0
  70. package/docs/migration-orchestration-qualification-v1.md +109 -0
  71. package/docs/migration-verification-v4.md +94 -0
  72. package/docs/orchestration-qualification.md +167 -0
  73. package/docs/reference.md +7 -0
  74. package/docs/witness-import.md +67 -0
  75. package/examples/orchestration/README.md +68 -0
  76. package/examples/orchestration/consumer-obligations.json +101 -0
  77. package/examples/orchestration/workspace/bitbucket-pipelines.yml +10 -0
  78. package/examples/orchestration/workspace/command-shape.test.mjs +25 -0
  79. package/examples/orchestration/workspace/commands.mjs +14 -0
  80. package/examples/orchestration/workspace/completion.mjs +39 -0
  81. package/examples/orchestration/workspace/faults.json +1 -0
  82. package/examples/orchestration/workspace/native.test.ts +4 -0
  83. package/examples/orchestration/workspace/package.json +6 -0
  84. package/examples/orchestration/workspace/packages/app/package.json +12 -0
  85. package/examples/orchestration/workspace/packages/app/verdict.txt +1 -0
  86. package/examples/orchestration/workspace/packages/leaf/package.json +9 -0
  87. package/examples/orchestration/workspace/packages/leaf/verdict.txt +1 -0
  88. package/examples/orchestration/workspace/pnpm-lock.yaml +170 -0
  89. package/examples/orchestration/workspace/pnpm-workspace.yaml +2 -0
  90. package/examples/orchestration/workspace/task.mjs +23 -0
  91. package/examples/orchestration/workspace/turbo.json +38 -0
  92. package/examples/orchestration/workspace/wrapper.mjs +45 -0
  93. package/integrations/bun/driver.d.mts +30 -1
  94. package/integrations/bun/driver.mjs +215 -6
  95. package/integrations/bun/preload.mjs +186 -5
  96. package/integrations/bun-native/README.md +86 -0
  97. package/integrations/bun-native/driver.mjs +396 -0
  98. package/integrations/bun-native/preload.mjs +375 -0
  99. package/integrations/skill/SKILL.md +25 -5
  100. package/package.json +1 -1
  101. package/schemas/evidence-manifest.v4.json +995 -0
  102. package/schemas/qualification-execution-request.v1.json +571 -0
  103. package/schemas/qualification-plan.v1.json +528 -0
  104. package/schemas/qualification-receipt.v1.json +821 -0
  105. package/schemas/qualification-replay-result.v1.json +37 -0
  106. package/schemas/verification-request.v4.json +590 -0
  107. package/schemas/witness-import-request.v1.json +231 -0
@@ -0,0 +1,231 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "provenance": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "repository": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "adapter": {
15
+ "$ref": "#/$defs/__schema4"
16
+ },
17
+ "test": {
18
+ "$ref": "#/$defs/__schema5"
19
+ },
20
+ "expectedFailure": {
21
+ "$ref": "#/$defs/__schema7"
22
+ },
23
+ "targets": {
24
+ "$ref": "#/$defs/__schema8"
25
+ },
26
+ "neutral": {
27
+ "$ref": "#/$defs/__schema10"
28
+ },
29
+ "requiredAttempts": {
30
+ "$ref": "#/$defs/__schema12"
31
+ },
32
+ "timeoutMsPerExecution": {
33
+ "$ref": "#/$defs/__schema13"
34
+ }
35
+ },
36
+ "required": [
37
+ "schemaVersion",
38
+ "provenance",
39
+ "repository",
40
+ "adapter",
41
+ "test",
42
+ "expectedFailure",
43
+ "targets",
44
+ "neutral",
45
+ "requiredAttempts",
46
+ "timeoutMsPerExecution"
47
+ ],
48
+ "additionalProperties": false,
49
+ "title": "AssertLedger witness import request",
50
+ "description": "A recorded red/green witness to replay: mutated targets, one designated test and its expected failure line.",
51
+ "$defs": {
52
+ "__schema0": {
53
+ "type": "string",
54
+ "const": "1.0.0"
55
+ },
56
+ "__schema1": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 512
60
+ },
61
+ "__schema2": {
62
+ "type": "object",
63
+ "properties": {
64
+ "root": {
65
+ "type": "string",
66
+ "minLength": 1
67
+ },
68
+ "exclude": {
69
+ "maxItems": 1000,
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/$defs/__schema3"
73
+ }
74
+ },
75
+ "includeDependencies": {
76
+ "type": "boolean"
77
+ },
78
+ "git": {
79
+ "type": "string",
80
+ "enum": ["excluded", "synthesized"]
81
+ }
82
+ },
83
+ "required": ["root", "exclude", "includeDependencies", "git"],
84
+ "additionalProperties": false
85
+ },
86
+ "__schema3": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 512
90
+ },
91
+ "__schema4": {
92
+ "type": "object",
93
+ "properties": {
94
+ "kind": {
95
+ "type": "string",
96
+ "const": "bun-test-designated"
97
+ },
98
+ "executable": {
99
+ "type": "string",
100
+ "minLength": 1
101
+ },
102
+ "testTimeoutMs": {
103
+ "anyOf": [
104
+ {
105
+ "type": "integer",
106
+ "minimum": 1,
107
+ "maximum": 3600000
108
+ },
109
+ {
110
+ "type": "null"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ "required": ["kind", "executable", "testTimeoutMs"],
116
+ "additionalProperties": false
117
+ },
118
+ "__schema5": {
119
+ "type": "object",
120
+ "properties": {
121
+ "file": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 512
125
+ },
126
+ "path": {
127
+ "minItems": 1,
128
+ "maxItems": 32,
129
+ "type": "array",
130
+ "items": {
131
+ "$ref": "#/$defs/__schema6"
132
+ }
133
+ }
134
+ },
135
+ "required": ["file", "path"],
136
+ "additionalProperties": false
137
+ },
138
+ "__schema6": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 1024
142
+ },
143
+ "__schema7": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 1024
147
+ },
148
+ "__schema8": {
149
+ "minItems": 1,
150
+ "maxItems": 100,
151
+ "type": "array",
152
+ "items": {
153
+ "$ref": "#/$defs/__schema9"
154
+ }
155
+ },
156
+ "__schema9": {
157
+ "type": "object",
158
+ "properties": {
159
+ "path": {
160
+ "type": "string",
161
+ "minLength": 1,
162
+ "maxLength": 512
163
+ },
164
+ "beforeDigest": {
165
+ "type": "string",
166
+ "pattern": "^sha256:[a-f0-9]{64}$"
167
+ },
168
+ "content": {
169
+ "type": "string",
170
+ "maxLength": 1048576
171
+ }
172
+ },
173
+ "required": ["path", "beforeDigest", "content"],
174
+ "additionalProperties": false
175
+ },
176
+ "__schema10": {
177
+ "anyOf": [
178
+ {
179
+ "type": "object",
180
+ "properties": {
181
+ "reason": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 1024
185
+ },
186
+ "files": {
187
+ "minItems": 1,
188
+ "maxItems": 100,
189
+ "type": "array",
190
+ "items": {
191
+ "$ref": "#/$defs/__schema11"
192
+ }
193
+ }
194
+ },
195
+ "required": ["reason", "files"],
196
+ "additionalProperties": false
197
+ },
198
+ {
199
+ "type": "null"
200
+ }
201
+ ]
202
+ },
203
+ "__schema11": {
204
+ "type": "object",
205
+ "properties": {
206
+ "path": {
207
+ "type": "string",
208
+ "minLength": 1,
209
+ "maxLength": 512
210
+ },
211
+ "content": {
212
+ "type": "string",
213
+ "maxLength": 1048576
214
+ }
215
+ },
216
+ "required": ["path", "content"],
217
+ "additionalProperties": false
218
+ },
219
+ "__schema12": {
220
+ "type": "integer",
221
+ "minimum": 2,
222
+ "maximum": 10
223
+ },
224
+ "__schema13": {
225
+ "type": "integer",
226
+ "minimum": 1000,
227
+ "maximum": 3600000
228
+ }
229
+ },
230
+ "$id": "https://testforge.dev/schemas/witness-import-request.v1.json"
231
+ }