gencode-ai 0.1.2 → 0.2.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/README.md +15 -17
- package/dist/agent/agent.d.ts +43 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +107 -4
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/types.d.ts +20 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/checkpointing/checkpoint-manager.d.ts +87 -0
- package/dist/checkpointing/checkpoint-manager.d.ts.map +1 -0
- package/dist/checkpointing/checkpoint-manager.js +281 -0
- package/dist/checkpointing/checkpoint-manager.js.map +1 -0
- package/dist/checkpointing/index.d.ts +29 -0
- package/dist/checkpointing/index.d.ts.map +1 -0
- package/dist/checkpointing/index.js +29 -0
- package/dist/checkpointing/index.js.map +1 -0
- package/dist/checkpointing/types.d.ts +98 -0
- package/dist/checkpointing/types.d.ts.map +1 -0
- package/dist/checkpointing/types.js +7 -0
- package/dist/checkpointing/types.js.map +1 -0
- package/dist/cli/components/App.d.ts.map +1 -1
- package/dist/cli/components/App.js +193 -7
- package/dist/cli/components/App.js.map +1 -1
- package/dist/cli/components/CommandSuggestions.d.ts.map +1 -1
- package/dist/cli/components/CommandSuggestions.js +5 -0
- package/dist/cli/components/CommandSuggestions.js.map +1 -1
- package/dist/cli/components/Messages.d.ts +7 -1
- package/dist/cli/components/Messages.d.ts.map +1 -1
- package/dist/cli/components/Messages.js +28 -2
- package/dist/cli/components/Messages.js.map +1 -1
- package/dist/cli/components/ModeIndicator.d.ts +42 -0
- package/dist/cli/components/ModeIndicator.d.ts.map +1 -0
- package/dist/cli/components/ModeIndicator.js +52 -0
- package/dist/cli/components/ModeIndicator.js.map +1 -0
- package/dist/cli/components/PlanApproval.d.ts +36 -0
- package/dist/cli/components/PlanApproval.d.ts.map +1 -0
- package/dist/cli/components/PlanApproval.js +154 -0
- package/dist/cli/components/PlanApproval.js.map +1 -0
- package/dist/cli/components/QuestionPrompt.d.ts +23 -0
- package/dist/cli/components/QuestionPrompt.d.ts.map +1 -0
- package/dist/cli/components/QuestionPrompt.js +231 -0
- package/dist/cli/components/QuestionPrompt.js.map +1 -0
- package/dist/cli/components/index.d.ts +1 -0
- package/dist/cli/components/index.d.ts.map +1 -1
- package/dist/cli/components/index.js +1 -0
- package/dist/cli/components/index.js.map +1 -1
- package/dist/cli/components/theme.d.ts +9 -0
- package/dist/cli/components/theme.d.ts.map +1 -1
- package/dist/cli/components/theme.js +14 -1
- package/dist/cli/components/theme.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/permissions/types.d.ts.map +1 -1
- package/dist/permissions/types.js +2 -0
- package/dist/permissions/types.js.map +1 -1
- package/dist/planning/index.d.ts +13 -0
- package/dist/planning/index.d.ts.map +1 -0
- package/dist/planning/index.js +15 -0
- package/dist/planning/index.js.map +1 -0
- package/dist/planning/plan-file.d.ts +59 -0
- package/dist/planning/plan-file.d.ts.map +1 -0
- package/dist/planning/plan-file.js +278 -0
- package/dist/planning/plan-file.js.map +1 -0
- package/dist/planning/state.d.ts +127 -0
- package/dist/planning/state.d.ts.map +1 -0
- package/dist/planning/state.js +261 -0
- package/dist/planning/state.js.map +1 -0
- package/dist/planning/tools/enter-plan-mode.d.ts +25 -0
- package/dist/planning/tools/enter-plan-mode.d.ts.map +1 -0
- package/dist/planning/tools/enter-plan-mode.js +98 -0
- package/dist/planning/tools/enter-plan-mode.js.map +1 -0
- package/dist/planning/tools/exit-plan-mode.d.ts +24 -0
- package/dist/planning/tools/exit-plan-mode.d.ts.map +1 -0
- package/dist/planning/tools/exit-plan-mode.js +149 -0
- package/dist/planning/tools/exit-plan-mode.js.map +1 -0
- package/dist/planning/types.d.ts +100 -0
- package/dist/planning/types.d.ts.map +1 -0
- package/dist/planning/types.js +28 -0
- package/dist/planning/types.js.map +1 -0
- package/dist/pricing/calculator.d.ts +21 -0
- package/dist/pricing/calculator.d.ts.map +1 -0
- package/dist/pricing/calculator.js +59 -0
- package/dist/pricing/calculator.js.map +1 -0
- package/dist/pricing/index.d.ts +7 -0
- package/dist/pricing/index.d.ts.map +1 -0
- package/dist/pricing/index.js +7 -0
- package/dist/pricing/index.js.map +1 -0
- package/dist/pricing/models.d.ts +20 -0
- package/dist/pricing/models.d.ts.map +1 -0
- package/dist/pricing/models.js +322 -0
- package/dist/pricing/models.js.map +1 -0
- package/dist/pricing/types.d.ts +30 -0
- package/dist/pricing/types.d.ts.map +1 -0
- package/dist/pricing/types.js +5 -0
- package/dist/pricing/types.js.map +1 -0
- package/dist/providers/anthropic.d.ts.map +1 -1
- package/dist/providers/anthropic.js +17 -10
- package/dist/providers/anthropic.js.map +1 -1
- package/dist/providers/gemini.d.ts.map +1 -1
- package/dist/providers/gemini.js +21 -14
- package/dist/providers/gemini.js.map +1 -1
- package/dist/providers/openai.d.ts.map +1 -1
- package/dist/providers/openai.js +12 -8
- package/dist/providers/openai.js.map +1 -1
- package/dist/providers/types.d.ts +2 -0
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/providers/vertex-ai.d.ts.map +1 -1
- package/dist/providers/vertex-ai.js +17 -10
- package/dist/providers/vertex-ai.js.map +1 -1
- package/dist/session/manager.d.ts +4 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +8 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/tools/builtin/ask-user.d.ts +64 -0
- package/dist/tools/builtin/ask-user.d.ts.map +1 -0
- package/dist/tools/builtin/ask-user.js +148 -0
- package/dist/tools/builtin/ask-user.js.map +1 -0
- package/dist/tools/index.d.ts +19 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +11 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/registry.d.ts +13 -0
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +79 -2
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/types.d.ts +17 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/docs/cost-tracking-comparison.md +904 -0
- package/docs/operating-modes.md +96 -0
- package/docs/proposals/0012-ask-user-question.md +66 -1
- package/docs/proposals/0025-cost-tracking.md +60 -2
- package/docs/proposals/README.md +2 -2
- package/examples/test-ask-user.ts +167 -0
- package/examples/test-checkpointing.ts +121 -0
- package/examples/test-cost-tracking.ts +77 -0
- package/examples/test-interrupt-cleanup.ts +94 -0
- package/package.json +1 -1
- package/src/agent/agent.ts +130 -4
- package/src/agent/index.ts +1 -0
- package/src/agent/types.ts +19 -1
- package/src/checkpointing/checkpoint-manager.ts +327 -0
- package/src/checkpointing/index.ts +45 -0
- package/src/checkpointing/types.ts +104 -0
- package/src/cli/components/App.tsx +259 -8
- package/src/cli/components/CommandSuggestions.tsx +5 -0
- package/src/cli/components/Messages.tsx +66 -4
- package/src/cli/components/ModeIndicator.tsx +174 -0
- package/src/cli/components/PlanApproval.tsx +327 -0
- package/src/cli/components/QuestionPrompt.tsx +462 -0
- package/src/cli/components/index.ts +1 -0
- package/src/cli/components/theme.ts +14 -1
- package/src/index.ts +15 -0
- package/src/permissions/types.ts +2 -0
- package/src/planning/index.ts +53 -0
- package/src/planning/plan-file.ts +326 -0
- package/src/planning/state.ts +305 -0
- package/src/planning/tools/enter-plan-mode.ts +111 -0
- package/src/planning/tools/exit-plan-mode.ts +170 -0
- package/src/planning/types.ts +150 -0
- package/src/pricing/calculator.ts +71 -0
- package/src/pricing/index.ts +7 -0
- package/src/pricing/models.ts +334 -0
- package/src/pricing/types.ts +32 -0
- package/src/prompts/system/base.txt +42 -0
- package/src/prompts/tools/ask-user.txt +110 -0
- package/src/providers/anthropic.ts +21 -10
- package/src/providers/gemini.ts +25 -14
- package/src/providers/openai.ts +17 -8
- package/src/providers/types.ts +3 -0
- package/src/providers/vertex-ai.ts +21 -10
- package/src/session/manager.ts +9 -0
- package/src/tools/builtin/ask-user.ts +185 -0
- package/src/tools/index.ts +23 -0
- package/src/tools/registry.ts +95 -2
- package/src/tools/types.ts +18 -0
- package/.gencode/settings.local.json +0 -7
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkpoint Manager - Core checkpointing logic
|
|
3
|
+
*
|
|
4
|
+
* Tracks file changes and provides rewind capabilities.
|
|
5
|
+
*/
|
|
6
|
+
import * as fs from 'fs/promises';
|
|
7
|
+
import * as path from 'path';
|
|
8
|
+
/**
|
|
9
|
+
* Generates a unique ID for checkpoints
|
|
10
|
+
*/
|
|
11
|
+
function generateId() {
|
|
12
|
+
return `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* CheckpointManager manages file change tracking and rewind operations.
|
|
16
|
+
*
|
|
17
|
+
* Usage:
|
|
18
|
+
* const manager = new CheckpointManager('session-123');
|
|
19
|
+
* manager.recordChange({ path: '/path/to/file', changeType: 'modify', ... });
|
|
20
|
+
* await manager.rewind({ all: true });
|
|
21
|
+
*/
|
|
22
|
+
export class CheckpointManager {
|
|
23
|
+
session;
|
|
24
|
+
constructor(sessionId = 'default') {
|
|
25
|
+
this.session = {
|
|
26
|
+
sessionId,
|
|
27
|
+
checkpoints: [],
|
|
28
|
+
createdAt: new Date(),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get the session ID
|
|
33
|
+
*/
|
|
34
|
+
getSessionId() {
|
|
35
|
+
return this.session.sessionId;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Record a file change as a checkpoint
|
|
39
|
+
*/
|
|
40
|
+
recordChange(input) {
|
|
41
|
+
const checkpoint = {
|
|
42
|
+
id: generateId(),
|
|
43
|
+
path: input.path,
|
|
44
|
+
changeType: input.changeType,
|
|
45
|
+
timestamp: new Date(),
|
|
46
|
+
previousContent: input.previousContent,
|
|
47
|
+
newContent: input.newContent,
|
|
48
|
+
toolName: input.toolName,
|
|
49
|
+
};
|
|
50
|
+
this.session.checkpoints.push(checkpoint);
|
|
51
|
+
return checkpoint;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get all checkpoints
|
|
55
|
+
*/
|
|
56
|
+
getCheckpoints() {
|
|
57
|
+
return [...this.session.checkpoints];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get checkpoints for a specific file
|
|
61
|
+
*/
|
|
62
|
+
getFileHistory(filePath) {
|
|
63
|
+
return this.session.checkpoints.filter((cp) => cp.path === filePath);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get a summary of all changes
|
|
67
|
+
*/
|
|
68
|
+
getSummary() {
|
|
69
|
+
const summary = {
|
|
70
|
+
created: 0,
|
|
71
|
+
modified: 0,
|
|
72
|
+
deleted: 0,
|
|
73
|
+
total: this.session.checkpoints.length,
|
|
74
|
+
};
|
|
75
|
+
for (const cp of this.session.checkpoints) {
|
|
76
|
+
switch (cp.changeType) {
|
|
77
|
+
case 'create':
|
|
78
|
+
summary.created++;
|
|
79
|
+
break;
|
|
80
|
+
case 'modify':
|
|
81
|
+
summary.modified++;
|
|
82
|
+
break;
|
|
83
|
+
case 'delete':
|
|
84
|
+
summary.deleted++;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return summary;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Check if there are any checkpoints
|
|
92
|
+
*/
|
|
93
|
+
hasCheckpoints() {
|
|
94
|
+
return this.session.checkpoints.length > 0;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Get the number of checkpoints
|
|
98
|
+
*/
|
|
99
|
+
getCheckpointCount() {
|
|
100
|
+
return this.session.checkpoints.length;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Rewind changes based on options
|
|
104
|
+
*/
|
|
105
|
+
async rewind(options) {
|
|
106
|
+
const result = {
|
|
107
|
+
success: true,
|
|
108
|
+
revertedFiles: [],
|
|
109
|
+
errors: [],
|
|
110
|
+
};
|
|
111
|
+
// Determine which checkpoints to rewind
|
|
112
|
+
let checkpointsToRewind = [];
|
|
113
|
+
if (options.checkpointId) {
|
|
114
|
+
// Rewind specific checkpoint
|
|
115
|
+
const cp = this.session.checkpoints.find((c) => c.id === options.checkpointId);
|
|
116
|
+
if (cp) {
|
|
117
|
+
checkpointsToRewind = [cp];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (options.path) {
|
|
121
|
+
// Rewind all changes to a specific file (in reverse order)
|
|
122
|
+
checkpointsToRewind = this.session.checkpoints
|
|
123
|
+
.filter((c) => c.path === options.path)
|
|
124
|
+
.reverse();
|
|
125
|
+
}
|
|
126
|
+
else if (options.count) {
|
|
127
|
+
// Rewind last N changes (in reverse order)
|
|
128
|
+
checkpointsToRewind = this.session.checkpoints.slice(-options.count).reverse();
|
|
129
|
+
}
|
|
130
|
+
else if (options.all) {
|
|
131
|
+
// Rewind all changes (in reverse order)
|
|
132
|
+
checkpointsToRewind = [...this.session.checkpoints].reverse();
|
|
133
|
+
}
|
|
134
|
+
// Apply reverts
|
|
135
|
+
for (const checkpoint of checkpointsToRewind) {
|
|
136
|
+
try {
|
|
137
|
+
await this.revertCheckpoint(checkpoint);
|
|
138
|
+
result.revertedFiles.push({
|
|
139
|
+
path: checkpoint.path,
|
|
140
|
+
action: this.getRevertAction(checkpoint),
|
|
141
|
+
});
|
|
142
|
+
// Remove the checkpoint from session
|
|
143
|
+
const index = this.session.checkpoints.findIndex((c) => c.id === checkpoint.id);
|
|
144
|
+
if (index !== -1) {
|
|
145
|
+
this.session.checkpoints.splice(index, 1);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
result.success = false;
|
|
150
|
+
result.errors.push({
|
|
151
|
+
path: checkpoint.path,
|
|
152
|
+
error: error instanceof Error ? error.message : String(error),
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Revert a single checkpoint
|
|
160
|
+
*/
|
|
161
|
+
async revertCheckpoint(checkpoint) {
|
|
162
|
+
switch (checkpoint.changeType) {
|
|
163
|
+
case 'create':
|
|
164
|
+
// File was created, delete it to revert
|
|
165
|
+
await fs.unlink(checkpoint.path);
|
|
166
|
+
break;
|
|
167
|
+
case 'modify':
|
|
168
|
+
// File was modified, restore previous content
|
|
169
|
+
if (checkpoint.previousContent !== null) {
|
|
170
|
+
await fs.writeFile(checkpoint.path, checkpoint.previousContent, 'utf-8');
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
case 'delete':
|
|
174
|
+
// File was deleted, recreate it with previous content
|
|
175
|
+
if (checkpoint.previousContent !== null) {
|
|
176
|
+
await fs.mkdir(path.dirname(checkpoint.path), { recursive: true });
|
|
177
|
+
await fs.writeFile(checkpoint.path, checkpoint.previousContent, 'utf-8');
|
|
178
|
+
}
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Get the action that will be taken to revert a checkpoint
|
|
184
|
+
*/
|
|
185
|
+
getRevertAction(checkpoint) {
|
|
186
|
+
switch (checkpoint.changeType) {
|
|
187
|
+
case 'create':
|
|
188
|
+
return 'deleted';
|
|
189
|
+
case 'modify':
|
|
190
|
+
return 'restored';
|
|
191
|
+
case 'delete':
|
|
192
|
+
return 'recreated';
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Clear all checkpoints
|
|
197
|
+
*/
|
|
198
|
+
clearCheckpoints() {
|
|
199
|
+
this.session.checkpoints = [];
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Format checkpoints for display
|
|
203
|
+
*/
|
|
204
|
+
formatCheckpointList(includeUsage = false) {
|
|
205
|
+
if (this.session.checkpoints.length === 0) {
|
|
206
|
+
return 'No file changes in this session.';
|
|
207
|
+
}
|
|
208
|
+
const lines = [];
|
|
209
|
+
this.session.checkpoints.forEach((cp, index) => {
|
|
210
|
+
const timeAgo = this.formatTimeAgo(cp.timestamp);
|
|
211
|
+
const action = this.formatChangeType(cp.changeType);
|
|
212
|
+
const fileName = cp.path.split('/').pop() || cp.path;
|
|
213
|
+
lines.push(` [${index + 1}] ${timeAgo.padEnd(8)} ${fileName.padEnd(30)} (${action})`);
|
|
214
|
+
});
|
|
215
|
+
const summary = this.getSummary();
|
|
216
|
+
lines.push('');
|
|
217
|
+
lines.push(`Total: ${summary.created} created, ${summary.modified} modified, ${summary.deleted} deleted`);
|
|
218
|
+
if (includeUsage) {
|
|
219
|
+
lines.push('');
|
|
220
|
+
lines.push('Usage: /rewind [n] to revert change #n, /rewind all to revert all');
|
|
221
|
+
}
|
|
222
|
+
return lines.join('\n');
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Format a change type for display
|
|
226
|
+
*/
|
|
227
|
+
formatChangeType(changeType) {
|
|
228
|
+
switch (changeType) {
|
|
229
|
+
case 'create':
|
|
230
|
+
return 'created';
|
|
231
|
+
case 'modify':
|
|
232
|
+
return 'modified';
|
|
233
|
+
case 'delete':
|
|
234
|
+
return 'deleted';
|
|
235
|
+
default:
|
|
236
|
+
return changeType;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Format a timestamp as relative time
|
|
241
|
+
*/
|
|
242
|
+
formatTimeAgo(date) {
|
|
243
|
+
const seconds = Math.floor((Date.now() - date.getTime()) / 1000);
|
|
244
|
+
if (seconds < 60) {
|
|
245
|
+
return `${seconds}s ago`;
|
|
246
|
+
}
|
|
247
|
+
const minutes = Math.floor(seconds / 60);
|
|
248
|
+
if (minutes < 60) {
|
|
249
|
+
return `${minutes}m ago`;
|
|
250
|
+
}
|
|
251
|
+
const hours = Math.floor(minutes / 60);
|
|
252
|
+
return `${hours}h ago`;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
// ============================================================================
|
|
256
|
+
// Singleton Instance
|
|
257
|
+
// ============================================================================
|
|
258
|
+
let globalCheckpointManager = null;
|
|
259
|
+
/**
|
|
260
|
+
* Get the global checkpoint manager instance
|
|
261
|
+
*/
|
|
262
|
+
export function getCheckpointManager() {
|
|
263
|
+
if (!globalCheckpointManager) {
|
|
264
|
+
globalCheckpointManager = new CheckpointManager();
|
|
265
|
+
}
|
|
266
|
+
return globalCheckpointManager;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Initialize checkpoint manager with a session ID
|
|
270
|
+
*/
|
|
271
|
+
export function initCheckpointManager(sessionId) {
|
|
272
|
+
globalCheckpointManager = new CheckpointManager(sessionId);
|
|
273
|
+
return globalCheckpointManager;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Reset the global checkpoint manager (for testing)
|
|
277
|
+
*/
|
|
278
|
+
export function resetCheckpointManager() {
|
|
279
|
+
globalCheckpointManager = null;
|
|
280
|
+
}
|
|
281
|
+
//# sourceMappingURL=checkpoint-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoint-manager.js","sourceRoot":"","sources":["../../src/checkpointing/checkpoint-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAU7B;;GAEG;AACH,SAAS,UAAU;IACjB,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AACnE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,iBAAiB;IACpB,OAAO,CAAoB;IAEnC,YAAY,YAAoB,SAAS;Q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AAG,IAAI,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkpointing Module
|
|
3
|
+
*
|
|
4
|
+
* Provides automatic tracking of file changes with undo/rewind capabilities.
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* import { getCheckpointManager, initCheckpointManager } from './checkpointing';
|
|
8
|
+
*
|
|
9
|
+
* // Initialize at session start
|
|
10
|
+
* const manager = initCheckpointManager('session-123');
|
|
11
|
+
*
|
|
12
|
+
* // Record changes (done automatically by ToolRegistry)
|
|
13
|
+
* manager.recordChange({
|
|
14
|
+
* path: '/path/to/file.ts',
|
|
15
|
+
* changeType: 'modify',
|
|
16
|
+
* previousContent: 'old content',
|
|
17
|
+
* newContent: 'new content',
|
|
18
|
+
* toolName: 'Edit'
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* // List changes
|
|
22
|
+
* console.log(manager.formatCheckpointList());
|
|
23
|
+
*
|
|
24
|
+
* // Rewind changes
|
|
25
|
+
* await manager.rewind({ all: true });
|
|
26
|
+
*/
|
|
27
|
+
export type { ChangeType, FileCheckpoint, CheckpointSession, RewindOptions, RewindResult, CheckpointSummary, RecordChangeInput, } from './types.js';
|
|
28
|
+
export { CheckpointManager, getCheckpointManager, initCheckpointManager, resetCheckpointManager, } from './checkpoint-manager.js';
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/checkpointing/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,YAAY,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkpointing Module
|
|
3
|
+
*
|
|
4
|
+
* Provides automatic tracking of file changes with undo/rewind capabilities.
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* import { getCheckpointManager, initCheckpointManager } from './checkpointing';
|
|
8
|
+
*
|
|
9
|
+
* // Initialize at session start
|
|
10
|
+
* const manager = initCheckpointManager('session-123');
|
|
11
|
+
*
|
|
12
|
+
* // Record changes (done automatically by ToolRegistry)
|
|
13
|
+
* manager.recordChange({
|
|
14
|
+
* path: '/path/to/file.ts',
|
|
15
|
+
* changeType: 'modify',
|
|
16
|
+
* previousContent: 'old content',
|
|
17
|
+
* newContent: 'new content',
|
|
18
|
+
* toolName: 'Edit'
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* // List changes
|
|
22
|
+
* console.log(manager.formatCheckpointList());
|
|
23
|
+
*
|
|
24
|
+
* // Rewind changes
|
|
25
|
+
* await manager.rewind({ all: true });
|
|
26
|
+
*/
|
|
27
|
+
// Manager exports
|
|
28
|
+
export { CheckpointManager, getCheckpointManager, initCheckpointManager, resetCheckpointManager, } from './checkpoint-manager.js';
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/checkpointing/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAaH,kBAAkB;AAClB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkpointing System Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Provides automatic tracking of file changes with undo/rewind capabilities.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Type of file change
|
|
8
|
+
*/
|
|
9
|
+
export type ChangeType = 'create' | 'modify' | 'delete';
|
|
10
|
+
/**
|
|
11
|
+
* A single file checkpoint recording a change
|
|
12
|
+
*/
|
|
13
|
+
export interface FileCheckpoint {
|
|
14
|
+
/** Unique identifier for this checkpoint */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Path to the file that was changed */
|
|
17
|
+
path: string;
|
|
18
|
+
/** Type of change made */
|
|
19
|
+
changeType: ChangeType;
|
|
20
|
+
/** When the change was made */
|
|
21
|
+
timestamp: Date;
|
|
22
|
+
/** File content before the change (null for create) */
|
|
23
|
+
previousContent: string | null;
|
|
24
|
+
/** File content after the change (null for delete) */
|
|
25
|
+
newContent: string | null;
|
|
26
|
+
/** Which tool made the change */
|
|
27
|
+
toolName: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A checkpoint session containing all checkpoints for a session
|
|
31
|
+
*/
|
|
32
|
+
export interface CheckpointSession {
|
|
33
|
+
/** Session ID this checkpoint session belongs to */
|
|
34
|
+
sessionId: string;
|
|
35
|
+
/** All checkpoints in order */
|
|
36
|
+
checkpoints: FileCheckpoint[];
|
|
37
|
+
/** When this checkpoint session was created */
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Options for rewinding changes
|
|
42
|
+
*/
|
|
43
|
+
export interface RewindOptions {
|
|
44
|
+
/** Rewind a specific checkpoint by ID */
|
|
45
|
+
checkpointId?: string;
|
|
46
|
+
/** Rewind changes to a specific file path */
|
|
47
|
+
path?: string;
|
|
48
|
+
/** Rewind all changes */
|
|
49
|
+
all?: boolean;
|
|
50
|
+
/** Rewind the last N changes */
|
|
51
|
+
count?: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Result of a rewind operation
|
|
55
|
+
*/
|
|
56
|
+
export interface RewindResult {
|
|
57
|
+
/** Whether the rewind was successful */
|
|
58
|
+
success: boolean;
|
|
59
|
+
/** Files that were successfully reverted */
|
|
60
|
+
revertedFiles: Array<{
|
|
61
|
+
path: string;
|
|
62
|
+
action: 'restored' | 'deleted' | 'recreated';
|
|
63
|
+
}>;
|
|
64
|
+
/** Any errors that occurred during rewind */
|
|
65
|
+
errors: Array<{
|
|
66
|
+
path: string;
|
|
67
|
+
error: string;
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Summary of changes in a checkpoint session
|
|
72
|
+
*/
|
|
73
|
+
export interface CheckpointSummary {
|
|
74
|
+
/** Number of files created */
|
|
75
|
+
created: number;
|
|
76
|
+
/** Number of files modified */
|
|
77
|
+
modified: number;
|
|
78
|
+
/** Number of files deleted */
|
|
79
|
+
deleted: number;
|
|
80
|
+
/** Total number of checkpoints */
|
|
81
|
+
total: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input for recording a file change
|
|
85
|
+
*/
|
|
86
|
+
export interface RecordChangeInput {
|
|
87
|
+
/** Path to the file */
|
|
88
|
+
path: string;
|
|
89
|
+
/** Type of change */
|
|
90
|
+
changeType: ChangeType;
|
|
91
|
+
/** Content before change (null for create) */
|
|
92
|
+
previousContent: string | null;
|
|
93
|
+
/** Content after change (null for delete) */
|
|
94
|
+
newContent: string | null;
|
|
95
|
+
/** Tool that made the change */
|
|
96
|
+
toolName: string;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/checkpointing/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;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AAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,6CAA6C;IAC7C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/checkpointing/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/cli/components/App.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/cli/components/App.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkExD,UAAU,eAAe;IACvB,IAAI,EAAE,CAAC,QAAQ,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxH;AAQD,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,UAAU,QAAQ;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAsID,wBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,EAAE,QAAQ,2CA44B1F"}
|