appback-remoteagent 0.13.13 → 0.13.15

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/bot.js CHANGED
@@ -886,14 +886,6 @@ ${bridge.formatStatus(mapping)}`);
886
886
  if (!text) {
887
887
  return;
888
888
  }
889
- if (mapping) {
890
- const localStatus = await memoryService.formatLocalStatusQuestion(mapping.session, text);
891
- if (localStatus) {
892
- await bridge.logSystem(botId, chatId, "Answered local session status without provider execution.");
893
- await reply(ctx, localStatus);
894
- return;
895
- }
896
- }
897
889
  if (isRemoteShellMessage(text)) {
898
890
  const shellRequest = parseRemoteShellRequest(text);
899
891
  if (!shellRequest) {
@@ -71,53 +71,6 @@ export class AgentMemoryService {
71
71
  history.length > 0 ? ["Recent history:", ...history.map((entry) => `- ${entry}`)].join("\n") : undefined,
72
72
  ].filter(Boolean).join("\n");
73
73
  }
74
- async formatLocalStatusQuestion(session, question) {
75
- if (!this.looksLikeLocalStatusQuestion(question)) {
76
- return undefined;
77
- }
78
- const current = await this.currentTaskText(session);
79
- const todo = await this.readTodo(session);
80
- const active = this.activeTodoItems(todo);
81
- const history = await this.readRecentHistory(session, 8);
82
- const workHistory = await this.readRecentWorkHistory(session, 6);
83
- const latestInstruction = this.extractLatestInstructionFromCurrent(current);
84
- const currentIsStatusOnly = latestInstruction ? this.looksLikeLocalStatusQuestion(latestInstruction) : false;
85
- const hasCurrentWork = Boolean(current.trim()) && !currentIsStatusOnly;
86
- const lines = [
87
- `Session ${session.publicId} local state`,
88
- "",
89
- `workspace: ${session.workspace}`,
90
- `memory: ${this.sessionDir(session)}`,
91
- "",
92
- ];
93
- if (!hasCurrentWork && active.length === 0 && workHistory.length === 0) {
94
- lines.push("현재 하네스 기준으로 진행 중이거나 완료된 작업 기록이 없습니다.", "이 세션은 깨끗한 상태로 보입니다.");
95
- }
96
- else {
97
- if (hasCurrentWork) {
98
- lines.push("Current note:", this.summarizeCurrentTask(current), "");
99
- }
100
- else {
101
- lines.push("Current note: none", "");
102
- }
103
- if (active.length > 0) {
104
- lines.push("Active TODO:", this.formatTodoSummary(todo, false), "");
105
- }
106
- else {
107
- lines.push("Active TODO: none", "");
108
- }
109
- if (workHistory.length > 0) {
110
- lines.push("Recent work history:", ...workHistory.map((entry) => `- ${entry}`));
111
- }
112
- else {
113
- lines.push("Recent work history: none");
114
- }
115
- }
116
- if (history.length > 0) {
117
- lines.push("", "Recent raw history:", ...history.map((entry) => `- ${entry}`));
118
- }
119
- return lines.join("\n");
120
- }
121
74
  async clearSessionState(session, summary) {
122
75
  const dir = this.sessionDir(session);
123
76
  const currentPath = path.join(dir, "current.md");
@@ -627,21 +580,6 @@ export class AgentMemoryService {
627
580
  const match = /## Latest User Instruction\s*\n([\s\S]*?)(?:\n## |\s*$)/.exec(current);
628
581
  return match?.[1]?.trim() || undefined;
629
582
  }
630
- looksLikeLocalStatusQuestion(text) {
631
- const normalized = text.trim();
632
- if (!normalized) {
633
- return false;
634
- }
635
- return [
636
- /최근\s*(작업|진행|히스토리|기록)/,
637
- /현재\s*(작업|진행|상태|세션)/,
638
- /(뭐|무엇)\s*(하고|하는)\s*(있어|중|거야)?/,
639
- /작업\s*(상태|히스토리|기록|있어|없어)/,
640
- /세션\s*(상태|히스토리|기록)/,
641
- /진행\s*(상태|중인\s*작업)/,
642
- /\b(status|current work|recent work|what are you doing|session state)\b/i,
643
- ].some((pattern) => pattern.test(normalized));
644
- }
645
583
  formatTodoSummary(todo, includeDone = false, detailed = false) {
646
584
  const items = includeDone ? todo.items : todo.items.filter((item) => item.status !== "done");
647
585
  if (items.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appback-remoteagent",
3
- "version": "0.13.13",
3
+ "version": "0.13.15",
4
4
  "description": "Personal installable session server for continuing local AI work across PC and Telegram",
5
5
  "license": "MIT",
6
6
  "type": "module",