@vietor/easy-agent 0.4.8 → 0.4.10

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/main.js CHANGED
@@ -3,7 +3,7 @@ import { homedir } from "node:os";
3
3
  import { join } from "node:path";
4
4
  import { Command } from "commander";
5
5
  import { loadConfig } from "./config.js";
6
- import { tryLoadSkills, tryReadFileText, createSession } from "@vietor/easy-agent-core";
6
+ import { tryLoadSkills, tryReadFileText, createSession, SYSTEM_PROMPT_BOUNDARY } from "@vietor/easy-agent-core";
7
7
  import { builtinCommands } from "./cmds/builtin.js";
8
8
  import { startApp } from "./tui/App.js";
9
9
  import { getPackageInfo } from "./util/package.js";
@@ -74,7 +74,7 @@ export async function main(argv = []) {
74
74
  const projectPrompt = tryReadFileText(join(cwd, "AGENTS.md")) ?? tryReadFileText(join(cwd, "CLAUDE.md"));
75
75
  const systemPrompt = [buildSystemPromptBase(cwd), globalPrompt, projectPrompt]
76
76
  .filter(Boolean)
77
- .join("\n\n=================\n\n");
77
+ .join(SYSTEM_PROMPT_BOUNDARY);
78
78
  const session = await createSession({
79
79
  systemPrompt,
80
80
  llmConfig: config.llm,
@@ -15,5 +15,5 @@ export const StatusBar = memo(function StatusBar({ contextTokens, contextLimit,
15
15
  hints = reasoningAvailable ? "esc stop · t reasoning" : "esc stop";
16
16
  else
17
17
  hints = "/ commands";
18
- return (_jsxs(Box, { width: columns, paddingX: 1, flexDirection: "row", justifyContent: "space-between", borderStyle: "single", borderTop: true, borderBottom: false, borderLeft: false, borderRight: false, borderColor: "gray", children: [_jsxs(Text, { children: [_jsx(Text, { dimColor: true, children: `ctx ${compactDisplay(contextTokens)} ` }), _jsx(Text, { color: ctxColor, children: `▕${bar}▏ ${pct}%` })] }), _jsx(Text, { dimColor: true, children: hints })] }));
18
+ return (_jsxs(Box, { width: columns, paddingX: 1, flexDirection: "row", justifyContent: "space-between", borderStyle: "single", borderTop: true, borderBottom: false, borderLeft: false, borderRight: false, borderColor: "gray", children: [_jsxs(Text, { children: [_jsx(Text, { dimColor: true, children: `context ${compactDisplay(contextTokens)} ` }), _jsx(Text, { color: ctxColor, children: `▕${bar}▏ ${pct}%` })] }), _jsx(Text, { dimColor: true, children: hints })] }));
19
19
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vietor/easy-agent",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "type": "module",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "react": "^19.2.7",
24
24
  "string-width": "^8.2.1",
25
25
  "zod": "^4.4.3",
26
- "@vietor/easy-agent-core": "0.4.8"
26
+ "@vietor/easy-agent-core": "0.4.10"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.0.0",