assertledger 1.1.1 → 1.3.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 (77) hide show
  1. package/README.fr.md +34 -4
  2. package/README.md +33 -4
  3. package/conformance/schema-extensions.json +25 -0
  4. package/dist/build-info.json +1 -1
  5. package/dist/cli.d.ts +8 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +292 -25
  8. package/dist/cli.js.map +1 -1
  9. package/dist/contracts/index.d.ts +510 -4
  10. package/dist/contracts/index.d.ts.map +1 -1
  11. package/dist/contracts/index.js +230 -16
  12. package/dist/contracts/index.js.map +1 -1
  13. package/dist/contracts/runtime-doctor.d.ts +123 -0
  14. package/dist/contracts/runtime-doctor.d.ts.map +1 -1
  15. package/dist/contracts/runtime-doctor.js +64 -0
  16. package/dist/contracts/runtime-doctor.js.map +1 -1
  17. package/dist/core/index.d.ts.map +1 -1
  18. package/dist/core/index.js +5 -2
  19. package/dist/core/index.js.map +1 -1
  20. package/dist/diagnostics.d.ts.map +1 -1
  21. package/dist/diagnostics.js +26 -2
  22. package/dist/diagnostics.js.map +1 -1
  23. package/dist/engine/adapters/bun-test-profile.d.ts +17 -0
  24. package/dist/engine/adapters/bun-test-profile.d.ts.map +1 -0
  25. package/dist/engine/adapters/bun-test-profile.js +17 -0
  26. package/dist/engine/adapters/bun-test-profile.js.map +1 -0
  27. package/dist/engine/connection.d.ts +25 -1
  28. package/dist/engine/connection.d.ts.map +1 -1
  29. package/dist/engine/connection.js +144 -31
  30. package/dist/engine/connection.js.map +1 -1
  31. package/dist/engine/demo.d.ts +16 -0
  32. package/dist/engine/demo.d.ts.map +1 -0
  33. package/dist/engine/demo.js +51 -0
  34. package/dist/engine/demo.js.map +1 -0
  35. package/dist/engine/git-regression.d.ts +2 -2
  36. package/dist/engine/git-regression.d.ts.map +1 -1
  37. package/dist/engine/git-regression.js.map +1 -1
  38. package/dist/engine/index.d.ts +26 -5
  39. package/dist/engine/index.d.ts.map +1 -1
  40. package/dist/engine/index.js +539 -58
  41. package/dist/engine/index.js.map +1 -1
  42. package/dist/engine/runtime-doctor.d.ts +13 -4
  43. package/dist/engine/runtime-doctor.d.ts.map +1 -1
  44. package/dist/engine/runtime-doctor.js +80 -2
  45. package/dist/engine/runtime-doctor.js.map +1 -1
  46. package/dist/engine/setup.d.ts +39 -0
  47. package/dist/engine/setup.d.ts.map +1 -0
  48. package/dist/engine/setup.js +411 -0
  49. package/dist/engine/setup.js.map +1 -0
  50. package/dist/mcp/index.d.ts.map +1 -1
  51. package/dist/mcp/index.js +36 -6
  52. package/dist/mcp/index.js.map +1 -1
  53. package/dist/sdk/index.d.ts +7 -6
  54. package/dist/sdk/index.d.ts.map +1 -1
  55. package/dist/sdk/index.js +20 -7
  56. package/dist/sdk/index.js.map +1 -1
  57. package/docs/adapter-protocol.md +61 -0
  58. package/docs/architecture.md +4 -1
  59. package/docs/developer-experience.md +39 -5
  60. package/docs/distribution.md +8 -3
  61. package/docs/migration-verification-v3.md +33 -0
  62. package/docs/project-intent.md +7 -5
  63. package/docs/reference.md +9 -5
  64. package/docs/repository-init.md +52 -7
  65. package/docs/runtime-doctor.md +12 -9
  66. package/integrations/bun/assertions.d.mts +4 -0
  67. package/integrations/bun/assertions.mjs +25 -0
  68. package/integrations/bun/driver.d.mts +27 -0
  69. package/integrations/bun/driver.mjs +383 -0
  70. package/integrations/bun/preload.mjs +165 -0
  71. package/integrations/skill/SKILL.md +4 -1
  72. package/package.json +7 -3
  73. package/schemas/evidence-manifest.v3.json +897 -0
  74. package/schemas/repository-init-config.v2.json +210 -0
  75. package/schemas/repository-init-lock.v2.json +162 -0
  76. package/schemas/repository-init-result.v2.json +212 -0
  77. package/schemas/verification-request.v3.json +484 -0
@@ -0,0 +1,210 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "repository": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "packageManager": {
12
+ "$ref": "#/$defs/__schema3"
13
+ },
14
+ "framework": {
15
+ "$ref": "#/$defs/__schema4"
16
+ },
17
+ "testCommand": {
18
+ "$ref": "#/$defs/__schema5"
19
+ },
20
+ "adapter": {
21
+ "$ref": "#/$defs/__schema7"
22
+ },
23
+ "candidateRoots": {
24
+ "$ref": "#/$defs/__schema12"
25
+ }
26
+ },
27
+ "required": [
28
+ "schemaVersion",
29
+ "repository",
30
+ "packageManager",
31
+ "framework",
32
+ "testCommand",
33
+ "adapter",
34
+ "candidateRoots"
35
+ ],
36
+ "additionalProperties": false,
37
+ "title": "AssertLedger repository init config v2",
38
+ "description": "Portable repository configuration with the official Bun test adapter.",
39
+ "$defs": {
40
+ "__schema0": {
41
+ "type": "string",
42
+ "const": "2.0.0"
43
+ },
44
+ "__schema1": {
45
+ "type": "object",
46
+ "properties": {
47
+ "root": {
48
+ "type": "string",
49
+ "const": "."
50
+ },
51
+ "exclude": {
52
+ "maxItems": 1000,
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "#/$defs/__schema2"
56
+ }
57
+ }
58
+ },
59
+ "required": ["root", "exclude"],
60
+ "additionalProperties": false
61
+ },
62
+ "__schema2": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "maxLength": 512
66
+ },
67
+ "__schema3": {
68
+ "type": "string",
69
+ "enum": ["pnpm", "npm", "yarn", "bun", "uv", "poetry", "pip"]
70
+ },
71
+ "__schema4": {
72
+ "type": "string",
73
+ "enum": ["node:test", "vitest", "jest", "bun:test", "pytest"]
74
+ },
75
+ "__schema5": {
76
+ "type": "object",
77
+ "properties": {
78
+ "executable": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "maxLength": 512
82
+ },
83
+ "arguments": {
84
+ "maxItems": 100,
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/$defs/__schema6"
88
+ }
89
+ }
90
+ },
91
+ "required": ["executable", "arguments"],
92
+ "additionalProperties": false
93
+ },
94
+ "__schema6": {
95
+ "type": "string",
96
+ "maxLength": 1024
97
+ },
98
+ "__schema7": {
99
+ "oneOf": [
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "kind": {
104
+ "type": "string",
105
+ "const": "node-test"
106
+ },
107
+ "executable": {
108
+ "type": "string",
109
+ "minLength": 1
110
+ },
111
+ "baseTestFiles": {
112
+ "minItems": 1,
113
+ "maxItems": 1000,
114
+ "type": "array",
115
+ "items": {
116
+ "$ref": "#/$defs/__schema8"
117
+ }
118
+ },
119
+ "extraArguments": {
120
+ "maxItems": 0,
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "#/$defs/__schema9"
124
+ }
125
+ }
126
+ },
127
+ "required": ["kind", "executable", "baseTestFiles"],
128
+ "additionalProperties": false
129
+ },
130
+ {
131
+ "type": "object",
132
+ "properties": {
133
+ "kind": {
134
+ "type": "string",
135
+ "const": "testforge-command"
136
+ },
137
+ "executable": {
138
+ "type": "string",
139
+ "minLength": 1
140
+ },
141
+ "arguments": {
142
+ "maxItems": 100,
143
+ "type": "array",
144
+ "items": {
145
+ "$ref": "#/$defs/__schema10"
146
+ }
147
+ },
148
+ "protocolVersion": {
149
+ "type": "string",
150
+ "const": "1.0.0"
151
+ }
152
+ },
153
+ "required": ["kind", "executable", "arguments", "protocolVersion"],
154
+ "additionalProperties": false
155
+ },
156
+ {
157
+ "type": "object",
158
+ "properties": {
159
+ "kind": {
160
+ "type": "string",
161
+ "const": "bun-test"
162
+ },
163
+ "executable": {
164
+ "type": "string",
165
+ "minLength": 1
166
+ },
167
+ "baseTestFiles": {
168
+ "minItems": 1,
169
+ "maxItems": 1000,
170
+ "type": "array",
171
+ "items": {
172
+ "$ref": "#/$defs/__schema11"
173
+ }
174
+ }
175
+ },
176
+ "required": ["kind", "executable", "baseTestFiles"],
177
+ "additionalProperties": false
178
+ }
179
+ ]
180
+ },
181
+ "__schema8": {
182
+ "type": "string",
183
+ "minLength": 1
184
+ },
185
+ "__schema9": {
186
+ "type": "string"
187
+ },
188
+ "__schema10": {
189
+ "type": "string"
190
+ },
191
+ "__schema11": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ },
195
+ "__schema12": {
196
+ "minItems": 1,
197
+ "maxItems": 100,
198
+ "type": "array",
199
+ "items": {
200
+ "$ref": "#/$defs/__schema13"
201
+ }
202
+ },
203
+ "__schema13": {
204
+ "type": "string",
205
+ "minLength": 1,
206
+ "maxLength": 512
207
+ }
208
+ },
209
+ "$id": "https://testforge.dev/schemas/repository-init-config.v2.json"
210
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "configDigest": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "detector": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "evidence": {
15
+ "$ref": "#/$defs/__schema3"
16
+ },
17
+ "detections": {
18
+ "$ref": "#/$defs/__schema4"
19
+ },
20
+ "lockDigest": {
21
+ "$ref": "#/$defs/__schema1"
22
+ }
23
+ },
24
+ "required": ["schemaVersion", "configDigest", "detector", "evidence", "detections", "lockDigest"],
25
+ "additionalProperties": false,
26
+ "title": "AssertLedger repository init lock v2",
27
+ "description": "Deterministic initialization evidence for the Bun test adapter.",
28
+ "$defs": {
29
+ "__schema0": {
30
+ "type": "string",
31
+ "const": "2.0.0"
32
+ },
33
+ "__schema1": {
34
+ "type": "string",
35
+ "pattern": "^sha256:[a-f0-9]{64}$"
36
+ },
37
+ "__schema2": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string",
42
+ "const": "assertledger-init"
43
+ },
44
+ "version": {
45
+ "type": "string",
46
+ "const": "2.0.0"
47
+ }
48
+ },
49
+ "required": ["name", "version"],
50
+ "additionalProperties": false
51
+ },
52
+ "__schema3": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "path": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "maxLength": 1024
61
+ },
62
+ "digest": {
63
+ "$ref": "#/$defs/__schema1"
64
+ },
65
+ "kind": {
66
+ "type": "string",
67
+ "enum": ["PACKAGE_MANIFEST", "LOCKFILE", "TEST_SOURCE", "CI_CONFIG", "ADAPTER_CONFIG"]
68
+ }
69
+ },
70
+ "required": ["path", "digest", "kind"],
71
+ "additionalProperties": false
72
+ }
73
+ },
74
+ "__schema4": {
75
+ "type": "object",
76
+ "properties": {
77
+ "packageManager": {
78
+ "anyOf": [
79
+ {
80
+ "type": "string",
81
+ "enum": ["pnpm", "npm", "yarn", "bun", "uv", "poetry", "pip"]
82
+ },
83
+ {
84
+ "type": "null"
85
+ }
86
+ ]
87
+ },
88
+ "framework": {
89
+ "anyOf": [
90
+ {
91
+ "type": "string",
92
+ "enum": ["node:test", "vitest", "jest", "bun:test", "pytest"]
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ "testCommand": {
100
+ "anyOf": [
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "executable": {
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "maxLength": 512
108
+ },
109
+ "arguments": {
110
+ "maxItems": 100,
111
+ "type": "array",
112
+ "items": {
113
+ "$ref": "#/$defs/__schema5"
114
+ }
115
+ }
116
+ },
117
+ "required": ["executable", "arguments"],
118
+ "additionalProperties": false
119
+ },
120
+ {
121
+ "type": "null"
122
+ }
123
+ ]
124
+ },
125
+ "ciProviders": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string",
129
+ "enum": ["github-actions", "gitlab-ci", "azure-pipelines", "circleci"]
130
+ }
131
+ },
132
+ "adapterRecommendation": {
133
+ "type": "string",
134
+ "enum": ["node-test", "bun-test", "operator-supplied", "unavailable"]
135
+ },
136
+ "reasonCodes": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 128,
142
+ "pattern": "^[A-Z][A-Z0-9_]*$"
143
+ }
144
+ }
145
+ },
146
+ "required": [
147
+ "packageManager",
148
+ "framework",
149
+ "testCommand",
150
+ "ciProviders",
151
+ "adapterRecommendation",
152
+ "reasonCodes"
153
+ ],
154
+ "additionalProperties": false
155
+ },
156
+ "__schema5": {
157
+ "type": "string",
158
+ "maxLength": 1024
159
+ }
160
+ },
161
+ "$id": "https://testforge.dev/schemas/repository-init-lock.v2.json"
162
+ }
@@ -0,0 +1,212 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "status": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "reasonCodes": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "detections": {
15
+ "$ref": "#/$defs/__schema4"
16
+ },
17
+ "actions": {
18
+ "$ref": "#/$defs/__schema7"
19
+ },
20
+ "files": {
21
+ "$ref": "#/$defs/__schema8"
22
+ },
23
+ "requiredOperatorInputs": {
24
+ "$ref": "#/$defs/__schema9"
25
+ },
26
+ "nextCommands": {
27
+ "$ref": "#/$defs/__schema10"
28
+ }
29
+ },
30
+ "required": [
31
+ "schemaVersion",
32
+ "status",
33
+ "reasonCodes",
34
+ "detections",
35
+ "actions",
36
+ "files",
37
+ "requiredOperatorInputs",
38
+ "nextCommands"
39
+ ],
40
+ "additionalProperties": false,
41
+ "title": "AssertLedger repository init result v2",
42
+ "description": "Deterministic initialization plan for the Bun test adapter.",
43
+ "$defs": {
44
+ "__schema0": {
45
+ "type": "string",
46
+ "const": "2.0.0"
47
+ },
48
+ "__schema1": {
49
+ "type": "string",
50
+ "enum": ["CREATED", "UNCHANGED", "WOULD_CREATE", "BLOCKED", "CONFLICT"]
51
+ },
52
+ "__schema2": {
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "#/$defs/__schema3"
56
+ }
57
+ },
58
+ "__schema3": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "maxLength": 128,
62
+ "pattern": "^[A-Z][A-Z0-9_]*$"
63
+ },
64
+ "__schema4": {
65
+ "type": "object",
66
+ "properties": {
67
+ "packageManager": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string",
71
+ "enum": ["pnpm", "npm", "yarn", "bun", "uv", "poetry", "pip"]
72
+ },
73
+ {
74
+ "type": "null"
75
+ }
76
+ ]
77
+ },
78
+ "framework": {
79
+ "anyOf": [
80
+ {
81
+ "type": "string",
82
+ "enum": ["node:test", "vitest", "jest", "bun:test", "pytest"]
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ]
88
+ },
89
+ "testCommand": {
90
+ "anyOf": [
91
+ {
92
+ "$ref": "#/$defs/__schema5"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ "ciProviders": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string",
103
+ "enum": ["github-actions", "gitlab-ci", "azure-pipelines", "circleci"]
104
+ }
105
+ },
106
+ "adapterRecommendation": {
107
+ "type": "string",
108
+ "enum": ["node-test", "bun-test", "operator-supplied", "unavailable"]
109
+ },
110
+ "reasonCodes": {
111
+ "type": "array",
112
+ "items": {
113
+ "$ref": "#/$defs/__schema3"
114
+ }
115
+ }
116
+ },
117
+ "required": [
118
+ "packageManager",
119
+ "framework",
120
+ "testCommand",
121
+ "ciProviders",
122
+ "adapterRecommendation",
123
+ "reasonCodes"
124
+ ],
125
+ "additionalProperties": false
126
+ },
127
+ "__schema5": {
128
+ "type": "object",
129
+ "properties": {
130
+ "executable": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "maxLength": 512
134
+ },
135
+ "arguments": {
136
+ "maxItems": 100,
137
+ "type": "array",
138
+ "items": {
139
+ "$ref": "#/$defs/__schema6"
140
+ }
141
+ }
142
+ },
143
+ "required": ["executable", "arguments"],
144
+ "additionalProperties": false
145
+ },
146
+ "__schema6": {
147
+ "type": "string",
148
+ "maxLength": 1024
149
+ },
150
+ "__schema7": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "object",
154
+ "properties": {
155
+ "kind": {
156
+ "type": "string",
157
+ "enum": ["CREATE", "REGENERATE"]
158
+ },
159
+ "path": {
160
+ "type": "string",
161
+ "enum": ["assertledger.config.json", "assertledger.lock.json"]
162
+ }
163
+ },
164
+ "required": ["kind", "path"],
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "__schema8": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "path": {
174
+ "type": "string",
175
+ "enum": ["assertledger.config.json", "assertledger.lock.json"]
176
+ },
177
+ "digest": {
178
+ "type": "string",
179
+ "pattern": "^sha256:[a-f0-9]{64}$"
180
+ },
181
+ "content": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 16777216
185
+ }
186
+ },
187
+ "required": ["path", "digest", "content"],
188
+ "additionalProperties": false
189
+ }
190
+ },
191
+ "__schema9": {
192
+ "type": "array",
193
+ "prefixItems": [
194
+ {
195
+ "type": "string",
196
+ "const": "worlds"
197
+ },
198
+ {
199
+ "type": "string",
200
+ "const": "candidates"
201
+ }
202
+ ]
203
+ },
204
+ "__schema10": {
205
+ "type": "array",
206
+ "items": {
207
+ "$ref": "#/$defs/__schema5"
208
+ }
209
+ }
210
+ },
211
+ "$id": "https://testforge.dev/schemas/repository-init-result.v2.json"
212
+ }