omnius 1.0.847 → 1.0.849

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/library.js +2981 -1415
  3. package/docs/DISCOVERY.json +941 -63
  4. package/docs/DISCOVERY.md +25 -0
  5. package/docs/inference-fallback-priority.md +91 -0
  6. package/docs/keyless-provider-survey.md +48 -0
  7. package/docs/opencode-free-model-discovery.md +59 -0
  8. package/docs/work-orders/WO-fallback-quality-order-20261012.md +70 -0
  9. package/docs/work-orders/WO-fallback-reply-contracts-20261012.md +116 -0
  10. package/docs/work-orders/WO-keyless-fallback-coverage-20261012.md +125 -0
  11. package/docs/work-orders/WO-opencode-all-free-models-20261012.md +88 -0
  12. package/docs/work-orders/WO-telegram-progress-presentation-20261012.md +28 -0
  13. package/docs/work-orders/evidence/fallback-model-benchmarks-20261012.json +1823 -0
  14. package/docs/work-orders/evidence/fallback-quality-installed-20261012.json +626 -0
  15. package/docs/work-orders/evidence/fallback-reply-contracts-installed-20261012.json +577 -0
  16. package/docs/work-orders/evidence/installed-fallback-verification-20261012.json +311 -0
  17. package/docs/work-orders/evidence/keyless-compatibility-20261012.json +259 -0
  18. package/docs/work-orders/evidence/keyless-provider-survey-20261012.json +1327 -0
  19. package/docs/work-orders/evidence/kilo-production-compatibility-20261012.json +1197 -0
  20. package/docs/work-orders/evidence/native-conversation-prompt-audit-20261012.json +226 -0
  21. package/docs/work-orders/evidence/native-goal-contract-probe-20261012.json +794 -0
  22. package/docs/work-orders/evidence/opencode-all-free-audit-20261012.json +1489 -0
  23. package/docs/work-orders/evidence/opencode-all-free-installed-verification-20261012.json +437 -0
  24. package/docs/work-orders/evidence/opencode-production-compatibility-20261012.json +780 -0
  25. package/docs/work-orders/evidence/ovh-production-compatibility-20261012.json +127 -0
  26. package/docs/work-orders/evidence/ovh-structured-context-compatibility-20261012.json +174 -0
  27. package/docs/work-orders/evidence/terminal-review-contract-probe-20261012.json +335 -0
  28. package/docs/work-orders/evidence/terminal-review-error-probe-20261012.json +149 -0
  29. package/docs/work-orders/evidence/terminal-review-schema-repair-probe-20261012.json +920 -0
  30. package/npm-shrinkwrap.json +2 -2
  31. package/package.json +1 -1
@@ -0,0 +1,88 @@
1
+ # All OpenCode free models in the fallback cascade
2
+
3
+ Status: implemented and verified. Publication and runtime replacement remain
4
+ with the user. The subsequent live-reply fixes are tracked separately in
5
+ [fallback reply contracts](WO-fallback-reply-contracts-20261012.md).
6
+ The original preferred-first/provider-fairness ordering recorded below has been
7
+ superseded by [benchmark-informed priority](WO-fallback-quality-order-20261012.md)
8
+ at the user's subsequent request.
9
+
10
+ ## Request
11
+
12
+ All free models offered by OpenCode must be lined up in Omnius's fallback chain,
13
+ including later catalog entries and models using the Responses API. This extends
14
+ the [keyless fallback repair](WO-keyless-fallback-coverage-20261012.md).
15
+
16
+ ## Findings
17
+
18
+ The prior implementation loaded the free chat catalog dynamically, but limited
19
+ each provider to 16 compatible models. An installed-runtime regression with 512
20
+ eligible models reproduced exhaustion after only 16 OpenCode dispatches. The
21
+ global distinct-attempt bound also assumed 16 models per provider.
22
+
23
+ The [current primary-source audit](evidence/opencode-all-free-audit-20261012.json)
24
+ found eight active, live, explicitly zero-cost models:
25
+
26
+ | Model | API |
27
+ | --- | --- |
28
+ | `nemotron-3.5-lightning-free` | Chat completions |
29
+ | `big-pickle` | Chat completions |
30
+ | `ling-3.1-flash-free` | Chat completions |
31
+ | `longcat-2.5-preview-free` | Chat completions |
32
+ | `mimo-v2.6-flash-free` | Chat completions |
33
+ | `space-bunny-free` | Chat completions |
34
+ | `step-5-preview-free` | Chat completions |
35
+ | `muse-spark-1.3-contributor-free` | Responses |
36
+
37
+ The chat-only parser excluded Muse Spark 1.3 because its per-model SDK is
38
+ `@ai-sdk/openai`, whose upstream transport uses `/responses`. OpenCode's default
39
+ loader excludes deprecated models; the current live ID list also contains an
40
+ unknown free-suffix ID without corresponding cost/capability metadata. Neither
41
+ a deprecated entry nor an unknown suffix alone establishes an offered free
42
+ model for automatic routing.
43
+
44
+ ## Work and acceptance
45
+
46
+ 1. Enumerate every compatible OpenCode free model within the shared 512-row
47
+ catalog safety bound. Adjust total dispatch accounting accordingly. Keep
48
+ stable ordering, preferred Nemotron first, provider fairness and model-level
49
+ cooldowns. Newly published eligible catalog entries require no code update.
50
+ 2. Add the source-derived, exact-origin Responses adapter for the model's
51
+ declared transport. Preserve full conversation, tool-result history, exact
52
+ original host tool schemas and choices, structured output, cancellation and
53
+ no replay after visible output. Protocol metadata never authorizes tools.
54
+ 3. Share enumeration and Responses handling with the credentialless setup
55
+ pool. Model-specific failures must not disable all OpenCode alternatives.
56
+ Keep setup deadlines and count network requests against the full model bound.
57
+ 4. Prove full 512-model traversal through the helper and packaged backend in
58
+ unary and streaming modes, including tool/schema requests, plus Responses
59
+ routing, capability exclusions, cooldowns, catalog refresh and host identity
60
+ isolation. Tests use synthetic HTTP; no local model requests or tools execute.
61
+ 5. Rebuild and verify the package, record receipts, commit and push scoped work.
62
+ Preserve unrelated checkout changes and leave publication/runtime activation
63
+ to the user.
64
+
65
+ All models belong in the eligible cascade; a request still stops at its first
66
+ usable success, cancellation, or deadline. Capability and context checks must
67
+ not weaken the requested contract to force an incompatible model into use.
68
+
69
+ ## Verification
70
+
71
+ The complete current metadata audit yields all eight active live free models,
72
+ including Muse's declared Responses transport. The regression suite reconstructs
73
+ the audited metadata to assert exactly that coverage. Both the production helper
74
+ and the packaged backend reach the 512th eligible model after 511 model-specific
75
+ failures, in text, forced native-tool and strict-schema requests, unary and
76
+ streaming. Other providers retain their first attempt before OpenCode alternates.
77
+
78
+ The source suites passed 399 orchestrator and 100 CLI tests, with one existing
79
+ skip. This includes 57 setup-pool tests, model-level cooldowns, catalog refresh,
80
+ transport isolation, complete context/tool/schema preservation and Responses
81
+ terminal/cancellation handling. The compatibility harness passed 30 tests.
82
+
83
+ Full clean recursive build, bundling, packing and compiler-free fresh npm
84
+ installation passed for the prepared 1.0.848 artifact. The required SQLite
85
+ prebuild loaded. The [installed backend receipt](evidence/opencode-all-free-installed-verification-20261012.json)
86
+ records all 48 mocked transport cases passing, including full 512-model traversal
87
+ and Muse's six unary/streaming text/tool/schema cases. These checks sent no real
88
+ inference requests or Telegram messages. No package was published by this work.
@@ -0,0 +1,28 @@
1
+ # Telegram progress presentation
2
+
3
+ Status: queued, explicitly deferred by the user until the inference endpoint
4
+ patch is completed and verified. Do not implement this presentation work as part
5
+ of the current inference repair.
6
+
7
+ ## Requested behavior
8
+
9
+ - Show the agent's intermediate explanations in public group chat as a compact
10
+ sequence of short paragraphs describing what it is doing or has learned.
11
+ - Keep detailed activity behind a button that opens the activity view.
12
+ - Present tool calls and results in clean, separate wrapped code blocks using
13
+ supported Telegram message formatting and controls.
14
+ - Replace the public numbered started/succeeded activity dump and its generic
15
+ "Working"/"Work ended" panel with useful intermediate chat narration.
16
+ - Deliver the final answer separately, with completion wording derived from
17
+ actual delivery state rather than an internal handler's acceptance.
18
+
19
+ ## Future verification
20
+
21
+ Trace the existing TUI/chat-mode intermediate narration emitter and Telegram
22
+ progress delivery path. Check Telegram's current official API limits, formatting
23
+ and callback behavior when implementing. Verify private/public scope, edit and
24
+ send limits, interruption/Stop, callback ownership, long tool-output handling,
25
+ and that diagnostics/adversarial guidance remain out of ordinary public chat.
26
+
27
+ This work order records the request only; the current source changes target
28
+ inference compatibility, safe diagnostics and tool guidance.