@cortexkit/opencode-antigravity-auth 3.1.1 → 3.1.4
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/cli.js +21 -6
- package/dist/cli.js.map +4 -4
- package/dist/cli.meta.json +27 -14
- package/dist/index.js +276 -76
- package/dist/index.js.map +4 -4
- package/dist/index.meta.json +33 -20
- package/dist/server.js +276 -76
- package/dist/server.js.map +4 -4
- package/dist/server.meta.json +1 -1
- package/dist/src/common-auth-embedded/fs/canonical-file-path.js +6 -2
- package/dist/src/common-auth-embedded/source-output.json +22 -22
- package/dist/src/common-auth-embedded/store/index.d.ts +1 -1
- package/dist/src/common-auth-embedded/store/index.js +1 -1
- package/dist/src/common-auth-embedded/store/settings.d.ts +8 -0
- package/dist/src/common-auth-embedded/store/settings.js +14 -4
- package/dist/src/plugin/__fixtures__/verified-store.js +2 -2
- package/dist/src/plugin/request.d.ts.map +1 -1
- package/dist/src/plugin/request.js +3 -1
- package/dist/src/plugin/request.js.map +1 -1
- package/dist/src/plugin/shared/request-services.d.ts +2 -0
- package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/src/plugin/shared/request-services.js +135 -24
- package/dist/src/plugin/shared/request-services.js.map +1 -1
- package/dist/tui-build-map.json +1 -1
- package/dist/tui-ga-build-map.json +1 -1
- package/dist/types/src/common-auth-embedded/store/index.d.ts +1 -1
- package/dist/types/src/common-auth-embedded/store/settings.d.ts +8 -0
- package/dist/types/src/plugin/request.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/request-services.d.ts +2 -0
- package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/common-auth-embedded/fs/canonical-file-path.js +6 -2
- package/src/common-auth-embedded/source-output.json +22 -22
- package/src/common-auth-embedded/store/index.d.ts +1 -1
- package/src/common-auth-embedded/store/index.js +1 -1
- package/src/common-auth-embedded/store/settings.d.ts +8 -0
- package/src/common-auth-embedded/store/settings.js +14 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"package": "@cortexkit/common-auth",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.50.0",
|
|
5
5
|
"artifactStatus": "published",
|
|
6
6
|
"publicRoots": {
|
|
7
7
|
"./rpc": {
|
|
@@ -73,16 +73,16 @@
|
|
|
73
73
|
"import": "./src/quota-sidebar/index.tsx"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
"input": "tools/common-auth-build/inputs/cortexkit-common-auth-0.
|
|
77
|
-
"tarballSha256": "
|
|
78
|
-
"sri": "sha512-
|
|
79
|
-
"shasum": "
|
|
76
|
+
"input": "tools/common-auth-build/inputs/cortexkit-common-auth-0.50.0.tgz",
|
|
77
|
+
"tarballSha256": "702354411ac071087977826325327d6473857eb5341099ae69aa557ea71980d6",
|
|
78
|
+
"sri": "sha512-F5u9B24VedALgT8BFmCIaCOvkBP/4iEUEHMcZ/NkiDv3poL8RN5qdX+W69pmUKtKLLvqf2NJMoyoL8e9sTnsSw==",
|
|
79
|
+
"shasum": "f83862cf8bff04848eb523cd00c56a95bd29a1c6",
|
|
80
80
|
"canonicalFiles": 254,
|
|
81
|
-
"canonicalBytes":
|
|
81
|
+
"canonicalBytes": 1508156,
|
|
82
82
|
"generator": {
|
|
83
83
|
"path": "packages/opencode/scripts/embed-common-auth.ts",
|
|
84
84
|
"version": 4,
|
|
85
|
-
"sha256": "
|
|
85
|
+
"sha256": "4d4b79708092e9fcb697c321b1785aa4d956a68eefc5fb4ff5d4a8b0cc7e9e75"
|
|
86
86
|
},
|
|
87
87
|
"files": [
|
|
88
88
|
{
|
|
@@ -616,9 +616,9 @@
|
|
|
616
616
|
{
|
|
617
617
|
"source": "package/dist/fs/canonical-file-path.js",
|
|
618
618
|
"output": "fs/canonical-file-path.js",
|
|
619
|
-
"bytes":
|
|
620
|
-
"sourceSha256": "
|
|
621
|
-
"outputSha256": "
|
|
619
|
+
"bytes": 2287,
|
|
620
|
+
"sourceSha256": "c5a4b4ebb3468681bb237d45bb12284a165dc5faf18cfbb9d19cc19531020f40",
|
|
621
|
+
"outputSha256": "c5a4b4ebb3468681bb237d45bb12284a165dc5faf18cfbb9d19cc19531020f40",
|
|
622
622
|
"transform": "verbatim"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
@@ -1792,17 +1792,17 @@
|
|
|
1792
1792
|
{
|
|
1793
1793
|
"source": "package/dist/store/index.d.ts",
|
|
1794
1794
|
"output": "store/index.d.ts",
|
|
1795
|
-
"bytes":
|
|
1796
|
-
"sourceSha256": "
|
|
1797
|
-
"outputSha256": "
|
|
1795
|
+
"bytes": 2185,
|
|
1796
|
+
"sourceSha256": "a5d088d5b80d7b06a6a32c59be3ca5586f28998319a7bb65e8e515f34097c462",
|
|
1797
|
+
"outputSha256": "a5d088d5b80d7b06a6a32c59be3ca5586f28998319a7bb65e8e515f34097c462",
|
|
1798
1798
|
"transform": "verbatim"
|
|
1799
1799
|
},
|
|
1800
1800
|
{
|
|
1801
1801
|
"source": "package/dist/store/index.js",
|
|
1802
1802
|
"output": "store/index.js",
|
|
1803
|
-
"bytes":
|
|
1804
|
-
"sourceSha256": "
|
|
1805
|
-
"outputSha256": "
|
|
1803
|
+
"bytes": 554,
|
|
1804
|
+
"sourceSha256": "26ed0d3c05e44cb0d98564f7759f46831c170f7ce7f331f3c8f83a13977d9d55",
|
|
1805
|
+
"outputSha256": "26ed0d3c05e44cb0d98564f7759f46831c170f7ce7f331f3c8f83a13977d9d55",
|
|
1806
1806
|
"transform": "verbatim"
|
|
1807
1807
|
},
|
|
1808
1808
|
{
|
|
@@ -2000,17 +2000,17 @@
|
|
|
2000
2000
|
{
|
|
2001
2001
|
"source": "package/dist/store/settings.d.ts",
|
|
2002
2002
|
"output": "store/settings.d.ts",
|
|
2003
|
-
"bytes":
|
|
2004
|
-
"sourceSha256": "
|
|
2005
|
-
"outputSha256": "
|
|
2003
|
+
"bytes": 3600,
|
|
2004
|
+
"sourceSha256": "ea25fc84311df778fb4ac1c6bc5379c13bd074eaf6653c45795999a14201b674",
|
|
2005
|
+
"outputSha256": "ea25fc84311df778fb4ac1c6bc5379c13bd074eaf6653c45795999a14201b674",
|
|
2006
2006
|
"transform": "verbatim"
|
|
2007
2007
|
},
|
|
2008
2008
|
{
|
|
2009
2009
|
"source": "package/dist/store/settings.js",
|
|
2010
2010
|
"output": "store/settings.js",
|
|
2011
|
-
"bytes":
|
|
2012
|
-
"sourceSha256": "
|
|
2013
|
-
"outputSha256": "
|
|
2011
|
+
"bytes": 6839,
|
|
2012
|
+
"sourceSha256": "693d023ecb7015bb065b349fd2ea83c358634ecf3968c5074fb97726a12bb7a6",
|
|
2013
|
+
"outputSha256": "693d023ecb7015bb065b349fd2ea83c358634ecf3968c5074fb97726a12bb7a6",
|
|
2014
2014
|
"transform": "verbatim"
|
|
2015
2015
|
},
|
|
2016
2016
|
{
|
|
@@ -19,4 +19,4 @@ export type { PullReason } from './runtime.js';
|
|
|
19
19
|
export type { ApiKeyCredential, CredentialStampStatus, OAuthCredential, PoolCredential, PoolRow, ProviderStateCodec, ProviderStateDrop, ProviderStateReplacement, QuotaCodec, RotateCredential, StoredCredential, } from './schema.js';
|
|
20
20
|
export { fingerprintOf, LEGACY_STORE_VERSION, POOL_KEY, POOL_ROWS_KEY, POOL_SCHEMA_VERSION, PROVIDER_STATE_KEY, REFRESH_STAMP_TOLERANCE_MS, rowLockKey, } from './schema.js';
|
|
21
21
|
export type { PoolSettings, SettingsMutator, SettingsRead, UpdateSettingsOptions, UpdateSettingsResult, } from './settings.js';
|
|
22
|
-
export { POOL_OWNED_KEYS } from './settings.js';
|
|
22
|
+
export { POOL_OWNED_KEYS, readPoolSettingsAt } from './settings.js';
|
|
@@ -4,4 +4,4 @@ export { openPoolStore } from './pool.js';
|
|
|
4
4
|
export { DECLINE_TRANSITION } from './provider-state.js';
|
|
5
5
|
export { POOL_LOCK_DEFAULTS } from './refresh-lock.js';
|
|
6
6
|
export { fingerprintOf, LEGACY_STORE_VERSION, POOL_KEY, POOL_ROWS_KEY, POOL_SCHEMA_VERSION, PROVIDER_STATE_KEY, REFRESH_STAMP_TOLERANCE_MS, rowLockKey, } from './schema.js';
|
|
7
|
-
export { POOL_OWNED_KEYS } from './settings.js';
|
|
7
|
+
export { POOL_OWNED_KEYS, readPoolSettingsAt } from './settings.js';
|
|
@@ -52,6 +52,14 @@ export type UpdateSettingsResult = {
|
|
|
52
52
|
};
|
|
53
53
|
/** Reads only the config's settings, without taking a lock or writing anything. */
|
|
54
54
|
export declare function readPoolSettings(rt: StoreRuntime): Promise<SettingsRead>;
|
|
55
|
+
/**
|
|
56
|
+
* Reads the settings of the pool config at `configPath`, exactly as a store's
|
|
57
|
+
* `readSettings()` does, without opening a store. It reads only that file: no
|
|
58
|
+
* state file, lock, write or migration. A plugin that has already resolved
|
|
59
|
+
* which config file to trust (for example, after a location check) reads it
|
|
60
|
+
* here rather than opening a second store on it.
|
|
61
|
+
*/
|
|
62
|
+
export declare function readPoolSettingsAt(configPath: string): Promise<SettingsRead>;
|
|
55
63
|
/**
|
|
56
64
|
* One locked read-modify-write of the plugin's settings in the config file
|
|
57
65
|
* the pool lives in. The pool must be ready (a pending migration or a load
|
|
@@ -63,9 +63,19 @@ function settingsRefusal(message) {
|
|
|
63
63
|
}
|
|
64
64
|
const settingsCache = new FileReadCache();
|
|
65
65
|
/** Reads only the config's settings, without taking a lock or writing anything. */
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
export function readPoolSettings(rt) {
|
|
67
|
+
return readPoolSettingsAt(rt.ctx.configPath);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Reads the settings of the pool config at `configPath`, exactly as a store's
|
|
71
|
+
* `readSettings()` does, without opening a store. It reads only that file: no
|
|
72
|
+
* state file, lock, write or migration. A plugin that has already resolved
|
|
73
|
+
* which config file to trust (for example, after a location check) reads it
|
|
74
|
+
* here rather than opening a second store on it.
|
|
75
|
+
*/
|
|
76
|
+
export async function readPoolSettingsAt(configPath) {
|
|
77
|
+
const read = async ([path = configPath,] = []) => {
|
|
78
|
+
const result = await readPoolConfig(path);
|
|
69
79
|
if (result.status === 'error')
|
|
70
80
|
return { status: 'error', file: 'config', reason: result.reason };
|
|
71
81
|
return { status: result.status, settings: settingsOf(result.config) };
|
|
@@ -73,7 +83,7 @@ export async function readPoolSettings(rt) {
|
|
|
73
83
|
// Native Windows security checks cannot be replaced by a stat fingerprint.
|
|
74
84
|
const result = windowsPrivateFiles
|
|
75
85
|
? await read()
|
|
76
|
-
: await settingsCache.read([
|
|
86
|
+
: await settingsCache.read([configPath], read);
|
|
77
87
|
return structuredClone(result);
|
|
78
88
|
}
|
|
79
89
|
/**
|