@livx.cc/agentx 0.99.36 → 0.99.37

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.
@@ -532,6 +532,18 @@ declare class Agent {
532
532
  * - only against the ledger for the WHOLE run, so referring back to a call it genuinely made earlier
533
533
  * ("the screenshot showed an empty grid") is honest and stays silent;
534
534
  * - only on a turn that made no tool calls of its own — a turn that DID call tools is closing normally.
535
+ * (That is the enclosing `toolCalls.length === 0` branch. It is NOT extended to delegated activity:
536
+ * a `cursor/*` turn runs its own tools and then fabricates in the SAME response, which is the exact
537
+ * reported defect — see the call site.)
538
+ *
539
+ * What it deliberately does NOT catch, both verified:
540
+ * - a fabrication that names no tool at all ("Let me take a look at the running app. The app view did
541
+ * not respond in time.") — there is nothing to prove it against. Only prose matching could reach it,
542
+ * and ungating `endsOnAnnouncedAction` for that was tried and reverted (it fires on ordinary English).
543
+ * - a SECOND invented result for a tool the run genuinely called earlier. The ledger is per-run by
544
+ * design, because that is the same fact that keeps an honest back-reference ("the screenshot showed
545
+ * an empty grid") silent. Distinguishing them would need per-claim positional accounting, which buys
546
+ * a rarer case at the cost of the common honest one.
535
547
  */
536
548
  private fabricatedToolNames;
537
549
  private dispatch;
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
- import { H as Hooks, i as RunResult, R as ReasoningEffort, A as Agent } from './Agent-Fr8uwN_l.js';
2
+ import { H as Hooks, i as RunResult, R as ReasoningEffort, A as Agent } from './Agent-B--fZNJy.js';
3
3
  import { IFilesystem } from '@livx.cc/wcli/core';
4
4
  import { M as Message, U as UserQuestion, H as HostBridge, c as ContentPart, g as MessageContent } from './tools-Byyh_bae.js';
5
5
 
package/dist/cli.js CHANGED
@@ -4238,7 +4238,7 @@ var Agent = class _Agent {
4238
4238
  }
4239
4239
  if (toolCalls.length === 0) {
4240
4240
  if (this.drainInjections()) continue;
4241
- const fabricated = o.catchFabricatedToolUse && !closureNudged && delegatedTools.length === 0 ? this.fabricatedToolNames(contentText(res.content ?? "")) : [];
4241
+ const fabricated = o.catchFabricatedToolUse && !closureNudged ? this.fabricatedToolNames(contentText(res.content ?? "")) : [];
4242
4242
  for (const n of fabricated) this.fabricatedClaims.add(n);
4243
4243
  if (fabricated.length && steps < o.maxSteps) {
4244
4244
  closureNudged = true;
@@ -4414,6 +4414,18 @@ var Agent = class _Agent {
4414
4414
  * - only against the ledger for the WHOLE run, so referring back to a call it genuinely made earlier
4415
4415
  * ("the screenshot showed an empty grid") is honest and stays silent;
4416
4416
  * - only on a turn that made no tool calls of its own — a turn that DID call tools is closing normally.
4417
+ * (That is the enclosing `toolCalls.length === 0` branch. It is NOT extended to delegated activity:
4418
+ * a `cursor/*` turn runs its own tools and then fabricates in the SAME response, which is the exact
4419
+ * reported defect — see the call site.)
4420
+ *
4421
+ * What it deliberately does NOT catch, both verified:
4422
+ * - a fabrication that names no tool at all ("Let me take a look at the running app. The app view did
4423
+ * not respond in time.") — there is nothing to prove it against. Only prose matching could reach it,
4424
+ * and ungating `endsOnAnnouncedAction` for that was tried and reverted (it fires on ordinary English).
4425
+ * - a SECOND invented result for a tool the run genuinely called earlier. The ledger is per-run by
4426
+ * design, because that is the same fact that keeps an honest back-reference ("the screenshot showed
4427
+ * an empty grid") silent. Distinguishing them would need per-claim positional accounting, which buys
4428
+ * a rarer case at the cost of the common honest one.
4417
4429
  */
4418
4430
  fabricatedToolNames(text) {
4419
4431
  const out = [];