From 37ca233fa5597a5abb90cba73165deafffe0344f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Masum=20G=C3=B6ky=C3=BCz?= <121493635+periakteon@users.noreply.github.com> Date: Wed, 15 Jul 2026 02:53:26 +0300 Subject: [PATCH] fix: use ES module imports in task-cli.ts (#305) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces require('fs')/require('path') with node:-prefixed namespace imports in .opencode/skills/task-management/scripts/task-cli.ts, matching the prevailing style elsewhere in the repo (e.g. packages/cli/src/lib/installer.ts). Note: this is a consistency cleanup, not a compile fix. The original PR description referenced a cmdComplete control-flow change that is not in the diff, and the reported compile error does not reproduce — tsc --noEmit passes on main, as @types/node auto-resolves from the root node_modules. Commit message corrected accordingly. Follow-up: the same require() pattern remains in .opencode/skill/project-orchestration/scripts/stage-cli.ts and session-context-manager.ts. --- .opencode/skills/task-management/scripts/task-cli.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.opencode/skills/task-management/scripts/task-cli.ts b/.opencode/skills/task-management/scripts/task-cli.ts index 64b4068..e8c05e9 100644 --- a/.opencode/skills/task-management/scripts/task-cli.ts +++ b/.opencode/skills/task-management/scripts/task-cli.ts @@ -1,4 +1,5 @@ #!/usr/bin/env npx ts-node +/// /** * Task Management CLI * @@ -19,8 +20,8 @@ * .tmp/tasks/completed/{feature-slug}/ */ -const fs = require('fs'); -const path = require('path'); +import * as fs from "node:fs"; +import * as path from "node:path"; // Find project root (look for .git or package.json) function findProjectRoot(): string {