@mnemom/mnemom 0.17.37 → 0.17.38-next.1
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.
- package/dist/commands/agent-doctor.d.ts +2 -2
- package/dist/commands/agent-doctor.js +4 -4
- package/dist/commands/agent-run.d.ts +11 -0
- package/dist/commands/agent-run.js +37 -0
- package/dist/commands/agent-setup.d.ts +11 -9
- package/dist/commands/agent-setup.js +24 -19
- package/dist/commands/agent-share-render.d.ts +5 -5
- package/dist/commands/agent-share-render.js +9 -7
- package/dist/commands/agent-share-test-issuer.d.ts +1 -1
- package/dist/commands/agent-share-test-issuer.js +1 -1
- package/dist/commands/agent.d.ts +8 -1
- package/dist/commands/agent.js +14 -3
- package/dist/commands/card.js +1 -1
- package/dist/commands/onboard.js +5 -4
- package/dist/commands/scan.d.ts +35 -8
- package/dist/commands/scan.js +134 -45
- package/dist/commands/verify-card.d.ts +25 -1
- package/dist/commands/verify-card.js +29 -2
- package/dist/commands/wrap.js +4 -3
- package/dist/index.js +8 -6
- package/dist/lib/commit-report.d.ts +7 -13
- package/dist/lib/commit-report.js +12 -5
- package/dist/lib/conduct-receipt.d.ts +8 -3
- package/dist/lib/conduct-receipt.js +29 -7
- package/dist/lib/experimental.d.ts +1 -1
- package/dist/lib/experimental.js +1 -12
- package/dist/lib/runner/executor-client.d.ts +5 -0
- package/dist/lib/runner/executor-client.js +8 -0
- package/dist/lib/runner/job.d.ts +37 -0
- package/dist/lib/runner/job.js +74 -1
- package/dist/lib/runner/phases.d.ts +7 -2
- package/dist/lib/runner/phases.js +7 -2
- package/dist/lib/runner/proxy.d.ts +26 -2
- package/dist/lib/runner/proxy.js +33 -1
- package/dist/lib/runner/record-commit.d.ts +16 -0
- package/dist/lib/runner/record-commit.js +7 -0
- package/dist/lib/scan/report-email.d.ts +19 -2
- package/dist/lib/scan/report-email.js +78 -22
- package/dist/lib/scan/scan.d.ts +2 -0
- package/dist/lib/scan/scan.js +2 -1
- package/dist/lib/scan/share.d.ts +8 -6
- package/dist/lib/scan/share.js +28 -11
- package/dist/lib/scan/spend/anthropic-usage.d.ts +20 -1
- package/dist/lib/scan/spend/anthropic-usage.js +32 -7
- package/dist/lib/scan/spend/anthropic-wif.d.ts +42 -0
- package/dist/lib/scan/spend/anthropic-wif.js +153 -0
- package/dist/lib/starter-integrity.d.ts +20 -0
- package/dist/lib/starter-integrity.js +28 -0
- package/package.json +2 -5
- package/node_modules/@mnemom/aip-verifier/LICENSE +0 -190
- package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.cts +0 -478
- package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.ts +0 -478
- package/node_modules/@mnemom/aip-verifier/dist/index.cjs +0 -971
- package/node_modules/@mnemom/aip-verifier/dist/index.cjs.map +0 -1
- package/node_modules/@mnemom/aip-verifier/dist/index.d.cts +0 -330
- package/node_modules/@mnemom/aip-verifier/dist/index.d.ts +0 -330
- package/node_modules/@mnemom/aip-verifier/dist/index.js +0 -933
- package/node_modules/@mnemom/aip-verifier/dist/index.js.map +0 -1
- package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs +0 -879
- package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs.map +0 -1
- package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.cts +0 -96
- package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.ts +0 -96
- package/node_modules/@mnemom/aip-verifier/dist/render-lines.js +0 -875
- package/node_modules/@mnemom/aip-verifier/dist/render-lines.js.map +0 -1
- package/node_modules/@mnemom/aip-verifier/package.json +0 -86
- package/node_modules/@noble/ed25519/LICENSE +0 -21
- package/node_modules/@noble/ed25519/README.md +0 -371
- package/node_modules/@noble/ed25519/index.d.ts +0 -391
- package/node_modules/@noble/ed25519/index.js +0 -933
- package/node_modules/@noble/ed25519/index.ts +0 -1134
- package/node_modules/@noble/ed25519/package.json +0 -54
- package/node_modules/@noble/hashes/LICENSE +0 -21
- package/node_modules/@noble/hashes/README.md +0 -478
- package/node_modules/@noble/hashes/_blake.d.ts +0 -20
- package/node_modules/@noble/hashes/_blake.js +0 -59
- package/node_modules/@noble/hashes/_md.d.ts +0 -95
- package/node_modules/@noble/hashes/_md.js +0 -209
- package/node_modules/@noble/hashes/_u64.d.ts +0 -36
- package/node_modules/@noble/hashes/_u64.js +0 -77
- package/node_modules/@noble/hashes/argon2.d.ts +0 -148
- package/node_modules/@noble/hashes/argon2.js +0 -577
- package/node_modules/@noble/hashes/blake1.d.ts +0 -162
- package/node_modules/@noble/hashes/blake1.js +0 -630
- package/node_modules/@noble/hashes/blake2.d.ts +0 -203
- package/node_modules/@noble/hashes/blake2.js +0 -573
- package/node_modules/@noble/hashes/blake3.d.ts +0 -68
- package/node_modules/@noble/hashes/blake3.js +0 -310
- package/node_modules/@noble/hashes/eskdf.d.ts +0 -91
- package/node_modules/@noble/hashes/eskdf.js +0 -225
- package/node_modules/@noble/hashes/hkdf.d.ts +0 -70
- package/node_modules/@noble/hashes/hkdf.js +0 -152
- package/node_modules/@noble/hashes/hmac.d.ts +0 -50
- package/node_modules/@noble/hashes/hmac.js +0 -93
- package/node_modules/@noble/hashes/index.d.ts +0 -1
- package/node_modules/@noble/hashes/index.js +0 -34
- package/node_modules/@noble/hashes/legacy.d.ts +0 -107
- package/node_modules/@noble/hashes/legacy.js +0 -348
- package/node_modules/@noble/hashes/package.json +0 -91
- package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -66
- package/node_modules/@noble/hashes/pbkdf2.js +0 -176
- package/node_modules/@noble/hashes/scrypt.d.ts +0 -98
- package/node_modules/@noble/hashes/scrypt.js +0 -304
- package/node_modules/@noble/hashes/sha2.d.ts +0 -176
- package/node_modules/@noble/hashes/sha2.js +0 -446
- package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -533
- package/node_modules/@noble/hashes/sha3-addons.js +0 -973
- package/node_modules/@noble/hashes/sha3.d.ts +0 -208
- package/node_modules/@noble/hashes/sha3.js +0 -475
- package/node_modules/@noble/hashes/src/_blake.ts +0 -67
- package/node_modules/@noble/hashes/src/_md.ts +0 -227
- package/node_modules/@noble/hashes/src/_u64.ts +0 -111
- package/node_modules/@noble/hashes/src/argon2.ts +0 -693
- package/node_modules/@noble/hashes/src/blake1.ts +0 -677
- package/node_modules/@noble/hashes/src/blake2.ts +0 -648
- package/node_modules/@noble/hashes/src/blake3.ts +0 -344
- package/node_modules/@noble/hashes/src/eskdf.ts +0 -265
- package/node_modules/@noble/hashes/src/hkdf.ts +0 -161
- package/node_modules/@noble/hashes/src/hmac.ts +0 -130
- package/node_modules/@noble/hashes/src/index.ts +0 -33
- package/node_modules/@noble/hashes/src/legacy.ts +0 -361
- package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -219
- package/node_modules/@noble/hashes/src/scrypt.ts +0 -375
- package/node_modules/@noble/hashes/src/sha2.ts +0 -486
- package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -1157
- package/node_modules/@noble/hashes/src/sha3.ts +0 -525
- package/node_modules/@noble/hashes/src/utils.ts +0 -978
- package/node_modules/@noble/hashes/src/webcrypto.ts +0 -283
- package/node_modules/@noble/hashes/utils.d.ts +0 -560
- package/node_modules/@noble/hashes/utils.js +0 -687
- package/node_modules/@noble/hashes/webcrypto.d.ts +0 -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>>;
|