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
@@ -211,3 +211,4 @@ Sugestão de workflow para mexer no código:
211
211
  Se precisar de mais detalhes sobre arquitetura, padrões e decisões do projeto, consulte o arquivo [`CODEGEN.md`](./CODEGEN.md).
212
212
 
213
213
  ---
214
+
@@ -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: (action: 'accept' | 'reject' | 'edit', editedContent?: string) => void;
6
+ onComplete?: (action: 'accept' | 'reject' | 'edit', editedContent?: string) => void;
7
+ isCompleted: boolean;
8
+ action?: string;
7
9
  }
8
- declare const _default: React.MemoExoticComponent<({ oldContent, newContent, filePath, onComplete, }: DiffViewProps) => React.JSX.Element>;
9
- export default _default;
10
+ declare const DiffView: ({ oldContent, newContent, filePath, onComplete, isCompleted, action }: DiffViewProps) => React.JSX.Element;
11
+ export default DiffView;
@@ -1,9 +1,11 @@
1
1
  import { ChildProcess } from 'child_process';
2
- import { ConversationMessage, DiffViewPropsState, PendingShellCommand } from '../types/index.js';
2
+ import { ConversationMessage, PendingShellCommand } from '../types/index.js';
3
3
  export declare const useAgent: () => {
4
4
  conversation: ConversationMessage[];
5
- isAgentThinking: boolean;
6
- diffProps: DiffViewPropsState | null;
5
+ agentStatus: {
6
+ isVisible: boolean;
7
+ text: string;
8
+ };
7
9
  pendingShellCommand: PendingShellCommand | null;
8
10
  approveShellCommand: () => void;
9
11
  rejectShellCommand: () => void;