bailian-cli-runtime 2.6.0 → 2.6.2
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/dist/index.d.mts +2 -0
- package/dist/index.mjs +40 -40
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -30,6 +30,8 @@ interface CliOptions {
|
|
|
30
30
|
interface Cli {
|
|
31
31
|
run(argv?: string[]): Promise<void>;
|
|
32
32
|
}
|
|
33
|
+
/** 临时接管 Ctrl-C,由命令中断异步工作并完成清理;必须在 finally 中调用返回的释放函数。 */
|
|
34
|
+
export declare function registerInterruptHandler(handler: () => void): () => void;
|
|
33
35
|
/**
|
|
34
36
|
* Build a CLI from an injected command set — each product (bl / rag / …) passes
|
|
35
37
|
* its own commands + identity. `run` resolves argv into a {@link Resolution},
|