stk-codegen 1.0.7 → 1.0.9
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 +0 -0
- package/dist/components/BootstrapStatus.d.ts +5 -1
- package/dist/components/Footer.d.ts +3 -1
- package/dist/components/Input.d.ts +2 -1
- package/dist/config.d.ts +1 -0
- package/dist/core/agent/events.d.ts +16 -0
- package/dist/core/agent/types.d.ts +4 -0
- package/dist/hooks/useAgent.d.ts +3 -1
- package/dist/index.js +5 -5
- package/dist/services/websocketClient.d.ts +10 -3
- package/dist/tools/SearchText.d.ts +2 -12
- package/dist/tools/searchTextFallback.d.ts +20 -0
- package/dist/types/index.d.ts +28 -2
- package/dist/ui/agent/buildInkViewModel.d.ts +4 -0
- package/dist/ui/agent/textFormatting.d.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
Binary file
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface BootstrapStatusProps {
|
|
3
|
+
status: 'connecting' | 'connected' | 'disconnected';
|
|
4
|
+
isBootstrapping: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const BootstrapStatus: React.FC<BootstrapStatusProps>;
|
|
3
7
|
export default BootstrapStatus;
|
|
@@ -14,6 +14,7 @@ interface Props {
|
|
|
14
14
|
isShellActive?: boolean;
|
|
15
15
|
setShowEscapeClear: (show: boolean) => void;
|
|
16
16
|
isActive: boolean;
|
|
17
|
+
isAutonomous?: boolean;
|
|
17
18
|
}
|
|
18
|
-
declare const _default: React.MemoExoticComponent<({ value, onChange, onSubmit, searchFiles, isShellActive, setShowEscapeClear, isActive, }: Props) => React.JSX.Element>;
|
|
19
|
+
declare const _default: React.MemoExoticComponent<({ value, onChange, onSubmit, searchFiles, isShellActive, setShowEscapeClear, isActive, isAutonomous, }: Props) => React.JSX.Element>;
|
|
19
20
|
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -5,45 +5,55 @@ export type CoreEvent = {
|
|
|
5
5
|
} | {
|
|
6
6
|
type: 'AGENT_STREAM_STARTED';
|
|
7
7
|
messageId: CoreMessageId;
|
|
8
|
+
generationId?: string;
|
|
8
9
|
} | {
|
|
9
10
|
type: 'AGENT_DELTA_RECEIVED';
|
|
10
11
|
delta: string;
|
|
12
|
+
generationId?: string;
|
|
11
13
|
} | {
|
|
12
14
|
type: 'AGENT_STREAM_FLUSH';
|
|
13
15
|
} | {
|
|
14
16
|
type: 'AGENT_STREAM_FINISHED';
|
|
17
|
+
generationId?: string;
|
|
15
18
|
} | {
|
|
16
19
|
type: 'TOOL_RESULT_MESSAGE';
|
|
17
20
|
text: string;
|
|
21
|
+
generationId?: string;
|
|
18
22
|
} | {
|
|
19
23
|
type: 'TOOL_EXECUTION_STARTED';
|
|
20
24
|
toolId: string;
|
|
21
25
|
toolName: string;
|
|
22
26
|
toolParams: Record<string, any>;
|
|
27
|
+
generationId?: string;
|
|
23
28
|
} | {
|
|
24
29
|
type: 'TOOL_EXECUTION_FINISHED';
|
|
25
30
|
toolId: string;
|
|
26
31
|
toolName: string;
|
|
27
32
|
toolParams: Record<string, any>;
|
|
33
|
+
generationId?: string;
|
|
28
34
|
} | {
|
|
29
35
|
type: 'TOOL_EXECUTION_ERROR';
|
|
30
36
|
toolId: string;
|
|
31
37
|
toolName: string;
|
|
32
38
|
toolParams: Record<string, any>;
|
|
33
39
|
error: string;
|
|
40
|
+
generationId?: string;
|
|
34
41
|
} | {
|
|
35
42
|
type: 'SHELL_RUN_STARTED';
|
|
36
43
|
runId: ShellRunId;
|
|
37
44
|
command: string;
|
|
45
|
+
generationId?: string;
|
|
38
46
|
} | {
|
|
39
47
|
type: 'SHELL_OUTPUT_RECEIVED';
|
|
40
48
|
runId: ShellRunId;
|
|
41
49
|
stdoutDelta?: string;
|
|
42
50
|
stderrDelta?: string;
|
|
51
|
+
generationId?: string;
|
|
43
52
|
} | {
|
|
44
53
|
type: 'SHELL_RUN_FINISHED';
|
|
45
54
|
runId: ShellRunId;
|
|
46
55
|
exitCode: number;
|
|
56
|
+
generationId?: string;
|
|
47
57
|
} | {
|
|
48
58
|
type: 'DIFF_REVIEW_OPENED';
|
|
49
59
|
reviewId: DiffReviewId;
|
|
@@ -52,15 +62,21 @@ export type CoreEvent = {
|
|
|
52
62
|
toolParams?: Record<string, any>;
|
|
53
63
|
oldContent: string;
|
|
54
64
|
newContent: string;
|
|
65
|
+
generationId?: string;
|
|
55
66
|
} | {
|
|
56
67
|
type: 'DIFF_REVIEW_RESOLVED';
|
|
57
68
|
reviewId: DiffReviewId;
|
|
58
69
|
result: 'accepted' | 'rejected';
|
|
70
|
+
generationId?: string;
|
|
59
71
|
} | {
|
|
60
72
|
type: 'ERROR_OCCURRED';
|
|
61
73
|
message: string;
|
|
74
|
+
generationId?: string;
|
|
62
75
|
} | {
|
|
63
76
|
type: 'BOOTSTRAP_STARTED';
|
|
64
77
|
} | {
|
|
65
78
|
type: 'BOOTSTRAP_FINISHED';
|
|
79
|
+
} | {
|
|
80
|
+
type: 'CONNECTION_STATUS_CHANGED';
|
|
81
|
+
status: 'connecting' | 'connected' | 'disconnected';
|
|
66
82
|
};
|
|
@@ -7,6 +7,7 @@ export interface CoreMessage {
|
|
|
7
7
|
createdAt: number;
|
|
8
8
|
isStreaming?: boolean;
|
|
9
9
|
isFinal?: boolean;
|
|
10
|
+
generationId?: string;
|
|
10
11
|
toolId?: string;
|
|
11
12
|
toolName?: string;
|
|
12
13
|
toolParams?: Record<string, any>;
|
|
@@ -42,6 +43,7 @@ export interface CoreStreamState {
|
|
|
42
43
|
currentMessageId?: CoreMessageId;
|
|
43
44
|
buffer: string;
|
|
44
45
|
status: 'idle' | 'streaming' | 'finished';
|
|
46
|
+
generationId?: string;
|
|
45
47
|
}
|
|
46
48
|
export interface CoreState {
|
|
47
49
|
messages: CoreMessage[];
|
|
@@ -49,6 +51,8 @@ export interface CoreState {
|
|
|
49
51
|
diffReviews: CoreDiffReview[];
|
|
50
52
|
agentStatus: CoreAgentStatus;
|
|
51
53
|
stream: CoreStreamState;
|
|
54
|
+
activeGenerationId?: string;
|
|
52
55
|
isBootstrapping: boolean;
|
|
53
56
|
bootstrapFinished: boolean;
|
|
57
|
+
connectionStatus: 'connecting' | 'connected' | 'disconnected';
|
|
54
58
|
}
|
package/dist/hooks/useAgent.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export declare const useAgent: ({ autonomous }: {
|
|
|
7
7
|
isVisible: boolean;
|
|
8
8
|
text: string;
|
|
9
9
|
};
|
|
10
|
+
isAutonomous: boolean;
|
|
11
|
+
toggleAutonomous: () => void;
|
|
10
12
|
pendingShellCommand: PendingShellCommand | null;
|
|
11
13
|
approveShellCommand: () => void;
|
|
12
14
|
rejectShellCommand: () => void;
|
|
@@ -17,7 +19,7 @@ export declare const useAgent: ({ autonomous }: {
|
|
|
17
19
|
base64: string;
|
|
18
20
|
mimeType: string;
|
|
19
21
|
}[];
|
|
20
|
-
}) => void
|
|
22
|
+
}) => Promise<void>;
|
|
21
23
|
navigateHistoryUp: () => string | undefined;
|
|
22
24
|
navigateHistoryDown: () => string | undefined;
|
|
23
25
|
searchFiles: (pattern: string, options?: {
|