command-code 1.8.0 → 1.9.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 +21 -0
- package/README.md +10 -7
- package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +3 -1
- package/dist/bundled/command-code-knowledge/reference/headless.md +1 -1
- package/dist/bundled/command-code-knowledge/reference/models.md +3 -3
- package/dist/bundled/command-code-knowledge/reference/product-help.md +1 -0
- package/dist/cli.mjs +5 -5
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/vsix/commandcode-vscode.vsix +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var r=process.env;r.NODE_ENV||(r.NODE_ENV="production"),await import(new URL("./cli.mjs",import.meta.url).href);
|
|
2
|
+
var e=Object.defineProperty,__name=(o,r)=>e(o,"name",{value:r,configurable:!0});function parseNodeMajor(e){const o=Number.parseInt(e.replace(/^v/,""),10);return Number.isFinite(o)?o:null}__name(parseNodeMajor,"parseNodeMajor");var o=[{label:"n",command:"npm install -g n && n lts"},{label:"nvm",command:"nvm install --lts && nvm use --lts"}];function pad(e,o){return e+" ".repeat(Math.max(0,o-e.length))}function formatUnsupportedNodeMessage(e){const{nodeVersion:r,execPath:n,color:s}=e,t=__name(e=>s?`[1m${e}[0m`:e,"bold"),a=__name(e=>s?`[31m${e}[0m`:e,"red"),d=__name(e=>s?`[2m${e}[0m`:e,"dim"),i=Math.max(...o.map(e=>e.label.length),2);return["",a(t(`Command Code needs Node.js 22 or newer — you're on ${r}.`)),"",`Install the current Node LTS, then run ${t("cmd")} again:`,"",...o.map(e=>` ${d(pad(e.label,i))} ${e.command}`),` ${d(pad("or",i))} download from https://nodejs.org`,"","Other ways to upgrade (fnm, Volta, asdf, brew, Windows):"," https://commandcode.ai/docs/troubleshooting/common-issues#upgrading-node-js","",`If ${t("cmd")} still fails after upgrading, its bin is linked to the old`,`Node — reinstall it: ${t("npm i -g command-code")}`,"",d(`Current Node: ${n}`),""].join("\n")}function isSupportedNodeVersion(){const e=process.versions.node,o=parseNodeMajor(e);if(null===o||o>=22)return!0;const r=process.env;return process.stderr.write(formatUnsupportedNodeMessage({nodeVersion:`v${e.replace(/^v/,"")}`,execPath:process.execPath,color:!r.NO_COLOR&&!0===process.stderr.isTTY})),process.exitCode=1,!1}__name(pad,"pad"),__name(formatUnsupportedNodeMessage,"formatUnsupportedNodeMessage"),__name(isSupportedNodeVersion,"isSupportedNodeVersion");var r=process.env;r.NODE_ENV||(r.NODE_ENV="production"),isSupportedNodeVersion()&&await import(new URL("./cli.mjs",import.meta.url).href);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "command-code",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Command Code, coding agent that continuously learns your coding taste. Best coding agent for open models.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
"@commandcode/harness": "0.1.0",
|
|
113
113
|
"@commandcode/provider-copilot": "0.1.0",
|
|
114
114
|
"@commandcode/provider-anthropic": "0.1.0",
|
|
115
|
-
"@commandcode/
|
|
115
|
+
"@commandcode/tui": "0.1.0",
|
|
116
116
|
"@commandcode/shared": "0.0.1",
|
|
117
|
-
"@commandcode/
|
|
118
|
-
"@commandcode/
|
|
117
|
+
"@commandcode/provider-openai": "0.1.0",
|
|
118
|
+
"@commandcode/providers": "0.1.0"
|
|
119
119
|
},
|
|
120
120
|
"scripts": {
|
|
121
121
|
"prebuild": "test -f vsix/commandcode-vscode.vsix || bash ../../scripts/build-ext.sh",
|
|
Binary file
|