Skip to content

feat: sync CLI with dashboard@v1.6.2 - #65

Open
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/cli-dashboard-sync-ee9e
Open

feat: sync CLI with dashboard@v1.6.2#65
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/cli-dashboard-sync-ee9e

Conversation

@cursor

@cursor cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Upstream version

@photon-ai/dashboard-api@1.6.1 (shipping with dashboard@v1.6.2, SHA 8ba0b69).

The v1.6.2 dashboard tag is a security-only release (rate-limit unauthenticated phone OTP send) with no API surface changes, so the api-public package stayed at 1.6.1 on npm — that's the version this bump consumes.

Routes added/removed/changed

Added (7):

  • PATCH api.profile.promotional-emails
  • GET api.profile.promotional-status
  • GET api.projects.:id.call-registry.profile
  • PATCH api.projects.:id.call-registry.profile
  • PUT api.projects.:id.call-registry.profile
  • GET api.projects.:id.call-registry.registrations
  • POST api.projects.:id.call-registry.registrations

Removed / changed: (none)

These are all additive, so no CLI commands broke on the route level. The only compile failures were the usual erasure of list-response payloads to { [x: string]: any }, which we recover with the same boundary-cast pattern spectrum/lines.ts already uses.

Snapshot changes

  • (none)

New runtime dependencies

  • (none)

Checklist

  • API type changes come from a @photon-ai/dashboard-api version bump, not hand edits
  • No new runtime deps
  • All snapshot diffs explained above
  • bun run check passes locally
Open in Web View Automation 

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Sync CLI with dashboard@v1.6.2 (8ba0b69). The v1.6.2 dashboard
tag is a security-only release (unauthenticated phone OTP
rate-limiting) with no API surface changes, so the api-public
package stayed at 1.6.1 on npm — that's the version we consume.

Co-authored-by: citron <lcandy2@users.noreply.github.com>
…ndary

@photon-ai/dashboard-api 1.6.1 continues to emit list response
payloads as { [x: string]: any } rather than typed arrays, so
calling .map on the raw Eden `data` picks up an implicit `any`
parameter under strict TS. Recover the field-level shape with a
boundary cast — same pattern spectrum/lines.ts already uses for
SpectrumLine.

Co-authored-by: citron <lcandy2@users.noreply.github.com>
Regenerated against @photon-ai/dashboard-api 1.6.1 (the api
version shipping with dashboard@v1.6.2). Adds 7 new routes:
call-registry profile/registrations under a project and the
new promotional-emails / promotional-status routes on the
user profile. No removals or breaking changes.

Co-authored-by: citron <lcandy2@users.noreply.github.com>
@github-actions
github-actions Bot marked this pull request as ready for review July 9, 2026 02:50
@github-actions github-actions Bot added agent-review:approved Reviewed by CLI Agent PR Review & Fix automation agent-flow PR generated by agent flow pipeline labels Jul 9, 2026
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Agent PR Review

Scenario: A — Initial review (PR opened by cursor[bot])
Verdict: ✅ Approve

What's right

  • Dep bump @photon-ai/dashboard-api 1.2.0 → 1.6.1 lives only in package.json and bun.lock; src/lib/types.ts untouched (hard rule docs: add CLI design grounded in dashboard surface + gh/vercel patterns #2)
  • No forbidden deps introduced (package.json deps unchanged; still picocolors/commander/eden/etc.)
  • .github/workflows/ and scripts/agent-flow/ untouched
  • Both changed commands (projects list, spectrum users list) still use getApi() + Eden treaty and destructure { data, error(, status) }; 401 branches throw SessionExpiredError
  • Boundary casts (src/commands/projects.ts:82, src/commands/spectrum/users.ts:40) are the same pattern already used elsewhere in the CLI — a minimal, motivated response to the published-type erasure, not a parallel-DTO refactor
  • One PR = one upstream bump; no unrelated refactors piggy-backed
  • bun install --frozen-lockfile && bun run check passes locally (typecheck + 36 tests + build)

Deferred (acknowledged in PR body)

  • 7 additive routes — profile.promotional-emails (PATCH), profile.promotional-status (GET), projects/:id/call-registry/profile (GET/PATCH/PUT), projects/:id/call-registry/registrations (GET/POST). PR body confirms these are additive with no existing CLI surface impacted; new commands can land in follow-up PRs.

Final note

Clean additive-only sync to @photon-ai/dashboard-api@1.6.1 (dashboard v1.6.2). Marked ready and labeled agent-review:approved / agent-flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-flow PR generated by agent flow pipeline agent-review:approved Reviewed by CLI Agent PR Review & Fix automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant