Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(api): cover export and import [A1,A7]
Corey Olsonf771f856ca44
diff --git a/src/cli.js b/src/cli.jsindex eb6b1742..1e109622 100644--- a/src/cli.js+++ b/src/cli.js@@ -811,8 +811,8 @@ function readCommands(io, { first, second, rest, values }) {}const ctx = context(io);const imported = withBoard(ctx, (board) => importBoard(board, document));- if (typeof io.result === 'function') io.result({ tables: imported.tables });- else io.say(`imported version ${document.version} board tables: ${imported.tables.join(', ')}`);+ io.result?.({ tables: imported.tables });+ io.say(`imported version ${document.version} board tables: ${imported.tables.join(', ')}`);return 0;},resume: () => resumeHere(io),diff --git a/src/json.js b/src/json.jsindex 84169483..e52bea92 100644--- a/src/json.js+++ b/src/json.js@@ -49,6 +49,8 @@ export const JSON_SHAPES = {forget: shape({ root: 'string' }),prompt: shape({ role: 'string', text: 'string' }),gate: shape({ green: 'boolean', report: 'string' }),+ export: shape({ tables: 'object' }),+ import: shape({ tables: 'array' }),spec: shape({ rows: 'array' }),'spec check': shape({ rows: 'array' }),'spec view': shape({ path: 'string' }),diff --git a/test/api.test.js b/test/api.test.jsindex abc35bda..7970a8a9 100644--- a/test/api.test.js+++ b/test/api.test.js@@ -363,6 +363,17 @@ test('[A1] view flushes one JSON document before shutdown', async (t) => {});test('[A1] every catalog command and subcommand has a real CLI exercise', () => {+ const source = project();+ const target = project();+ const document = json(source, source.repo, 'export');+ const file = join(source.dir, 'board.json');+ writeFileSync(file, JSON.stringify(document));+ json(source, target.repo, 'import', [file]);+ const humanTarget = project();+ const humanImport = source.run(humanTarget.repo, 'import', file);+ assert.equal(humanImport.status, 0, humanImport.stderr || humanImport.stdout);+ assert.match(humanImport.stdout, /imported version 1 board tables/);+const missing = Object.keys(JSON_SHAPES.commands).filter((key) => !covered.has(key));assert.deepEqual(missing, [], `add real-repo invocations for undocumented coverage gaps: ${missing.join(', ')}`);assert.deepEqual([...coveredRoots].sort(), resultCommands(), 'every actual root/factory command has an invocation');