refactor: named exports (run + descriptor), remove build pipeline

- Bundle contract: export const run + export const descriptor (no default export)
- add only accepts .esm.js, extracts descriptor via dynamic import → .yaml
- Removed: build-pipeline, generate-types, json-schema-to-ts
- Worker loads mod.run instead of mod.default
- Biome: no more noDefaultExport overrides for bundles
- 62 tests pass, biome clean

Closes #8
小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-06 06:39:15 +00:00
parent e670047e6a
commit 3467b772e6
27 changed files with 597 additions and 770 deletions
@@ -1,9 +1,5 @@
import type { ParsedAddArgv } from "../src/add-argv.js";
export const MINIMAL_DESCRIPTOR_YAML = `description: "fixture"
roles: {}
`;
import type { ParsedAddArgv } from "../src/cmd-add.js";
export function addCliArgs(name: string, filePath: string): ParsedAddArgv {
return { name, filePath, descriptorPath: null, typesPath: null };
return { name, filePath, typesPath: null };
}