[ { "path": "docs/TOOLS.md", "searches": [ { "needle": "docs/TOOLS.md", "hits": [] }, { "needle": "TOOLS.md", "hits": [ "packages/cli/tests/stack-release.test.mjs:436: ['drop-in-override',(e)=>{const d=join(e.units,`${BUS}.d`);mkdirSync(d);writeFileSync(join(d,'override.conf'),'[Service]\\nWorkingDirectory=/elsewhere\\n');return C1},(e)=>`${join(e.units,`${BUS}.d`,'override.conf')} overrides ExecStart or WorkingDirectory; the operator removes it as in TOOLS.md step 4`]," ] }, { "needle": "849b45196b4a5635f2fec59f5c14956caadde3b259fa335cc067f73c52490dc1", "hits": [] }, { "needle": "4756c0ccf43be061ce9d2361882ec2ab78a0d2b622cda5224669d6bfd9bdda3b", "hits": [] } ] }, { "path": "packages/cli/tests/stack-release.test.mjs", "searches": [ { "needle": "packages/cli/tests/stack-release.test.mjs", "hits": [] }, { "needle": "stack-release.test.mjs", "hits": [] }, { "needle": "f542948f725c6b8699cee825979c8f68766bcb45d50c73d69e3766912f7d4c12", "hits": [] }, { "needle": "5ea483c114901de585a500e9cd87a02f5c06a63bb62f106290578784db6ca7d0", "hits": [] } ] }, { "path": "packages/webui/README.md", "searches": [ { "needle": "packages/webui/README.md", "hits": [] }, { "needle": "README.md", "hits": [ "packages/queue/tests/fixtures/mosaic-pre-a2.sh:3:# with registration for the control board. See packages/seat/README.md.", "packages/bus/tests/tester-writes.test.mjs:144: for (const [verb, args] of [['project.file.save', { project: 'stack', path: 'README.md', content: 'x', head: 'a'.repeat(40) }]])", "packages/queue/tests/fixtures/queue-marked.md:6:refuse a table that isn't the render. `packages/queue/README.md` has the verbs.", "packages/queue/tests/fixtures/queue-marked.md:50:| 7 | Weekly ledger run and rails number | sage (lead decision 27); Jason reads | \u2014 | recurring, every Monday; 09-13..19: 47.7, 09-20..26: 33.0 human messages per closed issue | under 10 human messages per closed issue for the week of 2026-09-13 | `packages/ledger/README.md` |", "packages/bus/tests/project-files.test.mjs:17: assert.deepEqual(listed.files.map(x => x.path), ['docs/README.md', 'spec/north-star.md']);", "packages/bus/tests/project-files.test.mjs:68: await reject(f.call(f.human, 'project.files', { project: 'stack', path: 'docs/README.md' }), 'invalid-request');", "packages/bus/tests/project-files.test.mjs:97: const big = 'x'.repeat(1024 * 1024), args = { project: 'stack', path: 'docs/README.md', base: (await f.human.call('project.file', { project: 'stack', path: 'docs/README.md' })).commit };", "packages/bus/tests/project-files.test.mjs:101: await reject(f.human.call('project.file', { project: 'stack', path: 'docs/README.md', pad: 'x'.repeat(70000) }), 'request-too-large');", "packages/bus/tests/project-files.test.mjs:103: assert.equal(git(f.repo, 'show', `${saved.commit}:docs/README.md`).length, big.length);", "packages/bus/tests/project-files.test.mjs:104: const open = await f.human.call('project.file', { project: 'stack', path: 'docs/README.md' });", "packages/bus/tests/project-files.test.mjs:121: const base = (await f.human.call('project.file', { project: 'stack', path: 'docs/README.md' })).commit;", "packages/bus/tests/project-files.test.mjs:124: new Client({ path: f.path, human: { fixture: true } }).call('project.file.save', { project: 'stack', path: 'docs/README.md', base, content: `# ${name}\\n` })));", "packages/project/tests/human-file.test.mjs:36: assert.deepEqual(listed.files, [{ path: 'docs/README.md' }, { path: 'docs/b-notes.md' }, { path: 'spec/north-star.md' }]);", "packages/project/tests/human-file.test.mjs:58: const doc = await save('docs/README.md', '# Docs, edited\\n');", "packages/project/tests/human-file.test.mjs:59: assert.equal(git(repo, 'show', '-s', '--format=%an|%s', doc.commit), 'jason|Edit docs/README.md');", "packages/project/tests/human-file.test.mjs:72: const docBase = await opened('docs/README.md');", "packages/project/tests/human-file.test.mjs:74: assert.equal((await save('docs/README.md', '# Still mine\\n', docBase)).path, 'docs/README.md');", "packages/project/tests/human-file.test.mjs:112: writeFileSync(join(repo, 'docs/README.md'), '# Pending human edit\\n');", "packages/project/tests/human-file.test.mjs:114: git(repo, 'checkout', '--', 'docs/README.md');", "scripts/test-discord.sh:255:b.name='offline-fixture';b.tokenFile=p.join(root,'offline-token');b.context.files=['packages/discord/README.md'];delete b.tools;", "scripts/test-conductor.sh:69: printf '{\"policyVersion\":1,\"autoApply\":{\"enabled\":%s,\"allowedPaths\":[\"scripts/**\",\"docs/**\",\"README.md\"],\"suites\":%s}}' \"$1\" \"$suites\" \\", "scripts/test-conductor.sh:77:ws_edit \"README.md\" \"worker dry-run line\"", "scripts/test-conductor.sh:88:ws_edit \"README.md\" \"worker applied line\"", "scripts/test-conductor.sh:110:ws_edit \"README.md\" \"worker change that will fail suites\"", "scripts/test-conductor.sh:117:ws_edit \"README.md\" \"worker line while disabled\"", "scripts/test-conductor.sh:128:ws_edit \"README.md\" \"worker line from failed run\"", "packages/seat/tests/landing.test.mjs:59: const top = [\"docs\", \"packages\", \"scripts\", \"src\", \"v1\", \"README.md\"];", "packages/seat/tests/landing.test.mjs:60: assert.deepEqual(rootHits([\"packages/a/x.mjs\", \"docs/y.md\", \"NEW.md\", \"newdir/z\", \"src/a\", \"v1/b\", \"README.md\"], top), [\"NEW.md\", \"newdir/z\", \"src/a\", \"v1/b\", \"README.md\"]);", "packages/webui/tests/bus-browser.test.mjs:77: const readme = readFileSync(new URL('../README.md', import.meta.url), 'utf8');", "packages/webui/tests/conversation.test.mjs:23: log.add(assistant([{ type: 'thinking', thinking: 'SECRET_THOUGHT' }, { type: 'text', text: 'Reading it.' }, { type: 'toolCall', id: 'call_1|fc_2', name: 'read', arguments: { path: 'README.md' } }], 'toolUse'), at(-290));", "packages/webui/tests/conversation.test.mjs:50: assert.equal(await b.evaluate('document.querySelector(\".conv-tool-call pre\").textContent'), '{\"path\":\"README.md\"}');", "packages/discord/tests/tools.test.mjs:27: writeFileSync(join(root, \"README.md\"), \"# Docs\\n\\nhello world\\nsecond line\\n\");", "packages/discord/tests/tools.test.mjs:37: symlinkSync(join(root, \"README.md\"), join(root, \"link-in.md\"));", "packages/discord/tests/tools.test.mjs:53: assert.throws(() => loadToolsConfig({ roots: [{ name: \"docs\", path: join(root, \"README.md\") }] }), /not a directory/);", "packages/discord/tests/tools.test.mjs:68: [readFile, { root: \"nope\", path: \"README.md\" }, REFUSAL.UNKNOWN_ROOT],", "packages/discord/tests/tools.test.mjs:81: [listDir, { root: \"docs\", path: \"README.md\" }, REFUSAL.NOT_DIR],", "packages/discord/tests/tools.test.mjs:85: [readFile, { root: \"docs\", path: \"README.md\", limit: 401 }, /limit must be an integer/],", "packages/discord/tests/tools.test.mjs:105: assert.deepEqual(ls.entries.map((e) => e.name), [\"README.md\", \"big.md\", \"blob.bin\", \"leak.md\", \"plans\"]);", "packages/discord/tests/tools.test.mjs:107: const rd = readFile(c, { root: \"docs\", path: \"README.md\", offset: 3, limit: 1 });", "packages/discord/tests/tools.test.mjs:108: assert.deepEqual(rd, { root: \"docs\", path: \"README.md\", bytes: 32, totalLines: 4, offset: 3, lines: [\"hello world\"] });", "packages/discord/tests/tools.test.mjs:113: { path: \"README.md\", line: 3, text: \"hello world\" },", "packages/discord/tests/tools.test.mjs:131: const b = set.call(\"read_file\", { root: \"docs\", path: \"README.md\", limit: 2 });", "packages/discord/tests/tools.test.mjs:132: assert.equal(b.text, \"docs/README.md lines 1-2 of 4\\n1: # Docs\\n2: \");", "packages/discord/tests/tools.test.mjs:133: assert.deepEqual({ ...b.details, ms: 0 }, { tool: \"read_file\", root: \"docs\", path: \"README.md\", ok: true, bytes: 32, ms: 0 });", "packages/discord/tests/tools.test.mjs:137: const over = set.call(\"read_file\", { root: \"docs\", path: \"README.md\" });", "packages/discord/tests/tools.test.mjs:142: assert.equal(set.call(\"read_file\", { root: \"docs\", path: \"README.md\" }).ok, true);", "packages/discord/tests/tools.test.mjs:189: const readme = join(root, \"README.md\");", "packages/discord/tests/tools.test.mjs:287: [editFile, { root: \"docs\", path: \"README.md\", old: \"hello\", new: \"bye\" }, REFUSAL.READ_ONLY],", "packages/webui/tests/pinned-copy.test.mjs:77: assert.ok(existsSync(join(target, 'packages', 'webui', 'README.md')), \"the unit's Documentation=\");", "packages/webui/tests/pinned-copy.test.mjs:78: assert.equal(statSync(join(target, 'packages', 'webui', 'README.md')).mode & 0o222, 0, 'README.md is read-only');", "packages/webui/tests/pinned-copy.test.mjs:220: assert.ok(existsSync(join(r.target, 'packages', 'webui', 'README.md')), 'the copy is the target itself');", "scripts/test-extension-package.sh:31:printf '\\nlocal edit\\n' >> \"$SANDBOX/repo/.pi/extensions/goal/README.md\"", "scripts/test-extension-package.sh:34:cp \"$SANDBOX/repo/extensions/goal/README.md\" \"$SANDBOX/repo/.pi/extensions/goal/README.md\"", "scripts/test-extension-package.sh:44:printf '\\ncanonical edit\\n' >> \"$SANDBOX/repo/extensions/goal/README.md\"", "scripts/test-extension-package.sh:47:printf '\\ninterrupted edit\\n' >> \"$SANDBOX/repo/extensions/goal/README.md\"", "scripts/test-extension-package.sh:50:if ! grep -q 'interrupted edit' \"$SANDBOX/repo/.pi/extensions/goal/README.md\"; then", "scripts/test-extension-package.sh:61:ln -s README.md \"$SANDBOX/repo/extensions/goal/forbidden-link\"", "packages/webui/tests/project-file.test.mjs:17: projectFiles: async args => { calls.files.push(args); return { head: C1, files: [{ path: 'docs/README.md' }, { path: 'spec/north-star.md' }] }; },", "packages/webui/tests/project-file.test.mjs:111: assert.equal(list.status, 200, list.text); assert.deepEqual(list.body.files.map(f => f.path), ['docs/README.md', 'spec/north-star.md']);", "packages/project/tests/read.test.mjs:77: symlinkSync('../docs/README.md', join(repo, 'spec/north-star.md'));", "packages/project/tests/read.test.mjs:85: await assert.rejects(api.readSpec({ ...context, path: 'docs/README.md' }), { code: 'project-read-path' });", "packages/discord/tests/git.test.mjs:99: writeFileSync(join(clone, \"README.md\"), \"# Signals\\n\");", "packages/discord/tests/git.test.mjs:176: writeFileSync(join(clone, \"README.md\"), \"# Signals\\nmore\\n\");", "packages/discord/tests/git.test.mjs:179: assert.deepEqual(s2.changed.map((c) => c.path), [\"README.md\"]);", "packages/discord/tests/git.test.mjs:226: const ok = { message: \"m\", rels: [\"README.md\"], requester: \"Jason\" };", "packages/discord/tests/git.test.mjs:235: writeFileSync(join(clone, \"README.md\"), \"# Signals\\nmore\\n\");", "packages/discord/tests/git.test.mjs:242: const r1 = tools.call(\"git_commit\", { root: \"ss\", message: \"m\", paths: [\"README.md\"] });", "packages/discord/tests/git.test.mjs:251: const r2 = tools.call(\"git_commit\", { root: \"ss\", message: \"Explain the signals\", paths: [\"README.md\", \"README.md\"] });", "packages/discord/tests/git.test.mjs:253: assert.match(r2.text, /committed [0-9a-f]+ on main for Jason: README.md; pushed to origin/);", "packages/discord/tests/git.test.mjs:256: assert.deepEqual(r2.details.paths, [\"README.md\"]);", "packages/discord/tests/git.test.mjs:258: const r3 = tools.call(\"git_commit\", { root: \"stack-docs\", message: \"m\", paths: [\"README.md\"] });", "packages/cli/tests/host.test.mjs:826: assert.ok(readFileSync(join(REPO, \"packages\", \"cli\", \"README.md\"), \"utf8\").includes(`\\`${files[0]}\\``), \"the README names the unit's file\");", "scripts/test-land-work.sh:46: printf 'tampered\\n' >> \"\\$2/README.md\" && \"$REAL_GIT\" -C \"\\$2\" add README.md", "scripts/test-land-work.sh:56:printf 'line1\\nline2\\nline3\\n' > \"$T/README.md\"", "scripts/test-land-work.sh:89:printf 'line1\\nline2 changed\\nline3\\n' > \"$CO/README.md\"", "scripts/test-land-work.sh:301:echo local >> \"$SANDBOX/c/dirty-changed/target/README.md\"", "scripts/test-land-work.sh:304:echo local >> \"$SANDBOX/c/dirty-staged/target/README.md\"", "scripts/test-land-work.sh:305:git -C \"$SANDBOX/c/dirty-staged/target\" add README.md", "scripts/test-land-work.sh:306:printf 'line1\\nline2\\nline3\\n' > \"$SANDBOX/c/dirty-staged/target/README.md\"", "scripts/test-land-work.sh:313:printf 'line1\\nline2 on the base\\nline3\\n' > \"$SANDBOX/c/conflict/target/README.md\"", "scripts/test-land-work.sh:321:LW_DIRTY=\"$SANDBOX/c/dirty-during/target/README.md\" expect dirty-during 2 checkout-dirty \"$D\"", "packages/bus/tests/spec-review.test.mjs:61: const docs = await f.call(f.human, 'project.file', { project: 'stack', path: 'docs/README.md' });", "packages/bus/tests/spec-review.test.mjs:62: await f.call(f.human, 'project.file.save', { project: 'stack', path: 'docs/README.md', base: docs.commit, content: '# Docs\\n' });", "packages/queue/tests/fixtures/genesis-render.md:12:| 7 | Weekly ledger run and rails number | sage | \u2014 | in-progress | \u2014 | under 10 human messages per closed issue for the week of 2026-09-13 (jason) | `packages/ledger/README.md` \u00a7 Ledger | recurring, every Monday (lead decision 27); Jason reads; 09-13..19: 47.7, 09-20..26: 33.0 human messages per closed issue |" ] }, { "needle": "78c7b60d23cf20863a1cb66e16af2f9363d08acc79c5b4a344cd8af4fbe5bd44", "hits": [] }, { "needle": "daaed0f6f5386368ebe8c3a978fedef61a20d48df69ae0d93f4cde4b38043957", "hits": [] } ] }, { "path": "packages/webui/src/cli.mjs", "searches": [ { "needle": "packages/webui/src/cli.mjs", "hits": [ "packages/webui/tests/service.test.mjs:216: assert.equal(execStart(r.stdout), `ExecStart=${process.execPath} ${REPO}/packages/webui/src/cli.mjs serve --port 7332`);", "packages/webui/tests/service.test.mjs:227: assert.equal(execStart(r.stdout), `ExecStart=${process.execPath} ${REPO}/packages/webui/src/cli.mjs serve --port 7340 --business mosaic.dev_1 --board http://127.0.0.1:7331 --public-host console.example.com --auth-header X-authentik-uid --allow-user ${UID}`);", "packages/webui/tests/service.test.mjs:736: const unit = (wd) => writeFileSync(target, `[Service]\\nWorkingDirectory=${wd}\\nExecStart=/usr/bin/node ${wd}/packages/webui/src/cli.mjs serve --port ${port}\\n`);", "packages/cli/tests/stack-copy.test.mjs:57: const copy=join(s.copies,s.id);s.fake(`case \"$*\" in *mosaic-bus*) echo 'LoadState=loaded'; echo 'WorkingDirectory=${copy}'; echo 'ExecStart={ path=${copy}/scripts/mosaic ; argv[]=${copy}/scripts/mosaic bus start mosaic-stack --pm ; }';; *) echo 'LoadState=loaded'; echo 'WorkingDirectory=${copy}'; echo 'ExecStart={ path=/usr/bin/node ; argv[]=/usr/bin/node ${copy}/packages/webui/src/cli.mjs serve ; }';; esac\\n`);", "packages/cli/tests/stack-copy.test.mjs:59: s.fake(`echo 'LoadState=loaded'; echo 'WorkingDirectory=${copy}';case \\\"$*\\\" in *mosaic-bus*)echo 'ExecStart={ path=/other/scripts/mosaic ; argv[]=/other/scripts/mosaic bus start demo ; }';; *)echo 'ExecStart={ path=/usr/bin/node ; argv[]=/usr/bin/node ${copy}/packages/webui/src/cli.mjs serve ; }';;esac\\n`);", "packages/cli/tests/stack-copy.test.mjs:64: s.fake(`echo 'LoadState=loaded';echo 'WorkingDirectory=${copy}';case \"$*\" in *mosaic-bus*) echo 'ExecStart={ path=${copy}/scripts/mosaic ; argv[]=${copy}/scripts/mosaic bus start demo ; }';; *)echo 'ExecStart={ path=/usr/bin/node ; argv[]=/usr/bin/node ${copy}/packages/webui/src/cli.mjs serve ; }';;esac\\n`);", "packages/cli/tests/stack-copy.test.mjs:113: const web=spawn(process.execPath,[join(root,'packages/webui/src/cli.mjs'),'serve','--port','0','--business','acme','--board','http://127.0.0.1:9'],{env,stdio:['ignore','pipe','pipe']});let webOut='',webErr='';", "packages/cli/tests/stack-release.test.mjs:259: for(const [f,text,mode] of [['scripts/mosaic',script(mosaicStub),0o755],['packages/webui/src/cli.mjs',[B,C1,C].includes(id)?\"// fixture Console, never run\\n// serve accepts '--tester-port'\\n\":'// fixture Console before tester listener, never run\\n',0o644],['packages/bus/src/store.mjs',store,0o644],['packages/bus/src/migrate-schema.mjs',`(${migrateStub})();\\n`,0o644],['packages/plugins/src/kinds.mjs',[C1,C].includes(id)?KINDS_NEW:KINDS_OLD,0o644]]){", "packages/cli/tests/stack-release.test.mjs:405: assert.ok(exec.endsWith(` ${COPIES}/${C1}/packages/webui/src/cli.mjs serve --checkout ${repo} --port ${e.port} --business acme`),exec);", "packages/cli/tests/stack-release.test.mjs:1073: assert.match(readFileSync(join(repo,'packages/webui/src/cli.mjs'),'utf8'),/--tester-port/);" ] }, { "needle": "cli.mjs", "hits": [ "packages/webui/tests/proof-cli.test.mjs:11:const CLI = new URL('../src/cli.mjs', import.meta.url).pathname;", "packages/webui/tests/chat.test.mjs:288: const cli = fileURLToPath(new URL('../src/cli.mjs', import.meta.url));", "packages/queue/tests/dispatch.test.mjs:35: writeFileSync(join(r, `packages/${pkg}/src/cli.mjs`), FAKE);", "packages/queue/tests/dispatch.test.mjs:71: assert.equal(JSON.parse(a.capture).cli, \"/packages/seat/src/cli.mjs\");", "packages/queue/tests/dispatch.test.mjs:81: assert.deepEqual([c.cli, c.argv, c.cwd, c.stdin], [\"/packages/cli/src/cli.mjs\", [], \"/work\", \"stdin line\\nsecond\\n\"]);", "packages/queue/tests/dispatch.test.mjs:85: assert.equal(JSON.parse(before.capture).cli, \"/packages/seat/src/cli.mjs\");", "packages/queue/tests/dispatch.test.mjs:95: assert.deepEqual([c.cli, c.argv, c.cwd, c.stdin], [\"/packages/queue/src/cli.mjs\", rest, \"/work\", \"stdin line\\nsecond\\n\"]);", "packages/queue/tests/dispatch.test.mjs:99: assert.deepEqual([ok.status, ok.out, JSON.parse(ok.capture).cli], [0, \"fake out\\n\", \"/packages/queue/src/cli.mjs\"]);", "packages/queue/tests/fixtures/mosaic-pre-a2.sh:8:exec node \"$REPO/packages/seat/src/cli.mjs\" \"$@\"", "packages/cli/tests/tester-reads.test.mjs:11:import { main } from \"../src/cli.mjs\";", "packages/cli/tests/tester-reads.test.mjs:127:// W7 through the real tester transport: the CLI runs as its own process, so the tester-cli.mjs it", "packages/seat/tests/sandbox.test.mjs:35:const TESTER_CLI = new URL(\"../../bus/src/tester-cli.mjs\", import.meta.url).pathname;", "packages/seat/tests/sandbox.test.mjs:232:// tester proof as the bus runtime does, and binds tester-cli.mjs in.", "packages/seat/tests/sandbox.test.mjs:357:// Row 110 (#1604): a role session that runs tester-cli.mjs against its own", "packages/seat/tests/sandbox.test.mjs:362:test(\"a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds\", { skip, timeout: 60000 }, async (t) => {", "packages/queue/tests/helpers.mjs:123: const cli = await import(pathToFileURL(join(src, \"cli.mjs\")).href);", "packages/queue/tests/helpers.mjs:135: const r = spawnSync(process.execPath, [join(repo.root, \"packages/queue/src/cli.mjs\"), ...args], { cwd, env: e, encoding: \"utf8\" });", "packages/control-board/tests/relaunch.test.mjs:52: const run = spawnSync(process.execPath, [new URL('../src/cli.mjs', import.meta.url).pathname, 'scan', '--config', config, '--repo', f.root, '--fleet', 'none', '--liveness', 'assume-alive', '--print'], { encoding: 'utf8', timeout: 10000 });", "packages/control-board/tests/serve.test.mjs:27:const cli = join(pkgRoot, \"src\", \"cli.mjs\");", "packages/cli/tests/boot-status.test.mjs:15:const CLI = fileURLToPath(new URL(\"../src/cli.mjs\", import.meta.url));", "packages/seat/tests/seat.test.mjs:39:const cli = join(pkgRoot, \"src\", \"cli.mjs\");", "packages/cli/tests/transport.test.mjs:9:// human-cli.mjs is never run here: its proof needs a human shell.", "packages/queue/tests/commit.test.mjs:468: assert.ok(first === \"--test\" || first === \"packages/queue/src/cli.mjs\", first);", "packages/queue/tests/commit.test.mjs:495: const cliPath = join(r.root, \"packages/queue/src/cli.mjs\");", "packages/cli/tests/verbs.test.mjs:8:import { main } from \"../src/cli.mjs\";", "packages/cli/tests/cli.test.mjs:4:import { main, readNotifyConfig } from \"../src/cli.mjs\";", "packages/cli/tests/names.test.mjs:6:import { main, USAGE } from \"../src/cli.mjs\";", "packages/webui/tests/instances.test.mjs:19:const BUSINESS_CLI = fileURLToPath(new URL('../../business/src/cli.mjs', import.meta.url));", "packages/webui/tests/service.test.mjs:30: writeFileSync(join(copyRoot(dir), 'packages', 'webui', 'src', 'cli.mjs'), '');", "packages/webui/tests/service.test.mjs:216: assert.equal(execStart(r.stdout), `ExecStart=${process.execPath} ${REPO}/packages/webui/src/cli.mjs serve --port 7332`);", "packages/webui/tests/service.test.mjs:227: assert.equal(execStart(r.stdout), `ExecStart=${process.execPath} ${REPO}/packages/webui/src/cli.mjs serve --port 7340 --business mosaic.dev_1 --board http://127.0.0.1:7331 --public-host console.example.com --auth-header X-authentik-uid --allow-user ${UID}`);", "packages/webui/tests/service.test.mjs:587: writeFileSync(join(other, COPY_ID, 'packages', 'webui', 'src', 'cli.mjs'), '');", "packages/webui/tests/service.test.mjs:595:// The bus accepts only its own human-cli.mjs (packages/bus/src/human.mjs),", "packages/webui/tests/service.test.mjs:614: refused(await install(s.bin), `mosaic-bus@acme.service runs from ${REPO}/scripts/mosaic, not the copy ${copy}; the bus accepts only its own human-cli.mjs, so every Console bus call would fail human-required until the bus runs from the same copy`);", "packages/webui/tests/service.test.mjs:619: refused(await install(s.bin, ['--business', 'acme']), `mosaic-bus@acme.service runs from ${REPO}/scripts/mosaic, not the copy ${copy}; the bus accepts only its own human-cli.mjs, so every Console bus call would fail human-required until the bus runs from the same copy`);", "packages/webui/tests/service.test.mjs:623: refused(await install(s.bin), `mosaic-bus@acme.service runs from ${copy}-old/scripts/mosaic, not the copy ${copy}; the bus accepts only its own human-cli.mjs, so every Console bus call would fail human-required until the bus runs from the same copy`);", "packages/webui/tests/service.test.mjs:634: refused(await install(s.bin), `mosaic-bus@other.service runs from ${REPO}/scripts/mosaic, not the copy ${copy}; the bus accepts only its own human-cli.mjs, so every Console bus call would fail human-required until the bus runs from the same copy`);", "packages/webui/tests/service.test.mjs:736: const unit = (wd) => writeFileSync(target, `[Service]\\nWorkingDirectory=${wd}\\nExecStart=/usr/bin/node ${wd}/packages/webui/src/cli.mjs serve --port ${port}\\n`);", "packages/cli/tests/channel-fixture.mjs:66: const cli = fileURLToPath(new URL(\"../src/cli.mjs\", import.meta.url));", "packages/cli/tests/channel-fixture.mjs:67: const shim = fileURLToPath(new URL(\"../../bus/src/human-cli.mjs\", import.meta.url));", "packages/cli/tests/instances.test.mjs:13:import { main, run } from \"../src/cli.mjs\";", "packages/cli/tests/instances.test.mjs:17:const BUSINESS_CLI = fileURLToPath(new URL(\"../../business/src/cli.mjs\", import.meta.url));", "scripts/test-discord.sh:217:printf '// fixture\\n' > \"$COPY/packages/discord/src/cli.mjs\"", "scripts/test-discord.sh:222: && grep -qxF \"ExecStart=$(command -v node) $COPY/packages/discord/src/cli.mjs run %i --supervised --repo $COPY\" \"$SANDBOX/unit.copy\" \\", "scripts/test-discord.sh:230: case \"$kind\" in short) id=short;; missing) id=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;; cli) rm \"$COPY/packages/discord/src/cli.mjs\";; pi) printf '// fixture\\n' > \"$COPY/packages/discord/src/cli.mjs\";rm \"$COPY/node_modules/.bin/pi\";; esac", "packages/discord/tests/binding.test.mjs:11:const cli = join(import.meta.dirname, \"..\", \"src\", \"cli.mjs\");", "packages/cli/tests/limits-tokens.test.mjs:5:import {main} from '../src/cli.mjs';", "packages/webui/tests/pinned-copy.test.mjs:105: assert.ok(existsSync(join(dir, '.local', 'share', 'mosaic-stack', 'copies', head, 'packages', 'webui', 'src', 'cli.mjs')));", "packages/webui/tests/pinned-copy.test.mjs:242: const cli = join(copies, head, 'packages', 'webui', 'src', 'cli.mjs');", "packages/webui/tests/pinned-copy.test.mjs:282: const child = spawn(process.execPath, [join(REPO, 'packages', 'webui', 'src', 'cli.mjs'), 'serve', '--port', '0', '--checkout', value], { cwd: dir, timeout: 10000, stdio: ['ignore', 'pipe', 'pipe'] });", "packages/webui/tests/serve.test.mjs:108: const result = spawnSync(process.execPath, [fileURLToPath(new URL('../src/cli.mjs', import.meta.url)), ...args], { encoding: 'utf8' });", "packages/cli/tests/helpers.mjs:119:// A script standing in for packages/bus/src/human-cli.mjs: it reads one", "packages/cli/tests/helpers.mjs:122: const file = join(root, \"fake-human-cli.mjs\");", "packages/cli/tests/follow.test.mjs:3:import {main} from '../src/cli.mjs';", "packages/cli/tests/stack-copy.test.mjs:37: for(const f of ['scripts/mosaic','adapters/pi/adapter.sh','packages/queue/src/cli.mjs','package.json','package-lock.json','packages/tasks/requirements.json','packages/project/src/index.mjs','packages/project/schemas/project.schema.json','packages/project/templates/north-star.md','packages/plugins/src/kinds.mjs','packages/plugins/src/loader.mjs'])assert.ok(existsSync(join(copy,f)),f);", "packages/cli/tests/stack-copy.test.mjs:57: const copy=join(s.copies,s.id);s.fake(`case \"$*\" in *mosaic-bus*) echo 'LoadState=loaded'; echo 'WorkingDirectory=${copy}'; echo 'ExecStart={ path=${copy}/scripts/mosaic ; argv[]=${copy}/scripts/mosaic bus start mosaic-stack --pm ; }';; *) echo 'LoadState=loaded'; echo 'WorkingDirectory=${copy}'; echo 'ExecStart={ path=/usr/bin/node ; argv[]=/usr/bin/node ${copy}/packages/webui/src/cli.mjs serve ; }';; esac\\n`);", "packages/cli/tests/stack-copy.test.mjs:59: s.fake(`echo 'LoadState=loaded'; echo 'WorkingDirectory=${copy}';case \\\"$*\\\" in *mosaic-bus*)echo 'ExecStart={ path=/other/scripts/mosaic ; argv[]=/other/scripts/mosaic bus start demo ; }';; *)echo 'ExecStart={ path=/usr/bin/node ; argv[]=/usr/bin/node ${copy}/packages/webui/src/cli.mjs serve ; }';;esac\\n`);", "packages/cli/tests/stack-copy.test.mjs:64: s.fake(`echo 'LoadState=loaded';echo 'WorkingDirectory=${copy}';case \"$*\" in *mosaic-bus*) echo 'ExecStart={ path=${copy}/scripts/mosaic ; argv[]=${copy}/scripts/mosaic bus start demo ; }';; *)echo 'ExecStart={ path=/usr/bin/node ; argv[]=/usr/bin/node ${copy}/packages/webui/src/cli.mjs serve ; }';;esac\\n`);", "packages/cli/tests/stack-copy.test.mjs:113: const web=spawn(process.execPath,[join(root,'packages/webui/src/cli.mjs'),'serve','--port','0','--business','acme','--board','http://127.0.0.1:9'],{env,stdio:['ignore','pipe','pipe']});let webOut='',webErr='';", "packages/cli/tests/stack-copy.test.mjs:143: const result=await childResult(process.execPath,[join(other,'packages/bus/src/human-cli.mjs'),socket],env,JSON.stringify({business:'demo',verb:'inbox'})+'\\n');", "packages/webui/tests/send.test.mjs:20:const CLI = fileURLToPath(new URL('../src/cli.mjs', import.meta.url));", "packages/webui/tests/send.test.mjs:251:// The same protocol as the real transport: a script standing in for human-cli.mjs.", "packages/webui/tests/send.test.mjs:262: const cli = join(root, 'fake-human-cli.mjs'), log = join(root, 'requests.jsonl');", "packages/bus/tests/channel-proof.test.mjs:12: \"packages/bus/src/human-cli.mjs\": \"269c3a66008c0d57a54b14b73cf988d5f61f5e815455486296716e98ce5e8073\",", "packages/bus/tests/channel-proof.test.mjs:44: const differentPath = join(s.root, \"other-human-cli.mjs\");", "packages/webui/tests/views.test.mjs:256: const child = spawn(process.execPath, [join(SRC, 'cli.mjs'), 'serve', '--port', '0'], { env: { ...process.env, MOSAIC_CONFIG: join(base, 'cfg', 'config.json') } });", "packages/webui/tests/preview.test.mjs:17:const CLI = fileURLToPath(new URL('../src/cli.mjs', import.meta.url));", "packages/discord/tests/offline-check.test.mjs:8:const CLI=fileURLToPath(new URL('../src/cli.mjs',import.meta.url));", "packages/discord/tests/recover.test.mjs:17:const cli = fileURLToPath(new URL(\"../src/cli.mjs\", import.meta.url));", "packages/cli/tests/mark-read.test.mjs:5:import {main} from '../src/cli.mjs';", "packages/business/tests/cli.test.mjs:9:const CLI = join(REPO, \"packages\", \"business\", \"src\", \"cli.mjs\");", "packages/cli/tests/stack-release.test.mjs:259: for(const [f,text,mode] of [['scripts/mosaic',script(mosaicStub),0o755],['packages/webui/src/cli.mjs',[B,C1,C].includes(id)?\"// fixture Console, never run\\n// serve accepts '--tester-port'\\n\":'// fixture Console before tester listener, never run\\n',0o644],['packages/bus/src/store.mjs',store,0o644],['packages/bus/src/migrate-schema.mjs',`(${migrateStub})();\\n`,0o644],['packages/plugins/src/kinds.mjs',[C1,C].includes(id)?KINDS_NEW:KINDS_OLD,0o644]]){", "packages/cli/tests/stack-release.test.mjs:405: assert.ok(exec.endsWith(` ${COPIES}/${C1}/packages/webui/src/cli.mjs serve --checkout ${repo} --port ${e.port} --business acme`),exec);", "packages/cli/tests/stack-release.test.mjs:1073: assert.match(readFileSync(join(repo,'packages/webui/src/cli.mjs'),'utf8'),/--tester-port/);", "packages/cli/tests/other-tree.test.mjs:3:import { OTHER_TREE, run } from \"../src/cli.mjs\";", "packages/cli/tests/other-tree.test.mjs:10:// The spawn stands in for human-cli.mjs and tester-cli.mjs: it exits 1 with", "packages/cli/tests/app.test.mjs:9:import { main, resolveDecision, SEAT_USAGE, USAGE } from \"../src/cli.mjs\";", "packages/cli/tests/app.test.mjs:840: const seat = spawnSync(process.execPath, [join(REPO, \"packages\", \"seat\", \"src\", \"cli.mjs\")], { env, encoding: \"utf8\", stdio: [\"ignore\", \"pipe\", \"pipe\"] });", "packages/cli/tests/app.test.mjs:847: const cli = src(\"cli.mjs\");", "packages/discord/tests/copy-service.test.mjs:10:function setup(){const root=makeRoot(),copies=join(root,'copies'),id='a'.repeat(40),copy=join(copies,id),units=join(root,'units');mkdirSync(join(copy,'packages/discord/src'),{recursive:true});mkdirSync(join(copy,'node_modules/.bin'),{recursive:true});writeFileSync(join(copy,'packages/discord/src/cli.mjs'),'// fixture');writeFileSync(join(copy,'node_modules/.bin/pi'),'#!/bin/sh\\nexit 0\\n',{mode:0o755});const env={PATH:process.env.PATH,HOME:root,XDG_CONFIG_HOME:join(root,'config')};const run=args=>spawnSync(SCRIPT,args,{env,encoding:'utf8',timeout:5000});return {root,copies,id,copy,units,run,env};}", "packages/discord/tests/copy-service.test.mjs:13: assert.ok(r.stdout.includes(`WorkingDirectory=${s.copy}\\n`));assert.ok(r.stdout.includes(`ExecStart=${process.execPath} ${s.copy}/packages/discord/src/cli.mjs run %i --supervised --repo ${s.copy}\\n`));", "packages/discord/tests/copy-service.test.mjs:22: const cli=join(s.copy,'packages/discord/src/cli.mjs');unlinkSync(cli);assert.equal(s.run(['install',...args,'--dir',join(s.root,'missing-cli'),'--no-reload']).status,1);assert.ok(!existsSync(join(s.root,'missing-cli/mosaic-discord@.service')));writeFileSync(cli,'// fixture');unlinkSync(join(s.copy,'node_modules/.bin/pi'));assert.equal(s.run(['install',...args,'--dir',join(s.root,'missing-pi'),'--no-reload']).status,1);assert.ok(!existsSync(join(s.root,'missing-pi/mosaic-discord@.service')));", "packages/bus/tests/human.test.mjs:4:const cli = '/opt/mosaic/human-cli.mjs';", "packages/bus/tests/tester.test.mjs:242:const testerCli = '/opt/mosaic/tester-cli.mjs';", "packages/bus/tests/tester.test.mjs:243:const humanCli = '/opt/mosaic/human-cli.mjs';", "packages/bus/tests/tester.test.mjs:402:const shim = fileURLToPath(new URL('../src/tester-cli.mjs', import.meta.url));", "packages/bus/tests/tester.test.mjs:427:test('tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker', async (t) => {", "packages/cli/tests/channel-cli.test.mjs:4:import { run } from \"../src/cli.mjs\";", "packages/cli/tests/project.test.mjs:6:import { main, run } from '../src/cli.mjs';", "packages/queue/tests/store.test.mjs:131: const foreign = sh(process.execPath, [join(PKG_SRC, \"cli.mjs\"), \"list\"], { cwd: repo.root, env: repo.env, allowFail: true });", "packages/cli/tests/host.test.mjs:17:const CLI = fileURLToPath(new URL(\"../src/cli.mjs\", import.meta.url));", "packages/webui/tests/tester-cli.test.mjs:12:const CLI = new URL('../src/cli.mjs', import.meta.url).pathname;", "packages/webui/tests/tester-cli.test.mjs:37: writeFileSync(hook, `import cp from 'node:child_process';import {syncBuiltinESMExports} from 'node:module';import {appendFileSync} from 'node:fs';const original=cp.spawn;cp.spawn=function(cmd,args,options){if(Array.isArray(args)&&args[0]?.endsWith('-cli.mjs'))appendFileSync(${JSON.stringify(log)},JSON.stringify({cli:args[0]})+'\\\\n');return original.call(this,cmd,args,options);};syncBuiltinESMExports();`);", "packages/ledger/tests/ledger.test.mjs:85: const run = (args = [], env = {}, { floor = ['--first-issue', '1'] } = {}) => spawnSync(process.execPath, [path.join(root, 'packages/ledger/src/cli.mjs'), '--since', '2026-09-06', '--until', '2026-09-12', '--no-queue', ...floor, ...args], { cwd: root, encoding: 'utf8', env: { ...process.env, HOME: home, PATH: `${path.join(root, 'bin')}:${process.env.PATH}`, ISSUES: path.join(root, 'issues.json'), CALLS: path.join(root, 'calls.jsonl'), ...env } });", "packages/ledger/tests/ledger.test.mjs:118: const result = spawnSync(process.execPath, [path.join(f.root, 'packages/ledger/src/cli.mjs'), '--since', '2027-01-01', '--until', '2027-01-02', '--json', '--no-queue'], { encoding: 'utf8', env: { ...process.env, HOME: f.home, PATH: `${f.root}/bin:${process.env.PATH}`, ISSUES: `${f.root}/issues.json`, CALLS: `${f.root}/calls.jsonl` } });", "packages/webui/tests/bus.test.mjs:261: const cli = join(root, 'fake-human-cli.mjs');", "packages/webui/tests/bus.test.mjs:275: assert.equal(await humanCall({ socket: 's', business: 'demo', cli: join(tmpdir(), 'no-such-dir-x', 'cli.mjs') })('inbox').catch(e => e.code), 'invalid-response');", "packages/webui/tests/bus.test.mjs:331: const cli = fileURLToPath(new URL('../src/cli.mjs', import.meta.url));", "packages/cli/tests/tester.test.mjs:5:import { main } from \"../src/cli.mjs\";", "packages/cli/tests/tester.test.mjs:12:// human. The in-process broker here has bus.tester on; the real tester-cli.mjs", "packages/cli/tests/tester.test.mjs:112:test(\"the tester transport runs tester-cli.mjs, and the tester's refusals exit 3\", async () => {", "packages/cli/tests/tester.test.mjs:113: assert.ok(TESTER_CLI.endsWith(\"/packages/bus/src/tester-cli.mjs\") && existsSync(TESTER_CLI));", "packages/cli/tests/tester.test.mjs:123:test(\"with no stand-in transport, --tester runs tester-cli.mjs on the data root's socket\", async (t) => {", "packages/ledger/tests/queue-checks.test.mjs:353: const r = spawnSync(process.execPath, [path.join(repo.root, 'packages/ledger/src/cli.mjs'), '--since', '2026-09-20', '--until', until, '--no-t3', ...args],", "packages/cli/tests/thread-cli.test.mjs:16:import { run } from \"../src/cli.mjs\";", "packages/cli/tests/limits.test.mjs:6:import {main} from '../src/cli.mjs';", "packages/cli/tests/project-name-repo.test.mjs:7:import { run } from '../src/cli.mjs';", "packages/business/tests/instance-settings.test.mjs:13:const CLI = join(REPO, \"packages\", \"business\", \"src\", \"cli.mjs\");", "packages/cli/tests/usage.test.mjs:3:import { main } from '../src/cli.mjs';", "packages/control-board/tests/scan.test.mjs:42:const cli = join(pkgRoot, \"src\", \"cli.mjs\");" ] }, { "needle": "4f988333ec6af225a023323dda85a159b81a77f408a8dd7bff798fe9a1f4b24b", "hits": [] }, { "needle": "93dd5783c6ca3b39336640d5cee3ff0b47e958e305354410c1c5315c4b59a372", "hits": [] } ] }, { "path": "packages/webui/src/serve.mjs", "searches": [ { "needle": "packages/webui/src/serve.mjs", "hits": [] }, { "needle": "serve.mjs", "hits": [ "packages/webui/tests/instances-browser.test.mjs:8:import {startServer} from '../src/serve.mjs';", "packages/webui/tests/fixture.mjs:6:import { startServer as startBoard } from '../../control-board/src/serve.mjs';", "packages/webui/tests/fixture.mjs:8:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/chat.test.mjs:5:import { startServer } from '../src/serve.mjs';", "packages/conversation/tests/flows.test.mjs:15:import { replyToRow } from \"../../control-board/src/serve.mjs\";", "packages/control-board/tests/discord.test.mjs:9:import { replyToRow, startServer } from '../src/serve.mjs';", "packages/webui/tests/editor-browser.test.mjs:7:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/send-browser.test.mjs:15:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/tester-fixture.mjs:16:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/browser-edge.test.mjs:6:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/chat-browser.test.mjs:4:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/board-held.test.mjs:22:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/settings-form.test.mjs:5:import {startServer} from '../src/serve.mjs';", "packages/control-board/tests/serve.test.mjs:22:import { isLoopbackHost, startServer, DEFAULT_AGENT_SEND, REPLY_LIMIT, REPLY_TRAILER, REFUSAL_STATUS } from \"../src/serve.mjs\";", "packages/control-board/tests/serve.test.mjs:67:// serve.mjs-specific helpers", "packages/webui/tests/instances.test.mjs:12:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/tester-listener.test.mjs:4:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/limits-browser.test.mjs:7:import {startServer} from '../src/serve.mjs';", "packages/webui/tests/bus-browser.test.mjs:13:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/channel-chat.test.mjs:6:import { startServer } from \"../src/serve.mjs\";", "packages/webui/tests/proof.test.mjs:8:import * as serve from '../src/serve.mjs';", "packages/webui/tests/serve.test.mjs:6:import { startServer, boardURL, isLoopback } from '../src/serve.mjs';", "packages/webui/tests/usage.test.mjs:3:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/assistant.test.mjs:6:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/send.test.mjs:13:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/limits-route.test.mjs:5:import {startServer} from '../src/serve.mjs';", "packages/webui/tests/settings-write.test.mjs:5:import {startServer} from '../src/serve.mjs';", "packages/webui/tests/views.test.mjs:15:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/project-file.test.mjs:6:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/preview.test.mjs:12:import { startServer, previewOptions } from '../src/serve.mjs';", "packages/webui/tests/shell.test.mjs:15:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/relaunch.test.mjs:6:import { startServer as startBoard } from '../../control-board/src/serve.mjs';", "packages/webui/tests/relaunch.test.mjs:8:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/return-flow.test.mjs:13:import { startServer as startBoard } from '../../control-board/src/serve.mjs';", "packages/webui/tests/return-flow.test.mjs:15:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/usage-browser.test.mjs:4:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/docs-browser.test.mjs:8:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/discord.test.mjs:6:import { startServer as startBoard } from '../../control-board/src/serve.mjs';", "packages/webui/tests/discord.test.mjs:9:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/routes.test.mjs:10:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/messages.test.mjs:5:import {startServer} from '../src/serve.mjs';", "packages/webui/tests/bus.test.mjs:16:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/reads.test.mjs:11:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/history-fixture.mjs:8:import { startServer as startBoard } from '../../control-board/src/serve.mjs';", "packages/webui/tests/history-fixture.mjs:10:import { startServer } from '../src/serve.mjs';", "packages/webui/tests/routes-browser.test.mjs:12:import {startServer} from '../src/serve.mjs';" ] }, { "needle": "ba7d3e35b225cb4e17a4d2530a0f34d0a3734641e3982229a38207a36b3cd433", "hits": [] }, { "needle": "91ecf4129ec8b4385e7bc20b4ee4ac0ca672c47f15ffef825c3721b994527f2a", "hits": [] } ] }, { "path": "packages/webui/systemd/mosaic-webui.service.in", "searches": [ { "needle": "packages/webui/systemd/mosaic-webui.service.in", "hits": [] }, { "needle": "mosaic-webui.service.in", "hits": [ "packages/webui/tests/service.test.mjs:34:const TEMPLATE = readFileSync(join(REPO, 'packages', 'webui', 'systemd', 'mosaic-webui.service.in'), 'utf8');" ] }, { "needle": "045b85c09e9a04c47b6dc83762bfee2eacf080e8aec4cd2ca1ce8ca1ccbadff4", "hits": [] }, { "needle": "7a449ef91310ab6b0185ab97f1720e0790adbd9a8d1d83c3c716e36da976acb5", "hits": [] } ] }, { "path": "packages/webui/tests/proof-cli.test.mjs", "searches": [ { "needle": "packages/webui/tests/proof-cli.test.mjs", "hits": [] }, { "needle": "proof-cli.test.mjs", "hits": [] }, { "needle": "c23975b140ed977f3b98dbbec5de289e9f930cc42089193c4aa7c106338a68ba", "hits": [] } ] }, { "path": "packages/webui/tests/proof.test.mjs", "searches": [ { "needle": "packages/webui/tests/proof.test.mjs", "hits": [] }, { "needle": "proof.test.mjs", "hits": [] }, { "needle": "c06a1e673ef6f3df8f0473692c828aeba853369d2b668e821f1d41e6340b6503", "hits": [] } ] }, { "path": "packages/webui/tests/service.test.mjs", "searches": [ { "needle": "packages/webui/tests/service.test.mjs", "hits": [] }, { "needle": "service.test.mjs", "hits": [] }, { "needle": "424be2837a18a41eab56b0deb576e35b460ac16b8c371762ad44896ffc3aad7d", "hits": [] }, { "needle": "1fca5facd9be5014803cef88a4f79d51c7b67920bdf001a1909daa2a1339fa03", "hits": [] } ] }, { "path": "scripts/stack-release.sh", "searches": [ { "needle": "scripts/stack-release.sh", "hits": [ "packages/cli/tests/stack-release.test.mjs:1:// scripts/stack-release.sh (D1, #1659). Design, the T table and the mutants:" ] }, { "needle": "stack-release.sh", "hits": [ "packages/cli/tests/stack-release.test.mjs:1:// scripts/stack-release.sh (D1, #1659). Design, the T table and the mutants:", "packages/cli/tests/stack-release.test.mjs:115: // The holder must not inherit stack-release.sh's lock (fd 9) or any other fd above 2.", "packages/cli/tests/stack-release.test.mjs:267:const SR=join(repo,'scripts','stack-release.sh');", "packages/cli/tests/stack-release.test.mjs:692: const u=await run(e,'activate','abc123','acme');assert.equal(u.code,4);assert.match(u.err,/^usage: stack-release.sh adopt BUSINESS\\n/);", "packages/cli/tests/stack-release.test.mjs:828: e.sr=join(own,'scripts','stack-release.sh');", "packages/cli/tests/stack-release.test.mjs:882: const r=await run(e,...args);assert.equal(r.code,4,args.join(' '));assert.match(r.err,/^usage: stack-release.sh adopt BUSINESS\\n/);", "packages/cli/tests/stack-release.test.mjs:933: assert.deepEqual(out.slice(0,3),[`pointer: ${e.pointer}`,` ${readFileSync(e.pointer,'utf8').trimEnd()}`,'pm: pending (activate --pm-after-harness); next: Jason\\'s plugins set of harness, then stack-release.sh pm-on acme']);" ] }, { "needle": "f4ef6d39e63c2e2e2d2399501f3da60d5a72d712a2d5fa1891ac05e450ebcc9b", "hits": [] }, { "needle": "64f947a040d95b90b006dad43d6140eb4533082925e4e2a82ac4dc91c773f139", "hits": [] } ] }, { "path": "scripts/webui-service.sh", "searches": [ { "needle": "scripts/webui-service.sh", "hits": [ "packages/webui/tests/service.test.mjs:11:// scripts/webui-service.sh (row 75, #1569). Nothing here starts a unit or", "packages/webui/tests/pinned-copy.test.mjs:12:// Row 77 (#1571, lead decision 112): `scripts/webui-service.sh copy` and", "packages/cli/tests/stack-release.test.mjs:376:const planTail=(e,to,pm=false)=>[`bus: scripts/bus-service.sh install --copy ${to} --copies ${COPIES}${pm?' --pm':''} --claude ${e.claude}`,`Console: scripts/webui-service.sh install --copy ${to} --copies ${COPIES} --port ${e.port} --business acme`,`CLI: scripts/stack-copy.sh wrapper ${to} --copies ${COPIES} --bin ${e.bin}`];" ] }, { "needle": "webui-service.sh", "hits": [ "packages/webui/tests/service.test.mjs:11:// scripts/webui-service.sh (row 75, #1569). Nothing here starts a unit or", "packages/webui/tests/service.test.mjs:19:const SCRIPT = join(REPO, 'scripts', 'webui-service.sh');", "packages/webui/tests/pinned-copy.test.mjs:12:// Row 77 (#1571, lead decision 112): `scripts/webui-service.sh copy` and", "packages/webui/tests/pinned-copy.test.mjs:48: return { dir, repo, script: join(repo, 'scripts', 'webui-service.sh'), head: git(repo, 'rev-parse', 'HEAD') };", "packages/webui/tests/pinned-copy.test.mjs:136: const fromTree = await run(dir, join(tree, 'scripts', 'webui-service.sh'), ['copy', 'refactor', '--copies', copies]);", "packages/webui/tests/pinned-copy.test.mjs:140: const allowed = await run(dir, join(tree, 'scripts', 'webui-service.sh'), ['copy', 'refactor', '--copies', copies, '--allow-worktree']);", "packages/cli/tests/stack-copy.test.mjs:39: const existing=s.run('webui-service.sh',['copy',s.id,'--copies',s.copies]);assert.equal(existing.status,0);assert.equal(existing.stdout,`exists: ${copy}\\n`);unlinkSync(npm);", "packages/cli/tests/stack-release.test.mjs:362: sh('webui-service.sh','install','--copy',copy,'--copies',COPIES,'--port',e.port,'--business','acme');", "packages/cli/tests/stack-release.test.mjs:376:const planTail=(e,to,pm=false)=>[`bus: scripts/bus-service.sh install --copy ${to} --copies ${COPIES}${pm?' --pm':''} --claude ${e.claude}`,`Console: scripts/webui-service.sh install --copy ${to} --copies ${COPIES} --port ${e.port} --business acme`,`CLI: scripts/stack-copy.sh wrapper ${to} --copies ${COPIES} --bin ${e.bin}`];" ] }, { "needle": "d514caf757c03e5d02ef39b19359669bd2476dca1877f5d237c65bd62c33d2bf", "hits": [] }, { "needle": "0636852303b73aa9ad4761679bb7c7bda4eca3e4ff56d5f67d2cb1d1adc75b80", "hits": [] } ] } ]