refactor(packages/coding-agent): reorganized tiny-title runtime stack

- Added tiny-title protocol contracts, including progress-state unions, message payloads, and transport interfaces.
- Added title text utilities to truncate long inputs, wrap `<user-message>` blocks, and normalize generated titles.
- Added tiny-title model registry and helpers with type-safe keys and runtime optional loading via optionalDependencies.
- Added client-side worker orchestration with spawn fallback, request queueing, progress/error routing, and smoke-test APIs.
- Added worker runtime for model resolution, prompt-based inference, lock-based install retries, and close-time cache clear.
This commit is contained in:
can1357
2026-05-30 17:34:39 +02:00
parent e22b31401b
commit 826c3b932d
25 changed files with 1067 additions and 259 deletions
@@ -56,7 +56,7 @@ async function main(): Promise<void> {
"../stats/src/sync-worker.ts",
"./src/tools/browser/tab-worker-entry.ts",
"./src/eval/js/worker-entry.ts",
"./src/title/tiny-title-worker.ts",
"./src/tiny/worker.ts",
// Legacy pi-* extension compat entrypoints served by
// `legacy-pi-compat.ts`. These are reached via computed bunfs paths
// (which `--compile`'s static analyzer cannot trace), so each must be