@livx.cc/agentx 0.99.166 → 0.99.168

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.
@@ -246,6 +246,8 @@ declare class PermissionOptions {
246
246
  decision: 'allow' | 'deny';
247
247
  remember?: boolean;
248
248
  } | undefined>;
249
+ /** Observer: a rule (or the allow-list default) refused a call — a host surfaces it (the CLI's live status). */
250
+ onDeny?(call: ToolUse, reason: string): void;
249
251
  }
250
252
  declare class PermissionPolicy {
251
253
  options: PermissionOptions;
@@ -668,6 +670,9 @@ declare class AgentOptions {
668
670
  * caps, MCP soft timeout) live on `JobRegistryOptions`. Completion notices reach the model via `inject` unless
669
671
  * the host set its own `onExit`. */
670
672
  jobs?: JobRegistry;
673
+ /** Called after every `inject()` (a background job's completion notice, a host steer). A REPL uses it to wake an
674
+ * IDLE session — between turns nothing drains the queue, so a finished job would otherwise wait for the next prompt. */
675
+ onInject?: () => void;
671
676
  /** Plan mode: block mutating tools until the agent calls `ExitPlanMode` (host-approved). */
672
677
  planMode: boolean;
673
678
  /** Permission policy gating each tool call (allow / ask / deny). */
@@ -758,6 +763,10 @@ declare class Agent {
758
763
  /** Time a human-blocking await (a permission/plan prompt) and bank it in `parkedMs` so idle prompt
759
764
  * time never trips the wall-clock kill-switch. The agent did no work while parked on the user. */
760
765
  private park;
766
+ /** codex/*: Codex runs its own tools, so its approval requests (a command, a file change) go through the SAME hooks an
767
+ * agentx tool call does: permission policy (allow/deny/ask resolver -> live `waiting`/`denied`), plan mode. The wait
768
+ * holds the stall watchdog (a human may take minutes; Codex is silent meanwhile) and is parked out of the timeout. */
769
+ private codexApprove;
761
770
  /** Force the next `send()`/`run()` to rebuild the system prompt, tools, plan-mode and permission hooks
762
771
  * from `options` — apply mid-conversation changes to `planMode`/`permissions`/`model` etc. (prepare()
763
772
  * is otherwise memoized per conversation). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livx.cc/agentx",
3
- "version": "0.99.166",
3
+ "version": "0.99.168",
4
4
  "description": "Edge-native AI agent runtime — drives a virtual filesystem via any LLM (ai.libx.js). Same bytes run in node, browser, or edge.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -82,7 +82,7 @@
82
82
  "@bod.ee/db": "~2.14.3",
83
83
  "@livx.cc/mcp-jev": "^0.1.0",
84
84
  "@livx.cc/wcli": "^2.2.5",
85
- "ai.libx.js": "0.18.92",
85
+ "ai.libx.js": "0.18.94",
86
86
  "libx.js": "^6.3.0"
87
87
  },
88
88
  "devDependencies": {