@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.
Files changed (131) hide show
  1. package/dist/commands/agent-doctor.d.ts +2 -2
  2. package/dist/commands/agent-doctor.js +4 -4
  3. package/dist/commands/agent-run.d.ts +11 -0
  4. package/dist/commands/agent-run.js +37 -0
  5. package/dist/commands/agent-setup.d.ts +11 -9
  6. package/dist/commands/agent-setup.js +24 -19
  7. package/dist/commands/agent-share-render.d.ts +5 -5
  8. package/dist/commands/agent-share-render.js +9 -7
  9. package/dist/commands/agent-share-test-issuer.d.ts +1 -1
  10. package/dist/commands/agent-share-test-issuer.js +1 -1
  11. package/dist/commands/agent.d.ts +8 -1
  12. package/dist/commands/agent.js +14 -3
  13. package/dist/commands/card.js +1 -1
  14. package/dist/commands/onboard.js +5 -4
  15. package/dist/commands/scan.d.ts +35 -8
  16. package/dist/commands/scan.js +134 -45
  17. package/dist/commands/verify-card.d.ts +25 -1
  18. package/dist/commands/verify-card.js +29 -2
  19. package/dist/commands/wrap.js +4 -3
  20. package/dist/index.js +8 -6
  21. package/dist/lib/commit-report.d.ts +7 -13
  22. package/dist/lib/commit-report.js +12 -5
  23. package/dist/lib/conduct-receipt.d.ts +8 -3
  24. package/dist/lib/conduct-receipt.js +29 -7
  25. package/dist/lib/experimental.d.ts +1 -1
  26. package/dist/lib/experimental.js +1 -12
  27. package/dist/lib/runner/executor-client.d.ts +5 -0
  28. package/dist/lib/runner/executor-client.js +8 -0
  29. package/dist/lib/runner/job.d.ts +37 -0
  30. package/dist/lib/runner/job.js +74 -1
  31. package/dist/lib/runner/phases.d.ts +7 -2
  32. package/dist/lib/runner/phases.js +7 -2
  33. package/dist/lib/runner/proxy.d.ts +26 -2
  34. package/dist/lib/runner/proxy.js +33 -1
  35. package/dist/lib/runner/record-commit.d.ts +16 -0
  36. package/dist/lib/runner/record-commit.js +7 -0
  37. package/dist/lib/scan/report-email.d.ts +19 -2
  38. package/dist/lib/scan/report-email.js +78 -22
  39. package/dist/lib/scan/scan.d.ts +2 -0
  40. package/dist/lib/scan/scan.js +2 -1
  41. package/dist/lib/scan/share.d.ts +8 -6
  42. package/dist/lib/scan/share.js +28 -11
  43. package/dist/lib/scan/spend/anthropic-usage.d.ts +20 -1
  44. package/dist/lib/scan/spend/anthropic-usage.js +32 -7
  45. package/dist/lib/scan/spend/anthropic-wif.d.ts +42 -0
  46. package/dist/lib/scan/spend/anthropic-wif.js +153 -0
  47. package/dist/lib/starter-integrity.d.ts +20 -0
  48. package/dist/lib/starter-integrity.js +28 -0
  49. package/package.json +2 -5
  50. package/node_modules/@mnemom/aip-verifier/LICENSE +0 -190
  51. package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.cts +0 -478
  52. package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.ts +0 -478
  53. package/node_modules/@mnemom/aip-verifier/dist/index.cjs +0 -971
  54. package/node_modules/@mnemom/aip-verifier/dist/index.cjs.map +0 -1
  55. package/node_modules/@mnemom/aip-verifier/dist/index.d.cts +0 -330
  56. package/node_modules/@mnemom/aip-verifier/dist/index.d.ts +0 -330
  57. package/node_modules/@mnemom/aip-verifier/dist/index.js +0 -933
  58. package/node_modules/@mnemom/aip-verifier/dist/index.js.map +0 -1
  59. package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs +0 -879
  60. package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs.map +0 -1
  61. package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.cts +0 -96
  62. package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.ts +0 -96
  63. package/node_modules/@mnemom/aip-verifier/dist/render-lines.js +0 -875
  64. package/node_modules/@mnemom/aip-verifier/dist/render-lines.js.map +0 -1
  65. package/node_modules/@mnemom/aip-verifier/package.json +0 -86
  66. package/node_modules/@noble/ed25519/LICENSE +0 -21
  67. package/node_modules/@noble/ed25519/README.md +0 -371
  68. package/node_modules/@noble/ed25519/index.d.ts +0 -391
  69. package/node_modules/@noble/ed25519/index.js +0 -933
  70. package/node_modules/@noble/ed25519/index.ts +0 -1134
  71. package/node_modules/@noble/ed25519/package.json +0 -54
  72. package/node_modules/@noble/hashes/LICENSE +0 -21
  73. package/node_modules/@noble/hashes/README.md +0 -478
  74. package/node_modules/@noble/hashes/_blake.d.ts +0 -20
  75. package/node_modules/@noble/hashes/_blake.js +0 -59
  76. package/node_modules/@noble/hashes/_md.d.ts +0 -95
  77. package/node_modules/@noble/hashes/_md.js +0 -209
  78. package/node_modules/@noble/hashes/_u64.d.ts +0 -36
  79. package/node_modules/@noble/hashes/_u64.js +0 -77
  80. package/node_modules/@noble/hashes/argon2.d.ts +0 -148
  81. package/node_modules/@noble/hashes/argon2.js +0 -577
  82. package/node_modules/@noble/hashes/blake1.d.ts +0 -162
  83. package/node_modules/@noble/hashes/blake1.js +0 -630
  84. package/node_modules/@noble/hashes/blake2.d.ts +0 -203
  85. package/node_modules/@noble/hashes/blake2.js +0 -573
  86. package/node_modules/@noble/hashes/blake3.d.ts +0 -68
  87. package/node_modules/@noble/hashes/blake3.js +0 -310
  88. package/node_modules/@noble/hashes/eskdf.d.ts +0 -91
  89. package/node_modules/@noble/hashes/eskdf.js +0 -225
  90. package/node_modules/@noble/hashes/hkdf.d.ts +0 -70
  91. package/node_modules/@noble/hashes/hkdf.js +0 -152
  92. package/node_modules/@noble/hashes/hmac.d.ts +0 -50
  93. package/node_modules/@noble/hashes/hmac.js +0 -93
  94. package/node_modules/@noble/hashes/index.d.ts +0 -1
  95. package/node_modules/@noble/hashes/index.js +0 -34
  96. package/node_modules/@noble/hashes/legacy.d.ts +0 -107
  97. package/node_modules/@noble/hashes/legacy.js +0 -348
  98. package/node_modules/@noble/hashes/package.json +0 -91
  99. package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -66
  100. package/node_modules/@noble/hashes/pbkdf2.js +0 -176
  101. package/node_modules/@noble/hashes/scrypt.d.ts +0 -98
  102. package/node_modules/@noble/hashes/scrypt.js +0 -304
  103. package/node_modules/@noble/hashes/sha2.d.ts +0 -176
  104. package/node_modules/@noble/hashes/sha2.js +0 -446
  105. package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -533
  106. package/node_modules/@noble/hashes/sha3-addons.js +0 -973
  107. package/node_modules/@noble/hashes/sha3.d.ts +0 -208
  108. package/node_modules/@noble/hashes/sha3.js +0 -475
  109. package/node_modules/@noble/hashes/src/_blake.ts +0 -67
  110. package/node_modules/@noble/hashes/src/_md.ts +0 -227
  111. package/node_modules/@noble/hashes/src/_u64.ts +0 -111
  112. package/node_modules/@noble/hashes/src/argon2.ts +0 -693
  113. package/node_modules/@noble/hashes/src/blake1.ts +0 -677
  114. package/node_modules/@noble/hashes/src/blake2.ts +0 -648
  115. package/node_modules/@noble/hashes/src/blake3.ts +0 -344
  116. package/node_modules/@noble/hashes/src/eskdf.ts +0 -265
  117. package/node_modules/@noble/hashes/src/hkdf.ts +0 -161
  118. package/node_modules/@noble/hashes/src/hmac.ts +0 -130
  119. package/node_modules/@noble/hashes/src/index.ts +0 -33
  120. package/node_modules/@noble/hashes/src/legacy.ts +0 -361
  121. package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -219
  122. package/node_modules/@noble/hashes/src/scrypt.ts +0 -375
  123. package/node_modules/@noble/hashes/src/sha2.ts +0 -486
  124. package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -1157
  125. package/node_modules/@noble/hashes/src/sha3.ts +0 -525
  126. package/node_modules/@noble/hashes/src/utils.ts +0 -978
  127. package/node_modules/@noble/hashes/src/webcrypto.ts +0 -283
  128. package/node_modules/@noble/hashes/utils.d.ts +0 -560
  129. package/node_modules/@noble/hashes/utils.js +0 -687
  130. package/node_modules/@noble/hashes/webcrypto.d.ts +0 -121
  131. package/node_modules/@noble/hashes/webcrypto.js +0 -228
@@ -1,162 +0,0 @@
1
- import { type CHash, type Hash, type TArg, type TRet } from './utils.ts';
2
- /** Blake1 options. Basically just `salt`. */
3
- export type BlakeOpts = {
4
- /** Optional salt mixed into initialization. */
5
- salt?: Uint8Array;
6
- };
7
- declare abstract class BLAKE1<T extends BLAKE1<T>> implements Hash<T> {
8
- readonly canXOF = false;
9
- protected finished: boolean;
10
- protected length: number;
11
- protected pos: number;
12
- protected destroyed: boolean;
13
- protected buffer: Uint8Array;
14
- protected view: DataView;
15
- protected salt: Uint32Array;
16
- abstract compress(view: DataView, offset: number, withLength?: boolean): void;
17
- protected abstract get(): number[];
18
- abstract _cloneInto(to?: T): T;
19
- readonly blockLen: number;
20
- readonly outputLen: number;
21
- private lengthFlag;
22
- private counterLen;
23
- protected constants: Uint32Array;
24
- constructor(blockLen: number, outputLen: number, lengthFlag: number, counterLen: number, saltLen: number, constants: Uint32Array, opts?: BlakeOpts);
25
- update(data: TArg<Uint8Array>): this;
26
- destroy(): void;
27
- protected _cloneIntoMeta(to: T): T;
28
- clone(): T;
29
- digestInto(out: TArg<Uint8Array>): void;
30
- digest(): TRet<Uint8Array>;
31
- }
32
- declare class BLAKE1_32B extends BLAKE1<BLAKE1_32B> {
33
- private v0;
34
- private v1;
35
- private v2;
36
- private v3;
37
- private v4;
38
- private v5;
39
- private v6;
40
- private v7;
41
- constructor(outputLen: number, IV: Uint32Array, lengthFlag: number, opts?: BlakeOpts);
42
- protected get(): [number, number, number, number, number, number, number, number];
43
- protected set(v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number): void;
44
- _cloneInto(to?: BLAKE1_32B): BLAKE1_32B;
45
- destroy(): void;
46
- compress(view: DataView, offset: number, withLength?: boolean): void;
47
- }
48
- declare class BLAKE1_64B extends BLAKE1<BLAKE1_64B> {
49
- private v0l;
50
- private v0h;
51
- private v1l;
52
- private v1h;
53
- private v2l;
54
- private v2h;
55
- private v3l;
56
- private v3h;
57
- private v4l;
58
- private v4h;
59
- private v5l;
60
- private v5h;
61
- private v6l;
62
- private v6h;
63
- private v7l;
64
- private v7h;
65
- constructor(outputLen: number, IV: Uint32Array, lengthFlag: number, opts?: BlakeOpts);
66
- protected get(): [
67
- number,
68
- number,
69
- number,
70
- number,
71
- number,
72
- number,
73
- number,
74
- number,
75
- number,
76
- number,
77
- number,
78
- number,
79
- number,
80
- number,
81
- number,
82
- number
83
- ];
84
- 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;
85
- _cloneInto(to?: BLAKE1_64B): BLAKE1_64B;
86
- destroy(): void;
87
- compress(view: DataView, offset: number, withLength?: boolean): void;
88
- }
89
- /** Internal blake1-224 hash class. */
90
- export declare class _BLAKE224 extends BLAKE1_32B {
91
- constructor(opts?: BlakeOpts);
92
- }
93
- /** Internal blake1-256 hash class. */
94
- export declare class _BLAKE256 extends BLAKE1_32B {
95
- constructor(opts?: BlakeOpts);
96
- }
97
- /** Internal blake1-384 hash class. */
98
- export declare class _BLAKE384 extends BLAKE1_64B {
99
- constructor(opts?: BlakeOpts);
100
- }
101
- /** Internal blake1-512 hash class. */
102
- export declare class _BLAKE512 extends BLAKE1_64B {
103
- constructor(opts?: BlakeOpts);
104
- }
105
- /**
106
- * Blake1-224 hash function.
107
- * @param msg - message bytes to hash
108
- * @param opts - Optional Blake1 settings. See {@link BlakeOpts}. If set,
109
- * `opts.salt` must be exactly 16 bytes.
110
- * @returns Digest bytes.
111
- * @example
112
- * Hash a message with Blake1-224.
113
- * ```ts
114
- * blake224(new Uint8Array([97, 98, 99]));
115
- * ```
116
- */
117
- export declare const blake224: TRet<CHash<_BLAKE224, BlakeOpts>>;
118
- /**
119
- * Blake1-256 hash function.
120
- * @param msg - message bytes to hash
121
- * @param opts - Optional Blake1 settings. See {@link BlakeOpts}. If set,
122
- * `opts.salt` must be exactly 16 bytes.
123
- * @returns Digest bytes.
124
- * @example
125
- * Hash a message with Blake1-256.
126
- * ```ts
127
- * blake256(new Uint8Array([97, 98, 99]));
128
- * ```
129
- * @example
130
- * Hash a message with Blake1-256 and a 16-byte salt.
131
- * ```ts
132
- * blake256(new Uint8Array([97, 98, 99]), { salt: new Uint8Array(16) });
133
- * ```
134
- */
135
- export declare const blake256: TRet<CHash<_BLAKE256, BlakeOpts>>;
136
- /**
137
- * Blake1-384 hash function.
138
- * @param msg - message bytes to hash
139
- * @param opts - Optional Blake1 settings. See {@link BlakeOpts}. If set,
140
- * `opts.salt` must be exactly 32 bytes.
141
- * @returns Digest bytes.
142
- * @example
143
- * Hash a message with Blake1-384.
144
- * ```ts
145
- * blake384(new Uint8Array([97, 98, 99]));
146
- * ```
147
- */
148
- export declare const blake384: TRet<CHash<_BLAKE384, BlakeOpts>>;
149
- /**
150
- * Blake1-512 hash function.
151
- * @param msg - message bytes to hash
152
- * @param opts - Optional Blake1 settings. See {@link BlakeOpts}. If set,
153
- * `opts.salt` must be exactly 32 bytes.
154
- * @returns Digest bytes.
155
- * @example
156
- * Hash a message with Blake1-512.
157
- * ```ts
158
- * blake512(new Uint8Array([97, 98, 99]));
159
- * ```
160
- */
161
- export declare const blake512: TRet<CHash<_BLAKE512, BlakeOpts>>;
162
- export {};