@narumitw/pi-firecrawl 0.50.4 → 0.51.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 +56 -18
- package/dist/chunks/chunk-WIQUHR2L.ts +1232 -0
- package/dist/chunks/chunk-WIQUHR2L.ts.map +7 -0
- package/dist/chunks/settings-ui-UUHNBNUE.ts +260 -0
- package/dist/chunks/settings-ui-UUHNBNUE.ts.map +7 -0
- package/dist/index.ts +69 -1017
- package/dist/index.ts.map +4 -4
- package/package.json +3 -2
- package/src/firecrawl.ts +41 -22
- package/src/lazy-tools.ts +148 -19
- package/src/settings-key-hints.ts +100 -0
- package/src/settings-ui.ts +186 -0
- package/src/settings.ts +50 -10
- package/src/tool-selector.ts +200 -41
package/src/tool-selector.ts
CHANGED
|
@@ -6,8 +6,18 @@ import {
|
|
|
6
6
|
availableFirecrawlTools,
|
|
7
7
|
FIRECRAWL_LOAD_TOOL_NAME,
|
|
8
8
|
firecrawlToolExposureMode,
|
|
9
|
+
firecrawlToolMode,
|
|
10
|
+
restoreAvailableFirecrawlPolicy,
|
|
9
11
|
} from "./lazy-tools.js";
|
|
10
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
DEFAULT_TOOL_MODE,
|
|
14
|
+
type FirecrawlToolMode,
|
|
15
|
+
loadSettings,
|
|
16
|
+
type SettingsLoadResult,
|
|
17
|
+
saveSettings,
|
|
18
|
+
saveToolMode,
|
|
19
|
+
settingsFilePath,
|
|
20
|
+
} from "./settings.js";
|
|
11
21
|
import { FIRECRAWL_TOOL_NAMES, type FirecrawlToolName } from "./tool-names.js";
|
|
12
22
|
|
|
13
23
|
type CommandContext = ExtensionCommandContext;
|
|
@@ -17,49 +27,63 @@ type ToolSelectorAction = "toggle" | "enableAll" | "disableAll";
|
|
|
17
27
|
interface ToolStatusSummary {
|
|
18
28
|
availabilityStatus: ToolAvailabilityStatus;
|
|
19
29
|
availableFirecrawlToolCount: number;
|
|
30
|
+
callableFirecrawlToolCount: number;
|
|
20
31
|
loadedFirecrawlToolCount: number;
|
|
21
32
|
activeNonFirecrawlToolCount: number;
|
|
22
33
|
}
|
|
23
34
|
|
|
24
35
|
type ToolSelectionSaveResult = "saved" | "available-tools-changed" | "failed";
|
|
25
36
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
interface FirecrawlSessionState {
|
|
38
|
+
generation: number;
|
|
39
|
+
controller: AbortController;
|
|
40
|
+
notice?: string;
|
|
41
|
+
}
|
|
42
|
+
const sessionStates = new WeakMap<ExtensionAPI, FirecrawlSessionState>();
|
|
43
|
+
|
|
44
|
+
function sessionState(pi: ExtensionAPI): FirecrawlSessionState {
|
|
45
|
+
let state = sessionStates.get(pi);
|
|
46
|
+
if (!state) {
|
|
47
|
+
state = { generation: 0, controller: new AbortController() };
|
|
48
|
+
sessionStates.set(pi, state);
|
|
49
|
+
}
|
|
50
|
+
return state;
|
|
51
|
+
}
|
|
29
52
|
|
|
30
|
-
export function advanceFirecrawlSessionGeneration(): number {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
53
|
+
export function advanceFirecrawlSessionGeneration(pi: ExtensionAPI): number {
|
|
54
|
+
const state = sessionState(pi);
|
|
55
|
+
state.controller.abort(new DOMException("Firecrawl session replaced", "AbortError"));
|
|
56
|
+
state.controller = new AbortController();
|
|
57
|
+
return ++state.generation;
|
|
34
58
|
}
|
|
35
59
|
|
|
36
|
-
export function currentFirecrawlSessionGeneration(): number {
|
|
37
|
-
return
|
|
60
|
+
export function currentFirecrawlSessionGeneration(pi: ExtensionAPI): number {
|
|
61
|
+
return sessionState(pi).generation;
|
|
38
62
|
}
|
|
39
63
|
|
|
40
|
-
export function isCurrentFirecrawlSession(generation: number): boolean {
|
|
41
|
-
return generation ===
|
|
64
|
+
export function isCurrentFirecrawlSession(pi: ExtensionAPI, generation: number): boolean {
|
|
65
|
+
return generation === sessionState(pi).generation;
|
|
42
66
|
}
|
|
43
67
|
|
|
44
|
-
export function currentFirecrawlSessionSignal(): AbortSignal {
|
|
45
|
-
return
|
|
68
|
+
export function currentFirecrawlSessionSignal(pi: ExtensionAPI): AbortSignal {
|
|
69
|
+
return sessionState(pi).controller.signal;
|
|
46
70
|
}
|
|
47
71
|
|
|
48
|
-
export function clearSettingsNotice() {
|
|
49
|
-
|
|
72
|
+
export function clearSettingsNotice(pi: ExtensionAPI) {
|
|
73
|
+
sessionState(pi).notice = undefined;
|
|
50
74
|
}
|
|
51
75
|
|
|
52
|
-
export function recordSettingsNotice(settings: SettingsLoadResult) {
|
|
53
|
-
|
|
76
|
+
export function recordSettingsNotice(pi: ExtensionAPI, settings: SettingsLoadResult) {
|
|
77
|
+
sessionState(pi).notice = settings.notice;
|
|
54
78
|
}
|
|
55
79
|
|
|
56
80
|
export async function showToolSelector(pi: ExtensionAPI, ctx: CommandContext) {
|
|
57
|
-
const generation =
|
|
81
|
+
const generation = currentFirecrawlSessionGeneration(pi);
|
|
58
82
|
if (!ctx.hasUI || (ctx.mode !== "tui" && ctx.mode !== "rpc")) {
|
|
59
83
|
throw new Error("/firecrawl tools requires TUI or RPC mode");
|
|
60
84
|
}
|
|
61
|
-
const menuSignal =
|
|
62
|
-
const isCurrent = () => isCurrentFirecrawlSession(generation) && !menuSignal.aborted;
|
|
85
|
+
const menuSignal = currentFirecrawlSessionSignal(pi);
|
|
86
|
+
const isCurrent = () => isCurrentFirecrawlSession(pi, generation) && !menuSignal.aborted;
|
|
63
87
|
const { defineMenu, runMenu } = await import("@narumitw/pi-tui-kit");
|
|
64
88
|
if (!isCurrent()) return;
|
|
65
89
|
const menu = defineMenu<undefined, ToolSelectorScreen, ToolSelectorAction>({
|
|
@@ -127,9 +151,9 @@ export async function showToolSelector(pi: ExtensionAPI, ctx: CommandContext) {
|
|
|
127
151
|
signal: menuSignal,
|
|
128
152
|
isCurrent,
|
|
129
153
|
});
|
|
130
|
-
if (result.kind !== "closed" || !isCurrentFirecrawlSession(generation)) return;
|
|
154
|
+
if (result.kind !== "closed" || !isCurrentFirecrawlSession(pi, generation)) return;
|
|
131
155
|
const status = await buildStatusMessage(pi);
|
|
132
|
-
if (!isCurrentFirecrawlSession(generation)) return;
|
|
156
|
+
if (!isCurrentFirecrawlSession(pi, generation)) return;
|
|
133
157
|
ctx.ui.notify(status, hasApiKey() ? "info" : "warning");
|
|
134
158
|
}
|
|
135
159
|
|
|
@@ -139,11 +163,11 @@ export async function updateFirecrawlTools(
|
|
|
139
163
|
selectedTools: readonly FirecrawlToolName[],
|
|
140
164
|
action: string,
|
|
141
165
|
) {
|
|
142
|
-
const generation =
|
|
166
|
+
const generation = currentFirecrawlSessionGeneration(pi);
|
|
143
167
|
const result = await transactSelectedTools(pi, ctx, selectedTools, generation);
|
|
144
|
-
if (result !== "saved" || !isCurrentFirecrawlSession(generation)) return;
|
|
168
|
+
if (result !== "saved" || !isCurrentFirecrawlSession(pi, generation)) return;
|
|
145
169
|
const status = await buildStatusMessage(pi);
|
|
146
|
-
if (!isCurrentFirecrawlSession(generation)) return;
|
|
170
|
+
if (!isCurrentFirecrawlSession(pi, generation)) return;
|
|
147
171
|
ctx.ui.notify(
|
|
148
172
|
sanitizeFirecrawlDisplay(`Firecrawl tool catalog ${action}.\n\n${status}`),
|
|
149
173
|
hasApiKey() ? "info" : "warning",
|
|
@@ -154,8 +178,57 @@ export async function setSelectedFirecrawlTools(
|
|
|
154
178
|
pi: ExtensionAPI,
|
|
155
179
|
ctx: CommandContext,
|
|
156
180
|
selectedTools: readonly FirecrawlToolName[],
|
|
181
|
+
notificationSignal?: AbortSignal,
|
|
182
|
+
): Promise<boolean> {
|
|
183
|
+
return (
|
|
184
|
+
(await transactSelectedTools(
|
|
185
|
+
pi,
|
|
186
|
+
ctx,
|
|
187
|
+
selectedTools,
|
|
188
|
+
currentFirecrawlSessionGeneration(pi),
|
|
189
|
+
undefined,
|
|
190
|
+
notificationSignal,
|
|
191
|
+
)) === "saved"
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function setFirecrawlCapabilityEnabled(
|
|
196
|
+
pi: ExtensionAPI,
|
|
197
|
+
ctx: CommandContext,
|
|
198
|
+
name: FirecrawlToolName,
|
|
199
|
+
enabled: boolean,
|
|
200
|
+
notificationSignal?: AbortSignal,
|
|
157
201
|
): Promise<boolean> {
|
|
158
|
-
|
|
202
|
+
const generation = currentFirecrawlSessionGeneration(pi);
|
|
203
|
+
const fallbackTools = availableFirecrawlTools(pi);
|
|
204
|
+
const operation = toolTransactionQueue.then(async () => {
|
|
205
|
+
const current = isCurrentFirecrawlSession(pi, generation);
|
|
206
|
+
// A stale owner may read persisted state, but must not read or mutate runtime state.
|
|
207
|
+
const settings = current ? undefined : await loadSettings();
|
|
208
|
+
const base = current
|
|
209
|
+
? availableFirecrawlTools(pi)
|
|
210
|
+
: settings?.kind === "loaded"
|
|
211
|
+
? settings.settings.tools
|
|
212
|
+
: fallbackTools;
|
|
213
|
+
const selected = new Set(base);
|
|
214
|
+
if (enabled) selected.add(name);
|
|
215
|
+
else selected.delete(name);
|
|
216
|
+
return (
|
|
217
|
+
(await transactSelectedToolsNow(
|
|
218
|
+
pi,
|
|
219
|
+
ctx,
|
|
220
|
+
orderedFirecrawlTools(selected),
|
|
221
|
+
generation,
|
|
222
|
+
undefined,
|
|
223
|
+
notificationSignal,
|
|
224
|
+
)) === "saved"
|
|
225
|
+
);
|
|
226
|
+
});
|
|
227
|
+
toolTransactionQueue = operation.then(
|
|
228
|
+
() => undefined,
|
|
229
|
+
() => undefined,
|
|
230
|
+
);
|
|
231
|
+
return operation;
|
|
159
232
|
}
|
|
160
233
|
|
|
161
234
|
let toolTransactionQueue = Promise.resolve();
|
|
@@ -170,9 +243,11 @@ function transactSelectedTools(
|
|
|
170
243
|
selectedTools: readonly FirecrawlToolName[],
|
|
171
244
|
expectedGeneration: number,
|
|
172
245
|
expectedAvailableTools?: readonly FirecrawlToolName[],
|
|
246
|
+
notificationSignal?: AbortSignal,
|
|
173
247
|
): Promise<ToolSelectionSaveResult> {
|
|
248
|
+
const acceptedTools = [...selectedTools];
|
|
174
249
|
const operation = toolTransactionQueue.then(() =>
|
|
175
|
-
transactSelectedToolsNow(pi, ctx,
|
|
250
|
+
transactSelectedToolsNow(pi, ctx, acceptedTools, expectedGeneration, expectedAvailableTools, notificationSignal),
|
|
176
251
|
);
|
|
177
252
|
toolTransactionQueue = operation.then(
|
|
178
253
|
() => undefined,
|
|
@@ -187,8 +262,17 @@ async function transactSelectedToolsNow(
|
|
|
187
262
|
selectedTools: readonly FirecrawlToolName[],
|
|
188
263
|
expectedGeneration: number,
|
|
189
264
|
expectedAvailableTools?: readonly FirecrawlToolName[],
|
|
265
|
+
notificationSignal?: AbortSignal,
|
|
190
266
|
): Promise<ToolSelectionSaveResult> {
|
|
191
|
-
if (!isCurrentFirecrawlSession(expectedGeneration))
|
|
267
|
+
if (!isCurrentFirecrawlSession(pi, expectedGeneration)) {
|
|
268
|
+
// Lifecycle waits include accepted writes even when their runtime owner has gone away.
|
|
269
|
+
try {
|
|
270
|
+
await persistSettings(selectedTools);
|
|
271
|
+
return "saved";
|
|
272
|
+
} catch {
|
|
273
|
+
return "failed";
|
|
274
|
+
}
|
|
275
|
+
}
|
|
192
276
|
if (expectedAvailableTools && !arraysEqual(availableFirecrawlTools(pi), expectedAvailableTools)) {
|
|
193
277
|
ctx.ui.notify(
|
|
194
278
|
"Firecrawl tool availability changed while the selector was open. Review the current state and try again.",
|
|
@@ -198,27 +282,55 @@ async function transactSelectedToolsNow(
|
|
|
198
282
|
}
|
|
199
283
|
const previousActiveTools = pi.getActiveTools();
|
|
200
284
|
const previousAvailableTools = availableFirecrawlTools(pi);
|
|
285
|
+
const sessionOwner = ctx.sessionManager;
|
|
201
286
|
try {
|
|
202
|
-
applyFirecrawlTools(pi, selectedTools,
|
|
287
|
+
applyFirecrawlTools(pi, selectedTools, sessionOwner);
|
|
203
288
|
await persistSettings(selectedTools);
|
|
204
|
-
return isCurrentFirecrawlSession(expectedGeneration) ? "saved" : "failed";
|
|
289
|
+
return isCurrentFirecrawlSession(pi, expectedGeneration) ? "saved" : "failed";
|
|
205
290
|
} catch (error) {
|
|
291
|
+
// Restore only the uncommitted policy. Replacement startup waits for this queue;
|
|
292
|
+
// old work must never re-register tools, change its active set, or publish old UI.
|
|
293
|
+
if (!isCurrentFirecrawlSession(pi, expectedGeneration)) {
|
|
294
|
+
restoreAvailableFirecrawlPolicy(pi, previousAvailableTools, sessionOwner);
|
|
295
|
+
return "failed";
|
|
296
|
+
}
|
|
206
297
|
let rollbackError: unknown;
|
|
207
298
|
try {
|
|
208
|
-
applyAvailableFirecrawlTools(pi, previousAvailableTools,
|
|
209
|
-
const
|
|
299
|
+
applyAvailableFirecrawlTools(pi, previousAvailableTools, sessionOwner);
|
|
300
|
+
const currentOtherTools = pi
|
|
210
301
|
.getActiveTools()
|
|
211
|
-
.filter(
|
|
302
|
+
.filter(
|
|
303
|
+
(name) => name !== FIRECRAWL_LOAD_TOOL_NAME && !FIRECRAWL_TOOL_NAMES.includes(name as FirecrawlToolName),
|
|
304
|
+
);
|
|
212
305
|
const previousLoadedTools = previousActiveTools.filter((name) =>
|
|
213
306
|
FIRECRAWL_TOOL_NAMES.includes(name as FirecrawlToolName),
|
|
214
307
|
);
|
|
215
308
|
const restoredFirecrawlTools =
|
|
216
|
-
|
|
217
|
-
|
|
309
|
+
firecrawlToolMode(pi) === "codemode"
|
|
310
|
+
? previousLoadedTools
|
|
311
|
+
: firecrawlToolExposureMode(pi) === "eager"
|
|
312
|
+
? previousAvailableTools
|
|
313
|
+
: previousLoadedTools;
|
|
314
|
+
const desired = new Set([
|
|
315
|
+
...(firecrawlToolMode(pi) === "lazy" ? [FIRECRAWL_LOAD_TOOL_NAME] : []),
|
|
316
|
+
...restoredFirecrawlTools,
|
|
317
|
+
]);
|
|
318
|
+
const restoredOrder = [...currentOtherTools];
|
|
319
|
+
// Keep current unrelated order and restore owned tools at their previous anchors.
|
|
320
|
+
for (const [index, name] of previousActiveTools.entries()) {
|
|
321
|
+
if (!desired.has(name)) continue;
|
|
322
|
+
const nextOther = previousActiveTools
|
|
323
|
+
.slice(index + 1)
|
|
324
|
+
.find((candidate) => currentOtherTools.includes(candidate));
|
|
325
|
+
if (nextOther) restoredOrder.splice(restoredOrder.indexOf(nextOther), 0, name);
|
|
326
|
+
else restoredOrder.push(name);
|
|
327
|
+
}
|
|
328
|
+
pi.setActiveTools(unique([...restoredOrder, ...desired]));
|
|
218
329
|
} catch (caught) {
|
|
219
330
|
rollbackError = caught;
|
|
220
331
|
}
|
|
221
|
-
if (!isCurrentFirecrawlSession(expectedGeneration)) return "failed";
|
|
332
|
+
if (!isCurrentFirecrawlSession(pi, expectedGeneration)) return "failed";
|
|
333
|
+
if (notificationSignal?.aborted) return "failed";
|
|
222
334
|
ctx.ui.notify(
|
|
223
335
|
sanitizeFirecrawlDisplay(
|
|
224
336
|
rollbackError
|
|
@@ -231,6 +343,33 @@ async function transactSelectedToolsNow(
|
|
|
231
343
|
}
|
|
232
344
|
}
|
|
233
345
|
|
|
346
|
+
export function setFirecrawlToolMode(
|
|
347
|
+
pi: ExtensionAPI,
|
|
348
|
+
ctx: CommandContext,
|
|
349
|
+
mode: FirecrawlToolMode,
|
|
350
|
+
notificationSignal?: AbortSignal,
|
|
351
|
+
): Promise<boolean> {
|
|
352
|
+
const generation = currentFirecrawlSessionGeneration(pi);
|
|
353
|
+
const fallbackTools = availableFirecrawlTools(pi);
|
|
354
|
+
const operation = toolTransactionQueue.then(async () => {
|
|
355
|
+
// Accepted mode writes are global persistence, not work owned by the old session.
|
|
356
|
+
try {
|
|
357
|
+
await saveToolMode(mode, fallbackTools);
|
|
358
|
+
return true;
|
|
359
|
+
} catch (error) {
|
|
360
|
+
if (!notificationSignal?.aborted && isCurrentFirecrawlSession(pi, generation)) {
|
|
361
|
+
ctx.ui.notify(sanitizeFirecrawlDisplay(`Firecrawl settings save failed: ${formatError(error)}`), "warning");
|
|
362
|
+
}
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
toolTransactionQueue = operation.then(
|
|
367
|
+
() => undefined,
|
|
368
|
+
() => undefined,
|
|
369
|
+
);
|
|
370
|
+
return operation;
|
|
371
|
+
}
|
|
372
|
+
|
|
234
373
|
function arraysEqual<T>(left: readonly T[], right: readonly T[]) {
|
|
235
374
|
return left.length === right.length && left.every((value, index) => value === right[index]);
|
|
236
375
|
}
|
|
@@ -248,6 +387,19 @@ function getToolStatusSummary(pi: ExtensionAPI): ToolStatusSummary {
|
|
|
248
387
|
const activeToolNames = new Set(pi.getActiveTools());
|
|
249
388
|
const loadedFirecrawlToolCount = FIRECRAWL_TOOL_NAMES.filter((name) => activeToolNames.has(name)).length;
|
|
250
389
|
const availableFirecrawlToolCount = availableFirecrawlTools(pi).length;
|
|
390
|
+
// getAllTools reflects host allowlists/exclusions; callability is distinct from declaration.
|
|
391
|
+
const callableFirecrawlToolCount = new Set(
|
|
392
|
+
pi
|
|
393
|
+
.getAllTools()
|
|
394
|
+
.filter(
|
|
395
|
+
(tool) =>
|
|
396
|
+
firecrawlToolNames.has(tool.name) &&
|
|
397
|
+
(tool.exposure === "codemode" ||
|
|
398
|
+
tool.exposure === "deferred" ||
|
|
399
|
+
((tool.exposure ?? "direct") === "direct" && activeToolNames.has(tool.name))),
|
|
400
|
+
)
|
|
401
|
+
.map((tool) => tool.name),
|
|
402
|
+
).size;
|
|
251
403
|
const activeNonFirecrawlToolCount = Array.from(activeToolNames).filter(
|
|
252
404
|
(name) => !firecrawlToolNames.has(name) && name !== FIRECRAWL_LOAD_TOOL_NAME,
|
|
253
405
|
).length;
|
|
@@ -261,27 +413,33 @@ function getToolStatusSummary(pi: ExtensionAPI): ToolStatusSummary {
|
|
|
261
413
|
return {
|
|
262
414
|
availabilityStatus,
|
|
263
415
|
availableFirecrawlToolCount,
|
|
416
|
+
callableFirecrawlToolCount,
|
|
264
417
|
loadedFirecrawlToolCount,
|
|
265
418
|
activeNonFirecrawlToolCount,
|
|
266
419
|
};
|
|
267
420
|
}
|
|
268
421
|
|
|
269
422
|
export async function buildStatusMessage(pi: ExtensionAPI) {
|
|
270
|
-
const generation =
|
|
423
|
+
const generation = currentFirecrawlSessionGeneration(pi);
|
|
271
424
|
const settings = await loadSettings();
|
|
272
|
-
if (!isCurrentFirecrawlSession(generation)) return "";
|
|
273
|
-
recordSettingsNotice(settings);
|
|
425
|
+
if (!isCurrentFirecrawlSession(pi, generation)) return "";
|
|
426
|
+
recordSettingsNotice(pi, settings);
|
|
274
427
|
const summary = getToolStatusSummary(pi);
|
|
275
428
|
const persistedSetting = persistedSettingLabel(settings);
|
|
429
|
+
const savedMode = settings.kind === "loaded" ? (settings.settings.toolMode ?? DEFAULT_TOOL_MODE) : DEFAULT_TOOL_MODE;
|
|
276
430
|
return sanitizeFirecrawlDisplay(
|
|
277
431
|
[
|
|
278
432
|
`Firecrawl tools available: ${formatRuntimeStatus(summary)}`,
|
|
433
|
+
`Running tool mode: ${firecrawlToolMode(pi)}`,
|
|
434
|
+
`Saved tool mode: ${savedMode}${settings.kind === "loaded" ? "" : " (default; no valid override)"}`,
|
|
435
|
+
...(savedMode !== firecrawlToolMode(pi) ? ["Tool mode change pending: /reload required"] : []),
|
|
279
436
|
`Tool exposure: ${firecrawlToolExposureMode(pi)}`,
|
|
437
|
+
`Callable capability tools: ${summary.callableFirecrawlToolCount}/${FIRECRAWL_TOOL_NAMES.length}`,
|
|
280
438
|
`Loaded capability tools this session: ${summary.loadedFirecrawlToolCount}/${FIRECRAWL_TOOL_NAMES.length}`,
|
|
281
439
|
`Loader: ${pi.getActiveTools().includes(FIRECRAWL_LOAD_TOOL_NAME) ? "active" : "inactive"}`,
|
|
282
440
|
`Persisted tool catalog: ${persistedSetting}`,
|
|
283
441
|
`Settings file: ${settingsFilePath()}`,
|
|
284
|
-
...(
|
|
442
|
+
...(sessionState(pi).notice ? [`Settings note: ${sessionState(pi).notice}`] : []),
|
|
285
443
|
`Other active tools preserved: ${summary.activeNonFirecrawlToolCount}`,
|
|
286
444
|
`API key: ${hasApiKey() ? "present" : "missing"} (FIRECRAWL_API_KEY)`,
|
|
287
445
|
`API URL: ${configuredApiUrl()}`,
|
|
@@ -309,6 +467,7 @@ export function buildCommandGuide() {
|
|
|
309
467
|
"/firecrawl config — show API key presence and API URL",
|
|
310
468
|
"/firecrawl quickstart — alias for /firecrawl config",
|
|
311
469
|
"/firecrawl status — show tool and settings status",
|
|
470
|
+
"/firecrawl settings — choose tool mode (applies after /reload) and available tools",
|
|
312
471
|
"/firecrawl tools — choose available Firecrawl tools",
|
|
313
472
|
"/firecrawl toggle — alias for /firecrawl tools",
|
|
314
473
|
"/firecrawl enable — make all Firecrawl tools available",
|