prjct-cli 2.4.0 → 2.4.1
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/CHANGELOG.md +5 -0
- package/dist/bin/prjct-core.mjs +224 -222
- package/dist/bin/prjct.mjs +1 -1
- package/dist/daemon/entry.mjs +166 -164
- package/package.json +1 -1
package/dist/bin/prjct.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import{connect}from"node:net";import{existsSync}from"node:fs";import{randomUUID}
|
|
|
3
3
|
const sockPath=homedir()+"/.prjct-cli/run/daemon.sock";
|
|
4
4
|
const args=process.argv.slice(2);
|
|
5
5
|
const cmd=args.find(a=>!a.startsWith("-"));
|
|
6
|
-
const skip=new Set(["daemon","stop","restart","start","setup","update","dev","web","serve","context","hooks","doctor","uninstall","watch","help","-h","--help","version","-v","--version","claude","hook","seed","install","crew"]);
|
|
6
|
+
const skip=new Set(["daemon","stop","restart","start","setup","update","dev","web","serve","context","hooks","doctor","uninstall","watch","help","-h","--help","version","-v","--version","claude","hook","seed","install","crew","mcp"]);
|
|
7
7
|
if(cmd&&!skip.has(cmd)&&process.env.PRJCT_NO_DAEMON!=="1"&&existsSync(sockPath)){
|
|
8
8
|
const cArgs=[],cOpts={};
|
|
9
9
|
for(let i=0;i<args.length;i++){const a=args[i];if(a.startsWith("--")){const r=a.slice(2);if(r.includes("=")){const e=r.indexOf("=");cOpts[r.slice(0,e)]=r.slice(e+1)}else if(i+1<args.length&&!args[i+1].startsWith("--")){cOpts[r]=args[++i]}else{cOpts[r]=true}}else if(a.startsWith("-")&&a.length===2){cOpts[a.slice(1)]=true}else if(i>0){cArgs.push(a)}}
|