ultracode 5.4.0 → 5.6.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/dist/chunks/analysis-tool-handlers-GH5FDEWW.js +817 -0
- package/dist/chunks/analysis-tool-handlers-IXP4MWZX.js +817 -0
- package/dist/chunks/analysis-tool-handlers-LC2BTQYK.js +13 -0
- package/dist/chunks/analysis-tool-handlers-QYFKQPFL.js +817 -0
- package/dist/chunks/autodoc-tool-handlers-2HF6ERYN.js +1112 -0
- package/dist/chunks/autodoc-tool-handlers-4OGQJ7C3.js +1112 -0
- package/dist/chunks/autodoc-tool-handlers-N736CB56.js +138 -0
- package/dist/chunks/autodoc-tool-handlers-NQYBY6U4.js +1112 -0
- package/dist/chunks/branch-tool-handlers-KW3H4FJK.js +276 -0
- package/dist/chunks/branch-tool-handlers-QOUDZKJ2.js +276 -0
- package/dist/chunks/branch-tool-handlers-RB2U36KI.js +2 -0
- package/dist/chunks/branch-tool-handlers-ZHJM6PDK.js +276 -0
- package/dist/chunks/chunk-2Z6OQPYC.js +656 -0
- package/dist/chunks/chunk-3MQ7LRPN.js +322 -0
- package/dist/chunks/chunk-4W6QYGXZ.js +10 -0
- package/dist/chunks/chunk-533NFGUG.js +1 -0
- package/dist/chunks/chunk-5NUPOPWM.js +1 -0
- package/dist/chunks/chunk-AK4HIPA2.js +322 -0
- package/dist/chunks/chunk-B3H5NS3I.js +656 -0
- package/dist/chunks/chunk-DPTZHDST.js +4 -0
- package/dist/chunks/chunk-E5HQWLU5.js +322 -0
- package/dist/chunks/chunk-EOH25B5P.js +572 -0
- package/dist/chunks/chunk-ESV6F6E3.js +3179 -0
- package/dist/chunks/chunk-FPELPFER.js +924 -0
- package/dist/chunks/chunk-G6J42I55.js +161 -0
- package/dist/chunks/chunk-GCQE7ZYW.js +1 -0
- package/dist/chunks/chunk-GTIF6MOX.js +1 -0
- package/dist/chunks/chunk-I6STSSAK.js +2 -0
- package/dist/chunks/chunk-J2WBGTK2.js +4697 -0
- package/dist/chunks/chunk-KAYOX5EB.js +4697 -0
- package/dist/chunks/chunk-KPMTACOT.js +656 -0
- package/dist/chunks/chunk-L376GZ44.js +3179 -0
- package/dist/chunks/chunk-LCTOTHDA.js +15 -0
- package/dist/chunks/chunk-LEDJ7GVQ.js +316 -0
- package/dist/chunks/chunk-LH4OUKNZ.js +277 -0
- package/dist/chunks/chunk-O6IE2MEZ.js +161 -0
- package/dist/chunks/chunk-OEXPCY3F.js +316 -0
- package/dist/chunks/chunk-OMXOLFDN.js +924 -0
- package/dist/chunks/chunk-PLPBXWOU.js +3179 -0
- package/dist/chunks/chunk-PWLE5DN2.js +572 -0
- package/dist/chunks/chunk-PY43JPWL.js +447 -0
- package/dist/chunks/chunk-Q3B4EB7A.js +15 -0
- package/dist/chunks/chunk-Q5LPVLXA.js +337 -0
- package/dist/chunks/chunk-QIRZHZK2.js +5 -0
- package/dist/chunks/chunk-ROQ27LSL.js +924 -0
- package/dist/chunks/chunk-S5Q7BD6J.js +572 -0
- package/dist/chunks/chunk-SAMX3HJQ.js +337 -0
- package/dist/chunks/chunk-SV3WKUNV.js +1 -0
- package/dist/chunks/chunk-TCHCDCDO.js +167 -0
- package/dist/chunks/chunk-TR3HS7U6.js +316 -0
- package/dist/chunks/chunk-TUWE6FCW.js +167 -0
- package/dist/chunks/chunk-TVOTA7EE.js +277 -0
- package/dist/chunks/chunk-VS44D772.js +337 -0
- package/dist/chunks/chunk-WIE3G5ES.js +167 -0
- package/dist/chunks/chunk-XG3ACLWR.js +5 -0
- package/dist/chunks/chunk-XJ2Z5QQO.js +1 -0
- package/dist/chunks/chunk-XK2NY7RB.js +277 -0
- package/dist/chunks/chunk-Y4F7NZFZ.js +4700 -0
- package/dist/chunks/chunk-YS75L3ZS.js +161 -0
- package/dist/chunks/chunk-ZVG5HHI3.js +15 -0
- package/dist/chunks/dev-agent-DDDIVWOF.js +1 -0
- package/dist/chunks/dev-agent-E2VCFKXN.js +1624 -0
- package/dist/chunks/dev-agent-KJNSU5KQ.js +1624 -0
- package/dist/chunks/dev-agent-NDERYIPV.js +1624 -0
- package/dist/chunks/faiss-provider-7R4BQDIV.js +12 -0
- package/dist/chunks/faiss-provider-7ZFRSDN5.js +12 -0
- package/dist/chunks/faiss-provider-SXB7FTLB.js +1 -0
- package/dist/chunks/faiss-provider-TKLBEUSH.js +12 -0
- package/dist/chunks/file-tool-handlers-5DODQXGF.js +1027 -0
- package/dist/chunks/file-tool-handlers-KGHLE4KR.js +1027 -0
- package/dist/chunks/file-tool-handlers-KTOQ4NFS.js +12 -0
- package/dist/chunks/file-tool-handlers-V4SFUDQB.js +1027 -0
- package/dist/chunks/graph-metrics-tool-handlers-3AV4X4ZY.js +65 -0
- package/dist/chunks/graph-metrics-tool-handlers-3VMDQHJ6.js +65 -0
- package/dist/chunks/graph-metrics-tool-handlers-BZ6E6YHF.js +1 -0
- package/dist/chunks/graph-metrics-tool-handlers-IYBGSXL7.js +65 -0
- package/dist/chunks/graph-storage-factory-2CQ2RPDV.js +13 -0
- package/dist/chunks/graph-storage-factory-C5SMMYL6.js +13 -0
- package/dist/chunks/graph-storage-factory-EEO2V3GJ.js +1 -0
- package/dist/chunks/graph-storage-factory-WBCTXP34.js +13 -0
- package/dist/chunks/history-tool-handlers-AS7OQFZI.js +1 -0
- package/dist/chunks/history-tool-handlers-FSNJYXV2.js +208 -0
- package/dist/chunks/history-tool-handlers-JZAH4EIQ.js +208 -0
- package/dist/chunks/history-tool-handlers-KCSCXZ7T.js +208 -0
- package/dist/chunks/incremental-updater-A2EL4QXU.js +14 -0
- package/dist/chunks/incremental-updater-EQIKBVY2.js +14 -0
- package/dist/chunks/incremental-updater-JFGRPH3B.js +14 -0
- package/dist/chunks/incremental-updater-S5BAAGHP.js +1 -0
- package/dist/chunks/indexer-agent-ASKY7JPG.js +1 -0
- package/dist/chunks/indexer-agent-NKAOF323.js +21 -0
- package/dist/chunks/indexer-agent-PJN5IOKQ.js +21 -0
- package/dist/chunks/indexer-agent-WRJFWKZX.js +21 -0
- package/dist/chunks/indexing-pipeline-D4P2O72Z.js +249 -0
- package/dist/chunks/indexing-pipeline-L7C543N4.js +1 -0
- package/dist/chunks/indexing-pipeline-NHPRN3AB.js +249 -0
- package/dist/chunks/indexing-pipeline-ZAXCZU22.js +249 -0
- package/dist/chunks/layered-faiss-provider-62CNW54X.js +1 -0
- package/dist/chunks/layered-faiss-provider-O7L77GFX.js +12 -0
- package/dist/chunks/layered-faiss-provider-RVHLHLPK.js +12 -0
- package/dist/chunks/layered-faiss-provider-YT7EDIJI.js +12 -0
- package/dist/chunks/merge-agent-3RF7VFF5.js +2481 -0
- package/dist/chunks/merge-agent-JCKTCBCE.js +2481 -0
- package/dist/chunks/merge-agent-VCL7OXPN.js +2481 -0
- package/dist/chunks/merge-agent-ZGK24WVF.js +11 -0
- package/dist/chunks/merge-tool-handlers-GV2LOIKU.js +277 -0
- package/dist/chunks/merge-tool-handlers-TYDWU5X2.js +277 -0
- package/dist/chunks/merge-tool-handlers-U7X2ZO2M.js +1 -0
- package/dist/chunks/merge-tool-handlers-YH62ZLPJ.js +277 -0
- package/dist/chunks/pattern-tool-handlers-76NF5JDS.js +13 -0
- package/dist/chunks/pattern-tool-handlers-IJAGEIVD.js +1549 -0
- package/dist/chunks/pattern-tool-handlers-VA5WYA62.js +1549 -0
- package/dist/chunks/pattern-tool-handlers-WQ6UBMJS.js +1549 -0
- package/dist/chunks/query-agent-36ADGCFZ.js +1 -0
- package/dist/chunks/query-agent-H22CR5N5.js +191 -0
- package/dist/chunks/query-agent-K2UGZS4M.js +191 -0
- package/dist/chunks/query-agent-YJCEHOXD.js +191 -0
- package/dist/chunks/semantic-agent-AC7CBEDE.js +6381 -0
- package/dist/chunks/semantic-agent-HK5X6CKU.js +6381 -0
- package/dist/chunks/semantic-agent-KONIKEGW.js +6381 -0
- package/dist/chunks/semantic-agent-LH6IZ2L7.js +137 -0
- package/dist/chunks/semantic-tool-handlers-5LMSH2U7.js +3 -0
- package/dist/chunks/semantic-tool-handlers-735UMO7Y.js +817 -0
- package/dist/chunks/semantic-tool-handlers-BNUYPP7X.js +817 -0
- package/dist/chunks/semantic-tool-handlers-MYZPEUD2.js +817 -0
- package/dist/chunks/snapshot-tool-handlers-6SIHZT2F.js +201 -0
- package/dist/chunks/snapshot-tool-handlers-DS4P3KOT.js +201 -0
- package/dist/chunks/snapshot-tool-handlers-JYHRFPC7.js +201 -0
- package/dist/chunks/snapshot-tool-handlers-YEHMAT3L.js +1 -0
- package/dist/chunks/storage-paths-A3C7WHHG.js +8 -0
- package/dist/chunks/storage-paths-HDYH7WPM.js +1 -0
- package/dist/chunks/storage-paths-IMFRHBWF.js +8 -0
- package/dist/chunks/storage-paths-P3PUSMUD.js +8 -0
- package/dist/chunks/taint-tool-handlers-CWESOOMQ.js +68 -0
- package/dist/chunks/taint-tool-handlers-OG3NVVP3.js +1 -0
- package/dist/chunks/taint-tool-handlers-ON3G3FA7.js +68 -0
- package/dist/chunks/taint-tool-handlers-P4P5J6DB.js +68 -0
- package/dist/chunks/tracing-tool-handlers-4BDCXTZZ.js +3935 -0
- package/dist/chunks/tracing-tool-handlers-6FPNM7HX.js +3935 -0
- package/dist/chunks/tracing-tool-handlers-LQTQ5SKK.js +89 -0
- package/dist/chunks/tracing-tool-handlers-XRQX2DTS.js +3935 -0
- package/dist/chunks/validation-tool-handlers-DZUG7KYY.js +2 -0
- package/dist/chunks/validation-tool-handlers-O6TGFSH5.js +555 -0
- package/dist/chunks/validation-tool-handlers-RREUYKIR.js +555 -0
- package/dist/chunks/validation-tool-handlers-XPWSMS37.js +555 -0
- package/dist/index.js +13 -13
- package/dist/roslyn-addon/.build-hash +1 -1
- package/dist/roslyn-addon/ILGPU.Algorithms.dll +0 -0
- package/dist/roslyn-addon/ILGPU.dll +0 -0
- package/dist/roslyn-addon/UltraCode.CSharp.deps.json +35 -0
- package/dist/roslyn-addon/UltraCode.CSharp.dll +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { BaseToolHandler } from './chunk-SAMX3HJQ.js';
|
|
2
|
+
import './chunk-WIE3G5ES.js';
|
|
3
|
+
import './chunk-XK2NY7RB.js';
|
|
4
|
+
import './chunk-HEMJHRHZ.js';
|
|
5
|
+
import { toError } from './chunk-5WKPA33T.js';
|
|
6
|
+
import './chunk-VCCBEJQ5.js';
|
|
7
|
+
import './chunk-NAQKA54E.js';
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
|
|
10
|
+
var CreateSnapshotSchema = z.object({
|
|
11
|
+
description: z.string().optional(),
|
|
12
|
+
entityIds: z.array(z.string()).optional(),
|
|
13
|
+
filePaths: z.array(z.string()).optional()
|
|
14
|
+
});
|
|
15
|
+
var CreateSnapshotToolHandler = class extends BaseToolHandler {
|
|
16
|
+
parseArgs(args) {
|
|
17
|
+
return CreateSnapshotSchema.parse(args);
|
|
18
|
+
}
|
|
19
|
+
async execute(args) {
|
|
20
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
21
|
+
if (!snapshotManager) {
|
|
22
|
+
return {
|
|
23
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
const description = args.description || `Snapshot created at ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
28
|
+
const files = args.filePaths?.map((p) => this.context.normalizeInputPath(p)).filter(Boolean);
|
|
29
|
+
const snapshotId = await snapshotManager.createSnapshot(description, files);
|
|
30
|
+
return {
|
|
31
|
+
content: [
|
|
32
|
+
{
|
|
33
|
+
type: "text",
|
|
34
|
+
text: JSON.stringify(
|
|
35
|
+
{
|
|
36
|
+
success: true,
|
|
37
|
+
snapshotId,
|
|
38
|
+
description,
|
|
39
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
40
|
+
},
|
|
41
|
+
null,
|
|
42
|
+
2
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
} catch (error) {
|
|
48
|
+
const err = toError(error);
|
|
49
|
+
return {
|
|
50
|
+
content: [{ type: "text", text: JSON.stringify({ error: err.message }) }]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var RollbackSnapshotSchema = z.object({
|
|
56
|
+
snapshotId: z.string().optional(),
|
|
57
|
+
steps: z.number().optional().default(1)
|
|
58
|
+
});
|
|
59
|
+
var RollbackSnapshotToolHandler = class extends BaseToolHandler {
|
|
60
|
+
parseArgs(args) {
|
|
61
|
+
return RollbackSnapshotSchema.parse(args);
|
|
62
|
+
}
|
|
63
|
+
async execute(args) {
|
|
64
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
65
|
+
if (!snapshotManager) {
|
|
66
|
+
return {
|
|
67
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
let targetSnapshotId = args.snapshotId;
|
|
72
|
+
if (!targetSnapshotId) {
|
|
73
|
+
const snapshots = await snapshotManager.listSnapshots(args.steps);
|
|
74
|
+
if (snapshots.length === 0) {
|
|
75
|
+
return {
|
|
76
|
+
content: [{ type: "text", text: JSON.stringify({ error: "No snapshots available to rollback" }) }]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const targetIndex = Math.min(args.steps - 1, snapshots.length - 1);
|
|
80
|
+
targetSnapshotId = snapshots[targetIndex].id;
|
|
81
|
+
}
|
|
82
|
+
await snapshotManager.rollback(targetSnapshotId);
|
|
83
|
+
return {
|
|
84
|
+
content: [
|
|
85
|
+
{
|
|
86
|
+
type: "text",
|
|
87
|
+
text: JSON.stringify(
|
|
88
|
+
{
|
|
89
|
+
success: true,
|
|
90
|
+
restoredSnapshot: targetSnapshotId,
|
|
91
|
+
message: `Rolled back to snapshot ${targetSnapshotId}`
|
|
92
|
+
},
|
|
93
|
+
null,
|
|
94
|
+
2
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
} catch (error) {
|
|
100
|
+
const err = toError(error);
|
|
101
|
+
return {
|
|
102
|
+
content: [{ type: "text", text: JSON.stringify({ error: err.message }) }]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var ListSnapshotsSchema = z.object({
|
|
108
|
+
limit: z.number().optional().default(20),
|
|
109
|
+
includeDetails: z.boolean().optional().default(false)
|
|
110
|
+
});
|
|
111
|
+
var ListSnapshotsToolHandler = class extends BaseToolHandler {
|
|
112
|
+
parseArgs(args) {
|
|
113
|
+
return ListSnapshotsSchema.parse(args);
|
|
114
|
+
}
|
|
115
|
+
async execute(args) {
|
|
116
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
117
|
+
if (!snapshotManager) {
|
|
118
|
+
return {
|
|
119
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const snapshots = await snapshotManager.listSnapshots(args.limit);
|
|
123
|
+
return {
|
|
124
|
+
content: [
|
|
125
|
+
{
|
|
126
|
+
type: "text",
|
|
127
|
+
text: JSON.stringify(
|
|
128
|
+
{
|
|
129
|
+
count: snapshots.length,
|
|
130
|
+
snapshots: snapshots.map((s) => ({
|
|
131
|
+
id: s.id,
|
|
132
|
+
description: s.description,
|
|
133
|
+
timestamp: s.timestamp,
|
|
134
|
+
createdAt: new Date(s.timestamp).toISOString(),
|
|
135
|
+
backend: s.backend,
|
|
136
|
+
filesCount: s.filesCount,
|
|
137
|
+
sizeBytes: s.sizeBytes
|
|
138
|
+
}))
|
|
139
|
+
},
|
|
140
|
+
null,
|
|
141
|
+
2
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
var CleanupSnapshotsSchema = z.object({
|
|
149
|
+
keepCount: z.number().optional().default(10),
|
|
150
|
+
olderThanDays: z.number().optional(),
|
|
151
|
+
dryRun: z.boolean().optional().default(true)
|
|
152
|
+
});
|
|
153
|
+
var CleanupSnapshotsToolHandler = class extends BaseToolHandler {
|
|
154
|
+
parseArgs(args) {
|
|
155
|
+
return CleanupSnapshotsSchema.parse(args);
|
|
156
|
+
}
|
|
157
|
+
async execute(args) {
|
|
158
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
159
|
+
if (!snapshotManager) {
|
|
160
|
+
return {
|
|
161
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
const allSnapshots = await snapshotManager.listSnapshots(1e3);
|
|
165
|
+
let toCleanup = [...allSnapshots];
|
|
166
|
+
toCleanup.sort((a, b) => b.timestamp - a.timestamp);
|
|
167
|
+
const toKeep = toCleanup.slice(0, args.keepCount);
|
|
168
|
+
toCleanup = toCleanup.slice(args.keepCount);
|
|
169
|
+
if (args.olderThanDays) {
|
|
170
|
+
const cutoffTime = Date.now() - args.olderThanDays * 24 * 60 * 60 * 1e3;
|
|
171
|
+
toCleanup = toCleanup.filter((s) => s.timestamp < cutoffTime);
|
|
172
|
+
}
|
|
173
|
+
if (!args.dryRun) {
|
|
174
|
+
for (const snapshot of toCleanup) {
|
|
175
|
+
await snapshotManager.deleteSnapshot(snapshot.id);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
content: [
|
|
180
|
+
{
|
|
181
|
+
type: "text",
|
|
182
|
+
text: JSON.stringify(
|
|
183
|
+
{
|
|
184
|
+
dryRun: args.dryRun,
|
|
185
|
+
totalSnapshots: allSnapshots.length,
|
|
186
|
+
snapshotsKept: toKeep.length,
|
|
187
|
+
snapshotsCleaned: toCleanup.length,
|
|
188
|
+
cleanedIds: toCleanup.map((s) => s.id)
|
|
189
|
+
},
|
|
190
|
+
null,
|
|
191
|
+
2
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export { CleanupSnapshotsToolHandler, CreateSnapshotToolHandler, ListSnapshotsToolHandler, RollbackSnapshotToolHandler };
|
|
200
|
+
//# sourceMappingURL=snapshot-tool-handlers-6SIHZT2F.js.map
|
|
201
|
+
//# sourceMappingURL=snapshot-tool-handlers-6SIHZT2F.js.map
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { BaseToolHandler } from './chunk-VS44D772.js';
|
|
2
|
+
import './chunk-TUWE6FCW.js';
|
|
3
|
+
import './chunk-TVOTA7EE.js';
|
|
4
|
+
import './chunk-HEMJHRHZ.js';
|
|
5
|
+
import { toError } from './chunk-5WKPA33T.js';
|
|
6
|
+
import './chunk-VCCBEJQ5.js';
|
|
7
|
+
import './chunk-NAQKA54E.js';
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
|
|
10
|
+
var CreateSnapshotSchema = z.object({
|
|
11
|
+
description: z.string().optional(),
|
|
12
|
+
entityIds: z.array(z.string()).optional(),
|
|
13
|
+
filePaths: z.array(z.string()).optional()
|
|
14
|
+
});
|
|
15
|
+
var CreateSnapshotToolHandler = class extends BaseToolHandler {
|
|
16
|
+
parseArgs(args) {
|
|
17
|
+
return CreateSnapshotSchema.parse(args);
|
|
18
|
+
}
|
|
19
|
+
async execute(args) {
|
|
20
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
21
|
+
if (!snapshotManager) {
|
|
22
|
+
return {
|
|
23
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
const description = args.description || `Snapshot created at ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
28
|
+
const files = args.filePaths?.map((p) => this.context.normalizeInputPath(p)).filter(Boolean);
|
|
29
|
+
const snapshotId = await snapshotManager.createSnapshot(description, files);
|
|
30
|
+
return {
|
|
31
|
+
content: [
|
|
32
|
+
{
|
|
33
|
+
type: "text",
|
|
34
|
+
text: JSON.stringify(
|
|
35
|
+
{
|
|
36
|
+
success: true,
|
|
37
|
+
snapshotId,
|
|
38
|
+
description,
|
|
39
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
40
|
+
},
|
|
41
|
+
null,
|
|
42
|
+
2
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
} catch (error) {
|
|
48
|
+
const err = toError(error);
|
|
49
|
+
return {
|
|
50
|
+
content: [{ type: "text", text: JSON.stringify({ error: err.message }) }]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var RollbackSnapshotSchema = z.object({
|
|
56
|
+
snapshotId: z.string().optional(),
|
|
57
|
+
steps: z.number().optional().default(1)
|
|
58
|
+
});
|
|
59
|
+
var RollbackSnapshotToolHandler = class extends BaseToolHandler {
|
|
60
|
+
parseArgs(args) {
|
|
61
|
+
return RollbackSnapshotSchema.parse(args);
|
|
62
|
+
}
|
|
63
|
+
async execute(args) {
|
|
64
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
65
|
+
if (!snapshotManager) {
|
|
66
|
+
return {
|
|
67
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
let targetSnapshotId = args.snapshotId;
|
|
72
|
+
if (!targetSnapshotId) {
|
|
73
|
+
const snapshots = await snapshotManager.listSnapshots(args.steps);
|
|
74
|
+
if (snapshots.length === 0) {
|
|
75
|
+
return {
|
|
76
|
+
content: [{ type: "text", text: JSON.stringify({ error: "No snapshots available to rollback" }) }]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const targetIndex = Math.min(args.steps - 1, snapshots.length - 1);
|
|
80
|
+
targetSnapshotId = snapshots[targetIndex].id;
|
|
81
|
+
}
|
|
82
|
+
await snapshotManager.rollback(targetSnapshotId);
|
|
83
|
+
return {
|
|
84
|
+
content: [
|
|
85
|
+
{
|
|
86
|
+
type: "text",
|
|
87
|
+
text: JSON.stringify(
|
|
88
|
+
{
|
|
89
|
+
success: true,
|
|
90
|
+
restoredSnapshot: targetSnapshotId,
|
|
91
|
+
message: `Rolled back to snapshot ${targetSnapshotId}`
|
|
92
|
+
},
|
|
93
|
+
null,
|
|
94
|
+
2
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
} catch (error) {
|
|
100
|
+
const err = toError(error);
|
|
101
|
+
return {
|
|
102
|
+
content: [{ type: "text", text: JSON.stringify({ error: err.message }) }]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var ListSnapshotsSchema = z.object({
|
|
108
|
+
limit: z.number().optional().default(20),
|
|
109
|
+
includeDetails: z.boolean().optional().default(false)
|
|
110
|
+
});
|
|
111
|
+
var ListSnapshotsToolHandler = class extends BaseToolHandler {
|
|
112
|
+
parseArgs(args) {
|
|
113
|
+
return ListSnapshotsSchema.parse(args);
|
|
114
|
+
}
|
|
115
|
+
async execute(args) {
|
|
116
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
117
|
+
if (!snapshotManager) {
|
|
118
|
+
return {
|
|
119
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const snapshots = await snapshotManager.listSnapshots(args.limit);
|
|
123
|
+
return {
|
|
124
|
+
content: [
|
|
125
|
+
{
|
|
126
|
+
type: "text",
|
|
127
|
+
text: JSON.stringify(
|
|
128
|
+
{
|
|
129
|
+
count: snapshots.length,
|
|
130
|
+
snapshots: snapshots.map((s) => ({
|
|
131
|
+
id: s.id,
|
|
132
|
+
description: s.description,
|
|
133
|
+
timestamp: s.timestamp,
|
|
134
|
+
createdAt: new Date(s.timestamp).toISOString(),
|
|
135
|
+
backend: s.backend,
|
|
136
|
+
filesCount: s.filesCount,
|
|
137
|
+
sizeBytes: s.sizeBytes
|
|
138
|
+
}))
|
|
139
|
+
},
|
|
140
|
+
null,
|
|
141
|
+
2
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
var CleanupSnapshotsSchema = z.object({
|
|
149
|
+
keepCount: z.number().optional().default(10),
|
|
150
|
+
olderThanDays: z.number().optional(),
|
|
151
|
+
dryRun: z.boolean().optional().default(true)
|
|
152
|
+
});
|
|
153
|
+
var CleanupSnapshotsToolHandler = class extends BaseToolHandler {
|
|
154
|
+
parseArgs(args) {
|
|
155
|
+
return CleanupSnapshotsSchema.parse(args);
|
|
156
|
+
}
|
|
157
|
+
async execute(args) {
|
|
158
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
159
|
+
if (!snapshotManager) {
|
|
160
|
+
return {
|
|
161
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
const allSnapshots = await snapshotManager.listSnapshots(1e3);
|
|
165
|
+
let toCleanup = [...allSnapshots];
|
|
166
|
+
toCleanup.sort((a, b) => b.timestamp - a.timestamp);
|
|
167
|
+
const toKeep = toCleanup.slice(0, args.keepCount);
|
|
168
|
+
toCleanup = toCleanup.slice(args.keepCount);
|
|
169
|
+
if (args.olderThanDays) {
|
|
170
|
+
const cutoffTime = Date.now() - args.olderThanDays * 24 * 60 * 60 * 1e3;
|
|
171
|
+
toCleanup = toCleanup.filter((s) => s.timestamp < cutoffTime);
|
|
172
|
+
}
|
|
173
|
+
if (!args.dryRun) {
|
|
174
|
+
for (const snapshot of toCleanup) {
|
|
175
|
+
await snapshotManager.deleteSnapshot(snapshot.id);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
content: [
|
|
180
|
+
{
|
|
181
|
+
type: "text",
|
|
182
|
+
text: JSON.stringify(
|
|
183
|
+
{
|
|
184
|
+
dryRun: args.dryRun,
|
|
185
|
+
totalSnapshots: allSnapshots.length,
|
|
186
|
+
snapshotsKept: toKeep.length,
|
|
187
|
+
snapshotsCleaned: toCleanup.length,
|
|
188
|
+
cleanedIds: toCleanup.map((s) => s.id)
|
|
189
|
+
},
|
|
190
|
+
null,
|
|
191
|
+
2
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export { CleanupSnapshotsToolHandler, CreateSnapshotToolHandler, ListSnapshotsToolHandler, RollbackSnapshotToolHandler };
|
|
200
|
+
//# sourceMappingURL=snapshot-tool-handlers-DS4P3KOT.js.map
|
|
201
|
+
//# sourceMappingURL=snapshot-tool-handlers-DS4P3KOT.js.map
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { BaseToolHandler } from './chunk-Q5LPVLXA.js';
|
|
2
|
+
import './chunk-TCHCDCDO.js';
|
|
3
|
+
import './chunk-LH4OUKNZ.js';
|
|
4
|
+
import './chunk-HEMJHRHZ.js';
|
|
5
|
+
import { toError } from './chunk-5WKPA33T.js';
|
|
6
|
+
import './chunk-VCCBEJQ5.js';
|
|
7
|
+
import './chunk-NAQKA54E.js';
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
|
|
10
|
+
var CreateSnapshotSchema = z.object({
|
|
11
|
+
description: z.string().optional(),
|
|
12
|
+
entityIds: z.array(z.string()).optional(),
|
|
13
|
+
filePaths: z.array(z.string()).optional()
|
|
14
|
+
});
|
|
15
|
+
var CreateSnapshotToolHandler = class extends BaseToolHandler {
|
|
16
|
+
parseArgs(args) {
|
|
17
|
+
return CreateSnapshotSchema.parse(args);
|
|
18
|
+
}
|
|
19
|
+
async execute(args) {
|
|
20
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
21
|
+
if (!snapshotManager) {
|
|
22
|
+
return {
|
|
23
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
const description = args.description || `Snapshot created at ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
28
|
+
const files = args.filePaths?.map((p) => this.context.normalizeInputPath(p)).filter(Boolean);
|
|
29
|
+
const snapshotId = await snapshotManager.createSnapshot(description, files);
|
|
30
|
+
return {
|
|
31
|
+
content: [
|
|
32
|
+
{
|
|
33
|
+
type: "text",
|
|
34
|
+
text: JSON.stringify(
|
|
35
|
+
{
|
|
36
|
+
success: true,
|
|
37
|
+
snapshotId,
|
|
38
|
+
description,
|
|
39
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
40
|
+
},
|
|
41
|
+
null,
|
|
42
|
+
2
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
} catch (error) {
|
|
48
|
+
const err = toError(error);
|
|
49
|
+
return {
|
|
50
|
+
content: [{ type: "text", text: JSON.stringify({ error: err.message }) }]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var RollbackSnapshotSchema = z.object({
|
|
56
|
+
snapshotId: z.string().optional(),
|
|
57
|
+
steps: z.number().optional().default(1)
|
|
58
|
+
});
|
|
59
|
+
var RollbackSnapshotToolHandler = class extends BaseToolHandler {
|
|
60
|
+
parseArgs(args) {
|
|
61
|
+
return RollbackSnapshotSchema.parse(args);
|
|
62
|
+
}
|
|
63
|
+
async execute(args) {
|
|
64
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
65
|
+
if (!snapshotManager) {
|
|
66
|
+
return {
|
|
67
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
let targetSnapshotId = args.snapshotId;
|
|
72
|
+
if (!targetSnapshotId) {
|
|
73
|
+
const snapshots = await snapshotManager.listSnapshots(args.steps);
|
|
74
|
+
if (snapshots.length === 0) {
|
|
75
|
+
return {
|
|
76
|
+
content: [{ type: "text", text: JSON.stringify({ error: "No snapshots available to rollback" }) }]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const targetIndex = Math.min(args.steps - 1, snapshots.length - 1);
|
|
80
|
+
targetSnapshotId = snapshots[targetIndex].id;
|
|
81
|
+
}
|
|
82
|
+
await snapshotManager.rollback(targetSnapshotId);
|
|
83
|
+
return {
|
|
84
|
+
content: [
|
|
85
|
+
{
|
|
86
|
+
type: "text",
|
|
87
|
+
text: JSON.stringify(
|
|
88
|
+
{
|
|
89
|
+
success: true,
|
|
90
|
+
restoredSnapshot: targetSnapshotId,
|
|
91
|
+
message: `Rolled back to snapshot ${targetSnapshotId}`
|
|
92
|
+
},
|
|
93
|
+
null,
|
|
94
|
+
2
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
} catch (error) {
|
|
100
|
+
const err = toError(error);
|
|
101
|
+
return {
|
|
102
|
+
content: [{ type: "text", text: JSON.stringify({ error: err.message }) }]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var ListSnapshotsSchema = z.object({
|
|
108
|
+
limit: z.number().optional().default(20),
|
|
109
|
+
includeDetails: z.boolean().optional().default(false)
|
|
110
|
+
});
|
|
111
|
+
var ListSnapshotsToolHandler = class extends BaseToolHandler {
|
|
112
|
+
parseArgs(args) {
|
|
113
|
+
return ListSnapshotsSchema.parse(args);
|
|
114
|
+
}
|
|
115
|
+
async execute(args) {
|
|
116
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
117
|
+
if (!snapshotManager) {
|
|
118
|
+
return {
|
|
119
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const snapshots = await snapshotManager.listSnapshots(args.limit);
|
|
123
|
+
return {
|
|
124
|
+
content: [
|
|
125
|
+
{
|
|
126
|
+
type: "text",
|
|
127
|
+
text: JSON.stringify(
|
|
128
|
+
{
|
|
129
|
+
count: snapshots.length,
|
|
130
|
+
snapshots: snapshots.map((s) => ({
|
|
131
|
+
id: s.id,
|
|
132
|
+
description: s.description,
|
|
133
|
+
timestamp: s.timestamp,
|
|
134
|
+
createdAt: new Date(s.timestamp).toISOString(),
|
|
135
|
+
backend: s.backend,
|
|
136
|
+
filesCount: s.filesCount,
|
|
137
|
+
sizeBytes: s.sizeBytes
|
|
138
|
+
}))
|
|
139
|
+
},
|
|
140
|
+
null,
|
|
141
|
+
2
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
var CleanupSnapshotsSchema = z.object({
|
|
149
|
+
keepCount: z.number().optional().default(10),
|
|
150
|
+
olderThanDays: z.number().optional(),
|
|
151
|
+
dryRun: z.boolean().optional().default(true)
|
|
152
|
+
});
|
|
153
|
+
var CleanupSnapshotsToolHandler = class extends BaseToolHandler {
|
|
154
|
+
parseArgs(args) {
|
|
155
|
+
return CleanupSnapshotsSchema.parse(args);
|
|
156
|
+
}
|
|
157
|
+
async execute(args) {
|
|
158
|
+
const snapshotManager = await this.context.getSnapshotManager();
|
|
159
|
+
if (!snapshotManager) {
|
|
160
|
+
return {
|
|
161
|
+
content: [{ type: "text", text: JSON.stringify({ error: "Snapshot manager not available" }) }]
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
const allSnapshots = await snapshotManager.listSnapshots(1e3);
|
|
165
|
+
let toCleanup = [...allSnapshots];
|
|
166
|
+
toCleanup.sort((a, b) => b.timestamp - a.timestamp);
|
|
167
|
+
const toKeep = toCleanup.slice(0, args.keepCount);
|
|
168
|
+
toCleanup = toCleanup.slice(args.keepCount);
|
|
169
|
+
if (args.olderThanDays) {
|
|
170
|
+
const cutoffTime = Date.now() - args.olderThanDays * 24 * 60 * 60 * 1e3;
|
|
171
|
+
toCleanup = toCleanup.filter((s) => s.timestamp < cutoffTime);
|
|
172
|
+
}
|
|
173
|
+
if (!args.dryRun) {
|
|
174
|
+
for (const snapshot of toCleanup) {
|
|
175
|
+
await snapshotManager.deleteSnapshot(snapshot.id);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
content: [
|
|
180
|
+
{
|
|
181
|
+
type: "text",
|
|
182
|
+
text: JSON.stringify(
|
|
183
|
+
{
|
|
184
|
+
dryRun: args.dryRun,
|
|
185
|
+
totalSnapshots: allSnapshots.length,
|
|
186
|
+
snapshotsKept: toKeep.length,
|
|
187
|
+
snapshotsCleaned: toCleanup.length,
|
|
188
|
+
cleanedIds: toCleanup.map((s) => s.id)
|
|
189
|
+
},
|
|
190
|
+
null,
|
|
191
|
+
2
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export { CleanupSnapshotsToolHandler, CreateSnapshotToolHandler, ListSnapshotsToolHandler, RollbackSnapshotToolHandler };
|
|
200
|
+
//# sourceMappingURL=snapshot-tool-handlers-JYHRFPC7.js.map
|
|
201
|
+
//# sourceMappingURL=snapshot-tool-handlers-JYHRFPC7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {d as d$1}from'./chunk-XG3ACLWR.js';import'./chunk-XJ2Z5QQO.js';import'./chunk-SV3WKUNV.js';import'./chunk-PZF7YC35.js';import {a}from'./chunk-F3VMUQ7O.js';import'./chunk-4BI7EBPQ.js';import'./chunk-DXB73IDG.js';import {z}from'zod';var m=z.object({description:z.string().optional(),entityIds:z.array(z.string()).optional(),filePaths:z.array(z.string()).optional()}),h=class extends d$1{parseArgs(e){return m.parse(e)}async execute(e){let s=await this.context.getSnapshotManager();if(!s)return {content:[{type:"text",text:JSON.stringify({error:"Snapshot manager not available"})}]};try{let n=e.description||`Snapshot created at ${new Date().toISOString()}`,t=e.filePaths?.map(a=>this.context.normalizeInputPath(a)).filter(Boolean),r=await s.createSnapshot(n,t);return {content:[{type:"text",text:JSON.stringify({success:!0,snapshotId:r,description:n,createdAt:new Date().toISOString()},null,2)}]}}catch(n){let t=a(n);return {content:[{type:"text",text:JSON.stringify({error:t.message})}]}}}},y=z.object({snapshotId:z.string().optional(),steps:z.number().optional().default(1)}),u=class extends d$1{parseArgs(e){return y.parse(e)}async execute(e){let s=await this.context.getSnapshotManager();if(!s)return {content:[{type:"text",text:JSON.stringify({error:"Snapshot manager not available"})}]};try{let n=e.snapshotId;if(!n){let t=await s.listSnapshots(e.steps);if(t.length===0)return {content:[{type:"text",text:JSON.stringify({error:"No snapshots available to rollback"})}]};let r=Math.min(e.steps-1,t.length-1);n=t[r].id;}return await s.rollback(n),{content:[{type:"text",text:JSON.stringify({success:!0,restoredSnapshot:n,message:`Rolled back to snapshot ${n}`},null,2)}]}}catch(n){let t=a(n);return {content:[{type:"text",text:JSON.stringify({error:t.message})}]}}}},d=z.object({limit:z.number().optional().default(20),includeDetails:z.boolean().optional().default(false)}),S=class extends d$1{parseArgs(e){return d.parse(e)}async execute(e){let s=await this.context.getSnapshotManager();if(!s)return {content:[{type:"text",text:JSON.stringify({error:"Snapshot manager not available"})}]};let n=await s.listSnapshots(e.limit);return {content:[{type:"text",text:JSON.stringify({count:n.length,snapshots:n.map(t=>({id:t.id,description:t.description,timestamp:t.timestamp,createdAt:new Date(t.timestamp).toISOString(),backend:t.backend,filesCount:t.filesCount,sizeBytes:t.sizeBytes}))},null,2)}]}}},g=z.object({keepCount:z.number().optional().default(10),olderThanDays:z.number().optional(),dryRun:z.boolean().optional().default(true)}),f=class extends d$1{parseArgs(e){return g.parse(e)}async execute(e){let s=await this.context.getSnapshotManager();if(!s)return {content:[{type:"text",text:JSON.stringify({error:"Snapshot manager not available"})}]};let n=await s.listSnapshots(1e3),t=[...n];t.sort((a,c)=>c.timestamp-a.timestamp);let r=t.slice(0,e.keepCount);if(t=t.slice(e.keepCount),e.olderThanDays){let a=Date.now()-e.olderThanDays*24*60*60*1e3;t=t.filter(c=>c.timestamp<a);}if(!e.dryRun)for(let a of t)await s.deleteSnapshot(a.id);return {content:[{type:"text",text:JSON.stringify({dryRun:e.dryRun,totalSnapshots:n.length,snapshotsKept:r.length,snapshotsCleaned:t.length,cleanedIds:t.map(a=>a.id)},null,2)}]}}};export{f as CleanupSnapshotsToolHandler,h as CreateSnapshotToolHandler,S as ListSnapshotsToolHandler,u as RollbackSnapshotToolHandler};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { init_storage_paths } from './chunk-TVOTA7EE.js';
|
|
2
|
+
export { DEFAULT_BRANCH, ensureDataDir, ensureGlobalDbDir, ensureProjectDir, getASTCacheDir, getBranchPaths, getCacheDir, getConfigDir, getConfigPath, getCoreLockPath, getCorePidPath, getCurrentGitBranch, getCurrentGitBranchOrDefault, getDataDir, getFaissHotBufferPath, getFaissIdMapPath, getFaissIndexPath, getFaissIndexPathByHash, getGlobalDbPaths, getIPCSocketPath, getLogsDir, getModelsDir, getMultiDbPaths, getProjectDir, getProjectHash, getProjectPaths, getProjectsDir, getSemanticConfigPath, getTreeSitterCacheDir, hashProjectPath, initializeStorageDirs, isBaseBranch, normalizeBranchName } from './chunk-TVOTA7EE.js';
|
|
3
|
+
import './chunk-HEMJHRHZ.js';
|
|
4
|
+
import './chunk-NAQKA54E.js';
|
|
5
|
+
|
|
6
|
+
init_storage_paths();
|
|
7
|
+
//# sourceMappingURL=storage-paths-A3C7WHHG.js.map
|
|
8
|
+
//# sourceMappingURL=storage-paths-A3C7WHHG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {I}from'./chunk-SV3WKUNV.js';export{t as DEFAULT_BRANCH,b as ensureDataDir,y as ensureGlobalDbDir,x as ensureProjectDir,F as getASTCacheDir,z as getBranchPaths,e as getCacheDir,h as getConfigDir,i as getConfigPath,l as getCoreLockPath,k as getCorePidPath,v as getCurrentGitBranch,w as getCurrentGitBranchOrDefault,a as getDataDir,D as getFaissHotBufferPath,C as getFaissIdMapPath,A as getFaissIndexPath,B as getFaissIndexPathByHash,p as getGlobalDbPaths,c as getIPCSocketPath,d as getLogsDir,g as getModelsDir,q as getMultiDbPaths,n as getProjectDir,r as getProjectHash,o as getProjectPaths,f as getProjectsDir,j as getSemanticConfigPath,E as getTreeSitterCacheDir,m as hashProjectPath,G as initializeStorageDirs,u as isBaseBranch,s as normalizeBranchName}from'./chunk-SV3WKUNV.js';import'./chunk-PZF7YC35.js';import'./chunk-DXB73IDG.js';I();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { init_storage_paths } from './chunk-XK2NY7RB.js';
|
|
2
|
+
export { DEFAULT_BRANCH, ensureDataDir, ensureGlobalDbDir, ensureProjectDir, getASTCacheDir, getBranchPaths, getCacheDir, getConfigDir, getConfigPath, getCoreLockPath, getCorePidPath, getCurrentGitBranch, getCurrentGitBranchOrDefault, getDataDir, getFaissHotBufferPath, getFaissIdMapPath, getFaissIndexPath, getFaissIndexPathByHash, getGlobalDbPaths, getIPCSocketPath, getLogsDir, getModelsDir, getMultiDbPaths, getProjectDir, getProjectHash, getProjectPaths, getProjectsDir, getSemanticConfigPath, getTreeSitterCacheDir, hashProjectPath, initializeStorageDirs, isBaseBranch, normalizeBranchName } from './chunk-XK2NY7RB.js';
|
|
3
|
+
import './chunk-HEMJHRHZ.js';
|
|
4
|
+
import './chunk-NAQKA54E.js';
|
|
5
|
+
|
|
6
|
+
init_storage_paths();
|
|
7
|
+
//# sourceMappingURL=storage-paths-IMFRHBWF.js.map
|
|
8
|
+
//# sourceMappingURL=storage-paths-IMFRHBWF.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { init_storage_paths } from './chunk-LH4OUKNZ.js';
|
|
2
|
+
export { DEFAULT_BRANCH, ensureDataDir, ensureGlobalDbDir, ensureProjectDir, getASTCacheDir, getBranchPaths, getCacheDir, getConfigDir, getConfigPath, getCoreLockPath, getCorePidPath, getCurrentGitBranch, getCurrentGitBranchOrDefault, getDataDir, getFaissHotBufferPath, getFaissIdMapPath, getFaissIndexPath, getFaissIndexPathByHash, getGlobalDbPaths, getIPCSocketPath, getLogsDir, getModelsDir, getMultiDbPaths, getProjectDir, getProjectHash, getProjectPaths, getProjectsDir, getSemanticConfigPath, getTreeSitterCacheDir, hashProjectPath, initializeStorageDirs, isBaseBranch, normalizeBranchName } from './chunk-LH4OUKNZ.js';
|
|
3
|
+
import './chunk-HEMJHRHZ.js';
|
|
4
|
+
import './chunk-NAQKA54E.js';
|
|
5
|
+
|
|
6
|
+
init_storage_paths();
|
|
7
|
+
//# sourceMappingURL=storage-paths-P3PUSMUD.js.map
|
|
8
|
+
//# sourceMappingURL=storage-paths-P3PUSMUD.js.map
|