Skip to content

feat: add studio expert management CLI commands#629

Merged
FL4TLiN3 merged 7 commits intomainfrom
feat/studio-expert-management
Feb 25, 2026
Merged

feat: add studio expert management CLI commands#629
FL4TLiN3 merged 7 commits intomainfrom
feat/studio-expert-management

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • New @perstack/studio package with handlers for expert draft lifecycle management
  • Add perstack expert command group with 10 subcommands: list, create, delete, push, refs, version, versions, publish, unpublish, yank
  • Add e2e test suite (e2e/studio/) validating full lifecycle against real Perstack API
  • Update CI workflow with studio e2e suite and PERSTACK_API_KEY secret
  • Bump @perstack/api-client to ^0.0.57 (expertDrafts moved to public client in wintermute-llc/wintermute#1932)

Related PRs (wintermute-1)

  • wintermute-llc/wintermute#1932 — Move expertDrafts to public api-client (merged, published as @perstack/api-client@0.0.57)
  • wintermute-llc/wintermute#1934 — E2E test for draft delete FK constraint bug
  • wintermute-llc/wintermute#1935 — Fix draft delete 500 → 400 (name vs ID bug)

Test plan

  • bun run typecheck — 24/24 pass
  • bun run format-and-lint — clean
  • bun run validate:changeset — pass
  • bun test --timeout 300000 e2e/studio/ — 13 tests pass
  • CI: typecheck, test, build, lint, changeset check

🤖 Generated with Claude Code

FL4TLiN3 and others added 7 commits February 25, 2026 09:21
- New @perstack/studio package with handlers for expert draft lifecycle
- Add `perstack expert` command group with 10 subcommands:
  list, create, delete, push, refs, version, versions, publish, unpublish, yank
- Add e2e test suite (e2e/studio/) for lifecycle and handler verification
- Update CI workflow with studio e2e suite and PERSTACK_API_KEY secret
- Bump @perstack/api-client to ^0.0.57 (expertDrafts in public client)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The experts.versions.list endpoint uses MaybeAuthenticate, so API key
is not required for public experts. Remove the mandatory resolveApiKey
call from expertVersionsHandler and make StudioOptions.apiKey optional.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Versioned expert scopes cannot be deleted, so e2e tests should target
staging (stg-api.perstack.ai) instead of production to avoid polluting
prod data. Uses PERSTACK_API_BASE_URL env var with staging as default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 enabled auto-merge (squash) February 25, 2026 09:40
@FL4TLiN3 FL4TLiN3 merged commit b36c47f into main Feb 25, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 25, 2026
@FL4TLiN3 FL4TLiN3 deleted the feat/studio-expert-management branch February 25, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant