Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/__tests__/alexandria-beta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ it('preserves mixed search results, tools and billing metadata', async () => {
const readable = await cli(['search', 'pizza hut']);
expect(readable.stdout).toContain('=== Alexandria Tools ===');
expect(readable.stdout).toContain('series/observations');
expect(readable.stdout).toContain(
'Inspect: npx firecrawl-cli@alexandria list fred/series/observations --json'
);
});

it('sends provider calls to Scrape with a stable retry ID and preserves the receipt', async () => {
Expand Down
7 changes: 6 additions & 1 deletion src/commands/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ function formatSearchReadable(
: undefined;
const title = tool.label ?? tool.name ?? address ?? tool.id ?? 'Tool';
lines.push(String(title));
if (address) lines.push(` Tool: ${address}`);
if (address) {
lines.push(` Tool: ${address}`);
lines.push(
` Inspect: npx firecrawl-cli@alexandria list ${address} --json`
);
}
if (typeof tool.description === 'string')
lines.push(` ${clipPassage(tool.description)}`);
if (typeof tool.creditsCost === 'number')
Expand Down
Loading