@kya-os/contracts 1.5.3-canary.16 → 1.5.3-canary.17

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 (71) hide show
  1. package/.turbo/turbo-build.log +17 -0
  2. package/.turbo/turbo-test$colon$coverage.log +85 -0
  3. package/.turbo/turbo-test.log +32 -0
  4. package/coverage/coverage-final.json +38 -0
  5. package/dist/consent/schemas.d.ts +18 -0
  6. package/dist/consent/schemas.js +10 -0
  7. package/dist/dashboard-config/schemas.d.ts +1424 -220
  8. package/dist/tool-protection/index.d.ts +418 -8
  9. package/dist/tool-protection/index.js +61 -2
  10. package/package.json +35 -129
  11. package/schemas/cli/register-output/v1.0.0.json +69 -0
  12. package/schemas/identity/v1.0.0.json +46 -0
  13. package/schemas/proof/v1.0.0.json +80 -0
  14. package/schemas/registry/receipt-v1.0.0.json +60 -0
  15. package/schemas/verifier/verify-page/v1.0.0.json +94 -0
  16. package/schemas/well-known/agent/v1.0.0.json +67 -0
  17. package/schemas/well-known/did/v1.0.0.json +174 -0
  18. package/scripts/emit-schemas.js +11 -0
  19. package/src/agentshield-api/admin-schemas.ts +31 -0
  20. package/src/agentshield-api/admin-types.ts +47 -0
  21. package/src/agentshield-api/endpoints.ts +60 -0
  22. package/src/agentshield-api/index.ts +70 -0
  23. package/src/agentshield-api/schemas.ts +304 -0
  24. package/src/agentshield-api/types.ts +317 -0
  25. package/src/audit/index.ts +128 -0
  26. package/src/cli.ts +156 -0
  27. package/src/config/base.ts +107 -0
  28. package/src/config/builder.ts +97 -0
  29. package/src/config/delegation.ts +232 -0
  30. package/src/config/identity.ts +252 -0
  31. package/src/config/index.ts +78 -0
  32. package/src/config/proofing.ts +138 -0
  33. package/src/config/tool-context.ts +41 -0
  34. package/src/config/tool-protection.ts +174 -0
  35. package/src/consent/index.ts +32 -0
  36. package/src/consent/schemas.ts +334 -0
  37. package/src/consent/types.ts +199 -0
  38. package/src/dashboard-config/default-config.json +86 -0
  39. package/src/dashboard-config/default-config.ts +266 -0
  40. package/src/dashboard-config/index.ts +48 -0
  41. package/src/dashboard-config/schemas.ts +286 -0
  42. package/src/dashboard-config/types.ts +404 -0
  43. package/src/delegation/constraints.ts +267 -0
  44. package/src/delegation/index.ts +8 -0
  45. package/src/delegation/schemas.ts +595 -0
  46. package/src/did/index.ts +9 -0
  47. package/src/did/resolve-contract.ts +255 -0
  48. package/src/did/schemas.ts +190 -0
  49. package/src/did/types.ts +224 -0
  50. package/src/env/constants.ts +70 -0
  51. package/src/env/index.ts +5 -0
  52. package/src/handshake.ts +125 -0
  53. package/src/index.ts +45 -0
  54. package/src/proof/index.ts +31 -0
  55. package/src/proof/proof-record.ts +163 -0
  56. package/src/proof/signing-spec.ts +146 -0
  57. package/src/proof.ts +99 -0
  58. package/src/registry.ts +146 -0
  59. package/src/runtime/errors.ts +153 -0
  60. package/src/runtime/headers.ts +136 -0
  61. package/src/runtime/index.ts +6 -0
  62. package/src/test.ts +143 -0
  63. package/src/tlkrc/index.ts +5 -0
  64. package/src/tlkrc/rotation.ts +153 -0
  65. package/src/tool-protection/index.ts +343 -0
  66. package/src/utils/validation.ts +93 -0
  67. package/src/vc/index.ts +8 -0
  68. package/src/vc/schemas.ts +277 -0
  69. package/src/vc/statuslist.ts +279 -0
  70. package/src/verifier.ts +92 -0
  71. package/src/well-known/index.ts +237 -0
@@ -0,0 +1,17 @@
1
+
2
+ > @kya-os/contracts@1.5.3-canary.17 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.17 emit-schemas
15
+ > node scripts/emit-schemas.js
16
+
17
+ Schema emission script - to be implemented
@@ -0,0 +1,85 @@
1
+
2
+ 
3
+ > @kya-os/contracts@1.5.3-canary.15 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 22:55:09
16
+  Duration 212ms
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__/identity.test.ts 0/7
22
+  ❯ src/__tests__/proof.spec.ts [queued]
23
+  ❯ src/__tests__/receipt-compat.test.ts [queued]
24
+  ❯ src/__tests__/runtime-errors.spec.ts [queued]
25
+  ❯ src/__tests__/tlkrc.spec.ts [queued]
26
+  ❯ src/__tests__/vc.spec.ts [queued]
27
+  ❯ src/agentshield-api/__tests__/schemas.test.ts [queued]
28
+  ❯ src/consent/__tests__/schemas.test.ts 0/19
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 (26)
34
+  Start at 22:55:09
35
+  Duration 412ms
36
+ [?2026l[?2026h ✓ src/consent/__tests__/schemas.test.ts (19 tests) 4ms
37
+ ✓ src/__tests__/identity.test.ts (7 tests) 2ms
38
+ ✓ src/utils/__tests__/validation.test.ts (43 tests) 5ms
39
+ ✓ src/__tests__/consent.spec.ts (37 tests) 8ms
40
+ ✓ src/__tests__/tlkrc.spec.ts (34 tests) 5ms
41
+ ✓ src/__tests__/receipt-compat.test.ts (5 tests) 3ms
42
+ ✓ src/__tests__/vc.spec.ts (16 tests) 12ms
43
+ ✓ src/__tests__/proof.spec.ts (49 tests) 11ms
44
+
45
+  ❯ src/__tests__/consent.spec.ts 37/37
46
+  ❯ src/__tests__/delegation.spec.ts [queued]
47
+  ❯ src/__tests__/did.spec.ts 0/44
48
+  ❯ src/__tests__/identity.test.ts 7/7
49
+  ❯ src/__tests__/runtime-errors.spec.ts 0/44
50
+  ❯ src/__tests__/tlkrc.spec.ts 34/34
51
+  ❯ src/agentshield-api/__tests__/schemas.test.ts [queued]
52
+  ❯ src/consent/__tests__/schemas.test.ts 19/19
53
+  ❯ src/dashboard-config/__tests__/default-config.test.ts [queued]
54
+  ❯ src/utils/__tests__/validation.test.ts 43/43
55
+
56
+  Test Files 8 passed (19)
57
+  Tests 210 passed (298)
58
+  Start at 22:55:09
59
+  Duration 512ms
60
+ [?2026l ✓ src/__tests__/did.spec.ts (44 tests) 12ms
61
+ ✓ src/dashboard-config/__tests__/default-config.test.ts (18 tests) 4ms
62
+ ✓ src/__tests__/runtime-errors.spec.ts (44 tests) 7ms
63
+ ✓ src/agentshield-api/__tests__/schemas.test.ts (16 tests) 4ms
64
+ ✓ src/__tests__/delegation.spec.ts (50 tests) 9ms
65
+ ✓ src/config/__tests__/config.spec.ts (13 tests) 2ms
66
+ ✓ src/__tests__/index.test.ts (10 tests) 2ms
67
+ ✓ src/__tests__/proofing.test.ts (11 tests) 3ms
68
+ ✓ src/__tests__/delegation.test.ts (12 tests) 2ms
69
+ ✓ src/__tests__/tool-protection.test.ts (9 tests) 2ms
70
+ ✓ src/__tests__/base.test.ts (10 tests) 2ms
71
+
72
+  Test Files  19 passed (19)
73
+  Tests  447 passed (447)
74
+  Start at  22:55:09
75
+  Duration  703ms (transform 924ms, setup 0ms, collect 1.65s, tests 100ms, environment 2ms, prepare 390ms)
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
@@ -0,0 +1,32 @@
1
+
2
+ > @kya-os/contracts@1.5.3-canary.15 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__/vc.spec.ts (16 tests) 5ms
9
+ ✓ src/__tests__/did.spec.ts (44 tests) 6ms
10
+ ✓ src/__tests__/proofing.test.ts (11 tests) 3ms
11
+ ✓ src/config/__tests__/config.spec.ts (13 tests) 5ms
12
+ ✓ src/agentshield-api/__tests__/schemas.test.ts (16 tests) 4ms
13
+ ✓ src/__tests__/consent.spec.ts (37 tests) 6ms
14
+ ✓ src/__tests__/delegation.spec.ts (50 tests) 8ms
15
+ ✓ src/utils/__tests__/validation.test.ts (43 tests) 9ms
16
+ ✓ src/__tests__/tool-protection.test.ts (9 tests) 9ms
17
+ ✓ src/consent/__tests__/schemas.test.ts (19 tests) 11ms
18
+ ✓ src/__tests__/receipt-compat.test.ts (5 tests) 3ms
19
+ ✓ src/__tests__/index.test.ts (10 tests) 4ms
20
+ ✓ src/__tests__/runtime-errors.spec.ts (44 tests) 7ms
21
+ ✓ src/__tests__/proof.spec.ts (49 tests) 7ms
22
+ ✓ src/__tests__/tlkrc.spec.ts (34 tests) 4ms
23
+ ✓ src/dashboard-config/__tests__/default-config.test.ts (18 tests) 3ms
24
+ ✓ src/__tests__/base.test.ts (10 tests) 2ms
25
+ ✓ src/__tests__/delegation.test.ts (12 tests) 2ms
26
+ ✓ src/__tests__/identity.test.ts (7 tests) 2ms
27
+
28
+ Test Files 19 passed (19)
29
+ Tests 447 passed (447)
30
+ Start at 23:54:32
31
+ Duration 2.93s (transform 3.43s, setup 0ms, collect 6.18s, tests 98ms, environment 10ms, prepare 1.19s)
32
+