stk-codegen 1.0.1 → 1.0.2
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/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface AgentStatusProps {
|
|
3
3
|
isVisible: boolean;
|
|
4
|
+
text?: string;
|
|
4
5
|
}
|
|
5
|
-
declare const AgentStatus: ({ isVisible }: AgentStatusProps) => React.JSX.Element;
|
|
6
|
+
declare const AgentStatus: ({ isVisible, text }: AgentStatusProps) => React.JSX.Element;
|
|
6
7
|
export default AgentStatus;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ConversationMessage } from '../types/index.js';
|
|
2
|
+
import { ConversationMessage, PendingShellCommand } from '../types/index.js';
|
|
3
3
|
import { ChildProcess } from 'child_process';
|
|
4
4
|
interface ConversationProps {
|
|
5
5
|
conversation: ConversationMessage[];
|
|
6
6
|
activeShellCommand: any;
|
|
7
7
|
childProcess: ChildProcess | null;
|
|
8
8
|
handleShellCompletion: (result: any) => void;
|
|
9
|
+
pendingShellCommand: PendingShellCommand | null;
|
|
9
10
|
}
|
|
10
11
|
export declare const Conversation: React.FC<ConversationProps>;
|
|
11
12
|
export {};
|
|
@@ -3,7 +3,9 @@ interface DiffViewProps {
|
|
|
3
3
|
oldContent: string;
|
|
4
4
|
newContent: string;
|
|
5
5
|
filePath: string;
|
|
6
|
-
onComplete
|
|
6
|
+
onComplete?: (action: 'accept' | 'reject' | 'edit', editedContent?: string) => void;
|
|
7
|
+
isCompleted: boolean;
|
|
8
|
+
action?: string;
|
|
7
9
|
}
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
10
|
+
declare const DiffView: ({ oldContent, newContent, filePath, onComplete, isCompleted, action }: DiffViewProps) => React.JSX.Element;
|
|
11
|
+
export default DiffView;
|
package/dist/hooks/useAgent.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ChildProcess } from 'child_process';
|
|
2
|
-
import { ConversationMessage,
|
|
2
|
+
import { ConversationMessage, PendingShellCommand } from '../types/index.js';
|
|
3
3
|
export declare const useAgent: () => {
|
|
4
4
|
conversation: ConversationMessage[];
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
agentStatus: {
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
7
9
|
pendingShellCommand: PendingShellCommand | null;
|
|
8
10
|
approveShellCommand: () => void;
|
|
9
11
|
rejectShellCommand: () => void;
|