opencode-completion-gate 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/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +56 -0
- package/dist/core.d.ts +212 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +697 -0
- package/dist/plugin.d.ts +11 -0
- package/dist/plugin.js +1061 -0
- package/package.json +81 -0
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode-completion-gate",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenCode plugin: per-session quality gate that blocks declaring done until configured assertions pass",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/plugin.js",
|
|
7
|
+
"types": "dist/plugin.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/plugin.d.ts",
|
|
11
|
+
"import": "./dist/plugin.js"
|
|
12
|
+
},
|
|
13
|
+
"./utils": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build:bundle && npm run build:types",
|
|
20
|
+
"build:bundle": "esbuild src/plugin.ts --bundle --platform=node --format=esm --outfile=dist/plugin.js --external:fs --external:path --external:os --external:child_process --external:@opencode-ai/plugin && esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:fs --external:path --external:os --external:child_process --external:@opencode-ai/plugin",
|
|
21
|
+
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest",
|
|
24
|
+
"test:coverage": "vitest run --coverage",
|
|
25
|
+
"lint": "eslint src tests",
|
|
26
|
+
"lint:fix": "eslint src tests --fix",
|
|
27
|
+
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
28
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
29
|
+
"clean": "rimraf dist coverage",
|
|
30
|
+
"prepublishOnly": "npm run clean && npm run lint && npm run build && npm run test"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"opencode",
|
|
34
|
+
"plugin",
|
|
35
|
+
"quality-gate",
|
|
36
|
+
"completion-gate",
|
|
37
|
+
"ci"
|
|
38
|
+
],
|
|
39
|
+
"author": "PauloDevelo",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/PauloDevelo/opencode-completion-gate.git"
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/PauloDevelo/opencode-completion-gate/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/PauloDevelo/opencode-completion-gate#readme",
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"README.md",
|
|
52
|
+
"LICENSE",
|
|
53
|
+
"CHANGELOG.md"
|
|
54
|
+
],
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=18"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public",
|
|
60
|
+
"provenance": true
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@opencode-ai/plugin": ">=1.0.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@eslint/js": "^9.17.0",
|
|
67
|
+
"@opencode-ai/plugin": "^1.0.223",
|
|
68
|
+
"@opencode-ai/sdk": "^1.0.223",
|
|
69
|
+
"@types/node": "^20.10.0",
|
|
70
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
71
|
+
"esbuild": "^0.27.2",
|
|
72
|
+
"eslint": "^9.17.0",
|
|
73
|
+
"eslint-config-prettier": "^9.1.0",
|
|
74
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
75
|
+
"prettier": "^3.4.2",
|
|
76
|
+
"rimraf": "^6.0.1",
|
|
77
|
+
"typescript": "^5.3.0",
|
|
78
|
+
"typescript-eslint": "^8.18.0",
|
|
79
|
+
"vitest": "^1.0.0"
|
|
80
|
+
}
|
|
81
|
+
}
|