@moxxy/agent-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.
@@ -0,0 +1,6 @@
1
+ import {
2
+ createProgram
3
+ } from "./chunk-SEOH5HLK.mjs";
4
+ export {
5
+ createProgram
6
+ };
@@ -0,0 +1,39 @@
1
+ import { Command } from 'commander';
2
+ import { AgentCLICommandDef, AgentCommandResult } from '@moxxy/types';
3
+
4
+ declare function createProgram(): Command;
5
+
6
+ interface IAgentPlugin {
7
+ readonly name: string;
8
+ readonly version: string;
9
+ readonly description: string;
10
+ register(program: Command): void;
11
+ getCommands(): AgentCLICommandDef[];
12
+ }
13
+
14
+ declare class PluginRegistry {
15
+ private plugins;
16
+ register(plugin: IAgentPlugin): void;
17
+ get(name: string): IAgentPlugin | undefined;
18
+ getAll(): IAgentPlugin[];
19
+ has(name: string): boolean;
20
+ }
21
+
22
+ declare function success(command: string, data: unknown, startTime: number): AgentCommandResult;
23
+ declare function failure(command: string, code: string, message: string, startTime: number, details?: string): AgentCommandResult;
24
+ declare function output(result: AgentCommandResult): void;
25
+ declare function log(message: string): void;
26
+
27
+ interface WorkspaceContext {
28
+ cwd: string;
29
+ isGitRepo: boolean;
30
+ branch?: string;
31
+ packageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun';
32
+ repoRoot?: string;
33
+ }
34
+ declare function detectWorkspace(cwd: string): Promise<WorkspaceContext>;
35
+ declare function getContext(): WorkspaceContext | null;
36
+
37
+ declare function run(): Promise<void>;
38
+
39
+ export { type IAgentPlugin, PluginRegistry, type WorkspaceContext, createProgram, detectWorkspace, failure, getContext, log, output, run, success };
@@ -0,0 +1,39 @@
1
+ import { Command } from 'commander';
2
+ import { AgentCLICommandDef, AgentCommandResult } from '@moxxy/types';
3
+
4
+ declare function createProgram(): Command;
5
+
6
+ interface IAgentPlugin {
7
+ readonly name: string;
8
+ readonly version: string;
9
+ readonly description: string;
10
+ register(program: Command): void;
11
+ getCommands(): AgentCLICommandDef[];
12
+ }
13
+
14
+ declare class PluginRegistry {
15
+ private plugins;
16
+ register(plugin: IAgentPlugin): void;
17
+ get(name: string): IAgentPlugin | undefined;
18
+ getAll(): IAgentPlugin[];
19
+ has(name: string): boolean;
20
+ }
21
+
22
+ declare function success(command: string, data: unknown, startTime: number): AgentCommandResult;
23
+ declare function failure(command: string, code: string, message: string, startTime: number, details?: string): AgentCommandResult;
24
+ declare function output(result: AgentCommandResult): void;
25
+ declare function log(message: string): void;
26
+
27
+ interface WorkspaceContext {
28
+ cwd: string;
29
+ isGitRepo: boolean;
30
+ branch?: string;
31
+ packageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun';
32
+ repoRoot?: string;
33
+ }
34
+ declare function detectWorkspace(cwd: string): Promise<WorkspaceContext>;
35
+ declare function getContext(): WorkspaceContext | null;
36
+
37
+ declare function run(): Promise<void>;
38
+
39
+ export { type IAgentPlugin, PluginRegistry, type WorkspaceContext, createProgram, detectWorkspace, failure, getContext, log, output, run, success };