@kb-labs/cli-commands 1.1.0 → 2.2.0
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.ts +5 -3
- package/dist/index.js +504 -1736
- package/dist/index.js.map +1 -1
- package/package.json +26 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManifestV3 } from '@kb-labs/plugin-contracts';
|
|
2
|
-
import {
|
|
2
|
+
import { ILogger } from '@kb-labs/core-platform';
|
|
3
3
|
export { TimingTracker } from '@kb-labs/shared-cli-ui';
|
|
4
4
|
import * as _kb_labs_shared_command_kit from '@kb-labs/shared-command-kit';
|
|
5
5
|
|
|
@@ -13,6 +13,7 @@ interface CommandManifest {
|
|
|
13
13
|
id: string;
|
|
14
14
|
aliases?: string[];
|
|
15
15
|
group: string;
|
|
16
|
+
subgroup?: string;
|
|
16
17
|
describe: string;
|
|
17
18
|
longDescription?: string;
|
|
18
19
|
requires?: string[];
|
|
@@ -123,6 +124,7 @@ interface CommandGroup {
|
|
|
123
124
|
name: string;
|
|
124
125
|
describe?: string;
|
|
125
126
|
commands: Command[];
|
|
127
|
+
subgroups?: CommandGroup[];
|
|
126
128
|
}
|
|
127
129
|
interface CommandRegistry {
|
|
128
130
|
register(cmd: Command): void;
|
|
@@ -185,14 +187,14 @@ declare function findCommand(nameOrPath: string | string[]): Command | CommandGr
|
|
|
185
187
|
*
|
|
186
188
|
* Use this in bootstrap.ts to determine execution path:
|
|
187
189
|
* - type='system' → execute via cmd.run() in-process
|
|
188
|
-
* - type='plugin' → execute via
|
|
190
|
+
* - type='plugin' → execute via executePlugin() in plugin-executor
|
|
189
191
|
*/
|
|
190
192
|
declare function findCommandWithType(nameOrPath: string | string[]): CommandLookupResult | undefined;
|
|
191
193
|
|
|
192
194
|
interface RegisterBuiltinCommandsInput {
|
|
193
195
|
cwd?: string;
|
|
194
196
|
env?: NodeJS.ProcessEnv;
|
|
195
|
-
logger?:
|
|
197
|
+
logger?: ILogger;
|
|
196
198
|
}
|
|
197
199
|
declare function registerBuiltinCommands(input?: RegisterBuiltinCommandsInput): Promise<void>;
|
|
198
200
|
|