opencode-navigator 0.27.3 → 0.27.5

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.
@@ -1,5 +1,7 @@
1
- import {changesSince2,readBundledChangelog2
2
- } from "./chunk-rrvwmnyh.js";
1
+ import {readBundledChangelog2
2
+ } from "./chunk-sm9ej5ac.js"
3
+ import {changesSince2
4
+ } from "./chunk-4rh7rb74.js";
3
5
  import {createElement as _$createElement} from "@opentui/solid"
4
6
  import {createComponent as _$createComponent} from "@opentui/solid"
5
7
  import {onCleanup,onMount} from "solid-js"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-navigator",
4
- "version": "0.27.3",
4
+ "version": "0.27.5",
5
5
  "description": "Search, navigate, and manage OpenCode sessions in the TUI and experimental Desktop GUI",
6
6
  "type": "module",
7
7
  "packageManager": "bun@1.4.4",
@@ -86,6 +86,10 @@
86
86
  "test:e2e:v1": "bun run build && bash scripts/smoke-opencode.sh",
87
87
  "test:e2e:v2": "bun run build && bash scripts/smoke-opencode-v2.sh",
88
88
  "test:gui": "bun run build:gui && bun test --conditions browser test/gui",
89
+ "test:coverage": "bun run build && bun run test:coverage:tui && bun run test:coverage:gui && bun run coverage:summary",
90
+ "test:coverage:tui": "bun test --coverage --coverage-reporter=lcov --coverage-dir coverage/tui --preload @opentui/solid/preload ./test/*.test.ts ./test/*.test.tsx",
91
+ "test:coverage:gui": "bun test --conditions browser --coverage --coverage-reporter=lcov --coverage-dir coverage/gui test/gui",
92
+ "coverage:summary": "bun run scripts/coverage-summary.ts",
89
93
  "test:e2e:gui": "bun run build && node scripts/smoke-opencode-gui.mjs",
90
94
  "typecheck:gui": "tsc --project tsconfig.gui.json && tsc --project tsconfig.gui-test.json",
91
95
  "typecheck": "tsc --noEmit && tsc --project tsconfig.ffi.json && bun run typecheck:gui",
@@ -1,22 +0,0 @@
1
- import {isNewerVersion
2
- } from "./chunk-fd7394y1.js";
3
- function parseChangelog2(source){const entries=[]
4
- let entry
5
- for(const line of source.split(/\r?\n/)){const heading=/^## \[(\d+\.\d+\.\d+(?:-[\w.-]+)?)\]/.exec(line)
6
- if(heading){entry={version:heading[1],changes:[]}
7
- entries.push(entry)
8
- } else if(line.startsWith("## "))
9
- entry=undefined
10
- else if(entry&&line.startsWith("- "))
11
- entry.changes.push(line.slice(2))
12
- }
13
- return entries
14
- }
15
- function changesSince2(source,previous,current){return parseChangelog2(source).filter((entry)=>entry.changes.length>0&&isNewerVersion(entry.version,previous)&&!isNewerVersion(entry.version,current))
16
- }
17
- async function readBundledChangelog2(){const packaged=Bun.file(new URL("../CHANGELOG.md",import.meta.url))
18
- if(await packaged.exists())
19
- return packaged.text()
20
- return Bun.file(new URL("../../../../CHANGELOG.md",import.meta.url)).text()
21
- }
22
- export{parseChangelog2,changesSince2,readBundledChangelog2}