@irogane/kaji 0.2.0-beta.11
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 +105 -0
- package/README.md +598 -0
- package/contracts/README.md +14 -0
- package/contracts/beta-core-v1.json +52 -0
- package/contracts/cli/init-cases-v1.json +27 -0
- package/contracts/errors/error-codes.json +48 -0
- package/contracts/errors/integration-recovery-v1.json +127 -0
- package/contracts/errors/provider-normalization.json +111 -0
- package/contracts/events/conformance-invalid.json +20 -0
- package/contracts/events/conformance.json +511 -0
- package/contracts/events/new-kaji-event-v1.schema.json +1021 -0
- package/contracts/events/stored-kaji-event-v1.schema.json +1025 -0
- package/contracts/feature-tiers-v1.json +488 -0
- package/contracts/integrations/abi-index-v1.json +8 -0
- package/contracts/integrations/conformance-invalid.json +443 -0
- package/contracts/integrations/conformance-valid.json +121 -0
- package/contracts/integrations/copy-provenance-v1.schema.json +61 -0
- package/contracts/integrations/echo-tool-abi-v1.json +37 -0
- package/contracts/integrations/github-api-conformance-v1.json +644 -0
- package/contracts/integrations/github-tool-abi-typescript-v1.json +369 -0
- package/contracts/integrations/github-tool-abi-v1.json +146 -0
- package/contracts/integrations/gmail-api-conformance-v1.json +750 -0
- package/contracts/integrations/gmail-tool-abi-v1.json +62 -0
- package/contracts/integrations/index.schema.json +37 -0
- package/contracts/integrations/manifest.schema.json +119 -0
- package/contracts/parity/expected-normalized.json +4906 -0
- package/contracts/parity/scenarios.json +100 -0
- package/contracts/parity/scenarios.schema.json +214 -0
- package/contracts/providers/cost-conformance.json +112 -0
- package/contracts/release/github-proof-v1.schema.json +138 -0
- package/contracts/release/gmail-proof-v1.schema.json +138 -0
- package/contracts/release/kaji-ts-consumer-handoff-v1.schema.json +1289 -0
- package/contracts/release/publisher-identity-receipt-v1.schema.json +319 -0
- package/contracts/release/typescript-onboarding-evidence-v1.schema.json +740 -0
- package/contracts/tools/conformance-invalid.json +271 -0
- package/contracts/tools/conformance-valid.json +78 -0
- package/contracts/tools/tool-schema-v1.schema.json +18 -0
- package/dist/anthropic.cjs +1231 -0
- package/dist/anthropic.cjs.map +1 -0
- package/dist/anthropic.d.cts +26 -0
- package/dist/anthropic.d.ts +26 -0
- package/dist/anthropic.js +270 -0
- package/dist/anthropic.js.map +1 -0
- package/dist/auth.cjs +1507 -0
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.d.cts +129 -0
- package/dist/auth.d.ts +129 -0
- package/dist/auth.js +1039 -0
- package/dist/auth.js.map +1 -0
- package/dist/base-B9FRMcP8.d.cts +140 -0
- package/dist/base-nHQd1VtS.d.ts +140 -0
- package/dist/chunk-AAM33KAO.js +4367 -0
- package/dist/chunk-AAM33KAO.js.map +1 -0
- package/dist/chunk-KAJ6BM64.js +153 -0
- package/dist/chunk-KAJ6BM64.js.map +1 -0
- package/dist/chunk-KCAXIOZS.js +308 -0
- package/dist/chunk-KCAXIOZS.js.map +1 -0
- package/dist/chunk-LSJ4AVO2.js +243 -0
- package/dist/chunk-LSJ4AVO2.js.map +1 -0
- package/dist/chunk-TM7ZGOJX.js +716 -0
- package/dist/chunk-TM7ZGOJX.js.map +1 -0
- package/dist/cli/bin.d.ts +2 -0
- package/dist/cli/bin.js +13 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/chunk-2RCWPRVY.js +6277 -0
- package/dist/cli/chunk-2RCWPRVY.js.map +1 -0
- package/dist/cli/chunk-SEBX54TR.js +681 -0
- package/dist/cli/chunk-SEBX54TR.js.map +1 -0
- package/dist/cli/index.d.ts +232 -0
- package/dist/cli/index.js +11 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init-worker.d.ts +2 -0
- package/dist/cli/init-worker.js +18 -0
- package/dist/cli/init-worker.js.map +1 -0
- package/dist/cli/integration-copy-worker.js +48 -0
- package/dist/cli/integration-copy-worker.js.map +1 -0
- package/dist/cli/package-entry-cjs.cjs +21 -0
- package/dist/cli/package-entry-cjs.cjs.map +1 -0
- package/dist/cli/package-entry-cjs.d.cts +2 -0
- package/dist/cli/package-entry.d.ts +2 -0
- package/dist/cli/package-entry.js +13 -0
- package/dist/cli/package-entry.js.map +1 -0
- package/dist/context-BaFHrQHv.d.cts +21 -0
- package/dist/context-BaFHrQHv.d.ts +21 -0
- package/dist/context-C-YPY-GS.d.cts +1538 -0
- package/dist/context-C-YPY-GS.d.ts +1538 -0
- package/dist/index.cjs +12346 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1560 -0
- package/dist/index.d.ts +1560 -0
- package/dist/index.js +7852 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/github.cjs +2092 -0
- package/dist/integrations/github.cjs.map +1 -0
- package/dist/integrations/github.d.cts +21 -0
- package/dist/integrations/github.d.ts +21 -0
- package/dist/integrations/github.js +2088 -0
- package/dist/integrations/github.js.map +1 -0
- package/dist/integrations.cjs +3370 -0
- package/dist/integrations.cjs.map +1 -0
- package/dist/integrations.d.cts +202 -0
- package/dist/integrations.d.ts +202 -0
- package/dist/integrations.js +2650 -0
- package/dist/integrations.js.map +1 -0
- package/dist/observability-Cj--OkME.d.cts +96 -0
- package/dist/observability-Cj--OkME.d.ts +96 -0
- package/dist/openai.cjs +1235 -0
- package/dist/openai.cjs.map +1 -0
- package/dist/openai.d.cts +32 -0
- package/dist/openai.d.ts +32 -0
- package/dist/openai.js +272 -0
- package/dist/openai.js.map +1 -0
- package/dist/testing.cjs +554 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +43 -0
- package/dist/testing.d.ts +43 -0
- package/dist/testing.js +118 -0
- package/dist/testing.js.map +1 -0
- package/package.json +188 -0
- package/registry/echo/index.ts +53 -0
- package/registry/echo/manifest.json +53 -0
- package/registry/github/LICENSE +105 -0
- package/registry/github/client.ts +1727 -0
- package/registry/github/index.ts +263 -0
- package/registry/github/manifest.json +227 -0
- package/registry/github/owner-fixtures.json +10 -0
- package/registry/github/tests/github.test.ts +32 -0
- package/registry/gmail/LICENSE +105 -0
- package/registry/gmail/client.ts +548 -0
- package/registry/gmail/index.ts +165 -0
- package/registry/gmail/manifest.json +102 -0
- package/registry/gmail/owner-fixtures.json +10 -0
- package/registry/gmail/tests/gmail.test.ts +32 -0
- package/registry/index.json +21 -0
- package/registry/index.schema.json +37 -0
- package/registry/schema.json +119 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kaji.dev/contracts/release/publisher-identity-receipt-v1.schema.json",
|
|
4
|
+
"title": "Kaji npm publisher identity receipt v1",
|
|
5
|
+
"description": "Closed, redaction-safe evidence for the protected npm publisher identity step. A raw receipt exists only when the publish job starts; no-job outcomes are represented separately as not_run publication status.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"commit",
|
|
11
|
+
"tag",
|
|
12
|
+
"workflowRun",
|
|
13
|
+
"workflowRunAttempt",
|
|
14
|
+
"workflowPath",
|
|
15
|
+
"workflowSha",
|
|
16
|
+
"expectedPublisher",
|
|
17
|
+
"actualPublisher",
|
|
18
|
+
"conclusion",
|
|
19
|
+
"exitCode",
|
|
20
|
+
"failureCode"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schemaVersion": {
|
|
24
|
+
"const": "1.0.0"
|
|
25
|
+
},
|
|
26
|
+
"commit": {
|
|
27
|
+
"$ref": "#/$defs/commit"
|
|
28
|
+
},
|
|
29
|
+
"tag": {
|
|
30
|
+
"const": "kaji-v0.2.0-beta.11"
|
|
31
|
+
},
|
|
32
|
+
"workflowRun": {
|
|
33
|
+
"$ref": "#/$defs/workflowRun"
|
|
34
|
+
},
|
|
35
|
+
"workflowRunAttempt": {
|
|
36
|
+
"const": 1
|
|
37
|
+
},
|
|
38
|
+
"workflowPath": {
|
|
39
|
+
"const": ".github/workflows/kaji.publish.yml"
|
|
40
|
+
},
|
|
41
|
+
"workflowSha": {
|
|
42
|
+
"$ref": "#/$defs/commit"
|
|
43
|
+
},
|
|
44
|
+
"expectedPublisher": {
|
|
45
|
+
"oneOf": [
|
|
46
|
+
{
|
|
47
|
+
"$ref": "#/$defs/npmIdentity"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "null"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"actualPublisher": {
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{
|
|
57
|
+
"$ref": "#/$defs/npmIdentity"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "null"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"conclusion": {
|
|
65
|
+
"enum": [
|
|
66
|
+
"passed",
|
|
67
|
+
"failed"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"exitCode": {
|
|
71
|
+
"oneOf": [
|
|
72
|
+
{
|
|
73
|
+
"$ref": "#/$defs/exitCode"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "null"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"failureCode": {
|
|
81
|
+
"oneOf": [
|
|
82
|
+
{
|
|
83
|
+
"enum": [
|
|
84
|
+
"identity_check_incomplete",
|
|
85
|
+
"expected_publisher_missing",
|
|
86
|
+
"expected_publisher_invalid",
|
|
87
|
+
"token_missing",
|
|
88
|
+
"npm_whoami_failed",
|
|
89
|
+
"npm_whoami_output_invalid",
|
|
90
|
+
"publisher_mismatch"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "null"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"oneOf": [
|
|
100
|
+
{
|
|
101
|
+
"$ref": "#/$defs/passed"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"$ref": "#/$defs/identityCheckIncomplete"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"$ref": "#/$defs/expectedPublisherMissing"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"$ref": "#/$defs/expectedPublisherInvalid"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"$ref": "#/$defs/tokenMissing"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"$ref": "#/$defs/npmWhoamiFailed"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"$ref": "#/$defs/npmWhoamiOutputInvalid"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"$ref": "#/$defs/publisherMismatch"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"$defs": {
|
|
126
|
+
"commit": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
129
|
+
},
|
|
130
|
+
"workflowRun": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"pattern": "^https://github\\.com/enkyuan/alloy/actions/runs/[1-9][0-9]{0,15}$"
|
|
133
|
+
},
|
|
134
|
+
"npmIdentity": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"maxLength": 64,
|
|
138
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
|
|
139
|
+
"allOf": [
|
|
140
|
+
{
|
|
141
|
+
"not": {
|
|
142
|
+
"pattern": "^(?:npm_|github_pat_|gh[oprsu]_)"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"not": {
|
|
147
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"exitCode": {
|
|
153
|
+
"type": "integer",
|
|
154
|
+
"minimum": 0,
|
|
155
|
+
"maximum": 255
|
|
156
|
+
},
|
|
157
|
+
"passed": {
|
|
158
|
+
"properties": {
|
|
159
|
+
"expectedPublisher": {
|
|
160
|
+
"$ref": "#/$defs/npmIdentity"
|
|
161
|
+
},
|
|
162
|
+
"actualPublisher": {
|
|
163
|
+
"$ref": "#/$defs/npmIdentity"
|
|
164
|
+
},
|
|
165
|
+
"conclusion": {
|
|
166
|
+
"const": "passed"
|
|
167
|
+
},
|
|
168
|
+
"exitCode": {
|
|
169
|
+
"const": 0
|
|
170
|
+
},
|
|
171
|
+
"failureCode": {
|
|
172
|
+
"type": "null"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"identityCheckIncomplete": {
|
|
177
|
+
"properties": {
|
|
178
|
+
"expectedPublisher": {
|
|
179
|
+
"oneOf": [
|
|
180
|
+
{
|
|
181
|
+
"$ref": "#/$defs/npmIdentity"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "null"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"actualPublisher": {
|
|
189
|
+
"type": "null"
|
|
190
|
+
},
|
|
191
|
+
"conclusion": {
|
|
192
|
+
"const": "failed"
|
|
193
|
+
},
|
|
194
|
+
"exitCode": {
|
|
195
|
+
"type": "null"
|
|
196
|
+
},
|
|
197
|
+
"failureCode": {
|
|
198
|
+
"const": "identity_check_incomplete"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"expectedPublisherMissing": {
|
|
203
|
+
"properties": {
|
|
204
|
+
"expectedPublisher": {
|
|
205
|
+
"type": "null"
|
|
206
|
+
},
|
|
207
|
+
"actualPublisher": {
|
|
208
|
+
"type": "null"
|
|
209
|
+
},
|
|
210
|
+
"conclusion": {
|
|
211
|
+
"const": "failed"
|
|
212
|
+
},
|
|
213
|
+
"exitCode": {
|
|
214
|
+
"const": 1
|
|
215
|
+
},
|
|
216
|
+
"failureCode": {
|
|
217
|
+
"const": "expected_publisher_missing"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"expectedPublisherInvalid": {
|
|
222
|
+
"properties": {
|
|
223
|
+
"expectedPublisher": {
|
|
224
|
+
"type": "null"
|
|
225
|
+
},
|
|
226
|
+
"actualPublisher": {
|
|
227
|
+
"type": "null"
|
|
228
|
+
},
|
|
229
|
+
"conclusion": {
|
|
230
|
+
"const": "failed"
|
|
231
|
+
},
|
|
232
|
+
"exitCode": {
|
|
233
|
+
"const": 1
|
|
234
|
+
},
|
|
235
|
+
"failureCode": {
|
|
236
|
+
"const": "expected_publisher_invalid"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"tokenMissing": {
|
|
241
|
+
"properties": {
|
|
242
|
+
"expectedPublisher": {
|
|
243
|
+
"$ref": "#/$defs/npmIdentity"
|
|
244
|
+
},
|
|
245
|
+
"actualPublisher": {
|
|
246
|
+
"type": "null"
|
|
247
|
+
},
|
|
248
|
+
"conclusion": {
|
|
249
|
+
"const": "failed"
|
|
250
|
+
},
|
|
251
|
+
"exitCode": {
|
|
252
|
+
"const": 1
|
|
253
|
+
},
|
|
254
|
+
"failureCode": {
|
|
255
|
+
"const": "token_missing"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"npmWhoamiFailed": {
|
|
260
|
+
"properties": {
|
|
261
|
+
"expectedPublisher": {
|
|
262
|
+
"$ref": "#/$defs/npmIdentity"
|
|
263
|
+
},
|
|
264
|
+
"actualPublisher": {
|
|
265
|
+
"type": "null"
|
|
266
|
+
},
|
|
267
|
+
"conclusion": {
|
|
268
|
+
"const": "failed"
|
|
269
|
+
},
|
|
270
|
+
"exitCode": {
|
|
271
|
+
"type": "integer",
|
|
272
|
+
"minimum": 1,
|
|
273
|
+
"maximum": 255
|
|
274
|
+
},
|
|
275
|
+
"failureCode": {
|
|
276
|
+
"const": "npm_whoami_failed"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"npmWhoamiOutputInvalid": {
|
|
281
|
+
"properties": {
|
|
282
|
+
"expectedPublisher": {
|
|
283
|
+
"$ref": "#/$defs/npmIdentity"
|
|
284
|
+
},
|
|
285
|
+
"actualPublisher": {
|
|
286
|
+
"type": "null"
|
|
287
|
+
},
|
|
288
|
+
"conclusion": {
|
|
289
|
+
"const": "failed"
|
|
290
|
+
},
|
|
291
|
+
"exitCode": {
|
|
292
|
+
"const": 1
|
|
293
|
+
},
|
|
294
|
+
"failureCode": {
|
|
295
|
+
"const": "npm_whoami_output_invalid"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"publisherMismatch": {
|
|
300
|
+
"properties": {
|
|
301
|
+
"expectedPublisher": {
|
|
302
|
+
"$ref": "#/$defs/npmIdentity"
|
|
303
|
+
},
|
|
304
|
+
"actualPublisher": {
|
|
305
|
+
"$ref": "#/$defs/npmIdentity"
|
|
306
|
+
},
|
|
307
|
+
"conclusion": {
|
|
308
|
+
"const": "failed"
|
|
309
|
+
},
|
|
310
|
+
"exitCode": {
|
|
311
|
+
"const": 1
|
|
312
|
+
},
|
|
313
|
+
"failureCode": {
|
|
314
|
+
"const": "publisher_mismatch"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|