diff --git a/flake.nix b/flake.nix index e72dfd6..e4b22b9 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,9 @@ # formatting and linting tools similarity nixfmt-rfc-style + tsgolint + oxlint + oxfmt # security gitleaks diff --git a/knip.config.ts b/knip.config.ts index 9963d45..d3c8e7a 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -12,7 +12,7 @@ export default { }, }, ignore: ['**/*.test.ts', '**/*.spec.ts', '**/*.test-d.ts'], - ignoreBinaries: ['only-allow'], + ignoreBinaries: ['only-allow', 'oxfmt', 'oxlint'], ignoreDependencies: ['@typescript/native-preview'], rules: { optionalPeerDependencies: 'off', diff --git a/package.json b/package.json index 733a77f..cd08dfd 100644 --- a/package.json +++ b/package.json @@ -13,30 +13,36 @@ ], "homepage": "https://github.com/StackOneHQ/stackone-ai-node#readme", "bugs": "https://github.com/StackOneHQ/stackone-ai-node/issues", + "license": "Apache-2.0", + "author": "StackOne", "repository": { "type": "git", "url": "git+https://github.com/StackOneHQ/stackone-ai-node.git" }, - "author": "StackOne", - "license": "Apache-2.0", + "files": [ + "dist", + "LICENSE", + "README.md", + "src", + "!examples/*.test.ts", + "examples/*.ts", + "!src/**/*.test-d.ts", + "!src/**/*.test.ts" + ], "type": "module", "main": "./dist/index.mjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.mts", "exports": { ".": "./src/index.ts", "./package.json": "./package.json" }, - "module": "./dist/index.mjs", - "types": "./dist/index.d.mts", - "files": [ - "!examples/*.test.ts", - "!src/**/*.test-d.ts", - "!src/**/*.test.ts", - "LICENSE", - "README.md", - "dist", - "examples/*.ts", - "src" - ], + "publishConfig": { + "exports": { + ".": "./dist/index.mjs", + "./package.json": "./package.json" + } + }, "scripts": { "build": "tsdown", "format": "pnpm --no-bail --aggregate-output run '/^format:/'", @@ -69,9 +75,6 @@ "lefthook": "catalog:dev", "msw": "catalog:dev", "openai": "catalog:peer", - "oxfmt": "catalog:dev", - "oxlint": "catalog:dev", - "oxlint-tsgolint": "catalog:dev", "publint": "catalog:dev", "tsdown": "catalog:dev", "type-fest": "catalog:dev", @@ -100,10 +103,6 @@ "optional": true } }, - "packageManager": "pnpm@10.26.0", - "engines": { - "node": ">=20.19.6" - }, "devEngines": { "runtime": [ { @@ -113,10 +112,8 @@ } ] }, - "publishConfig": { - "exports": { - ".": "./dist/index.mjs", - "./package.json": "./package.json" - } - } + "engines": { + "node": ">=20.19.6" + }, + "packageManager": "pnpm@10.26.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea9510b..face3f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,15 +42,6 @@ catalogs: msw: specifier: ^2.10.4 version: 2.12.3 - oxfmt: - specifier: ^0.18.0 - version: 0.18.0 - oxlint: - specifier: ^1.32.0 - version: 1.32.0 - oxlint-tsgolint: - specifier: ^0.8.6 - version: 0.8.6 publint: specifier: ^0.3.12 version: 0.3.15 @@ -159,15 +150,6 @@ importers: openai: specifier: catalog:peer version: 6.9.1(zod@4.3.5) - oxfmt: - specifier: catalog:dev - version: 0.18.0 - oxlint: - specifier: catalog:dev - version: 1.32.0(oxlint-tsgolint@0.8.6) - oxlint-tsgolint: - specifier: catalog:dev - version: 0.8.6 publint: specifier: catalog:dev version: 0.3.15 @@ -928,124 +910,6 @@ packages: cpu: [x64] os: [win32] - '@oxfmt/darwin-arm64@0.18.0': - resolution: {integrity: sha512-Dp3mOFUtLtG/0eDclI3rx2be5FEnUxh2T6zlq7Zx5Q1c+DS9LJF8H97nQx+O/OU+o0e0J90kN8Msf9v3j7Hhsg==} - cpu: [arm64] - os: [darwin] - - '@oxfmt/darwin-x64@0.18.0': - resolution: {integrity: sha512-Oe3KS4tdfLq+f1Ebje7D9BF7/0xmBYSMN6dWatSko1xfvu8oCZzKcNCcbwz0a8rBnoH/BnIiGFUEbgJDnA/JLQ==} - cpu: [x64] - os: [darwin] - - '@oxfmt/linux-arm64-gnu@0.18.0': - resolution: {integrity: sha512-zW9z8LrAgL9bswgsaFOnQmoImCbq9YQST8B15FAoTeZYr9sb/VfdD6/PQEBLCptYlFmoTvmDNHjppi9g61NwHQ==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@oxfmt/linux-arm64-musl@0.18.0': - resolution: {integrity: sha512-mFnpcasZZv1s/+6YDPradhIgR2G7GWr+mnzgJMIKQOJAtX3b0vzG+FE4f7hDIZPEUhC0hvZSd8f31FjAtrX0aQ==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@oxfmt/linux-x64-gnu@0.18.0': - resolution: {integrity: sha512-G1AXQNHVkPgVgRrAvDYdNi0x3gkvVyEmpL6WLMwoSjMnwYWQLt5/jrndHbS2Db8/CcmMo6VPP8lUQGvM4TRVaQ==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@oxfmt/linux-x64-musl@0.18.0': - resolution: {integrity: sha512-M/KEIMHDr5lcK9gDxgIGr9xVwX7Pfl3PZs+6e8SySuckMgoJMkee6uWxhMdxws3dfU94saAkVmNQzM2+l3hvtA==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@oxfmt/win32-arm64@0.18.0': - resolution: {integrity: sha512-LunuNBTLOgfkYFjiHOeNHD/Ii5paO/GVyNPSEYBwEPULbdeMGnjHqxzQHLGU8QIQjwu55mp4uuBP0DAXTli2TQ==} - cpu: [arm64] - os: [win32] - - '@oxfmt/win32-x64@0.18.0': - resolution: {integrity: sha512-0kJJwn4FPeGJ4uV6ofOCiY+oBKWg+RWpRjYc9bywTjDbxWR6JAqtuXkiARCJej8UD/rJeXnHYTF78sFALkwZyA==} - cpu: [x64] - os: [win32] - - '@oxlint-tsgolint/darwin-arm64@0.8.6': - resolution: {integrity: sha512-khvQiNpPVNkyz6vmN50v5j1X6r9anRDXy3htDBpObx4V5bp33BK94onh46e91GTEbBevmeUG/Zm/U3+np4gehw==} - cpu: [arm64] - os: [darwin] - - '@oxlint-tsgolint/darwin-x64@0.8.6': - resolution: {integrity: sha512-AardvXBLB0m05BGcubXTqWSpNv2aD68QyY7BB/u2AqKzMoEtvzSB710FL06vOTPpaVpl3GvSVHCFw2juo35lTQ==} - cpu: [x64] - os: [darwin] - - '@oxlint-tsgolint/linux-arm64@0.8.6': - resolution: {integrity: sha512-oSgMIilQBUVSOGdWIm4/5GJV4QmqwBQYpsGtRUpTAd3BZTWVuo40//n/ogJFnlCVd+i4yhsGLtwexd/7YlJ9sw==} - cpu: [arm64] - os: [linux] - - '@oxlint-tsgolint/linux-x64@0.8.6': - resolution: {integrity: sha512-EhR2TejCW5gBPEs6ASgfFFgdveHvpKOHQC2zbO3HoFT/xNU0DvYbEsScKM8SUDWFMQlHU67A7bynNGRY2kFSSg==} - cpu: [x64] - os: [linux] - - '@oxlint-tsgolint/win32-arm64@0.8.6': - resolution: {integrity: sha512-PQeV8YitT2HR/uJV8ugERIpA4WHDem7i5TuPtgYrp7wvKS98G9ILpnPgATrOup/VdBMIzCDl02c23z4+I5NSTw==} - cpu: [arm64] - os: [win32] - - '@oxlint-tsgolint/win32-x64@0.8.6': - resolution: {integrity: sha512-JDlyJSOnJXahee9xL55gT02kmQGSP0hR/5OP5asXvr7q6dj9t4skltcwYiA+D4HthF04oaW1F0+6pJnNTfDE0w==} - cpu: [x64] - os: [win32] - - '@oxlint/darwin-arm64@1.32.0': - resolution: {integrity: sha512-yrqPmZYu5Qb+49h0P5EXVIq8VxYkDDM6ZQrWzlh16+UGFcD8HOXs4oF3g9RyfaoAbShLCXooSQsM/Ifwx8E/eQ==} - cpu: [arm64] - os: [darwin] - - '@oxlint/darwin-x64@1.32.0': - resolution: {integrity: sha512-pQRZrJG/2nAKc3IuocFbaFFbTDlQsjz2WfivRsMn0hw65EEsSuM84WMFMiAfLpTGyTICeUtHZLHlrM5lzVr36A==} - cpu: [x64] - os: [darwin] - - '@oxlint/linux-arm64-gnu@1.32.0': - resolution: {integrity: sha512-tyomSmU2DzwcTmbaWFmStHgVfRmJDDvqcIvcw4fRB1YlL2Qg/XaM4NJ0m2bdTap38gxD5FSxSgCo0DkQ8GTolg==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@oxlint/linux-arm64-musl@1.32.0': - resolution: {integrity: sha512-0W46dRMaf71OGE4+Rd+GHfS1uF/UODl5Mef6871pMhN7opPGfTI2fKJxh9VzRhXeSYXW/Z1EuCq9yCfmIJq+5Q==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@oxlint/linux-x64-gnu@1.32.0': - resolution: {integrity: sha512-5+6myVCBOMvM62rDB9T3CARXUvIwhGqte6E+HoKRwYaqsxGUZ4bh3pItSgSFwHjLGPrvADS11qJUkk39eQQBzQ==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@oxlint/linux-x64-musl@1.32.0': - resolution: {integrity: sha512-qwQlwYYgVIC6ScjpUwiKKNyVdUlJckrfwPVpIjC9mvglIQeIjKuuyaDxUZWIOc/rEzeCV/tW6tcbehLkfEzqsw==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@oxlint/win32-arm64@1.32.0': - resolution: {integrity: sha512-7qYZF9CiXGtdv8Z/fBkgB5idD2Zokht67I5DKWH0fZS/2R232sDqW2JpWVkXltk0+9yFvmvJ0ouJgQRl9M3S2g==} - cpu: [arm64] - os: [win32] - - '@oxlint/win32-x64@1.32.0': - resolution: {integrity: sha512-XW1xqCj34MEGJlHteqasTZ/LmBrwYIgluhNW0aP+XWkn90+stKAq3W/40dvJKbMK9F7o09LPCuMVtUW7FIUuiA==} - cpu: [x64] - os: [win32] - '@publint/pack@0.1.2': resolution: {integrity: sha512-S+9ANAvUmjutrshV4jZjaiG8XQyuJIZ8a4utWmN/vW1sgQ9IfBnPndwkmQYw53QmouOIytT874u65HEmu6H5jw==} engines: {node: '>=18'} @@ -2062,25 +1926,6 @@ packages: oxc-resolver@11.15.0: resolution: {integrity: sha512-Hk2J8QMYwmIO9XTCUiOH00+Xk2/+aBxRUnhrSlANDyCnLYc32R1WSIq1sU2yEdlqd53FfMpPEpnBYIKQMzliJw==} - oxfmt@0.18.0: - resolution: {integrity: sha512-XqVS+LQi7ARsFlIftB69+jGN2qQaJNBjQU2b9ZQYt+iaUV9digh+dBIsU0isQIZhaQ1ihxGFfsTYQXE/Oak8Qw==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - - oxlint-tsgolint@0.8.6: - resolution: {integrity: sha512-DC9rqwFyEb5RlxOjvXdqaqxM5PwK01002oh/fcdC05mNPiI04d6CPWtReHqX6Ig1dc5LYuVeh3wuPrrp6WTjtw==} - hasBin: true - - oxlint@1.32.0: - resolution: {integrity: sha512-HYDQCga7flsdyLMUIxTgSnEx5KBxpP9VINB8NgO+UjV80xBiTQXyVsvjtneMT3ZBLMbL0SlG/Dm03XQAsEshMA==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - oxlint-tsgolint: '>=0.8.1' - peerDependenciesMeta: - oxlint-tsgolint: - optional: true - package-manager-detector@1.6.0: resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==} @@ -2316,10 +2161,6 @@ packages: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} - tinypool@2.0.0: - resolution: {integrity: sha512-/RX9RzeH2xU5ADE7n2Ykvmi9ED3FBGPAjw9u3zucrNNaEBIO0HPSYgL0NT7+3p147ojeSdaVu08F6hjpv31HJg==} - engines: {node: ^20.0.0 || >=22.0.0} - tinyrainbow@3.0.3: resolution: {integrity: sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q==} engines: {node: '>=14.0.0'} @@ -3050,72 +2891,6 @@ snapshots: '@oxc-resolver/binding-win32-x64-msvc@11.15.0': optional: true - '@oxfmt/darwin-arm64@0.18.0': - optional: true - - '@oxfmt/darwin-x64@0.18.0': - optional: true - - '@oxfmt/linux-arm64-gnu@0.18.0': - optional: true - - '@oxfmt/linux-arm64-musl@0.18.0': - optional: true - - '@oxfmt/linux-x64-gnu@0.18.0': - optional: true - - '@oxfmt/linux-x64-musl@0.18.0': - optional: true - - '@oxfmt/win32-arm64@0.18.0': - optional: true - - '@oxfmt/win32-x64@0.18.0': - optional: true - - '@oxlint-tsgolint/darwin-arm64@0.8.6': - optional: true - - '@oxlint-tsgolint/darwin-x64@0.8.6': - optional: true - - '@oxlint-tsgolint/linux-arm64@0.8.6': - optional: true - - '@oxlint-tsgolint/linux-x64@0.8.6': - optional: true - - '@oxlint-tsgolint/win32-arm64@0.8.6': - optional: true - - '@oxlint-tsgolint/win32-x64@0.8.6': - optional: true - - '@oxlint/darwin-arm64@1.32.0': - optional: true - - '@oxlint/darwin-x64@1.32.0': - optional: true - - '@oxlint/linux-arm64-gnu@1.32.0': - optional: true - - '@oxlint/linux-arm64-musl@1.32.0': - optional: true - - '@oxlint/linux-x64-gnu@1.32.0': - optional: true - - '@oxlint/linux-x64-musl@1.32.0': - optional: true - - '@oxlint/win32-arm64@1.32.0': - optional: true - - '@oxlint/win32-x64@1.32.0': - optional: true - '@publint/pack@0.1.2': {} '@quansync/fs@1.0.0': @@ -3980,40 +3755,6 @@ snapshots: '@oxc-resolver/binding-win32-ia32-msvc': 11.15.0 '@oxc-resolver/binding-win32-x64-msvc': 11.15.0 - oxfmt@0.18.0: - dependencies: - tinypool: 2.0.0 - optionalDependencies: - '@oxfmt/darwin-arm64': 0.18.0 - '@oxfmt/darwin-x64': 0.18.0 - '@oxfmt/linux-arm64-gnu': 0.18.0 - '@oxfmt/linux-arm64-musl': 0.18.0 - '@oxfmt/linux-x64-gnu': 0.18.0 - '@oxfmt/linux-x64-musl': 0.18.0 - '@oxfmt/win32-arm64': 0.18.0 - '@oxfmt/win32-x64': 0.18.0 - - oxlint-tsgolint@0.8.6: - optionalDependencies: - '@oxlint-tsgolint/darwin-arm64': 0.8.6 - '@oxlint-tsgolint/darwin-x64': 0.8.6 - '@oxlint-tsgolint/linux-arm64': 0.8.6 - '@oxlint-tsgolint/linux-x64': 0.8.6 - '@oxlint-tsgolint/win32-arm64': 0.8.6 - '@oxlint-tsgolint/win32-x64': 0.8.6 - - oxlint@1.32.0(oxlint-tsgolint@0.8.6): - optionalDependencies: - '@oxlint/darwin-arm64': 1.32.0 - '@oxlint/darwin-x64': 1.32.0 - '@oxlint/linux-arm64-gnu': 1.32.0 - '@oxlint/linux-arm64-musl': 1.32.0 - '@oxlint/linux-x64-gnu': 1.32.0 - '@oxlint/linux-x64-musl': 1.32.0 - '@oxlint/win32-arm64': 1.32.0 - '@oxlint/win32-x64': 1.32.0 - oxlint-tsgolint: 0.8.6 - package-manager-detector@1.6.0: {} parseurl@1.3.3: {} @@ -4276,8 +4017,6 @@ snapshots: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 - tinypool@2.0.0: {} - tinyrainbow@3.0.3: {} tldts-core@7.0.19: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4116609..d1b1e68 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -18,9 +18,6 @@ catalogs: knip: ^5.72.0 lefthook: ^2.0.8 msw: ^2.10.4 - oxfmt: ^0.18.0 - oxlint: ^1.32.0 - oxlint-tsgolint: ^0.8.6 publint: ^0.3.12 tsdown: ^0.17.2 type-fest: ^4.41.0 @@ -60,7 +57,6 @@ onlyBuiltDependencies: - esbuild - lefthook - msw - - oxlint shellEmulator: true