@redditech/agent-protocol 0.0.0-stage → 0.2.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 (55) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/LICENSE +21 -0
  3. package/README.md +394 -2
  4. package/dist/adl.d.ts +141 -0
  5. package/dist/adl.js +3601 -0
  6. package/dist/agent-stack-fixtures.d.ts +743 -0
  7. package/dist/agent-stack-fixtures.js +1554 -0
  8. package/dist/ai-catalog.d.ts +128 -0
  9. package/dist/ai-catalog.js +373 -0
  10. package/dist/attestation-reputation.d.ts +102 -0
  11. package/dist/attestation-reputation.js +279 -0
  12. package/dist/audd-rail-config.d.ts +102 -0
  13. package/dist/audd-rail-config.js +294 -0
  14. package/dist/browser-wallet-approval.d.ts +293 -0
  15. package/dist/browser-wallet-approval.js +1201 -0
  16. package/dist/discovery-source.d.ts +115 -0
  17. package/dist/discovery-source.js +251 -0
  18. package/dist/evidence-archive.d.ts +73 -0
  19. package/dist/evidence-archive.js +238 -0
  20. package/dist/index.d.ts +23 -0
  21. package/dist/index.js +23 -0
  22. package/dist/mpp-tempo-receipt-shapes.d.ts +201 -0
  23. package/dist/mpp-tempo-receipt-shapes.js +330 -0
  24. package/dist/okf-adapter.d.ts +229 -0
  25. package/dist/okf-adapter.js +556 -0
  26. package/dist/okf-conformance.d.ts +208 -0
  27. package/dist/okf-conformance.js +651 -0
  28. package/dist/okf-instruction-safety.d.ts +192 -0
  29. package/dist/okf-instruction-safety.js +509 -0
  30. package/dist/onboarding-analyser-handoff.d.ts +391 -0
  31. package/dist/onboarding-analyser-handoff.js +959 -0
  32. package/dist/onboarding-state-machine.d.ts +228 -0
  33. package/dist/onboarding-state-machine.js +432 -0
  34. package/dist/payment-records.d.ts +181 -0
  35. package/dist/payment-records.js +599 -0
  36. package/dist/policy.d.ts +33 -0
  37. package/dist/policy.js +45 -0
  38. package/dist/provider-trust.d.ts +113 -0
  39. package/dist/provider-trust.js +346 -0
  40. package/dist/quasar-registry-compatibility.d.ts +113 -0
  41. package/dist/quasar-registry-compatibility.js +214 -0
  42. package/dist/ranking-explainability.d.ts +202 -0
  43. package/dist/ranking-explainability.js +302 -0
  44. package/dist/receipt-v2.d.ts +202 -0
  45. package/dist/receipt-v2.js +418 -0
  46. package/dist/repo-explorer-evidence-manifest.d.ts +387 -0
  47. package/dist/repo-explorer-evidence-manifest.js +1187 -0
  48. package/dist/source-diagnostics.d.ts +84 -0
  49. package/dist/source-diagnostics.js +193 -0
  50. package/dist/source-trust-conformance-matrix.d.ts +207 -0
  51. package/dist/source-trust-conformance-matrix.js +672 -0
  52. package/examples/ard-no-spend-ai-catalog.json +51 -0
  53. package/examples/ard-no-spend-demo.mjs +355 -0
  54. package/examples/interpretation-guide-scenarios.mjs +302 -0
  55. package/package.json +144 -4
@@ -0,0 +1,302 @@
1
+ // Runnable no-spend scenarios for docs/RAP-INTERPRETATION-GUIDE-INTERIM.md (#679).
2
+ //
3
+ // Every scenario calls the built package with maintained fixtures and prints what
4
+ // the current implementation returns. Nothing here spends, opens a wallet, calls
5
+ // an RPC endpoint or a provider, or reads a credential. The one signature made
6
+ // here uses a fixture key derived from a public label in this file.
7
+ import { createHash, createPrivateKey, createPublicKey, sign } from 'node:crypto';
8
+ import {
9
+ AUDD_DETERMINISTIC_FIXTURE_MINT,
10
+ SOLANA_DEVNET_CAIP2,
11
+ SPL_TOKEN_PROGRAM_ID,
12
+ createLocalEvidenceArchive,
13
+ createPaymentIntentDraft,
14
+ createPaymentObservationRecord,
15
+ createRefundRecord,
16
+ deriveReddiPaymentId,
17
+ evidenceArchiveFixtureRecord,
18
+ hashReddiReceiptV2Body,
19
+ signReddiReceiptV2,
20
+ validatePaymentIntentRecord,
21
+ validatePaymentObservationRecord,
22
+ validatePaymentRecordLabels,
23
+ validateRefundRecord,
24
+ validateReddiReceiptV2,
25
+ verifyReddiReceiptV2,
26
+ } from '../dist/index.js';
27
+
28
+ const BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
29
+ function base58(bytes) {
30
+ let value = BigInt(`0x${Buffer.from(bytes).toString('hex') || '0'}`);
31
+ let out = '';
32
+ while (value > 0n) {
33
+ out = BASE58[Number(value % 58n)] + out;
34
+ value /= 58n;
35
+ }
36
+ for (const byte of bytes) {
37
+ if (byte !== 0) break;
38
+ out = `1${out}`;
39
+ }
40
+ return out;
41
+ }
42
+
43
+ /** A fixture ed25519 identity derived from a public label. Never use this pattern for a real key. */
44
+ function fixtureIdentity(label) {
45
+ const seed = createHash('sha256').update(label).digest();
46
+ const privateKey = createPrivateKey({
47
+ key: Buffer.concat([Buffer.from('302e020100300506032b657004220420', 'hex'), seed]),
48
+ format: 'der',
49
+ type: 'pkcs8',
50
+ });
51
+ const publicKey = createPublicKey(privateKey).export({ format: 'der', type: 'spki' }).subarray(-32);
52
+ return { address: base58(publicKey), signer: (message) => sign(null, Buffer.from(message), privateKey) };
53
+ }
54
+
55
+ const provider = fixtureIdentity('reddi:interpretation-guide:fixture-provider');
56
+ const otherProvider = fixtureIdentity('reddi:interpretation-guide:another-provider');
57
+ const requestBody = '{"prompt":"fixture request"}';
58
+ const responseBody = '{"answer":"fixture response"}';
59
+ // A made-up transaction signature: no payment was made.
60
+ const fixtureTxSignature = base58(createHash('sha512').update('reddi:interpretation-guide:fixture-transaction').digest());
61
+ const signedReceipt = await signReddiReceiptV2({
62
+ schemaVersion: 'reddi.receipt.v2',
63
+ providerId: provider.address,
64
+ declaredModel: 'fixture/model-a',
65
+ requestHash: hashReddiReceiptV2Body(requestBody),
66
+ responseHash: hashReddiReceiptV2Body(responseBody),
67
+ payment: {
68
+ network: 'solana-devnet',
69
+ txSignature: fixtureTxSignature,
70
+ currency: 'AUDD',
71
+ mint: AUDD_DETERMINISTIC_FIXTURE_MINT,
72
+ amount: '2500000',
73
+ fee: { amount: '0' },
74
+ settlement: 'direct',
75
+ },
76
+ issuedAt: '2026-08-01T00:00:00.000Z',
77
+ }, provider.signer);
78
+ const buyerKnows = {
79
+ providerId: provider.address,
80
+ declaredModel: 'fixture/model-a',
81
+ requestHash: hashReddiReceiptV2Body(requestBody),
82
+ responseHash: hashReddiReceiptV2Body(responseBody),
83
+ payment: { network: 'solana-devnet', txSignature: fixtureTxSignature, currency: 'AUDD', amount: '2500000' },
84
+ };
85
+
86
+ function verify(input, expected) {
87
+ const result = verifyReddiReceiptV2(input, expected);
88
+ return result.ok ? { ok: true, codes: [] } : { ok: false, codes: [...new Set(result.errors.map((item) => item.code))] };
89
+ }
90
+
91
+ const fixtureLabels = { environment: 'deterministic-fixture', eligibility: 'non_eligible' };
92
+ const createdAt = '2026-08-01T00:00:00.000Z';
93
+
94
+ function labels(value) {
95
+ const result = validatePaymentRecordLabels(value);
96
+ return result.ok ? { ok: true, codes: [] } : { ok: false, codes: result.errors.map((item) => item.code) };
97
+ }
98
+
99
+ function observation(status) {
100
+ return createPaymentObservationRecord({
101
+ labels: fixtureLabels,
102
+ observedAt: createdAt,
103
+ verifier: { name: 'fixture-spl-transfer-checked', version: 'v1' },
104
+ payment: {
105
+ rail: 'svm-spl-token-transfer-checked',
106
+ network: { caip2: SOLANA_DEVNET_CAIP2 },
107
+ asset: 'AUDD',
108
+ mint: AUDD_DETERMINISTIC_FIXTURE_MINT,
109
+ tokenProgram: SPL_TOKEN_PROGRAM_ID,
110
+ amountBaseUnits: '2500000',
111
+ payTo: 'payee-owner-fixture',
112
+ sourceTokenAccount: 'payer-audd-token-account-fixture',
113
+ destinationTokenAccount: 'payee-audd-token-account-fixture',
114
+ authority: 'payer-owner-fixture',
115
+ signature: 'fixtureSignature2222222222222222222222222222222222',
116
+ instructionIndex: '0',
117
+ },
118
+ confirmation: { slot: 443284058, blockTime: 1785523200, commitment: 'confirmed' },
119
+ status,
120
+ });
121
+ }
122
+
123
+ const scenarios = [
124
+ {
125
+ id: 'S1',
126
+ name: 'Success: a signed receipt matches what the buyer knows',
127
+ run: () => verify(signedReceipt, buyerKnows),
128
+ expect: { ok: true },
129
+ reading: 'The provider signed a statement that matches the provider you chose, the bytes you sent and received and the payment you name. It is the declared model, not proof of which model ran, and not proof of settlement.',
130
+ },
131
+ {
132
+ id: 'S2',
133
+ name: 'Weak pass: a signature checked with nothing to compare',
134
+ run: () => verify(signedReceipt),
135
+ expect: { ok: true },
136
+ reading: 'Only says some key signed some statement. Always pass what you know yourself.',
137
+ },
138
+ {
139
+ id: 'S3',
140
+ name: 'Refusal: the response is not the one that was signed',
141
+ run: () => verify(signedReceipt, { ...buyerKnows, responseHash: hashReddiReceiptV2Body(`${responseBody} `) }),
142
+ expect: { ok: false, codes: ['response_hash_mismatch'] },
143
+ reading: 'The receipt is for different bytes. Do not treat it as a receipt for this response.',
144
+ },
145
+ {
146
+ id: 'S4',
147
+ name: 'Refusal: signed by a different provider than the one chosen',
148
+ run: () => verify(signedReceipt, { ...buyerKnows, providerId: otherProvider.address }),
149
+ expect: { ok: false, codes: ['provider_mismatch'] },
150
+ reading: 'A valid signature from the wrong key. Refuse.',
151
+ },
152
+ {
153
+ id: 'S5',
154
+ name: 'Refusal: the receipt was edited after signing',
155
+ run: () => verify({ ...signedReceipt, receipt: { ...signedReceipt.receipt, declaredModel: 'fixture/model-b' } }),
156
+ expect: { ok: false, codes: ['signature_invalid'] },
157
+ reading: 'Any change to a signed field breaks the signature. Refuse.',
158
+ },
159
+ {
160
+ id: 'S6',
161
+ name: 'Refusal: the receipt names a different payment',
162
+ run: () => verify(signedReceipt, { ...buyerKnows, payment: { ...buyerKnows.payment, amount: '1' } }),
163
+ expect: { ok: false, codes: ['payment_mismatch'] },
164
+ reading: 'The payment fields are the provider\'s statement. They count only when they equal what you verified yourself.',
165
+ },
166
+ {
167
+ id: 'S7',
168
+ name: 'Refusal: a removed receipt version',
169
+ run: () => {
170
+ const result = validateReddiReceiptV2({ ...signedReceipt.receipt, schemaVersion: 'reddi.receipt.v1' });
171
+ return result.ok ? { ok: true, codes: [] } : { ok: false, codes: result.errors.map((item) => item.code) };
172
+ },
173
+ expect: { ok: false, codes: ['unsupported_version'] },
174
+ reading: 'reddi.receipt.v2 is the only receipt this package accepts.',
175
+ },
176
+ {
177
+ id: 'S8',
178
+ name: 'Redaction: a receipt carries only the fields the version defines',
179
+ run: () => {
180
+ const result = validateReddiReceiptV2({ ...signedReceipt.receipt, prompt: 'raw prompt text' });
181
+ return result.ok ? { ok: true, codes: [] } : { ok: false, codes: [...new Set(result.errors.map((item) => item.code))] };
182
+ },
183
+ expect: { ok: false, codes: ['malformed_receipt'] },
184
+ reading: 'A receipt holds hashes, never prompts, outputs or credentials. An extra field is rejected, not ignored.',
185
+ },
186
+ {
187
+ id: 'S9',
188
+ name: 'Wrong environment: devnet evidence labelled eligible',
189
+ run: () => labels({ environment: 'devnet-unverified', eligibility: 'eligible' }),
190
+ expect: { ok: false, codes: ['non_live_evidence_marked_eligible'] },
191
+ reading: 'Refuse the label. Fixture, local and devnet evidence is never eligible.',
192
+ },
193
+ {
194
+ id: 'S10',
195
+ name: 'Wrong environment: mainnet evidence labelled eligible without partner acceptance',
196
+ run: () => labels({ environment: 'mainnet-gated', eligibility: 'eligible' }),
197
+ expect: { ok: false, codes: ['mainnet_partner_acceptance_missing'] },
198
+ reading: 'Refuse the label. Eligibility needs recorded partner acceptance, not an observation alone.',
199
+ },
200
+ {
201
+ id: 'S11',
202
+ name: 'Duplicate: the same payload always derives the same record id',
203
+ run: () => {
204
+ const payload = { originalPaymentObservationId: 'reddi.payment-observation:example', amountBaseUnits: '1' };
205
+ const first = deriveReddiPaymentId('refund', payload);
206
+ const second = deriveReddiPaymentId('refund', { amountBaseUnits: '1', originalPaymentObservationId: 'reddi.payment-observation:example' });
207
+ return { sameId: first === second };
208
+ },
209
+ expect: { sameId: true },
210
+ reading: 'A repeated record is recognisable by id. This package keeps no replay ledger; the consumer must compare ids.',
211
+ },
212
+ {
213
+ id: 'S12',
214
+ name: 'Duplicate: the local evidence archive never replaces a stored record',
215
+ run: () => {
216
+ const archive = createLocalEvidenceArchive();
217
+ archive.put(evidenceArchiveFixtureRecord);
218
+ const repeat = archive.put(evidenceArchiveFixtureRecord);
219
+ const conflict = archive.put({ ...evidenceArchiveFixtureRecord, receiptId: 'job:retry' });
220
+ return {
221
+ stored: archive.list().length,
222
+ repeatOk: repeat.ok,
223
+ conflictCodes: conflict.ok ? [] : conflict.errors.map((item) => item.code),
224
+ };
225
+ },
226
+ expect: { stored: 1, repeatOk: true, conflictCodes: ['evidence_id_conflict'] },
227
+ reading: 'The same record again is accepted once. Different content under the same id is refused, and the first record stays.',
228
+ },
229
+ {
230
+ id: 'S13',
231
+ name: 'Refund: a refund request is its own record and proves no refund',
232
+ run: () => {
233
+ const original = observation('observed_confirmed');
234
+ const refund = createRefundRecord({
235
+ labels: fixtureLabels,
236
+ originalPaymentObservationId: original.id,
237
+ amountBaseUnits: '2500000',
238
+ reason: 'fixture refund request',
239
+ state: 'requested',
240
+ createdAt,
241
+ });
242
+ return { ok: validateRefundRecord(refund).ok, state: refund.state, hasRefundObservation: refund.refundObservationId !== undefined };
243
+ },
244
+ expect: { ok: true, state: 'requested', hasRefundObservation: false },
245
+ reading: 'Money has not moved back. Only a refund in state observed_confirmed with its own observation records a return transfer.',
246
+ },
247
+ {
248
+ id: 'S14',
249
+ name: 'Unavailable dependency: the verifier could not reach a conclusion',
250
+ run: () => {
251
+ const record = observation('observation_inconclusive');
252
+ return { ok: validatePaymentObservationRecord(record).ok, status: record.status };
253
+ },
254
+ expect: { ok: true, status: 'observation_inconclusive' },
255
+ reading: 'A durable unknown. Not paid, not failed. Next safe action: observe again later; keep this record.',
256
+ },
257
+ {
258
+ id: 'S15',
259
+ name: 'Authority: a model may draft a payment intent but cannot approve one',
260
+ run: () => {
261
+ const draft = createPaymentIntentDraft({
262
+ labels: fixtureLabels,
263
+ agreementId: 'reddi.agreement:example',
264
+ network: { caip2: SOLANA_DEVNET_CAIP2 },
265
+ asset: { symbol: 'USDC', amountBaseUnits: '1000' },
266
+ payTo: 'payee-owner-fixture',
267
+ evidenceRequired: true,
268
+ quoteExpiresAt: '2026-08-01T00:05:00.000Z',
269
+ expiresAt: '2026-08-01T00:10:00.000Z',
270
+ refundPolicy: { mode: 'manual_review', description: 'fixture' },
271
+ });
272
+ const forged = validatePaymentIntentRecord({ ...draft, authorization: { ...draft.authorization, modelMayAuthorize: true } });
273
+ return {
274
+ state: draft.authorization.state,
275
+ modelMayAuthorize: draft.authorization.modelMayAuthorize,
276
+ forgedCodes: forged.ok ? [] : [...new Set(forged.errors.map((item) => item.code))],
277
+ };
278
+ },
279
+ expect: { state: 'model_draft', modelMayAuthorize: false, forgedCodes: ['model_spend_authority_rejected'] },
280
+ reading: 'A drafted intent is a proposal. Editing it to claim model authority is rejected.',
281
+ },
282
+ ];
283
+
284
+ const results = scenarios.map((scenario) => {
285
+ let observed;
286
+ try {
287
+ observed = scenario.run();
288
+ } catch (caught) {
289
+ observed = { threw: caught instanceof Error ? caught.message : String(caught) };
290
+ }
291
+ const matches = Object.entries(scenario.expect).every(([key, value]) => JSON.stringify(observed[key]) === JSON.stringify(value));
292
+ return { id: scenario.id, name: scenario.name, matches, observed, expected: scenario.expect, reading: scenario.reading };
293
+ });
294
+
295
+ const ok = results.every((item) => item.matches);
296
+ console.log(JSON.stringify({
297
+ ok,
298
+ guide: 'docs/RAP-INTERPRETATION-GUIDE-INTERIM.md',
299
+ boundaries: { livePayment: false, walletSigning: false, rpcCall: false, providerCall: false, credentialsRead: false },
300
+ scenarios: results,
301
+ }, null, 2));
302
+ if (!ok) process.exitCode = 1;
package/package.json CHANGED
@@ -1,6 +1,146 @@
1
1
  {
2
2
  "name": "@redditech/agent-protocol",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Open RAP Assurance primitives for paid agent work: receipts, policy decisions, fixtures, and local conformance helpers.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./receipt-v2": {
14
+ "types": "./dist/receipt-v2.d.ts",
15
+ "import": "./dist/receipt-v2.js"
16
+ },
17
+ "./policy": {
18
+ "types": "./dist/policy.d.ts",
19
+ "import": "./dist/policy.js"
20
+ },
21
+ "./ai-catalog": {
22
+ "types": "./dist/ai-catalog.d.ts",
23
+ "import": "./dist/ai-catalog.js"
24
+ },
25
+ "./provider-trust": {
26
+ "types": "./dist/provider-trust.d.ts",
27
+ "import": "./dist/provider-trust.js"
28
+ },
29
+ "./discovery-source": {
30
+ "types": "./dist/discovery-source.d.ts",
31
+ "import": "./dist/discovery-source.js"
32
+ },
33
+ "./evidence-archive": {
34
+ "types": "./dist/evidence-archive.d.ts",
35
+ "import": "./dist/evidence-archive.js"
36
+ },
37
+ "./source-diagnostics": {
38
+ "types": "./dist/source-diagnostics.d.ts",
39
+ "import": "./dist/source-diagnostics.js"
40
+ },
41
+ "./source-trust-conformance-matrix": {
42
+ "types": "./dist/source-trust-conformance-matrix.d.ts",
43
+ "import": "./dist/source-trust-conformance-matrix.js"
44
+ },
45
+ "./attestation-reputation": {
46
+ "types": "./dist/attestation-reputation.d.ts",
47
+ "import": "./dist/attestation-reputation.js"
48
+ },
49
+ "./audd-rail-config": {
50
+ "types": "./dist/audd-rail-config.d.ts",
51
+ "import": "./dist/audd-rail-config.js"
52
+ },
53
+ "./payment-records": {
54
+ "types": "./dist/payment-records.d.ts",
55
+ "import": "./dist/payment-records.js"
56
+ },
57
+ "./agent-stack-fixtures": {
58
+ "types": "./dist/agent-stack-fixtures.d.ts",
59
+ "import": "./dist/agent-stack-fixtures.js"
60
+ },
61
+ "./quasar-registry-compatibility": {
62
+ "types": "./dist/quasar-registry-compatibility.d.ts",
63
+ "import": "./dist/quasar-registry-compatibility.js"
64
+ },
65
+ "./mpp-tempo-receipt-shapes": {
66
+ "types": "./dist/mpp-tempo-receipt-shapes.d.ts",
67
+ "import": "./dist/mpp-tempo-receipt-shapes.js"
68
+ },
69
+ "./okf-adapter": {
70
+ "types": "./dist/okf-adapter.d.ts",
71
+ "import": "./dist/okf-adapter.js"
72
+ },
73
+ "./okf-conformance": {
74
+ "types": "./dist/okf-conformance.d.ts",
75
+ "import": "./dist/okf-conformance.js"
76
+ },
77
+ "./okf-instruction-safety": {
78
+ "types": "./dist/okf-instruction-safety.d.ts",
79
+ "import": "./dist/okf-instruction-safety.js"
80
+ },
81
+ "./onboarding-analyser-handoff": {
82
+ "types": "./dist/onboarding-analyser-handoff.d.ts",
83
+ "import": "./dist/onboarding-analyser-handoff.js"
84
+ },
85
+ "./onboarding-state-machine": {
86
+ "types": "./dist/onboarding-state-machine.d.ts",
87
+ "import": "./dist/onboarding-state-machine.js"
88
+ },
89
+ "./repo-explorer-evidence-manifest": {
90
+ "types": "./dist/repo-explorer-evidence-manifest.d.ts",
91
+ "import": "./dist/repo-explorer-evidence-manifest.js"
92
+ },
93
+ "./ranking-explainability": {
94
+ "types": "./dist/ranking-explainability.d.ts",
95
+ "import": "./dist/ranking-explainability.js"
96
+ },
97
+ "./browser-wallet-approval": {
98
+ "types": "./dist/browser-wallet-approval.d.ts",
99
+ "import": "./dist/browser-wallet-approval.js"
100
+ },
101
+ "./adl": {
102
+ "types": "./dist/adl.d.ts",
103
+ "import": "./dist/adl.js"
104
+ },
105
+ "./package.json": "./package.json"
106
+ },
107
+ "files": [
108
+ "dist",
109
+ "examples",
110
+ "README.md",
111
+ "CHANGELOG.md"
112
+ ],
113
+ "sideEffects": false,
114
+ "scripts": {
115
+ "clean": "rm -rf dist dist-tests",
116
+ "build": "tsc -p tsconfig.json",
117
+ "test": "npm run build && tsc -p tsconfig.test.json && node --test dist-tests/*.test.js",
118
+ "example:ard:no-spend": "npm run build && node examples/ard-no-spend-demo.mjs",
119
+ "example:interpretation-guide": "npm run build && node examples/interpretation-guide-scenarios.mjs",
120
+ "conformance": "node ../../scripts/run-public-conformance.mjs",
121
+ "check:exports": "node scripts/check-package-exports.mjs",
122
+ "check:artifacts": "node ../../scripts/check-package-artifact-contents.mjs --dir packages/agent-protocol",
123
+ "prepublishOnly": "npm run build && node scripts/check-package-exports.mjs && npm run check:artifacts",
124
+ "release:dry-run": "npm run clean && npm run build && npm test && node scripts/check-package-exports.mjs && npm run check:artifacts && npm pack --dry-run"
125
+ },
126
+ "devDependencies": {
127
+ "@types/node": "^20",
128
+ "typescript": "^5"
129
+ },
130
+ "engines": {
131
+ "node": ">=20"
132
+ },
133
+ "publishConfig": {
134
+ "access": "public"
135
+ },
136
+ "license": "MIT",
137
+ "repository": {
138
+ "type": "git",
139
+ "url": "git+https://github.com/nissan/reddi-agent-protocol.git",
140
+ "directory": "packages/agent-protocol"
141
+ },
142
+ "dependencies": {
143
+ "ajv": "^8.20.0",
144
+ "yaml": "^2.9.1"
145
+ }
146
+ }