@evref-bl/plexus 0.23.0 → 1.0.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/LICENSE +202 -0
- package/README.md +2 -1
- package/dist/answers/index.d.ts +19 -2
- package/dist/answers/index.d.ts.map +1 -1
- package/dist/answers/index.js +71 -3
- package/dist/answers/index.js.map +1 -1
- package/dist/answers/texts.d.ts +20 -2
- package/dist/answers/texts.d.ts.map +1 -1
- package/dist/answers/texts.js +48 -9
- package/dist/answers/texts.js.map +1 -1
- package/dist/commandLine.d.ts +2 -1
- package/dist/commandLine.d.ts.map +1 -1
- package/dist/commandLine.js +32 -15
- package/dist/commandLine.js.map +1 -1
- package/dist/config/pharoMcpVersion.d.ts +1 -1
- package/dist/config/pharoMcpVersion.js +1 -1
- package/dist/errors.d.ts +16 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/forward/index.d.ts +2 -1
- package/dist/forward/index.d.ts.map +1 -1
- package/dist/forward/index.js +9 -11
- package/dist/forward/index.js.map +1 -1
- package/dist/forward/jsonRpc.d.ts +18 -5
- package/dist/forward/jsonRpc.d.ts.map +1 -1
- package/dist/forward/jsonRpc.js +72 -29
- package/dist/forward/jsonRpc.js.map +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.d.ts.map +1 -1
- package/dist/home.js.map +1 -1
- package/dist/images/bases.js +2 -2
- package/dist/images/bases.js.map +1 -1
- package/dist/images/claims.d.ts +3 -0
- package/dist/images/claims.d.ts.map +1 -1
- package/dist/images/claims.js +9 -0
- package/dist/images/claims.js.map +1 -1
- package/dist/images/context.d.ts.map +1 -1
- package/dist/images/context.js +2 -1
- package/dist/images/context.js.map +1 -1
- package/dist/images/create.d.ts +3 -7
- package/dist/images/create.d.ts.map +1 -1
- package/dist/images/create.js +9 -20
- package/dist/images/create.js.map +1 -1
- package/dist/images/delete.d.ts.map +1 -1
- package/dist/images/delete.js +5 -4
- package/dist/images/delete.js.map +1 -1
- package/dist/images/endpoint.d.ts.map +1 -1
- package/dist/images/endpoint.js +2 -0
- package/dist/images/endpoint.js.map +1 -1
- package/dist/images/index.d.ts +4 -18
- package/dist/images/index.d.ts.map +1 -1
- package/dist/images/index.js +4 -4
- package/dist/images/index.js.map +1 -1
- package/dist/images/list.d.ts +1 -1
- package/dist/images/list.d.ts.map +1 -1
- package/dist/images/list.js +8 -11
- package/dist/images/list.js.map +1 -1
- package/dist/images/names.d.ts +3 -1
- package/dist/images/names.d.ts.map +1 -1
- package/dist/images/names.js +9 -4
- package/dist/images/names.js.map +1 -1
- package/dist/images/prepare.js +4 -4
- package/dist/images/prepare.js.map +1 -1
- package/dist/images/processes.d.ts +1 -1
- package/dist/images/processes.js +3 -11
- package/dist/images/processes.js.map +1 -1
- package/dist/images/start.d.ts +3 -13
- package/dist/images/start.d.ts.map +1 -1
- package/dist/images/start.js +32 -19
- package/dist/images/start.js.map +1 -1
- package/dist/images/stop.d.ts +2 -10
- package/dist/images/stop.d.ts.map +1 -1
- package/dist/images/stop.js +11 -3
- package/dist/images/stop.js.map +1 -1
- package/dist/images/store.d.ts +6 -0
- package/dist/images/store.d.ts.map +1 -1
- package/dist/images/store.js +24 -3
- package/dist/images/store.js.map +1 -1
- package/dist/images/templates.d.ts +25 -2
- package/dist/images/templates.d.ts.map +1 -1
- package/dist/images/templates.js +206 -15
- package/dist/images/templates.js.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/launcher/pharoLauncherMcpClient.d.ts +3 -3
- package/dist/launcher/pharoLauncherMcpClient.d.ts.map +1 -1
- package/dist/launcher/pharoLauncherMcpClient.js +9 -9
- package/dist/launcher/pharoLauncherMcpClient.js.map +1 -1
- package/dist/launcher/pharoLauncherProfile.d.ts +7 -2
- package/dist/launcher/pharoLauncherProfile.d.ts.map +1 -1
- package/dist/launcher/pharoLauncherProfile.js +7 -14
- package/dist/launcher/pharoLauncherProfile.js.map +1 -1
- package/dist/launcher/vmRenewal.d.ts +1 -1
- package/dist/launcher/vmRenewal.d.ts.map +1 -1
- package/dist/mcp/server.d.ts +5 -5
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +190 -70
- package/dist/mcp/server.js.map +1 -1
- package/dist/telemetry/trace.d.ts +11 -3
- package/dist/telemetry/trace.d.ts.map +1 -1
- package/dist/telemetry/trace.js +30 -8
- package/dist/telemetry/trace.js.map +1 -1
- package/dist/types.d.ts +59 -15
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type LauncherLaunchReport, type PharoLauncher } from "@evref-bl/pharo-launcher-mcp
|
|
2
|
-
export type { LauncherCommandResult, LauncherProcess, } from "@evref-bl/pharo-launcher-mcp
|
|
1
|
+
import { type LauncherLaunchReport, type PharoLauncher } from "@evref-bl/pharo-launcher-mcp";
|
|
2
|
+
export type { LauncherCommandResult, LauncherProcess, } from "@evref-bl/pharo-launcher-mcp";
|
|
3
3
|
/** What PLexus asks of the launcher. Tests give a fake one. */
|
|
4
4
|
export type LauncherPort = Pick<PharoLauncher, "createImage" | "startImage" | "deleteLaunchLogs" | "listProcesses" | "killProcess" | "listTemplateCategories" | "listTemplates" | "updateTemplates">;
|
|
5
5
|
export declare const longCommandTimeoutMs: number;
|
|
6
|
-
export declare function openLauncherPort(home: string): LauncherPort;
|
|
6
|
+
export declare function openLauncherPort(home: string, launcherDir?: string): LauncherPort;
|
|
7
7
|
/**
|
|
8
8
|
* What the launcher said went wrong, trimmed: a diagnostic built from
|
|
9
9
|
* launcher output can run to pages. A launch whose VM stopped with its own
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pharoLauncherMcpClient.d.ts","sourceRoot":"","sources":["../../src/launcher/pharoLauncherMcpClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"pharoLauncherMcpClient.d.ts","sourceRoot":"","sources":["../../src/launcher/pharoLauncherMcpClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AAItC,YAAY,EACV,qBAAqB,EACrB,eAAe,GAChB,MAAM,8BAA8B,CAAC;AAEtC,+DAA+D;AAC/D,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,aAAa,EACX,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,eAAe,GACf,aAAa,GACb,wBAAwB,GACxB,eAAe,GACf,iBAAiB,CACpB,CAAC;AAIF,eAAO,MAAM,oBAAoB,QAAc,CAAC;AAEhD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAmBjF;AAkBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,YAAY,EAC7B,OAAO,EAAE,OAAO,GACf,MAAM,CAYR;AAED,0FAA0F;AAC1F,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,oBAAoB,GAAG,SAAS,CAI1E;AAUD,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG/D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAmB1D;AAED,iEAAiE;AACjE,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAGxD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAGjG"}
|
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
* this process on PLexus's one profile.
|
|
4
4
|
*/
|
|
5
5
|
import fs from "node:fs";
|
|
6
|
-
import { openPharoLauncher, } from "@evref-bl/pharo-launcher-mcp
|
|
7
|
-
import {
|
|
6
|
+
import { openPharoLauncher, } from "@evref-bl/pharo-launcher-mcp";
|
|
7
|
+
import { homeProfile } from "./pharoLauncherProfile.js";
|
|
8
8
|
import { vmRenewalHint } from "./vmRenewal.js";
|
|
9
9
|
// The launcher gives a command 30 s. Downloading a template, or a launch that
|
|
10
10
|
// waits while an image loads MCP and saves, takes minutes.
|
|
11
11
|
export const longCommandTimeoutMs = 60 * 60_000;
|
|
12
|
-
export function openLauncherPort(home) {
|
|
13
|
-
const
|
|
12
|
+
export function openLauncherPort(home, launcherDir) {
|
|
13
|
+
const installation = { profile: homeProfile(home), ...(launcherDir === undefined ? {} : { launcherDir }) };
|
|
14
14
|
let quick;
|
|
15
15
|
let long;
|
|
16
|
-
const quickLauncher = () => (quick ??= openPharoLauncher(
|
|
17
|
-
const longLauncher = () => (long ??= openPharoLauncher({
|
|
16
|
+
const quickLauncher = () => (quick ??= openPharoLauncher(installation));
|
|
17
|
+
const longLauncher = () => (long ??= openPharoLauncher({ ...installation, timeoutMs: longCommandTimeoutMs }));
|
|
18
18
|
return {
|
|
19
19
|
createImage: (input) => longLauncher().createImage(input),
|
|
20
20
|
startImage: (input) => (input.detached ? quickLauncher() : longLauncher()).startImage(input),
|
|
21
21
|
deleteLaunchLogs: (input) => quickLauncher().deleteLaunchLogs(input),
|
|
22
|
-
listProcesses: (
|
|
22
|
+
listProcesses: () => quickLauncher().listProcesses(),
|
|
23
23
|
killProcess: (input) => quickLauncher().killProcess(input),
|
|
24
|
-
listTemplateCategories: (
|
|
24
|
+
listTemplateCategories: () => quickLauncher().listTemplateCategories(),
|
|
25
25
|
listTemplates: (input) => quickLauncher().listTemplates(input),
|
|
26
|
-
updateTemplates: (
|
|
26
|
+
updateTemplates: () => quickLauncher().updateTemplates(),
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
const failureDetailLength = 500;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pharoLauncherMcpClient.js","sourceRoot":"","sources":["../../src/launcher/pharoLauncherMcpClient.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EACL,iBAAiB,GAGlB,MAAM,
|
|
1
|
+
{"version":3,"file":"pharoLauncherMcpClient.js","sourceRoot":"","sources":["../../src/launcher/pharoLauncherMcpClient.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EACL,iBAAiB,GAGlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAoB/C,8EAA8E;AAC9E,2DAA2D;AAC3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,GAAG,MAAM,CAAC;AAEhD,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,WAAoB;IACjE,MAAM,YAAY,GAAG,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;IAC3G,IAAI,KAAgC,CAAC;IACrC,IAAI,IAA+B,CAAC;IACpC,MAAM,aAAa,GAAG,GAAkB,EAAE,CAAC,CAAC,KAAK,KAAK,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;IACvF,MAAM,YAAY,GAAG,GAAkB,EAAE,CACvC,CAAC,IAAI,KAAK,iBAAiB,CAAC,EAAE,GAAG,YAAY,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC;IAErF,OAAO;QACL,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC,KAAK,C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O,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* PLexus's one launcher profile
|
|
2
|
+
* PLexus's one launcher profile.
|
|
3
3
|
*
|
|
4
4
|
* One profile, so the launcher image, the VMs and the templates, which are
|
|
5
5
|
* large and the same for every image, exist once per home.
|
|
6
6
|
*/
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function homeProfile(home: string): {
|
|
8
|
+
stateRoot: string;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
/** Where the profile keeps its template sources list. */
|
|
12
|
+
export declare function homeTemplateSources(home: string): string;
|
|
8
13
|
//# sourceMappingURL=pharoLauncherProfile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pharoLauncherProfile.d.ts","sourceRoot":"","sources":["../../src/launcher/pharoLauncherProfile.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"pharoLauncherProfile.d.ts","sourceRoot":"","sources":["../../src/launcher/pharoLauncherProfile.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAE7E;AAED,yDAAyD;AACzD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { profileRoot } from "../home.js";
|
|
3
3
|
/**
|
|
4
|
-
* PLexus's one launcher profile
|
|
4
|
+
* PLexus's one launcher profile.
|
|
5
5
|
*
|
|
6
6
|
* One profile, so the launcher image, the VMs and the templates, which are
|
|
7
7
|
* large and the same for every image, exist once per home.
|
|
8
8
|
*/
|
|
9
|
-
export function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
PHARO_LAUNCHER_MCP_IMAGES_DIR: path.join(root, "images"),
|
|
16
|
-
PHARO_LAUNCHER_MCP_VMS_DIR: path.join(root, "vms"),
|
|
17
|
-
PHARO_LAUNCHER_MCP_TEMPLATE_SOURCES_DIR: path.join(root, "templates"),
|
|
18
|
-
PHARO_LAUNCHER_MCP_INIT_SCRIPTS_DIR: path.join(root, "init-scripts"),
|
|
19
|
-
PHARO_LAUNCHER_MCP_LOGS_DIR: path.join(root, "logs"),
|
|
20
|
-
PHARO_LAUNCHER_MCP_LAUNCHER_CONFIGURATION: path.join(root, "launcher", "pharo-launcher-cli-config.ston"),
|
|
21
|
-
};
|
|
9
|
+
export function homeProfile(home) {
|
|
10
|
+
return { stateRoot: profileRoot(home), name: "plexus" };
|
|
11
|
+
}
|
|
12
|
+
/** Where the profile keeps its template sources list. */
|
|
13
|
+
export function homeTemplateSources(home) {
|
|
14
|
+
return path.join(profileRoot(home), "templates", "sources.list");
|
|
22
15
|
}
|
|
23
16
|
//# sourceMappingURL=pharoLauncherProfile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pharoLauncherProfile.js","sourceRoot":"","sources":["../../src/launcher/pharoLauncherProfile.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"pharoLauncherProfile.js","sourceRoot":"","sources":["../../src/launcher/pharoLauncherProfile.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAC1D,CAAC;AAED,yDAAyD;AACzD,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* missing, the current one. PLexus says so rather than doing it, since a VM
|
|
10
10
|
* error from another cause would remove a VM that running images use.
|
|
11
11
|
*/
|
|
12
|
-
import type { LauncherLaunchReport } from "@evref-bl/pharo-launcher-mcp
|
|
12
|
+
import type { LauncherLaunchReport } from "@evref-bl/pharo-launcher-mcp";
|
|
13
13
|
/**
|
|
14
14
|
* The VM slot a launch ran, the directory of that VM under the profile's VMs,
|
|
15
15
|
* and whether the launch installed that VM itself, which makes it the current
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vmRenewal.d.ts","sourceRoot":"","sources":["../../src/launcher/vmRenewal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"vmRenewal.d.ts","sourceRoot":"","sources":["../../src/launcher/vmRenewal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAMzE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,oBAAoB,GAAG,SAAS,GACvC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAInE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,GAAG,SAAS,GACvC,MAAM,GAAG,SAAS,CAepB"}
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -26,9 +26,9 @@ export interface PlexusMcpServerOptions {
|
|
|
26
26
|
*/
|
|
27
27
|
telemetry?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
* Whether the OTEL_* settings the images start with
|
|
30
|
-
*
|
|
31
|
-
* records
|
|
29
|
+
* Whether the OTEL_* settings the images start with send traces to an OTLP
|
|
30
|
+
* endpoint they name. When they do not, the image tools say that what an
|
|
31
|
+
* image records is sent nowhere.
|
|
32
32
|
*/
|
|
33
33
|
endpointNamed?: boolean;
|
|
34
34
|
/** The clock a working session's idle time is kept by. */
|
|
@@ -41,7 +41,7 @@ export interface PlexusMcpServerOptions {
|
|
|
41
41
|
* the rest: it decides whether these tools are searched for at all. It names
|
|
42
42
|
* only PLexus's own tools, since an image's come from the MCP it holds.
|
|
43
43
|
*/
|
|
44
|
-
export declare const serverInstructions = "Live Pharo images for this project: reading and changing code, running tests,\nsearching and critiquing it.\n\nSearch these tools for any Pharo, Smalltalk, Tonel or .st work.
|
|
44
|
+
export declare const serverInstructions = "Live Pharo images for this project: reading and changing code, running tests,\nsearching and critiquing it.\n\nSearch these tools for any Pharo, Smalltalk, Tonel or .st work. Call\nimage_list first: it says which images this project has and which run.\nimage_start starts one; image_create makes one and starts it. A running image\nlists its common tools here, and its own search tools find the rest.\n\nAn image takes one writer. A running image you did not start or create may be\nanother session's: do not call, stop or delete it unless the user says so.\nimage_create one for each new subject or parallel agent, named like a branch\n(pretty-print-formatter, not p15), and name the image in every call to its\ntools.\n\nStop an image you started once its work pauses: a running image holds its\nmemory. image_stop stops it without saving; save: true keeps what it holds.\nA stopped image holds its disk until it is deleted: keep it a while after its\nsubject is done, and when image_list shows images unused for some time,\npropose to the user which to delete.";
|
|
45
45
|
export declare const imageTools: Tool[];
|
|
46
46
|
/**
|
|
47
47
|
* Why this server answered a call with an error of its own, before any image
|
|
@@ -49,7 +49,7 @@ export declare const imageTools: Tool[];
|
|
|
49
49
|
* images it could go to, or the failure of one of its own tools, by its
|
|
50
50
|
* PlexusError code, or `_OTHER` for any other error.
|
|
51
51
|
*/
|
|
52
|
-
export type RefusalCode = PlexusErrorCode | "
|
|
52
|
+
export type RefusalCode = PlexusErrorCode | "no-image-running" | "several-images" | "none-takes-calls" | "_OTHER";
|
|
53
53
|
/** How long the first call to an image whose tools the host has not listed waits, once answered, for their listing. */
|
|
54
54
|
export declare const firstListingWaitMs = 500;
|
|
55
55
|
/** How long a working session lasts without a call before the next one opens another. */
|
package/dist/mcp/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGnE,OAAO,EAGL,KAAK,cAAc,EAEnB,KAAK,IAAI,EACV,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAcjD,OAAO,KAAK,EAAW,QAAQ,EAAa,MAAM,aAAa,CAAC;AAGhE,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,MAAM,EACN,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,CAC5E,CAAC;AAEF,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,oFAAoF;IACpF,WAAW,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAClC,8CAA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