@longzai-intelligence-issues/cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +33 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/rolldown-runtime-DCIJsbUY.js +2 -0
- package/lzi-builder.config.ts +12 -0
- package/lzi-bun.config.ts +6 -0
- package/oxlint.config.ts +3 -0
- package/package.json +46 -0
- package/src/commands/close.commands.ts +257 -0
- package/src/commands/context.utils.ts +108 -0
- package/src/commands/gate.commands.ts +259 -0
- package/src/commands/index.ts +29 -0
- package/src/commands/issue.commands.ts +252 -0
- package/src/commands/scaffold.commands.ts +140 -0
- package/src/index.ts +31 -0
- package/tsconfig/.cache/build.tsbuildinfo +1 -0
- package/tsconfig/.cache/node.tsbuildinfo +1 -0
- package/tsconfig/.cache/test.tsbuildinfo +1 -0
- package/tsconfig/app.json +13 -0
- package/tsconfig/build.json +15 -0
- package/tsconfig/node.json +12 -0
- package/tsconfig/test.json +15 -0
- package/tsconfig.json +23 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Command } from '@longzai-intelligence-cli/core';
|
|
2
|
+
|
|
3
|
+
import { createCli } from '@longzai-intelligence-cli/core';
|
|
4
|
+
import { clackInteraction, picocolorsColor } from '@longzai-intelligence-cli/standard';
|
|
5
|
+
|
|
6
|
+
import { registerCommands } from '@/commands/index.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* CLI 主入口(bin: lzi-issues)
|
|
10
|
+
*
|
|
11
|
+
* 命令面:init / template / create / list / show / lint / numbering /
|
|
12
|
+
* docs / verify-close / freeze / unfreeze / normalize-header / health /
|
|
13
|
+
* triage / prompts。判据口径:exit 0 过 / 1 违规 / 2 门禁拦截。
|
|
14
|
+
*/
|
|
15
|
+
async function main(): Promise<void> {
|
|
16
|
+
/**
|
|
17
|
+
* CLI 程序实例
|
|
18
|
+
*/
|
|
19
|
+
const program: Command = createCli({
|
|
20
|
+
name: 'lzi-issues',
|
|
21
|
+
description: 'Longzai Intelligence Issues CLI(文件化注册表 · Local First)',
|
|
22
|
+
interaction: clackInteraction,
|
|
23
|
+
color: picocolorsColor,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
registerCommands(program);
|
|
27
|
+
|
|
28
|
+
await program.parseAsync(process.argv);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
await main();
|