@evref-bl/pharo-launcher-mcp 0.4.0 → 0.5.0
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 +29 -20
- package/dist/answers.d.ts +43 -0
- package/dist/answers.d.ts.map +1 -0
- package/dist/answers.js +744 -0
- package/dist/answers.js.map +1 -0
- package/dist/commandCatalog.d.ts +13 -1
- package/dist/commandCatalog.d.ts.map +1 -1
- package/dist/commandCatalog.js +65 -89
- package/dist/commandCatalog.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -1
- package/dist/config.js.map +1 -1
- package/dist/crossProfileCopy.d.ts +37 -0
- package/dist/crossProfileCopy.d.ts.map +1 -1
- package/dist/crossProfileCopy.js +77 -16
- package/dist/crossProfileCopy.js.map +1 -1
- package/dist/discovery.d.ts +8 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +10 -0
- package/dist/discovery.js.map +1 -1
- package/dist/imageStore.d.ts +139 -0
- package/dist/imageStore.d.ts.map +1 -0
- package/dist/imageStore.js +385 -0
- package/dist/imageStore.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/launcher.d.ts +64 -17
- package/dist/launcher.d.ts.map +1 -1
- package/dist/launcher.js +206 -167
- package/dist/launcher.js.map +1 -1
- package/dist/launcherCli.d.ts +13 -0
- package/dist/launcherCli.d.ts.map +1 -1
- package/dist/launcherCli.js +85 -91
- package/dist/launcherCli.js.map +1 -1
- package/dist/models.d.ts +117 -6
- package/dist/models.d.ts.map +1 -1
- package/dist/parser.d.ts +20 -7
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +48 -207
- package/dist/parser.js.map +1 -1
- package/dist/platform.d.ts +6 -0
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +14 -0
- package/dist/platform.js.map +1 -1
- package/dist/probe.d.ts +16 -0
- package/dist/probe.d.ts.map +1 -0
- package/dist/probe.js +31 -0
- package/dist/probe.js.map +1 -0
- package/dist/processTools.d.ts +22 -8
- package/dist/processTools.d.ts.map +1 -1
- package/dist/processTools.js +75 -58
- package/dist/processTools.js.map +1 -1
- package/dist/resultNormalizer.d.ts +9 -0
- package/dist/resultNormalizer.d.ts.map +1 -1
- package/dist/resultNormalizer.js +36 -79
- package/dist/resultNormalizer.js.map +1 -1
- package/dist/server.d.ts +10 -9
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +56 -55
- package/dist/server.js.map +1 -1
- package/dist/ston.d.ts +22 -0
- package/dist/ston.d.ts.map +1 -0
- package/dist/ston.js +127 -0
- package/dist/ston.js.map +1 -0
- package/docs/cleanup-hook-boundary.md +11 -9
- package/docs/development.md +51 -38
- package/docs/reference/tools.md +100 -40
- package/docs/troubleshooting.md +32 -23
- package/docs/user/getting-started.md +4 -4
- package/docs/user/profile-mode.md +30 -21
- package/package.json +1 -1
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Launcher's images, read from its images directory by the Launcher's own
|
|
3
|
+
* rule, with no Launcher call.
|
|
4
|
+
*
|
|
5
|
+
* The Launcher never writes an image's file into its STON
|
|
6
|
+
* (`PhLImage class>>stonAllInstVarNames` rejects `#file`), and its text table
|
|
7
|
+
* pads and shortens cells, so neither names an image reliably. Its own rule is
|
|
8
|
+
* `PhLDirectoryBasedImageRepository>>withImagesFilesCollect:`: an image is a
|
|
9
|
+
* directory `D` of the images directory holding `D.image` and `D.changes`,
|
|
10
|
+
* named `D`. The same in 3.0, 3.4.5 and 4.0-alpha-2.
|
|
11
|
+
*/
|
|
12
|
+
import fs from "node:fs";
|
|
13
|
+
import os from "node:os";
|
|
14
|
+
import path from "node:path";
|
|
15
|
+
import { launcherUserFilesLocation } from "./platform.js";
|
|
16
|
+
import { firstObjectOpen, objectFields, stonFields, stringValue, urlValue, } from "./ston.js";
|
|
17
|
+
function pathApi(platform) {
|
|
18
|
+
return platform === "win32" ? path.win32 : path.posix;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The `#imagesDirectory : FILE [ '…' ]` of a Launcher configuration. A doubled
|
|
22
|
+
* quote is one quote; on Windows the slash `stonFilePath` writes before a drive
|
|
23
|
+
* letter (`/C:/…`) is dropped.
|
|
24
|
+
*/
|
|
25
|
+
export function settingsImagesDirectory(content, platform = process.platform) {
|
|
26
|
+
const match = /#imagesDirectory\s*:\s*FILE\s*\[\s*'((?:''|[^'])*)'\s*\]/.exec(content);
|
|
27
|
+
const value = match?.[1]?.replaceAll("''", "'");
|
|
28
|
+
if (!value) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
return platform === "win32" && /^\/[A-Za-z]:(?:[\\/]|$)/.test(value)
|
|
32
|
+
? value.slice(1)
|
|
33
|
+
: value;
|
|
34
|
+
}
|
|
35
|
+
function readTextFile(filePath) {
|
|
36
|
+
try {
|
|
37
|
+
return fs.readFileSync(filePath, "utf8");
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The images directory the Launcher this server runs reads.
|
|
45
|
+
*
|
|
46
|
+
* In profile mode it is the profile's, which the server itself writes into the
|
|
47
|
+
* Launcher's configuration. Outside a profile it is what the configuration the
|
|
48
|
+
* CLI reads names (`PharoLauncherCLIConfiguration class>>preferencesFile`),
|
|
49
|
+
* else the Launcher's default (`PhLDirectoryBasedImageRepository class>>defaultLocation`).
|
|
50
|
+
*/
|
|
51
|
+
export function resolveImagesDirectory(config, platform = process.platform) {
|
|
52
|
+
const paths = pathApi(platform);
|
|
53
|
+
if (config.profile) {
|
|
54
|
+
return { path: paths.resolve(config.profile.imagesDir), source: "profile" };
|
|
55
|
+
}
|
|
56
|
+
const userFiles = config.launcherUserFilesDir ??
|
|
57
|
+
launcherUserFilesLocation(process.env, platform) ??
|
|
58
|
+
launcherUserFilesLocation({ HOME: os.homedir() }, platform);
|
|
59
|
+
const settingsFile = config.launcherConfiguration
|
|
60
|
+
? paths.resolve(config.launcherConfiguration)
|
|
61
|
+
: paths.join(userFiles, "launcherSettings.ston");
|
|
62
|
+
const content = readTextFile(settingsFile);
|
|
63
|
+
const named = content === undefined ? undefined : settingsImagesDirectory(content, platform);
|
|
64
|
+
if (named) {
|
|
65
|
+
return {
|
|
66
|
+
path: paths.resolve(named),
|
|
67
|
+
source: config.launcherConfiguration ? "configuration" : "settings",
|
|
68
|
+
settingsFile,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
path: paths.resolve(paths.join(userFiles, "images")),
|
|
73
|
+
source: "default",
|
|
74
|
+
settingsFile,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function fileStat(filePath) {
|
|
78
|
+
try {
|
|
79
|
+
const stat = fs.statSync(filePath);
|
|
80
|
+
return stat.isFile() ? stat : undefined;
|
|
81
|
+
}
|
|
82
|
+
catch {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function isDirectory(filePath) {
|
|
87
|
+
try {
|
|
88
|
+
return fs.statSync(filePath).isDirectory();
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function isoSeconds(date) {
|
|
95
|
+
return new Date(Math.floor(date.getTime() / 1000) * 1000)
|
|
96
|
+
.toISOString()
|
|
97
|
+
.replace(/\.\d{3}Z$/, "Z");
|
|
98
|
+
}
|
|
99
|
+
/** Reads one directory of the images directory, under exactly this name. */
|
|
100
|
+
export function readImageDirectory(imagesDir, name) {
|
|
101
|
+
const directory = path.join(imagesDir, name);
|
|
102
|
+
if (!isDirectory(directory)) {
|
|
103
|
+
return { kind: "missing", directory };
|
|
104
|
+
}
|
|
105
|
+
const imagePath = path.join(directory, `${name}.image`);
|
|
106
|
+
const image = fileStat(imagePath);
|
|
107
|
+
const hasChanges = fileStat(path.join(directory, `${name}.changes`)) !== undefined;
|
|
108
|
+
if (image && hasChanges) {
|
|
109
|
+
return {
|
|
110
|
+
kind: "image",
|
|
111
|
+
image: { name, directory, imagePath, modified: isoSeconds(image.mtime) },
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
kind: "not-an-image",
|
|
116
|
+
notAnImage: { name, directory, hasImage: image !== undefined, hasChanges },
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/** Compares names by code point, which `<` on strings does not for every one. */
|
|
120
|
+
export function compareCodePoints(left, right) {
|
|
121
|
+
let i = 0;
|
|
122
|
+
let j = 0;
|
|
123
|
+
while (i < left.length && j < right.length) {
|
|
124
|
+
const a = left.codePointAt(i);
|
|
125
|
+
const b = right.codePointAt(j);
|
|
126
|
+
if (a !== b) {
|
|
127
|
+
return a - b;
|
|
128
|
+
}
|
|
129
|
+
i += a > 0xffff ? 2 : 1;
|
|
130
|
+
j += b > 0xffff ? 2 : 1;
|
|
131
|
+
}
|
|
132
|
+
return left.length - i - (right.length - j);
|
|
133
|
+
}
|
|
134
|
+
function byName(left, right) {
|
|
135
|
+
return compareCodePoints(left.name, right.name);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The cheap pass: every directory of the images directory, as an image or not,
|
|
139
|
+
* with no metadata. A hidden directory is skipped, which the Launcher does
|
|
140
|
+
* not do: those are this server's temporary copies (`.<name>.copy-….tmp`).
|
|
141
|
+
*/
|
|
142
|
+
export function scanImages(imagesDir) {
|
|
143
|
+
let entries;
|
|
144
|
+
try {
|
|
145
|
+
entries = fs.readdirSync(imagesDir, { withFileTypes: true });
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
return {
|
|
149
|
+
imagesDir,
|
|
150
|
+
exists: fs.existsSync(imagesDir),
|
|
151
|
+
images: [],
|
|
152
|
+
notImages: [],
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
const images = [];
|
|
156
|
+
const notImages = [];
|
|
157
|
+
for (const entry of entries) {
|
|
158
|
+
if (entry.name.startsWith(".")) {
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (!entry.isDirectory() &&
|
|
162
|
+
!(entry.isSymbolicLink() && isDirectory(path.join(imagesDir, entry.name)))) {
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
const read = readImageDirectory(imagesDir, entry.name);
|
|
166
|
+
if (read.kind === "image") {
|
|
167
|
+
images.push(read.image);
|
|
168
|
+
}
|
|
169
|
+
else if (read.kind === "not-an-image") {
|
|
170
|
+
notImages.push(read.notAnImage);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
imagesDir,
|
|
175
|
+
exists: true,
|
|
176
|
+
images: images.sort(byName),
|
|
177
|
+
notImages: notImages.sort(byName),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* The one named exactly so, else the one whose name differs from it only in
|
|
182
|
+
* case: the Launcher's `imageNamed:` and `hasImageNamed:` compare names
|
|
183
|
+
* ignoring case.
|
|
184
|
+
*/
|
|
185
|
+
export function findByName(items, name) {
|
|
186
|
+
const lower = name.toLowerCase();
|
|
187
|
+
return (items.find((item) => item.name === name) ??
|
|
188
|
+
items.find((item) => item.name.toLowerCase() === lower));
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Those whose name contains the filter, case-sensitive, as the Launcher's
|
|
192
|
+
* `includesSubstring:`.
|
|
193
|
+
*/
|
|
194
|
+
export function filterByName(items, nameFilter) {
|
|
195
|
+
return nameFilter === undefined
|
|
196
|
+
? [...items]
|
|
197
|
+
: items.filter((item) => item.name.includes(nameFilter));
|
|
198
|
+
}
|
|
199
|
+
/** What a directory lacks to be the image it is named after. */
|
|
200
|
+
export function whatItLacks(notAnImage) {
|
|
201
|
+
const { name, hasImage, hasChanges } = notAnImage;
|
|
202
|
+
if (!hasImage && !hasChanges) {
|
|
203
|
+
return `holds neither ${name}.image nor ${name}.changes`;
|
|
204
|
+
}
|
|
205
|
+
return hasImage ? `holds no ${name}.changes` : `holds no ${name}.image`;
|
|
206
|
+
}
|
|
207
|
+
// meta-inf.ston is read as the Launcher writes it, pretty-printed: `#key :
|
|
208
|
+
// value`, any spacing, `''` for one quote.
|
|
209
|
+
function nonEmpty(value) {
|
|
210
|
+
return value === undefined || value.length === 0 ? undefined : value;
|
|
211
|
+
}
|
|
212
|
+
/** What the Launcher records about an image, read from its meta-inf.ston. */
|
|
213
|
+
export function readMetaInf(source) {
|
|
214
|
+
const open = firstObjectOpen(source);
|
|
215
|
+
if (open < 0) {
|
|
216
|
+
return {};
|
|
217
|
+
}
|
|
218
|
+
const fields = stonFields(source, open);
|
|
219
|
+
const template = objectFields(fields.get("originTemplate"));
|
|
220
|
+
const templateName = nonEmpty(stringValue(template?.get("name")));
|
|
221
|
+
const templateUrl = nonEmpty(urlValue(template?.get("url")));
|
|
222
|
+
const configurations = fields.get("launchConfigurations");
|
|
223
|
+
const firstConfigurationOpen = configurations === undefined ? -1 : firstObjectOpen(configurations);
|
|
224
|
+
const vm = firstConfigurationOpen < 0
|
|
225
|
+
? undefined
|
|
226
|
+
: objectFields(stonFields(configurations, firstConfigurationOpen).get("vm"));
|
|
227
|
+
const pharoVersion = nonEmpty(stringValue(fields.get("pharoVersion")));
|
|
228
|
+
const architecture = nonEmpty(stringValue(fields.get("architecture")));
|
|
229
|
+
const vmId = nonEmpty(stringValue(vm?.get("id")));
|
|
230
|
+
return {
|
|
231
|
+
...(pharoVersion ? { pharoVersion } : {}),
|
|
232
|
+
...(architecture ? { architecture } : {}),
|
|
233
|
+
...(templateName
|
|
234
|
+
? { template: { name: templateName, ...(templateUrl ? { url: templateUrl } : {}) } }
|
|
235
|
+
: {}),
|
|
236
|
+
...(vmId ? { vmId } : {}),
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* The architecture an image's header says: its first four bytes, read
|
|
241
|
+
* little-endian, are its format (`PhLVirtualMachineManager class>>imageFormat64bits`,
|
|
242
|
+
* `imageFormat32bits`, `imageFormatPreSpur`).
|
|
243
|
+
*/
|
|
244
|
+
export function headerArchitecture(imagePath) {
|
|
245
|
+
let descriptor;
|
|
246
|
+
try {
|
|
247
|
+
descriptor = fs.openSync(imagePath, "r");
|
|
248
|
+
const header = Buffer.alloc(4);
|
|
249
|
+
if (fs.readSync(descriptor, header, 0, 4, 0) < 4) {
|
|
250
|
+
return undefined;
|
|
251
|
+
}
|
|
252
|
+
const format = header.readUInt32LE(0);
|
|
253
|
+
if (format === 68021) {
|
|
254
|
+
return "64";
|
|
255
|
+
}
|
|
256
|
+
return format === 6521 || format === 6505 ? "32" : undefined;
|
|
257
|
+
}
|
|
258
|
+
catch {
|
|
259
|
+
return undefined;
|
|
260
|
+
}
|
|
261
|
+
finally {
|
|
262
|
+
if (descriptor !== undefined) {
|
|
263
|
+
fs.closeSync(descriptor);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function asArchitecture(value) {
|
|
268
|
+
return value === "64" || value === "32" ? value : undefined;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* The full pass, for one image: what its meta-inf.ston, its pharo.version and
|
|
272
|
+
* its header say. A missing or unreadable file leaves its fields out.
|
|
273
|
+
*/
|
|
274
|
+
export function readLauncherImage(entry) {
|
|
275
|
+
const metaInfSource = readTextFile(path.join(entry.directory, "meta-inf.ston"));
|
|
276
|
+
const metaInf = metaInfSource === undefined ? {} : readMetaInf(metaInfSource);
|
|
277
|
+
const pharoVersion = metaInf.pharoVersion ??
|
|
278
|
+
nonEmpty(readTextFile(path.join(entry.directory, "pharo.version"))?.trim());
|
|
279
|
+
const architecture = asArchitecture(metaInf.architecture) ?? headerArchitecture(entry.imagePath);
|
|
280
|
+
return {
|
|
281
|
+
name: entry.name,
|
|
282
|
+
imagePath: entry.imagePath,
|
|
283
|
+
...(pharoVersion ? { pharoVersion } : {}),
|
|
284
|
+
...(architecture ? { architecture } : {}),
|
|
285
|
+
...(metaInf.template ? { template: metaInf.template } : {}),
|
|
286
|
+
...(metaInf.vmId ? { vmId: metaInf.vmId } : {}),
|
|
287
|
+
modified: entry.modified,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function isBound(char) {
|
|
291
|
+
return char === undefined || /\s/.test(char) || char === '"' || char === "'";
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Where a command line first names this file, or -1: where it holds the path,
|
|
295
|
+
* starting at the start of the line or after whitespace or a quote, and ending
|
|
296
|
+
* at its end or before whitespace or a quote. On Windows case does not count,
|
|
297
|
+
* and `/` and `\` are alike.
|
|
298
|
+
*
|
|
299
|
+
* Matched from the image's side because `ps` prints no quotes: for
|
|
300
|
+
* `…/images/MCP debug/MCP debug.image` a token read off the line is
|
|
301
|
+
* `debug.image`, which resolves nowhere. The bounds keep a longer path that
|
|
302
|
+
* ends with this one (`/y/x/images/D/D.image` for `/x/images/D/D.image`), or
|
|
303
|
+
* a file whose name starts with it (`D.image.bak`), from counting.
|
|
304
|
+
*/
|
|
305
|
+
export function whereCommandLineNamesFile(commandLine, filePath, platform = process.platform) {
|
|
306
|
+
const normalize = platform === "win32"
|
|
307
|
+
? (value) => value.replaceAll("\\", "/").toLowerCase()
|
|
308
|
+
: (value) => value;
|
|
309
|
+
const line = normalize(commandLine);
|
|
310
|
+
const target = normalize(filePath);
|
|
311
|
+
if (target.length === 0) {
|
|
312
|
+
return -1;
|
|
313
|
+
}
|
|
314
|
+
for (let at = line.indexOf(target); at >= 0; at = line.indexOf(target, at + 1)) {
|
|
315
|
+
if (isBound(line[at - 1]) && isBound(line[at + target.length])) {
|
|
316
|
+
return at;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return -1;
|
|
320
|
+
}
|
|
321
|
+
function realPath(filePath) {
|
|
322
|
+
try {
|
|
323
|
+
return fs.realpathSync.native(filePath);
|
|
324
|
+
}
|
|
325
|
+
catch {
|
|
326
|
+
return undefined;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* The processes running these images, each named as its image and given the
|
|
331
|
+
* path as the reader built it: a VM runs image `D` when its command line names
|
|
332
|
+
* `<images>/D/D.image`, as built or as its real path. When it names several
|
|
333
|
+
* images, it runs the first it names: a VM's own image comes before its
|
|
334
|
+
* script and the script's arguments. In image name order, then pid.
|
|
335
|
+
*/
|
|
336
|
+
export function processesOfImages(images, processes, platform = process.platform) {
|
|
337
|
+
if (processes.length === 0 || images.length === 0) {
|
|
338
|
+
return [];
|
|
339
|
+
}
|
|
340
|
+
const spellings = images.map((image) => {
|
|
341
|
+
const real = realPath(image.imagePath);
|
|
342
|
+
return {
|
|
343
|
+
image,
|
|
344
|
+
paths: real && real !== image.imagePath ? [image.imagePath, real] : [image.imagePath],
|
|
345
|
+
};
|
|
346
|
+
});
|
|
347
|
+
return processes
|
|
348
|
+
.flatMap((process) => {
|
|
349
|
+
let match;
|
|
350
|
+
let matchAt = Infinity;
|
|
351
|
+
for (const spelling of spellings) {
|
|
352
|
+
for (const filePath of spelling.paths) {
|
|
353
|
+
const at = whereCommandLineNamesFile(process.commandLine, filePath, platform);
|
|
354
|
+
if (at >= 0 && at < matchAt) {
|
|
355
|
+
match = spelling;
|
|
356
|
+
matchAt = at;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return match
|
|
361
|
+
? [{ ...process, imagePath: match.image.imagePath, imageName: match.image.name }]
|
|
362
|
+
: [];
|
|
363
|
+
})
|
|
364
|
+
.sort((left, right) => compareCodePoints(left.imageName ?? "", right.imageName ?? "") ||
|
|
365
|
+
left.pid - right.pid);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* The process tools' view of this images directory: the VMs running one of
|
|
369
|
+
* its images, and for a kill given an image name, the VMs of the image found
|
|
370
|
+
* as every tool finds it, exactly, else ignoring case.
|
|
371
|
+
*/
|
|
372
|
+
export function imagesProcessScope(imagesDir, platform = process.platform) {
|
|
373
|
+
let scan;
|
|
374
|
+
const images = () => (scan ??= scanImages(imagesDir)).images;
|
|
375
|
+
return {
|
|
376
|
+
select: (processes) => processesOfImages(images(), processes, platform),
|
|
377
|
+
imageTargets: (processes, imageName) => {
|
|
378
|
+
const image = findByName(images(), imageName);
|
|
379
|
+
return image
|
|
380
|
+
? processes.filter((process) => process.imageName === image.name)
|
|
381
|
+
: [];
|
|
382
|
+
},
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
//# sourceMappingURL=imageStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageStore.js","sourceRoot":"","sources":["../src/imageStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EACL,eAAe,EACf,YAAY,EACZ,UAAU,EACV,WAAW,EACX,QAAQ,GACT,MAAM,WAAW,CAAC;AAoBnB,SAAS,OAAO,CAAC,QAAyB;IACxC,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;AACxD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,WAA4B,OAAO,CAAC,QAAQ;IAE5C,MAAM,KAAK,GAAG,0DAA0D,CAAC,IAAI,CAC3E,OAAO,CACR,CAAC;IACF,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAChD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,K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,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IAE3E,OAAO;QACL,MAAM,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC;QACvE,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE;YACrC,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,EAAE,SAAS,CAAC,CAAC;YAC9C,OAAO,KAAK;gBACV,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,KAAK,KAAK,CAAC,IAAI,CAAC;gBACjE,CAAC,CAAC,EAAE,CAAC;QACT,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { getPharoLauncherHealth, getPharoLauncherVersion, validatePharoLauncherInstallation, } from "./discovery.js";
|
|
3
|
-
import {
|
|
3
|
+
import { probeImages } from "./probe.js";
|
|
4
4
|
import { startStdioServer } from "./server.js";
|
|
5
5
|
async function main() {
|
|
6
6
|
if (process.argv.includes("--health")) {
|
|
@@ -24,10 +24,10 @@ async function main() {
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
if (process.argv.includes("--probe-images")) {
|
|
27
|
-
const result = await
|
|
28
|
-
process.stdout.write(result.stdout);
|
|
27
|
+
const result = await probeImages();
|
|
29
28
|
process.stderr.write(result.stderr);
|
|
30
|
-
process.
|
|
29
|
+
process.stdout.write(result.stdout);
|
|
30
|
+
process.exitCode = result.exitCode;
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
await startStdioServer();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,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CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,OAAO;IACT,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC5C,MAAM,MAAM,GAAG,MAAM,WAAW,EAAE,CAAC;QACnC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QACnC,OAAO;IACT,CAAC;IAED,MAAM,gBAAgB,EAAE,CAAC;AAC3B,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
package/dist/launcher.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PharoLauncherConfig } from "./config.js";
|
|
2
2
|
import { type LauncherCliRunner, type PharoLauncherConfigReport } from "./discovery.js";
|
|
3
|
+
import { type RunNativeProcessToolOptions } from "./processTools.js";
|
|
3
4
|
import { copyImageBetweenProfiles } from "./crossProfileCopy.js";
|
|
4
5
|
/**
|
|
5
6
|
* The shapes these functions answer with.
|
|
@@ -13,10 +14,13 @@ import { copyImageBetweenProfiles } from "./crossProfileCopy.js";
|
|
|
13
14
|
*
|
|
14
15
|
* `packageExports.test.ts` names them, so dropping one fails the typecheck.
|
|
15
16
|
*/
|
|
16
|
-
export type { LauncherCommandResult, LauncherImage, LauncherOutputFormat, LauncherProcess, LauncherTemplate, } from "./models.js";
|
|
17
|
+
export type { LauncherCommandResult, LauncherImage, LauncherImageInfo, LauncherImageList, LauncherLaunchReport, LauncherOutputFormat, LauncherProcess, LauncherTemplate, MadeImageFailure, MadeImageResult, NotAnImage, TemplateCategoriesResult, } from "./models.js";
|
|
18
|
+
export { ProfileTooDeepError, ToolInputError } from "./commandCatalog.js";
|
|
19
|
+
export { sentenceWithMessage } from "./resultNormalizer.js";
|
|
20
|
+
export type { RunNativeProcessToolOptions } from "./processTools.js";
|
|
17
21
|
export type { PharoLauncherConfigReport } from "./discovery.js";
|
|
18
22
|
export type { CrossProfileImageCopyResult } from "./crossProfileCopy.js";
|
|
19
|
-
import type { LauncherCommandResult,
|
|
23
|
+
import type { LauncherCommandResult, LauncherImageInfo, LauncherImageList, LauncherProcess, LauncherTemplate, MadeImageFailure, MadeImageResult, TemplateCategoriesResult } from "./models.js";
|
|
20
24
|
/** How a call reaches PharoLauncher, and what it is allowed to take. */
|
|
21
25
|
export interface PharoLauncherOptions {
|
|
22
26
|
config?: PharoLauncherConfig;
|
|
@@ -28,12 +32,25 @@ export interface PharoLauncherOptions {
|
|
|
28
32
|
sleep?: (milliseconds: number) => Promise<void>;
|
|
29
33
|
templateSourcesUrl?: string;
|
|
30
34
|
fetchTemplateSources?: (url: string) => Promise<string>;
|
|
35
|
+
/** How processes are listed, killed and watched; tests give their own. */
|
|
36
|
+
nativeProcess?: RunNativeProcessToolOptions;
|
|
37
|
+
}
|
|
38
|
+
/** The options of the MCP adapter: the library's, and how long a kill waits. */
|
|
39
|
+
export interface CallToolOptions extends PharoLauncherOptions {
|
|
40
|
+
/** How long `process_kill` waits for a killed pid to exit; 10 s. */
|
|
41
|
+
processExitTimeoutMs?: number;
|
|
42
|
+
/** How often it looks; every 200 ms. */
|
|
43
|
+
processExitPollMs?: number;
|
|
31
44
|
}
|
|
32
|
-
/** The name the MCP adapter still uses for the same options. */
|
|
33
|
-
export type CallToolOptions = PharoLauncherOptions;
|
|
34
45
|
export declare function commandResultOptions(argumentsValue: unknown, options: PharoLauncherOptions): PharoLauncherOptions;
|
|
35
|
-
|
|
36
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Why a create or copy made no image, in a sentence. `said` is what the
|
|
48
|
+
* Launcher said it did (`created X`, `copied X to Y`), and `newImageName` the
|
|
49
|
+
* image it made, each written as the caller writes names.
|
|
50
|
+
*/
|
|
51
|
+
export declare function madeImageFailureText(failure: MadeImageFailure, said: string, newImageName: string): string;
|
|
52
|
+
export declare function imageCopyResult(args: string[], options: PharoLauncherOptions): Promise<MadeImageResult>;
|
|
53
|
+
export declare function imageCreateResult(args: string[], options: PharoLauncherOptions): Promise<MadeImageResult>;
|
|
37
54
|
interface TemplateSourcesBootstrap {
|
|
38
55
|
ok: boolean;
|
|
39
56
|
action: "not_applicable" | "already_present" | "created" | "failed";
|
|
@@ -51,12 +68,18 @@ export interface TemplateUpdateResult extends LauncherCommandResult {
|
|
|
51
68
|
}
|
|
52
69
|
export declare function templateUpdateResult(args: string[], options: PharoLauncherOptions): Promise<TemplateUpdateResult>;
|
|
53
70
|
export declare function runCommand(toolName: string, args: string[], options: PharoLauncherOptions): Promise<LauncherCommandResult>;
|
|
54
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* This Launcher's images, read from its images directory, each with whether
|
|
73
|
+
* it runs. No Launcher call, in every mode.
|
|
74
|
+
*/
|
|
75
|
+
export declare function listImagesResult(input: unknown, options: PharoLauncherOptions): Promise<LauncherImageList>;
|
|
76
|
+
/** One image of this Launcher, found as every tool finds it. */
|
|
77
|
+
export declare function imageInfoResult(input: unknown, options: PharoLauncherOptions): Promise<LauncherImageInfo>;
|
|
78
|
+
/**
|
|
79
|
+
* What every call takes beside its own arguments: whether its result carries
|
|
80
|
+
* what the Launcher wrote, as `raw`. PLexus passes it to `startImage`.
|
|
81
|
+
*/
|
|
55
82
|
export interface LauncherTableOptions {
|
|
56
|
-
format?: "ston" | "text";
|
|
57
|
-
brief?: boolean;
|
|
58
|
-
rowMode?: boolean;
|
|
59
|
-
delimiter?: string;
|
|
60
83
|
includeRaw?: boolean;
|
|
61
84
|
}
|
|
62
85
|
export interface ImageCreateInput extends LauncherTableOptions {
|
|
@@ -64,10 +87,15 @@ export interface ImageCreateInput extends LauncherTableOptions {
|
|
|
64
87
|
newImageName: string;
|
|
65
88
|
templateCategory?: string;
|
|
66
89
|
dev?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Ignored: a create never starts the image, and `image_start` does. Kept so
|
|
92
|
+
* a caller that still passes it, as PLexus 0.16.0 does, compiles.
|
|
93
|
+
*/
|
|
67
94
|
noLaunch?: boolean;
|
|
68
95
|
}
|
|
69
96
|
export interface ImageStartInput extends LauncherTableOptions {
|
|
70
97
|
imageName: string;
|
|
98
|
+
/** Relative to the calling process's working directory. */
|
|
71
99
|
script?: string;
|
|
72
100
|
detached?: boolean;
|
|
73
101
|
/** Profile mode only: PharoLauncher's own image launch has no display mode. */
|
|
@@ -84,19 +112,25 @@ export interface PharoLauncher {
|
|
|
84
112
|
describeConfig(): PharoLauncherConfigReport;
|
|
85
113
|
listImages(input?: {
|
|
86
114
|
nameFilter?: string;
|
|
87
|
-
} & LauncherTableOptions): Promise<
|
|
115
|
+
} & LauncherTableOptions): Promise<LauncherImageList>;
|
|
88
116
|
imageInfo(input: {
|
|
89
117
|
imageName: string;
|
|
90
|
-
} & LauncherTableOptions): Promise<
|
|
91
|
-
|
|
118
|
+
} & LauncherTableOptions): Promise<LauncherImageInfo>;
|
|
119
|
+
/**
|
|
120
|
+
* Its `data` is `{ image?: LauncherImage }`, the image when the images
|
|
121
|
+
* directory holds it, and `failure` says why a command that exited 0 made
|
|
122
|
+
* none. Its `data` is typed as any result's, so a fake written against
|
|
123
|
+
* 0.4.1, as PLexus 0.16.0's is, still implements it.
|
|
124
|
+
*/
|
|
125
|
+
createImage(input: ImageCreateInput): Promise<MadeImageResult>;
|
|
126
|
+
/** Its `data` and `failure` are as `createImage`'s. */
|
|
92
127
|
copyImage(input: {
|
|
93
128
|
imageName: string;
|
|
94
129
|
newImageName: string;
|
|
95
|
-
} & LauncherTableOptions): Promise<
|
|
130
|
+
} & LauncherTableOptions): Promise<MadeImageResult>;
|
|
96
131
|
startImage(input: ImageStartInput): Promise<LauncherCommandResult>;
|
|
97
132
|
deleteImage(input: {
|
|
98
133
|
imageName: string;
|
|
99
|
-
force?: boolean;
|
|
100
134
|
} & LauncherTableOptions): Promise<LauncherCommandResult>;
|
|
101
135
|
listProcesses(input?: LauncherTableOptions): Promise<LauncherCommandResult<LauncherProcess[]>>;
|
|
102
136
|
killProcess(input: ({
|
|
@@ -104,9 +138,22 @@ export interface PharoLauncher {
|
|
|
104
138
|
} | {
|
|
105
139
|
imageName: string;
|
|
106
140
|
}) & LauncherTableOptions): Promise<LauncherCommandResult>;
|
|
107
|
-
|
|
141
|
+
/** The categories in the Launcher's order, and which is its default. */
|
|
142
|
+
listTemplateCategories(input?: LauncherTableOptions): Promise<TemplateCategoriesResult>;
|
|
143
|
+
/**
|
|
144
|
+
* The templates of a category, in the Launcher's order. Those it keeps on
|
|
145
|
+
* disk (`local`) are left out unless `includeLocal` asks for them: the
|
|
146
|
+
* Launcher keeps a copy of every template it downloads under the same name,
|
|
147
|
+
* in a category of its own (`Templates`), and a caller that takes a name
|
|
148
|
+
* listed in two categories as ambiguous, as PLexus 0.16.0 does, would then
|
|
149
|
+
* refuse every template downloaded once. A category named does not change
|
|
150
|
+
* it, since PLexus names each in turn. The templates the user made from an
|
|
151
|
+
* image are left out too: the Launcher keeps them in the same category, of
|
|
152
|
+
* the same class, so nothing tells them from its copies.
|
|
153
|
+
*/
|
|
108
154
|
listTemplates(input?: {
|
|
109
155
|
templateCategory?: string;
|
|
156
|
+
includeLocal?: boolean;
|
|
110
157
|
} & LauncherTableOptions): Promise<LauncherCommandResult<LauncherTemplate[]>>;
|
|
111
158
|
updateTemplates(input?: LauncherTableOptions): Promise<TemplateUpdateResult>;
|
|
112
159
|
copyImageBetweenProfiles(input: unknown): ReturnType<typeof copyImageBetweenProfiles>;
|
package/dist/launcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AA2BA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC/B,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;;;;;;;;;;GAWG;AACH,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACrE,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAChE,YAAY,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EACV,qBAAqB,EAErB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAQrB,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,m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