arisa 2.3.11 → 2.3.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arisa",
3
- "version": "2.3.11",
3
+ "version": "2.3.13",
4
4
  "description": "Arisa - dynamic agent runtime with daemon/core architecture that evolves through user interaction",
5
5
  "preferGlobal": true,
6
6
  "bin": {
@@ -134,7 +134,7 @@ async function runClaude(message: string, chatId: string): Promise<string> {
134
134
  const historyCount = historyContext ? historyContext.split("\nUser: ").length - 1 : 0;
135
135
  log.info(`Model: ${model.model} (${model.reason}) | History: ${historyCount} exchanges`);
136
136
 
137
- const args = ["--dangerously-skip-permissions"];
137
+ const args = ["--dangerously-skip-permissions", "--output-format", "text"];
138
138
 
139
139
  args.push("--model", model.model);
140
140
  args.push("-p", prompt);
@@ -115,7 +115,7 @@ export async function probeCliAuth(): Promise<void> {
115
115
  }
116
116
  try {
117
117
  const args = cli === "claude"
118
- ? ["-p", "say ok", "--model", "haiku", "--dangerously-skip-permissions"]
118
+ ? ["-p", "say ok", "--model", "haiku", "--output-format", "text", "--dangerously-skip-permissions"]
119
119
  : ["exec", "--dangerously-bypass-approvals-and-sandbox", "echo ok"];
120
120
 
121
121
  const cmd = buildBunWrappedAgentCliCommand(cli, args);
@@ -42,6 +42,12 @@ const { saveMessageRecord } = await import("../shared/db");
42
42
 
43
43
  const log = createLogger("daemon");
44
44
 
45
+ // Log version
46
+ try {
47
+ const _pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
48
+ log.info(`Arisa v${_pkg.version}`);
49
+ } catch {}
50
+
45
51
  // --- Claim process: kill previous daemon, write our PID ---
46
52
  claimProcess("daemon");
47
53
 
@@ -278,9 +278,10 @@ async function runInteractiveLogin(cli: AgentCliName, vars: Record<string, strin
278
278
  if (exitCode === 0) {
279
279
  // Step 1: Strip ANSI escape sequences FIRST (their params contain digits/letters)
280
280
  const clean = output
281
- .replace(/\x1b\[[0-9;?]*[A-Za-z]/g, "") // CSI: ESC [ params final
282
- .replace(/\x1b\][^\x07]*\x07/g, "") // OSC: ESC ] ... BEL
283
- .replace(/\x1b[^[\]]/g, "") // Other ESC sequences (ESC + one char)
281
+ .replace(/\x1b\[[0-9;?]*[A-Za-z]/g, "") // CSI: ESC [ params final (e.g. ESC[1C)
282
+ .replace(/\x1b\][^\x07]*\x07/g, "") // OSC: ESC ] ... BEL
283
+ .replace(/\x1b[()#][A-Za-z0-9]/g, "") // 3-byte: ESC ( B, ESC ) 0, ESC # 8
284
+ .replace(/\x1b./g, "") // Remaining 2-byte ESC sequences
284
285
  .replace(/[\x00-\x09\x0b-\x0c\x0e-\x1f]/g, ""); // Control chars (keep \n \r)
285
286
 
286
287
  // Step 2: Find boundaries in clean text