opencode-database-plugin 1.0.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 ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "opencode-database-plugin",
3
+ "version": "1.0.0",
4
+ "description": "OpenCode plugin that logs sessions, messages, tool executions, and token usage to PostgreSQL",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "test": "bun test __tests__/unit",
19
+ "test:unit": "bun test __tests__/unit",
20
+ "test:integration": "bun test __tests__/integration --timeout 180000",
21
+ "test:all": "bun test --timeout 180000",
22
+ "build": "bun build ./index.ts --outdir ./dist --target node --format esm && bun run build:types",
23
+ "build:types": "bun x tsc --declaration --emitDeclarationOnly --outDir dist",
24
+ "typecheck": "tsc --noEmit",
25
+ "prepublishOnly": "bun run build"
26
+ },
27
+ "keywords": [
28
+ "opencode",
29
+ "plugin",
30
+ "database",
31
+ "postgres",
32
+ "analytics"
33
+ ],
34
+ "license": "Apache-2.0",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/aemr3/opencode-database-plugin.git"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/aemr3/opencode-database-plugin/issues"
41
+ },
42
+ "homepage": "https://github.com/aemr3/opencode-database-plugin#readme",
43
+ "dependencies": {
44
+ "postgres": "^3.4.5"
45
+ },
46
+ "devDependencies": {
47
+ "@opencode-ai/plugin": "latest",
48
+ "@types/bun": "latest",
49
+ "typescript": "^5.9.3"
50
+ },
51
+ "peerDependencies": {
52
+ "@opencode-ai/plugin": "*"
53
+ }
54
+ }