luge-cli 0.76.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.
- {luge_cli-0.76.0 → luge_cli-0.78.0}/CHANGELOG.md +20 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/PKG-INFO +16 -9
- {luge_cli-0.76.0 → luge_cli-0.78.0}/README.md +15 -8
- {luge_cli-0.76.0 → luge_cli-0.78.0}/pyproject.toml +1 -1
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/base.py +35 -9
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/billing.py +15 -7
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/employees.py +15 -8
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/exports.py +7 -9
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/installations.py +10 -10
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/notifications.py +4 -2
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/settings.py +4 -6
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/usage.py +2 -1
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/webhooks.py +9 -11
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/activity_cmd.py +20 -21
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/api_cmd.py +68 -9
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/billing_cmd.py +3 -1
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/colleagues_cmd.py +6 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/schedule_cmd.py +1 -2
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/automations.py +4 -5
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/chat.py +3 -3
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/human_tasks.py +27 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/resolve.py +0 -41
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/skill/luge-platform/SKILL.md +12 -7
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_activity_cmd.py +44 -45
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_api_cmd.py +144 -10
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_billing_and_usage_cmd.py +10 -4
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_client.py +22 -4
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_cookbook_cmd.py +16 -11
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_export_cmd.py +19 -21
- luge_cli-0.78.0/tests/test_hitl_source_failure.py +98 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_notification_preferences.py +1 -1
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_presence_cmd.py +9 -5
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_resolve.py +0 -40
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_settings_agent_governance.py +4 -4
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_settings_agents.py +2 -2
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_settings_cmd.py +2 -2
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_settings_integrations_cmd.py +3 -3
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_webhook_cmd.py +5 -5
- {luge_cli-0.76.0 → luge_cli-0.78.0}/uv.lock +1 -1
- {luge_cli-0.76.0 → luge_cli-0.78.0}/.claude/skills/luge-cli-release/SKILL.md +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/.github/workflows/ci.yml +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/.gitignore +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/.pre-commit-config.yaml +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/LICENSE +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/Makefile +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/scripts/bump_version.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/__main__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/chat_card_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/.claude-plugin/plugin.json +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/detect.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/hooks.json +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/label.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/hooks/register.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/tests/detect.test.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/tests/label.test.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/tests/register.test.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/claude_mod/luge/types/index.d.ts +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/api_keys.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/artifacts.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/audit.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/automations.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/boards.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/bookmarks.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/calendar.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/canvases.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/channels.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/chat.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/datasets.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/delivery.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/docs.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/documents.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/externals.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/forms.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/human_tasks.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/improvement.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/meetings.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/notes.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/notetakers.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/plans.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/projects.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/schedules.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/search.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/shares.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/skills.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/todos.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/client/workflows.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/coerce.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_bundled_mod.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_bundled_skill.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_card_ref.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_common.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_cookbook_machine.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_delivery_scope.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/_room_ref.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/agent_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/agent_skill_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/artifact_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/attachment_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/auth_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/auth_login.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/board_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/board_columns.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/bookmark_bulk.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/bookmark_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/calendar_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/canvas_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/placement.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/read.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/card/write.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/channel_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/chat_card_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/chat_card_reply.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/claude_mod_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/conversation_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/conversation_prs.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/cookbook_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/dm_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/docs_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/document_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/document_rag.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/export_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/external_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/form_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/form_placements.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/hitl_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/improvement_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/mcp_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/meeting_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/message_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_attachments.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_folders.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/note_revisions.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/notetaker_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/notification_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/notify_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/notify_templates.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/plan_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/presence_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/profile_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/project_actors.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/project_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/project_repositories.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/row_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/search_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_agent_governance.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_agents.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_exposure.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_integrations/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_integrations/cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/settings_integrations/config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/share_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/skill_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/table_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/todo_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/upgrade_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/usage_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/webhook/send.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/workflow_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/workflow_node.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/commands/ws_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/errors.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/filters.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/mcp/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/mcp/introspect.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/mcp/invoke.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/mcp/policy.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/mcp/schema.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/mcp/server.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/notify.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/plan_entry_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/product_docs.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/release_notice.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/__init__.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/_core.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/api_keys.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/artifacts.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/attachments.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/audit.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/billing.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/board_dashboard.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/boards.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/bookmarks.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/calendar.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/canvases.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/context.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/cookbooks.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/delivery.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/docs.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/documents.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/exports.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/externals.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/github.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/improvement.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/list_summaries.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/meetings.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/messages.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/notes.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/notetakers.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/notifications.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/plans.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/projects.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/schedules.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/search.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/settings.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/shares.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/skills.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/tables.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/todos.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/upgrade.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/usage.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/webhooks.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/render/workflows.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/schedule_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/table_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/workflow_graph.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/src/luge_cli/workflow_node_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/card_lookup_routes.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/conftest.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_agent_reply.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_agent_skill_install.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_api_errors.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_artifact_output.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_as_agent.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_attachments.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_audit_trace.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_auth_key_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_auth_login_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_auth_show_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_automation_context_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_automation_lifecycle_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_board_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_board_overview_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_bookmark_bulk.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_bookmark_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_calendar_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_canvas_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_across_the_archive_line.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_archive.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_attach.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_comment_mutations.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_filter_contract.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_list_column.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_lookup.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_placement.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_read_output.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_search_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_card_status.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_channel_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_chat_card_delete.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_chat_card_reply.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_chat_card_revise.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_chat_card_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_claude_mod.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_cli.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_colleagues_teams_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_context_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_conversation_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_cookbook_machine.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_dm_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_docs_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_document_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_external_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_filters.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_form_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_github_references_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_hitl_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_improvement_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_list_summaries.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_mcp.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_meeting_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_message_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_note_attach.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_note_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_notification_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_notify.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_notify_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_notify_scope_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_plan_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_profile_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_project_actors.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_project_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_readme_coverage.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_release_notice.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_automation.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_history.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_labelled.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_plans.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_share_cell.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_tables.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_timeline.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_render_width.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_schedule_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_schedule_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_search_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_settings_exposure.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_settings_integrations_config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_share_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_skill_coverage.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_stdio_encoding.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_table_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_table_spec.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_todo_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_upgrade_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_usage_by_agent_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_usage_filters_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_webhook_config.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_workflow_cmd.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_workflow_graph.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_workflow_node.py +0 -0
- {luge_cli-0.76.0 → luge_cli-0.78.0}/tests/test_ws_cmd.py +0 -0
|
@@ -6,6 +6,26 @@ 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
|
+
|
|
18
|
+
## [0.77.0]
|
|
19
|
+
|
|
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.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- **Follows the Luge API's URL moves** (Luge 0.97.0). The API serves each of its services under prefixes of its own, and the paths this CLI calls move with it: `exports` and `export-backup` (was `auth/me/exports`, `auth/me/export-backup`), `cookbook-installations` (was `me/cookbooks`), `webhook-endpoints` (was `settings/webhook-endpoints`), `storage/breakdown` (was `billing/storage/breakdown`), `me/notification-preferences` (was `notifications/preferences`), `mcp-servers/status` and `mcp-servers/{name}/reload` (was under `settings/integrations`), `provider-checks/{provider}/models` (was `settings/providers/{provider}/models`), `agent-references/{agent_id}` (was `settings/agents/{agent_id}/references`) and `colleagues/{user_id}/card` (was `employees/by-user/{user_id}/card`). Commands and their output are unchanged.
|
|
24
|
+
- **`colleagues list` and `billing status` each join two reads, with the same output.** The colleague directory carries no live presence any more: `colleagues list` reads it at `colleagues/presence` and joins it on the user id, so its table and its JSON keep each human's `presence` (none for an AI colleague). `billing status` reads the plan and its seats at `billing/status` and the meters at `usage/plan`, and shows one view; its JSON keeps `usage` and the metered `credit_plan`. `usage budget` still reads `token-usage/budget`, now the usage meter alone; the limit it measures against is set at `settings/token-budget`.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- **`activity list` names each run by its execution id** (LUG-2370). A conversation holding several delegated tasks printed its room id on each of their lines, and `activity show` or `retry` on any of them reached the latest. `show` and `retry` now hand the id to the server as given: the fallback that looked an execution id up in the recent runs and swapped it for its room, written while the API keyed on rooms alone (before Luge 0.55.0), is gone. A room id still works, and names the room's latest run.
|
|
28
|
+
|
|
9
29
|
## [0.76.0]
|
|
10
30
|
|
|
11
31
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: luge-cli
|
|
3
|
-
Version: 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
|
|
@@ -759,10 +759,11 @@ luge-cli activity retry <id> # re-run a failed/cancelled run
|
|
|
759
759
|
luge-cli activity stats [--days 7]
|
|
760
760
|
```
|
|
761
761
|
|
|
762
|
-
`show` / `retry` take
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
762
|
+
`show` / `retry` take a run's `execution_id`: the ID column of `activity list`,
|
|
763
|
+
the `execution_id` field of its `--json` rows (their `id` is the chat room), and
|
|
764
|
+
the id `schedule run` prints. A chat room id (the `room=` that `activity show`
|
|
765
|
+
prints) names the room's latest run: a conversation holding several delegated
|
|
766
|
+
tasks has one room for all of them.
|
|
766
767
|
|
|
767
768
|
## Notifications
|
|
768
769
|
|
|
@@ -2208,9 +2209,10 @@ path the CLI does not wrap yet, so an endpoint stays provable from the terminal:
|
|
|
2208
2209
|
```bash
|
|
2209
2210
|
luge-cli api get settings/integrations/catalog # any path, relative to the API base
|
|
2210
2211
|
luge-cli api get "automations?days=7" # query string included
|
|
2211
|
-
luge-cli api post
|
|
2212
|
-
luge-cli api put
|
|
2213
|
-
luge-cli api delete
|
|
2212
|
+
luge-cli api post webhook-endpoints --body '{"name":"x","source_type":"generic","destination_type":"log_only"}'
|
|
2213
|
+
luge-cli api put webhook-endpoints/<id> --body-file endpoint.json # body from a file
|
|
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
|
|
2214
2216
|
```
|
|
2215
2217
|
|
|
2216
2218
|
The body prints as answered — pretty-printed when it is JSON, errors included
|
|
@@ -2221,7 +2223,12 @@ from an empty collection: a `204` after a delete succeeds and says so, a `307`
|
|
|
2221
2223
|
exits non-zero naming where the API redirects. The path must be relative: an
|
|
2222
2224
|
absolute URL is refused rather than carrying the credential to another host.
|
|
2223
2225
|
A write takes its JSON body from `--body` or `--body-file` (one or the other);
|
|
2224
|
-
`delete` confirms before sending unless `--yes`.
|
|
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
|
|
2225
2232
|
probed often has earned a real subcommand — and the whole group stays out of
|
|
2226
2233
|
the MCP tool surface.
|
|
2227
2234
|
|
|
@@ -732,10 +732,11 @@ luge-cli activity retry <id> # re-run a failed/cancelled run
|
|
|
732
732
|
luge-cli activity stats [--days 7]
|
|
733
733
|
```
|
|
734
734
|
|
|
735
|
-
`show` / `retry` take
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
735
|
+
`show` / `retry` take a run's `execution_id`: the ID column of `activity list`,
|
|
736
|
+
the `execution_id` field of its `--json` rows (their `id` is the chat room), and
|
|
737
|
+
the id `schedule run` prints. A chat room id (the `room=` that `activity show`
|
|
738
|
+
prints) names the room's latest run: a conversation holding several delegated
|
|
739
|
+
tasks has one room for all of them.
|
|
739
740
|
|
|
740
741
|
## Notifications
|
|
741
742
|
|
|
@@ -2181,9 +2182,10 @@ path the CLI does not wrap yet, so an endpoint stays provable from the terminal:
|
|
|
2181
2182
|
```bash
|
|
2182
2183
|
luge-cli api get settings/integrations/catalog # any path, relative to the API base
|
|
2183
2184
|
luge-cli api get "automations?days=7" # query string included
|
|
2184
|
-
luge-cli api post
|
|
2185
|
-
luge-cli api put
|
|
2186
|
-
luge-cli api delete
|
|
2185
|
+
luge-cli api post webhook-endpoints --body '{"name":"x","source_type":"generic","destination_type":"log_only"}'
|
|
2186
|
+
luge-cli api put webhook-endpoints/<id> --body-file endpoint.json # body from a file
|
|
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
|
|
2187
2189
|
```
|
|
2188
2190
|
|
|
2189
2191
|
The body prints as answered — pretty-printed when it is JSON, errors included
|
|
@@ -2194,7 +2196,12 @@ from an empty collection: a `204` after a delete succeeds and says so, a `307`
|
|
|
2194
2196
|
exits non-zero naming where the API redirects. The path must be relative: an
|
|
2195
2197
|
absolute URL is refused rather than carrying the credential to another host.
|
|
2196
2198
|
A write takes its JSON body from `--body` or `--body-file` (one or the other);
|
|
2197
|
-
`delete` confirms before sending unless `--yes`.
|
|
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
|
|
2198
2205
|
probed often has earned a real subcommand — and the whole group stays out of
|
|
2199
2206
|
the MCP tool surface.
|
|
2200
2207
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "luge-cli"
|
|
3
|
-
version = "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(
|
|
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
|
-
|
|
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
|
-
|
|
295
|
-
"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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,
|
|
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
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
"""Plan and quota endpoints — the ``/billing`` surface.
|
|
1
|
+
"""Plan and quota endpoints — the ``/billing`` surface and its meters.
|
|
2
2
|
|
|
3
3
|
What the tenant's plan allows and how close it is to those limits: the plan
|
|
4
|
-
itself with its seats, the metered gauges (storage, AI
|
|
5
|
-
requests per day
|
|
4
|
+
itself with its seats (``/billing/status``), the metered gauges (storage, AI
|
|
5
|
+
requests per day, HTTP requests per day) and the credit plan metered, served
|
|
6
|
+
beside it (``/usage/plan``), the tier catalogue, and what is filling the
|
|
7
|
+
storage quota.
|
|
6
8
|
|
|
7
9
|
``status`` and ``plans`` need ``tenant.manage``; the storage breakdown is any
|
|
8
10
|
member's, and answers with the caller's own items — the quota is tenant-wide
|
|
@@ -17,11 +19,17 @@ class BillingMixin:
|
|
|
17
19
|
"""Mixed into ``LugeClient``; uses ``_request`` from ``BaseClient``."""
|
|
18
20
|
|
|
19
21
|
def billing_status(self) -> dict:
|
|
20
|
-
"""The tenant's plan, its seats, and its
|
|
21
|
-
carries ``used`` / ``limit`` (null = unlimited) / ``state``, the state
|
|
22
|
-
being computed server-side so every surface warns at the same share."""
|
|
22
|
+
"""The tenant's plan, its seats, and the credit plan its partner sold it."""
|
|
23
23
|
return self._request("GET", "billing/status")
|
|
24
24
|
|
|
25
|
+
def billing_usage(self) -> dict:
|
|
26
|
+
"""What the tenant used against its plan: ``usage``, its metered gauges,
|
|
27
|
+
and ``credit_plan``, the partner's plan metered this month (null when
|
|
28
|
+
none). Each gauge carries ``used`` / ``limit`` (null = unlimited) /
|
|
29
|
+
``state``, the state being computed server-side so every surface warns
|
|
30
|
+
at the same share."""
|
|
31
|
+
return self._request("GET", "usage/plan")
|
|
32
|
+
|
|
25
33
|
def billing_plans(self) -> dict:
|
|
26
34
|
"""Every plan tier with the limits enforcement actually reads, the
|
|
27
35
|
tenant's current one flagged ``is_current``."""
|
|
@@ -29,4 +37,4 @@ class BillingMixin:
|
|
|
29
37
|
|
|
30
38
|
def billing_storage_breakdown(self) -> dict:
|
|
31
39
|
"""What is filling the caller's share of the quota, largest first."""
|
|
32
|
-
return self._request("GET", "
|
|
40
|
+
return self._request("GET", "storage/breakdown")
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
"""Colleague / employee directory (`/employees`).
|
|
1
|
+
"""Colleague / employee directory (`/employees`) and their live presence (`/colleagues`).
|
|
2
2
|
|
|
3
3
|
The full people directory (broader than the tenant's team members) — the source
|
|
4
|
-
for finding someone to DM. Member-safe (``profile.read.others``). The
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
for finding someone to DM. Member-safe (``profile.read.others``). The directory
|
|
5
|
+
carries no live presence: who is online right now, and the hovercard that shows
|
|
6
|
+
it, are served beside it (``colleagues/presence``, ``colleagues/{user_id}/card``).
|
|
7
|
+
The ``/me`` pair is the caller's own row (``profile.read.self`` /
|
|
8
|
+
``profile.write.self``): the only place a presence is written, and the only row
|
|
9
|
+
that discloses the "appear offline" flag.
|
|
8
10
|
"""
|
|
9
11
|
|
|
10
12
|
from __future__ import annotations
|
|
@@ -38,6 +40,11 @@ class EmployeesMixin:
|
|
|
38
40
|
params={"limit": limit, "offset": offset, "employee_type": employee_type},
|
|
39
41
|
)
|
|
40
42
|
|
|
43
|
+
def get_colleagues_presence(self) -> dict:
|
|
44
|
+
"""The effective presence of every person in the tenant, per ``user_id``:
|
|
45
|
+
``{"presence": {user_id: status}}``. An AI colleague is absent."""
|
|
46
|
+
return self._request("GET", "colleagues/presence")
|
|
47
|
+
|
|
41
48
|
def get_colleague(self, employee_id: str) -> dict:
|
|
42
49
|
"""One colleague's profile (role, department, skills)."""
|
|
43
50
|
return self._request("GET", f"employees/{employee_id}")
|
|
@@ -45,9 +52,9 @@ class EmployeesMixin:
|
|
|
45
52
|
def get_colleague_card(self, user_id: str) -> dict:
|
|
46
53
|
"""The hovercard for the colleague with this ``user_id``: identity plus
|
|
47
54
|
the effective presence peers see, resolved for that one row by the same
|
|
48
|
-
rule as the directory — so reading it never depends on which
|
|
49
|
-
``employees/`` the row would have landed on."""
|
|
50
|
-
return self._request("GET", f"
|
|
55
|
+
rule as the directory presence — so reading it never depends on which
|
|
56
|
+
page of ``employees/`` the row would have landed on."""
|
|
57
|
+
return self._request("GET", f"colleagues/{user_id}/card")
|
|
51
58
|
|
|
52
59
|
def get_me(self) -> dict:
|
|
53
60
|
"""My own employee row: declared ``status``, the owner-only
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"""Personal-data export endpoints — the ``/
|
|
1
|
+
"""Personal-data export endpoints — the ``/exports`` surface.
|
|
2
2
|
|
|
3
3
|
Taking a copy of your own data (RGPD art. 20 / Loi 25). The request is
|
|
4
4
|
asynchronous by nature: the API opens a row and a worker builds the archive, so
|
|
5
5
|
the CLI asks, reads back, and downloads — it never blocks on the build.
|
|
6
6
|
|
|
7
|
-
The scheduled cloud backup beside it (``/
|
|
7
|
+
The scheduled cloud backup beside it (``/export-backup``) runs the same
|
|
8
8
|
collectors on a cadence. This mixin reads its state and triggers a run; choosing
|
|
9
9
|
a destination is a picker that belongs in the app, not on a command line.
|
|
10
10
|
"""
|
|
@@ -24,29 +24,27 @@ class ExportsMixin:
|
|
|
24
24
|
"""Open an export request. Answers 202 with the pending row; the archive
|
|
25
25
|
is built by a worker. One non-failed request per 24h — a second answers
|
|
26
26
|
429 with the wait."""
|
|
27
|
-
return self._request(
|
|
28
|
-
"POST", "auth/me/exports", json={"include_recordings": include_recordings}
|
|
29
|
-
)
|
|
27
|
+
return self._request("POST", "exports", json={"include_recordings": include_recordings})
|
|
30
28
|
|
|
31
29
|
def list_exports(self) -> dict:
|
|
32
30
|
"""The caller's export requests, newest first, each with its status and —
|
|
33
31
|
once completed — its size and per-category counts."""
|
|
34
|
-
return self._request("GET", "
|
|
32
|
+
return self._request("GET", "exports")
|
|
35
33
|
|
|
36
34
|
def download_export_to(self, export_id: str, dest: Path) -> int:
|
|
37
35
|
"""Stream a completed archive into ``dest``, returning the bytes written.
|
|
38
36
|
An export runs to hundreds of megabytes with recordings, so it is never
|
|
39
37
|
held whole in memory. Refuses (404) once the file has expired."""
|
|
40
|
-
return self._download("GET", f"
|
|
38
|
+
return self._download("GET", f"exports/{export_id}/download", dest)
|
|
41
39
|
|
|
42
40
|
def export_backup_config(self) -> dict:
|
|
43
41
|
"""The scheduled cloud backup: cadence, destination, and the outcome of
|
|
44
42
|
the last run (including its error, which is where a broken backup says
|
|
45
43
|
so)."""
|
|
46
|
-
return self._request("GET", "
|
|
44
|
+
return self._request("GET", "export-backup")
|
|
47
45
|
|
|
48
46
|
def run_export_backup(self) -> dict:
|
|
49
47
|
"""Run the configured backup now, reusing its saved settings. Refuses
|
|
50
48
|
when nothing is configured, when the destination is not connected, or
|
|
51
49
|
when a run is already in flight."""
|
|
52
|
-
return self._request("POST", "
|
|
50
|
+
return self._request("POST", "export-backup/run")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Installed-cookbook endpoints (``/
|
|
1
|
+
"""Installed-cookbook endpoints (``/cookbook-installations``, LUG-1228).
|
|
2
2
|
|
|
3
3
|
An installation is the platform's record of a cookbook a person installed:
|
|
4
4
|
what the installer declared (name, version, manifest, non-secret answers),
|
|
@@ -13,36 +13,36 @@ class InstallationsMixin:
|
|
|
13
13
|
|
|
14
14
|
def list_cookbooks(self, limit: int = 100) -> dict:
|
|
15
15
|
"""Installed cookbooks the caller may see → ``{installations, total}``."""
|
|
16
|
-
return self._request("GET", "
|
|
16
|
+
return self._request("GET", "cookbook-installations", params={"limit": limit})
|
|
17
17
|
|
|
18
18
|
def get_cookbook(self, ref: str) -> dict:
|
|
19
19
|
"""One installation, its objects and their state. ``ref`` is the
|
|
20
20
|
installation's id or the exact name of one of the caller's own."""
|
|
21
|
-
return self._request("GET", f"
|
|
21
|
+
return self._request("GET", f"cookbook-installations/{ref}")
|
|
22
22
|
|
|
23
23
|
def register_cookbook(self, body: dict) -> dict:
|
|
24
24
|
"""Declare an installation, or refresh the caller's existing one of
|
|
25
25
|
the same bundle (a relaunch at the next version)."""
|
|
26
|
-
return self._request("POST", "
|
|
26
|
+
return self._request("POST", "cookbook-installations", json=body)
|
|
27
27
|
|
|
28
28
|
def link_cookbook_object(self, ref: str, body: dict) -> dict:
|
|
29
29
|
"""Declare one object the installation created (idempotent)."""
|
|
30
|
-
return self._request("POST", f"
|
|
30
|
+
return self._request("POST", f"cookbook-installations/{ref}/objects", json=body)
|
|
31
31
|
|
|
32
32
|
def unlink_cookbook_object(self, ref: str, kind: str, object_id: str) -> dict:
|
|
33
33
|
"""Withdraw a declaration; the object itself stays."""
|
|
34
|
-
return self._request("DELETE", f"
|
|
34
|
+
return self._request("DELETE", f"cookbook-installations/{ref}/objects/{kind}/{object_id}")
|
|
35
35
|
|
|
36
36
|
def start_cookbook(self, ref: str) -> dict:
|
|
37
|
-
return self._request("POST", f"
|
|
37
|
+
return self._request("POST", f"cookbook-installations/{ref}/start")
|
|
38
38
|
|
|
39
39
|
def pause_cookbook(self, ref: str) -> dict:
|
|
40
|
-
return self._request("POST", f"
|
|
40
|
+
return self._request("POST", f"cookbook-installations/{ref}/pause")
|
|
41
41
|
|
|
42
42
|
def resume_cookbook(self, ref: str) -> dict:
|
|
43
|
-
return self._request("POST", f"
|
|
43
|
+
return self._request("POST", f"cookbook-installations/{ref}/resume")
|
|
44
44
|
|
|
45
45
|
def uninstall_cookbook(self, ref: str) -> dict:
|
|
46
46
|
"""The platform's half of an uninstall → the outcome per object and
|
|
47
47
|
what is left on the machine (``device_cleanup``)."""
|
|
48
|
-
return self._request("DELETE", f"
|
|
48
|
+
return self._request("DELETE", f"cookbook-installations/{ref}")
|
|
@@ -8,11 +8,13 @@ class NotificationsMixin:
|
|
|
8
8
|
|
|
9
9
|
def list_notification_preferences(self) -> dict:
|
|
10
10
|
"""The full effective matrix, including the server's default choices."""
|
|
11
|
-
return self._request("GET", "
|
|
11
|
+
return self._request("GET", "me/notification-preferences")
|
|
12
12
|
|
|
13
13
|
def update_notification_preferences(self, preferences: list[dict]) -> dict:
|
|
14
14
|
"""Store a batch of overrides, returning the full refreshed matrix."""
|
|
15
|
-
return self._request(
|
|
15
|
+
return self._request(
|
|
16
|
+
"PUT", "me/notification-preferences", json={"preferences": preferences}
|
|
17
|
+
)
|
|
16
18
|
|
|
17
19
|
def list_notifications(self, limit: int = 50, offset: int = 0) -> dict:
|
|
18
20
|
"""The inbox, newest first: ``{notifications, unread_count}``. The
|
|
@@ -84,7 +84,7 @@ class SettingsMixin:
|
|
|
84
84
|
"""
|
|
85
85
|
return self._request(
|
|
86
86
|
"GET",
|
|
87
|
-
f"
|
|
87
|
+
f"agent-references/{agent_id}",
|
|
88
88
|
params={"include_bindings": "true" if include_bindings else "false"},
|
|
89
89
|
)
|
|
90
90
|
|
|
@@ -155,7 +155,7 @@ class SettingsMixin:
|
|
|
155
155
|
"""
|
|
156
156
|
return self._request(
|
|
157
157
|
"GET",
|
|
158
|
-
f"
|
|
158
|
+
f"provider-checks/{quote(provider, safe='')}/models",
|
|
159
159
|
params=params or {},
|
|
160
160
|
)
|
|
161
161
|
|
|
@@ -318,7 +318,7 @@ class SettingsMixin:
|
|
|
318
318
|
never appears here, and one just created appears only once the gateway
|
|
319
319
|
has picked the reload up.
|
|
320
320
|
"""
|
|
321
|
-
return self._request("GET", "
|
|
321
|
+
return self._request("GET", "mcp-servers/status")
|
|
322
322
|
|
|
323
323
|
def reload_mcp_server(self, server_name: str) -> dict:
|
|
324
324
|
"""Re-mount one proxied MCP server (re-list its tools, re-sync skills).
|
|
@@ -327,6 +327,4 @@ class SettingsMixin:
|
|
|
327
327
|
which acts on it out of band. 404 when the tenant has no MCP server by
|
|
328
328
|
that name.
|
|
329
329
|
"""
|
|
330
|
-
return self._request(
|
|
331
|
-
"POST", f"settings/integrations/mcp/{quote(server_name, safe='')}/reload"
|
|
332
|
-
)
|
|
330
|
+
return self._request("POST", f"mcp-servers/{quote(server_name, safe='')}/reload")
|
|
@@ -91,5 +91,6 @@ class UsageMixin:
|
|
|
91
91
|
|
|
92
92
|
def usage_budget(self) -> dict:
|
|
93
93
|
"""The monthly AI budget: its limit (null = none), the calendar month's
|
|
94
|
-
spend so far, and the state the platform alerts on
|
|
94
|
+
spend so far, and the state the platform alerts on — the usage meter's
|
|
95
|
+
read (its limit is configured at ``settings/token-budget``)."""
|
|
95
96
|
return self._request("GET", "token-usage/budget")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Inbound webhook-endpoint management (`/
|
|
1
|
+
"""Inbound webhook-endpoint management (`/webhook-endpoints`).
|
|
2
2
|
|
|
3
3
|
A webhook endpoint is a receiver Luge hosts: an external system POSTs to its
|
|
4
4
|
``inbound_url``, and the delivery is routed to the endpoint's destination (an
|
|
@@ -19,33 +19,31 @@ class WebhooksMixin:
|
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
def list_webhooks(self) -> dict:
|
|
22
|
-
return self._request("GET", "
|
|
22
|
+
return self._request("GET", "webhook-endpoints")
|
|
23
23
|
|
|
24
24
|
def preview_webhook(self, resource_id: str) -> dict:
|
|
25
|
-
return self._request("GET", f"
|
|
25
|
+
return self._request("GET", f"webhook-endpoints/{resource_id}/preview")
|
|
26
26
|
|
|
27
27
|
def get_webhook(self, endpoint_id: str) -> dict:
|
|
28
|
-
return self._request("GET", f"
|
|
28
|
+
return self._request("GET", f"webhook-endpoints/{endpoint_id}")
|
|
29
29
|
|
|
30
30
|
def create_webhook(self, body: dict) -> dict:
|
|
31
31
|
"""Create an endpoint. The response carries ``inbound_url`` and (once)
|
|
32
32
|
the signing ``secret`` — capture it, it is not returned again."""
|
|
33
|
-
return self._request("POST", "
|
|
33
|
+
return self._request("POST", "webhook-endpoints", json=body)
|
|
34
34
|
|
|
35
35
|
def update_webhook(self, endpoint_id: str, body: dict) -> dict:
|
|
36
|
-
return self._request("PUT", f"
|
|
36
|
+
return self._request("PUT", f"webhook-endpoints/{endpoint_id}", json=body)
|
|
37
37
|
|
|
38
38
|
def delete_webhook(self, endpoint_id: str) -> dict:
|
|
39
|
-
return self._request("DELETE", f"
|
|
39
|
+
return self._request("DELETE", f"webhook-endpoints/{endpoint_id}")
|
|
40
40
|
|
|
41
41
|
def webhook_deliveries(self, endpoint_id: str, limit: int = 50) -> dict:
|
|
42
42
|
"""The inbound-delivery journal for one endpoint (what has arrived)."""
|
|
43
43
|
return self._request(
|
|
44
|
-
"GET", f"
|
|
44
|
+
"GET", f"webhook-endpoints/{endpoint_id}/deliveries", params={"limit": limit}
|
|
45
45
|
)
|
|
46
46
|
|
|
47
47
|
def webhook_delivery(self, endpoint_id: str, delivery_id: str) -> dict:
|
|
48
48
|
"""One delivery in full (payload + headers)."""
|
|
49
|
-
return self._request(
|
|
50
|
-
"GET", f"settings/webhook-endpoints/{endpoint_id}/deliveries/{delivery_id}"
|
|
51
|
-
)
|
|
49
|
+
return self._request("GET", f"webhook-endpoints/{endpoint_id}/deliveries/{delivery_id}")
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Automations are runs across every trigger surface (schedule, workflow, webhook,
|
|
4
4
|
notetaker, agent_task, outbound_call) — the "what fired / what failed" inbox.
|
|
5
5
|
|
|
6
|
-
``show`` / ``retry`` take
|
|
7
|
-
list``
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
``show`` / ``retry`` take a run's ``execution_id``: the ID column of ``activity
|
|
7
|
+
list``, its ``execution_id`` in ``--json`` (where ``id`` is the room), and what
|
|
8
|
+
`schedule run` prints. A room id resolves to the room's latest run — see
|
|
9
|
+
``_by_id``.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
from __future__ import annotations
|
|
@@ -17,8 +17,8 @@ from enum import Enum
|
|
|
17
17
|
import typer
|
|
18
18
|
|
|
19
19
|
from .. import render
|
|
20
|
-
from ..client import
|
|
21
|
-
from ..resolve import
|
|
20
|
+
from ..client import LugeError
|
|
21
|
+
from ..resolve import ResolveError
|
|
22
22
|
from ._card_ref import object_id_for
|
|
23
23
|
from ._common import JsonOption, fetch_timeline, make_client, report
|
|
24
24
|
|
|
@@ -40,27 +40,26 @@ _KIND_HELP = (
|
|
|
40
40
|
"Trigger surface: schedule | workflow | webhook | notetaker | agent_task | outbound_call"
|
|
41
41
|
)
|
|
42
42
|
|
|
43
|
-
_REF_HELP =
|
|
44
|
-
|
|
43
|
+
_REF_HELP = (
|
|
44
|
+
"Run id: its execution id (the ID column of `activity list`, `execution_id` in its "
|
|
45
|
+
"--json, the id `schedule run` prints). A room id names the room's latest run."
|
|
46
|
+
)
|
|
45
47
|
|
|
46
|
-
def _by_id(client: LugeClient, ref: str, call: Callable[[str], dict]) -> dict:
|
|
47
|
-
"""Run ``call`` on whichever of a run's two ids the caller passed.
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
`activity list`, costs a single call — and resolve it as an execution id
|
|
52
|
-
only once that 404s.
|
|
49
|
+
def _by_id(ref: str, call: Callable[[str], dict]) -> dict:
|
|
50
|
+
"""Run ``call`` on the run ``ref`` names, reporting a 404 against ``ref``.
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
The server resolves either id a run carries: its execution id, the one
|
|
53
|
+
`activity list` and `schedule run` print, or its room id, which names the
|
|
54
|
+
room's latest run. A conversation may hold several delegated tasks, so the
|
|
55
|
+
id is passed as is and never swapped for its room (LUG-2370).
|
|
56
56
|
"""
|
|
57
57
|
try:
|
|
58
58
|
return call(ref)
|
|
59
59
|
except LugeError as exc:
|
|
60
60
|
if exc.status_code != 404:
|
|
61
61
|
raise
|
|
62
|
-
|
|
63
|
-
return call(resolve_automation_id(recent, ref))
|
|
62
|
+
raise ResolveError(f"No run matching '{ref}'. Pass an id from `activity list`.") from exc
|
|
64
63
|
|
|
65
64
|
|
|
66
65
|
def list_activity(
|
|
@@ -86,7 +85,7 @@ def show_activity(
|
|
|
86
85
|
) -> None:
|
|
87
86
|
"""Show one run with its message thread, human-review steps and audit timeline."""
|
|
88
87
|
with make_client() as client:
|
|
89
|
-
detail = _by_id(
|
|
88
|
+
detail = _by_id(automation, client.get_automation)
|
|
90
89
|
timeline = fetch_timeline(client, detail.get("execution_id"))
|
|
91
90
|
if json_out:
|
|
92
91
|
render.emit_json(detail if timeline is None else {**detail, "timeline": timeline})
|
|
@@ -113,7 +112,7 @@ def retry_activity(
|
|
|
113
112
|
) -> None:
|
|
114
113
|
"""Retry a failed or cancelled run (re-runs its underlying execution)."""
|
|
115
114
|
with make_client() as client:
|
|
116
|
-
result = _by_id(
|
|
115
|
+
result = _by_id(automation, client.retry_automation)
|
|
117
116
|
report(
|
|
118
117
|
json_out,
|
|
119
118
|
result,
|
|
@@ -131,7 +130,7 @@ class LinkRole(str, Enum):
|
|
|
131
130
|
|
|
132
131
|
_RUN_HELP = (
|
|
133
132
|
"Run id — the last line of your own prompt names it (`[Luge run] execution=<uuid>`); "
|
|
134
|
-
"an
|
|
133
|
+
"an execution id from `activity list` (its ID column, `execution_id` in --json) works too."
|
|
135
134
|
)
|
|
136
135
|
_OBJECT_KIND_HELP = (
|
|
137
136
|
"The object's type (todo, note, document, dataset, meeting, board, … — the server "
|