stk-codegen 1.0.6 → 1.0.7

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.
@@ -2,7 +2,12 @@ import React from 'react';
2
2
  interface Props {
3
3
  value: string;
4
4
  onChange: (value: string) => void;
5
- onSubmit: (value: string) => void;
5
+ onSubmit: (value: string, extra?: {
6
+ images?: {
7
+ base64: string;
8
+ mimeType: string;
9
+ }[];
10
+ }) => void;
6
11
  searchFiles: (pattern: string, options?: {
7
12
  ignore?: string[];
8
13
  }) => Promise<string[]>;
@@ -9,6 +9,10 @@ interface ShellExecutionProps {
9
9
  status: 'pending' | 'running' | 'finished' | 'error' | 'cancelled';
10
10
  stdout: string;
11
11
  stderr: string;
12
+ visibleOutput?: string;
13
+ isVisuallyTruncated?: boolean;
14
+ totalLines?: number;
15
+ visibleLinesCount?: number;
12
16
  };
13
17
  }
14
18
  declare const ShellExecution: React.FC<ShellExecutionProps>;
@@ -50,7 +50,8 @@ export type CoreEvent = {
50
50
  title?: string;
51
51
  toolName?: string;
52
52
  toolParams?: Record<string, any>;
53
- diffText: string;
53
+ oldContent: string;
54
+ newContent: string;
54
55
  } | {
55
56
  type: 'DIFF_REVIEW_RESOLVED';
56
57
  reviewId: DiffReviewId;
@@ -29,7 +29,8 @@ export interface CoreDiffReview {
29
29
  title?: string;
30
30
  toolName?: string;
31
31
  toolParams?: Record<string, any>;
32
- diffText: string;
32
+ oldContent: string;
33
+ newContent: string;
33
34
  status: 'pending' | 'accepted' | 'rejected';
34
35
  }
35
36
  export interface CoreAgentStatus {
Binary file
@@ -12,14 +12,25 @@ export declare const useAgent: ({ autonomous }: {
12
12
  rejectShellCommand: () => void;
13
13
  approveDiff: (editedContent?: string) => void;
14
14
  rejectDiff: () => void;
15
- submitUserInput: (text: string) => void;
15
+ submitUserInput: (text: string, extra?: {
16
+ images?: {
17
+ base64: string;
18
+ mimeType: string;
19
+ }[];
20
+ }) => void;
16
21
  navigateHistoryUp: () => string | undefined;
17
22
  navigateHistoryDown: () => string | undefined;
18
23
  searchFiles: (pattern: string, options?: {
19
24
  ignore?: string[];
20
25
  }) => Promise<any>;
21
26
  activeShellCommand: any;
22
- handleShellCompletion: (result: any) => void;
27
+ handleShellCompletion: (result: any, meta?: {
28
+ messageId: number;
29
+ tool_name: string;
30
+ tool_id: string;
31
+ generation_id: string;
32
+ parameters?: any;
33
+ }) => void;
23
34
  childProcess: ChildProcess | null;
24
35
  sendInputToShell: (input: string) => void;
25
36
  inputText: string;
@@ -1,6 +1,6 @@
1
1
  export declare const AGENT_STREAM_RATIO = 0.5;
2
2
  export declare const DIFF_REVIEW_RATIO = 0.5;
3
- export declare const SHELL_OUTPUT_RATIO = 0.7;
3
+ export declare const SHELL_OUTPUT_RATIO = 0.4;
4
4
  export declare const FOOTER_RESERVED_LINES = 4;
5
5
  export declare const useTerminalLayout: () => {
6
6
  readonly rows: any;
@@ -10,7 +10,7 @@ export declare const useTerminalLayout: () => {
10
10
  readonly layoutConstants: {
11
11
  readonly AGENT_STREAM_RATIO: 0.5;
12
12
  readonly DIFF_REVIEW_RATIO: 0.5;
13
- readonly SHELL_OUTPUT_RATIO: 0.7;
13
+ readonly SHELL_OUTPUT_RATIO: 0.4;
14
14
  readonly FOOTER_RESERVED_LINES: 4;
15
15
  };
16
16
  };