binary-collections 2.0.13 → 2.0.15

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 (303) hide show
  1. package/.opencode/plugins/opencode-request-logger/README.md +44 -0
  2. package/.venv/Lib/site-packages/pyarrow/tests/data/orc/README.md +22 -0
  3. package/binaries/binary-executor.cjs +307 -238
  4. package/binaries/clean-nodemodule.cjs +307 -238
  5. package/binaries/clean-nodemodules.cjs +307 -238
  6. package/binaries/composer.cjs +323 -0
  7. package/binaries/composer.cmd +2 -0
  8. package/binaries/composer.phar +0 -0
  9. package/binaries/dev.cjs +307 -238
  10. package/binaries/empty.cjs +307 -238
  11. package/binaries/git-reduce-size.cjs +307 -238
  12. package/binaries/javakill.cjs +307 -238
  13. package/binaries/kill-process.cjs +307 -238
  14. package/binaries/nodekill.cjs +307 -238
  15. package/binaries/prod.cjs +307 -238
  16. package/binaries/py.cjs +307 -238
  17. package/binaries/rmfind.cjs +307 -238
  18. package/binaries/rmx.cjs +307 -238
  19. package/binaries/submodule-token.cjs +307 -238
  20. package/binaries/test-cjs.cjs +307 -238
  21. package/binaries/test-esm.cjs +307 -238
  22. package/binaries/yarn-clean.cjs +307 -238
  23. package/binaries/yc.cjs +307 -238
  24. package/binaries/ycw.cjs +307 -238
  25. package/docs-src/binary-collections.md +1 -1
  26. package/docs-src/clean-github-actions-caches.md +1 -1
  27. package/docs-src/copy-move-file.md +1 -4
  28. package/docs-src/del-ps.md +1 -1
  29. package/docs-src/find-node-modules.md +1 -1
  30. package/docs-src/generate-test-ci.md +56 -0
  31. package/docs-src/get-latest-workflow-status.md +100 -0
  32. package/docs-src/git-diff.md +1 -1
  33. package/docs-src/git-fix.md +1 -1
  34. package/docs-src/git-purge.md +1 -1
  35. package/docs-src/install-opencode-plugins.md +86 -0
  36. package/docs-src/kill-night-crows.md +1 -1
  37. package/docs-src/node-cache-cleaner.md +2 -2
  38. package/docs-src/node-package-packer.md +1 -1
  39. package/docs-src/opencode-cli.md +155 -0
  40. package/docs-src/package-resolutions-updater.md +1 -1
  41. package/docs-src/rmpath.md +1 -1
  42. package/docs-src/run-by-checksum.md +1 -1
  43. package/docs-src/submodule-remove.md +1 -1
  44. package/docs-src/upload-backend.md +29 -0
  45. package/docs-src/vscode-cli.md +84 -0
  46. package/docs-src/workflow-badge.md +120 -0
  47. package/lib/binary-collections/config-types.cjs +17 -0
  48. package/lib/binary-collections/config-types.d.ts +12 -0
  49. package/lib/binary-collections/config-types.js +2 -0
  50. package/lib/binary-collections/config-types.mjs +7 -0
  51. package/lib/binary-collections/config.cjs +28 -8
  52. package/lib/binary-collections/config.d.cts +26 -8
  53. package/lib/binary-collections/config.mjs +2 -2
  54. package/lib/binary-collections/findScript.cjs +49 -25
  55. package/lib/binary-collections/findScript.mjs +2 -2
  56. package/lib/binary-collections/listScript.cjs +49 -25
  57. package/lib/binary-collections/listScript.mjs +2 -2
  58. package/lib/binary-collections.cjs +49 -25
  59. package/lib/binary-collections.mjs +6 -6
  60. package/lib/changelog.cjs +142 -4
  61. package/lib/changelog.mjs +9 -5
  62. package/lib/chunk-3T6AMFI3.mjs +52 -0
  63. package/lib/{chunk-2MN4VPV2.mjs → chunk-3ZF2QMDK.mjs} +4 -4
  64. package/lib/chunk-56BVU63B.mjs +86 -0
  65. package/lib/chunk-7N52Z4IJ.mjs +39 -0
  66. package/lib/chunk-B77D3SR4.mjs +28 -0
  67. package/lib/chunk-BPED62FN.mjs +115 -0
  68. package/lib/{chunk-RDN6HF5Z.mjs → chunk-DHFRWM2W.mjs} +1 -1
  69. package/lib/chunk-DPEE3FBB.mjs +146 -0
  70. package/lib/{chunk-MGPYPKIE.mjs → chunk-H7AE4IO3.mjs} +5 -1
  71. package/lib/{chunk-H44UWUFY.mjs → chunk-J4M5EL5P.mjs} +3 -0
  72. package/lib/chunk-KCJYREA2.mjs +67 -0
  73. package/lib/chunk-LACQTD5V.mjs +225 -0
  74. package/lib/{chunk-TBWXE7ST.mjs → chunk-NHD4HLSU.mjs} +24 -31
  75. package/lib/{chunk-RDGDLSPD.mjs → chunk-OWNVMKAA.mjs} +6 -5
  76. package/lib/chunk-SKVF4TMD.mjs +59 -0
  77. package/lib/{chunk-BZWVHODJ.mjs → chunk-TDUUOAQD.mjs} +5 -5
  78. package/lib/chunk-TP3O2JGW.mjs +88 -0
  79. package/lib/{chunk-FLYSZFLW.mjs → chunk-UAEKSLAX.mjs} +1 -1
  80. package/lib/chunk-UDZBVKXH.mjs +94 -0
  81. package/lib/chunk-UEOWRYAN.mjs +32 -0
  82. package/lib/chunk-V6PTSDW5.mjs +82 -0
  83. package/lib/{chunk-NQXUYO67.mjs → chunk-WNUEY6VJ.mjs} +49 -25
  84. package/lib/chunk-X7UVQ6ZC.mjs +183 -0
  85. package/lib/chunk-XW5NZAKI.mjs +82 -0
  86. package/lib/{chunk-LVSPEFU2.mjs → chunk-Z53IUBUN.mjs} +6 -5
  87. package/lib/{chunk-CD3HF3LK.mjs → chunk-Z7RM46Q4.mjs} +5 -11
  88. package/lib/chunk-ZB4IQ6VJ.mjs +46 -0
  89. package/lib/del-gradle.cjs +1 -1
  90. package/lib/del-gradle.mjs +22 -16
  91. package/lib/del-node-modules.cjs +1 -1
  92. package/lib/del-node-modules.mjs +148 -142
  93. package/lib/find-node-modules-cli.cjs +1 -1
  94. package/lib/find-node-modules-cli.mjs +10 -4
  95. package/lib/{git-diff-cli.cjs → git/git-diff-cli.cjs} +32 -12
  96. package/lib/{git-diff-cli.mjs → git/git-diff-cli.mjs} +7 -7
  97. package/lib/{git-diff.cjs → git/git-diff.cjs} +30 -10
  98. package/lib/{git-diff.js → git/git-diff.js} +3 -3
  99. package/lib/{git-diff.mjs → git/git-diff.mjs} +6 -6
  100. package/lib/{git-fix.cjs → git/git-fix.cjs} +142 -3
  101. package/lib/{git-fix.mjs → git/git-fix.mjs} +19 -14
  102. package/lib/{git-purge.cjs → git/git-purge.cjs} +1 -1
  103. package/lib/{git-purge.mjs → git/git-purge.mjs} +4 -4
  104. package/lib/git/user-config.cjs +139 -1
  105. package/lib/git/user-config.mjs +3 -1
  106. package/lib/{clean-github-actions-caches-cli.cjs → github-workflows/clean-github-actions-caches-cli.cjs} +46 -10
  107. package/lib/{clean-github-actions-caches-cli.mjs → github-workflows/clean-github-actions-caches-cli.mjs} +7 -6
  108. package/lib/{clean-github-actions-caches.cjs → github-workflows/clean-github-actions-caches.cjs} +46 -10
  109. package/lib/{clean-github-actions-caches.mjs → github-workflows/clean-github-actions-caches.mjs} +5 -4
  110. package/lib/github-workflows/generate-test-ci-step-cli.cjs +240 -0
  111. package/lib/github-workflows/generate-test-ci-step-cli.d.mts +2 -0
  112. package/lib/github-workflows/generate-test-ci-step-cli.mjs +132 -0
  113. package/lib/github-workflows/get-latest-workflow-status-cli.cjs +549 -0
  114. package/lib/github-workflows/get-latest-workflow-status-cli.d.mts +2 -0
  115. package/lib/github-workflows/get-latest-workflow-status-cli.mjs +61 -0
  116. package/lib/github-workflows/get-latest-workflow-status.cjs +56 -0
  117. package/lib/github-workflows/get-latest-workflow-status.d.mts +1 -0
  118. package/lib/github-workflows/get-latest-workflow-status.mjs +8 -0
  119. package/lib/github-workflows/utils.cjs +279 -0
  120. package/lib/github-workflows/utils.d.cts +76 -0
  121. package/lib/github-workflows/utils.mjs +8 -0
  122. package/lib/github-workflows/workflow-badge-cli.cjs +730 -0
  123. package/lib/github-workflows/workflow-badge-cli.d.mts +2 -0
  124. package/lib/github-workflows/workflow-badge-cli.mjs +98 -0
  125. package/lib/github-workflows/workflow-badge-generator.cjs +200 -0
  126. package/lib/github-workflows/workflow-badge-generator.d.mts +14 -0
  127. package/lib/github-workflows/workflow-badge-generator.mjs +8 -0
  128. package/lib/github-workflows/workflow-test-data.cjs +73 -0
  129. package/lib/github-workflows/workflow-test-data.d.cts +63 -0
  130. package/lib/github-workflows/workflow-test-data.mjs +6 -0
  131. package/lib/node-cache-cleaner-cli.mjs +3 -3
  132. package/lib/opencode/cli/auth-rotate.cjs +458 -0
  133. package/lib/opencode/cli/auth-rotate.d.ts +3 -0
  134. package/lib/opencode/cli/auth-rotate.js +65 -0
  135. package/lib/opencode/cli/auth-rotate.mjs +14 -0
  136. package/lib/opencode/cli/auth-rotate.runner.cjs +454 -0
  137. package/lib/opencode/cli/auth-rotate.runner.d.ts +1 -0
  138. package/lib/opencode/cli/auth-rotate.runner.js +8 -0
  139. package/lib/opencode/cli/auth-rotate.runner.mjs +21 -0
  140. package/lib/opencode/cli/list-projects.cjs +184 -0
  141. package/lib/opencode/cli/list-projects.d.ts +1 -0
  142. package/lib/opencode/cli/list-projects.js +32 -0
  143. package/lib/opencode/cli/list-projects.mjs +11 -0
  144. package/lib/opencode/cli/list-sessions.cjs +215 -0
  145. package/lib/opencode/cli/list-sessions.d.ts +1 -0
  146. package/lib/opencode/cli/list-sessions.js +45 -0
  147. package/lib/opencode/cli/list-sessions.mjs +11 -0
  148. package/lib/opencode/database.cjs +349 -0
  149. package/lib/opencode/database.d.ts +91 -0
  150. package/lib/opencode/database.js +252 -0
  151. package/lib/opencode/database.mjs +28 -0
  152. package/lib/opencode/database.runner.cjs +145 -0
  153. package/lib/opencode/database.runner.d.ts +1 -0
  154. package/lib/opencode/database.runner.js +56 -0
  155. package/lib/opencode/database.runner.mjs +37 -0
  156. package/lib/opencode/install-opencode-plugins-cli.cjs +82 -0
  157. package/lib/opencode/install-opencode-plugins-cli.d.ts +1 -0
  158. package/lib/opencode/install-opencode-plugins-cli.js +78 -0
  159. package/lib/opencode/install-opencode-plugins-cli.mjs +65 -0
  160. package/lib/opencode/opencode-zen.runner.cjs +48 -0
  161. package/lib/opencode/opencode-zen.runner.d.mts +1 -0
  162. package/lib/opencode/opencode-zen.runner.mjs +31 -0
  163. package/lib/opencode/sqlite.cjs +114 -0
  164. package/lib/opencode/sqlite.d.ts +18 -0
  165. package/lib/opencode/sqlite.js +82 -0
  166. package/lib/opencode/sqlite.mjs +10 -0
  167. package/lib/opencode/storage.cjs +124 -0
  168. package/lib/opencode/storage.d.ts +27 -0
  169. package/lib/opencode/storage.js +101 -0
  170. package/lib/opencode/storage.mjs +38 -0
  171. package/lib/opencode/storage.runner.cjs +50 -0
  172. package/lib/opencode/storage.runner.d.ts +1 -0
  173. package/lib/opencode/storage.runner.js +13 -0
  174. package/lib/opencode/storage.runner.mjs +29 -0
  175. package/lib/opencode/types.cjs +17 -0
  176. package/lib/opencode/types.d.ts +31 -0
  177. package/lib/opencode/types.js +2 -0
  178. package/lib/opencode/types.mjs +7 -0
  179. package/lib/opencode/utils/check-api.cjs +373 -0
  180. package/lib/opencode/utils/check-api.d.ts +16 -0
  181. package/lib/opencode/utils/check-api.js +132 -0
  182. package/lib/opencode/utils/check-api.mjs +12 -0
  183. package/lib/opencode/utils/check-api.runner.cjs +0 -0
  184. package/lib/opencode/utils/check-api.runner.d.ts +0 -0
  185. package/lib/opencode/utils/check-api.runner.js +1 -0
  186. package/lib/opencode/utils/check-api.runner.mjs +7 -0
  187. package/lib/opencode-cli.cjs +796 -0
  188. package/lib/opencode-cli.d.ts +2 -0
  189. package/lib/opencode-cli.js +116 -0
  190. package/lib/opencode-cli.mjs +116 -0
  191. package/lib/package-resolutions-updater-cli.cjs +189 -154
  192. package/lib/package-resolutions-updater-cli.mjs +3 -2
  193. package/lib/package-resolutions-updater.cjs +189 -154
  194. package/lib/package-resolutions-updater.d.mts +12 -3
  195. package/lib/package-resolutions-updater.mjs +3 -2
  196. package/lib/print-directory-tree.cjs +139 -3
  197. package/lib/print-directory-tree.mjs +6 -3
  198. package/lib/print-tarball-tree-cli.cjs +305 -0
  199. package/lib/print-tarball-tree-cli.d.mts +2 -0
  200. package/lib/print-tarball-tree-cli.mjs +54 -0
  201. package/lib/print-tarball-tree.cjs +43 -216
  202. package/lib/print-tarball-tree.d.mts +4 -1
  203. package/lib/print-tarball-tree.mjs +12 -66
  204. package/lib/rmpath-cli.cjs +139 -5
  205. package/lib/rmpath-cli.mjs +3 -1
  206. package/lib/rmpath.cjs +155 -11
  207. package/lib/rmpath.mjs +3 -1
  208. package/lib/run-by-checksum/hash.cjs +50 -56
  209. package/lib/run-by-checksum/hash.d.cts +24 -0
  210. package/lib/run-by-checksum/hash.mjs +3 -7
  211. package/lib/run-by-checksum/run.cjs +95 -42
  212. package/lib/run-by-checksum/run.js +3 -3
  213. package/lib/run-by-checksum/run.mjs +2 -2
  214. package/lib/run-by-checksum-cli.cjs +96 -58
  215. package/lib/run-by-checksum-cli.mjs +2 -2
  216. package/lib/submodule-install.cjs +138 -4
  217. package/lib/submodule-install.mjs +5 -4
  218. package/lib/submodule-remove-cli.cjs +139 -5
  219. package/lib/submodule-remove-cli.mjs +3 -1
  220. package/lib/submodule-remove.cjs +154 -5
  221. package/lib/submodule-remove.mjs +3 -1
  222. package/lib/utils/findEnvFiles.cjs +3 -0
  223. package/lib/utils/findEnvFiles.d.cts +2 -2
  224. package/lib/utils/findEnvFiles.mjs +1 -1
  225. package/lib/utils/isDebug.cjs +13 -0
  226. package/lib/utils/isDebug.d.cts +9 -0
  227. package/lib/utils/isDebug.mjs +6 -0
  228. package/lib/vscode/project.cjs +0 -0
  229. package/lib/vscode/project.d.ts +0 -0
  230. package/lib/vscode/project.js +1 -0
  231. package/lib/vscode/project.mjs +7 -0
  232. package/lib/vscode/storage.cjs +138 -0
  233. package/lib/vscode/storage.d.ts +51 -0
  234. package/lib/vscode/storage.js +169 -0
  235. package/lib/vscode/storage.mjs +42 -0
  236. package/lib/vscode/storage.runner.cjs +125 -0
  237. package/lib/vscode/storage.runner.d.ts +1 -0
  238. package/lib/vscode/storage.runner.js +47 -0
  239. package/lib/vscode/storage.runner.mjs +60 -0
  240. package/lib/vscode-cli.cjs +155 -0
  241. package/lib/vscode-cli.d.ts +2 -0
  242. package/lib/vscode-cli.js +80 -0
  243. package/lib/vscode-cli.mjs +71 -0
  244. package/package.json +50 -26
  245. package/readme.md +104 -8
  246. package/releases/readme.md +1 -1
  247. package/src/github-workflows/generate-test-ci-step-cli.mjs +126 -0
  248. package/vendor/clue/ndjson-react/README.md +365 -0
  249. package/vendor/composer/pcre/README.md +189 -0
  250. package/vendor/composer/semver/README.md +99 -0
  251. package/vendor/composer/xdebug-handler/README.md +305 -0
  252. package/vendor/ergebnis/agent-detector/README.md +107 -0
  253. package/vendor/evenement/evenement/README.md +64 -0
  254. package/vendor/fidry/cpu-core-counter/README.md +138 -0
  255. package/vendor/friendsofphp/php-cs-fixer/README.md +97 -0
  256. package/vendor/psr/container/README.md +13 -0
  257. package/vendor/psr/event-dispatcher/README.md +6 -0
  258. package/vendor/psr/log/README.md +58 -0
  259. package/vendor/react/cache/README.md +367 -0
  260. package/vendor/react/child-process/README.md +619 -0
  261. package/vendor/react/dns/README.md +453 -0
  262. package/vendor/react/event-loop/README.md +930 -0
  263. package/vendor/react/promise/README.md +722 -0
  264. package/vendor/react/socket/README.md +1564 -0
  265. package/vendor/react/stream/README.md +1249 -0
  266. package/vendor/sebastian/diff/README.md +151 -0
  267. package/vendor/symfony/console/README.md +30 -0
  268. package/vendor/symfony/deprecation-contracts/README.md +26 -0
  269. package/vendor/symfony/event-dispatcher/README.md +25 -0
  270. package/vendor/symfony/event-dispatcher-contracts/README.md +9 -0
  271. package/vendor/symfony/filesystem/README.md +23 -0
  272. package/vendor/symfony/finder/README.md +24 -0
  273. package/vendor/symfony/options-resolver/README.md +25 -0
  274. package/vendor/symfony/polyfill-ctype/README.md +12 -0
  275. package/vendor/symfony/polyfill-intl-grapheme/README.md +32 -0
  276. package/vendor/symfony/polyfill-intl-normalizer/README.md +14 -0
  277. package/vendor/symfony/polyfill-mbstring/README.md +13 -0
  278. package/vendor/symfony/polyfill-php80/README.md +25 -0
  279. package/vendor/symfony/polyfill-php81/README.md +18 -0
  280. package/vendor/symfony/polyfill-php84/README.md +23 -0
  281. package/vendor/symfony/polyfill-php85/README.md +20 -0
  282. package/vendor/symfony/process/README.md +23 -0
  283. package/vendor/symfony/service-contracts/README.md +9 -0
  284. package/vendor/symfony/stopwatch/README.md +52 -0
  285. package/vendor/symfony/string/README.md +24 -0
  286. package/lib/chunk-WSHVPGNM.mjs +0 -44
  287. package/lib/chunk-X2B3X7D4.mjs +0 -35
  288. package/lib/del-gradle.js +0 -16
  289. package/lib/del-node-modules.js +0 -211
  290. package/lib/find-node-modules-cli.js +0 -4
  291. package/lib/run-by-checksum/hash.d.ts +0 -14
  292. package/lib/run-by-checksum/hash.js +0 -85
  293. package/readme.html +0 -784
  294. /package/lib/{clean-github-actions-caches-cli.d.cts → del-gradle.d.cts} +0 -0
  295. /package/lib/{del-gradle.d.ts → del-node-modules.d.cts} +0 -0
  296. /package/lib/{find-node-modules-cli.d.ts → find-node-modules-cli.d.cts} +0 -0
  297. /package/lib/{git-diff-cli.d.ts → git/git-diff-cli.d.ts} +0 -0
  298. /package/lib/{git-diff-cli.js → git/git-diff-cli.js} +0 -0
  299. /package/lib/{git-diff.d.ts → git/git-diff.d.ts} +0 -0
  300. /package/lib/{git-fix.d.cts → git/git-fix.d.cts} +0 -0
  301. /package/lib/{git-purge.d.cts → git/git-purge.d.cts} +0 -0
  302. /package/lib/{del-node-modules.d.ts → github-workflows/clean-github-actions-caches-cli.d.cts} +0 -0
  303. /package/lib/{clean-github-actions-caches.d.cts → github-workflows/clean-github-actions-caches.d.cts} +0 -0
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "binary-collections",
11
- version: "2.0.13",
11
+ version: "2.0.15",
12
12
  description: "Utility to clean any programming caches and more",
13
13
  keywords: [
14
14
  "cache",
@@ -42,12 +42,13 @@ var require_package = __commonJS({
42
42
  },
43
43
  types: "lib/index.d.ts",
44
44
  files: [
45
- "binaries",
46
- "lib",
47
- "docs-src",
45
+ "binaries/**/*",
46
+ "lib/**/*",
47
+ "docs-src/*.md",
48
48
  "readme.md",
49
49
  ".puppeterrc.cjs",
50
- "requirements.txt"
50
+ "requirements.txt",
51
+ ".github/**/*"
51
52
  ],
52
53
  scripts: {
53
54
  build: "tsc -b tsconfig.build.json && npm run build-tsup && npm run build-exports",
@@ -59,13 +60,16 @@ var require_package = __commonJS({
59
60
  pack: "node package.cjs --yarn --filename=bin",
60
61
  prepare: "husky",
61
62
  "puppeteer:browser": "npx -y puppeteer browsers install chrome",
62
- test: "test-cjs",
63
+ test: "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --forceExit --testTimeout=120000 --detectOpenHandles",
63
64
  "test-coverage": "npm test --coverage --detectOpenHandles",
64
65
  "test-esm": "test-esm",
65
66
  "test-nrs": "npm test -- nrs build-**",
66
67
  "test-watch": "npm test --watch",
67
68
  "update:ncu": "npx npm-check-updates -u --enginesNode --root -x jest -x @types/jest -x babel-jest -x @babel/core -x @babel/preset-env -x @babel/preset-typescript -x ts-jest -x eslint -x @eslint/eslintrc -x @eslint/js -x @typescript-eslint/eslint-plugin -x @typescript-eslint/parser -x eslint-config-prettier -x eslint-plugin-prettier -x typescript-eslint -x prettier -x typescript -x ts-node -x @yarnpkg/core",
68
- "update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.cjs"
69
+ "update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.cjs",
70
+ serve: "php -S 0.0.0.0:8490",
71
+ upload: "node scripts/upload-backend.mjs",
72
+ "mkdocs-serve": 'mkdocs serve -a "0.0.0.0:5173" --livereload'
69
73
  },
70
74
  repository: {
71
75
  type: "git",
@@ -75,6 +79,8 @@ var require_package = __commonJS({
75
79
  "@yarnpkg/core": "^4.7.0",
76
80
  "ansi-colors": "^4.1.3",
77
81
  axios: "^1.16.1",
82
+ "better-sqlite3": "^12.10.0",
83
+ cosmiconfig: "^9.0.1",
78
84
  "cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/78b09a1f799430fb251c1b438ec56ce7957674f4/release/cross-spawn.tgz",
79
85
  "crypto-js": "^4.2.0",
80
86
  dotenv: "^17.4.2",
@@ -83,6 +89,8 @@ var require_package = __commonJS({
83
89
  glob: "^13.0.6",
84
90
  minimatch: "^10.2.5",
85
91
  minimist: "^1.2.8",
92
+ openai: "^6.41.0",
93
+ "proxy-agent": "^8.0.1",
86
94
  "ps-node": "^0.1.6",
87
95
  puppeteer: "^25.0.4",
88
96
  "puppeteer-extra": "^3.3.6",
@@ -92,21 +100,23 @@ var require_package = __commonJS({
92
100
  upath: "^3.0.7",
93
101
  which: "^7.0.0",
94
102
  yaml: "^2.9.0",
95
- yarn: "^1.22.22",
96
- zlib: "^1.0.5"
103
+ yarn: "^1.22.22"
97
104
  },
98
105
  devDependencies: {
99
106
  "@babel/core": "^7.29.0",
100
107
  "@babel/plugin-syntax-import-assertions": "^7.28.6",
101
108
  "@babel/preset-env": "^7.29.2",
102
109
  "@babel/preset-typescript": "^7.28.5",
103
- "@dimaslanjaka/eslint-base-config": "^1.0.1",
110
+ "@dimaslanjaka/eslint-base-config": "^1.0.2",
111
+ "@rollup/plugin-alias": "^6.0.0",
104
112
  "@rollup/plugin-babel": "^7.0.0",
105
- "@rollup/plugin-commonjs": "^29.0.2",
113
+ "@rollup/plugin-commonjs": "^29.0.3",
106
114
  "@rollup/plugin-json": "^6.1.0",
107
115
  "@rollup/plugin-node-resolve": "^16.0.3",
116
+ "@rollup/plugin-typescript": "^12.3.0",
108
117
  "@types/babel__core": "^7",
109
118
  "@types/babel__preset-env": "^7",
119
+ "@types/better-sqlite3": "^7.6.13",
110
120
  "@types/crypto-js": "^4",
111
121
  "@types/fs-extra": "^11",
112
122
  "@types/jest": "^30.0.0",
@@ -123,10 +133,11 @@ var require_package = __commonJS({
123
133
  gulp: "^5.0.1",
124
134
  husky: "^9.1.7",
125
135
  jest: "^30.4.2",
126
- "lint-staged": "^17.0.5",
136
+ "lint-staged": "^17.0.7",
127
137
  marked: "^18.0.4",
128
138
  rimraf: "^6.1.3",
129
- rollup: "^4.60.4",
139
+ rollup: "^4.0.0",
140
+ "ssh2-sftp-client": "^12.1.1",
130
141
  "ts-jest": "^29.4.9",
131
142
  "ts-node": "^10.9.2",
132
143
  tsup: "^8.5.1",
@@ -142,12 +153,13 @@ var require_package = __commonJS({
142
153
  packageManager: "yarn@4.9.2",
143
154
  resolutions: {
144
155
  "@types/through2": "https://github.com/dimaslanjaka/nodejs-package-types/raw/refs/heads/through2/release/types-through2.tgz",
145
- "cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/78b09a1f799430fb251c1b438ec56ce7957674f4/release/cross-spawn.tgz",
146
- "git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/dd8c8ef596083f367c592f97a2439f9fc8ab33b2/release/git-command-helper.tgz",
156
+ "cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/eb82c8e0e60ce425fdf6e89cd53f4391bb8c77cd/release/cross-spawn.tgz",
157
+ "git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/7a28dad83c17abfc4b6ccd2b7327c39ff67adfe5/release/git-command-helper.tgz",
147
158
  "sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/44e5c7b79b4e60f8c2d34857c27b8ce677d7493e/packages/sbg-utility/release/sbg-utility.tgz",
148
- "@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/9741b4feac89f303ea585e3ecac2b0e768434135/release/dimaslanjaka-eslint-base-config.tgz"
159
+ "@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/822b872f18985462f0da358579cd6493472a2ee0/release/dimaslanjaka-eslint-base-config.tgz"
149
160
  },
150
161
  bin: {
162
+ "actions-badge": "lib/github-workflows/workflow-badge-cli.cjs",
151
163
  "binary-collections": "lib/binary-collections.cjs",
152
164
  "binary-executor": "binaries/binary-executor.cjs",
153
165
  "build-package": "lib/node-package-packer-cli.cjs",
@@ -155,13 +167,14 @@ var require_package = __commonJS({
155
167
  "build-tarball": "lib/node-package-packer-cli.cjs",
156
168
  changelog: "lib/changelog.cjs",
157
169
  chatgpt: "lib/free-chatgpt.cjs",
158
- "clean-github-actions-cache": "lib/clean-github-actions-caches-cli.cjs",
159
- "clean-github-actions-caches": "lib/clean-github-actions-caches-cli.cjs",
170
+ "clean-github-actions-cache": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
171
+ "clean-github-actions-caches": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
160
172
  "clean-nodemodule": "binaries/clean-nodemodule.cjs",
161
173
  "clean-nodemodules": "binaries/clean-nodemodules.cjs",
162
- "clear-gh-caches": "lib/clean-github-actions-caches-cli.cjs",
163
- "clear-github-actions-cache": "lib/clean-github-actions-caches-cli.cjs",
164
- "clear-github-actions-caches": "lib/clean-github-actions-caches-cli.cjs",
174
+ "clear-gh-caches": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
175
+ "clear-github-actions-cache": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
176
+ "clear-github-actions-caches": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
177
+ composer: "binaries/composer.cjs",
165
178
  copy: "lib/file/copy-cli.cjs",
166
179
  "copy-file": "lib/file/copy-cli.cjs",
167
180
  "del-gradle": "lib/del-gradle.cjs",
@@ -182,15 +195,20 @@ var require_package = __commonJS({
182
195
  "file-downloader": "lib/downloader-cli.cjs",
183
196
  "find-node-modules": "lib/find-node-modules-cli.cjs",
184
197
  "free-chatgpt": "lib/free-chatgpt.cjs",
185
- "git-diff": "lib/git-diff-cli.cjs",
186
- "git-fix": "lib/git-fix.cjs",
187
- "git-purge": "lib/git-purge.cjs",
198
+ "generate-test-ci": "src/github-workflows/generate-test-ci-step-cli.mjs",
199
+ "get-latest-workflow": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
200
+ "get-latest-workflow-status": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
201
+ "gh-status-badge": "lib/github-workflows/workflow-badge-cli.cjs",
202
+ "git-diff": "lib/git/git-diff-cli.cjs",
203
+ "git-fix": "lib/git/git-fix.cjs",
204
+ "git-purge": "lib/git/git-purge.cjs",
188
205
  "git-reduce-size": "binaries/git-reduce-size.cjs",
189
206
  "git-undo-commit": "lib/git/undo-commit.cjs",
190
207
  "git-undo-staged": "lib/git/undo-staged.cjs",
191
208
  javakill: "binaries/javakill.cjs",
192
209
  "kill-night-crows": "lib/kill-night-crows.cjs",
193
210
  "kill-process": "binaries/kill-process.cjs",
211
+ "latest-workflow": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
194
212
  move: "lib/file/move-cli.cjs",
195
213
  "move-file": "lib/file/move-cli.cjs",
196
214
  "node-cache-cleaner": "lib/node-cache-cleaner-cli.cjs",
@@ -202,6 +220,8 @@ var require_package = __commonJS({
202
220
  nodekill: "binaries/nodekill.cjs",
203
221
  "npm-run-series": "lib/npm-run-series.cjs",
204
222
  nrs: "lib/npm-run-series.cjs",
223
+ opc: "lib/opencode-cli.cjs",
224
+ "opencode-cli": "lib/opencode-cli.cjs",
205
225
  "pack-node-package": "lib/node-package-packer-cli.cjs",
206
226
  "pack-tarball": "lib/node-package-packer-cli.cjs",
207
227
  "package-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
@@ -209,7 +229,7 @@ var require_package = __commonJS({
209
229
  "pkg-res-updater": "lib/package-resolutions-updater-cli.cjs",
210
230
  "pkg-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
211
231
  "print-directory-tree": "lib/print-directory-tree.cjs",
212
- "print-tarball-tree": "lib/print-tarball-tree.cjs",
232
+ "print-tarball-tree": "lib/print-tarball-tree-cli.cjs",
213
233
  "print-tree": "lib/print-directory-tree.cjs",
214
234
  prod: "binaries/prod.cjs",
215
235
  py: "binaries/py.cjs",
@@ -236,6 +256,10 @@ var require_package = __commonJS({
236
256
  "undo-commit": "lib/git/undo-commit.cjs",
237
257
  "undo-last-commit": "lib/git/undo-commit.cjs",
238
258
  "undo-staged": "lib/git/undo-staged.cjs",
259
+ "vscode-cli": "lib/vscode-cli.cjs",
260
+ "wf-badge": "lib/github-workflows/workflow-badge-cli.cjs",
261
+ "wf-status": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
262
+ "workflow-badge": "lib/github-workflows/workflow-badge-cli.cjs",
239
263
  "y-install": "lib/yarn-per-branch-lock-installer.cjs",
240
264
  "yarn-clean": "binaries/yarn-clean.cjs",
241
265
  "yarn-install": "lib/yarn-per-branch-lock-installer.cjs",
@@ -0,0 +1,183 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import {
3
+ init_esm_shims
4
+ } from "./chunk-QQ4A6DLD.mjs";
5
+
6
+ // src/github-workflows/workflow-badge-generator.mjs
7
+ init_esm_shims();
8
+ var COLORS = {
9
+ success: "#2da44e",
10
+ failure: "#cf222e",
11
+ cancelled: "#656d76",
12
+ skipped: "#656d76",
13
+ inProgress: "#d4920b",
14
+ pending: "#656d76",
15
+ unknown: "#656d76",
16
+ text: "#1f2328",
17
+ textSecondary: "#656d76",
18
+ border: "#d0d7de",
19
+ bg: "#ffffff",
20
+ cardBg: "#f6f8fa"
21
+ };
22
+ function getStatusMeta(run) {
23
+ const { status, conclusion } = run;
24
+ if (conclusion === "success") return { label: "Passing", color: COLORS.success };
25
+ if (conclusion === "failure") return { label: "Failing", color: COLORS.failure };
26
+ if (conclusion === "cancelled") return { label: "Cancelled", color: COLORS.cancelled };
27
+ if (conclusion === "skipped") return { label: "Skipped", color: COLORS.skipped };
28
+ if (status === "in_progress") return { label: "In Progress", color: COLORS.inProgress };
29
+ if (status === "queued" || status === "pending") return { label: "Pending", color: COLORS.pending };
30
+ return { label: status || "Unknown", color: COLORS.unknown };
31
+ }
32
+ function esc(str) {
33
+ return String(str).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
34
+ }
35
+ function countSteps(jobs) {
36
+ let total = 0, passed = 0, failed = 0, skipped = 0, pending = 0;
37
+ for (const job of jobs) {
38
+ for (const step of job.steps || []) {
39
+ total++;
40
+ if (step.conclusion === "success") passed++;
41
+ else if (step.conclusion === "failure") failed++;
42
+ else if (step.conclusion === "skipped") skipped++;
43
+ else pending++;
44
+ }
45
+ }
46
+ return { total, passed, failed, skipped, pending };
47
+ }
48
+ function jobColor(job) {
49
+ if (job.conclusion === "success") return COLORS.success;
50
+ if (job.conclusion === "failure") return COLORS.failure;
51
+ if (job.status === "in_progress") return COLORS.inProgress;
52
+ return COLORS.pending;
53
+ }
54
+ function generateBadge(run, jobs, options = {}) {
55
+ const width = options.width || 520;
56
+ const maxSteps = options.maxSteps;
57
+ const { label: statusLabel, color: accentColor } = getStatusMeta(run);
58
+ const steps = countSteps(jobs);
59
+ const PAD = 20;
60
+ const W = width;
61
+ const RIGHT = width - PAD;
62
+ const INNER_W = RIGHT - PAD;
63
+ const els = [];
64
+ const el = (str) => els.push(str);
65
+ const LABEL_X = PAD;
66
+ const VALUE_X = 110;
67
+ let yCursor = 0;
68
+ const divider = () => {
69
+ yCursor += 4;
70
+ el(`<line x1="${PAD}" y1="${yCursor}" x2="${RIGHT}" y2="${yCursor}" stroke="${COLORS.border}" stroke-width="1"/>`);
71
+ yCursor += 5;
72
+ };
73
+ const sectionHeading = (text) => {
74
+ yCursor += 8;
75
+ el(
76
+ `<text x="${PAD}" y="${yCursor + 13}" font-size="11" font-weight="700" fill="${COLORS.textSecondary}" letter-spacing="0.5">${esc(text)}</text>`
77
+ );
78
+ yCursor += 22;
79
+ };
80
+ el(`<rect x="0" y="0" width="${W}" height="4" fill="${accentColor}"/>`);
81
+ yCursor = 4;
82
+ yCursor += 14;
83
+ const titleBaseline = yCursor + 15;
84
+ el(
85
+ `<text x="${PAD}" y="${titleBaseline}" font-size="15" font-weight="700" fill="${COLORS.text}">Workflow Status</text>`
86
+ );
87
+ const pillText = statusLabel;
88
+ const pillTextW = pillText.length * 7.8 + 32;
89
+ const pillX = RIGHT - pillTextW;
90
+ const pillY = titleBaseline - 12;
91
+ el(`<rect x="${pillX}" y="${pillY}" width="${pillTextW}" height="22" rx="11" fill="${accentColor}" opacity="0.12"/>`);
92
+ el(`<circle cx="${pillX + 14}" cy="${titleBaseline - 2}" r="4.5" fill="${accentColor}"/>`);
93
+ el(
94
+ `<text x="${pillX + 24}" y="${titleBaseline + 1}" font-size="12" font-weight="600" fill="${accentColor}">${esc(pillText)}</text>`
95
+ );
96
+ yCursor = titleBaseline + 4;
97
+ divider();
98
+ const metaRows = [
99
+ { label: "Workflow", value: run.name || "" },
100
+ { label: "Status", value: `${run.status}${run.conclusion ? ` (${run.conclusion})` : ""}` },
101
+ { label: "Branch", value: run.head_branch || "" },
102
+ { label: "Run ID", value: `#${run.id || ""}` }
103
+ ];
104
+ for (const row of metaRows) {
105
+ const rowBaseline = yCursor + 14;
106
+ el(
107
+ `<text x="${LABEL_X}" y="${rowBaseline}" font-size="12" fill="${COLORS.textSecondary}">${esc(row.label)}</text>`
108
+ );
109
+ el(
110
+ `<text x="${VALUE_X}" y="${rowBaseline}" font-size="13" fill="${COLORS.text}" font-weight="500">${esc(row.value)}</text>`
111
+ );
112
+ yCursor += 22;
113
+ }
114
+ divider();
115
+ sectionHeading("JOBS");
116
+ for (const job of jobs) {
117
+ const jColor = jobColor(job);
118
+ const jStatus = job.conclusion || job.status;
119
+ el(`<rect x="${PAD}" y="${yCursor}" width="${INNER_W}" height="28" rx="6" fill="${COLORS.cardBg}"/>`);
120
+ el(
121
+ `<text x="${PAD + 10}" y="${yCursor + 18}" font-size="13" font-weight="600" fill="${COLORS.text}">${esc(job.name)}</text>`
122
+ );
123
+ const jobStatusX = RIGHT - 14;
124
+ el(`<circle cx="${jobStatusX - 16}" cy="${yCursor + 14}" r="3.5" fill="${jColor}"/>`);
125
+ el(
126
+ `<text x="${jobStatusX}" y="${yCursor + 18}" font-size="11" fill="${COLORS.textSecondary}" text-anchor="end">${esc(jStatus)}</text>`
127
+ );
128
+ yCursor += 34;
129
+ if (job.steps && job.steps.length > 0) {
130
+ const stepsToRender = maxSteps ? job.steps.slice(0, maxSteps) : job.steps;
131
+ const hiddenCount = maxSteps ? job.steps.length - maxSteps : 0;
132
+ for (const step of stepsToRender) {
133
+ const sIcon = step.conclusion === "success" ? "\u2713" : step.conclusion === "failure" ? "\u2717" : step.conclusion === "skipped" ? "\u2013" : "\u25CB";
134
+ const sColor = step.conclusion === "success" ? COLORS.success : step.conclusion === "failure" ? COLORS.failure : step.conclusion === "skipped" ? COLORS.textSecondary : COLORS.inProgress;
135
+ el(`<text x="${PAD + 18}" y="${yCursor + 13}" font-size="12" fill="${sColor}">${sIcon}</text>`);
136
+ let stepName = step.name || "";
137
+ const maxChars = 52;
138
+ if (stepName.length > maxChars) {
139
+ stepName = stepName.slice(0, maxChars - 3) + "...";
140
+ }
141
+ el(`<text x="${PAD + 36}" y="${yCursor + 13}" font-size="12" fill="${COLORS.text}">${esc(stepName)}</text>`);
142
+ const stepStatus = step.conclusion || step.status || "";
143
+ el(
144
+ `<text x="${RIGHT}" y="${yCursor + 13}" font-size="11" fill="${COLORS.textSecondary}" text-anchor="end">${esc(stepStatus)}</text>`
145
+ );
146
+ yCursor += 20;
147
+ }
148
+ if (hiddenCount > 0) {
149
+ el(
150
+ `<text x="${PAD + 18}" y="${yCursor + 13}" font-size="12" fill="${COLORS.textSecondary}" font-style="italic">and ${hiddenCount} more step${hiddenCount !== 1 ? "s" : ""}...</text>`
151
+ );
152
+ yCursor += 20;
153
+ }
154
+ yCursor += 4;
155
+ }
156
+ }
157
+ divider();
158
+ const footerParts = [];
159
+ if (steps.passed > 0) footerParts.push(`${steps.passed} \u2713 passed`);
160
+ if (steps.failed > 0) footerParts.push(`${steps.failed} \u2717 failed`);
161
+ if (steps.pending > 0) footerParts.push(`${steps.pending} \u25CB pending`);
162
+ if (steps.skipped > 0) footerParts.push(`${steps.skipped} \u2013 skipped`);
163
+ const footerText = footerParts.length > 0 ? footerParts.join(" \xB7 ") : "No steps recorded";
164
+ el(`<text x="${PAD}" y="${yCursor + 13}" font-size="12" fill="${COLORS.textSecondary}">${esc(footerText)}</text>`);
165
+ yCursor += 22;
166
+ const totalHeight = yCursor + 6;
167
+ const svg = [
168
+ `<svg xmlns="http://www.w3.org/2000/svg" width="${W}" height="${totalHeight}" viewBox="0 0 ${W} ${totalHeight}" font-family="-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif">`,
169
+ ` <defs>`,
170
+ ` <filter id="badge-shadow" x="-2%" y="-2%" width="104%" height="104%">`,
171
+ ` <feDropShadow dx="0" dy="1" stdDeviation="3" flood-color="#000" flood-opacity="0.12"/>`,
172
+ ` </filter>`,
173
+ ` </defs>`,
174
+ ` <rect x="0.5" y="0.5" width="${W - 1}" height="${totalHeight - 1}" rx="8" fill="${COLORS.bg}" stroke="${COLORS.border}" stroke-width="1" filter="url(#badge-shadow)"/>`,
175
+ ...els,
176
+ `</svg>`
177
+ ].join("\n");
178
+ return svg;
179
+ }
180
+
181
+ export {
182
+ generateBadge
183
+ };
@@ -0,0 +1,82 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import {
3
+ init_esm_shims
4
+ } from "./chunk-QQ4A6DLD.mjs";
5
+
6
+ // src/opencode/storage.ts
7
+ init_esm_shims();
8
+ import path from "upath";
9
+ import os from "os";
10
+ import fs from "fs-extra";
11
+ import { parse as parseJsonc } from "jsonc-parser";
12
+ var OPCODE_DIR = path.join(os.homedir(), ".local/share/opencode");
13
+ var CONFIG_DIR = path.join(os.homedir(), ".config/opencode");
14
+ var CACHE_DIR = path.join(os.homedir(), ".cache/opencode");
15
+ var LOG_DIR = path.join(OPCODE_DIR, "log");
16
+ var AUTH_PATH = path.join(OPCODE_DIR, "auth.json");
17
+ var PROJECT_DIR = path.join(OPCODE_DIR, "project");
18
+ var STORAGE_PATH = path.join(OPCODE_DIR, "storage");
19
+ var SESSION_PATH = path.join(STORAGE_PATH, "session");
20
+ var SESSION_DIFF_DIR = path.join(STORAGE_PATH, "session_diff");
21
+ var DATABASE_PATH = path.join(OPCODE_DIR, "opencode.db");
22
+ async function scanJson(dir) {
23
+ const results = [];
24
+ try {
25
+ const entries = await fs.readdir(dir);
26
+ for (const entry of entries) {
27
+ if (!entry.endsWith(".json")) continue;
28
+ const content = await fs.readFile(path.join(dir, entry), "utf-8");
29
+ results.push(JSON.parse(content));
30
+ }
31
+ } catch {
32
+ }
33
+ return results;
34
+ }
35
+ async function scanDirs(dir) {
36
+ try {
37
+ const entries = await fs.readdir(dir, { withFileTypes: true });
38
+ return entries.filter((e) => e.isDirectory()).map((e) => e.name);
39
+ } catch {
40
+ return [];
41
+ }
42
+ }
43
+ async function readJson(filePath) {
44
+ try {
45
+ const content = await fs.readFile(filePath, "utf-8");
46
+ return parseJsonc(content);
47
+ } catch {
48
+ return null;
49
+ }
50
+ }
51
+ function getSessionFileById(sessionId) {
52
+ return path.join(SESSION_DIFF_DIR, `${sessionId}.json`);
53
+ }
54
+ function getOpenCodeAuth() {
55
+ const file = path.join(OPCODE_DIR, "auth.json");
56
+ if (!fs.existsSync(file)) return null;
57
+ return readJson(file);
58
+ }
59
+ async function saveOpenCodeAuth(auth) {
60
+ const file = path.join(OPCODE_DIR, "auth.json");
61
+ await fs.ensureFile(file);
62
+ await fs.writeFile(file, JSON.stringify(auth, null, 2), "utf-8");
63
+ }
64
+
65
+ export {
66
+ OPCODE_DIR,
67
+ CONFIG_DIR,
68
+ CACHE_DIR,
69
+ LOG_DIR,
70
+ AUTH_PATH,
71
+ PROJECT_DIR,
72
+ STORAGE_PATH,
73
+ SESSION_PATH,
74
+ SESSION_DIFF_DIR,
75
+ DATABASE_PATH,
76
+ scanJson,
77
+ scanDirs,
78
+ readJson,
79
+ getSessionFileById,
80
+ getOpenCodeAuth,
81
+ saveOpenCodeAuth
82
+ };
@@ -5,15 +5,16 @@ import {
5
5
  saveCache
6
6
  } from "./chunk-QD4T255Z.mjs";
7
7
  import {
8
- buildChecksum,
9
- getAllFiles
10
- } from "./chunk-WSHVPGNM.mjs";
8
+ require_hash
9
+ } from "./chunk-V6PTSDW5.mjs";
11
10
  import {
11
+ __toESM,
12
12
  init_esm_shims
13
13
  } from "./chunk-QQ4A6DLD.mjs";
14
14
 
15
15
  // src/run-by-checksum/run.js
16
16
  init_esm_shims();
17
+ var import_hash = __toESM(require_hash(), 1);
17
18
  import { spawn } from "child_process";
18
19
  async function runChecksum({
19
20
  patterns = [],
@@ -34,8 +35,8 @@ async function runChecksum({
34
35
  console.log("No patterns provided, skipping checksum runner.");
35
36
  process.exit(1);
36
37
  }
37
- const files = getAllFiles({ patterns, ignore, cwd });
38
- const checksum = buildChecksum(files);
38
+ const files = (0, import_hash.getAllFiles)({ patterns, ignore, cwd });
39
+ const checksum = (0, import_hash.buildChecksum)(files);
39
40
  const cacheFile = getCacheFile({ patterns, ignore, cwd });
40
41
  const cache = loadCache(cacheFile);
41
42
  if ((cache == null ? void 0 : cache.checksum) === checksum) {
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
2
  import {
3
- require_findEnvFiles
4
- } from "./chunk-H44UWUFY.mjs";
3
+ require_config
4
+ } from "./chunk-3T6AMFI3.mjs";
5
5
  import {
6
6
  require_utils
7
7
  } from "./chunk-6RK5UCTP.mjs";
@@ -11,19 +11,13 @@ import {
11
11
  init_esm_shims
12
12
  } from "./chunk-QQ4A6DLD.mjs";
13
13
 
14
- // src/clean-github-actions-caches.cjs
14
+ // src/github-workflows/clean-github-actions-caches.cjs
15
15
  var require_clean_github_actions_caches = __commonJS({
16
- "src/clean-github-actions-caches.cjs"(exports, module) {
16
+ "src/github-workflows/clean-github-actions-caches.cjs"(exports, module) {
17
17
  init_esm_shims();
18
18
  var axios = __require("axios");
19
19
  var { getArgs } = require_utils();
20
- var { findEnvWithToken } = require_findEnvFiles();
21
- __require("dotenv").config({
22
- path: findEnvWithToken(),
23
- quiet: true,
24
- overwrite: true
25
- });
26
- var ACCESS_TOKEN = process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN;
20
+ var { GITHUB_ACCESS_TOKEN: ACCESS_TOKEN } = require_config();
27
21
  if (!ACCESS_TOKEN) {
28
22
  throw new Error(
29
23
  "Access token is not provided. Please set ACCESS_TOKEN or GITHUB_TOKEN in your environment variables."
@@ -0,0 +1,46 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import {
3
+ loadSessions
4
+ } from "./chunk-LACQTD5V.mjs";
5
+ import {
6
+ init_esm_shims
7
+ } from "./chunk-QQ4A6DLD.mjs";
8
+
9
+ // src/opencode/cli/list-sessions.ts
10
+ init_esm_shims();
11
+ import moment from "moment";
12
+ async function handleListSessions() {
13
+ const sessions = await loadSessions();
14
+ const grouped = /* @__PURE__ */ new Map();
15
+ for (const s of sessions) {
16
+ const dir = s.directory || "(no directory)";
17
+ if (!grouped.has(dir)) grouped.set(dir, []);
18
+ grouped.get(dir).push(s);
19
+ }
20
+ console.log(`Sessions (${sessions.length} total, ${grouped.size} directories):
21
+ `);
22
+ for (const [dir, dirSessions] of grouped) {
23
+ console.log(` ${dir}`);
24
+ const slugWidth = Math.max(...dirSessions.map((s) => s.slug.length), 4);
25
+ const titleWidth = Math.max(...dirSessions.map((s) => (s.title || "-").length), 5);
26
+ const dateWidth = Math.max(
27
+ ...dirSessions.map((s) => moment(s.time.created).format("YYYY-MM-DDTHH:mm:ssZ").length),
28
+ 25
29
+ );
30
+ const sep = "\u2500".repeat(Math.max(dir.length, slugWidth + titleWidth + dateWidth + 15));
31
+ console.log(` ${sep}`);
32
+ console.log(` ${"Slug".padEnd(slugWidth)} ${"Title".padEnd(titleWidth)} ${"Date".padEnd(dateWidth)} Version`);
33
+ const rowSep = "\u2500".repeat(slugWidth + titleWidth + dateWidth + 17);
34
+ console.log(` ${rowSep}`);
35
+ for (const s of dirSessions) {
36
+ console.log(
37
+ ` ${s.slug.padEnd(slugWidth)} ${(s.title || "-").padEnd(titleWidth)} ${moment(s.time.created).format("YYYY-MM-DDTHH:mm:ssZ").padEnd(dateWidth)} ${s.version}`
38
+ );
39
+ }
40
+ console.log();
41
+ }
42
+ }
43
+
44
+ export {
45
+ handleListSessions
46
+ };
@@ -180,7 +180,7 @@ var require_utils = __commonJS({
180
180
  }
181
181
  });
182
182
 
183
- // src/del-gradle.js
183
+ // src/del-gradle.cjs
184
184
  init_cjs_shims();
185
185
  var glob = require("glob");
186
186
  var path = require("upath");
@@ -3,24 +3,30 @@ import {
3
3
  require_utils
4
4
  } from "./chunk-6RK5UCTP.mjs";
5
5
  import {
6
+ __commonJS,
6
7
  __require,
7
8
  init_esm_shims
8
9
  } from "./chunk-QQ4A6DLD.mjs";
9
10
 
10
- // src/del-gradle.js
11
- init_esm_shims();
12
- var glob = __require("glob");
13
- var path = __require("upath");
14
- var { del } = require_utils();
15
- var globStream = new glob.Glob(["**/build.gradle"], {
16
- withFileTypes: false,
17
- cwd: process.cwd(),
18
- ignore: ["**/node_modules/**", "**/vendor/**"]
19
- });
20
- globStream.stream().on("data", (result) => {
21
- const fullPath = path.resolve(process.cwd(), result);
22
- const base = path.dirname(fullPath);
23
- const buildFolder = path.join(base, "build");
24
- console.log("delete build folder", buildFolder);
25
- del(buildFolder);
11
+ // src/del-gradle.cjs
12
+ var require_del_gradle = __commonJS({
13
+ "src/del-gradle.cjs"() {
14
+ init_esm_shims();
15
+ var glob = __require("glob");
16
+ var path = __require("upath");
17
+ var { del } = require_utils();
18
+ var globStream = new glob.Glob(["**/build.gradle"], {
19
+ withFileTypes: false,
20
+ cwd: process.cwd(),
21
+ ignore: ["**/node_modules/**", "**/vendor/**"]
22
+ });
23
+ globStream.stream().on("data", (result) => {
24
+ const fullPath = path.resolve(process.cwd(), result);
25
+ const base = path.dirname(fullPath);
26
+ const buildFolder = path.join(base, "build");
27
+ console.log("delete build folder", buildFolder);
28
+ del(buildFolder);
29
+ });
30
+ }
26
31
  });
32
+ export default require_del_gradle();
@@ -180,7 +180,7 @@ var require_utils = __commonJS({
180
180
  }
181
181
  });
182
182
 
183
- // src/del-node-modules.js
183
+ // src/del-node-modules.cjs
184
184
  init_cjs_shims();
185
185
  var fs = require("fs");
186
186
  var fsp = fs.promises;