@cortexkit/opencode-antigravity-auth 3.1.2 → 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 +13 -6
- package/dist/cli.js.map +3 -3
- package/dist/cli.meta.json +14 -14
- package/dist/index.js +125 -80
- package/dist/index.js.map +3 -3
- package/dist/index.meta.json +19 -19
- package/dist/server.js +125 -80
- package/dist/server.js.map +3 -3
- 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/shared/request-services.d.ts +1 -0
- package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/src/plugin/shared/request-services.js +81 -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/shared/request-services.d.ts +1 -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
package/dist/cli.js
CHANGED
|
@@ -13844,14 +13844,17 @@ function settingsRefusal(message) {
|
|
|
13844
13844
|
message
|
|
13845
13845
|
});
|
|
13846
13846
|
}
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13847
|
+
function readPoolSettings(rt) {
|
|
13848
|
+
return readPoolSettingsAt(rt.ctx.configPath);
|
|
13849
|
+
}
|
|
13850
|
+
async function readPoolSettingsAt(configPath) {
|
|
13851
|
+
const read = async ([path2 = configPath] = []) => {
|
|
13852
|
+
const result2 = await readPoolConfig(path2);
|
|
13850
13853
|
if (result2.status === "error")
|
|
13851
13854
|
return { status: "error", file: "config", reason: result2.reason };
|
|
13852
13855
|
return { status: result2.status, settings: settingsOf2(result2.config) };
|
|
13853
13856
|
};
|
|
13854
|
-
const result = windowsPrivateFiles ? await read() : await settingsCache.read([
|
|
13857
|
+
const result = windowsPrivateFiles ? await read() : await settingsCache.read([configPath], read);
|
|
13855
13858
|
return structuredClone(result);
|
|
13856
13859
|
}
|
|
13857
13860
|
async function updatePoolSettings(rt, mutator, options = {}) {
|
|
@@ -14064,6 +14067,7 @@ __export(store_exports, {
|
|
|
14064
14067
|
countUnknownIdentityRows: () => countUnknownIdentityRows,
|
|
14065
14068
|
fingerprintOf: () => fingerprintOf,
|
|
14066
14069
|
openPoolStore: () => openPoolStore,
|
|
14070
|
+
readPoolSettingsAt: () => readPoolSettingsAt,
|
|
14067
14071
|
rowLockKey: () => rowLockKey
|
|
14068
14072
|
});
|
|
14069
14073
|
var init_store = __esm({
|
|
@@ -14081,6 +14085,9 @@ var init_store = __esm({
|
|
|
14081
14085
|
|
|
14082
14086
|
// ../core/dist/common-auth-embedded/fs/canonical-file-path.js
|
|
14083
14087
|
import { basename as basename4, dirname as dirname9, join as join7, resolve as resolve7 } from "node:path";
|
|
14088
|
+
function symlinkLoop(file) {
|
|
14089
|
+
return Object.assign(new Error(`ELOOP: too many symbolic links encountered, realpath '${file}'`), { code: "ELOOP", syscall: "realpath", path: file });
|
|
14090
|
+
}
|
|
14084
14091
|
async function canonicalFilePath(file, fs3) {
|
|
14085
14092
|
let target = file;
|
|
14086
14093
|
for (let hops = 0; ; hops++) {
|
|
@@ -14096,7 +14103,7 @@ async function canonicalFilePath(file, fs3) {
|
|
|
14096
14103
|
if (!isSymlink)
|
|
14097
14104
|
return target;
|
|
14098
14105
|
if (hops >= maxSymlinkHops)
|
|
14099
|
-
throw
|
|
14106
|
+
throw symlinkLoop(file);
|
|
14100
14107
|
target = resolve7(dirname9(target), await fs3.readlink(target));
|
|
14101
14108
|
}
|
|
14102
14109
|
}
|
|
@@ -14115,7 +14122,7 @@ function canonicalFilePathSync(file, fs3) {
|
|
|
14115
14122
|
if (!isSymlink)
|
|
14116
14123
|
return target;
|
|
14117
14124
|
if (hops >= maxSymlinkHops)
|
|
14118
|
-
throw
|
|
14125
|
+
throw symlinkLoop(file);
|
|
14119
14126
|
target = resolve7(dirname9(target), fs3.readlinkSync(target));
|
|
14120
14127
|
}
|
|
14121
14128
|
}
|