@dexto/image-bundler
v1.6.20
Published
Bundler for Dexto base images
Readme
@dexto/image-bundler
Bundler for convention-based Dexto images.
It consumes a dexto.image.ts (metadata + defaults) and a convention folder layout (tools/storage/hooks/compaction),
then produces a distributable package that default-exports a typed DextoImage (no side effects, no registries).
CLI
This package ships a CLI:
dexto-bundle build --image dexto.image.ts --out distOutputs:
dist/index.js(default export:DextoImage)dist/index.d.ts(types)- compiled convention folders under
dist/
Convention folders
Each <type>/index.ts must export a factory constant with { configSchema, create }:
tools/<type>/index.ts
storage/blob/<type>/index.ts
storage/database/<type>/index.ts
storage/cache/<type>/index.ts
hooks/<type>/index.ts
compaction/<type>/index.tsGenerated image contract
The generated default export matches @dexto/agent-config’s DextoImage interface:
metadata+ optionaldefaultstools,storage.*,hooks,compactionfactory maps (keyed by configtype)loggerfactory
Related
dexto create-image(CLI scaffold that uses this bundler)@dexto/agent-config(image loading + config→services resolver)
