@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,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 {};