stk-codegen 1.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.
- package/LICENSE +70 -0
- package/README.md +213 -0
- package/dist/96.index.js +189 -0
- package/dist/984.index.js +99 -0
- package/dist/App.d.ts +4 -0
- package/dist/cli.d.ts +1 -0
- package/dist/components/AgentStatus.d.ts +6 -0
- package/dist/components/Conversation.d.ts +11 -0
- package/dist/components/DiffView.d.ts +9 -0
- package/dist/components/EscapeClearIndicator.d.ts +3 -0
- package/dist/components/ExitIndicator.d.ts +3 -0
- package/dist/components/Footer.d.ts +3 -0
- package/dist/components/Input.d.ts +13 -0
- package/dist/components/Message.d.ts +11 -0
- package/dist/components/ShellConfirmation.d.ts +6 -0
- package/dist/components/ShellExecution.d.ts +9 -0
- package/dist/components/SplashScreen.d.ts +4 -0
- package/dist/components/ToolExecution.d.ts +8 -0
- package/dist/config.d.ts +8 -0
- package/dist/hooks/hooks.d.ts +5 -0
- package/dist/hooks/useAgent.d.ts +28 -0
- package/dist/hooks/useMagicCommands.d.ts +1 -0
- package/dist/index.js +112 -0
- package/dist/package.json +3 -0
- package/dist/services/versionCheck.d.ts +1 -0
- package/dist/services/websocketClient.d.ts +17 -0
- package/dist/tools/Edit.d.ts +14 -0
- package/dist/tools/FindFiles.d.ts +12 -0
- package/dist/tools/GoogleSearch.d.ts +9 -0
- package/dist/tools/ReadFile.d.ts +11 -0
- package/dist/tools/ReadFolder.d.ts +12 -0
- package/dist/tools/ReadManyFiles.d.ts +10 -0
- package/dist/tools/SaveMemory.d.ts +9 -0
- package/dist/tools/SearchText.d.ts +18 -0
- package/dist/tools/Shell.d.ts +11 -0
- package/dist/tools/WebFetch.d.ts +9 -0
- package/dist/tools/WriteFile.d.ts +10 -0
- package/dist/tools/WriteTodos.d.ts +9 -0
- package/dist/tools/index.d.ts +12 -0
- package/dist/tools/runShellCommandAsync.d.ts +2 -0
- package/dist/types/index.d.ts +116 -0
- package/dist/utils/display.d.ts +1 -0
- package/dist/utils/keyMatchers.d.ts +3 -0
- package/dist/utils/paths.d.ts +1 -0
- package/dist/utils/projectSpecLoader.d.ts +5 -0
- package/dist/utils/text-buffer.d.ts +25 -0
- package/package.json +57 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ToolExecutionProps {
|
|
3
|
+
toolName: string;
|
|
4
|
+
displayMessage?: string;
|
|
5
|
+
toolParams?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
declare const ToolExecution: ({ toolName, toolParams }: ToolExecutionProps) => React.JSX.Element;
|
|
8
|
+
export default ToolExecution;
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChildProcess } from 'child_process';
|
|
2
|
+
import { ConversationMessage, DiffViewPropsState, PendingShellCommand } from '../types/index.js';
|
|
3
|
+
export declare const useAgent: () => {
|
|
4
|
+
conversation: ConversationMessage[];
|
|
5
|
+
isAgentThinking: boolean;
|
|
6
|
+
diffProps: DiffViewPropsState | null;
|
|
7
|
+
pendingShellCommand: PendingShellCommand | null;
|
|
8
|
+
approveShellCommand: () => void;
|
|
9
|
+
rejectShellCommand: () => void;
|
|
10
|
+
submitUserInput: (text: string) => void;
|
|
11
|
+
navigateHistoryUp: () => string | undefined;
|
|
12
|
+
navigateHistoryDown: () => string | undefined;
|
|
13
|
+
searchFiles: (pattern: string, options?: {
|
|
14
|
+
ignore?: string[];
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
activeShellCommand: any;
|
|
17
|
+
handleShellCompletion: (result: any) => void;
|
|
18
|
+
childProcess: ChildProcess | null;
|
|
19
|
+
sendInputToShell: (input: string) => void;
|
|
20
|
+
inputText: string;
|
|
21
|
+
setInputText: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
22
|
+
isShellActive: boolean;
|
|
23
|
+
setIsShellActive: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
24
|
+
resetHistory: () => void;
|
|
25
|
+
cancelCurrentInteraction: () => void;
|
|
26
|
+
activeGenerationId: string | null;
|
|
27
|
+
hasCodegenSpec: boolean;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMagicCommands: () => string[];
|