mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-19 18:58:47 +08:00
feat: enhance search, ranking, reranker and CLI tooling across ccw and codex-lens
Major improvements to smart-search, chain-search cascade, ranking pipeline, reranker factory, CLI history store, codex-lens integration, and uv-manager. Simplify command-generator skill by inlining phases. Add comprehensive tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -163,6 +163,42 @@ describe('ccw cli show running time formatting', async () => {
|
||||
assert.match(rendered, /1h\.\.\./);
|
||||
});
|
||||
|
||||
it('lists executions from other registered projects in show output', async () => {
|
||||
const projectRoot = mkdtempSync(join(tmpdir(), 'ccw-cli-show-cross-project-'));
|
||||
const unrelatedCwd = mkdtempSync(join(tmpdir(), 'ccw-cli-show-cross-cwd-'));
|
||||
const previousCwd = process.cwd();
|
||||
|
||||
try {
|
||||
process.chdir(unrelatedCwd);
|
||||
const store = new historyStoreModule.CliHistoryStore(projectRoot);
|
||||
store.saveConversation(createConversationRecord({
|
||||
id: 'EXEC-CROSS-PROJECT-SHOW',
|
||||
prompt: 'cross project show prompt',
|
||||
updatedAt: new Date('2025-02-02T00:00:00.000Z').toISOString(),
|
||||
durationMs: 1800,
|
||||
}));
|
||||
store.close();
|
||||
|
||||
stubActiveExecutionsResponse([]);
|
||||
|
||||
const logs = [];
|
||||
mock.method(console, 'log', (...args) => {
|
||||
logs.push(args.map(String).join(' '));
|
||||
});
|
||||
mock.method(console, 'error', () => {});
|
||||
|
||||
await cliModule.cliCommand('show', [], {});
|
||||
|
||||
const rendered = logs.join('\n');
|
||||
assert.match(rendered, /EXEC-CROSS-PROJECT-SHOW/);
|
||||
assert.match(rendered, /cross project show prompt/);
|
||||
} finally {
|
||||
process.chdir(previousCwd);
|
||||
rmSync(projectRoot, { recursive: true, force: true });
|
||||
rmSync(unrelatedCwd, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
it('suppresses stale running rows when saved history is newer than the active start time', async () => {
|
||||
const projectRoot = mkdtempSync(join(tmpdir(), 'ccw-cli-show-stale-project-'));
|
||||
const previousCwd = process.cwd();
|
||||
|
||||
Reference in New Issue
Block a user