stk-codegen 1.0.6 → 1.0.8

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
Binary file
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- declare const BootstrapStatus: () => React.JSX.Element;
2
+ interface BootstrapStatusProps {
3
+ status: 'connecting' | 'connected' | 'disconnected';
4
+ isBootstrapping: boolean;
5
+ }
6
+ declare const BootstrapStatus: React.FC<BootstrapStatusProps>;
3
7
  export default BootstrapStatus;
@@ -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>;
package/dist/config.d.ts CHANGED
@@ -2,6 +2,7 @@ declare class Config {
2
2
  readonly WORKSPACE_DIR: string;
3
3
  readonly BACKEND_URL: string;
4
4
  readonly CURRENT_VERSION: string;
5
+ readonly DISABLE_RIPGREP: boolean;
5
6
  constructor();
6
7
  }
7
8
  export declare const config: Config;
@@ -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;
@@ -62,4 +63,7 @@ export type CoreEvent = {
62
63
  type: 'BOOTSTRAP_STARTED';
63
64
  } | {
64
65
  type: 'BOOTSTRAP_FINISHED';
66
+ } | {
67
+ type: 'CONNECTION_STATUS_CHANGED';
68
+ status: 'connecting' | 'connected' | 'disconnected';
65
69
  };
@@ -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 {
@@ -50,4 +51,5 @@ export interface CoreState {
50
51
  stream: CoreStreamState;
51
52
  isBootstrapping: boolean;
52
53
  bootstrapFinished: boolean;
54
+ connectionStatus: 'connecting' | 'connected' | 'disconnected';
53
55
  }
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
+ }) => Promise<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
  };