opencode-sessions-forever 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sessions-forever",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "OpenCode plugin: save any conversation as a single portable .sf archive (a real OpenCode database) and restore it later as a native session — on any machine, as many instances as you like. /session-save + /session-load with a native picker and auto tab open.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,13 +33,14 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
|
-
"
|
|
36
|
+
"index.ts",
|
|
37
|
+
"tui.ts",
|
|
37
38
|
"README.md",
|
|
38
39
|
"LICENSE"
|
|
39
40
|
],
|
|
40
41
|
"exports": {
|
|
41
|
-
".": "./
|
|
42
|
-
"./tui": "./
|
|
42
|
+
".": "./index.ts",
|
|
43
|
+
"./tui": "./tui.ts"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"@opencode/plugin": ">=2.1.0"
|
package/{src/tui.ts → tui.ts}
RENAMED
|
@@ -57,7 +57,7 @@ async function disposable<T>(fn: (env: NodeJS.ProcessEnv, bin: string) => Promis
|
|
|
57
57
|
// Read-only quick peek at the session label inside a .sf (id/title/count); falls back to the file name
|
|
58
58
|
function peek(file: string): { id?: string; title?: string; count?: number; created?: number } {
|
|
59
59
|
try {
|
|
60
|
-
const db = new Database(file, {
|
|
60
|
+
const db = new Database(file, { readonly: true })
|
|
61
61
|
try {
|
|
62
62
|
const row: any = db.query("select id, title, time_created from session_v2 limit 1").get()
|
|
63
63
|
const cnt: any = db.query("select count(*) as n from session_message").get()
|
|
File without changes
|