Skip to content

feat(cli): axme tasks list/get/approve/reject — human task inbox#36

Merged
George-iam merged 1 commit intomainfrom
feat/tasks-cmd-20260313
Mar 13, 2026
Merged

feat(cli): axme tasks list/get/approve/reject — human task inbox#36
George-iam merged 1 commit intomainfrom
feat/tasks-cmd-20260313

Conversation

@George-iam
Copy link
Contributor

Summary

  • axme tasks list — GET /v1/me/tasks (bearer auto-injected from stored actor token)
  • axme tasks get <id> — detailed view including human_task metadata and allowed outcomes
  • axme tasks approve <id> [-c comment] [--data k=v] — submit task_result with outcome=approved
  • axme tasks reject <id> [-c comment] [--data k=v] — submit task_result with outcome=rejected
  • All commands support --json flag

Test plan

  • go build ./... clean
  • go test ./... — all tests pass (8 new + existing suite)
  • Tests cover: approved/rejected payload construction, with/without comment, with/without extra data, list rendering helpers (empty/nil/populated human_task)

Made with Cursor

Human task inbox commands:
  axme tasks list          — GET /v1/me/tasks (bearer auto-injected)
  axme tasks get <id>      — GET /v1/intents/{id} with human_task display
  axme tasks approve <id>  — POST /v1/intents/{id}/resume outcome=approved
  axme tasks reject <id>   — POST /v1/intents/{id}/resume outcome=rejected

All commands support --json flag. approve/reject accept:
  -c/--comment "reason"
  --data key=value (additional task_result fields)

Tests (8 new): submitTaskResult payload construction (approved, rejected
+comment, +extra data, no extra data), tasks list rendering helpers
(empty tasks, human_task title, nil human_task, allowed_outcomes).

Made-with: Cursor
@George-iam George-iam merged commit c48837c into main Mar 13, 2026
1 check passed
@George-iam George-iam deleted the feat/tasks-cmd-20260313 branch March 13, 2026 08:56
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