@kernel.chat/kbot 2.23.2 → 2.25.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/pair.d.ts +81 -0
- package/dist/pair.d.ts.map +1 -0
- package/dist/pair.js +993 -0
- package/dist/pair.js.map +1 -0
- package/dist/plugin-sdk.d.ts +136 -0
- package/dist/plugin-sdk.d.ts.map +1 -0
- package/dist/plugin-sdk.js +946 -0
- package/dist/plugin-sdk.js.map +1 -0
- package/dist/record.d.ts +174 -0
- package/dist/record.d.ts.map +1 -0
- package/dist/record.js +1182 -0
- package/dist/record.js.map +1 -0
- package/dist/team.d.ts +106 -0
- package/dist/team.d.ts.map +1 -0
- package/dist/team.js +917 -0
- package/dist/team.js.map +1 -0
- package/dist/tools/database.d.ts +2 -0
- package/dist/tools/database.d.ts.map +1 -0
- package/dist/tools/database.js +751 -0
- package/dist/tools/database.js.map +1 -0
- package/dist/tools/deploy.d.ts +2 -0
- package/dist/tools/deploy.d.ts.map +1 -0
- package/dist/tools/deploy.js +824 -0
- package/dist/tools/deploy.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +13 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/mcp-marketplace.d.ts +2 -0
- package/dist/tools/mcp-marketplace.d.ts.map +1 -0
- package/dist/tools/mcp-marketplace.js +759 -0
- package/dist/tools/mcp-marketplace.js.map +1 -0
- package/dist/tools/training.d.ts +2 -0
- package/dist/tools/training.d.ts.map +1 -0
- package/dist/tools/training.js +2313 -0
- package/dist/tools/training.js.map +1 -0
- package/package.json +35 -3
package/dist/pair.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
export interface PairOptions {
|
|
3
|
+
/** Directory to watch (default: cwd) */
|
|
4
|
+
path?: string;
|
|
5
|
+
/** Only show errors, suppress suggestions */
|
|
6
|
+
quiet?: boolean;
|
|
7
|
+
/** Automatically apply safe fixes (unused imports, formatting) */
|
|
8
|
+
autoFix?: boolean;
|
|
9
|
+
/** Sound terminal bell on errors */
|
|
10
|
+
bell?: boolean;
|
|
11
|
+
/** Override which checks to run */
|
|
12
|
+
checks?: PairChecks;
|
|
13
|
+
/** Extra ignore patterns (globs) */
|
|
14
|
+
ignorePatterns?: string[];
|
|
15
|
+
/** Agent options for AI-powered suggestions */
|
|
16
|
+
agentOptions?: {
|
|
17
|
+
agent?: string;
|
|
18
|
+
model?: string;
|
|
19
|
+
tier?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface PairChecks {
|
|
23
|
+
typeErrors?: boolean;
|
|
24
|
+
lint?: boolean;
|
|
25
|
+
missingTests?: boolean;
|
|
26
|
+
imports?: boolean;
|
|
27
|
+
security?: boolean;
|
|
28
|
+
style?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface PairSuggestion {
|
|
31
|
+
type: 'error' | 'warning' | 'info' | 'fix';
|
|
32
|
+
category: 'type' | 'lint' | 'test' | 'import' | 'security' | 'style' | 'ai';
|
|
33
|
+
file: string;
|
|
34
|
+
line?: number;
|
|
35
|
+
message: string;
|
|
36
|
+
fix?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PairConfig {
|
|
39
|
+
checks: PairChecks;
|
|
40
|
+
ignorePatterns: string[];
|
|
41
|
+
autoFix: boolean;
|
|
42
|
+
bell: boolean;
|
|
43
|
+
quiet: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare let sessionStats: {
|
|
46
|
+
filesAnalyzed: number;
|
|
47
|
+
suggestionsShown: number;
|
|
48
|
+
fixesApplied: number;
|
|
49
|
+
errorsFound: number;
|
|
50
|
+
};
|
|
51
|
+
export declare function startPairMode(options?: PairOptions): Promise<void>;
|
|
52
|
+
export declare function stopPairMode(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Check if pair mode is currently active.
|
|
55
|
+
*/
|
|
56
|
+
export declare function isPairActive(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Get current session stats.
|
|
59
|
+
*/
|
|
60
|
+
export declare function getPairStats(): typeof sessionStats;
|
|
61
|
+
/**
|
|
62
|
+
* Request AI analysis for a specific file. Uses the kbot agent loop to
|
|
63
|
+
* provide deeper suggestions: refactoring, architecture, patterns.
|
|
64
|
+
*
|
|
65
|
+
* This is called when the user explicitly requests it (not on every save).
|
|
66
|
+
*/
|
|
67
|
+
export declare function analyzeWithAgent(filePath: string, agentOptions?: {
|
|
68
|
+
agent?: string;
|
|
69
|
+
model?: string;
|
|
70
|
+
tier?: string;
|
|
71
|
+
}): Promise<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Register the `kbot pair` command with the CLI program.
|
|
74
|
+
*
|
|
75
|
+
* Usage from cli.ts:
|
|
76
|
+
* import { registerPairCommand } from './pair.js'
|
|
77
|
+
* registerPairCommand(program)
|
|
78
|
+
*/
|
|
79
|
+
export declare function registerPairCommand(program: Command): void;
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=pair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pair.d.ts","sourceRoot":"","sources":["../src/pair.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMxC,MAAM,WAAW,WAAW;IAC1B,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oCAAoC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mCAAmC;IACnC,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,oCAAoC;IACpC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,+CAA+C;IAC/C,YAAY,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAA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