@cortexkit/antigravity-auth-core 3.0.11 → 3.0.13
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/account-selector.d.ts +9 -1
- package/dist/account-selector.d.ts.map +1 -1
- package/dist/account-selector.js +23 -8
- package/dist/account-selector.js.map +1 -1
- package/dist/agy-transport.d.ts.map +1 -1
- package/dist/agy-transport.js +4 -0
- package/dist/agy-transport.js.map +1 -1
- package/dist/common-auth-embedded/claustrum/consumer.d.ts +83 -2
- package/dist/common-auth-embedded/claustrum/consumer.js +337 -37
- package/dist/common-auth-embedded/claustrum/custody.d.ts +36 -1
- package/dist/common-auth-embedded/claustrum/custody.js +95 -11
- package/dist/common-auth-embedded/claustrum/enrollment.js +37 -12
- package/dist/common-auth-embedded/claustrum/errors.d.ts +1 -1
- package/dist/common-auth-embedded/claustrum/hub.d.ts +195 -0
- package/dist/common-auth-embedded/claustrum/hub.js +988 -0
- package/dist/common-auth-embedded/claustrum/index.d.ts +13 -3
- package/dist/common-auth-embedded/claustrum/index.js +37 -4
- package/dist/common-auth-embedded/claustrum/quota-writer.d.ts +8 -1
- package/dist/common-auth-embedded/claustrum/quota-writer.js +38 -66
- package/dist/common-auth-embedded/claustrum/roster.d.ts +80 -1
- package/dist/common-auth-embedded/claustrum/roster.js +259 -12
- package/dist/common-auth-embedded/claustrum/shutdown.js +42 -0
- package/dist/common-auth-embedded/commands/builtins.d.ts +37 -0
- package/dist/common-auth-embedded/commands/builtins.js +95 -13
- package/dist/common-auth-embedded/commands/index.d.ts +1 -1
- package/dist/common-auth-embedded/fs/file-read-cache.js +57 -0
- package/dist/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
- package/dist/common-auth-embedded/fs/refresh-file-lock.js +20 -11
- package/dist/common-auth-embedded/quota/commit-interval.d.ts +9 -0
- package/dist/common-auth-embedded/quota/commit-interval.js +18 -0
- package/dist/common-auth-embedded/quota/pending.js +48 -0
- package/dist/common-auth-embedded/source-output.json +152 -88
- package/dist/common-auth-embedded/store/attribution.d.ts +5 -0
- package/dist/common-auth-embedded/store/attribution.js +39 -25
- package/dist/common-auth-embedded/store/mutate.d.ts +2 -0
- package/dist/common-auth-embedded/store/mutate.js +4 -0
- package/dist/common-auth-embedded/store/pool.d.ts +22 -0
- package/dist/common-auth-embedded/store/pool.js +18 -3
- package/dist/common-auth-embedded/store/pull.js +3 -1
- package/dist/common-auth-embedded/store/quota-writer.js +312 -0
- package/dist/common-auth-embedded/store/runtime.d.ts +2 -0
- package/dist/common-auth-embedded/store/settings.d.ts +1 -1
- package/dist/common-auth-embedded/store/settings.js +16 -6
- package/dist/model-registry.d.ts +2 -2
- package/dist/model-registry.d.ts.map +1 -1
- package/dist/model-registry.js +6 -4
- package/dist/model-registry.js.map +1 -1
- package/dist/pre-response-deadline.d.ts.map +1 -1
- package/dist/pre-response-deadline.js +6 -5
- package/dist/pre-response-deadline.js.map +1 -1
- package/dist/quota-manager.d.ts +1 -1
- package/dist/quota-manager.d.ts.map +1 -1
- package/dist/quota-manager.js +12 -4
- package/dist/quota-manager.js.map +1 -1
- package/dist/quota-presentation.d.ts.map +1 -1
- package/dist/quota-presentation.js +8 -0
- package/dist/quota-presentation.js.map +1 -1
- package/dist/quota-types.d.ts +1 -1
- package/dist/quota-types.d.ts.map +1 -1
- package/dist/quota-types.js +5 -0
- package/dist/quota-types.js.map +1 -1
- package/dist/vault-account-source.d.ts +6 -1
- package/dist/vault-account-source.d.ts.map +1 -1
- package/dist/vault-account-source.js +9 -0
- package/dist/vault-account-source.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ type RefreshFileLockOptions = {
|
|
|
28
28
|
onContended?: () => void;
|
|
29
29
|
/** Synchronous, never awaited; throws and returned promise/thenable rejections are isolated. */
|
|
30
30
|
onRenewalTimer?: (event: 'scheduled' | 'cancelled') => void;
|
|
31
|
-
onStep?: (step: 'stale-marker-stat' | 'stale-marker-claimed' | 'stale-lock-observed' | 'lock-read-ready' | 'lock-missing' | 'stale-lock-confirmed' | 'stale-lock-removed' | 'stale-lock-recreated' | 'eviction-marker-acquired' | 'renewal-owner-confirmed' | 'renewal-marker-unavailable' | 'renewal-write-fenced' | 'renewal-write-ready' | 'renewal-write-finished' | 'relinquish-read' | 'renewal-finished' | 'release-owner-confirmed') => void | Promise<void>;
|
|
31
|
+
onStep?: (step: 'stale-marker-stat' | 'stale-marker-claimed' | 'stale-lock-observed' | 'lease-contention-read-ready' | 'lock-read-ready' | 'lock-missing' | 'stale-lock-confirmed' | 'stale-lock-removed' | 'stale-lock-recreated' | 'eviction-marker-acquired' | 'renewal-owner-confirmed' | 'renewal-marker-unavailable' | 'renewal-write-fenced' | 'renewal-write-ready' | 'renewal-write-finished' | 'relinquish-read' | 'renewal-finished' | 'release-owner-confirmed') => void | Promise<void>;
|
|
32
32
|
};
|
|
33
33
|
/** Filesystem leases share wall time across all callers and processes. */
|
|
34
34
|
export declare function acquireRefreshFileLock(options: RefreshFileLockOptions): Promise<RefreshFileLock | null>;
|
|
@@ -178,19 +178,28 @@ export async function acquireRefreshFileLockWithClock(options) {
|
|
|
178
178
|
}
|
|
179
179
|
async function leaseContention(error) {
|
|
180
180
|
const code = error.code;
|
|
181
|
-
if (code
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
if (code !== 'EEXIST' && code !== 'EISDIR')
|
|
182
|
+
return false;
|
|
183
|
+
if (windowsPrivateFiles) {
|
|
184
|
+
if (options.onStep)
|
|
185
|
+
await options.onStep('lease-contention-read-ready');
|
|
186
|
+
try {
|
|
187
|
+
if (code === 'EISDIR') {
|
|
188
|
+
await verifyPrivate(lockPath, 'directory', true);
|
|
189
|
+
await readPrivateText(legacyOwnerPath, true);
|
|
190
|
+
}
|
|
191
|
+
else
|
|
192
|
+
await readOwner();
|
|
193
|
+
}
|
|
194
|
+
catch (readError) {
|
|
195
|
+
// The holder can release after exclusive creation reports a collision.
|
|
196
|
+
// Only absence permits another acquisition attempt; security and sharing
|
|
197
|
+
// refusals must still escape rather than being treated as contention.
|
|
198
|
+
if (readError.code !== 'ENOENT')
|
|
199
|
+
throw readError;
|
|
190
200
|
}
|
|
191
|
-
return true;
|
|
192
201
|
}
|
|
193
|
-
return
|
|
202
|
+
return true;
|
|
194
203
|
}
|
|
195
204
|
async function tryAcquire() {
|
|
196
205
|
if (windowsPrivateFiles)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const QUOTA_COMMIT_INTERVAL_MS = 30000;
|
|
2
|
+
export interface QuotaCommitTimer {
|
|
3
|
+
now(): number;
|
|
4
|
+
schedule(delayMs: number, run: () => Promise<void>): {
|
|
5
|
+
cancel(): void;
|
|
6
|
+
unref?(): void;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const quotaCommitTimer: QuotaCommitTimer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Atomic quota commits create locks, markers and a renamed temp file. Keep
|
|
2
|
+
// those filesystem events at least 30 s apart under normal load; routing sees
|
|
3
|
+
// pending readings immediately, while other processes may lag by one interval.
|
|
4
|
+
// Shutdown drains and a full bounded pool queue can commit sooner.
|
|
5
|
+
// The vault shares one gate per resolved path; each pool handle has its own.
|
|
6
|
+
// N pool handles on one file can therefore make N normal commits per interval
|
|
7
|
+
// in one process. These gates do not coordinate with other processes.
|
|
8
|
+
export const QUOTA_COMMIT_INTERVAL_MS = 30_000;
|
|
9
|
+
export const quotaCommitTimer = {
|
|
10
|
+
now: () => performance.now(),
|
|
11
|
+
schedule(delayMs, run) {
|
|
12
|
+
const timer = setTimeout(() => void run(), delayMs);
|
|
13
|
+
return {
|
|
14
|
+
cancel: () => clearTimeout(timer),
|
|
15
|
+
unref: () => timer.unref?.(),
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Use the same independently dated parts as mergeQuotaObservation. A header
|
|
2
|
+
// reading cannot erase a poll-only window, counter, credits record or budget.
|
|
3
|
+
export function quotaFields(publication, witness = '') {
|
|
4
|
+
const result = new Map();
|
|
5
|
+
const { observation } = publication;
|
|
6
|
+
const add = (key, at, part) => result.set(`${witness}:${key}`, {
|
|
7
|
+
at,
|
|
8
|
+
order: 0,
|
|
9
|
+
publication: { ...publication, observation: part },
|
|
10
|
+
});
|
|
11
|
+
const keyFor = (scope, label) => JSON.stringify([scope ?? 'all', label]);
|
|
12
|
+
const read = new Set();
|
|
13
|
+
for (const reading of observation.readings ?? []) {
|
|
14
|
+
const key = keyFor(reading.scope, reading.label);
|
|
15
|
+
read.add(key);
|
|
16
|
+
add(key, observation.checkedAt, {
|
|
17
|
+
checkedAt: observation.checkedAt,
|
|
18
|
+
readings: [{ ...reading }],
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
for (const pair of observation.coverage ?? []) {
|
|
22
|
+
const key = keyFor(pair.scope, pair.label);
|
|
23
|
+
if (!read.has(key))
|
|
24
|
+
add(key, observation.checkedAt, {
|
|
25
|
+
checkedAt: observation.checkedAt,
|
|
26
|
+
coverage: [{ ...pair }],
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
if (observation.budget)
|
|
30
|
+
add('budget', observation.checkedAt, {
|
|
31
|
+
checkedAt: observation.checkedAt,
|
|
32
|
+
budget: { ...observation.budget },
|
|
33
|
+
});
|
|
34
|
+
for (const [name, counter] of Object.entries(observation.counters ?? {})) {
|
|
35
|
+
add(`counter:${name}`, counter.checkedAt, {
|
|
36
|
+
checkedAt: observation.checkedAt,
|
|
37
|
+
counters: { [name]: { ...counter } },
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (observation.credits)
|
|
41
|
+
add('credits', observation.credits.checkedAt, {
|
|
42
|
+
checkedAt: observation.checkedAt,
|
|
43
|
+
credits: { ...observation.credits },
|
|
44
|
+
});
|
|
45
|
+
if (!result.size)
|
|
46
|
+
add('empty', observation.checkedAt, { checkedAt: observation.checkedAt });
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"package": "@cortexkit/common-auth",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.1",
|
|
5
5
|
"artifactStatus": "published",
|
|
6
6
|
"publicRoots": {
|
|
7
7
|
"./store": {
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"import": "./dist/pi-slot/index.js"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"input": "tools/common-auth-build/inputs/cortexkit-common-auth-0.
|
|
41
|
-
"tarballSha256": "
|
|
42
|
-
"sri": "sha512-
|
|
43
|
-
"canonicalFiles":
|
|
44
|
-
"canonicalBytes":
|
|
40
|
+
"input": "tools/common-auth-build/inputs/cortexkit-common-auth-0.27.1.tgz",
|
|
41
|
+
"tarballSha256": "a74507a1f746c9d591501ab24a630fe8bab20fb305c92738770902f003edb387",
|
|
42
|
+
"sri": "sha512-k5oKV38HxXKqwVi7qU8K9fD+P0ca7kXu52TlulHJoiGO0Q8Ebv0URtW1UXKLYawOm3ZwfVwFEBzAhuj8kMh6rg==",
|
|
43
|
+
"canonicalFiles": 147,
|
|
44
|
+
"canonicalBytes": 981509,
|
|
45
45
|
"generator": {
|
|
46
46
|
"path": "packages/opencode/scripts/embed-common-auth.ts",
|
|
47
47
|
"version": 3,
|
|
48
|
-
"sha256": "
|
|
48
|
+
"sha256": "79e2db6c01d1048f7a8b90a5105848710890e68ebb0ff096ec5623ec96eb1012"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
{
|
|
@@ -227,33 +227,33 @@
|
|
|
227
227
|
{
|
|
228
228
|
"source": "package/dist/claustrum/consumer.d.ts",
|
|
229
229
|
"output": "claustrum/consumer.d.ts",
|
|
230
|
-
"bytes":
|
|
231
|
-
"sourceSha256": "
|
|
232
|
-
"outputSha256": "
|
|
230
|
+
"bytes": 13309,
|
|
231
|
+
"sourceSha256": "a33f8fb2750424f1dd1e80ee6e0f260d4d5b6bdf6be3b00b2ae503bfbadb4d17",
|
|
232
|
+
"outputSha256": "a33f8fb2750424f1dd1e80ee6e0f260d4d5b6bdf6be3b00b2ae503bfbadb4d17",
|
|
233
233
|
"transform": "verbatim"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"source": "package/dist/claustrum/consumer.js",
|
|
237
237
|
"output": "claustrum/consumer.js",
|
|
238
|
-
"bytes":
|
|
239
|
-
"sourceSha256": "
|
|
240
|
-
"outputSha256": "
|
|
238
|
+
"bytes": 38516,
|
|
239
|
+
"sourceSha256": "46a8be88c8e5270d06bda0042235d7081dea06eaf1ae15f9a5fdf2ed93e478fd",
|
|
240
|
+
"outputSha256": "46a8be88c8e5270d06bda0042235d7081dea06eaf1ae15f9a5fdf2ed93e478fd",
|
|
241
241
|
"transform": "verbatim"
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"source": "package/dist/claustrum/custody.d.ts",
|
|
245
245
|
"output": "claustrum/custody.d.ts",
|
|
246
|
-
"bytes":
|
|
247
|
-
"sourceSha256": "
|
|
248
|
-
"outputSha256": "
|
|
246
|
+
"bytes": 16192,
|
|
247
|
+
"sourceSha256": "ac8a3f2a47ec04ba0b6b5f69425db6672aa7660cd9249853f05fb2b4669698c2",
|
|
248
|
+
"outputSha256": "ac8a3f2a47ec04ba0b6b5f69425db6672aa7660cd9249853f05fb2b4669698c2",
|
|
249
249
|
"transform": "verbatim"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"source": "package/dist/claustrum/custody.js",
|
|
253
253
|
"output": "claustrum/custody.js",
|
|
254
|
-
"bytes":
|
|
255
|
-
"sourceSha256": "
|
|
256
|
-
"outputSha256": "
|
|
254
|
+
"bytes": 30242,
|
|
255
|
+
"sourceSha256": "cfa9c256d59ac4740f5b88fc1662a3bbb29078973cbeaf6225448c305fa580a2",
|
|
256
|
+
"outputSha256": "cfa9c256d59ac4740f5b88fc1662a3bbb29078973cbeaf6225448c305fa580a2",
|
|
257
257
|
"transform": "verbatim"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
@@ -267,17 +267,17 @@
|
|
|
267
267
|
{
|
|
268
268
|
"source": "package/dist/claustrum/enrollment.js",
|
|
269
269
|
"output": "claustrum/enrollment.js",
|
|
270
|
-
"bytes":
|
|
271
|
-
"sourceSha256": "
|
|
272
|
-
"outputSha256": "
|
|
270
|
+
"bytes": 36501,
|
|
271
|
+
"sourceSha256": "0a6aa09a8927ae9ba11e4cc4fbe81cd8a3248d5f7db71e8592667bc870899078",
|
|
272
|
+
"outputSha256": "0a6aa09a8927ae9ba11e4cc4fbe81cd8a3248d5f7db71e8592667bc870899078",
|
|
273
273
|
"transform": "verbatim"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"source": "package/dist/claustrum/errors.d.ts",
|
|
277
277
|
"output": "claustrum/errors.d.ts",
|
|
278
|
-
"bytes":
|
|
279
|
-
"sourceSha256": "
|
|
280
|
-
"outputSha256": "
|
|
278
|
+
"bytes": 1163,
|
|
279
|
+
"sourceSha256": "a6e5ec8be3ae7160b78456e642b440494604c2e2cdc987550744521dc873fb40",
|
|
280
|
+
"outputSha256": "a6e5ec8be3ae7160b78456e642b440494604c2e2cdc987550744521dc873fb40",
|
|
281
281
|
"transform": "verbatim"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
@@ -304,20 +304,36 @@
|
|
|
304
304
|
"outputSha256": "59bd24af8dbf5d923750b6e2fb15de2ce8a59aa59e11a6740527e50d5f7f93d6",
|
|
305
305
|
"transform": "verbatim"
|
|
306
306
|
},
|
|
307
|
+
{
|
|
308
|
+
"source": "package/dist/claustrum/hub.d.ts",
|
|
309
|
+
"output": "claustrum/hub.d.ts",
|
|
310
|
+
"bytes": 9169,
|
|
311
|
+
"sourceSha256": "07a5c385738649ec5c03b6afb7a916011e565c9f9d5463b280b9896024d8f0c0",
|
|
312
|
+
"outputSha256": "07a5c385738649ec5c03b6afb7a916011e565c9f9d5463b280b9896024d8f0c0",
|
|
313
|
+
"transform": "verbatim"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"source": "package/dist/claustrum/hub.js",
|
|
317
|
+
"output": "claustrum/hub.js",
|
|
318
|
+
"bytes": 40718,
|
|
319
|
+
"sourceSha256": "50d57557ccd6e59989424e0df63df75570d97cdb5f71da37ce865d75f76297fd",
|
|
320
|
+
"outputSha256": "50d57557ccd6e59989424e0df63df75570d97cdb5f71da37ce865d75f76297fd",
|
|
321
|
+
"transform": "verbatim"
|
|
322
|
+
},
|
|
307
323
|
{
|
|
308
324
|
"source": "package/dist/claustrum/index.d.ts",
|
|
309
325
|
"output": "claustrum/index.d.ts",
|
|
310
|
-
"bytes":
|
|
311
|
-
"sourceSha256": "
|
|
312
|
-
"outputSha256": "
|
|
326
|
+
"bytes": 4728,
|
|
327
|
+
"sourceSha256": "524bec258d060b75e6aeefa1e39e102e9ad7370e6c74ba2c033fcc418a1db4d7",
|
|
328
|
+
"outputSha256": "524bec258d060b75e6aeefa1e39e102e9ad7370e6c74ba2c033fcc418a1db4d7",
|
|
313
329
|
"transform": "verbatim"
|
|
314
330
|
},
|
|
315
331
|
{
|
|
316
332
|
"source": "package/dist/claustrum/index.js",
|
|
317
333
|
"output": "claustrum/index.js",
|
|
318
|
-
"bytes":
|
|
319
|
-
"sourceSha256": "
|
|
320
|
-
"outputSha256": "
|
|
334
|
+
"bytes": 3938,
|
|
335
|
+
"sourceSha256": "9868c6c475ba9390118bd45c3b5dafe18a51c13cfe4e61700496e9096143a42b",
|
|
336
|
+
"outputSha256": "9868c6c475ba9390118bd45c3b5dafe18a51c13cfe4e61700496e9096143a42b",
|
|
321
337
|
"transform": "verbatim"
|
|
322
338
|
},
|
|
323
339
|
{
|
|
@@ -355,33 +371,41 @@
|
|
|
355
371
|
{
|
|
356
372
|
"source": "package/dist/claustrum/quota-writer.d.ts",
|
|
357
373
|
"output": "claustrum/quota-writer.d.ts",
|
|
358
|
-
"bytes":
|
|
359
|
-
"sourceSha256": "
|
|
360
|
-
"outputSha256": "
|
|
374
|
+
"bytes": 1483,
|
|
375
|
+
"sourceSha256": "c3cafec7057092a67d443667bee50b19333dcf3a8d14b63c9fbe4ac3989ba389",
|
|
376
|
+
"outputSha256": "c3cafec7057092a67d443667bee50b19333dcf3a8d14b63c9fbe4ac3989ba389",
|
|
361
377
|
"transform": "verbatim"
|
|
362
378
|
},
|
|
363
379
|
{
|
|
364
380
|
"source": "package/dist/claustrum/quota-writer.js",
|
|
365
381
|
"output": "claustrum/quota-writer.js",
|
|
366
|
-
"bytes":
|
|
367
|
-
"sourceSha256": "
|
|
368
|
-
"outputSha256": "
|
|
382
|
+
"bytes": 8527,
|
|
383
|
+
"sourceSha256": "5375e7d8a300e73f4398d610090834095fd22ba4b3830f3c62d142a67dcbe9fd",
|
|
384
|
+
"outputSha256": "5375e7d8a300e73f4398d610090834095fd22ba4b3830f3c62d142a67dcbe9fd",
|
|
369
385
|
"transform": "verbatim"
|
|
370
386
|
},
|
|
371
387
|
{
|
|
372
388
|
"source": "package/dist/claustrum/roster.d.ts",
|
|
373
389
|
"output": "claustrum/roster.d.ts",
|
|
374
|
-
"bytes":
|
|
375
|
-
"sourceSha256": "
|
|
376
|
-
"outputSha256": "
|
|
390
|
+
"bytes": 15102,
|
|
391
|
+
"sourceSha256": "30fc3b4d572e43a08a700ff169ebcb52206d1200f7ca678d2bff0a3369aaa005",
|
|
392
|
+
"outputSha256": "30fc3b4d572e43a08a700ff169ebcb52206d1200f7ca678d2bff0a3369aaa005",
|
|
377
393
|
"transform": "verbatim"
|
|
378
394
|
},
|
|
379
395
|
{
|
|
380
396
|
"source": "package/dist/claustrum/roster.js",
|
|
381
397
|
"output": "claustrum/roster.js",
|
|
382
|
-
"bytes":
|
|
383
|
-
"sourceSha256": "
|
|
384
|
-
"outputSha256": "
|
|
398
|
+
"bytes": 39326,
|
|
399
|
+
"sourceSha256": "f46fc75edcf4e418f02a5699c7395f1f44abd2e28b77067b89f7622af5890214",
|
|
400
|
+
"outputSha256": "f46fc75edcf4e418f02a5699c7395f1f44abd2e28b77067b89f7622af5890214",
|
|
401
|
+
"transform": "verbatim"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"source": "package/dist/claustrum/shutdown.js",
|
|
405
|
+
"output": "claustrum/shutdown.js",
|
|
406
|
+
"bytes": 1270,
|
|
407
|
+
"sourceSha256": "6ccb19ab5e9bb84a978cb47a32b443abe432b4edfe69a318e45bb404ef75c45e",
|
|
408
|
+
"outputSha256": "6ccb19ab5e9bb84a978cb47a32b443abe432b4edfe69a318e45bb404ef75c45e",
|
|
385
409
|
"transform": "verbatim"
|
|
386
410
|
},
|
|
387
411
|
{
|
|
@@ -403,25 +427,25 @@
|
|
|
403
427
|
{
|
|
404
428
|
"source": "package/dist/commands/builtins.d.ts",
|
|
405
429
|
"output": "commands/builtins.d.ts",
|
|
406
|
-
"bytes":
|
|
407
|
-
"sourceSha256": "
|
|
408
|
-
"outputSha256": "
|
|
430
|
+
"bytes": 4576,
|
|
431
|
+
"sourceSha256": "5ab6cbab696c91fef0fc7288d4b82803cd0bac809b68f939d73671505fc1d894",
|
|
432
|
+
"outputSha256": "5ab6cbab696c91fef0fc7288d4b82803cd0bac809b68f939d73671505fc1d894",
|
|
409
433
|
"transform": "verbatim"
|
|
410
434
|
},
|
|
411
435
|
{
|
|
412
436
|
"source": "package/dist/commands/builtins.js",
|
|
413
437
|
"output": "commands/builtins.js",
|
|
414
|
-
"bytes":
|
|
415
|
-
"sourceSha256": "
|
|
416
|
-
"outputSha256": "
|
|
438
|
+
"bytes": 25155,
|
|
439
|
+
"sourceSha256": "c5f7fca0e36dc2f3253b88e7600d3dbed6a193d2b8abbf07d16913b6b46551e6",
|
|
440
|
+
"outputSha256": "c5f7fca0e36dc2f3253b88e7600d3dbed6a193d2b8abbf07d16913b6b46551e6",
|
|
417
441
|
"transform": "verbatim"
|
|
418
442
|
},
|
|
419
443
|
{
|
|
420
444
|
"source": "package/dist/commands/index.d.ts",
|
|
421
445
|
"output": "commands/index.d.ts",
|
|
422
|
-
"bytes":
|
|
423
|
-
"sourceSha256": "
|
|
424
|
-
"outputSha256": "
|
|
446
|
+
"bytes": 1100,
|
|
447
|
+
"sourceSha256": "4be7eec728211b7ad707121b1f2bbe2c219574aaa4e1c5be3f8964b185d4377c",
|
|
448
|
+
"outputSha256": "4be7eec728211b7ad707121b1f2bbe2c219574aaa4e1c5be3f8964b185d4377c",
|
|
425
449
|
"transform": "verbatim"
|
|
426
450
|
},
|
|
427
451
|
{
|
|
@@ -512,6 +536,14 @@
|
|
|
512
536
|
"outputSha256": "80779a8078e673ef68deaa7fdee3a0e1322078521a1f4156c0a595814c374044",
|
|
513
537
|
"transform": "verbatim"
|
|
514
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"source": "package/dist/fs/file-read-cache.js",
|
|
541
|
+
"output": "fs/file-read-cache.js",
|
|
542
|
+
"bytes": 2121,
|
|
543
|
+
"sourceSha256": "484d18996d76c44125c880347b3d3dcd10bb352743acf44c588d0b38e8e0f1a7",
|
|
544
|
+
"outputSha256": "484d18996d76c44125c880347b3d3dcd10bb352743acf44c588d0b38e8e0f1a7",
|
|
545
|
+
"transform": "verbatim"
|
|
546
|
+
},
|
|
515
547
|
{
|
|
516
548
|
"source": "package/dist/fs/index.d.ts",
|
|
517
549
|
"output": "fs/index.d.ts",
|
|
@@ -563,17 +595,17 @@
|
|
|
563
595
|
{
|
|
564
596
|
"source": "package/dist/fs/refresh-file-lock.d.ts",
|
|
565
597
|
"output": "fs/refresh-file-lock.d.ts",
|
|
566
|
-
"bytes":
|
|
567
|
-
"sourceSha256": "
|
|
568
|
-
"outputSha256": "
|
|
598
|
+
"bytes": 2157,
|
|
599
|
+
"sourceSha256": "cbce15eb313d425501780dd4be657cbbaa7e41064bab4ae64fea91fbd54918e9",
|
|
600
|
+
"outputSha256": "cbce15eb313d425501780dd4be657cbbaa7e41064bab4ae64fea91fbd54918e9",
|
|
569
601
|
"transform": "verbatim"
|
|
570
602
|
},
|
|
571
603
|
{
|
|
572
604
|
"source": "package/dist/fs/refresh-file-lock.js",
|
|
573
605
|
"output": "fs/refresh-file-lock.js",
|
|
574
|
-
"bytes":
|
|
575
|
-
"sourceSha256": "
|
|
576
|
-
"outputSha256": "
|
|
606
|
+
"bytes": 30222,
|
|
607
|
+
"sourceSha256": "314dadbe39b9f0664b6f2f6abff674197c8d86f61ba657e2031d5a8b08ec1030",
|
|
608
|
+
"outputSha256": "314dadbe39b9f0664b6f2f6abff674197c8d86f61ba657e2031d5a8b08ec1030",
|
|
577
609
|
"transform": "verbatim"
|
|
578
610
|
},
|
|
579
611
|
{
|
|
@@ -712,6 +744,22 @@
|
|
|
712
744
|
"outputSha256": "4e496ce03a8a23536b467168f1dc6a7ceffb06d00ae80cb8a8868f311b2f3a8a",
|
|
713
745
|
"transform": "verbatim"
|
|
714
746
|
},
|
|
747
|
+
{
|
|
748
|
+
"source": "package/dist/quota/commit-interval.d.ts",
|
|
749
|
+
"output": "quota/commit-interval.d.ts",
|
|
750
|
+
"bytes": 283,
|
|
751
|
+
"sourceSha256": "8b1d8b541a382d1ce366d65d9845e9d3848445cf075751b68ad963fb660ee04a",
|
|
752
|
+
"outputSha256": "8b1d8b541a382d1ce366d65d9845e9d3848445cf075751b68ad963fb660ee04a",
|
|
753
|
+
"transform": "verbatim"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"source": "package/dist/quota/commit-interval.js",
|
|
757
|
+
"output": "quota/commit-interval.js",
|
|
758
|
+
"bytes": 864,
|
|
759
|
+
"sourceSha256": "3281afb6df69d83a7c5898e1163287f34104068ddd4085b7460c4bb392967491",
|
|
760
|
+
"outputSha256": "3281afb6df69d83a7c5898e1163287f34104068ddd4085b7460c4bb392967491",
|
|
761
|
+
"transform": "verbatim"
|
|
762
|
+
},
|
|
715
763
|
{
|
|
716
764
|
"source": "package/dist/quota/format.d.ts",
|
|
717
765
|
"output": "quota/format.d.ts",
|
|
@@ -776,6 +824,14 @@
|
|
|
776
824
|
"outputSha256": "b1d76faf1fb480b97ef1886ce75dbd2156002baedc39249468559cb4eece5bbb",
|
|
777
825
|
"transform": "verbatim"
|
|
778
826
|
},
|
|
827
|
+
{
|
|
828
|
+
"source": "package/dist/quota/pending.js",
|
|
829
|
+
"output": "quota/pending.js",
|
|
830
|
+
"bytes": 1876,
|
|
831
|
+
"sourceSha256": "e757a3fa9f8440190668c6154468a5baec8a84e20d6c831a6d7935c3b9bebe29",
|
|
832
|
+
"outputSha256": "e757a3fa9f8440190668c6154468a5baec8a84e20d6c831a6d7935c3b9bebe29",
|
|
833
|
+
"transform": "verbatim"
|
|
834
|
+
},
|
|
779
835
|
{
|
|
780
836
|
"source": "package/dist/quota/projection.d.ts",
|
|
781
837
|
"output": "quota/projection.d.ts",
|
|
@@ -875,17 +931,17 @@
|
|
|
875
931
|
{
|
|
876
932
|
"source": "package/dist/store/attribution.d.ts",
|
|
877
933
|
"output": "store/attribution.d.ts",
|
|
878
|
-
"bytes":
|
|
879
|
-
"sourceSha256": "
|
|
880
|
-
"outputSha256": "
|
|
934
|
+
"bytes": 1951,
|
|
935
|
+
"sourceSha256": "16919a55fe944b459ff511c125ac2ba34714949d38db006c8ab047dd48ab51a6",
|
|
936
|
+
"outputSha256": "16919a55fe944b459ff511c125ac2ba34714949d38db006c8ab047dd48ab51a6",
|
|
881
937
|
"transform": "verbatim"
|
|
882
938
|
},
|
|
883
939
|
{
|
|
884
940
|
"source": "package/dist/store/attribution.js",
|
|
885
941
|
"output": "store/attribution.js",
|
|
886
|
-
"bytes":
|
|
887
|
-
"sourceSha256": "
|
|
888
|
-
"outputSha256": "
|
|
942
|
+
"bytes": 3280,
|
|
943
|
+
"sourceSha256": "5b54980a4f158c9b61cd90c4a83a14e83268fe98101fc88409500bb73d1126bb",
|
|
944
|
+
"outputSha256": "5b54980a4f158c9b61cd90c4a83a14e83268fe98101fc88409500bb73d1126bb",
|
|
889
945
|
"transform": "verbatim"
|
|
890
946
|
},
|
|
891
947
|
{
|
|
@@ -955,33 +1011,33 @@
|
|
|
955
1011
|
{
|
|
956
1012
|
"source": "package/dist/store/mutate.d.ts",
|
|
957
1013
|
"output": "store/mutate.d.ts",
|
|
958
|
-
"bytes":
|
|
959
|
-
"sourceSha256": "
|
|
960
|
-
"outputSha256": "
|
|
1014
|
+
"bytes": 9196,
|
|
1015
|
+
"sourceSha256": "4a46be98d9eb24a690e95f26b69bd3c461d5f225170bd31fcb89147c7baac41c",
|
|
1016
|
+
"outputSha256": "4a46be98d9eb24a690e95f26b69bd3c461d5f225170bd31fcb89147c7baac41c",
|
|
961
1017
|
"transform": "verbatim"
|
|
962
1018
|
},
|
|
963
1019
|
{
|
|
964
1020
|
"source": "package/dist/store/mutate.js",
|
|
965
1021
|
"output": "store/mutate.js",
|
|
966
|
-
"bytes":
|
|
967
|
-
"sourceSha256": "
|
|
968
|
-
"outputSha256": "
|
|
1022
|
+
"bytes": 20171,
|
|
1023
|
+
"sourceSha256": "d61d08f2caed6d7a803ca4c67511e5133d28f21a90a7417f76e23b49ed00591d",
|
|
1024
|
+
"outputSha256": "d61d08f2caed6d7a803ca4c67511e5133d28f21a90a7417f76e23b49ed00591d",
|
|
969
1025
|
"transform": "verbatim"
|
|
970
1026
|
},
|
|
971
1027
|
{
|
|
972
1028
|
"source": "package/dist/store/pool.d.ts",
|
|
973
1029
|
"output": "store/pool.d.ts",
|
|
974
|
-
"bytes":
|
|
975
|
-
"sourceSha256": "
|
|
976
|
-
"outputSha256": "
|
|
1030
|
+
"bytes": 12144,
|
|
1031
|
+
"sourceSha256": "64d6e7dd5600f436422e6d309a22b7f874a6afdd866873226ab1f4d5091ebc43",
|
|
1032
|
+
"outputSha256": "64d6e7dd5600f436422e6d309a22b7f874a6afdd866873226ab1f4d5091ebc43",
|
|
977
1033
|
"transform": "verbatim"
|
|
978
1034
|
},
|
|
979
1035
|
{
|
|
980
1036
|
"source": "package/dist/store/pool.js",
|
|
981
1037
|
"output": "store/pool.js",
|
|
982
|
-
"bytes":
|
|
983
|
-
"sourceSha256": "
|
|
984
|
-
"outputSha256": "
|
|
1038
|
+
"bytes": 6358,
|
|
1039
|
+
"sourceSha256": "1503b5c0f461678f9710a5fe22e345092de70e537a114e57b0cb651795928031",
|
|
1040
|
+
"outputSha256": "1503b5c0f461678f9710a5fe22e345092de70e537a114e57b0cb651795928031",
|
|
985
1041
|
"transform": "verbatim"
|
|
986
1042
|
},
|
|
987
1043
|
{
|
|
@@ -1027,9 +1083,17 @@
|
|
|
1027
1083
|
{
|
|
1028
1084
|
"source": "package/dist/store/pull.js",
|
|
1029
1085
|
"output": "store/pull.js",
|
|
1030
|
-
"bytes":
|
|
1031
|
-
"sourceSha256": "
|
|
1032
|
-
"outputSha256": "
|
|
1086
|
+
"bytes": 5602,
|
|
1087
|
+
"sourceSha256": "512a723a49dae3be50aa8c67ca8f6a5c165ec72e8a991a166d8d93e33e895350",
|
|
1088
|
+
"outputSha256": "512a723a49dae3be50aa8c67ca8f6a5c165ec72e8a991a166d8d93e33e895350",
|
|
1089
|
+
"transform": "verbatim"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"source": "package/dist/store/quota-writer.js",
|
|
1093
|
+
"output": "store/quota-writer.js",
|
|
1094
|
+
"bytes": 12960,
|
|
1095
|
+
"sourceSha256": "7816549913b030045e5f7848dd57ca11841a3aa6051c30c96a7d09f82341700e",
|
|
1096
|
+
"outputSha256": "7816549913b030045e5f7848dd57ca11841a3aa6051c30c96a7d09f82341700e",
|
|
1033
1097
|
"transform": "verbatim"
|
|
1034
1098
|
},
|
|
1035
1099
|
{
|
|
@@ -1091,9 +1155,9 @@
|
|
|
1091
1155
|
{
|
|
1092
1156
|
"source": "package/dist/store/runtime.d.ts",
|
|
1093
1157
|
"output": "store/runtime.d.ts",
|
|
1094
|
-
"bytes":
|
|
1095
|
-
"sourceSha256": "
|
|
1096
|
-
"outputSha256": "
|
|
1158
|
+
"bytes": 2100,
|
|
1159
|
+
"sourceSha256": "34efe7252b6c0aead222cab6164340e76e9c22202049158164c56c3b46bab91f",
|
|
1160
|
+
"outputSha256": "34efe7252b6c0aead222cab6164340e76e9c22202049158164c56c3b46bab91f",
|
|
1097
1161
|
"transform": "verbatim"
|
|
1098
1162
|
},
|
|
1099
1163
|
{
|
|
@@ -1123,17 +1187,17 @@
|
|
|
1123
1187
|
{
|
|
1124
1188
|
"source": "package/dist/store/settings.d.ts",
|
|
1125
1189
|
"output": "store/settings.d.ts",
|
|
1126
|
-
"bytes":
|
|
1127
|
-
"sourceSha256": "
|
|
1128
|
-
"outputSha256": "
|
|
1190
|
+
"bytes": 2994,
|
|
1191
|
+
"sourceSha256": "32446dea1f8431e3fb7e38940d1dec7259dbd5c794b4117efe3875be92405fef",
|
|
1192
|
+
"outputSha256": "32446dea1f8431e3fb7e38940d1dec7259dbd5c794b4117efe3875be92405fef",
|
|
1129
1193
|
"transform": "verbatim"
|
|
1130
1194
|
},
|
|
1131
1195
|
{
|
|
1132
1196
|
"source": "package/dist/store/settings.js",
|
|
1133
1197
|
"output": "store/settings.js",
|
|
1134
|
-
"bytes":
|
|
1135
|
-
"sourceSha256": "
|
|
1136
|
-
"outputSha256": "
|
|
1198
|
+
"bytes": 5766,
|
|
1199
|
+
"sourceSha256": "5ed4e0458800923b843b9b8f0671cca0c04cb26e428453e3bcc8b6d06b51470f",
|
|
1200
|
+
"outputSha256": "5ed4e0458800923b843b9b8f0671cca0c04cb26e428453e3bcc8b6d06b51470f",
|
|
1137
1201
|
"transform": "verbatim"
|
|
1138
1202
|
},
|
|
1139
1203
|
{
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type StoreContext } from './mutate.js';
|
|
1
2
|
import { type StoreRuntime } from './runtime.js';
|
|
3
|
+
import { type PoolRow } from './schema.js';
|
|
2
4
|
/**
|
|
3
5
|
* What a pull or refresh captured about its row (named by id alongside) when
|
|
4
6
|
* it was issued. A result applies only while the row with that id still has
|
|
@@ -20,6 +22,9 @@ export interface Attribution {
|
|
|
20
22
|
credentialEpoch: number;
|
|
21
23
|
identity?: string;
|
|
22
24
|
}
|
|
25
|
+
export declare function assertQuotaEpoch(id: string, attribution: Attribution): void;
|
|
26
|
+
export declare function assertQuotaRow(id: string, attribution: Attribution, row: PoolRow | undefined): asserts row is PoolRow;
|
|
27
|
+
export declare function mergedQuota(ctx: StoreContext, id: string, stored: unknown, observation: unknown): unknown;
|
|
23
28
|
/**
|
|
24
29
|
* Merges a quota observation into a row's stored map under the store locks,
|
|
25
30
|
* after attribution passes. Needs no row lock, so it is permitted from
|