Cursor plugin specification and official plugins
TypeScript
orchestrate: fix Biome lint and format errors in scripts (#120)
lauren481781539331
diff --git a/orchestrate/skills/orchestrate/scripts/__tests__/comment-cli.test.ts b/orchestrate/skills/orchestrate/scripts/__tests__/comment-cli.test.tsindex d77ef3eb..e3c6954d 100644--- a/orchestrate/skills/orchestrate/scripts/__tests__/comment-cli.test.ts+++ b/orchestrate/skills/orchestrate/scripts/__tests__/comment-cli.test.ts@@ -5,6 +5,7 @@ import { tmpdir } from "node:os";import { join } from "node:path";import { loadKickoffThreadTsOrBail } from "../cli/comments.ts";+const TEST_SLACK_CHANNEL = "C123TEST";const CLI_PATH = new URL("../cli.ts", import.meta.url).pathname;diff --git a/orchestrate/skills/orchestrate/scripts/__tests__/comment-retry-queue.test.ts b/orchestrate/skills/orchestrate/scripts/__tests__/comment-retry-queue.test.tsindex c95fd453..a0078a01 100644--- a/orchestrate/skills/orchestrate/scripts/__tests__/comment-retry-queue.test.ts+++ b/orchestrate/skills/orchestrate/scripts/__tests__/comment-retry-queue.test.ts@@ -4,7 +4,9 @@ import { tmpdir } from "node:os";import { join } from "node:path";import type { SlackAdapter, SlackMessageRef } from "../adapters/types.ts";+const TEST_SLACK_CHANNEL = "C123TEST";+import {commentRetryQueuePath,drainCommentRetryQueue,diff --git a/orchestrate/skills/orchestrate/scripts/__tests__/failure-handoff.test.ts b/orchestrate/skills/orchestrate/scripts/__tests__/failure-handoff.test.tsindex 3416f944..c3340252 100644--- a/orchestrate/skills/orchestrate/scripts/__tests__/failure-handoff.test.ts+++ b/orchestrate/skills/orchestrate/scripts/__tests__/failure-handoff.test.ts@@ -192,7 +192,12 @@ describe("hasStructuredHandoff", () => {// verifier-only match keeps the finished-no-handoff sidecar from// firing on every successful verifier run.test("Detects the verifier template's ## Verification heading", () => {- const body = ["## Verification", "live-ui-verified", "## Target", "`t`"].join("\n");+ const body = [+ "## Verification",+ "live-ui-verified",+ "## Target",+ "`t`",+ ].join("\n");expect(hasStructuredHandoff(body)).toBe(true);});diff --git a/orchestrate/skills/orchestrate/scripts/__tests__/kickoff-dedupe.test.ts b/orchestrate/skills/orchestrate/scripts/__tests__/kickoff-dedupe.test.tsindex 08145861..586c4aa3 100644--- a/orchestrate/skills/orchestrate/scripts/__tests__/kickoff-dedupe.test.ts+++ b/orchestrate/skills/orchestrate/scripts/__tests__/kickoff-dedupe.test.ts@@ -4,9 +4,9 @@ import { spawnSync } from "node:child_process";const SCRIPTS_DIR = new URL("..", import.meta.url).pathname;import {- MAX_BOOT_MS,findActiveRootPlanner,inferKickoffRootSlug,+ MAX_BOOT_MS,} from "../cli/task.ts";describe("kickoff dedupe", () => {@@ -128,8 +128,12 @@ describe("kickoff dedupe", () => {});test("infers root slug from an explicit kickoff prefix", () => {- expect(inferKickoffRootSlug("refactor-ui: shrink Settings")).toBe("refactor-ui");- expect(inferKickoffRootSlug("`refactor-ui`: shrink Settings")).toBe("refactor-ui");+ expect(inferKickoffRootSlug("refactor-ui: shrink Settings")).toBe(+ "refactor-ui"+ );+ expect(inferKickoffRootSlug("`refactor-ui`: shrink Settings")).toBe(+ "refactor-ui"+ );});test("kickoff command adopts unless --force is passed", () => {diff --git a/orchestrate/skills/orchestrate/scripts/__tests__/probe-models.test.ts b/orchestrate/skills/orchestrate/scripts/__tests__/probe-models.test.tsindex 347b93c1..c7728724 100644--- a/orchestrate/skills/orchestrate/scripts/__tests__/probe-models.test.ts+++ b/orchestrate/skills/orchestrate/scripts/__tests__/probe-models.test.ts@@ -59,7 +59,10 @@ describe("models --check", () => {});});-function profile(slug: string, selection: ModelProfile["selection"]): ModelProfile {+function profile(+ slug: string,+ selection: ModelProfile["selection"]+): ModelProfile {return {slug,selection,diff --git a/orchestrate/skills/orchestrate/scripts/__tests__/wait-handoff-failure.test.ts b/orchestrate/skills/orchestrate/scripts/__tests__/wait-handoff-failure.test.tsindex 95acaa67..123356b3 100644--- a/orchestrate/skills/orchestrate/scripts/__tests__/wait-handoff-failure.test.ts+++ b/orchestrate/skills/orchestrate/scripts/__tests__/wait-handoff-failure.test.ts@@ -1,4 +1,12 @@-import { afterAll, afterEach, beforeAll, describe, expect, mock, test } from "bun:test";+import {+ afterAll,+ afterEach,+ beforeAll,+ describe,+ expect,+ mock,+ test,+} from "bun:test";import {existsSync,mkdtempSync,diff --git a/orchestrate/skills/orchestrate/scripts/adapters/index.ts b/orchestrate/skills/orchestrate/scripts/adapters/index.tsindex 4d406d2b..42ec5291 100644--- a/orchestrate/skills/orchestrate/scripts/adapters/index.ts+++ b/orchestrate/skills/orchestrate/scripts/adapters/index.ts@@ -2,7 +2,9 @@ import { createSlackWebClient } from "./slack/client.ts";import { SlackApiAdapter } from "./slack/index.ts";import type { SlackAdapter } from "./types.ts";-export function createSlackAdapter(channelId: string): SlackAdapter | undefined {+export function createSlackAdapter(+ channelId: string+): SlackAdapter | undefined {const client = createSlackWebClient();if (!client) return undefined;return new SlackApiAdapter(client, channelId);diff --git a/orchestrate/skills/orchestrate/scripts/cli/comments.ts b/orchestrate/skills/orchestrate/scripts/cli/comments.tsindex e6d1f826..da8ac9ef 100644--- a/orchestrate/skills/orchestrate/scripts/cli/comments.ts+++ b/orchestrate/skills/orchestrate/scripts/cli/comments.ts@@ -147,9 +147,7 @@ async function uploadFileToThread(args: {}const slack = createSlackAdapter(args.channel);if (!slack) {- throw new Error(- "SLACK_BOT_TOKEN not set; cannot upload Slack file"- );+ throw new Error("SLACK_BOT_TOKEN not set; cannot upload Slack file");}const content = readFileSync(args.filePath);const initial =@@ -230,10 +228,10 @@ export function loadKickoffThreadTsOrBail(args: {return loadKickoffRefOrBail(args).threadTs;}-function loadKickoffRefOrBail(args: {- workspace: string;- taskName: string;-}): { channel: string; threadTs: string } {+function loadKickoffRefOrBail(args: { workspace: string; taskName: string }): {+ channel: string;+ threadTs: string;+} {const planPath = join(resolve(args.workspace), "plan.json");if (!existsSync(planPath)) {throw new Error(diff --git a/orchestrate/skills/orchestrate/scripts/cli/util.ts b/orchestrate/skills/orchestrate/scripts/cli/util.tsindex d81272f1..bffd2407 100644--- a/orchestrate/skills/orchestrate/scripts/cli/util.ts+++ b/orchestrate/skills/orchestrate/scripts/cli/util.ts@@ -428,7 +428,9 @@ export function stripGitSuffix(url: string): string {return url.endsWith(".git") ? url.slice(0, -4) : url;}-export function loadCommentDestinations(channelId: string): CommentDestinations {+export function loadCommentDestinations(+ channelId: string+): CommentDestinations {return { slack: createSlackAdapter(channelId) };}diff --git a/orchestrate/skills/orchestrate/scripts/core/prompts.ts b/orchestrate/skills/orchestrate/scripts/core/prompts.tsindex 044dbcb3..f80f7f70 100644--- a/orchestrate/skills/orchestrate/scripts/core/prompts.ts+++ b/orchestrate/skills/orchestrate/scripts/core/prompts.ts@@ -248,7 +248,9 @@ function renderMergeDiscipline(t: PlanTask, plan: Plan): string {const target = mergeWorkerTargetBranch(plan, t);const sources = mergeWorkerSourceBranches(plan, t);const sourceList =- sources.length > 0 ? sources.map(branch => ` - ${branch}`).join("\n") : " - (none)";+ sources.length > 0+ ? sources.map(branch => ` - ${branch}`).join("\n")+ : " - (none)";return `- This is a merge worker for slice \`${slice}\`.- Merge dependency branches into \`${target}\` one at a time, in \`dependsOn\` order.diff --git a/orchestrate/skills/orchestrate/scripts/core/redact-body.ts b/orchestrate/skills/orchestrate/scripts/core/redact-body.tsindex 3b1102e8..4623f107 100644--- a/orchestrate/skills/orchestrate/scripts/core/redact-body.ts+++ b/orchestrate/skills/orchestrate/scripts/core/redact-body.ts@@ -29,7 +29,10 @@ export function redactBody(text: string): { text: string; reasons: string[] } {return { text: redacted, reasons: [...reasons] };}-function redactSensitiveAssignments(text: string, reasons: Set<string>): string {+function redactSensitiveAssignments(+ text: string,+ reasons: Set<string>+): string {return text.replace(SENSITIVE_ASSIGNMENT_RE, match => {const [key] = match.split(/\s*[:=]\s*/, 1);if (SENSITIVE_KEY_RE.test(key ?? "")) {