cb5bbbf382
- Eliminated core/ directory (252 files, 23 subdirs → distributed)
- Reduced max nesting from 9 levels to 5 levels
- Promoted tool subdirs to top level: exa/, lsp/, patch/, task/, web/
- Merged web-scrapers/ + web-search/ into web/{scrapers,search}/
- Flattened modes/interactive/ to modes/
- Split execution/ into: ipy/ (python), exec/ (bash), ssh/
- Renamed ipy/python-*.ts to ipy/*.ts (executor, kernel, etc.)
- Flattened cursor/exec-bridge.ts to cursor.ts
- Created logical groupings: config/, session/, extensibility/, export/
- Updated all imports across 500+ files
18 lines
482 B
TypeScript
18 lines
482 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { buildSystemPrompt } from "$c/system-prompt";
|
|
|
|
describe("buildSystemPrompt", () => {
|
|
it("includes python tool details when enabled", async () => {
|
|
const prompt = await buildSystemPrompt({
|
|
cwd: "/tmp",
|
|
toolNames: ["python"],
|
|
contextFiles: [],
|
|
skills: [],
|
|
rules: [],
|
|
});
|
|
|
|
expect(prompt).toContain("**python:** stateful scripting and REPL work");
|
|
expect(prompt).toContain("What python IS for");
|
|
});
|
|
});
|