Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
test: pass on Windows and slow runners
Salman Qureshi20676daaebb1
diff --git a/.gitattributes b/.gitattributesindex 467629ff..88c9cc07 100644--- a/.gitattributes+++ b/.gitattributes@@ -2,3 +2,10 @@# Vendored, patched ink must stay byte-identical to tarball + patch on every# OS (scripts/vendor-ink.cjs --check); never convert line endings.vendor/** -text++# Signed files are checked byte for byte (UPDATES.md): Windows checkouts must+# not turn their line endings into CRLF.+website/static/updates/** -text+website/static/desktop/** -text+src/updates/fixtures/** -text+apps/desktop/src-tauri/src/commands/testdata/** -textdiff --git a/src/artifacts/output-dir.test.ts b/src/artifacts/output-dir.test.tsindex d8186f72..3f5749e0 100644--- a/src/artifacts/output-dir.test.ts+++ b/src/artifacts/output-dir.test.ts@@ -1,6 +1,6 @@import { existsSync, mkdirSync, mkdtempSync, readdirSync, rmSync, writeFileSync } from 'node:fs';import { homedir, tmpdir } from 'node:os';-import { join } from 'node:path';+import { join, resolve } from 'node:path';import { afterEach, describe, expect, it } from 'vitest';import { ChatFolders, folderLabel, freeName, outputRoot } from './output-dir.js';@@ -13,7 +13,7 @@ describe('the output folder', () => {it('is ~/mercury-artifacts unless set to an absolute or ~ path', () => {expect(outputRoot()).toBe(join(homedir(), 'mercury-artifacts'));expect(outputRoot('~/Work/Mercury')).toBe(join(homedir(), 'Work', 'Mercury'));- expect(outputRoot('/Volumes/data/out/')).toBe('/Volumes/data/out');+ expect(outputRoot('/Volumes/data/out/')).toBe(resolve('/Volumes/data/out'));expect(outputRoot('relative/dir')).toBe(join(homedir(), 'mercury-artifacts'));});diff --git a/src/bots/bots2.test.ts b/src/bots/bots2.test.tsindex 7aa1df1b..f0d4444f 100644--- a/src/bots/bots2.test.ts+++ b/src/bots/bots2.test.ts@@ -274,7 +274,8 @@ describe('resuming an interrupted run', () => {}) as never);manager.enqueue('scout', { trigger: 'api', prompt: 'any news on Oxide?' });- await vi.waitFor(() => expect(call).toBe(2), { timeout: 5000 });+ // The retry waits out its backoff first: slow CI runners need the room.+ await vi.waitFor(() => expect(call).toBe(2), { timeout: 15_000 });await idle(manager, 'scout');const retry = seen[1];@@ -285,7 +286,7 @@ describe('resuming an interrupted run', () => {// Settled: the checkpoint is gone.const [row] = manager.getJournal('scout', 1);expect(store.readCheckpoint('scout', row.runId)).toBeUndefined();- });+ }, 20_000);});describe('hand-off limits', () => {diff --git a/src/plugins/channel.test.ts b/src/plugins/channel.test.tsindex e1ccbd34..7d32813a 100644--- a/src/plugins/channel.test.ts+++ b/src/plugins/channel.test.ts@@ -259,7 +259,8 @@ describe('plugin channels (plugin API 1.1)', () => {};const sent = () => {const f = join(pluginDataDir('whatsapp'), 'out.jsonl');- return existsSync(f) ? readFileSync(f, 'utf8').trim().split('\n').map((l) => JSON.parse(l)) : [];+ // Only whole lines: the plugin may be halfway through writing one.+ return existsSync(f) ? readFileSync(f, 'utf8').split('\n').filter((l) => l.trim().endsWith('}')).map((l) => JSON.parse(l)) : [];};const callsim = (method: string, params: Record<string, unknown>) => inject({ method, params }, 'callsim');