@kl-c/matrixos 0.1.5 → 0.1.7

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.
@@ -7091,6 +7091,12 @@
7091
7091
  "exclusiveMinimum": 0,
7092
7092
  "maximum": 20
7093
7093
  },
7094
+ "softDoomLoopThreshold": {
7095
+ "default": 5,
7096
+ "type": "integer",
7097
+ "exclusiveMinimum": 0,
7098
+ "maximum": 20
7099
+ },
7094
7100
  "stuckTimeoutSec": {
7095
7101
  "default": 90,
7096
7102
  "type": "integer",
@@ -7177,6 +7183,7 @@
7177
7183
  "required": [
7178
7184
  "enabled",
7179
7185
  "doomLoopThreshold",
7186
+ "softDoomLoopThreshold",
7180
7187
  "stuckTimeoutSec",
7181
7188
  "recoveryStrategy",
7182
7189
  "heartbeatIntervalSec",
@@ -1,20 +1,17 @@
1
1
  import type { WatchdogConfig } from "../config/schema/watchdog";
2
2
  export interface AgentAntiLoopDeps {
3
- /** Injected logger. */
4
3
  log: (msg: string, meta?: Record<string, unknown>) => void;
5
- /** Injected function to inject a nudge message into the current session. */
6
4
  injectNudge?: (text: string) => Promise<void>;
5
+ projectDir?: string;
7
6
  }
8
7
  export interface AgentAntiLoopWiring {
9
- /** Handler for `tool.execute.after` — tracks tool signatures. */
10
8
  toolExecuteAfter: (input: {
11
9
  tool: string;
12
10
  args: unknown;
13
11
  output: unknown;
14
12
  }) => void;
15
- /** Handler for `session.idle` — checks stuck timer and escalates. */
16
13
  sessionIdle: () => Promise<void>;
17
- /** Reset on session start. */
18
14
  sessionCreated: () => void;
15
+ onAgentMessage: (content: string) => void;
19
16
  }
20
17
  export declare function createAgentAntiLoopWiring(config: WatchdogConfig, deps: AgentAntiLoopDeps): AgentAntiLoopWiring;
package/dist/tui.js CHANGED
@@ -64557,6 +64557,7 @@ var init_watchdog = __esm(() => {
64557
64557
  WatchdogConfigSchema = object({
64558
64558
  enabled: boolean2().default(true),
64559
64559
  doomLoopThreshold: number2().int().positive().max(20).default(3),
64560
+ softDoomLoopThreshold: number2().int().positive().max(20).default(5),
64560
64561
  stuckTimeoutSec: number2().int().positive().max(600).default(90),
64561
64562
  auditLogPath: string2().optional(),
64562
64563
  recoveryStrategy: _enum2(["nudge", "fallback", "restart", "notify", "safe"]).default("nudge"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "MaTrixOS — Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",