create-interview-cockpit 0.20.0 → 0.22.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 +28 -1
- 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
|
@@ -132,6 +132,8 @@ export interface Question {
|
|
|
132
132
|
title: string;
|
|
133
133
|
systemContext: string;
|
|
134
134
|
codeContextFiles: string[];
|
|
135
|
+
/** Optional git diff selection that the LLM can lazy-fetch via readFile. */
|
|
136
|
+
gitDiffContext?: GitDiffContext;
|
|
135
137
|
contextFiles: ContextFile[];
|
|
136
138
|
messages: Message[];
|
|
137
139
|
annotations?: Annotation[];
|
|
@@ -143,6 +145,16 @@ export interface Question {
|
|
|
143
145
|
createdAt: string;
|
|
144
146
|
}
|
|
145
147
|
|
|
148
|
+
export type GitDiffMode = "two-dot" | "three-dot" | "working-tree";
|
|
149
|
+
|
|
150
|
+
export interface GitDiffContext {
|
|
151
|
+
baseRef: string;
|
|
152
|
+
/** Empty / WORKING_TREE when mode is working-tree. */
|
|
153
|
+
headRef: string;
|
|
154
|
+
mode: GitDiffMode;
|
|
155
|
+
selectedFiles: string[];
|
|
156
|
+
}
|
|
157
|
+
|
|
146
158
|
// ── Workspace registry types ──────────────────────────────────────────
|
|
147
159
|
export interface DriveConfig {
|
|
148
160
|
folderId: string;
|