@livx.cc/agentx 0.99.73 → 0.99.75

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-wVQBhYwm.js';
1
+ import { A as AgentTool } from './tools-lC3jn60o.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-8_lBApgs.js';
2
- import { A as AgentTool } from './tools-wVQBhYwm.js';
1
+ import { e as McpToolSearchOptions, f as McpToolSpec } from './mcp-BhTxN2I7.js';
2
+ import { A as AgentTool } from './tools-lC3jn60o.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)
@@ -129,8 +129,8 @@ declare function elideStaleImages(messages: Message[], keepRecent?: number): Mes
129
129
  */
130
130
  declare function expandImagesForSend(messages: Message[], keepRecent?: number, stub?: string, vision?: boolean): Message[];
131
131
  /**
132
- * Byte-weight of a transcript AS IT WILL GO ON THE WIRE — refs inside the keep window weigh their
133
- * file's base64 size, everything stale weighs the stub — WITHOUT materializing a single byte of
132
+ * Token-estimate weight (chars; /4 = tokens) of a transcript AS IT WILL GO ON THE WIRE — an image inside
133
+ * the keep window weighs its pixel tokens ×4 (`wiredImageWeight`, never its base64 length), everything stale weighs the stub — WITHOUT materializing a single byte of
134
134
  * base64. This is the honest number for `/context` and the CLI footer, where the old behaviour made
135
135
  * every historical screenshot immortal and produced false "90% full" warnings.
136
136
  */
@@ -1,4 +1,4 @@
1
- import { k as JobRegistry, A as AgentTool } from './tools-wVQBhYwm.js';
1
+ import { k as JobRegistry, A as AgentTool } from './tools-lC3jn60o.js';
2
2
  import '@livx.cc/wcli/core';
3
3
 
4
4
  /**
@@ -11,13 +11,8 @@ import { log } from "libx.js/src/modules/log";
11
11
  var forComponent = (name) => log.forComponent(name);
12
12
 
13
13
  // src/imageWire.ts
14
- import { readFileSync, writeFileSync, statSync, mkdtempSync, rmSync } from "fs";
15
- import { spawnSync } from "child_process";
16
- import { createHash } from "crypto";
17
- import { tmpdir } from "os";
18
- import { join } from "path";
19
- import { PNG } from "pngjs";
20
- import jpeg from "jpeg-js";
14
+ import { readFileSync, statSync } from "fs";
15
+ import { imageWireOf, inlineImageForWire, scrubBase64Text, imageSize, imageNote, IMAGE_MAX_SIDE, IMAGE_MAX_BYTES } from "ai.libx.js";
21
16
  var log2 = forComponent("imageWire");
22
17
 
23
18
  // src/llm.ts