@luban-code/luban-code 1.115.0 → 1.123.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/dist/acp.js +405 -380
- package/dist/cli-plugin.js +121 -119
- package/dist/cli.js +418 -393
- package/dist/extension.js +433 -408
- package/package.json +9 -1
- package/registry/registry.json +235 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@luban-code/luban-code",
|
|
3
3
|
"displayName": "Luban",
|
|
4
4
|
"description": "Luban — a standalone sidebar AI coding agent (multi-provider, OpenAI-compatible, zero source patches)",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.123.0",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "eppen (liuhualiang)",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"test:market-ext": "node scripts/test-market-ext.js",
|
|
94
94
|
"test:sync-registry": "node scripts/test-sync-registry.js",
|
|
95
95
|
"test:i18n": "node scripts/test-i18n.js",
|
|
96
|
+
"test:ws-chip": "node scripts/test-workspace-chip.js",
|
|
96
97
|
"test:css": "node scripts/test-css-vars.js",
|
|
97
98
|
"test:webdav": "node scripts/test-webdav.js",
|
|
98
99
|
"test:mcp-config": "node scripts/test-mcp-config.js",
|
|
@@ -126,6 +127,7 @@
|
|
|
126
127
|
"test:usage-tools": "node scripts/test-usage-tools.js",
|
|
127
128
|
"test:usage-web": "node scripts/test-usage-web-tools.js",
|
|
128
129
|
"test:think": "node scripts/test-think.js",
|
|
130
|
+
"test:think-tiers": "node scripts/test-think-tiers.js",
|
|
129
131
|
"test:webfetch-md": "node scripts/test-webfetch-md.js",
|
|
130
132
|
"test:tabs": "node scripts/test-workspace-tab-filter.js",
|
|
131
133
|
"test:status-live": "node scripts/live-status.js",
|
|
@@ -600,6 +602,12 @@
|
|
|
600
602
|
"minimum": 0,
|
|
601
603
|
"description": "%cfgAgentNoWriteNudges%"
|
|
602
604
|
},
|
|
605
|
+
"luban.agent.verifyNudges": {
|
|
606
|
+
"type": "number",
|
|
607
|
+
"default": 1,
|
|
608
|
+
"minimum": 0,
|
|
609
|
+
"description": "%cfgAgentVerifyNudges%"
|
|
610
|
+
},
|
|
603
611
|
"luban.agent.subagentRounds": {
|
|
604
612
|
"type": "number",
|
|
605
613
|
"default": 24,
|
package/registry/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"registryVersion": 1,
|
|
3
|
-
"updatedAt": "2026-11-
|
|
3
|
+
"updatedAt": "2026-11-18T07:55:22Z",
|
|
4
4
|
"schema": "./entry.schema.json",
|
|
5
5
|
"signingKeys": [
|
|
6
6
|
{
|
|
@@ -983,6 +983,240 @@
|
|
|
983
983
|
"keyId": "registry-ci",
|
|
984
984
|
"sig": "TiLK6rNRSm83rHO1uSCosY2rp6Zh1uriGVhMatv+Wu4lfj4/Z/Sp6Oy3d14sYvM15sSSMDnsYvDBpMT/E9o3CA=="
|
|
985
985
|
}
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "claude-sessions",
|
|
989
|
+
"displayName": "Claude 会话回看",
|
|
990
|
+
"description": "回看 Claude Code 的会话记录:解析 ~/.claude/projects/ 下的 jsonl,还原成可读的用户/助手对话,支持按项目筛选与分页",
|
|
991
|
+
"type": "plugin",
|
|
992
|
+
"version": "0.1.0",
|
|
993
|
+
"author": "liuhualiang",
|
|
994
|
+
"license": "MIT",
|
|
995
|
+
"repo": "https://github.com/eppen/luban-plugins",
|
|
996
|
+
"tags": [
|
|
997
|
+
"claude",
|
|
998
|
+
"sessions",
|
|
999
|
+
"history"
|
|
1000
|
+
],
|
|
1001
|
+
"install": {
|
|
1002
|
+
"type": "git",
|
|
1003
|
+
"url": "git@github.com:eppen/luban-plugins.git",
|
|
1004
|
+
"subdir": "plugins/claude-sessions",
|
|
1005
|
+
"target": "global"
|
|
1006
|
+
},
|
|
1007
|
+
"sourceSha256": "b1d8ba610131ba131f21c65a8a24105e5d5d166ce2c22c2fb4a612217896ad4e",
|
|
1008
|
+
"ctxApi": ">=0.1 <1.0",
|
|
1009
|
+
"tools": [
|
|
1010
|
+
{
|
|
1011
|
+
"name": "list",
|
|
1012
|
+
"description": "列出本机所有 Claude Code 会话(按项目分组,含 sessionId、时间、大小、首条用户消息摘要)。先用它找到目标会话,再用 read 读取正文。",
|
|
1013
|
+
"readOnly": true,
|
|
1014
|
+
"parameters": {
|
|
1015
|
+
"type": "object",
|
|
1016
|
+
"properties": {
|
|
1017
|
+
"project": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"description": "可选。按项目目录名过滤(子串匹配,如 luban)。不传则列出全部项目。"
|
|
1020
|
+
},
|
|
1021
|
+
"limit": {
|
|
1022
|
+
"type": "number",
|
|
1023
|
+
"description": "可选。每个项目最多列出多少个会话,默认 20,按修改时间倒序。"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "read",
|
|
1030
|
+
"description": "读取单个 Claude Code 会话,解析成可读的用户/助手对话。支持分页(会话可能很长)。",
|
|
1031
|
+
"readOnly": true,
|
|
1032
|
+
"parameters": {
|
|
1033
|
+
"type": "object",
|
|
1034
|
+
"properties": {
|
|
1035
|
+
"sessionId": {
|
|
1036
|
+
"type": "string",
|
|
1037
|
+
"description": "会话 ID(jsonl 文件名去掉 .jsonl)。与 path 二选一。"
|
|
1038
|
+
},
|
|
1039
|
+
"path": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"description": "会话 jsonl 文件的绝对路径。与 sessionId 二选一。"
|
|
1042
|
+
},
|
|
1043
|
+
"offset": {
|
|
1044
|
+
"type": "number",
|
|
1045
|
+
"description": "可选。从第几条消息开始返回(0 起),默认 0。"
|
|
1046
|
+
},
|
|
1047
|
+
"limit": {
|
|
1048
|
+
"type": "number",
|
|
1049
|
+
"description": "可选。最多返回多少条消息,默认 40。"
|
|
1050
|
+
},
|
|
1051
|
+
"showThinking": {
|
|
1052
|
+
"type": "boolean",
|
|
1053
|
+
"description": "可选。是否显示助手的 thinking 段,默认 false。"
|
|
1054
|
+
},
|
|
1055
|
+
"showToolUse": {
|
|
1056
|
+
"type": "boolean",
|
|
1057
|
+
"description": "可选。是否显示助手的工具调用,默认 false。"
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
],
|
|
1063
|
+
"permissions": {
|
|
1064
|
+
"fsRead": true,
|
|
1065
|
+
"fsWrite": false,
|
|
1066
|
+
"shell": false,
|
|
1067
|
+
"net": false,
|
|
1068
|
+
"env": false
|
|
1069
|
+
},
|
|
1070
|
+
"review": {
|
|
1071
|
+
"status": "reviewed",
|
|
1072
|
+
"reviewedBy": "liuhualiang",
|
|
1073
|
+
"reviewedAt": "2026-11-18T07:10:00Z",
|
|
1074
|
+
"notes": "两个工具声明 readOnly,实现只用 fs.readdirSync/statSync/readFileSync 读 ~/.claude/projects/ 下的 jsonl,不写盘/不起子进程/不联网,与 permissions(fsRead=true,其余false) 一致。read 传 path 时可读用户显式指定的 jsonl。"
|
|
1075
|
+
},
|
|
1076
|
+
"signature": {
|
|
1077
|
+
"algo": "ed25519",
|
|
1078
|
+
"keyId": "registry-ci",
|
|
1079
|
+
"sig": "D+n5VOvS6z6/qj2RyoA17TYb4jDX0iPnplR/vB4P1a9u5x18JGg7CkmlKEN6dJmujRj0MZwEFU0WdDN7ZlUTAw=="
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "cursor-sessions",
|
|
1084
|
+
"displayName": "Cursor 会话回看",
|
|
1085
|
+
"description": "回看 Cursor 的会话记录:列会话、读正文、全文搜索(只读 Cursor 的 state.vscdb 与 conversation-search.db)",
|
|
1086
|
+
"type": "plugin",
|
|
1087
|
+
"version": "0.1.0",
|
|
1088
|
+
"author": "liuhualiang",
|
|
1089
|
+
"license": "MIT",
|
|
1090
|
+
"repo": "https://github.com/eppen/luban-plugins",
|
|
1091
|
+
"tags": [
|
|
1092
|
+
"cursor",
|
|
1093
|
+
"sessions",
|
|
1094
|
+
"history"
|
|
1095
|
+
],
|
|
1096
|
+
"install": {
|
|
1097
|
+
"type": "git",
|
|
1098
|
+
"url": "git@github.com:eppen/luban-plugins.git",
|
|
1099
|
+
"subdir": "plugins/cursor-sessions",
|
|
1100
|
+
"target": "global"
|
|
1101
|
+
},
|
|
1102
|
+
"sourceSha256": "26c0a457354e9b5bbce07423c8a9353a65d527e2d512cce8bf8e4d763b65b58d",
|
|
1103
|
+
"ctxApi": ">=0.1 <1.0",
|
|
1104
|
+
"tools": [
|
|
1105
|
+
{
|
|
1106
|
+
"name": "list",
|
|
1107
|
+
"description": "列出本机 Cursor 的会话(按最后活动时间倒序,含 composerId、标题、时间、所属项目路径、消息数)。先用它找到目标会话,再用 read 读正文。",
|
|
1108
|
+
"readOnly": true,
|
|
1109
|
+
"parameters": {
|
|
1110
|
+
"type": "object",
|
|
1111
|
+
"properties": {
|
|
1112
|
+
"workspace": {
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"description": "可选。按项目路径子串过滤(不区分大小写,如 luban)。不传则列出全部项目。"
|
|
1115
|
+
},
|
|
1116
|
+
"limit": {
|
|
1117
|
+
"type": "number",
|
|
1118
|
+
"description": "可选。最多列出多少个会话,默认 20,上限 200。"
|
|
1119
|
+
},
|
|
1120
|
+
"includeArchived": {
|
|
1121
|
+
"type": "boolean",
|
|
1122
|
+
"description": "可选。是否包含已归档会话,默认 false。"
|
|
1123
|
+
},
|
|
1124
|
+
"includeSubagents": {
|
|
1125
|
+
"type": "boolean",
|
|
1126
|
+
"description": "可选。是否包含子代理(subagent)会话,默认 false。"
|
|
1127
|
+
},
|
|
1128
|
+
"withMessageCount": {
|
|
1129
|
+
"type": "boolean",
|
|
1130
|
+
"description": "可选。是否统计每个会话的消息数(多几次库查询),默认 true。"
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "read",
|
|
1137
|
+
"description": "读取单个 Cursor 会话,把气泡(bubble)还原成可读的用户/助手对话。支持分页。",
|
|
1138
|
+
"readOnly": true,
|
|
1139
|
+
"parameters": {
|
|
1140
|
+
"type": "object",
|
|
1141
|
+
"properties": {
|
|
1142
|
+
"composerId": {
|
|
1143
|
+
"type": "string",
|
|
1144
|
+
"description": "会话 ID(list 返回的 composerId)。"
|
|
1145
|
+
},
|
|
1146
|
+
"offset": {
|
|
1147
|
+
"type": "number",
|
|
1148
|
+
"description": "可选。从第几个气泡开始返回(0 起),默认 0。"
|
|
1149
|
+
},
|
|
1150
|
+
"limit": {
|
|
1151
|
+
"type": "number",
|
|
1152
|
+
"description": "可选。最多返回多少个气泡,默认 40,上限 200。"
|
|
1153
|
+
},
|
|
1154
|
+
"showThinking": {
|
|
1155
|
+
"type": "boolean",
|
|
1156
|
+
"description": "可选。是否显示助手的思考(thinking)段,默认 false。"
|
|
1157
|
+
},
|
|
1158
|
+
"showToolUse": {
|
|
1159
|
+
"type": "boolean",
|
|
1160
|
+
"description": "可选。是否显示助手的工具调用(名称 + 参数摘要),默认 true。"
|
|
1161
|
+
},
|
|
1162
|
+
"maxChars": {
|
|
1163
|
+
"type": "number",
|
|
1164
|
+
"description": "可选。输出正文上限字符数,默认 8000,上限 40000。"
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
"required": [
|
|
1168
|
+
"composerId"
|
|
1169
|
+
]
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "search",
|
|
1174
|
+
"description": "全文搜索 Cursor 会话内容。优先用 Cursor 自带的 FTS5 索引(conversation-search.db,毫秒级);索引缺失时回退扫描最近的会话。",
|
|
1175
|
+
"readOnly": true,
|
|
1176
|
+
"parameters": {
|
|
1177
|
+
"type": "object",
|
|
1178
|
+
"properties": {
|
|
1179
|
+
"query": {
|
|
1180
|
+
"type": "string",
|
|
1181
|
+
"description": "要搜索的关键词。多个词按 AND 处理;不支持 FTS 运算符语法。"
|
|
1182
|
+
},
|
|
1183
|
+
"limit": {
|
|
1184
|
+
"type": "number",
|
|
1185
|
+
"description": "可选。最多返回多少条命中,默认 10,上限 50。"
|
|
1186
|
+
},
|
|
1187
|
+
"includeArchived": {
|
|
1188
|
+
"type": "boolean",
|
|
1189
|
+
"description": "可选。是否搜索已归档会话,默认 false。"
|
|
1190
|
+
},
|
|
1191
|
+
"scanLimit": {
|
|
1192
|
+
"type": "number",
|
|
1193
|
+
"description": "可选。FTS 索引不可用、回退扫描时最多扫多少个最近会话,默认 50,上限 300。"
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
"required": [
|
|
1197
|
+
"query"
|
|
1198
|
+
]
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
],
|
|
1202
|
+
"permissions": {
|
|
1203
|
+
"fsRead": true,
|
|
1204
|
+
"fsWrite": false,
|
|
1205
|
+
"shell": true,
|
|
1206
|
+
"net": false,
|
|
1207
|
+
"env": true
|
|
1208
|
+
},
|
|
1209
|
+
"review": {
|
|
1210
|
+
"status": "reviewed",
|
|
1211
|
+
"reviewedBy": "liuhualiang",
|
|
1212
|
+
"reviewedAt": "2026-11-18T07:53:27Z",
|
|
1213
|
+
"notes": "三个工具都声明 readOnly,实现只用 fs.existsSync/statSync 与 SQLite 只读快照(file://…?immutable=1 + readOnly)读 Cursor 用户目录下的 state.vscdb / conversation-search.db,不写盘、不联网。shell=true 仅用于降级:当前运行时没有可用 node:sqlite 时(如 Electron 37 / Node 22 的扩展宿主),用 process.execPath(ELECTRON_RUN_AS_NODE=1)或 PATH 里的 node 拉起本插件自带的 runner.js,参数表在 index.js 的 callInChild 中硬编码,只有 --experimental-sqlite 一个附加参数,不拼接任何用户输入,也没有 shell 解析(spawn shell:false)。env=true 是因为降级启动子进程时需要把 PATH / HOME / USERPROFILE / APPDATA / TEMP 等最小集合传给子进程,不读取也不外传其它环境变量。verify 的「工具全只读但含 shell」警告属预期,理由如上。"
|
|
1214
|
+
},
|
|
1215
|
+
"signature": {
|
|
1216
|
+
"algo": "ed25519",
|
|
1217
|
+
"keyId": "dev-2",
|
|
1218
|
+
"sig": "nf9054XOe9kquQDg8naNBhhQgghIW5hZY6T0knwldOlky/xn24/qO6jT+72XOZV3jYDLLt63EfxLto8Cm2x1BA=="
|
|
1219
|
+
}
|
|
986
1220
|
}
|
|
987
1221
|
]
|
|
988
1222
|
}
|