create-interview-cockpit 0.20.0 → 0.21.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 +67 -0
- package/template/client/src/components/ChatView.tsx +2 -0
- package/template/client/src/components/CodeContextPanel.tsx +4 -0
- package/template/client/src/components/FileViewerModal.tsx +1 -0
- package/template/client/src/components/GitDiffPanel.tsx +403 -0
- package/template/client/src/components/GitDiffViewerModal.tsx +124 -0
- package/template/client/src/store.ts +14 -0
- package/template/client/src/types.ts +23 -0
- package/template/client/tsconfig.tsbuildinfo +1 -1
- package/template/cockpit.json +1 -1
- package/template/server/src/index.ts +624 -0
- package/template/server/src/storage.ts +12 -0
|
@@ -151,6 +151,8 @@ export interface Question {
|
|
|
151
151
|
title: string;
|
|
152
152
|
systemContext: string;
|
|
153
153
|
codeContextFiles: string[];
|
|
154
|
+
/** Optional git diff selection that the chat LLM can lazy-fetch via readFile. */
|
|
155
|
+
gitDiffContext?: GitDiffContext;
|
|
154
156
|
contextFiles: ContextFile[];
|
|
155
157
|
messages: Message[];
|
|
156
158
|
annotations?: Annotation[];
|
|
@@ -161,3 +163,24 @@ export interface Question {
|
|
|
161
163
|
linkedConversationIds?: string[];
|
|
162
164
|
createdAt: string;
|
|
163
165
|
}
|
|
166
|
+
|
|
167
|
+
export type GitDiffMode = "two-dot" | "three-dot" | "working-tree";
|
|
168
|
+
|
|
169
|
+
export interface GitDiffContext {
|
|
170
|
+
baseRef: string;
|
|
171
|
+
/** Branch / ref / tag. Empty when mode is working-tree. */
|
|
172
|
+
headRef: string;
|
|
173
|
+
mode: GitDiffMode;
|
|
174
|
+
selectedFiles: string[];
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type GitDiffStatus = "A" | "M" | "D" | "R" | "C" | "T" | "U" | "?";
|
|
178
|
+
|
|
179
|
+
export interface GitDiffFileEntry {
|
|
180
|
+
path: string;
|
|
181
|
+
oldPath?: string;
|
|
182
|
+
status: GitDiffStatus;
|
|
183
|
+
additions: number;
|
|
184
|
+
deletions: number;
|
|
185
|
+
binary: boolean;
|
|
186
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/app.tsx","./src/api.ts","./src/browsersecuritytemplates.ts","./src/enterpriselocallab.ts","./src/githubactionslab.ts","./src/infralab.ts","./src/main.tsx","./src/reactlab.ts","./src/store.ts","./src/types.ts","./src/vite-env.d.ts","./src/components/aisettingsmodal.tsx","./src/components/annotationdialog.tsx","./src/components/browsersecuritylabmodal.tsx","./src/components/canvaslabmodal.tsx","./src/components/chatmessage.tsx","./src/components/chatview.tsx","./src/components/codecontextpanel.tsx","./src/components/codelineannotationpopup.tsx","./src/components/coderunnermodal.tsx","./src/components/deploymentlabmodal.tsx","./src/components/docrefmodal.tsx","./src/components/fileattachments.tsx","./src/components/filepickermodal.tsx","./src/components/fileviewermodal.tsx","./src/components/ghahistorypanel.tsx","./src/components/ghajobspanel.tsx","./src/components/githubactionslabmodal.tsx","./src/components/infralabmodal.tsx","./src/components/labspanel.tsx","./src/components/linkedconvospicker.tsx","./src/components/markdownrenderer.tsx","./src/components/mermaiddiagram.tsx","./src/components/notesmodal.tsx","./src/components/plotembed.tsx","./src/components/sidebar.tsx","./src/components/textannotator.tsx","./src/components/vizcraftembed.tsx","./src/components/workspaceswitcher.tsx"],"version":"5.9.3"}
|
|
1
|
+
{"root":["./src/app.tsx","./src/api.ts","./src/browsersecuritytemplates.ts","./src/enterpriselocallab.ts","./src/githubactionslab.ts","./src/infralab.ts","./src/main.tsx","./src/reactlab.ts","./src/store.ts","./src/types.ts","./src/vite-env.d.ts","./src/components/aisettingsmodal.tsx","./src/components/annotationdialog.tsx","./src/components/browsersecuritylabmodal.tsx","./src/components/canvaslabmodal.tsx","./src/components/chatmessage.tsx","./src/components/chatview.tsx","./src/components/codecontextpanel.tsx","./src/components/codelineannotationpopup.tsx","./src/components/coderunnermodal.tsx","./src/components/deploymentlabmodal.tsx","./src/components/docrefmodal.tsx","./src/components/fileattachments.tsx","./src/components/filepickermodal.tsx","./src/components/fileviewermodal.tsx","./src/components/ghahistorypanel.tsx","./src/components/ghajobspanel.tsx","./src/components/gitdiffpanel.tsx","./src/components/gitdiffviewermodal.tsx","./src/components/githubactionslabmodal.tsx","./src/components/infralabmodal.tsx","./src/components/labspanel.tsx","./src/components/linkedconvospicker.tsx","./src/components/markdownrenderer.tsx","./src/components/mermaiddiagram.tsx","./src/components/notesmodal.tsx","./src/components/plotembed.tsx","./src/components/sidebar.tsx","./src/components/textannotator.tsx","./src/components/vizcraftembed.tsx","./src/components/workspaceswitcher.tsx"],"version":"5.9.3"}
|
package/template/cockpit.json
CHANGED