feat(atlassian): implement milestone M2 - jira command surface

This commit is contained in:
Stefano Fiorini
2026-03-06 00:39:54 -06:00
parent e56f0c9941
commit 73c4bff901
10 changed files with 1167 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
import { readFile } from "node:fs/promises";
import path from "node:path";
export async function readWorkspaceFile(filePath: string, cwd: string) {
const resolved = path.resolve(cwd, filePath);
const relative = path.relative(cwd, resolved);
if (relative.startsWith("..") || path.isAbsolute(relative)) {
throw new Error(`--body-file must stay within the active workspace: ${filePath}`);
}
return readFile(resolved, "utf8");
}