opencode-prompt-logger 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-prompt-logger",
3
- "version": "0.1.0",
4
- "description": "OpenCode plugin: logs the assembled system prompt and the raw model request body of every model request to an NDJSON file.",
3
+ "version": "0.2.0",
4
+ "description": "OpenCode plugin: logs assembled prompts and, optionally, raw model request bodies in a deduplicated per-session store, with a TUI and desktop viewer, runtime settings and retention.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -22,10 +22,15 @@
22
22
  "prompt",
23
23
  "logging",
24
24
  "ndjson",
25
- "debugging"
25
+ "debugging",
26
+ "tui",
27
+ "desktop",
28
+ "gui",
29
+ "rpc",
30
+ "viewer"
26
31
  ],
27
32
  "engines": {
28
- "opencode": ">=2.0.0"
33
+ "opencode": ">=2.4.3"
29
34
  },
30
35
  "publishConfig": {
31
36
  "access": "public"
@@ -40,21 +45,59 @@
40
45
  "types": "./dist/index.d.ts",
41
46
  "import": "./dist/index.js",
42
47
  "default": "./dist/index.js"
43
- }
48
+ },
49
+ "./server": {
50
+ "types": "./dist/index.d.ts",
51
+ "import": "./dist/index.js",
52
+ "default": "./dist/index.js"
53
+ },
54
+ "./rpc": {
55
+ "types": "./dist/rpc.d.ts",
56
+ "import": "./dist/rpc.js",
57
+ "default": "./dist/rpc.js"
58
+ },
59
+ "./rpc-client": {
60
+ "types": "./dist/rpc-client.d.ts",
61
+ "import": "./dist/rpc-client.js",
62
+ "default": "./dist/rpc-client.js"
63
+ },
64
+ "./tui": {
65
+ "types": "./dist/tui.d.ts",
66
+ "import": "./dist/tui.js",
67
+ "default": "./dist/tui.js"
68
+ },
69
+ "./gui-experimental": "./dist/gui-experimental.cjs"
44
70
  },
45
71
  "scripts": {
46
72
  "test": "bun test",
47
- "typecheck": "tsc --noEmit",
73
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.gui.json",
48
74
  "build": "bun run scripts/build.ts",
49
- "prepublishOnly": "bun run typecheck && bun test && bun run build"
75
+ "build:gui": "vite build",
76
+ "dev:gui": "vite build --watch",
77
+ "bench": "bun run scripts/bench.ts",
78
+ "demo": "bun run scripts/demo.ts",
79
+ "screenshots": "bun run scripts/screenshots.ts",
80
+ "check:package": "bun run scripts/check-package.ts",
81
+ "prepublishOnly": "bun run typecheck && bun run build && bun test && bun run check:package"
50
82
  },
51
83
  "peerDependencies": {
52
- "@opencode/plugin": ">=2.0.16"
84
+ "@opencode/plugin": ">=2.4.3",
85
+ "@opencode/theme": ">=2.4.3",
86
+ "@opentui/core": ">=0.9.0",
87
+ "@opentui/solid": ">=0.9.0",
88
+ "solid-js": ">=1.9.12"
53
89
  },
54
90
  "devDependencies": {
55
- "@opencode/plugin": "2.0.16",
91
+ "@happy-dom/global-registrator": "20.0.11",
92
+ "@opencode/plugin": "2.4.3",
93
+ "@opencode/theme": "2.4.3",
94
+ "@opentui/core": "0.9.9",
95
+ "@opentui/solid": "0.9.9",
56
96
  "@types/bun": "^1.4.1",
57
97
  "@types/node": "^24.0.0",
58
- "typescript": "^5.8.0"
98
+ "solid-js": "1.9.12",
99
+ "typescript": "^5.8.0",
100
+ "vite": "^7",
101
+ "vite-plugin-solid": "^2.11"
59
102
  }
60
103
  }