tianshu-harness 3.23.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 (255) hide show
  1. package/LICENSE +189 -0
  2. package/README.en.md +1066 -0
  3. package/README.ja.md +1214 -0
  4. package/README.ko.md +1216 -0
  5. package/README.md +309 -0
  6. package/completions/rivet.bash +118 -0
  7. package/completions/rivet.fish +110 -0
  8. package/completions/rivet.ps1 +230 -0
  9. package/completions/rivet.zsh +187 -0
  10. package/dist/account-OAEKORZE.js +47 -0
  11. package/dist/account-login-V6FOLHJR.js +65 -0
  12. package/dist/account-status-KHNPPAFL.js +23 -0
  13. package/dist/agent/worker-process/child.js +407 -0
  14. package/dist/browser-cli-FLNY5ZHI.js +19 -0
  15. package/dist/browser-readiness-LWVGSBD5.js +12 -0
  16. package/dist/build-backends-5KXKR2S4.js +13 -0
  17. package/dist/build-options-66Y4ZE7C.js +9 -0
  18. package/dist/bundled-skills/brainstorming/SKILL.md +139 -0
  19. package/dist/bundled-skills/visual-acceptance/SKILL.md +64 -0
  20. package/dist/chain-7MAMFXZ3.js +10 -0
  21. package/dist/checkpoint-MND4DUIX.js +33 -0
  22. package/dist/chunk-2E6CK2RC.js +392 -0
  23. package/dist/chunk-2EBWGAXD.js +51 -0
  24. package/dist/chunk-2HDP7RMR.js +119 -0
  25. package/dist/chunk-2HKD2UFM.js +1000 -0
  26. package/dist/chunk-2VYRLULP.js +51 -0
  27. package/dist/chunk-2XN7PM4N.js +125 -0
  28. package/dist/chunk-35H7GVNR.js +66 -0
  29. package/dist/chunk-3C3R7JXY.js +77 -0
  30. package/dist/chunk-3VGD2FXB.js +118 -0
  31. package/dist/chunk-424AP7FM.js +534 -0
  32. package/dist/chunk-4J5TZGOE.js +3707 -0
  33. package/dist/chunk-4QJ3Y5JM.js +898 -0
  34. package/dist/chunk-4U2ET7ZY.js +1326 -0
  35. package/dist/chunk-4XPFLICE.js +876 -0
  36. package/dist/chunk-5B2OCU5P.js +31707 -0
  37. package/dist/chunk-5GGOGLSN.js +73 -0
  38. package/dist/chunk-5JRZPLI6.js +251 -0
  39. package/dist/chunk-5TQ3JYBU.js +397 -0
  40. package/dist/chunk-66JPZSGX.js +55 -0
  41. package/dist/chunk-6HSVXHCZ.js +764 -0
  42. package/dist/chunk-6S5FPUS7.js +21 -0
  43. package/dist/chunk-722LQO64.js +131 -0
  44. package/dist/chunk-73NJ7IT7.js +354 -0
  45. package/dist/chunk-7FW3I7WC.js +95 -0
  46. package/dist/chunk-7KUCBNLB.js +173 -0
  47. package/dist/chunk-7RDOV3DF.js +201 -0
  48. package/dist/chunk-A5MNH4ER.js +79 -0
  49. package/dist/chunk-ADIVZ2D5.js +15 -0
  50. package/dist/chunk-AE3P3F6W.js +366 -0
  51. package/dist/chunk-AERM3VGP.js +280 -0
  52. package/dist/chunk-AEWHC4WM.js +246 -0
  53. package/dist/chunk-AOVQ7VIF.js +169 -0
  54. package/dist/chunk-AOYHP3WI.js +12411 -0
  55. package/dist/chunk-B3YEBABJ.js +7160 -0
  56. package/dist/chunk-BCQXEZPJ.js +154 -0
  57. package/dist/chunk-BKTQAYO2.js +418 -0
  58. package/dist/chunk-BSECIPAQ.js +80 -0
  59. package/dist/chunk-BUIMGNDD.js +52 -0
  60. package/dist/chunk-BXHV3GSB.js +10320 -0
  61. package/dist/chunk-C6ZVZCPP.js +139 -0
  62. package/dist/chunk-CEZNQVWM.js +82 -0
  63. package/dist/chunk-CGFZGR7G.js +1492 -0
  64. package/dist/chunk-CGOADM2X.js +337 -0
  65. package/dist/chunk-CI4R6P2B.js +24 -0
  66. package/dist/chunk-D2TCGRSX.js +73 -0
  67. package/dist/chunk-D4PTYFOG.js +154 -0
  68. package/dist/chunk-D54ZWG4T.js +717 -0
  69. package/dist/chunk-DEBI37QB.js +145 -0
  70. package/dist/chunk-DWROHPXP.js +1051 -0
  71. package/dist/chunk-DZ6UOJ5D.js +92 -0
  72. package/dist/chunk-EBJTVRQN.js +81 -0
  73. package/dist/chunk-EGEI2RQA.js +1167 -0
  74. package/dist/chunk-EHHUASO5.js +1305 -0
  75. package/dist/chunk-EPKTIOED.js +41 -0
  76. package/dist/chunk-ER5JW2QZ.js +5681 -0
  77. package/dist/chunk-ETHFACAB.js +315 -0
  78. package/dist/chunk-EXUE5W2F.js +112 -0
  79. package/dist/chunk-EXXICUIW.js +73 -0
  80. package/dist/chunk-FFQSZJOO.js +169 -0
  81. package/dist/chunk-FHFKPGDO.js +85 -0
  82. package/dist/chunk-FW3QKMFX.js +158 -0
  83. package/dist/chunk-GD4ZNZ7W.js +30 -0
  84. package/dist/chunk-GHVMWF2I.js +581 -0
  85. package/dist/chunk-GMKAXSYQ.js +297 -0
  86. package/dist/chunk-HBVF6BWO.js +325 -0
  87. package/dist/chunk-HV4YGVMS.js +379 -0
  88. package/dist/chunk-ILBCKAV6.js +89 -0
  89. package/dist/chunk-J4U4AW46.js +440 -0
  90. package/dist/chunk-J6ESSM47.js +1791 -0
  91. package/dist/chunk-JBZHIC6T.js +2309 -0
  92. package/dist/chunk-JCFWOULR.js +245 -0
  93. package/dist/chunk-JRF5L6OD.js +131 -0
  94. package/dist/chunk-JSS75KCG.js +2014 -0
  95. package/dist/chunk-JSXWIWWJ.js +225 -0
  96. package/dist/chunk-JYV7I2QH.js +98 -0
  97. package/dist/chunk-KIOXTQQL.js +1596 -0
  98. package/dist/chunk-KWVTXT5B.js +89 -0
  99. package/dist/chunk-KX22RD6R.js +33 -0
  100. package/dist/chunk-LA6IPTGH.js +709 -0
  101. package/dist/chunk-LH5VCGLB.js +1796 -0
  102. package/dist/chunk-LQQ6XJ2Y.js +269 -0
  103. package/dist/chunk-MJQ55WZZ.js +65 -0
  104. package/dist/chunk-ML3UKMH3.js +40 -0
  105. package/dist/chunk-MOZPLHSU.js +5526 -0
  106. package/dist/chunk-NGEWJ4DF.js +89 -0
  107. package/dist/chunk-NH6VIOAR.js +211 -0
  108. package/dist/chunk-O5VZQKCB.js +26106 -0
  109. package/dist/chunk-OHSV42QB.js +748 -0
  110. package/dist/chunk-OO3TAHO5.js +4070 -0
  111. package/dist/chunk-OTNHSAGN.js +38282 -0
  112. package/dist/chunk-OUWAC7AQ.js +442 -0
  113. package/dist/chunk-OXMIV4WE.js +270 -0
  114. package/dist/chunk-P5KJURUR.js +229 -0
  115. package/dist/chunk-P6GJOVO6.js +307 -0
  116. package/dist/chunk-QARAGUXX.js +23 -0
  117. package/dist/chunk-R43HJCDX.js +2711 -0
  118. package/dist/chunk-RAXBAWRN.js +210 -0
  119. package/dist/chunk-RK3JHWPT.js +39 -0
  120. package/dist/chunk-RWA23GMM.js +24 -0
  121. package/dist/chunk-S4K4L6IM.js +179 -0
  122. package/dist/chunk-SAXK6LVF.js +124 -0
  123. package/dist/chunk-SEPGEJNK.js +1607 -0
  124. package/dist/chunk-SUJERP5I.js +285 -0
  125. package/dist/chunk-T3ED6BY2.js +913 -0
  126. package/dist/chunk-THKDVSEC.js +90 -0
  127. package/dist/chunk-TI4GSEL5.js +52 -0
  128. package/dist/chunk-TPI73L57.js +164 -0
  129. package/dist/chunk-TVHW77C7.js +338 -0
  130. package/dist/chunk-TWNHOSDT.js +1073 -0
  131. package/dist/chunk-UFMN76QD.js +347 -0
  132. package/dist/chunk-UHGLFRZE.js +205 -0
  133. package/dist/chunk-UTZYPKBF.js +15231 -0
  134. package/dist/chunk-UXNLELW6.js +25 -0
  135. package/dist/chunk-UXXS53EA.js +166 -0
  136. package/dist/chunk-V5DHFGI7.js +171 -0
  137. package/dist/chunk-V5YIPMHV.js +2353 -0
  138. package/dist/chunk-WMUWEO2C.js +754 -0
  139. package/dist/chunk-WOE3D7JM.js +945 -0
  140. package/dist/chunk-X2IK5LVR.js +2592 -0
  141. package/dist/chunk-XU2YXCDL.js +459 -0
  142. package/dist/chunk-YJG5HIX5.js +203 -0
  143. package/dist/chunk-Z3QE7TZM.js +72 -0
  144. package/dist/chunk-Z5Z3JHJY.js +64 -0
  145. package/dist/chunk-ZDIFBJFT.js +168 -0
  146. package/dist/chunk-ZGGCEXDC.js +176 -0
  147. package/dist/chunk-ZMZCZNKU.js +263 -0
  148. package/dist/chunk-ZNC5T65N.js +17 -0
  149. package/dist/chunk-ZO3I3A7O.js +308 -0
  150. package/dist/chunk-ZQKXBUB7.js +217 -0
  151. package/dist/chunk-ZTRINFM2.js +78 -0
  152. package/dist/chunk-ZU7JZCVP.js +193 -0
  153. package/dist/chunk-ZZAWNALS.js +350 -0
  154. package/dist/cli/entry.js +54 -0
  155. package/dist/connector-L5QQTR6Y.js +26 -0
  156. package/dist/context-62DC6EC3.js +31 -0
  157. package/dist/council-convene-NJWPNBDU.js +46 -0
  158. package/dist/create-agent-config-ODSQWNVC.js +55 -0
  159. package/dist/default-registry-2PU3BTAU.js +68 -0
  160. package/dist/deliver-task-KONV4C4M.js +57 -0
  161. package/dist/delivery-gate-v2-F2YVMVGK.js +27 -0
  162. package/dist/domain-knowledge-store-DDZ3F4J7.js +11 -0
  163. package/dist/fetch-core-ZPPYDSZH.js +14 -0
  164. package/dist/galaxy-K72BBDQN.js +91 -0
  165. package/dist/goal-criteria-SCALAU2D.js +141 -0
  166. package/dist/goal-persist-XWY2GDQX.js +19 -0
  167. package/dist/goal-tracker-FXMJ2GVK.js +11 -0
  168. package/dist/headless-LSB6I7PT.js +162 -0
  169. package/dist/headless-coordinator-VDPDMVUT.js +90 -0
  170. package/dist/inject-U55SMB6A.js +39 -0
  171. package/dist/login-flow-CD4ZGXOC.js +59 -0
  172. package/dist/logs-cli-SQVYFMMN.js +283 -0
  173. package/dist/loop-ULZYBDA3.js +76 -0
  174. package/dist/main.js +4064 -0
  175. package/dist/manager-ROZBCWPA.js +171 -0
  176. package/dist/manager-Z7XFFUOM.js +10670 -0
  177. package/dist/meridian-indexer-ZIW363L7.js +21 -0
  178. package/dist/native-resolver-PN34UIVV.js +13 -0
  179. package/dist/node_modules/better-sqlite3/lib/database.js +90 -0
  180. package/dist/node_modules/better-sqlite3/lib/index.js +3 -0
  181. package/dist/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  182. package/dist/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  183. package/dist/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  184. package/dist/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  185. package/dist/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  186. package/dist/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  187. package/dist/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  188. package/dist/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  189. package/dist/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  190. package/dist/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  191. package/dist/node_modules/better-sqlite3/lib/util.js +12 -0
  192. package/dist/node_modules/better-sqlite3/package.json +59 -0
  193. package/dist/ownership-ledger-E3WIEKPL.js +9 -0
  194. package/dist/package.json +3 -0
  195. package/dist/path-grants-XRRXHXG7.js +40 -0
  196. package/dist/paths-LVV5IMQN.js +49 -0
  197. package/dist/plan-fact-anchors-LMVQZCW5.js +13 -0
  198. package/dist/plan-store-ODLTTPFB.js +17 -0
  199. package/dist/plan-templates-5FPFBOL6.js +109 -0
  200. package/dist/plugin-loader-ZZKX7ZE6.js +22 -0
  201. package/dist/prefix-budget-62OV5HQC.js +13 -0
  202. package/dist/project-trust-5WS5MOMU.js +31 -0
  203. package/dist/provider-cli-ALDQXIT7.js +37 -0
  204. package/dist/providers-XQYTAVPK.js +11 -0
  205. package/dist/proxy-resolver-V2Y6534D.js +15 -0
  206. package/dist/recovery-cli-KPGY6FY3.js +106 -0
  207. package/dist/review-discipline-MNSYCST5.js +55 -0
  208. package/dist/review-router-BVQZW3MX.js +18 -0
  209. package/dist/seed-capsules/seed-capsule-attack-methodology.md +62 -0
  210. package/dist/seed-capsules/seed-capsule-changgeng.md +31 -0
  211. package/dist/seed-capsules/seed-capsule-design-aesthetics.md +38 -0
  212. package/dist/seed-capsules/seed-capsule-diagnostic-ladder.md +54 -0
  213. package/dist/seed-capsules/seed-capsule-fu.md +39 -0
  214. package/dist/seed-capsules/seed-capsule-huagai.md +73 -0
  215. package/dist/seed-capsules/seed-capsule-kaiyang.md +65 -0
  216. package/dist/seed-capsules/seed-capsule-knowledge-work.md +40 -0
  217. package/dist/seed-capsules/seed-capsule-tanlang.md +47 -0
  218. package/dist/seed-capsules/seed-capsule-tianfu.md +23 -0
  219. package/dist/seed-capsules/seed-capsule-tianliang.md +63 -0
  220. package/dist/seed-capsules/seed-capsule-tianquan.md +32 -0
  221. package/dist/seed-capsules/seed-capsule-tianxuan-ccr.md +22 -0
  222. package/dist/seed-capsules/seed-capsule-tianxuan.md +64 -0
  223. package/dist/seed-capsules/seed-capsule-yaoguang.md +87 -0
  224. package/dist/serve-X2R2UTLF.js +170 -0
  225. package/dist/serve-agent-KHSU6RVV.js +965 -0
  226. package/dist/session-persist-HUUC772H.js +37 -0
  227. package/dist/session-registry-6XUD5C4Y.js +15 -0
  228. package/dist/skill-loader-CK3RMO47.js +48 -0
  229. package/dist/skills/cli-harness-sop.md +207 -0
  230. package/dist/spawn-git-4HFU65AH.js +29 -0
  231. package/dist/sse-EYUTBWUK.js +512 -0
  232. package/dist/starflow-NOFBMPFU.js +30 -0
  233. package/dist/streamableHttp-V67CNJMO.js +447 -0
  234. package/dist/task-contract-6XHBNJQK.js +32 -0
  235. package/dist/task-ledger-3K4TJIER.js +9 -0
  236. package/dist/team-orchestrate-S6NHZP7X.js +64 -0
  237. package/dist/title-extract-QX4XGCYN.js +50 -0
  238. package/dist/todo-QDXGRZZP.js +31 -0
  239. package/dist/todo-store-V3TTO5AH.js +12 -0
  240. package/dist/tool-preset-LU5BYEDZ.js +23 -0
  241. package/dist/tool-tiers-GD742YBN.js +23 -0
  242. package/dist/turndown.es-OI55K6C3.js +17373 -0
  243. package/dist/verification-attribution-EKG4CNUV.js +13 -0
  244. package/dist/volatile-git-MBTST7RA.js +15 -0
  245. package/dist/wave-checkpoint-XLIIHXQA.js +30 -0
  246. package/dist/web-cli-DUG4I35O.js +233 -0
  247. package/dist/web-search-3IK542AA.js +34 -0
  248. package/dist/workers/cpu-worker.js +45 -0
  249. package/dist/workflow-runner-HX7UBAYG.js +297 -0
  250. package/dist/worktree-baseline-O5NCU6M2.js +9 -0
  251. package/package.json +122 -0
  252. package/scripts/check-mobile-env.mjs +76 -0
  253. package/scripts/fetch-native-sqlite.js +392 -0
  254. package/scripts/prune-installed-wasms.js +45 -0
  255. package/scripts/tree-sitter-wasm-keep.js +40 -0
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "better-sqlite3",
3
+ "version": "12.10.0",
4
+ "description": "The fastest and simplest library for SQLite in Node.js.",
5
+ "homepage": "http://github.com/WiseLibs/better-sqlite3",
6
+ "author": "Joshua Wise <joshuathomaswise@gmail.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git://github.com/WiseLibs/better-sqlite3.git"
10
+ },
11
+ "main": "lib/index.js",
12
+ "files": [
13
+ "binding.gyp",
14
+ "src/**/*.[ch]pp",
15
+ "lib/**",
16
+ "deps/**"
17
+ ],
18
+ "engines": {
19
+ "node": "20.x || 22.x || 23.x || 24.x || 25.x || 26.x"
20
+ },
21
+ "dependencies": {
22
+ "bindings": "^1.5.0",
23
+ "prebuild-install": "^7.1.1"
24
+ },
25
+ "overrides": {
26
+ "prebuild": {
27
+ "node-abi": "^4.25.0"
28
+ }
29
+ },
30
+ "devDependencies": {
31
+ "chai": "^4.3.8",
32
+ "cli-color": "^2.0.3",
33
+ "fs-extra": "^11.1.1",
34
+ "mocha": "^11.7.5",
35
+ "nodemark": "^0.3.0",
36
+ "prebuild": "^13.0.1",
37
+ "sqlite": "^5.0.1",
38
+ "sqlite3": "^5.1.6"
39
+ },
40
+ "scripts": {
41
+ "install": "prebuild-install || node-gyp rebuild --release",
42
+ "build-release": "node-gyp rebuild --release",
43
+ "build-debug": "node-gyp rebuild --debug",
44
+ "test": "mocha --exit --slow=75 --timeout=5000",
45
+ "benchmark": "node benchmark",
46
+ "download": "bash ./deps/download.sh"
47
+ },
48
+ "license": "MIT",
49
+ "keywords": [
50
+ "sql",
51
+ "sqlite",
52
+ "sqlite3",
53
+ "transactions",
54
+ "user-defined functions",
55
+ "aggregate functions",
56
+ "window functions",
57
+ "database"
58
+ ]
59
+ }
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ createOwnershipLedger
5
+ } from "./chunk-SAXK6LVF.js";
6
+ import "./chunk-5GGOGLSN.js";
7
+ export {
8
+ createOwnershipLedger
9
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ _resetGrantsForTest,
5
+ applyConfiguredPathGrants,
6
+ applyDefaultDependencyReadGrants,
7
+ applyRivetRuntimeReadGrants,
8
+ grantPath,
9
+ isPathUnder,
10
+ isReadGranted,
11
+ isWriteGranted,
12
+ listGrants,
13
+ listPersistedGrants,
14
+ loadPersistedGrants,
15
+ resetRootExistsMemoForTest,
16
+ revokeGrant,
17
+ writeGrantedRoots
18
+ } from "./chunk-SUJERP5I.js";
19
+ import "./chunk-CI4R6P2B.js";
20
+ import "./chunk-XU2YXCDL.js";
21
+ import "./chunk-ETHFACAB.js";
22
+ import "./chunk-A5MNH4ER.js";
23
+ import "./chunk-BCQXEZPJ.js";
24
+ import "./chunk-5GGOGLSN.js";
25
+ export {
26
+ _resetGrantsForTest,
27
+ applyConfiguredPathGrants,
28
+ applyDefaultDependencyReadGrants,
29
+ applyRivetRuntimeReadGrants,
30
+ grantPath,
31
+ isPathUnder,
32
+ isReadGranted,
33
+ isWriteGranted,
34
+ listGrants,
35
+ listPersistedGrants,
36
+ loadPersistedGrants,
37
+ resetRootExistsMemoForTest,
38
+ revokeGrant,
39
+ writeGrantedRoots
40
+ };
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ checkpointPath,
5
+ computerUseGrantsPath,
6
+ connectDraftPath,
7
+ defaultRivetHome,
8
+ desktopDir,
9
+ desktopSessionsDir,
10
+ exportsDir,
11
+ historyPath,
12
+ init_paths,
13
+ lastSessionPointerDir,
14
+ memoryDir,
15
+ pathGrantsPath,
16
+ planTemplatesDir,
17
+ projectSlug,
18
+ rivetHome,
19
+ sessionsDir,
20
+ stateDir,
21
+ subagentsDir,
22
+ updateCheckPath,
23
+ userConfigPath,
24
+ workflowsDir
25
+ } from "./chunk-BCQXEZPJ.js";
26
+ import "./chunk-5GGOGLSN.js";
27
+ init_paths();
28
+ export {
29
+ checkpointPath,
30
+ computerUseGrantsPath,
31
+ connectDraftPath,
32
+ defaultRivetHome,
33
+ desktopDir,
34
+ desktopSessionsDir,
35
+ exportsDir,
36
+ historyPath,
37
+ lastSessionPointerDir,
38
+ memoryDir,
39
+ pathGrantsPath,
40
+ planTemplatesDir,
41
+ projectSlug,
42
+ rivetHome,
43
+ sessionsDir,
44
+ stateDir,
45
+ subagentsDir,
46
+ updateCheckPath,
47
+ userConfigPath,
48
+ workflowsDir
49
+ };
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ checkPlanFactAnchors,
5
+ extractPlanAnchors,
6
+ formatAnchorDrifts
7
+ } from "./chunk-JCFWOULR.js";
8
+ import "./chunk-5GGOGLSN.js";
9
+ export {
10
+ checkPlanFactAnchors,
11
+ extractPlanAnchors,
12
+ formatAnchorDrifts
13
+ };
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ clearPlan,
5
+ consumePlan,
6
+ getStoredPlan,
7
+ setPlanSession,
8
+ storePlan
9
+ } from "./chunk-RK3JHWPT.js";
10
+ import "./chunk-5GGOGLSN.js";
11
+ export {
12
+ clearPlan,
13
+ consumePlan,
14
+ getStoredPlan,
15
+ setPlanSession,
16
+ storePlan
17
+ };
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ normalizeFrontmatterSource
5
+ } from "./chunk-ADIVZ2D5.js";
6
+ import {
7
+ init_paths,
8
+ planTemplatesDir
9
+ } from "./chunk-BCQXEZPJ.js";
10
+ import {
11
+ init_esm_shims
12
+ } from "./chunk-5GGOGLSN.js";
13
+
14
+ // src/agent/plan-templates.ts
15
+ init_esm_shims();
16
+ init_paths();
17
+ import { readFileSync, writeFileSync, existsSync, mkdirSync, readdirSync } from "fs";
18
+ import { join } from "path";
19
+ var TEMPLATES_DIR = ".rivet/plan-templates";
20
+ function parseFrontmatter(markdown) {
21
+ const meta = {};
22
+ markdown = normalizeFrontmatterSource(markdown);
23
+ const fmMatch = markdown.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);
24
+ if (!fmMatch) return { meta, body: markdown };
25
+ const rawMeta = fmMatch[1];
26
+ const body = fmMatch[2] ?? "";
27
+ for (const line of rawMeta.split("\n")) {
28
+ const m = line.match(/^(\w+):\s*(.*)$/);
29
+ if (m) meta[m[1]] = m[2].trim();
30
+ }
31
+ return { meta, body };
32
+ }
33
+ function getTemplatesDir(cwd) {
34
+ return join(cwd, TEMPLATES_DIR);
35
+ }
36
+ function getUserTemplatesDir() {
37
+ return planTemplatesDir();
38
+ }
39
+ function loadPlanTemplates(cwd) {
40
+ const templates = /* @__PURE__ */ new Map();
41
+ const userDir = getUserTemplatesDir();
42
+ if (existsSync(userDir)) {
43
+ for (const file of readdirSync(userDir)) {
44
+ if (!file.endsWith(".md")) continue;
45
+ const name = file.replace(/\.md$/, "");
46
+ const raw = readFileSync(join(userDir, file), "utf-8");
47
+ const { meta, body } = parseFrontmatter(raw);
48
+ templates.set(name, {
49
+ name,
50
+ description: meta.description ?? "",
51
+ estimatedWaves: meta.waves ? parseInt(meta.waves, 10) : void 0,
52
+ recommendedProfiles: meta.profiles?.split(",").map((s) => s.trim()).filter(Boolean),
53
+ content: body,
54
+ source: "user"
55
+ });
56
+ }
57
+ }
58
+ const projDir = getTemplatesDir(cwd);
59
+ if (existsSync(projDir)) {
60
+ for (const file of readdirSync(projDir)) {
61
+ if (!file.endsWith(".md")) continue;
62
+ const name = file.replace(/\.md$/, "");
63
+ const raw = readFileSync(join(projDir, file), "utf-8");
64
+ const { meta, body } = parseFrontmatter(raw);
65
+ templates.set(name, {
66
+ name,
67
+ description: meta.description ?? "",
68
+ estimatedWaves: meta.waves ? parseInt(meta.waves, 10) : void 0,
69
+ recommendedProfiles: meta.profiles?.split(",").map((s) => s.trim()).filter(Boolean),
70
+ content: body,
71
+ source: "project"
72
+ });
73
+ }
74
+ }
75
+ return Array.from(templates.values()).sort((a, b) => a.name.localeCompare(b.name));
76
+ }
77
+ function getPlanTemplate(cwd, name) {
78
+ return loadPlanTemplates(cwd).find((t) => t.name === name) ?? null;
79
+ }
80
+ function savePlanTemplate(cwd, name, content, description) {
81
+ const dir = getTemplatesDir(cwd);
82
+ if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
83
+ const fm = description ? `---
84
+ description: ${description}
85
+ ---
86
+
87
+ ` : "";
88
+ writeFileSync(join(dir, `${name}.md`), fm + content, "utf-8");
89
+ }
90
+ function formatTemplateList(templates) {
91
+ if (templates.length === 0) {
92
+ return "No plan templates. Create one in .rivet/plan-templates/*.md or save with /plan save <name>.";
93
+ }
94
+ const lines = ["Available plan templates:", ""];
95
+ for (const t of templates) {
96
+ const badge = t.source === "project" ? "[project]" : "[user]";
97
+ const waves = t.estimatedWaves ? ` (${t.estimatedWaves} waves)` : "";
98
+ lines.push(` ${badge} ${t.name}${waves} \u2014 ${t.description || "(no description)"}`);
99
+ }
100
+ lines.push("", "Use: /plan template <name> to load a template into plan mode.");
101
+ return lines.join("\n");
102
+ }
103
+ export {
104
+ formatTemplateList,
105
+ getPlanTemplate,
106
+ loadPlanTemplates,
107
+ parseFrontmatter,
108
+ savePlanTemplate
109
+ };
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ PLUGIN_TOOL_SUPPRESS_MAP,
5
+ initializePlugins
6
+ } from "./chunk-73NJ7IT7.js";
7
+ import "./chunk-7RDOV3DF.js";
8
+ import "./chunk-OHSV42QB.js";
9
+ import "./chunk-ADIVZ2D5.js";
10
+ import "./chunk-GD4ZNZ7W.js";
11
+ import "./chunk-SUJERP5I.js";
12
+ import "./chunk-CI4R6P2B.js";
13
+ import "./chunk-XU2YXCDL.js";
14
+ import "./chunk-ETHFACAB.js";
15
+ import "./chunk-OO3TAHO5.js";
16
+ import "./chunk-A5MNH4ER.js";
17
+ import "./chunk-BCQXEZPJ.js";
18
+ import "./chunk-5GGOGLSN.js";
19
+ export {
20
+ PLUGIN_TOOL_SUPPRESS_MAP,
21
+ initializePlugins
22
+ };
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ buildBudgetReport,
5
+ estimateTokens,
6
+ formatBudgetReport
7
+ } from "./chunk-BSECIPAQ.js";
8
+ import "./chunk-5GGOGLSN.js";
9
+ export {
10
+ buildBudgetReport,
11
+ estimateTokens,
12
+ formatBudgetReport
13
+ };
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ PROJECT_CONFIG_FILE_NAME,
5
+ detectProjectTrustStakes,
6
+ dismissProjectTrustPrompt,
7
+ findSensitiveProjectKeys,
8
+ isProjectTrusted,
9
+ isTrustPromptDismissed,
10
+ listTrustedProjects,
11
+ notifyUntrustedOnce,
12
+ stripUntrustedProjectKeys,
13
+ trustProject,
14
+ untrustProject
15
+ } from "./chunk-7KUCBNLB.js";
16
+ import "./chunk-A5MNH4ER.js";
17
+ import "./chunk-BCQXEZPJ.js";
18
+ import "./chunk-5GGOGLSN.js";
19
+ export {
20
+ PROJECT_CONFIG_FILE_NAME,
21
+ detectProjectTrustStakes,
22
+ dismissProjectTrustPrompt,
23
+ findSensitiveProjectKeys,
24
+ isProjectTrusted,
25
+ isTrustPromptDismissed,
26
+ listTrustedProjects,
27
+ notifyUntrustedOnce,
28
+ stripUntrustedProjectKeys,
29
+ trustProject,
30
+ untrustProject
31
+ };
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ effortChannelNotes,
5
+ runProviderCLI,
6
+ toModelDescriptors
7
+ } from "./chunk-LQQ6XJ2Y.js";
8
+ import "./chunk-OUWAC7AQ.js";
9
+ import "./chunk-X2IK5LVR.js";
10
+ import "./chunk-CEZNQVWM.js";
11
+ import "./chunk-O5VZQKCB.js";
12
+ import "./chunk-ZQKXBUB7.js";
13
+ import "./chunk-Z5Z3JHJY.js";
14
+ import "./chunk-KIOXTQQL.js";
15
+ import "./chunk-35H7GVNR.js";
16
+ import "./chunk-TPI73L57.js";
17
+ import "./chunk-CI4R6P2B.js";
18
+ import "./chunk-XU2YXCDL.js";
19
+ import "./chunk-ETHFACAB.js";
20
+ import "./chunk-UFMN76QD.js";
21
+ import "./chunk-EXXICUIW.js";
22
+ import "./chunk-QARAGUXX.js";
23
+ import "./chunk-ER5JW2QZ.js";
24
+ import "./chunk-CGFZGR7G.js";
25
+ import "./chunk-P5KJURUR.js";
26
+ import "./chunk-WMUWEO2C.js";
27
+ import "./chunk-BKTQAYO2.js";
28
+ import "./chunk-OO3TAHO5.js";
29
+ import "./chunk-7KUCBNLB.js";
30
+ import "./chunk-A5MNH4ER.js";
31
+ import "./chunk-BCQXEZPJ.js";
32
+ import "./chunk-5GGOGLSN.js";
33
+ export {
34
+ effortChannelNotes,
35
+ runProviderCLI,
36
+ toModelDescriptors
37
+ };
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ MCP_OAUTH_PROVIDERS,
5
+ findMcpOAuthProvider
6
+ } from "./chunk-2EBWGAXD.js";
7
+ import "./chunk-5GGOGLSN.js";
8
+ export {
9
+ MCP_OAUTH_PROVIDERS,
10
+ findMcpOAuthProvider
11
+ };
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ parseScutilProxy,
5
+ parseWindowsProxyOutput,
6
+ resolveProxyForUrl,
7
+ shouldBypassProxy
8
+ } from "./chunk-2HDP7RMR.js";
9
+ import "./chunk-5GGOGLSN.js";
10
+ export {
11
+ parseScutilProxy,
12
+ parseWindowsProxyOutput,
13
+ resolveProxyForUrl,
14
+ shouldBypassProxy
15
+ };
@@ -0,0 +1,106 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ init_esm_shims
5
+ } from "./chunk-5GGOGLSN.js";
6
+
7
+ // src/recovery-cli.ts
8
+ init_esm_shims();
9
+ import { createInterface } from "readline/promises";
10
+ var EXIT_COMMANDS = /* @__PURE__ */ new Set(["/exit", "/quit", "exit", "quit"]);
11
+ async function runRecoveryCli(ctx, options = {}) {
12
+ const input = options.input ?? process.stdin;
13
+ const output = options.output ?? process.stdout;
14
+ const rl = options.rl ?? createInterface({ input, output, prompt: "> " });
15
+ const write = (s) => {
16
+ output.write(s);
17
+ };
18
+ const writeln = (s) => write(s + "\n");
19
+ writeln("[recovery] RIVET Recovery CLI (readline fallback)");
20
+ writeln("[recovery] Type a prompt and press Enter. Type /exit or /quit to leave.\n");
21
+ let running = true;
22
+ const stop = () => {
23
+ running = false;
24
+ };
25
+ try {
26
+ while (running) {
27
+ const line = await rl.question("> ");
28
+ const trimmed = line.trim();
29
+ if (!trimmed) continue;
30
+ if (EXIT_COMMANDS.has(trimmed)) {
31
+ break;
32
+ }
33
+ writeln(`
34
+ [you] ${trimmed}`);
35
+ const callbacks = buildRecoveryCallbacks(rl, output);
36
+ try {
37
+ await ctx.agent.run(trimmed, callbacks);
38
+ } catch (err) {
39
+ writeln(`
40
+ [error] ${err.message}`);
41
+ }
42
+ writeln("");
43
+ }
44
+ } finally {
45
+ stop();
46
+ rl.close();
47
+ }
48
+ }
49
+ function buildRecoveryCallbacks(rl, output) {
50
+ const write = (s) => {
51
+ output.write(s);
52
+ };
53
+ const writeln = (s) => write(s + "\n");
54
+ return {
55
+ onTextDelta: (text) => {
56
+ write(text);
57
+ },
58
+ onThinkingDelta: () => {
59
+ },
60
+ onToolUse: (_id, name, input) => {
61
+ writeln(`
62
+ [tool] ${name}(${JSON.stringify(input)})`);
63
+ },
64
+ onToolResult: (_id, name, result, isError) => {
65
+ const prefix = isError ? "[tool error]" : "[tool result]";
66
+ const text = typeof result === "string" ? result : JSON.stringify(result ?? "");
67
+ const snippet = text.length > 500 ? `${text.slice(0, 500)}...` : text;
68
+ writeln(`${prefix} ${name}:
69
+ ${snippet.replace(/\n/g, "\n ")}`);
70
+ },
71
+ onTurnComplete: (usage, turnNumber) => {
72
+ if (usage && Object.keys(usage).length > 0) {
73
+ writeln(`
74
+ [turn ${turnNumber} complete] usage: ${JSON.stringify(usage)}`);
75
+ } else {
76
+ writeln(`
77
+ [turn ${turnNumber} complete]`);
78
+ }
79
+ },
80
+ onError: (error) => {
81
+ writeln(`
82
+ [error] ${error.message}`);
83
+ },
84
+ onAbort: (reason) => {
85
+ writeln(`
86
+ [abort] ${reason ?? "interrupted"}`);
87
+ },
88
+ onApprovalRequired: async (_id, name, _input) => {
89
+ const answer = await rl.question(`Approve ${name}? (y/N) `);
90
+ const normalized = answer.trim().toLowerCase();
91
+ return normalized === "y" || normalized === "yes";
92
+ },
93
+ onCheckpoint: () => {
94
+ },
95
+ onPhaseChange: () => {
96
+ },
97
+ onIntentNote: () => {
98
+ },
99
+ onSteerDrain: () => null,
100
+ onDelegationActivity: () => {
101
+ }
102
+ };
103
+ }
104
+ export {
105
+ runRecoveryCli
106
+ };
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ AUTO_REVIEW_L2_MIN_FILES,
5
+ CASE_SENSITIVITY_REVIEW_STANCE,
6
+ GENERAL_DEV_DISCIPLINES,
7
+ LARGE_FILE_WARN_THRESHOLD,
8
+ METHODOLOGY_VERIFICATION_STANCE,
9
+ OBJECTIVE_REVIEW_STANCE,
10
+ PATH_BOUNDARY_REVIEW_STANCE,
11
+ REVIEW_DISCIPLINES,
12
+ WEIGHING_REVIEW_STANCE,
13
+ WIRING_EFFECTIVENESS_REVIEW_STANCE,
14
+ classifyAutoReviewTier,
15
+ classifyChangeScale,
16
+ formatCaseSensitivityReviewStance,
17
+ formatGeneralDevDisciplines,
18
+ formatMethodologyVerificationStance,
19
+ formatObjectiveReviewStance,
20
+ formatPathBoundaryReviewStance,
21
+ formatWeighingReviewStance,
22
+ formatWiringEffectivenessReviewStance,
23
+ isCrossModule,
24
+ isFixContext,
25
+ isTrivialChange,
26
+ shouldRouteReviewWorkflow,
27
+ upgradeScaleByDepth
28
+ } from "./chunk-S4K4L6IM.js";
29
+ import "./chunk-5GGOGLSN.js";
30
+ export {
31
+ AUTO_REVIEW_L2_MIN_FILES,
32
+ CASE_SENSITIVITY_REVIEW_STANCE,
33
+ GENERAL_DEV_DISCIPLINES,
34
+ LARGE_FILE_WARN_THRESHOLD,
35
+ METHODOLOGY_VERIFICATION_STANCE,
36
+ OBJECTIVE_REVIEW_STANCE,
37
+ PATH_BOUNDARY_REVIEW_STANCE,
38
+ REVIEW_DISCIPLINES,
39
+ WEIGHING_REVIEW_STANCE,
40
+ WIRING_EFFECTIVENESS_REVIEW_STANCE,
41
+ classifyAutoReviewTier,
42
+ classifyChangeScale,
43
+ formatCaseSensitivityReviewStance,
44
+ formatGeneralDevDisciplines,
45
+ formatMethodologyVerificationStance,
46
+ formatObjectiveReviewStance,
47
+ formatPathBoundaryReviewStance,
48
+ formatWeighingReviewStance,
49
+ formatWiringEffectivenessReviewStance,
50
+ isCrossModule,
51
+ isFixContext,
52
+ isTrivialChange,
53
+ shouldRouteReviewWorkflow,
54
+ upgradeScaleByDepth
55
+ };
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+ import { createRequire as __rivetCreateRequire } from 'node:module'; const require = __rivetCreateRequire(import.meta.url);
3
+ import {
4
+ AUTO_REVIEW_BUDGET_MS,
5
+ formatPatcherArtifacts,
6
+ reviewWorkflowBudgetMs,
7
+ routeReviewWorkflow
8
+ } from "./chunk-NH6VIOAR.js";
9
+ import "./chunk-S4K4L6IM.js";
10
+ import "./chunk-6HSVXHCZ.js";
11
+ import "./chunk-ADIVZ2D5.js";
12
+ import "./chunk-5GGOGLSN.js";
13
+ export {
14
+ AUTO_REVIEW_BUDGET_MS,
15
+ formatPatcherArtifacts,
16
+ reviewWorkflowBudgetMs,
17
+ routeReviewWorkflow
18
+ };