@agentbrain/cli 1.4.62 → 1.4.64

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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1,46 @@
1
+ import { describe, it, expect } from '@jest/globals';
2
+ describe('CLI entry point', () => {
3
+ it('exports are available', async () => {
4
+ // Just verify the module can be imported
5
+ // (actual CLI execution is tested via integration)
6
+ expect(true).toBe(true);
7
+ });
8
+ });
9
+ describe('CLI command registration', () => {
10
+ it('registers doctor command', async () => {
11
+ const { createDoctorCommand } = await import('../commands/doctor.js');
12
+ const cmd = createDoctorCommand();
13
+ expect(cmd.name()).toBe('doctor');
14
+ });
15
+ it('registers init command', async () => {
16
+ const { createInitCommand } = await import('../commands/init.js');
17
+ const cmd = createInitCommand();
18
+ expect(cmd.name()).toBe('init');
19
+ });
20
+ it('registers setup command', async () => {
21
+ const { createSetupCommand } = await import('../commands/setup.js');
22
+ const cmd = createSetupCommand();
23
+ expect(cmd.name()).toBe('setup');
24
+ });
25
+ it('registers config command', async () => {
26
+ const { createConfigCommand } = await import('../commands/config.js');
27
+ const cmd = createConfigCommand();
28
+ expect(cmd.name()).toBe('config');
29
+ });
30
+ it('registers standards command', async () => {
31
+ const { createStandardsCommand } = await import('../commands/standards.js');
32
+ const cmd = createStandardsCommand();
33
+ expect(cmd.name()).toBe('standards');
34
+ });
35
+ it('registers handoff command', async () => {
36
+ const { createHandoffCommand } = await import('../commands/handoff.js');
37
+ const cmd = createHandoffCommand();
38
+ expect(cmd.name()).toBe('handoff');
39
+ });
40
+ it('registers disable command', async () => {
41
+ const { createDisableCommand } = await import('../commands/disable.js');
42
+ const cmd = createDisableCommand();
43
+ expect(cmd.name()).toBe('disable');
44
+ });
45
+ });
46
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests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
+ import { describe, it, expect } from '@jest/globals';
2
+ import { createDoctorCommand } from '../doctor.js';
3
+ describe('doctor command', () => {
4
+ it('exports createDoctorCommand function', () => {
5
+ expect(createDoctorCommand).toBeDefined();
6
+ expect(typeof createDoctorCommand).toBe('function');
7
+ });
8
+ it('creates command with correct name', () => {
9
+ const cmd = createDoctorCommand();
10
+ expect(cmd.name()).toBe('doctor');
11
+ });
12
+ it('has description', () => {
13
+ const cmd = createDoctorCommand();
14
+ expect(cmd.description()).toContain('diagnostic');
15
+ expect(cmd.description().length).toBeGreaterThan(10);
16
+ });
17
+ it('has --path option', () => {
18
+ const cmd = createDoctorCommand();
19
+ const pathOpt = cmd.options.find((o) => o.long === '--path');
20
+ expect(pathOpt).toBeDefined();
21
+ expect(pathOpt?.description).toContain('path');
22
+ });
23
+ it('has --fix option', () => {
24
+ const cmd = createDoctorCommand();
25
+ const fixOpt = cmd.options.find((o) => o.long === '--fix');
26
+ expect(fixOpt).toBeDefined();
27
+ expect(fixOpt?.description).toContain('fix');
28
+ });
29
+ it('has --json option', () => {
30
+ const cmd = createDoctorCommand();
31
+ const jsonOpt = cmd.options.find((o) => o.long === '--json');
32
+ expect(jsonOpt).toBeDefined();
33
+ expect(jsonOpt?.description).toContain('JSON');
34
+ });
35
+ it('has no required arguments', () => {
36
+ const cmd = createDoctorCommand();
37
+ const requiredArgs = cmd.registeredArguments.filter((a) => a.required);
38
+ expect(requiredArgs.length).toBe(0);
39
+ });
40
+ it('has action handler', () => {
41
+ const cmd = createDoctorCommand();
42
+ // Commander stores action in _actionHandler
43
+ expect(cmd._actionHandler).toBeDefined();
44
+ });
45
+ });
46
+ //# sourceMappingURL=doctor.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.test.js","sourceRoot":"","sources":["../../../src/commands/__tests__/doctor.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE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-0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createConfigCommand(): Command;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createDisableCommand(): Command;
3
+ //# sourceMappingURL=disable.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createDoctorCommand(): Command;
3
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createHandoffCommand(): Command;
3
+ //# sourceMappingURL=handoff.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createInitCommand(): Command;
3
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createSetupCommand(): Command;
3
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createStandardsCommand(): Command;
3
+ //# sourceMappingURL=standards.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function createStatusCommand(): Command;
3
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1,57 @@
1
+ import type { FileEntry, CostEstimate } from '@agentbrain/core';
2
+ /**
3
+ * Display welcome banner
4
+ */
5
+ export declare function displayBanner(): void;
6
+ /**
7
+ * Display success message
8
+ */
9
+ export declare function success(message: string): void;
10
+ /**
11
+ * Display error message
12
+ */
13
+ export declare function error(message: string): void;
14
+ /**
15
+ * Display info message
16
+ */
17
+ export declare function info(message: string): void;
18
+ /**
19
+ * Display warning message
20
+ */
21
+ export declare function warn(message: string): void;
22
+ /**
23
+ * Create a spinner
24
+ */
25
+ export declare function spinner(text: string): import("ora").Ora;
26
+ /**
27
+ * Display file table
28
+ */
29
+ export declare function displayFileTable(files: FileEntry[], maxRows?: number): void;
30
+ /**
31
+ * Display cost estimate with 1.4x buffer for accuracy
32
+ */
33
+ export declare function displayCostEstimate(estimate: CostEstimate): void;
34
+ /**
35
+ * Display actual cost after generation
36
+ */
37
+ export declare function displayActualCost(tokens: number, usd: number): void;
38
+ /**
39
+ * Display generated files summary
40
+ */
41
+ export declare function displayGeneratedFiles(files: Array<{
42
+ name: string;
43
+ description: string;
44
+ }>): void;
45
+ /**
46
+ * Display next steps
47
+ */
48
+ export declare function displayNextSteps(steps: string[]): void;
49
+ /**
50
+ * Display provider info
51
+ */
52
+ export declare function displayProviderInfo(provider: string, models: {
53
+ fast: string;
54
+ mid: string;
55
+ smart: string;
56
+ }): void;
57
+ //# sourceMappingURL=display.d.ts.map
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentbrain/cli",
3
- "version": "1.4.62",
3
+ "version": "1.4.64",
4
4
  "description": "CLI for AgentBrain - generate smart context documentation for coding agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",