@dev.fast/whiteboard 0.2.5-preview.20261015.119 → 0.2.5-preview.20261016.121
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/{account-alias-C1ixP6bt.js → account-alias-CwNaMOwU.js} +372 -85
- package/dist/agent-cli-NWQPsL0W.js +2 -0
- package/dist/{agent-cli-CPSnWc9V.js → agent-cli-S0bt9I7V.js} +7 -7
- package/dist/{agent-client-Dogh8I83.js → agent-client-DjXQy6CL.js} +5 -6
- package/dist/{authoring-tools-CtsslOEf.js → authoring-tools-CjFAGHBa.js} +5 -4
- package/dist/{background-server-BKR_lpYb.js → background-server-CVL7QpsL.js} +1 -1
- package/dist/{background-server-DJT0CnYH.js → background-server-ONy-xKJ1.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{cli-Df6p-C19.js → cli-Cko4zfif.js} +1 -1
- package/dist/{cli-runner-ZktCwlLk.js → cli-runner-BhBnAC_R.js} +51 -187
- package/dist/cli.js +2 -2
- package/dist/{client-_ltX1mah.js → client-CLqKkzOc.js} +4 -4
- package/dist/fuzzy-match-DFPKdSLR.js +335 -0
- package/dist/{headless-host-Pj2xfGAo.js → headless-host-BNF-TR3x.js} +1 -1
- package/dist/{headless-host-ZNZ_6ZRo.js → headless-host-mg9sQG6H.js} +53 -345
- package/dist/{local-data-D_9S--yI.js → local-data-DN-A5p0K.js} +57 -415
- package/dist/{mcp-Blb7rzGw.js → mcp-BY4ExeMQ.js} +3 -3
- package/dist/{package-paths-BsuI4WUf.js → package-paths-jMg6JxDP.js} +1 -1
- package/dist/profile-BBw-jMW3.js +2 -0
- package/dist/{profile-CKSB6UDi.js → profile-Dm6irjbg.js} +2 -2
- package/dist/{remote-attach-CiOwonJ3.js → remote-attach-DJxW9402.js} +4 -4
- package/dist/{remote-extensions-D_4DSOhO.js → remote-extensions-BCAbQZTv.js} +2 -2
- package/dist/{remote-extensions-ByiuSl1D.js → remote-extensions-Cf3L-ZGG.js} +1 -1
- package/dist/{remote-language-server-BQjBk81F.js → remote-language-server-CGsCaqro.js} +4 -4
- package/dist/{remote-uninstall-pzHb-Hfd.js → remote-uninstall-DYmNOetF.js} +5 -5
- package/dist/{request-origin-C-V9f3Fr.js → request-origin-D1RNVSeK.js} +2 -7
- package/dist/{review-app-launcher-S2FZBY4W.js → review-app-launcher-i1hmxOZA.js} +2 -2
- package/dist/{review-home-paths-zwevIq4I.js → review-home-paths-Lc02WFuX.js} +1 -1
- package/dist/{review-telemetry-9ceqh4wz.js → review-telemetry-DnQNwgR1.js} +4 -4
- package/dist/server/desktop-host.js +99 -445
- package/dist/{server-discovery-CqRxbsER.js → server-discovery-DVqrcIDT.js} +2 -2
- package/dist/sharing/index.d.ts +17 -13
- package/dist/sharing/index.js +1 -1
- package/dist/{src-HnIPjtjx.js → src-DZG1xAqW.js} +4 -1
- package/dist/{stored-document-migration-DenDEYdI.js → stored-document-migration-DLBhkSfp.js} +46 -6
- package/dist/thread-state-CaQ2lGdj.js +400 -0
- package/dist/{tool-failure-aSYcHDxP.js → tool-failure-CVJrfi5s.js} +1 -1
- package/package.json +3 -3
- package/src/agent-connect.ts +29 -106
- package/src/cli-install.ts +13 -11
- package/src/cli-runner.ts +51 -24
- package/src/connect-prompts.ts +135 -71
- package/src/review-api/README.md +1 -1
- package/src/review-api/azure-devops-provider.ts +4 -0
- package/src/review-api/blocks/definition.ts +3 -1
- package/src/review-api/blocks/index.ts +19 -0
- package/src/review-api/blocks/sequence.ts +80 -2
- package/src/review-api/comparison-coverage.ts +0 -13
- package/src/review-api/component-reference.ts +2 -1
- package/src/review-api/document-text.ts +7 -2
- package/src/review-api/document.ts +13 -9
- package/src/review-api/github-provider.ts +21 -3
- package/src/review-api/http.ts +22 -41
- package/src/review-api/local-data.ts +22 -27
- package/src/review-api/pull-request.ts +2 -0
- package/src/review-api/review-progress.ts +6 -8
- package/src/review-api/store.ts +36 -25
- package/src/review-stack.ts +3 -2
- package/src/server/review-gateway-hosts.ts +8 -1
- package/src/server/review-gateway-list.ts +4 -10
- package/src/server/review-gateway-memory.ts +6 -19
- package/src/server/review-gateway-streams.ts +32 -46
- package/src/sharing/import.ts +2 -2
- package/src/ui-telemetry-events.ts +1 -2
- package/dist/agent-cli-CGapivA1.js +0 -2
- package/dist/fs-utils-BMPLt0cr.js +0 -22
- package/dist/fuzzy-match-BoAmcyak.js +0 -30
- package/dist/profile-BUoTujrK.js +0 -2
- package/src/connect-agents.ts +0 -285
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import "./review-home-paths-Lc02WFuX.js";
|
|
2
|
+
import { M as devReviewHome } from "./s3-config-DDWWMh5x.js";
|
|
3
|
+
import { n as askAgentIds } from "./thread-state-CaQ2lGdj.js";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
import { constants } from "node:fs";
|
|
6
|
+
import { access, chmod, mkdir, readFile, rename, stat, writeFile } from "node:fs/promises";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { homedir } from "node:os";
|
|
9
|
+
import { execFile, spawn } from "node:child_process";
|
|
10
|
+
import { promisify } from "node:util";
|
|
11
|
+
import { Readable, Writable } from "node:stream";
|
|
12
|
+
import { ndJsonStream } from "@agentclientprotocol/sdk";
|
|
13
|
+
import fuzzysort from "fuzzysort";
|
|
14
|
+
//#region src/ask/pi-mcp.ts
|
|
15
|
+
/**
|
|
16
|
+
* pi-acp keeps the MCP servers a session is given without passing them to
|
|
17
|
+
* Pi. Pi 0.99.0 and later take them from an extension, so Ask starts Pi
|
|
18
|
+
* through a wrapper that loads one, registering the servers for that session
|
|
19
|
+
* only. Older Pi, and Windows, which would need a different wrapper, answer
|
|
20
|
+
* without them.
|
|
21
|
+
*/
|
|
22
|
+
/** The first Pi with `pi.registerMcpServer()`. */
|
|
23
|
+
const PI_MCP_VERSION = [
|
|
24
|
+
0,
|
|
25
|
+
99,
|
|
26
|
+
0
|
|
27
|
+
];
|
|
28
|
+
/** How long a version read is trusted: a session's first prompt and its
|
|
29
|
+
* launch ask moments apart, and an update during a review is seen soon. */
|
|
30
|
+
const VERSION_TTL_MS = 3e4;
|
|
31
|
+
const SERVERS_ENV = "WHITEBOARD_ASK_MCP";
|
|
32
|
+
const PI_ENV = "WHITEBOARD_ASK_PI";
|
|
33
|
+
const EXTENSION_ENV = "WHITEBOARD_ASK_PI_EXTENSION";
|
|
34
|
+
const EXTENSION = `// Managed by Whiteboard: gives a Pi session that Ask starts the MCP servers
|
|
35
|
+
// Whiteboard hands it. Do not edit.
|
|
36
|
+
export default function (pi: {
|
|
37
|
+
registerMcpServer(name: string, config: object): void;
|
|
38
|
+
}) {
|
|
39
|
+
const servers = JSON.parse(process.env.${SERVERS_ENV} ?? "{}");
|
|
40
|
+
|
|
41
|
+
for (const [name, config] of Object.entries(servers))
|
|
42
|
+
pi.registerMcpServer(name, config as object);
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
const WRAPPER = `#!/bin/sh
|
|
46
|
+
# Managed by Whiteboard: starts Pi for Ask with Whiteboard's extension.
|
|
47
|
+
exec "$${PI_ENV}" -e "$${EXTENSION_ENV}" "$@"
|
|
48
|
+
`;
|
|
49
|
+
const versions = /* @__PURE__ */ new Map();
|
|
50
|
+
function piVersion(executable, env) {
|
|
51
|
+
const cached = versions.get(executable);
|
|
52
|
+
if (cached && Date.now() - cached.read < VERSION_TTL_MS) return cached.version;
|
|
53
|
+
const version = promisify(execFile)(executable, ["--version"], {
|
|
54
|
+
env,
|
|
55
|
+
timeout: 5e3
|
|
56
|
+
}).then(({ stdout }) => /(\d+)\.(\d+)\.(\d+)/u.exec(stdout)?.slice(1).map(Number)).catch(() => void 0);
|
|
57
|
+
versions.set(executable, {
|
|
58
|
+
read: Date.now(),
|
|
59
|
+
version
|
|
60
|
+
});
|
|
61
|
+
return version;
|
|
62
|
+
}
|
|
63
|
+
/** Whether this Pi can be given MCP servers. */
|
|
64
|
+
async function piTakesMcp(executable, env) {
|
|
65
|
+
if (process.platform === "win32") return false;
|
|
66
|
+
const version = await piVersion(executable, env);
|
|
67
|
+
if (!version) return false;
|
|
68
|
+
for (const [index, least] of PI_MCP_VERSION.entries()) {
|
|
69
|
+
const part = version[index] ?? 0;
|
|
70
|
+
if (part !== least) return part > least;
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
/** Writes a file only when it changed, replacing it whole, since another
|
|
75
|
+
* Ask session may be running it. */
|
|
76
|
+
async function keep(file, content, mode) {
|
|
77
|
+
if (await readFile(file, "utf8").catch(() => void 0) === content) return;
|
|
78
|
+
const staged = `${file}.${process.pid}.tmp`;
|
|
79
|
+
await writeFile(staged, content, { mode });
|
|
80
|
+
await chmod(staged, mode);
|
|
81
|
+
await rename(staged, file);
|
|
82
|
+
}
|
|
83
|
+
function piServers(servers) {
|
|
84
|
+
const piServers = {};
|
|
85
|
+
const record = (pairs) => Object.fromEntries(pairs.map(({ name, value }) => [name, value]));
|
|
86
|
+
for (const server of servers) if ("command" in server) piServers[server.name] = {
|
|
87
|
+
command: server.command,
|
|
88
|
+
args: server.args,
|
|
89
|
+
env: record(server.env),
|
|
90
|
+
exposure: "direct"
|
|
91
|
+
};
|
|
92
|
+
else if (server.type === "http") piServers[server.name] = {
|
|
93
|
+
url: server.url,
|
|
94
|
+
headers: record(server.headers),
|
|
95
|
+
exposure: "direct"
|
|
96
|
+
};
|
|
97
|
+
return piServers;
|
|
98
|
+
}
|
|
99
|
+
/** The command pi-acp runs in place of Pi: Pi with the extension that
|
|
100
|
+
* registers `servers`, which go to it in `env`. */
|
|
101
|
+
async function piWithMcp(executable, servers, env) {
|
|
102
|
+
const directory = path.join(devReviewHome(), "ask", "pi");
|
|
103
|
+
const extension = path.join(directory, "whiteboard-mcp.ts");
|
|
104
|
+
const wrapper = path.join(directory, "pi");
|
|
105
|
+
await mkdir(directory, { recursive: true });
|
|
106
|
+
await keep(extension, EXTENSION, 420);
|
|
107
|
+
await keep(wrapper, WRAPPER, 493);
|
|
108
|
+
env[PI_ENV] = executable;
|
|
109
|
+
env[EXTENSION_ENV] = extension;
|
|
110
|
+
env[SERVERS_ENV] = JSON.stringify(piServers(servers));
|
|
111
|
+
return wrapper;
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/ask/agents.ts
|
|
115
|
+
/** The mode, session settings and process settings an agent runs with. */
|
|
116
|
+
function askAgentSettings(agent, permissions) {
|
|
117
|
+
const spec = askAgents[agent];
|
|
118
|
+
const own = permissions === "read-only" ? { mode: spec.readOnlyMode } : spec[permissions];
|
|
119
|
+
return {
|
|
120
|
+
mode: own?.mode,
|
|
121
|
+
sessionMeta: own?.sessionMeta ?? spec.sessionMeta,
|
|
122
|
+
env: own?.env ?? spec.env
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/** What a new conversation may do: decide for itself where the agent can,
|
|
126
|
+
* else read only. */
|
|
127
|
+
function defaultAskPermissions(agent) {
|
|
128
|
+
return askAgents[agent].auto ? "auto" : "read-only";
|
|
129
|
+
}
|
|
130
|
+
const askAgents = {
|
|
131
|
+
claude: {
|
|
132
|
+
name: "Claude Code",
|
|
133
|
+
commands: ["claude"],
|
|
134
|
+
launch: {
|
|
135
|
+
adapter: "@agentclientprotocol/claude-agent-acp/dist/index.js",
|
|
136
|
+
executableEnv: "CLAUDE_CODE_EXECUTABLE"
|
|
137
|
+
},
|
|
138
|
+
signIn: "claude auth login",
|
|
139
|
+
steers: true,
|
|
140
|
+
readOnlyMode: "default",
|
|
141
|
+
sessionMeta: { claudeCode: { options: {
|
|
142
|
+
disallowedTools: [
|
|
143
|
+
"Edit",
|
|
144
|
+
"MultiEdit",
|
|
145
|
+
"Write",
|
|
146
|
+
"NotebookEdit",
|
|
147
|
+
"EnterPlanMode",
|
|
148
|
+
"ExitPlanMode"
|
|
149
|
+
],
|
|
150
|
+
allowDangerouslySkipPermissions: false
|
|
151
|
+
} } },
|
|
152
|
+
auto: { mode: "auto" },
|
|
153
|
+
bypass: {
|
|
154
|
+
mode: "bypassPermissions",
|
|
155
|
+
sessionMeta: { claudeCode: { options: { disallowedTools: ["EnterPlanMode", "ExitPlanMode"] } } }
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
codex: {
|
|
159
|
+
name: "Codex",
|
|
160
|
+
commands: ["codex"],
|
|
161
|
+
launch: {
|
|
162
|
+
adapter: "@agentclientprotocol/codex-acp/dist/index.js",
|
|
163
|
+
executableEnv: "CODEX_PATH"
|
|
164
|
+
},
|
|
165
|
+
signIn: "codex login",
|
|
166
|
+
readOnlyMode: "read-only",
|
|
167
|
+
auto: { mode: "agent" },
|
|
168
|
+
bypass: { mode: "agent-full-access" }
|
|
169
|
+
},
|
|
170
|
+
cursor: {
|
|
171
|
+
name: "Cursor",
|
|
172
|
+
commands: ["cursor-agent"],
|
|
173
|
+
installDirs: [".local/bin"],
|
|
174
|
+
launch: { args: ["acp"] },
|
|
175
|
+
signIn: "cursor-agent login",
|
|
176
|
+
readOnlyMode: "ask",
|
|
177
|
+
bypass: { mode: "agent" }
|
|
178
|
+
},
|
|
179
|
+
opencode: {
|
|
180
|
+
name: "OpenCode",
|
|
181
|
+
commands: ["opencode"],
|
|
182
|
+
installDirs: [".opencode/bin"],
|
|
183
|
+
launch: { args: ["acp"] },
|
|
184
|
+
signIn: "opencode auth login",
|
|
185
|
+
readOnlyMode: "build",
|
|
186
|
+
env: { OPENCODE_CONFIG_CONTENT: JSON.stringify({ permission: {
|
|
187
|
+
edit: "deny",
|
|
188
|
+
bash: "ask",
|
|
189
|
+
webfetch: "ask"
|
|
190
|
+
} }) },
|
|
191
|
+
bypass: {
|
|
192
|
+
mode: "build",
|
|
193
|
+
env: { OPENCODE_CONFIG_CONTENT: JSON.stringify({ permission: {
|
|
194
|
+
edit: "allow",
|
|
195
|
+
bash: "allow",
|
|
196
|
+
webfetch: "allow"
|
|
197
|
+
} }) }
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
pi: {
|
|
201
|
+
name: "Pi",
|
|
202
|
+
commands: ["pi"],
|
|
203
|
+
launch: {
|
|
204
|
+
adapter: "pi-acp/dist/index.js",
|
|
205
|
+
executableEnv: "PI_ACP_PI_COMMAND"
|
|
206
|
+
},
|
|
207
|
+
signIn: "pi",
|
|
208
|
+
mcp: {
|
|
209
|
+
supported: piTakesMcp,
|
|
210
|
+
launch: piWithMcp
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
/** Desktop inherits the login shell's PATH, so this sees what a terminal sees.
|
|
215
|
+
* Package-manager bin directories are skipped: the adapters' own dependencies
|
|
216
|
+
* put `codex` there, and that is not the user's install. */
|
|
217
|
+
async function findExecutable(command, env = process.env) {
|
|
218
|
+
for (const directory of (env.PATH ?? "").split(path.delimiter)) {
|
|
219
|
+
if (!directory || directory.split(path.sep).includes("node_modules")) continue;
|
|
220
|
+
const candidate = path.join(directory, command);
|
|
221
|
+
try {
|
|
222
|
+
if (!(await stat(candidate)).isFile()) continue;
|
|
223
|
+
await access(candidate, constants.X_OK);
|
|
224
|
+
return candidate;
|
|
225
|
+
} catch {}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/** The user's install of an agent's CLI: on PATH, else where its installer
|
|
229
|
+
* puts it. */
|
|
230
|
+
async function findAgent(spec, env = process.env) {
|
|
231
|
+
const installed = (spec.installDirs ?? []).map((directory) => path.join(homedir(), directory));
|
|
232
|
+
for (const command of spec.commands) {
|
|
233
|
+
const found = await findExecutable(command, env) ?? await findExecutable(command, { PATH: installed.join(path.delimiter) });
|
|
234
|
+
if (found) return found;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/** Whether the agent's model gets the MCP servers its sessions are given. */
|
|
238
|
+
async function askAgentTakesMcp(agent, env = process.env) {
|
|
239
|
+
const spec = askAgents[agent];
|
|
240
|
+
if (!spec.mcp) return true;
|
|
241
|
+
const executable = await findAgent(spec, env);
|
|
242
|
+
return executable !== void 0 && spec.mcp.supported(executable, env);
|
|
243
|
+
}
|
|
244
|
+
async function detectAskAgents(env = process.env) {
|
|
245
|
+
return Promise.all(askAgentIds.map(async (id) => ({
|
|
246
|
+
id,
|
|
247
|
+
name: askAgents[id].name,
|
|
248
|
+
available: await findAgent(askAgents[id], env) !== void 0,
|
|
249
|
+
readOnly: askAgents[id].readOnlyMode !== void 0,
|
|
250
|
+
auto: askAgents[id].auto !== void 0,
|
|
251
|
+
bypass: askAgents[id].bypass !== void 0
|
|
252
|
+
})));
|
|
253
|
+
}
|
|
254
|
+
/** Runs an adapter with this server's runtime, Desktop's being Electron, or
|
|
255
|
+
* the user's CLI itself. */
|
|
256
|
+
const launchAskAgent = async (agent, cwd, { permissions = "read-only", mcpServers = [], env: base = process.env } = {}) => {
|
|
257
|
+
const spec = askAgents[agent];
|
|
258
|
+
const executable = await findAgent(spec, base);
|
|
259
|
+
if (!executable) throw new Error(`${spec.name} is not installed.`);
|
|
260
|
+
const env = {
|
|
261
|
+
...base,
|
|
262
|
+
...askAgentSettings(agent, permissions).env
|
|
263
|
+
};
|
|
264
|
+
delete env.CLAUDECODE;
|
|
265
|
+
delete env.CLAUDE_CODE_ENTRYPOINT;
|
|
266
|
+
const { launch } = spec;
|
|
267
|
+
let command = executable;
|
|
268
|
+
let args;
|
|
269
|
+
if ("adapter" in launch) {
|
|
270
|
+
env[launch.executableEnv] = spec.mcp && mcpServers.length && await spec.mcp.supported(executable, env) ? await spec.mcp.launch(executable, mcpServers, env) : executable;
|
|
271
|
+
if (process.versions.electron) env.ELECTRON_RUN_AS_NODE = "1";
|
|
272
|
+
command = process.execPath;
|
|
273
|
+
args = [createRequire(import.meta.url).resolve(launch.adapter)];
|
|
274
|
+
} else args = launch.args;
|
|
275
|
+
const child = spawn(command, args, {
|
|
276
|
+
cwd,
|
|
277
|
+
env,
|
|
278
|
+
stdio: [
|
|
279
|
+
"pipe",
|
|
280
|
+
"pipe",
|
|
281
|
+
"pipe"
|
|
282
|
+
]
|
|
283
|
+
});
|
|
284
|
+
let stderr = "";
|
|
285
|
+
child.stderr.setEncoding("utf8");
|
|
286
|
+
child.stderr.on("data", (chunk) => {
|
|
287
|
+
stderr = (stderr + chunk).slice(-8e3);
|
|
288
|
+
});
|
|
289
|
+
await new Promise((resolve, reject) => {
|
|
290
|
+
child.once("spawn", resolve);
|
|
291
|
+
child.once("error", reject);
|
|
292
|
+
});
|
|
293
|
+
const stream = ndJsonStream(Writable.toWeb(child.stdin), Readable.toWeb(child.stdout));
|
|
294
|
+
return {
|
|
295
|
+
connect: (client) => {
|
|
296
|
+
const connection = client.connect(stream);
|
|
297
|
+
child.once("exit", () => connection.close());
|
|
298
|
+
return connection;
|
|
299
|
+
},
|
|
300
|
+
diagnostics: () => stderr,
|
|
301
|
+
stop: () => {
|
|
302
|
+
if (child.exitCode === null) child.kill();
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/fuzzy-match.ts
|
|
308
|
+
const SCORE_THRESHOLD = .5;
|
|
309
|
+
/**
|
|
310
|
+
* The single fuzzy matcher for this package. Each label is scored on its own,
|
|
311
|
+
* never joined: a match across a join could pair a letter from one label with
|
|
312
|
+
* a letter from the next and keep an item that shows neither word.
|
|
313
|
+
*/
|
|
314
|
+
function bestScore(needle, labels) {
|
|
315
|
+
let best = 0;
|
|
316
|
+
for (const label of labels) {
|
|
317
|
+
const score = fuzzysort.single(needle, label)?.score ?? 0;
|
|
318
|
+
if (score > best) best = score;
|
|
319
|
+
}
|
|
320
|
+
return best;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* The items whose labels hit the query, best match first. An empty query keeps
|
|
324
|
+
* every item in its original order.
|
|
325
|
+
*/
|
|
326
|
+
function fuzzyRank(query, items, labelsOf) {
|
|
327
|
+
const needle = query.trim();
|
|
328
|
+
if (!needle) return [...items];
|
|
329
|
+
return items.values().map((item) => ({
|
|
330
|
+
item,
|
|
331
|
+
score: bestScore(needle, labelsOf(item))
|
|
332
|
+
})).filter((hit) => hit.score >= SCORE_THRESHOLD).toArray().sort((left, right) => right.score - left.score).map((hit) => hit.item);
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
export { defaultAskPermissions as a, launchAskAgent as c, askAgents as i, askAgentSettings as n, detectAskAgents as o, askAgentTakesMcp as r, findExecutable as s, fuzzyRank as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as withHeadlessServerLock, n as runHeadlessServer, r as takeOverServerHome, t as HeadlessServerBusyError } from "./headless-host-
|
|
1
|
+
import { i as withHeadlessServerLock, n as runHeadlessServer, r as takeOverServerHome, t as HeadlessServerBusyError } from "./headless-host-mg9sQG6H.js";
|
|
2
2
|
export { HeadlessServerBusyError, runHeadlessServer, takeOverServerHome, withHeadlessServerLock };
|