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.
Files changed (47) hide show
  1. package/LICENSE +70 -0
  2. package/README.md +213 -0
  3. package/dist/96.index.js +189 -0
  4. package/dist/984.index.js +99 -0
  5. package/dist/App.d.ts +4 -0
  6. package/dist/cli.d.ts +1 -0
  7. package/dist/components/AgentStatus.d.ts +6 -0
  8. package/dist/components/Conversation.d.ts +11 -0
  9. package/dist/components/DiffView.d.ts +9 -0
  10. package/dist/components/EscapeClearIndicator.d.ts +3 -0
  11. package/dist/components/ExitIndicator.d.ts +3 -0
  12. package/dist/components/Footer.d.ts +3 -0
  13. package/dist/components/Input.d.ts +13 -0
  14. package/dist/components/Message.d.ts +11 -0
  15. package/dist/components/ShellConfirmation.d.ts +6 -0
  16. package/dist/components/ShellExecution.d.ts +9 -0
  17. package/dist/components/SplashScreen.d.ts +4 -0
  18. package/dist/components/ToolExecution.d.ts +8 -0
  19. package/dist/config.d.ts +8 -0
  20. package/dist/hooks/hooks.d.ts +5 -0
  21. package/dist/hooks/useAgent.d.ts +28 -0
  22. package/dist/hooks/useMagicCommands.d.ts +1 -0
  23. package/dist/index.js +112 -0
  24. package/dist/package.json +3 -0
  25. package/dist/services/versionCheck.d.ts +1 -0
  26. package/dist/services/websocketClient.d.ts +17 -0
  27. package/dist/tools/Edit.d.ts +14 -0
  28. package/dist/tools/FindFiles.d.ts +12 -0
  29. package/dist/tools/GoogleSearch.d.ts +9 -0
  30. package/dist/tools/ReadFile.d.ts +11 -0
  31. package/dist/tools/ReadFolder.d.ts +12 -0
  32. package/dist/tools/ReadManyFiles.d.ts +10 -0
  33. package/dist/tools/SaveMemory.d.ts +9 -0
  34. package/dist/tools/SearchText.d.ts +18 -0
  35. package/dist/tools/Shell.d.ts +11 -0
  36. package/dist/tools/WebFetch.d.ts +9 -0
  37. package/dist/tools/WriteFile.d.ts +10 -0
  38. package/dist/tools/WriteTodos.d.ts +9 -0
  39. package/dist/tools/index.d.ts +12 -0
  40. package/dist/tools/runShellCommandAsync.d.ts +2 -0
  41. package/dist/types/index.d.ts +116 -0
  42. package/dist/utils/display.d.ts +1 -0
  43. package/dist/utils/keyMatchers.d.ts +3 -0
  44. package/dist/utils/paths.d.ts +1 -0
  45. package/dist/utils/projectSpecLoader.d.ts +5 -0
  46. package/dist/utils/text-buffer.d.ts +25 -0
  47. 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;
@@ -0,0 +1,8 @@
1
+ declare class Config {
2
+ readonly WORKSPACE_DIR: string;
3
+ readonly BACKEND_URL: string;
4
+ readonly CURRENT_VERSION: string;
5
+ constructor();
6
+ }
7
+ export declare const config: Config;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const useGitInfo: () => {
2
+ cwd: string;
3
+ branch: string;
4
+ hasCodegenSpec: boolean;
5
+ };
@@ -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[];