dsh-composer-plus 1.7.1 → 1.9.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/cordis.patch.yml CHANGED
@@ -1,3 +1,15 @@
1
1
  - insert:
2
2
  - id: composer-plus
3
3
  name: dsh-composer-plus
4
+
5
+ # Content search: dsh's own sidebar search (Cmd+K) also finds chats by the words in their messages. dsh ships the index
6
+ # off (`openAt: never`, `:memory:`); this later layer switches it on with a durable, owner-only file under the dsh home.
7
+ # The index opens at the first search, not at start. Settings → Composer Plus → Content search writes
8
+ # `storages/dsh-composer-plus/content-search.json`; `{ "on": false }` keeps dsh's default (titles only). Read at start only.
9
+ # `journalMode: delete`: a rebuildable index needs no write-ahead log; WAL kept a second file as large as the index
10
+ # (measured: 166 MB next to a 165 MB index) until dsh quit.
11
+ - id: session-query-sqlite
12
+ config:
13
+ path: !!js dshHomePath('cache', 'composer-plus', 'session-search.db')
14
+ openAt: !!js "(() => { try { return JSON.parse(process.getBuiltinModule('node:fs').readFileSync(dshHomePath('storages', 'dsh-composer-plus', 'content-search.json'), 'utf8'))?.on === false ? 'never' : 'first-search' } catch { return 'first-search' } })()"
15
+ journalMode: delete