@cortexkit/opencode-antigravity-auth 3.0.35 → 3.0.37

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 (55) hide show
  1. package/dist/cli.js +6 -1
  2. package/dist/cli.js.map +2 -2
  3. package/dist/cli.meta.json +11 -11
  4. package/dist/index.js +12 -7
  5. package/dist/index.js.map +2 -2
  6. package/dist/index.meta.json +29 -13
  7. package/dist/server.js +624 -581
  8. package/dist/server.js.map +4 -4
  9. package/dist/server.meta.json +1 -1
  10. package/dist/src/common-auth-embedded/claustrum/availability.d.ts +1 -0
  11. package/dist/src/common-auth-embedded/claustrum/availability.js +2 -0
  12. package/dist/src/common-auth-embedded/claustrum/index.d.ts +1 -1
  13. package/dist/src/common-auth-embedded/claustrum/index.js +1 -1
  14. package/dist/src/common-auth-embedded/routing-accessor/cache-policy.d.ts +51 -0
  15. package/dist/src/common-auth-embedded/routing-accessor/cache-policy.js +186 -0
  16. package/dist/src/common-auth-embedded/routing-accessor/index.d.ts +2 -1
  17. package/dist/src/common-auth-embedded/routing-accessor/index.js +1 -0
  18. package/dist/src/common-auth-embedded/source-output.json +41 -25
  19. package/dist/src/ga/server/auth.js +1 -1
  20. package/dist/src/ga/server/auth.js.map +1 -1
  21. package/dist/src/ga/server/index.js +1 -1
  22. package/dist/src/ga/server/index.js.map +1 -1
  23. package/dist/src/ga/tui/host-ga.d.ts +21 -58
  24. package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
  25. package/dist/src/ga/tui/host-ga.js +122 -230
  26. package/dist/src/ga/tui/host-ga.js.map +1 -1
  27. package/dist/src/plugin/__fixtures__/verified-store.js +2 -2
  28. package/dist/src/plugin/ga-location-services.d.ts +1 -0
  29. package/dist/src/plugin/ga-location-services.d.ts.map +1 -1
  30. package/dist/src/plugin/ga-location-services.js +88 -52
  31. package/dist/src/plugin/ga-location-services.js.map +1 -1
  32. package/dist/src/plugin/vault-custody.js +6 -6
  33. package/dist/src/plugin/vault-custody.js.map +1 -1
  34. package/dist/src/setup.js +1 -1
  35. package/dist/src/setup.js.map +1 -1
  36. package/dist/tui-build-map.json +1 -1
  37. package/dist/tui-ga-build-map.json +5 -5
  38. package/dist/types/src/common-auth-embedded/claustrum/availability.d.ts +1 -0
  39. package/dist/types/src/common-auth-embedded/claustrum/index.d.ts +1 -1
  40. package/dist/types/src/common-auth-embedded/routing-accessor/cache-policy.d.ts +51 -0
  41. package/dist/types/src/common-auth-embedded/routing-accessor/index.d.ts +2 -1
  42. package/dist/types/src/plugin/ga-location-services.d.ts +1 -0
  43. package/dist/types/src/plugin/ga-location-services.d.ts.map +1 -1
  44. package/package.json +4 -4
  45. package/src/common-auth-embedded/claustrum/availability.d.ts +1 -0
  46. package/src/common-auth-embedded/claustrum/availability.js +2 -0
  47. package/src/common-auth-embedded/claustrum/index.d.ts +1 -1
  48. package/src/common-auth-embedded/claustrum/index.js +1 -1
  49. package/src/common-auth-embedded/routing-accessor/cache-policy.d.ts +51 -0
  50. package/src/common-auth-embedded/routing-accessor/cache-policy.js +186 -0
  51. package/src/common-auth-embedded/routing-accessor/index.d.ts +2 -1
  52. package/src/common-auth-embedded/routing-accessor/index.js +1 -0
  53. package/src/common-auth-embedded/source-output.json +41 -25
  54. package/src/tui-ga-compiled/host-ga.js +122 -238
  55. package/src/tui-ga-raw/host-ga.tsx +189 -306
@@ -1596,7 +1596,7 @@
1596
1596
  "format": "esm"
1597
1597
  },
1598
1598
  "../core/dist/common-auth-embedded/claustrum/availability.js": {
1599
- "bytes": 4107,
1599
+ "bytes": 4219,
1600
1600
  "imports": [
1601
1601
  {
1602
1602
  "path": "@cortexkit/claustrum-client",
@@ -2243,7 +2243,7 @@
2243
2243
  "format": "esm"
2244
2244
  },
2245
2245
  "../core/dist/common-auth-embedded/claustrum/index.js": {
2246
- "bytes": 4048,
2246
+ "bytes": 4062,
2247
2247
  "imports": [
2248
2248
  {
2249
2249
  "path": "@cortexkit/claustrum-client",
@@ -3061,7 +3061,7 @@
3061
3061
  "format": "esm"
3062
3062
  },
3063
3063
  "src/plugin/vault-custody.ts": {
3064
- "bytes": 44009,
3064
+ "bytes": 43899,
3065
3065
  "imports": [
3066
3066
  {
3067
3067
  "path": "node:fs/promises",
@@ -3893,7 +3893,7 @@
3893
3893
  "format": "esm"
3894
3894
  },
3895
3895
  "src/common-auth-embedded/claustrum/availability.js": {
3896
- "bytes": 4107,
3896
+ "bytes": 4219,
3897
3897
  "imports": [
3898
3898
  {
3899
3899
  "path": "@cortexkit/claustrum-client",
@@ -4348,7 +4348,7 @@
4348
4348
  "format": "esm"
4349
4349
  },
4350
4350
  "src/setup.ts": {
4351
- "bytes": 19893,
4351
+ "bytes": 19870,
4352
4352
  "imports": [
4353
4353
  {
4354
4354
  "path": "node:fs/promises",
@@ -4510,7 +4510,7 @@
4510
4510
  "imports": [],
4511
4511
  "exports": [],
4512
4512
  "inputs": {},
4513
- "bytes": 3256110
4513
+ "bytes": 3256257
4514
4514
  },
4515
4515
  "dist/cli.js": {
4516
4516
  "imports": [
@@ -5539,7 +5539,7 @@
5539
5539
  "bytesInOutput": 352
5540
5540
  },
5541
5541
  "../core/dist/common-auth-embedded/claustrum/availability.js": {
5542
- "bytesInOutput": 3685
5542
+ "bytesInOutput": 3801
5543
5543
  },
5544
5544
  "../core/dist/common-auth-embedded/claustrum/host.js": {
5545
5545
  "bytesInOutput": 3651
@@ -5617,7 +5617,7 @@
5617
5617
  "bytesInOutput": 39004
5618
5618
  },
5619
5619
  "../core/dist/common-auth-embedded/claustrum/index.js": {
5620
- "bytesInOutput": 4880
5620
+ "bytesInOutput": 4916
5621
5621
  },
5622
5622
  "../core/dist/common-auth-embedded/pi-slot/lock.js": {
5623
5623
  "bytesInOutput": 5133
@@ -5788,7 +5788,7 @@
5788
5788
  "bytesInOutput": 8446
5789
5789
  },
5790
5790
  "src/setup.ts": {
5791
- "bytesInOutput": 15276
5791
+ "bytesInOutput": 15253
5792
5792
  },
5793
5793
  "src/auth-method-labels.ts": {
5794
5794
  "bytesInOutput": 218
@@ -5830,7 +5830,7 @@
5830
5830
  "bytesInOutput": 315
5831
5831
  },
5832
5832
  "src/common-auth-embedded/claustrum/availability.js": {
5833
- "bytesInOutput": 2560
5833
+ "bytesInOutput": 2668
5834
5834
  },
5835
5835
  "src/common-auth-embedded/setup/command-error.js": {
5836
5836
  "bytesInOutput": 1744
@@ -5872,7 +5872,7 @@
5872
5872
  "bytesInOutput": 292
5873
5873
  }
5874
5874
  },
5875
- "bytes": 1224851
5875
+ "bytes": 1225088
5876
5876
  }
5877
5877
  }
5878
5878
  }
package/dist/index.js CHANGED
@@ -19494,6 +19494,8 @@ var init_availability = __esm({
19494
19494
  unavailable: "unreachable",
19495
19495
  timeout: "unreachable",
19496
19496
  route_closed: "unreachable",
19497
+ // The daemon refused before forwarding, so the vault never saw the request.
19498
+ route_busy: "unreachable",
19497
19499
  daemon_draining: "unreachable",
19498
19500
  connection_closed: "unreachable",
19499
19501
  connection_dropped: "unreachable",
@@ -25659,6 +25661,7 @@ __export(claustrum_exports, {
25659
25661
  enrollmentAuthority: () => enrollmentAuthority,
25660
25662
  enrollmentName: () => enrollmentName,
25661
25663
  getClaustrumEnrollmentPaths: () => getClaustrumEnrollmentPaths,
25664
+ hasVaultHost: () => hasVaultHost,
25662
25665
  hostEnrollmentPaths: () => hostEnrollmentPaths,
25663
25666
  isCustodyPlaceholder: () => isCustodyPlaceholder,
25664
25667
  isCustodyPlaceholderValue: () => isCustodyPlaceholderValue,
@@ -30873,7 +30876,7 @@ function createOpenCodeVaultCustody(options) {
30873
30876
  const readEnrollment = async () => {
30874
30877
  if (layoutRefusal !== void 0) return unsettled;
30875
30878
  const claustrum = await loadClaustrum();
30876
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus")
30879
+ if (claustrum.hasVaultHost())
30877
30880
  return {
30878
30881
  state: "unavailable",
30879
30882
  code: "host",
@@ -30901,7 +30904,7 @@ function createOpenCodeVaultCustody(options) {
30901
30904
  const readEnrollmentSnapshot = async () => {
30902
30905
  if (layoutRefusal !== void 0)
30903
30906
  return { authority: "unreadable", status: unsettled };
30904
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus")
30907
+ if ((await loadClaustrum()).hasVaultHost())
30905
30908
  return { authority: "host", status: await readEnrollment() };
30906
30909
  const enrollment = await enrollmentPaths();
30907
30910
  const identity3 = await enrollmentFilesIdentity(enrollment);
@@ -31148,7 +31151,7 @@ function createOpenCodeVaultCustody(options) {
31148
31151
  },
31149
31152
  async requestAccess() {
31150
31153
  const claustrum = await loadClaustrum();
31151
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus")
31154
+ if (claustrum.hasVaultHost())
31152
31155
  throw new OpenCodeVaultCustodyError(
31153
31156
  claustrum.VAULT_HOST_CONNECT_REFUSAL
31154
31157
  );
@@ -31156,7 +31159,7 @@ function createOpenCodeVaultCustody(options) {
31156
31159
  },
31157
31160
  async useVault() {
31158
31161
  refuseUnsettled();
31159
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus") return;
31162
+ if ((await loadClaustrum()).hasVaultHost()) return;
31160
31163
  const enrollment = await readEnrollment();
31161
31164
  if (enrollment.state !== "approved")
31162
31165
  throw new OpenCodeVaultCustodyError(
@@ -31168,7 +31171,7 @@ function createOpenCodeVaultCustody(options) {
31168
31171
  async useLocal() {
31169
31172
  refuseUnsettled();
31170
31173
  const claustrum = await loadClaustrum();
31171
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus")
31174
+ if (claustrum.hasVaultHost())
31172
31175
  throw new OpenCodeVaultCustodyError(
31173
31176
  claustrum.VAULT_HOST_CONNECT_REFUSAL
31174
31177
  );
@@ -31203,7 +31206,7 @@ function createOpenCodeVaultCustody(options) {
31203
31206
  if (layoutRefusal !== void 0)
31204
31207
  return { lines: [`Vault: ${layoutRefusal}`], actions: [] };
31205
31208
  const claustrum = await loadClaustrum();
31206
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus")
31209
+ if (claustrum.hasVaultHost())
31207
31210
  return { lines: [claustrum.VAULT_HOST_STATUS], actions: [] };
31208
31211
  const status = await custody.status();
31209
31212
  const lines = statusLines(status);
@@ -38204,6 +38207,8 @@ var VAULT_FAILURE_CLASSES2 = Object.freeze({
38204
38207
  unavailable: "unreachable",
38205
38208
  timeout: "unreachable",
38206
38209
  route_closed: "unreachable",
38210
+ // The daemon refused before forwarding, so the vault never saw the request.
38211
+ route_busy: "unreachable",
38207
38212
  daemon_draining: "unreachable",
38208
38213
  connection_closed: "unreachable",
38209
38214
  connection_dropped: "unreachable",
@@ -40740,7 +40745,7 @@ Setup has not completed the OpenCode 2 native Google connection.
40740
40745
  }
40741
40746
  async function runPluginSetup(argv, deps, migrateOpenCode, io = {}) {
40742
40747
  const claustrum = await loadCommonAuthClaustrum();
40743
- if (process.env.CORTEXKIT_VAULT_HOST === "thalamus")
40748
+ if (claustrum.hasVaultHost())
40744
40749
  throw new Error(claustrum.VAULT_HOST_CONNECT_REFUSAL);
40745
40750
  const plugin = await createSetupPlugin(
40746
40751
  deps,