superclawd 0.1.21 → 0.1.23
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -238,7 +238,7 @@ ${C}[?7l${C}[?25l`),i(!0),t.setRawMode(!0),t.resume();let a=!1,l=()=>{if(!a){a=!
|
|
|
238
238
|
`;let U=`v${t}`;m+=`${k}[${Math.max(1,_-1)};${Math.max(1,w-U.length-1)}H${W}${U}${R}`,T(m)},P=(u,w,_)=>{let h=process.stdout.columns||80,m="Select your workspace \u2191/\u2193 \xB7 enter launches \xB7 d sets default \xB7 esc cancels",I=Math.max(0,Math.floor((h-m.length)/2)),U=D=>` ${D.name} ${D.slug} \xB7 ${D.role}`,O=Math.max(...u.map(D=>U(D).length)),M=Math.max(0,Math.floor((h-O)/2)),N=[`${B(I)}${H}${m}${R}`,""];for(let D=0;D<u.length;D++){let K=u[D],Q=D===w,Z=Q?`${W}\u276F `:" ",we=Q?`${W}${K.name}${R}`:K.name,Se=K.slug===_?` ${W}\u2605 default${R}`:"";N.push(`${B(M)}${Z}${we} ${H}${K.slug} \xB7 ${K.role}${R}${Se}`)}p(N)};return{phase:(u,w)=>d(u-1,w,jr),ready:u=>d(e,u,Fr),message(u){let w=process.stdout.columns||80,_=Math.max(0,Math.floor((w-u.length)/2));p([`${B(_)}${H}${u}${R}`]),r=Date.now()},selectWorkspace(u,w){return new Promise(_=>{let h=w?.currentSlug?u.findIndex(O=>O.slug===w.currentSlug):-1,m=h>=0?h:0,I=w?.defaultSlug;s&&process.stdin.off("data",i),P(u,m,I);let U=O=>{let M=O.toString();M===""||M===k?(process.stdin.off("data",U),_(null)):M==="\r"||M===`
|
|
239
239
|
`?(process.stdin.off("data",U),process.stdin.on("data",i),_(u[m].slug)):M==="d"||M==="D"?(I=u[m].slug,w?.onSetDefault?.(I),P(u,m,I)):M===`${k}[A`||M==="k"?(m=(m-1+u.length)%u.length,P(u,m,I)):(M===`${k}[B`||M==="j")&&(m=(m+1)%u.length,P(u,m,I))};process.stdin.on("data",U)})},fail(u){o&&c(),o=!1,E(),process.stderr.write(`${ge}\u2717 ${u}${R}
|
|
240
240
|
`)},note(){},handoff(){s&&(process.stdin.off("data",i),process.stdin.pause(),s=!1),T(We+Ue),process.off("SIGINT",g),process.off("SIGTERM",g)},finish(){o&&c(),o=!1,E()}}}function qr(){return process.platform!=="win32"?!0:!!(process.env.WT_SESSION||process.env.TERM_PROGRAM||process.env.TERM)}function Jr(){return{async phase(){},message(){},async selectWorkspace(e,t){return t?.currentSlug??e[0]?.slug??null},async ready(){},fail(e){process.stderr.write(`${ge}\u2717 ${e}${R}
|
|
241
|
-
`)},note(){},handoff(){},finish(){}}}function ln(e){if(e.quiet)return Jr();let t=process.stdout.isTTY===!0,n=e.version??"";return e.plain||!t||!qr()?Br(e.total,n):Hr(e.total,n)}var Vr=["low","medium","high","xhigh","max"];function un(e){let t=!1,n="",r=null,o=!1,s=!1,i=null,a=!1,l=!1,c="board",g=null,y=null,E=null;for(let f=0;f<e.length;f++){let d=e[f],p=e[f+1];d==="-p"||d==="--print"?(t=!0,p&&!p.startsWith("-")&&(n=p,f++)):d==="--workspace"||d==="-w"?p&&!p.startsWith("-")&&(r=p,f++):d==="--no-capture"?o=!0:d==="--resume"||d==="-r"?(s=!0,p&&!p.startsWith("-")&&(i=p,f++)):d==="--pipelines"?a=!0:d==="--pipelines-tools"?l=!0:d.startsWith("--pipelines-tools=")?(l=!0,c=d.slice(18)==="restricted"?"restricted":"board"):d==="--session-id"?p&&!p.startsWith("-")&&(g=p,f++):d==="--model"?p&&!p.startsWith("-")&&(y=p,f++):d==="--effort"&&p&&Vr.includes(p)&&(E=p,f++)}return{printMode:t,printPrompt:n,workspace:r,noCapture:o,resume:s,resumeSessionId:i,pipelines:a,pipelinesTools:l,pipelinesToolsMode:c,sessionId:g,model:y,effort:E}}var pn={name:"superclawd",version:"0.1.
|
|
241
|
+
`)},note(){},handoff(){},finish(){}}}function ln(e){if(e.quiet)return Jr();let t=process.stdout.isTTY===!0,n=e.version??"";return e.plain||!t||!qr()?Br(e.total,n):Hr(e.total,n)}var Vr=["low","medium","high","xhigh","max"];function un(e){let t=!1,n="",r=null,o=!1,s=!1,i=null,a=!1,l=!1,c="board",g=null,y=null,E=null;for(let f=0;f<e.length;f++){let d=e[f],p=e[f+1];d==="-p"||d==="--print"?(t=!0,p&&!p.startsWith("-")&&(n=p,f++)):d==="--workspace"||d==="-w"?p&&!p.startsWith("-")&&(r=p,f++):d==="--no-capture"?o=!0:d==="--resume"||d==="-r"?(s=!0,p&&!p.startsWith("-")&&(i=p,f++)):d==="--pipelines"?a=!0:d==="--pipelines-tools"?l=!0:d.startsWith("--pipelines-tools=")?(l=!0,c=d.slice(18)==="restricted"?"restricted":"board"):d==="--session-id"?p&&!p.startsWith("-")&&(g=p,f++):d==="--model"?p&&!p.startsWith("-")&&(y=p,f++):d==="--effort"&&p&&Vr.includes(p)&&(E=p,f++)}return{printMode:t,printPrompt:n,workspace:r,noCapture:o,resume:s,resumeSessionId:i,pipelines:a,pipelinesTools:l,pipelinesToolsMode:c,sessionId:g,model:y,effort:E}}var pn={name:"superclawd",version:"0.1.23",description:"Claude Code, supercharged \u2014 your team's standards, every session. The superclawd CLI loads your workspace's skills, agents, commands, workflows, and live directives into Claude Code as a plugin.",author:"SuperClawd <support@superclawd.com>",license:"SEE LICENSE IN LICENSE",homepage:"https://superclawd.com",repository:{type:"git",url:"https://github.com/superclawd-ai/superclawd"},bugs:{url:"https://github.com/superclawd-ai/superclawd/issues"},keywords:["superclawd","claude-code","claude","plugin","skills","agents","mcp","ai-assistant","coding-standards","model-context-protocol"],engines:{node:">=20"},type:"module",main:"dist/index.js",bin:{superclawd:"dist/index.js"},files:["dist","README.md","LICENSE"],scripts:{build:"node build.mjs",dev:"node build.mjs && tsx src/index.ts",typecheck:"tsc --noEmit",lint:"eslint 'src/**/*.{ts,tsx}'","lint:fix":"eslint 'src/**/*.{ts,tsx}' --fix",format:"prettier --check 'src/**/*.{ts,tsx}'","format:fix":"prettier --write 'src/**/*.{ts,tsx}'",selftest:"tsx test/mcp-selftest.ts","test:guardrails":"tsx test/guardrails-eval.test.ts",test:"node build.mjs && tsx test/mcp-selftest.ts && tsx test/pipelines-tools.test.ts && tsx test/guardrails-eval.test.ts && tsx test/hooks-capture.test.ts && tsx test/translator-teams.test.ts && tsx test/run-args.test.ts && tsx test/pipelines.test.ts && tsx test/update-check.test.ts && tsx test/retrieve.test.ts && tsx test/config-private-memory.test.ts && tsx test/config-choose-workspace.test.ts && tsx test/config.test.ts && tsx test/translator-basics.test.ts && tsx test/hook-helper-guardrails.test.ts && tsx test/capture-prompts.test.ts && tsx test/mcp-backend-real.test.ts && tsx test/catalog.test.ts",prepublishOnly:"npm run build","publish:npm":"npm publish","version:bump":"npm version patch --no-git-tag-version"},dependencies:{"@modelcontextprotocol/sdk":"^1.7.0",zod:"^3.24.2"},devDependencies:{"@eslint/js":"^9.39.1","@types/node":"^22.10.0","@typescript-eslint/eslint-plugin":"^8.44.1","@typescript-eslint/parser":"^8.44.1",esbuild:"^0.24.0",eslint:"^9.36.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4",prettier:"^3.6.2",tsx:"^4.19.0",typescript:"^5.7.0"}};var Ne=pn.version,he=process.env.SUPERCLAWD_DRY_RUN==="1"||process.argv.includes("--dry-run");function no(){try{let e=Qr("git remote get-url origin",{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim();if(e)return e.replace(/\.git$/,"").toLowerCase()}catch{}return`dir:${Zr(process.cwd())}`}function ro(){if(process.env.SUPERCLAWD_MCP_SERVER_PATH)return process.env.SUPERCLAWD_MCP_SERVER_PATH;let e=dn(new URL("./mcp-server.mjs",import.meta.url));return mn(e)?e:dn(new URL("../dist/mcp-server.mjs",import.meta.url))}function oo(){return`superclawd \u2014 Claude Code, supercharged with your SuperClawd workspace.
|
|
242
242
|
|
|
243
243
|
Usage:
|
|
244
244
|
superclawd Launch Claude with your skills/agents/directives loaded
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superclawd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Claude Code, supercharged — your team's standards, every session. The superclawd CLI loads your workspace's skills, agents, commands, workflows, and live directives into Claude Code as a plugin.",
|
|
5
5
|
"author": "SuperClawd <support@superclawd.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|