@livx.cc/agentx 0.99.158 → 0.99.159

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 CHANGED
@@ -18493,13 +18493,13 @@ function holdLine(c) {
18493
18493
  const said = new Set(c.history.filter((h) => h.who === "you").map((h) => norm3(h.text)));
18494
18494
  return (HOLDS[c.lang] ?? []).find((x) => !said.has(norm3(x))) ?? "";
18495
18495
  }
18496
- function fastQuickLane(ai, model, gender, persona = "", hedgeMs = 900) {
18496
+ function fastQuickLane(ai, model, gender, persona = "", hedgeMs = 900, tools = true) {
18497
18497
  return async (c, signal) => {
18498
18498
  if (c.rest && GO_ON.test(c.heard)) return { kind: "resume", line: "" };
18499
18499
  const hold = holdLine(c);
18500
18500
  if (hold) return { kind: "say", line: hold };
18501
18501
  const ask = async () => {
18502
- const raw = await fastText(ai, { model, prompt: quickPrompt(c, gender, persona), signal, temperature: 0.4 });
18502
+ const raw = await fastText(ai, { model, prompt: quickPrompt(c, gender, persona, tools), signal, temperature: 0.4 });
18503
18503
  const mv = quickMove(raw, c);
18504
18504
  if (!mv) log39.debug(`quick lane: unusable "${raw.slice(0, 80)}"`);
18505
18505
  return mv;
@@ -18516,12 +18516,12 @@ function fastQuickLane(ai, model, gender, persona = "", hedgeMs = 900) {
18516
18516
  }
18517
18517
  };
18518
18518
  }
18519
- function quickPrompt(c, gender, persona = "") {
18519
+ function quickPrompt(c, gender, persona = "", tools = true) {
18520
18520
  const hist = c.history.slice(-12).map((h) => `${h.who === "user" ? "Them" : "You"}: ${h.text.slice(0, 400)}${h.cut ? " \u2014(they cut you here)" : ""}`).join("\n");
18521
18521
  return `${persona ? `Who you are on this call:
18522
18522
  ${persona.slice(0, 500)}
18523
18523
 
18524
- ` : ""}You are the quick voice of a live phone call. A slower expert colleague works behind you: they use tools, the web and files and think things through. You answer at once.
18524
+ ` : ""}You are the quick voice of a live phone call. ${tools ? "A slower expert colleague works behind you: they use tools, the web and files and think things through." : "A slower colleague works behind you and thinks things through. This call has NO tools: nothing can be looked up, checked, searched or fetched by anyone."} You answer at once.
18525
18525
 
18526
18526
  The call so far:
18527
18527
  ${hist || "(just started)"}
@@ -18532,7 +18532,7 @@ They just said: "${c.heard}"
18532
18532
  Reply with exactly ONE line, one of:
18533
18533
  BYE: <a short farewell> \u2014 they mean to end the call ("no, thank you, bye", "okay, talk later"): the call hangs up after it. Judge the intent: "say bye to Dan" or "before I go, one more thing" is not an end.
18534
18534
  SAY: <your words> \u2014 ONLY a greeting or how-are-you, a short reaction ("wow", "really?"), or when they ask exactly to repeat something ALREADY said ("say that again", "which one was that?"). Any request ("tell me a story\u2026"), any question about content ("what is\u2026?", "wait, what?", "how long is it?") is DEEP, even if you could guess. Max two short sentences. Use only facts from the call above; never invent a name, number, news item or result.
18535
- DEEP: <a 2-8 word acknowledgement> | <what the colleague must do, names spelled right> \u2014 anything needing a lookup, current information, tools, files, or real thinking. The acknowledgement is your natural first reaction to THIS kind of ask, in your own voice: a lookup says you're on it and names what you'll look at ("Sure, let me pull up the kitty changelog."); a story, joke or idea gets a reaction to the idea itself (a story about a dragon: "Ooh, a dragon story, okay\u2026"); a question about what was said gets a short "ah"-type reaction ("Ah, good question."). Say "checking" or "looking" only when something is actually looked up. Never a result. The speech-to-text misspells names: fix them from context ("Haka News" \u2192 Hacker News).
18535
+ DEEP: <a 2-8 word acknowledgement> | <what the colleague must do, names spelled right> \u2014 anything needing a lookup, current information, tools, files, or real thinking. The acknowledgement is your natural first reaction to THIS kind of ask, in your own voice: ${tools ? `a lookup says you're on it and names what you'll look at ("Sure, let me pull up the kitty changelog."); ` : `never say you will check, look up, pull up, find or fetch anything \u2014 nothing can be; a question gets a short thinking reaction ("Hmm, okay\u2026", "Right, so\u2026"); `}a story, joke or idea gets a reaction to the idea itself (a story about a dragon: "Ooh, a dragon story, okay\u2026"); a question about what was said gets a short "ah"-type reaction ("Ah, good question."). Say "checking" or "looking" only when something is actually looked up. Never a result. The speech-to-text misspells names: fix them from context ("Haka News" \u2192 Hacker News).
18536
18536
  QUIET \u2014 nothing is owed: a bare "okay", "mm-hm", or a reaction you already answered.
18537
18537
  "Wait" / "hold on" with nothing new: a brief SAY ("Sure.") \u2014 no work for the colleague. Vary your words: never reuse an acknowledgement or reaction already said in this call.
18538
18538
  A reaction ("wow", "really?") gets a short fitting reply in your own words ("I know, right?"), never their word back. Never repeat what was already said. Speak ${languageName(c.lang)}. ${personaHint(gender)} Output only the line.`;
@@ -25947,7 +25947,8 @@ async function channelServe(args, ai, cfg) {
25947
25947
  ...fast,
25948
25948
  // no `ai` here: the channel's model wiring is explicit
25949
25949
  ...quick ? {
25950
- quick: fastQuickLane(ai, fast.fastModel, args.voiceGender, process.env.AGENTX_CALL_PERSONA ?? ""),
25950
+ quick: fastQuickLane(ai, fast.fastModel, args.voiceGender, process.env.AGENTX_CALL_PERSONA ?? "", void 0, process.env.AGENTX_CALL_NO_TOOLS !== "1"),
25951
+ // (1: MAIN has no tools — a sandboxed phone call)
25951
25952
  noteTurn: (text) => out({ type: "note", text }),
25952
25953
  heardCut: () => cut?.heard ?? null,
25953
25954
  cutRest: () => cut && cut.full.slice(cut.heard.length).trim() || null,