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.
- package/.opencode/plugins/opencode-request-logger/README.md +44 -0
- package/.venv/Lib/site-packages/pyarrow/tests/data/orc/README.md +22 -0
- package/binaries/binary-executor.cjs +307 -238
- package/binaries/clean-nodemodule.cjs +307 -238
- package/binaries/clean-nodemodules.cjs +307 -238
- package/binaries/composer.cjs +323 -0
- package/binaries/composer.cmd +2 -0
- package/binaries/composer.phar +0 -0
- package/binaries/dev.cjs +307 -238
- package/binaries/empty.cjs +307 -238
- package/binaries/git-reduce-size.cjs +307 -238
- package/binaries/javakill.cjs +307 -238
- package/binaries/kill-process.cjs +307 -238
- package/binaries/nodekill.cjs +307 -238
- package/binaries/prod.cjs +307 -238
- package/binaries/py.cjs +307 -238
- package/binaries/rmfind.cjs +307 -238
- package/binaries/rmx.cjs +307 -238
- package/binaries/submodule-token.cjs +307 -238
- package/binaries/test-cjs.cjs +307 -238
- package/binaries/test-esm.cjs +307 -238
- package/binaries/yarn-clean.cjs +307 -238
- package/binaries/yc.cjs +307 -238
- package/binaries/ycw.cjs +307 -238
- package/docs-src/binary-collections.md +1 -1
- package/docs-src/clean-github-actions-caches.md +1 -1
- package/docs-src/copy-move-file.md +1 -4
- package/docs-src/del-ps.md +1 -1
- package/docs-src/find-node-modules.md +1 -1
- package/docs-src/generate-test-ci.md +56 -0
- package/docs-src/get-latest-workflow-status.md +100 -0
- package/docs-src/git-diff.md +1 -1
- package/docs-src/git-fix.md +1 -1
- package/docs-src/git-purge.md +1 -1
- package/docs-src/install-opencode-plugins.md +86 -0
- package/docs-src/kill-night-crows.md +1 -1
- package/docs-src/node-cache-cleaner.md +2 -2
- package/docs-src/node-package-packer.md +1 -1
- package/docs-src/opencode-cli.md +155 -0
- package/docs-src/package-resolutions-updater.md +1 -1
- package/docs-src/rmpath.md +1 -1
- package/docs-src/run-by-checksum.md +1 -1
- package/docs-src/submodule-remove.md +1 -1
- package/docs-src/upload-backend.md +29 -0
- package/docs-src/vscode-cli.md +84 -0
- package/docs-src/workflow-badge.md +120 -0
- package/lib/binary-collections/config-types.cjs +17 -0
- package/lib/binary-collections/config-types.d.ts +12 -0
- package/lib/binary-collections/config-types.js +2 -0
- package/lib/binary-collections/config-types.mjs +7 -0
- package/lib/binary-collections/config.cjs +28 -8
- package/lib/binary-collections/config.d.cts +26 -8
- package/lib/binary-collections/config.mjs +2 -2
- package/lib/binary-collections/findScript.cjs +49 -25
- package/lib/binary-collections/findScript.mjs +2 -2
- package/lib/binary-collections/listScript.cjs +49 -25
- package/lib/binary-collections/listScript.mjs +2 -2
- package/lib/binary-collections.cjs +49 -25
- package/lib/binary-collections.mjs +6 -6
- package/lib/changelog.cjs +142 -4
- package/lib/changelog.mjs +9 -5
- package/lib/chunk-3T6AMFI3.mjs +52 -0
- package/lib/{chunk-2MN4VPV2.mjs → chunk-3ZF2QMDK.mjs} +4 -4
- package/lib/chunk-56BVU63B.mjs +86 -0
- package/lib/chunk-7N52Z4IJ.mjs +39 -0
- package/lib/chunk-B77D3SR4.mjs +28 -0
- package/lib/chunk-BPED62FN.mjs +115 -0
- package/lib/{chunk-RDN6HF5Z.mjs → chunk-DHFRWM2W.mjs} +1 -1
- package/lib/chunk-DPEE3FBB.mjs +146 -0
- package/lib/{chunk-MGPYPKIE.mjs → chunk-H7AE4IO3.mjs} +5 -1
- package/lib/{chunk-H44UWUFY.mjs → chunk-J4M5EL5P.mjs} +3 -0
- package/lib/chunk-KCJYREA2.mjs +67 -0
- package/lib/chunk-LACQTD5V.mjs +225 -0
- package/lib/{chunk-TBWXE7ST.mjs → chunk-NHD4HLSU.mjs} +24 -31
- package/lib/{chunk-RDGDLSPD.mjs → chunk-OWNVMKAA.mjs} +6 -5
- package/lib/chunk-SKVF4TMD.mjs +59 -0
- package/lib/{chunk-BZWVHODJ.mjs → chunk-TDUUOAQD.mjs} +5 -5
- package/lib/chunk-TP3O2JGW.mjs +88 -0
- package/lib/{chunk-FLYSZFLW.mjs → chunk-UAEKSLAX.mjs} +1 -1
- package/lib/chunk-UDZBVKXH.mjs +94 -0
- package/lib/chunk-UEOWRYAN.mjs +32 -0
- package/lib/chunk-V6PTSDW5.mjs +82 -0
- package/lib/{chunk-NQXUYO67.mjs → chunk-WNUEY6VJ.mjs} +49 -25
- package/lib/chunk-X7UVQ6ZC.mjs +183 -0
- package/lib/chunk-XW5NZAKI.mjs +82 -0
- package/lib/{chunk-LVSPEFU2.mjs → chunk-Z53IUBUN.mjs} +6 -5
- package/lib/{chunk-CD3HF3LK.mjs → chunk-Z7RM46Q4.mjs} +5 -11
- package/lib/chunk-ZB4IQ6VJ.mjs +46 -0
- package/lib/del-gradle.cjs +1 -1
- package/lib/del-gradle.mjs +22 -16
- package/lib/del-node-modules.cjs +1 -1
- package/lib/del-node-modules.mjs +148 -142
- package/lib/find-node-modules-cli.cjs +1 -1
- package/lib/find-node-modules-cli.mjs +10 -4
- package/lib/{git-diff-cli.cjs → git/git-diff-cli.cjs} +32 -12
- package/lib/{git-diff-cli.mjs → git/git-diff-cli.mjs} +7 -7
- package/lib/{git-diff.cjs → git/git-diff.cjs} +30 -10
- package/lib/{git-diff.js → git/git-diff.js} +3 -3
- package/lib/{git-diff.mjs → git/git-diff.mjs} +6 -6
- package/lib/{git-fix.cjs → git/git-fix.cjs} +142 -3
- package/lib/{git-fix.mjs → git/git-fix.mjs} +19 -14
- package/lib/{git-purge.cjs → git/git-purge.cjs} +1 -1
- package/lib/{git-purge.mjs → git/git-purge.mjs} +4 -4
- package/lib/git/user-config.cjs +139 -1
- package/lib/git/user-config.mjs +3 -1
- package/lib/{clean-github-actions-caches-cli.cjs → github-workflows/clean-github-actions-caches-cli.cjs} +46 -10
- package/lib/{clean-github-actions-caches-cli.mjs → github-workflows/clean-github-actions-caches-cli.mjs} +7 -6
- package/lib/{clean-github-actions-caches.cjs → github-workflows/clean-github-actions-caches.cjs} +46 -10
- package/lib/{clean-github-actions-caches.mjs → github-workflows/clean-github-actions-caches.mjs} +5 -4
- package/lib/github-workflows/generate-test-ci-step-cli.cjs +240 -0
- package/lib/github-workflows/generate-test-ci-step-cli.d.mts +2 -0
- package/lib/github-workflows/generate-test-ci-step-cli.mjs +132 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.cjs +549 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.d.mts +2 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.mjs +61 -0
- package/lib/github-workflows/get-latest-workflow-status.cjs +56 -0
- package/lib/github-workflows/get-latest-workflow-status.d.mts +1 -0
- package/lib/github-workflows/get-latest-workflow-status.mjs +8 -0
- package/lib/github-workflows/utils.cjs +279 -0
- package/lib/github-workflows/utils.d.cts +76 -0
- package/lib/github-workflows/utils.mjs +8 -0
- package/lib/github-workflows/workflow-badge-cli.cjs +730 -0
- package/lib/github-workflows/workflow-badge-cli.d.mts +2 -0
- package/lib/github-workflows/workflow-badge-cli.mjs +98 -0
- package/lib/github-workflows/workflow-badge-generator.cjs +200 -0
- package/lib/github-workflows/workflow-badge-generator.d.mts +14 -0
- package/lib/github-workflows/workflow-badge-generator.mjs +8 -0
- package/lib/github-workflows/workflow-test-data.cjs +73 -0
- package/lib/github-workflows/workflow-test-data.d.cts +63 -0
- package/lib/github-workflows/workflow-test-data.mjs +6 -0
- package/lib/node-cache-cleaner-cli.mjs +3 -3
- package/lib/opencode/cli/auth-rotate.cjs +458 -0
- package/lib/opencode/cli/auth-rotate.d.ts +3 -0
- package/lib/opencode/cli/auth-rotate.js +65 -0
- package/lib/opencode/cli/auth-rotate.mjs +14 -0
- package/lib/opencode/cli/auth-rotate.runner.cjs +454 -0
- package/lib/opencode/cli/auth-rotate.runner.d.ts +1 -0
- package/lib/opencode/cli/auth-rotate.runner.js +8 -0
- package/lib/opencode/cli/auth-rotate.runner.mjs +21 -0
- package/lib/opencode/cli/list-projects.cjs +184 -0
- package/lib/opencode/cli/list-projects.d.ts +1 -0
- package/lib/opencode/cli/list-projects.js +32 -0
- package/lib/opencode/cli/list-projects.mjs +11 -0
- package/lib/opencode/cli/list-sessions.cjs +215 -0
- package/lib/opencode/cli/list-sessions.d.ts +1 -0
- package/lib/opencode/cli/list-sessions.js +45 -0
- package/lib/opencode/cli/list-sessions.mjs +11 -0
- package/lib/opencode/database.cjs +349 -0
- package/lib/opencode/database.d.ts +91 -0
- package/lib/opencode/database.js +252 -0
- package/lib/opencode/database.mjs +28 -0
- package/lib/opencode/database.runner.cjs +145 -0
- package/lib/opencode/database.runner.d.ts +1 -0
- package/lib/opencode/database.runner.js +56 -0
- package/lib/opencode/database.runner.mjs +37 -0
- package/lib/opencode/install-opencode-plugins-cli.cjs +82 -0
- package/lib/opencode/install-opencode-plugins-cli.d.ts +1 -0
- package/lib/opencode/install-opencode-plugins-cli.js +78 -0
- package/lib/opencode/install-opencode-plugins-cli.mjs +65 -0
- package/lib/opencode/opencode-zen.runner.cjs +48 -0
- package/lib/opencode/opencode-zen.runner.d.mts +1 -0
- package/lib/opencode/opencode-zen.runner.mjs +31 -0
- package/lib/opencode/sqlite.cjs +114 -0
- package/lib/opencode/sqlite.d.ts +18 -0
- package/lib/opencode/sqlite.js +82 -0
- package/lib/opencode/sqlite.mjs +10 -0
- package/lib/opencode/storage.cjs +124 -0
- package/lib/opencode/storage.d.ts +27 -0
- package/lib/opencode/storage.js +101 -0
- package/lib/opencode/storage.mjs +38 -0
- package/lib/opencode/storage.runner.cjs +50 -0
- package/lib/opencode/storage.runner.d.ts +1 -0
- package/lib/opencode/storage.runner.js +13 -0
- package/lib/opencode/storage.runner.mjs +29 -0
- package/lib/opencode/types.cjs +17 -0
- package/lib/opencode/types.d.ts +31 -0
- package/lib/opencode/types.js +2 -0
- package/lib/opencode/types.mjs +7 -0
- package/lib/opencode/utils/check-api.cjs +373 -0
- package/lib/opencode/utils/check-api.d.ts +16 -0
- package/lib/opencode/utils/check-api.js +132 -0
- package/lib/opencode/utils/check-api.mjs +12 -0
- package/lib/opencode/utils/check-api.runner.cjs +0 -0
- package/lib/opencode/utils/check-api.runner.d.ts +0 -0
- package/lib/opencode/utils/check-api.runner.js +1 -0
- package/lib/opencode/utils/check-api.runner.mjs +7 -0
- package/lib/opencode-cli.cjs +796 -0
- package/lib/opencode-cli.d.ts +2 -0
- package/lib/opencode-cli.js +116 -0
- package/lib/opencode-cli.mjs +116 -0
- package/lib/package-resolutions-updater-cli.cjs +189 -154
- package/lib/package-resolutions-updater-cli.mjs +3 -2
- package/lib/package-resolutions-updater.cjs +189 -154
- package/lib/package-resolutions-updater.d.mts +12 -3
- package/lib/package-resolutions-updater.mjs +3 -2
- package/lib/print-directory-tree.cjs +139 -3
- package/lib/print-directory-tree.mjs +6 -3
- package/lib/print-tarball-tree-cli.cjs +305 -0
- package/lib/print-tarball-tree-cli.d.mts +2 -0
- package/lib/print-tarball-tree-cli.mjs +54 -0
- package/lib/print-tarball-tree.cjs +43 -216
- package/lib/print-tarball-tree.d.mts +4 -1
- package/lib/print-tarball-tree.mjs +12 -66
- package/lib/rmpath-cli.cjs +139 -5
- package/lib/rmpath-cli.mjs +3 -1
- package/lib/rmpath.cjs +155 -11
- package/lib/rmpath.mjs +3 -1
- package/lib/run-by-checksum/hash.cjs +50 -56
- package/lib/run-by-checksum/hash.d.cts +24 -0
- package/lib/run-by-checksum/hash.mjs +3 -7
- package/lib/run-by-checksum/run.cjs +95 -42
- package/lib/run-by-checksum/run.js +3 -3
- package/lib/run-by-checksum/run.mjs +2 -2
- package/lib/run-by-checksum-cli.cjs +96 -58
- package/lib/run-by-checksum-cli.mjs +2 -2
- package/lib/submodule-install.cjs +138 -4
- package/lib/submodule-install.mjs +5 -4
- package/lib/submodule-remove-cli.cjs +139 -5
- package/lib/submodule-remove-cli.mjs +3 -1
- package/lib/submodule-remove.cjs +154 -5
- package/lib/submodule-remove.mjs +3 -1
- package/lib/utils/findEnvFiles.cjs +3 -0
- package/lib/utils/findEnvFiles.d.cts +2 -2
- package/lib/utils/findEnvFiles.mjs +1 -1
- package/lib/utils/isDebug.cjs +13 -0
- package/lib/utils/isDebug.d.cts +9 -0
- package/lib/utils/isDebug.mjs +6 -0
- package/lib/vscode/project.cjs +0 -0
- package/lib/vscode/project.d.ts +0 -0
- package/lib/vscode/project.js +1 -0
- package/lib/vscode/project.mjs +7 -0
- package/lib/vscode/storage.cjs +138 -0
- package/lib/vscode/storage.d.ts +51 -0
- package/lib/vscode/storage.js +169 -0
- package/lib/vscode/storage.mjs +42 -0
- package/lib/vscode/storage.runner.cjs +125 -0
- package/lib/vscode/storage.runner.d.ts +1 -0
- package/lib/vscode/storage.runner.js +47 -0
- package/lib/vscode/storage.runner.mjs +60 -0
- package/lib/vscode-cli.cjs +155 -0
- package/lib/vscode-cli.d.ts +2 -0
- package/lib/vscode-cli.js +80 -0
- package/lib/vscode-cli.mjs +71 -0
- package/package.json +50 -26
- package/readme.md +104 -8
- package/releases/readme.md +1 -1
- package/src/github-workflows/generate-test-ci-step-cli.mjs +126 -0
- package/vendor/clue/ndjson-react/README.md +365 -0
- package/vendor/composer/pcre/README.md +189 -0
- package/vendor/composer/semver/README.md +99 -0
- package/vendor/composer/xdebug-handler/README.md +305 -0
- package/vendor/ergebnis/agent-detector/README.md +107 -0
- package/vendor/evenement/evenement/README.md +64 -0
- package/vendor/fidry/cpu-core-counter/README.md +138 -0
- package/vendor/friendsofphp/php-cs-fixer/README.md +97 -0
- package/vendor/psr/container/README.md +13 -0
- package/vendor/psr/event-dispatcher/README.md +6 -0
- package/vendor/psr/log/README.md +58 -0
- package/vendor/react/cache/README.md +367 -0
- package/vendor/react/child-process/README.md +619 -0
- package/vendor/react/dns/README.md +453 -0
- package/vendor/react/event-loop/README.md +930 -0
- package/vendor/react/promise/README.md +722 -0
- package/vendor/react/socket/README.md +1564 -0
- package/vendor/react/stream/README.md +1249 -0
- package/vendor/sebastian/diff/README.md +151 -0
- package/vendor/symfony/console/README.md +30 -0
- package/vendor/symfony/deprecation-contracts/README.md +26 -0
- package/vendor/symfony/event-dispatcher/README.md +25 -0
- package/vendor/symfony/event-dispatcher-contracts/README.md +9 -0
- package/vendor/symfony/filesystem/README.md +23 -0
- package/vendor/symfony/finder/README.md +24 -0
- package/vendor/symfony/options-resolver/README.md +25 -0
- package/vendor/symfony/polyfill-ctype/README.md +12 -0
- package/vendor/symfony/polyfill-intl-grapheme/README.md +32 -0
- package/vendor/symfony/polyfill-intl-normalizer/README.md +14 -0
- package/vendor/symfony/polyfill-mbstring/README.md +13 -0
- package/vendor/symfony/polyfill-php80/README.md +25 -0
- package/vendor/symfony/polyfill-php81/README.md +18 -0
- package/vendor/symfony/polyfill-php84/README.md +23 -0
- package/vendor/symfony/polyfill-php85/README.md +20 -0
- package/vendor/symfony/process/README.md +23 -0
- package/vendor/symfony/service-contracts/README.md +9 -0
- package/vendor/symfony/stopwatch/README.md +52 -0
- package/vendor/symfony/string/README.md +24 -0
- package/lib/chunk-WSHVPGNM.mjs +0 -44
- package/lib/chunk-X2B3X7D4.mjs +0 -35
- package/lib/del-gradle.js +0 -16
- package/lib/del-node-modules.js +0 -211
- package/lib/find-node-modules-cli.js +0 -4
- package/lib/run-by-checksum/hash.d.ts +0 -14
- package/lib/run-by-checksum/hash.js +0 -85
- package/readme.html +0 -784
- /package/lib/{clean-github-actions-caches-cli.d.cts → del-gradle.d.cts} +0 -0
- /package/lib/{del-gradle.d.ts → del-node-modules.d.cts} +0 -0
- /package/lib/{find-node-modules-cli.d.ts → find-node-modules-cli.d.cts} +0 -0
- /package/lib/{git-diff-cli.d.ts → git/git-diff-cli.d.ts} +0 -0
- /package/lib/{git-diff-cli.js → git/git-diff-cli.js} +0 -0
- /package/lib/{git-diff.d.ts → git/git-diff.d.ts} +0 -0
- /package/lib/{git-fix.d.cts → git/git-fix.d.cts} +0 -0
- /package/lib/{git-purge.d.cts → git/git-purge.d.cts} +0 -0
- /package/lib/{del-node-modules.d.ts → github-workflows/clean-github-actions-caches-cli.d.cts} +0 -0
- /package/lib/{clean-github-actions-caches.d.cts → github-workflows/clean-github-actions-caches.d.cts} +0 -0
|
@@ -185,7 +185,7 @@ var require_package = __commonJS({
|
|
|
185
185
|
"package.json"(exports2, module2) {
|
|
186
186
|
module2.exports = {
|
|
187
187
|
name: "binary-collections",
|
|
188
|
-
version: "2.0.
|
|
188
|
+
version: "2.0.15",
|
|
189
189
|
description: "Utility to clean any programming caches and more",
|
|
190
190
|
keywords: [
|
|
191
191
|
"cache",
|
|
@@ -219,12 +219,13 @@ var require_package = __commonJS({
|
|
|
219
219
|
},
|
|
220
220
|
types: "lib/index.d.ts",
|
|
221
221
|
files: [
|
|
222
|
-
"binaries",
|
|
223
|
-
"lib",
|
|
224
|
-
"docs-src",
|
|
222
|
+
"binaries/**/*",
|
|
223
|
+
"lib/**/*",
|
|
224
|
+
"docs-src/*.md",
|
|
225
225
|
"readme.md",
|
|
226
226
|
".puppeterrc.cjs",
|
|
227
|
-
"requirements.txt"
|
|
227
|
+
"requirements.txt",
|
|
228
|
+
".github/**/*"
|
|
228
229
|
],
|
|
229
230
|
scripts: {
|
|
230
231
|
build: "tsc -b tsconfig.build.json && npm run build-tsup && npm run build-exports",
|
|
@@ -236,13 +237,16 @@ var require_package = __commonJS({
|
|
|
236
237
|
pack: "node package.cjs --yarn --filename=bin",
|
|
237
238
|
prepare: "husky",
|
|
238
239
|
"puppeteer:browser": "npx -y puppeteer browsers install chrome",
|
|
239
|
-
test: "
|
|
240
|
+
test: "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --forceExit --testTimeout=120000 --detectOpenHandles",
|
|
240
241
|
"test-coverage": "npm test --coverage --detectOpenHandles",
|
|
241
242
|
"test-esm": "test-esm",
|
|
242
243
|
"test-nrs": "npm test -- nrs build-**",
|
|
243
244
|
"test-watch": "npm test --watch",
|
|
244
245
|
"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",
|
|
245
|
-
"update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.cjs"
|
|
246
|
+
"update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.cjs",
|
|
247
|
+
serve: "php -S 0.0.0.0:8490",
|
|
248
|
+
upload: "node scripts/upload-backend.mjs",
|
|
249
|
+
"mkdocs-serve": 'mkdocs serve -a "0.0.0.0:5173" --livereload'
|
|
246
250
|
},
|
|
247
251
|
repository: {
|
|
248
252
|
type: "git",
|
|
@@ -252,6 +256,8 @@ var require_package = __commonJS({
|
|
|
252
256
|
"@yarnpkg/core": "^4.7.0",
|
|
253
257
|
"ansi-colors": "^4.1.3",
|
|
254
258
|
axios: "^1.16.1",
|
|
259
|
+
"better-sqlite3": "^12.10.0",
|
|
260
|
+
cosmiconfig: "^9.0.1",
|
|
255
261
|
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/78b09a1f799430fb251c1b438ec56ce7957674f4/release/cross-spawn.tgz",
|
|
256
262
|
"crypto-js": "^4.2.0",
|
|
257
263
|
dotenv: "^17.4.2",
|
|
@@ -260,6 +266,8 @@ var require_package = __commonJS({
|
|
|
260
266
|
glob: "^13.0.6",
|
|
261
267
|
minimatch: "^10.2.5",
|
|
262
268
|
minimist: "^1.2.8",
|
|
269
|
+
openai: "^6.41.0",
|
|
270
|
+
"proxy-agent": "^8.0.1",
|
|
263
271
|
"ps-node": "^0.1.6",
|
|
264
272
|
puppeteer: "^25.0.4",
|
|
265
273
|
"puppeteer-extra": "^3.3.6",
|
|
@@ -269,21 +277,23 @@ var require_package = __commonJS({
|
|
|
269
277
|
upath: "^3.0.7",
|
|
270
278
|
which: "^7.0.0",
|
|
271
279
|
yaml: "^2.9.0",
|
|
272
|
-
yarn: "^1.22.22"
|
|
273
|
-
zlib: "^1.0.5"
|
|
280
|
+
yarn: "^1.22.22"
|
|
274
281
|
},
|
|
275
282
|
devDependencies: {
|
|
276
283
|
"@babel/core": "^7.29.0",
|
|
277
284
|
"@babel/plugin-syntax-import-assertions": "^7.28.6",
|
|
278
285
|
"@babel/preset-env": "^7.29.2",
|
|
279
286
|
"@babel/preset-typescript": "^7.28.5",
|
|
280
|
-
"@dimaslanjaka/eslint-base-config": "^1.0.
|
|
287
|
+
"@dimaslanjaka/eslint-base-config": "^1.0.2",
|
|
288
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
281
289
|
"@rollup/plugin-babel": "^7.0.0",
|
|
282
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
290
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
283
291
|
"@rollup/plugin-json": "^6.1.0",
|
|
284
292
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
293
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
285
294
|
"@types/babel__core": "^7",
|
|
286
295
|
"@types/babel__preset-env": "^7",
|
|
296
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
287
297
|
"@types/crypto-js": "^4",
|
|
288
298
|
"@types/fs-extra": "^11",
|
|
289
299
|
"@types/jest": "^30.0.0",
|
|
@@ -300,10 +310,11 @@ var require_package = __commonJS({
|
|
|
300
310
|
gulp: "^5.0.1",
|
|
301
311
|
husky: "^9.1.7",
|
|
302
312
|
jest: "^30.4.2",
|
|
303
|
-
"lint-staged": "^17.0.
|
|
313
|
+
"lint-staged": "^17.0.7",
|
|
304
314
|
marked: "^18.0.4",
|
|
305
315
|
rimraf: "^6.1.3",
|
|
306
|
-
rollup: "^4.
|
|
316
|
+
rollup: "^4.0.0",
|
|
317
|
+
"ssh2-sftp-client": "^12.1.1",
|
|
307
318
|
"ts-jest": "^29.4.9",
|
|
308
319
|
"ts-node": "^10.9.2",
|
|
309
320
|
tsup: "^8.5.1",
|
|
@@ -319,12 +330,13 @@ var require_package = __commonJS({
|
|
|
319
330
|
packageManager: "yarn@4.9.2",
|
|
320
331
|
resolutions: {
|
|
321
332
|
"@types/through2": "https://github.com/dimaslanjaka/nodejs-package-types/raw/refs/heads/through2/release/types-through2.tgz",
|
|
322
|
-
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/
|
|
323
|
-
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/
|
|
333
|
+
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/eb82c8e0e60ce425fdf6e89cd53f4391bb8c77cd/release/cross-spawn.tgz",
|
|
334
|
+
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/7a28dad83c17abfc4b6ccd2b7327c39ff67adfe5/release/git-command-helper.tgz",
|
|
324
335
|
"sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/44e5c7b79b4e60f8c2d34857c27b8ce677d7493e/packages/sbg-utility/release/sbg-utility.tgz",
|
|
325
|
-
"@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/
|
|
336
|
+
"@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/822b872f18985462f0da358579cd6493472a2ee0/release/dimaslanjaka-eslint-base-config.tgz"
|
|
326
337
|
},
|
|
327
338
|
bin: {
|
|
339
|
+
"actions-badge": "lib/github-workflows/workflow-badge-cli.cjs",
|
|
328
340
|
"binary-collections": "lib/binary-collections.cjs",
|
|
329
341
|
"binary-executor": "binaries/binary-executor.cjs",
|
|
330
342
|
"build-package": "lib/node-package-packer-cli.cjs",
|
|
@@ -332,13 +344,14 @@ var require_package = __commonJS({
|
|
|
332
344
|
"build-tarball": "lib/node-package-packer-cli.cjs",
|
|
333
345
|
changelog: "lib/changelog.cjs",
|
|
334
346
|
chatgpt: "lib/free-chatgpt.cjs",
|
|
335
|
-
"clean-github-actions-cache": "lib/clean-github-actions-caches-cli.cjs",
|
|
336
|
-
"clean-github-actions-caches": "lib/clean-github-actions-caches-cli.cjs",
|
|
347
|
+
"clean-github-actions-cache": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
|
|
348
|
+
"clean-github-actions-caches": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
|
|
337
349
|
"clean-nodemodule": "binaries/clean-nodemodule.cjs",
|
|
338
350
|
"clean-nodemodules": "binaries/clean-nodemodules.cjs",
|
|
339
|
-
"clear-gh-caches": "lib/clean-github-actions-caches-cli.cjs",
|
|
340
|
-
"clear-github-actions-cache": "lib/clean-github-actions-caches-cli.cjs",
|
|
341
|
-
"clear-github-actions-caches": "lib/clean-github-actions-caches-cli.cjs",
|
|
351
|
+
"clear-gh-caches": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
|
|
352
|
+
"clear-github-actions-cache": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
|
|
353
|
+
"clear-github-actions-caches": "lib/github-workflows/clean-github-actions-caches-cli.cjs",
|
|
354
|
+
composer: "binaries/composer.cjs",
|
|
342
355
|
copy: "lib/file/copy-cli.cjs",
|
|
343
356
|
"copy-file": "lib/file/copy-cli.cjs",
|
|
344
357
|
"del-gradle": "lib/del-gradle.cjs",
|
|
@@ -359,15 +372,20 @@ var require_package = __commonJS({
|
|
|
359
372
|
"file-downloader": "lib/downloader-cli.cjs",
|
|
360
373
|
"find-node-modules": "lib/find-node-modules-cli.cjs",
|
|
361
374
|
"free-chatgpt": "lib/free-chatgpt.cjs",
|
|
362
|
-
"
|
|
363
|
-
"
|
|
364
|
-
"
|
|
375
|
+
"generate-test-ci": "src/github-workflows/generate-test-ci-step-cli.mjs",
|
|
376
|
+
"get-latest-workflow": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
|
|
377
|
+
"get-latest-workflow-status": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
|
|
378
|
+
"gh-status-badge": "lib/github-workflows/workflow-badge-cli.cjs",
|
|
379
|
+
"git-diff": "lib/git/git-diff-cli.cjs",
|
|
380
|
+
"git-fix": "lib/git/git-fix.cjs",
|
|
381
|
+
"git-purge": "lib/git/git-purge.cjs",
|
|
365
382
|
"git-reduce-size": "binaries/git-reduce-size.cjs",
|
|
366
383
|
"git-undo-commit": "lib/git/undo-commit.cjs",
|
|
367
384
|
"git-undo-staged": "lib/git/undo-staged.cjs",
|
|
368
385
|
javakill: "binaries/javakill.cjs",
|
|
369
386
|
"kill-night-crows": "lib/kill-night-crows.cjs",
|
|
370
387
|
"kill-process": "binaries/kill-process.cjs",
|
|
388
|
+
"latest-workflow": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
|
|
371
389
|
move: "lib/file/move-cli.cjs",
|
|
372
390
|
"move-file": "lib/file/move-cli.cjs",
|
|
373
391
|
"node-cache-cleaner": "lib/node-cache-cleaner-cli.cjs",
|
|
@@ -379,6 +397,8 @@ var require_package = __commonJS({
|
|
|
379
397
|
nodekill: "binaries/nodekill.cjs",
|
|
380
398
|
"npm-run-series": "lib/npm-run-series.cjs",
|
|
381
399
|
nrs: "lib/npm-run-series.cjs",
|
|
400
|
+
opc: "lib/opencode-cli.cjs",
|
|
401
|
+
"opencode-cli": "lib/opencode-cli.cjs",
|
|
382
402
|
"pack-node-package": "lib/node-package-packer-cli.cjs",
|
|
383
403
|
"pack-tarball": "lib/node-package-packer-cli.cjs",
|
|
384
404
|
"package-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
@@ -386,7 +406,7 @@ var require_package = __commonJS({
|
|
|
386
406
|
"pkg-res-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
387
407
|
"pkg-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
388
408
|
"print-directory-tree": "lib/print-directory-tree.cjs",
|
|
389
|
-
"print-tarball-tree": "lib/print-tarball-tree.cjs",
|
|
409
|
+
"print-tarball-tree": "lib/print-tarball-tree-cli.cjs",
|
|
390
410
|
"print-tree": "lib/print-directory-tree.cjs",
|
|
391
411
|
prod: "binaries/prod.cjs",
|
|
392
412
|
py: "binaries/py.cjs",
|
|
@@ -413,6 +433,10 @@ var require_package = __commonJS({
|
|
|
413
433
|
"undo-commit": "lib/git/undo-commit.cjs",
|
|
414
434
|
"undo-last-commit": "lib/git/undo-commit.cjs",
|
|
415
435
|
"undo-staged": "lib/git/undo-staged.cjs",
|
|
436
|
+
"vscode-cli": "lib/vscode-cli.cjs",
|
|
437
|
+
"wf-badge": "lib/github-workflows/workflow-badge-cli.cjs",
|
|
438
|
+
"wf-status": "lib/github-workflows/get-latest-workflow-status-cli.cjs",
|
|
439
|
+
"workflow-badge": "lib/github-workflows/workflow-badge-cli.cjs",
|
|
416
440
|
"y-install": "lib/yarn-per-branch-lock-installer.cjs",
|
|
417
441
|
"yarn-clean": "binaries/yarn-clean.cjs",
|
|
418
442
|
"yarn-install": "lib/yarn-per-branch-lock-installer.cjs",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
require_executeScript
|
|
5
|
+
} from "./chunk-PXBMHE7O.mjs";
|
|
3
6
|
import {
|
|
4
7
|
require_findScript
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DHFRWM2W.mjs";
|
|
6
9
|
import {
|
|
7
10
|
require_listScript
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
require_executeScript
|
|
12
|
-
} from "./chunk-PXBMHE7O.mjs";
|
|
11
|
+
} from "./chunk-UAEKSLAX.mjs";
|
|
12
|
+
import "./chunk-WNUEY6VJ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
require_utils
|
|
15
15
|
} from "./chunk-6RK5UCTP.mjs";
|
package/lib/changelog.cjs
CHANGED
|
@@ -180,12 +180,150 @@ var require_utils = __commonJS({
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
|
|
183
|
+
// src/utils/findEnvFiles.cjs
|
|
184
|
+
var require_findEnvFiles = __commonJS({
|
|
185
|
+
"src/utils/findEnvFiles.cjs"(exports2, module2) {
|
|
186
|
+
init_cjs_shims();
|
|
187
|
+
var fs2 = require("fs");
|
|
188
|
+
var path2 = require("path");
|
|
189
|
+
var glob = require("glob");
|
|
190
|
+
var DEFAULT_IGNORES = [
|
|
191
|
+
"**/node_modules/**",
|
|
192
|
+
"**/.git/**",
|
|
193
|
+
"**/.yarn/**",
|
|
194
|
+
"**/.pnpm/**",
|
|
195
|
+
"**/dist/**",
|
|
196
|
+
"**/build/**",
|
|
197
|
+
"**/coverage/**",
|
|
198
|
+
"**/vendor/**",
|
|
199
|
+
"**/tmp/**",
|
|
200
|
+
"**/.cache/**",
|
|
201
|
+
"**/assets/**",
|
|
202
|
+
"**/logs/**",
|
|
203
|
+
"**/output/**",
|
|
204
|
+
"**/public/**",
|
|
205
|
+
"**/static/**",
|
|
206
|
+
"**/temp/**",
|
|
207
|
+
"**/backup/**",
|
|
208
|
+
"**/backups/**",
|
|
209
|
+
"**/examples/**",
|
|
210
|
+
"**/docs/**",
|
|
211
|
+
"**/tests/**",
|
|
212
|
+
"**/__tests__/**",
|
|
213
|
+
"**/spec/**",
|
|
214
|
+
"**/__specs__/**",
|
|
215
|
+
"**/scripts/**",
|
|
216
|
+
"**/bin/**",
|
|
217
|
+
"**/hooks/**",
|
|
218
|
+
"**/config/**",
|
|
219
|
+
"**/configs/**",
|
|
220
|
+
"**/settings/**",
|
|
221
|
+
"**/.vscode/**",
|
|
222
|
+
"**/.idea/**"
|
|
223
|
+
];
|
|
224
|
+
function findEnvFiles(startDir = process.cwd(), filter) {
|
|
225
|
+
const found = /* @__PURE__ */ new Set();
|
|
226
|
+
function addFile(file) {
|
|
227
|
+
const normalized = path2.normalize(file);
|
|
228
|
+
if (typeof filter === "function" && !filter(normalized)) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
found.add(normalized);
|
|
232
|
+
}
|
|
233
|
+
let current = path2.resolve(startDir);
|
|
234
|
+
while (true) {
|
|
235
|
+
const envPath = path2.join(current, ".env");
|
|
236
|
+
if (fs2.existsSync(envPath)) {
|
|
237
|
+
addFile(envPath);
|
|
238
|
+
}
|
|
239
|
+
const parent = path2.dirname(current);
|
|
240
|
+
if (parent === current) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
current = parent;
|
|
244
|
+
}
|
|
245
|
+
const files = glob.globSync("**/.env*", {
|
|
246
|
+
cwd: startDir,
|
|
247
|
+
absolute: true,
|
|
248
|
+
nodir: true,
|
|
249
|
+
ignore: DEFAULT_IGNORES
|
|
250
|
+
});
|
|
251
|
+
for (const file of files) {
|
|
252
|
+
addFile(file);
|
|
253
|
+
}
|
|
254
|
+
return [...found];
|
|
255
|
+
}
|
|
256
|
+
function findEnvWithToken(startDir = process.cwd(), tokenName = "GITHUB_TOKEN") {
|
|
257
|
+
const envFiles = findEnvFiles(startDir);
|
|
258
|
+
return envFiles.find((file) => {
|
|
259
|
+
try {
|
|
260
|
+
const content = fs2.readFileSync(file, "utf-8");
|
|
261
|
+
if (tokenName instanceof RegExp) {
|
|
262
|
+
return tokenName.test(content);
|
|
263
|
+
}
|
|
264
|
+
const regex = new RegExp(`^\\s*${tokenName}\\s*=`, "m");
|
|
265
|
+
return regex.test(content);
|
|
266
|
+
} catch (err) {
|
|
267
|
+
console.warn(`Failed to read ${file}: ${err instanceof Error ? err.message : String(err)}`);
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
module2.exports = {
|
|
273
|
+
DEFAULT_IGNORES,
|
|
274
|
+
findEnvFiles,
|
|
275
|
+
findEnvWithToken,
|
|
276
|
+
default: findEnvFiles
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
// src/binary-collections/config.cjs
|
|
282
|
+
var require_config = __commonJS({
|
|
283
|
+
"src/binary-collections/config.cjs"(exports2, module2) {
|
|
284
|
+
init_cjs_shims();
|
|
285
|
+
var path2 = require("upath");
|
|
286
|
+
var minimistLib = require("minimist");
|
|
287
|
+
var { findEnvWithToken } = require_findEnvFiles();
|
|
288
|
+
var dotenv = require("dotenv");
|
|
289
|
+
var { cosmiconfig } = require("cosmiconfig");
|
|
290
|
+
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
291
|
+
loadDotenv();
|
|
292
|
+
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
293
|
+
string: ["token"]
|
|
294
|
+
});
|
|
295
|
+
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
296
|
+
function getTempPath2(...segments) {
|
|
297
|
+
return path2.join(process.env.TEMP_DIR || path2.join(process.cwd(), "tmp"), ...segments);
|
|
298
|
+
}
|
|
299
|
+
async function getConfig(options = {}) {
|
|
300
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
301
|
+
searchStrategy: "project",
|
|
302
|
+
stopDir: options.stopDir
|
|
303
|
+
});
|
|
304
|
+
try {
|
|
305
|
+
const result = await explorer.search(options.searchFrom);
|
|
306
|
+
return result ? result.config : null;
|
|
307
|
+
} catch {
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
module2.exports = {
|
|
312
|
+
getTempPath: getTempPath2,
|
|
313
|
+
GITHUB_ACCESS_TOKEN,
|
|
314
|
+
loadDotenv,
|
|
315
|
+
getConfig
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
|
|
183
320
|
// src/changelog.cjs
|
|
184
321
|
init_cjs_shims();
|
|
185
322
|
var fs = require("fs");
|
|
186
323
|
var path = require("upath");
|
|
187
324
|
var { EOL } = require("os");
|
|
188
325
|
var { getArgs } = require_utils();
|
|
326
|
+
var { getTempPath } = require_config();
|
|
189
327
|
var spawn = require("child_process").spawn;
|
|
190
328
|
var pkgPath = path.join(process.cwd(), "package.json");
|
|
191
329
|
if (!fs.existsSync(pkgPath)) {
|
|
@@ -363,9 +501,9 @@ function extractVersions(str) {
|
|
|
363
501
|
`;
|
|
364
502
|
}
|
|
365
503
|
}
|
|
366
|
-
|
|
367
|
-
fs.
|
|
368
|
-
fs.writeFileSync(
|
|
369
|
-
console.log(`Original log written to
|
|
504
|
+
const originalLogPath = getTempPath("original.md");
|
|
505
|
+
fs.mkdirSync(getTempPath(), { recursive: true });
|
|
506
|
+
fs.writeFileSync(originalLogPath, log);
|
|
507
|
+
console.log(`Original log written to ${originalLogPath}`);
|
|
370
508
|
console.log(`Changelog updated successfully. You can find it at CHANGELOG.md`);
|
|
371
509
|
})();
|
package/lib/changelog.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
require_config
|
|
4
|
+
} from "./chunk-3T6AMFI3.mjs";
|
|
5
|
+
import "./chunk-J4M5EL5P.mjs";
|
|
2
6
|
import {
|
|
3
7
|
require_utils
|
|
4
8
|
} from "./chunk-6RK5UCTP.mjs";
|
|
5
9
|
import {
|
|
6
10
|
__commonJS,
|
|
7
|
-
__dirname,
|
|
8
11
|
__require,
|
|
9
12
|
init_esm_shims
|
|
10
13
|
} from "./chunk-QQ4A6DLD.mjs";
|
|
@@ -17,6 +20,7 @@ var require_changelog = __commonJS({
|
|
|
17
20
|
var path = __require("upath");
|
|
18
21
|
var { EOL } = __require("os");
|
|
19
22
|
var { getArgs } = require_utils();
|
|
23
|
+
var { getTempPath } = require_config();
|
|
20
24
|
var spawn = __require("child_process").spawn;
|
|
21
25
|
var pkgPath = path.join(process.cwd(), "package.json");
|
|
22
26
|
if (!fs.existsSync(pkgPath)) {
|
|
@@ -194,10 +198,10 @@ Example:`);
|
|
|
194
198
|
`;
|
|
195
199
|
}
|
|
196
200
|
}
|
|
197
|
-
|
|
198
|
-
fs.
|
|
199
|
-
fs.writeFileSync(
|
|
200
|
-
console.log(`Original log written to
|
|
201
|
+
const originalLogPath = getTempPath("original.md");
|
|
202
|
+
fs.mkdirSync(getTempPath(), { recursive: true });
|
|
203
|
+
fs.writeFileSync(originalLogPath, log);
|
|
204
|
+
console.log(`Original log written to ${originalLogPath}`);
|
|
201
205
|
console.log(`Changelog updated successfully. You can find it at CHANGELOG.md`);
|
|
202
206
|
})();
|
|
203
207
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
require_findEnvFiles
|
|
4
|
+
} from "./chunk-J4M5EL5P.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__commonJS,
|
|
7
|
+
__require,
|
|
8
|
+
init_esm_shims
|
|
9
|
+
} from "./chunk-QQ4A6DLD.mjs";
|
|
10
|
+
|
|
11
|
+
// src/binary-collections/config.cjs
|
|
12
|
+
var require_config = __commonJS({
|
|
13
|
+
"src/binary-collections/config.cjs"(exports, module) {
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
var path = __require("upath");
|
|
16
|
+
var minimistLib = __require("minimist");
|
|
17
|
+
var { findEnvWithToken } = require_findEnvFiles();
|
|
18
|
+
var dotenv = __require("dotenv");
|
|
19
|
+
var { cosmiconfig } = __require("cosmiconfig");
|
|
20
|
+
var loadDotenv = (tokenKey = /ACCESS_TOKEN|GITHUB_TOKEN/) => dotenv.config({ path: findEnvWithToken(void 0, tokenKey), quiet: true, overwrite: true });
|
|
21
|
+
loadDotenv();
|
|
22
|
+
var cliArgv = minimistLib(process.argv.slice(2), {
|
|
23
|
+
string: ["token"]
|
|
24
|
+
});
|
|
25
|
+
var GITHUB_ACCESS_TOKEN = cliArgv.token || process.env.ACCESS_TOKEN || process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
26
|
+
function getTempPath(...segments) {
|
|
27
|
+
return path.join(process.env.TEMP_DIR || path.join(process.cwd(), "tmp"), ...segments);
|
|
28
|
+
}
|
|
29
|
+
async function getConfig(options = {}) {
|
|
30
|
+
const explorer = cosmiconfig("binary-collections", {
|
|
31
|
+
searchStrategy: "project",
|
|
32
|
+
stopDir: options.stopDir
|
|
33
|
+
});
|
|
34
|
+
try {
|
|
35
|
+
const result = await explorer.search(options.searchFrom);
|
|
36
|
+
return result ? result.config : null;
|
|
37
|
+
} catch {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
module.exports = {
|
|
42
|
+
getTempPath,
|
|
43
|
+
GITHUB_ACCESS_TOKEN,
|
|
44
|
+
loadDotenv,
|
|
45
|
+
getConfig
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
require_config
|
|
52
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
require_config
|
|
4
|
-
} from "./chunk-X2B3X7D4.mjs";
|
|
5
2
|
import {
|
|
6
3
|
runChatGpt
|
|
7
4
|
} from "./chunk-GAGABICI.mjs";
|
|
5
|
+
import {
|
|
6
|
+
require_config
|
|
7
|
+
} from "./chunk-3T6AMFI3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
require_utils
|
|
10
10
|
} from "./chunk-6RK5UCTP.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
init_esm_shims
|
|
14
14
|
} from "./chunk-QQ4A6DLD.mjs";
|
|
15
15
|
|
|
16
|
-
// src/git-diff.js
|
|
16
|
+
// src/git/git-diff.js
|
|
17
17
|
init_esm_shims();
|
|
18
18
|
var import_config = __toESM(require_config(), 1);
|
|
19
19
|
import ansiColors from "ansi-colors";
|
|
@@ -0,0 +1,86 @@
|
|
|
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/sqlite.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
import Database from "better-sqlite3";
|
|
9
|
+
import fs from "fs-extra";
|
|
10
|
+
import path from "upath";
|
|
11
|
+
var DEFAULT_DB_PATH = path.join(process.cwd(), "data", "database", "db.sqlite");
|
|
12
|
+
var SQLite = class {
|
|
13
|
+
constructor(dbPath = DEFAULT_DB_PATH) {
|
|
14
|
+
const dir = path.dirname(dbPath);
|
|
15
|
+
if (!fs.existsSync(dir)) {
|
|
16
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
17
|
+
}
|
|
18
|
+
this.db = new Database(dbPath);
|
|
19
|
+
this.db.pragma("journal_mode = WAL");
|
|
20
|
+
this.db.pragma("synchronous = NORMAL");
|
|
21
|
+
this.db.pragma("temp_store = MEMORY");
|
|
22
|
+
this.db.pragma("foreign_keys = ON");
|
|
23
|
+
}
|
|
24
|
+
// -------------------------
|
|
25
|
+
// Migration / schema init
|
|
26
|
+
// -------------------------
|
|
27
|
+
migrate(schemaFilePath) {
|
|
28
|
+
const schema = fs.readFileSync(schemaFilePath, "utf-8");
|
|
29
|
+
this.db.exec(schema);
|
|
30
|
+
}
|
|
31
|
+
// -------------------------
|
|
32
|
+
// Core query helpers
|
|
33
|
+
// -------------------------
|
|
34
|
+
prepare(sql) {
|
|
35
|
+
return this.db.prepare(sql);
|
|
36
|
+
}
|
|
37
|
+
get(sql, params = {}) {
|
|
38
|
+
return this.db.prepare(sql).get(params);
|
|
39
|
+
}
|
|
40
|
+
all(sql, params = {}) {
|
|
41
|
+
return this.db.prepare(sql).all(params);
|
|
42
|
+
}
|
|
43
|
+
run(sql, params = {}) {
|
|
44
|
+
return this.db.prepare(sql).run(params);
|
|
45
|
+
}
|
|
46
|
+
// -------------------------
|
|
47
|
+
// Transactions
|
|
48
|
+
// -------------------------
|
|
49
|
+
transaction(fn) {
|
|
50
|
+
const trx = this.db.transaction(fn);
|
|
51
|
+
return trx();
|
|
52
|
+
}
|
|
53
|
+
// -------------------------
|
|
54
|
+
// Upsert helper (very useful for build cache)
|
|
55
|
+
// -------------------------
|
|
56
|
+
upsert(sql, params = {}) {
|
|
57
|
+
return this.db.prepare(sql).run(params);
|
|
58
|
+
}
|
|
59
|
+
// -------------------------
|
|
60
|
+
// Bulk insert helper
|
|
61
|
+
// -------------------------
|
|
62
|
+
insertMany(sql, rows) {
|
|
63
|
+
const stmt = this.db.prepare(sql);
|
|
64
|
+
const trx = this.db.transaction((rows2) => {
|
|
65
|
+
for (const row of rows2) {
|
|
66
|
+
stmt.run(row);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
trx(rows);
|
|
70
|
+
}
|
|
71
|
+
// -------------------------
|
|
72
|
+
// Utility
|
|
73
|
+
// -------------------------
|
|
74
|
+
close() {
|
|
75
|
+
this.db.close();
|
|
76
|
+
}
|
|
77
|
+
// Raw access if needed (escape hatch)
|
|
78
|
+
raw() {
|
|
79
|
+
return this.db;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
DEFAULT_DB_PATH,
|
|
85
|
+
SQLite
|
|
86
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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/get-latest-workflow-status.mjs
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
function printReport(run, jobs) {
|
|
9
|
+
var _a;
|
|
10
|
+
console.log("\n==============================");
|
|
11
|
+
console.log("\u{1F680} Latest Workflow Run");
|
|
12
|
+
console.log("==============================");
|
|
13
|
+
console.log(`Name : ${run.name}`);
|
|
14
|
+
console.log(`Status : ${run.status}`);
|
|
15
|
+
console.log(`Conclusion: ${run.conclusion}`);
|
|
16
|
+
console.log(`Branch : ${run.head_branch}`);
|
|
17
|
+
console.log(`Run ID : ${run.id}`);
|
|
18
|
+
console.log(`URL : ${run.html_url}`);
|
|
19
|
+
console.log("\n==============================");
|
|
20
|
+
console.log("\u{1F9E9} Jobs & Steps");
|
|
21
|
+
console.log("==============================\n");
|
|
22
|
+
for (const job of jobs) {
|
|
23
|
+
console.log(`\u{1F9F1} Job: ${job.name}`);
|
|
24
|
+
console.log(` Status: ${job.status} | Conclusion: ${job.conclusion}`);
|
|
25
|
+
if (!((_a = job.steps) == null ? void 0 : _a.length)) {
|
|
26
|
+
console.log(" (no steps found)\n");
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
for (const step of job.steps) {
|
|
30
|
+
const icon = step.conclusion === "success" ? "\u2705" : step.conclusion === "failure" ? "\u274C" : step.conclusion === "skipped" ? "\u23ED\uFE0F" : "\u26AA";
|
|
31
|
+
console.log(` ${icon} ${step.name} -> ${step.conclusion} (${step.status})`);
|
|
32
|
+
}
|
|
33
|
+
console.log("");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
printReport
|
|
39
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__commonJS,
|
|
4
|
+
init_esm_shims
|
|
5
|
+
} from "./chunk-QQ4A6DLD.mjs";
|
|
6
|
+
|
|
7
|
+
// src/utils/isDebug.cjs
|
|
8
|
+
var require_isDebug = __commonJS({
|
|
9
|
+
"src/utils/isDebug.cjs"(exports, module) {
|
|
10
|
+
init_esm_shims();
|
|
11
|
+
function isDebug() {
|
|
12
|
+
if (globalThis.DEBUG !== void 0) {
|
|
13
|
+
if (typeof globalThis.DEBUG === "boolean") {
|
|
14
|
+
return globalThis.DEBUG;
|
|
15
|
+
}
|
|
16
|
+
return globalThis.DEBUG === "true" || globalThis.DEBUG === "1";
|
|
17
|
+
}
|
|
18
|
+
return process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.DEBUG === "1";
|
|
19
|
+
}
|
|
20
|
+
module.exports = isDebug;
|
|
21
|
+
module.exports.default = isDebug;
|
|
22
|
+
module.exports.isDebug = isDebug;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
require_isDebug
|
|
28
|
+
};
|