@kya-os/contracts 1.5.3-canary.21 → 1.5.3-canary.23

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 (69) hide show
  1. package/dist/consent/schemas.d.ts +149 -77
  2. package/dist/consent/schemas.js +29 -2
  3. package/package.json +23 -1
  4. package/.turbo/turbo-build.log +0 -17
  5. package/.turbo/turbo-test$colon$coverage.log +0 -85
  6. package/.turbo/turbo-test.log +0 -32
  7. package/coverage/coverage-final.json +0 -38
  8. package/schemas/cli/register-output/v1.0.0.json +0 -69
  9. package/schemas/identity/v1.0.0.json +0 -46
  10. package/schemas/proof/v1.0.0.json +0 -80
  11. package/schemas/registry/receipt-v1.0.0.json +0 -60
  12. package/schemas/verifier/verify-page/v1.0.0.json +0 -94
  13. package/schemas/well-known/agent/v1.0.0.json +0 -67
  14. package/schemas/well-known/did/v1.0.0.json +0 -174
  15. package/scripts/emit-schemas.js +0 -11
  16. package/src/agentshield-api/admin-schemas.ts +0 -31
  17. package/src/agentshield-api/admin-types.ts +0 -47
  18. package/src/agentshield-api/endpoints.ts +0 -60
  19. package/src/agentshield-api/index.ts +0 -70
  20. package/src/agentshield-api/schemas.ts +0 -304
  21. package/src/agentshield-api/types.ts +0 -317
  22. package/src/audit/index.ts +0 -128
  23. package/src/cli.ts +0 -156
  24. package/src/config/base.ts +0 -107
  25. package/src/config/builder.ts +0 -97
  26. package/src/config/delegation.ts +0 -232
  27. package/src/config/identity.ts +0 -252
  28. package/src/config/index.ts +0 -78
  29. package/src/config/proofing.ts +0 -138
  30. package/src/config/tool-context.ts +0 -41
  31. package/src/config/tool-protection.ts +0 -174
  32. package/src/consent/index.ts +0 -32
  33. package/src/consent/schemas.ts +0 -334
  34. package/src/consent/types.ts +0 -199
  35. package/src/dashboard-config/default-config.json +0 -86
  36. package/src/dashboard-config/default-config.ts +0 -266
  37. package/src/dashboard-config/index.ts +0 -48
  38. package/src/dashboard-config/schemas.ts +0 -286
  39. package/src/dashboard-config/types.ts +0 -404
  40. package/src/delegation/constraints.ts +0 -267
  41. package/src/delegation/index.ts +0 -8
  42. package/src/delegation/schemas.ts +0 -595
  43. package/src/did/index.ts +0 -9
  44. package/src/did/resolve-contract.ts +0 -255
  45. package/src/did/schemas.ts +0 -190
  46. package/src/did/types.ts +0 -224
  47. package/src/env/constants.ts +0 -70
  48. package/src/env/index.ts +0 -5
  49. package/src/handshake.ts +0 -125
  50. package/src/index.ts +0 -45
  51. package/src/proof/index.ts +0 -31
  52. package/src/proof/proof-record.ts +0 -163
  53. package/src/proof/signing-spec.ts +0 -146
  54. package/src/proof.ts +0 -99
  55. package/src/registry.ts +0 -146
  56. package/src/runtime/errors.ts +0 -153
  57. package/src/runtime/headers.ts +0 -136
  58. package/src/runtime/index.ts +0 -6
  59. package/src/test.ts +0 -143
  60. package/src/tlkrc/index.ts +0 -5
  61. package/src/tlkrc/rotation.ts +0 -153
  62. package/src/tool-protection/index.ts +0 -406
  63. package/src/utils/validation.ts +0 -93
  64. package/src/vc/index.ts +0 -8
  65. package/src/vc/schemas.ts +0 -277
  66. package/src/vc/statuslist.ts +0 -279
  67. package/src/verifier/index.ts +0 -2
  68. package/src/verifier.ts +0 -92
  69. package/src/well-known/index.ts +0 -237
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.5.3-canary.21",
3
+ "version": "1.5.3-canary.23",
4
4
  "description": "Shared contracts, types, and schemas for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -48,6 +48,22 @@
48
48
  "./handshake": {
49
49
  "types": "./dist/handshake.d.ts",
50
50
  "default": "./dist/handshake.js"
51
+ },
52
+ "./well-known": {
53
+ "types": "./dist/well-known/index.d.ts",
54
+ "default": "./dist/well-known/index.js"
55
+ },
56
+ "./cli": {
57
+ "types": "./dist/cli.d.ts",
58
+ "default": "./dist/cli.js"
59
+ },
60
+ "./test": {
61
+ "types": "./dist/test.d.ts",
62
+ "default": "./dist/test.js"
63
+ },
64
+ "./registry": {
65
+ "types": "./dist/registry.d.ts",
66
+ "default": "./dist/registry.js"
51
67
  }
52
68
  },
53
69
  "scripts": {
@@ -61,6 +77,7 @@
61
77
  "clean": "rm -rf dist .turbo node_modules",
62
78
  "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
63
79
  },
80
+ "sideEffects": false,
64
81
  "dependencies": {
65
82
  "zod": "^3.23.8"
66
83
  },
@@ -71,6 +88,11 @@
71
88
  "typescript": "^5.5.3",
72
89
  "vitest": "^4.0.5"
73
90
  },
91
+ "files": [
92
+ "dist",
93
+ "package.json",
94
+ "README.md"
95
+ ],
74
96
  "publishConfig": {
75
97
  "access": "public"
76
98
  }
@@ -1,17 +0,0 @@
1
-
2
- > @kya-os/contracts@1.5.3-canary.20 build /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/contracts
3
- > tsc -p tsconfig.build.json && npm run emit-schemas
4
-
5
- npm warn Unknown env config "prefer-workspace-packages". This will stop working in the next major version of npm.
6
- npm warn Unknown env config "verify-store-integrity". This will stop working in the next major version of npm.
7
- npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
8
- npm warn Unknown env config "auto-install-peers". This will stop working in the next major version of npm.
9
- npm warn Unknown env config "resolution-mode". This will stop working in the next major version of npm.
10
- npm warn Unknown env config "store-dir". This will stop working in the next major version of npm.
11
- npm warn Unknown env config "link-workspace-packages". This will stop working in the next major version of npm.
12
- npm warn Unknown env config "prefer-frozen-lockfile". This will stop working in the next major version of npm.
13
-
14
- > @kya-os/contracts@1.5.3-canary.20 emit-schemas
15
- > node scripts/emit-schemas.js
16
-
17
- Schema emission script - to be implemented
@@ -1,85 +0,0 @@
1
-
2
- 
3
- > @kya-os/contracts@1.5.3-canary.19 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/contracts
4
- > vitest run --coverage
5
-
6
- [?25l
7
-  RUN  v4.0.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/contracts
8
- Coverage enabled with v8
9
-
10
- [?2026h
11
-  ❯ src/__tests__/vc.spec.ts [queued]
12
-
13
-  Test Files 0 passed (19)
14
-  Tests 0 passed (0)
15
-  Start at 21:32:29
16
-  Duration 101ms
17
- [?2026l[?2026h ✓ src/__tests__/delegation.test.ts (12 tests) 2ms
18
-
19
-  ❯ src/__tests__/consent.spec.ts [queued]
20
-  ❯ src/__tests__/delegation.spec.ts [queued]
21
-  ❯ src/__tests__/delegation.test.ts 12/12
22
-  ❯ src/__tests__/did.spec.ts [queued]
23
-  ❯ src/__tests__/proof.spec.ts [queued]
24
-  ❯ src/__tests__/receipt-compat.test.ts 0/5
25
-  ❯ src/__tests__/runtime-errors.spec.ts [queued]
26
-  ❯ src/__tests__/tlkrc.spec.ts [queued]
27
-  ❯ src/__tests__/vc.spec.ts [queued]
28
-  ❯ src/agentshield-api/__tests__/schemas.test.ts [queued]
29
-  ❯ src/consent/__tests__/schemas.test.ts [queued]
30
-  ❯ src/dashboard-config/__tests__/default-config.test.ts [queued]
31
-  ❯ src/utils/__tests__/validation.test.ts [queued]
32
-
33
-  Test Files 1 passed (19)
34
-  Tests 12 passed (17)
35
-  Start at 21:32:29
36
-  Duration 301ms
37
- [?2026l[?2026h ✓ src/__tests__/receipt-compat.test.ts (5 tests) 3ms
38
- ✓ src/utils/__tests__/validation.test.ts (43 tests) 5ms
39
- ✓ src/consent/__tests__/schemas.test.ts (19 tests) 4ms
40
- ✓ src/__tests__/consent.spec.ts (37 tests) 8ms
41
- ✓ src/__tests__/tlkrc.spec.ts (34 tests) 5ms
42
- ✓ src/__tests__/runtime-errors.spec.ts (44 tests) 8ms
43
- ✓ src/__tests__/proof.spec.ts (49 tests) 8ms
44
- ✓ src/__tests__/vc.spec.ts (16 tests) 9ms
45
- ✓ src/agentshield-api/__tests__/schemas.test.ts (16 tests) 5ms
46
- ✓ src/dashboard-config/__tests__/default-config.test.ts (18 tests) 7ms
47
-
48
-
49
-
50
-
51
-  ❯ src/__tests__/consent.spec.ts 37/37
52
-  ❯ src/__tests__/delegation.spec.ts 0/50
53
-  ❯ src/__tests__/did.spec.ts [queued]
54
-  ❯ src/__tests__/receipt-compat.test.ts 5/5
55
-  ❯ src/__tests__/tool-protection.test.ts [queued]
56
-  ❯ src/consent/__tests__/schemas.test.ts 19/19
57
-  ❯ src/utils/__tests__/validation.test.ts 43/43
58
-
59
-  Test Files 11 passed (19)
60
-  Tests 293 passed (343)
61
-  Start at 21:32:29
62
-  Duration 401ms
63
- [?2026l ✓ src/__tests__/tool-protection.test.ts (9 tests) 3ms
64
- ✓ src/__tests__/delegation.spec.ts (50 tests) 9ms
65
- ✓ src/__tests__/did.spec.ts (44 tests) 11ms
66
- ✓ src/__tests__/base.test.ts (10 tests) 2ms
67
- ✓ src/__tests__/index.test.ts (10 tests) 2ms
68
- ✓ src/config/__tests__/config.spec.ts (13 tests) 2ms
69
- ✓ src/__tests__/proofing.test.ts (11 tests) 2ms
70
- ✓ src/__tests__/identity.test.ts (7 tests) 2ms
71
-
72
-  Test Files  19 passed (19)
73
-  Tests  447 passed (447)
74
-  Start at  21:32:29
75
-  Duration  573ms (transform 1.29s, setup 0ms, collect 1.87s, tests 99ms, environment 2ms, prepare 446ms)
76
-
77
-  % Coverage report from v8
78
-
79
- =============================== Coverage summary ===============================
80
- Statements : 72.9% ( 331/454 )
81
- Branches : 64.67% ( 141/218 )
82
- Functions : 75.6% ( 62/82 )
83
- Lines : 72.72% ( 328/451 )
84
- ================================================================================
85
- [?25h
@@ -1,32 +0,0 @@
1
-
2
- > @kya-os/contracts@1.5.3-canary.19 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/contracts
3
- > vitest run
4
-
5
-
6
- RUN v4.0.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/contracts
7
-
8
- ✓ src/consent/__tests__/schemas.test.ts (19 tests) 6ms
9
- ✓ src/__tests__/proofing.test.ts (11 tests) 3ms
10
- ✓ src/config/__tests__/config.spec.ts (13 tests) 3ms
11
- ✓ src/__tests__/consent.spec.ts (37 tests) 5ms
12
- ✓ src/utils/__tests__/validation.test.ts (43 tests) 17ms
13
- ✓ src/__tests__/index.test.ts (10 tests) 6ms
14
- ✓ src/__tests__/tlkrc.spec.ts (34 tests) 10ms
15
- ✓ src/__tests__/tool-protection.test.ts (9 tests) 3ms
16
- ✓ src/dashboard-config/__tests__/default-config.test.ts (18 tests) 3ms
17
- ✓ src/agentshield-api/__tests__/schemas.test.ts (16 tests) 4ms
18
- ✓ src/__tests__/receipt-compat.test.ts (5 tests) 2ms
19
- ✓ src/__tests__/proof.spec.ts (49 tests) 6ms
20
- ✓ src/__tests__/runtime-errors.spec.ts (44 tests) 7ms
21
- ✓ src/__tests__/vc.spec.ts (16 tests) 6ms
22
- ✓ src/__tests__/did.spec.ts (44 tests) 10ms
23
- ✓ src/__tests__/delegation.spec.ts (50 tests) 13ms
24
- ✓ src/__tests__/identity.test.ts (7 tests) 2ms
25
- ✓ src/__tests__/delegation.test.ts (12 tests) 2ms
26
- ✓ src/__tests__/base.test.ts (10 tests) 2ms
27
-
28
- Test Files 19 passed (19)
29
- Tests 447 passed (447)
30
- Start at 18:07:30
31
- Duration 2.72s (transform 4.39s, setup 0ms, collect 6.03s, tests 108ms, environment 2ms, prepare 546ms)
32
-