create-interview-cockpit 0.24.0 → 0.26.0
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/package.json +1 -1
- package/template/client/src/api.ts +26 -4
- package/template/client/src/components/ChatView.tsx +24 -3
- package/template/client/src/components/CodeContextPanel.tsx +242 -60
- package/template/client/src/components/FileViewerModal.tsx +209 -49
- package/template/client/src/components/GitDiffPanel.tsx +403 -73
- package/template/client/src/components/GitDiffViewerModal.tsx +2 -1
- package/template/client/src/components/MarkdownRenderer.tsx +8 -1
- package/template/client/src/store.ts +17 -2
- package/template/client/src/types.ts +8 -0
- package/template/cockpit.json +1 -1
- package/template/server/src/index.ts +1739 -185
- package/template/server/src/storage.ts +2 -0
|
@@ -146,6 +146,12 @@ export interface CodeSnippet {
|
|
|
146
146
|
code: string;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
export interface CodeContextRoot {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
files: string[];
|
|
153
|
+
}
|
|
154
|
+
|
|
149
155
|
export interface ReadingBookmark {
|
|
150
156
|
messageId: string;
|
|
151
157
|
blockIndex: number;
|
|
@@ -184,6 +190,8 @@ export interface Question {
|
|
|
184
190
|
export type GitDiffMode = "two-dot" | "three-dot" | "working-tree";
|
|
185
191
|
|
|
186
192
|
export interface GitDiffContext {
|
|
193
|
+
/** Selected diff source root id. Empty/undefined means the primary git diff root. */
|
|
194
|
+
rootId?: string;
|
|
187
195
|
baseRef: string;
|
|
188
196
|
/** Branch / ref / tag. Empty when mode is working-tree. */
|
|
189
197
|
headRef: string;
|
package/template/cockpit.json
CHANGED