luge-cli 0.77.0__tar.gz → 0.78.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. {luge_cli-0.77.0 → luge_cli-0.78.0}/CHANGELOG.md +9 -0
  2. {luge_cli-0.77.0 → luge_cli-0.78.0}/PKG-INFO +8 -2
  3. {luge_cli-0.77.0 → luge_cli-0.78.0}/README.md +7 -1
  4. {luge_cli-0.77.0 → luge_cli-0.78.0}/pyproject.toml +1 -1
  5. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/base.py +35 -9
  6. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/api_cmd.py +68 -9
  7. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/human_tasks.py +27 -0
  8. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/skill/luge-platform/SKILL.md +6 -1
  9. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_api_cmd.py +138 -0
  10. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_export_cmd.py +6 -6
  11. luge_cli-0.78.0/tests/test_hitl_source_failure.py +98 -0
  12. {luge_cli-0.77.0 → luge_cli-0.78.0}/uv.lock +1 -1
  13. {luge_cli-0.77.0 → luge_cli-0.78.0}/.claude/skills/luge-cli-release/SKILL.md +0 -0
  14. {luge_cli-0.77.0 → luge_cli-0.78.0}/.github/workflows/ci.yml +0 -0
  15. {luge_cli-0.77.0 → luge_cli-0.78.0}/.gitignore +0 -0
  16. {luge_cli-0.77.0 → luge_cli-0.78.0}/.pre-commit-config.yaml +0 -0
  17. {luge_cli-0.77.0 → luge_cli-0.78.0}/LICENSE +0 -0
  18. {luge_cli-0.77.0 → luge_cli-0.78.0}/Makefile +0 -0
  19. {luge_cli-0.77.0 → luge_cli-0.78.0}/scripts/bump_version.py +0 -0
  20. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/__init__.py +0 -0
  21. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/__main__.py +0 -0
  22. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/chat_card_spec.py +0 -0
  23. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/.claude-plugin/plugin.json +0 -0
  24. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/detect.ts +0 -0
  25. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/hooks.json +0 -0
  26. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/label.ts +0 -0
  27. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/register.ts +0 -0
  28. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/tests/detect.test.ts +0 -0
  29. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/tests/label.test.ts +0 -0
  30. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/tests/register.test.ts +0 -0
  31. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/types/index.d.ts +0 -0
  32. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/__init__.py +0 -0
  33. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/api_keys.py +0 -0
  34. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/artifacts.py +0 -0
  35. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/audit.py +0 -0
  36. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/automations.py +0 -0
  37. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/billing.py +0 -0
  38. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/boards.py +0 -0
  39. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/bookmarks.py +0 -0
  40. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/calendar.py +0 -0
  41. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/canvases.py +0 -0
  42. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/channels.py +0 -0
  43. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/chat.py +0 -0
  44. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/datasets.py +0 -0
  45. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/delivery.py +0 -0
  46. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/docs.py +0 -0
  47. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/documents.py +0 -0
  48. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/employees.py +0 -0
  49. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/exports.py +0 -0
  50. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/externals.py +0 -0
  51. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/forms.py +0 -0
  52. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/human_tasks.py +0 -0
  53. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/improvement.py +0 -0
  54. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/installations.py +0 -0
  55. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/meetings.py +0 -0
  56. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/notes.py +0 -0
  57. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/notetakers.py +0 -0
  58. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/notifications.py +0 -0
  59. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/plans.py +0 -0
  60. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/projects.py +0 -0
  61. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/schedules.py +0 -0
  62. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/search.py +0 -0
  63. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/settings.py +0 -0
  64. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/shares.py +0 -0
  65. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/skills.py +0 -0
  66. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/todos.py +0 -0
  67. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/usage.py +0 -0
  68. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/webhooks.py +0 -0
  69. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/client/workflows.py +0 -0
  70. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/coerce.py +0 -0
  71. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/__init__.py +0 -0
  72. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_bundled_mod.py +0 -0
  73. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_bundled_skill.py +0 -0
  74. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_card_ref.py +0 -0
  75. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_common.py +0 -0
  76. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_cookbook_machine.py +0 -0
  77. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_delivery_scope.py +0 -0
  78. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/_room_ref.py +0 -0
  79. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/activity_cmd.py +0 -0
  80. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/agent_cmd.py +0 -0
  81. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/agent_skill_cmd.py +0 -0
  82. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/artifact_cmd.py +0 -0
  83. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/attachment_cmd.py +0 -0
  84. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/auth_cmd.py +0 -0
  85. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/auth_login.py +0 -0
  86. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/billing_cmd.py +0 -0
  87. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/board_cmd.py +0 -0
  88. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/board_columns.py +0 -0
  89. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/bookmark_bulk.py +0 -0
  90. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/bookmark_cmd.py +0 -0
  91. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/calendar_cmd.py +0 -0
  92. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/canvas_cmd.py +0 -0
  93. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/__init__.py +0 -0
  94. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/placement.py +0 -0
  95. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/read.py +0 -0
  96. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/write.py +0 -0
  97. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/channel_cmd.py +0 -0
  98. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/chat_card_cmd.py +0 -0
  99. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/chat_card_reply.py +0 -0
  100. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/claude_mod_cmd.py +0 -0
  101. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/colleagues_cmd.py +0 -0
  102. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/conversation_cmd.py +0 -0
  103. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/conversation_prs.py +0 -0
  104. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/cookbook_cmd.py +0 -0
  105. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/dm_cmd.py +0 -0
  106. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/docs_cmd.py +0 -0
  107. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/document_cmd.py +0 -0
  108. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/document_rag.py +0 -0
  109. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/export_cmd.py +0 -0
  110. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/external_cmd.py +0 -0
  111. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/form_cmd.py +0 -0
  112. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/form_placements.py +0 -0
  113. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/hitl_cmd.py +0 -0
  114. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/improvement_cmd.py +0 -0
  115. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/mcp_cmd.py +0 -0
  116. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/meeting_cmd.py +0 -0
  117. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/message_cmd.py +0 -0
  118. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_attachments.py +0 -0
  119. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_cmd.py +0 -0
  120. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_folders.py +0 -0
  121. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_revisions.py +0 -0
  122. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/notetaker_cmd.py +0 -0
  123. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/notification_cmd.py +0 -0
  124. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/notify_cmd.py +0 -0
  125. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/notify_templates.py +0 -0
  126. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/plan_cmd.py +0 -0
  127. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/presence_cmd.py +0 -0
  128. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/profile_cmd.py +0 -0
  129. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/project_actors.py +0 -0
  130. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/project_cmd.py +0 -0
  131. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/project_repositories.py +0 -0
  132. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/row_cmd.py +0 -0
  133. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/schedule_cmd.py +0 -0
  134. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/search_cmd.py +0 -0
  135. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_agent_governance.py +0 -0
  136. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_agents.py +0 -0
  137. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_cmd.py +0 -0
  138. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_exposure.py +0 -0
  139. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_integrations/__init__.py +0 -0
  140. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_integrations/cmd.py +0 -0
  141. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_integrations/config.py +0 -0
  142. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/share_cmd.py +0 -0
  143. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/skill_cmd.py +0 -0
  144. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/table_cmd.py +0 -0
  145. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/todo_cmd.py +0 -0
  146. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/upgrade_cmd.py +0 -0
  147. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/usage_cmd.py +0 -0
  148. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/__init__.py +0 -0
  149. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/cmd.py +0 -0
  150. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/config.py +0 -0
  151. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/send.py +0 -0
  152. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/workflow_cmd.py +0 -0
  153. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/workflow_node.py +0 -0
  154. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/commands/ws_cmd.py +0 -0
  155. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/config.py +0 -0
  156. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/errors.py +0 -0
  157. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/filters.py +0 -0
  158. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/mcp/__init__.py +0 -0
  159. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/mcp/introspect.py +0 -0
  160. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/mcp/invoke.py +0 -0
  161. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/mcp/policy.py +0 -0
  162. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/mcp/schema.py +0 -0
  163. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/mcp/server.py +0 -0
  164. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/notify.py +0 -0
  165. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/plan_entry_spec.py +0 -0
  166. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/product_docs.py +0 -0
  167. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/release_notice.py +0 -0
  168. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/__init__.py +0 -0
  169. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/_core.py +0 -0
  170. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/api_keys.py +0 -0
  171. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/artifacts.py +0 -0
  172. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/attachments.py +0 -0
  173. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/audit.py +0 -0
  174. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/automations.py +0 -0
  175. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/billing.py +0 -0
  176. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/board_dashboard.py +0 -0
  177. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/boards.py +0 -0
  178. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/bookmarks.py +0 -0
  179. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/calendar.py +0 -0
  180. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/canvases.py +0 -0
  181. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/chat.py +0 -0
  182. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/config.py +0 -0
  183. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/context.py +0 -0
  184. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/cookbooks.py +0 -0
  185. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/delivery.py +0 -0
  186. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/docs.py +0 -0
  187. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/documents.py +0 -0
  188. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/exports.py +0 -0
  189. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/externals.py +0 -0
  190. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/github.py +0 -0
  191. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/improvement.py +0 -0
  192. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/list_summaries.py +0 -0
  193. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/meetings.py +0 -0
  194. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/messages.py +0 -0
  195. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/notes.py +0 -0
  196. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/notetakers.py +0 -0
  197. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/notifications.py +0 -0
  198. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/plans.py +0 -0
  199. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/projects.py +0 -0
  200. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/schedules.py +0 -0
  201. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/search.py +0 -0
  202. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/settings.py +0 -0
  203. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/shares.py +0 -0
  204. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/skills.py +0 -0
  205. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/tables.py +0 -0
  206. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/todos.py +0 -0
  207. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/upgrade.py +0 -0
  208. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/usage.py +0 -0
  209. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/webhooks.py +0 -0
  210. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/render/workflows.py +0 -0
  211. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/resolve.py +0 -0
  212. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/schedule_spec.py +0 -0
  213. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/table_spec.py +0 -0
  214. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/workflow_graph.py +0 -0
  215. {luge_cli-0.77.0 → luge_cli-0.78.0}/src/luge_cli/workflow_node_spec.py +0 -0
  216. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/card_lookup_routes.py +0 -0
  217. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/conftest.py +0 -0
  218. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_activity_cmd.py +0 -0
  219. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_agent_reply.py +0 -0
  220. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_agent_skill_install.py +0 -0
  221. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_api_errors.py +0 -0
  222. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_artifact_output.py +0 -0
  223. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_as_agent.py +0 -0
  224. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_attachments.py +0 -0
  225. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_audit_trace.py +0 -0
  226. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_auth_key_cmd.py +0 -0
  227. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_auth_login_cmd.py +0 -0
  228. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_auth_show_cmd.py +0 -0
  229. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_automation_context_cmd.py +0 -0
  230. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_automation_lifecycle_cmd.py +0 -0
  231. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_billing_and_usage_cmd.py +0 -0
  232. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_board_cmd.py +0 -0
  233. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_board_overview_cmd.py +0 -0
  234. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_bookmark_bulk.py +0 -0
  235. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_bookmark_cmd.py +0 -0
  236. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_calendar_cmd.py +0 -0
  237. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_canvas_cmd.py +0 -0
  238. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_across_the_archive_line.py +0 -0
  239. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_archive.py +0 -0
  240. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_attach.py +0 -0
  241. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_comment_mutations.py +0 -0
  242. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_filter_contract.py +0 -0
  243. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_list_column.py +0 -0
  244. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_lookup.py +0 -0
  245. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_placement.py +0 -0
  246. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_read_output.py +0 -0
  247. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_search_cmd.py +0 -0
  248. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_card_status.py +0 -0
  249. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_channel_cmd.py +0 -0
  250. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_chat_card_delete.py +0 -0
  251. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_chat_card_reply.py +0 -0
  252. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_chat_card_revise.py +0 -0
  253. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_chat_card_spec.py +0 -0
  254. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_claude_mod.py +0 -0
  255. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_cli.py +0 -0
  256. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_client.py +0 -0
  257. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_colleagues_teams_cmd.py +0 -0
  258. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_config.py +0 -0
  259. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_context_cmd.py +0 -0
  260. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_conversation_cmd.py +0 -0
  261. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_cookbook_cmd.py +0 -0
  262. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_cookbook_machine.py +0 -0
  263. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_dm_cmd.py +0 -0
  264. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_docs_cmd.py +0 -0
  265. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_document_cmd.py +0 -0
  266. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_external_cmd.py +0 -0
  267. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_filters.py +0 -0
  268. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_form_cmd.py +0 -0
  269. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_github_references_cmd.py +0 -0
  270. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_hitl_cmd.py +0 -0
  271. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_improvement_cmd.py +0 -0
  272. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_list_summaries.py +0 -0
  273. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_mcp.py +0 -0
  274. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_meeting_cmd.py +0 -0
  275. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_message_cmd.py +0 -0
  276. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_note_attach.py +0 -0
  277. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_note_cmd.py +0 -0
  278. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_notification_cmd.py +0 -0
  279. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_notification_preferences.py +0 -0
  280. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_notify.py +0 -0
  281. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_notify_cmd.py +0 -0
  282. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_notify_scope_cmd.py +0 -0
  283. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_plan_cmd.py +0 -0
  284. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_presence_cmd.py +0 -0
  285. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_profile_cmd.py +0 -0
  286. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_project_actors.py +0 -0
  287. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_project_cmd.py +0 -0
  288. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_readme_coverage.py +0 -0
  289. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_release_notice.py +0 -0
  290. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_automation.py +0 -0
  291. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_history.py +0 -0
  292. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_labelled.py +0 -0
  293. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_plans.py +0 -0
  294. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_share_cell.py +0 -0
  295. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_tables.py +0 -0
  296. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_timeline.py +0 -0
  297. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_render_width.py +0 -0
  298. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_resolve.py +0 -0
  299. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_schedule_cmd.py +0 -0
  300. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_schedule_spec.py +0 -0
  301. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_search_cmd.py +0 -0
  302. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_settings_agent_governance.py +0 -0
  303. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_settings_agents.py +0 -0
  304. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_settings_cmd.py +0 -0
  305. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_settings_exposure.py +0 -0
  306. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_settings_integrations_cmd.py +0 -0
  307. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_settings_integrations_config.py +0 -0
  308. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_share_cmd.py +0 -0
  309. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_skill_coverage.py +0 -0
  310. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_stdio_encoding.py +0 -0
  311. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_table_cmd.py +0 -0
  312. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_table_spec.py +0 -0
  313. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_todo_cmd.py +0 -0
  314. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_upgrade_cmd.py +0 -0
  315. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_usage_by_agent_cmd.py +0 -0
  316. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_usage_filters_cmd.py +0 -0
  317. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_webhook_cmd.py +0 -0
  318. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_webhook_config.py +0 -0
  319. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_workflow_cmd.py +0 -0
  320. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_workflow_graph.py +0 -0
  321. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_workflow_node.py +0 -0
  322. {luge_cli-0.77.0 → luge_cli-0.78.0}/tests/test_ws_cmd.py +0 -0
@@ -6,6 +6,15 @@ All notable changes to this project are documented here. The format is based on
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.78.0]
10
+
11
+ ### Added
12
+ - **`api` sends extra request headers with `--header`.** `api get|post|put|patch|delete` take `--header 'Name: value'` (`-H`, repeatable). A header replaces the default of the same name (the JSON `Content-Type`, the `User-Agent`). The credential headers are refused, since `LUGE_TOKEN` and `LUGE_EXTERNAL_TOKEN` already choose the credential, and so is `Content-Length`, which the request sets from the body it sends. A malformed header is refused before any request leaves, naming the option.
13
+
14
+ ### Fixed
15
+ - **A human task whose source run failed says why** (LUG-2447). `hitl list` and `hitl show` display the failure reason the server authorized for the reader, with explicit fallbacks when the details are unavailable or withheld. JSON output keeps the server's typed snapshot unchanged.
16
+ - **The bundled skill's command table lists every `api` verb.** The row named `get` alone, with a `-q` option the command does not have; it now lists the five verbs, `-H`, `--body` / `--body-file` and the confirmation `delete` asks for.
17
+
9
18
  ## [0.77.0]
10
19
 
11
20
  Requires Luge 0.97.0. That release moves the API paths below without an alias: 0.76.0 gets a 404 on them from a 0.97.0 server, and this release gets one from an older server. Upgrade both together.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: luge-cli
3
- Version: 0.77.0
3
+ Version: 0.78.0
4
4
  Summary: Drive the Luge AI-employee platform from the command line — boards, agents, chat, workflows, and more, built for agents like Codex and Claude Code.
5
5
  Project-URL: Homepage, https://github.com/luge-works/luge-cli
6
6
  Project-URL: Repository, https://github.com/luge-works/luge-cli
@@ -2212,6 +2212,7 @@ luge-cli api get "automations?days=7" # query string included
2212
2212
  luge-cli api post webhook-endpoints --body '{"name":"x","source_type":"generic","destination_type":"log_only"}'
2213
2213
  luge-cli api put webhook-endpoints/<id> --body-file endpoint.json # body from a file
2214
2214
  luge-cli api delete webhook-endpoints/<id> # asks first (--yes skips, for scripts)
2215
+ luge-cli api get settings/integrations/catalog -H 'Accept-Language: fr' # extra header
2215
2216
  ```
2216
2217
 
2217
2218
  The body prints as answered — pretty-printed when it is JSON, errors included
@@ -2222,7 +2223,12 @@ from an empty collection: a `204` after a delete succeeds and says so, a `307`
2222
2223
  exits non-zero naming where the API redirects. The path must be relative: an
2223
2224
  absolute URL is refused rather than carrying the credential to another host.
2224
2225
  A write takes its JSON body from `--body` or `--body-file` (one or the other);
2225
- `delete` confirms before sending unless `--yes`. It is a diagnostic — a path
2226
+ `delete` confirms before sending unless `--yes`. Every verb takes
2227
+ `--header 'Name: value'` (`-H`, repeatable): it replaces a default of the same
2228
+ name, such as the JSON `Content-Type`, and the credential headers
2229
+ (`Authorization`, `X-Luge-External-Token`) are refused — `LUGE_TOKEN` or
2230
+ `LUGE_EXTERNAL_TOKEN` chooses the credential. `Content-Length` is refused as
2231
+ well: the request sets it from the body it sends. It is a diagnostic — a path
2226
2232
  probed often has earned a real subcommand — and the whole group stays out of
2227
2233
  the MCP tool surface.
2228
2234
 
@@ -2185,6 +2185,7 @@ luge-cli api get "automations?days=7" # query string included
2185
2185
  luge-cli api post webhook-endpoints --body '{"name":"x","source_type":"generic","destination_type":"log_only"}'
2186
2186
  luge-cli api put webhook-endpoints/<id> --body-file endpoint.json # body from a file
2187
2187
  luge-cli api delete webhook-endpoints/<id> # asks first (--yes skips, for scripts)
2188
+ luge-cli api get settings/integrations/catalog -H 'Accept-Language: fr' # extra header
2188
2189
  ```
2189
2190
 
2190
2191
  The body prints as answered — pretty-printed when it is JSON, errors included
@@ -2195,7 +2196,12 @@ from an empty collection: a `204` after a delete succeeds and says so, a `307`
2195
2196
  exits non-zero naming where the API redirects. The path must be relative: an
2196
2197
  absolute URL is refused rather than carrying the credential to another host.
2197
2198
  A write takes its JSON body from `--body` or `--body-file` (one or the other);
2198
- `delete` confirms before sending unless `--yes`. It is a diagnostic — a path
2199
+ `delete` confirms before sending unless `--yes`. Every verb takes
2200
+ `--header 'Name: value'` (`-H`, repeatable): it replaces a default of the same
2201
+ name, such as the JSON `Content-Type`, and the credential headers
2202
+ (`Authorization`, `X-Luge-External-Token`) are refused — `LUGE_TOKEN` or
2203
+ `LUGE_EXTERNAL_TOKEN` chooses the credential. `Content-Length` is refused as
2204
+ well: the request sets it from the body it sends. It is a diagnostic — a path
2199
2205
  probed often has earned a real subcommand — and the whole group stays out of
2200
2206
  the MCP tool surface.
2201
2207
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "luge-cli"
3
- version = "0.77.0"
3
+ version = "0.78.0"
4
4
  description = "Drive the Luge AI-employee platform from the command line — boards, agents, chat, workflows, and more, built for agents like Codex and Claude Code."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -15,6 +15,7 @@ import json as jsonlib
15
15
  import mimetypes
16
16
  import platform
17
17
  import sys
18
+ from collections.abc import Sequence
18
19
  from pathlib import Path
19
20
  from typing import Any, Self
20
21
 
@@ -33,6 +34,10 @@ USER_AGENT = f"luge-cli/{__version__} (python/{platform.python_version()}; {sys.
33
34
  # object so no two of them can disagree about what absent means.
34
35
  UNSET: object = object()
35
36
 
37
+ #: The headers that carry the profile's credential, lower-cased. ``probe``
38
+ #: refuses them as caller headers: the client already sends one of them.
39
+ _CREDENTIAL_HEADERS = frozenset({"authorization", "x-luge-external-token"})
40
+
36
41
 
37
42
  def guess_content_type(name: str) -> str:
38
43
  """The MIME type a filename implies, falling back to raw bytes. Shared by
@@ -263,12 +268,27 @@ class BaseClient:
263
268
  detail=detail or None,
264
269
  )
265
270
 
266
- def probe(self, method: str, path: str, *, json: Any = UNSET) -> httpx.Response:
271
+ def probe(
272
+ self,
273
+ method: str,
274
+ path: str,
275
+ *,
276
+ json: Any = UNSET,
277
+ headers: Sequence[tuple[str, str]] = (),
278
+ ) -> httpx.Response:
267
279
  """The response exactly as answered, 4xx/5xx included. ``json`` is the
268
280
  request body for the write verbs, sent as JSON; ``UNSET`` sends none.
269
281
  ``None`` is a body — the JSON ``null`` the caller typed — which is why
270
282
  absence is the sentinel and not ``None``.
271
283
 
284
+ ``headers`` go out on this request only. One that shares a name with a
285
+ client default (``User-Agent``, the JSON ``Content-Type``) replaces it,
286
+ as curl's ``-H`` does. The credential headers are refused: sending
287
+ ``X-Luge-External-Token`` beside the bearer makes the API refuse a call
288
+ the key could make (see ``__init__``), and a replaced ``Authorization``
289
+ would hide which credential went out. ``LUGE_TOKEN`` and
290
+ ``LUGE_EXTERNAL_TOKEN`` already choose the credential.
291
+
272
292
  The diagnostic `api` command renders status and body itself — mapping a
273
293
  refusal through ``_fail`` would replace the payload being probed with
274
294
  the CLI's wording of it. Transport errors still raise: with no response
@@ -286,19 +306,25 @@ class BaseClient:
286
306
  "probe takes a path relative to the configured API base; "
287
307
  f"an absolute URL would send the credential to {url.host!r}"
288
308
  )
289
- kwargs: dict[str, Any] = {}
309
+ sent = list(headers)
310
+ for name, _ in sent:
311
+ if name.lower() in _CREDENTIAL_HEADERS:
312
+ raise LugeError(
313
+ f"probe sends the profile's credential itself; the {name} header is "
314
+ "refused. Set LUGE_TOKEN or LUGE_EXTERNAL_TOKEN to use another one."
315
+ )
316
+ content: str | None = None
290
317
  if json is not UNSET:
291
318
  # Serialised here rather than through httpx's json= keyword, which
292
319
  # reads None as "no body": null is a body. Same bytes otherwise,
293
320
  # NaN refused the same way.
294
- kwargs = {
295
- "content": jsonlib.dumps(
296
- json, ensure_ascii=False, separators=(",", ":"), allow_nan=False
297
- ),
298
- "headers": {"Content-Type": "application/json"},
299
- }
321
+ content = jsonlib.dumps(
322
+ json, ensure_ascii=False, separators=(",", ":"), allow_nan=False
323
+ )
324
+ if not any(name.lower() == "content-type" for name, _ in sent):
325
+ sent.insert(0, ("Content-Type", "application/json"))
300
326
  try:
301
- return self._http.request(method, path, **kwargs)
327
+ return self._http.request(method, path, content=content, headers=sent)
302
328
  except httpx.RequestError as exc:
303
329
  raise LugeError(f"Cannot reach Luge at {self._http.base_url}: {exc}") from exc
304
330
 
@@ -5,7 +5,8 @@ behavior sometimes needs one they do not wrap yet. `api get <path>` sends the
5
5
  current profile's credential at any path so that proof stays in the terminal
6
6
  instead of hand-extracting the token for curl, and `api post|put|patch|delete`
7
7
  do the same for a write — a body from `--body` / `--body-file`, a confirmation
8
- before a delete. It is a diagnostic: a path that gets probed often has earned a
8
+ before a delete. Every verb takes extra request headers from `--header`. It is
9
+ a diagnostic: a path that gets probed often has earned a
9
10
  real subcommand, worth a card. The whole group stays out of the MCP tool surface
10
11
  (see ``luge_cli.mcp.SKIP``): an agent gets the named commands, not a raw
11
12
  credential-bearing request.
@@ -14,6 +15,7 @@ credential-bearing request.
14
15
  from __future__ import annotations
15
16
 
16
17
  import math
18
+ import re
17
19
  from pathlib import Path
18
20
  from typing import Annotated, Any
19
21
 
@@ -42,6 +44,25 @@ BodyFileOption = Annotated[
42
44
  readable=True,
43
45
  ),
44
46
  ]
47
+ HeaderOption = Annotated[
48
+ list[str] | None,
49
+ typer.Option(
50
+ "--header",
51
+ "-H",
52
+ help=(
53
+ 'Extra request header, as "Name: value"; repeat for several. It replaces a '
54
+ "default of the same name. The credential headers are refused: the profile "
55
+ "sends its own."
56
+ ),
57
+ ),
58
+ ]
59
+
60
+ # RFC 9110 field-name token, and a value of visible ASCII, spaces and tabs.
61
+ # httpx encodes header values as ASCII (anything else is a UnicodeEncodeError
62
+ # out of the request) and leaves a CR or LF for the transport to refuse as if
63
+ # Luge were unreachable; checking here names the --header that is wrong.
64
+ _HEADER_NAME = re.compile(r"[!#$%&'*+.^_`|~0-9A-Za-z-]+")
65
+ _HEADER_VALUE = re.compile(r"[\t\x20-\x7e]*")
45
66
 
46
67
 
47
68
  def register(app: typer.Typer) -> None:
@@ -78,6 +99,33 @@ def _reject_non_finite(value: Any, what: str) -> Any:
78
99
  return value
79
100
 
80
101
 
102
+ def parse_headers(raw: list[str] | None) -> list[tuple[str, str]]:
103
+ """The ``--header`` values as ``(name, value)`` pairs, in the order given.
104
+
105
+ Split on the first colon, so a value keeps its own colons (a URL, a time).
106
+ The same name twice sends it twice. A malformed header is refused before
107
+ any request leaves, and so is ``Content-Length``: the transport frames the
108
+ body by its real length and raises, past every handler of this CLI, on a
109
+ declared one that disagrees."""
110
+ headers: list[tuple[str, str]] = []
111
+ for item in raw or ():
112
+ name, colon, value = item.partition(":")
113
+ name, value = name.strip(), value.strip()
114
+ if not colon or not _HEADER_NAME.fullmatch(name):
115
+ raise LugeCliError(f'--header {item!r} is not "Name: value".')
116
+ if name.lower() == "content-length":
117
+ raise LugeCliError(
118
+ "--header Content-Length is refused: the request sets it from the body it sends."
119
+ )
120
+ if not _HEADER_VALUE.fullmatch(value):
121
+ raise LugeCliError(
122
+ f"--header {name}: the value must be printable ASCII, "
123
+ "with no line break or control character."
124
+ )
125
+ headers.append((name, value))
126
+ return headers
127
+
128
+
81
129
  def load_body(body: str | None, body_file: Path | None) -> Any:
82
130
  """The JSON body a write verb sends, from ``--body`` or ``--body-file``, or
83
131
  ``UNSET`` when neither was given — ``None`` is what ``--body null`` means,
@@ -101,7 +149,9 @@ def load_body(body: str | None, body_file: Path | None) -> Any:
101
149
  return UNSET
102
150
 
103
151
 
104
- def probe_and_print(method: str, path: str, body: Any = UNSET) -> None:
152
+ def probe_and_print(
153
+ method: str, path: str, body: Any = UNSET, headers: list[tuple[str, str]] | None = None
154
+ ) -> None:
105
155
  """Send the request and print the body exactly as answered (pretty-printed
106
156
  when it is JSON), errors included: a 404's status and payload are the
107
157
  diagnostic, so they are shown rather than mapped.
@@ -123,7 +173,7 @@ def probe_and_print(method: str, path: str, body: Any = UNSET) -> None:
123
173
  with make_client() as client:
124
174
  # A leading slash would replace the base URL's /api prefix instead of
125
175
  # joining onto it (see client.base) — accept it and join anyway.
126
- resp = client.probe(method, path.lstrip("/"), json=body)
176
+ resp = client.probe(method, path.lstrip("/"), json=body, headers=headers or ())
127
177
  try:
128
178
  data = resp.json()
129
179
  except ValueError:
@@ -186,43 +236,52 @@ def _stderr_note(resp: httpx.Response, *, silent: bool) -> str:
186
236
  return f"HTTP {resp.status_code}: the API redirects to {location}"
187
237
 
188
238
 
189
- def api_get(path: str = typer.Argument(..., help=_PATH_HELP)) -> None:
239
+ def api_get(
240
+ path: str = typer.Argument(..., help=_PATH_HELP),
241
+ header: HeaderOption = None,
242
+ ) -> None:
190
243
  """GET a path with the current profile's credential and print the body."""
191
- probe_and_print("GET", path)
244
+ probe_and_print("GET", path, headers=parse_headers(header))
192
245
 
193
246
 
194
247
  def api_post(
195
248
  path: str = typer.Argument(..., help=_PATH_HELP),
196
249
  body: BodyOption = None,
197
250
  body_file: BodyFileOption = None,
251
+ header: HeaderOption = None,
198
252
  ) -> None:
199
253
  """POST a JSON body to a path and print the answer."""
200
- probe_and_print("POST", path, load_body(body, body_file))
254
+ probe_and_print("POST", path, load_body(body, body_file), parse_headers(header))
201
255
 
202
256
 
203
257
  def api_put(
204
258
  path: str = typer.Argument(..., help=_PATH_HELP),
205
259
  body: BodyOption = None,
206
260
  body_file: BodyFileOption = None,
261
+ header: HeaderOption = None,
207
262
  ) -> None:
208
263
  """PUT a JSON body to a path and print the answer."""
209
- probe_and_print("PUT", path, load_body(body, body_file))
264
+ probe_and_print("PUT", path, load_body(body, body_file), parse_headers(header))
210
265
 
211
266
 
212
267
  def api_patch(
213
268
  path: str = typer.Argument(..., help=_PATH_HELP),
214
269
  body: BodyOption = None,
215
270
  body_file: BodyFileOption = None,
271
+ header: HeaderOption = None,
216
272
  ) -> None:
217
273
  """PATCH a path with a JSON body and print the answer."""
218
- probe_and_print("PATCH", path, load_body(body, body_file))
274
+ probe_and_print("PATCH", path, load_body(body, body_file), parse_headers(header))
219
275
 
220
276
 
221
277
  def api_delete(
222
278
  path: str = typer.Argument(..., help=_PATH_HELP),
223
279
  yes: bool = typer.Option(False, "--yes", "-y", help="Skip the confirmation prompt."),
280
+ header: HeaderOption = None,
224
281
  ) -> None:
225
282
  """DELETE a path (after confirmation, unless --yes) and print the answer."""
283
+ # Parsed before the prompt: a malformed header must not cost a confirmation.
284
+ headers = parse_headers(header)
226
285
  if not yes:
227
286
  confirm(f"DELETE {path.lstrip('/')} with the current profile's credential?")
228
- probe_and_print("DELETE", path)
287
+ probe_and_print("DELETE", path, headers=headers)
@@ -14,8 +14,11 @@ def print_human_tasks(tasks: list[Card], pending_count: int | None = None) -> No
14
14
  _out.print("[dim]No human tasks.[/dim]")
15
15
  return
16
16
  table = Table(box=box.SIMPLE)
17
+ show_failure = any(task.get("status") == "source_failed" for task in tasks)
17
18
  for header in ("Status", "Kind", "Title", "Target", "From", "Expires"):
18
19
  table.add_column(header)
20
+ if show_failure:
21
+ table.add_column("Failure reason")
19
22
  table.add_column("ID", style="dim")
20
23
  for task in tasks:
21
24
  schema = task.get("response_schema") or {}
@@ -26,6 +29,7 @@ def print_human_tasks(tasks: list[Card], pending_count: int | None = None) -> No
26
29
  escape(_target(task)),
27
30
  escape(task.get("assigner_name") or task.get("workflow_name") or "-"),
28
31
  escape(str(task.get("expires_at") or "")),
32
+ *([escape(_source_failure(task))] if show_failure else []),
29
33
  escape(str(task.get("id") or "")),
30
34
  )
31
35
  _out.print(table)
@@ -47,10 +51,17 @@ def print_human_task(task: Card) -> None:
47
51
  if task.get("assignee_name"):
48
52
  meta.append(f"assignee={task.get('assignee_name')}")
49
53
  _out.print(f"[dim]{escape(' · '.join(str(part) for part in meta))}[/dim]")
54
+ if reason := _source_failure(task):
55
+ labelled("Failure reason", reason)
50
56
  _assignment(task)
51
57
  print_human_task_link(task)
52
58
  _out.print()
53
59
  _out.print(escape(task.get("prompt") or ""))
60
+ _response(task, schema)
61
+
62
+
63
+ def _response(task: Card, schema: Card) -> None:
64
+ """Render the task's response choices and recorded answer."""
54
65
  options = schema.get("options") or []
55
66
  if options:
56
67
  _out.print()
@@ -72,6 +83,22 @@ def print_human_task(task: Card) -> None:
72
83
  _out.print("[dim]Awaiting a human answer — give it in the Luge UI, not from the CLI.[/dim]")
73
84
 
74
85
 
86
+ def _source_failure(task: Card) -> str:
87
+ """Describe only the failure snapshot the server authorized for this reader."""
88
+ if task.get("status") != "source_failed":
89
+ return ""
90
+ if task.get("source_failure_withheld"):
91
+ return "The source run failed. You do not have access to its details."
92
+ failure = task.get("source_failure") or {}
93
+ detail = (
94
+ str(failure.get("error_message") or "").strip()
95
+ or str(failure.get("error_class") or "").strip()
96
+ )
97
+ if not detail:
98
+ return "The source run failed. No failure details are available."
99
+ return f"The source run failed: {detail}"
100
+
101
+
75
102
  def _target(task: Card) -> str:
76
103
  if task.get("target_team_id"):
77
104
  return f"team:{task['target_team_id']}"
@@ -298,7 +298,8 @@ upgrade [--check] [--skill-only] (update the CLI *and* rewrite every local co
298
298
  and the Claude Code mod)
299
299
  mcp [--read-only] [--group] [--exclude] [--list-tools] (serve this CLI over MCP stdio)
300
300
  ws [--subscribe id]… [--type t]… [--room id] [--limit n] [--timeout s] (watch realtime frames)
301
- api get <path> [-q k=v]… (raw GET on the deployment's own API, same-host only)
301
+ api get | post | put | patch | delete <path> [-H 'Name: value']… [--body json | --body-file f]
302
+ (raw request on the deployment's own API, same-host only; `delete` confirms unless --yes)
302
303
  ```
303
304
 
304
305
  Boards, cards, columns, schedules, workflows, channels and agents are referenced
@@ -2333,10 +2334,14 @@ the API redirects. The path is relative
2333
2334
  to the API base (query string welcome); an absolute URL is refused so the
2334
2335
  credential cannot be pointed off-host. A write takes its JSON body from
2335
2336
  `--body '<json>'` or `--body-file <file>`; `delete` asks first unless `--yes`.
2337
+ Every verb takes `--header 'Name: value'` (`-H`, repeatable); it replaces a
2338
+ default of the same name, and the credential headers are refused — set
2339
+ `LUGE_TOKEN` or `LUGE_EXTERNAL_TOKEN` to probe with another credential.
2336
2340
 
2337
2341
  ```bash
2338
2342
  luge-cli api get settings/integrations/catalog
2339
2343
  luge-cli api get "automations?days=7"
2344
+ luge-cli api get settings/integrations/catalog -H 'Accept-Language: fr'
2340
2345
  luge-cli api post webhook-endpoints --body '{"name":"x","source_type":"generic","destination_type":"log_only"}'
2341
2346
  luge-cli api delete webhook-endpoints/<id> # confirms first; --yes only in a script
2342
2347
  ```
@@ -446,3 +446,141 @@ def test_a_json_body_of_null_is_a_body_and_still_succeeds(monkeypatch):
446
446
  result = runner.invoke(app, ["api", "get", "settings/thing"])
447
447
  assert result.exit_code == 0
448
448
  assert result.stdout.strip() == "null"
449
+
450
+
451
+ # --- --header -------------------------------------------------------------------
452
+
453
+
454
+ def test_header_goes_out_on_every_verb_beside_the_credential(monkeypatch):
455
+ seen = []
456
+
457
+ def handler(request):
458
+ seen.append(
459
+ (request.method, request.headers.get("x-trace"), request.headers.get("authorization"))
460
+ )
461
+ return httpx.Response(200, json={})
462
+
463
+ patch_client(monkeypatch, handler)
464
+ for argv in (
465
+ ["get", "x"],
466
+ ["post", "x", "--body", "{}"],
467
+ ["put", "x", "--body", "{}"],
468
+ ["patch", "x", "--body", "{}"],
469
+ ["delete", "x", "--yes"],
470
+ ):
471
+ result = runner.invoke(app, ["api", *argv, "--header", "X-Trace: t-1"])
472
+ assert result.exit_code == 0, result.output
473
+ assert seen == [
474
+ (method, "t-1", "Bearer luge_tok") for method in ("GET", "POST", "PUT", "PATCH", "DELETE")
475
+ ]
476
+
477
+
478
+ def test_a_repeated_header_is_sent_each_time_and_a_value_keeps_its_colons(monkeypatch):
479
+ seen = {}
480
+
481
+ def handler(request):
482
+ seen["accept"] = request.headers.get_list("accept-language")
483
+ seen["since"] = request.headers.get("x-since")
484
+ return httpx.Response(200, json={})
485
+
486
+ patch_client(monkeypatch, handler)
487
+ result = runner.invoke(
488
+ app,
489
+ [
490
+ "api",
491
+ "get",
492
+ "x",
493
+ "-H",
494
+ "Accept-Language: fr",
495
+ "-H",
496
+ "accept-language:en",
497
+ "-H",
498
+ "X-Since: 2026-01-01T10:00:00Z",
499
+ ],
500
+ )
501
+ assert result.exit_code == 0
502
+ assert seen == {"accept": ["fr", "en"], "since": "2026-01-01T10:00:00Z"}
503
+
504
+
505
+ def test_a_header_replaces_the_default_of_the_same_name(monkeypatch):
506
+ seen = {}
507
+
508
+ def handler(request):
509
+ seen["type"] = request.headers.get_list("content-type")
510
+ seen["agent"] = request.headers.get_list("user-agent")
511
+ seen["body"] = request.content
512
+ return httpx.Response(200, json={})
513
+
514
+ patch_client(monkeypatch, handler)
515
+ result = runner.invoke(
516
+ app,
517
+ [
518
+ "api",
519
+ "patch",
520
+ "x",
521
+ "--body",
522
+ '{"a": 1}',
523
+ "-H",
524
+ "content-type: application/merge-patch+json",
525
+ "-H",
526
+ "User-Agent: probe",
527
+ ],
528
+ )
529
+ assert result.exit_code == 0
530
+ # One Content-Type, the caller's — not the JSON default beside it.
531
+ assert seen == {
532
+ "type": ["application/merge-patch+json"],
533
+ "agent": ["probe"],
534
+ "body": b'{"a":1}',
535
+ }
536
+
537
+
538
+ @pytest.mark.parametrize("name", ["Authorization", "x-luge-external-token"])
539
+ def test_a_credential_header_is_refused_before_any_request(monkeypatch, name):
540
+ calls = []
541
+
542
+ def handler(request):
543
+ calls.append(request)
544
+ return httpx.Response(200, json={})
545
+
546
+ patch_client(monkeypatch, handler)
547
+ result = runner.invoke(app, ["api", "get", "x", "-H", f"{name}: other"])
548
+ assert result.exit_code != 0
549
+ # Raised beside the credential, in probe; `run()` renders it for a person.
550
+ assert isinstance(result.exception, LugeError)
551
+ assert f"the {name} header is refused" in str(result.exception)
552
+ assert "LUGE_TOKEN or LUGE_EXTERNAL_TOKEN" in str(result.exception)
553
+ assert calls == []
554
+
555
+
556
+ @pytest.mark.parametrize(
557
+ ("raw", "match"),
558
+ [
559
+ ("X-Trace", "is not"), # no colon
560
+ (": value", "is not"), # no name
561
+ ("X Trace: 1", "is not"), # a space is not a name character
562
+ ("X-Trace: café", "printable ASCII"),
563
+ ("X-Trace: a\nInjected: 1", "printable ASCII"),
564
+ # Refused by name, whatever the value: a length that disagrees with the
565
+ # body is a transport error raised past every handler.
566
+ ("content-length: 1", "Content-Length is refused"),
567
+ ],
568
+ )
569
+ def test_a_malformed_header_is_refused_naming_the_option(raw, match):
570
+ with pytest.raises(LugeCliError, match=match):
571
+ api_cmd.parse_headers([raw])
572
+
573
+
574
+ def test_a_malformed_header_on_delete_is_refused_before_the_prompt(monkeypatch):
575
+ asked = []
576
+ monkeypatch.setattr(api_cmd, "confirm", lambda message: asked.append(message))
577
+ with pytest.raises(LugeCliError):
578
+ api_cmd.api_delete("x", yes=False, header=["no-colon"])
579
+ assert asked == []
580
+
581
+
582
+ def test_an_empty_header_value_is_sent_empty():
583
+ assert api_cmd.parse_headers(["X-Empty:", "X-Tab: a\tb"]) == [
584
+ ("X-Empty", ""),
585
+ ("X-Tab", "a\tb"),
586
+ ]
@@ -20,7 +20,7 @@ from luge_cli.errors import LugeCliError
20
20
  runner = CliRunner()
21
21
 
22
22
  PENDING = {
23
- "id": "9db7db33-bd20-44eb-ab27-6ef5d94b40d0",
23
+ "id": "55555555-5555-5555-5555-555555555555",
24
24
  "status": "pending",
25
25
  "requested_at": "2026-08-29T14:23:00Z",
26
26
  "completed_at": None,
@@ -37,11 +37,11 @@ DONE = {
37
37
  "expires_at": "2026-09-05T14:23:01Z",
38
38
  "file_size": 129713,
39
39
  "category_counts": {"notes": 3, "projects": 1, "skills": 2},
40
- "download_url": "/api/exports/9db7db33-bd20-44eb-ab27-6ef5d94b40d0/download",
40
+ "download_url": "/api/exports/55555555-5555-5555-5555-555555555555/download",
41
41
  }
42
42
  OLDER = {
43
43
  **PENDING,
44
- "id": "cb398ae6-4f81-4e63-aa3e-d6d7141d959d",
44
+ "id": "66666666-6666-6666-6666-666666666666",
45
45
  "status": "expired",
46
46
  "requested_at": "2026-08-15T21:58:00Z",
47
47
  "file_size": 8000,
@@ -146,7 +146,7 @@ def test_show_lists_the_categories_of_the_newest_request(monkeypatch):
146
146
 
147
147
  def test_show_takes_an_id_prefix(monkeypatch):
148
148
  _world(monkeypatch, {"exports": {"exports": [DONE, OLDER]}})
149
- result = runner.invoke(app, ["export", "show", "cb398ae6"])
149
+ result = runner.invoke(app, ["export", "show", "66666666"])
150
150
  assert result.exit_code == 0, result.output
151
151
  assert "notes 1" in _flat(result.output)
152
152
 
@@ -162,7 +162,7 @@ def test_download_writes_the_newest_completed_archive(monkeypatch, tmp_path):
162
162
  )
163
163
  result = runner.invoke(app, ["export", "download", "-o", str(tmp_path)])
164
164
  assert result.exit_code == 0, result.output
165
- written = tmp_path / "luge-export-9db7db33.zip"
165
+ written = tmp_path / "luge-export-55555555.zip"
166
166
  assert written.exists()
167
167
  # A ZIP, not a printed blob: the file is what the person asked for.
168
168
  with zipfile.ZipFile(written) as z:
@@ -182,7 +182,7 @@ def test_download_refuses_when_nothing_is_ready(monkeypatch, tmp_path):
182
182
 
183
183
 
184
184
  def test_download_refuses_to_clobber_without_force(monkeypatch, tmp_path):
185
- existing = tmp_path / "luge-export-9db7db33.zip"
185
+ existing = tmp_path / "luge-export-55555555.zip"
186
186
  existing.write_bytes(b"keep me")
187
187
  _world(monkeypatch, {"exports": {"exports": [DONE]}}, archive=b"new")
188
188
  result = runner.invoke(app, ["export", "download", "-o", str(tmp_path)])