neoctl 0.2.9 → 0.2.10
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/core/image-registry.js +9 -1
- package/dist/core/image-registry.js.map +1 -1
- package/dist/session/smoke-session.js +1 -1
- package/dist/session/tool-result-memory.d.ts +3 -0
- package/dist/session/tool-result-memory.js +9 -19
- package/dist/session/tool-result-memory.js.map +1 -1
- package/dist/tools/builtins/image-generation-tool.d.ts +10 -0
- package/dist/tools/builtins/image-generation-tool.js +82 -4
- package/dist/tools/builtins/image-generation-tool.js.map +1 -1
- package/dist/tools/registry.js +21 -2
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/run-tool-use.js +47 -7
- package/dist/tools/run-tool-use.js.map +1 -1
- package/dist/tools/smoke-tool-system.js +1 -1
- package/dist/tools/smoke-tool-system.js.map +1 -1
- package/package.json +2 -2
- package/scripts/copy-model-metadata.mjs +4 -4
- package/scripts/install-ripgrep.cjs +196 -196
- package/vendor/ripgrep/darwin-arm64/COPYING +3 -3
- package/vendor/ripgrep/darwin-arm64/LICENSE-MIT +21 -21
- package/vendor/ripgrep/darwin-arm64/UNLICENSE +24 -24
- package/vendor/ripgrep/darwin-arm64/manifest.json +7 -7
- package/vendor/ripgrep/darwin-x64/COPYING +3 -3
- package/vendor/ripgrep/darwin-x64/LICENSE-MIT +21 -21
- package/vendor/ripgrep/darwin-x64/UNLICENSE +24 -24
- package/vendor/ripgrep/darwin-x64/manifest.json +7 -7
- package/vendor/ripgrep/linux-arm64/COPYING +3 -3
- package/vendor/ripgrep/linux-arm64/LICENSE-MIT +21 -21
- package/vendor/ripgrep/linux-arm64/UNLICENSE +24 -24
- package/vendor/ripgrep/linux-arm64/manifest.json +7 -7
- package/vendor/ripgrep/linux-x64/COPYING +3 -3
- package/vendor/ripgrep/linux-x64/LICENSE-MIT +21 -21
- package/vendor/ripgrep/linux-x64/UNLICENSE +24 -24
- package/vendor/ripgrep/linux-x64/manifest.json +7 -7
- package/vendor/ripgrep/win32-arm64/manifest.json +7 -7
- package/vendor/ripgrep/win32-x64/COPYING +3 -3
- package/vendor/ripgrep/win32-x64/LICENSE-MIT +21 -21
- package/vendor/ripgrep/win32-x64/UNLICENSE +24 -24
- package/vendor/ripgrep/win32-x64/manifest.json +7 -7
- package/scripts/patch-ink-clear-terminal.cjs +0 -55
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const fs = require("node:fs");
|
|
3
|
-
const fsp = require("node:fs/promises");
|
|
4
|
-
const os = require("node:os");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const { execFileSync } = require("node:child_process");
|
|
7
|
-
|
|
8
|
-
const REPO = "BurntSushi/ripgrep";
|
|
9
|
-
const LATEST_RELEASE_URL = `https://api.github.com/repos/${REPO}/releases/latest`;
|
|
10
|
-
const PROJECT_ROOT = path.resolve(__dirname, "..");
|
|
11
|
-
const VENDOR_ROOT = path.join(PROJECT_ROOT, "vendor", "ripgrep");
|
|
12
|
-
const OPTIONAL = process.argv.includes("--optional");
|
|
13
|
-
const FORCE = process.argv.includes("--force");
|
|
14
|
-
const ALL = process.argv.includes("--all");
|
|
15
|
-
|
|
16
|
-
const TARGETS = {
|
|
17
|
-
"win32-x64": [/x86_64-pc-windows-msvc\.zip$/i],
|
|
18
|
-
"win32-arm64": [/aarch64-pc-windows-msvc\.zip$/i],
|
|
19
|
-
"linux-x64": [/x86_64-unknown-linux-musl\.tar\.gz$/i, /x86_64-unknown-linux-gnu\.tar\.gz$/i],
|
|
20
|
-
"linux-arm64": [/aarch64-unknown-linux-gnu\.tar\.gz$/i, /aarch64-unknown-linux-musl\.tar\.gz$/i],
|
|
21
|
-
"darwin-x64": [/x86_64-apple-darwin\.tar\.gz$/i],
|
|
22
|
-
"darwin-arm64": [/aarch64-apple-darwin\.tar\.gz$/i],
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
main().catch((error) => {
|
|
26
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
27
|
-
if (OPTIONAL) {
|
|
28
|
-
console.warn(`[ripgrep] optional install skipped: ${message}`);
|
|
29
|
-
process.exit(0);
|
|
30
|
-
}
|
|
31
|
-
console.error(`[ripgrep] install failed: ${message}`);
|
|
32
|
-
process.exit(1);
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
async function main() {
|
|
36
|
-
const release = await getJson(LATEST_RELEASE_URL);
|
|
37
|
-
const keys = ALL ? Object.keys(TARGETS) : [platformKey()];
|
|
38
|
-
for (const key of keys) {
|
|
39
|
-
await installTarget(release, key);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
async function installTarget(release, key) {
|
|
44
|
-
const executable = key.startsWith("win32-") ? "rg.exe" : "rg";
|
|
45
|
-
const targetDir = path.join(VENDOR_ROOT, key);
|
|
46
|
-
const targetPath = path.join(targetDir, executable);
|
|
47
|
-
|
|
48
|
-
if (!FORCE && fs.existsSync(targetPath)) {
|
|
49
|
-
console.error(`[ripgrep] using existing ${path.relative(PROJECT_ROOT, targetPath)}`);
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const asset = selectAsset(release.assets ?? [], key);
|
|
54
|
-
if (!asset) throw new Error(`no ripgrep release asset found for ${key}`);
|
|
55
|
-
|
|
56
|
-
const tempDir = await fsp.mkdtemp(path.join(os.tmpdir(), "agent-rg-"));
|
|
57
|
-
try {
|
|
58
|
-
const archivePath = path.join(tempDir, asset.name);
|
|
59
|
-
const extractDir = path.join(tempDir, "extract");
|
|
60
|
-
await fsp.mkdir(extractDir, { recursive: true });
|
|
61
|
-
|
|
62
|
-
console.error(`[ripgrep] downloading ${asset.name}`);
|
|
63
|
-
await download(asset.browser_download_url, archivePath);
|
|
64
|
-
extractArchive(archivePath, extractDir);
|
|
65
|
-
|
|
66
|
-
const binaryPath = await findFile(extractDir, executable);
|
|
67
|
-
if (!binaryPath) throw new Error(`${executable} not found inside ${asset.name}`);
|
|
68
|
-
|
|
69
|
-
await fsp.rm(targetDir, { recursive: true, force: true });
|
|
70
|
-
await fsp.mkdir(targetDir, { recursive: true });
|
|
71
|
-
await fsp.copyFile(binaryPath, targetPath);
|
|
72
|
-
if (!key.startsWith("win32-")) await fsp.chmod(targetPath, 0o755);
|
|
73
|
-
|
|
74
|
-
await copyLicenseFiles(extractDir, targetDir);
|
|
75
|
-
await fsp.writeFile(
|
|
76
|
-
path.join(targetDir, "manifest.json"),
|
|
77
|
-
`${JSON.stringify({
|
|
78
|
-
name: "ripgrep",
|
|
79
|
-
version: release.tag_name,
|
|
80
|
-
source: release.html_url,
|
|
81
|
-
asset: asset.name,
|
|
82
|
-
installedAt: new Date().toISOString(),
|
|
83
|
-
}, null, 2)}\n`,
|
|
84
|
-
"utf8",
|
|
85
|
-
);
|
|
86
|
-
console.error(`[ripgrep] installed ${path.relative(PROJECT_ROOT, targetPath)}`);
|
|
87
|
-
} finally {
|
|
88
|
-
await fsp.rm(tempDir, { recursive: true, force: true });
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function platformKey() {
|
|
93
|
-
const key = `${process.platform}-${process.arch}`;
|
|
94
|
-
if (!TARGETS[key]) throw new Error(`unsupported platform: ${key}`);
|
|
95
|
-
return key;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function selectAsset(assets, key) {
|
|
99
|
-
const patterns = TARGETS[key];
|
|
100
|
-
return assets.find((asset) => patterns.some((pattern) => pattern.test(asset.name)));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
async function getJson(url) {
|
|
104
|
-
try {
|
|
105
|
-
const response = await fetchWithRetry(url, {
|
|
106
|
-
headers: {
|
|
107
|
-
Accept: "application/vnd.github+json",
|
|
108
|
-
"User-Agent": "agent-scaffold-ripgrep-installer",
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
if (!response.ok) throw new Error(`GET ${url} returned ${response.status}: ${(await response.text()).slice(0, 200)}`);
|
|
112
|
-
return response.json();
|
|
113
|
-
} catch (error) {
|
|
114
|
-
const body = curlGet(url);
|
|
115
|
-
return JSON.parse(body.toString("utf8"));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
async function download(url, destination) {
|
|
120
|
-
try {
|
|
121
|
-
const response = await fetchWithRetry(url, { headers: { "User-Agent": "agent-scaffold-ripgrep-installer" } });
|
|
122
|
-
if (!response.ok) throw new Error(`download returned ${response.status}`);
|
|
123
|
-
await fsp.writeFile(destination, Buffer.from(await response.arrayBuffer()));
|
|
124
|
-
} catch (error) {
|
|
125
|
-
curlDownload(url, destination);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
async function fetchWithRetry(url, options, attempts = 3) {
|
|
130
|
-
let lastError;
|
|
131
|
-
for (let attempt = 1; attempt <= attempts; attempt += 1) {
|
|
132
|
-
try {
|
|
133
|
-
const response = await fetch(url, options);
|
|
134
|
-
if (response.ok || response.status < 500 || attempt === attempts) return response;
|
|
135
|
-
lastError = new Error(`HTTP ${response.status}`);
|
|
136
|
-
} catch (error) {
|
|
137
|
-
lastError = error;
|
|
138
|
-
if (attempt === attempts) break;
|
|
139
|
-
}
|
|
140
|
-
await delay(1000 * attempt);
|
|
141
|
-
}
|
|
142
|
-
throw lastError;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function delay(ms) {
|
|
146
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function curlGet(url) {
|
|
150
|
-
return execFileSync("curl", ["-fL", "--retry", "3", "--retry-delay", "1", "-H", "Accept: application/vnd.github+json", "-H", "User-Agent: agent-scaffold-ripgrep-installer", url], { maxBuffer: 1024 * 1024 * 20 });
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function curlDownload(url, destination) {
|
|
154
|
-
execFileSync("curl", ["-fL", "--retry", "3", "--retry-delay", "1", "-H", "User-Agent: agent-scaffold-ripgrep-installer", "-o", destination, url], { stdio: "ignore" });
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function extractArchive(archivePath, destination) {
|
|
158
|
-
try {
|
|
159
|
-
execFileSync("tar", ["-xf", archivePath, "-C", destination], { stdio: "ignore" });
|
|
160
|
-
return;
|
|
161
|
-
} catch (error) {
|
|
162
|
-
if (process.platform !== "win32" || !archivePath.toLowerCase().endsWith(".zip")) throw error;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
execFileSync("powershell", [
|
|
166
|
-
"-NoProfile",
|
|
167
|
-
"-Command",
|
|
168
|
-
"Expand-Archive -LiteralPath $args[0] -DestinationPath $args[1] -Force",
|
|
169
|
-
archivePath,
|
|
170
|
-
destination,
|
|
171
|
-
], { stdio: "ignore" });
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
async function findFile(root, fileName) {
|
|
175
|
-
const entries = await fsp.readdir(root, { withFileTypes: true });
|
|
176
|
-
for (const entry of entries) {
|
|
177
|
-
const fullPath = path.join(root, entry.name);
|
|
178
|
-
if (entry.isFile() && entry.name === fileName) return fullPath;
|
|
179
|
-
if (entry.isDirectory()) {
|
|
180
|
-
const found = await findFile(fullPath, fileName);
|
|
181
|
-
if (found) return found;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return undefined;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
async function copyLicenseFiles(root, targetDir) {
|
|
188
|
-
const entries = await fsp.readdir(root, { withFileTypes: true });
|
|
189
|
-
for (const entry of entries) {
|
|
190
|
-
const fullPath = path.join(root, entry.name);
|
|
191
|
-
if (entry.isFile() && /^licen[sc]e|copying|unlicense/i.test(entry.name)) {
|
|
192
|
-
await fsp.copyFile(fullPath, path.join(targetDir, entry.name));
|
|
193
|
-
}
|
|
194
|
-
if (entry.isDirectory()) await copyLicenseFiles(fullPath, targetDir);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const fs = require("node:fs");
|
|
3
|
+
const fsp = require("node:fs/promises");
|
|
4
|
+
const os = require("node:os");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
const { execFileSync } = require("node:child_process");
|
|
7
|
+
|
|
8
|
+
const REPO = "BurntSushi/ripgrep";
|
|
9
|
+
const LATEST_RELEASE_URL = `https://api.github.com/repos/${REPO}/releases/latest`;
|
|
10
|
+
const PROJECT_ROOT = path.resolve(__dirname, "..");
|
|
11
|
+
const VENDOR_ROOT = path.join(PROJECT_ROOT, "vendor", "ripgrep");
|
|
12
|
+
const OPTIONAL = process.argv.includes("--optional");
|
|
13
|
+
const FORCE = process.argv.includes("--force");
|
|
14
|
+
const ALL = process.argv.includes("--all");
|
|
15
|
+
|
|
16
|
+
const TARGETS = {
|
|
17
|
+
"win32-x64": [/x86_64-pc-windows-msvc\.zip$/i],
|
|
18
|
+
"win32-arm64": [/aarch64-pc-windows-msvc\.zip$/i],
|
|
19
|
+
"linux-x64": [/x86_64-unknown-linux-musl\.tar\.gz$/i, /x86_64-unknown-linux-gnu\.tar\.gz$/i],
|
|
20
|
+
"linux-arm64": [/aarch64-unknown-linux-gnu\.tar\.gz$/i, /aarch64-unknown-linux-musl\.tar\.gz$/i],
|
|
21
|
+
"darwin-x64": [/x86_64-apple-darwin\.tar\.gz$/i],
|
|
22
|
+
"darwin-arm64": [/aarch64-apple-darwin\.tar\.gz$/i],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
main().catch((error) => {
|
|
26
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
27
|
+
if (OPTIONAL) {
|
|
28
|
+
console.warn(`[ripgrep] optional install skipped: ${message}`);
|
|
29
|
+
process.exit(0);
|
|
30
|
+
}
|
|
31
|
+
console.error(`[ripgrep] install failed: ${message}`);
|
|
32
|
+
process.exit(1);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
async function main() {
|
|
36
|
+
const release = await getJson(LATEST_RELEASE_URL);
|
|
37
|
+
const keys = ALL ? Object.keys(TARGETS) : [platformKey()];
|
|
38
|
+
for (const key of keys) {
|
|
39
|
+
await installTarget(release, key);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async function installTarget(release, key) {
|
|
44
|
+
const executable = key.startsWith("win32-") ? "rg.exe" : "rg";
|
|
45
|
+
const targetDir = path.join(VENDOR_ROOT, key);
|
|
46
|
+
const targetPath = path.join(targetDir, executable);
|
|
47
|
+
|
|
48
|
+
if (!FORCE && fs.existsSync(targetPath)) {
|
|
49
|
+
console.error(`[ripgrep] using existing ${path.relative(PROJECT_ROOT, targetPath)}`);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const asset = selectAsset(release.assets ?? [], key);
|
|
54
|
+
if (!asset) throw new Error(`no ripgrep release asset found for ${key}`);
|
|
55
|
+
|
|
56
|
+
const tempDir = await fsp.mkdtemp(path.join(os.tmpdir(), "agent-rg-"));
|
|
57
|
+
try {
|
|
58
|
+
const archivePath = path.join(tempDir, asset.name);
|
|
59
|
+
const extractDir = path.join(tempDir, "extract");
|
|
60
|
+
await fsp.mkdir(extractDir, { recursive: true });
|
|
61
|
+
|
|
62
|
+
console.error(`[ripgrep] downloading ${asset.name}`);
|
|
63
|
+
await download(asset.browser_download_url, archivePath);
|
|
64
|
+
extractArchive(archivePath, extractDir);
|
|
65
|
+
|
|
66
|
+
const binaryPath = await findFile(extractDir, executable);
|
|
67
|
+
if (!binaryPath) throw new Error(`${executable} not found inside ${asset.name}`);
|
|
68
|
+
|
|
69
|
+
await fsp.rm(targetDir, { recursive: true, force: true });
|
|
70
|
+
await fsp.mkdir(targetDir, { recursive: true });
|
|
71
|
+
await fsp.copyFile(binaryPath, targetPath);
|
|
72
|
+
if (!key.startsWith("win32-")) await fsp.chmod(targetPath, 0o755);
|
|
73
|
+
|
|
74
|
+
await copyLicenseFiles(extractDir, targetDir);
|
|
75
|
+
await fsp.writeFile(
|
|
76
|
+
path.join(targetDir, "manifest.json"),
|
|
77
|
+
`${JSON.stringify({
|
|
78
|
+
name: "ripgrep",
|
|
79
|
+
version: release.tag_name,
|
|
80
|
+
source: release.html_url,
|
|
81
|
+
asset: asset.name,
|
|
82
|
+
installedAt: new Date().toISOString(),
|
|
83
|
+
}, null, 2)}\n`,
|
|
84
|
+
"utf8",
|
|
85
|
+
);
|
|
86
|
+
console.error(`[ripgrep] installed ${path.relative(PROJECT_ROOT, targetPath)}`);
|
|
87
|
+
} finally {
|
|
88
|
+
await fsp.rm(tempDir, { recursive: true, force: true });
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function platformKey() {
|
|
93
|
+
const key = `${process.platform}-${process.arch}`;
|
|
94
|
+
if (!TARGETS[key]) throw new Error(`unsupported platform: ${key}`);
|
|
95
|
+
return key;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function selectAsset(assets, key) {
|
|
99
|
+
const patterns = TARGETS[key];
|
|
100
|
+
return assets.find((asset) => patterns.some((pattern) => pattern.test(asset.name)));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
async function getJson(url) {
|
|
104
|
+
try {
|
|
105
|
+
const response = await fetchWithRetry(url, {
|
|
106
|
+
headers: {
|
|
107
|
+
Accept: "application/vnd.github+json",
|
|
108
|
+
"User-Agent": "agent-scaffold-ripgrep-installer",
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
if (!response.ok) throw new Error(`GET ${url} returned ${response.status}: ${(await response.text()).slice(0, 200)}`);
|
|
112
|
+
return response.json();
|
|
113
|
+
} catch (error) {
|
|
114
|
+
const body = curlGet(url);
|
|
115
|
+
return JSON.parse(body.toString("utf8"));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
async function download(url, destination) {
|
|
120
|
+
try {
|
|
121
|
+
const response = await fetchWithRetry(url, { headers: { "User-Agent": "agent-scaffold-ripgrep-installer" } });
|
|
122
|
+
if (!response.ok) throw new Error(`download returned ${response.status}`);
|
|
123
|
+
await fsp.writeFile(destination, Buffer.from(await response.arrayBuffer()));
|
|
124
|
+
} catch (error) {
|
|
125
|
+
curlDownload(url, destination);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
async function fetchWithRetry(url, options, attempts = 3) {
|
|
130
|
+
let lastError;
|
|
131
|
+
for (let attempt = 1; attempt <= attempts; attempt += 1) {
|
|
132
|
+
try {
|
|
133
|
+
const response = await fetch(url, options);
|
|
134
|
+
if (response.ok || response.status < 500 || attempt === attempts) return response;
|
|
135
|
+
lastError = new Error(`HTTP ${response.status}`);
|
|
136
|
+
} catch (error) {
|
|
137
|
+
lastError = error;
|
|
138
|
+
if (attempt === attempts) break;
|
|
139
|
+
}
|
|
140
|
+
await delay(1000 * attempt);
|
|
141
|
+
}
|
|
142
|
+
throw lastError;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function delay(ms) {
|
|
146
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function curlGet(url) {
|
|
150
|
+
return execFileSync("curl", ["-fL", "--retry", "3", "--retry-delay", "1", "-H", "Accept: application/vnd.github+json", "-H", "User-Agent: agent-scaffold-ripgrep-installer", url], { maxBuffer: 1024 * 1024 * 20 });
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function curlDownload(url, destination) {
|
|
154
|
+
execFileSync("curl", ["-fL", "--retry", "3", "--retry-delay", "1", "-H", "User-Agent: agent-scaffold-ripgrep-installer", "-o", destination, url], { stdio: "ignore" });
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function extractArchive(archivePath, destination) {
|
|
158
|
+
try {
|
|
159
|
+
execFileSync("tar", ["-xf", archivePath, "-C", destination], { stdio: "ignore" });
|
|
160
|
+
return;
|
|
161
|
+
} catch (error) {
|
|
162
|
+
if (process.platform !== "win32" || !archivePath.toLowerCase().endsWith(".zip")) throw error;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
execFileSync("powershell", [
|
|
166
|
+
"-NoProfile",
|
|
167
|
+
"-Command",
|
|
168
|
+
"Expand-Archive -LiteralPath $args[0] -DestinationPath $args[1] -Force",
|
|
169
|
+
archivePath,
|
|
170
|
+
destination,
|
|
171
|
+
], { stdio: "ignore" });
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
async function findFile(root, fileName) {
|
|
175
|
+
const entries = await fsp.readdir(root, { withFileTypes: true });
|
|
176
|
+
for (const entry of entries) {
|
|
177
|
+
const fullPath = path.join(root, entry.name);
|
|
178
|
+
if (entry.isFile() && entry.name === fileName) return fullPath;
|
|
179
|
+
if (entry.isDirectory()) {
|
|
180
|
+
const found = await findFile(fullPath, fileName);
|
|
181
|
+
if (found) return found;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
async function copyLicenseFiles(root, targetDir) {
|
|
188
|
+
const entries = await fsp.readdir(root, { withFileTypes: true });
|
|
189
|
+
for (const entry of entries) {
|
|
190
|
+
const fullPath = path.join(root, entry.name);
|
|
191
|
+
if (entry.isFile() && /^licen[sc]e|copying|unlicense/i.test(entry.name)) {
|
|
192
|
+
await fsp.copyFile(fullPath, path.join(targetDir, entry.name));
|
|
193
|
+
}
|
|
194
|
+
if (entry.isDirectory()) await copyLicenseFiles(fullPath, targetDir);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
This project is dual-licensed under the Unlicense and MIT licenses.
|
|
2
|
-
|
|
3
|
-
You may use this code under the terms of either license.
|
|
1
|
+
This project is dual-licensed under the Unlicense and MIT licenses.
|
|
2
|
+
|
|
3
|
+
You may use this code under the terms of either license.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Andrew Gallant
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Andrew Gallant
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
This is free and unencumbered software released into the public domain.
|
|
2
|
-
|
|
3
|
-
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
-
distribute this software, either in source code form or as a compiled
|
|
5
|
-
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
-
means.
|
|
7
|
-
|
|
8
|
-
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
-
of this software dedicate any and all copyright interest in the
|
|
10
|
-
software to the public domain. We make this dedication for the benefit
|
|
11
|
-
of the public at large and to the detriment of our heirs and
|
|
12
|
-
successors. We intend this dedication to be an overt act of
|
|
13
|
-
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
-
software under copyright law.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
24
|
-
For more information, please refer to <http://unlicense.org/>
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <http://unlicense.org/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ripgrep",
|
|
3
|
-
"version": "15.1.0",
|
|
4
|
-
"source": "https://github.com/BurntSushi/ripgrep/releases/tag/15.1.0",
|
|
5
|
-
"asset": "ripgrep-15.1.0-aarch64-apple-darwin.tar.gz",
|
|
6
|
-
"installedAt": "2026-06-08T09:43:36.746Z"
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ripgrep",
|
|
3
|
+
"version": "15.1.0",
|
|
4
|
+
"source": "https://github.com/BurntSushi/ripgrep/releases/tag/15.1.0",
|
|
5
|
+
"asset": "ripgrep-15.1.0-aarch64-apple-darwin.tar.gz",
|
|
6
|
+
"installedAt": "2026-06-08T09:43:36.746Z"
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
This project is dual-licensed under the Unlicense and MIT licenses.
|
|
2
|
-
|
|
3
|
-
You may use this code under the terms of either license.
|
|
1
|
+
This project is dual-licensed under the Unlicense and MIT licenses.
|
|
2
|
+
|
|
3
|
+
You may use this code under the terms of either license.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Andrew Gallant
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Andrew Gallant
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
This is free and unencumbered software released into the public domain.
|
|
2
|
-
|
|
3
|
-
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
-
distribute this software, either in source code form or as a compiled
|
|
5
|
-
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
-
means.
|
|
7
|
-
|
|
8
|
-
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
-
of this software dedicate any and all copyright interest in the
|
|
10
|
-
software to the public domain. We make this dedication for the benefit
|
|
11
|
-
of the public at large and to the detriment of our heirs and
|
|
12
|
-
successors. We intend this dedication to be an overt act of
|
|
13
|
-
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
-
software under copyright law.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
24
|
-
For more information, please refer to <http://unlicense.org/>
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <http://unlicense.org/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ripgrep",
|
|
3
|
-
"version": "15.1.0",
|
|
4
|
-
"source": "https://github.com/BurntSushi/ripgrep/releases/tag/15.1.0",
|
|
5
|
-
"asset": "ripgrep-15.1.0-x86_64-apple-darwin.tar.gz",
|
|
6
|
-
"installedAt": "2026-06-08T09:42:50.182Z"
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ripgrep",
|
|
3
|
+
"version": "15.1.0",
|
|
4
|
+
"source": "https://github.com/BurntSushi/ripgrep/releases/tag/15.1.0",
|
|
5
|
+
"asset": "ripgrep-15.1.0-x86_64-apple-darwin.tar.gz",
|
|
6
|
+
"installedAt": "2026-06-08T09:42:50.182Z"
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
This project is dual-licensed under the Unlicense and MIT licenses.
|
|
2
|
-
|
|
3
|
-
You may use this code under the terms of either license.
|
|
1
|
+
This project is dual-licensed under the Unlicense and MIT licenses.
|
|
2
|
+
|
|
3
|
+
You may use this code under the terms of either license.
|