@mnemom/mnemom 0.17.36 → 0.17.38-next.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 (121) hide show
  1. package/dist/commands/agent-run.d.ts +11 -0
  2. package/dist/commands/agent-run.js +37 -0
  3. package/dist/commands/agent-share-render.d.ts +5 -5
  4. package/dist/commands/agent-share-render.js +9 -7
  5. package/dist/commands/agent-share-test-issuer.d.ts +1 -1
  6. package/dist/commands/agent-share-test-issuer.js +1 -1
  7. package/dist/commands/agent.d.ts +8 -1
  8. package/dist/commands/agent.js +14 -3
  9. package/dist/commands/scan.d.ts +15 -2
  10. package/dist/commands/scan.js +48 -3
  11. package/dist/host/commands.js +4 -1
  12. package/dist/host/owner.d.ts +2 -0
  13. package/dist/host/verbs.d.ts +16 -1
  14. package/dist/host/verbs.js +45 -3
  15. package/dist/index.js +1 -1
  16. package/dist/lib/commit-report.d.ts +7 -13
  17. package/dist/lib/commit-report.js +12 -5
  18. package/dist/lib/conduct-receipt.d.ts +8 -3
  19. package/dist/lib/conduct-receipt.js +29 -7
  20. package/dist/lib/experimental.d.ts +1 -1
  21. package/dist/lib/experimental.js +1 -12
  22. package/dist/lib/runner/executor-client.d.ts +5 -0
  23. package/dist/lib/runner/executor-client.js +8 -0
  24. package/dist/lib/runner/job.d.ts +37 -0
  25. package/dist/lib/runner/job.js +74 -1
  26. package/dist/lib/runner/phases.d.ts +7 -2
  27. package/dist/lib/runner/phases.js +7 -2
  28. package/dist/lib/runner/proxy.d.ts +26 -2
  29. package/dist/lib/runner/proxy.js +33 -1
  30. package/dist/lib/runner/record-commit.d.ts +16 -0
  31. package/dist/lib/runner/record-commit.js +7 -0
  32. package/dist/lib/scan/spend/anthropic-usage.d.ts +20 -1
  33. package/dist/lib/scan/spend/anthropic-usage.js +32 -7
  34. package/dist/lib/scan/spend/anthropic-wif.d.ts +42 -0
  35. package/dist/lib/scan/spend/anthropic-wif.js +153 -0
  36. package/dist/vendor/durable-contract/index.js +6 -3
  37. package/dist/vendor/shared/durable-contract/cli-surface.js +2 -2
  38. package/dist/vendor/shared/durable-contract/codes.js +4 -1
  39. package/package.json +2 -5
  40. package/node_modules/@mnemom/aip-verifier/LICENSE +0 -190
  41. package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.cts +0 -478
  42. package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.ts +0 -478
  43. package/node_modules/@mnemom/aip-verifier/dist/index.cjs +0 -971
  44. package/node_modules/@mnemom/aip-verifier/dist/index.cjs.map +0 -1
  45. package/node_modules/@mnemom/aip-verifier/dist/index.d.cts +0 -330
  46. package/node_modules/@mnemom/aip-verifier/dist/index.d.ts +0 -330
  47. package/node_modules/@mnemom/aip-verifier/dist/index.js +0 -933
  48. package/node_modules/@mnemom/aip-verifier/dist/index.js.map +0 -1
  49. package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs +0 -879
  50. package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs.map +0 -1
  51. package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.cts +0 -96
  52. package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.ts +0 -96
  53. package/node_modules/@mnemom/aip-verifier/dist/render-lines.js +0 -875
  54. package/node_modules/@mnemom/aip-verifier/dist/render-lines.js.map +0 -1
  55. package/node_modules/@mnemom/aip-verifier/package.json +0 -86
  56. package/node_modules/@noble/ed25519/LICENSE +0 -21
  57. package/node_modules/@noble/ed25519/README.md +0 -371
  58. package/node_modules/@noble/ed25519/index.d.ts +0 -391
  59. package/node_modules/@noble/ed25519/index.js +0 -933
  60. package/node_modules/@noble/ed25519/index.ts +0 -1134
  61. package/node_modules/@noble/ed25519/package.json +0 -54
  62. package/node_modules/@noble/hashes/LICENSE +0 -21
  63. package/node_modules/@noble/hashes/README.md +0 -478
  64. package/node_modules/@noble/hashes/_blake.d.ts +0 -20
  65. package/node_modules/@noble/hashes/_blake.js +0 -59
  66. package/node_modules/@noble/hashes/_md.d.ts +0 -95
  67. package/node_modules/@noble/hashes/_md.js +0 -209
  68. package/node_modules/@noble/hashes/_u64.d.ts +0 -36
  69. package/node_modules/@noble/hashes/_u64.js +0 -77
  70. package/node_modules/@noble/hashes/argon2.d.ts +0 -148
  71. package/node_modules/@noble/hashes/argon2.js +0 -577
  72. package/node_modules/@noble/hashes/blake1.d.ts +0 -162
  73. package/node_modules/@noble/hashes/blake1.js +0 -630
  74. package/node_modules/@noble/hashes/blake2.d.ts +0 -203
  75. package/node_modules/@noble/hashes/blake2.js +0 -573
  76. package/node_modules/@noble/hashes/blake3.d.ts +0 -68
  77. package/node_modules/@noble/hashes/blake3.js +0 -310
  78. package/node_modules/@noble/hashes/eskdf.d.ts +0 -91
  79. package/node_modules/@noble/hashes/eskdf.js +0 -225
  80. package/node_modules/@noble/hashes/hkdf.d.ts +0 -70
  81. package/node_modules/@noble/hashes/hkdf.js +0 -152
  82. package/node_modules/@noble/hashes/hmac.d.ts +0 -50
  83. package/node_modules/@noble/hashes/hmac.js +0 -93
  84. package/node_modules/@noble/hashes/index.d.ts +0 -1
  85. package/node_modules/@noble/hashes/index.js +0 -34
  86. package/node_modules/@noble/hashes/legacy.d.ts +0 -107
  87. package/node_modules/@noble/hashes/legacy.js +0 -348
  88. package/node_modules/@noble/hashes/package.json +0 -91
  89. package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -66
  90. package/node_modules/@noble/hashes/pbkdf2.js +0 -176
  91. package/node_modules/@noble/hashes/scrypt.d.ts +0 -98
  92. package/node_modules/@noble/hashes/scrypt.js +0 -304
  93. package/node_modules/@noble/hashes/sha2.d.ts +0 -176
  94. package/node_modules/@noble/hashes/sha2.js +0 -446
  95. package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -533
  96. package/node_modules/@noble/hashes/sha3-addons.js +0 -973
  97. package/node_modules/@noble/hashes/sha3.d.ts +0 -208
  98. package/node_modules/@noble/hashes/sha3.js +0 -475
  99. package/node_modules/@noble/hashes/src/_blake.ts +0 -67
  100. package/node_modules/@noble/hashes/src/_md.ts +0 -227
  101. package/node_modules/@noble/hashes/src/_u64.ts +0 -111
  102. package/node_modules/@noble/hashes/src/argon2.ts +0 -693
  103. package/node_modules/@noble/hashes/src/blake1.ts +0 -677
  104. package/node_modules/@noble/hashes/src/blake2.ts +0 -648
  105. package/node_modules/@noble/hashes/src/blake3.ts +0 -344
  106. package/node_modules/@noble/hashes/src/eskdf.ts +0 -265
  107. package/node_modules/@noble/hashes/src/hkdf.ts +0 -161
  108. package/node_modules/@noble/hashes/src/hmac.ts +0 -130
  109. package/node_modules/@noble/hashes/src/index.ts +0 -33
  110. package/node_modules/@noble/hashes/src/legacy.ts +0 -361
  111. package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -219
  112. package/node_modules/@noble/hashes/src/scrypt.ts +0 -375
  113. package/node_modules/@noble/hashes/src/sha2.ts +0 -486
  114. package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -1157
  115. package/node_modules/@noble/hashes/src/sha3.ts +0 -525
  116. package/node_modules/@noble/hashes/src/utils.ts +0 -978
  117. package/node_modules/@noble/hashes/src/webcrypto.ts +0 -283
  118. package/node_modules/@noble/hashes/utils.d.ts +0 -560
  119. package/node_modules/@noble/hashes/utils.js +0 -687
  120. package/node_modules/@noble/hashes/webcrypto.d.ts +0 -121
  121. package/node_modules/@noble/hashes/webcrypto.js +0 -228
@@ -1,203 +0,0 @@
1
- import { type CHash, type Hash, type TArg, type TRet } from './utils.ts';
2
- /**
3
- * Blake hash options.
4
- * `dkLen` is output length. `key` is used in MAC mode. `salt` is used in
5
- * KDF mode.
6
- */
7
- export type Blake2Opts = {
8
- /** Desired digest length in bytes. RFC 7693 uses 1..64 for blake2b and 1..32 for blake2s. */
9
- dkLen?: number;
10
- /** Optional MAC key. */
11
- key?: Uint8Array;
12
- /** Optional salt mixed into initialization. */
13
- salt?: Uint8Array;
14
- /** Optional personalization bytes. */
15
- personalization?: Uint8Array;
16
- };
17
- /** Internal base class for BLAKE2. */
18
- export declare abstract class _BLAKE2<T extends _BLAKE2<T>> implements Hash<T> {
19
- protected abstract compress(msg: Uint32Array, offset: number, isLast: boolean): void;
20
- protected abstract get(): number[];
21
- protected abstract set(...args: number[]): void;
22
- abstract destroy(): void;
23
- protected buffer: Uint8Array;
24
- protected buffer32: Uint32Array;
25
- protected finished: boolean;
26
- protected destroyed: boolean;
27
- protected length: number;
28
- protected pos: number;
29
- readonly blockLen: number;
30
- readonly outputLen: number;
31
- readonly canXOF: boolean;
32
- constructor(blockLen: number, outputLen: number);
33
- update(data: TArg<Uint8Array>): this;
34
- digestInto(out: TArg<Uint8Array>): void;
35
- digest(): TRet<Uint8Array>;
36
- _cloneInto(to?: T): T;
37
- clone(): T;
38
- }
39
- /** Internal blake2b hash class with state stored as LE u32 low/high halves. */
40
- export declare class _BLAKE2b extends _BLAKE2<_BLAKE2b> {
41
- private v0l;
42
- private v0h;
43
- private v1l;
44
- private v1h;
45
- private v2l;
46
- private v2h;
47
- private v3l;
48
- private v3h;
49
- private v4l;
50
- private v4h;
51
- private v5l;
52
- private v5h;
53
- private v6l;
54
- private v6h;
55
- private v7l;
56
- private v7h;
57
- constructor(opts?: Blake2Opts);
58
- protected get(): [
59
- number,
60
- number,
61
- number,
62
- number,
63
- number,
64
- number,
65
- number,
66
- number,
67
- number,
68
- number,
69
- number,
70
- number,
71
- number,
72
- number,
73
- number,
74
- number
75
- ];
76
- protected set(v0l: number, v0h: number, v1l: number, v1h: number, v2l: number, v2h: number, v3l: number, v3h: number, v4l: number, v4h: number, v5l: number, v5h: number, v6l: number, v6h: number, v7l: number, v7h: number): void;
77
- protected compress(msg: Uint32Array, offset: number, isLast: boolean): void;
78
- destroy(): void;
79
- }
80
- /**
81
- * Blake2b hash function. 64-bit. 1.5x slower than blake2s in JS.
82
- * @param msg - message that would be hashed
83
- * @param opts - Optional output, MAC, salt, and personalization settings.
84
- * `dkLen` must be 1..64 bytes; `salt` and `personalization`, if present,
85
- * must be 16 bytes each. See {@link Blake2Opts}.
86
- * @returns Digest bytes.
87
- * @example
88
- * Hash a message with Blake2b.
89
- * ```ts
90
- * blake2b(new Uint8Array([97, 98, 99]));
91
- * ```
92
- * @example
93
- * Hash a message with Blake2b while selecting output, MAC, salt, and personalization settings.
94
- * ```ts
95
- * blake2b(new Uint8Array([97, 98, 99]), {
96
- * dkLen: 32,
97
- * key: new Uint8Array(32),
98
- * salt: new Uint8Array(16),
99
- * personalization: new Uint8Array(16),
100
- * });
101
- * ```
102
- */
103
- export declare const blake2b: TRet<CHash<_BLAKE2b, Blake2Opts>>;
104
- /** Internal type, 16 numbers. */
105
- export type _Num16 = {
106
- v0: number;
107
- v1: number;
108
- v2: number;
109
- v3: number;
110
- v4: number;
111
- v5: number;
112
- v6: number;
113
- v7: number;
114
- v8: number;
115
- v9: number;
116
- v10: number;
117
- v11: number;
118
- v12: number;
119
- v13: number;
120
- v14: number;
121
- v15: number;
122
- };
123
- /**
124
- * BLAKE2-compress core method.
125
- * Runs only the round function over a caller-supplied local vector; callers initialize `v0..v15`
126
- * and apply the final `h[i] ^= v[i] ^ v[i + 8]` fold themselves.
127
- * @param s - flattened sigma schedule bytes
128
- * @param offset - starting word offset inside `msg`, not a byte offset
129
- * @param msg - message words
130
- * @param rounds - round count to execute
131
- * @param v0 - state word 0
132
- * @param v1 - state word 1
133
- * @param v2 - state word 2
134
- * @param v3 - state word 3
135
- * @param v4 - state word 4
136
- * @param v5 - state word 5
137
- * @param v6 - state word 6
138
- * @param v7 - state word 7
139
- * @param v8 - state word 8
140
- * @param v9 - state word 9
141
- * @param v10 - state word 10
142
- * @param v11 - state word 11
143
- * @param v12 - state word 12
144
- * @param v13 - state word 13
145
- * @param v14 - state word 14
146
- * @param v15 - state word 15
147
- * @returns Updated compression state words.
148
- * @example
149
- * Run the BLAKE2 compression core on zeroed state and message words.
150
- * ```ts
151
- * import { _compress } from '@noble/hashes/blake2.js';
152
- * const state = _compress(
153
- * new Uint8Array(16),
154
- * 0,
155
- * new Uint32Array(16),
156
- * 1,
157
- * 0, 0, 0, 0, 0, 0, 0, 0,
158
- * 0, 0, 0, 0, 0, 0, 0, 0
159
- * );
160
- * state.v0;
161
- * ```
162
- */
163
- export declare function _compress(s: TArg<Uint8Array>, offset: number, msg: TArg<Uint32Array>, rounds: number, v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number): _Num16;
164
- /** Internal blake2s hash class. */
165
- export declare class _BLAKE2s extends _BLAKE2<_BLAKE2s> {
166
- private v0;
167
- private v1;
168
- private v2;
169
- private v3;
170
- private v4;
171
- private v5;
172
- private v6;
173
- private v7;
174
- constructor(opts?: Blake2Opts);
175
- protected get(): [number, number, number, number, number, number, number, number];
176
- protected set(v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number): void;
177
- protected compress(msg: Uint32Array, offset: number, isLast: boolean): void;
178
- destroy(): void;
179
- }
180
- /**
181
- * Blake2s hash function. Focuses on 8-bit to 32-bit platforms. 1.5x faster than blake2b in JS.
182
- * @param msg - message that would be hashed
183
- * @param opts - Optional output, MAC, salt, and personalization settings.
184
- * `dkLen` must be 1..32 bytes; `salt` and `personalization`, if present,
185
- * must be 8 bytes each. See {@link Blake2Opts}.
186
- * @returns Digest bytes.
187
- * @example
188
- * Hash a message with Blake2s.
189
- * ```ts
190
- * blake2s(new Uint8Array([97, 98, 99]));
191
- * ```
192
- * @example
193
- * Hash a message with Blake2s while selecting output, MAC, salt, and personalization settings.
194
- * ```ts
195
- * blake2s(new Uint8Array([97, 98, 99]), {
196
- * dkLen: 16,
197
- * key: new Uint8Array(32),
198
- * salt: new Uint8Array(8),
199
- * personalization: new Uint8Array(8),
200
- * });
201
- * ```
202
- */
203
- export declare const blake2s: TRet<CHash<_BLAKE2s, Blake2Opts>>;