muonroi-cli 1.6.3 → 1.6.5

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 (32) hide show
  1. package/dist/packages/agent-harness-core/src/event-filter.js +1 -0
  2. package/dist/packages/agent-harness-core/src/event-redact.js +7 -2
  3. package/dist/packages/agent-harness-core/src/protocol.d.ts +8 -0
  4. package/dist/src/generated/version.d.ts +1 -1
  5. package/dist/src/generated/version.js +1 -1
  6. package/dist/src/gsd/__tests__/directives.test.js +37 -0
  7. package/dist/src/gsd/directives.d.ts +18 -0
  8. package/dist/src/gsd/directives.js +23 -2
  9. package/dist/src/orchestrator/message-processor.d.ts +8 -0
  10. package/dist/src/orchestrator/message-processor.js +159 -9
  11. package/dist/src/orchestrator/orchestrator.d.ts +10 -0
  12. package/dist/src/orchestrator/orchestrator.js +11 -0
  13. package/dist/src/orchestrator/stall-rescue.d.ts +1 -0
  14. package/dist/src/orchestrator/stall-rescue.js +20 -1
  15. package/dist/src/orchestrator/stall-rescue.test.js +30 -1
  16. package/dist/src/orchestrator/stall-watchdog.d.ts +31 -0
  17. package/dist/src/orchestrator/stall-watchdog.js +24 -0
  18. package/dist/src/orchestrator/stall-watchdog.test.js +46 -1
  19. package/dist/src/orchestrator/steer-inbox.d.ts +32 -0
  20. package/dist/src/orchestrator/steer-inbox.js +20 -0
  21. package/dist/src/orchestrator/steer-inbox.test.d.ts +1 -0
  22. package/dist/src/orchestrator/steer-inbox.test.js +33 -0
  23. package/dist/src/orchestrator/tool-loop-askcard.d.ts +59 -0
  24. package/dist/src/orchestrator/tool-loop-askcard.js +86 -0
  25. package/dist/src/orchestrator/tool-loop-askcard.test.d.ts +1 -0
  26. package/dist/src/orchestrator/tool-loop-askcard.test.js +71 -0
  27. package/dist/src/pil/layer4-gsd.js +5 -1
  28. package/dist/src/ui/app.js +51 -35
  29. package/dist/src/utils/settings.d.ts +23 -0
  30. package/dist/src/utils/settings.js +33 -0
  31. package/dist/src/utils/settings.test.js +52 -0
  32. package/package.json +1 -1
@@ -157,4 +157,56 @@ describe("resolveTelegramAudioInputSettings", () => {
157
157
  expect(result.language).toBe("vi");
158
158
  });
159
159
  });
160
+ describe("getProviderStallRetries", () => {
161
+ it("defaults to 1 when the env var is unset or blank", async () => {
162
+ vi.unstubAllEnvs();
163
+ const { getProviderStallRetries } = await import("./settings.js");
164
+ expect(getProviderStallRetries()).toBe(1);
165
+ vi.stubEnv("MUONROI_PROVIDER_STALL_RETRIES", "");
166
+ expect(getProviderStallRetries()).toBe(1);
167
+ });
168
+ it("honours an in-range override (0 disables, up to 5)", async () => {
169
+ const { getProviderStallRetries } = await import("./settings.js");
170
+ vi.stubEnv("MUONROI_PROVIDER_STALL_RETRIES", "0");
171
+ expect(getProviderStallRetries()).toBe(0);
172
+ vi.stubEnv("MUONROI_PROVIDER_STALL_RETRIES", "3");
173
+ expect(getProviderStallRetries()).toBe(3);
174
+ vi.stubEnv("MUONROI_PROVIDER_STALL_RETRIES", "5");
175
+ expect(getProviderStallRetries()).toBe(5);
176
+ });
177
+ it("falls back to the default for out-of-range or non-numeric values", async () => {
178
+ const { getProviderStallRetries } = await import("./settings.js");
179
+ for (const bad of ["6", "-1", "abc", "2.5"]) {
180
+ vi.stubEnv("MUONROI_PROVIDER_STALL_RETRIES", bad);
181
+ // "2.5" floors to 2 (in range) — only the others fall back.
182
+ if (bad === "2.5") {
183
+ expect(getProviderStallRetries()).toBe(2);
184
+ }
185
+ else {
186
+ expect(getProviderStallRetries()).toBe(1);
187
+ }
188
+ }
189
+ });
190
+ });
191
+ describe("getSteerInjectionEnabled", () => {
192
+ it("defaults to true when the env var is unset or blank", async () => {
193
+ vi.unstubAllEnvs();
194
+ const { getSteerInjectionEnabled } = await import("./settings.js");
195
+ expect(getSteerInjectionEnabled()).toBe(true);
196
+ vi.stubEnv("MUONROI_STEER_INJECTION", "");
197
+ expect(getSteerInjectionEnabled()).toBe(true);
198
+ });
199
+ it("returns false only for an explicit '0'", async () => {
200
+ const { getSteerInjectionEnabled } = await import("./settings.js");
201
+ vi.stubEnv("MUONROI_STEER_INJECTION", "0");
202
+ expect(getSteerInjectionEnabled()).toBe(false);
203
+ });
204
+ it("returns true for '1' and any other non-'0' value", async () => {
205
+ const { getSteerInjectionEnabled } = await import("./settings.js");
206
+ for (const v of ["1", "true", "yes", "on", "xyz"]) {
207
+ vi.stubEnv("MUONROI_STEER_INJECTION", v);
208
+ expect(getSteerInjectionEnabled()).toBe(true);
209
+ }
210
+ });
211
+ });
160
212
  //# sourceMappingURL=settings.test.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "1.6.3",
6
+ "version": "1.6.5",
7
7
  "description": "BYOK AI coding agent with multi-model council debate, role-based routing, and auto-compact.",
8
8
  "repository": {
9
9
  "type": "git",