feat(插件): 新增产品需求提交 Skill
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
import { normalize, preview, readStdin, tokens } from './intake-lib.mjs';
|
||||
|
||||
try {
|
||||
const value = normalize(await readStdin());
|
||||
console.log(JSON.stringify({ ok: true, preview: preview(value), ...tokens(value) }, null, 2));
|
||||
} catch (error) {
|
||||
console.error(JSON.stringify({ ok: false, error: error instanceof Error ? error.message : '未知错误' }));
|
||||
process.exitCode = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user