Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): target the real data/ task-file paths
[._.]/ Adam Eivy344c23713c7f
diff --git a/scripts/migrations/146-claude-ollama-providers.js b/scripts/migrations/146-claude-ollama-providers.jsindex 3b35343a75..9a56051f30 100644--- a/scripts/migrations/146-claude-ollama-providers.js+++ b/scripts/migrations/146-claude-ollama-providers.js@@ -115,13 +115,14 @@ function rewriteProviderPins(node) {return changed;}-// Task-level pins live in the markdown task queues (TASKS.md / COS-TASKS.md) as-// `metadata.provider` — read by resolveAgentProviderAndModel for a pending or-// in-progress task. Those aren't JSON, so rewrite the exact old-id token in-// place. `clawed-ollama` is a unique provider slug, so a boundary-guarded token-// replace (not preceded/followed by an id char) can't touch unrelated text, and-// it's format-agnostic (no markdown-metadata parser to keep in sync).-const PIN_TEXT_FILES = ['TASKS.md', 'COS-TASKS.md'];+// Task-level pins live in the markdown task queues as `metadata.provider` —+// read by resolveAgentProviderAndModel for a pending or in-progress task. The+// shipped CoS defaults put these under data/ (see userTasksFile/cosTasksFile in+// server/services/cosState.js), NOT the repo root. Those aren't JSON, so rewrite+// the exact old-id token in place. `clawed-ollama` is a unique provider slug, so+// a boundary-guarded token replace (not preceded/followed by an id char) can't+// touch unrelated text, and it's format-agnostic (no markdown parser to sync).+const PIN_TEXT_FILES = ['data/TASKS.md', 'data/COS-TASKS.md'];async function rewritePinTextFile(rootDir, relPath) {const filePath = join(rootDir, relPath);diff --git a/scripts/migrations/146-claude-ollama-providers.test.js b/scripts/migrations/146-claude-ollama-providers.test.jsindex 5244ef7c77..7c351b54c3 100644--- a/scripts/migrations/146-claude-ollama-providers.test.js+++ b/scripts/migrations/146-claude-ollama-providers.test.js@@ -194,8 +194,8 @@ describe('migration 146 — Claude Ollama providers', () => {it('repoints clawed-ollama task pins in TASKS.md / COS-TASKS.md markdown', async () => {writeJson(providersPath, { providers: { 'clawed-ollama': clawed() } });- const tasksPath = join(rootDir, 'TASKS.md');- const cosTasksPath = join(rootDir, 'COS-TASKS.md');+ const tasksPath = join(rootDir, 'data/TASKS.md');+ const cosTasksPath = join(rootDir, 'data/COS-TASKS.md');writeFileSync(tasksPath, '# Tasks\n\n- [ ] Do a thing\n provider: clawed-ollama\n model: qwen2.5:7b\n');writeFileSync(cosTasksPath, '# CoS Tasks\n\n- [ ] internal\n provider: clawed-ollama\n');@@ -208,7 +208,7 @@ describe('migration 146 — Claude Ollama providers', () => {it('does not touch claude-ollama-tui or unrelated tokens in markdown task files', async () => {writeJson(providersPath, { providers: { 'claude-code': { id: 'claude-code', type: 'cli', command: 'claude' } } });- const tasksPath = join(rootDir, 'TASKS.md');+ const tasksPath = join(rootDir, 'data/TASKS.md');// a task pinned to the TUI variant + prose must survive untouchedwriteFileSync(tasksPath, '- [ ] x\n provider: claude-ollama-tui\n context: see clawed-ollama-notes.md\n');const before = readFileSync(tasksPath, 'utf-8');