Commit Graph
15 Commits
Author SHA1 Message Date
AlexVagrantandwh.huajieyu c2497ed098 feat: add OMP (Oh My Pi) provider compatibility
Support OMP as a host alongside pi:
- Convert OMP's array-format system prompts to string via systemPromptToText
- Guard against OMP passing the literal env-var name as the API key value
- Add ~/.omp/agent/auth.json to default auth path lookup
- Fix --list-models output to check both stdout and stderr
- Add OMP compatibility smoke test with isolated temp HOME and mock server
- Deduplicate usage section in README, add OMP install and usage docs
2026-05-28 04:12:35 -04:00
Patrick Wozniak cc05faa526 Release 0.1.1 2026-05-26 23:05:21 +02:00
Patrick Wozniak 418f4c925b Fetch Command Code models at startup 2026-05-26 21:51:41 +02:00
Tao Yang 960d0d1f23 feat: extract models from command-code dist, load via models.json
- Add scripts/extract-models.ts to parse command-code npm dist file
- Generate models.json (21 models, 15 pricing entries) with contextWindow
  and maxOutputTokens pre-filled; no nulls or hardcoded fallbacks in index.ts
- Rewrite index.ts to load model list and costs from models.json
- Cap gateway model maxOutputTokens at 65536 (API limit for Baseten/Vercel)
- Add 'Update models' section to README documenting the generation flow
- Add npm run extract-models script
2026-05-25 16:37:08 +08:00
Patrick Wozniak b8853ab0d6 Add Command Code browser login fallback 2026-05-05 14:48:06 +02:00
Patrick Wozniak af2b316d84 style: configure prettier (no semicolons, trailing commas) 2026-05-05 14:02:41 +02:00
Patrick Wozniak e9853eb4a4 chore: add CI workflow (typecheck + prettier format check), tsconfig, and prettier formatting 2026-05-05 13:56:41 +02:00
Patrick Wozniak ebf638e9fb Extract Command Code stream core 2026-05-05 13:22:00 +02:00
Patrick Wozniak 4407ab5b37 fix: add onResponse hook for response metadata inspection before streaming 2025-05-05 11:20:00 +02:00
Patrick Wozniak 29f4565a53 fix: flush remaining thinking blocks after stream ends 2025-05-05 10:45:00 +02:00
Patrick Wozniak 103b6e6fff feat: add abort handling with raceAbort helper 2025-05-04 18:40:00 +02:00
Patrick Wozniak 0cb34f54d7 feat: add API key resolution from env var + auth.json files 2025-05-04 18:15:00 +02:00
Patrick Wozniak 28ccca9a0c feat: implement streamCommandCode with SSE parsing 2025-05-04 17:50:00 +02:00
Patrick Wozniak ad3479f68c feat: add model definitions and helpers (toJsonSchema, toolsToJson, messagesToCC) 2025-05-04 17:22:00 +02:00
Patrick Wozniak d18dd3e77b feat: scaffold pi package with provider skeleton 2025-05-04 17:05:00 +02:00