Skip to content

Release 0.2.0: spicrawl partner - #20

Merged
DibbayajyotiRoy merged 2 commits into
mainfrom
feat/partner
Nov 23, 2026
Merged

DibbayajyotiRoy merged 2 commits into
mainfrom
feat/partner

Conversation

@DibbayajyotiRoy

@DibbayajyotiRoy DibbayajyotiRoy commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

spicrawl partner … for a partner account (a platform that resells Spicrawl to its own users).

  • partner summary, partner balance, partner usage [--by day|user]
  • partner users list [--query] [--sort id|used] [--all] …, create <id> [--tier] [--name] [--no-key], get, rename <id> <name> | --clear, suspend, reactivate, tier <id> <tier>, give <id> <credits> [--idempotency-key], usage
  • partner tiers list, create <name> --requests-per-minute --concurrency --free-credits (--cap N | --no-cap) [--default], update, default, delete
  • auth status shows the key type when the API reports it (GET /v1/key); unchanged otherwise.

Follows DESIGN.md: JSON when piped (the API body unchanged), stderr only a problem document in JSON mode, exit codes from the error family. users create prints the new user's API key alone on stdout (KEY=$(spicrawl partner users create user-42 -q)), never on stderr. give, suspend and tiers delete confirm on a TTY or need --yes. give generates an idempotency key when none is passed and shows it on stderr.

Checked

  • go build, go vet, gofmt clean; go test ./... passes with ~100 new golden files (JSON and human) and unit tests.
  • Run against a real Spicrawl API: every command in human and --json mode, exit codes (usage 2, auth 3, request 4, limit 5), the key on stdout only, -q capture, refusals without a TTY.

Release

Bumps npm/package.json to 0.2.0 and turns ## Unreleased into the 0.2.0 CHANGELOG section. Merging tags v0.2.0, builds the binaries and publishes @spicrawl/cli 0.2.0.

Not in this PR

  • Known gaps, follow-ups: in --json mode give generates an idempotency key but does not print it; --no-key has no effect in --json mode (the output is the API body); users list --all --json merges pages into one object; the USED and GIVEN LEFT column headers read like three columns; the give prompt shows a balance that can trail by about a minute.
  • The embedded openapi.yaml copy and skill.md are not updated (refreshed from the docs site by make spec).

Spicrawl added 2 commits November 23, 2026 16:10
New command group: partner summary, balance and usage; partner users list, create, get, rename,
suspend, reactivate, tier, give and usage; partner tiers list, create, update, default and delete.
users create prints the new user's API key alone on stdout. give, suspend and tiers delete ask for
confirmation (or --yes); give generates an idempotency key when none is passed and shows it.
auth status shows the key type when the API reports it.
@DibbayajyotiRoy DibbayajyotiRoy changed the title spicrawl partner: manage a partner account from the command line Release 0.2.0: spicrawl partner Nov 23, 2026
@DibbayajyotiRoy DibbayajyotiRoy added enhancement New feature or request Release New version release labels Nov 23, 2026
@DibbayajyotiRoy DibbayajyotiRoy self-assigned this Nov 23, 2026
@DibbayajyotiRoy
DibbayajyotiRoy merged commit dad53d9 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Release New version release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant