The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Other engines' hook installers: loaded through the loader, at the start step and before an OpenCode spawn (o2) (#1055)
Deec9713ab629d2
diff --git a/cli/e2e/lean.e2e.ts b/cli/e2e/lean.e2e.tsindex 530ca9ec7..0123730ae 100644--- a/cli/e2e/lean.e2e.ts+++ b/cli/e2e/lean.e2e.ts@@ -217,39 +217,54 @@ describe('harnessd\'s master and services lean', () => {await agentWorks(off, 'claude')})- it('runs Claude Code and Codex on with the other engines\' pane readers gone from the bundle, and says so once', async () => {+ it('runs Claude Code and Codex on with the other engines\' code gone from the bundle, and says so once', async () => {// A file of the core's that cannot load costs the engines whose code is in it, never the core: the loader- // catches it once and their panes read as unreadable (engines/inProcess.ts). Here the file the twelve- // engines' pane readers load from is gone, and an Amp agent's session, entering the registry, asks for it.+ // catches it once (engines/inProcess.ts). Here the files the twelve engines' pane readers and the eleven+ // installers load from are gone. The start installs Claude Code's and Codex's hooks alone (a daemon under+ // test installs no other engine's) and so asks for no installer; an Amp agent's session asks for the+ // readers as it enters the registry, and an OpenCode create asks for its plugin's installer.const lean = readLeanBundle(readFileSync(bundle))!const files = Object.fromEntries([...lean.files].map(([name, code]) => [name, code.toString('utf8')]))- const screens = Object.keys(files).filter((name) => name.startsWith('core-legacyScreen-'))- expect(screens).toHaveLength(1)- delete files[screens[0]!]- const without = join(scratch, 'without-screens', 'cli.js')+ for (const module of ['legacyScreen', 'hooks']) {+ const chunk = Object.keys(files).filter((name) => name.startsWith(`core-${module}-`))+ expect(chunk, module).toHaveLength(1)+ delete files[chunk[0]!]+ }+ const without = join(scratch, 'without-others', 'cli.js')mkdirSync(dirname(without), { recursive: true })writeFileSync(without, withLean(readFileSync(bundle, 'utf8'), files), { mode: 0o755 })- // Amp, as far as the daemon can tell: a program that answers its probes and then waits.- const amp = join(scratch, 'without-screens', 'amp')- writeFileSync(amp, '#!/bin/sh\ncase "$*" in *--version*|*--help*) echo 0.0.0; exit 0;; esac\necho "amp stand-in"\nexec sleep 600\n', { mode: 0o755 })- const d = await fresh({ AMP_PATH: amp }, without)- // The core runs from the lean bundle that lacks them, and nothing asked for them as it started.+ // Amp and OpenCode, as far as the daemon can tell: programs that answer their probes and then wait.+ const standIn = (name: string, version: string): string => {+ const path = join(scratch, 'without-others', name)+ writeFileSync(path, `#!/bin/sh\ncase "$*" in *--version*|*--help*) echo "${version}"; exit 0;; esac\necho "${name} stand-in"\nexec sleep 600\n`, { mode: 0o755 })+ return path+ }+ const d = await fresh({ AMP_PATH: standIn('amp', '0.0.0'), OPENCODE_PATH: standIn('opencode', 'opencode v2.0.18') }, without)+ // The core runs from the lean bundle that lacks them, Claude Code's and Codex's hooks installed, and nothing+ // asked for either as it started.expect(coreCommand(d)).toMatch(new RegExp(` ${escape(join(d.dataDir, 'lean'))}/[0-9a-f]{16}/${escape(LEAN_CORE_ENTRY)} __run$`))- const unavailable = (): number => d.log().match(/\[engine screens\] unavailable · /g)?.length ?? 0- expect(unavailable()).toBe(0)+ expect(claudeHookCommand(d)).toContain('notify.mjs')+ const unavailable = (module: string): number => d.log().match(new RegExp(`\\[engine ${module}\\] unavailable · `, 'g'))?.length ?? 0+ expect(unavailable('screens')).toBe(0)+ expect(unavailable('hooks')).toBe(0)const client = await LocalClient.connect(d)try {- const cwd = join(d.projectsDir, 'lean-amp')- mkdirSync(cwd, { recursive: true })- const created = await client.request('agent_create', { engine: 'amp', cwd }, 90_000)+ const cwd = (name: string): string => { const path = join(d.projectsDir, name); mkdirSync(path, { recursive: true }); return path }+ const created = await client.request('agent_create', { engine: 'amp', cwd: cwd('lean-amp') }, 90_000)expect(created.error, JSON.stringify(created)).toBeUndefined()- await until('the loader to say the readers are unavailable', () => unavailable() > 0 || null, 30_000, 200)+ await until('the loader to say the readers are unavailable', () => unavailable('screens') > 0 || null, 30_000, 200)expect(d.log()).toMatch(/\[engine screens\] unavailable · .*core-legacyScreen-/)+ // An OpenCode with no plugin would never tell the daemon its session: refused before any pane opens.+ // In Ask, which needs no flag the stand-in would be probed for.+ const refused = await client.request('agent_create', { engine: 'opencode', cwd: cwd('lean-opencode'), permissionMode: 'ask', bypassPermission: false }, 90_000)+ expect(refused).toMatchObject({ error: 'ENGINE_UNAVAILABLE' })+ expect(d.log()).toMatch(/\[engine hooks\] unavailable · .*core-hooks-/)} finally { client.close() }await agentWorks(d, 'claude')await agentWorks(d, 'codex')- // Said once, for the life of the core, however often the Amp pane was looked at meanwhile.- expect(unavailable()).toBe(1)+ // Each said once, for the life of the core, however often the Amp pane was looked at meanwhile.+ expect(unavailable('screens')).toBe(1)+ expect(unavailable('hooks')).toBe(1)expect(d.coresStarted()).toBe(1)})diff --git a/cli/src/architecture.spec.ts b/cli/src/architecture.spec.tsindex e11515417..843f6c0f5 100644--- a/cli/src/architecture.spec.ts+++ b/cli/src/architecture.spec.ts@@ -230,7 +230,6 @@ const theirs = (file: string): boolean => THEIRS.some((pattern) => pattern.test(* reached fails the test, so remove it with the move that ends it. Empty, the core loads none of their code.*/const OTHER_ENGINES_CORE_MAY_REACH: Record<string, string> = {- 'lib/hooks.ts': '(o2) hook installers','core/engines/cursorTasks.ts': '(o3) transcripts: Cursor\'s Task hooks, built on first use','core/transcripts/databaseHistory.ts': '(o3) transcripts: database history','core/turns/agyBackstop.ts': '(o3) transcripts: agy\'s backstop, built on first use',@@ -390,6 +389,9 @@ describe('the daemon\'s shape', () => {for (const [entry, batch] of FACETS_FREE_OF_THEM) {expect([...closureOf(entry).keys()].filter(theirs), `${entry}, free of their code since ${batch}`).toEqual([])}+ // (o2) The start's hook step loads the other engines' installers through the loader. What else it reaches+ // of theirs (the hook server's Hermes source check, the registry's layouts) leaves in (o6).+ expect(closureOf('core/engines/hooks.ts').has('lib/hooks.ts'), 'core/engines/hooks.ts loads lib/hooks.ts through engines/inProcess.ts').toBe(false)// What an engine declares is data the kit reads: its own walk reaches the kit, the engines' types and the// environment, and nothing of any engine's code.const contracts = [...closure.keys()].filter((file) => /^engines\/\w+\/contract\.ts$/.test(file))diff --git a/cli/src/core/agents/create.spec.ts b/cli/src/core/agents/create.spec.tsindex 804e29ca2..f86a03464 100644--- a/cli/src/core/agents/create.spec.ts+++ b/cli/src/core/agents/create.spec.ts@@ -13,7 +13,6 @@ import { setUpWithin } from '../../lib/setUpWithin.js'import { writeGridConfigDir } from '../../lib/gridConfigDir.js'import { buildGridEngineLaunch } from '../../lib/gridLaunch.js'import { engineHooks } from '../../engines/hooks.js'-import { installOpencodePlugin } from '../../lib/hooks.js'import type { RegisteredSession } from '../../lib/registry.js'import { stopSessionOwner, type SessionOwner } from '../../lib/sessionSearch/external.js'import { clearPaneRemainOnExit } from '../../lib/tmux.js'@@ -65,7 +64,6 @@ vi.mock('../../engines/hooks.js', async (real) => {const actual = await real<typeof import('../../engines/hooks.js')>()return { ...actual, engineHooks: { ...actual.engineHooks, codex: { ...actual.engineHooks.codex, installIn: vi.fn() } } }})-vi.mock('../../lib/hooks.js', async (real) => ({ ...await real<object>(), installOpencodePlugin: vi.fn() }))vi.mock('../../lib/sessionSearch/external.js', async (real) => ({ ...await real<object>(), stopSessionOwner: vi.fn(async () => true) }))vi.mock('../../lib/tmux.js', async (real) => ({ ...await real<object>(), clearPaneRemainOnExit: vi.fn(async () => {}) }))vi.mock('../../lib/tmuxVersion.js', async (real) => ({ ...await real<object>(), tmuxSupportsSessionEnv: vi.fn(async () => true) }))@@ -101,6 +99,7 @@ function setup(over: Partial<CreateAgentDeps> = {}) {prepareApiTools: vi.fn(),hookPort: 4242,hooksDisabled: false,+ installOpencodePlugin: vi.fn(async () => true),gridLaunchMachine: vi.fn(() => ({}) as never),terminalHintMachineName: () => 'this-mac',blocksFolder: vi.fn(() => false),@@ -307,13 +306,22 @@ describe('creating an agent', () => {await on.create(request({ engine: 'codex', codexHome: '/codex-work' }))await on.create(request({ engine: 'opencode' }))expect(engineHooks.codex.installIn).toHaveBeenCalledWith(4242, '/codex-work')- expect(installOpencodePlugin).toHaveBeenCalledWith(4242)+ expect(on.deps.installOpencodePlugin).toHaveBeenCalledWith(4242)expect(vi.mocked(createAndRegisterPane).mock.calls[0][0]).toMatchObject({ env: { CODEX_HOME: '/codex-work' }, codexHome: '/codex-work' })const off = setup({ hooksDisabled: true })await off.create(request({ engine: 'codex', codexHome: '/codex-work' }))await off.create(request({ engine: 'opencode' }))expect(engineHooks.codex.installIn).toHaveBeenCalledTimes(1)- expect(installOpencodePlugin).toHaveBeenCalledTimes(1)+ expect(off.deps.installOpencodePlugin).not.toHaveBeenCalled()+ })++ it('refuses an OpenCode create whose plugin installer could not be loaded, before any pane opens', async () => {+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {})+ const t = setup({ installOpencodePlugin: vi.fn(async () => false) })+ expect(await t.create(request({ engine: 'opencode' }))).toEqual({ ok: false, error: 'ENGINE_UNAVAILABLE', detail: 'OpenCode\'s plugin installer could not be loaded' })+ expect(warn).toHaveBeenCalledWith('[agent] create opencode refused · OpenCode\'s plugin installer could not be loaded')+ expect(createAndRegisterPane).not.toHaveBeenCalled()+ warn.mockRestore()})it('opens as a named agent, with a first prompt, and does not install an engine with a path override', async () => {diff --git a/cli/src/core/agents/create.ts b/cli/src/core/agents/create.tsindex 026194ff9..be9726375 100644--- a/cli/src/core/agents/create.ts+++ b/cli/src/core/agents/create.ts@@ -34,7 +34,6 @@ import { DEFAULT_HARNESS_PERMISSION, freshHarnessEnvironment } from '../../lib/himport { buildHarnessSessionLabel } from '../../lib/harnessSessionLabel.js'import { engineHooks } from '../../engines/hooks.js'import { folderTrust } from '../../engines/launchPrep.js'-import { installOpencodePlugin } from '../../lib/hooks.js'import { sid } from '../../lib/log.js'import type { registry, RegisteredSession } from '../../lib/registry.js'import { stopSessionOwner, type SessionOwner } from '../../lib/sessionSearch/external.js'@@ -68,6 +67,9 @@ export interface CreateAgentDeps {hookPort: number/** Whether engine hooks are installed at all (DISABLE_HOOK_INSTALL). */hooksDisabled: boolean+ /** OpenCode's plugin, installed again before an OpenCode spawn (core/engines/hooks.ts+ * `installOpencodePluginBeforeSpawn`): false when the other engines' installers could not be loaded. */+ installOpencodePlugin: (port: number) => Promise<boolean>gridLaunchMachine: () => GridLaunchMachineterminalHintMachineName: () => string/** Whether a folder is being purged (PurgeAgentService.blocksFolder). */@@ -80,7 +82,7 @@ export interface CreateAgentDeps {export function createAgentCreator({tmuxBackend, registry, adoptableSession, heldBy, takeOverWhenIdle, watchNewPane, announceSession, attachDsh,- prepareApiTools, hookPort, hooksDisabled, gridLaunchMachine, terminalHintMachineName, blocksFolder, gridSetup,+ prepareApiTools, hookPort, hooksDisabled, installOpencodePlugin, gridLaunchMachine, terminalHintMachineName, blocksFolder, gridSetup,privateGridName,}: CreateAgentDeps) {const createAgent: CreateAgent = async ({ engine, cwd, bypassPermission, permissionMode, grid, codexHome, dsh, prompt, name, agent, resumeSessionId, takeOver, scmLaunchRecord }) => {@@ -236,7 +238,13 @@ export function createAgentCreator({if (codexHome && !hooksDisabled) engineHooks.codex.installIn(hookPort, codexHome)// OpenCode may have upgraded from 1.x to 2.x while this daemon was running. Its new TUI must// not discover our old server plugin; the cached version probe changes with the executable.- if (engine === 'opencode' && !hooksDisabled) installOpencodePlugin(hookPort)+ // Its installer is loaded with the other engines' (engines/inProcess.ts): one that could not be loaded+ // refuses the create, since an OpenCode with no plugin never tells the daemon its session.+ if (engine === 'opencode' && !hooksDisabled && !await installOpencodePlugin(hookPort)) {+ const detail = 'OpenCode\'s plugin installer could not be loaded'+ console.warn(`[agent] create opencode refused · ${detail}`)+ return { ok: false, error: 'ENGINE_UNAVAILABLE', detail }+ }// Do not start a second interactive login shell merely to ask whether the engine is installed.// The pane's own shell performs the same check before exec, and installs only when necessary.// This removes ~1s of shell startup from the click-to-terminal critical path.diff --git a/cli/src/core/engines/hooks.spec.ts b/cli/src/core/engines/hooks.spec.tsindex 1bf1f3745..0db87edb1 100644--- a/cli/src/core/engines/hooks.spec.ts+++ b/cli/src/core/engines/hooks.spec.ts@@ -6,7 +6,8 @@ import { processRows } from '../../lib/terminalAgentDiscovery.js'import { dirname } from 'node:path'import { env } from '../../config/env.js'import { adoptEngineHomes, movedEngineHomes } from '../../lib/engineHomes.js'-import { createEngineHooks, installEngineHooks, PROCESS_RECORD_WAIT_MS, type EngineHookDeps } from './hooks.js'+import { createEngineHooks, installEngineHooks, installOpencodePluginBeforeSpawn, PROCESS_RECORD_WAIT_MS, type EngineHookDeps } from './hooks.js'+import { loadEngine } from '../../engines/inProcess.js'vi.mock('../../engines/hooks.js', async (real) => {const actual = await real<typeof import('../../engines/hooks.js')>()@@ -19,6 +20,12 @@ vi.mock('../../lib/engineHomes.js', () => ({adoptEngineHomes: vi.fn(() => ({ claude: null, codex: null })),movedEngineHomes: vi.fn(() => ({ claude: [], codex: [] })),}))+// The other engines' installers load through the loader; a test may make that load fail.+const loading = vi.hoisted(() => ({ fail: false }))+vi.mock('../../engines/inProcess.js', async (real) => {+ const actual = await real<typeof import('../../engines/inProcess.js')>()+ return { ...actual, loadEngine: vi.fn((name: 'hooks') => loading.fail ? Promise.resolve(null) : actual.loadEngine(name)) }+})vi.mock('../../lib/terminalAgentDiscovery.js', async (real) => ({ ...await real<object>(), processRows: vi.fn(async () => []) }))vi.mock('../../lib/hooks.js', async (real) => ({...await real<object>(),@@ -307,27 +314,63 @@ describe('installing every engine\'s hooks', () => {hooks.installCopilotHooks,]beforeEach(() => { vi.spyOn(console, 'warn').mockImplementation(() => {}) })- afterEach(() => { vi.restoreAllMocks(); vi.clearAllMocks() })+ afterEach(() => { vi.restoreAllMocks(); vi.clearAllMocks(); loading.fail = false })- it('points all thirteen at the bound port', () => {- installEngineHooks(4242)+ it('points all thirteen at the bound port, the other engines\' through their installers loaded once', async () => {+ await installEngineHooks(4242)for (const install of installs) expect(install).toHaveBeenCalledWith(4242)expect(console.warn).not.toHaveBeenCalled()+ expect(loadEngine).toHaveBeenCalledTimes(1)+ expect(loadEngine).toHaveBeenCalledWith('hooks')+ })++ it('installs OpenCode\'s plugin before an OpenCode spawn, and says when its installer could not be loaded', async () => {+ expect(await installOpencodePluginBeforeSpawn(4242)).toBe(true)+ expect(hooks.installOpencodePlugin).toHaveBeenCalledWith(4242)+ loading.fail = true+ expect(await installOpencodePluginBeforeSpawn(4242)).toBe(false)+ expect(hooks.installOpencodePlugin).toHaveBeenCalledTimes(1)+ })++ it('in the order they always ran: Claude Code and Codex in line, then the others, as one awaited step', async () => {+ const order: string[] = []+ for (const [index, install] of installs.entries()) vi.mocked(install).mockImplementationOnce(() => { order.push(String(index)) })+ const done = installEngineHooks(4242)+ expect(order).toEqual(['0', '1'])+ await done+ expect(order).toEqual(installs.map((_, index) => String(index)))})- it('only the engines asked for (HOOK_INSTALL_ENGINES), the homes they moved included', () => {+ it('only the engines asked for (HOOK_INSTALL_ENGINES), the homes they moved included', async () => {vi.mocked(movedEngineHomes).mockReturnValueOnce({ claude: ['/w/claude'], codex: ['/w/codex'] })- installEngineHooks(4242, { only: new Set(['codex']), environment: {} })+ await installEngineHooks(4242, { only: new Set(['codex']), environment: {} })expect(engineHooks.codex.install).toHaveBeenCalledWith(4242)expect(engineHooks.codex.installIn).toHaveBeenCalledWith(4242, '/w/codex')for (const install of installs.filter((one) => one !== engineHooks.codex.install)) expect(install).not.toHaveBeenCalled()expect(engineHooks.claude.installIn).not.toHaveBeenCalled()+ // Claude Code's and Codex's alone load none of the other engines' code.+ expect(loadEngine).not.toHaveBeenCalled()+ await installEngineHooks(4242, { only: new Set(['kilo']), environment: {} })+ expect(hooks.installKiloPlugin).toHaveBeenCalledWith(4242)+ expect(hooks.installCursorHooks).not.toHaveBeenCalled()+ })++ it('with the other engines\' installers unable to load: theirs skipped and named, Claude Code\'s and Codex\'s installed', async () => {+ loading.fail = true+ await installEngineHooks(4242, { environment: {} })+ expect(engineHooks.claude.install).toHaveBeenCalledWith(4242)+ expect(engineHooks.codex.install).toHaveBeenCalledWith(4242)+ for (const install of installs.slice(2)) expect(install).not.toHaveBeenCalled()+ for (const vendor of ['cursor', 'opencode', 'kilo', 'pi', 'amp', 'hermes', 'devin', 'commandcode', 'grok', 'agy', 'copilot']) {+ expect(console.warn).toHaveBeenCalledWith(`[hooks] ${vendor} install skipped · its installer could not be loaded`)+ }+ expect(console.warn).toHaveBeenCalledTimes(11)})// lib/engineHomes.ts: with CLAUDE_CONFIG_DIR or CODEX_HOME in the person's profile, no agent ever bound.- it('puts the hooks in every home adopted on an earlier boot, at every start', () => {+ it('puts the hooks in every home adopted on an earlier boot, at every start', async () => {vi.mocked(movedEngineHomes).mockReturnValueOnce({ claude: ['/w/claude'], codex: ['/w/codex'] })- installEngineHooks(4242, { environment: {} })+ await installEngineHooks(4242, { environment: {} })expect(engineHooks.claude.installIn).toHaveBeenCalledWith(4242, '/w/claude')expect(engineHooks.codex.installIn).toHaveBeenCalledWith(4242, '/w/codex')})@@ -339,7 +382,7 @@ describe('installing every engine\'s hooks', () => {vi.mocked(adoptEngineHomes).mockReturnValueOnce({ claude: '/m/claude', codex: null }).mockReturnValueOnce({ claude: null, codex: '/s/codex' })- installEngineHooks(4242, { environment: own, loginShell: Promise.resolve(shell) })+ void installEngineHooks(4242, { environment: own, loginShell: Promise.resolve(shell) })expect(adoptEngineHomes).toHaveBeenCalledWith(own, { claudeHome: dirname(env.CLAUDE_PROJECTS_DIR), codexHome: env.CODEX_HOME })expect(engineHooks.claude.installIn).toHaveBeenCalledWith(4242, '/m/claude')expect(log).toHaveBeenCalledWith('[hooks] engines keep their data elsewhere here: Claude Code in /m/claude')@@ -349,17 +392,17 @@ describe('installing every engine\'s hooks', () => {expect(log).toHaveBeenCalledWith('[hooks] engines keep their data elsewhere here: Codex in /s/codex')})- it('reads the daemon\'s own environment when none is given, and logs nothing when nothing moved', () => {+ it('reads the daemon\'s own environment when none is given, and logs nothing when nothing moved', async () => {const log = vi.spyOn(console, 'log').mockImplementation(() => {})- installEngineHooks(4242)+ await installEngineHooks(4242)expect(adoptEngineHomes).toHaveBeenCalledWith(process.env, expect.anything())expect(log).not.toHaveBeenCalled()})- it('one at a time: a vendor whose install throws is skipped and named, and the rest still install', () => {+ it('one at a time: a vendor whose install throws is skipped and named, and the rest still install', async () => {vi.mocked(engineHooks.codex.install).mockImplementationOnce(() => { throw new Error('config.toml is read-only') })vi.mocked(hooks.installGrokHooks).mockImplementationOnce(() => { throw 'settings mid-write' })- installEngineHooks(4242)+ await installEngineHooks(4242)expect(console.warn).toHaveBeenCalledWith('[hooks] codex install skipped · config.toml is read-only')expect(console.warn).toHaveBeenCalledWith('[hooks] grok install skipped · settings mid-write')for (const install of installs) expect(install).toHaveBeenCalledTimes(1)diff --git a/cli/src/core/engines/hooks.ts b/cli/src/core/engines/hooks.tsindex 4d4d9ea5f..6ab8b3f89 100644--- a/cli/src/core/engines/hooks.ts+++ b/cli/src/core/engines/hooks.ts@@ -9,10 +9,7 @@ import { engineHooks } from '../../engines/hooks.js'import { env } from '../../config/env.js'import { chooseHookAgent, type HookServerHandlers } from '../../hookServer.js'import { adoptEngineHomes, movedEngineHomes } from '../../lib/engineHomes.js'-import {- installAgyHooks, installAmpPlugin, installCommandCodeHooks, installCopilotHooks, installCursorHooks,- installDevinHooks, installGrokHooks, installHermesHooks, installKiloPlugin, installOpencodePlugin, installPiExtension,-} from '../../lib/hooks.js'+import { loadEngine, type InProcessModules } from '../../engines/inProcess.js'import { sid } from '../../lib/log.js'import type { registry, RegisteredSession } from '../../lib/registry.js'import { processRows } from '../../lib/terminalAgentDiscovery.js'@@ -175,6 +172,18 @@ export function createEngineHooks({ tmuxBackend, agentReconciler, registry }: Enreturn { resolveHookAgent, onSessionEnd }}+/**+ * OpenCode's plugin, installed again before an OpenCode spawn (core/agents/create.ts): OpenCode may have moved+ * from 1.x to 2.x under a running daemon, and its new TUI must not find the old server plugin. False when the+ * other engines' installers could not be loaded.+ */+export async function installOpencodePluginBeforeSpawn(port: number): Promise<boolean> {+ const installers = await loadEngine('hooks')+ if (!installers) return false+ installers.installOpencodePlugin(port)+ return true+}+export interface InstallEngineHooksOptions {/** Only these engines' hooks (`HOOK_INSTALL_ENGINES`); every engine's when absent. */only?: ReadonlySet<string> | null@@ -184,14 +193,39 @@ export interface InstallEngineHooksOptions {loginShell?: Promise<NodeJS.ProcessEnv>}+/**+ * The other engines' installers, in the order they have always run. Their code is loaded only here, once, as+ * the core starts (engines/inProcess.ts `hooks`), and only when one of them is to be installed.+ */+const OTHER_INSTALLERS: Array<[string, (installers: InProcessModules['hooks']) => (port: number) => void]> = [+ ['cursor', (installers) => installers.installCursorHooks],+ ['opencode', (installers) => installers.installOpencodePlugin],+ ['kilo', (installers) => installers.installKiloPlugin],+ ['pi', (installers) => installers.installPiExtension],+ // A self-update refreshes plugin files here; running engine processes pick them up according to each+ // vendor's own plugin reload lifecycle.+ ['amp', (installers) => installers.installAmpPlugin],+ ['hermes', (installers) => installers.installHermesHooks],+ ['devin', (installers) => installers.installDevinHooks],+ ['commandcode', (installers) => installers.installCommandCodeHooks],+ ['grok', (installers) => installers.installGrokHooks],+ ['agy', (installers) => installers.installAgyHooks],+ ['copilot', (installers) => installers.installCopilotHooks],+]+/*** Install every engine's hooks with the port the local server actually bound.** One vendor at a time, each behind its own guard: these write into thirteen different settings* files owned by thirteen different CLIs, and one that is malformed, read-only or mid-write is not* a reason for the other twelve to go uninstalled — let alone for the daemon not to come up.+ *+ * Claude Code's and Codex's first, in line, as before. Then the other engines' installers are loaded, at this+ * same step, which the caller awaits so that nothing it starts next (a restored pane among them) runs before+ * their hooks are in place. Installers that could not be loaded are skipped and named, as one that throws is.+ * Never rejects.*/-export function installEngineHooks(port: number, options: InstallEngineHooksOptions = {}): void {+export async function installEngineHooks(port: number, options: InstallEngineHooksOptions = {}): Promise<void> {const hookStep = (vendor: string, install: () => void): void => {if (options.only && !options.only.has(vendor)) returntry { install() } catch (error) {@@ -217,17 +251,13 @@ export function installEngineHooks(port: number, options: InstallEngineHooksOptiadopt(options.environment ?? process.env)void options.loginShell?.then(adopt)for (const [engine, hooks] of Object.entries(engineHooks)) hookStep(engine, () => hooks.install(port))- hookStep('cursor', () => installCursorHooks(port))- hookStep('opencode', () => installOpencodePlugin(port))- hookStep('kilo', () => installKiloPlugin(port))- hookStep('pi', () => installPiExtension(port))- // A self-update refreshes plugin files here; running engine processes pick them up according to each- // vendor's own plugin reload lifecycle.- hookStep('amp', () => installAmpPlugin(port))- hookStep('hermes', () => installHermesHooks(port))- hookStep('devin', () => installDevinHooks(port))- hookStep('commandcode', () => installCommandCodeHooks(port))- hookStep('grok', () => installGrokHooks(port))- hookStep('agy', () => installAgyHooks(port))- hookStep('copilot', () => installCopilotHooks(port))+ const others = OTHER_INSTALLERS.filter(([vendor]) => !options.only || options.only.has(vendor))+ if (!others.length) return+ const installers = await loadEngine('hooks')+ for (const [vendor, installer] of others) {+ hookStep(vendor, () => {+ if (!installers) throw new Error('its installer could not be loaded')+ installer(installers)(port)+ })+ }}diff --git a/cli/src/core/main.ts b/cli/src/core/main.tsindex b4485c078..ed3ddb233 100644--- a/cli/src/core/main.ts+++ b/cli/src/core/main.ts@@ -138,7 +138,7 @@ import { answerConversationQuery, conversationReads } from './conversationQuerieimport { createLaunchRequests } from './agents/launches.js'import { createAgentList } from './agents/list.js'import { createAgentUpdate } from './agents/update.js'-import { createEngineHooks, installEngineHooks } from './engines/hooks.js'+import { createEngineHooks, installEngineHooks, installOpencodePluginBeforeSpawn } from './engines/hooks.js'import { createCursorTaskHooks } from './engines/cursorTasks.js'import { databaseHistory } from './transcripts/databaseHistory.js'import { COMMAND_BAR_REQUESTS, createCoreApi, DEVICES_FALLBACKS, DEVICES_REQUESTS, emptyPorts, HANDOFF_REQUESTS, EXPERIMENTS, LONG_ANSWERS, MODELS_FALLBACKS, MODELS_OFF, MODELS_REQUESTS, MONITOR_FALLBACKS, MONITOR_OFF, MONITOR_REQUESTS, ORCHESTRATOR_FALLBACKS, ORCHESTRATOR_REQUESTS, SHARE_REQUESTS, SHARING_FALLBACKS, PROJECTS_REQUESTS, SEARCH_FALLBACKS, SEARCH_REQUESTS, STORE_REQUESTS, TEAMS_FALLBACKS, TEAMS_REQUESTS, USAGE_REQUESTS, VIEWERS_FALLBACKS, WIFI_FALLBACKS, WINDOW_NAMES_REQUESTS, WORKSPACES_FALLBACKS, type GatewayAccount, type GatewayOps, type GatewayStatus, type RouteAnswer, type TeamsPort, type WindowFocus } from './api.js'@@ -1862,7 +1862,7 @@ async function runForeground(session: AuthSession | null): Promise<void> {})localWsServerRef = localWsServer// Every engine's hooks, pointed at the port the local server actually bound (core/engines/hooks.ts).- if (!env.DISABLE_HOOK_INSTALL) installEngineHooks(hookPort, { only: env.HOOK_INSTALL_ENGINES, loginShell: loginShellEnvPromise })+ if (!env.DISABLE_HOOK_INSTALL) await installEngineHooks(hookPort, { only: env.HOOK_INSTALL_ENGINES, loginShell: loginShellEnvPromise })// Each transcript line, through its engine's normalizer, into the funnel (core/transcripts/ingest.ts).const ingest = createIngest({@@ -2221,6 +2221,7 @@ async function runForeground(session: AuthSession | null): Promise<void> {prepareApiTools,hookPort,hooksDisabled: env.DISABLE_HOOK_INSTALL,+ installOpencodePlugin: installOpencodePluginBeforeSpawn,gridLaunchMachine,terminalHintMachineName,blocksFolder: (cwd) => backend.purgeAgentService?.blocksFolder(cwd),diff --git a/cli/src/engines/__fixtures__/other-hooks.golden.json b/cli/src/engines/__fixtures__/other-hooks.golden.jsonnew file mode 100644index 000000000..bbefaf013--- /dev/null+++ b/cli/src/engines/__fixtures__/other-hooks.golden.json@@ -0,0 +1,11909 @@+{+ "texts": {+ "f46cc82e93ac3dd3": "{\n \"hooks\": {\n \"sessionStart\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"beforeSubmitPrompt\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"preToolUse\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"stop\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"sessionEnd\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ]\n },\n \"version\": 1\n}\n",+ "e3b0c44298fc1c14": "",+ "8855c6119660c614": " \n",+ "f1dec6e9ee608550": "{not-json",+ "aa25e978046d680e": "{}",+ "74234e98afe7498f": "null",+ "37517e5f3dc66819": "[]\n",+ "1e1d0f251d3a76fa": "\"text\"",+ "73475cb40a568e8d": "42",+ "1c2aeaac473dca87": "{\n \"hooks\": {\n \"sessionStart\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"beforeSubmitPrompt\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"preToolUse\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"stop\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"sessionEnd\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ]\n },\n \"keep\": 1,\n \"version\": 1\n}\n",+ "d05ad8cb738b0c1f": "{\n \"hooks\": [],\n \"version\": 1\n}\n",+ "8f5114f5734c2d24": "{\n \"version\": 1,\n \"note\": \"café ✓\",\n \"hooks\": {\n \"sessionStart\": [\n {\n \"command\": \"foreign-start\"\n },\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"afterFileEdit\": [\n {\n \"command\": \"foreign-edit\"\n }\n ],\n \"beforeSubmitPrompt\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"preToolUse\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"stop\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ],\n \"sessionEnd\": [\n {\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\n \"failClosed\": false\n }\n ]\n }\n}\n",+ "e161f02becaa47e8": "{\"hooks\":{\"sessionStart\":[{\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\"failClosed\":false}],\"beforeSubmitPrompt\":[{\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\"failClosed\":false}],\"preToolUse\":[{\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\"failClosed\":false}],\"stop\":[{\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\"failClosed\":false}],\"sessionEnd\":[{\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine cursor\",\"failClosed\":false}]},\"version\":1}",+ "d979437596e2baaf": "{\n \"version\": 1,\n \"note\": \"café ✓\",\n \"hooks\": {\n \"sessionStart\": [\n {\n \"command\": \"foreign-start\"\n }\n ],\n \"afterFileEdit\": [\n {\n \"command\": \"foreign-edit\"\n }\n ]\n }\n}\n",+ "2960dac7c17939ba": "// session-register (OpenCode 2 TUI) — auto-installed by the machine adapter. Tells the local machine\n// daemon (127.0.0.1:19473) which session this pane shows, as the 1.x plugin does. No-op if machine isn't running.\nimport { readFileSync } from \"node:fs\"\nconst hookToken = () => { try { return readFileSync(\"<root>/data/hook-credential\", \"utf8\").trim() } catch { return \"\" } }\nexport default {\n id: \"harness-session-register\",\n setup(ctx) {\n const pane = process.env.TMUX_PANE\n const router = ctx && ctx.ui && ctx.ui.router\n if (!pane || !router || typeof router.current !== \"function\") return\n const posted = new Set()\n let busy = false\n const post = async (sessionID) => {\n const token = hookToken()\n if (!token || !sessionID || posted.has(sessionID) || busy) return\n busy = true\n try {\n let info\n try { info = await (ctx.data && ctx.data.session && ctx.data.session.get ? ctx.data.session.get(sessionID) : undefined) } catch {}\n if (info && info.parentID) { posted.add(sessionID); return } // a sub-agent's — shown under its parent's Task card\n const cwd = (info && info.location && info.location.directory) || (ctx.location && ctx.location.directory) || process.cwd()\n const res = await fetch(\"http://127.0.0.1:19473/api/hook/session-start\", {\n method: \"POST\",\n headers: { \"content-type\": \"application/json\", \"x-harness-hook-token\": token },\n body: JSON.stringify({\n engine: \"opencode\",\n pluginVersion: \"<version>\",\n sessionId: sessionID,\n cwd,\n tmuxPane: pane,\n callerPid: process.pid,\n runtimeHints: [{ backend: \"tmux\", paneId: pane }],\n }),\n })\n if (res && res.ok) posted.add(sessionID)\n } catch {} finally { busy = false }\n }\n const check = () => {\n try { const at = router.current(); if (at && at.type === \"session\" && at.sessionID) post(at.sessionID) } catch {}\n }\n check()\n const timer = setInterval(check, 1000)\n if (timer && typeof timer.unref === \"function\") timer.unref()\n return () => clearInterval(timer)\n },\n}\n",+ "3cd1ae59e87ad8ec": "// someone else's plugin\nexport default {}\n",+ "4f380457d0f46953": "// session-register — auto-installed by the machine adapter. Binds this OpenCode session to the\n// local machine daemon (127.0.0.1:19473) so it can be mirrored to web/device. No-op if machine isn't running.\nimport { readFileSync } from \"node:fs\"\nconst hookToken = () => { try { return readFileSync(\"<root>/data/hook-credential\", \"utf8\").trim() } catch { return \"\" } }\nexport const MachineRegister = async ({ directory, worktree, project, client }) => {\n const seen = new Set()\n const post = async (sessionID) => {\n const pane = process.env.TMUX_PANE\n const token = hookToken()\n if (!pane || !token || !sessionID || seen.has(sessionID)) return\n seen.add(sessionID)\n try {\n await fetch(\"http://127.0.0.1:19473/api/hook/session-start\", {\n method: \"POST\",\n headers: { \"content-type\": \"application/json\", \"x-harness-hook-token\": token },\n body: JSON.stringify({\n engine: \"opencode\",\n pluginVersion: \"<version>\",\n sessionId: sessionID,\n cwd: directory || worktree || (project && project.worktree) || null,\n tmuxPane: pane,\n callerPid: process.pid,\n runtimeHints: [\n ...(pane ? [{ backend: \"tmux\", paneId: pane }] : []),\n ],\n }),\n })\n } catch {}\n }\n return {\n event: async ({ event }) => {\n if (!event) return\n if (event.type === \"session.created\" || event.type === \"session.updated\") {\n const p = event.properties || {}\n const info = p.info || {}\n if (info.parentID) return // sub-agent child session — shown under its parent's Task card, not a top-level agent\n await post(info.id || p.sessionID || p.sessionId)\n }\n },\n }\n}\n",+ "5fcd154262aa3330": "// session-register — auto-installed by the machine adapter. Binds this Kilo session to the\n// local machine daemon (127.0.0.1:19473) so it can be mirrored to web/device. No-op if machine isn't running.\nimport { readFileSync } from \"node:fs\"\nconst hookToken = () => { try { return readFileSync(\"<root>/data/hook-credential\", \"utf8\").trim() } catch { return \"\" } }\nexport const MachineRegister = async ({ directory, worktree, project, client }) => {\n const seen = new Set()\n const post = async (sessionID) => {\n const pane = process.env.TMUX_PANE\n const token = hookToken()\n if (!pane || !token || !sessionID || seen.has(sessionID)) return\n seen.add(sessionID)\n try {\n await fetch(\"http://127.0.0.1:19473/api/hook/session-start\", {\n method: \"POST\",\n headers: { \"content-type\": \"application/json\", \"x-harness-hook-token\": token },\n body: JSON.stringify({\n engine: \"kilo\",\n pluginVersion: \"<version>\",\n sessionId: sessionID,\n cwd: directory || worktree || (project && project.worktree) || null,\n tmuxPane: pane,\n callerPid: process.pid,\n runtimeHints: [\n ...(pane ? [{ backend: \"tmux\", paneId: pane }] : []),\n ],\n }),\n })\n } catch {}\n }\n return {\n event: async ({ event }) => {\n if (!event) return\n if (event.type === \"session.created\" || event.type === \"session.updated\") {\n const p = event.properties || {}\n const info = p.info || {}\n if (info.parentID) return // sub-agent child session — shown under its parent's Task card, not a top-level agent\n await post(info.id || p.sessionID || p.sessionId)\n }\n },\n }\n}\n",+ "0544c0d16bc89584": "// session-register — auto-installed by the machine adapter. Binds this Pi session to the local\n// machine daemon (127.0.0.1:19473) so it can be mirrored to web/device. No-op if machine isn't running.\nimport { existsSync, readFileSync } from \"node:fs\";\nimport type { ExtensionAPI } from \"@earendil-works/pi-coding-agent\";\n\nexport default function (pi: ExtensionAPI) {\n let announced = false; // posted at least once (the transcript may not exist yet)\n let registered = false; // posted with a real, on-disk transcript — nothing left to do\n\n const register = async (ctx: any) => {\n const pane = process.env.TMUX_PANE;\n let token = \"\";\n try { token = readFileSync(\"<root>/data/hook-credential\", \"utf8\").trim(); } catch {}\n if (!pane || !token) return;\n // Pi knows the session file path immediately but only WRITES it once the first assistant message\n // lands. Sending a path that isn't on disk yet is rejected by the daemon (it validates the file),\n // so announce without one first and attach the real path on a later turn.\n const file = ctx?.sessionManager?.getSessionFile?.() ?? null;\n const ready = !!file && existsSync(file);\n if (registered || (announced && !ready)) return;\n const sessionId = ctx?.sessionManager?.getSessionId?.();\n if (!sessionId) return;\n try {\n const res = await fetch(\"http://127.0.0.1:19473/api/hook/session-start\", {\n method: \"POST\",\n headers: { \"content-type\": \"application/json\", \"x-harness-hook-token\": token },\n body: JSON.stringify({\n engine: \"pi\",\n pluginVersion: \"<version>\",\n sessionId,\n transcriptPath: ready ? file : undefined,\n cwd: ctx?.cwd ?? undefined,\n tmuxPane: pane,\n callerPid: process.pid,\n runtimeHints: [\n ...(pane ? [{ backend: \"tmux\", paneId: pane }] : []),\n ],\n }),\n });\n if (!res.ok) return; // daemon refused (e.g. transcript not readable yet) — retry on the next turn\n announced = true;\n if (ready) registered = true;\n } catch {}\n };\n\n // session_start fires before the transcript exists; the turn hooks catch it once it does.\n pi.on(\"session_start\", async (_event, ctx) => { await register(ctx); });\n pi.on(\"turn_start\", async (_event, ctx) => { await register(ctx); });\n pi.on(\"turn_end\", async (_event, ctx) => { await register(ctx); });\n}\n",+ "2351a62515202212": "// someone else's extension\nexport default function () {}\n",+ "b97cffdaf15d26d4": "// session-register — auto-installed by the machine adapter. Binds this Amp thread to the local\n// machine daemon (127.0.0.1:19473) and writes the transcript the daemon tails, because Amp keeps none\n// on disk. No-op outside tmux.\nimport { appendFileSync, existsSync, mkdirSync, readFileSync } from 'node:fs'\nimport { join } from 'node:path'\n\nexport const description = 'Mirrors this Amp thread to the machine adapter (web + device)'\n\nconst SESSIONS_DIR = \"<root>/home/.harness/cli/data/amp-sessions\"\n\nexport default function (amp: any) {\n const pane = process.env.TMUX_PANE\n if (!pane) return\n\n // NOT `process.cwd()`: Bun runs a plugin with the PLUGIN's directory as its cwd, so that reports\n // `<project>/.amp/plugins` (measured). `PWD` is inherited from the shell that launched plain Amp.\n const workdir = process.env.PWD || process.cwd()\n\n const emitted = new Set()\n // Turn ids already opened/closed. Amp re-dispatches a message it could not deliver, firing agent.start\n // a SECOND time for the same message id (measured: two identical turn_start records 61s apart, then a\n // turn_end 'done' and a turn_end 'error' for the one turn). Written straight through, that is two turns\n // on web and device and two user bubbles in history.\n const turnsStarted = new Set()\n const turnsEnded = new Set()\n // Tool ids already written, so a tool seen BOTH as an event and as a message block is written once.\n const toolCalls = new Set()\n const toolResults = new Set()\n let registered = false\n let file = ''\n let seeded = false\n\n const line = (record: any) => {\n try {\n mkdirSync(SESSIONS_DIR, { recursive: true, mode: 0o700 })\n appendFileSync(file, JSON.stringify(record) + '\\n')\n } catch {}\n }\n\n const open = (threadId: string) => {\n if (file) return\n file = join(SESSIONS_DIR, threadId + '.jsonl')\n // `cwd` on the first line is what lets the daemon re-find this session by directory after a restart,\n // the same way it reads claude's and pi's transcripts. It must be a top-level string field.\n line({ t: 'session', threadId, cwd: workdir, at: Date.now() })\n }\n\n const register = async (threadId: string) => {\n open(threadId)\n if (registered || !existsSync(file)) return\n try {\n const token = readFileSync(\"<root>/data/hook-credential\", 'utf8').trim()\n if (!token) return\n const res = await fetch('http://127.0.0.1:19473/api/hook/session-start', {\n method: 'POST',\n headers: { 'content-type': 'application/json', 'x-harness-hook-token': token },\n body: JSON.stringify({\n engine: 'amp',\n pluginVersion: \"<version>\",\n sessionId: threadId,\n transcriptPath: file,\n cwd: workdir,\n tmuxPane: pane,\n callerPid: process.pid,\n runtimeHints: [\n ...(pane ? [{ backend: 'tmux', paneId: pane }] : []),\n ],\n }),\n })\n if (res.ok) registered = true\n } catch {}\n }\n\n const resultId = (block: any) => String(block.toolUseID || block.tool_use_id || '')\n\n /**\n * Write everything in the thread that has not been written yet.\n *\n * This reads message BLOCKS rather than events, because the events do not cover the thread:\n *\n * - no event carries assistant text at all, and\n * - `tool.call`/`tool.result` only fire for tools the CLIENT executes. MEASURED: a `web_search`\n * turn produced no tool event and no tool lease in Amp's own log, yet the message plainly held a\n * `tool_use` block — Amp runs that tool on its server. Skipping blocks meant a search rendered as\n * nothing at all on web and device while the pane showed \"Explored 1 search\".\n *\n * `seed` marks what already exists WITHOUT writing it, for a thread that is being resumed: those\n * messages belong to earlier turns, and replaying them made a fresh turn open with an old answer in it.\n */\n const drain = async (ctx: any) => {\n let messages: any[] = []\n try { messages = await ctx.thread.messages({ from: 'end', limit: 20 }) } catch { return }\n // The FIRST drain of this plugin instance only claims what it finds; it writes nothing. That covers\n // both ways a plugin meets a thread that already has messages: a resumed thread, and a plugin reload\n // (Amp loads a plugin ONCE per process, so reload is how a running pane picks up a new build). Without\n // it, the next prompt replayed the whole recent history as if it had just happened.\n const seed = !seeded\n seeded = true\n // The seed pass would swallow the very prompt the turn needs to open on. Measured: `session.start`\n // does NOT fire when Amp launches — it fires on the first submit, and by then the thread already\n // holds one `user` message. So the seed has to tell history from the live prompt, and the test is\n // whether anything answered it: the LAST user text block with no assistant message after it is\n // waiting, not past. On a resumed thread the last message is an assistant one, so nothing opens.\n let liveUserId = ''\n for (const message of messages) {\n if (message.role === 'assistant') { liveUserId = ''; continue }\n const parts = Array.isArray(message.content) ? message.content : []\n const hasText = parts.some((b: any) => b && b.type === 'text' && typeof b.text === 'string' && b.text)\n if (hasText) liveUserId = String(message.id)\n }\n for (const message of messages) {\n const blocks = Array.isArray(message.content) ? message.content : []\n for (let i = 0; i < blocks.length; i++) {\n const block = blocks[i]\n if (!block) continue\n if (block.type === 'text' || block.type === 'thinking') {\n const key = String(message.id) + '#' + i\n if (emitted.has(key)) continue\n const text = typeof block.text === 'string' ? block.text : block.thinking\n if (typeof text !== 'string' || !text) continue\n emitted.add(key)\n // A user TEXT block opens the turn.\n //\n // Amp used to announce that with an `agent.start` event, and the handler below wrote\n // `turn_start` from it. That event no longer fires — probed with a plugin that registered for\n // sixteen candidate names on amp 0.0.1786681855 and saw only `session.start`, `tool.call`,\n // `tool.result` and `agent.end`. The prompt now reaches a plugin no earlier than\n // `agent.end`, which is the END of the turn, far too late to open one.\n //\n // So it is taken from the thread instead, where drain was already reading it and dropping it:\n // measured at the first `tool.call` of a turn, `messages()` already returns the prompt, oldest\n // first. Without this the turn opens with an empty question on web and device, and the recap\n // loses what was asked.\n //\n // Only a TEXT block qualifies: a tool_result is also carried on a `user` message, so matching\n // the role alone would open a turn on every tool that returned.\n if (message.role !== 'assistant') {\n const turnId = String(message.id)\n if (turnsStarted.has(turnId)) continue\n turnsStarted.add(turnId)\n if (!seed || turnId === liveUserId) line({ t: 'turn_start', id: turnId, message: text, at: Date.now() })\n continue\n }\n if (!seed) line({ t: block.type, id: message.id, i, text })\n } else if (block.type === 'tool_use') {\n const id = String(block.id || '')\n if (!id || toolCalls.has(id)) continue\n toolCalls.add(id)\n if (!seed) line({ t: 'tool_call', id, tool: block.name, input: block.input })\n } else if (block.type === 'tool_result') {\n const id = resultId(block)\n if (!id || toolResults.has(id)) continue\n toolResults.add(id)\n // A server-run tool puts its payload under `run`; a client-run one under `content`/`output`.\n if (!seed) line({ t: 'tool_result', id, status: 'done', output: block.run ?? block.content ?? block.output })\n }\n }\n }\n }\n\n amp.on('session.start', async (event: any, ctx: any) => {\n await register(event.thread.id)\n await drain(ctx)\n })\n\n amp.on('agent.start', async (event: any, ctx: any) => {\n await register(event.thread.id)\n const id = String(event.id)\n if (!turnsStarted.has(id)) {\n turnsStarted.add(id)\n line({ t: 'turn_start', id: event.id, message: event.message, at: Date.now() })\n }\n await drain(ctx)\n })\n\n amp.on('tool.call', async (event: any, ctx: any) => {\n await register(event.thread.id)\n // CLAIM THE ID FIRST. `drain` runs before this card so a message's prose lands ahead of the tool it\n // called — but by then the tool_use block for THIS tool is already in the thread, so draining without\n // claiming wrote the card twice (measured: one Task turn produced two identical `skill` cards).\n toolCalls.add(String(event.toolUseID))\n await drain(ctx)\n line({ t: 'tool_call', id: event.toolUseID, tool: event.tool, input: event.input })\n })\n\n amp.on('tool.result', async (event: any, ctx: any) => {\n // Same rule as tool.call: claim before draining.\n toolResults.add(String(event.toolUseID))\n line({\n t: 'tool_result',\n id: event.toolUseID,\n tool: event.tool,\n status: event.status,\n output: event.output,\n })\n await drain(ctx)\n })\n\n amp.on('agent.end', async (event: any, ctx: any) => {\n await drain(ctx)\n // `message` is the prompt that STARTED this turn, and agent.end carries it even when\n // agent.start never fired (a prompt queued while Amp was connecting). Recording it here is what\n // lets history still show what was asked — see the replay branch in the normalizer.\n const id = String(event.id)\n if (turnsEnded.has(id)) return\n turnsEnded.add(id)\n line({ t: 'turn_end', id: event.id, status: event.status, message: event.message, at: Date.now() })\n })\n}\n",+ "f2535bcde1fe8de5": "// someone else's plugin\nexport default function () {}\n",+ "988dbdec0e4eb48d": "\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "1b00ee446739f819": "{\n \"approvals\": [\n {\n \"event\": \"on_session_start\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n },\n {\n \"event\": \"pre_llm_call\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n }\n ]\n}\n",+ "a55a637998fe4b15": "{not-json\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "c51e46f6c146b98d": "{}\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "194131200b79cf44": "null\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "2415375113d9c3b5": "[]\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "9d989f72a32a29d0": "\"text\"\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "e02d1147e6ef16f8": "42\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "ec7d064fd8392cd4": "{\"hooks\":\"nope\",\"keep\":1}\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "962dfe8b12a6ae73": "{\"hooks\":[]}\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "c1a3d9684ed05172": "{\"hooks\":null}\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "3ddcb721806eb9ef": "model: anthropic/claude\ntoolsets:\n - web\n - terminal\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "f8dc5cc189f51bc0": "model: x\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "7e98aa9bd960a936": "model: anthropic/claude\ntoolsets:\n - web\n - terminal\n",+ "ef875a1705a5fdac": "junk",+ "7f0a907cf4b87d22": "model: x\nhooks:\n on_session_start:\n - command: \"foreign-hook\"\n",+ "4632a48e3e660bef": "model: y\n\n# machine-adapter: session discovery (managed block — safe to delete)\nhooks:\n on_session_start:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes/profiles/work' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n pre_llm_call:\n - command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes/profiles/work' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n timeout: 10\n# machine-adapter: end\n",+ "cbf0d4d9801fa8ab": "{\n \"approvals\": [\n {\n \"event\": \"on_session_start\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes/profiles/work' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n },\n {\n \"event\": \"pre_llm_call\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes/profiles/work' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\"\n }\n ]\n}\n",+ "139af7531520d198": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ]\n }\n}\n",+ "39001c2ca3ede641": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"keep\": 1\n}\n",+ "527e053b72e46170": "{\n \"hooks\": []\n}\n",+ "0dfbbe04f73adf3d": "{\n \"devin\": {\n \"org_id\": \"org-1\"\n },\n \"theme_mode\": \"dark\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\n \"timeout\": 5\n }\n ]\n }\n ]\n }\n}\n",+ "5a8f51f91dde0a5b": "{\"hooks\":{\"SessionStart\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\"timeout\":5}]}],\"UserPromptSubmit\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\"timeout\":5}]}],\"Stop\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\"timeout\":5}]}],\"SessionEnd\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine devin\",\"timeout\":5}]}]}}",+ "6d5b174c2e259967": "{\n \"devin\": {\n \"org_id\": \"org-1\"\n },\n \"theme_mode\": \"dark\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\"\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ]\n }\n}\n",+ "e6ba49d50df273e3": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ]\n }\n}\n",+ "49b2b24292764fcd": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"keep\": 1\n}\n",+ "32816609de0e4204": "{\n \"model\": \"x\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-post\"\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\n \"timeout\": 5\n }\n ]\n }\n ]\n }\n}\n",+ "af11bf73d6bcc670": "{\"hooks\":{\"SessionStart\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\"timeout\":5}]}],\"PreToolUse\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\"timeout\":5}]}],\"Stop\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine commandcode\",\"timeout\":5}]}]}}",+ "d22cca3856723e32": "{\n \"model\": \"x\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-post\"\n }\n ]\n }\n ]\n }\n}\n",+ "fdf01705b60e85fe": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ]\n }\n}\n",+ "a96e546fddafe1ca": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"keep\": 1\n}\n",+ "78cc36f86512ef3a": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-stop\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\n \"timeout\": 5\n }\n ]\n }\n ]\n }\n}\n",+ "70e69a09d8231b2e": "{\"hooks\":{\"SessionStart\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\"timeout\":5}]}],\"SessionEnd\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\"timeout\":5}]}],\"UserPromptSubmit\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\"timeout\":5}]}],\"StopFailure\":[{\"hooks\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine grok\",\"timeout\":5}]}]}}",+ "2a9811d493ce83b8": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\"\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-stop\"\n }\n ]\n }\n ]\n }\n}\n",+ "49e01513b7aa4e4b": "{\n \"harness\": {\n \"PreInvocation\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event PreInvocation\",\n \"timeout\": 10\n }\n ],\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event Stop\",\n \"timeout\": 10\n }\n ]\n }\n}\n",+ "a9f7351b00036d4d": "{\n \"hooks\": \"nope\",\n \"keep\": 1,\n \"harness\": {\n \"PreInvocation\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event PreInvocation\",\n \"timeout\": 10\n }\n ],\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event Stop\",\n \"timeout\": 10\n }\n ]\n }\n}\n",+ "16151c74ec74cbf0": "{\n \"hooks\": [],\n \"harness\": {\n \"PreInvocation\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event PreInvocation\",\n \"timeout\": 10\n }\n ],\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event Stop\",\n \"timeout\": 10\n }\n ]\n }\n}\n",+ "fccdf49d2cc702e9": "{\n \"hooks\": null,\n \"harness\": {\n \"PreInvocation\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event PreInvocation\",\n \"timeout\": 10\n }\n ],\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event Stop\",\n \"timeout\": 10\n }\n ]\n }\n}\n",+ "36167d06eb75fd75": "{\n \"theirs\": {\n \"enabled\": true,\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-stop\"\n }\n ]\n },\n \"harness\": {\n \"PreInvocation\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event PreInvocation\",\n \"timeout\": 10\n }\n ],\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event Stop\",\n \"timeout\": 10\n }\n ]\n }\n}\n",+ "aa2b391f4878627a": "{\"harness\":{\"PreInvocation\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event PreInvocation\",\"timeout\":10}],\"Stop\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine agy --agy-event Stop\",\"timeout\":10}]}}",+ "ea6df51da052bef4": "{\n \"theirs\": {\n \"enabled\": true,\n \"Stop\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-stop\"\n }\n ]\n }\n}\n",+ "f1d871558bc6b03b": "{\n \"version\": 1,\n \"hooks\": {\n \"sessionStart\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event sessionStart\"\n }\n ],\n \"userPromptSubmitted\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event userPromptSubmitted\"\n }\n ],\n \"agentStop\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event agentStop\"\n }\n ],\n \"sessionEnd\": [\n {\n \"type\": \"command\",\n \"command\": \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event sessionEnd\"\n }\n ]\n }\n}\n",+ "df185b4913284039": "{\"version\":1,\"hooks\":{\"sessionStart\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event sessionStart\"}],\"userPromptSubmitted\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event userPromptSubmitted\"}],\"agentStop\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event agentStop\"}],\"sessionEnd\":[{\"type\":\"command\",\"command\":\"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine copilot --copilot-event sessionEnd\"}]}}",+ "3d5035418d5226f3": "{\n \"version\": 1,\n \"hooks\": {\n \"sessionStart\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\"\n }\n ]\n }\n}\n"+ },+ "outcomes": {+ "cursor: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: empty file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "e3b0c44298fc1c14"+ }+ }+ },+ "cursor: whitespace only": {+ "runs": [+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "8855c6119660c614"+ }+ }+ },+ "cursor: malformed JSON": {+ "runs": [+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f1dec6e9ee608550"+ }+ }+ },+ "cursor: byte order mark": {+ "runs": [+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "aa25e978046d680e"+ }+ }+ },+ "cursor: JSON null": {+ "runs": [+ {+ "logs": [+ "warn [hooks] cursor install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] cursor install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "74234e98afe7498f"+ }+ }+ },+ "cursor: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "37517e5f3dc66819"+ }+ }+ },+ "cursor: JSON string": {+ "runs": [+ {+ "logs": [+ "warn [hooks] cursor install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] cursor install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "1e1d0f251d3a76fa"+ }+ }+ },+ "cursor: JSON number": {+ "runs": [+ {+ "logs": [+ "warn [hooks] cursor install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] cursor install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "73475cb40a568e8d"+ }+ }+ },+ "cursor: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "1c2aeaac473dca87"+ }+ }+ },+ "cursor: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "d05ad8cb738b0c1f"+ }+ }+ },+ "cursor: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "8f5114f5734c2d24"+ }+ }+ },+ "cursor: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "e161f02becaa47e8"+ }+ }+ },+ "cursor: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "8f5114f5734c2d24"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "d979437596e2baaf"+ }+ }+ },+ "cursor: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "8f5114f5734c2d24"+ }+ }+ },+ "cursor: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "444",+ "text": "f46cc82e93ac3dd3"+ }+ }+ },+ "cursor: an unreadable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "200",+ "text": "d979437596e2baaf"+ }+ }+ },+ "cursor: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Cursor hooks.json: Error EACCES open <root>/home/.config/cursor/hooks.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Cursor hooks.json: Error EACCES open <root>/home/.config/cursor/hooks.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "cursor: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Cursor hooks.json: Error EACCES open <root>/home/.config/cursor/hooks.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Cursor hooks.json: Error EACCES open <root>/home/.config/cursor/hooks.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "555"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "d979437596e2baaf"+ }+ }+ },+ "cursor: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "8f5114f5734c2d24"+ }+ }+ },+ "cursor: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Cursor hooks file is invalid JSON; leaving it unchanged: <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "cursor: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Cursor lifecycle/task hooks → <root>/home/.config/cursor/hooks.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Cursor lifecycle/task hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/cursor/hooks.json": {+ "type": "file",+ "mode": "600",+ "text": "8f5114f5734c2d24"+ }+ }+ },+ "opencode: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: empty file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: whitespace only": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: malformed JSON": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: byte order mark": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "3cd1ae59e87ad8ec"+ }+ }+ },+ "opencode: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "444",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: an unreadable file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write OpenCode 2 TUI plugin: Error EACCES open <root>/home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write OpenCode 2 TUI plugin: Error EACCES open <root>/home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "opencode: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write OpenCode 2 TUI plugin: Error EACCES open <root>/home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write OpenCode 2 TUI plugin: Error EACCES open <root>/home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "555"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "3cd1ae59e87ad8ec"+ }+ }+ },+ "opencode: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write OpenCode 2 TUI plugin: Error EISDIR rename <root>/home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp <root>/home/.config/opencode/plugins/launcher-register/tui.js"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write OpenCode 2 TUI plugin: Error EISDIR rename <root>/home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp <root>/home/.config/opencode/plugins/launcher-register/tui.js"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js.<pid>.tmp": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "600",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: OpenCode 1": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode discovery plugin → <root>/home/.config/opencode/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next opencode session start)",+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode discovery plugin already installed",+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "4f380457d0f46953"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: OpenCode 1, ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode discovery plugin → <root>/home/.config/opencode/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next opencode session start)",+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode discovery plugin already installed",+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "4f380457d0f46953"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: no OpenCode installed": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: OpenCode 2 with our OpenCode 1 plugin left": {+ "runs": [+ {+ "logs": [+ "log [hooks] removed incompatible OpenCode 1 discovery plugin",+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: OpenCode 2 with a foreign plugin where OpenCode 1's goes": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "3cd1ae59e87ad8ec"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "opencode: OpenCode 2 with a folder where OpenCode 1's plugin goes": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to remove OpenCode 1 plugin: Error EISDIR read",+ "log [hooks] installed OpenCode 2 TUI discovery plugin → <root>/home/.config/opencode/plugins/launcher-register/tui.js",+ "log [hooks] (takes effect on the next opencode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to remove OpenCode 1 plugin: Error EISDIR read",+ "log [hooks] OpenCode 2 TUI discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugin/launcher-register.js": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/opencode/plugins/launcher-register/tui.js": {+ "type": "file",+ "mode": "644",+ "text": "2960dac7c17939ba"+ }+ }+ },+ "kilo: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: empty file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: whitespace only": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: malformed JSON": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: byte order mark": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "3cd1ae59e87ad8ec"+ }+ }+ },+ "kilo: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "444",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: an unreadable file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Kilo plugin: Error EACCES open <root>/home/.config/kilo/plugin/launcher-register.js.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Kilo plugin: Error EACCES open <root>/home/.config/kilo/plugin/launcher-register.js.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "kilo: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Kilo plugin: Error EACCES open <root>/home/.config/kilo/plugin/launcher-register.js.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Kilo plugin: Error EACCES open <root>/home/.config/kilo/plugin/launcher-register.js.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "555"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "3cd1ae59e87ad8ec"+ }+ }+ },+ "kilo: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Kilo plugin: Error EISDIR rename <root>/home/.config/kilo/plugin/launcher-register.js.<pid>.tmp <root>/home/.config/kilo/plugin/launcher-register.js"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Kilo plugin: Error EISDIR rename <root>/home/.config/kilo/plugin/launcher-register.js.<pid>.tmp <root>/home/.config/kilo/plugin/launcher-register.js"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js.<pid>.tmp": {+ "type": "file",+ "mode": "644",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "kilo: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Kilo discovery plugin → <root>/home/.config/kilo/plugin/launcher-register.js",+ "log [hooks] (takes effect on the next kilo session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Kilo discovery plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/kilo/plugin/launcher-register.js": {+ "type": "file",+ "mode": "600",+ "text": "5fcd154262aa3330"+ }+ }+ },+ "pi: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: empty file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: whitespace only": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: malformed JSON": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: byte order mark": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "2351a62515202212"+ }+ }+ },+ "pi: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "444",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: an unreadable file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Pi extension: Error EACCES open <root>/home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Pi extension: Error EACCES open <root>/home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "pi: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Pi extension: Error EACCES open <root>/home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Pi extension: Error EACCES open <root>/home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "555"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "2351a62515202212"+ }+ }+ },+ "pi: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Pi extension: Error EISDIR rename <root>/home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp <root>/home/.pi/agent/extensions/launcher-register.ts"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Pi extension: Error EISDIR rename <root>/home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp <root>/home/.pi/agent/extensions/launcher-register.ts"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts.<pid>.tmp": {+ "type": "file",+ "mode": "644",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "pi: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Pi discovery extension → <root>/home/.pi/agent/extensions/launcher-register.ts",+ "log [hooks] (takes effect on the next pi session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Pi discovery extension already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.pi": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions": {+ "type": "dir",+ "mode": "755"+ },+ "home/.pi/agent/extensions/launcher-register.ts": {+ "type": "file",+ "mode": "600",+ "text": "0544c0d16bc89584"+ }+ }+ },+ "amp: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: empty file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: whitespace only": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: malformed JSON": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: byte order mark": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ }+ }+ },+ "amp: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "f2535bcde1fe8de5"+ }+ }+ },+ "amp: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ }+ }+ },+ "amp: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "444",+ "text": "b97cffdaf15d26d4"+ }+ }+ },+ "amp: an unreadable file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Amp plugin: Error EACCES open <root>/home/.config/amp/plugins/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Amp plugin: Error EACCES open <root>/home/.config/amp/plugins/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "555"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Amp plugin: Error EACCES open <root>/home/.config/amp/plugins/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Amp plugin: Error EACCES open <root>/home/.config/amp/plugins/launcher-register.ts.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "555"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "f2535bcde1fe8de5"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Amp plugin: Error EISDIR rename <root>/home/.config/amp/plugins/launcher-register.ts.<pid>.tmp <root>/home/.config/amp/plugins/launcher-register.ts"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Amp plugin: Error EISDIR rename <root>/home/.config/amp/plugins/launcher-register.ts.<pid>.tmp <root>/home/.config/amp/plugins/launcher-register.ts"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts.<pid>.tmp": {+ "type": "file",+ "mode": "644",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "amp: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Amp plugin → <root>/home/.config/amp/plugins/launcher-register.ts",+ "log [hooks] a NEW amp session picks this up automatically; for one already open, run",+ "log [hooks] ctrl+o → 'plugins: reload' (or restart that pane)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Amp plugin already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/amp/plugins/launcher-register.ts": {+ "type": "file",+ "mode": "600",+ "text": "b97cffdaf15d26d4"+ },+ "home/.harness": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data": {+ "type": "dir",+ "mode": "700"+ },+ "home/.harness/cli/data/amp-sessions": {+ "type": "dir",+ "mode": "700"+ }+ }+ },+ "hermes: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "hermes: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {}+ },+ "hermes: empty file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "988dbdec0e4eb48d"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: whitespace only": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "988dbdec0e4eb48d"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: malformed JSON": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "a55a637998fe4b15"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: byte order mark": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "c51e46f6c146b98d"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "194131200b79cf44"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "2415375113d9c3b5"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "9d989f72a32a29d0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "e02d1147e6ef16f8"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "ec7d064fd8392cd4"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "962dfe8b12a6ae73"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "c1a3d9684ed05172"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "3ddcb721806eb9ef"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "3ddcb721806eb9ef"+ }+ }+ },+ "hermes: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ }+ }+ },+ "hermes: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "link",+ "target": "<root>/elsewhere/missing"+ }+ }+ },+ "hermes: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "link",+ "target": "<root>/elsewhere/gone/missing"+ }+ }+ },+ "hermes: a read-only file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Hermes config.yaml: Error EACCES open <root>/home/.hermes/config.yaml"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Hermes config.yaml: Error EACCES open <root>/home/.hermes/config.yaml"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "444",+ "text": "7e98aa9bd960a936"+ }+ }+ },+ "hermes: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "444",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: an unreadable file": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "200",+ "text": "7e98aa9bd960a936"+ }+ }+ },+ "hermes: a read-only folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "hermes: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Hermes config.yaml: Error EACCES open <root>/home/.hermes/shell-hooks-allowlist.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] hermes install skipped · EACCES: permission denied, open '<root>/home/.hermes/shell-hooks-allowlist.json.<pid>.tmp'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "555"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "3ddcb721806eb9ef"+ }+ }+ },+ "hermes: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "600",+ "text": "3ddcb721806eb9ef"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: the file is a folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] no Hermes config at <root>/home/.hermes/config.yaml — skipping (run hermes once first)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "hermes: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "3ddcb721806eb9ef"+ },+ "home/.hermes/config.yaml.<pid>.tmp": {+ "type": "file",+ "mode": "600",+ "text": "ef875a1705a5fdac"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: a foreign hooks mapping": {+ "runs": [+ {+ "logs": [+ "error [hooks] <root>/home/.hermes/config.yaml has its own `hooks:` block — leaving it untouched.",+ "error [hooks] add these entries under it manually to mirror Hermes sessions:",+ "error [hooks] on_session_start: [{ command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\", timeout: 10 }]",+ "error [hooks] pre_llm_call: [{ command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\", timeout: 10 }]"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] <root>/home/.hermes/config.yaml has its own `hooks:` block — leaving it untouched.",+ "error [hooks] add these entries under it manually to mirror Hermes sessions:",+ "error [hooks] on_session_start: [{ command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\", timeout: 10 }]",+ "error [hooks] pre_llm_call: [{ command: \"'<node>' '<script>' --port 19473 --data-dir '<root>/data' --claude-projects-dir '<root>/home/.claude/projects' --codex-home '<root>/home/.codex' --grok-home '<root>/home/.grok' --cursor-home '<root>/home/.cursor' --hermes-home '<root>/home/.hermes' --commandcode-home '<root>/home/.commandcode' --devin-home '<root>/home/.local/share/devin/cli' --agy-home '<root>/home/.gemini/antigravity-cli' --copilot-home '<root>/home/.copilot' --engine hermes\", timeout: 10 }]"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "7f0a907cf4b87d22"+ }+ }+ },+ "hermes: our block twice, the first old": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks (collapsed 2 stale blocks) → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "hermes: a profile with a config": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)",+ "log [hooks] installed Hermes session hooks → <root>/home/.hermes/profiles/work/config.yaml",+ "log [hooks] (takes effect on the next hermes session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Hermes session hooks already installed",+ "log [hooks] Hermes session hooks already installed (work)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.hermes": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "f8dc5cc189f51bc0"+ },+ "home/.hermes/profiles": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/profiles/empty": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/profiles/work": {+ "type": "dir",+ "mode": "755"+ },+ "home/.hermes/profiles/work/config.yaml": {+ "type": "file",+ "mode": "644",+ "text": "4632a48e3e660bef"+ },+ "home/.hermes/profiles/work/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "cbf0d4d9801fa8ab"+ },+ "home/.hermes/shell-hooks-allowlist.json": {+ "type": "file",+ "mode": "644",+ "text": "1b00ee446739f819"+ }+ }+ },+ "devin: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: empty file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "e3b0c44298fc1c14"+ }+ }+ },+ "devin: whitespace only": {+ "runs": [+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "8855c6119660c614"+ }+ }+ },+ "devin: malformed JSON": {+ "runs": [+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "f1dec6e9ee608550"+ }+ }+ },+ "devin: byte order mark": {+ "runs": [+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "aa25e978046d680e"+ }+ }+ },+ "devin: JSON null": {+ "runs": [+ {+ "logs": [+ "warn [hooks] devin install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] devin install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "74234e98afe7498f"+ }+ }+ },+ "devin: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "37517e5f3dc66819"+ }+ }+ },+ "devin: JSON string": {+ "runs": [+ {+ "logs": [+ "warn [hooks] devin install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] devin install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "1e1d0f251d3a76fa"+ }+ }+ },+ "devin: JSON number": {+ "runs": [+ {+ "logs": [+ "warn [hooks] devin install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] devin install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "73475cb40a568e8d"+ }+ }+ },+ "devin: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "39001c2ca3ede641"+ }+ }+ },+ "devin: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "527e053b72e46170"+ }+ }+ },+ "devin: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "0dfbbe04f73adf3d"+ }+ }+ },+ "devin: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "5a8f51f91dde0a5b"+ }+ }+ },+ "devin: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "0dfbbe04f73adf3d"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "6d5b174c2e259967"+ }+ }+ },+ "devin: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "0dfbbe04f73adf3d"+ }+ }+ },+ "devin: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "444",+ "text": "139af7531520d198"+ }+ }+ },+ "devin: an unreadable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "200",+ "text": "6d5b174c2e259967"+ }+ }+ },+ "devin: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Devin config.json: Error EACCES open <root>/home/.config/devin/config.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Devin config.json: Error EACCES open <root>/home/.config/devin/config.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "devin: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Devin config.json: Error EACCES open <root>/home/.config/devin/config.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Devin config.json: Error EACCES open <root>/home/.config/devin/config.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "555"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "6d5b174c2e259967"+ }+ }+ },+ "devin: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "644",+ "text": "0dfbbe04f73adf3d"+ }+ }+ },+ "devin: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Devin config file is invalid JSON; leaving it unchanged: <root>/home/.config/devin/config.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "devin: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Devin SessionStart/UserPromptSubmit/Stop/SessionEnd hooks → <root>/home/.config/devin/config.json",+ "log [hooks] (takes effect on the next devin session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Devin session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin": {+ "type": "dir",+ "mode": "755"+ },+ "home/.config/devin/config.json": {+ "type": "file",+ "mode": "600",+ "text": "0dfbbe04f73adf3d"+ }+ }+ },+ "commandcode: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: empty file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e3b0c44298fc1c14"+ }+ }+ },+ "commandcode: whitespace only": {+ "runs": [+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "8855c6119660c614"+ }+ }+ },+ "commandcode: malformed JSON": {+ "runs": [+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "f1dec6e9ee608550"+ }+ }+ },+ "commandcode: byte order mark": {+ "runs": [+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "aa25e978046d680e"+ }+ }+ },+ "commandcode: JSON null": {+ "runs": [+ {+ "logs": [+ "warn [hooks] commandcode install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] commandcode install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "74234e98afe7498f"+ }+ }+ },+ "commandcode: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "37517e5f3dc66819"+ }+ }+ },+ "commandcode: JSON string": {+ "runs": [+ {+ "logs": [+ "warn [hooks] commandcode install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] commandcode install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "1e1d0f251d3a76fa"+ }+ }+ },+ "commandcode: JSON number": {+ "runs": [+ {+ "logs": [+ "warn [hooks] commandcode install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] commandcode install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "73475cb40a568e8d"+ }+ }+ },+ "commandcode: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "49b2b24292764fcd"+ }+ }+ },+ "commandcode: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "527e053b72e46170"+ }+ }+ },+ "commandcode: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "32816609de0e4204"+ }+ }+ },+ "commandcode: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "af11bf73d6bcc670"+ }+ }+ },+ "commandcode: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "32816609de0e4204"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "d22cca3856723e32"+ }+ }+ },+ "commandcode: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "32816609de0e4204"+ }+ }+ },+ "commandcode: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "444",+ "text": "e6ba49d50df273e3"+ }+ }+ },+ "commandcode: an unreadable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "200",+ "text": "d22cca3856723e32"+ }+ }+ },+ "commandcode: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Command Code settings.json: Error EACCES open <root>/home/.commandcode/settings.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Command Code settings.json: Error EACCES open <root>/home/.commandcode/settings.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "commandcode: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Command Code settings.json: Error EACCES open <root>/home/.commandcode/settings.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Command Code settings.json: Error EACCES open <root>/home/.commandcode/settings.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "555"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "d22cca3856723e32"+ }+ }+ },+ "commandcode: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "644",+ "text": "32816609de0e4204"+ }+ }+ },+ "commandcode: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Command Code settings file is invalid JSON; leaving it unchanged: <root>/home/.commandcode/settings.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "commandcode: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Command Code SessionStart/Stop hooks → <root>/home/.commandcode/settings.json",+ "log [hooks] (takes effect on the next commandcode session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Command Code session hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.commandcode": {+ "type": "dir",+ "mode": "755"+ },+ "home/.commandcode/settings.json": {+ "type": "file",+ "mode": "600",+ "text": "32816609de0e4204"+ }+ }+ },+ "grok: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: empty file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "e3b0c44298fc1c14"+ }+ }+ },+ "grok: whitespace only": {+ "runs": [+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "8855c6119660c614"+ }+ }+ },+ "grok: malformed JSON": {+ "runs": [+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1dec6e9ee608550"+ }+ }+ },+ "grok: byte order mark": {+ "runs": [+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "aa25e978046d680e"+ }+ }+ },+ "grok: JSON null": {+ "runs": [+ {+ "logs": [+ "warn [hooks] grok install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] grok install skipped · Cannot read properties of null (reading 'hooks')"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "74234e98afe7498f"+ }+ }+ },+ "grok: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "37517e5f3dc66819"+ }+ }+ },+ "grok: JSON string": {+ "runs": [+ {+ "logs": [+ "warn [hooks] grok install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] grok install skipped · Cannot create property 'hooks' on string 'text'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "1e1d0f251d3a76fa"+ }+ }+ },+ "grok: JSON number": {+ "runs": [+ {+ "logs": [+ "warn [hooks] grok install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ },+ {+ "logs": [+ "warn [hooks] grok install skipped · Cannot create property 'hooks' on number '42'"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "73475cb40a568e8d"+ }+ }+ },+ "grok: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "a96e546fddafe1ca"+ }+ }+ },+ "grok: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "527e053b72e46170"+ }+ }+ },+ "grok: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "78cc36f86512ef3a"+ }+ }+ },+ "grok: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "70e69a09d8231b2e"+ }+ }+ },+ "grok: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "78cc36f86512ef3a"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "2a9811d493ce83b8"+ }+ }+ },+ "grok: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "78cc36f86512ef3a"+ }+ }+ },+ "grok: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "444",+ "text": "fdf01705b60e85fe"+ }+ }+ },+ "grok: an unreadable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "200",+ "text": "2a9811d493ce83b8"+ }+ }+ },+ "grok: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Grok hook file: Error EACCES open <root>/home/.grok/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Grok hook file: Error EACCES open <root>/home/.grok/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "grok: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Grok hook file: Error EACCES open <root>/home/.grok/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Grok hook file: Error EACCES open <root>/home/.grok/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "555"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "2a9811d493ce83b8"+ }+ }+ },+ "grok: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "78cc36f86512ef3a"+ }+ }+ },+ "grok: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] Grok hooks file is invalid JSON; leaving it unchanged: <root>/home/.grok/hooks/harness.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "grok: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Grok lifecycle/StopFailure hooks → <root>/home/.grok/hooks/harness.json",+ "log [hooks] (takes effect on the next Grok session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Grok lifecycle/StopFailure hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.grok": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.grok/hooks/harness.json": {+ "type": "file",+ "mode": "600",+ "text": "78cc36f86512ef3a"+ }+ }+ },+ "agy: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: empty file": {+ "runs": [+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "e3b0c44298fc1c14"+ }+ }+ },+ "agy: whitespace only": {+ "runs": [+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "8855c6119660c614"+ }+ }+ },+ "agy: malformed JSON": {+ "runs": [+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "f1dec6e9ee608550"+ }+ }+ },+ "agy: byte order mark": {+ "runs": [+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "aa25e978046d680e"+ }+ }+ },+ "agy: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "a9f7351b00036d4d"+ }+ }+ },+ "agy: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "16151c74ec74cbf0"+ }+ }+ },+ "agy: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "fccdf49d2cc702e9"+ }+ }+ },+ "agy: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "36167d06eb75fd75"+ }+ }+ },+ "agy: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "aa2b391f4878627a"+ }+ }+ },+ "agy: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "36167d06eb75fd75"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "ea6df51da052bef4"+ }+ }+ },+ "agy: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "36167d06eb75fd75"+ }+ }+ },+ "agy: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "444",+ "text": "49e01513b7aa4e4b"+ }+ }+ },+ "agy: an unreadable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "200",+ "text": "ea6df51da052bef4"+ }+ }+ },+ "agy: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write agy hook file: Error EACCES open <root>/home/.gemini/config/hooks.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write agy hook file: Error EACCES open <root>/home/.gemini/config/hooks.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "agy: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write agy hook file: Error EACCES open <root>/home/.gemini/config/hooks.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write agy hook file: Error EACCES open <root>/home/.gemini/config/hooks.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "555"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "ea6df51da052bef4"+ }+ }+ },+ "agy: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "644",+ "text": "36167d06eb75fd75"+ }+ }+ },+ "agy: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] agy hooks file is invalid JSON; leaving it unchanged: <root>/home/.gemini/config/hooks.json",+ "error [hooks] fix the file, then restart harness login"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "dir",+ "mode": "755"+ }+ }+ },+ "agy: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed agy lifecycle hooks → <root>/home/.gemini/config/hooks.json",+ "log [hooks] (takes effect on the next agy session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] agy lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.gemini": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config": {+ "type": "dir",+ "mode": "755"+ },+ "home/.gemini/config/hooks.json": {+ "type": "file",+ "mode": "600",+ "text": "36167d06eb75fd75"+ }+ }+ },+ "copilot: no file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: no home folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: empty file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: whitespace only": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: malformed JSON": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: byte order mark": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: JSON null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: JSON array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: JSON string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: JSON number": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: hooks is a string": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: hooks is an array": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: hooks is null": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: ours from an older install": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: ours current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: ours current, minified": {+ "runs": [+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "df185b4913284039"+ }+ }+ },+ "copilot: ours current for another port": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a symlink to foreign content": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "3d5035418d5226f3"+ }+ }+ },+ "copilot: a symlink to current content": {+ "runs": [+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "link",+ "target": "<root>/elsewhere/real"+ },+ "elsewhere/real": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a dangling symlink": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a symlink into a missing folder": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a read-only file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a read-only file, current": {+ "runs": [+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "444",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: an unreadable file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a read-only folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Copilot hook file: Error EACCES open <root>/home/.copilot/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Copilot hook file: Error EACCES open <root>/home/.copilot/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "555"+ }+ }+ },+ "copilot: a read-only folder holding a writable file": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Copilot hook file: Error EACCES open <root>/home/.copilot/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Copilot hook file: Error EACCES open <root>/home/.copilot/hooks/harness.json.<pid>.tmp"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "555"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "3d5035418d5226f3"+ }+ }+ },+ "copilot: a private file": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: the file is a folder": {+ "runs": [+ {+ "logs": [+ "error [hooks] failed to write Copilot hook file: Error EISDIR rename <root>/home/.copilot/hooks/harness.json.<pid>.tmp <root>/home/.copilot/hooks/harness.json"+ ],+ "threw": null+ },+ {+ "logs": [+ "error [hooks] failed to write Copilot hook file: Error EISDIR rename <root>/home/.copilot/hooks/harness.json.<pid>.tmp <root>/home/.copilot/hooks/harness.json"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json.<pid>.tmp": {+ "type": "file",+ "mode": "644",+ "text": "f1d871558bc6b03b"+ }+ }+ },+ "copilot: a temporary file left by this process": {+ "runs": [+ {+ "logs": [+ "log [hooks] installed Copilot lifecycle hooks → <root>/home/.copilot/hooks/harness.json",+ "log [hooks] (takes effect on the next copilot session start)"+ ],+ "threw": null+ },+ {+ "logs": [+ "log [hooks] Copilot lifecycle hooks already installed"+ ],+ "threw": null+ }+ ],+ "files": {+ "home/.copilot": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks": {+ "type": "dir",+ "mode": "755"+ },+ "home/.copilot/hooks/harness.json": {+ "type": "file",+ "mode": "600",+ "text": "f1d871558bc6b03b"+ }+ }+ }+ }+}diff --git a/cli/src/engines/inProcess.ts b/cli/src/engines/inProcess.tsindex 66cff2788..4fa1af1b7 100644--- a/cli/src/engines/inProcess.ts+++ b/cli/src/engines/inProcess.ts@@ -27,6 +27,8 @@ const MODULES = {/** Their pane and dialog readers, the twelve in one: lib/legacyScreen.ts with lib/legacyPane.ts,* lib/questionPane.ts and the eight `askQuestion.ts`. A pane is read on every poll of one of their sessions. */screens: () => import('../lib/legacyScreen.js'),+ /** Their hook installers, eleven in one file (lib/hooks.ts): run once, as the core starts. */+ hooks: () => import('../lib/hooks.js'),}export type InProcessModules = { [Name in keyof typeof MODULES]: Awaited<ReturnType<(typeof MODULES)[Name]>> }diff --git a/cli/src/engines/otherHooks.golden.spec.ts b/cli/src/engines/otherHooks.golden.spec.tsnew file mode 100644index 000000000..abd4925bd--- /dev/null+++ b/cli/src/engines/otherHooks.golden.spec.ts@@ -0,0 +1,371 @@+/**+ * What the core's start writes into the eleven other engines' settings and plugin files, byte for byte, in every+ * state those files are found in: recorded from main before their installers (lib/hooks.ts) left the core's+ * static imports (docs/design/2026-10-08-other-engines-out-of-core.md, (o2)). Each case installs twice through the+ * core's own entry, `installEngineHooks(port, { only })`, and keeps what each run logged and threw, and every+ * file left behind: its bytes, its mode, a symlink kept or replaced, a temporary file left over. These files+ * belong to a person's engines, which is why a change in any of it matters.+ *+ * Nothing of the host is in it. Every folder an installer reads or writes is under a throwaway root, named+ * through the environment and the notify script's path, both replaced by tokens; the umask is pinned, the+ * platform pinned to Linux (CI's), OpenCode's version answered by a script of the test's own, and Hermes has at+ * most one profile, since the order a folder lists in is the file system's.+ *+ * `RECORD_OTHER_ENGINES_GOLDEN=1` writes the fixture. Record it again only for a change meant to alter what lands+ * in one of these engines' files, and say so in that change.+ */+import { createHash } from 'node:crypto'+import { chmodSync, lstatSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, readlinkSync, realpathSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'+import { tmpdir } from 'node:os'+import { dirname, join, relative } from 'node:path'+import { fileURLToPath } from 'node:url'+import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'++const GOLDEN = fileURLToPath(new URL('./__fixtures__/other-hooks.golden.json', import.meta.url))+const RECORD = process.env.RECORD_OTHER_ENGINES_GOLDEN === '1'+const PORT = 19473+const OTHER_PORT = 19474+/** Permission cases mean nothing to root, which may write anywhere. */+const ROOT_USER = process.getuid?.() === 0++const VENDORS = ['cursor', 'opencode', 'kilo', 'pi', 'amp', 'hermes', 'devin', 'commandcode', 'grok', 'agy', 'copilot'] as const+type Vendor = (typeof VENDORS)[number]+/** How each vendor's file is written: settings that are JSON, YAML, or a plugin's source. */+const KIND: Record<Vendor, 'json' | 'yaml' | 'source'> = {+ cursor: 'json', opencode: 'source', kilo: 'source', pi: 'source', amp: 'source', hermes: 'yaml',+ devin: 'json', commandcode: 'json', grok: 'json', agy: 'json', copilot: 'json',+}++let root = ''+/** The file each vendor's installer owns, as the environment below places it. */+const targets = (): Record<Vendor, string> => {+ const home = join(root, 'home'), config = join(home, '.config')+ return {+ cursor: join(config, 'cursor', 'hooks.json'),+ opencode: join(config, 'opencode', 'plugins', 'launcher-register', 'tui.js'),+ kilo: join(config, 'kilo', 'plugin', 'launcher-register.js'),+ pi: join(home, '.pi', 'agent', 'extensions', 'launcher-register.ts'),+ amp: join(config, 'amp', 'plugins', 'launcher-register.ts'),+ hermes: join(home, '.hermes', 'config.yaml'),+ devin: join(config, 'devin', 'config.json'),+ commandcode: join(home, '.commandcode', 'settings.json'),+ grok: join(home, '.grok', 'hooks', 'harness.json'),+ agy: join(home, '.gemini', 'config', 'hooks.json'),+ copilot: join(home, '.copilot', 'hooks', 'harness.json'),+ }+}+/** OpenCode 1's plugin, which an OpenCode 2 install removes when it is ours. */+const opencodeLegacy = (): string => join(root, 'home', '.config', 'opencode', 'plugin', 'launcher-register.js')++/** A person's own content in the file, in the vendor's shape. */+const FOREIGN: Record<Vendor, string> = {+ cursor: pretty({ version: 1, note: 'café ✓', hooks: { sessionStart: [{ command: 'foreign-start' }], afterFileEdit: [{ command: 'foreign-edit' }] } }),+ devin: pretty({ devin: { org_id: 'org-1' }, theme_mode: 'dark', hooks: { SessionStart: [{ hooks: [{ type: 'command', command: 'foreign-start' }] }], PreToolUse: [{ matcher: 'Bash', hooks: [{ type: 'command', command: 'foreign-tool' }] }] } }),+ commandcode: pretty({ model: 'x', hooks: { SessionStart: [{ matcher: 'resume', hooks: [{ type: 'command', command: 'foreign-start', timeout: 9 }] }], PostToolUse: [{ hooks: [{ type: 'command', command: 'foreign-post' }] }] } }),+ grok: pretty({ hooks: { SessionStart: [{ hooks: [{ type: 'command', command: 'foreign-start' }] }], Stop: [{ hooks: [{ type: 'command', command: 'foreign-stop' }] }] } }),+ agy: pretty({ theirs: { enabled: true, Stop: [{ type: 'command', command: 'foreign-stop' }] } }),+ copilot: pretty({ version: 1, hooks: { sessionStart: [{ type: 'command', command: 'foreign-start' }] } }),+ hermes: 'model: anthropic/claude\ntoolsets:\n - web\n - terminal\n',+ opencode: '// someone else\'s plugin\nexport default {}\n',+ kilo: '// someone else\'s plugin\nexport default {}\n',+ pi: '// someone else\'s extension\nexport default function () {}\n',+ amp: '// someone else\'s plugin\nexport default function () {}\n',+}+function pretty(value: unknown): string { return JSON.stringify(value, null, 2) + '\n' }++interface Texts { current: string; otherPort: string; old: string }+interface Target { vendor: Vendor; file: string; home: string; elsewhere: string; texts: Texts }+interface Case { name: string; setup?: (target: Target) => void; noHome?: boolean; permissions?: boolean; vendors?: readonly Vendor[]; opencode?: 1 | 2 | null }++const write = (file: string, text: string, mode?: number): void => {+ mkdirSync(dirname(file), { recursive: true })+ writeFileSync(file, text)+ if (mode !== undefined) chmodSync(file, mode)+}+const minify = (text: string): string => { try { return JSON.stringify(JSON.parse(text)) } catch { return text.trim() } }++const CASES: Case[] = [+ { name: 'no file' },+ { name: 'no home folder', noHome: true },+ { name: 'empty file', setup: ({ file }) => write(file, '') },+ { name: 'whitespace only', setup: ({ file }) => write(file, ' \n') },+ { name: 'malformed JSON', setup: ({ file }) => write(file, '{not-json') },+ { name: 'byte order mark', setup: ({ file }) => write(file, '{}') },+ { name: 'JSON null', setup: ({ file }) => write(file, 'null') },+ { name: 'JSON array', setup: ({ file }) => write(file, '[]') },+ { name: 'JSON string', setup: ({ file }) => write(file, '"text"') },+ { name: 'JSON number', setup: ({ file }) => write(file, '42') },+ { name: 'hooks is a string', setup: ({ file }) => write(file, '{"hooks":"nope","keep":1}') },+ { name: 'hooks is an array', setup: ({ file }) => write(file, '{"hooks":[]}') },+ { name: 'hooks is null', setup: ({ file }) => write(file, '{"hooks":null}') },+ { name: 'foreign content', setup: ({ file, vendor }) => write(file, FOREIGN[vendor]) },+ { name: 'ours from an older install', setup: ({ file, texts }) => write(file, texts.old) },+ { name: 'ours current', setup: ({ file, texts }) => write(file, texts.current) },+ { name: 'ours current, minified', setup: ({ file, texts }) => write(file, minify(texts.current)) },+ { name: 'ours current for another port', setup: ({ file, texts }) => write(file, texts.otherPort) },+ {+ name: 'a symlink to foreign content', setup: ({ file, vendor, elsewhere }) => {+ write(join(elsewhere, 'real'), FOREIGN[vendor])+ mkdirSync(dirname(file), { recursive: true })+ symlinkSync(join(elsewhere, 'real'), file)+ },+ },+ {+ name: 'a symlink to current content', setup: ({ file, texts, elsewhere }) => {+ write(join(elsewhere, 'real'), texts.current)+ mkdirSync(dirname(file), { recursive: true })+ symlinkSync(join(elsewhere, 'real'), file)+ },+ },+ {+ name: 'a dangling symlink', setup: ({ file, elsewhere }) => {+ mkdirSync(elsewhere, { recursive: true })+ mkdirSync(dirname(file), { recursive: true })+ symlinkSync(join(elsewhere, 'missing'), file)+ },+ },+ {+ name: 'a symlink into a missing folder', setup: ({ file, elsewhere }) => {+ mkdirSync(dirname(file), { recursive: true })+ symlinkSync(join(elsewhere, 'gone', 'missing'), file)+ },+ },+ { name: 'a read-only file', permissions: true, setup: ({ file, vendor }) => write(file, FOREIGN[vendor], 0o444) },+ { name: 'a read-only file, current', permissions: true, setup: ({ file, texts }) => write(file, texts.current, 0o444) },+ { name: 'an unreadable file', permissions: true, setup: ({ file, vendor }) => write(file, FOREIGN[vendor], 0o200) },+ { name: 'a read-only folder', permissions: true, setup: ({ home }) => chmodSync(home, 0o555) },+ {+ name: 'a read-only folder holding a writable file', permissions: true, setup: ({ file, vendor, home }) => {+ write(file, FOREIGN[vendor])+ chmodSync(home, 0o555)+ },+ },+ { name: 'a private file', setup: ({ file, vendor }) => write(file, FOREIGN[vendor], 0o600) },+ { name: 'the file is a folder', setup: ({ file }) => mkdirSync(file, { recursive: true }) },+ {+ name: 'a temporary file left by this process', setup: ({ file, vendor }) => {+ write(file, FOREIGN[vendor])+ write(`${file}.${process.pid}.tmp`, 'junk', 0o600)+ },+ },+ // Hermes: a `hooks:` mapping of the person's own is left alone; a profile is hooked with its own home.+ {+ name: 'a foreign hooks mapping', vendors: ['hermes'],+ setup: ({ file }) => write(file, 'model: x\nhooks:\n on_session_start:\n - command: "foreign-hook"\n'),+ },+ {+ name: 'our block twice, the first old', vendors: ['hermes'],+ setup: ({ file, texts }) => write(file, `${texts.old}${texts.current.replace(/^[\s\S]*?(\n# machine-adapter: session discovery)/, '$1')}`),+ },+ {+ name: 'a profile with a config', vendors: ['hermes'],+ setup: ({ file, home }) => {+ write(file, 'model: x\n')+ write(join(home, 'profiles', 'work', 'config.yaml'), 'model: y\n')+ mkdirSync(join(home, 'profiles', 'empty'), { recursive: true })+ },+ },+ // OpenCode: which plugin depends on the installed generation, read from the binary.+ { name: 'OpenCode 1', vendors: ['opencode'], opencode: 1 },+ { name: 'OpenCode 1, ours current', vendors: ['opencode'], opencode: 1, setup: ({ file, texts }) => write(file, texts.current) },+ { name: 'no OpenCode installed', vendors: ['opencode'], opencode: null },+ {+ name: 'OpenCode 2 with our OpenCode 1 plugin left', vendors: ['opencode'],+ setup: () => write(opencodeLegacy(), legacyOpencodePlugin),+ },+ {+ name: 'OpenCode 2 with a foreign plugin where OpenCode 1\'s goes', vendors: ['opencode'],+ setup: () => write(opencodeLegacy(), FOREIGN.opencode),+ },+ {+ name: 'OpenCode 2 with a folder where OpenCode 1\'s plugin goes', vendors: ['opencode'],+ setup: () => mkdirSync(opencodeLegacy(), { recursive: true }),+ },+]++interface Run { logs: string[]; threw: string | null }+interface Entry { type: 'dir' | 'file' | 'link'; mode?: string; text?: string; target?: string }+interface Outcome { runs: Run[]; files: Record<string, Entry> }+interface Golden { texts: Record<string, string>; outcomes: Record<string, Outcome> }++const saved: Record<string, string | undefined> = {}+let installEngineHooks: (port: number, options: { only: ReadonlySet<string>; environment: NodeJS.ProcessEnv }) => unknown+let tokens: Array<[string, string]> = []+let legacyOpencodePlugin = ''+const texts = {} as Record<Vendor, Texts>+const golden: Golden = RECORD ? { texts: {}, outcomes: {} } : JSON.parse(readFileSync(GOLDEN, 'utf8')) as Golden+const recorded: Golden = { texts: {}, outcomes: {} }++const normalize = (text: string): string => tokens.reduce((out, [value, token]) => out.split(value).join(token), text)+const describeError = (error: unknown): string => {+ if (!(error instanceof Error)) return `thrown ${typeof error}`+ const { code, syscall, path, dest } = error as NodeJS.ErrnoException & { dest?: string }+ return [error.name, code, syscall, path && normalize(path), dest && normalize(dest)].filter(Boolean).join(' ')+}+/** A file's text, kept once in the golden however many cases leave it. */+const textRef = (text: string): string => {+ const key = createHash('sha256').update(text).digest('hex').slice(0, 16)+ recorded.texts[key] = text+ return key+}++/** Everything under the case's folders: what a person would find in their engines' homes afterwards. */+function snapshot(): Record<string, Entry> {+ const files: Record<string, Entry> = {}+ const walk = (dir: string): void => {+ let names: string[]+ try { names = readdirSync(dir).sort() } catch { return }+ for (const name of names) {+ const path = join(dir, name)+ const stat = lstatSync(path)+ const key = normalize(relative(root, path))+ if (stat.isSymbolicLink()) files[key] = { type: 'link', target: normalize(readlinkSync(path)) }+ else if (stat.isDirectory()) {+ files[key] = { type: 'dir', mode: (stat.mode & 0o777).toString(8) }+ walk(path)+ } else {+ const mode = stat.mode & 0o777+ // A file the person cannot read is still compared: read it for the record, then put its mode back.+ if (!(mode & 0o400)) chmodSync(path, mode | 0o400)+ const text = normalize(readFileSync(path, 'utf8'))+ if (!(mode & 0o400)) chmodSync(path, mode)+ files[key] = { type: 'file', mode: mode.toString(8), text: textRef(text) }+ }+ }+ }+ for (const top of ['home', 'elsewhere', join('data', 'amp-sessions')]) walk(join(root, top))+ return files+}++/** Give back write access everywhere, so that the next case starts from nothing. */+function reset(): void {+ const open = (path: string): void => {+ let stat+ try { stat = lstatSync(path) } catch { return }+ if (stat.isSymbolicLink()) return+ chmodSync(path, stat.isDirectory() ? 0o755 : 0o644)+ if (stat.isDirectory()) for (const name of readdirSync(path)) open(join(path, name))+ }+ for (const top of ['home', 'elsewhere', join('data', 'amp-sessions')]) {+ open(join(root, top))+ rmSync(join(root, top), { recursive: true, force: true })+ }+ mkdirSync(join(root, 'home'), { recursive: true })+}++/** The OpenCode the installer asks for its version: the test's own script, answering as `major` would. */+function opencode(major: 1 | 2 | null): void {+ const bin = join(root, 'bin', 'opencode')+ rmSync(bin, { force: true })+ if (major === null) return+ write(bin, `#!/bin/sh\necho "${major === 1 ? '1.18.31' : 'opencode v2.0.18'}"\n`, 0o755)+}++async function install(vendor: Vendor, port: number): Promise<Run> {+ const logs: string[] = []+ const capture = (level: string) => (...args: unknown[]) => {+ logs.push(`${level} ${args.map((arg) => typeof arg === 'string' ? normalize(arg) : describeError(arg)).join(' ')}`)+ }+ const spies = [vi.spyOn(console, 'log').mockImplementation(capture('log')), vi.spyOn(console, 'error').mockImplementation(capture('error')),+ vi.spyOn(console, 'warn').mockImplementation(capture('warn'))]+ let threw: string | null = null+ try { await installEngineHooks(port, { only: new Set([vendor]), environment: {} }) }+ catch (error) { threw = describeError(error) } finally { for (const spy of spies) spy.mockRestore() }+ return { logs, threw }+}++async function run(vendor: Vendor, scenario: Case): Promise<Outcome> {+ reset()+ opencode(scenario.opencode === undefined ? 2 : scenario.opencode)+ const file = targets()[vendor]+ const home = dirname(file)+ if (!scenario.noHome) mkdirSync(home, { recursive: true })+ scenario.setup?.({ vendor, file, home, elsewhere: join(root, 'elsewhere'), texts: texts[vendor] })+ const runs: Run[] = []+ for (let i = 0; i < 2; i++) runs.push(await install(vendor, PORT))+ return { runs, files: snapshot() }+}++/** What an install writes into a clean home for `port`: the current file, read raw. */+async function installed(vendor: Vendor, port: number, major: 1 | 2 = 2): Promise<string> {+ reset()+ opencode(major)+ const file = vendor === 'opencode' && major === 1 ? opencodeLegacy() : targets()[vendor]+ if (vendor === 'hermes') write(file, 'model: x\n')+ await install(vendor, port)+ return readFileSync(file, 'utf8')+}++const platform = Object.getOwnPropertyDescriptor(process, 'platform')!+beforeAll(async () => {+ // A path the installers print may be the resolved one: macOS's temporary folder is a symlink.+ root = realpathSync(mkdtempSync(join(tmpdir(), 'other-hooks-golden-')))+ Object.defineProperty(process, 'platform', { ...platform, value: 'linux' })+ const home = join(root, 'home')+ const env: Record<string, string | undefined> = {+ HOME: home, XDG_CONFIG_HOME: join(home, '.config'), XDG_DATA_HOME: join(home, '.local', 'share'),+ ADAPTER_DATA_DIR: join(root, 'data'), ADAPTER_RUNTIME_DIR: join(root, 'runtime'), CODEX_HOME: join(home, '.codex'),+ OPENCODE_PATH: join(root, 'bin', 'opencode'),+ }+ // Every home an engine may be told of by the environment this runs in, the person's or CI's: the defaults instead.+ for (const name of ['CLAUDE_PROJECTS_DIR', 'CLAUDE_CONFIG_DIR', 'GROK_HOME', 'AGY_HOME', 'AGY_CONFIG_DIR', 'COPILOT_HOME', 'CURSOR_HOME',+ 'CURSOR_CONFIG_DIR', 'CURSOR_DATA_DIR', 'OPENCODE_PLUGIN_DIR', 'KILO_PLUGIN_DIR', 'PI_HOME', 'HERMES_HOME', 'COMMANDCODE_HOME', 'DEVIN_HOME',+ 'DEVIN_CONFIG_PATH', 'AMP_PLUGIN_DIR', 'AMP_SESSIONS_DIR', 'MUSE_CONFIG_DIR', 'HOOK_INSTALL_ENGINES', 'DISABLE_HOOK_INSTALL']) env[name] = undefined+ for (const [name, value] of Object.entries(env)) {+ saved[name] = process.env[name]+ if (value === undefined) delete process.env[name]; else process.env[name] = value+ }+ mkdirSync(join(root, 'data'), { recursive: true })+ mkdirSync(join(root, 'runtime'), { recursive: true })+ vi.resetModules()+ ;({ installEngineHooks } = await import('../core/engines/hooks.js') as unknown as { installEngineHooks: typeof installEngineHooks })+ const notify = await import('./kit/notifyHooks.js')+ const { VERSION } = await import('../version.js')+ // Longest first: the root is in every other path.+ tokens = [[notify.HOOK_SCRIPT, '<script>'], [process.execPath, '<node>'], [root, '<root>'], [`.${process.pid}.`, '.<pid>.'], [`"${VERSION}"`, '"<version>"']]+ const previous = process.umask(0o022)+ try {+ for (const vendor of VENDORS) {+ const current = await installed(vendor, PORT)+ const otherPort = await installed(vendor, OTHER_PORT)+ // An older install: another notify script, another data folder, as a release that moved would have left.+ const old = otherPort.split(notify.HOOK_SCRIPT).join('/opt/old/notify.mjs').split(join(root, 'data')).join('/opt/old/data')+ texts[vendor] = { current, otherPort, old }+ }+ legacyOpencodePlugin = await installed('opencode', PORT, 1)+ } finally { process.umask(previous) }+})++afterAll(() => {+ Object.defineProperty(process, 'platform', platform)+ for (const [name, value] of Object.entries(saved)) if (value === undefined) delete process.env[name]; else process.env[name] = value+ if (root) { reset(); rmSync(root, { recursive: true, force: true }) }+ if (RECORD) writeFileSync(GOLDEN, JSON.stringify(recorded, null, 1) + '\n')+})++const casesFor = (vendor: Vendor): Case[] => CASES.filter((one) => !one.vendors || one.vendors.includes(vendor))++describe.each(VENDORS)('%s\'s hooks, installed by the core, byte for byte', (vendor) => {+ for (const scenario of casesFor(vendor)) {+ const key = `${vendor}: ${scenario.name}`+ it.skipIf(scenario.permissions && ROOT_USER)(key, async () => {+ const previous = process.umask(0o022)+ try {+ const outcome = await run(vendor, scenario)+ recorded.outcomes[key] = outcome+ if (!RECORD) {+ const expected = golden.outcomes[key]+ const files = (outcome: Outcome, table: Record<string, string>) => Object.fromEntries(Object.entries(outcome.files)+ .map(([path, entry]) => [path, entry.text ? { ...entry, text: table[entry.text] } : entry]))+ expect({ runs: outcome.runs, files: files(outcome, recorded.texts) }).toEqual({ runs: expected?.runs, files: expected && files(expected, golden.texts) })+ }+ } finally { process.umask(previous) }+ })+ }+})++it('has a recorded outcome for every case, and no other', () => {+ if (RECORD) return+ const expected = VENDORS.flatMap((vendor) => casesFor(vendor).filter((one) => !(one.permissions && ROOT_USER)).map((one) => `${vendor}: ${one.name}`))+ expect(Object.keys(golden.outcomes).filter((key) => ROOT_USER ? expected.includes(key) : true).sort()).toEqual(expected.sort())+})diff --git a/cli/src/leanEntry.spec.ts b/cli/src/leanEntry.spec.tsindex 00debc95c..2bb94601a 100644--- a/cli/src/leanEntry.spec.ts+++ b/cli/src/leanEntry.spec.ts@@ -87,11 +87,14 @@ describe('the lean bundle a release carries', () => {}})- it('leaves the other engines\' pane readers out of the core until one of their sessions needs them', () => {+ it.each([+ // Each a string its module alone holds: lib/questionPane.ts's, and lib/hooks.ts's (its Amp plugin's).+ ['pane readers', 'legacyScreen', 'Native screen reader must be injected'],+ ['hook installers', 'hooks', 'Mirrors this Amp thread to the machine adapter'],+ ])('leaves the other engines\' %s out of the core until it needs them', (_, module, marker) => {// engines/inProcess.ts imports them (docs/design/2026-10-08-other-engines-out-of-core.md): a file of the- // core's own, which Node reads only then. The string is lib/questionPane.ts's alone.- const marker = 'Native screen reader must be injected'- expect([...files.keys()].filter((name) => name.startsWith('core-legacyScreen-'))).toHaveLength(1)+ // core's own, which Node reads only then.+ expect([...files.keys()].filter((name) => name.startsWith(`core-${module}-`))).toHaveLength(1)expect([...files].some(([name, code]) => name.startsWith('core-') && code.includes(marker))).toBe(true)expect([...loads('core')].filter((name) => files.get(name)!.includes(marker))).toEqual([])})