Skip to content

docs(freeticket-cli): session-first auth, ft admin login, --json/--raw contract#10

Merged
lu-ochenty merged 1 commit into
mainfrom
docs/skill-session-admin-json
Jul 2, 2026
Merged

docs(freeticket-cli): session-first auth, ft admin login, --json/--raw contract#10
lu-ochenty merged 1 commit into
mainfrom
docs/skill-session-admin-json

Conversation

@LucasLeguizamo

Copy link
Copy Markdown
Contributor

Mirrors freeticket-cli v0.7.0 in the freeticket-cli skill (SKILL.md + references/commands.md).

  • Auth (cli#17): policy + tables say "session"/credential on the normal path and trigger on the new CLI messages (Not logged in, session invalid). --key/FT_API_KEY reframed as CI/headless only.
  • Superadmin (cli#20): setup uses ft admin login --session <token> (validated) + logout/config, instead of hand-exporting FT_ADMIN_SESSION.
  • Output contract (cli#19): --json on lists = data array, --raw = { data, page } envelope. Fixed the pagination recipe that read .page.nextCursor off --json (it never had it) to use --raw.
  • Also: empty --csv keeps its header (cli#18), 401 = expired session, and a note that this skill assumes ft ≥ 0.7.0 (backed by the CLI's new update notice).

No new dependencies; docs-only.

🤖 Generated with Claude Code

…w contract

Mirrors freeticket-cli v0.7.0:

- Auth policy + tables now say "session"/credential on the normal path and
  trigger on the new messages ("Not logged in", "session invalid"); `--key`/
  `FT_API_KEY` reframed as CI/headless only (cli#17).
- Superadmin setup uses `ft admin login --session <token>` (validated) with
  logout/config, instead of hand-exporting FT_ADMIN_SESSION (cli#20).
- Documented the real contract: `--json` on lists = data array, `--raw` =
  { data, page } envelope. Fixed the pagination recipe that read `.page` off
  `--json` (it never had it) to use `--raw` (cli#19).
- Noted empty `--csv` keeps its header (cli#18), 401 = expired session, and
  that this skill assumes ft >= 0.7.0 (with the CLI's update notice).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@lu-ochenty lu-ochenty merged commit c79b610 into main Jul 2, 2026
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.

2 participants