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

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 (90) 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/agentshield-api/admin-schemas.d.ts +2 -2
  6. package/dist/agentshield-api/index.d.ts +1 -1
  7. package/dist/agentshield-api/schemas.d.ts +150 -48
  8. package/dist/agentshield-api/schemas.js +32 -4
  9. package/dist/agentshield-api/types.d.ts +31 -4
  10. package/dist/audit/index.d.ts +193 -0
  11. package/dist/audit/index.js +100 -0
  12. package/dist/config/identity.d.ts +205 -2
  13. package/dist/config/identity.js +28 -0
  14. package/dist/config/index.d.ts +2 -1
  15. package/dist/config/tool-context.d.ts +34 -0
  16. package/dist/config/tool-context.js +13 -0
  17. package/dist/consent/schemas.d.ts +119 -93
  18. package/dist/consent/schemas.js +111 -64
  19. package/dist/dashboard-config/schemas.d.ts +2248 -992
  20. package/dist/handshake.d.ts +14 -14
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +2 -0
  23. package/dist/tool-protection/index.d.ts +490 -14
  24. package/dist/tool-protection/index.js +89 -2
  25. package/dist/verifier/index.d.ts +1 -0
  26. package/dist/verifier/index.js +18 -0
  27. package/dist/well-known/index.d.ts +2 -2
  28. package/package.json +43 -122
  29. package/schemas/cli/register-output/v1.0.0.json +69 -0
  30. package/schemas/identity/v1.0.0.json +46 -0
  31. package/schemas/proof/v1.0.0.json +80 -0
  32. package/schemas/registry/receipt-v1.0.0.json +60 -0
  33. package/schemas/verifier/verify-page/v1.0.0.json +94 -0
  34. package/schemas/well-known/agent/v1.0.0.json +67 -0
  35. package/schemas/well-known/did/v1.0.0.json +174 -0
  36. package/scripts/emit-schemas.js +11 -0
  37. package/src/agentshield-api/admin-schemas.ts +31 -0
  38. package/src/agentshield-api/admin-types.ts +47 -0
  39. package/src/agentshield-api/endpoints.ts +60 -0
  40. package/src/agentshield-api/index.ts +70 -0
  41. package/src/agentshield-api/schemas.ts +304 -0
  42. package/src/agentshield-api/types.ts +317 -0
  43. package/src/audit/index.ts +128 -0
  44. package/src/cli.ts +156 -0
  45. package/src/config/base.ts +107 -0
  46. package/src/config/builder.ts +97 -0
  47. package/src/config/delegation.ts +232 -0
  48. package/src/config/identity.ts +252 -0
  49. package/src/config/index.ts +78 -0
  50. package/src/config/proofing.ts +138 -0
  51. package/src/config/tool-context.ts +41 -0
  52. package/src/config/tool-protection.ts +174 -0
  53. package/src/consent/index.ts +32 -0
  54. package/src/consent/schemas.ts +334 -0
  55. package/src/consent/types.ts +199 -0
  56. package/src/dashboard-config/default-config.json +86 -0
  57. package/src/dashboard-config/default-config.ts +266 -0
  58. package/src/dashboard-config/index.ts +48 -0
  59. package/src/dashboard-config/schemas.ts +286 -0
  60. package/src/dashboard-config/types.ts +404 -0
  61. package/src/delegation/constraints.ts +267 -0
  62. package/src/delegation/index.ts +8 -0
  63. package/src/delegation/schemas.ts +595 -0
  64. package/src/did/index.ts +9 -0
  65. package/src/did/resolve-contract.ts +255 -0
  66. package/src/did/schemas.ts +190 -0
  67. package/src/did/types.ts +224 -0
  68. package/src/env/constants.ts +70 -0
  69. package/src/env/index.ts +5 -0
  70. package/src/handshake.ts +125 -0
  71. package/src/index.ts +45 -0
  72. package/src/proof/index.ts +31 -0
  73. package/src/proof/proof-record.ts +163 -0
  74. package/src/proof/signing-spec.ts +146 -0
  75. package/src/proof.ts +99 -0
  76. package/src/registry.ts +146 -0
  77. package/src/runtime/errors.ts +153 -0
  78. package/src/runtime/headers.ts +136 -0
  79. package/src/runtime/index.ts +6 -0
  80. package/src/test.ts +143 -0
  81. package/src/tlkrc/index.ts +5 -0
  82. package/src/tlkrc/rotation.ts +153 -0
  83. package/src/tool-protection/index.ts +406 -0
  84. package/src/utils/validation.ts +93 -0
  85. package/src/vc/index.ts +8 -0
  86. package/src/vc/schemas.ts +277 -0
  87. package/src/vc/statuslist.ts +279 -0
  88. package/src/verifier/index.ts +2 -0
  89. package/src/verifier.ts +92 -0
  90. package/src/well-known/index.ts +237 -0
@@ -0,0 +1,17 @@
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
@@ -0,0 +1,85 @@
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
@@ -0,0 +1,32 @@
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
+