@livx.cc/agentx 0.99.73 → 0.99.74
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.
- package/dist/{Agent-CSFGRC-I.d.ts → Agent-Bs2ufrIU.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +155 -293
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +32 -170
- package/dist/index.js.map +1 -1
- package/dist/{mcp-8_lBApgs.d.ts → mcp-BhTxN2I7.d.ts} +1 -1
- package/dist/mcp.client.d.ts +2 -2
- package/dist/{tools-wVQBhYwm.d.ts → tools-lC3jn60o.d.ts} +2 -2
- package/dist/tools.shell.d.ts +1 -1
- package/dist/tools.shell.js +2 -7
- package/dist/tools.shell.js.map +1 -1
- package/package.json +3 -6
package/dist/mcp.client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as McpToolSearchOptions, f as McpToolSpec } from './mcp-
|
|
2
|
-
import { A as AgentTool } from './tools-
|
|
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
|
-
*
|
|
133
|
-
*
|
|
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
|
*/
|
package/dist/tools.shell.d.ts
CHANGED
package/dist/tools.shell.js
CHANGED
|
@@ -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,
|
|
15
|
-
import {
|
|
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
|