@cortexkit/antigravity-auth-core 3.0.4 → 3.0.6
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-manager.d.ts +15 -23
- package/dist/account-manager.d.ts.map +1 -1
- package/dist/account-manager.js +18 -32
- package/dist/account-manager.js.map +1 -1
- package/dist/account-repository-types.d.ts +1 -1
- package/dist/account-selector.d.ts +13 -27
- package/dist/account-selector.d.ts.map +1 -1
- package/dist/account-selector.js +38 -145
- package/dist/account-selector.js.map +1 -1
- package/dist/account-types.d.ts +1 -3
- package/dist/account-types.d.ts.map +1 -1
- package/dist/antigravity/oauth.d.ts +5 -1
- package/dist/antigravity/oauth.d.ts.map +1 -1
- package/dist/antigravity/oauth.js +43 -9
- package/dist/antigravity/oauth.js.map +1 -1
- package/dist/antigravity-command-menu.d.ts +4 -8
- package/dist/antigravity-command-menu.d.ts.map +1 -1
- package/dist/antigravity-command-menu.js +14 -37
- package/dist/antigravity-command-menu.js.map +1 -1
- package/dist/common-auth-embedded/claustrum/consumer.d.ts +33 -3
- package/dist/common-auth-embedded/claustrum/consumer.js +96 -1
- package/dist/common-auth-embedded/claustrum/custody.d.ts +4 -1
- package/dist/common-auth-embedded/claustrum/enrollment.d.ts +6 -1
- package/dist/common-auth-embedded/claustrum/enrollment.js +6 -1
- package/dist/common-auth-embedded/claustrum/index.d.ts +2 -1
- package/dist/common-auth-embedded/claustrum/index.js +5 -3
- package/dist/common-auth-embedded/claustrum/insula.d.ts +69 -0
- package/dist/common-auth-embedded/claustrum/insula.js +152 -0
- package/dist/common-auth-embedded/claustrum/roster.d.ts +13 -0
- package/dist/common-auth-embedded/claustrum/roster.js +33 -3
- package/dist/common-auth-embedded/fs/refresh-file-lock.js +20 -11
- package/dist/common-auth-embedded/quota/codec.d.ts +2 -0
- package/dist/common-auth-embedded/quota/codec.js +2 -1
- package/dist/common-auth-embedded/quota/format.d.ts +26 -0
- package/dist/common-auth-embedded/quota/format.js +78 -42
- package/dist/common-auth-embedded/quota/index.d.ts +4 -4
- package/dist/common-auth-embedded/quota/index.js +2 -2
- package/dist/common-auth-embedded/quota/map.d.ts +11 -0
- package/dist/common-auth-embedded/quota/map.js +36 -1
- package/dist/common-auth-embedded/quota/merge.d.ts +3 -1
- package/dist/common-auth-embedded/quota/merge.js +21 -5
- package/dist/common-auth-embedded/quota/projection.d.ts +2 -1
- package/dist/common-auth-embedded/quota/projection.js +3 -1
- package/dist/common-auth-embedded/source-output.json +96 -80
- package/dist/common-auth-embedded/store/schema.d.ts +2 -0
- package/dist/common-auth-embedded/store/schema.js +3 -2
- package/dist/common-auth-runtime.d.ts +2 -1
- package/dist/common-auth-runtime.d.ts.map +1 -1
- package/dist/common-auth-runtime.js +2 -1
- package/dist/common-auth-runtime.js.map +1 -1
- package/dist/constants.d.ts +1 -26
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -37
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/model-registry.d.ts +0 -1
- package/dist/model-registry.d.ts.map +1 -1
- package/dist/model-registry.js +3 -60
- package/dist/model-registry.js.map +1 -1
- package/dist/pi-paths.d.ts +14 -0
- package/dist/pi-paths.d.ts.map +1 -0
- package/dist/pi-paths.js +27 -0
- package/dist/pi-paths.js.map +1 -0
- package/dist/quota-manager.d.ts +7 -32
- package/dist/quota-manager.d.ts.map +1 -1
- package/dist/quota-manager.js +27 -76
- package/dist/quota-manager.js.map +1 -1
- package/dist/quota-types.d.ts +2 -11
- package/dist/quota-types.d.ts.map +1 -1
- package/dist/transform/index.d.ts +1 -1
- package/dist/transform/index.d.ts.map +1 -1
- package/dist/transform/index.js +1 -1
- package/dist/transform/index.js.map +1 -1
- package/dist/transform/model-resolver.d.ts +4 -28
- package/dist/transform/model-resolver.d.ts.map +1 -1
- package/dist/transform/model-resolver.js +33 -130
- package/dist/transform/model-resolver.js.map +1 -1
- package/dist/transform/types.d.ts +0 -5
- package/dist/transform/types.d.ts.map +1 -1
- package/dist/vault-account-source.d.ts +3 -2
- package/dist/vault-account-source.d.ts.map +1 -1
- package/dist/vault-account-source.js +34 -12
- package/dist/vault-account-source.js.map +1 -1
- package/dist/vault-folder-refusal.d.ts +32 -0
- package/dist/vault-folder-refusal.d.ts.map +1 -0
- package/dist/vault-folder-refusal.js +68 -0
- package/dist/vault-folder-refusal.js.map +1 -0
- package/dist/vault-provider-state.d.ts +1 -0
- package/dist/vault-provider-state.d.ts.map +1 -1
- package/dist/vault-provider-state.js +6 -0
- package/dist/vault-provider-state.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { QuotaCodec } from './codec.js';
|
|
2
2
|
export { quotaCodec } from './codec.js';
|
|
3
|
-
export type { QuotaTextForm, QuotaTextOptions } from './format.js';
|
|
4
|
-
export { formatQuota, NO_LIMITS_REPORTED, NO_QUOTA_READING, QUOTA_STALE_AFTER_MS, quotaTextParts, quotaWindowName, } from './format.js';
|
|
5
|
-
export type { CreditBudgetCleared, CreditBudgetEntry, CreditBudgetReading, QuotaAbsentEntry, QuotaEntry, QuotaMap, QuotaReadingEntry, QuotaRetiredEntry, } from './map.js';
|
|
6
|
-
export { ALL_SCOPE, DEFAULT_REQUIRED_LABELS, emptyQuotaMap, isQuotaMap, } from './map.js';
|
|
3
|
+
export type { QuotaParts, QuotaTextForm, QuotaTextOptions, QuotaWindowPart, } from './format.js';
|
|
4
|
+
export { formatQuota, NO_LIMITS_REPORTED, NO_QUOTA_READING, QUOTA_STALE_AFTER_MS, quotaTextParts, quotaWindowName, quotaWindowParts, } from './format.js';
|
|
5
|
+
export type { CreditBudgetCleared, CreditBudgetEntry, CreditBudgetReading, QuotaAbsentEntry, QuotaCounter, QuotaEntry, QuotaMap, QuotaReadingEntry, QuotaRetiredEntry, } from './map.js';
|
|
6
|
+
export { ALL_SCOPE, DEFAULT_REQUIRED_LABELS, decodeQuotaMap, emptyQuotaMap, isQuotaMap, } from './map.js';
|
|
7
7
|
export type { ObservedBudget, ObservedPair, ObservedReading, QuotaObservation, } from './merge.js';
|
|
8
8
|
export { isQuotaObservation, mergeQuotaObservation, QuotaCodecError, } from './merge.js';
|
|
9
9
|
export type { ExhaustionReset, ProjectedBudget, ProjectedLimit, ProjectedQuota, } from './projection.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { quotaCodec } from './codec.js';
|
|
2
|
-
export { formatQuota, NO_LIMITS_REPORTED, NO_QUOTA_READING, QUOTA_STALE_AFTER_MS, quotaTextParts, quotaWindowName, } from './format.js';
|
|
3
|
-
export { ALL_SCOPE, DEFAULT_REQUIRED_LABELS, emptyQuotaMap, isQuotaMap, } from './map.js';
|
|
2
|
+
export { formatQuota, NO_LIMITS_REPORTED, NO_QUOTA_READING, QUOTA_STALE_AFTER_MS, quotaTextParts, quotaWindowName, quotaWindowParts, } from './format.js';
|
|
3
|
+
export { ALL_SCOPE, DEFAULT_REQUIRED_LABELS, decodeQuotaMap, emptyQuotaMap, isQuotaMap, } from './map.js';
|
|
4
4
|
export { isQuotaObservation, mergeQuotaObservation, QuotaCodecError, } from './merge.js';
|
|
5
5
|
export { budgetExhaustedResetAt, futureResetAt, projectQuota, readsExhausted, } from './projection.js';
|
|
@@ -44,16 +44,27 @@ export interface CreditBudgetCleared {
|
|
|
44
44
|
checkedAt: number;
|
|
45
45
|
}
|
|
46
46
|
export type CreditBudgetEntry = CreditBudgetReading | CreditBudgetCleared;
|
|
47
|
+
export interface QuotaCounter {
|
|
48
|
+
value: number;
|
|
49
|
+
checkedAt: number;
|
|
50
|
+
}
|
|
47
51
|
export interface QuotaMap {
|
|
48
52
|
limits: QuotaEntry[];
|
|
49
53
|
/** Absent means no observation has reported on the budget yet. */
|
|
50
54
|
budget?: CreditBudgetEntry;
|
|
55
|
+
/** Provider-named counts, each with its own observation time. */
|
|
56
|
+
counters?: Record<string, QuotaCounter>;
|
|
51
57
|
}
|
|
52
58
|
export declare function emptyQuotaMap(): QuotaMap;
|
|
53
59
|
/** The time an entry speaks for: its reading, retirement or absence time. */
|
|
54
60
|
export declare function entryTime(entry: QuotaEntry): number;
|
|
55
61
|
export declare function limitKey(scope: string, label: string): string;
|
|
56
62
|
export declare function isCreditBudgetEntry(value: unknown): value is CreditBudgetEntry;
|
|
63
|
+
export declare function isQuotaCounters(value: unknown): value is Record<string, QuotaCounter>;
|
|
64
|
+
/** Keep usable counters without letting one malformed count hide a quota map. */
|
|
65
|
+
export declare function readQuotaCounters(value: unknown): Record<string, QuotaCounter> | undefined;
|
|
66
|
+
/** Decode persisted quota, dropping malformed counters but not limit evidence. */
|
|
67
|
+
export declare function decodeQuotaMap(value: unknown): QuotaMap | undefined;
|
|
57
68
|
/**
|
|
58
69
|
* True when `value` is a well-formed quota map. Unrecognised top-level keys
|
|
59
70
|
* are tolerated (and preserved by merge) so a newer writer's additions
|
|
@@ -83,6 +83,40 @@ export function isCreditBudgetEntry(value) {
|
|
|
83
83
|
optional(value, 'remaining', isFiniteNumber) &&
|
|
84
84
|
optional(value, 'unit', isString));
|
|
85
85
|
}
|
|
86
|
+
function isQuotaCounter(value) {
|
|
87
|
+
return (isRecord(value) &&
|
|
88
|
+
isFiniteNumber(value.value) &&
|
|
89
|
+
Number.isInteger(value.value) &&
|
|
90
|
+
value.value >= 0 &&
|
|
91
|
+
isFiniteNumber(value.checkedAt));
|
|
92
|
+
}
|
|
93
|
+
export function isQuotaCounters(value) {
|
|
94
|
+
return isRecord(value) && Object.values(value).every(isQuotaCounter);
|
|
95
|
+
}
|
|
96
|
+
/** Keep usable counters without letting one malformed count hide a quota map. */
|
|
97
|
+
export function readQuotaCounters(value) {
|
|
98
|
+
if (!isRecord(value))
|
|
99
|
+
return undefined;
|
|
100
|
+
const entries = Object.entries(value).filter(([, entry]) => isQuotaCounter(entry));
|
|
101
|
+
return entries.length === 0
|
|
102
|
+
? undefined
|
|
103
|
+
: Object.fromEntries(entries);
|
|
104
|
+
}
|
|
105
|
+
/** Decode persisted quota, dropping malformed counters but not limit evidence. */
|
|
106
|
+
export function decodeQuotaMap(value) {
|
|
107
|
+
// A valid map is returned as the same object, so stored quota keeps the
|
|
108
|
+
// identity it had before counters existed; only a map with a malformed
|
|
109
|
+
// counter is copied without it.
|
|
110
|
+
if (isQuotaMap(value))
|
|
111
|
+
return value;
|
|
112
|
+
if (!isRecord(value))
|
|
113
|
+
return undefined;
|
|
114
|
+
const { counters: rawCounters, ...rest } = value;
|
|
115
|
+
if (!isQuotaMap(rest))
|
|
116
|
+
return undefined;
|
|
117
|
+
const counters = readQuotaCounters(rawCounters);
|
|
118
|
+
return { ...rest, ...(counters === undefined ? {} : { counters }) };
|
|
119
|
+
}
|
|
86
120
|
/**
|
|
87
121
|
* True when `value` is a well-formed quota map. Unrecognised top-level keys
|
|
88
122
|
* are tolerated (and preserved by merge) so a newer writer's additions
|
|
@@ -101,5 +135,6 @@ export function isQuotaMap(value) {
|
|
|
101
135
|
return false;
|
|
102
136
|
seen.add(key);
|
|
103
137
|
}
|
|
104
|
-
return optional(value, 'budget', isCreditBudgetEntry)
|
|
138
|
+
return (optional(value, 'budget', isCreditBudgetEntry) &&
|
|
139
|
+
optional(value, 'counters', isQuotaCounters));
|
|
105
140
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type QuotaMap } from './map.js';
|
|
1
|
+
import { type QuotaCounter, type QuotaMap } from './map.js';
|
|
2
2
|
export interface ObservedReading {
|
|
3
3
|
/** Defaults to `all`. */
|
|
4
4
|
scope?: string;
|
|
@@ -32,6 +32,8 @@ export interface QuotaObservation {
|
|
|
32
32
|
coverage?: ObservedPair[];
|
|
33
33
|
/** Absent means the observation says nothing about the budget. */
|
|
34
34
|
budget?: ObservedBudget;
|
|
35
|
+
/** Each named count uses its own time, independently of limits and budget. */
|
|
36
|
+
counters?: Record<string, QuotaCounter>;
|
|
35
37
|
}
|
|
36
38
|
/** Thrown by `mergeQuotaObservation` when either argument is malformed. */
|
|
37
39
|
export declare class QuotaCodecError extends TypeError {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// no entry gets an absence record. A pair outside the coverage is never
|
|
12
12
|
// touched, so a header-shaped partial observation (which covers only what it
|
|
13
13
|
// carries) cannot erase a family limit or the budget.
|
|
14
|
-
import { ALL_SCOPE, entryTime,
|
|
14
|
+
import { ALL_SCOPE, decodeQuotaMap, entryTime, isQuotaCounters, limitKey, } from './map.js';
|
|
15
15
|
/** Thrown by `mergeQuotaObservation` when either argument is malformed. */
|
|
16
16
|
export class QuotaCodecError extends TypeError {
|
|
17
17
|
constructor(message) {
|
|
@@ -83,7 +83,8 @@ export function isQuotaObservation(value) {
|
|
|
83
83
|
}
|
|
84
84
|
if (!coverage.every(isObservedPair))
|
|
85
85
|
return false;
|
|
86
|
-
return value.budget === undefined || isObservedBudget(value.budget)
|
|
86
|
+
return ((value.budget === undefined || isObservedBudget(value.budget)) &&
|
|
87
|
+
(value.counters === undefined || isQuotaCounters(value.counters)));
|
|
87
88
|
}
|
|
88
89
|
function compareEntries(left, right) {
|
|
89
90
|
if (left.scope !== right.scope)
|
|
@@ -99,6 +100,16 @@ function mergeBudget(stored, observed, checkedAt) {
|
|
|
99
100
|
return stored;
|
|
100
101
|
return { ...observed, checkedAt };
|
|
101
102
|
}
|
|
103
|
+
function mergeCounters(stored, observed) {
|
|
104
|
+
const counters = new Map(Object.entries(stored ?? {}));
|
|
105
|
+
for (const [name, counter] of Object.entries(observed ?? {})) {
|
|
106
|
+
const existing = counters.get(name);
|
|
107
|
+
if (existing === undefined || counter.checkedAt >= existing.checkedAt) {
|
|
108
|
+
counters.set(name, counter);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return counters.size === 0 ? undefined : Object.fromEntries(counters);
|
|
112
|
+
}
|
|
102
113
|
/**
|
|
103
114
|
* Applies `observation` to `stored` (undefined for a row with no map yet) and
|
|
104
115
|
* returns the new map. Pure: neither argument is modified. Throws
|
|
@@ -106,13 +117,16 @@ function mergeBudget(stored, observed, checkedAt) {
|
|
|
106
117
|
* write rather than persisting a map it could not read back.
|
|
107
118
|
*/
|
|
108
119
|
export function mergeQuotaObservation(stored, observation) {
|
|
109
|
-
|
|
120
|
+
// Decode the stored map the way reads do, so a malformed counter that reads
|
|
121
|
+
// already hide is dropped here too instead of refusing every later write.
|
|
122
|
+
const decoded = stored === undefined ? undefined : decodeQuotaMap(stored);
|
|
123
|
+
if (stored !== undefined && decoded === undefined) {
|
|
110
124
|
throw new QuotaCodecError('stored quota map is malformed');
|
|
111
125
|
}
|
|
112
126
|
if (!isQuotaObservation(observation)) {
|
|
113
127
|
throw new QuotaCodecError('quota observation is malformed');
|
|
114
128
|
}
|
|
115
|
-
const base =
|
|
129
|
+
const base = decoded ?? { limits: [] };
|
|
116
130
|
const at = observation.checkedAt;
|
|
117
131
|
const entries = new Map();
|
|
118
132
|
for (const entry of base.limits) {
|
|
@@ -152,11 +166,13 @@ export function mergeQuotaObservation(stored, observation) {
|
|
|
152
166
|
: { scope, label: pair.label, kind: 'retired', retiredAt: at });
|
|
153
167
|
}
|
|
154
168
|
// Keys this module does not recognise are carried over untouched.
|
|
155
|
-
const { limits: _limits, budget: _budget, ...unknownKeys } = base;
|
|
169
|
+
const { limits: _limits, budget: _budget, counters: _counters, ...unknownKeys } = base;
|
|
156
170
|
const budget = mergeBudget(base.budget, observation.budget, at);
|
|
171
|
+
const counters = mergeCounters(base.counters, observation.counters);
|
|
157
172
|
return {
|
|
158
173
|
...unknownKeys,
|
|
159
174
|
limits: [...entries.values()].sort(compareEntries),
|
|
160
175
|
...(budget === undefined ? {} : { budget }),
|
|
176
|
+
...(counters === undefined ? {} : { counters }),
|
|
161
177
|
};
|
|
162
178
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type QuotaMap } from './map.js';
|
|
1
|
+
import { type QuotaCounter, type QuotaMap } from './map.js';
|
|
2
2
|
export interface ProjectedLimit {
|
|
3
3
|
scope: string;
|
|
4
4
|
label: string;
|
|
@@ -30,6 +30,7 @@ export interface ProjectedQuota {
|
|
|
30
30
|
checkedAt?: number;
|
|
31
31
|
/** Present only when the stored budget is a reading, not cleared. */
|
|
32
32
|
budget?: ProjectedBudget;
|
|
33
|
+
counters?: Record<string, QuotaCounter>;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* Resolves `map` for a request in `scope` (`all` or a model family). A family
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// scope, orders the result the way the primitives expect, and carries each
|
|
7
7
|
// entry's (scope, label) so a decision names the limit it judged rather than
|
|
8
8
|
// the position it occupied.
|
|
9
|
-
import { ALL_SCOPE, } from './map.js';
|
|
9
|
+
import { ALL_SCOPE, readQuotaCounters, } from './map.js';
|
|
10
10
|
function project(entry) {
|
|
11
11
|
if (entry.kind === 'retired') {
|
|
12
12
|
return {
|
|
@@ -94,11 +94,13 @@ export function projectQuota(map, scope = ALL_SCOPE) {
|
|
|
94
94
|
? Math.min(...stamped.map((limit) => limit.checkedAt))
|
|
95
95
|
: undefined;
|
|
96
96
|
const budget = map?.budget?.kind === 'reading' ? projectBudget(map.budget) : undefined;
|
|
97
|
+
const counters = readQuotaCounters(map?.counters);
|
|
97
98
|
return {
|
|
98
99
|
scope,
|
|
99
100
|
limits,
|
|
100
101
|
...(checkedAt === undefined ? {} : { checkedAt }),
|
|
101
102
|
...(budget === undefined ? {} : { budget }),
|
|
103
|
+
...(counters === undefined ? {} : { counters }),
|
|
102
104
|
};
|
|
103
105
|
}
|
|
104
106
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"package": "@cortexkit/common-auth",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"artifactStatus": "
|
|
4
|
+
"version": "0.17.2",
|
|
5
|
+
"artifactStatus": "published",
|
|
6
6
|
"publicRoots": {
|
|
7
7
|
"./store": {
|
|
8
8
|
"types": "./dist/store/index.d.ts",
|
|
@@ -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.17.2.tgz",
|
|
41
|
+
"tarballSha256": "c135db860069ed22694e98e54883992efd2bc3f7fe5cb489e6b22985dd631cca",
|
|
42
|
+
"sri": "sha512-hPt8Zoxw5Sc+rE3Iq57QNAlXkTswviwtjOBsc5TrAZHyOBZ3SGixkvFN2oZH59MxB8b6X+eAfcvvQDDpV+JOHA==",
|
|
43
|
+
"canonicalFiles": 133,
|
|
44
|
+
"canonicalBytes": 754948,
|
|
45
45
|
"generator": {
|
|
46
46
|
"path": "packages/opencode/scripts/embed-common-auth.ts",
|
|
47
47
|
"version": 3,
|
|
48
|
-
"sha256": "
|
|
48
|
+
"sha256": "9a280484c51050f8f2c8a0d1c6687c9e28a8147c2575fa5f57024d9975802676"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
{
|
|
@@ -211,25 +211,25 @@
|
|
|
211
211
|
{
|
|
212
212
|
"source": "package/dist/claustrum/consumer.d.ts",
|
|
213
213
|
"output": "claustrum/consumer.d.ts",
|
|
214
|
-
"bytes":
|
|
215
|
-
"sourceSha256": "
|
|
216
|
-
"outputSha256": "
|
|
214
|
+
"bytes": 6872,
|
|
215
|
+
"sourceSha256": "489bd5ab71fc4fdb614c000ff5fcdd1005e09a76454f8cf846db4433d0b6465e",
|
|
216
|
+
"outputSha256": "489bd5ab71fc4fdb614c000ff5fcdd1005e09a76454f8cf846db4433d0b6465e",
|
|
217
217
|
"transform": "verbatim"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
"source": "package/dist/claustrum/consumer.js",
|
|
221
221
|
"output": "claustrum/consumer.js",
|
|
222
|
-
"bytes":
|
|
223
|
-
"sourceSha256": "
|
|
224
|
-
"outputSha256": "
|
|
222
|
+
"bytes": 16397,
|
|
223
|
+
"sourceSha256": "919f56b722f8b26ad691c3ca2b3d381b3e3d06cfbe6059e09db3311edb9c3f3d",
|
|
224
|
+
"outputSha256": "919f56b722f8b26ad691c3ca2b3d381b3e3d06cfbe6059e09db3311edb9c3f3d",
|
|
225
225
|
"transform": "verbatim"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"source": "package/dist/claustrum/custody.d.ts",
|
|
229
229
|
"output": "claustrum/custody.d.ts",
|
|
230
|
-
"bytes":
|
|
231
|
-
"sourceSha256": "
|
|
232
|
-
"outputSha256": "
|
|
230
|
+
"bytes": 8811,
|
|
231
|
+
"sourceSha256": "be2dab97c1ff8deb23972498e8ea23ffeaef15b92bdd156e2e1dd4d099376be3",
|
|
232
|
+
"outputSha256": "be2dab97c1ff8deb23972498e8ea23ffeaef15b92bdd156e2e1dd4d099376be3",
|
|
233
233
|
"transform": "verbatim"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
@@ -243,17 +243,17 @@
|
|
|
243
243
|
{
|
|
244
244
|
"source": "package/dist/claustrum/enrollment.d.ts",
|
|
245
245
|
"output": "claustrum/enrollment.d.ts",
|
|
246
|
-
"bytes":
|
|
247
|
-
"sourceSha256": "
|
|
248
|
-
"outputSha256": "
|
|
246
|
+
"bytes": 7743,
|
|
247
|
+
"sourceSha256": "7503e56a09f94e77a94a7ae15fd616f149ec9f675ec7c79bdea4a014ca014143",
|
|
248
|
+
"outputSha256": "7503e56a09f94e77a94a7ae15fd616f149ec9f675ec7c79bdea4a014ca014143",
|
|
249
249
|
"transform": "verbatim"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"source": "package/dist/claustrum/enrollment.js",
|
|
253
253
|
"output": "claustrum/enrollment.js",
|
|
254
|
-
"bytes":
|
|
255
|
-
"sourceSha256": "
|
|
256
|
-
"outputSha256": "
|
|
254
|
+
"bytes": 33520,
|
|
255
|
+
"sourceSha256": "eeac604495c093503007478ab803c05b6e0bce8bf281f8bf9bbfee44c8ff85f1",
|
|
256
|
+
"outputSha256": "eeac604495c093503007478ab803c05b6e0bce8bf281f8bf9bbfee44c8ff85f1",
|
|
257
257
|
"transform": "verbatim"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
@@ -291,17 +291,33 @@
|
|
|
291
291
|
{
|
|
292
292
|
"source": "package/dist/claustrum/index.d.ts",
|
|
293
293
|
"output": "claustrum/index.d.ts",
|
|
294
|
-
"bytes":
|
|
295
|
-
"sourceSha256": "
|
|
296
|
-
"outputSha256": "
|
|
294
|
+
"bytes": 2895,
|
|
295
|
+
"sourceSha256": "9cd0b310598af4b35b9b0753d6498154ad4c1f73d3f776543634f0885bc7d0f6",
|
|
296
|
+
"outputSha256": "9cd0b310598af4b35b9b0753d6498154ad4c1f73d3f776543634f0885bc7d0f6",
|
|
297
297
|
"transform": "verbatim"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"source": "package/dist/claustrum/index.js",
|
|
301
301
|
"output": "claustrum/index.js",
|
|
302
|
-
"bytes":
|
|
303
|
-
"sourceSha256": "
|
|
304
|
-
"outputSha256": "
|
|
302
|
+
"bytes": 2141,
|
|
303
|
+
"sourceSha256": "33dc58809d432ea7bbe3f3d4425fe575589a018854444b63e0874f917981ab19",
|
|
304
|
+
"outputSha256": "33dc58809d432ea7bbe3f3d4425fe575589a018854444b63e0874f917981ab19",
|
|
305
|
+
"transform": "verbatim"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"source": "package/dist/claustrum/insula.d.ts",
|
|
309
|
+
"output": "claustrum/insula.d.ts",
|
|
310
|
+
"bytes": 2489,
|
|
311
|
+
"sourceSha256": "21a92525f04810a15a877e1c1ff9d7cf2fc2eb4ffe8a6aa408db22da6337d30f",
|
|
312
|
+
"outputSha256": "21a92525f04810a15a877e1c1ff9d7cf2fc2eb4ffe8a6aa408db22da6337d30f",
|
|
313
|
+
"transform": "verbatim"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"source": "package/dist/claustrum/insula.js",
|
|
317
|
+
"output": "claustrum/insula.js",
|
|
318
|
+
"bytes": 6097,
|
|
319
|
+
"sourceSha256": "1db6a99b9db96635bbf846e58ab54eaaa1892bf8939801a181741022d47ce428",
|
|
320
|
+
"outputSha256": "1db6a99b9db96635bbf846e58ab54eaaa1892bf8939801a181741022d47ce428",
|
|
305
321
|
"transform": "verbatim"
|
|
306
322
|
},
|
|
307
323
|
{
|
|
@@ -323,17 +339,17 @@
|
|
|
323
339
|
{
|
|
324
340
|
"source": "package/dist/claustrum/roster.d.ts",
|
|
325
341
|
"output": "claustrum/roster.d.ts",
|
|
326
|
-
"bytes":
|
|
327
|
-
"sourceSha256": "
|
|
328
|
-
"outputSha256": "
|
|
342
|
+
"bytes": 9932,
|
|
343
|
+
"sourceSha256": "7c5684ff5c3f66d418f3624d07565a08556662f445cb96a7575a270851fab9c3",
|
|
344
|
+
"outputSha256": "7c5684ff5c3f66d418f3624d07565a08556662f445cb96a7575a270851fab9c3",
|
|
329
345
|
"transform": "verbatim"
|
|
330
346
|
},
|
|
331
347
|
{
|
|
332
348
|
"source": "package/dist/claustrum/roster.js",
|
|
333
349
|
"output": "claustrum/roster.js",
|
|
334
|
-
"bytes":
|
|
335
|
-
"sourceSha256": "
|
|
336
|
-
"outputSha256": "
|
|
350
|
+
"bytes": 25106,
|
|
351
|
+
"sourceSha256": "e6ac8f59dab51db4756ccbaa89fc73acd213a7a4795fdf5a7c7e4f653455fe94",
|
|
352
|
+
"outputSha256": "e6ac8f59dab51db4756ccbaa89fc73acd213a7a4795fdf5a7c7e4f653455fe94",
|
|
337
353
|
"transform": "verbatim"
|
|
338
354
|
},
|
|
339
355
|
{
|
|
@@ -507,9 +523,9 @@
|
|
|
507
523
|
{
|
|
508
524
|
"source": "package/dist/fs/refresh-file-lock.js",
|
|
509
525
|
"output": "fs/refresh-file-lock.js",
|
|
510
|
-
"bytes":
|
|
511
|
-
"sourceSha256": "
|
|
512
|
-
"outputSha256": "
|
|
526
|
+
"bytes": 29402,
|
|
527
|
+
"sourceSha256": "d162b8972a23ffec999a9c90ef6b63e28314c235a668bad378b7c8561efd3666",
|
|
528
|
+
"outputSha256": "d162b8972a23ffec999a9c90ef6b63e28314c235a668bad378b7c8561efd3666",
|
|
513
529
|
"transform": "verbatim"
|
|
514
530
|
},
|
|
515
531
|
{
|
|
@@ -635,97 +651,97 @@
|
|
|
635
651
|
{
|
|
636
652
|
"source": "package/dist/quota/codec.d.ts",
|
|
637
653
|
"output": "quota/codec.d.ts",
|
|
638
|
-
"bytes":
|
|
639
|
-
"sourceSha256": "
|
|
640
|
-
"outputSha256": "
|
|
654
|
+
"bytes": 585,
|
|
655
|
+
"sourceSha256": "8289f7c656a2eedd444cddb83c412dd24bf726421e7706bf19df93b55877db06",
|
|
656
|
+
"outputSha256": "8289f7c656a2eedd444cddb83c412dd24bf726421e7706bf19df93b55877db06",
|
|
641
657
|
"transform": "verbatim"
|
|
642
658
|
},
|
|
643
659
|
{
|
|
644
660
|
"source": "package/dist/quota/codec.js",
|
|
645
661
|
"output": "quota/codec.js",
|
|
646
|
-
"bytes":
|
|
647
|
-
"sourceSha256": "
|
|
648
|
-
"outputSha256": "
|
|
662
|
+
"bytes": 491,
|
|
663
|
+
"sourceSha256": "4e496ce03a8a23536b467168f1dc6a7ceffb06d00ae80cb8a8868f311b2f3a8a",
|
|
664
|
+
"outputSha256": "4e496ce03a8a23536b467168f1dc6a7ceffb06d00ae80cb8a8868f311b2f3a8a",
|
|
649
665
|
"transform": "verbatim"
|
|
650
666
|
},
|
|
651
667
|
{
|
|
652
668
|
"source": "package/dist/quota/format.d.ts",
|
|
653
669
|
"output": "quota/format.d.ts",
|
|
654
|
-
"bytes":
|
|
655
|
-
"sourceSha256": "
|
|
656
|
-
"outputSha256": "
|
|
670
|
+
"bytes": 3538,
|
|
671
|
+
"sourceSha256": "b690da79fd26e936bf7d2867f411cacd5f32a8daf254d15cfef3d95417428a4a",
|
|
672
|
+
"outputSha256": "b690da79fd26e936bf7d2867f411cacd5f32a8daf254d15cfef3d95417428a4a",
|
|
657
673
|
"transform": "verbatim"
|
|
658
674
|
},
|
|
659
675
|
{
|
|
660
676
|
"source": "package/dist/quota/format.js",
|
|
661
677
|
"output": "quota/format.js",
|
|
662
|
-
"bytes":
|
|
663
|
-
"sourceSha256": "
|
|
664
|
-
"outputSha256": "
|
|
678
|
+
"bytes": 7317,
|
|
679
|
+
"sourceSha256": "421d130c910eaaefa10dd190cc7c7b77df9c1291f6560f6e71f19c9b30ddd5ef",
|
|
680
|
+
"outputSha256": "421d130c910eaaefa10dd190cc7c7b77df9c1291f6560f6e71f19c9b30ddd5ef",
|
|
665
681
|
"transform": "verbatim"
|
|
666
682
|
},
|
|
667
683
|
{
|
|
668
684
|
"source": "package/dist/quota/index.d.ts",
|
|
669
685
|
"output": "quota/index.d.ts",
|
|
670
|
-
"bytes":
|
|
671
|
-
"sourceSha256": "
|
|
672
|
-
"outputSha256": "
|
|
686
|
+
"bytes": 1033,
|
|
687
|
+
"sourceSha256": "dc5906c78e391126596a6eea6c999f1cb861a6656386e2be53e1bf00b6b63451",
|
|
688
|
+
"outputSha256": "dc5906c78e391126596a6eea6c999f1cb861a6656386e2be53e1bf00b6b63451",
|
|
673
689
|
"transform": "verbatim"
|
|
674
690
|
},
|
|
675
691
|
{
|
|
676
692
|
"source": "package/dist/quota/index.js",
|
|
677
693
|
"output": "quota/index.js",
|
|
678
|
-
"bytes":
|
|
679
|
-
"sourceSha256": "
|
|
680
|
-
"outputSha256": "
|
|
694
|
+
"bytes": 497,
|
|
695
|
+
"sourceSha256": "50027508fb08fb11903fc2220b30b141f73118424e4ca0a0ecd231519b28985d",
|
|
696
|
+
"outputSha256": "50027508fb08fb11903fc2220b30b141f73118424e4ca0a0ecd231519b28985d",
|
|
681
697
|
"transform": "verbatim"
|
|
682
698
|
},
|
|
683
699
|
{
|
|
684
700
|
"source": "package/dist/quota/map.d.ts",
|
|
685
701
|
"output": "quota/map.d.ts",
|
|
686
|
-
"bytes":
|
|
687
|
-
"sourceSha256": "
|
|
688
|
-
"outputSha256": "
|
|
702
|
+
"bytes": 2901,
|
|
703
|
+
"sourceSha256": "28ba151926d76d45051065b243032ae4f698a3c4f94b44f32341c97467c7faf6",
|
|
704
|
+
"outputSha256": "28ba151926d76d45051065b243032ae4f698a3c4f94b44f32341c97467c7faf6",
|
|
689
705
|
"transform": "verbatim"
|
|
690
706
|
},
|
|
691
707
|
{
|
|
692
708
|
"source": "package/dist/quota/map.js",
|
|
693
709
|
"output": "quota/map.js",
|
|
694
|
-
"bytes":
|
|
695
|
-
"sourceSha256": "
|
|
696
|
-
"outputSha256": "
|
|
710
|
+
"bytes": 5669,
|
|
711
|
+
"sourceSha256": "95339af4c80684b4e462f5ba32affeaa5f8b5885db599dc5e8ac1ffd1890d729",
|
|
712
|
+
"outputSha256": "95339af4c80684b4e462f5ba32affeaa5f8b5885db599dc5e8ac1ffd1890d729",
|
|
697
713
|
"transform": "verbatim"
|
|
698
714
|
},
|
|
699
715
|
{
|
|
700
716
|
"source": "package/dist/quota/merge.d.ts",
|
|
701
717
|
"output": "quota/merge.d.ts",
|
|
702
|
-
"bytes":
|
|
703
|
-
"sourceSha256": "
|
|
704
|
-
"outputSha256": "
|
|
718
|
+
"bytes": 1775,
|
|
719
|
+
"sourceSha256": "3531d738712f40b79415cd58940c55bf4cce6827c500fc3912368ff012e31f25",
|
|
720
|
+
"outputSha256": "3531d738712f40b79415cd58940c55bf4cce6827c500fc3912368ff012e31f25",
|
|
705
721
|
"transform": "verbatim"
|
|
706
722
|
},
|
|
707
723
|
{
|
|
708
724
|
"source": "package/dist/quota/merge.js",
|
|
709
725
|
"output": "quota/merge.js",
|
|
710
|
-
"bytes":
|
|
711
|
-
"sourceSha256": "
|
|
712
|
-
"outputSha256": "
|
|
726
|
+
"bytes": 7439,
|
|
727
|
+
"sourceSha256": "64440806fd70d214eb6a6f4c98f3a6ba442ca48d39762395a202c25fbf08a23e",
|
|
728
|
+
"outputSha256": "64440806fd70d214eb6a6f4c98f3a6ba442ca48d39762395a202c25fbf08a23e",
|
|
713
729
|
"transform": "verbatim"
|
|
714
730
|
},
|
|
715
731
|
{
|
|
716
732
|
"source": "package/dist/quota/projection.d.ts",
|
|
717
733
|
"output": "quota/projection.d.ts",
|
|
718
|
-
"bytes":
|
|
719
|
-
"sourceSha256": "
|
|
720
|
-
"outputSha256": "
|
|
734
|
+
"bytes": 2975,
|
|
735
|
+
"sourceSha256": "65a1b13db0a4d21f8b4136af65888494c6d8a7e117e80879c96f75fc0b763ad9",
|
|
736
|
+
"outputSha256": "65a1b13db0a4d21f8b4136af65888494c6d8a7e117e80879c96f75fc0b763ad9",
|
|
721
737
|
"transform": "verbatim"
|
|
722
738
|
},
|
|
723
739
|
{
|
|
724
740
|
"source": "package/dist/quota/projection.js",
|
|
725
741
|
"output": "quota/projection.js",
|
|
726
|
-
"bytes":
|
|
727
|
-
"sourceSha256": "
|
|
728
|
-
"outputSha256": "
|
|
742
|
+
"bytes": 5640,
|
|
743
|
+
"sourceSha256": "be7012f1df5845a1f3377b148f35ffe029583c1b9b5426f70a7ba96f7b49a150",
|
|
744
|
+
"outputSha256": "be7012f1df5845a1f3377b148f35ffe029583c1b9b5426f70a7ba96f7b49a150",
|
|
729
745
|
"transform": "verbatim"
|
|
730
746
|
},
|
|
731
747
|
{
|
|
@@ -1043,17 +1059,17 @@
|
|
|
1043
1059
|
{
|
|
1044
1060
|
"source": "package/dist/store/schema.d.ts",
|
|
1045
1061
|
"output": "store/schema.d.ts",
|
|
1046
|
-
"bytes":
|
|
1047
|
-
"sourceSha256": "
|
|
1048
|
-
"outputSha256": "
|
|
1062
|
+
"bytes": 22290,
|
|
1063
|
+
"sourceSha256": "51a47144ee965680e517e8ec91210742908336f6b781f8be2026124d6d0a6bbf",
|
|
1064
|
+
"outputSha256": "51a47144ee965680e517e8ec91210742908336f6b781f8be2026124d6d0a6bbf",
|
|
1049
1065
|
"transform": "verbatim"
|
|
1050
1066
|
},
|
|
1051
1067
|
{
|
|
1052
1068
|
"source": "package/dist/store/schema.js",
|
|
1053
1069
|
"output": "store/schema.js",
|
|
1054
|
-
"bytes":
|
|
1055
|
-
"sourceSha256": "
|
|
1056
|
-
"outputSha256": "
|
|
1070
|
+
"bytes": 31533,
|
|
1071
|
+
"sourceSha256": "ae55f6f875ff8a9e9a09795eac1bedfd4bf795bd6802e8de37b52586b61208d0",
|
|
1072
|
+
"outputSha256": "ae55f6f875ff8a9e9a09795eac1bedfd4bf795bd6802e8de37b52586b61208d0",
|
|
1057
1073
|
"transform": "verbatim"
|
|
1058
1074
|
},
|
|
1059
1075
|
{
|
|
@@ -49,6 +49,8 @@ export type StoredCredential = (OAuthCredential & {
|
|
|
49
49
|
/** Quota codec supplied by `/quota`: the store never interprets the map itself. */
|
|
50
50
|
export interface QuotaCodec {
|
|
51
51
|
validate(value: unknown): boolean;
|
|
52
|
+
/** Normalize persisted quota before validation, when the codec supports it. */
|
|
53
|
+
decode?(value: unknown): unknown;
|
|
52
54
|
merge(stored: unknown | undefined, observation: unknown): unknown;
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
@@ -420,7 +420,8 @@ function parseEntry(raw, codec) {
|
|
|
420
420
|
return undefined;
|
|
421
421
|
if ('disabledReason' in raw && typeof raw.disabledReason !== 'string')
|
|
422
422
|
return undefined;
|
|
423
|
-
|
|
423
|
+
const quota = 'quota' in raw && codec.decode ? codec.decode(raw.quota) : raw.quota;
|
|
424
|
+
if ('quota' in raw && !codec.validate(quota))
|
|
424
425
|
return undefined;
|
|
425
426
|
if ('staged' in raw && !parseReservation(raw.staged))
|
|
426
427
|
return undefined;
|
|
@@ -430,7 +431,7 @@ function parseEntry(raw, codec) {
|
|
|
430
431
|
...(typeof raw.disabledReason === 'string'
|
|
431
432
|
? { disabledReason: raw.disabledReason }
|
|
432
433
|
: {}),
|
|
433
|
-
...('quota' in raw ? { quota
|
|
434
|
+
...('quota' in raw ? { quota } : {}),
|
|
434
435
|
};
|
|
435
436
|
}
|
|
436
437
|
function credentialFor(raw, stateEntry) {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* evaluate the store, the command menu or the vault client. A loaded module is
|
|
15
15
|
* cached for the life of the process; a failed load is not cached, so a later
|
|
16
16
|
* call can retry it. `./claustrum` additionally needs the
|
|
17
|
-
* `@cortexkit/claustrum-client`
|
|
17
|
+
* `@cortexkit/claustrum-client` and `@cortexkit/subc-client` dependencies,
|
|
18
|
+
* which are only resolved when
|
|
18
19
|
* `loadCommonAuthClaustrum` is called.
|
|
19
20
|
*
|
|
20
21
|
* Static consumers can import the same modules through this package's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-auth-runtime.d.ts","sourceRoot":"","sources":["../src/common-auth-runtime.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"common-auth-runtime.d.ts","sourceRoot":"","sources":["../src/common-auth-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,yEAAyE;AACzE,MAAM,MAAM,qBAAqB,GAC/B,cAAc,uCAAuC,CAAC,CAAA;AACxD,wEAAwE;AACxE,MAAM,MAAM,kBAAkB,GAC5B,cAAc,oCAAoC,CAAC,CAAA;AACrD,6EAA6E;AAC7E,MAAM,MAAM,uBAAuB,GACjC,cAAc,yCAAyC,CAAC,CAAA;AAC1D,8EAA8E;AAC9E,MAAM,MAAM,qBAAqB,GAC/B,cAAc,uCAAuC,CAAC,CAAA;AACxD,wEAAwE;AACxE,MAAM,MAAM,wBAAwB,GAClC,cAAc,0CAA0C,CAAC,CAAA;AAC3D,2EAA2E;AAC3E,MAAM,MAAM,wBAAwB,GAClC,cAAc,2CAA2C,CAAC,CAAA;AAC5D,0EAA0E;AAC1E,MAAM,MAAM,yBAAyB,GACnC,cAAc,2CAA2C,CAAC,CAAA;AAC5D,0EAA0E;AAC1E,MAAM,MAAM,sBAAsB,GAChC,cAAc,wCAAwC,CAAC,CAAA;AAEzD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAA;IACrC,QAAQ,CAAC,EAAE,EAAE,kBAAkB,CAAA;CAChC;AAeD,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CACL,CAAA;AAEhE,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAE9D,CAAA;AAED,oDAAoD;AACpD,eAAO,MAAM,qBAAqB,EAAE,MAAM,OAAO,CAAC,uBAAuB,CACP,CAAA;AAElE,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CACL,CAAA;AAEhE,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,EAAE,MAAM,OAAO,CAAC,wBAAwB,CACR,CAAA;AAEnE,sDAAsD;AACtD,eAAO,MAAM,sBAAsB,EAAE,MAAM,OAAO,CAAC,wBAAwB,CACP,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,OAAO,CAAC,yBAAyB,CACT,CAAA;AAEpE,mDAAmD;AACnD,eAAO,MAAM,oBAAoB,EAAE,MAAM,OAAO,CAAC,sBAAsB,CACN,CAAA;AAEjE,0EAA0E;AAC1E,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAMlF;AAED,MAAM,MAAM,sBAAsB,GAChC,cAAc,yCAAyC,CAAC,CAAA;AAE1D,mHAAmH;AACnH,eAAO,MAAM,oBAAoB,EAAE,MAAM,OAAO,CAAC,sBAAsB,CACL,CAAA"}
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* evaluate the store, the command menu or the vault client. A loaded module is
|
|
15
15
|
* cached for the life of the process; a failed load is not cached, so a later
|
|
16
16
|
* call can retry it. `./claustrum` additionally needs the
|
|
17
|
-
* `@cortexkit/claustrum-client`
|
|
17
|
+
* `@cortexkit/claustrum-client` and `@cortexkit/subc-client` dependencies,
|
|
18
|
+
* which are only resolved when
|
|
18
19
|
* `loadCommonAuthClaustrum` is called.
|
|
19
20
|
*
|
|
20
21
|
* Static consumers can import the same modules through this package's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-auth-runtime.js","sourceRoot":"","sources":["../src/common-auth-runtime.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"common-auth-runtime.js","sourceRoot":"","sources":["../src/common-auth-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAqCH,SAAS,OAAO,CAAI,IAAsB;IACxC,IAAI,OAA+B,CAAA;IACnC,OAAO,GAAG,EAAE;QACV,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;gBACxC,OAAO,GAAG,SAAS,CAAA;gBACnB,MAAM,KAAK,CAAA;YACb,CAAC,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC,CAAA;AACH,CAAC;AAED,kDAAkD;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAC9B,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAA;AAEhE,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAsC,OAAO,CACxE,GAAG,EAAE,CAAC,MAAM,CAAC,oCAAoC,CAAC,CACnD,CAAA;AAED,oDAAoD;AACpD,MAAM,CAAC,MAAM,qBAAqB,GAChC,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAA;AAElE,kDAAkD;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAC9B,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAA;AAEhE,qDAAqD;AACrD,MAAM,CAAC,MAAM,sBAAsB,GACjC,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,0CAA0C,CAAC,CAAC,CAAA;AAEnE,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GACjC,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,2CAA2C,CAAC,CAAC,CAAA;AAEpE;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAClC,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,2CAA2C,CAAC,CAAC,CAAA;AAEpE,mDAAmD;AACnD,MAAM,CAAC,MAAM,oBAAoB,GAC/B,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,wCAAwC,CAAC,CAAC,CAAA;AAEjE,0EAA0E;AAC1E,MAAM,CAAC,KAAK,UAAU,0BAA0B;IAC9C,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpC,mBAAmB,EAAE;QACrB,gBAAgB,EAAE;KACnB,CAAC,CAAA;IACF,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;AACtB,CAAC;AAKD,mHAAmH;AACnH,MAAM,CAAC,MAAM,oBAAoB,GAC/B,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAA"}
|