@cortexkit/opencode-openai-auth 1.17.2 → 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 (49) 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-emcf633z.js → index-1r7zznds.js} +1 -1
  5. package/dist/{index-y1b9ka54.js → index-2ecf254a.js} +21 -21
  6. package/dist/{index-qjh3h3wr.js → index-5czcaan0.js} +3 -3
  7. package/dist/index-5vh4jgb7.js +12 -0
  8. package/dist/index-96p0myg1.js +2 -0
  9. package/dist/{index-t09qaj5w.js → index-9sh2xnwr.js} +2 -2
  10. package/dist/{index-6pakkcrn.js → index-h7xxfm12.js} +1 -1
  11. package/dist/{index-b2pc3ze2.js → index-hrv1msdb.js} +1 -1
  12. package/dist/{index-7ea4dbe9.js → index-m6sq5g7q.js} +7 -7
  13. package/dist/{index-srdm5a4d.js → index-nkgxq9a6.js} +1 -1
  14. package/dist/{index-2dqwctzp.js → index-raj3tyyz.js} +1 -1
  15. package/dist/{index-vjk4wv2b.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-6ya278eg.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/0f77ebc3c914c9c6-custody.js +1 -1
  32. package/src/tui-compiled/raw/shared/375d9cca2def037d-private-files.js +3 -1
  33. package/src/tui-compiled/raw/shared/54eba94fd64c8c3c-index.js +1 -1
  34. package/src/tui-compiled/raw/shared/836fc615de6afbd9-settings.js +14 -4
  35. package/src/tui-compiled/raw/shared/94f53cfd572ba4bb-availability.js +1 -1
  36. package/src/tui-compiled/raw/shared/c14988621dc60a75-port-file.js +55 -49
  37. package/src/tui-compiled/raw/shared/cf4c37f3975c3a8d-canonical-file-path.js +6 -2
  38. package/src/tui-compiled/runtime/shared/0f77ebc3c914c9c6-custody.js +1 -1
  39. package/src/tui-compiled/runtime/shared/375d9cca2def037d-private-files.js +3 -1
  40. package/src/tui-compiled/runtime/shared/54eba94fd64c8c3c-index.js +1 -1
  41. package/src/tui-compiled/runtime/shared/836fc615de6afbd9-settings.js +14 -4
  42. package/src/tui-compiled/runtime/shared/94f53cfd572ba4bb-availability.js +1 -1
  43. package/src/tui-compiled/runtime/shared/c14988621dc60a75-port-file.js +55 -49
  44. package/src/tui-compiled/runtime/shared/cf4c37f3975c3a8d-canonical-file-path.js +6 -2
  45. package/dist/index-4thkhwyp.js +0 -12
  46. package/dist/index-h8ychf80.js +0 -2
  47. package/dist/index-jmzh060w.js +0 -64
  48. package/dist/index-q7d43xxn.js +0 -2
  49. package/dist/token-util-ynanp4np.js +0 -1
@@ -1 +1 @@
1
- import{Fg as G,Hg as H}from"./index-t09qaj5w.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 xg,O as yg,$ as zg,b as Ag,p as Bg,C as Cg,v as Dg,z as Eg};
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};