From 6d2b18a7bc170197b352737ba90e5483dd2bfd93 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 14 Aug 2025 21:57:44 -0700 Subject: [PATCH] chore: format --- .github/workflows/respond-to-cubic-dev-ai.yml | 14 +++++++------- src/index.ts | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/respond-to-cubic-dev-ai.yml b/.github/workflows/respond-to-cubic-dev-ai.yml index 5590fe31e..a20a53b96 100644 --- a/.github/workflows/respond-to-cubic-dev-ai.yml +++ b/.github/workflows/respond-to-cubic-dev-ai.yml @@ -43,7 +43,7 @@ jobs: repo: context.repo.repo, pull_number: context.issue.number }); - + core.setOutput('head_ref', pr.head.ref); core.setOutput('head_sha', pr.head.sha); return pr; @@ -57,8 +57,8 @@ jobs: if: steps.check-mention.outputs.contains_mention == 'true' uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'npm' + node-version: "20" + cache: "npm" - name: Install dependencies and build CLI if: steps.check-mention.outputs.contains_mention == 'true' @@ -78,19 +78,19 @@ jobs: ${{ github.event.comment.body }} Please analyze the current PR, understand the request, implement the necessary changes, and commit them to this branch." - + # Start remote session and capture JSON output SESSION_OUTPUT=$(node dist/index.js remote -s "$PROMPT") echo "Raw session output: $SESSION_OUTPUT" - + # Extract URL from JSON output SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty') - + if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then echo "Failed to extract session URL from output: $SESSION_OUTPUT" exit 1 fi - + echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT echo "✅ Started remote session: $SESSION_URL" diff --git a/src/index.ts b/src/index.ts index 393143b63..bb739e517 100644 --- a/src/index.ts +++ b/src/index.ts @@ -160,7 +160,10 @@ program "--idempotency-key ", "Idempotency key for session management - allows resuming existing sessions", ) - .option("-s, --start", "Create remote environment and print connection details without starting TUI") + .option( + "-s, --start", + "Create remote environment and print connection details without starting TUI", + ) .action(async (prompt: string | undefined, options) => { await remote(prompt, options); });