nolo-cli 0.31.0-alpha.2 → 0.31.0-alpha.3
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/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-
|
|
129
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-LJI4EPMF.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-
|
|
799
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-BUQSMN7X.js");
|
|
800
800
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-SRZ4QQUP.js");
|
|
801
801
|
return startTuiWorkspace({
|
|
802
802
|
...args2,
|
package/package.json
CHANGED
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
replaceCollapsedPastesWithReferences,
|
|
40
40
|
resolveAgentContextWindow,
|
|
41
41
|
resolveCliColorEnabled,
|
|
42
|
+
resolveCliMemory,
|
|
42
43
|
resolveSkillReference,
|
|
43
44
|
resolveTuiBrightness,
|
|
44
45
|
runAgentTurn,
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
visibleWidth,
|
|
58
59
|
wrapTextToLines,
|
|
59
60
|
wrapTranscriptLine
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-Z4QUAR3U.js";
|
|
61
62
|
import "./chunk-AOS5IN2I.js";
|
|
62
63
|
import "./chunk-6HYVJV7B.js";
|
|
63
64
|
import {
|
|
@@ -128,6 +129,8 @@ import {
|
|
|
128
129
|
import "./chunk-N7J63Q6C.js";
|
|
129
130
|
import {
|
|
130
131
|
buildAgentsMdLayer,
|
|
132
|
+
buildMemoryOverlayLayer,
|
|
133
|
+
buildMemoryUseGuidanceLayer,
|
|
131
134
|
partitionScopedBlocks,
|
|
132
135
|
renderTurnContextBlocksWithScope
|
|
133
136
|
} from "./chunk-DPR66GY6.js";
|
|
@@ -5822,12 +5825,23 @@ async function runAgentChat(scriptDir, state, message, env, output, agentRunner
|
|
|
5822
5825
|
// on-demand. Mirrors agentRunCommand.ts and desktopAgentRuntimeTurnService.
|
|
5823
5826
|
buildSkillDiscoveryContextLayer(state.cwd)
|
|
5824
5827
|
];
|
|
5828
|
+
const memoryPromptBlock = await resolveCliMemory({
|
|
5829
|
+
serverUrl: state.serverUrl,
|
|
5830
|
+
authToken: resolvePlatformAuthToken(env),
|
|
5831
|
+
agentKey: effectiveAgentKey,
|
|
5832
|
+
userInput: effectiveMessage,
|
|
5833
|
+
env
|
|
5834
|
+
}).catch(() => null);
|
|
5835
|
+
const memoryOverlayLayer = buildMemoryOverlayLayer({ promptBlock: memoryPromptBlock });
|
|
5836
|
+
const memoryUseGuidanceLayer = buildMemoryUseGuidanceLayer({ promptBlock: memoryPromptBlock });
|
|
5825
5837
|
const contextBlockScopes = partitionScopedBlocks([
|
|
5826
5838
|
...renderTurnContextBlocksWithScope(layers),
|
|
5839
|
+
...renderTurnContextBlocksWithScope([memoryUseGuidanceLayer]),
|
|
5827
5840
|
// Attached skill bodies are already self-contained sections built by
|
|
5828
5841
|
// buildSkillContextBlocks; they stay turn-scope because the user can
|
|
5829
5842
|
// attach/detach skills between turns.
|
|
5830
|
-
...(skillContextBlocks ?? []).map((content) => content.trim()).filter((content) => content.length > 0).map((content) => ({ content, cacheScope: "turn" }))
|
|
5843
|
+
...(skillContextBlocks ?? []).map((content) => content.trim()).filter((content) => content.length > 0).map((content) => ({ content, cacheScope: "turn" })),
|
|
5844
|
+
...renderTurnContextBlocksWithScope([memoryOverlayLayer])
|
|
5831
5845
|
]);
|
|
5832
5846
|
const result = await agentRunner({
|
|
5833
5847
|
agentName: effectiveAgentName,
|