@tjcoder/cli 0.9.164 → 0.9.165
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/README.md +1 -1
- package/lib/fetch-binary.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ coder --timeout 30m
|
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
94
|
# install a specific coder version regardless of the @tjcoder/cli wrapper version
|
|
95
|
-
CODER_CLI_VERSION=v0.9.
|
|
95
|
+
CODER_CLI_VERSION=v0.9.165 npm install -g @tjcoder/cli
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
## Troubleshooting
|
package/lib/fetch-binary.js
CHANGED
|
@@ -16,7 +16,7 @@ const { URL } = require("node:url");
|
|
|
16
16
|
const pkg = require("../package.json");
|
|
17
17
|
const REPO = process.env.CODER_CLI_REPO || "tjcoder-labs/cli";
|
|
18
18
|
// Allow pinning a version (matches the @tjcoder/cli package version by
|
|
19
|
-
// default so that `npm i @tjcoder/cli@0.9.
|
|
19
|
+
// default so that `npm i @tjcoder/cli@0.9.165` installs coder v0.9.165).
|
|
20
20
|
const VERSION = process.env.CODER_CLI_VERSION || `v${pkg.version}`;
|
|
21
21
|
|
|
22
22
|
// --- platform detection ----------------------------------------------------
|
|
@@ -136,14 +136,14 @@ async function checksum(filePath) {
|
|
|
136
136
|
// Optional SHA256 verification against a sibling .sha256 file. We try, but
|
|
137
137
|
// never fail the install if the file is missing — that keeps dev installs
|
|
138
138
|
// working before the first signed release.
|
|
139
|
-
const
|
|
139
|
+
const fsp = require("node:fs/promises");
|
|
140
140
|
const crypto = require("node:crypto");
|
|
141
141
|
const shaPath = `${filePath}.sha256`;
|
|
142
142
|
if (!fs.existsSync(shaPath)) return;
|
|
143
|
-
const expected = (await
|
|
143
|
+
const expected = (await fsp.readFile(shaPath, "utf8")).trim().split(/\s+/)[0];
|
|
144
144
|
const actual = crypto
|
|
145
145
|
.createHash("sha256")
|
|
146
|
-
.update(await
|
|
146
|
+
.update(await fsp.readFile(filePath))
|
|
147
147
|
.digest("hex");
|
|
148
148
|
if (expected.toLowerCase() !== actual.toLowerCase()) {
|
|
149
149
|
throw new Error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tjcoder/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.165",
|
|
4
4
|
"description": "Terminal-first AI coding assistant by TJ Coder / AI Labs. A keyboard-driven TUI with a live cognition pane, 7 specialized agents, and 31 tools, running on local Ollama models by default.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|