What happened
agent-bundle.config.ts:
bin: { hauler: './src/scripts/hauler.ts' },
src/scripts/hauler.ts is a conventional script route (the hooks rewrite target scripts/hauler.mjs). Because configClaimedSources() treats a bin entry as a claim, the module is filtered out of route discovery entirely: inspect --json shows model.packageBuild.bins containing hauler but model.scripts: [], and the host artifact has no scripts/hauler.mjs. No diagnostic is emitted — the file just stops shipping.
The fix was to also declare it explicitly:
scripts: { hauler: './src/scripts/hauler.ts' },
bin: { hauler: './src/scripts/hauler.ts' },
Ask
Either keep bin-claimed src/scripts/* modules in script discovery (a bin and an artifact script are not mutually exclusive — this is exactly the "same entry, npm bin + hook target" case), or emit a diagnostic when a conventional src/scripts module is claimed by bin alone so the disappearance is visible.
Also observed: simulateHook() from agent-bundle/api takes ~7 s per call on this machine (each call appears to re-prepare the project); the generated wrappers themselves answer in ~0.5 s. Three simulate calls blow a default 30 s test timeout. Caching the prepared project across calls in one process would help consumer test suites.
Pin: agent-bundle@105c65d8f.
What happened
agent-bundle.config.ts:src/scripts/hauler.tsis a conventional script route (thehooksrewrite targetscripts/hauler.mjs). BecauseconfigClaimedSources()treats abinentry as a claim, the module is filtered out of route discovery entirely:inspect --jsonshowsmodel.packageBuild.binscontaininghaulerbutmodel.scripts: [], and the host artifact has noscripts/hauler.mjs. No diagnostic is emitted — the file just stops shipping.The fix was to also declare it explicitly:
Ask
Either keep
bin-claimedsrc/scripts/*modules in script discovery (a bin and an artifact script are not mutually exclusive — this is exactly the "same entry, npm bin + hook target" case), or emit a diagnostic when a conventionalsrc/scriptsmodule is claimed bybinalone so the disappearance is visible.Also observed:
simulateHook()fromagent-bundle/apitakes ~7 s per call on this machine (each call appears to re-prepare the project); the generated wrappers themselves answer in ~0.5 s. Three simulate calls blow a default 30 s test timeout. Caching the prepared project across calls in one process would help consumer test suites.Pin:
agent-bundle@105c65d8f.