@kya-os/contracts 1.5.3-canary.22 → 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 -19
  5. package/.turbo/turbo-test$colon$coverage.log +0 -117
  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.22",
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,19 +0,0 @@
1
-
2
- 
3
- > @kya-os/contracts@1.5.3-canary.21 build /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/contracts
4
- > tsc -p tsconfig.build.json && npm run emit-schemas
5
-
6
- npm warn Unknown env config "prefer-workspace-packages". This will stop working in the next major version of npm.
7
- npm warn Unknown env config "verify-store-integrity". This will stop working in the next major version of npm.
8
- npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
9
- npm warn Unknown env config "auto-install-peers". This will stop working in the next major version of npm.
10
- npm warn Unknown env config "resolution-mode". This will stop working in the next major version of npm.
11
- npm warn Unknown env config "store-dir". This will stop working in the next major version of npm.
12
- npm warn Unknown env config "link-workspace-packages". This will stop working in the next major version of npm.
13
- npm warn Unknown env config "prefer-frozen-lockfile". This will stop working in the next major version of npm.
14
-
15
- > @kya-os/contracts@1.5.3-canary.21 emit-schemas
16
- > node scripts/emit-schemas.js
17
-
18
- Schema emission script - to be implemented
19
- ⠙
@@ -1,117 +0,0 @@
1
-
2
- 
3
- > @kya-os/contracts@1.5.3-canary.21 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__/consent.spec.ts [queued]
12
-
13
-  Test Files 0 passed (19)
14
-  Tests 0 passed (0)
15
-  Start at 22:51:28
16
-  Duration 101ms
17
- [?2026l[?2026h
18
-  ❯ src/__tests__/consent.spec.ts [queued]
19
-  ❯ src/__tests__/delegation.spec.ts [queued]
20
-  ❯ src/__tests__/did.spec.ts [queued]
21
-  ❯ src/__tests__/proof.spec.ts [queued]
22
-  ❯ src/__tests__/receipt-compat.test.ts [queued]
23
-  ❯ src/__tests__/runtime-errors.spec.ts [queued]
24
-  ❯ src/__tests__/tlkrc.spec.ts [queued]
25
-  ❯ src/__tests__/tool-protection.test.ts 0/9
26
-  ❯ src/__tests__/vc.spec.ts [queued]
27
-  ❯ src/agentshield-api/__tests__/schemas.test.ts [queued]
28
-  ❯ src/consent/__tests__/schemas.test.ts [queued]
29
-  ❯ src/dashboard-config/__tests__/default-config.test.ts [queued]
30
-  ❯ src/utils/__tests__/validation.test.ts [queued]
31
-
32
-  Test Files 0 passed (19)
33
-  Tests 0 passed (9)
34
-  Start at 22:51:28
35
-  Duration 229ms
36
- [?2026l[?2026h ✓ src/__tests__/tool-protection.test.ts (9 tests) 22ms
37
-
38
-  ❯ src/__tests__/consent.spec.ts 0/37
39
-  ❯ src/__tests__/delegation.spec.ts [queued]
40
-  ❯ src/__tests__/did.spec.ts [queued]
41
-  ❯ src/__tests__/proof.spec.ts [queued]
42
-  ❯ src/__tests__/receipt-compat.test.ts 0/5
43
-  ❯ src/__tests__/runtime-errors.spec.ts [queued]
44
-  ❯ src/__tests__/tlkrc.spec.ts [queued]
45
-  ❯ src/__tests__/tool-protection.test.ts 9/9
46
-  ❯ src/__tests__/vc.spec.ts [queued]
47
-  ❯ src/agentshield-api/__tests__/schemas.test.ts [queued]
48
-  ❯ src/consent/__tests__/schemas.test.ts [queued]
49
-  ❯ src/dashboard-config/__tests__/default-config.test.ts [queued]
50
-  ❯ src/utils/__tests__/validation.test.ts 0/43
51
-
52
-  Test Files 1 passed (19)
53
-  Tests 9 passed (94)
54
-  Start at 22:51:28
55
-  Duration 449ms
56
- [?2026l[?2026h ✓ src/__tests__/consent.spec.ts (37 tests) 11ms
57
- ✓ src/__tests__/receipt-compat.test.ts (5 tests) 4ms
58
- ✓ src/utils/__tests__/validation.test.ts (43 tests) 10ms
59
- ✓ src/consent/__tests__/schemas.test.ts (19 tests) 4ms
60
- ✓ src/__tests__/tlkrc.spec.ts (34 tests) 5ms
61
- ✓ src/dashboard-config/__tests__/default-config.test.ts (18 tests) 6ms
62
- ✓ src/__tests__/runtime-errors.spec.ts (44 tests) 10ms
63
-
64
-  ❯ src/__tests__/consent.spec.ts 37/37
65
-  ❯ src/__tests__/delegation.spec.ts 0/50
66
-  ❯ src/__tests__/did.spec.ts 0/44
67
-  ❯ src/__tests__/proof.spec.ts 0/49
68
-  ❯ src/__tests__/receipt-compat.test.ts 5/5
69
-  ❯ src/__tests__/tool-protection.test.ts 9/9
70
-  ❯ src/__tests__/vc.spec.ts 0/16
71
-  ❯ src/agentshield-api/__tests__/schemas.test.ts 0/16
72
-  ❯ src/consent/__tests__/schemas.test.ts 19/19
73
-  ❯ src/utils/__tests__/validation.test.ts 43/43
74
-
75
-  Test Files 8 passed (19)
76
-  Tests 209 passed (384)
77
-  Start at 22:51:28
78
-  Duration 549ms
79
- [?2026l[?2026h ✓ src/__tests__/vc.spec.ts (16 tests) 8ms
80
- ✓ src/__tests__/proof.spec.ts (49 tests) 36ms
81
- ✓ src/__tests__/delegation.spec.ts (50 tests) 12ms
82
- ✓ src/__tests__/did.spec.ts (44 tests) 8ms
83
- ✓ src/agentshield-api/__tests__/schemas.test.ts (16 tests) 6ms
84
- ✓ src/config/__tests__/config.spec.ts (13 tests) 2ms
85
- ✓ src/__tests__/delegation.test.ts (12 tests) 7ms
86
- ✓ src/__tests__/identity.test.ts (7 tests) 2ms
87
- ✓ src/__tests__/index.test.ts (10 tests) 2ms
88
- ✓ src/__tests__/proofing.test.ts (11 tests) 2ms
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-  ❯ src/__tests__/base.test.ts 1/10
97
-
98
-  Test Files 18 passed (19)
99
-  Tests 438 passed (447)
100
-  Start at 22:51:28
101
-  Duration 649ms
102
- [?2026l ✓ src/__tests__/base.test.ts (10 tests) 2ms
103
-
104
-  Test Files  19 passed (19)
105
-  Tests  447 passed (447)
106
-  Start at  22:51:28
107
-  Duration  738ms (transform 2.50s, setup 0ms, collect 3.97s, tests 158ms, environment 2ms, prepare 386ms)
108
-
109
-  % Coverage report from v8
110
-
111
- =============================== Coverage summary ===============================
112
- Statements : 72.9% ( 331/454 )
113
- Branches : 64.67% ( 141/218 )
114
- Functions : 75.6% ( 62/82 )
115
- Lines : 72.72% ( 328/451 )
116
- ================================================================================
117
- [?25h
@@ -1,32 +0,0 @@
1
-
2
- > @kya-os/contracts@1.5.3-canary.21 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/__tests__/delegation.test.ts (12 tests) 3ms
9
- ✓ src/__tests__/tool-protection.test.ts (9 tests) 2ms
10
- ✓ src/__tests__/proof.spec.ts (49 tests) 7ms
11
- ✓ src/utils/__tests__/validation.test.ts (43 tests) 6ms
12
- ✓ src/__tests__/consent.spec.ts (37 tests) 5ms
13
- ✓ src/__tests__/receipt-compat.test.ts (5 tests) 4ms
14
- ✓ src/__tests__/runtime-errors.spec.ts (44 tests) 8ms
15
- ✓ src/__tests__/tlkrc.spec.ts (34 tests) 5ms
16
- ✓ src/dashboard-config/__tests__/default-config.test.ts (18 tests) 4ms
17
- ✓ src/__tests__/vc.spec.ts (16 tests) 6ms
18
- ✓ src/__tests__/delegation.spec.ts (50 tests) 14ms
19
- ✓ src/__tests__/index.test.ts (10 tests) 2ms
20
- ✓ src/__tests__/did.spec.ts (44 tests) 6ms
21
- ✓ src/agentshield-api/__tests__/schemas.test.ts (16 tests) 5ms
22
- ✓ src/__tests__/base.test.ts (10 tests) 2ms
23
- ✓ src/consent/__tests__/schemas.test.ts (19 tests) 30ms
24
- ✓ src/__tests__/proofing.test.ts (11 tests) 2ms
25
- ✓ src/__tests__/identity.test.ts (7 tests) 2ms
26
- ✓ src/config/__tests__/config.spec.ts (13 tests) 2ms
27
-
28
- Test Files 19 passed (19)
29
- Tests 447 passed (447)
30
- Start at 23:09:55
31
- Duration 2.47s (transform 4.33s, setup 0ms, collect 7.32s, tests 115ms, environment 3ms, prepare 1.17s)
32
-