@cortexkit/opencode-openai-auth 1.17.0 → 1.18.0

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 (61) hide show
  1. package/dist/bin.js +8 -8
  2. package/dist/{codex-request-DYqSE0ti.d.ts → codex-request-CTIOw2EZ.d.ts} +322 -322
  3. package/dist/index-177kc3f1.js +64 -0
  4. package/dist/{index-k2f9vrcr.js → index-1r7zznds.js} +1 -1
  5. package/dist/{index-0mhdyzax.js → index-2ecf254a.js} +21 -21
  6. package/dist/index-5czcaan0.js +101 -0
  7. package/dist/index-5vh4jgb7.js +12 -0
  8. package/dist/index-96p0myg1.js +2 -0
  9. package/dist/{index-1m3vv9rh.js → index-9sh2xnwr.js} +2 -2
  10. package/dist/{index-d7bsrp0m.js → index-h7xxfm12.js} +1 -1
  11. package/dist/{index-vmcmpezd.js → index-hrv1msdb.js} +1 -1
  12. package/dist/index-m6sq5g7q.js +8 -0
  13. package/dist/{index-99c2fepe.js → index-nkgxq9a6.js} +1 -1
  14. package/dist/{index-fxqghceg.js → index-raj3tyyz.js} +1 -1
  15. package/dist/{index-6ts9w66n.js → index-rs8z3per.js} +1 -1
  16. package/dist/index-smekt6zv.js +2 -0
  17. package/dist/index.d.ts +24 -24
  18. package/dist/index.js +1 -1
  19. package/dist/rpc/port-file.js +1 -1
  20. package/dist/rpc/protocol.js +1 -1
  21. package/dist/rpc/rpc-client.js +1 -1
  22. package/dist/rpc/rpc-dir.js +1 -1
  23. package/dist/sidebar-state.js +1 -1
  24. package/dist/{token-r3vbz9pw.js → token-kdjmv82a.js} +1 -1
  25. package/dist/token-util-71r7z2vr.js +1 -0
  26. package/dist/tui-preferences.js +1 -1
  27. package/dist/tui.d.ts +1 -1
  28. package/dist/v2/server.d.ts +1 -1
  29. package/dist/v2/server.js +3 -2
  30. package/package.json +2 -2
  31. package/src/tui-compiled/raw/shared/0766d78c6f481f18-watcher.js +9 -2
  32. package/src/tui-compiled/raw/shared/0f77ebc3c914c9c6-custody.js +1 -1
  33. package/src/tui-compiled/raw/shared/375d9cca2def037d-private-files.js +3 -1
  34. package/src/tui-compiled/raw/shared/44449e891fab9fbc-edit.js +48 -2
  35. package/src/tui-compiled/raw/shared/54eba94fd64c8c3c-index.js +1 -1
  36. package/src/tui-compiled/raw/shared/5f4bc45522ab9bc6-update.js +19 -18
  37. package/src/tui-compiled/raw/shared/6948d70969aa7a55-fs.js +1 -0
  38. package/src/tui-compiled/raw/shared/836fc615de6afbd9-settings.js +14 -4
  39. package/src/tui-compiled/raw/shared/94f53cfd572ba4bb-availability.js +1 -1
  40. package/src/tui-compiled/raw/shared/c14988621dc60a75-port-file.js +55 -49
  41. package/src/tui-compiled/raw/shared/cf4c37f3975c3a8d-canonical-file-path.js +57 -0
  42. package/src/tui-compiled/raw/shared/ec971142548df90e-index.js +3 -0
  43. package/src/tui-compiled/runtime/shared/0766d78c6f481f18-watcher.js +9 -2
  44. package/src/tui-compiled/runtime/shared/0f77ebc3c914c9c6-custody.js +1 -1
  45. package/src/tui-compiled/runtime/shared/375d9cca2def037d-private-files.js +3 -1
  46. package/src/tui-compiled/runtime/shared/44449e891fab9fbc-edit.js +48 -2
  47. package/src/tui-compiled/runtime/shared/54eba94fd64c8c3c-index.js +1 -1
  48. package/src/tui-compiled/runtime/shared/5f4bc45522ab9bc6-update.js +19 -18
  49. package/src/tui-compiled/runtime/shared/6948d70969aa7a55-fs.js +1 -0
  50. package/src/tui-compiled/runtime/shared/836fc615de6afbd9-settings.js +14 -4
  51. package/src/tui-compiled/runtime/shared/94f53cfd572ba4bb-availability.js +1 -1
  52. package/src/tui-compiled/runtime/shared/c14988621dc60a75-port-file.js +55 -49
  53. package/src/tui-compiled/runtime/shared/cf4c37f3975c3a8d-canonical-file-path.js +57 -0
  54. package/src/tui-compiled/runtime/shared/ec971142548df90e-index.js +3 -0
  55. package/dist/index-3dv16qvb.js +0 -101
  56. package/dist/index-dqxk628t.js +0 -12
  57. package/dist/index-rm4zt5dv.js +0 -64
  58. package/dist/index-v9p38mg5.js +0 -2
  59. package/dist/index-xx2z6bs3.js +0 -2
  60. package/dist/index-ydtpn6ma.js +0 -8
  61. package/dist/token-util-vks3kgse.js +0 -1
@@ -1 +1 @@
1
- import{Eg as G,Gg as H}from"./index-1m3vv9rh.js";function Q(x){return x==="chatgptaccountid"||x==="email"||x==="orgname"||x==="organizationname"}var S=G({extraSecretKeys:Q}),I=S.redact,N=S.redactStrings;function O(x){H({...x,extraSecretKeys:Q})}function C(x){if(x instanceof Error)return x.message;if(typeof x==="string")return x;try{return JSON.stringify(x)}catch{return String(x)}}function v(x){return"notify"in x}import{basename as X,dirname as Y,join as Z}from"node:path";var $="openai-auth.json",b="openai-auth-state.json";function p(x){return X(x)===$?Z(Y(x),b):`${x}.state.json`}import{spawn as j}from"node:child_process";function z(x,J=process.platform,q=j){try{if(J==="win32"){let U=`Start-Process '${x.replaceAll("'","''")}'`,V=Buffer.from(U,"utf16le").toString("base64"),T=q("powershell.exe",["-NoProfile","-NonInteractive","-WindowStyle","Hidden","-EncodedCommand",V],{stdio:"ignore",windowsHide:!0});return T.on("error",()=>{}),T.unref(),T.pid!==void 0}let u=q(J==="darwin"?"open":"xdg-open",[x],{stdio:"ignore"});return u.on("error",()=>{}),u.unref(),u.pid!==void 0}catch{return!1}}export{N as wg,O as xg,$ as yg,b as zg,p as Ag,C as Bg,v as Cg,z as Dg};
1
+ import{Gg as G,Ig as H}from"./index-9sh2xnwr.js";function Q(x){return x==="chatgptaccountid"||x==="email"||x==="orgname"||x==="organizationname"}var S=G({extraSecretKeys:Q}),I=S.redact,N=S.redactStrings;function O(x){H({...x,extraSecretKeys:Q})}function C(x){if(x instanceof Error)return x.message;if(typeof x==="string")return x;try{return JSON.stringify(x)}catch{return String(x)}}function v(x){return"notify"in x}import{basename as X,dirname as Y,join as Z}from"node:path";var $="openai-auth.json",b="openai-auth-state.json";function p(x){return X(x)===$?Z(Y(x),b):`${x}.state.json`}import{spawn as j}from"node:child_process";function z(x,J=process.platform,q=j){try{if(J==="win32"){let U=`Start-Process '${x.replaceAll("'","''")}'`,V=Buffer.from(U,"utf16le").toString("base64"),T=q("powershell.exe",["-NoProfile","-NonInteractive","-WindowStyle","Hidden","-EncodedCommand",V],{stdio:"ignore",windowsHide:!0});return T.on("error",()=>{}),T.unref(),T.pid!==void 0}let u=q(J==="darwin"?"open":"xdg-open",[x],{stdio:"ignore"});return u.on("error",()=>{}),u.unref(),u.pid!==void 0}catch{return!1}}export{N as yg,O as zg,$ as Ag,b as Bg,p as Cg,C as Dg,v as Eg,z as Fg};