nolo-cli 0.31.0-alpha.3 → 0.31.0-alpha.4

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.
@@ -7,7 +7,7 @@ import {
7
7
  prependSubjectDialogMarker,
8
8
  resolveWorkflowReference,
9
9
  runAgentRunCommand
10
- } from "./chunk-Z4QUAR3U.js";
10
+ } from "./chunk-SIDO3UCU.js";
11
11
  import {
12
12
  parseAgentRunArgs
13
13
  } from "./chunk-AOS5IN2I.js";
@@ -4478,9 +4478,7 @@ var estimateTokens = (text) => {
4478
4478
  return Math.ceil(cjk * 1.5 + ascii / 4);
4479
4479
  };
4480
4480
  var OVERLAY_HEADER_LINES = [
4481
- "--- Memory Overlay ---",
4482
- "\u4EE5\u4E0B\u662F\u5F53\u524D\u8BF7\u6C42\u53EF\u7528\u7684\u8BB0\u5FC6\u4E8B\u5B9E\uFF1B\u76F8\u5173\u65F6\u76F4\u63A5\u57FA\u4E8E\u8FD9\u4E9B\u8BB0\u5FC6\u56DE\u7B54\u3002",
4483
- "\u7528\u6237\u5F53\u524D\u8F93\u5165\u4F18\u5148\u4E8E\u8BB0\u5FC6\uFF1B\u8BB0\u5FC6\u53EA\u8F85\u52A9\u7406\u89E3\uFF0C\u4E0D\u8981\u6C42\u8FCE\u5408\u3002",
4481
+ "--- Memory (\u76F8\u5173\u65F6\u53C2\u8003\uFF0C\u7528\u6237\u8F93\u5165\u4F18\u5148) ---",
4484
4482
  ""
4485
4483
  ];
4486
4484
  var OVERLAY_HEADER_TOKENS = estimateTokens(OVERLAY_HEADER_LINES.join("\n"));
@@ -4505,15 +4503,15 @@ var normalizeDisplayContent = (item) => {
4505
4503
  const normalized = item.content.trim().replace(EXPLICIT_REMEMBER_PREFIX_REGEX, "").replace(/[。!?!?]+$/u, "").trim();
4506
4504
  if (item.kind === "semantic") {
4507
4505
  if (item.tags?.includes("understanding-memory") && item.facet) {
4508
- return formatFacetContent(item.facet, normalized, "\u7528\u6237\u5F53\u524D");
4506
+ return formatFacetContent(item.facet, normalized, "");
4509
4507
  }
4510
- return `\u7528\u6237\u957F\u671F\u504F\u597D/\u4E8B\u5B9E\uFF1A${normalized}`;
4508
+ return normalized;
4511
4509
  }
4512
4510
  if (item.kind === "episodic" && (item.patternKey === "explicit-remember" || item.patternKey === "agent-remember")) {
4513
- return `\u7528\u6237\u660E\u786E\u8981\u6C42\u4F60\u8BB0\u4F4F\uFF1A${normalized}`;
4511
+ return normalized;
4514
4512
  }
4515
4513
  if (item.kind === "episodic" && item.tags?.includes("understanding-memory") && item.facet) {
4516
- return formatFacetContent(item.facet, normalized, "\u6700\u8FD1\u4E00\u6B21\u5BF9\u8BDD\u663E\u793A\uFF1A\u7528\u6237");
4514
+ return formatFacetContent(item.facet, normalized, "\u4E0A\u6B21: ");
4517
4515
  }
4518
4516
  return normalized;
4519
4517
  };
@@ -4663,7 +4661,7 @@ var rankMemoryCandidates = (items, query, context) => {
4663
4661
 
4664
4662
  // packages/ai/memory/runtime.ts
4665
4663
  var COLD_STORAGE_CONFIDENCE = 0.3;
4666
- var MEMORY_OVERLAY_TOKEN_BUDGET = 800;
4664
+ var MEMORY_OVERLAY_TOKEN_BUDGET = 1200;
4667
4665
  var normalizeSelectedContent = (text) => text.trim().replace(EXPLICIT_REMEMBER_PREFIX_REGEX, "").replace(/[。!?!?]+$/u, "").trim();
4668
4666
  var STACK_TERMS = [
4669
4667
  "typescript",
@@ -4748,7 +4746,7 @@ var selectRuntimeMemoryItems = (items, context, userInput = "") => {
4748
4746
  const selected = [];
4749
4747
  const selectedIds = /* @__PURE__ */ new Set();
4750
4748
  const add = (item) => {
4751
- if (!item || selectedIds.has(item.id) || selected.length >= 4) return;
4749
+ if (!item || selectedIds.has(item.id) || selected.length >= 10) return;
4752
4750
  selected.push(item);
4753
4751
  selectedIds.add(item.id);
4754
4752
  };
package/index.js CHANGED
@@ -126,7 +126,7 @@ function createDaemonShortcutCommand(path, description, command2) {
126
126
  // packages/cli/agentInternalCommandEntries.ts
127
127
  function getAgentInternalCommandEntries() {
128
128
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
129
- const { runAgentRunCommand } = await import("./agentRunCommand-LJI4EPMF.js");
129
+ const { runAgentRunCommand } = await import("./agentRunCommand-CUDPUVWQ.js");
130
130
  return runAgentRunCommand(args2, {
131
131
  env: ctx.env,
132
132
  scriptDir: ctx.scriptDir,
@@ -796,7 +796,7 @@ async function runScript(script, forwardedArgs, env) {
796
796
  return proc.exited;
797
797
  }
798
798
  async function launchTuiWorkspace(args2) {
799
- const { startTuiWorkspace } = await import("./readlineWorkspace-BUQSMN7X.js");
799
+ const { startTuiWorkspace } = await import("./readlineWorkspace-YHZS56AL.js");
800
800
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-SRZ4QQUP.js");
801
801
  return startTuiWorkspace({
802
802
  ...args2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.31.0-alpha.3",
3
+ "version": "0.31.0-alpha.4",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
@@ -58,7 +58,7 @@ import {
58
58
  visibleWidth,
59
59
  wrapTextToLines,
60
60
  wrapTranscriptLine
61
- } from "./chunk-Z4QUAR3U.js";
61
+ } from "./chunk-SIDO3UCU.js";
62
62
  import "./chunk-AOS5IN2I.js";
63
63
  import "./chunk-6HYVJV7B.js";
64
64
  import {