opencode-sessions-forever 1.0.0 → 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,12 +1,20 @@
1
1
  {
2
2
  "name": "opencode-sessions-forever",
3
- "version": "1.0.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",
7
7
  "author": {
8
8
  "name": "LinXuan"
9
9
  },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/linxuan-sys/opencode-session-forever.git"
13
+ },
14
+ "homepage": "https://github.com/linxuan-sys/opencode-session-forever#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/linxuan-sys/opencode-session-forever/issues"
17
+ },
10
18
  "keywords": [
11
19
  "opencode",
12
20
  "opencode-plugin",
@@ -25,13 +33,14 @@
25
33
  "access": "public"
26
34
  },
27
35
  "files": [
28
- "src",
36
+ "index.ts",
37
+ "tui.ts",
29
38
  "README.md",
30
39
  "LICENSE"
31
40
  ],
32
41
  "exports": {
33
- ".": "./src/index.ts",
34
- "./tui": "./src/tui.ts"
42
+ ".": "./index.ts",
43
+ "./tui": "./tui.ts"
35
44
  },
36
45
  "peerDependencies": {
37
46
  "@opencode/plugin": ">=2.1.0"
@@ -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, { readOnly: true, readonly: true } as any)
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