craftbot 0.0.0-stage → 1.4.5
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 +54 -2
- package/bin/craftbot.js +10 -0
- package/checksums.json +9 -0
- package/lib/craftbot.js +312 -0
- package/package.json +33 -4
package/README.md
CHANGED
|
@@ -1,3 +1,55 @@
|
|
|
1
|
-
#
|
|
1
|
+
# craftbot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install and run [CraftBot](https://github.com/CraftOS-dev/CraftBot), the AI
|
|
4
|
+
agent that builds and runs its own tools.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx craftbot
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The first run installs CraftBot, then starts it and opens it: in the
|
|
11
|
+
CraftBot desktop app when that is installed, otherwise in your browser.
|
|
12
|
+
After that, the same command opens it again.
|
|
13
|
+
|
|
14
|
+
Node.js 18.17 or later is needed only to run this command. CraftBot brings
|
|
15
|
+
its own Python and Node.js and does not use yours.
|
|
16
|
+
|
|
17
|
+
## Commands
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx craftbot # install if needed, start, open
|
|
21
|
+
npx craftbot@latest update # update CraftBot to the latest release
|
|
22
|
+
npx craftbot uninstall # remove CraftBot; your data and settings stay
|
|
23
|
+
npx craftbot stop # also: start, restart, status, logs, tui,
|
|
24
|
+
# doctor, autostart, repair
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`npm install -g craftbot` gives you the `craftbot` command without `npx`.
|
|
28
|
+
|
|
29
|
+
## How it works
|
|
30
|
+
|
|
31
|
+
This package installs nothing itself. When CraftBot is missing, it downloads
|
|
32
|
+
the installer from the matching
|
|
33
|
+
[GitHub release](https://github.com/CraftOS-dev/CraftBot/releases), checks it
|
|
34
|
+
against the SHA-256 published with this package (`checksums.json`), and runs
|
|
35
|
+
it without a window. That is the same setup the downloadable installer runs.
|
|
36
|
+
Every other command goes to the installed CraftBot (`craftbot.py`).
|
|
37
|
+
|
|
38
|
+
CraftBot is installed per user, with no administrator rights:
|
|
39
|
+
|
|
40
|
+
| | Program | Data |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Windows | `%LOCALAPPDATA%\Programs\CraftBot` | `%LOCALAPPDATA%\CraftBot` |
|
|
43
|
+
| macOS | `~/Applications/CraftBot` | `~/Library/Application Support/CraftBot` |
|
|
44
|
+
| Linux | `~/.local/share/craftbot/source` | `~/.local/share/craftbot` |
|
|
45
|
+
|
|
46
|
+
`CRAFTBOT_HOME` moves the data folder. A copy of CraftBot run from a source
|
|
47
|
+
checkout is not managed by this command.
|
|
48
|
+
|
|
49
|
+
## Troubleshooting
|
|
50
|
+
|
|
51
|
+
- Behind a proxy, Node 24 and later use `HTTPS_PROXY` when
|
|
52
|
+
`NODE_USE_ENV_PROXY=1` is set.
|
|
53
|
+
- `CRAFTBOT_INSTALLER=/path/to/installer` uses an installer you downloaded
|
|
54
|
+
yourself instead of fetching one.
|
|
55
|
+
- The setup log is `launcher.log` in the data folder.
|
package/bin/craftbot.js
ADDED
package/checksums.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.4.5",
|
|
3
|
+
"assets": {
|
|
4
|
+
"CraftBotInstaller-linux-x86_64": "70c884fff81800edf9c6b50f83ffb523e1b54d2fa41e14adefa7df5c7b5aa0d0",
|
|
5
|
+
"CraftBotInstaller-linux-aarch64": "4e5c5b6c3e9ef53fbbf338107662ec6669201f31942d185d2ec965b0fdd4a5ae",
|
|
6
|
+
"CraftBotInstaller-macos.zip": "8496166433c4ca25910f64eee693e31c62f93e9267d2d0216172b2540b949cb7",
|
|
7
|
+
"CraftBotInstaller-windows.exe": "fa972593b8f9973a5a241634b040b920f86fe228b18516a562be84e9fc98a14b"
|
|
8
|
+
}
|
|
9
|
+
}
|
package/lib/craftbot.js
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
// `npx craftbot`: install CraftBot when it is missing, then hand every
|
|
2
|
+
// command to the installed craftbot.py.
|
|
3
|
+
//
|
|
4
|
+
// Nothing is installed by this package itself. A missing CraftBot is set up
|
|
5
|
+
// by the release's own installer (launcher/), run without a window
|
|
6
|
+
// (`--headless install`): the same pipeline as the setup window, with its
|
|
7
|
+
// pinned Python and verified downloads. The installer is fetched from this
|
|
8
|
+
// version's GitHub release and checked against checksums.json, which the
|
|
9
|
+
// publish workflow (.github/workflows/npm.yml) writes from those assets.
|
|
10
|
+
|
|
11
|
+
import { spawn, execFileSync } from "node:child_process";
|
|
12
|
+
import { createHash } from "node:crypto";
|
|
13
|
+
import { createWriteStream, existsSync, readFileSync } from "node:fs";
|
|
14
|
+
import { chmod, mkdtemp, rm } from "node:fs/promises";
|
|
15
|
+
import os from "node:os";
|
|
16
|
+
import path from "node:path";
|
|
17
|
+
import { Readable } from "node:stream";
|
|
18
|
+
import { pipeline } from "node:stream/promises";
|
|
19
|
+
import { fileURLToPath } from "node:url";
|
|
20
|
+
|
|
21
|
+
const PACKAGE_DIR = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
22
|
+
const RELEASES = "https://github.com/CraftOS-dev/CraftBot/releases";
|
|
23
|
+
|
|
24
|
+
/** Commands that set CraftBot up first when it is not installed. */
|
|
25
|
+
const INSTALLS_FIRST = new Set([undefined, "open", "start", "install"]);
|
|
26
|
+
|
|
27
|
+
export function packageVersion() {
|
|
28
|
+
return JSON.parse(readFileSync(path.join(PACKAGE_DIR, "package.json"), "utf8")).version;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function loadChecksums() {
|
|
32
|
+
try {
|
|
33
|
+
return JSON.parse(readFileSync(path.join(PACKAGE_DIR, "checksums.json"), "utf8"));
|
|
34
|
+
} catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** The data root, as launcher/src/paths.rs (user_data_root) resolves it. */
|
|
40
|
+
export function dataRoot(env = process.env, platform = process.platform, home = os.homedir()) {
|
|
41
|
+
const p = platform === "win32" ? path.win32 : path.posix;
|
|
42
|
+
const override = homeOverride(env, platform, home);
|
|
43
|
+
if (override) return override;
|
|
44
|
+
if (platform === "win32") {
|
|
45
|
+
return p.join(env.LOCALAPPDATA || p.join(home, "AppData", "Local"), "CraftBot");
|
|
46
|
+
}
|
|
47
|
+
if (platform === "darwin") {
|
|
48
|
+
return p.join(home, "Library", "Application Support", "CraftBot");
|
|
49
|
+
}
|
|
50
|
+
return p.join(env.XDG_DATA_HOME || p.join(home, ".local", "share"), "craftbot");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** CRAFTBOT_HOME made absolute, as paths.rs (home_override) does. */
|
|
54
|
+
export function homeOverride(env = process.env, platform = process.platform, home = os.homedir()) {
|
|
55
|
+
const p = platform === "win32" ? path.win32 : path.posix;
|
|
56
|
+
const raw = (env.CRAFTBOT_HOME || "").trim();
|
|
57
|
+
if (!raw) return null;
|
|
58
|
+
const expanded = raw.startsWith("~") ? p.join(home, raw.slice(1).replace(/^[/\\]+/, "")) : raw;
|
|
59
|
+
return p.resolve(expanded);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** What the installer recorded (launcher.json), when it still holds. */
|
|
63
|
+
export function readRecord(root = dataRoot()) {
|
|
64
|
+
let record;
|
|
65
|
+
try {
|
|
66
|
+
record = JSON.parse(readFileSync(path.join(root, "launcher.json"), "utf8"));
|
|
67
|
+
} catch {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
const dir = record?.install_dir;
|
|
71
|
+
const python = record?.python;
|
|
72
|
+
if (!dir || !python) return null;
|
|
73
|
+
if (!existsSync(path.join(dir, "craftbot.py")) || !existsSync(python)) return null;
|
|
74
|
+
return { dir, python, version: record.version || "" };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** The release asset holding this computer's installer, or null. */
|
|
78
|
+
export function installerAsset(platform = process.platform, arch = process.arch) {
|
|
79
|
+
if (platform === "darwin") return "CraftBotInstaller-macos.zip"; // universal
|
|
80
|
+
// x64 runs on ARM64 Windows through its emulation.
|
|
81
|
+
if (platform === "win32" && (arch === "x64" || arch === "arm64")) {
|
|
82
|
+
return "CraftBotInstaller-windows.exe";
|
|
83
|
+
}
|
|
84
|
+
if (platform === "linux" && arch === "x64") return "CraftBotInstaller-linux-x86_64";
|
|
85
|
+
if (platform === "linux" && arch === "arm64") return "CraftBotInstaller-linux-aarch64";
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** -1, 0 or 1 for two x.y.z versions; null when either is not one. */
|
|
90
|
+
export function compareVersions(a, b) {
|
|
91
|
+
const parse = (v) => {
|
|
92
|
+
const m = /^v?(\d+)\.(\d+)\.(\d+)/.exec(v || "");
|
|
93
|
+
return m ? m.slice(1).map(Number) : null;
|
|
94
|
+
};
|
|
95
|
+
const x = parse(a);
|
|
96
|
+
const y = parse(b);
|
|
97
|
+
if (!x || !y) return null;
|
|
98
|
+
for (let i = 0; i < 3; i++) {
|
|
99
|
+
if (x[i] !== y[i]) return x[i] < y[i] ? -1 : 1;
|
|
100
|
+
}
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** The environment craftbot.py runs in, as launcher/src/craftbot.rs sets it. */
|
|
105
|
+
export function childEnv(python, env = process.env) {
|
|
106
|
+
const stripped = new Set([
|
|
107
|
+
"PYTHONHOME",
|
|
108
|
+
"PYTHONPATH",
|
|
109
|
+
"PYTHONSTARTUP",
|
|
110
|
+
"PYTHONEXECUTABLE",
|
|
111
|
+
"PYTHONUSERBASE",
|
|
112
|
+
"VIRTUAL_ENV",
|
|
113
|
+
"CONDA_PREFIX",
|
|
114
|
+
]);
|
|
115
|
+
const pipKept = new Set(["PIP_INDEX_URL", "PIP_EXTRA_INDEX_URL", "PIP_TRUSTED_HOST", "PIP_CERT"]);
|
|
116
|
+
const out = {};
|
|
117
|
+
for (const [name, value] of Object.entries(env)) {
|
|
118
|
+
const upper = name.toUpperCase();
|
|
119
|
+
if (stripped.has(upper) || (upper.startsWith("PIP_") && !pipKept.has(upper))) continue;
|
|
120
|
+
out[name] = value;
|
|
121
|
+
}
|
|
122
|
+
Object.assign(out, {
|
|
123
|
+
PYTHONNOUSERSITE: "1",
|
|
124
|
+
PYTHONUTF8: "1",
|
|
125
|
+
PYTHONIOENCODING: "utf-8",
|
|
126
|
+
PIP_DISABLE_PIP_VERSION_CHECK: "1",
|
|
127
|
+
CRAFTBOT_PYTHON: python,
|
|
128
|
+
});
|
|
129
|
+
const home = homeOverride(env);
|
|
130
|
+
if (home) out.CRAFTBOT_HOME = home;
|
|
131
|
+
return out;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Run a program in this terminal; resolves to its exit code. */
|
|
135
|
+
function run(program, args, options = {}) {
|
|
136
|
+
return new Promise((resolve, reject) => {
|
|
137
|
+
const child = spawn(program, args, { stdio: "inherit", ...options });
|
|
138
|
+
// Ctrl+C reaches the child through the terminal; this process waits for
|
|
139
|
+
// it to finish rather than dying first.
|
|
140
|
+
const ignore = () => {};
|
|
141
|
+
process.on("SIGINT", ignore);
|
|
142
|
+
child.on("error", (e) => {
|
|
143
|
+
process.off("SIGINT", ignore);
|
|
144
|
+
reject(e);
|
|
145
|
+
});
|
|
146
|
+
child.on("exit", (code, signal) => {
|
|
147
|
+
process.off("SIGINT", ignore);
|
|
148
|
+
resolve(code ?? (signal ? 1 : 0));
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** Download url to file, failing unless its SHA-256 is sha256. */
|
|
154
|
+
export async function download(url, file, sha256, { fetchImpl = fetch, log = () => {} } = {}) {
|
|
155
|
+
const response = await fetchImpl(url, { redirect: "follow" });
|
|
156
|
+
if (!response.ok || !response.body) {
|
|
157
|
+
throw new Error(`could not download ${url}: HTTP ${response.status}`);
|
|
158
|
+
}
|
|
159
|
+
const total = Number(response.headers.get("content-length")) || 0;
|
|
160
|
+
const hash = createHash("sha256");
|
|
161
|
+
let read = 0;
|
|
162
|
+
let shown = -1;
|
|
163
|
+
await pipeline(
|
|
164
|
+
Readable.fromWeb(response.body),
|
|
165
|
+
async function* (chunks) {
|
|
166
|
+
for await (const chunk of chunks) {
|
|
167
|
+
hash.update(chunk);
|
|
168
|
+
read += chunk.length;
|
|
169
|
+
const mb = Math.floor(read / 1048576);
|
|
170
|
+
if (mb !== shown) {
|
|
171
|
+
shown = mb;
|
|
172
|
+
log(total ? `${mb} / ${Math.ceil(total / 1048576)} MB` : `${mb} MB`);
|
|
173
|
+
}
|
|
174
|
+
yield chunk;
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
createWriteStream(file),
|
|
178
|
+
);
|
|
179
|
+
const actual = hash.digest("hex");
|
|
180
|
+
if (actual !== sha256.toLowerCase()) {
|
|
181
|
+
await rm(file, { force: true });
|
|
182
|
+
throw new Error(`${path.basename(file)} does not match its published checksum (got ${actual}).`);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function progress(text) {
|
|
187
|
+
if (process.stderr.isTTY) process.stderr.write(`\r Downloading CraftBot Setup… ${text} `);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Run one installer job (`install`, `repair`) with no window. The installer
|
|
192
|
+
* is this package version's, so it installs that CraftBot version.
|
|
193
|
+
*/
|
|
194
|
+
export async function runInstaller(job, version = packageVersion(), checksums = loadChecksums()) {
|
|
195
|
+
const local = process.env.CRAFTBOT_INSTALLER;
|
|
196
|
+
if (local) return run(local, ["--headless", ...job]);
|
|
197
|
+
|
|
198
|
+
const asset = installerAsset();
|
|
199
|
+
if (!asset) {
|
|
200
|
+
throw new Error(
|
|
201
|
+
`CraftBot has no installer for ${process.platform} ${process.arch}. ` +
|
|
202
|
+
`See ${RELEASES} for other ways to install it.`,
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
const sha256 = checksums?.version === version ? checksums.assets?.[asset] : null;
|
|
206
|
+
if (!sha256) {
|
|
207
|
+
throw new Error(
|
|
208
|
+
`This craftbot package (${version}) carries no checksum for ${asset}, so it will not ` +
|
|
209
|
+
`download it. Install a published version (npx craftbot@latest), or set ` +
|
|
210
|
+
`CRAFTBOT_INSTALLER to an installer you downloaded from ${RELEASES}.`,
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const tmp = await mkdtemp(path.join(os.tmpdir(), "craftbot-"));
|
|
215
|
+
try {
|
|
216
|
+
const file = path.join(tmp, asset);
|
|
217
|
+
await download(`${RELEASES}/download/v${version}/${asset}`, file, sha256, { log: progress });
|
|
218
|
+
if (process.stderr.isTTY) process.stderr.write("\n");
|
|
219
|
+
let exe = file;
|
|
220
|
+
if (asset.endsWith(".zip")) {
|
|
221
|
+
execFileSync("ditto", ["-x", "-k", file, tmp]);
|
|
222
|
+
exe = path.join(tmp, "CraftBotInstaller.app", "Contents", "MacOS", "CraftBotInstaller");
|
|
223
|
+
}
|
|
224
|
+
if (process.platform !== "win32") await chmod(exe, 0o755);
|
|
225
|
+
return await run(exe, ["--headless", ...job]);
|
|
226
|
+
} finally {
|
|
227
|
+
await rm(tmp, { recursive: true, force: true });
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function runCraftbot(record, args) {
|
|
232
|
+
return run(record.python, [path.join(record.dir, "craftbot.py"), ...args], {
|
|
233
|
+
cwd: record.dir,
|
|
234
|
+
env: childEnv(record.python),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function usage(version) {
|
|
239
|
+
return `craftbot ${version}: install and run CraftBot
|
|
240
|
+
|
|
241
|
+
npx craftbot install CraftBot if needed, start it and open it
|
|
242
|
+
npx craftbot update update CraftBot to this package's version
|
|
243
|
+
npx craftbot uninstall remove CraftBot (your data and settings stay)
|
|
244
|
+
npx craftbot <command> run a CraftBot command:
|
|
245
|
+
start, stop, restart, status, logs, tui, doctor,
|
|
246
|
+
autostart, repair
|
|
247
|
+
|
|
248
|
+
CraftBot opens in its desktop app when that is installed, else in your browser.
|
|
249
|
+
More: ${RELEASES}`;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export async function main(argv = process.argv.slice(2)) {
|
|
253
|
+
const version = packageVersion();
|
|
254
|
+
const [command, ...rest] = argv;
|
|
255
|
+
|
|
256
|
+
if (command === "-h" || command === "--help" || command === "help") {
|
|
257
|
+
console.log(usage(version));
|
|
258
|
+
return 0;
|
|
259
|
+
}
|
|
260
|
+
if (command === "-v" || command === "--version") {
|
|
261
|
+
const record = readRecord();
|
|
262
|
+
console.log(`craftbot ${version}${record ? ` (CraftBot ${record.version} installed)` : ""}`);
|
|
263
|
+
return 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let record = readRecord();
|
|
267
|
+
|
|
268
|
+
if (command === "update") {
|
|
269
|
+
if (!record) {
|
|
270
|
+
console.error("CraftBot is not installed. Run: npx craftbot");
|
|
271
|
+
return 1;
|
|
272
|
+
}
|
|
273
|
+
if (compareVersions(record.version, version) >= 0) {
|
|
274
|
+
console.log(`CraftBot ${record.version} is up to date.`);
|
|
275
|
+
return 0;
|
|
276
|
+
}
|
|
277
|
+
console.log(`Updating CraftBot ${record.version} to ${version}…`);
|
|
278
|
+
return runInstaller(["repair"], version);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (command === "uninstall") {
|
|
282
|
+
if (!record) {
|
|
283
|
+
console.error("CraftBot is not installed.");
|
|
284
|
+
return 1;
|
|
285
|
+
}
|
|
286
|
+
// The installer's uninstall: craftbot.py uninstall (the agent, its
|
|
287
|
+
// auto-start, the shortcut), then the program and its Python. The data
|
|
288
|
+
// folder stays.
|
|
289
|
+
return runInstaller(["uninstall"], version);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (!record) {
|
|
293
|
+
if (!INSTALLS_FIRST.has(command)) {
|
|
294
|
+
console.error("CraftBot is not installed. Run: npx craftbot");
|
|
295
|
+
return 1;
|
|
296
|
+
}
|
|
297
|
+
console.log(`Installing CraftBot ${version}…`);
|
|
298
|
+
const code = await runInstaller(["install"], version);
|
|
299
|
+
if (code !== 0) return code;
|
|
300
|
+
record = readRecord();
|
|
301
|
+
if (!record) {
|
|
302
|
+
console.error(`The installer finished, but no CraftBot install was recorded in ${dataRoot()}.`);
|
|
303
|
+
return 1;
|
|
304
|
+
}
|
|
305
|
+
// The installer already ran `craftbot.py install`.
|
|
306
|
+
if (command === "install") return 0;
|
|
307
|
+
} else if (command === undefined && compareVersions(record.version, version) === -1) {
|
|
308
|
+
console.error(`CraftBot ${record.version} is installed; ${version} is available: npx craftbot@latest update`);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return runCraftbot(record, command === undefined ? ["open"] : argv);
|
|
312
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "craftbot",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.4.5",
|
|
4
|
+
"description": "Install and run CraftBot, the AI agent that builds and runs its own tools",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "CraftOS",
|
|
7
|
+
"homepage": "https://github.com/CraftOS-dev/CraftBot#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/CraftOS-dev/CraftBot.git",
|
|
11
|
+
"directory": "npm"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/CraftOS-dev/CraftBot/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"craftbot",
|
|
16
|
+
"ai",
|
|
17
|
+
"agent",
|
|
18
|
+
"assistant"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"bin": {
|
|
22
|
+
"craftbot": "bin/craftbot.js"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/",
|
|
26
|
+
"lib/",
|
|
27
|
+
"checksums.json"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.17"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"test": "node --test test/"
|
|
34
|
+
}
|
|
35
|
+
}
|