@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.
Files changed (33) hide show
  1. package/dist/cli.js +13 -6
  2. package/dist/cli.js.map +3 -3
  3. package/dist/cli.meta.json +14 -14
  4. package/dist/index.js +125 -80
  5. package/dist/index.js.map +3 -3
  6. package/dist/index.meta.json +19 -19
  7. package/dist/server.js +125 -80
  8. package/dist/server.js.map +3 -3
  9. package/dist/server.meta.json +1 -1
  10. package/dist/src/common-auth-embedded/fs/canonical-file-path.js +6 -2
  11. package/dist/src/common-auth-embedded/source-output.json +22 -22
  12. package/dist/src/common-auth-embedded/store/index.d.ts +1 -1
  13. package/dist/src/common-auth-embedded/store/index.js +1 -1
  14. package/dist/src/common-auth-embedded/store/settings.d.ts +8 -0
  15. package/dist/src/common-auth-embedded/store/settings.js +14 -4
  16. package/dist/src/plugin/__fixtures__/verified-store.js +2 -2
  17. package/dist/src/plugin/shared/request-services.d.ts +1 -0
  18. package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
  19. package/dist/src/plugin/shared/request-services.js +81 -24
  20. package/dist/src/plugin/shared/request-services.js.map +1 -1
  21. package/dist/tui-build-map.json +1 -1
  22. package/dist/tui-ga-build-map.json +1 -1
  23. package/dist/types/src/common-auth-embedded/store/index.d.ts +1 -1
  24. package/dist/types/src/common-auth-embedded/store/settings.d.ts +8 -0
  25. package/dist/types/src/plugin/shared/request-services.d.ts +1 -0
  26. package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
  27. package/package.json +2 -2
  28. package/src/common-auth-embedded/fs/canonical-file-path.js +6 -2
  29. package/src/common-auth-embedded/source-output.json +22 -22
  30. package/src/common-auth-embedded/store/index.d.ts +1 -1
  31. package/src/common-auth-embedded/store/index.js +1 -1
  32. package/src/common-auth-embedded/store/settings.d.ts +8 -0
  33. 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
- async function readPoolSettings(rt) {
13848
- const read = async ([configPath = rt.ctx.configPath] = []) => {
13849
- const result2 = await readPoolConfig(configPath);
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([rt.ctx.configPath], 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 new Error("Too many file symlink hops");
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 new Error("Too many file symlink hops");
14125
+ throw symlinkLoop(file);
14119
14126
  target = resolve7(dirname9(target), fs3.readlinkSync(target));
14120
14127
  }
14121
14128
  }