diff --git a/misc/qwen-code/Makefile b/misc/qwen-code/Makefile index 0c179169ec46..16cccf5bdce4 100644 --- a/misc/qwen-code/Makefile +++ b/misc/qwen-code/Makefile @@ -1,56 +1,56 @@ PORTNAME= qwen-code -DISTVERSION= 0.15.2 +DISTVERSION= 0.15.3 CATEGORIES= misc # machine-learning DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= olivier@FreeBSD.org COMMENT= Agentic coding tool from Alibaba WWW= https://github.com/QwenLM/qwen-code LICENSE= APACHE20 FETCH_DEPENDS= jq:textproc/jq \ npm:www/npm \ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss RUN_DEPENDS= rg:textproc/ripgrep USES= nodejs:run NO_BUILD= yes NO_ARCH= yes PACKAGE_NAME= @qwen-code/qwen-code FETCH_SCRIPT= ${PORTSDIR}/Tools/scripts/npmjs-fetch-with-dependencies.sh do-fetch: @if ! [ -f ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ]; then \ ${SETENV} TMPDIR=${WRKDIR} LOCALBASE=${LOCALBASE} ${FETCH_SCRIPT} \ ${PACKAGE_NAME} ${DISTVERSION} \ ${FILESDIR}/package-lock.json \ ${DISTDIR}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}; \ fi do-install: - # install node_modules @${MKDIR} ${STAGEDIR}${PREFIX}/lib @cd ${WRKSRC} && \ ${COPYTREE_SHARE} node_modules ${STAGEDIR}${PREFIX}/lib # remove bundled ripgrep (we use textproc/ripgrep via RUN_DEPENDS); # cli.js falls back to system rg when the builtin path is absent @${RM} -r ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/vendor/ripgrep # remove macOS-only sandbox profiles @${RM} ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/sandbox-macos-*.sb - # update shebang ${REINPLACE_CMD} -i '' \ -e "s|#!/usr/bin/env node|#!${PREFIX}/bin/node|" \ ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/cli.js - # set exec bit + ${REINPLACE_CMD} -i '' \ + -e 's|settings.merged.general?.enableAutoUpdate !== false|false|g' \ + ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/cli.js @${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/node_modules/${PACKAGE_NAME}/cli.js # create wrapper script @${MKDIR} ${STAGEDIR}${PREFIX}/bin @${ECHO_CMD} '#!/bin/sh' > ${STAGEDIR}${PREFIX}/bin/qwen @${ECHO_CMD} 'exec ${PREFIX}/lib/node_modules/${PACKAGE_NAME}/cli.js "$$@"' >> ${STAGEDIR}${PREFIX}/bin/qwen @${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/qwen .include diff --git a/misc/qwen-code/distinfo b/misc/qwen-code/distinfo index 196c201cbefb..55fdaf42edba 100644 --- a/misc/qwen-code/distinfo +++ b/misc/qwen-code/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1777043386 -SHA256 (qwen-code-0.15.2.tar.gz) = 28a0877b1c8edeb42329d1d43101fbf78cf8d496d37252f3a8c2f558eff284ca -SIZE (qwen-code-0.15.2.tar.gz) = 15555221 +TIMESTAMP = 1777242271 +SHA256 (qwen-code-0.15.3.tar.gz) = fae3671432d57eb060235f3d8c24db4cd0624e7a169fa5a46b2b74778b26ca23 +SIZE (qwen-code-0.15.3.tar.gz) = 15627743 diff --git a/misc/qwen-code/files/package-lock.json b/misc/qwen-code/files/package-lock.json index fff8da4653e5..81addd94b3f2 100644 --- a/misc/qwen-code/files/package-lock.json +++ b/misc/qwen-code/files/package-lock.json @@ -1,254 +1,254 @@ { "name": "@qwen-code/qwen-code-installer", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@qwen-code/qwen-code-installer", "version": "1.0.0", "dependencies": { - "@qwen-code/qwen-code": "^0.15.2" + "@qwen-code/qwen-code": "^0.15.3" } }, "node_modules/@qwen-code/qwen-code": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@qwen-code/qwen-code/-/qwen-code-0.15.2.tgz", - "integrity": "sha512-lxeP8Y95xaAGRK20MYJEQMPEe7pBJLUGQpHbnWyr99zOi3oQ7aXScfAQB3EEP1LHqzTsSScpw0ivIAUSu1l1Pg==", + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/@qwen-code/qwen-code/-/qwen-code-0.15.3.tgz", + "integrity": "sha512-QBygpLl8ih74G/fA4d/H2O7+zY+YD23g1hO8lv3YVgd/DOSOq6IclQU7UfKwZOnS89nslgHwmOAeYaDaj47+ig==", "bin": { "qwen": "cli.js" }, "engines": { "node": ">=20.0.0" }, "optionalDependencies": { "@lydell/node-pty": "1.2.0-beta.10", "@lydell/node-pty-darwin-arm64": "1.2.0-beta.10", "@lydell/node-pty-darwin-x64": "1.2.0-beta.10", "@lydell/node-pty-linux-x64": "1.2.0-beta.10", "@lydell/node-pty-win32-arm64": "1.2.0-beta.10", "@lydell/node-pty-win32-x64": "1.2.0-beta.10", "@teddyzhu/clipboard": "0.0.5", "@teddyzhu/clipboard-darwin-arm64": "0.0.5", "@teddyzhu/clipboard-darwin-x64": "0.0.5", "@teddyzhu/clipboard-linux-arm64-gnu": "0.0.5", "@teddyzhu/clipboard-linux-x64-gnu": "0.0.5", "@teddyzhu/clipboard-win32-arm64-msvc": "0.0.5", "@teddyzhu/clipboard-win32-x64-msvc": "0.0.5" } }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty/-/node-pty-1.2.0-beta.10.tgz", "integrity": "sha512-Fv+A3+MZVA8qhkBIZsM1E6dCdHNMyXXz22mAYiMWd03LlyK///F3OH6CKPX9mj4id7LUlxpr45yPzyBVy9aDPw==", "license": "MIT", "optional": true, "optionalDependencies": { "@lydell/node-pty-darwin-arm64": "1.2.0-beta.10", "@lydell/node-pty-darwin-x64": "1.2.0-beta.10", "@lydell/node-pty-linux-arm64": "1.2.0-beta.10", "@lydell/node-pty-linux-x64": "1.2.0-beta.10", "@lydell/node-pty-win32-arm64": "1.2.0-beta.10", "@lydell/node-pty-win32-x64": "1.2.0-beta.10" } }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty-darwin-arm64": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty-darwin-arm64/-/node-pty-darwin-arm64-1.2.0-beta.10.tgz", "integrity": "sha512-C+eqDyRNHRYvx7RaHj6VVCx6nCpRBPuuxhTcc3JH3GuBMoxTsYeY4GkWH2XOktrgbAq1BG8e/Y8bu/wNQreCEw==", "cpu": [ "arm64" ], "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty-darwin-x64": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty-darwin-x64/-/node-pty-darwin-x64-1.2.0-beta.10.tgz", "integrity": "sha512-aZoIK6HtJO5BiT4ELm683U4dyHtt8b7wNgq3NJqYAQwSXrcPv576Z8vY3BIulVxfcFkht/SPLKou9TtdFXdNpg==", "cpu": [ "x64" ], "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty-linux-arm64": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty-linux-arm64/-/node-pty-linux-arm64-1.2.0-beta.10.tgz", "integrity": "sha512-0cKX2iMyXFNBE4fGtGK6B7IkdXcDMZajyEDoGMOgQQs/DDtoI5tSPcBcqNY9VitVrsRQA8+gFt6eKYU9Ye/lUA==", "cpu": [ "arm64" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty-linux-x64": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty-linux-x64/-/node-pty-linux-x64-1.2.0-beta.10.tgz", "integrity": "sha512-J9HnxvSzEeMH748+Ul1VrmCLWMo7iCVJy9EGijRR62+YO/Yk5GaCydUTZ+KzlH0/X5aTrgt5cfiof4vx45tRRg==", "cpu": [ "x64" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty-win32-arm64": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty-win32-arm64/-/node-pty-win32-arm64-1.2.0-beta.10.tgz", "integrity": "sha512-PlDJpJX/pnKyy6OmADKzhf+INZDDnzTBGaI0LT4laVNc6NblZNqUSkCMjLFWbeakeuQp0VG37M49WQSN9FDfeA==", "cpu": [ "arm64" ], "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@qwen-code/qwen-code/node_modules/@lydell/node-pty-win32-x64": { "version": "1.2.0-beta.10", "resolved": "https://registry.npmjs.org/@lydell/node-pty-win32-x64/-/node-pty-win32-x64-1.2.0-beta.10.tgz", "integrity": "sha512-ExFgWrzyldNAMi45U9PLIOu+g/RatP+f0c/dZxaooifME6yLW32BoHveH26/TtoAjZyJrc2iL0u48pgnR1fzmg==", "cpu": [ "x64" ], "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard/-/clipboard-0.0.5.tgz", "integrity": "sha512-XA6MG7nLPZzj51agCwDYaVnVVrt0ByJ3G9rl3ar6N4GETAjUKKup6u76SLp2C5yHRWYV9hwMYDn04OGLar0MVg==", "license": "MIT", "optional": true, "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" }, "optionalDependencies": { "@teddyzhu/clipboard-darwin-arm64": "0.0.5", "@teddyzhu/clipboard-darwin-x64": "0.0.5", "@teddyzhu/clipboard-linux-arm64-gnu": "0.0.5", "@teddyzhu/clipboard-linux-x64-gnu": "0.0.5", "@teddyzhu/clipboard-win32-arm64-msvc": "0.0.5", "@teddyzhu/clipboard-win32-x64-msvc": "0.0.5" } }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard-darwin-arm64": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard-darwin-arm64/-/clipboard-darwin-arm64-0.0.5.tgz", "integrity": "sha512-FB3yykRAcw0VLmSjIGFddgew2t20UnLp80NZvi5e/lbsy/3mruHibMHkxHWqzCncuZsHdRsRXS/FmR/ggepW9A==", "cpu": [ "arm64" ], "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" } }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard-darwin-x64": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard-darwin-x64/-/clipboard-darwin-x64-0.0.5.tgz", "integrity": "sha512-tiDazMpLf2dS7BZUif3da3DLJima8E/CnexB3CNgjQf12CFJ+D1cPcj/CgfvMYZgFQSsYyACpQNfXn4hmVbymA==", "cpu": [ "x64" ], "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" } }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard-linux-arm64-gnu": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard-linux-arm64-gnu/-/clipboard-linux-arm64-gnu-0.0.5.tgz", "integrity": "sha512-qcokM+BaXn4iG4o4nYGHdfC04pr54S2F7x2o5osFhG3hMVYHZLR/8NKcYDKELnebpH612nW2bNRoWWy14lM45g==", "cpu": [ "arm64" ], "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" } }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard-linux-x64-gnu": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard-linux-x64-gnu/-/clipboard-linux-x64-gnu-0.0.5.tgz", "integrity": "sha512-Ogh4zYM9s537WJszSvKrPAoKQZ2grnY7Xy6szyJp2+84uQKWNbvZkATODAsRUn48zr9gqL3PZeUqkIBaz8sCpQ==", "cpu": [ "x64" ], "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" } }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard-win32-arm64-msvc": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard-win32-arm64-msvc/-/clipboard-win32-arm64-msvc-0.0.5.tgz", "integrity": "sha512-TuU+7e8qYc0T++sIArHTmqr+nfqiTfJ6gdrb1e8yDJb6MM3EFxCd2VonTqLQL1YpUdfcH+/rdMarG2rvCwvEhQ==", "cpu": [ "arm64" ], "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" } }, "node_modules/@qwen-code/qwen-code/node_modules/@teddyzhu/clipboard-win32-x64-msvc": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/@teddyzhu/clipboard-win32-x64-msvc/-/clipboard-win32-x64-msvc-0.0.5.tgz", "integrity": "sha512-f1Br5bI+INNDifjkOI1woZsIxsoW0rRej/4kaaJvZcMxxkSG9TMT2LYOjTF2g+DtXw32lsGvWICN6c3JiHeG7Q==", "cpu": [ "x64" ], "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { "node": ">= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0" } } } }