agent-whisker 0.0.0-stage → 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.
Files changed (454) hide show
  1. package/.claude-plugin/marketplace.json +12 -0
  2. package/LICENSE +21 -0
  3. package/README.md +164 -2
  4. package/README.zh-CN.md +165 -0
  5. package/node_modules/jieba-wasm/LICENSE +25 -0
  6. package/node_modules/jieba-wasm/README.md +134 -0
  7. package/node_modules/jieba-wasm/package.json +129 -0
  8. package/node_modules/jieba-wasm/pkg/nodejs/jieba_rs_wasm.d.ts +24 -0
  9. package/node_modules/jieba-wasm/pkg/nodejs/jieba_rs_wasm.js +341 -0
  10. package/node_modules/jieba-wasm/pkg/nodejs/jieba_rs_wasm_bg.wasm +0 -0
  11. package/node_modules/jieba-wasm/pkg/nodejs/jieba_rs_wasm_bg.wasm.d.ts +25 -0
  12. package/node_modules/yaml/LICENSE +13 -0
  13. package/node_modules/yaml/README.md +172 -0
  14. package/node_modules/yaml/bin.mjs +11 -0
  15. package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  16. package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  17. package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  18. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  19. package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  20. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  21. package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  22. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  23. package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  24. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  25. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
  26. package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  27. package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  28. package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  29. package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  30. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  31. package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  32. package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  33. package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  34. package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  35. package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  36. package/node_modules/yaml/browser/dist/errors.js +57 -0
  37. package/node_modules/yaml/browser/dist/index.js +17 -0
  38. package/node_modules/yaml/browser/dist/log.js +11 -0
  39. package/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
  40. package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  41. package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  42. package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  43. package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  44. package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  45. package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  46. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  47. package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  48. package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  49. package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  50. package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  51. package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  52. package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  53. package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  54. package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  55. package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  56. package/node_modules/yaml/browser/dist/public-api.js +102 -0
  57. package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  58. package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  59. package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  60. package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  61. package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  62. package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  63. package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  64. package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  65. package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  66. package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  67. package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  68. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  69. package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  70. package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  71. package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  72. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  73. package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  74. package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  75. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  76. package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  77. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  78. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  79. package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  80. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  81. package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  82. package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  83. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  84. package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  85. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  86. package/node_modules/yaml/browser/dist/util.js +11 -0
  87. package/node_modules/yaml/browser/dist/visit.js +233 -0
  88. package/node_modules/yaml/browser/index.js +5 -0
  89. package/node_modules/yaml/browser/package.json +3 -0
  90. package/node_modules/yaml/dist/cli.d.ts +8 -0
  91. package/node_modules/yaml/dist/cli.mjs +201 -0
  92. package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  93. package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  94. package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  95. package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  96. package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  97. package/node_modules/yaml/dist/compose/compose-node.js +112 -0
  98. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  99. package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  100. package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  101. package/node_modules/yaml/dist/compose/composer.js +224 -0
  102. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  103. package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  104. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  105. package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  106. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  107. package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  108. package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  109. package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  110. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  111. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  112. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  113. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
  114. package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  115. package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  116. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  117. package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  118. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  119. package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  120. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  121. package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  122. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  123. package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  124. package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  125. package/node_modules/yaml/dist/doc/Document.js +337 -0
  126. package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  127. package/node_modules/yaml/dist/doc/anchors.js +76 -0
  128. package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  129. package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  130. package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  131. package/node_modules/yaml/dist/doc/createNode.js +90 -0
  132. package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  133. package/node_modules/yaml/dist/doc/directives.js +178 -0
  134. package/node_modules/yaml/dist/errors.d.ts +21 -0
  135. package/node_modules/yaml/dist/errors.js +62 -0
  136. package/node_modules/yaml/dist/index.d.ts +25 -0
  137. package/node_modules/yaml/dist/index.js +50 -0
  138. package/node_modules/yaml/dist/log.d.ts +3 -0
  139. package/node_modules/yaml/dist/log.js +19 -0
  140. package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  141. package/node_modules/yaml/dist/nodes/Alias.js +120 -0
  142. package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  143. package/node_modules/yaml/dist/nodes/Collection.js +151 -0
  144. package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  145. package/node_modules/yaml/dist/nodes/Node.js +40 -0
  146. package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  147. package/node_modules/yaml/dist/nodes/Pair.js +39 -0
  148. package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  149. package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  150. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  151. package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  152. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  153. package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  154. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  155. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  156. package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  157. package/node_modules/yaml/dist/nodes/identity.js +53 -0
  158. package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  159. package/node_modules/yaml/dist/nodes/toJS.js +39 -0
  160. package/node_modules/yaml/dist/options.d.ts +350 -0
  161. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  162. package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  163. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  164. package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  165. package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  166. package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  167. package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  168. package/node_modules/yaml/dist/parse/cst.js +112 -0
  169. package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  170. package/node_modules/yaml/dist/parse/lexer.js +723 -0
  171. package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  172. package/node_modules/yaml/dist/parse/line-counter.js +41 -0
  173. package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  174. package/node_modules/yaml/dist/parse/parser.js +980 -0
  175. package/node_modules/yaml/dist/public-api.d.ts +44 -0
  176. package/node_modules/yaml/dist/public-api.js +107 -0
  177. package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  178. package/node_modules/yaml/dist/schema/Schema.js +39 -0
  179. package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  180. package/node_modules/yaml/dist/schema/common/map.js +19 -0
  181. package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  182. package/node_modules/yaml/dist/schema/common/null.js +17 -0
  183. package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  184. package/node_modules/yaml/dist/schema/common/seq.js +19 -0
  185. package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  186. package/node_modules/yaml/dist/schema/common/string.js +16 -0
  187. package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  188. package/node_modules/yaml/dist/schema/core/bool.js +21 -0
  189. package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  190. package/node_modules/yaml/dist/schema/core/float.js +47 -0
  191. package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  192. package/node_modules/yaml/dist/schema/core/int.js +42 -0
  193. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  194. package/node_modules/yaml/dist/schema/core/schema.js +25 -0
  195. package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  196. package/node_modules/yaml/dist/schema/json/schema.js +64 -0
  197. package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  198. package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  199. package/node_modules/yaml/dist/schema/tags.js +99 -0
  200. package/node_modules/yaml/dist/schema/types.d.ts +92 -0
  201. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  202. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  203. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  204. package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  205. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  206. package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  207. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  208. package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  209. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  210. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  211. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  212. package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  213. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  214. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  215. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  216. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  217. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  218. package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  219. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  220. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  221. package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  222. package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  223. package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  224. package/node_modules/yaml/dist/stringify/stringify.js +132 -0
  225. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  226. package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  227. package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  228. package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  229. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  230. package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  231. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  232. package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  233. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  234. package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  235. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  236. package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  237. package/node_modules/yaml/dist/test-events.d.ts +4 -0
  238. package/node_modules/yaml/dist/test-events.js +134 -0
  239. package/node_modules/yaml/dist/util.d.ts +16 -0
  240. package/node_modules/yaml/dist/util.js +28 -0
  241. package/node_modules/yaml/dist/visit.d.ts +102 -0
  242. package/node_modules/yaml/dist/visit.js +236 -0
  243. package/node_modules/yaml/package.json +97 -0
  244. package/node_modules/yaml/util.js +2 -0
  245. package/package.json +54 -4
  246. package/packages/antigravity-plugin/README.md +27 -0
  247. package/packages/antigravity-plugin/README.zh-CN.md +27 -0
  248. package/packages/antigravity-plugin/agents/review.md +36 -0
  249. package/packages/antigravity-plugin/hooks.json +24 -0
  250. package/packages/antigravity-plugin/package.json +7 -0
  251. package/packages/antigravity-plugin/plugin.json +5 -0
  252. package/packages/antigravity-plugin/review-perspectives.md +14 -0
  253. package/packages/antigravity-plugin/rules/agent-whisker.md +7 -0
  254. package/packages/antigravity-plugin/skills/task-state/SKILL.md +93 -0
  255. package/packages/claude-plugin/.claude-plugin/plugin.json +8 -0
  256. package/packages/claude-plugin/.codex-plugin/plugin.json +8 -0
  257. package/packages/claude-plugin/README.md +242 -0
  258. package/packages/claude-plugin/README.zh-CN.md +88 -0
  259. package/packages/claude-plugin/agents/recall.md +28 -0
  260. package/packages/claude-plugin/agents/review.md +33 -0
  261. package/packages/claude-plugin/bin/taskstate +1274 -0
  262. package/packages/claude-plugin/bin/windows-launch.mjs +71 -0
  263. package/packages/claude-plugin/hooks/codex.json +95 -0
  264. package/packages/claude-plugin/hooks/hooks.json +80 -0
  265. package/packages/claude-plugin/package.json +7 -0
  266. package/packages/claude-plugin/review-perspectives.md +14 -0
  267. package/packages/claude-plugin/skills/task-state/SKILL.md +93 -0
  268. package/packages/cli/README.md +294 -0
  269. package/packages/cli/README.zh-CN.md +294 -0
  270. package/packages/cli/package.json +16 -0
  271. package/packages/cli/src/command.js +325 -0
  272. package/packages/cli/src/commands/catalog.js +101 -0
  273. package/packages/cli/src/commands/doctor.js +1773 -0
  274. package/packages/cli/src/commands/document.js +38 -0
  275. package/packages/cli/src/commands/exclude.js +156 -0
  276. package/packages/cli/src/commands/extract.js +63 -0
  277. package/packages/cli/src/commands/grep.js +139 -0
  278. package/packages/cli/src/commands/hook.js +342 -0
  279. package/packages/cli/src/commands/index-command.js +199 -0
  280. package/packages/cli/src/commands/index.js +49 -0
  281. package/packages/cli/src/commands/ingest.js +332 -0
  282. package/packages/cli/src/commands/init.js +208 -0
  283. package/packages/cli/src/commands/install.js +225 -0
  284. package/packages/cli/src/commands/mcp.js +54 -0
  285. package/packages/cli/src/commands/nudge.js +83 -0
  286. package/packages/cli/src/commands/project.js +228 -0
  287. package/packages/cli/src/commands/read.js +158 -0
  288. package/packages/cli/src/commands/search.js +283 -0
  289. package/packages/cli/src/commands/service.js +241 -0
  290. package/packages/cli/src/commands/sessions.js +611 -0
  291. package/packages/cli/src/commands/status.js +194 -0
  292. package/packages/cli/src/commands/tui.js +62 -0
  293. package/packages/cli/src/commands/version.js +25 -0
  294. package/packages/cli/src/exclusion.js +88 -0
  295. package/packages/cli/src/grep-options.js +133 -0
  296. package/packages/cli/src/index.js +18 -0
  297. package/packages/cli/src/install/agents.js +99 -0
  298. package/packages/cli/src/install/antigravity-plugin.js +221 -0
  299. package/packages/cli/src/install/claude-plugin.js +167 -0
  300. package/packages/cli/src/install/clients.js +515 -0
  301. package/packages/cli/src/install/codex-plugin.js +207 -0
  302. package/packages/cli/src/install/dsh.js +599 -0
  303. package/packages/cli/src/install/external.js +659 -0
  304. package/packages/cli/src/install/handlers.js +76 -0
  305. package/packages/cli/src/install/herdr-mod.js +411 -0
  306. package/packages/cli/src/install/mcp.js +266 -0
  307. package/packages/cli/src/install/remove.js +913 -0
  308. package/packages/cli/src/install/rules.js +669 -0
  309. package/packages/cli/src/install/steps.js +1767 -0
  310. package/packages/cli/src/install/wrapper.js +558 -0
  311. package/packages/cli/src/keystore.js +530 -0
  312. package/packages/cli/src/launcher.js +184 -0
  313. package/packages/cli/src/main.js +11 -0
  314. package/packages/cli/src/node-version.js +25 -0
  315. package/packages/cli/src/paths.js +16 -0
  316. package/packages/cli/src/pointer.js +330 -0
  317. package/packages/cli/src/run.js +254 -0
  318. package/packages/cli/src/session-wait.js +365 -0
  319. package/packages/cli/src/store-access.js +51 -0
  320. package/packages/cli/src/tui/app.js +1430 -0
  321. package/packages/cli/src/tui/data/call.js +83 -0
  322. package/packages/cli/src/tui/data/poll.js +24 -0
  323. package/packages/cli/src/tui/glyphs.js +93 -0
  324. package/packages/cli/src/tui/i18n.js +342 -0
  325. package/packages/cli/src/tui/model.js +251 -0
  326. package/packages/cli/src/tui/pages/common.js +71 -0
  327. package/packages/cli/src/tui/pages/library.js +154 -0
  328. package/packages/cli/src/tui/pages/sessions.js +96 -0
  329. package/packages/cli/src/tui/pages/system.js +124 -0
  330. package/packages/cli/src/tui/pages/tasks.js +297 -0
  331. package/packages/cli/src/tui/run.js +216 -0
  332. package/packages/cli/src/tui/term/keys.js +152 -0
  333. package/packages/cli/src/tui/term/screen.js +88 -0
  334. package/packages/cli/src/tui/term/term.js +157 -0
  335. package/packages/cli/src/tui/term/width.js +290 -0
  336. package/packages/cli/src/tui/ui/widgets.js +247 -0
  337. package/packages/core/README.md +53 -0
  338. package/packages/core/README.zh-CN.md +53 -0
  339. package/packages/core/package.json +13 -0
  340. package/packages/core/src/antigravity.js +471 -0
  341. package/packages/core/src/append.js +309 -0
  342. package/packages/core/src/atomic-file.js +127 -0
  343. package/packages/core/src/barrier.js +359 -0
  344. package/packages/core/src/blobs.js +423 -0
  345. package/packages/core/src/catalog.js +513 -0
  346. package/packages/core/src/chunk.js +371 -0
  347. package/packages/core/src/clairic.js +518 -0
  348. package/packages/core/src/compact.js +194 -0
  349. package/packages/core/src/context.js +65 -0
  350. package/packages/core/src/convert.js +168 -0
  351. package/packages/core/src/crashpoints.js +59 -0
  352. package/packages/core/src/db.js +1318 -0
  353. package/packages/core/src/doc-kind.js +30 -0
  354. package/packages/core/src/dsh.js +494 -0
  355. package/packages/core/src/encoding.js +175 -0
  356. package/packages/core/src/errors.js +139 -0
  357. package/packages/core/src/excerpt.js +93 -0
  358. package/packages/core/src/exclude.js +102 -0
  359. package/packages/core/src/extract.js +708 -0
  360. package/packages/core/src/extractors.js +170 -0
  361. package/packages/core/src/format.js +18 -0
  362. package/packages/core/src/grep.js +623 -0
  363. package/packages/core/src/host.js +590 -0
  364. package/packages/core/src/ids.js +242 -0
  365. package/packages/core/src/index-db.js +1040 -0
  366. package/packages/core/src/index-view.js +201 -0
  367. package/packages/core/src/index.js +89 -0
  368. package/packages/core/src/ingest-file.js +854 -0
  369. package/packages/core/src/json.js +127 -0
  370. package/packages/core/src/library-filters.js +126 -0
  371. package/packages/core/src/library-read.js +751 -0
  372. package/packages/core/src/nudge.js +129 -0
  373. package/packages/core/src/observers.js +175 -0
  374. package/packages/core/src/pages.js +95 -0
  375. package/packages/core/src/pattern.js +433 -0
  376. package/packages/core/src/pdf-bookmarks.js +231 -0
  377. package/packages/core/src/project.js +1073 -0
  378. package/packages/core/src/protobuf.js +112 -0
  379. package/packages/core/src/ranking.js +13 -0
  380. package/packages/core/src/reclassify.js +78 -0
  381. package/packages/core/src/recovery.js +179 -0
  382. package/packages/core/src/reducers/library.js +559 -0
  383. package/packages/core/src/reducers/registry.js +180 -0
  384. package/packages/core/src/replay.js +525 -0
  385. package/packages/core/src/rerank.js +1263 -0
  386. package/packages/core/src/schema.js +479 -0
  387. package/packages/core/src/search.js +1241 -0
  388. package/packages/core/src/session-files.js +2320 -0
  389. package/packages/core/src/session-grep.js +270 -0
  390. package/packages/core/src/session-reader.js +201 -0
  391. package/packages/core/src/sessions-read.js +888 -0
  392. package/packages/core/src/sessions-search.js +1142 -0
  393. package/packages/core/src/sessions-sync.js +886 -0
  394. package/packages/core/src/sessions.js +958 -0
  395. package/packages/core/src/sources.js +558 -0
  396. package/packages/core/src/state.js +172 -0
  397. package/packages/core/src/store.js +1039 -0
  398. package/packages/core/src/tokenize.js +187 -0
  399. package/packages/core/src/validation.js +127 -0
  400. package/packages/dsh-plugin/README.md +64 -0
  401. package/packages/dsh-plugin/README.zh-CN.md +64 -0
  402. package/packages/dsh-plugin/checked.json +3 -0
  403. package/packages/dsh-plugin/index.js +520 -0
  404. package/packages/dsh-plugin/package.json +7 -0
  405. package/packages/dsh-plugin/skills/task-state/SKILL.md +93 -0
  406. package/packages/herdr-plugin/README.md +15 -0
  407. package/packages/herdr-plugin/README.zh-CN.md +15 -0
  408. package/packages/herdr-plugin/app-mod/main.js +189 -0
  409. package/packages/herdr-plugin/app-mod/mod.json +1 -0
  410. package/packages/herdr-plugin/app-mod/status.js +275 -0
  411. package/packages/herdr-plugin/herdr-plugin.toml +15 -0
  412. package/packages/herdr-plugin/package.json +7 -0
  413. package/packages/mcp/README.md +106 -0
  414. package/packages/mcp/README.zh-CN.md +106 -0
  415. package/packages/mcp/package.json +13 -0
  416. package/packages/mcp/src/framing.js +101 -0
  417. package/packages/mcp/src/index.js +13 -0
  418. package/packages/mcp/src/instructions.js +378 -0
  419. package/packages/mcp/src/reload.js +141 -0
  420. package/packages/mcp/src/roots.js +185 -0
  421. package/packages/mcp/src/server.js +779 -0
  422. package/packages/mcp/src/tools/arguments.js +482 -0
  423. package/packages/mcp/src/tools/context.js +21 -0
  424. package/packages/mcp/src/tools/definitions.js +343 -0
  425. package/packages/mcp/src/tools/document-sessions.js +262 -0
  426. package/packages/mcp/src/tools/extract.js +57 -0
  427. package/packages/mcp/src/tools/grep.js +39 -0
  428. package/packages/mcp/src/tools/library.js +716 -0
  429. package/packages/mcp/src/tools/other-store.js +159 -0
  430. package/packages/mcp/src/tools/results.js +32 -0
  431. package/packages/mcp/src/tools/session-entries.js +49 -0
  432. package/packages/mcp/src/tools/sessions.js +730 -0
  433. package/packages/mcp/src/tools/text.js +47 -0
  434. package/packages/mcp/src/tools.js +125 -0
  435. package/packages/mcp/src/whisker.js +132 -0
  436. package/packages/pi-extension/LICENSE +21 -0
  437. package/packages/pi-extension/README.md +29 -0
  438. package/packages/pi-extension/README.zh-CN.md +29 -0
  439. package/packages/pi-extension/agents/review.md +33 -0
  440. package/packages/pi-extension/package.json +20 -0
  441. package/packages/pi-extension/review-perspectives.md +14 -0
  442. package/packages/pi-extension/skills/task-state/SKILL.md +93 -0
  443. package/packages/pi-extension/src/extension.ts +857 -0
  444. package/packages/pi-extension/src/index.ts +6 -0
  445. package/packages/service/README.md +22 -0
  446. package/packages/service/README.zh-CN.md +22 -0
  447. package/packages/service/package.json +13 -0
  448. package/packages/service/src/errors.js +38 -0
  449. package/packages/service/src/files.js +289 -0
  450. package/packages/service/src/index.js +16 -0
  451. package/packages/service/src/launch-agent.js +387 -0
  452. package/packages/service/src/on-demand.js +93 -0
  453. package/packages/service/src/runtime.js +477 -0
  454. package/packages/service/src/types.js +119 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "agent-whisker",
3
+ "description": "The agent-whisker plugin for Claude Code and Codex",
4
+ "owner": { "name": "agent-whisker" },
5
+ "plugins": [
6
+ {
7
+ "name": "agent-whisker",
8
+ "source": "./packages/claude-plugin",
9
+ "description": "Task goal, expectations and evidence injected into the session and every subagent, written only through taskstate; a pointer line on the sessions recorded in this directory"
10
+ }
11
+ ]
12
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tomatamatom1
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,165 @@
1
- # Temporary Holding Version
1
+ # agent-whisker
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ English · [简体中文](README.zh-CN.md)
4
+
5
+ `agent-whisker` is a local document library and session store for coding agents. It indexes Markdown, plain text, PDFs, DOCX files, and local agent session transcripts on your machine. Agents and operators query passages, physical PDF pages, and conversation turns through the CLI or a read-only stdio MCP server, with optional read-time passage reranking and page-level field extraction.
6
+
7
+ ## Quick start
8
+
9
+ On Linux, follow the [manual setup](packages/cli/README.md#linux) instead of running the installer commands below.
10
+
11
+ From a source checkout (Node runs TypeScript directly; keep the checkout in place because the installed launcher points to it):
12
+
13
+ ```sh
14
+ git clone https://github.com/Tomatamatom1/agent-whisker.git
15
+ cd agent-whisker
16
+ pnpm install
17
+ node packages/cli/src/main.ts install --dry-run
18
+ node packages/cli/src/main.ts install --apply all
19
+ ```
20
+
21
+ From npm (or from a [locally packed tarball](packages/cli/README.md#the-npm-package) with `npm install -g <tarball>`):
22
+
23
+ ```sh
24
+ npm install -g agent-whisker
25
+ agent-whisker install --dry-run
26
+ agent-whisker install --apply all
27
+ agent-whisker doctor
28
+ ```
29
+
30
+ The current release is `0.2.0`, published to npm as `agent-whisker`. Runtime requires Node `>=24.22.1 <25` or `>=26.13.0 <27` (with `~/.local/bin` on `PATH` on macOS). Markdown and plain text import directly. PDF text import requires Poppler's `pdftotext` (`qpdf` adds PDF bookmarks and page slicing), and DOCX import requires Pandoc `>=2.15`.
31
+
32
+ CI runs checks on macOS, Ubuntu, and Windows. `agent-whisker install` configures launchers, background sync, and agent programs on macOS and Windows; on Linux, the CLI, stdio MCP server, and foreground `service run` work directly. See [Windows setup](packages/cli/README.md#windows).
33
+
34
+ ## Use cases
35
+
36
+ - **Document retrieval.** Import runbooks, papers, and standards with `agent-whisker ingest <path>`, rank passages with `search`, scan literal strings with `grep -F`, and open matched sections or PDF pages with `read`.
37
+ - **Agent session history.** Sync and search transcripts across local coding agents (`sessions sync`, `sessions search`), or inspect surrounding turns with `sessions read`.
38
+ - **Read-only MCP retrieval.** Expose seven stdio tools (`library_search`, `library_read`, `library_catalog`, `library_grep`, `session_search`, `session_read`, `session_grep`) to coding agents, plus `library_extract` when an extraction endpoint is configured.
39
+ - **Task verification.** Record user expectations, observed command runs (`taskstate run --for <E> -- <command>`), and completion claims separately with `taskstate` so a reviewer on another model can verify the runs after merge.
40
+
41
+ ## Properties
42
+
43
+ - **Append-only truth, rebuildable indexes.** Under `~/.agent-whisker`, `truth/` holds the append-only journal, versioned document text, and retained sessions. The SQLite FTS5 indexes in `derived/` can be rebuilt with `agent-whisker index repair`.
44
+ - **Local lexical search.** Retrieval uses Node's built-in `node:sqlite` and `jieba-wasm` for CJK word segmentation. The npm tarball bundles `jieba-wasm` and `yaml` for offline installation.
45
+ - **Session retention and redaction.** Synced session entries remain readable after a host program deletes its own log, and known secret-token patterns are redacted on retention.
46
+ - **Versioned sources.** Re-ingesting an edited file or passing `--doc <id>` writes a new version of that document, and `read --version <hash>` pins the exact version returned by a search.
47
+ - **Read-time passage filtering.** Setting `AGENT_WHISKER_RERANK_URL` and `AGENT_WHISKER_RERANK_MODEL` (append `#choice` for local `llama-server` group comparison) scores `open`-tier library candidates at read time; on `confident: false`, `hits` is `[]` and weak candidates appear only as locators in `more`.
48
+ - **On-demand field extraction.** Setting `AGENT_WHISKER_EXTRACT_URL` enables `agent-whisker extract` and MCP `library_extract` over 1–4 selected PDF pages or images (`open` documents for remote endpoints; `personal` allowed on loopback).
49
+
50
+ The [architecture guide](docs/architecture.md) states where each of these mechanisms stops.
51
+
52
+ ## How it works
53
+
54
+ [![A coding agent queries the read-only MCP server over stdio and runs hooks against agent-whisker and standalone taskstate. agent-whisker appends to truth/ and maintains FTS5 indexes in derived/, while taskstate writes its own ledger outside the store.](docs/images/how-it-works.svg)](docs/architecture.md)
55
+
56
+ Runtime data flow across a coding agent, `~/.agent-whisker`, optional read-time HTTP endpoints, and standalone `taskstate`. See the [architecture guide](docs/architecture.md).
57
+
58
+ ## Supported agents
59
+
60
+ `agent-whisker install --apply all` sets up every installed program listed in `AGENT_WHISKER_AGENTS`, registering the MCP server, session collection, context pointers, and `taskstate` integration (any other MCP client can run `agent-whisker mcp` over stdio):
61
+
62
+ | Program | Install steps | Hooks, skills, and subagents |
63
+ | --- | --- | --- |
64
+ | Claude Code | `mcp-claude`, `claude-plugin` | `SessionStart` and `UserPromptSubmit` pointers, `taskstate` hooks/skill, `review` and `recall` subagents ([guide](packages/claude-plugin/README.md)) |
65
+ | Codex | `mcp-codex`, `codex-plugin` | `SessionStart` and `UserPromptSubmit` pointers and `taskstate` hooks once trusted via `/hooks` ([guide](packages/claude-plugin/README.md)) |
66
+ | `pi` | `mcp-pi`, `pi-package` | System-prompt guidance and start pointer, `/agent-whisker`, `agent_whisker_wait`, `taskstate` hooks/skill ([guide](packages/pi-extension/README.md)) |
67
+ | Antigravity | `mcp-antigravity`, `antigravity-plugin` | Always-on rule, `SessionStart` and `PreInvocation` hooks, `taskstate` skill, `review` subagent ([guide](packages/antigravity-plugin/README.md)) |
68
+ | DeepSeek Harness | `mcp-dsh`, `dsh-plugin`, `dsh-skill` | Root-session start pointer and `taskstate` context/skill ([guide](packages/dsh-plugin/README.md)) |
69
+
70
+ Optional host integrations route MCP entries through Magpie (`install --apply mcp --via magpie`) and connect Herdr (`install --apply herdr-plugin,herdr-mod`; see [Herdr guide](packages/herdr-plugin/README.md)).
71
+
72
+ ## Task verification
73
+
74
+ `taskstate` is an append-only task ledger under `~/.local/state/agent-whisker-task` injected into main sessions and subagents by the host hooks. It keeps four record types separate: user outcomes (`expect`), observed command runs (`run`, capturing exit code, git commit, dirty-tree status, and optional `--target` file hashes), agent handoffs (`claim`), and post-merge audit verdicts (`conclude` and `gap`).
75
+
76
+ ```sh
77
+ taskstate open "Fix upload retry cap" # opens T1 and attaches this session
78
+ taskstate expect "Cap upload retries at 3" --core # records E1 before implementation
79
+ taskstate run --for E1 --expect-fail -- pnpm test # records failing baseline check (red)
80
+ # ... implement the fix ...
81
+ taskstate run --for E1 -- pnpm test # records passing check on clean commit (green)
82
+ taskstate claim "Retry cap enforced; see run log" --for E1
83
+ taskstate facts # summarizes runs and verification status
84
+ ```
85
+
86
+ Use `taskstate hold` to carry an active task across directories or `taskstate park` to set an umbrella task aside. After changes merge, invoke the `review` subagent (preferably on a different model than the implementer) to inspect recorded logs and diffs before running `taskstate close <T>`. See [Task state and review](packages/claude-plugin/README.md).
87
+
88
+ ## Examples
89
+
90
+ Import documents, search passages, and trace decisions across agent sessions:
91
+
92
+ ```sh
93
+ agent-whisker ingest ./runbooks
94
+ agent-whisker search "upload retry budget"
95
+ agent-whisker grep -F "UPLOAD_RETRY_LIMIT"
96
+ agent-whisker sessions sync
97
+ agent-whisker sessions search "upload retry budget" --project --group session
98
+ ```
99
+
100
+ Browse tasks, the library, sessions, agent setup and `doctor` in one terminal screen (an interactive terminal is required; every write asks first and shows the exact command it runs, see [Terminal interface](packages/cli/README.md#terminal-interface)):
101
+
102
+ ```sh
103
+ agent-whisker tui
104
+ agent-whisker tui --page sessions
105
+ ```
106
+
107
+ Query the read-only MCP server (`tools/call` payloads):
108
+
109
+ ```json
110
+ {"name":"library_search","arguments":{"queries":["upload retry budget","UPLOAD_RETRY_LIMIT"]}}
111
+ ```
112
+
113
+ ```json
114
+ {"name":"session_search","arguments":{"queries":["upload retry budget"],"project":true}}
115
+ ```
116
+
117
+ Optional read-time filtering (`System One: Decide`) and 1–4 page extraction (`Clairic-Flash`):
118
+
119
+ ```sh
120
+ export AGENT_WHISKER_RERANK_URL='http://127.0.0.1:8788/v1/systemone#choice'
121
+ export AGENT_WHISKER_RERANK_MODEL='vllm-d3-lite'
122
+ agent-whisker search "upload retry budget"
123
+
124
+ export AGENT_WHISKER_EXTRACT_URL='http://127.0.0.1:18093/v1/systemone'
125
+ agent-whisker extract "$DOC_ID" --pages 1,2 --fields '{"invoice_total":{"type":"number"}}' --source-only
126
+ ```
127
+
128
+ ## Evaluation and boundaries
129
+
130
+ Retrieval benchmarks ran on Apple Silicon with Node `26.13.1` and SQLite FTS5 (tokenizer revision `t3`), scoring retrieved evidence directly. On LongMemEval-S (500 questions, ~50 sessions per isolated store, 470 questions with ground-truth evidence), `strict@5` requires *all* evidence sessions in the top five results and `hit@5` requires at least one.
131
+
132
+ | Benchmark | Read path | Result |
133
+ | --- | --- | --- |
134
+ | LongMemEval-S | Lexical session search (`store.searchSessions`) | 82.3% `strict@5` (387/470); 95.3% `hit@5`; p50 ≈6–11 ms |
135
+ | ADEBENCH `sets/quick` | Lexical only (`rerank=off`) | 38.7 / 55 Core |
136
+ | ADEBENCH `sets/quick` | Lexical + System One: Decide on read | 42.1 / 55 Core |
137
+ | ADEBENCH `sets/public2` (36 questions) | Lexical + System One: Decide on read | 43.5 / 55 Core |
138
+
139
+ On ADEBENCH `v0.2.17`, the external adapter imported fixtures via the CLI and queried `agent-whisker mcp` over stdio (9,234 bytes for the seven default tools in `tools/list`; median lookup 5 ms on sessions and 16 ms on documents).
140
+
141
+ Scope boundaries: MCP is read-only (imports and maintenance run through the CLI or background sync service); importing a separate file with a newer value keeps both documents searchable as written (ADEBENCH `updates`: 3.3/10); PDF import reads existing text layers up to 256 MiB per PDF (64 MiB for non-PDF sources and extracted text) without automatic OCR.
142
+
143
+ ## Packages
144
+
145
+ Nine workspace packages live under `packages/`:
146
+
147
+ - **Runtime DAG (`cli` → `{mcp, service, core}`, `{mcp, service}` → `core`).** `core` owns storage, FTS5 indexing, `jieba-wasm` tokenization, reranking, and page extraction; `mcp` serves the read-only stdio server; `service` runs background indexing and session sync; `cli` provides the `agent-whisker` command and installer.
148
+ - **Host plugins (`claude-plugin`, `pi-extension`, `antigravity-plugin`, `dsh-plugin`, `herdr-plugin`).** None depends on a workspace package; each invokes `agent-whisker` and standalone `taskstate` as subprocesses. See the [package topology](docs/architecture.md#package-topology).
149
+
150
+ ## By role
151
+
152
+ - Connecting agent programs: [CLI guide](packages/cli/README.md), then [Agent programs](packages/cli/README.md#agent-programs)
153
+ - Importing folders and excluding paths: [Ingest](packages/cli/README.md#ingest), then [Core guide](packages/core/README.md)
154
+ - Registering an MCP client manually: [MCP guide](packages/mcp/README.md#manual-registration)
155
+ - Recording checks for post-merge review: [Task state and review](packages/claude-plugin/README.md)
156
+ - Operating and repairing the store: [Architecture](docs/architecture.md), then [Background service](packages/service/README.md)
157
+ - Contributing changes: [Documentation map](docs/README.md), [Roadmap](docs/roadmap.md), and [AGENTS.md](AGENTS.md)
158
+
159
+ ## Releases
160
+
161
+ [`main`](https://github.com/Tomatamatom1/agent-whisker/commits/main/) is the development branch. `node scripts/package.ts pack <directory>` builds a self-contained npm tarball from tracked files, and `v*.*.*` release tags publish to npm through GitHub Actions. The first release, `0.1.0` (tag `v0.1.0`), is on npm as `agent-whisker`.
162
+
163
+ ## License
164
+
165
+ `agent-whisker` is licensed under the [MIT License](LICENSE). The npm package bundles `jieba-wasm` (MIT) and `yaml` (ISC) and retains their upstream license notices.
@@ -0,0 +1,165 @@
1
+ # agent-whisker
2
+
3
+ [English](README.md) · 简体中文
4
+
5
+ `agent-whisker` 是面向编码 agent 的本地文档库与会话存储。它在本机索引 Markdown、纯文本、PDF、DOCX 文件以及本地 agent 的历史会话记录。用户与 agent 可通过 CLI 或只读 stdio MCP 服务检索原文段落、物理 PDF 页与对话轮次,并可按需启用读取时段落重排与页面字段提取。
6
+
7
+ ## 快速上手
8
+
9
+ 在 Linux 上请按[手动配置指南](packages/cli/README.zh-CN.md#linux)操作,无需运行下方的安装器命令。
10
+
11
+ 从源码检出安装(Node 直接运行 TypeScript;启动器指向该检出目录,请保留仓库位置):
12
+
13
+ ```sh
14
+ git clone https://github.com/Tomatamatom1/agent-whisker.git
15
+ cd agent-whisker
16
+ pnpm install
17
+ node packages/cli/src/main.ts install --dry-run
18
+ node packages/cli/src/main.ts install --apply all
19
+ ```
20
+
21
+ 从 npm 安装(或按 [npm 打包说明](packages/cli/README.zh-CN.md#npm-包) 使用 `npm install -g <tarball>` 安装本地构建包):
22
+
23
+ ```sh
24
+ npm install -g agent-whisker
25
+ agent-whisker install --dry-run
26
+ agent-whisker install --apply all
27
+ agent-whisker doctor
28
+ ```
29
+
30
+ 当前版本为 `0.2.0`,已以 `agent-whisker` 为包名发布到 npm。运行需要 Node `>=24.22.1 <25` 或 `>=26.13.0 <27`(macOS 上需将 `~/.local/bin` 加入 `PATH`)。Markdown 和纯文本直接导入;导入 PDF 文本需要 Poppler 的 `pdftotext`(装有 `qpdf` 时同时支持书签读取与页面切分),导入 DOCX 需要 Pandoc `>=2.15`。
31
+
32
+ CI 在 macOS、Ubuntu 与 Windows 上运行检查。`agent-whisker install` 在 macOS 和 Windows 上配置启动器、后台同步及已安装的 agent 程序;在 Linux 上可直接使用 CLI、stdio MCP 服务与前台 `service run`。详见 [Windows 安装指南](packages/cli/README.zh-CN.md#windows)。
33
+
34
+ ## 适用场景
35
+
36
+ - **本地文档检索。** 用 `agent-whisker ingest <path>` 导入运维手册、论文与规范,用 `search` 排列相关段落,用 `grep -F` 查找字面匹配,并用 `read` 打开命中的章节或物理 PDF 页。
37
+ - **Agent 会话历史。** 同步并联合检索本机各编码 agent 的历史会话(`sessions sync`、`sessions search`),或用 `sessions read` 查看前后多轮对话。
38
+ - **只读 MCP 检索。** 向编码 agent 提供七个 stdio 工具(`library_search`、`library_read`、`library_catalog`、`library_grep`、`session_search`、`session_read`、`session_grep`);配置提取端点后额外开放 `library_extract`。
39
+ - **任务记录核验。** 通过 `taskstate` 将用户预期、实际命令运行(`taskstate run --for <E> -- <command>`)与完成声明分开记录,便于合并后由另一模型核对运行结果。
40
+
41
+ ## 系统特性
42
+
43
+ - **只追加事实源与可重建索引。** 在 `~/.agent-whisker` 下,`truth/` 保存只追加事件日志、版本化文档正文和留存会话;`derived/` 下的 SQLite FTS5 索引可随时通过 `agent-whisker index repair` 重建。
44
+ - **本机词法检索。** 全文检索使用 Node 内置的 `node:sqlite` 与负责中日韩分词的 `jieba-wasm`。npm 包内置 `jieba-wasm` 和 `yaml`,支持离线安装。
45
+ - **会话留存与敏感信息脱敏。** 会话条目同步后,即便宿主程序清理自身日志仍可读取;符合已知密钥或令牌格式的内容会在留存时脱敏。
46
+ - **版本化原文留存。** 重新导入修改后的文件或传入 `--doc <id>` 会写入该文档的新版本,`read --version <hash>` 可固定读取搜索命中时的版本。
47
+ - **读取时段落筛选。** 设置 `AGENT_WHISKER_RERANK_URL` 与 `AGENT_WHISKER_RERANK_MODEL`(本地 `llama-server` 分组比较可在地址末尾加 `#choice`)可在读取时为 `open` 级候选打分;判定 `confident: false` 时,`hits` 为 `[]`,弱候选仅作为定位信息保留在 `more` 中。
48
+ - **按需页面提取。** 设置 `AGENT_WHISKER_EXTRACT_URL` 后,可通过 `agent-whisker extract` 与 MCP `library_extract` 从 1–4 个指定 PDF 页或图片提取带类型字段(远程端点仅接收 `open` 文档,本机回环端点可读取 `personal` 文档)。
49
+
50
+ [架构说明](docs/architecture.zh-CN.md)写明了上述每项机制的作用边界。
51
+
52
+ ## 工作原理
53
+
54
+ [![编码 agent 通过 stdio 查询只读 MCP 服务并向 agent-whisker 与独立的 taskstate 触发钩子。agent-whisker 向 truth/ 追加事实并在 derived/ 维护 FTS5 索引,taskstate 则在存储之外写入独立台账。](docs/images/how-it-works.svg)](docs/architecture.zh-CN.md)
55
+
56
+ 编码 agent、`~/.agent-whisker`、可选读取时 HTTP 端点与独立 `taskstate` 之间的运行期数据流向。详见[架构说明](docs/architecture.zh-CN.md)。
57
+
58
+ ## 支持的 agent 程序
59
+
60
+ `agent-whisker install --apply all` 会为 `AGENT_WHISKER_AGENTS` 中已安装的每款程序注册 MCP 服务、会话采集、上下文指引及 `taskstate` 集成(其他标准 MCP 客户端也可通过 stdio 直接运行 `agent-whisker mcp`):
61
+
62
+ | 程序 | 安装步骤 | 钩子、技能与子代理 |
63
+ | --- | --- | --- |
64
+ | Claude Code | `mcp-claude`、`claude-plugin` | `SessionStart` 与 `UserPromptSubmit` 指引、`taskstate` 钩子与技能、`review` 与 `recall` 子代理([指南](packages/claude-plugin/README.zh-CN.md)) |
65
+ | Codex | `mcp-codex`、`codex-plugin` | 在 `/hooks` 中信任后启用 `SessionStart` 与 `UserPromptSubmit` 指引及 `taskstate` 钩子([指南](packages/claude-plugin/README.zh-CN.md)) |
66
+ | `pi` | `mcp-pi`、`pi-package` | 系统提示与开场指引、`/agent-whisker`、`agent_whisker_wait`、`taskstate` 钩子与技能([指南](packages/pi-extension/README.zh-CN.md)) |
67
+ | Antigravity | `mcp-antigravity`、`antigravity-plugin` | 常驻规则、`SessionStart` 与 `PreInvocation` 钩子、`taskstate` 技能、`review` 子代理([指南](packages/antigravity-plugin/README.zh-CN.md)) |
68
+ | DeepSeek Harness | `mcp-dsh`、`dsh-plugin`、`dsh-skill` | 根会话开场指引、`taskstate` 上下文与技能([指南](packages/dsh-plugin/README.zh-CN.md)) |
69
+
70
+ 此外还可通过 `install --apply mcp --via magpie` 经由 Magpie 分发 MCP 条目,或用 `install --apply herdr-plugin,herdr-mod` 接入 Herdr(见 [Herdr 指南](packages/herdr-plugin/README.zh-CN.md))。
71
+
72
+ ## 任务核验
73
+
74
+ `taskstate` 是保存在 `~/.local/state/agent-whisker-task` 下的只追加任务台账,由宿主钩子自动注入主会话与子代理上下文。它将四类记录严格分开:用户预期(`expect`)、实际观测到的命令运行(`run`,自动记录退出码、Git 提交、工作区干净状态及可选的 `--target` 文件哈希)、agent 交接声明(`claim`),以及合并后的评审结论(`conclude` 与 `gap`)。
75
+
76
+ ```sh
77
+ taskstate open "Fix upload retry cap" # 开启任务 T1 并挂载当前会话
78
+ taskstate expect "Cap upload retries at 3" --core # 实现前记录核心预期 E1
79
+ taskstate run --for E1 --expect-fail -- pnpm test # 记录修改前的失败基线(红灯)
80
+ # ... 完成代码修改 ...
81
+ taskstate run --for E1 -- pnpm test # 在干净提交上记录通过结果(绿灯)
82
+ taskstate claim "Retry cap enforced; see run log" --for E1
83
+ taskstate facts # 汇总运行记录与核验状态
84
+ ```
85
+
86
+ 跨目录续做任务可用 `taskstate hold`,暂存伞状任务可用 `taskstate park`。改动合并后,可启动 `review` 子代理(建议使用不同于实现者的模型)对照运行日志与代码差异逐项给出评审结论,确认完成后运行 `taskstate close <T>`。详见 [任务状态与评审](packages/claude-plugin/README.zh-CN.md)。
87
+
88
+ ## 使用示例
89
+
90
+ 导入文档、检索段落,并跨会话追溯过往决定:
91
+
92
+ ```sh
93
+ agent-whisker ingest ./runbooks
94
+ agent-whisker search "upload retry budget"
95
+ agent-whisker grep -F "UPLOAD_RETRY_LIMIT"
96
+ agent-whisker sessions sync
97
+ agent-whisker sessions search "upload retry budget" --project --group session
98
+ ```
99
+
100
+ 在一个终端界面里浏览任务、文档库、会话、agent 接入状态和 `doctor`(需要交互式终端;每个写操作都先询问,并显示实际执行的命令,见[终端界面](packages/cli/README.zh-CN.md#终端界面)):
101
+
102
+ ```sh
103
+ agent-whisker tui
104
+ agent-whisker tui --page sessions
105
+ ```
106
+
107
+ 调用只读 MCP 服务(`tools/call` 请求参数):
108
+
109
+ ```json
110
+ {"name":"library_search","arguments":{"queries":["upload retry budget","UPLOAD_RETRY_LIMIT"]}}
111
+ ```
112
+
113
+ ```json
114
+ {"name":"session_search","arguments":{"queries":["upload retry budget"],"project":true}}
115
+ ```
116
+
117
+ 可选的读取时段落筛选(`System One: Decide`)与 1–4 页字段提取(`Clairic-Flash`):
118
+
119
+ ```sh
120
+ export AGENT_WHISKER_RERANK_URL='http://127.0.0.1:8788/v1/systemone#choice'
121
+ export AGENT_WHISKER_RERANK_MODEL='vllm-d3-lite'
122
+ agent-whisker search "upload retry budget"
123
+
124
+ export AGENT_WHISKER_EXTRACT_URL='http://127.0.0.1:18093/v1/systemone'
125
+ agent-whisker extract "$DOC_ID" --pages 1,2 --fields '{"invoice_total":{"type":"number"}}' --source-only
126
+ ```
127
+
128
+ ## 基准评测与项目边界
129
+
130
+ 检索基准在 Apple Silicon、Node `26.13.1` 与 SQLite FTS5(分词器版本 `t3`)上运行,直接评测检出的原始证据。在 LongMemEval-S(共 500 题,每题约 50 个会话的独立存储,其中 470 题含标准证据会话)中,`strict@5` 要求前五条结果包含该题的**全部**证据会话,`hit@5` 要求至少命中一条。
131
+
132
+ | 基准 | 读取方式 | 结果 |
133
+ | --- | --- | --- |
134
+ | LongMemEval-S | 词法会话检索(`store.searchSessions`) | `strict@5` 为 82.3%(387/470);`hit@5` 为 95.3%;p50 约 6–11 ms |
135
+ | ADEBENCH `sets/quick` | 仅词法检索(`rerank=off`) | 核心分 38.7 / 55 |
136
+ | ADEBENCH `sets/quick` | 词法检索 + 读取时 System One: Decide | 核心分 42.1 / 55 |
137
+ | ADEBENCH `sets/public2`(36 题) | 词法检索 + 读取时 System One: Decide | 核心分 43.5 / 55 |
138
+
139
+ 在 ADEBENCH `v0.2.17` 中,外部适配器经 CLI 导入数据,通过 stdio 查询 `agent-whisker mcp`(`tools/list` 默认七个工具定义共 9,234 字节;会话检索中位耗时 5 ms,文档为 16 ms)。
140
+
141
+ 范围边界:MCP 仅提供只读检索(导入与维护通过 CLI 或后台同步服务执行);导入另一份写有新数值的独立文件时,两份文档均按原貌保留在检索结果中(ADEBENCH `updates`:3.3/10);PDF 导入读取已有文本层,单份原始 PDF 上限 256 MiB(非 PDF 源文件与提取文本上限 64 MiB),不内置自动 OCR。
142
+
143
+ ## 包结构与拓扑
144
+
145
+ `packages/` 下包含九个工作区子包:
146
+
147
+ - **运行时依赖图(`cli` → `{mcp, service, core}`,`{mcp, service}` → `core`)。** `core` 负责存储、FTS5 索引、`jieba-wasm` 分词、段落重排与页面提取;`mcp` 提供只读 stdio 服务;`service` 负责后台索引与会话同步;`cli` 提供 `agent-whisker` 命令与安装器。
148
+ - **宿主扩展包(`claude-plugin`、`pi-extension`、`antigravity-plugin`、`dsh-plugin`、`herdr-plugin`)。** 五个扩展包均不依赖任何工作区子包,只通过子进程调用 `agent-whisker` 与独立的 `taskstate`。完整图示见[包拓扑](docs/architecture.zh-CN.md#包拓扑)。
149
+
150
+ ## 按角色查阅
151
+
152
+ - 接入本机 agent 程序:[CLI 指南](packages/cli/README.zh-CN.md),以及 [各 agent 程序](packages/cli/README.zh-CN.md#各-agent-程序)
153
+ - 导入目录与排除路径:[导入](packages/cli/README.zh-CN.md#导入),以及 [核心包指南](packages/core/README.zh-CN.md)
154
+ - 手动注册 MCP 客户端:[MCP 指南](packages/mcp/README.zh-CN.md#手动注册)
155
+ - 为合并后评审记录检查:[任务状态与评审](packages/claude-plugin/README.zh-CN.md)
156
+ - 运维与修复本地存储:[架构说明](docs/architecture.zh-CN.md),以及 [后台服务](packages/service/README.zh-CN.md)
157
+ - 参与代码与文档贡献:[文档索引](docs/README.zh-CN.md)、[路线图](docs/roadmap.zh-CN.md) 与 [AGENTS.md](AGENTS.md)
158
+
159
+ ## 发布说明
160
+
161
+ [`main`](https://github.com/Tomatamatom1/agent-whisker/commits/main/) 是日常开发分支。运行 `node scripts/package.ts pack <directory>` 可从受管文件构建自包含的 npm 包,推送 `v*.*.*` 标签后由 GitHub Actions 发布至 npm。首个版本 `0.1.0`(标签 `v0.1.0`)已以 `agent-whisker` 为包名发布在 npm 上。
162
+
163
+ ## 许可证
164
+
165
+ `agent-whisker` 采用 [MIT 许可证](LICENSE)。npm 包内联捆绑了 `jieba-wasm`(MIT)与 `yaml`(ISC),并保留各自的上游许可证声明。
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2018 fengkx <liangkx8237@gmail.com>
2
+
3
+ Permission is hereby granted, free of charge, to any
4
+ person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the
6
+ Software without restriction, including without
7
+ limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software
10
+ is furnished to do so, subject to the following
11
+ conditions:
12
+
13
+ The above copyright notice and this permission notice
14
+ shall be included in all copies or substantial portions
15
+ of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
+ DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,134 @@
1
+ # jieba-wasm
2
+
3
+ > [jieba-rs](https://github.com/messense/jieba-rs) 的 wasm binding
4
+
5
+ _编译成 WASM 摆脱编译 Node Addon 的烦恼_
6
+
7
+ # Usage
8
+ ## Node.js
9
+ ```js
10
+ const {
11
+ cut,
12
+ cut_all,
13
+ cut_for_search,
14
+ tokenize,
15
+ add_word,
16
+ } = require("jieba-wasm");
17
+ cut("中华人民共和国武汉市长江大桥", true);
18
+ // [ '中华人民共和国', '武汉市', '长江大桥' ]
19
+ cut_all("中华人民共和国武汉市长江大桥", true);
20
+ /*
21
+ [
22
+ '中', '中华',
23
+ '中华人民', '中华人民共和国',
24
+ '华', '华人',
25
+ '人', '人民',
26
+ '人民共和国', '民',
27
+ '共', '共和',
28
+ '共和国', '和',
29
+ '国', '武',
30
+ '武汉', '武汉市',
31
+ '汉', '市',
32
+ '市长', '长',
33
+ '长江', '长江大桥',
34
+ '江', '大',
35
+ '大桥', '桥'
36
+ ]
37
+ */
38
+ cut_for_search("中华人民共和国武汉市长江大桥", true);
39
+ /*
40
+ [
41
+ '中华', '华人',
42
+ '人民', '共和',
43
+ '共和国', '中华人民共和国',
44
+ '武汉', '武汉市',
45
+ '长江', '大桥',
46
+ '长江大桥'
47
+ ]
48
+ */
49
+ tokenize("中华人民共和国武汉市长江大桥", "default", true);
50
+ /*
51
+ [
52
+ { word: '中华人民共和国', start: 0, end: 7 },
53
+ { word: '武汉市', start: 7, end: 10 },
54
+ { word: '长江大桥', start: 10, end: 14 }
55
+ ]
56
+ */
57
+ tokenize("中华人民共和国武汉市长江大桥", "search", true);
58
+ /*
59
+ [
60
+ { word: '中华', start: 0, end: 2 },
61
+ { word: '华人', start: 1, end: 3 },
62
+ { word: '人民', start: 2, end: 4 },
63
+ { word: '共和', start: 4, end: 6 },
64
+ { word: '共和国', start: 4, end: 7 },
65
+ { word: '中华人民共和国', start: 0, end: 7 },
66
+ { word: '武汉', start: 7, end: 9 },
67
+ { word: '武汉市', start: 7, end: 10 },
68
+ { word: '长江', start: 10, end: 12 },
69
+ { word: '大桥', start: 12, end: 14 },
70
+ { word: '长江大桥', start: 10, end: 14 }
71
+ ]
72
+ */
73
+
74
+ cut("桥大江长市汉武的省北湖国和共民人华中");
75
+ /*
76
+ [
77
+ '桥', '大江', '长',
78
+ '市', '汉', '武',
79
+ '的', '省', '北湖',
80
+ '国', '和', '共',
81
+ '民', '人', '华中'
82
+ ]
83
+ */
84
+ ["桥大江长", "市汉武", "省北湖", "国和共民人华中"].map((word) => {
85
+ add_word(word);
86
+ });
87
+ cut("桥大江长市汉武的省北湖国和共民人华中");
88
+ // ["桥大江长", "市汉武", "的", "省北湖", "国和共民人华中"];
89
+
90
+ with_dict("自动借书机 1 n"); // 导入自定义字典,词条格式:词语 词频 词性(可选),以换行符分隔
91
+ cut("你好我是一个自动借书机");
92
+ // ["你好", "我", "是", "一个", "自动借书机"];
93
+ ```
94
+
95
+ ## Browser
96
+ ```ts
97
+ import init, { cut } from 'jieba-wasm';
98
+
99
+ // 重要:使用前必须初始化
100
+ await init();
101
+
102
+ cut("中华人民共和国武汉市长江大桥", true);
103
+ // [ '中华人民共和国', '武汉市', '长江大桥' ]
104
+ ```
105
+
106
+ # 示例 Demo
107
+
108
+ ## 安装依赖
109
+
110
+ 安装 wasm-bindgen 和 wasm-opt
111
+
112
+ ```bash
113
+ cargo install wasm-bindgen-cli --locked
114
+ cargo install wasm-opt --locked
115
+ ```
116
+
117
+ ## 前期准备
118
+
119
+ 首先保证存在 rust 环境,然后运行以下命令
120
+ ```bash
121
+ npm run build:cargo
122
+ npm run build
123
+ ```
124
+
125
+ ## 运行浏览器端示例
126
+ ```bash
127
+ cd demo/web
128
+ npm install
129
+ npm run dev
130
+ ```
131
+
132
+ # Piror Art
133
+
134
+ https://github.com/messense/jieba-rs
@@ -0,0 +1,129 @@
1
+ {
2
+ "name": "jieba-wasm",
3
+ "version": "2.4.0",
4
+ "description": "WASM binding to jieba-rs",
5
+ "main": "./pkg/nodejs/jieba_rs_wasm.js",
6
+ "types": "./pkg/nodejs/jieba_rs_wasm.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "node": {
10
+ "types": "./pkg/nodejs/jieba_rs_wasm.d.ts",
11
+ "default": "./pkg/nodejs/jieba_rs_wasm.js"
12
+ },
13
+ "deno": {
14
+ "types": "./pkg/deno/jieba_rs_wasm.d.ts",
15
+ "default": "./pkg/deno/jieba_rs_wasm.js"
16
+ },
17
+ "browser": {
18
+ "types": "./pkg/web/jieba_rs_wasm.d.ts",
19
+ "default": "./pkg/web/jieba_rs_wasm.js"
20
+ },
21
+ "import": {
22
+ "types": "./pkg/web/jieba_rs_wasm.d.ts",
23
+ "default": "./pkg/web/jieba_rs_wasm.js"
24
+ },
25
+ "require": {
26
+ "types": "./pkg/nodejs/jieba_rs_wasm.d.ts",
27
+ "default": "./pkg/nodejs/jieba_rs_wasm.js"
28
+ }
29
+ },
30
+ "./web": {
31
+ "types": "./pkg/web/jieba_rs_wasm.d.ts",
32
+ "default": "./pkg/web/jieba_rs_wasm.js"
33
+ },
34
+ "./node": {
35
+ "types": "./pkg/nodejs/jieba_rs_wasm.d.ts",
36
+ "default": "./pkg/nodejs/jieba_rs_wasm.js"
37
+ },
38
+ "./deno": {
39
+ "types": "./pkg/deno/jieba_rs_wasm.d.ts",
40
+ "default": "./pkg/deno/jieba_rs_wasm.js"
41
+ }
42
+ },
43
+ "directories": {
44
+ "test": "tests"
45
+ },
46
+ "scripts": {
47
+ "build": "wireit",
48
+ "build:cargo": "wireit",
49
+ "build:bundler": "wireit",
50
+ "build:nodejs": "wireit",
51
+ "build:deno": "wireit",
52
+ "build:web": "wireit",
53
+ "build:opt": "wireit",
54
+ "test": "echo \"Error: no test specified\" && exit 1"
55
+ },
56
+ "wireit": {
57
+ "build:cargo": {
58
+ "command": "cargo build --release --target wasm32-unknown-unknown"
59
+ },
60
+ "build:bundler": {
61
+ "command": "wasm-bindgen target/wasm32-unknown-unknown/release/jieba_rs_wasm.wasm --out-dir ./pkg/bundler --target bundler",
62
+ "dependencies": [
63
+ "build:cargo"
64
+ ]
65
+ },
66
+ "build:nodejs": {
67
+ "command": "wasm-bindgen target/wasm32-unknown-unknown/release/jieba_rs_wasm.wasm --out-dir ./pkg/nodejs --target nodejs",
68
+ "dependencies": [
69
+ "build:cargo"
70
+ ]
71
+ },
72
+ "build:deno": {
73
+ "command": "wasm-bindgen target/wasm32-unknown-unknown/release/jieba_rs_wasm.wasm --out-dir ./pkg/deno --target deno",
74
+ "dependencies": [
75
+ "build:cargo"
76
+ ]
77
+ },
78
+ "build:web": {
79
+ "command": "wasm-bindgen target/wasm32-unknown-unknown/release/jieba_rs_wasm.wasm --out-dir ./pkg/web --target web",
80
+ "dependencies": [
81
+ "build:cargo"
82
+ ]
83
+ },
84
+ "build": {
85
+ "dependencies": [
86
+ "build:cargo",
87
+ "build:bundler",
88
+ "build:nodejs",
89
+ "build:deno",
90
+ "build:web",
91
+ "build:opt"
92
+ ]
93
+ },
94
+ "build:opt": {
95
+ "command": "node scripts/opt.js",
96
+ "dependencies": [
97
+ "build:cargo",
98
+ "build:bundler",
99
+ "build:nodejs",
100
+ "build:deno",
101
+ "build:web"
102
+ ]
103
+ }
104
+ },
105
+ "files": [
106
+ "pkg/**/*"
107
+ ],
108
+ "repository": {
109
+ "type": "git",
110
+ "url": "git+https://github.com/fengkx/jieba-wasm.git"
111
+ },
112
+ "keywords": [
113
+ "wasm",
114
+ "jieba",
115
+ "chinese",
116
+ "segment",
117
+ "中文分词"
118
+ ],
119
+ "author": "fengkx",
120
+ "license": "MIT",
121
+ "bugs": {
122
+ "url": "https://github.com/fengkx/jieba-wasm/issues"
123
+ },
124
+ "homepage": "https://github.com/fengkx/jieba-wasm#readme",
125
+ "devDependencies": {
126
+ "@jsdevtools/ez-spawn": "^3.0.4",
127
+ "wireit": "^0.14.4"
128
+ }
129
+ }