@cortexkit/opencode-openai-auth 1.21.1 → 1.22.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 (42) hide show
  1. package/dist/bin.js +2 -2
  2. package/dist/{index-wwp78jx3.js → index-0wh22s62.js} +1 -1
  3. package/dist/{index-7v9tyyrn.js → index-1k8a281v.js} +2 -2
  4. package/dist/{index-fgt2dy20.js → index-677jqrrt.js} +1 -1
  5. package/dist/{index-jq1efs0q.js → index-67twdyyz.js} +11 -11
  6. package/dist/{index-hxp3dm9e.js → index-6afhs2jq.js} +2 -2
  7. package/dist/{index-0hk39zee.js → index-8bt81cys.js} +2 -2
  8. package/dist/index-9tg5xx9a.js +2 -0
  9. package/dist/{index-ecqb42ev.js → index-b3bgqy7r.js} +2 -2
  10. package/dist/index-dw1nh7dk.js +60 -0
  11. package/dist/{index-vqy1mwn3.js → index-mepr345k.js} +1 -1
  12. package/dist/index-ney54jhs.js +79 -0
  13. package/dist/{index-0cpz8t4q.js → index-vaf4mqd1.js} +2 -2
  14. package/dist/index-w6kars9d.js +1 -0
  15. package/dist/{index-r891a915.js → index-xbhtpa9s.js} +2 -2
  16. package/dist/index.d.ts +4 -24
  17. package/dist/index.js +1 -1
  18. package/dist/map-D5PHhv4z.d.ts +72 -0
  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/{codex-request-WGAY0gn4.d.ts → runtime-layout-DdxprfY1.d.ts} +665 -645
  24. package/dist/{sidebar-state-CrRiE9hw.d.ts → sidebar-state--OTpRzFd.d.ts} +2 -72
  25. package/dist/sidebar-state.d.ts +1 -1
  26. package/dist/sidebar-state.js +1 -1
  27. package/dist/{token-8afntt1a.js → token-92yc9q7w.js} +1 -1
  28. package/dist/token-util-g8e70a6j.js +1 -0
  29. package/dist/tui-preferences.js +1 -1
  30. package/dist/tui.d.ts +1 -1
  31. package/dist/v2/server.d.ts +10 -3
  32. package/dist/v2/server.js +4 -4
  33. package/package.json +1 -1
  34. package/src/tui-compiled/raw/logger.js +5 -22
  35. package/src/tui-compiled/raw/shared/d669d72c40e9e116-logger.js +30 -1
  36. package/src/tui-compiled/runtime/logger.js +5 -22
  37. package/src/tui-compiled/runtime/shared/d669d72c40e9e116-logger.js +30 -1
  38. package/dist/index-0cht4a77.js +0 -64
  39. package/dist/index-dmdmb1pp.js +0 -1
  40. package/dist/index-j28pt8dy.js +0 -2
  41. package/dist/index-s1tk4br4.js +0 -75
  42. package/dist/token-util-htrre2k8.js +0 -1
@@ -1 +0,0 @@
1
- import{Og as G,Qg as H}from"./index-0cpz8t4q.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 Gg,O as Hg,$ as Ig,b as Jg,p as Kg,C as Lg,v as Mg,z as Ng};
@@ -1,2 +0,0 @@
1
- import{createRequire as n}from"node:module";var k=Object.defineProperty;var q=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports);var l=(b)=>b;function m(b,a){this[b]=l.bind(null,a)}var r=(b,a)=>{for(var c in a)k(b,c,{get:a[c],enumerable:!0,configurable:!0,set:m.bind(a,c)})};var t=n(import.meta.url),o=Symbol.dispose||Symbol.for("Symbol.dispose"),p=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),u=(b,a,c)=>{if(a!=null){if(typeof a!=="object"&&typeof a!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var e;if(c)e=a[p];if(e===void 0)e=a[o];if(typeof e!=="function")throw TypeError("Object not disposable");b.push([c,e,a])}else if(c)b.push([c]);return a},v=(b,a,c)=>{var e=typeof SuppressedError==="function"?SuppressedError:function(d,i,f,g){return g=Error(f),g.name="SuppressedError",g.error=d,g.suppressed=i,g},j=(d)=>a=c?new e(d,a,"An error was suppressed during disposal"):(c=!0,d),h=(d)=>{while(d=b.pop())try{var i=d[1]&&d[1].call(d[2]);if(d[0])return Promise.resolve(i).then(h,(f)=>(j(f),h()))}catch(f){j(f)}if(c)throw a};return h()};
2
- export{q as ih,r as jh,t as kh,u as lh,v as mh};