chore: batch update - cleanup ghost commands, ccw-help index refresh, CLI session/orchestrator enhancements, skill minor fixes

- Add cleanup-ghost-commands.mjs script
- Refresh ccw-help index files (remove stale entries)
- CLI session manager: add instruction assembler and launch registry
- Frontend: orchestrator plan builder, property panel, dashboard toolbar updates
- Flow executor and type updates
- Minor fixes across multiple skills and commands
This commit is contained in:
catlog22
2026-02-17 21:53:51 +08:00
parent 1f53f2de27
commit 357f48a0c3
45 changed files with 751 additions and 1643 deletions

View File

@@ -18,6 +18,7 @@
import type { RouteContext } from './types.js';
import { getCliSessionManager } from '../services/cli-session-manager.js';
import type { InstructionType } from '../services/cli-instruction-assembler.js';
import path from 'path';
import { getCliSessionPolicy } from '../services/cli-session-policy.js';
import { RateLimiter } from '../services/rate-limiter.js';
@@ -91,7 +92,8 @@ export async function handleCliSessionsRoutes(ctx: RouteContext): Promise<boolea
preferredShell,
tool,
model,
resumeKey
resumeKey,
launchMode
} = (body || {}) as any;
if (tool && typeof tool === 'string') {
@@ -115,7 +117,8 @@ export async function handleCliSessionsRoutes(ctx: RouteContext): Promise<boolea
preferredShell: preferredShell === 'pwsh' ? 'pwsh' : 'bash',
tool: typeof tool === 'string' ? tool.trim() : undefined,
model,
resumeKey
resumeKey,
launchMode: launchMode === 'yolo' ? 'yolo' : 'default',
});
appendCliSessionAudit({
@@ -353,7 +356,9 @@ export async function handleCliSessionsRoutes(ctx: RouteContext): Promise<boolea
workingDir,
category,
resumeKey,
resumeStrategy
resumeStrategy,
instructionType,
skillName
} = (body || {}) as any;
if (!tool || typeof tool !== 'string') {
@@ -380,7 +385,9 @@ export async function handleCliSessionsRoutes(ctx: RouteContext): Promise<boolea
workingDir,
category,
resumeKey,
resumeStrategy: resumeStrategy === 'promptConcat' ? 'promptConcat' : 'nativeResume'
resumeStrategy: resumeStrategy === 'promptConcat' ? 'promptConcat' : 'nativeResume',
instructionType: typeof instructionType === 'string' ? instructionType as InstructionType : undefined,
skillName: typeof skillName === 'string' ? skillName : undefined,
});
appendCliSessionAudit({