Skip to content

Commit 537b6b1

Browse files
authored
rename again (#36)
1 parent 8e15830 commit 537b6b1

66 files changed

Lines changed: 435 additions & 461 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/commands/implement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Then report:
292292
- Confirm Final Verification passed (gofmt clean, vet clean, build green, full test suite green)
293293
- Confirm `internal/spec/extracted_gen.go` is up to date if `SpecRef` changed
294294
- List any remaining manual verification items from the plan
295-
- Offer to create a commit, run additional probe commands (e.g., `./airbyte agents <new-cmd> --describe`), or other next steps
295+
- Offer to create a commit, run additional probe commands (e.g., `./airbyte-agent <new-cmd> --describe`), or other next steps
296296

297297
## Important Guidelines
298298

.claude/commands/research.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Research the codebase to understand how something works
66

77
<!-- ultrathink -->
88

9-
You are tasked with conducting comprehensive research across the `airbyte` CLI codebase to answer the user's question by spawning parallel sub-agents and synthesizing their findings.
9+
You are tasked with conducting comprehensive research across the `airbyte-agent` CLI codebase to answer the user's question by spawning parallel sub-agents and synthesizing their findings.
1010

1111
## Research Question
1212

@@ -70,7 +70,7 @@ Break down the research question into:
7070
| References `Resource`, `Operation`, `Register`, command surface, adding commands | **Resources** (`internal/resources/`) |
7171
| References `registry.Build`, Cobra flag generation, `--describe`, `--json`, `OperationHooks`, `ParamSchema` | **Registry** (`internal/registry/`) |
7272
| References HTTP, retries, `APIError`, status codes, `Get/Post/Patch/Delete` | **Client** (`internal/client/`) |
73-
| References credentials, OAuth, token caching, settings file, `~/.airbyte-cli/` | **Auth** (`internal/auth/`) |
73+
| References credentials, OAuth, token caching, settings file, `~/.airbyte-agent/` | **Auth** (`internal/auth/`) |
7474
| References `SKILL.md`, `skills/<command>/`, frontmatter | **Skills** (`skills/`) |
7575
| References `--format`, JSON/table output, `--fields`, `writeResult` | **Output** (`internal/output/`) |
7676
| References telemetry, Segment, `CLI Command Executed`, `is_internal_user` | **Telemetry** (`internal/telemetry/`) |
@@ -94,7 +94,7 @@ mkdir -p "$RESEARCH_TMP_DIR"
9494
```
9595
Agent(subagent_type="Explore",
9696
description="Locate files for [topic]",
97-
prompt="Find all files related to [topic] in the airbyte agents CLI.
97+
prompt="Find all files related to [topic] in the airbyte-agent CLI.
9898
Look in cmd/, internal/registry/, internal/resources/, internal/client/, internal/auth/,
9999
internal/config/, internal/output/, internal/spec/, internal/telemetry/, skills/, api/.
100100
Return a categorized list: implementation files, test files (*_test.go), generated files
@@ -109,7 +109,7 @@ Use markdown format with file paths and brief descriptions.")
109109
```
110110
Agent(subagent_type="general-purpose",
111111
description="Analyze how [topic] works",
112-
prompt="Analyze how [topic] works in the airbyte agents CLI.
112+
prompt="Analyze how [topic] works in the airbyte-agent CLI.
113113
Read the relevant Go files and trace the code path from main.go through the
114114
registry builder into the operation's Run function (and any PreRun hooks).
115115
Document with file:line references.
@@ -126,7 +126,7 @@ Use markdown format with file:line references.")
126126
```
127127
Agent(subagent_type="general-purpose",
128128
description="Find patterns matching [topic]",
129-
prompt="Find existing examples of [pattern type] in the airbyte agents CLI.
129+
prompt="Find existing examples of [pattern type] in the airbyte-agent CLI.
130130
Look at how other resources in internal/resources/ implement the same Resource/Operation
131131
interface — workspaces.go, organizations.go, and connectors.go are good reference points.
132132
Look at how their tests in *_test.go use newTestTokenServer() and newTestClient() helpers.
@@ -169,7 +169,7 @@ Focus on:
169169
(3x exponential backoff on 429/502/503/504), 30s timeout, X-ADP-Agent-CLI header
170170
- internal/client/errors.go: APIError struct, ExitCode() mapping (auth=2, not-found=3, validation=4)
171171
- internal/auth/credentials.go: ResolveSettings — env vars first (all three required),
172-
then ~/.airbyte-cli/settings.json
172+
then ~/.airbyte-agent/settings.json
173173
- internal/auth/credentials_file.go: atomic writes, 0600 permission enforcement
174174
- internal/auth/token.go: TokenManager OAuth caching and auto-refresh
175175
@@ -200,7 +200,7 @@ Use markdown format with file:line references.")
200200
```
201201
Agent(subagent_type="general-purpose",
202202
description="Cross-cutting analysis of [topic]",
203-
prompt="Analyze how [topic] interacts across the airbyte agents CLI's packages.
203+
prompt="Analyze how [topic] interacts across the airbyte-agent CLI's packages.
204204
Trace the flow from main.go (config -> auth -> client -> registry -> Cobra) through
205205
the relevant packages. Identify which packages collaborate and via what interfaces.
206206

.claude/commands/spec.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ options:
9292

9393
| Signal | Domain |
9494
|--------|--------|
95-
| New `airbyte agents <noun> <verb>` command, new resource, new operation | **Resources** (`internal/resources/`) |
95+
| New `airbyte-agent <noun> <verb>` command, new resource, new operation | **Resources** (`internal/resources/`) |
9696
| Changes to registry building, flag generation, `--describe`, `--json`, validation | **Registry** (`internal/registry/`) |
9797
| HTTP retries, status codes, error mapping, new transport headers | **Client** (`internal/client/`) |
9898
| Credentials, OAuth, settings file, token caching | **Auth** (`internal/auth/`) |
@@ -119,13 +119,13 @@ options:
119119
Agent(subagent_type="Explore",
120120
description="Locate files for [feature area]",
121121
prompt="CONSTRAINT: READ-ONLY mode — do NOT create, modify, or delete any files.
122-
Find WHERE all files related to [feature area] live in the airbyte agents CLI.
122+
Find WHERE all files related to [feature area] live in the airbyte-agent CLI.
123123
Look in cmd/, internal/, skills/, api/. Return categorized list with file purposes.")
124124
125125
Agent(subagent_type="general-purpose",
126126
description="Analyze [related feature]",
127127
prompt="CONSTRAINT: READ-ONLY mode — do NOT create, modify, or delete any files.
128-
Understand HOW [related feature] currently works in the airbyte agents CLI.
128+
Understand HOW [related feature] currently works in the airbyte-agent CLI.
129129
Read the implementation and document the patterns used. Include file:line references.
130130
Do NOT suggest improvements.")
131131
@@ -277,7 +277,7 @@ domain: [resources | registry | client | auth | skills | output | telemetry | sc
277277

278278
[2-3 sentence summary of what we're building and why.]
279279

280-
**Recommended /implement mode**: standard (the airbyte agents CLI uses sequential phases — no team mode).
280+
**Recommended /implement mode**: standard (the airbyte-agent CLI uses sequential phases — no team mode).
281281

282282
### Constraints
283283

@@ -329,7 +329,7 @@ go test ./internal/<package>/... -run <TestName> -v
329329

330330
#### Manual Verification
331331

332-
- [ ] [User-facing behavior to test by hand, e.g., "run `airbyte agents connectors describe --json '{...}'` against a real workspace"]
332+
- [ ] [User-facing behavior to test by hand, e.g., "run `airbyte-agent connectors describe --json '{...}'` against a real workspace"]
333333

334334
### Phase 2: [Phase Name]
335335

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525

2626
# Mint a token for the octavia-bot GitHub App, scoped to this repo
2727
# plus airbytehq/homebrew-tap so goreleaser can commit the brew formula
28-
# there. Reuses the same App credentials as the sync-openapi-to-airbyte-cli
29-
# workflow in the sonar repo. Requires the App installation to grant
30-
# `contents: write` on both repos.
28+
# there. Reuses the same App credentials as the
29+
# sync-openapi-to-airbyte-agent-cli workflow in the sonar repo. Requires
30+
# the App installation to grant `contents: write` on both repos.
3131
- name: Authenticate as GitHub App
3232
id: get-app-token
3333
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
3434
with:
3535
owner: "airbytehq"
3636
repositories: |
37-
airbyte-cli
37+
airbyte-agent-cli
3838
homebrew-tap
3939
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
4040
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
@@ -52,8 +52,8 @@ jobs:
5252
# uploads archives, the source bundle, and the checksums file here.
5353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5454
# Cross-repo token (App-minted): lets goreleaser commit
55-
# Formula/airbyte-cli.rb to airbytehq/homebrew-tap.
55+
# Formula/airbyte-agent-cli.rb to airbytehq/homebrew-tap.
5656
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}
5757
# Skill version stamped into the binary via cmd.ExpectedSkillVersion.
58-
# Sourced from skills/airbyte-agents/SKILL.md by the previous step.
58+
# Sourced from skills/airbyte-agent/SKILL.md by the previous step.
5959
SKILL_VERSION: ${{ env.SKILL_VERSION }}

.github/workflows/skill-version-bump.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: skill-version-bump
33
on:
44
pull_request:
55
paths:
6-
- 'skills/airbyte-agents/**'
6+
- 'skills/airbyte-agent/**'
77

88
permissions:
99
contents: read
@@ -27,12 +27,12 @@ jobs:
2727
echo "::notice::Head is v0.1.0 — treating as bootstrap/reset."
2828
exit 0
2929
fi
30-
if ! base=$(git show "origin/${{ github.base_ref }}":skills/airbyte-agents/SKILL.md 2>/dev/null | ./scripts/skill-version.sh /dev/stdin 2>/dev/null); then
30+
if ! base=$(git show "origin/${{ github.base_ref }}":skills/airbyte-agent/SKILL.md 2>/dev/null | ./scripts/skill-version.sh /dev/stdin 2>/dev/null); then
3131
echo "::notice::Base branch has no skill version yet — accepting head=$head as the bootstrap."
3232
exit 0
3333
fi
3434
if [ "$head" = "$base" ]; then
35-
echo "::error::Skill version not bumped ($base unchanged). Bump skills/airbyte-agents/SKILL.md metadata.version."
35+
echo "::error::Skill version not bumped ($base unchanged). Bump skills/airbyte-agent/SKILL.md metadata.version."
3636
exit 1
3737
fi
3838
greater=$(printf '%s\n%s\n' "$base" "$head" | sort -V | tail -1)

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Binaries
2-
/airbyte
2+
/airbyte-agent
33
*.exe
44
*.exe~
55
*.dll
@@ -38,7 +38,7 @@ Thumbs.db
3838
.env
3939
.env.local
4040
.airbyte/
41-
.airbyte-cli/
41+
.airbyte-agent/
4242
credentials
4343

4444
# Research and planning artifacts (used by /research, /spec, /implement)

.goreleaser.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
version: 2
22

3-
project_name: airbyte
3+
project_name: airbyte-agent
44

55
before:
66
hooks:
77
- go mod tidy
88

99
builds:
10-
- id: airbyte
10+
- id: airbyte-agent
1111
main: .
12-
binary: airbyte
12+
binary: airbyte-agent
1313
env:
1414
- CGO_ENABLED=0
1515
flags:
1616
- -trimpath
1717
ldflags:
1818
- -s -w
19-
- -X github.com/airbytehq/airbyte-cli/cmd.Version={{.Version}}
20-
- -X github.com/airbytehq/airbyte-cli/cmd.Commit={{.Commit}}
21-
- -X github.com/airbytehq/airbyte-cli/cmd.Date={{.Date}}
22-
- -X github.com/airbytehq/airbyte-cli/cmd.ExpectedSkillVersion={{.Env.SKILL_VERSION}}
19+
- -X github.com/airbytehq/airbyte-agent-cli/cmd.Version={{.Version}}
20+
- -X github.com/airbytehq/airbyte-agent-cli/cmd.Commit={{.Commit}}
21+
- -X github.com/airbytehq/airbyte-agent-cli/cmd.Date={{.Date}}
22+
- -X github.com/airbytehq/airbyte-agent-cli/cmd.ExpectedSkillVersion={{.Env.SKILL_VERSION}}
2323
goos:
2424
- linux
2525
- darwin
@@ -64,8 +64,8 @@ release:
6464
prerelease: auto
6565
name_template: "v{{ .Version }}"
6666

67-
# Homebrew formula generation. Goreleaser commits Formula/airbyte-cli.rb to
68-
# the airbytehq/homebrew-tap repo on each non-prerelease release. Cross-repo
67+
# Homebrew formula generation. Goreleaser commits Formula/airbyte-agent-cli.rb
68+
# to the airbytehq/homebrew-tap repo on each non-prerelease release. Cross-repo
6969
# write requires a separate token (HOMEBREW_TAP_GITHUB_TOKEN) — the default
7070
# GITHUB_TOKEN issued by the workflow only has access to this repo.
7171
#
@@ -74,21 +74,21 @@ release:
7474
# macOS binaries and our binaries are unsigned. Revisit when goreleaser removes
7575
# `brews` entirely or when we start signing release binaries.
7676
#
77-
# Formula is named `airbyte-cli` (to match the repo); the installed binary
78-
# is `airbyte` (short, what users actually type).
77+
# Formula is named `airbyte-agent-cli` (to match the repo); the installed
78+
# binary is `airbyte-agent`.
7979
brews:
80-
- name: airbyte-cli
80+
- name: airbyte-agent-cli
8181
repository:
8282
owner: airbytehq
8383
name: homebrew-tap
8484
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
8585
branch: main
8686
directory: Formula
87-
homepage: https://github.com/airbytehq/airbyte-cli
87+
homepage: https://github.com/airbytehq/airbyte-agent-cli
8888
description: CLI for Airbyte, designed for use by both humans and agents
8989
license: Elastic-2.0
9090
install: |
91-
bin.install "airbyte"
91+
bin.install "airbyte-agent"
9292
test: |
93-
system "#{bin}/airbyte", "agents", "version"
93+
system "#{bin}/airbyte-agent", "version"
9494
skip_upload: auto # don't update the formula for prereleases (e.g. v0.1.0-rc1)

0 commit comments

Comments
 (0)