omnius 1.0.225 → 1.0.226

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/index.js CHANGED
@@ -637813,13 +637813,15 @@ var init_emotion_engine = __esm({
637813
637813
  const prompt = [
637814
637814
  "You are the agent's private reflection process deciding whether to contact the Telegram admin.",
637815
637815
  "",
637816
+ "CRITICAL ROLE BOUNDARY: You are NOT executing the task below and you must not try to. You have exactly two tools — telegram_admin_message and task_complete — and that is correct and complete for your role. You do not have, and do not need, file/shell/edit/code tools. Never report that you are 'blocked', that you 'lack tools', or ask for tool access — that is never your job and the main agent (which has the real tools) handles the work. The task is shown only as CONTEXT so you can judge whether the admin would want a message right now.",
637817
+ "",
637816
637818
  "If no message is useful, call task_complete with NO_MESSAGE.",
637817
637819
  "If a message is useful, call telegram_admin_message with the exact text to send, then call task_complete.",
637818
- "Send a message when the agent is blocked, needs a preference/secret/clarification, is about to make a risky choice, or has a high-value status update the admin should know now.",
637819
- "Do not send routine task-complete, success-streak, mood, or cheerleading updates.",
637820
- "If you message, write it naturally in first person, under 700 characters. Ask a direct question only when user input would change the next action.",
637820
+ "Send a message when the MAIN AGENT is genuinely blocked, needs a preference/secret/clarification from the admin, is about to make a risky choice, or has a high-value status update the admin should know now.",
637821
+ "Do not send routine task-complete, success-streak, mood, or cheerleading updates. Do not send messages about your own (the reflection process's) tools or capabilities.",
637822
+ "If you message, write it naturally in first person as the agent, under 700 characters. Ask a direct question only when admin input would change the next action.",
637821
637823
  "",
637822
- `Current task: ${this.currentTask || "(none recorded)"}`,
637824
+ `Task the MAIN AGENT is working on (context only — NOT for you to perform): ${this.currentTask || "(none recorded)"}`,
637823
637825
  `Last event: ${event.type}${event.toolName ? `:${event.toolName}` : ""}${event.success === false ? " failed" : event.success === true ? " succeeded" : ""}`,
637824
637826
  `Event content: ${String(event.content ?? "").slice(0, 500)}`,
637825
637827
  `Recent activity: ${this.describeRecentActivity() || "(none)"}`,
@@ -637838,8 +637840,20 @@ var init_emotion_engine = __esm({
637838
637840
  cleanReflectionMessage(raw) {
637839
637841
  const text = raw.replace(/^["'`]+|["'`]+$/g, "").trim();
637840
637842
  if (!text || /^NO_MESSAGE\.?$/i.test(text)) return "";
637843
+ if (this.isReflectionToolComplaint(text)) return "";
637841
637844
  return text.slice(0, 900);
637842
637845
  }
637846
+ /**
637847
+ * Detect reflection-process meta-complaints about its own (intentionally
637848
+ * minimal) tool surface. These are mode-collapse artifacts, not genuine
637849
+ * admin outreach, and must be suppressed.
637850
+ */
637851
+ isReflectionToolComplaint(text) {
637852
+ const t2 = text.toLowerCase();
637853
+ const mentionsTools = /\btask_complete\b/.test(t2) || /\btelegram_admin_message\b/.test(t2) || /\b(file_read|file_edit|file_write|shell|file_patch|batch_edit)\b/.test(t2) || /\btool ?set\b/.test(t2) || /\btools?\b/.test(t2);
637854
+ if (!mentionsTools) return false;
637855
+ return /\b(don'?t|do not|doesn'?t|did not|didn'?t|cannot|can'?t|unable to|no longer)\b[^.]*\b(have|access|use)\b/.test(t2) || /\b(provide|grant|give|need|require|request)\b[^.]*\b(access|tools?|tool ?set)\b/.test(t2) || /\bi (only )?have (only )?(access to )?(task_complete|telegram_admin_message)/.test(t2) || /\bblocked\b[^.]*\b(tools?|access)\b/.test(t2) || /\bonly (have|with) (reflection|admin|task_complete|telegram)/.test(t2);
637856
+ }
637843
637857
  /** Summarize recent tool activity into a brief phrase */
637844
637858
  describeRecentActivity() {
637845
637859
  if (this.recentTools.length === 0) return "";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.225",
3
+ "version": "1.0.226",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.225",
9
+ "version": "1.0.226",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.225",
3
+ "version": "1.0.226",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",