agent.libx.js 0.93.27 → 0.93.28
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/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +42 -38
- package/dist/index.js +100 -100
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3468,9 +3468,11 @@ init_tools_structured();
|
|
|
3468
3468
|
init_todo();
|
|
3469
3469
|
init_tools_web();
|
|
3470
3470
|
|
|
3471
|
-
// src/
|
|
3471
|
+
// src/scratch.ts
|
|
3472
|
+
init_tools();
|
|
3473
|
+
init_tools_structured();
|
|
3472
3474
|
init_logging();
|
|
3473
|
-
var log4 = forComponent("
|
|
3475
|
+
var log4 = forComponent("scratch");
|
|
3474
3476
|
|
|
3475
3477
|
// src/lessons.ts
|
|
3476
3478
|
init_logging();
|
|
@@ -5427,6 +5429,7 @@ function defaultOpenBrowser(url) {
|
|
|
5427
5429
|
}
|
|
5428
5430
|
|
|
5429
5431
|
// cli/core.ts
|
|
5432
|
+
import { randomUUID } from "crypto";
|
|
5430
5433
|
import { resolve, basename, join as join3 } from "path";
|
|
5431
5434
|
import { existsSync as existsSync2, mkdirSync as mkdirSync2 } from "fs";
|
|
5432
5435
|
import { platform, arch, release, userInfo, homedir } from "os";
|
|
@@ -5571,7 +5574,9 @@ Reference files in them by their mount path (the left side).`;
|
|
|
5571
5574
|
// host's MCP servers so the delegated cursor agent runs in the same environment. Gated to cursor:
|
|
5572
5575
|
// openai/google adapters Object.assign providerOptions into the request body, so a blanket cwd
|
|
5573
5576
|
// would corrupt those calls.
|
|
5574
|
-
|
|
5577
|
+
// Warm cursor session (default on; CURSOR_WARM=0 to disable): one long-lived agent reused across
|
|
5578
|
+
// turns, amortising the ~2s Agent.create + h2 handshake. Keyed per agentx launch.
|
|
5579
|
+
...isCursor ? { providerOptions: { cwd, ...toCursorMcp(o.mcpServers) ?? {}, ...process.env.CURSOR_WARM === "0" ? {} : { cursorSession: randomUUID() } } } : {},
|
|
5575
5580
|
...(() => {
|
|
5576
5581
|
const now5 = /* @__PURE__ */ new Date();
|
|
5577
5582
|
const platformNames = { darwin: "macOS", linux: "Linux", win32: "Windows" };
|