You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/update-cli-coverage.yml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,8 @@ jobs:
102
102
env:
103
103
GH_TOKEN: ${{ steps.app-token.outputs.token }}
104
104
run: |
105
-
gh repo clone kernel/cli /tmp/kernel-cli
106
-
cd /tmp/kernel-cli
105
+
gh repo clone kernel/hypeman-cli /tmp/hypeman-cli
106
+
cd /tmp/hypeman-cli
107
107
108
108
# Try to fetch the cli-coverage-update branch from remote
109
109
if git fetch origin cli-coverage-update 2>/dev/null; then
@@ -150,7 +150,7 @@ jobs:
150
150
run: |
151
151
cursor-agent -p "You are a CLI updater that implements missing CLI commands based on SDK updates.
152
152
153
-
The GitHub CLI is available as \`gh\` and authenticated via GH_TOKEN. Git is available. You have write access to the CLI repository (kernel/cli).
153
+
The GitHub CLI is available as \`gh\` and authenticated via GH_TOKEN. Git is available. You have write access to the CLI repository (kernel/hypeman-cli).
The Go SDK (this repo) was just updated by Stainless, and may contain new API methods. The CLI (kernel/cli) needs to be updated to expose these new methods as CLI commands.
167
+
The Go SDK (this repo) was just updated by Stainless, and may contain new API methods. The CLI (kernel/hypeman-cli) needs to be updated to expose these new methods as CLI commands.
168
168
169
169
# Source Files
170
170
- SDK api.md: Current directory - READ THIS FILE FIRST. This is the authoritative list of all SDK methods and their signatures.
171
171
- SDK *.go files: Current directory - Contains param structs (e.g., InstanceNewParams, ImageNewParams) with all available options/fields.
172
172
- API Spec: /tmp/hypeman-api/packages/api/stainless.yaml - SDK configuration with resources and methods
173
173
- API Spec: /tmp/hypeman-api/packages/api/openapi.yaml - Full OpenAPI specification. CHECK for x-cli-skip: true on endpoints - skip those from CLI coverage.
174
-
- CLI: /tmp/kernel-cli - Existing CLI commands
174
+
- CLI: /tmp/hypeman-cli - Existing CLI commands
175
175
176
176
# Task
177
177
178
178
## Step 1: Update SDK Version (ALWAYS DO THIS FIRST)
179
-
- Go to /tmp/kernel-cli
179
+
- Go to /tmp/hypeman-cli
180
180
- Update go.mod to require the latest SDK: ${{ steps.sdk-version.outputs.module }}@${{ steps.sdk-version.outputs.version }}
181
181
- Run: go get ${{ steps.sdk-version.outputs.module }}@${{ steps.sdk-version.outputs.version }}
182
182
- Run: go mod tidy
@@ -245,7 +245,7 @@ jobs:
245
245
- Commit with message describing SDK version bump and any new commands/flags
246
246
- IMPORTANT: Do NOT force push! Use regular \`git push origin cli-coverage-update\` to preserve existing work on the branch
247
247
- If push fails due to divergence, pull and rebase first: \`git pull --rebase origin cli-coverage-update\`
248
-
- Create or update the PR in kernel/cli
248
+
- Create or update the PR in kernel/hypeman-cli
249
249
250
250
# SDK Method -> CLI Command Mapping Guide
251
251
- client.Resource.New() -> kernel resource create
@@ -263,7 +263,7 @@ jobs:
263
263
- Nested structs: VolumeMount.Path -> --volume-mount-path or separate flags
264
264
265
265
# Implementation Guidelines
266
-
- Follow the existing CLI code patterns in /tmp/kernel-cli
266
+
- Follow the existing CLI code patterns in /tmp/hypeman-cli
267
267
- Use cobra for command definitions
268
268
- Use the Hypeman Go SDK (this repo) for API calls
269
269
- Include proper flag definitions with descriptions matching SDK field comments
@@ -275,7 +275,7 @@ jobs:
275
275
After pushing changes, create or update an evergreen PR using gh:
276
276
277
277
1. Check if a PR already exists for the cli-coverage-update branch:
278
-
gh pr list --repo kernel/cli --head cli-coverage-update --json number
278
+
gh pr list --repo kernel/hypeman-cli --head cli-coverage-update --json number
279
279
280
280
2. If PR exists, update it. If not, create a new one.
0 commit comments