opencode-github-sync 3.0.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/LICENSE +21 -0
- package/README.md +353 -0
- package/README.zh-CN.md +332 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +334 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/render.d.ts +45 -0
- package/dist/cli/render.d.ts.map +1 -0
- package/dist/cli/render.js +167 -0
- package/dist/cli/render.js.map +1 -0
- package/dist/cli/theme.d.ts +45 -0
- package/dist/cli/theme.d.ts.map +1 -0
- package/dist/cli/theme.js +88 -0
- package/dist/cli/theme.js.map +1 -0
- package/dist/core/fsx.d.ts +81 -0
- package/dist/core/fsx.d.ts.map +1 -0
- package/dist/core/fsx.js +353 -0
- package/dist/core/fsx.js.map +1 -0
- package/dist/core/git.d.ts +48 -0
- package/dist/core/git.d.ts.map +1 -0
- package/dist/core/git.js +133 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/host.d.ts +20 -0
- package/dist/core/host.d.ts.map +1 -0
- package/dist/core/host.js +50 -0
- package/dist/core/host.js.map +1 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +16 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/jsonc.d.ts +20 -0
- package/dist/core/jsonc.d.ts.map +1 -0
- package/dist/core/jsonc.js +115 -0
- package/dist/core/jsonc.js.map +1 -0
- package/dist/core/lock.d.ts +14 -0
- package/dist/core/lock.d.ts.map +1 -0
- package/dist/core/lock.js +111 -0
- package/dist/core/lock.js.map +1 -0
- package/dist/core/overrides.d.ts +30 -0
- package/dist/core/overrides.d.ts.map +1 -0
- package/dist/core/overrides.js +126 -0
- package/dist/core/overrides.js.map +1 -0
- package/dist/core/paths.d.ts +36 -0
- package/dist/core/paths.d.ts.map +1 -0
- package/dist/core/paths.js +55 -0
- package/dist/core/paths.js.map +1 -0
- package/dist/core/repo.d.ts +57 -0
- package/dist/core/repo.d.ts.map +1 -0
- package/dist/core/repo.js +184 -0
- package/dist/core/repo.js.map +1 -0
- package/dist/core/reporter.d.ts +50 -0
- package/dist/core/reporter.d.ts.map +1 -0
- package/dist/core/reporter.js +63 -0
- package/dist/core/reporter.js.map +1 -0
- package/dist/core/sessions.d.ts +61 -0
- package/dist/core/sessions.d.ts.map +1 -0
- package/dist/core/sessions.js +321 -0
- package/dist/core/sessions.js.map +1 -0
- package/dist/core/settings.d.ts +59 -0
- package/dist/core/settings.d.ts.map +1 -0
- package/dist/core/settings.js +120 -0
- package/dist/core/settings.js.map +1 -0
- package/dist/core/setup.d.ts +48 -0
- package/dist/core/setup.d.ts.map +1 -0
- package/dist/core/setup.js +186 -0
- package/dist/core/setup.js.map +1 -0
- package/dist/core/sqlite.d.ts +37 -0
- package/dist/core/sqlite.d.ts.map +1 -0
- package/dist/core/sqlite.js +106 -0
- package/dist/core/sqlite.js.map +1 -0
- package/dist/core/stage.d.ts +44 -0
- package/dist/core/stage.d.ts.map +1 -0
- package/dist/core/stage.js +297 -0
- package/dist/core/stage.js.map +1 -0
- package/dist/core/sync.d.ts +50 -0
- package/dist/core/sync.d.ts.map +1 -0
- package/dist/core/sync.js +360 -0
- package/dist/core/sync.js.map +1 -0
- package/dist/plugin/index.d.ts +31 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +132 -0
- package/dist/plugin/index.js.map +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { gunzipSync, gzipSync } from "node:zlib";
|
|
4
|
+
import { ensureDir } from "./fsx.js";
|
|
5
|
+
import { SESSIONS_DIR } from "./paths.js";
|
|
6
|
+
import { existingTables, openDatabase, tableColumns } from "./sqlite.js";
|
|
7
|
+
/**
|
|
8
|
+
* Selective session sync.
|
|
9
|
+
*
|
|
10
|
+
* The naive approach — commit `opencode.db` — stops working almost immediately.
|
|
11
|
+
* A real database reaches several gigabytes, dominated by tool output stored in
|
|
12
|
+
* `part.data`, and Git has no way to delta-compress it. Worse, copying a live
|
|
13
|
+
* database together with its write-ahead log can capture a torn state that only
|
|
14
|
+
* reveals itself much later.
|
|
15
|
+
*
|
|
16
|
+
* So sessions are exported one at a time. Each session becomes an independent,
|
|
17
|
+
* gzipped JSON shard containing its own rows plus the project and workspace
|
|
18
|
+
* rows it depends on. That buys three things:
|
|
19
|
+
*
|
|
20
|
+
* - **No large files.** Shards are individually small and compress well.
|
|
21
|
+
* - **Conflict isolation.** Two machines editing different sessions touch
|
|
22
|
+
* different files, so Git merges them without any special handling. The
|
|
23
|
+
* only true conflict is the same session edited in two places, where the
|
|
24
|
+
* newer `time_updated` wins.
|
|
25
|
+
* - **Selectivity.** A time window, an explicit include list, a project
|
|
26
|
+
* filter and a per-session size cap decide what travels. Ancient sessions
|
|
27
|
+
* stay on the machine that created them.
|
|
28
|
+
*
|
|
29
|
+
* Import is an upsert inside a transaction, so a failure leaves the local
|
|
30
|
+
* database exactly as it was.
|
|
31
|
+
*/
|
|
32
|
+
/** Tables whose rows belong to exactly one session. */
|
|
33
|
+
const SESSION_TABLES = [
|
|
34
|
+
"session_message",
|
|
35
|
+
"message",
|
|
36
|
+
"part",
|
|
37
|
+
"todo",
|
|
38
|
+
"session_share",
|
|
39
|
+
"session_context_epoch",
|
|
40
|
+
"session_input",
|
|
41
|
+
];
|
|
42
|
+
function shardPath(repoRoot, sessionId) {
|
|
43
|
+
return path.join(repoRoot, SESSIONS_DIR, `${sanitizeId(sessionId)}.json.gz`);
|
|
44
|
+
}
|
|
45
|
+
/** Session ids are opaque; keep them filesystem-safe without losing identity. */
|
|
46
|
+
export function sanitizeId(id) {
|
|
47
|
+
return id.replace(/[^A-Za-z0-9._-]/g, "_");
|
|
48
|
+
}
|
|
49
|
+
function readRows(db, sql, params) {
|
|
50
|
+
return db.prepare(sql).all(...params);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Choose which sessions to export.
|
|
54
|
+
*
|
|
55
|
+
* Explicitly included ids always win, even when they fall outside the window.
|
|
56
|
+
* Everything else must be inside the time window, pass the directory filter and
|
|
57
|
+
* survive the count cap, which keeps the newest sessions.
|
|
58
|
+
*/
|
|
59
|
+
export function selectSessions(db, options) {
|
|
60
|
+
const now = options.now ?? Date.now();
|
|
61
|
+
const cutoff = now - options.days * 24 * 60 * 60 * 1000;
|
|
62
|
+
const rows = readRows(db, `SELECT id, title, directory, time_updated, time_created, project_id
|
|
63
|
+
FROM session
|
|
64
|
+
ORDER BY time_updated DESC`, []);
|
|
65
|
+
const exclude = new Set(options.exclude);
|
|
66
|
+
const include = new Set(options.include);
|
|
67
|
+
const directories = options.directories.map((d) => path.resolve(d));
|
|
68
|
+
const matchesDirectory = (directory) => {
|
|
69
|
+
if (directories.length === 0)
|
|
70
|
+
return true;
|
|
71
|
+
const resolved = path.resolve(String(directory ?? ""));
|
|
72
|
+
return directories.some((d) => resolved === d || resolved.startsWith(`${d}${path.sep}`));
|
|
73
|
+
};
|
|
74
|
+
const selected = [];
|
|
75
|
+
let windowCount = 0;
|
|
76
|
+
for (const row of rows) {
|
|
77
|
+
const id = String(row.id);
|
|
78
|
+
if (exclude.has(id))
|
|
79
|
+
continue;
|
|
80
|
+
const record = {
|
|
81
|
+
id,
|
|
82
|
+
title: String(row.title ?? ""),
|
|
83
|
+
directory: String(row.directory ?? ""),
|
|
84
|
+
timeUpdated: Number(row.time_updated ?? 0),
|
|
85
|
+
timeCreated: Number(row.time_created ?? 0),
|
|
86
|
+
projectId: String(row.project_id ?? ""),
|
|
87
|
+
};
|
|
88
|
+
if (include.has(id)) {
|
|
89
|
+
selected.push(record);
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (record.timeUpdated < cutoff)
|
|
93
|
+
continue;
|
|
94
|
+
if (!matchesDirectory(record.directory))
|
|
95
|
+
continue;
|
|
96
|
+
if (windowCount >= options.maxSessions)
|
|
97
|
+
continue;
|
|
98
|
+
windowCount++;
|
|
99
|
+
selected.push(record);
|
|
100
|
+
}
|
|
101
|
+
return selected;
|
|
102
|
+
}
|
|
103
|
+
function buildShard(db, sessionId, tables) {
|
|
104
|
+
const sessionRow = readRows(db, "SELECT * FROM session WHERE id = ?", [sessionId])[0];
|
|
105
|
+
if (!sessionRow)
|
|
106
|
+
throw new Error(`Session ${sessionId} disappeared while exporting`);
|
|
107
|
+
const shard = {
|
|
108
|
+
formatVersion: 1,
|
|
109
|
+
session: sessionRow,
|
|
110
|
+
tables: {},
|
|
111
|
+
exportedAt: Date.now(),
|
|
112
|
+
};
|
|
113
|
+
const projectId = sessionRow.project_id;
|
|
114
|
+
if (projectId) {
|
|
115
|
+
shard.project = readRows(db, "SELECT * FROM project WHERE id = ?", [projectId])[0];
|
|
116
|
+
}
|
|
117
|
+
const workspaceId = sessionRow.workspace_id;
|
|
118
|
+
if (workspaceId) {
|
|
119
|
+
const rows = readRows(db, "SELECT * FROM workspace WHERE id = ?", [workspaceId]);
|
|
120
|
+
if (rows[0])
|
|
121
|
+
shard.workspace = rows[0];
|
|
122
|
+
}
|
|
123
|
+
for (const table of tables) {
|
|
124
|
+
shard.tables[table] = readRows(db, `SELECT * FROM "${table}" WHERE session_id = ?`, [
|
|
125
|
+
sessionId,
|
|
126
|
+
]);
|
|
127
|
+
}
|
|
128
|
+
return shard;
|
|
129
|
+
}
|
|
130
|
+
/** Export the selected sessions into `<repo>/_sessions`. */
|
|
131
|
+
export async function exportSessions(databaseFile, repoRoot, options, reporter) {
|
|
132
|
+
const result = { written: [], skippedTooLarge: [], considered: 0 };
|
|
133
|
+
if (!fs.existsSync(databaseFile))
|
|
134
|
+
return result;
|
|
135
|
+
const db = await openDatabase(databaseFile, { readOnly: true });
|
|
136
|
+
try {
|
|
137
|
+
const tables = existingTables(db, [...SESSION_TABLES]).filter((table) => tableColumns(db, table).includes("session_id"));
|
|
138
|
+
const sessions = selectSessions(db, options);
|
|
139
|
+
result.considered = sessions.length;
|
|
140
|
+
const outDir = path.join(repoRoot, SESSIONS_DIR);
|
|
141
|
+
ensureDir(outDir);
|
|
142
|
+
const keep = new Set();
|
|
143
|
+
for (const session of sessions) {
|
|
144
|
+
const shard = buildShard(db, session.id, tables);
|
|
145
|
+
const payload = gzipSync(Buffer.from(JSON.stringify(shard)), { level: 9 });
|
|
146
|
+
if (payload.byteLength > options.maxSessionBytes) {
|
|
147
|
+
result.skippedTooLarge.push({
|
|
148
|
+
id: session.id,
|
|
149
|
+
title: session.title,
|
|
150
|
+
bytes: payload.byteLength,
|
|
151
|
+
});
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
const file = shardPath(repoRoot, session.id);
|
|
155
|
+
keep.add(path.basename(file));
|
|
156
|
+
// Only rewrite when the payload actually changed, otherwise every push
|
|
157
|
+
// would produce a diff for every session purely from the gzip timestamp.
|
|
158
|
+
if (!fs.existsSync(file) || !fs.readFileSync(file).equals(payload)) {
|
|
159
|
+
fs.writeFileSync(file, payload);
|
|
160
|
+
}
|
|
161
|
+
result.written.push(session.id);
|
|
162
|
+
}
|
|
163
|
+
pruneShards(outDir, keep, options, reporter);
|
|
164
|
+
}
|
|
165
|
+
finally {
|
|
166
|
+
db.close();
|
|
167
|
+
}
|
|
168
|
+
return result;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Delete shards that no longer qualify.
|
|
172
|
+
*
|
|
173
|
+
* A shard is removed when it is outside the retention window, so the repository
|
|
174
|
+
* does not accumulate every session ever synced. Shards for explicitly included
|
|
175
|
+
* sessions are always kept.
|
|
176
|
+
*/
|
|
177
|
+
function pruneShards(outDir, keep, options, reporter) {
|
|
178
|
+
let removed = 0;
|
|
179
|
+
const includeFiles = new Set(options.include.map((id) => `${sanitizeId(id)}.json.gz`));
|
|
180
|
+
for (const entry of fs.readdirSync(outDir)) {
|
|
181
|
+
if (!entry.endsWith(".json.gz"))
|
|
182
|
+
continue;
|
|
183
|
+
if (keep.has(entry) || includeFiles.has(entry))
|
|
184
|
+
continue;
|
|
185
|
+
fs.rmSync(path.join(outDir, entry), { force: true });
|
|
186
|
+
removed++;
|
|
187
|
+
}
|
|
188
|
+
if (removed > 0)
|
|
189
|
+
reporter.detail(`Removed ${removed} session shard(s) outside the retention window`);
|
|
190
|
+
}
|
|
191
|
+
function readShard(file) {
|
|
192
|
+
const raw = gunzipSync(fs.readFileSync(file));
|
|
193
|
+
const shard = JSON.parse(raw.toString("utf8"));
|
|
194
|
+
if (shard.formatVersion !== 1) {
|
|
195
|
+
throw new Error(`Unsupported shard format v${shard.formatVersion}`);
|
|
196
|
+
}
|
|
197
|
+
return shard;
|
|
198
|
+
}
|
|
199
|
+
function upsert(db, table, row, allowedColumns) {
|
|
200
|
+
const columns = Object.keys(row).filter((column) => allowedColumns.has(column));
|
|
201
|
+
if (columns.length === 0)
|
|
202
|
+
return;
|
|
203
|
+
const placeholders = columns.map(() => "?").join(", ");
|
|
204
|
+
const quoted = columns.map((column) => `"${column}"`).join(", ");
|
|
205
|
+
db.prepare(`INSERT OR REPLACE INTO "${table}" (${quoted}) VALUES (${placeholders})`).run(...columns.map((column) => normalize(row[column])));
|
|
206
|
+
}
|
|
207
|
+
/** SQLite drivers accept null/number/string/bigint/Buffer only. */
|
|
208
|
+
function normalize(value) {
|
|
209
|
+
if (value === undefined)
|
|
210
|
+
return null;
|
|
211
|
+
if (typeof value === "boolean")
|
|
212
|
+
return value ? 1 : 0;
|
|
213
|
+
if (value !== null && typeof value === "object" && !Buffer.isBuffer(value)) {
|
|
214
|
+
return JSON.stringify(value);
|
|
215
|
+
}
|
|
216
|
+
return value;
|
|
217
|
+
}
|
|
218
|
+
/** Import every shard from `<repo>/_sessions` into the local database. */
|
|
219
|
+
export async function importSessions(databaseFile, repoRoot, reporter) {
|
|
220
|
+
const result = { imported: 0, skippedOlder: 0, failed: [] };
|
|
221
|
+
const shardDir = path.join(repoRoot, SESSIONS_DIR);
|
|
222
|
+
if (!fs.existsSync(shardDir))
|
|
223
|
+
return result;
|
|
224
|
+
const files = fs.readdirSync(shardDir).filter((f) => f.endsWith(".json.gz"));
|
|
225
|
+
if (files.length === 0)
|
|
226
|
+
return result;
|
|
227
|
+
if (!fs.existsSync(databaseFile)) {
|
|
228
|
+
reporter.warn("No local OpenCode database yet — start OpenCode once, then pull again.");
|
|
229
|
+
return result;
|
|
230
|
+
}
|
|
231
|
+
const db = await openDatabase(databaseFile);
|
|
232
|
+
try {
|
|
233
|
+
const columnsFor = new Map();
|
|
234
|
+
const columns = (table) => {
|
|
235
|
+
let set = columnsFor.get(table);
|
|
236
|
+
if (!set) {
|
|
237
|
+
set = new Set(tableColumns(db, table));
|
|
238
|
+
columnsFor.set(table, set);
|
|
239
|
+
}
|
|
240
|
+
return set;
|
|
241
|
+
};
|
|
242
|
+
const localTimes = new Map();
|
|
243
|
+
for (const row of readRows(db, "SELECT id, time_updated FROM session", [])) {
|
|
244
|
+
localTimes.set(String(row.id), Number(row.time_updated ?? 0));
|
|
245
|
+
}
|
|
246
|
+
for (const file of files) {
|
|
247
|
+
const full = path.join(shardDir, file);
|
|
248
|
+
try {
|
|
249
|
+
const shard = readShard(full);
|
|
250
|
+
const sessionId = String(shard.session.id);
|
|
251
|
+
const incoming = Number(shard.session.time_updated ?? 0);
|
|
252
|
+
const local = localTimes.get(sessionId);
|
|
253
|
+
// Last-writer-wins at session granularity. A session that is newer
|
|
254
|
+
// locally is left completely alone, so an in-progress conversation is
|
|
255
|
+
// never clobbered by a stale copy from another machine.
|
|
256
|
+
if (local !== undefined && local >= incoming) {
|
|
257
|
+
result.skippedOlder++;
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
db.exec("BEGIN IMMEDIATE");
|
|
261
|
+
try {
|
|
262
|
+
if (shard.project)
|
|
263
|
+
upsert(db, "project", shard.project, columns("project"));
|
|
264
|
+
if (shard.workspace)
|
|
265
|
+
upsert(db, "workspace", shard.workspace, columns("workspace"));
|
|
266
|
+
upsert(db, "session", shard.session, columns("session"));
|
|
267
|
+
for (const [table, rows] of Object.entries(shard.tables)) {
|
|
268
|
+
if (rows.length === 0)
|
|
269
|
+
continue;
|
|
270
|
+
let allowed;
|
|
271
|
+
try {
|
|
272
|
+
allowed = columns(table);
|
|
273
|
+
}
|
|
274
|
+
catch {
|
|
275
|
+
continue; // Table does not exist in this OpenCode version.
|
|
276
|
+
}
|
|
277
|
+
if (allowed.size === 0)
|
|
278
|
+
continue;
|
|
279
|
+
for (const row of rows)
|
|
280
|
+
upsert(db, table, row, allowed);
|
|
281
|
+
}
|
|
282
|
+
db.exec("COMMIT");
|
|
283
|
+
result.imported++;
|
|
284
|
+
}
|
|
285
|
+
catch (err) {
|
|
286
|
+
db.exec("ROLLBACK");
|
|
287
|
+
throw err;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
catch (err) {
|
|
291
|
+
result.failed.push({ file, reason: err.message });
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
finally {
|
|
296
|
+
db.close();
|
|
297
|
+
}
|
|
298
|
+
return result;
|
|
299
|
+
}
|
|
300
|
+
/** List sessions available locally, newest first — powers `sessions list`. */
|
|
301
|
+
export async function listSessions(databaseFile, limit) {
|
|
302
|
+
if (!fs.existsSync(databaseFile))
|
|
303
|
+
return [];
|
|
304
|
+
const db = await openDatabase(databaseFile, { readOnly: true });
|
|
305
|
+
try {
|
|
306
|
+
const rows = readRows(db, `SELECT id, title, directory, time_updated, time_created, project_id
|
|
307
|
+
FROM session ORDER BY time_updated DESC LIMIT ?`, [limit]);
|
|
308
|
+
return rows.map((row) => ({
|
|
309
|
+
id: String(row.id),
|
|
310
|
+
title: String(row.title ?? ""),
|
|
311
|
+
directory: String(row.directory ?? ""),
|
|
312
|
+
timeUpdated: Number(row.time_updated ?? 0),
|
|
313
|
+
timeCreated: Number(row.time_created ?? 0),
|
|
314
|
+
projectId: String(row.project_id ?? ""),
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
finally {
|
|
318
|
+
db.close();
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
//# sourceMappingURL=sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/core/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAuB,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,uDAAuD;AACvD,MAAM,cAAc,GAAG;IACrB,iBAAiB;IACjB,SAAS;IACT,MAAM;IACN,MAAM;IACN,eAAe;IACf,uBAAuB;IACvB,eAAe;CACP,CAAC;AA0CX,SAAS,SAAS,CAAC,QAAgB,EAAE,SAAiB;IACpD,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;AAC/E,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,UAAU,CAAC,EAAU;IACnC,OAAO,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,QAAQ,CAAC,EAAkB,EAAE,GAAW,EAAE,MAAiB;IAClE,OAAO,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAA8B,CAAC;AACrE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,EAAkB,EAAE,OAAsB;I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GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC;IACH,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,8EAA8E;AAC9E,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,YAAoB,EAAE,KAAa;IACpE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,EAAE,CAAC;IAC5C,MAAM,EAAE,GAAG,MAAM,YAAY,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,QAAQ,CACnB,EAAE,EACF;yDACmD,EACnD,CAAC,KAAK,CAAC,CACC,CAAC;QACX,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACxB,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;YAC9B,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;YACtC,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,CAAC;YAC1C,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,CAAC;YAC1C,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC;SACxC,CAAC,CAAC,CAAC;IACN,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** Filename of the tool's own settings (local-only, never committed). */
|
|
2
|
+
export declare const SETTINGS_FILE = "opencode-sync.jsonc";
|
|
3
|
+
/** Filename of the per-machine OpenCode config patch (local-only). */
|
|
4
|
+
export declare const OVERRIDES_FILE = "opencode-sync.overrides.jsonc";
|
|
5
|
+
export interface RepoSettings {
|
|
6
|
+
/** Full git remote URL. Takes precedence over owner/name. */
|
|
7
|
+
url?: string;
|
|
8
|
+
owner?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
branch?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SessionSettings {
|
|
13
|
+
/** Master switch. Session sync is opt-in. */
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/** Only sync sessions touched within this many days. */
|
|
16
|
+
days: number;
|
|
17
|
+
/** Hard cap on how many sessions a single push may export. */
|
|
18
|
+
maxSessions: number;
|
|
19
|
+
/**
|
|
20
|
+
* Skip any single session whose exported payload exceeds this many bytes.
|
|
21
|
+
* Tool output can make one session hundreds of megabytes; without a cap a
|
|
22
|
+
* single runaway session would dominate the repository.
|
|
23
|
+
*/
|
|
24
|
+
maxSessionBytes: number;
|
|
25
|
+
/** Explicit session ids to always include, regardless of the time window. */
|
|
26
|
+
include: string[];
|
|
27
|
+
/** Session ids to never export. */
|
|
28
|
+
exclude: string[];
|
|
29
|
+
/** Only export sessions belonging to these project directories. */
|
|
30
|
+
directories: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface Settings {
|
|
33
|
+
repo: RepoSettings;
|
|
34
|
+
/** Stable alias for this machine used in commit messages. */
|
|
35
|
+
machineAlias?: string;
|
|
36
|
+
/** Sync `auth.json` / `account.json`. Requires a private repository. */
|
|
37
|
+
includeCredentials: boolean;
|
|
38
|
+
/** Sync `~/.agents/skills`. */
|
|
39
|
+
includeSkills: boolean;
|
|
40
|
+
/** Sync `~/.local/state/opencode`. */
|
|
41
|
+
includeState: boolean;
|
|
42
|
+
/** Extra absolute paths to sync, relative to the home directory. */
|
|
43
|
+
extraPaths: string[];
|
|
44
|
+
sessions: SessionSettings;
|
|
45
|
+
/** Pull automatically when OpenCode starts (plugin only). */
|
|
46
|
+
autoPullOnStartup: boolean;
|
|
47
|
+
/** Push automatically when a session goes idle (plugin only). */
|
|
48
|
+
autoPushOnIdle: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare const DEFAULT_SETTINGS: Settings;
|
|
51
|
+
export declare function settingsPath(configRoot?: string): string;
|
|
52
|
+
export declare function overridesPath(configRoot?: string): string;
|
|
53
|
+
export declare function loadSettings(configRoot?: string): Settings;
|
|
54
|
+
export declare function saveSettings(settings: Settings, configRoot?: string): void;
|
|
55
|
+
export declare function repoUrl(settings: Settings): string | undefined;
|
|
56
|
+
export declare function repoBranch(settings: Settings): string;
|
|
57
|
+
export declare const SETTINGS_TEMPLATE = "{\n // opencode-github-sync settings. This file is never committed.\n \"repo\": {\n \"owner\": \"YOUR_GITHUB_USERNAME\",\n \"name\": \"my-opencode-config\",\n \"branch\": \"main\"\n },\n\n // A short name for this machine, used in commit messages.\n // Leave unset to auto-generate a stable pseudonym from the hostname.\n // \"machineAlias\": \"laptop\",\n\n // Sync auth.json / account.json. Only enable for a PRIVATE repository.\n \"includeCredentials\": false,\n\n \"includeSkills\": true,\n \"includeState\": true,\n\n // Selective session sync. Off by default.\n \"sessions\": {\n \"enabled\": false,\n \"days\": 7,\n \"maxSessions\": 50,\n \"maxSessionBytes\": 5242880,\n \"include\": [],\n \"exclude\": [],\n \"directories\": []\n },\n\n \"autoPullOnStartup\": true,\n \"autoPushOnIdle\": false\n}\n";
|
|
58
|
+
export declare const OVERRIDES_TEMPLATE = "{\n // Per-machine OpenCode configuration.\n //\n // This file is never committed. After every pull its contents are merged\n // back into opencode.json(c), so machine-specific settings survive syncing.\n //\n // Merge rules:\n // - objects merge key by key\n // - arrays and scalars replace whatever is in the shared config\n // - null deletes the key\n //\n // Example:\n // \"model\": \"github-copilot/claude-sonnet-4\",\n // \"mcp\": { \"playwright\": { \"enabled\": true } }\n}\n";
|
|
59
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRo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wBAAgB,aAAa,CAAC,UAAU,SAAkB,GAAG,MAAM,CAElE;AAWD,wBAAgB,YAAY,CAAC,UAAU,SAAkB,GAAG,QAAQ,CAUnE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,SAAkB,GAAG,IAAI,CAGnF;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAO9D;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAErD;AAED,eAAO,MAAM,iBAAiB,w1BAgC7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,ggBAe9B,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { parseJsonc } from "./jsonc.js";
|
|
4
|
+
import { getConfigRoot } from "./paths.js";
|
|
5
|
+
/** Filename of the tool's own settings (local-only, never committed). */
|
|
6
|
+
export const SETTINGS_FILE = "opencode-sync.jsonc";
|
|
7
|
+
/** Filename of the per-machine OpenCode config patch (local-only). */
|
|
8
|
+
export const OVERRIDES_FILE = "opencode-sync.overrides.jsonc";
|
|
9
|
+
export const DEFAULT_SETTINGS = {
|
|
10
|
+
repo: { branch: "main" },
|
|
11
|
+
includeCredentials: false,
|
|
12
|
+
includeSkills: true,
|
|
13
|
+
includeState: true,
|
|
14
|
+
extraPaths: [],
|
|
15
|
+
sessions: {
|
|
16
|
+
enabled: false,
|
|
17
|
+
days: 7,
|
|
18
|
+
maxSessions: 50,
|
|
19
|
+
maxSessionBytes: 5 * 1024 * 1024,
|
|
20
|
+
include: [],
|
|
21
|
+
exclude: [],
|
|
22
|
+
directories: [],
|
|
23
|
+
},
|
|
24
|
+
autoPullOnStartup: true,
|
|
25
|
+
autoPushOnIdle: false,
|
|
26
|
+
};
|
|
27
|
+
export function settingsPath(configRoot = getConfigRoot()) {
|
|
28
|
+
return path.join(configRoot, SETTINGS_FILE);
|
|
29
|
+
}
|
|
30
|
+
export function overridesPath(configRoot = getConfigRoot()) {
|
|
31
|
+
return path.join(configRoot, OVERRIDES_FILE);
|
|
32
|
+
}
|
|
33
|
+
function mergeSettings(base, patch) {
|
|
34
|
+
return {
|
|
35
|
+
...base,
|
|
36
|
+
...patch,
|
|
37
|
+
repo: { ...base.repo, ...(patch.repo ?? {}) },
|
|
38
|
+
sessions: { ...base.sessions, ...(patch.sessions ?? {}) },
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function loadSettings(configRoot = getConfigRoot()) {
|
|
42
|
+
const file = settingsPath(configRoot);
|
|
43
|
+
if (!fs.existsSync(file))
|
|
44
|
+
return { ...DEFAULT_SETTINGS };
|
|
45
|
+
let parsed;
|
|
46
|
+
try {
|
|
47
|
+
parsed = parseJsonc(fs.readFileSync(file, "utf8"));
|
|
48
|
+
}
|
|
49
|
+
catch (e) {
|
|
50
|
+
throw new Error(`Cannot read ${SETTINGS_FILE}: ${e.message}`);
|
|
51
|
+
}
|
|
52
|
+
return mergeSettings(DEFAULT_SETTINGS, parsed ?? {});
|
|
53
|
+
}
|
|
54
|
+
export function saveSettings(settings, configRoot = getConfigRoot()) {
|
|
55
|
+
fs.mkdirSync(configRoot, { recursive: true });
|
|
56
|
+
fs.writeFileSync(settingsPath(configRoot), `${JSON.stringify(settings, null, 2)}\n`);
|
|
57
|
+
}
|
|
58
|
+
export function repoUrl(settings) {
|
|
59
|
+
if (process.env.SYNC_REMOTE_URL)
|
|
60
|
+
return process.env.SYNC_REMOTE_URL;
|
|
61
|
+
if (settings.repo.url)
|
|
62
|
+
return settings.repo.url;
|
|
63
|
+
if (settings.repo.owner && settings.repo.name) {
|
|
64
|
+
return `https://github.com/${settings.repo.owner}/${settings.repo.name}.git`;
|
|
65
|
+
}
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
export function repoBranch(settings) {
|
|
69
|
+
return settings.repo.branch || "main";
|
|
70
|
+
}
|
|
71
|
+
export const SETTINGS_TEMPLATE = `{
|
|
72
|
+
// opencode-github-sync settings. This file is never committed.
|
|
73
|
+
"repo": {
|
|
74
|
+
"owner": "YOUR_GITHUB_USERNAME",
|
|
75
|
+
"name": "my-opencode-config",
|
|
76
|
+
"branch": "main"
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
// A short name for this machine, used in commit messages.
|
|
80
|
+
// Leave unset to auto-generate a stable pseudonym from the hostname.
|
|
81
|
+
// "machineAlias": "laptop",
|
|
82
|
+
|
|
83
|
+
// Sync auth.json / account.json. Only enable for a PRIVATE repository.
|
|
84
|
+
"includeCredentials": false,
|
|
85
|
+
|
|
86
|
+
"includeSkills": true,
|
|
87
|
+
"includeState": true,
|
|
88
|
+
|
|
89
|
+
// Selective session sync. Off by default.
|
|
90
|
+
"sessions": {
|
|
91
|
+
"enabled": false,
|
|
92
|
+
"days": 7,
|
|
93
|
+
"maxSessions": 50,
|
|
94
|
+
"maxSessionBytes": 5242880,
|
|
95
|
+
"include": [],
|
|
96
|
+
"exclude": [],
|
|
97
|
+
"directories": []
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
"autoPullOnStartup": true,
|
|
101
|
+
"autoPushOnIdle": false
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
export const OVERRIDES_TEMPLATE = `{
|
|
105
|
+
// Per-machine OpenCode configuration.
|
|
106
|
+
//
|
|
107
|
+
// This file is never committed. After every pull its contents are merged
|
|
108
|
+
// back into opencode.json(c), so machine-specific settings survive syncing.
|
|
109
|
+
//
|
|
110
|
+
// Merge rules:
|
|
111
|
+
// - objects merge key by key
|
|
112
|
+
// - arrays and scalars replace whatever is in the shared config
|
|
113
|
+
// - null deletes the key
|
|
114
|
+
//
|
|
115
|
+
// Example:
|
|
116
|
+
// "model": "github-copilot/claude-sonnet-4",
|
|
117
|
+
// "mcp": { "playwright": { "enabled": true } }
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
//# sourceMappingURL=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pE,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG;QAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;IAChD,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,sBAAsB,QAAQ,CAAC,IAAI,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC;IAC/E,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,QAAkB;IAC3C,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC;AACxC,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgChC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;CAejC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Roots } from "./paths.js";
|
|
2
|
+
import type { Reporter } from "./reporter.js";
|
|
3
|
+
/**
|
|
4
|
+
* First-run setup.
|
|
5
|
+
*
|
|
6
|
+
* The single biggest barrier to a sync tool is the setup: create a repository,
|
|
7
|
+
* find its URL, put it somewhere the tool can read, authenticate. All of that
|
|
8
|
+
* is automated through the GitHub CLI, which most OpenCode users already have
|
|
9
|
+
* authenticated. Every step is idempotent, so re-running after a failure is
|
|
10
|
+
* always safe.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SetupError extends Error {
|
|
13
|
+
constructor(message: string);
|
|
14
|
+
}
|
|
15
|
+
export declare function ghAvailable(): boolean;
|
|
16
|
+
export declare function assertGhReady(): void;
|
|
17
|
+
export declare function currentGitHubUser(): string;
|
|
18
|
+
export interface RepoTarget {
|
|
19
|
+
owner: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
/** Accept `name`, `owner/name`, or nothing (defaults applied by the caller). */
|
|
23
|
+
export declare function parseRepoTarget(input: string | undefined, defaultOwner: string): RepoTarget;
|
|
24
|
+
export declare function repoExists(target: RepoTarget): boolean;
|
|
25
|
+
export declare function repoIsPrivate(target: RepoTarget): boolean;
|
|
26
|
+
export declare function createRepo(target: RepoTarget, reporter: Reporter): void;
|
|
27
|
+
export interface SetupOptions {
|
|
28
|
+
repo?: string;
|
|
29
|
+
reporter: Reporter;
|
|
30
|
+
roots?: Roots;
|
|
31
|
+
/** Enable credential syncing. Only allowed for private repositories. */
|
|
32
|
+
includeCredentials?: boolean;
|
|
33
|
+
/** Enable selective session syncing. */
|
|
34
|
+
includeSessions?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface SetupResult {
|
|
37
|
+
target: RepoTarget;
|
|
38
|
+
created: boolean;
|
|
39
|
+
settingsFile: string;
|
|
40
|
+
overridesFile: string;
|
|
41
|
+
}
|
|
42
|
+
/** Create (or adopt) a repository and write the local settings files. */
|
|
43
|
+
export declare function initSync(options: SetupOptions): SetupResult;
|
|
44
|
+
/** Point this machine at an existing sync repository. */
|
|
45
|
+
export declare function linkSync(options: SetupOptions): SetupResult;
|
|
46
|
+
/** Guess which of the user's repositories is a sync repository. */
|
|
47
|
+
export declare function discoverSyncRepos(): string[];
|
|
48
|
+
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/core/setup.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAY9C;;;;;;;;GAQG;AAEH,qBAAa,UAAW,SAAQ,KAAK;gBACvB,OAAO,EAAE,MAAM;CAI5B;AAeD,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,wBAAgB,aAAa,IAAI,IAAI,CAUpC;AAED,wBAAgB,iBAAiB,IAAI,MA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