@livx.cc/agentx 0.99.48 → 0.99.49

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.
@@ -1,4 +1,4 @@
1
- import { A as AgentTool } from './tools-MNdqlJIa.js';
1
+ import { A as AgentTool } from './tools-HsbxgqjF.js';
2
2
 
3
3
  /**
4
4
  * MCP bridge — adapt a Model Context Protocol tool list into the agent's AgentTool[],
@@ -1,5 +1,5 @@
1
- import { e as McpToolSearchOptions, f as McpToolSpec } from './mcp-DjYZzGGW.js';
2
- import { A as AgentTool } from './tools-MNdqlJIa.js';
1
+ import { e as McpToolSearchOptions, f as McpToolSpec } from './mcp-CSLRyvEp.js';
2
+ import { A as AgentTool } from './tools-HsbxgqjF.js';
3
3
  import '@livx.cc/wcli/core';
4
4
 
5
5
  /** Hard cap for `tools/call`. NOT the 30s protocol timeout: a tool call is real work (an image render, a crawl)
@@ -310,7 +310,12 @@ declare class JobRegistryOptions {
310
310
  maxBuffer: number;
311
311
  /** Idle window per kind: no output/progress/CPU for this long ⇒ stuck. Kinds without an activity channel
312
312
  * (host, native) are absent on purpose — silence is all they can ever show, so it proves nothing; their
313
- * bound is the hard cap. Explicit `background:true` shell jobs opt out per job (a quiet server is healthy). */
313
+ * bound is the hard cap. Explicit `background:true` shell jobs opt out per job (a quiet server is healthy).
314
+ * NOTE the asymmetry that default hides: for a HOST job silence really is uninformative (the caller holds
315
+ * the pending dispatch promise — independent proof it is alive), but a NATIVE job has no such proof AND it
316
+ * suppresses the stall watchdog, i.e. it turns the provider's own silence into permission to keep ignoring
317
+ * that provider's silence. So Agent passes an explicit per-job `idleMs` (nativeHoldMs) for `native`: the
318
+ * provider must keep re-proving liveness with `running` events or forfeit the hold. See Agent.nativeHoldMs. */
314
319
  idleMs: Record<string, number>;
315
320
  /** Absolute ceiling per kind (0/absent = none). */
316
321
  hardCapMs: Record<string, number>;
@@ -1,4 +1,4 @@
1
- import { k as JobRegistry, A as AgentTool } from './tools-MNdqlJIa.js';
1
+ import { k as JobRegistry, A as AgentTool } from './tools-HsbxgqjF.js';
2
2
  import '@livx.cc/wcli/core';
3
3
 
4
4
  /**
@@ -540,7 +540,12 @@ var JobRegistryOptions = class {
540
540
  maxBuffer = 256 * 1024;
541
541
  /** Idle window per kind: no output/progress/CPU for this long ⇒ stuck. Kinds without an activity channel
542
542
  * (host, native) are absent on purpose — silence is all they can ever show, so it proves nothing; their
543
- * bound is the hard cap. Explicit `background:true` shell jobs opt out per job (a quiet server is healthy). */
543
+ * bound is the hard cap. Explicit `background:true` shell jobs opt out per job (a quiet server is healthy).
544
+ * NOTE the asymmetry that default hides: for a HOST job silence really is uninformative (the caller holds
545
+ * the pending dispatch promise — independent proof it is alive), but a NATIVE job has no such proof AND it
546
+ * suppresses the stall watchdog, i.e. it turns the provider's own silence into permission to keep ignoring
547
+ * that provider's silence. So Agent passes an explicit per-job `idleMs` (nativeHoldMs) for `native`: the
548
+ * provider must keep re-proving liveness with `running` events or forfeit the hold. See Agent.nativeHoldMs. */
544
549
  idleMs = { shell: 10 * 6e4, mcp: 10 * 6e4 };
545
550
  /** Absolute ceiling per kind (0/absent = none). */
546
551
  hardCapMs = { mcp: 30 * 6e4 };