Initial commit: pi-project-map skill scaffolding
- Design doc with full spec (dense markdown format, hybrid AST+LLM pipeline, consumption model, stale data mitigation) - Implementation plan with 6 milestones and rollout strategy - TypeScript package structure with all source stubs - CLI entry point, formatter, discover, init, patch, validate, extract, merge - Pi SKILL.md with tool definitions and format documentation
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env node
|
||||
import { initProject } from './init.js';
|
||||
import { patchFile } from './patch.js';
|
||||
import { validateMaps } from './validate.js';
|
||||
import { reinitPath } from './init.js';
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
const command = args[0];
|
||||
|
||||
async function main() {
|
||||
switch (command) {
|
||||
case 'init':
|
||||
await initProject(args[1] || '.');
|
||||
break;
|
||||
case 'patch':
|
||||
await patchFile(args[1]);
|
||||
break;
|
||||
case 'validate': {
|
||||
const result = await validateMaps(args[1] || '.');
|
||||
process.exit(result.clean ? 0 : 1);
|
||||
break;
|
||||
}
|
||||
case 'reinit':
|
||||
await reinitPath(args[1] || '.');
|
||||
break;
|
||||
default:
|
||||
console.log(`Usage: project-map <init|patch|validate|reinit> [path]`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user