opencode-feishu-plugin 0.1.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/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // 根入口:OpenCode 自动发现只会加载 `plugins/<名字>/index.js`(不读 package.json#main)。
2
+ // 实现体在 ./dist/index.js(自包含 bundle,含飞书 SDK 等依赖)。
3
+ export { default } from "./dist/index.js"
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "opencode-feishu-plugin",
3
+ "version": "0.1.0",
4
+ "description": "Feishu/Lark plugin for OpenCode V2 — single-user topics as sessions, in-card permission approvals, streaming cards. Minimal permissions, no public endpoint.",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "index.js",
16
+ "dist/index.js",
17
+ "dist/index.d.ts",
18
+ "README.md",
19
+ "README.en.md",
20
+ "LICENSE"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsup",
24
+ "dev": "tsup --watch",
25
+ "typecheck": "tsc --noEmit",
26
+ "test": "vitest run",
27
+ "test:watch": "vitest",
28
+ "prepublishOnly": "node -e \"require('fs').existsSync('node_modules')||require('child_process').execSync('npm ci --no-audit --no-fund',{stdio:'inherit'})\" && npm run typecheck && npm run build && npm test"
29
+ },
30
+ "keywords": [
31
+ "opencode",
32
+ "opencode-plugin",
33
+ "feishu",
34
+ "lark",
35
+ "飞书",
36
+ "飞书机器人",
37
+ "lark-bot",
38
+ "ai-agent",
39
+ "coding-agent"
40
+ ],
41
+ "license": "MIT",
42
+ "engines": {
43
+ "node": ">=20.0.0"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/moyuanhua/opencode-feishu-plugin.git"
51
+ },
52
+ "homepage": "https://github.com/moyuanhua/opencode-feishu-plugin#readme",
53
+ "bugs": {
54
+ "url": "https://github.com/moyuanhua/opencode-feishu-plugin/issues"
55
+ },
56
+ "dependencies": {
57
+ "@larksuiteoapi/node-sdk": "^1.74.0"
58
+ },
59
+ "peerDependencies": {
60
+ "@opencode/plugin": ">=2.0.16"
61
+ },
62
+ "devDependencies": {
63
+ "@opencode/plugin": "2.0.16",
64
+ "@types/node": "^20.19.0",
65
+ "tsup": "^8.5.0",
66
+ "typescript": "^5.9.0",
67
+ "vitest": "^3.2.0"
68
+ }
69
+ }