OmniRoute/scripts/ops
Bezrabotnyi bb978b3361
fix(zcode): preserve caller tools and image inputs through native inference (#16926)
Moves the ZCode executor onto the native workspace/generateWorkspaceText model call. The caller's tools, image inputs (on vision-capable models) and usage are kept, and maxOutputTokens is bounded into the model's native option range on every turn. The author tested it live.

Maintainer fixes on top:
- Complexity ratchet: execute() in open-sse/executors/zcode.ts had reached complexity 31, cognitive 24 and 103 lines (ratchet 1->2 / 0->1). Split it into prepareZcodeRequest(), boundMaxOutputTokens(), errorText(), and the private waitForSelection() / workingDirectory(). Behaviour is unchanged and zcode.ts now has no ratchet violations at all.
- Added changelog.d/fixes/16926-zcode-native-model-tools.md.
- Kept scripts/ops/zcode-image-runtime.mjs after checking it is strictly opt-in. It runs only when invoked by hand with two explicit paths. No npm script, postinstall or runtime import references it. It refuses any build whose SHA-256 differs from the pinned one, writes the patched copy to a separate directory and never edits the installed ZCode runtime. docs/ops/ZCODE_IMAGES.md and the changelog fragment both document it as opt-in.

Evidence: zcode tests pass 22/22 (executor, image-runtime, protocol, provider, win32 spawn). typecheck:core, open-sse/api typecheck, file-size, complexity, cognitive, dead-code, boundary, skills-gen (Generated 0), changelog-integrity, env-doc-sync, docs-sync, fabricated-docs, eslint and prettier all exit 0. Any remaining CI reds come from the inherited base-red #15306.

Credit: the commits carry the author email megamen932@gmai.com, a typo; the author is @megamen32. Thanks @megamen32
2026-10-18 01:03:54 -03:00
..
alibabafreeaudio-quota.sample.json fix(ollama): route models by advertised capability (#11088) 2026-08-23 11:45:01 -03:00
alibabafreemultimodal-quota.sample.json fix(ollama): route models by advertised capability (#11088) 2026-08-23 11:45:01 -03:00
alibabafreevision-quota.sample.json fix(ollama): route models by advertised capability (#11088) 2026-08-23 11:45:01 -03:00
deploy-canary.mjs fix(ollama): route models by advertised capability (#11088) 2026-08-23 11:45:01 -03:00
deployCanary.ts fix(ollama): route models by advertised capability (#11088) 2026-08-23 11:45:01 -03:00
prune-stale-worktrees.sh Release v3.8.36 (#4854) 2026-06-25 13:17:40 -03:00
runner-janitor.sh chore(ops): make the runner janitor act on what it can prove, not advise (#11893) 2026-08-28 15:44:29 -03:00
sync-alibaba-allowlist.mjs fix(ollama): route models by advertised capability (#11088) 2026-08-23 11:45:01 -03:00
zcode-image-runtime.mjs fix(zcode): preserve caller tools and image inputs through native inference (#16926) 2026-10-18 01:03:54 -03:00