@cortexkit/anthropic-auth-core 2.0.1 → 2.0.3
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/accounts.d.ts +7 -1
- package/dist/cache1h.d.ts +2 -0
- package/dist/cachekeep-registry.d.ts +3 -0
- package/dist/dump.d.ts +2 -0
- package/dist/fast.d.ts +2 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +27470 -25081
- package/dist/internal-types/auth-menu/terminal.d.ts +43 -0
- package/dist/internal-types/claustrum/consumer.d.ts +132 -0
- package/dist/internal-types/claustrum/custody.d.ts +178 -0
- package/dist/internal-types/claustrum/enrollment.d.ts +164 -0
- package/dist/internal-types/claustrum/errors.d.ts +16 -0
- package/dist/internal-types/claustrum/host-slot.d.ts +39 -0
- package/dist/internal-types/claustrum/index.d.ts +19 -0
- package/dist/internal-types/claustrum/insula.d.ts +69 -0
- package/dist/internal-types/claustrum/interlock.d.ts +27 -0
- package/dist/internal-types/claustrum/roster.d.ts +221 -0
- package/dist/internal-types/fs/refresh-file-lock.d.ts +8 -2
- package/dist/internal-types/quota/codec.d.ts +2 -0
- package/dist/internal-types/quota/format.d.ts +26 -0
- package/dist/internal-types/quota/index.d.ts +4 -4
- package/dist/internal-types/quota/map.d.ts +11 -0
- package/dist/internal-types/quota/merge.d.ts +3 -1
- package/dist/internal-types/quota/projection.d.ts +2 -1
- package/dist/internal-types/routing/admission.d.ts +93 -0
- package/dist/internal-types/routing/index.d.ts +8 -0
- package/dist/internal-types/routing/ordered.d.ts +47 -0
- package/dist/internal-types/routing/pins.d.ts +22 -0
- package/dist/internal-types/routing/sticky.d.ts +158 -0
- package/dist/internal-types/setup/command-error.d.ts +17 -0
- package/dist/internal-types/setup/command.d.ts +3 -0
- package/dist/internal-types/setup/detect.d.ts +6 -0
- package/dist/internal-types/setup/index.d.ts +6 -0
- package/dist/internal-types/setup/process-fence.d.ts +43 -0
- package/dist/internal-types/setup/register.d.ts +11 -0
- package/dist/internal-types/setup/types.d.ts +138 -0
- package/dist/internal-types/store/pool.d.ts +1 -1
- package/dist/internal-types/store/refresh-lock.d.ts +0 -1
- package/dist/internal-types/store/schema.d.ts +2 -0
- package/dist/logging.d.ts +2 -0
- package/dist/mid-conversation-output-config.d.ts +35 -0
- package/dist/native-account-runtime.d.ts +6 -2
- package/dist/native-account-view.d.ts +22 -4
- package/dist/native-custody-activation.d.ts +1 -1
- package/dist/native-menu-executor.d.ts +1 -1
- package/dist/native-migration.d.ts +25 -4
- package/dist/native-quota-observations.d.ts +26 -0
- package/dist/native-transient-account.d.ts +3 -4
- package/dist/native-ui.d.ts +2 -0
- package/dist/native-usage-publication.d.ts +5 -0
- package/dist/native-vault-runtime.d.ts +4 -0
- package/dist/network-errors.d.ts +1 -0
- package/dist/pool-authority.d.ts +26 -8
- package/dist/pool-paths.d.ts +2 -0
- package/dist/quotas.d.ts +15 -2
- package/dist/relay.d.ts +20 -0
- package/dist/sticky-routing.d.ts +3 -0
- package/package.json +3 -2
package/dist/accounts.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export type ClaustrumConfig = {
|
|
|
61
61
|
credentialId: string;
|
|
62
62
|
accountId: ProviderAccountUuid;
|
|
63
63
|
state: string;
|
|
64
|
+
enabled?: boolean;
|
|
64
65
|
};
|
|
65
66
|
/** Preserve explicit exclusions when a vaulted account disappears and returns. */
|
|
66
67
|
disabledAccountIdentities?: string[];
|
|
@@ -251,7 +252,13 @@ export type AccountStorage = {
|
|
|
251
252
|
enabled?: boolean;
|
|
252
253
|
url?: string;
|
|
253
254
|
token?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Whether a private relay token is stored. Native account snapshots set
|
|
257
|
+
* this instead of `token`, which they never include.
|
|
258
|
+
*/
|
|
259
|
+
tokenConfigured?: boolean;
|
|
254
260
|
fallbackToDirect?: boolean;
|
|
261
|
+
/** When missing, inferred from `url`; see `effectiveRelayTransport`. */
|
|
255
262
|
transport?: 'http' | 'websocket';
|
|
256
263
|
};
|
|
257
264
|
claustrum?: ClaustrumConfig;
|
|
@@ -310,7 +317,6 @@ export declare function acquireRefreshFileLock(options: {
|
|
|
310
317
|
name: string;
|
|
311
318
|
ttlMs: number;
|
|
312
319
|
path?: string;
|
|
313
|
-
now?: () => number;
|
|
314
320
|
renew?: boolean;
|
|
315
321
|
renewIntervalMs?: number;
|
|
316
322
|
onStep?: (step: 'stale-marker-stat' | 'stale-marker-claimed' | 'stale-lock-confirmed' | 'eviction-marker-acquired') => void | Promise<void>;
|
package/dist/cache1h.d.ts
CHANGED
|
@@ -25,9 +25,11 @@ export declare function parseCache1hCommandAction(argumentsText: string): Cache1
|
|
|
25
25
|
export declare function buildCache1hStatusSummary(input?: {
|
|
26
26
|
enabled?: boolean;
|
|
27
27
|
mode?: Cache1hMode;
|
|
28
|
+
settingsPath?: string;
|
|
28
29
|
}): string;
|
|
29
30
|
export declare function executeCache1hCommand(input: {
|
|
30
31
|
argumentsText: string;
|
|
31
32
|
enabled?: boolean;
|
|
32
33
|
mode?: Cache1hMode;
|
|
34
|
+
settingsPath?: string;
|
|
33
35
|
}): string;
|
|
@@ -9,6 +9,7 @@ export declare class CacheKeepSessionRegistry {
|
|
|
9
9
|
private readonly options;
|
|
10
10
|
private readonly filePath;
|
|
11
11
|
private writeChain;
|
|
12
|
+
private lastSweepAt?;
|
|
12
13
|
constructor(options: {
|
|
13
14
|
directory: string;
|
|
14
15
|
now?: () => number;
|
|
@@ -18,4 +19,6 @@ export declare class CacheKeepSessionRegistry {
|
|
|
18
19
|
publish(sessions: readonly CacheKeepTrackedSession[]): Promise<void>;
|
|
19
20
|
list(localSessions?: readonly CacheKeepTrackedSession[]): Promise<CacheKeepTrackedSession[]>;
|
|
20
21
|
dispose(): Promise<void>;
|
|
22
|
+
private sweepExpiredRecords;
|
|
23
|
+
private restoreSweptRecord;
|
|
21
24
|
}
|
package/dist/dump.d.ts
CHANGED
|
@@ -40,10 +40,12 @@ export declare function sweepDumpDirectory(options: {
|
|
|
40
40
|
export declare function parseDumpCommandAction(argumentsText: string): DumpCommandAction;
|
|
41
41
|
export declare function buildDumpStatusSummary(input?: {
|
|
42
42
|
enabled?: boolean;
|
|
43
|
+
settingsPath?: string;
|
|
43
44
|
}): string;
|
|
44
45
|
export declare function executeDumpCommand(input: {
|
|
45
46
|
argumentsText: string;
|
|
46
47
|
enabled?: boolean;
|
|
48
|
+
settingsPath?: string;
|
|
47
49
|
}): string;
|
|
48
50
|
export declare function dumpDirectRequest(input: {
|
|
49
51
|
affinity?: string | null;
|
package/dist/fast.d.ts
CHANGED
|
@@ -14,8 +14,10 @@ export declare function resetFastModeState(): void;
|
|
|
14
14
|
export declare function parseFastModeCommandAction(argumentsText: string): FastModeCommandAction;
|
|
15
15
|
export declare function buildFastModeStatusSummary(input?: {
|
|
16
16
|
enabled?: boolean;
|
|
17
|
+
settingsPath?: string;
|
|
17
18
|
}): string;
|
|
18
19
|
export declare function executeFastModeCommand(input: {
|
|
19
20
|
argumentsText: string;
|
|
20
21
|
enabled?: boolean;
|
|
22
|
+
settingsPath?: string;
|
|
21
23
|
}): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type { CommandResult, CommandRunner, HostDetection, OpenCodeGeneration, ProcessFence, SetupCallbackContext, SetupDetection, SetupEnvironment, SetupFileSystem, SetupHost, SetupIO, SetupPlugin, SetupResult, } from "./internal-types/setup/index.js";
|
|
2
|
+
export { assertHostsStopped, createProcessFence, runSetup, } from "./internal-types/setup/index.js";
|
|
1
3
|
export * from './accounts.ts';
|
|
2
4
|
export * from './auth.ts';
|
|
3
5
|
export * from './cache1h.ts';
|
|
@@ -22,7 +24,7 @@ export * from './models.ts';
|
|
|
22
24
|
export type { NativeAccountRuntime, NativeAccountRuntimeOptions, NativeAccountWriteInput, NativeApiSubject, NativeLocalAuthorizeOptions, NativeRelayUpdate, } from './native-account-runtime.ts';
|
|
23
25
|
export { acquireNativeAccountRuntime, createNativeAccountRuntime, nativeAccountPolicy, } from './native-account-runtime.ts';
|
|
24
26
|
export type { NativeAccountMetadataPatch, NativeAccountSnapshot, NativeAccountView, } from './native-account-view.ts';
|
|
25
|
-
export { formatNativeAccountState } from './native-account-view.ts';
|
|
27
|
+
export { formatNativeAccountState, nativeAccountCanServe, } from './native-account-view.ts';
|
|
26
28
|
export * from './native-credential-validation.ts';
|
|
27
29
|
export type { NativeCustody, NativeCustodyClient, NativeCustodyErrorCode, NativeCustodyIdentity, NativeCustodyInventory, NativeCustodyLogger, NativeCustodyOptions, NativeCustodyReceipt, NativeCustodyReporterSource, NativeCustodyRetry, } from './native-custody.ts';
|
|
28
30
|
export { createNativeCustody, NativeCustodyError } from './native-custody.ts';
|
|
@@ -31,6 +33,8 @@ export { NativeCustodyActivationError, runNativeCustodyActivation, } from './nat
|
|
|
31
33
|
export { readNativeEnrollmentMode } from './native-enrollment-authority.ts';
|
|
32
34
|
export { inspectNativeHostAuthEntry, NativeHostAuthError, requireNoSupervisedAuthContentSnapshot, } from './native-host-auth.ts';
|
|
33
35
|
export { readNativeHostAuthKind } from './native-host-auth-read.ts';
|
|
36
|
+
export type { NativeHostAuthWriteHooks, NativeHostAuthWriteInput, NativeHostAuthWriteOutcome, } from './native-host-auth-write.ts';
|
|
37
|
+
export { writeNativeHostAuth } from './native-host-auth-write.ts';
|
|
34
38
|
export type { NativeLocalAttributedFailure, NativeLocalCredentialService, NativeLocalCredentialServiceOptions, NativeLocalFailurePolicyInput, } from './native-local-credential-service.ts';
|
|
35
39
|
export { createNativeLocalCredentialService } from './native-local-credential-service.ts';
|
|
36
40
|
export type { NativeLocalExternalPolicy } from './native-local-runtime-readers.ts';
|
|
@@ -38,8 +42,9 @@ export type { NativeMenuActionValues, NativeMenuCapabilityOutcome, NativeMenuDis
|
|
|
38
42
|
export { createNativeMenuExecutor } from './native-menu-executor.ts';
|
|
39
43
|
export type { NativeMenuAction, NativeMenuActionId, NativeMenuCacheMode, NativeMenuChoiceParameter, NativeMenuCommandId, NativeMenuCustodyMode, NativeMenuGroup, NativeMenuGroupId, NativeMenuHost, NativeMenuLogLevel, NativeMenuModel, NativeMenuParameter, NativeMenuParameterId, NativeMenuRefusalCode, NativeMenuRoutingMode, NativeMenuStatus, } from './native-menu-model.ts';
|
|
40
44
|
export { getNativeMenuModel } from './native-menu-model.ts';
|
|
41
|
-
export type { NativeMigrationCustody, NativeMigrationHooks, NativeMigrationOptions, NativeMigrationPreflight, } from './native-migration.ts';
|
|
42
|
-
export { NativeMigrationError, prepareNativeMigration, releaseNativeMigrationPreflight, runNativeMigration, } from './native-migration.ts';
|
|
45
|
+
export type { NativeEmptyInitHooks, NativeEmptyInitOptions, NativeMigrationCustody, NativeMigrationHooks, NativeMigrationOptions, NativeMigrationPreflight, } from './native-migration.ts';
|
|
46
|
+
export { NativeMigrationError, nativePoolHoldsAccountData, prepareNativeMigration, publishNativeEmptyInit, releaseNativeMigrationPreflight, runNativeMigration, snapshotHasServableLocalOAuth, } from './native-migration.ts';
|
|
47
|
+
export * from './native-quota-observations.ts';
|
|
43
48
|
export type { NativeCommittedMaterial, NativeIdentityBootstrap, NativeRefreshContext, NativeRefreshDispatchVersion, NativeRefreshFailure, NativeRefreshHandoff, NativeRefreshObservation, NativeRefreshRequest, NativeRefreshRestriction, NativeRefreshResult, NativeRefreshSubject, NativeServingAdmission, } from './native-refresh-coordinator.ts';
|
|
44
49
|
export type { NativeLocalFailureAttribution, NativeLocalFailurePolicy, NativeLocalFailureSkipReason, } from './native-runtime.ts';
|
|
45
50
|
export { nativeRuntimeOptionIdentity } from './native-runtime-registry.ts';
|
|
@@ -55,7 +60,7 @@ export type { NativeVaultRuntime, NativeVaultRuntimeOptions, NativeVaultWatch, N
|
|
|
55
60
|
export { acquireNativeVaultRuntime, createNativeVaultRuntime, discoverNativeVaultInventory, publishNativeVaultRosterSeed, publishNativeVaultRuntimeSeed, } from './native-vault-runtime.ts';
|
|
56
61
|
export * from './oauth-profile.ts';
|
|
57
62
|
export * from './pkce.ts';
|
|
58
|
-
export type { NativeMigrationJournal } from './pool-authority.ts';
|
|
63
|
+
export type { NativeEmptyInitJournal, NativeLegacyMigrationJournal, NativeMigrationJournal, } from './pool-authority.ts';
|
|
59
64
|
export { nativeMigrationAuthorityPhase, readNativeMigrationJournal, } from './pool-authority.ts';
|
|
60
65
|
export type { NativeLocalPoolBinding } from './pool-binding.ts';
|
|
61
66
|
export { captureNativeLocalPoolBinding } from './pool-binding.ts';
|