@livx.cc/agentx 0.99.166 → 0.99.167

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). */
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.167",
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",