Commit Graph
142 Commits
Author SHA1 Message Date
Patrick Wozniak a624643d90 fix(stream): forward incremental tool-call arguments 2026-08-25 16:58:29 +02:00
Patrick WozniakandGitHub e26e06c582 Merge pull request #57 from patlux/fix/model-capabilities-1.32.2
fix(models): refresh Command Code capabilities
2026-08-25 15:14:00 +02:00
Patrick Wozniak 41e98a1d67 fix(models): keep generated sync scope reviewable 2026-08-25 15:09:54 +02:00
Patrick Wozniak c3a383447c ci(models): open PRs for Command Code catalog updates 2026-08-25 15:08:29 +02:00
Patrick Wozniak 3d8758fe3b feat(models): generate Command Code catalog snapshot 2026-08-25 15:08:22 +02:00
Patrick Wozniak ef5d723182 Revert "ci(models): limit metadata check to scheduled runs"
This reverts commit af5c41aaa1.
2026-08-25 14:48:29 +02:00
Patrick Wozniak af5c41aaa1 ci(models): limit metadata check to scheduled runs 2026-08-25 14:48:03 +02:00
Patrick Wozniak 7ed38d5f70 ci(models): run metadata check on pull requests 2026-08-25 14:43:46 +02:00
Patrick Wozniak f23863d326 ci(models): check Command Code metadata daily 2026-08-25 14:14:44 +02:00
Patrick Wozniak 003d571b5e fix(models): refresh Command Code capabilities 2026-08-25 14:12:00 +02:00
Patrick WozniakandGitHub c27e7fbc80 Merge pull request #56 from newCman1/fix/deepseek-vision-image-support
fix(models): add image support for deepseek/deepseek-v4-flash-vision-exp
2026-08-25 13:57:59 +02:00
Patrick Wozniak f5e2fece8c test(models): fix DeepSeek vision regressions 2026-08-25 13:54:33 +02:00
Patrick Wozniak d149c1f790 Merge remote-tracking branch 'origin/main' into review/pr-56 2026-08-25 13:53:48 +02:00
Patrick WozniakandGitHub aa94552afb Merge pull request #52 from jagaliano/feat/commandcode-quota
feat(quota): add live in-place quota dashboard and fix OMP auth
2026-08-25 13:42:26 +02:00
laijxa d14c2f0feb fix(models): add image support for deepseek-v4-flash-vision-exp
deepseek/deepseek-v4-flash-vision-exp is served by the Provider API but was
missing from the hardcoded MODEL_INPUT_MODALITIES allowlist, so pi rejected
any conversation containing an image block. Notably this also rejected images
returned by the read tool via toolResult:

  Error: Selected Command Code model does not support image content in tool results

Adding the allowlist entry lets modelSupportsImageInput() return true and the
converters forward images using the current Command Code wire format.

Coverage:
- regression test for modelSupportsImageInput("deepseek/deepseek-v4-flash-vision-exp")
- end-to-end stream test for a tool-result image forwarded as a following user
  image (the concrete read reproduction), not only a user-attached image
- end-to-end stream test asserting a text-only model still rejects tool-result
  images before any network access

Refs: https://github.com/patlux/pi-commandcode-provider/issues/54
2026-08-25 19:42:10 +08:00
Patrick Wozniak 96356698fa fix(quota): harden dashboard integration 2026-08-25 13:34:54 +02:00
Patrick Wozniak 63dd92da09 Merge remote-tracking branch 'origin/main' into review/pr-52
# Conflicts:
#	CHANGELOG.md
2026-08-25 13:33:55 +02:00
Patrick WozniakandGitHub dc515e85b6 Merge pull request #55 from ThomasByr/main
feat(models): add GLM-5.3 pricing and reasoning levels
2026-08-25 13:06:59 +02:00
Patrick WozniakandGitHub fdd614c62b Merge branch 'main' into main 2026-08-25 13:04:06 +02:00
Patrick WozniakandGitHub fd82875df2 Merge pull request #53 from omariqbalnaru/fix/omp-custom-api-registration
fix(core): register custom api under non-reserved name for omp 17.4.0
2026-08-25 13:02:32 +02:00
Thomas Byr d637a73e06 fix(docs): update Command Code version to 1.32.1 2026-08-22 23:25:06 +02:00
Thomas Byr 45565a883f feat(models): add GLM-5.3 pricing and reasoning levels 2026-08-22 23:24:49 +02:00
José Galliano 307714b051 feat(quota): add live commandcode-quota dashboard and OMP auth fix
Fetches live account quota from Command Code alpha usage endpoints
(whoami, billing/credits, billing/subscriptions, usage/summary) and
renders a plain-text dashboard via ui.notify.

- Graceful degradation: optional endpoint transport/timeout/parse
  failures degrade to null sections instead of aborting; only 401/403
  are hard failures. 429 is transient, not fatal.
- Overall deadline bounds the whole command to QUOTA_TIMEOUT_MS
  (per-request controllers are chained; post-deadline phases fail fast).
- OMP auth: filter unresolved $COMMANDCODE_API_KEY placeholder and fall
  back to the host resolver via pickCommandCodeApiKey.
- ZDR privacy header respected on quota requests.
- Redaction reuses redactCommandCodeErrorText plus JSON-quoted
  credential fields; outer-catch errors are redacted too.
- resetAt parsed from seconds, ms, numeric string, or ISO string.
- 21 hermetic unit tests wired into npm test (test:quota).
2026-08-21 11:21:25 -06:00
Omar Iqbal Naru 0d6202aec7 docs(release): note omp custom api registration fix 2026-08-21 19:42:14 +05:00
Omar Iqbal Naru 1e0dd1189c fix(core): register custom api under non-reserved name for omp 17.4.0
omp 17.4.0's host registry rejects registerCustomApi calls under
built-in api names ("Cannot register custom API '<name>': built-in
API names are reserved"). The provider and its models registered
under "openai-completions", so the extension failed to load.

Register under "commandcode-custom" instead (matches the published
npm build) and restore the real wire api via apiForModelId before
dispatching to the native compat stream inside the transport router.

The host's model registry also stores provider-supplied compat under
model.compatConfig internally, only copying it back to model.compat
inside its own dispatch-time patches. Since the transport router calls
the native compat stream directly, it must read compatConfig itself or
requests crash with 'baseCompat is undefined' before any network call.

Verified against a local mock Provider API server with the extension
linked into omp 17.4.0: model discovery lists all Command Code models,
and a streamed chat completion sends the resolved x-cmd-zdr header and
Authorization header end to end.
2026-08-21 19:41:54 +05:00
Patrick WozniakandGitHub 6de4626349 Merge pull request #49 from patlux/rebuild/issue-5-provider-api
feat(account): Official CommandCode API
2026-08-20 00:16:41 +02:00
Patrick Wozniak f07ece7731 docs(api): document provider follow-up fixes 2026-08-20 00:13:56 +02:00
Patrick Wozniak f6f0ab274d fix(models): refresh DeepSeek V4 pricing 2026-08-20 00:13:56 +02:00
Patrick Wozniak ed29c59f31 fix(models): use adaptive thinking for Claude 2026-08-20 00:13:56 +02:00
Patrick Wozniak 4f91a9b00b fix(stream): isolate transport state by credential 2026-08-20 00:13:56 +02:00
Patrick Wozniak 9e9149ff14 test(e2e): merge live account profiles 2026-08-18 17:24:51 +02:00
Patrick Wozniak 33c405c060 docs(tests): document live account credentials 2026-08-18 17:20:51 +02:00
Patrick Wozniak 75552ef4b9 test(e2e): add live account profiles 2026-08-18 17:20:44 +02:00
Patrick Wozniak 9103272217 docs(api): explain automatic transport selection 2026-08-18 12:11:47 +02:00
Patrick Wozniak 89dc21bed2 feat(api): fall back for go plan accounts 2026-08-18 12:11:47 +02:00
Patrick Wozniak 864538e146 fix(ci): satisfy provider audit checks 2026-08-18 11:01:12 +02:00
Patrick Wozniak c04f3907b5 docs(api): document provider api migration 2026-08-18 10:56:12 +02:00
Patrick Wozniak 7af77ddf58 fix(models): refresh expired display pricing 2026-08-18 10:56:11 +02:00
Patrick Wozniak 84a802d91d feat(api): use official provider endpoints 2026-08-18 10:56:06 +02:00
Patrick Wozniak 0603291396 feat(auth): support direct api key login 2026-08-18 10:55:58 +02:00
Patrick WozniakandGitHub c4d25d1db1 chore(release): publish 0.5.1 (#44) 2026-08-11 00:31:51 +02:00
Patrick WozniakandGitHub a367aed63c feat(models): add vision input capabilities (#43) 2026-08-11 00:28:03 +02:00
Patrick WozniakandGitHub 4b6e1cd85a chore(release): publish 0.5.0 (#41) 2026-08-07 17:23:47 +02:00
Patrick WozniakandGitHub f3466f816f Merge pull request #40 from patlux/fix/reasoning-history
fix(stream): omit prior reasoning from request history
2026-08-07 17:13:36 +02:00
Patrick Wozniak ea55ead662 fix(stream): omit prior reasoning from request history 2026-08-07 16:39:18 +02:00
Patrick WozniakandGitHub 7d02d345f1 Merge pull request #39 from patlux/test/provider-hardening-e2e
test(tests): add provider hardening end-to-end coverage
2026-08-07 15:20:20 +02:00
Patrick Wozniak ff1e23b1b9 Merge remote-tracking branch 'origin/main' into test/provider-hardening-e2e 2026-08-07 15:18:49 +02:00
Patrick WozniakandGitHub db49f5a95b Merge pull request #38 from patlux/feat/request-fidelity
fix(core): preserve request fidelity and provider errors
2026-08-07 15:18:29 +02:00
Patrick Wozniak ba142930b2 Merge remote-tracking branch 'origin/main' into feat/request-fidelity 2026-08-07 15:17:05 +02:00
Patrick WozniakandGitHub 83a228ac26 Merge pull request #37 from patlux/feat/model-catalog-runtime
feat(models): add model-aware runtime metadata
2026-08-07 15:16:54 +02:00