@narumitw/pi-firecrawl 0.6.2 → 0.8.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/package.json +1 -1
- package/src/firecrawl.ts +10 -10
package/package.json
CHANGED
package/src/firecrawl.ts
CHANGED
|
@@ -22,14 +22,14 @@ const FIRECRAWL_TOOL_NAMES = [
|
|
|
22
22
|
"firecrawl_search",
|
|
23
23
|
] as const;
|
|
24
24
|
const COMMAND_COMPLETIONS = [
|
|
25
|
-
{ value: "help", label: "Show command usage" },
|
|
26
|
-
{ value: "config", label: "Show configuration quick start" },
|
|
27
|
-
{ value: "quickstart", label: "Show configuration quick start" },
|
|
28
|
-
{ value: "status", label: "Show tool and settings status" },
|
|
29
|
-
{ value: "tools", label: "Select Firecrawl tools" },
|
|
30
|
-
{ value: "toggle", label: "Select Firecrawl tools" },
|
|
31
|
-
{ value: "enable", label: "Enable all Firecrawl tools" },
|
|
32
|
-
{ value: "disable", label: "Disable all Firecrawl tools" },
|
|
25
|
+
{ value: "help", label: "help", description: "Show command usage" },
|
|
26
|
+
{ value: "config", label: "config", description: "Show configuration quick start" },
|
|
27
|
+
{ value: "quickstart", label: "quickstart", description: "Show configuration quick start" },
|
|
28
|
+
{ value: "status", label: "status", description: "Show tool and settings status" },
|
|
29
|
+
{ value: "tools", label: "tools", description: "Select Firecrawl tools" },
|
|
30
|
+
{ value: "toggle", label: "toggle", description: "Select Firecrawl tools" },
|
|
31
|
+
{ value: "enable", label: "enable", description: "Enable all Firecrawl tools" },
|
|
32
|
+
{ value: "disable", label: "disable", description: "Disable all Firecrawl tools" },
|
|
33
33
|
];
|
|
34
34
|
const MENU_OPTIONS = {
|
|
35
35
|
config: "Configuration quick start",
|
|
@@ -362,8 +362,8 @@ export function parseCommand(args: string): CommandAction | "unknown" {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
export function commandCompletions(prefix: string) {
|
|
365
|
-
const normalized = prefix.
|
|
366
|
-
if (normalized
|
|
365
|
+
const normalized = prefix.trimStart().toLowerCase();
|
|
366
|
+
if (/\s/.test(normalized)) return null;
|
|
367
367
|
|
|
368
368
|
const matches = COMMAND_COMPLETIONS.filter((completion) =>
|
|
369
369
|
completion.value.startsWith(normalized),
|