diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 00e8361..bcc6c02 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -1,6 +1,8 @@ { "name": "taskflow-tools", - "owner": { "name": "Guilherme Moraes" }, + "owner": { + "name": "Guilherme Moraes" + }, "plugins": [ { "name": "taskflow", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 50b3598..bc0dae8 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,7 @@ { "name": "taskflow", "description": "Plan-and-task workflow: scope/tasks/questions/progress scaffolding split into pull requests under a line budget, acceptance criteria agreed up front, tests red before green, one-task-per-commit cycle, questions answered at the task that needs them, red-first bug fixes, docs-and-diagram sync, standards review.", - "version": "0.6.3", + "version": "0.7.0", + "types": "./types/index.d.ts", "author": { "name": "Guilherme Moraes" } } diff --git a/.gitignore b/.gitignore index 7ae0b08..298cc17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,12 @@ # Local working notes - research, comparisons, improvement plans. # Kept out of the plugin: what ships is the procedure, not the reasoning behind it. docs/ + +# Claude Code's plugin API types, written per Claude Code version - copied in locally for the editor. +.claude-plugin/types/ + +# Editor settings - per person. +.vscode/ + +# Dev tooling - lint, format and type check. +node_modules/ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..b4d7231 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +npm run --silent lint +npm run --silent typecheck +npm run --silent format:check +npm run --silent version:check diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 0000000..070d942 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +local_hook="$(git rev-parse --git-dir)/hooks/pre-push" +if [ -x "$local_hook" ]; then + "$local_hook" "$@" +fi diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..2ea6215 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "semi": false, + "singleQuote": true, + "printWidth": 120, + "trailingComma": "all", + "arrowParens": "avoid", + "quoteProps": "preserve" +} diff --git a/README.md b/README.md index 408c13b..2eaa7fd 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,12 @@ Then, in the repo you want to use it on: > ๐Ÿ’ก To install from a local checkout instead, pass its path to `/plugin marketplace add`. +The plugin also adds a side pane. `/taskflow` +opens it: every plan's progress, its active tasks and open questions, the pull requests +with their links, a key for `/next-task`, and a delete button for a plan folder that +asks before it removes anything. It opens by itself at session start on terminals of 144 +columns or more. + ## How a piece of work flows ๐Ÿ” ``` diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..3827e62 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,13 @@ +import tseslint from 'typescript-eslint' + +export default tseslint.config( + { ignores: ['.claude-plugin/types/**', 'node_modules/**'] }, + ...tseslint.configs.strict, + { + files: ['**/*.{ts,tsx}'], + rules: { + 'no-console': 'error', + 'eqeqeq': 'error', + }, + }, +) diff --git a/hooks/hooks.json b/hooks/hooks.json index 0131d83..9616f15 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -30,5 +30,8 @@ ] } ] - } + }, + "modules": [ + "../panel/register.tsx" + ] } diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..dd9d0f2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1626 @@ +{ + "name": "taskflow", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "taskflow", + "devDependencies": { + "eslint": "9.17.0", + "husky": "^9.1.7", + "prettier": "3.4.2", + "typescript": "5.6.3", + "typescript-eslint": "8.18.1" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", + "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.1.tgz", + "integrity": "sha512-GuUdqkyyzQI5RMIWkHhvTWLCyLo1jNK3vzkSyaExH5kHPDHcuL2VOpHjmMY+y3+NC69qAKToBqldTBgYeLSr9Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", + "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.14.0", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.3.2", + "minimatch": "^3.1.5", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.17.0.tgz", + "integrity": "sha512-Sxc4hqcs1kTu0iID3kcZDW3JHq2a77HO9P8CP6YEA/FpH3Ll8UXE2r/86Rz9YJLKme39S9vU5OWNjC6Xl0Cr3w==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", + "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.13.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", + "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.18.1.tgz", + "integrity": "sha512-Ncvsq5CT3Gvh+uJG0Lwlho6suwDfUXH0HztslDf5I+F2wAFAZMRwYLEorumpKLzmO2suAXZ/td1tBg4NZIi9CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.18.1", + "@typescript-eslint/type-utils": "8.18.1", + "@typescript-eslint/utils": "8.18.1", + "@typescript-eslint/visitor-keys": "8.18.1", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.18.1.tgz", + "integrity": "sha512-rBnTWHCdbYM2lh7hjyXqxk70wvon3p2FyaniZuey5TrcGBpfhVp0OxOa6gxr9Q9YhZFKyfbEnxc24ZnVbbUkCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.18.1", + "@typescript-eslint/types": "8.18.1", + "@typescript-eslint/typescript-estree": "8.18.1", + "@typescript-eslint/visitor-keys": "8.18.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.18.1.tgz", + "integrity": "sha512-HxfHo2b090M5s2+/9Z3gkBhI6xBH8OJCFjH9MhQ+nnoZqxU3wNxkLT+VWXWSFWc3UF3Z+CfPAyqdCTdoXtDPCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.18.1", + "@typescript-eslint/visitor-keys": "8.18.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.18.1.tgz", + "integrity": "sha512-jAhTdK/Qx2NJPNOTxXpMwlOiSymtR2j283TtPqXkKBdH8OAMmhiUfP0kJjc/qSE51Xrq02Gj9NY7MwK+UxVwHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "8.18.1", + "@typescript-eslint/utils": "8.18.1", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.18.1.tgz", + "integrity": "sha512-7uoAUsCj66qdNQNpH2G8MyTFlgerum8ubf21s3TSM3XmKXuIn+H2Sifh/ES2nPOPiYSRJWAk0fDkW0APBWcpfw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.18.1.tgz", + "integrity": "sha512-z8U21WI5txzl2XYOW7i9hJhxoKKNG1kcU4RzyNvKrdZDmbjkmLBo8bgeiOJmA06kizLI76/CCBAAGlTlEeUfyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.18.1", + "@typescript-eslint/visitor-keys": "8.18.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.18.1.tgz", + "integrity": "sha512-8vikiIj2ebrC4WRdcAdDcmnu9Q/MXXwg+STf40BVfT8exDqBCUPdypvzcUPxEqRGKg9ALagZ0UWcYCtn+4W2iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.18.1", + "@typescript-eslint/types": "8.18.1", + "@typescript-eslint/typescript-estree": "8.18.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.18.1.tgz", + "integrity": "sha512-Vj0WLm5/ZsD013YeUKn+K0y8p1M0jPpxOkKdbD1wB0ns53a5piVY02zjf072TblEweAbcYiFiPoSMF3kp+VhhQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.18.1", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/acorn": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.17.0.tgz", + "integrity": "sha512-evtlNcpJg+cZLcnVKwsai8fExnqjGPicK7gnUtlNuzu+Fv9bI0aLpND5T44VLQtoMEnI57LoXO9XAkIXwohKrA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.9.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.17.0", + "@eslint/plugin-kit": "^0.2.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC" + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-yaml": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.18.1.tgz", + "integrity": "sha512-Mlaw6yxuaDEPQvb/2Qwu3/TfgeBHy9iTJ3mTwe7OvpPmF6KPQjVOfGyEJpPv6Ez2C34OODChhXrzYw/9phI0MQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.18.1", + "@typescript-eslint/parser": "8.18.1", + "@typescript-eslint/utils": "8.18.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..d3ca149 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "taskflow", + "private": true, + "type": "module", + "scripts": { + "prepare": "husky", + "lint": "eslint panel types", + "format": "prettier --write panel types", + "format:check": "prettier --check panel types", + "typecheck": "tsc --noEmit -p .", + "check": "npm run lint && npm run format:check && npm run typecheck && npm run version:check", + "version:check": "node scripts/check-version.js" + }, + "devDependencies": { + "eslint": "9.17.0", + "husky": "^9.1.7", + "prettier": "3.4.2", + "typescript": "5.6.3", + "typescript-eslint": "8.18.1" + } +} diff --git a/panel/data/board.ts b/panel/data/board.ts new file mode 100644 index 0000000..3df0ab0 --- /dev/null +++ b/panel/data/board.ts @@ -0,0 +1,77 @@ +import { atom, read, update } from 'claude-code' +import type { EngineInterface } from 'claude-code' + +import type { PlanBoard, PlanProject } from '../../types' +import { isSafeProjectName, parseProgress, parseWorktrees, repoWebUrl } from '../domain/parse' + +const board = atom({ plugin: 'taskflow', key: 'board' } as const, null) +const selected = atom({ plugin: 'taskflow', key: 'selected' } as const, null) +const pendingDelete = atom({ plugin: 'taskflow', key: 'pendingDelete' } as const, null) +const notice = atom({ plugin: 'taskflow', key: 'notice' } as const, null) + +const DEFAULT_PROJECTS_DIR = '.planning/projects' + +async function repoRoot($: EngineInterface) { + const toplevel = await $.process.run(['git', 'rev-parse', '--show-toplevel']) + + return toplevel.exitCode === 0 ? toplevel.stdout.trim() : await $.session.cwd() +} + +async function readProjectsDir($: EngineInterface, root: string) { + try { + const config = JSON.parse(await $.fs.read(`${root}/.claude/workflow.json`)) + + return typeof config.projectsDir === 'string' ? config.projectsDir : DEFAULT_PROJECTS_DIR + } catch { + return DEFAULT_PROJECTS_DIR + } +} + +export async function loadBoard($: EngineInterface) { + const root = await repoRoot($) + const projectsDir = await readProjectsDir($, root) + const projectsPath = `${root}/${projectsDir}` + const remote = await $.process.run(['git', 'remote', 'get-url', 'origin'], { cwd: root }) + const repoUrl = remote.exitCode === 0 ? repoWebUrl(remote.stdout) : null + const worktreeList = await $.process.run(['git', 'worktree', 'list', '--porcelain'], { cwd: root }) + const worktrees = worktreeList.exitCode === 0 ? parseWorktrees(worktreeList.stdout) : {} + + const projects: PlanProject[] = [] + if (await $.fs.exists(projectsPath)) { + for (const entry of await $.fs.list(projectsPath)) { + if (entry.kind !== 'dir') continue + const progressPath = `${projectsPath}/${entry.name}/PROGRESS.md` + if (!(await $.fs.exists(progressPath))) continue + const { title, rows } = parseProgress(await $.fs.read(progressPath)) + const { mtimeMs } = await $.fs.stat(progressPath) + projects.push({ name: entry.name, title: title || entry.name, rows, updatedAt: mtimeMs }) + } + } + projects.sort((first, second) => second.updatedAt - first.updatedAt) + + const next: PlanBoard = { projectsDir, repoUrl, worktrees, projects } + await update($, board, () => next) + + const current = await read($, selected) + if (!projects.some(project => project.name === current)) { + await update($, selected, () => null) + } +} + +export async function deleteProject($: EngineInterface, name: string) { + const current = await read($, board) + const isKnown = current?.projects.some(project => project.name === name) ?? false + if (current === null || !isKnown || !isSafeProjectName(name)) { + await update($, notice, () => `Refused to delete "${name}".`) + return + } + + const target = `${await repoRoot($)}/${current.projectsDir}/${name}` + const removal = await $.process.run(['rm', '-rf', '--', target]) + await update($, pendingDelete, () => null) + await update($, notice, () => + removal.exitCode === 0 ? `Deleted ${current.projectsDir}/${name}` : `Delete failed: ${removal.stderr.trim()}`, + ) + await update($, selected, () => null) + await loadBoard($) +} diff --git a/panel/domain/mascot.test.ts b/panel/domain/mascot.test.ts new file mode 100644 index 0000000..d20a949 --- /dev/null +++ b/panel/domain/mascot.test.ts @@ -0,0 +1,57 @@ +import { expect, test } from 'claude-code/testing' + +import type { PlanRow } from '../../types' +import { mascotFrame, mascotMood, mascotSpinner } from './mascot' + +const row = (kind: PlanRow['kind'], status: string): PlanRow => ({ + id: 'X', + kind, + status, + owner: '', + summary: '', + prNumber: null, + branch: null, +}) + +test('mascot mood follows the plan', () => { + expect(mascotMood([])).toBe('idle') + expect(mascotMood([row('task', 'โœ… done')])).toBe('done') + expect(mascotMood([row('task', '๐Ÿšง blocked'), row('task', '๐Ÿ”„ in progress')])).toBe('blocked') + expect(mascotMood([row('task', '๐Ÿ”„ in progress'), row('question', 'โฌœ open')])).toBe('asking') + expect(mascotMood([row('task', '๐Ÿ”„ in progress')])).toBe('working') + expect(mascotMood([row('task', 'โฌœ pending')])).toBe('idle') +}) + +test('every mood frame is the same full-cell grid', () => { + const moods = ['idle', 'working', 'blocked', 'asking', 'done'] as const + for (const mood of moods) { + const rows = mascotFrame(mood, 0) + expect(rows.length).toBe(7) + for (const cells of rows) expect(cells.length).toBe(20) + } +}) + +test('the spinner arc moves one pixel per step and wraps after a full turn', () => { + const heads = (step: number) => + mascotSpinner(step).flatMap((cells, row) => + cells.flatMap((cell, column) => [ + ...(cell.top === '#FFBF36' ? [`${row * 2}:${column}`] : []), + ...(cell.bottom === '#FFBF36' ? [`${row * 2 + 1}:${column}`] : []), + ]), + ) + expect(heads(0)).toEqual(['6:8']) + expect(heads(1)).toEqual(['6:9']) + expect(heads(12)).toEqual(heads(0)) + expect(mascotSpinner(0).length).toBe(7) +}) + +test('each mood animates: some later step draws a different frame', () => { + const moods = ['idle', 'working', 'blocked', 'asking', 'done'] as const + for (const mood of moods) { + const first = JSON.stringify(mascotFrame(mood, 0)) + const changes = Array.from({ length: 40 }, (_, step) => JSON.stringify(mascotFrame(mood, step))).some( + frame => frame !== first, + ) + expect(changes).toBe(true) + } +}) diff --git a/panel/domain/mascot.ts b/panel/domain/mascot.ts new file mode 100644 index 0000000..12ecc0c --- /dev/null +++ b/panel/domain/mascot.ts @@ -0,0 +1,130 @@ +import type { PlanRow } from '../../types' + +import { openQuestions, taskTotals } from './parse' + +export type MascotMood = 'idle' | 'working' | 'blocked' | 'asking' | 'done' + +const PALETTE: Record = { + A: '#00B4D8', + B: '#00B7BC', + D: '#1B3137', + E: '#D5DFE0', + G: '#00BD74', + K: '#11191C', + M: '#8E2A20', + N: '#91513C', + R: '#F36353', + S: '#1F6D75', + T: '#C6966D', + W: '#FFFFFF', + Y: '#FFBF36', +} + +const HEAD = [ + '............AA......', + '...........AAAA.....', + '....BBBBBBBAAAABBB..', + '.BBBBBBBBBBBBBBBBBSS', + 'DDDDDDDDDDDDDDDDDDSS', + 'DWWWWWWWWWWWWWWWWDSS', +] +const VISOR_BOTTOM = ['DWWWWWWWWWWWWWWWWDSS', 'DDDDDDDDDDDDDDDDDDSS'] +const LIDS = 'DWDDDDWDDDDWDDDDWDSS' +const CLOSED = 'DWWWWWWWWWWWWWWWWDSS' +const eyes = (left: string, middle: string, right: string) => `DWD${left}DWD${middle}DWD${right}DWDSS` +const open = eyes('YY', 'TT', 'NN') + +const phase = (step: number, length: number) => Math.floor(step / length) % 2 === 1 +const blinks = (step: number, every: number) => step % every < 2 +const shut = [CLOSED, CLOSED, CLOSED, LIDS, CLOSED, CLOSED] + +function moodFrame(mood: MascotMood, step: number): { visor: string[]; antenna: string } { + switch (mood) { + case 'working': { + const glance = phase(step, 8) ? eyes('YK', 'TK', 'NK') : eyes('KY', 'KT', 'KN') + return { visor: blinks(step, 40) ? shut : [LIDS, open, glance, glance, open, LIDS], antenna: 'A' } + } + case 'idle': + return { + visor: phase(step, 15) + ? [CLOSED, CLOSED, CLOSED, CLOSED, LIDS, open] + : [CLOSED, CLOSED, CLOSED, LIDS, open, open], + antenna: 'A', + } + case 'blocked': { + const alarm = phase(step, 4) + const red = alarm ? eyes('MM', 'MM', 'MM') : eyes('RR', 'RR', 'RR') + return { visor: [LIDS, red, red, red, red, LIDS], antenna: alarm ? 'A' : 'R' } + } + case 'asking': { + const up = phase(step, 6) ? eyes('YK', 'TK', 'NK') : eyes('KY', 'KT', 'KN') + return { visor: [LIDS, up, open, open, open, LIDS], antenna: phase(step, 5) ? 'Y' : 'A' } + } + case 'done': { + const green = eyes('GG', 'GG', 'GG') + return { + visor: blinks(step, 30) ? shut : [LIDS, green, green, green, green, LIDS], + antenna: phase(step, 8) ? 'G' : 'A', + } + } + } +} + +const RING: [number, number][] = [ + [0, 8], + [0, 9], + [1, 10], + [2, 11], + [3, 11], + [4, 10], + [5, 9], + [5, 8], + [4, 7], + [3, 6], + [2, 6], + [1, 7], +] +const ARC = ['Y', 'T', 'N'] + +export type MascotCell = { top?: string; bottom?: string } + +export function mascotMood(rows: PlanRow[]): MascotMood { + const { done, total } = taskTotals(rows) + const tasks = rows.filter(row => row.kind === 'task') + if (total === 0) return 'idle' + if (done === total) return 'done' + if (tasks.some(row => row.status.startsWith('๐Ÿšง'))) return 'blocked' + if (openQuestions(rows).length > 0) return 'asking' + if (tasks.some(row => row.status.startsWith('๐Ÿ”„'))) return 'working' + + return 'idle' +} + +export function mascotFrame(mood: MascotMood, step: number): MascotCell[][] { + const { visor, antenna } = moodFrame(mood, step) + const head = HEAD.map(row => row.replaceAll('A', antenna)) + + return toCells([...head, ...visor, ...VISOR_BOTTOM]) +} + +export function mascotSpinner(step: number): MascotCell[][] { + const visor = Array.from({ length: 6 }, () => [...CLOSED]) + RING.forEach(([row, column], index) => { + const behind = (step - index + RING.length * 2) % RING.length + const pixels = visor[row] + if (pixels) pixels[column] = ARC[behind] ?? 'E' + }) + + return toCells([...HEAD, ...visor.map(pixels => pixels.join('')), ...VISOR_BOTTOM]) +} + +function toCells(pixels: string[]): MascotCell[][] { + const rows: MascotCell[][] = [] + for (let y = 0; y < pixels.length; y += 2) { + const upper = pixels[y] ?? '' + const lower = pixels[y + 1] ?? '' + rows.push([...upper].map((top, x) => ({ top: PALETTE[top], bottom: PALETTE[lower[x] ?? '.'] }))) + } + + return rows +} diff --git a/panel/domain/parse.test.ts b/panel/domain/parse.test.ts new file mode 100644 index 0000000..2a04d6d --- /dev/null +++ b/panel/domain/parse.test.ts @@ -0,0 +1,77 @@ +import { expect, test } from 'claude-code/testing' + +import { activeTasks, isSafeProjectName, parseProgress, parseWorktrees, repoWebUrl, taskTotals } from './parse' + +const PROGRESS = `# Progress โ€” Fix double rollout (CORE-1396) + +| Status | ID | Category | Owner | Summary | +| ------ | -- | -------- | ----- | ------- | +| โœ… done | TASK-8 | ๐ŸŸข Chore | ๐Ÿ™‹ Owner | Paste the selector | +| ๐Ÿ‘€ ready for review #498 | PR-1 | ๐Ÿ”€ PR | โ€” | ci: Fix staging ยท \`core-1396-staging-rollout\` ยท 21/400 | +| โœ… answered | Q7 | โ“ ๐ŸŸฆ | ๐Ÿ™‹ Owner | Commit the script? | +| ๐Ÿ”„ in progress | TASK-3 | ๐Ÿ”ด Bug | โš™๏ธ Sonnet | Add --wait | +| โฌœ pending | TASK-4 | ๐ŸŸข Chore | ๐Ÿ™‹ Owner | Verify on staging | +| โฌœ not opened | PR-2 | ๐Ÿ”€ PR | โ€” | ci: Fix production | +| โŒ skipped | TASK-9 | ๐ŸŸข Chore | ๐Ÿ”ง Haiku | Delete script | +| โฌœ open | Q8 | โ“ โš ๏ธ | ๐Ÿ™‹ Owner | Atomic? | +| ๐Ÿ‘€ pushed | #465 | ๐Ÿ”€ PR | โ€” | core-1368-list-pause | +` + +test('parses the title, tasks, questions and PRs', () => { + const { title, rows } = parseProgress(PROGRESS) + expect(title).toBe('Fix double rollout (CORE-1396)') + expect(rows.map(row => `${row.kind}:${row.id}:${row.prNumber}`)).toEqual([ + 'task:TASK-8:null', + 'pr:PR-1:498', + 'question:Q7:null', + 'task:TASK-3:null', + 'task:TASK-4:null', + 'pr:PR-2:null', + 'task:TASK-9:null', + 'question:Q8:null', + 'pr:#465:465', + ]) +}) + +test('counts skipped tasks as done and lists in-progress before pending', () => { + const { rows } = parseProgress(PROGRESS) + expect(taskTotals(rows)).toEqual({ done: 2, total: 4 }) + expect(activeTasks(rows).map(row => row.id)).toEqual(['TASK-3', 'TASK-4']) +}) + +test('builds the GitHub URL from ssh and https remotes', () => { + expect(repoWebUrl('git@github.com:Resquared/re2recruit-web-client.git\n')).toBe( + 'https://github.com/Resquared/re2recruit-web-client', + ) + expect(repoWebUrl('https://github.com/Resquared/re2recruit-web-client')).toBe( + 'https://github.com/Resquared/re2recruit-web-client', + ) +}) + +test('refuses project names that escape the projects folder', () => { + expect(isSafeProjectName('core-1396-double-rollout')).toBe(true) + expect(isSafeProjectName('..')).toBe(false) + expect(isSafeProjectName('a/../b')).toBe(false) +}) + +test('reads each pull request branch from its backticked summary', () => { + const { rows } = parseProgress(PROGRESS) + const branches = rows.filter(row => row.kind === 'pr').map(row => row.branch) + expect(branches).toEqual(['core-1396-staging-rollout', null, null]) +}) + +test('maps each checked-out branch to its worktree path', () => { + const porcelain = `worktree /repo +HEAD abc +branch refs/heads/main + +worktree /repo-wt/rollout +HEAD def +branch refs/heads/core-1396-staging-rollout + +worktree /repo-wt/detached +HEAD 123 +detached +` + expect(parseWorktrees(porcelain)).toEqual({ main: '/repo', 'core-1396-staging-rollout': '/repo-wt/rollout' }) +}) diff --git a/panel/domain/parse.ts b/panel/domain/parse.ts new file mode 100644 index 0000000..b76f579 --- /dev/null +++ b/panel/domain/parse.ts @@ -0,0 +1,92 @@ +import type { PlanRow, RowKind } from '../../types' + +const SEPARATOR_CELL = /^:?-+:?$/ + +function rowKind(id: string, category: string): RowKind | null { + if (/^TASK-\d+/i.test(id)) return 'task' + if (/^Q\d+/i.test(id)) return 'question' + if (/^PR-\d+/i.test(id) || /^#\d+/.test(id) || category.includes('๐Ÿ”€')) return 'pr' + + return null +} + +export function parseProgress(markdown: string): { title: string; rows: PlanRow[] } { + const heading = markdown.match(/^#\s+(.+)$/m)?.[1] ?? '' + const title = heading.replace(/^Progress\s+[โ€”-]\s+/, '').trim() + const rows: PlanRow[] = [] + + for (const line of markdown.split('\n')) { + if (!line.trim().startsWith('|')) continue + const cells = line + .trim() + .replace(/^\||\|$/g, '') + .split('|') + .map(cell => cell.trim()) + if (cells.length < 5 || cells.every(cell => SEPARATOR_CELL.test(cell)) || cells[1] === 'ID') continue + + const [status = '', id = '', category = '', owner = '', ...summaryCells] = cells + const kind = rowKind(id, category) + if (kind === null) continue + + const prMatch = kind === 'pr' ? `${id} ${status}`.match(/#(\d+)/) : null + const branchMatch = kind === 'pr' ? summaryCells.join(' | ').match(/`([^`]+)`/) : null + rows.push({ + id, + kind, + status, + owner, + summary: summaryCells.join(' | ').replace(/`/g, ''), + prNumber: prMatch ? Number(prMatch[1]) : null, + branch: branchMatch?.[1] ?? null, + }) + } + + return { title, rows } +} + +export function isTaskDone(status: string) { + return status.startsWith('โœ…') || status.startsWith('โŒ') +} + +export function isQuestionOpen(status: string) { + return !status.startsWith('โœ…') && !status.startsWith('โŒ') +} + +export function openQuestions(rows: PlanRow[]) { + return rows.filter(row => row.kind === 'question' && isQuestionOpen(row.status)) +} + +export function taskTotals(rows: PlanRow[]) { + const tasks = rows.filter(row => row.kind === 'task') + + return { done: tasks.filter(row => isTaskDone(row.status)).length, total: tasks.length } +} + +export function activeTasks(rows: PlanRow[], pendingLimit = 3) { + const tasks = rows.filter(row => row.kind === 'task') + const working = tasks.filter(row => /^(๐Ÿ”„|๐Ÿšง|โš ๏ธ)/.test(row.status)) + const pending = tasks.filter(row => row.status.startsWith('โฌœ')).slice(0, pendingLimit) + + return [...working, ...pending] +} + +export function repoWebUrl(remote: string): string | null { + const match = remote.trim().match(/github\.com[:/]([^/]+)\/(.+?)(\.git)?$/) + + return match ? `https://github.com/${match[1]}/${match[2]}` : null +} + +export function isSafeProjectName(name: string) { + return /^[\w.-]+$/.test(name) && name !== '.' && name !== '..' +} + +export function parseWorktrees(porcelain: string): Record { + const worktrees: Record = {} + for (const block of porcelain.split('\n\n')) { + const path = block.match(/^worktree (.+)$/m)?.[1] + const branch = block.match(/^branch refs\/heads\/(.+)$/m)?.[1] + if (path && branch) worktrees[branch] = path + } + + return worktrees +} diff --git a/panel/domain/status.test.ts b/panel/domain/status.test.ts new file mode 100644 index 0000000..f735666 --- /dev/null +++ b/panel/domain/status.test.ts @@ -0,0 +1,53 @@ +import { expect, test } from 'claude-code/testing' + +import type { PlanProject, PlanRow } from '../../types' +import { boardStatus, isPlanActive, planStatus } from './status' + +const row = (kind: PlanRow['kind'], id: string, status: string): PlanRow => ({ + id, + kind, + status, + owner: '', + summary: '', + prNumber: null, + branch: null, +}) +const plan = (name: string, rows: PlanRow[]): PlanProject => ({ name, title: `Title of ${name}`, rows, updatedAt: 0 }) + +const started = plan('Rollout', [ + row('task', 'TASK-1', 'โœ… done'), + row('task', 'TASK-2', '๐Ÿ”„ in progress'), + row('question', 'Q1', 'โฌœ open'), +]) +const untouched = plan('Docs', [row('task', 'TASK-1', 'โฌœ pending')]) +const finished = plan('Cleanup', [row('task', 'TASK-1', 'โœ… done')]) + +test('a plan is active once a task started and until every task is done', () => { + expect(isPlanActive(started)).toBe(true) + expect(isPlanActive(untouched)).toBe(false) + expect(isPlanActive(finished)).toBe(false) +}) + +test('the plan list counts plans, active plans and what is moving', () => { + expect(boardStatus([])).toEqual({ headline: 'No plans yet.', details: [] }) + expect(boardStatus([started, untouched, finished])).toEqual({ + headline: '3 plans ยท 1 active', + details: ['1 task in progress ยท 1 open question'], + }) + expect(boardStatus([untouched])).toEqual({ headline: '1 plan ยท 0 active', details: ['Nothing in progress'] }) +}) + +test('a plan page names the plan, carries its progress and what needs attention', () => { + expect(planStatus(started)).toEqual({ + headline: "Viewing 'Rollout' plan", + progress: { done: 1, total: 2 }, + details: ['TASK-2 in progress ยท 1 open question'], + }) + expect(planStatus(untouched)).toEqual({ + headline: "Viewing 'Docs' plan", + progress: { done: 0, total: 1 }, + details: [], + }) + const stuck = plan('Stuck', [row('task', 'TASK-4', '๐Ÿ”„ in progress'), row('task', 'TASK-5', '๐Ÿšง blocked')]) + expect(planStatus(stuck).details).toEqual(['TASK-5 blocked']) +}) diff --git a/panel/domain/status.ts b/panel/domain/status.ts new file mode 100644 index 0000000..fa98a5d --- /dev/null +++ b/panel/domain/status.ts @@ -0,0 +1,51 @@ +import type { PlanProject, PlanRow } from '../../types' +import { openQuestions, taskTotals } from './parse' + +const tasksWith = (rows: PlanRow[], mark: string) => + rows.filter(row => row.kind === 'task' && row.status.startsWith(mark)) +const plural = (count: number, one: string, many: string) => `${count} ${count === 1 ? one : many}` +const joined = (parts: (string | false)[]) => parts.filter(part => part !== false).join(' ยท ') + +export function isPlanActive(project: PlanProject) { + const { done, total } = taskTotals(project.rows) + const started = project.rows.some(row => row.kind === 'task' && !row.status.startsWith('โฌœ')) + + return started && done < total +} + +export type FloStatus = { headline: string; progress?: { done: number; total: number }; details: string[] } + +export function boardStatus(projects: PlanProject[]): FloStatus { + if (projects.length === 0) return { headline: 'No plans yet.', details: [] } + const rows = projects.flatMap(project => project.rows) + const inProgress = tasksWith(rows, '๐Ÿ”„').length + const blocked = tasksWith(rows, '๐Ÿšง').length + const questions = openQuestions(rows).length + const activity = joined([ + inProgress > 0 && plural(inProgress, 'task in progress', 'tasks in progress'), + blocked > 0 && `${blocked} blocked`, + questions > 0 && plural(questions, 'open question', 'open questions'), + ]) + + return { + headline: `${plural(projects.length, 'plan', 'plans')} ยท ${projects.filter(isPlanActive).length} active`, + details: [activity || 'Nothing in progress'], + } +} + +export function planStatus(project: PlanProject): FloStatus { + const { done, total } = taskTotals(project.rows) + const blocked = tasksWith(project.rows, '๐Ÿšง')[0] + const working = tasksWith(project.rows, '๐Ÿ”„')[0] + const questions = openQuestions(project.rows).length + const attention = joined([ + blocked ? `${blocked.id} blocked` : working ? `${working.id} in progress` : false, + questions > 0 && plural(questions, 'open question', 'open questions'), + ]) + + return { + headline: `Viewing '${project.name}' plan`, + progress: { done, total }, + details: attention ? [attention] : [], + } +} diff --git a/panel/register.tsx b/panel/register.tsx new file mode 100644 index 0000000..09616e4 --- /dev/null +++ b/panel/register.tsx @@ -0,0 +1,40 @@ +import { atom, update } from 'claude-code' +import type { EngineInterface, Register } from 'claude-code' + +import { loadBoard } from './data/board' +import { renderPane } from './ui/pane' + +const PANE = 'taskflow' +const TITLE = 'Taskflow' + +const animationStep = atom({ plugin: 'taskflow', key: 'animationStep' } as const, 0) + +async function openPane($: EngineInterface, focus = false) { + await $.ui.open({ id: PANE, title: TITLE, columns: 60, ...(focus ? { focus: true as const } : {}) }) +} + +export const register: Register = on => { + on('session.start', async ($, e, next) => { + await $.command.register({ name: 'taskflow', description: 'Open the Taskflow pane: plans, tasks, PRs' }) + void loadBoard($) + void openPane($) + $.clock.every(100, () => void update($, animationStep, step => step + 1)) + + return next(e) + }) + + on('command.run', { command: 'taskflow' }, async $ => { + await loadBoard($) + await openPane($, true) + + return { text: 'Taskflow pane opened.' } + }) + + on('turn.complete', async ($, e, next) => { + void loadBoard($) + + return next(e) + }) + + on('ui.render', { component: 'Pane', requestId: PANE }, renderPane) +} diff --git a/panel/ui/components/atoms/Dialog.tsx b/panel/ui/components/atoms/Dialog.tsx new file mode 100644 index 0000000..fa91992 --- /dev/null +++ b/panel/ui/components/atoms/Dialog.tsx @@ -0,0 +1,34 @@ +import type { Ui } from '../ui' + +export type DialogRow = { key: string; width: number; content: JSX.Element } + +type DialogProps = { ui: Ui; rows: DialogRow[]; top: number; right: number; borderColor: string } + +const SIDE_PADDING = 1 + +export function Dialog({ ui: { Box, Text }, rows, top, right, borderColor }: DialogProps) { + const innerWidth = Math.max(...rows.map(row => row.width)) + SIDE_PADDING * 2 + const border = (text: string) => {text} + const horizontalEdge = (leftCorner: string, rightCorner: string) => + border(`${leftCorner}${'โ”€'.repeat(innerWidth)}${rightCorner}`) + const emptyLine = (key: string) => {border(`โ”‚${' '.repeat(innerWidth)}โ”‚`)} + const contentLine = (row: DialogRow) => ( + + {border(`โ”‚${' '.repeat(SIDE_PADDING)}`)} + {row.content} + {border(`${' '.repeat(innerWidth - SIDE_PADDING - row.width)}โ”‚`)} + + ) + + return ( + + {horizontalEdge('โ•ญ', 'โ•ฎ')} + {emptyLine('padding-top')} + {rows.flatMap((row, index) => + index === 0 ? [contentLine(row)] : [emptyLine(`gap-${row.key}`), contentLine(row)], + )} + {emptyLine('padding-bottom')} + {horizontalEdge('โ•ฐ', 'โ•ฏ')} + + ) +} diff --git a/panel/ui/components/atoms/MascotSprite.tsx b/panel/ui/components/atoms/MascotSprite.tsx new file mode 100644 index 0000000..d01dbd3 --- /dev/null +++ b/panel/ui/components/atoms/MascotSprite.tsx @@ -0,0 +1,28 @@ +import type { MascotCell } from '../../../domain/mascot' +import type { Ui } from '../ui' + +type MascotSpriteProps = { ui: Ui; cells: MascotCell[][] } + +export function MascotSprite({ ui: { Box, Text }, cells }: MascotSpriteProps) { + return ( + + {cells.map((row, index) => ( + + {row.map(({ top, bottom }, column) => + top ? ( + + โ–€ + + ) : bottom ? ( + + โ–„ + + ) : ( + ' ' + ), + )} + + ))} + + ) +} diff --git a/panel/ui/components/atoms/ProgressBar.tsx b/panel/ui/components/atoms/ProgressBar.tsx new file mode 100644 index 0000000..6f066b1 --- /dev/null +++ b/panel/ui/components/atoms/ProgressBar.tsx @@ -0,0 +1,14 @@ +import type { Ui } from '../ui' + +type ProgressBarProps = { ui: Ui; done: number; total: number; width: number } + +export function ProgressBar({ ui: { Text }, done, total, width }: ProgressBarProps) { + const filled = total === 0 ? 0 : Math.round((done / total) * width) + + return ( + + {'โ–ˆ'.repeat(filled)} + {'โ–‘'.repeat(width - filled)} + + ) +} diff --git a/panel/ui/components/molecules/ActionMenu.tsx b/panel/ui/components/molecules/ActionMenu.tsx new file mode 100644 index 0000000..837e2f2 --- /dev/null +++ b/panel/ui/components/molecules/ActionMenu.tsx @@ -0,0 +1,26 @@ +import { Dialog } from '../atoms/Dialog' +import type { Ui } from '../ui' + +export type MenuItem = { key: string; icon: string; label: string; hotkey: string; onPress: () => void } + +type ActionMenuProps = { ui: Ui; items: MenuItem[]; top: number; right: number } + +const buttonWidth = (item: MenuItem) => item.label.length + 7 + +export function ActionMenu({ ui, items, top, right }: ActionMenuProps) { + const { Button } = ui + + return ( + ({ + key: item.key, + width: buttonWidth(item), + content: + + {' '} + + {done}/{total} tasks + + + + {working ? `${working.id} ${working.summary}` : done === total ? 'All tasks done' : 'Nothing in progress'} + + + {opened}/{pullRequests.length} PRs opened + {questions > 0 && ยท {questions} open question(s)} + + + ) +} diff --git a/panel/ui/components/molecules/PullRequestItem.tsx b/panel/ui/components/molecules/PullRequestItem.tsx new file mode 100644 index 0000000..2a78d5d --- /dev/null +++ b/panel/ui/components/molecules/PullRequestItem.tsx @@ -0,0 +1,31 @@ +import type { PlanRow } from '../../../../types' +import type { Ui } from '../ui' + +type PullRequestItemProps = { ui: Ui; row: PlanRow; repoUrl: string | null; worktree: string | undefined } + +export function PullRequestItem({ ui: { Box, Text, Link }, row, repoUrl, worktree }: PullRequestItemProps) { + const isOpened = row.prNumber !== null + + return ( + + + {row.branch ?? row.id} + {isOpened && ( + + {' - '} + {repoUrl === null ? ( + `#${row.prNumber}` + ) : ( + + )} + + )} + + {worktree && ( + + {' '}worktree {worktree} + + )} + + ) +} diff --git a/panel/ui/components/molecules/TaskItem.tsx b/panel/ui/components/molecules/TaskItem.tsx new file mode 100644 index 0000000..68a27b1 --- /dev/null +++ b/panel/ui/components/molecules/TaskItem.tsx @@ -0,0 +1,24 @@ +import type { PlanRow } from '../../../../types' +import type { Ui } from '../ui' + +type TaskItemProps = { ui: Ui; row: PlanRow } + +export function TaskItem({ ui: { Box, Text }, row }: TaskItemProps) { + const [icon = '', ...label] = row.status.split(' ') + const tone = icon === '๐Ÿ”„' ? 'warning' : icon === '๐Ÿšง' ? 'error' : 'subtle' + + return ( + + {icon} + + + {row.id} {label.join(' ')} + {row.owner && ยท {row.owner}} + + + {row.summary} + + + + ) +} diff --git a/panel/ui/components/organisms/MascotHeader.tsx b/panel/ui/components/organisms/MascotHeader.tsx new file mode 100644 index 0000000..a212ec1 --- /dev/null +++ b/panel/ui/components/organisms/MascotHeader.tsx @@ -0,0 +1,42 @@ +import type { MascotPreview, PlanRow } from '../../../../types' +import type { FloStatus } from '../../../domain/status' +import { Loading } from '../molecules/Loading' +import { Mascot } from '../molecules/Mascot' +import type { Ui } from '../ui' + +const PREVIEWS: MascotPreview[] = ['idle', 'working', 'blocked', 'asking', 'done', 'loading'] + +type MascotHeaderProps = { + ui: Ui + rows: PlanRow[] + status: FloStatus + preview: MascotPreview | null + step: number + onPreview: (preview: MascotPreview | null) => void +} + +export function MascotHeader({ ui, rows, status, preview, step, onPreview }: MascotHeaderProps) { + const { Box, Button } = ui + + return ( + + +