makecoder 4.0.27 → 4.0.28
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.
- package/dist/cc.mjs +2 -2
- package/dist/coder.js +1 -1
- package/dist/darwin-arm64/cc.js +41 -6
- package/dist/darwin-x64/cc.js +41 -6
- package/dist/gemini/{chunk-2SX35WX4.js → chunk-356OVHGG.js} +1 -1
- package/dist/gemini/{chunk-QLWIHN4W.js → chunk-63ULYU4I.js} +2 -2
- package/dist/gemini/{chunk-3MILFT2A.js → chunk-ACEDFBEP.js} +2 -2
- package/dist/gemini/{chunk-M4VGJYXT.js → chunk-CJ5VLAB6.js} +1 -1
- package/dist/gemini/{chunk-L6MG6Y4N.js → chunk-CNS6SZJ6.js} +1 -1
- package/dist/gemini/{chunk-CVQSCATI.js → chunk-FJMU6UNE.js} +1 -1
- package/dist/gemini/{chunk-REVEB6QQ.js → chunk-G6V3NYLD.js} +1 -1
- package/dist/gemini/{chunk-FLHTGF3O.js → chunk-MH5WU37R.js} +1 -1
- package/dist/gemini/{chunk-A6MX3ZUI.js → chunk-PZM5Q2NO.js} +2 -2
- package/dist/gemini/{chunk-7QO7ZB7U.js → chunk-R4YJJCUP.js} +1 -1
- package/dist/gemini/{chunk-GTU5AZLF.js → chunk-RTOTOYZ3.js} +1 -1
- package/dist/gemini/{chunk-A3CFCECQ.js → chunk-S5WFVXWE.js} +1 -1
- package/dist/gemini/{chunk-RFHUTEFF.js → chunk-VFMKTMIZ.js} +1 -1
- package/dist/gemini/{chunk-AHBTQKKJ.js → chunk-VJITGXD7.js} +2 -2
- package/dist/gemini/{chunk-QZZSKH6J.js → chunk-W5TDQYOY.js} +1 -1
- package/dist/gemini/{chunk-UFGP2VEQ.js → chunk-XPH4EMMZ.js} +1 -1
- package/dist/gemini/{cleanup-M2L7Y3J6.js → cleanup-IEMHEGQL.js} +1 -1
- package/dist/gemini/{cleanup-ZJ3DDNQU.js → cleanup-SFYLF5RQ.js} +1 -1
- package/dist/gemini/{core-SNF4J4VI.js → core-4QE6N7IV.js} +1 -1
- package/dist/gemini/{devtoolsService-FDXINY4I.js → devtoolsService-34NLK5WH.js} +2 -2
- package/dist/gemini/{devtoolsService-53YKYRAY.js → devtoolsService-J7RUHF7G.js} +2 -2
- package/dist/gemini/{dist-OHEMBVSW.js → dist-3KXWDUDH.js} +1 -1
- package/dist/gemini/{gemini-UJXQV7SS.js → gemini-VQICWID3.js} +5 -5
- package/dist/gemini/{gemini-LJKZO6ID.js → gemini-XKFI76VG.js} +5 -5
- package/dist/gemini/gemini.js +2 -2
- package/dist/gemini/{interactiveCli-E5EI2CZT.js → interactiveCli-DX6PGO5O.js} +2 -2
- package/dist/gemini/{interactiveCli-PRHLNZCE.js → interactiveCli-QF76UNZ5.js} +2 -2
- package/dist/gemini/{liteRtServerManager-5SQ2TTDE.js → liteRtServerManager-DQU232O5.js} +1 -1
- package/dist/gemini/{liteRtServerManager-JCWKAJFL.js → liteRtServerManager-HXFM7XV2.js} +1 -1
- package/dist/gemini/{oauth2-provider-Q6HTZTKH.js → oauth2-provider-3U23IVR2.js} +1 -1
- package/dist/gemini/{oauth2-provider-BA4IPWPG.js → oauth2-provider-SFOTVTXE.js} +1 -1
- package/dist/gemini/{start-3PMI6ZVJ.js → start-LAWWIE6I.js} +1 -1
- package/dist/gemini/{start-DO44GV2B.js → start-RDNQUCPC.js} +1 -1
- package/dist/linux-x64/cc.js +41 -6
- package/dist/win32-x64/cc.js +41 -6
- package/package.json +4 -4
- /package/dist/gemini/{tree-sitter-TTHZYMTS.js → tree-sitter-6LGKSRWQ.js} +0 -0
- /package/dist/gemini/{tree-sitter-bash-OIMPM64I.js → tree-sitter-bash-T5FTGOXW.js} +0 -0
package/dist/cc.mjs
CHANGED
|
@@ -20,13 +20,13 @@ import{createRequire as vP5}from"node:module";var MP5=Object.create;var{getProto
|
|
|
20
20
|
Object.assign(A, {
|
|
21
21
|
post(...args) {
|
|
22
22
|
const [url, payload, ...remainArgs] = args;
|
|
23
|
-
const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.
|
|
23
|
+
const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.28' + '&session_id=' + I8() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
|
|
24
24
|
if (process.env.CODER_APIKEY) {
|
|
25
25
|
const headerValues = payload.headers.values;
|
|
26
26
|
headerValues.set('AUTHORIZATION', `Bearer ${process.env.CODER_APIKEY}`)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
payload.headers.values.set('X-Coder-Version', '4.0.
|
|
29
|
+
payload.headers.values.set('X-Coder-Version', '4.0.28');
|
|
30
30
|
payload.headers.values.set('X-Coder-Platform', process.platform);
|
|
31
31
|
payload.headers.values.set('X-Coder-Arch', process.arch);
|
|
32
32
|
|
package/dist/coder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var It=Object.create;var ve=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var vt=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,$t=Object.prototype.hasOwnProperty;var m=(h,e)=>()=>(e||h((e={exports:{}}).exports,e),e.exports);var Dt=(h,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of vt(e))!$t.call(h,o)&&o!==t&&ve(h,o,{get:()=>e[o],enumerable:!(s=Et(e,o))||s.enumerable});return h};var Pt=(h,e,t)=>(t=h!=null?It(xt(h)):{},Dt(e||!h||!h.__esModule?ve(t,"default",{value:h,enumerable:!0}):t,h));var q=m((ks,_t)=>{_t.exports={name:"makecoder",version:"4.0.
|
|
2
|
+
var It=Object.create;var ve=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var vt=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,$t=Object.prototype.hasOwnProperty;var m=(h,e)=>()=>(e||h((e={exports:{}}).exports,e),e.exports);var Dt=(h,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of vt(e))!$t.call(h,o)&&o!==t&&ve(h,o,{get:()=>e[o],enumerable:!(s=Et(e,o))||s.enumerable});return h};var Pt=(h,e,t)=>(t=h!=null?It(xt(h)):{},Dt(e||!h||!h.__esModule?ve(t,"default",{value:h,enumerable:!0}):t,h));var q=m((ks,_t)=>{_t.exports={name:"makecoder",version:"4.0.28",description:"MakeCoder: Unified AI agent CLI tool integrating Claude Code, Codex and Gemini CLI",main:"./dist/coder.js",bin:{coder:"./dist/coder.js"},scripts:{test:'echo "Error: no test specified" && exit 1',start:"node ./src/coder.js",build:"node scripts/build.js","build:clean":"node scripts/build.js --clean","build:dev":"node scripts/build.js --no-minify --sourcemap",postinstall:"node scripts/postinstall.js"},keywords:["cli","ai","claude","gemini","codex","agent"],author:"makecoder",license:"MIT",repository:{type:"git",url:"https://github.com/makecoderai/coder.git"},homepage:"https://github.com/makecoderai/coder",dependencies:{"node-fetch":"^3.3.2",open:"^10.1.0",zod:"^3.25.76"},optionalDependencies:{bun:">=1.3.12"},engines:{node:">=20.0.0"},devDependencies:{chokidar:"^4.0.3"},files:["dist","claude","scripts/postinstall.js"]}});var Pe=m((Ts,De)=>{var O=require("fs"),xe=require("path"),Ot=require("os"),kt=new Set(["auth","skills","wiki","channel"]),$e=new Set(["claude","gemini","codex"]),Tt=new Set(["pub","auth","update","skills","wiki","channel"]),Z=class{constructor(){let e=process.env.CODER_PROFILE,t=e?`.coder.${e}`:".coder";this.configPath=xe.join(Ot.homedir(),t,"config.json"),this.defaultConfig={agent:"claude",auth:{apikey:null}}}loadConfig(){let e=xe.dirname(this.configPath);try{return O.existsSync(e)||O.mkdirSync(e,{recursive:!0}),O.existsSync(this.configPath)||O.writeFileSync(this.configPath,JSON.stringify(this.defaultConfig,null,2)),JSON.parse(O.readFileSync(this.configPath,"utf8"))}catch{return{...this.defaultConfig}}}getApiKeyFromConfig(e){return e.auth?.apikey?e.auth.apikey:e.auth?.ak&&e.auth?.sk?`${e.auth.ak}.${e.auth.sk}`:null}saveAuthToConfig(e){let t=this.loadConfig();t.auth={apikey:e};try{return O.writeFileSync(this.configPath,JSON.stringify(t,null,2)),!0}catch{return!1}}clearAuthFromConfig(){let e=this.loadConfig();e.auth={apikey:null};try{return O.writeFileSync(this.configPath,JSON.stringify(e,null,2)),!0}catch{return!1}}async parse(e=process.argv.slice(2)){let t=this.loadConfig(),s={agent:t.agent||"claude",remainingArgs:[]},o=0;if(e.length>0){if($e.has(e[0]))s.agent=e[0],s.agentSetBySubcommand=!0,o=1;else if(Tt.has(e[0])){if(s.command=e[0],o=1,e[0]==="auth"){let n=e[1];n==="--help"||n==="-h"?s.authSubcommand="--help":(s.authSubcommand=n,s.authRemainingArgs=e.slice(2)),o=e.length}else if(e[0]==="skills"){let n=e[1];s.skillsSubcommand=n==="--help"||n==="-h"?void 0:n,s.skillsArg=e[2],s.skillsRemainingArgs=e.slice(2),o=e.length}else if(e[0]==="wiki"){let n=e[1];s.wikiSubcommand=n==="--help"||n==="-h"?void 0:n,s.wikiArg=e[2],s.wikiRemainingArgs=e.slice(2),o=e.length}else if(e[0]==="channel"){let n=e[1];n==="--help"||n==="-h"?s.channelSubcommand="--help":n==="list"||n==="show"||n==="add"||n==="remove"||n==="update"?(s.channelSubcommand=n,s.channelArg=e[2],s.channelRemainingArgs=e.slice(2)):s.channelRemainingArgs=e.slice(1),o=e.length}}}for(;o<e.length;){let n=e[o];if(n==="--agent"){if(s.agentSetBySubcommand)throw new Error(`\u4E0D\u80FD\u540C\u65F6\u4F7F\u7528\u5B50\u547D\u4EE4 '${s.agent}' \u548C --agent\uFF0C\u8BF7\u9009\u62E9\u5176\u4E00`);let i=e[o+1];if(!i||!$e.has(i))throw new Error("--agent \u9700\u8981\u6307\u5B9A\u4EE3\u7406\u7C7B\u578B\uFF08claude|gemini|codex\uFF09");s.agent=i,o+=2}else if(n==="--apikey"){let i=e[o+1];if(!i||i.startsWith("--"))throw new Error("--apikey \u9700\u8981\u63D0\u4F9B API Key \u503C");if(i.indexOf(".")===-1)throw new Error("API Key \u683C\u5F0F\u9519\u8BEF\uFF0C\u5E94\u4E3A <ak>.<sk>");s.apikey=i,o+=2}else if(n==="--name"){let i=e[o+1];i&&!i.startsWith("--")?(s.pubName=i,o+=2):o+=1}else if(n==="--allow-clone")s.allowClone=!0,o+=1;else if(n==="--meta-data"){let i=e[o+1];if(!i||i.startsWith("--"))throw new Error("--meta-data \u9700\u8981\u4E00\u4E2A JSON \u5B57\u7B26\u4E32\u503C");try{JSON.parse(i)}catch(a){throw new Error(`--meta-data \u4E0D\u662F\u5408\u6CD5\u7684 JSON\uFF1A${a.message}`)}s.pubMetaData=i,o+=2}else{s.remainingArgs=e.slice(o);break}}if(s.command!=="auth"&&!s.apikey){let n=this.getApiKeyFromConfig(t);s.apikey=n||process.env.CODER_APIKEY||null}s.codevServer=process.env.CODEV_SERVER||t.codevServer||"https://makecoder.com/bigapis/codev/v1";let r=s.remainingArgs.includes("--version")||s.remainingArgs.includes("-v")||s.remainingArgs.includes("--help")||s.remainingArgs.includes("-h");return!kt.has(s.command)&&!r&&!s.apikey&&await this._oauthLogin(s),s}async _oauthLogin(e){console.log(`\u274C \u5C1A\u672A\u767B\u5F55
|
|
3
3
|
`),console.log("\u8BF7\u5148\u767B\u5F55:"),console.log(` coder auth login
|
|
4
4
|
`),console.log("\u6216\u76F4\u63A5\u63D0\u4F9B API Key:"),console.log(` coder auth login --apikey <your-api-key>
|
|
5
5
|
`),console.log(`\u83B7\u53D6 API Key: https://makecoder.com/my/apikeys
|