manigent-server 0.1.0__py3-none-any.whl
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.
- manigent/_catalog/mcps/chess/README.md +38 -0
- manigent/_catalog/mcps/chess/mcp.json +9 -0
- manigent/_catalog/mcps/registry.json +9 -0
- manigent/_catalog/skills/brief/SKILL.md +339 -0
- manigent/_catalog/skills/broaden-options/SKILL.md +133 -0
- manigent/_catalog/skills/calendar/SKILL.md +44 -0
- manigent/_catalog/skills/calendar/starter_config.jsonc +25 -0
- manigent/_catalog/skills/gmail/SKILL.md +73 -0
- manigent/_catalog/skills/google-calendar/SKILL.md +44 -0
- manigent/_catalog/skills/google-drive/SKILL.md +42 -0
- manigent/_catalog/skills/google-drive-write/SKILL.md +45 -0
- manigent/_catalog/skills/google-drive-write/starter_config.jsonc +45 -0
- manigent/_catalog/skills/grill-me/SKILL.md +173 -0
- manigent/_catalog/skills/homekit/SKILL.md +37 -0
- manigent/_catalog/skills/http-api/SKILL.md +117 -0
- manigent/_catalog/skills/ib/SKILL.md +89 -0
- manigent/_catalog/skills/ib/starter_config.jsonc +35 -0
- manigent/_catalog/skills/mailbox/SKILL.md +47 -0
- manigent/_catalog/skills/mailbox/starter_config.jsonc +38 -0
- manigent/_catalog/skills/media/SKILL.md +93 -0
- manigent/_catalog/skills/media/starter_config.jsonc +63 -0
- manigent/_catalog/skills/osxphotos/SKILL.md +41 -0
- manigent/_catalog/skills/photo-story/SKILL.md +285 -0
- manigent/_catalog/skills/playwright-browser/SKILL.md +291 -0
- manigent/_catalog/skills/playwright-browser/starter_config.jsonc +44 -0
- manigent/_catalog/skills/playwright-save-skill/SKILL.md +149 -0
- manigent/_catalog/skills/registry.json +166 -0
- manigent/_catalog/skills/web-artifacts/SKILL.md +194 -0
- manigent/api/action_executor.py +404 -0
- manigent/api/action_validator.py +531 -0
- manigent/api/actions.py +221 -0
- manigent/api/client.py +558 -0
- manigent/api/control.py +806 -0
- manigent/api/edge_protocol.py +123 -0
- manigent/api/fs_protocol.py +450 -0
- manigent/api/host_protocol.py +298 -0
- manigent/api/managed_job_client.py +124 -0
- manigent/api/responses.py +342 -0
- manigent/api/retry_transport.py +178 -0
- manigent/api/turn_protocol.py +78 -0
- manigent/cli_lifecycle.py +467 -0
- manigent/cli_server.py +978 -0
- manigent/doctor.py +1167 -0
- manigent/hub_protocol/canonical.py +375 -0
- manigent/hub_protocol/codes.py +171 -0
- manigent/hub_protocol/constants.py +71 -0
- manigent/hub_protocol/envelope.py +218 -0
- manigent/hub_protocol/frames.py +788 -0
- manigent/hub_protocol/http.py +260 -0
- manigent/hub_protocol/ids.py +170 -0
- manigent/hub_protocol/keys.py +195 -0
- manigent/hub_protocol/text.py +75 -0
- manigent/llm/base.py +1072 -0
- manigent/llm/prompt_builder.py +2450 -0
- manigent/llm/triggers.py +68 -0
- manigent/models/agent.py +2905 -0
- manigent/models/agent_bundle.py +298 -0
- manigent/models/brief_tab.py +311 -0
- manigent/models/chat_message.py +231 -0
- manigent/models/chatroom.py +1108 -0
- manigent/models/context.py +1159 -0
- manigent/models/desk_label.py +836 -0
- manigent/models/desk_read_state.py +220 -0
- manigent/models/desk_sign_off.py +267 -0
- manigent/models/desk_sop.py +965 -0
- manigent/models/desk_todo.py +1603 -0
- manigent/models/desk_todo_link.py +404 -0
- manigent/models/file_cache.py +75 -0
- manigent/models/host.py +732 -0
- manigent/models/install_token.py +401 -0
- manigent/models/invitation_code.py +162 -0
- manigent/models/knowledge_pack.py +552 -0
- manigent/models/managed_job.py +295 -0
- manigent/models/model_config.py +564 -0
- manigent/models/model_defaults.py +238 -0
- manigent/models/onboarding_plan.py +161 -0
- manigent/models/participant.py +449 -0
- manigent/models/persistable.py +892 -0
- manigent/models/plan_markdown.py +1774 -0
- manigent/models/project.py +1343 -0
- manigent/models/project_plan.py +8104 -0
- manigent/models/project_report.py +145 -0
- manigent/models/provenance.py +261 -0
- manigent/models/provider_agents.py +101 -0
- manigent/models/public_request.py +108 -0
- manigent/models/reflection_schedule.py +191 -0
- manigent/models/scheduled_message.py +285 -0
- manigent/models/share_token.py +190 -0
- manigent/models/skill_version.py +31 -0
- manigent/models/sop_template.py +187 -0
- manigent/models/thinking_partner_plan.py +187 -0
- manigent/models/tunnel_binding.py +129 -0
- manigent/models/user.py +1276 -0
- manigent/models/work_tracker.py +510 -0
- manigent/runner/invocation_registry.py +187 -0
- manigent/server/agent_capabilities.py +119 -0
- manigent/server/agent_visibility.py +119 -0
- manigent/server/announcements.py +119 -0
- manigent/server/app.py +807 -0
- manigent/server/auth.py +355 -0
- manigent/server/batch_timeout.py +94 -0
- manigent/server/channels/access.py +194 -0
- manigent/server/channels/adapter.py +295 -0
- manigent/server/channels/config.py +693 -0
- manigent/server/channels/contacts.py +39 -0
- manigent/server/channels/email_adapter.py +436 -0
- manigent/server/channels/email_address.py +145 -0
- manigent/server/channels/email_form.py +242 -0
- manigent/server/channels/email_format.py +285 -0
- manigent/server/channels/email_mail.py +427 -0
- manigent/server/channels/email_mailgun.py +164 -0
- manigent/server/channels/email_text.py +280 -0
- manigent/server/channels/file_links.py +127 -0
- manigent/server/channels/gateway.py +2998 -0
- manigent/server/channels/hub_delivery.py +211 -0
- manigent/server/channels/hub_store.py +1730 -0
- manigent/server/channels/line.py +645 -0
- manigent/server/channels/line_format.py +589 -0
- manigent/server/channels/log_redaction.py +145 -0
- manigent/server/channels/store.py +3316 -0
- manigent/server/channels/telegram.py +422 -0
- manigent/server/channels/telegram_format.py +312 -0
- manigent/server/channels/webchat.py +261 -0
- manigent/server/channels/webchat_widget.js +1310 -0
- manigent/server/channels/whatsapp.py +707 -0
- manigent/server/channels/whatsapp_format.py +511 -0
- manigent/server/chat_search_index.py +1203 -0
- manigent/server/config.py +61 -0
- manigent/server/context.py +121 -0
- manigent/server/coordinator_rule.py +115 -0
- manigent/server/desk_todo_notify.py +300 -0
- manigent/server/edge_hub.py +577 -0
- manigent/server/email.py +354 -0
- manigent/server/errors.py +83 -0
- manigent/server/home_fs_relay.py +392 -0
- manigent/server/hub/adapter.py +1395 -0
- manigent/server/hub/agent_send_guard.py +196 -0
- manigent/server/hub/avatar.py +342 -0
- manigent/server/hub/browser.py +778 -0
- manigent/server/hub/client.py +859 -0
- manigent/server/hub/demand.py +49 -0
- manigent/server/hub/directory.py +385 -0
- manigent/server/hub/enroll.py +400 -0
- manigent/server/hub/http.py +134 -0
- manigent/server/hub/identity.py +61 -0
- manigent/server/hub/keys.py +588 -0
- manigent/server/hub/mirror.py +802 -0
- manigent/server/hub/operator.py +817 -0
- manigent/server/hub/retain.py +361 -0
- manigent/server/hub/room_bridge.py +741 -0
- manigent/server/hub/runtime.py +691 -0
- manigent/server/hub/trust.py +182 -0
- manigent/server/hub/views.py +316 -0
- manigent/server/idempotency.py +205 -0
- manigent/server/in_flight_restore.py +181 -0
- manigent/server/inspection.py +816 -0
- manigent/server/isolation_gate.py +516 -0
- manigent/server/isolation_notice.py +310 -0
- manigent/server/managed_job_events.py +242 -0
- manigent/server/mcp_registry.py +118 -0
- manigent/server/message_forward.py +78 -0
- manigent/server/message_scheduler.py +176 -0
- manigent/server/notification_assets.py +164 -0
- manigent/server/oauth_login/cli_state.py +120 -0
- manigent/server/oauth_login/config.py +90 -0
- manigent/server/oauth_login/errors.py +78 -0
- manigent/server/oauth_login/flow.py +223 -0
- manigent/server/oauth_login/handoff.py +63 -0
- manigent/server/oauth_login/providers.py +45 -0
- manigent/server/oauth_state.py +81 -0
- manigent/server/owner_isolation.py +466 -0
- manigent/server/participant_liveness.py +82 -0
- manigent/server/public_profile.py +149 -0
- manigent/server/public_requests/candidates.py +116 -0
- manigent/server/public_requests/dispatch.py +121 -0
- manigent/server/public_requests/ranking.py +153 -0
- manigent/server/recent_activity.py +250 -0
- manigent/server/reflection_completion_subscriber.py +151 -0
- manigent/server/reflection_scheduler.py +239 -0
- manigent/server/requester_key_migration.py +261 -0
- manigent/server/room_flow.py +139 -0
- manigent/server/routes/_batch.py +218 -0
- manigent/server/routes/_fd_routing.py +155 -0
- manigent/server/routes/_mentions.py +70 -0
- manigent/server/routes/agent_env.py +188 -0
- manigent/server/routes/agent_fs.py +450 -0
- manigent/server/routes/agents.py +1206 -0
- manigent/server/routes/announcements.py +79 -0
- manigent/server/routes/auth.py +387 -0
- manigent/server/routes/brief_tabs.py +404 -0
- manigent/server/routes/changelog.py +237 -0
- manigent/server/routes/channels.py +993 -0
- manigent/server/routes/chatrooms.py +871 -0
- manigent/server/routes/desk_labels.py +298 -0
- manigent/server/routes/desk_latest_messages.py +116 -0
- manigent/server/routes/desk_read_state.py +110 -0
- manigent/server/routes/desk_sign_off.py +88 -0
- manigent/server/routes/desk_sops.py +216 -0
- manigent/server/routes/desk_todos.py +692 -0
- manigent/server/routes/desk_tour.py +44 -0
- manigent/server/routes/files.py +572 -0
- manigent/server/routes/hosts.py +484 -0
- manigent/server/routes/hub.py +534 -0
- manigent/server/routes/hub_channels.py +234 -0
- manigent/server/routes/inbox.py +581 -0
- manigent/server/routes/install.ps1 +436 -0
- manigent/server/routes/install.py +324 -0
- manigent/server/routes/install.sh +566 -0
- manigent/server/routes/isolation_check.py +145 -0
- manigent/server/routes/knowledge_packs.py +477 -0
- manigent/server/routes/managed_jobs.py +196 -0
- manigent/server/routes/mcps.py +271 -0
- manigent/server/routes/messages.py +1972 -0
- manigent/server/routes/model_defaults.py +279 -0
- manigent/server/routes/oauth.py +237 -0
- manigent/server/routes/oauth_login.py +351 -0
- manigent/server/routes/owner_isolation.py +91 -0
- manigent/server/routes/project_plans.py +1521 -0
- manigent/server/routes/project_reports.py +235 -0
- manigent/server/routes/projects.py +2047 -0
- manigent/server/routes/public_agents.py +151 -0
- manigent/server/routes/public_requests.py +181 -0
- manigent/server/routes/reflection.py +93 -0
- manigent/server/routes/scheduled_messages.py +263 -0
- manigent/server/routes/search.py +94 -0
- manigent/server/routes/sharing.py +156 -0
- manigent/server/routes/skills.py +406 -0
- manigent/server/routes/templates.py +219 -0
- manigent/server/routes/turn_tokens.py +119 -0
- manigent/server/routes/webchat.py +406 -0
- manigent/server/routes/websocket.py +431 -0
- manigent/server/serving_only.py +200 -0
- manigent/server/signup_policy.py +120 -0
- manigent/server/skill_registry.py +164 -0
- manigent/server/socket_events.py +858 -0
- manigent/server/timeout_checker.py +446 -0
- manigent/server/tunnel_subscriber.py +1000 -0
- manigent/server/turn_tokens.py +285 -0
- manigent/server/ws_hub.py +556 -0
- manigent/server_cli.py +31 -0
- manigent/sync/changelog.py +885 -0
- manigent/sync/console_subscriber.py +222 -0
- manigent/sync/runloop.py +619 -0
- manigent/sync/runloop_manager.py +197 -0
- manigent/sync/subscriber.py +98 -0
- manigent/utils/agent_processes.py +276 -0
- manigent/utils/agent_storage.py +125 -0
- manigent/utils/email.py +563 -0
- manigent/utils/env_store.py +174 -0
- manigent/utils/extra_dirs.py +85 -0
- manigent/utils/file_io.py +485 -0
- manigent/utils/invoke_timeout.py +87 -0
- manigent/utils/jsonc.py +78 -0
- manigent/utils/knowledge_index.py +148 -0
- manigent/utils/nofollow_fs.py +279 -0
- manigent/utils/notification_center.py +67 -0
- manigent/utils/version.py +57 -0
- manigent/web/frontend/.design-sync-entry.tsx +74 -0
- manigent/web/frontend/.design-sync-provider.tsx +46 -0
- manigent/web/frontend/.eslintrc.cjs +183 -0
- manigent/web/frontend/.gitignore +6 -0
- manigent/web/frontend/app/page.tsx +39 -0
- manigent/web/frontend/hub-terms.html +192 -0
- manigent/web/frontend/index.html +15 -0
- manigent/web/frontend/landing.html +15 -0
- manigent/web/frontend/package-lock.json +8028 -0
- manigent/web/frontend/package.json +55 -0
- manigent/web/frontend/postcss.config.js +6 -0
- manigent/web/frontend/privacy.html +217 -0
- manigent/web/frontend/private-beta-announcement.html +19 -0
- manigent/web/frontend/public/apple-touch-icon.png +0 -0
- manigent/web/frontend/public/brand-hero-banner.png +0 -0
- manigent/web/frontend/public/brand-hero.png +0 -0
- manigent/web/frontend/public/favicon.png +0 -0
- manigent/web/frontend/public/favicon.svg +8 -0
- manigent/web/frontend/public/icon-transparent-sm.png +0 -0
- manigent/web/frontend/public/icon.png +0 -0
- manigent/web/frontend/public/manigent-mark.svg +7 -0
- manigent/web/frontend/public/vite.svg +5 -0
- manigent/web/frontend/public.html +15 -0
- manigent/web/frontend/src/App.activeAccountRedirect.test.tsx +236 -0
- manigent/web/frontend/src/App.hubHostDm.test.tsx +119 -0
- manigent/web/frontend/src/App.hubHostProject.test.tsx +142 -0
- manigent/web/frontend/src/App.hubRoutes.test.tsx +187 -0
- manigent/web/frontend/src/App.oauthAddCallback.test.tsx +263 -0
- manigent/web/frontend/src/App.tsx +246 -0
- manigent/web/frontend/src/api/attachments.ts +32 -0
- manigent/web/frontend/src/api/batchLoader.test.ts +212 -0
- manigent/web/frontend/src/api/batchLoader.ts +124 -0
- manigent/web/frontend/src/api/chatroomsBatch.test.tsx +392 -0
- manigent/web/frontend/src/api/client.ts +321 -0
- manigent/web/frontend/src/api/crossAccountAuth.test.ts +388 -0
- manigent/web/frontend/src/api/endpoints/agentEnv.ts +24 -0
- manigent/web/frontend/src/api/endpoints/agentFs.ts +125 -0
- manigent/web/frontend/src/api/endpoints/agentSearch.ts +19 -0
- manigent/web/frontend/src/api/endpoints/agents.ts +66 -0
- manigent/web/frontend/src/api/endpoints/announcements.ts +26 -0
- manigent/web/frontend/src/api/endpoints/auth.ts +361 -0
- manigent/web/frontend/src/api/endpoints/authLogin.test.ts +236 -0
- manigent/web/frontend/src/api/endpoints/batch.ts +64 -0
- manigent/web/frontend/src/api/endpoints/briefTabs.ts +81 -0
- manigent/web/frontend/src/api/endpoints/channels.ts +285 -0
- manigent/web/frontend/src/api/endpoints/computers.ts +212 -0
- manigent/web/frontend/src/api/endpoints/deskLabels.ts +151 -0
- manigent/web/frontend/src/api/endpoints/deskLatestMessages.ts +23 -0
- manigent/web/frontend/src/api/endpoints/deskReadState.ts +41 -0
- manigent/web/frontend/src/api/endpoints/deskSignOffs.ts +74 -0
- manigent/web/frontend/src/api/endpoints/deskSops.ts +53 -0
- manigent/web/frontend/src/api/endpoints/deskTodoAttachments.ts +69 -0
- manigent/web/frontend/src/api/endpoints/deskTodoProjects.test.ts +99 -0
- manigent/web/frontend/src/api/endpoints/deskTodoProjects.ts +114 -0
- manigent/web/frontend/src/api/endpoints/deskTodos.ts +164 -0
- manigent/web/frontend/src/api/endpoints/deskTour.ts +16 -0
- manigent/web/frontend/src/api/endpoints/dm.ts +137 -0
- manigent/web/frontend/src/api/endpoints/files.ts +55 -0
- manigent/web/frontend/src/api/endpoints/hub.contract.test.ts +94 -0
- manigent/web/frontend/src/api/endpoints/hub.keys.ts +260 -0
- manigent/web/frontend/src/api/endpoints/hub.test.ts +203 -0
- manigent/web/frontend/src/api/endpoints/hub.ts +654 -0
- manigent/web/frontend/src/api/endpoints/index.ts +15 -0
- manigent/web/frontend/src/api/endpoints/install.ts +74 -0
- manigent/web/frontend/src/api/endpoints/isolationCheck.ts +36 -0
- manigent/web/frontend/src/api/endpoints/knowledgePacks.ts +179 -0
- manigent/web/frontend/src/api/endpoints/mcps.ts +36 -0
- manigent/web/frontend/src/api/endpoints/messages.held.test.ts +43 -0
- manigent/web/frontend/src/api/endpoints/messages.ts +95 -0
- manigent/web/frontend/src/api/endpoints/modelConfigs.ts +232 -0
- manigent/web/frontend/src/api/endpoints/oauthApi.test.ts +110 -0
- manigent/web/frontend/src/api/endpoints/projectPlans.ts +608 -0
- manigent/web/frontend/src/api/endpoints/projectReports.ts +36 -0
- manigent/web/frontend/src/api/endpoints/projects.ts +124 -0
- manigent/web/frontend/src/api/endpoints/publicRequests.ts +75 -0
- manigent/web/frontend/src/api/endpoints/reflection.ts +32 -0
- manigent/web/frontend/src/api/endpoints/roomFlow.ts +14 -0
- manigent/web/frontend/src/api/endpoints/scheduledMessages.ts +60 -0
- manigent/web/frontend/src/api/endpoints/search.ts +27 -0
- manigent/web/frontend/src/api/endpoints/sharing.ts +42 -0
- manigent/web/frontend/src/api/endpoints/skills.ts +67 -0
- manigent/web/frontend/src/api/endpoints/templates.ts +72 -0
- manigent/web/frontend/src/api/loaders.ts +22 -0
- manigent/web/frontend/src/api/singleIssuer.test.ts +148 -0
- manigent/web/frontend/src/api/transientRetry.test.ts +176 -0
- manigent/web/frontend/src/api/transientRetry.ts +140 -0
- manigent/web/frontend/src/api/websocket.resync.test.ts +111 -0
- manigent/web/frontend/src/api/websocket.ts +335 -0
- manigent/web/frontend/src/components/agent/AgentNameLink.tsx +24 -0
- manigent/web/frontend/src/components/agent/AgentViewActions.test.tsx +41 -0
- manigent/web/frontend/src/components/agent/AgentViewActions.tsx +89 -0
- manigent/web/frontend/src/components/agent/CreateAgentPage.tsx +535 -0
- manigent/web/frontend/src/components/agent/JsonConfigEditor.tsx +33 -0
- manigent/web/frontend/src/components/agent/KnowledgePackList.tsx +103 -0
- manigent/web/frontend/src/components/agent/McpCatalog.tsx +261 -0
- manigent/web/frontend/src/components/agent/McpConfigModal.tsx +224 -0
- manigent/web/frontend/src/components/agent/PreConsentModal.tsx +172 -0
- manigent/web/frontend/src/components/agent/SkillCatalog.tsx +364 -0
- manigent/web/frontend/src/components/agent/SkillConfigModal.tsx +221 -0
- manigent/web/frontend/src/components/auth/AddAccountPage.test.tsx +181 -0
- manigent/web/frontend/src/components/auth/AddAccountPage.tsx +201 -0
- manigent/web/frontend/src/components/auth/AuthShell.tsx +462 -0
- manigent/web/frontend/src/components/auth/LoginPage.test.tsx +384 -0
- manigent/web/frontend/src/components/auth/LoginPage.tsx +129 -0
- manigent/web/frontend/src/components/auth/OAuthCallbackPage.test.tsx +185 -0
- manigent/web/frontend/src/components/auth/OAuthCallbackPage.tsx +154 -0
- manigent/web/frontend/src/components/auth/OAuthLinkedBanner.tsx +44 -0
- manigent/web/frontend/src/components/auth/ProviderButtons.tsx +94 -0
- manigent/web/frontend/src/components/auth/SignupPage.tsx +437 -0
- manigent/web/frontend/src/components/auth/StepProgress.tsx +60 -0
- manigent/web/frontend/src/components/auth/VerifyEmailPage.test.tsx +155 -0
- manigent/web/frontend/src/components/auth/VerifyEmailPage.tsx +211 -0
- manigent/web/frontend/src/components/auth/index.ts +3 -0
- manigent/web/frontend/src/components/auth/oauthErrors.test.ts +107 -0
- manigent/web/frontend/src/components/auth/oauthErrors.ts +82 -0
- manigent/web/frontend/src/components/auth/useUsernameCheck.test.tsx +68 -0
- manigent/web/frontend/src/components/auth/useUsernameCheck.ts +86 -0
- manigent/web/frontend/src/components/beta/BetaPage.tsx +21 -0
- manigent/web/frontend/src/components/beta/DayAtMyDesk.tsx +120 -0
- manigent/web/frontend/src/components/beta/Footer.tsx +82 -0
- manigent/web/frontend/src/components/beta/Hero.tsx +224 -0
- manigent/web/frontend/src/components/beta/Nav.tsx +51 -0
- manigent/web/frontend/src/components/beta/Pillars.tsx +172 -0
- manigent/web/frontend/src/components/beta/TwoModels.tsx +146 -0
- manigent/web/frontend/src/components/beta/constants.ts +3 -0
- manigent/web/frontend/src/components/briefing/BriefingFrame.test.tsx +208 -0
- manigent/web/frontend/src/components/briefing/BriefingFrame.tsx +151 -0
- manigent/web/frontend/src/components/briefing/BriefingPage.test.tsx +176 -0
- manigent/web/frontend/src/components/briefing/BriefingPage.tsx +157 -0
- manigent/web/frontend/src/components/briefing/BriefingPage.wsDelete.test.tsx +177 -0
- manigent/web/frontend/src/components/briefing/briefing.css +147 -0
- manigent/web/frontend/src/components/briefing/heightBootstrap.test.ts +121 -0
- manigent/web/frontend/src/components/briefing/heightBootstrap.ts +224 -0
- manigent/web/frontend/src/components/briefing/parseBriefMessage.test.ts +90 -0
- manigent/web/frontend/src/components/briefing/sampleBriefing.ts +148 -0
- manigent/web/frontend/src/components/channels/ChannelBadge.tsx +35 -0
- manigent/web/frontend/src/components/chatroom/ChannelThreadControls.tsx +127 -0
- manigent/web/frontend/src/components/chatroom/ChannelThreadNotice.test.tsx +207 -0
- manigent/web/frontend/src/components/chatroom/ChannelThreadNotice.tsx +80 -0
- manigent/web/frontend/src/components/chatroom/ChatroomView.channel.test.tsx +550 -0
- manigent/web/frontend/src/components/chatroom/ChatroomView.flow.test.tsx +186 -0
- manigent/web/frontend/src/components/chatroom/ChatroomView.isolation.test.tsx +70 -0
- manigent/web/frontend/src/components/chatroom/ChatroomView.tsx +450 -0
- manigent/web/frontend/src/components/chatroom/DelegationRow.test.tsx +170 -0
- manigent/web/frontend/src/components/chatroom/DelegationRow.tsx +217 -0
- manigent/web/frontend/src/components/chatroom/DeliveryStatusLine.test.tsx +33 -0
- manigent/web/frontend/src/components/chatroom/DeliveryStatusLine.tsx +46 -0
- manigent/web/frontend/src/components/chatroom/ForwardModal.test.tsx +109 -0
- manigent/web/frontend/src/components/chatroom/ForwardModal.tsx +304 -0
- manigent/web/frontend/src/components/chatroom/HeldNotice.tsx +77 -0
- manigent/web/frontend/src/components/chatroom/MentionDropdown.tsx +97 -0
- manigent/web/frontend/src/components/chatroom/MessageInput.tsx +408 -0
- manigent/web/frontend/src/components/chatroom/MessageItem.tsx +425 -0
- manigent/web/frontend/src/components/chatroom/MessageList.outside.test.tsx +98 -0
- manigent/web/frontend/src/components/chatroom/MessageList.test.tsx +245 -0
- manigent/web/frontend/src/components/chatroom/MessageList.tsx +406 -0
- manigent/web/frontend/src/components/chatroom/OfflineRemedyNote.test.tsx +211 -0
- manigent/web/frontend/src/components/chatroom/OfflineRemedyNote.tsx +182 -0
- manigent/web/frontend/src/components/chatroom/OutsideBadge.tsx +18 -0
- manigent/web/frontend/src/components/chatroom/RoomFlowControl.tsx +49 -0
- manigent/web/frontend/src/components/chatroom/RoomFlowStrip.test.tsx +47 -0
- manigent/web/frontend/src/components/chatroom/RoomFlowStrip.tsx +25 -0
- manigent/web/frontend/src/components/chatroom/SaveToPackModal.tsx +350 -0
- manigent/web/frontend/src/components/chatroom/StagedAttachments.test.tsx +56 -0
- manigent/web/frontend/src/components/chatroom/StagedAttachments.tsx +160 -0
- manigent/web/frontend/src/components/chatroom/SystemNote.tsx +18 -0
- manigent/web/frontend/src/components/chatroom/contactSender.test.tsx +130 -0
- manigent/web/frontend/src/components/chatroom/index.ts +3 -0
- manigent/web/frontend/src/components/chatroom/recipientStatus.test.ts +344 -0
- manigent/web/frontend/src/components/chatroom/recipientStatus.ts +197 -0
- manigent/web/frontend/src/components/common/AnnouncementBanners.test.tsx +221 -0
- manigent/web/frontend/src/components/common/AnnouncementBanners.tsx +180 -0
- manigent/web/frontend/src/components/common/Avatar.test.tsx +50 -0
- manigent/web/frontend/src/components/common/Avatar.tsx +102 -0
- manigent/web/frontend/src/components/common/Badge.tsx +30 -0
- manigent/web/frontend/src/components/common/BrandName.tsx +16 -0
- manigent/web/frontend/src/components/common/ClearHistoryButton.tsx +74 -0
- manigent/web/frontend/src/components/common/CollapsibleHeader.tsx +64 -0
- manigent/web/frontend/src/components/common/ConnectionStatus.test.tsx +56 -0
- manigent/web/frontend/src/components/common/ConnectionStatus.tsx +28 -0
- manigent/web/frontend/src/components/common/DropOverlay.tsx +27 -0
- manigent/web/frontend/src/components/common/InlineEditableTitle.test.tsx +369 -0
- manigent/web/frontend/src/components/common/InlineEditableTitle.tsx +287 -0
- manigent/web/frontend/src/components/common/IsolationUnavailablePanel.tsx +19 -0
- manigent/web/frontend/src/components/common/Loading.tsx +22 -0
- manigent/web/frontend/src/components/common/ModelSelector.tsx +248 -0
- manigent/web/frontend/src/components/common/Overlay.tsx +15 -0
- manigent/web/frontend/src/components/common/ResizeHandle.tsx +52 -0
- manigent/web/frontend/src/components/common/TagAutocompleteInput.test.tsx +92 -0
- manigent/web/frontend/src/components/common/TagAutocompleteInput.tsx +246 -0
- manigent/web/frontend/src/components/common/TagPillInput.tsx +181 -0
- manigent/web/frontend/src/components/common/TeamAndAgentPicker.tsx +83 -0
- manigent/web/frontend/src/components/common/Timestamp.tsx +61 -0
- manigent/web/frontend/src/components/common/VerifiedBadge.tsx +20 -0
- manigent/web/frontend/src/components/common/index.ts +8 -0
- manigent/web/frontend/src/components/composer/PhPopover.tsx +239 -0
- manigent/web/frontend/src/components/composer/PromptEditor.test.tsx +472 -0
- manigent/web/frontend/src/components/composer/PromptEditor.tsx +540 -0
- manigent/web/frontend/src/components/composer/caret.ts +159 -0
- manigent/web/frontend/src/components/composer/placeholders.test.ts +352 -0
- manigent/web/frontend/src/components/composer/placeholders.ts +354 -0
- manigent/web/frontend/src/components/composer/promptEditor.css +161 -0
- manigent/web/frontend/src/components/computer/ComputerPage.test.tsx +452 -0
- manigent/web/frontend/src/components/computer/ComputerPage.tsx +811 -0
- manigent/web/frontend/src/components/computer/ConnectComputerModal.tsx +135 -0
- manigent/web/frontend/src/components/computer/CopyCommand.tsx +77 -0
- manigent/web/frontend/src/components/computer/DisconnectComputerModal.tsx +121 -0
- manigent/web/frontend/src/components/computer/SoftwareCard.tsx +145 -0
- manigent/web/frontend/src/components/computer/TerminalCard.test.tsx +114 -0
- manigent/web/frontend/src/components/computer/TerminalCard.tsx +131 -0
- manigent/web/frontend/src/components/computer/TerminalPanel.tsx +226 -0
- manigent/web/frontend/src/components/computer/TrustPanel.test.tsx +58 -0
- manigent/web/frontend/src/components/computer/TrustPanel.tsx +143 -0
- manigent/web/frontend/src/components/computer/computerCopy.test.ts +322 -0
- manigent/web/frontend/src/components/computer/computerCopy.ts +413 -0
- manigent/web/frontend/src/components/computer/sections.ts +21 -0
- manigent/web/frontend/src/components/computer/terminalProtocol.test.ts +135 -0
- manigent/web/frontend/src/components/computer/terminalProtocol.ts +170 -0
- manigent/web/frontend/src/components/context/ContextGuide.test.tsx +26 -0
- manigent/web/frontend/src/components/context/ContextGuide.tsx +144 -0
- manigent/web/frontend/src/components/context/ContextLanding.tsx +46 -0
- manigent/web/frontend/src/components/desk/CardBand.a11y.test.tsx +138 -0
- manigent/web/frontend/src/components/desk/CardBand.tsx +132 -0
- manigent/web/frontend/src/components/desk/DashTile.tsx +81 -0
- manigent/web/frontend/src/components/desk/DeskAgentPicker.retained.test.tsx +79 -0
- manigent/web/frontend/src/components/desk/DeskAgentPicker.tsx +151 -0
- manigent/web/frontend/src/components/desk/DeskComposer.detachTodo.test.tsx +233 -0
- manigent/web/frontend/src/components/desk/DeskComposer.dispatch.test.tsx +208 -0
- manigent/web/frontend/src/components/desk/DeskComposer.loadTodoDraft.test.tsx +242 -0
- manigent/web/frontend/src/components/desk/DeskComposer.restage.test.tsx +258 -0
- manigent/web/frontend/src/components/desk/DeskComposer.saveTodo.test.tsx +265 -0
- manigent/web/frontend/src/components/desk/DeskComposer.tsx +828 -0
- manigent/web/frontend/src/components/desk/DeskPage.crossHighlight.test.tsx +427 -0
- manigent/web/frontend/src/components/desk/DeskPage.link.test.tsx +271 -0
- manigent/web/frontend/src/components/desk/DeskPage.tsx +1066 -0
- manigent/web/frontend/src/components/desk/DeskPage.welcomeTour.test.tsx +262 -0
- manigent/web/frontend/src/components/desk/DeskSideRail.tsx +100 -0
- manigent/web/frontend/src/components/desk/DeskWelcomeTour.tsx +513 -0
- manigent/web/frontend/src/components/desk/DeskZeroState.tsx +45 -0
- manigent/web/frontend/src/components/desk/LabelChip.tsx +147 -0
- manigent/web/frontend/src/components/desk/LabelFilter.tsx +474 -0
- manigent/web/frontend/src/components/desk/LabelInput.test.tsx +439 -0
- manigent/web/frontend/src/components/desk/LabelInput.tsx +477 -0
- manigent/web/frontend/src/components/desk/LabelManageSheet.test.tsx +384 -0
- manigent/web/frontend/src/components/desk/LabelManageSheet.tsx +498 -0
- manigent/web/frontend/src/components/desk/PhaseRail.test.tsx +170 -0
- manigent/web/frontend/src/components/desk/PhaseRail.tsx +120 -0
- manigent/web/frontend/src/components/desk/PlanBand.test.tsx +655 -0
- manigent/web/frontend/src/components/desk/PlanBand.tsx +216 -0
- manigent/web/frontend/src/components/desk/SaveTodoModal.tsx +126 -0
- manigent/web/frontend/src/components/desk/SopEditor.tsx +280 -0
- manigent/web/frontend/src/components/desk/SopItem.tsx +171 -0
- manigent/web/frontend/src/components/desk/SopRail.test.tsx +517 -0
- manigent/web/frontend/src/components/desk/SopRail.tsx +250 -0
- manigent/web/frontend/src/components/desk/TicketChip.tsx +51 -0
- manigent/web/frontend/src/components/desk/TodoItem.attachments.test.tsx +96 -0
- manigent/web/frontend/src/components/desk/TodoItem.menu.test.tsx +142 -0
- manigent/web/frontend/src/components/desk/TodoItem.tsx +573 -0
- manigent/web/frontend/src/components/desk/TodoRail.longpress.test.tsx +396 -0
- manigent/web/frontend/src/components/desk/TodoRail.test.tsx +1155 -0
- manigent/web/frontend/src/components/desk/TodoRail.tsx +918 -0
- manigent/web/frontend/src/components/desk/TodoRowMenu.tsx +147 -0
- manigent/web/frontend/src/components/desk/UpdateCard.bands.test.tsx +308 -0
- manigent/web/frontend/src/components/desk/UpdateCard.sendBack.test.tsx +444 -0
- manigent/web/frontend/src/components/desk/UpdateCard.tsx +943 -0
- manigent/web/frontend/src/components/desk/UpdateCard.untrusted.test.tsx +161 -0
- manigent/web/frontend/src/components/desk/desk.css +1921 -0
- manigent/web/frontend/src/components/desk/desk.css.test.ts +582 -0
- manigent/web/frontend/src/components/desk/deskBands.test.ts +389 -0
- manigent/web/frontend/src/components/desk/deskBands.ts +226 -0
- manigent/web/frontend/src/components/desk/m16Surfaces.test.ts +134 -0
- manigent/web/frontend/src/components/desk/sopSyntax.ts +73 -0
- manigent/web/frontend/src/components/discovery/AgentDirectory.tsx +71 -0
- manigent/web/frontend/src/components/discovery/AgentFilterBar.tsx +46 -0
- manigent/web/frontend/src/components/discovery/AgentSearchBar.tsx +56 -0
- manigent/web/frontend/src/components/dm/AgentSummaryCard.tsx +154 -0
- manigent/web/frontend/src/components/dm/ComposeFields.tsx +145 -0
- manigent/web/frontend/src/components/dm/DMChatView.flow.test.tsx +374 -0
- manigent/web/frontend/src/components/dm/DMChatView.tsx +841 -0
- manigent/web/frontend/src/components/dm/DMZeroState.tsx +204 -0
- manigent/web/frontend/src/components/dm/DmComposeModal.tsx +301 -0
- manigent/web/frontend/src/components/dm/PersonalizeModal.tsx +366 -0
- manigent/web/frontend/src/components/dm/index.ts +1 -0
- manigent/web/frontend/src/components/files/FileItem.tsx +138 -0
- manigent/web/frontend/src/components/files/FileList.outside.test.tsx +29 -0
- manigent/web/frontend/src/components/files/FileList.tsx +48 -0
- manigent/web/frontend/src/components/files/FilePreview.test.tsx +75 -0
- manigent/web/frontend/src/components/files/FilePreview.tsx +325 -0
- manigent/web/frontend/src/components/files/FileViewerModal.test.tsx +157 -0
- manigent/web/frontend/src/components/files/FileViewerModal.tsx +261 -0
- manigent/web/frontend/src/components/files/HighlightedCode.tsx +39 -0
- manigent/web/frontend/src/components/files/SaveToAgentPanel.test.tsx +156 -0
- manigent/web/frontend/src/components/files/SaveToAgentPanel.tsx +545 -0
- manigent/web/frontend/src/components/files/index.ts +3 -0
- manigent/web/frontend/src/components/hero/AgentAvatar.tsx +66 -0
- manigent/web/frontend/src/components/hero/Button.tsx +66 -0
- manigent/web/frontend/src/components/hero/Hero.tsx +133 -0
- manigent/web/frontend/src/components/homefs/HomeFolderBrowser.test.tsx +393 -0
- manigent/web/frontend/src/components/homefs/HomeFolderBrowser.tsx +792 -0
- manigent/web/frontend/src/components/hub/BridgeDeliveryLine.test.tsx +40 -0
- manigent/web/frontend/src/components/hub/BridgeDeliveryLine.tsx +36 -0
- manigent/web/frontend/src/components/hub/HubAvatar.test.tsx +93 -0
- manigent/web/frontend/src/components/hub/HubAvatar.tsx +33 -0
- manigent/web/frontend/src/components/hub/HubChatView.test.tsx +695 -0
- manigent/web/frontend/src/components/hub/HubChatView.tsx +504 -0
- manigent/web/frontend/src/components/hub/HubContactLabel.test.tsx +92 -0
- manigent/web/frontend/src/components/hub/HubContactLabel.tsx +47 -0
- manigent/web/frontend/src/components/hub/HubDeliveryLine.tsx +49 -0
- manigent/web/frontend/src/components/hub/HubDisclosure.tsx +49 -0
- manigent/web/frontend/src/components/hub/HubEnrollmentDialog.test.tsx +144 -0
- manigent/web/frontend/src/components/hub/HubEnrollmentDialog.tsx +244 -0
- manigent/web/frontend/src/components/hub/HubMessageBody.test.tsx +26 -0
- manigent/web/frontend/src/components/hub/HubMessageBody.tsx +14 -0
- manigent/web/frontend/src/components/hub/HubOfflineConfirm.tsx +45 -0
- manigent/web/frontend/src/components/hub/HubThreadBanner.tsx +33 -0
- manigent/web/frontend/src/components/hub/HubThreadGuard.tsx +59 -0
- manigent/web/frontend/src/components/hub/RemoteAgentCard.test.tsx +50 -0
- manigent/web/frontend/src/components/hub/RemoteAgentCard.tsx +174 -0
- manigent/web/frontend/src/components/hub/RemoteAgentSection.test.tsx +446 -0
- manigent/web/frontend/src/components/hub/RemoteAgentSection.tsx +219 -0
- manigent/web/frontend/src/components/hub/ReportDialog.test.tsx +96 -0
- manigent/web/frontend/src/components/hub/ReportDialog.tsx +162 -0
- manigent/web/frontend/src/components/hub/RetainButton.test.tsx +103 -0
- manigent/web/frontend/src/components/hub/RetainButton.tsx +114 -0
- manigent/web/frontend/src/components/hub/RetainDialog.test.tsx +68 -0
- manigent/web/frontend/src/components/hub/RetainDialog.tsx +115 -0
- manigent/web/frontend/src/components/hub/RetainedList.test.tsx +94 -0
- manigent/web/frontend/src/components/hub/RetainedList.tsx +32 -0
- manigent/web/frontend/src/components/hub/RetainedRow.tsx +129 -0
- manigent/web/frontend/src/components/hub/StandInChip.test.tsx +37 -0
- manigent/web/frontend/src/components/hub/StandInChip.tsx +43 -0
- manigent/web/frontend/src/components/hub/UnusualNameChip.test.tsx +81 -0
- manigent/web/frontend/src/components/hub/UnusualNameChip.tsx +22 -0
- manigent/web/frontend/src/components/hub/hubLint.test.ts +265 -0
- manigent/web/frontend/src/components/landing/ComparisonSection.tsx +92 -0
- manigent/web/frontend/src/components/landing/ConsoleSection.tsx +402 -0
- manigent/web/frontend/src/components/landing/CrewSection.tsx +224 -0
- manigent/web/frontend/src/components/landing/FAQ.tsx +68 -0
- manigent/web/frontend/src/components/landing/Footer.tsx +58 -0
- manigent/web/frontend/src/components/landing/HowItWorks.tsx +117 -0
- manigent/web/frontend/src/components/landing/KnowledgeSection.tsx +91 -0
- manigent/web/frontend/src/components/landing/LandingPage.test.tsx +134 -0
- manigent/web/frontend/src/components/landing/LearningSection.tsx +486 -0
- manigent/web/frontend/src/components/landing/Nav.tsx +68 -0
- manigent/web/frontend/src/components/landing/Pricing.tsx +263 -0
- manigent/web/frontend/src/components/landing/Section.tsx +98 -0
- manigent/web/frontend/src/components/landing/StaffingSection.tsx +122 -0
- manigent/web/frontend/src/components/landing/WhyNowSection.tsx +92 -0
- manigent/web/frontend/src/components/landing/WhyTeamSection.tsx +73 -0
- manigent/web/frontend/src/components/landing/earlyAccess.ts +23 -0
- manigent/web/frontend/src/components/layout/AppLayout.tsx +77 -0
- manigent/web/frontend/src/components/layout/Sidebar.tsx +172 -0
- manigent/web/frontend/src/components/layout/index.ts +2 -0
- manigent/web/frontend/src/components/project/ActivityFeed.tsx +247 -0
- manigent/web/frontend/src/components/project/CreateProjectPage.tsx +543 -0
- manigent/web/frontend/src/components/project/DeleteProjectButton.tsx +39 -0
- manigent/web/frontend/src/components/project/ProjectPlanTab.phase.test.tsx +107 -0
- manigent/web/frontend/src/components/project/ProjectPlanTab.test.tsx +994 -0
- manigent/web/frontend/src/components/project/ProjectPlanTab.tsx +166 -0
- manigent/web/frontend/src/components/project/ProjectReportTab.tsx +139 -0
- manigent/web/frontend/src/components/project/ProjectView.tsx +390 -0
- manigent/web/frontend/src/components/project/index.ts +2 -0
- manigent/web/frontend/src/components/project/plan/PlanAcceptance.test.tsx +460 -0
- manigent/web/frontend/src/components/project/plan/PlanAcceptance.tsx +111 -0
- manigent/web/frontend/src/components/project/plan/PlanBlockEdit.tsx +111 -0
- manigent/web/frontend/src/components/project/plan/PlanBlockEditing.test.tsx +1132 -0
- manigent/web/frontend/src/components/project/plan/PlanBody.test.tsx +495 -0
- manigent/web/frontend/src/components/project/plan/PlanBody.tsx +992 -0
- manigent/web/frontend/src/components/project/plan/PlanCollide.tsx +254 -0
- manigent/web/frontend/src/components/project/plan/PlanCommentList.test.tsx +420 -0
- manigent/web/frontend/src/components/project/plan/PlanCommentList.tsx +391 -0
- manigent/web/frontend/src/components/project/plan/PlanDecisionNudge.test.tsx +226 -0
- manigent/web/frontend/src/components/project/plan/PlanDecisionNudge.tsx +128 -0
- manigent/web/frontend/src/components/project/plan/PlanDestructiveAccept.test.tsx +209 -0
- manigent/web/frontend/src/components/project/plan/PlanDiff.test.tsx +126 -0
- manigent/web/frontend/src/components/project/plan/PlanDiff.tsx +131 -0
- manigent/web/frontend/src/components/project/plan/PlanDiffSeries.test.tsx +500 -0
- manigent/web/frontend/src/components/project/plan/PlanDiffSeries.tsx +125 -0
- manigent/web/frontend/src/components/project/plan/PlanEditor.mounts.test.tsx +504 -0
- manigent/web/frontend/src/components/project/plan/PlanEditor.tsx +2159 -0
- manigent/web/frontend/src/components/project/plan/PlanHistory.tsx +69 -0
- manigent/web/frontend/src/components/project/plan/PlanInlineNotes.test.tsx +2398 -0
- manigent/web/frontend/src/components/project/plan/PlanNoteBase.test.tsx +215 -0
- manigent/web/frontend/src/components/project/plan/PlanNoteRow.test.tsx +562 -0
- manigent/web/frontend/src/components/project/plan/PlanNoteRow.tsx +908 -0
- manigent/web/frontend/src/components/project/plan/PlanQuotePop.tsx +254 -0
- manigent/web/frontend/src/components/project/plan/PlanStaleReconcile.test.tsx +244 -0
- manigent/web/frontend/src/components/project/plan/PlanSubmitWindow.test.tsx +281 -0
- manigent/web/frontend/src/components/project/plan/PlanTray.tsx +184 -0
- manigent/web/frontend/src/components/project/plan/PlanTrayMirror.test.tsx +242 -0
- manigent/web/frontend/src/components/project/plan/plan.css +1151 -0
- manigent/web/frontend/src/components/project/plan/planAnchor.test.tsx +459 -0
- manigent/web/frontend/src/components/project/plan/planAnchor.tsx +277 -0
- manigent/web/frontend/src/components/project/plan/planBlocks.test.tsx +470 -0
- manigent/web/frontend/src/components/project/plan/planBlocks.ts +242 -0
- manigent/web/frontend/src/components/project/plan/planContrast.test.ts +229 -0
- manigent/web/frontend/src/components/project/plan/planDiffs.test.ts +455 -0
- manigent/web/frontend/src/components/project/plan/planDiffs.ts +358 -0
- manigent/web/frontend/src/components/project/plan/planTestServer.ts +741 -0
- manigent/web/frontend/src/components/project/plan/planTransport.test.ts +160 -0
- manigent/web/frontend/src/components/project/plan/planTrayLogic.test.ts +1201 -0
- manigent/web/frontend/src/components/project/plan/planTrayLogic.ts +1164 -0
- manigent/web/frontend/src/components/publicAgents/PublicAgentsAccount.tsx +162 -0
- manigent/web/frontend/src/components/publicAgents/api.ts +55 -0
- manigent/web/frontend/src/components/publicAgents/parts.tsx +54 -0
- manigent/web/frontend/src/components/publicAgents/publicAgents.css +53 -0
- manigent/web/frontend/src/components/publicAgents/publicAgents.test.tsx +86 -0
- manigent/web/frontend/src/components/publicAgents/widget.test.ts +148 -0
- manigent/web/frontend/src/components/publicAgents/widget.ts +40 -0
- manigent/web/frontend/src/components/publicRequests/AgentDrawer.tsx +101 -0
- manigent/web/frontend/src/components/publicRequests/AgentPanel.tsx +173 -0
- manigent/web/frontend/src/components/publicRequests/AgentRankList.tsx +61 -0
- manigent/web/frontend/src/components/publicRequests/MatchRetainButton.tsx +67 -0
- manigent/web/frontend/src/components/publicRequests/ProgressBoard.tsx +74 -0
- manigent/web/frontend/src/components/publicRequests/PublicRequestsPage.tsx +57 -0
- manigent/web/frontend/src/components/publicRequests/RequestHome.tsx +99 -0
- manigent/web/frontend/src/components/publicRequests/RequestRoom.tsx +126 -0
- manigent/web/frontend/src/components/publicRequests/agentView.ts +65 -0
- manigent/web/frontend/src/components/publicRequests/publicRequests.css +209 -0
- manigent/web/frontend/src/components/publicRequests/publicRequests.test.tsx +172 -0
- manigent/web/frontend/src/components/publicRequests/requestCopy.ts +121 -0
- manigent/web/frontend/src/components/sample-request/SampleIdeaList.test.tsx +190 -0
- manigent/web/frontend/src/components/sample-request/SampleIdeaList.tsx +180 -0
- manigent/web/frontend/src/components/sample-request/SampleRequestBody.tsx +276 -0
- manigent/web/frontend/src/components/sample-request/assistantStarterSamples.ts +62 -0
- manigent/web/frontend/src/components/sample-request/sampleIdeaList.css +106 -0
- manigent/web/frontend/src/components/scheduled/CronPicker.tsx +80 -0
- manigent/web/frontend/src/components/scheduled/ScheduleMessageModal.tsx +341 -0
- manigent/web/frontend/src/components/scheduled/ScheduledMessagesList.tsx +157 -0
- manigent/web/frontend/src/components/settings/AgentSettingsPage.tsx +366 -0
- manigent/web/frontend/src/components/settings/ConnectedAccounts.tsx +277 -0
- manigent/web/frontend/src/components/settings/DefaultModelSection.test.tsx +96 -0
- manigent/web/frontend/src/components/settings/DefaultModelSection.tsx +212 -0
- manigent/web/frontend/src/components/settings/DisconnectConfirmModal.tsx +93 -0
- manigent/web/frontend/src/components/settings/FrontDeskSettingsPage.isolation.test.tsx +66 -0
- manigent/web/frontend/src/components/settings/FrontDeskSettingsPage.tsx +134 -0
- manigent/web/frontend/src/components/settings/InvitableAgentsPicker.tsx +182 -0
- manigent/web/frontend/src/components/settings/KnowledgePacksSection.tsx +867 -0
- manigent/web/frontend/src/components/settings/ModelConfigDialog.catalogDriven.test.tsx +79 -0
- manigent/web/frontend/src/components/settings/ModelConfigDialog.tsx +343 -0
- manigent/web/frontend/src/components/settings/ModelConfigSection.smartRouting.test.tsx +109 -0
- manigent/web/frontend/src/components/settings/ModelConfigSection.tsx +599 -0
- manigent/web/frontend/src/components/settings/ReflectionScheduleSection.tsx +170 -0
- manigent/web/frontend/src/components/settings/UserSettingsPage.tsx +168 -0
- manigent/web/frontend/src/components/settings/agent/AgentStatusStrip.tsx +71 -0
- manigent/web/frontend/src/components/settings/agent/BlockedDeploymentsCard.test.tsx +81 -0
- manigent/web/frontend/src/components/settings/agent/BlockedDeploymentsCard.tsx +62 -0
- manigent/web/frontend/src/components/settings/agent/ChannelIsolationLine.tsx +21 -0
- manigent/web/frontend/src/components/settings/agent/ChannelsSection.test.tsx +879 -0
- manigent/web/frontend/src/components/settings/agent/ChannelsSection.tsx +1124 -0
- manigent/web/frontend/src/components/settings/agent/EnvVarsCard.test.ts +15 -0
- manigent/web/frontend/src/components/settings/agent/EnvVarsCard.tsx +301 -0
- manigent/web/frontend/src/components/settings/agent/ExtraDirsList.tsx +85 -0
- manigent/web/frontend/src/components/settings/agent/GeneralSection.tsx +88 -0
- manigent/web/frontend/src/components/settings/agent/HostDisclaimerSlot.test.tsx +32 -0
- manigent/web/frontend/src/components/settings/agent/HostDisclaimerSlot.tsx +30 -0
- manigent/web/frontend/src/components/settings/agent/HubChannelCard.test.tsx +449 -0
- manigent/web/frontend/src/components/settings/agent/HubChannelCard.tsx +312 -0
- manigent/web/frontend/src/components/settings/agent/HubInvitableAgentsCard.test.tsx +83 -0
- manigent/web/frontend/src/components/settings/agent/HubInvitableAgentsCard.tsx +64 -0
- manigent/web/frontend/src/components/settings/agent/HubSendUsageCard.test.tsx +69 -0
- manigent/web/frontend/src/components/settings/agent/HubSendUsageCard.tsx +42 -0
- manigent/web/frontend/src/components/settings/agent/HubTurnOffDialog.tsx +88 -0
- manigent/web/frontend/src/components/settings/agent/IsolationRecheckButton.test.tsx +26 -0
- manigent/web/frontend/src/components/settings/agent/IsolationRecheckButton.tsx +68 -0
- manigent/web/frontend/src/components/settings/agent/KnowledgeSection.tsx +68 -0
- manigent/web/frontend/src/components/settings/agent/LineChannelCard.test.tsx +428 -0
- manigent/web/frontend/src/components/settings/agent/LineChannelCard.tsx +343 -0
- manigent/web/frontend/src/components/settings/agent/RuntimeSection.test.tsx +164 -0
- manigent/web/frontend/src/components/settings/agent/RuntimeSection.tsx +118 -0
- manigent/web/frontend/src/components/settings/agent/StorageSection.tsx +78 -0
- manigent/web/frontend/src/components/settings/agent/WebChatChannelCard.test.tsx +253 -0
- manigent/web/frontend/src/components/settings/agent/WebChatChannelCard.tsx +401 -0
- manigent/web/frontend/src/components/settings/agent/WhatsAppChannelCard.test.tsx +462 -0
- manigent/web/frontend/src/components/settings/agent/WhatsAppChannelCard.tsx +289 -0
- manigent/web/frontend/src/components/settings/agent/agentSettings.test.tsx +109 -0
- manigent/web/frontend/src/components/settings/agent/channelSetupGuides.test.tsx +162 -0
- manigent/web/frontend/src/components/settings/agent/channelSetupGuides.tsx +119 -0
- manigent/web/frontend/src/components/settings/agent/channelsShared.ts +83 -0
- manigent/web/frontend/src/components/settings/agent/fields.tsx +67 -0
- manigent/web/frontend/src/components/settings/agent/sections.ts +36 -0
- manigent/web/frontend/src/components/settings/agent/useAgentSettingsDraft.ts +129 -0
- manigent/web/frontend/src/components/settings/agent/useInstallSelection.ts +38 -0
- manigent/web/frontend/src/components/settings/primitives.tsx +98 -0
- manigent/web/frontend/src/components/shared/ExpandToggle.tsx +45 -0
- manigent/web/frontend/src/components/shared/MarkdownBody.tsx +218 -0
- manigent/web/frontend/src/components/shared/MarkdownBody.untrusted.test.tsx +97 -0
- manigent/web/frontend/src/components/shared/RenderBody.tsx +90 -0
- manigent/web/frontend/src/components/shared/rehypeHideComments.test.tsx +115 -0
- manigent/web/frontend/src/components/shared/rehypeHideComments.ts +124 -0
- manigent/web/frontend/src/components/sharing/AcceptSharePage.tsx +141 -0
- manigent/web/frontend/src/components/sharing/ShareLandingPage.tsx +89 -0
- manigent/web/frontend/src/components/sidebar/AccountChip.test.tsx +337 -0
- manigent/web/frontend/src/components/sidebar/AccountChip.tsx +407 -0
- manigent/web/frontend/src/components/sidebar/ActiveWorkDot.tsx +9 -0
- manigent/web/frontend/src/components/sidebar/AgentProfile.tsx +44 -0
- manigent/web/frontend/src/components/sidebar/AgentRow.tsx +71 -0
- manigent/web/frontend/src/components/sidebar/AgentsPanel.retained.test.tsx +105 -0
- manigent/web/frontend/src/components/sidebar/AgentsPanel.tsx +231 -0
- manigent/web/frontend/src/components/sidebar/AssistantHero.tsx +48 -0
- manigent/web/frontend/src/components/sidebar/ChatroomItem.tsx +48 -0
- manigent/web/frontend/src/components/sidebar/CommandPalette.channelThreads.test.tsx +76 -0
- manigent/web/frontend/src/components/sidebar/CommandPalette.reopen.test.tsx +206 -0
- manigent/web/frontend/src/components/sidebar/CommandPalette.test.tsx +725 -0
- manigent/web/frontend/src/components/sidebar/CommandPalette.tsx +774 -0
- manigent/web/frontend/src/components/sidebar/ComputersPanel.tsx +144 -0
- manigent/web/frontend/src/components/sidebar/DmIcon.tsx +46 -0
- manigent/web/frontend/src/components/sidebar/DmsPanel.tsx +226 -0
- manigent/web/frontend/src/components/sidebar/FrontDeskPanel.channels.test.tsx +582 -0
- manigent/web/frontend/src/components/sidebar/FrontDeskPanel.test.tsx +151 -0
- manigent/web/frontend/src/components/sidebar/FrontDeskPanel.tsx +454 -0
- manigent/web/frontend/src/components/sidebar/HotkeysHelp.tsx +101 -0
- manigent/web/frontend/src/components/sidebar/MessageHitRow.test.tsx +84 -0
- manigent/web/frontend/src/components/sidebar/MessageHitRow.tsx +57 -0
- manigent/web/frontend/src/components/sidebar/MyDeskRailPanel.crossHighlight.test.tsx +247 -0
- manigent/web/frontend/src/components/sidebar/MyDeskRailPanel.delete.test.tsx +273 -0
- manigent/web/frontend/src/components/sidebar/MyDeskRailPanel.tsx +351 -0
- manigent/web/frontend/src/components/sidebar/PanelShell.tsx +48 -0
- manigent/web/frontend/src/components/sidebar/ProjectItem.tsx +161 -0
- manigent/web/frontend/src/components/sidebar/ProjectRow.tsx +151 -0
- manigent/web/frontend/src/components/sidebar/ProjectsPanel.tsx +80 -0
- manigent/web/frontend/src/components/sidebar/PublicPanel.counterpart.test.tsx +85 -0
- manigent/web/frontend/src/components/sidebar/PublicPanel.hub.test.tsx +147 -0
- manigent/web/frontend/src/components/sidebar/PublicPanel.tsx +271 -0
- manigent/web/frontend/src/components/sidebar/RecencyHeader.tsx +17 -0
- manigent/web/frontend/src/components/sidebar/ScheduledPanel.tsx +58 -0
- manigent/web/frontend/src/components/sidebar/SidebarAvatar.tsx +128 -0
- manigent/web/frontend/src/components/sidebar/SidebarRail.tsx +163 -0
- manigent/web/frontend/src/components/sidebar/TeamGroup.tsx +67 -0
- manigent/web/frontend/src/components/sidebar/dmPrefill.test.ts +69 -0
- manigent/web/frontend/src/components/sidebar/dmPrefill.ts +80 -0
- manigent/web/frontend/src/components/sidebar/index.ts +18 -0
- manigent/web/frontend/src/components/sidebar/railShortcuts.ts +18 -0
- manigent/web/frontend/src/components/today/lib.test.ts +70 -0
- manigent/web/frontend/src/components/today/lib.ts +296 -0
- manigent/web/frontend/src/components/today/today.css +113 -0
- manigent/web/frontend/src/components/welcome/RunnerSetup.css +253 -0
- manigent/web/frontend/src/components/welcome/RunnerSetup.tsx +148 -0
- manigent/web/frontend/src/components/welcome/WelcomePage.css +383 -0
- manigent/web/frontend/src/components/welcome/WelcomePage.tsx +329 -0
- manigent/web/frontend/src/components/welcome/welcomeCopy.test.ts +382 -0
- manigent/web/frontend/src/components/welcome/welcomeCopy.ts +313 -0
- manigent/web/frontend/src/config/llmProviders.test.ts +161 -0
- manigent/web/frontend/src/config/llmProviders.ts +109 -0
- manigent/web/frontend/src/config/providerIds.fixture.json +13 -0
- manigent/web/frontend/src/hooks/accountNavigation.test.tsx +138 -0
- manigent/web/frontend/src/hooks/index.ts +10 -0
- manigent/web/frontend/src/hooks/useActiveWorkBootstrap.ts +86 -0
- manigent/web/frontend/src/hooks/useAgentAccess.test.tsx +30 -0
- manigent/web/frontend/src/hooks/useAgentAccess.ts +204 -0
- manigent/web/frontend/src/hooks/useAgentSampleRequests.ts +27 -0
- manigent/web/frontend/src/hooks/useAgentSearch.ts +10 -0
- manigent/web/frontend/src/hooks/useAgents.ts +46 -0
- manigent/web/frontend/src/hooks/useAnnouncements.test.ts +112 -0
- manigent/web/frontend/src/hooks/useAnnouncements.ts +100 -0
- manigent/web/frontend/src/hooks/useAssistantAgent.ts +24 -0
- manigent/web/frontend/src/hooks/useAutoResizeTextarea.ts +18 -0
- manigent/web/frontend/src/hooks/useBridgeDeliveries.test.tsx +79 -0
- manigent/web/frontend/src/hooks/useBriefTabs.ts +122 -0
- manigent/web/frontend/src/hooks/useChannelThreads.ts +69 -0
- manigent/web/frontend/src/hooks/useComposeForm.ts +80 -0
- manigent/web/frontend/src/hooks/useComputers.ts +123 -0
- manigent/web/frontend/src/hooks/useContextFirstItem.ts +118 -0
- manigent/web/frontend/src/hooks/useCreateProject.ts +78 -0
- manigent/web/frontend/src/hooks/useDebouncedValue.ts +16 -0
- manigent/web/frontend/src/hooks/useDeleteProject.ts +27 -0
- manigent/web/frontend/src/hooks/useDeskDispatch.test.tsx +170 -0
- manigent/web/frontend/src/hooks/useDeskDispatch.ts +135 -0
- manigent/web/frontend/src/hooks/useDeskReadState.test.tsx +85 -0
- manigent/web/frontend/src/hooks/useDeskReadState.ts +150 -0
- manigent/web/frontend/src/hooks/useDeskRecentlyDone.test.tsx +222 -0
- manigent/web/frontend/src/hooks/useDeskRecentlyDone.ts +225 -0
- manigent/web/frontend/src/hooks/useDeskTour.ts +37 -0
- manigent/web/frontend/src/hooks/useDeskUpdates.channelThreads.test.tsx +91 -0
- manigent/web/frontend/src/hooks/useDeskUpdates.hubThreads.test.tsx +93 -0
- manigent/web/frontend/src/hooks/useDeskUpdates.ts +353 -0
- manigent/web/frontend/src/hooks/useDisconnectIntegration.ts +23 -0
- manigent/web/frontend/src/hooks/useDmThreads.ts +99 -0
- manigent/web/frontend/src/hooks/useFileDropzone.ts +93 -0
- manigent/web/frontend/src/hooks/useFileUpload.ts +38 -0
- manigent/web/frontend/src/hooks/useFiles.ts +98 -0
- manigent/web/frontend/src/hooks/useHub.test.tsx +237 -0
- manigent/web/frontend/src/hooks/useHub.ts +502 -0
- manigent/web/frontend/src/hooks/useInstall.ts +82 -0
- manigent/web/frontend/src/hooks/useLabels.test.tsx +294 -0
- manigent/web/frontend/src/hooks/useLabels.ts +287 -0
- manigent/web/frontend/src/hooks/useLogout.ts +49 -0
- manigent/web/frontend/src/hooks/useMentionDetection.ts +90 -0
- manigent/web/frontend/src/hooks/useMessageAttachments.deskLimit.test.ts +264 -0
- manigent/web/frontend/src/hooks/useMessageAttachments.ts +283 -0
- manigent/web/frontend/src/hooks/useMessageDeepLink.test.tsx +70 -0
- manigent/web/frontend/src/hooks/useMessageDeepLink.ts +32 -0
- manigent/web/frontend/src/hooks/useMessageSearch.ts +78 -0
- manigent/web/frontend/src/hooks/useModelConfigs.ts +178 -0
- manigent/web/frontend/src/hooks/useMyAgents.ts +18 -0
- manigent/web/frontend/src/hooks/usePointerReorder.ts +270 -0
- manigent/web/frontend/src/hooks/usePrefersReducedMotion.ts +18 -0
- manigent/web/frontend/src/hooks/useProjectPlan.ts +36 -0
- manigent/web/frontend/src/hooks/useProjectReport.ts +19 -0
- manigent/web/frontend/src/hooks/useProjects.ts +104 -0
- manigent/web/frontend/src/hooks/useProjectsWithChatrooms.ts +97 -0
- manigent/web/frontend/src/hooks/usePublicRequests.ts +89 -0
- manigent/web/frontend/src/hooks/useRecentAgents.ts +38 -0
- manigent/web/frontend/src/hooks/useRenameProject.test.tsx +185 -0
- manigent/web/frontend/src/hooks/useRenameProject.ts +192 -0
- manigent/web/frontend/src/hooks/useRoomTrust.ts +56 -0
- manigent/web/frontend/src/hooks/useSharing.ts +46 -0
- manigent/web/frontend/src/hooks/useSopRecents.ts +55 -0
- manigent/web/frontend/src/hooks/useSopSchedules.ts +25 -0
- manigent/web/frontend/src/hooks/useSops.ts +99 -0
- manigent/web/frontend/src/hooks/useSwitchAccount.ts +41 -0
- manigent/web/frontend/src/hooks/useTeamGroups.ts +48 -0
- manigent/web/frontend/src/hooks/useThreadOutbox.ts +68 -0
- manigent/web/frontend/src/hooks/useTodos.add.test.tsx +89 -0
- manigent/web/frontend/src/hooks/useTodos.linkProject.test.tsx +115 -0
- manigent/web/frontend/src/hooks/useTodos.saveDraft.test.tsx +188 -0
- manigent/web/frontend/src/hooks/useTodos.ts +396 -0
- manigent/web/frontend/src/hooks/useUntrustedBodies.test.tsx +87 -0
- manigent/web/frontend/src/hooks/useUntrustedBodies.ts +51 -0
- manigent/web/frontend/src/hooks/useWebSocket.briefTab.test.tsx +148 -0
- manigent/web/frontend/src/hooks/useWebSocket.channelThreads.test.tsx +82 -0
- manigent/web/frontend/src/hooks/useWebSocket.hostSync.test.tsx +92 -0
- manigent/web/frontend/src/hooks/useWebSocket.hub.test.tsx +114 -0
- manigent/web/frontend/src/hooks/useWebSocket.labelSync.test.tsx +168 -0
- manigent/web/frontend/src/hooks/useWebSocket.plan.test.tsx +168 -0
- manigent/web/frontend/src/hooks/useWebSocket.reconnect.test.tsx +166 -0
- manigent/web/frontend/src/hooks/useWebSocket.runnerVersions.test.tsx +167 -0
- manigent/web/frontend/src/hooks/useWebSocket.ts +495 -0
- manigent/web/frontend/src/hooks/useWindowFileDropGuard.ts +33 -0
- manigent/web/frontend/src/landing.tsx +11 -0
- manigent/web/frontend/src/main.tsx +17 -0
- manigent/web/frontend/src/private-beta.tsx +10 -0
- manigent/web/frontend/src/public.tsx +42 -0
- manigent/web/frontend/src/queryClient.ts +16 -0
- manigent/web/frontend/src/stores/activeWorkStore.ts +88 -0
- manigent/web/frontend/src/stores/announcementStore.test.ts +217 -0
- manigent/web/frontend/src/stores/announcementStore.ts +169 -0
- manigent/web/frontend/src/stores/authStore.multiSession.test.ts +304 -0
- manigent/web/frontend/src/stores/authStore.test.ts +235 -0
- manigent/web/frontend/src/stores/authStore.ts +693 -0
- manigent/web/frontend/src/stores/deskLabelViewStore.test.ts +162 -0
- manigent/web/frontend/src/stores/deskLabelViewStore.ts +234 -0
- manigent/web/frontend/src/stores/deskLinkStore.ts +54 -0
- manigent/web/frontend/src/stores/deskStore.test.ts +53 -0
- manigent/web/frontend/src/stores/deskStore.ts +93 -0
- manigent/web/frontend/src/stores/heldPostsStore.ts +78 -0
- manigent/web/frontend/src/stores/mcpAuthStore.ts +52 -0
- manigent/web/frontend/src/stores/modelSelectionStore.ts +33 -0
- manigent/web/frontend/src/stores/perUserStores.ts +79 -0
- manigent/web/frontend/src/stores/runnerVersionStore.test.ts +81 -0
- manigent/web/frontend/src/stores/runnerVersionStore.ts +60 -0
- manigent/web/frontend/src/stores/skillAuthStore.ts +54 -0
- manigent/web/frontend/src/stores/switchReset.test.ts +236 -0
- manigent/web/frontend/src/stores/tokenExp.ts +32 -0
- manigent/web/frontend/src/stores/uiStore.ts +186 -0
- manigent/web/frontend/src/stores/unreadStore.ts +204 -0
- manigent/web/frontend/src/stores/unsavedGuard.ts +22 -0
- manigent/web/frontend/src/styles/design/fonts/JetBrainsMono-Latin.woff2 +0 -0
- manigent/web/frontend/src/styles/design/fonts/Nunito-Latin.woff2 +0 -0
- manigent/web/frontend/src/styles/design/fonts/Nunito-LatinExt.woff2 +0 -0
- manigent/web/frontend/src/styles/design/tokens.css +160 -0
- manigent/web/frontend/src/styles/homepage.css +242 -0
- manigent/web/frontend/src/styles/index.css +126 -0
- manigent/web/frontend/src/styles/landing.css +52 -0
- manigent/web/frontend/src/test/authFixtures.ts +154 -0
- manigent/web/frontend/src/test/fetchHarness.ts +203 -0
- manigent/web/frontend/src/test/fixtures/channelThreads.smoke.json +42 -0
- manigent/web/frontend/src/test/hubFixtures.ts +212 -0
- manigent/web/frontend/src/test/queryWrapper.tsx +9 -0
- manigent/web/frontend/src/test/suiteHygiene.test.ts +212 -0
- manigent/web/frontend/src/types/channelThreadName.test.ts +16 -0
- manigent/web/frontend/src/types/index.ts +903 -0
- manigent/web/frontend/src/utils/agentAccessCopy.test.ts +53 -0
- manigent/web/frontend/src/utils/agentAccessCopy.ts +231 -0
- manigent/web/frontend/src/utils/agentDisplay.ts +81 -0
- manigent/web/frontend/src/utils/briefSchedule.ts +25 -0
- manigent/web/frontend/src/utils/channelThreads.test.ts +109 -0
- manigent/web/frontend/src/utils/channelThreads.ts +179 -0
- manigent/web/frontend/src/utils/chatroomDisplay.ts +11 -0
- manigent/web/frontend/src/utils/deskLinks.test.ts +155 -0
- manigent/web/frontend/src/utils/deskLinks.ts +115 -0
- manigent/web/frontend/src/utils/deskRecipient.ts +29 -0
- manigent/web/frontend/src/utils/formatDate.ts +102 -0
- manigent/web/frontend/src/utils/frontDesk.ts +65 -0
- manigent/web/frontend/src/utils/hubChannelView.test.ts +178 -0
- manigent/web/frontend/src/utils/hubChannelView.ts +307 -0
- manigent/web/frontend/src/utils/hubDelivery.test.ts +105 -0
- manigent/web/frontend/src/utils/hubDelivery.ts +137 -0
- manigent/web/frontend/src/utils/hubDisplay.test.ts +157 -0
- manigent/web/frontend/src/utils/hubDisplay.ts +221 -0
- manigent/web/frontend/src/utils/hubThread.test.ts +184 -0
- manigent/web/frontend/src/utils/hubThread.ts +247 -0
- manigent/web/frontend/src/utils/labelErrors.test.ts +127 -0
- manigent/web/frontend/src/utils/labelErrors.ts +123 -0
- manigent/web/frontend/src/utils/labelView.test.ts +846 -0
- manigent/web/frontend/src/utils/labelView.ts +760 -0
- manigent/web/frontend/src/utils/legalUrls.ts +11 -0
- manigent/web/frontend/src/utils/messageSender.test.ts +32 -0
- manigent/web/frontend/src/utils/messageSender.ts +29 -0
- manigent/web/frontend/src/utils/oauthScopeCopy.ts +73 -0
- manigent/web/frontend/src/utils/personalize.ts +49 -0
- manigent/web/frontend/src/utils/reachableAgents.test.ts +36 -0
- manigent/web/frontend/src/utils/reachableAgents.ts +24 -0
- manigent/web/frontend/src/utils/recencyBuckets.ts +61 -0
- manigent/web/frontend/src/utils/roomTrust.test.ts +94 -0
- manigent/web/frontend/src/utils/roomTrust.ts +111 -0
- manigent/web/frontend/src/utils/snippetHighlight.test.ts +63 -0
- manigent/web/frontend/src/utils/snippetHighlight.ts +42 -0
- manigent/web/frontend/src/utils/sopRecipient.ts +37 -0
- manigent/web/frontend/src/utils/sopRequest.test.ts +91 -0
- manigent/web/frontend/src/utils/sopRequest.ts +68 -0
- manigent/web/frontend/src/utils/sopSchedule.ts +26 -0
- manigent/web/frontend/src/utils/sopSection.test.ts +148 -0
- manigent/web/frontend/src/utils/sopSection.ts +143 -0
- manigent/web/frontend/src/utils/textSearch.test.ts +60 -0
- manigent/web/frontend/src/utils/textSearch.ts +43 -0
- manigent/web/frontend/src/utils/thoughtPartner.ts +26 -0
- manigent/web/frontend/src/utils/threadName.test.ts +131 -0
- manigent/web/frontend/src/utils/threadName.ts +122 -0
- manigent/web/frontend/src/utils/ticketView.test.ts +296 -0
- manigent/web/frontend/src/utils/ticketView.ts +175 -0
- manigent/web/frontend/src/utils/todoAttachments.desiredState.test.ts +180 -0
- manigent/web/frontend/src/utils/todoAttachments.ts +126 -0
- manigent/web/frontend/src/utils/todoDraft.test.ts +84 -0
- manigent/web/frontend/src/utils/todoDraft.ts +46 -0
- manigent/web/frontend/src/utils/todoSearch.test.ts +82 -0
- manigent/web/frontend/src/utils/todoSearch.ts +43 -0
- manigent/web/frontend/src/utils/versionMatch.test.ts +295 -0
- manigent/web/frontend/src/utils/versionMatch.ts +245 -0
- manigent/web/frontend/src/vite-env.d.ts +1 -0
- manigent/web/frontend/tailwind.config.js +86 -0
- manigent/web/frontend/tos.html +188 -0
- manigent/web/frontend/tsconfig.dts.json +25 -0
- manigent/web/frontend/tsconfig.json +26 -0
- manigent/web/frontend/tsconfig.node.json +11 -0
- manigent/web/frontend/vite.config.ts +41 -0
- manigent/web/frontend/vitest.config.ts +16 -0
- manigent/ws_edge/app.py +514 -0
- manigent/ws_edge/auth.py +104 -0
- manigent/ws_edge/link.py +282 -0
- manigent/ws_edge/registry.py +206 -0
- manigent/ws_edge/terminal_relay.py +269 -0
- manigent_server-0.1.0.dist-info/METADATA +138 -0
- manigent_server-0.1.0.dist-info/RECORD +1004 -0
- manigent_server-0.1.0.dist-info/WHEEL +4 -0
- manigent_server-0.1.0.dist-info/entry_points.txt +2 -0
- manigent_server-0.1.0.dist-info/licenses/LICENSE +68 -0
|
@@ -0,0 +1,778 @@
|
|
|
1
|
+
# SPDX-License-Identifier: BUSL-1.1
|
|
2
|
+
"""
|
|
3
|
+
manigent/server/hub/browser.py
|
|
4
|
+
The browser contract of the hub (design section 5): every request and
|
|
5
|
+
response body of ``/api/hub/*`` and ``/me/channels/hub/*``, the two WebSocket
|
|
6
|
+
events, and the error codes. The frontend builds against this file, so a field
|
|
7
|
+
added, renamed or retyped here is a contract change:
|
|
8
|
+
``tests/server/test_hub_browser_contract.py`` pins every model's fields to
|
|
9
|
+
``tests/server/hub_contract_snapshot.json``.
|
|
10
|
+
|
|
11
|
+
Three rules from section 5 that every model here follows:
|
|
12
|
+
|
|
13
|
+
- **Timestamps** on hub objects are ``EpochSeconds``: a float of seconds since
|
|
14
|
+
the epoch (UTC), never an ISO string. The frontend converts with one helper.
|
|
15
|
+
- **Fingerprints** named ``deployment_fingerprint`` are always the GENESIS
|
|
16
|
+
fingerprint, so a key rotation changes none of them. ``current_fingerprint``
|
|
17
|
+
is a label only, and is left out of the JSON when the deployment never
|
|
18
|
+
rotated (``_AbsentWhenNone``), not sent as null.
|
|
19
|
+
- **Masking**: no field is a secret, a private key, a seed or a signature. The
|
|
20
|
+
only key material shown is ``key_last4``, the fingerprint's tail.
|
|
21
|
+
|
|
22
|
+
Every error body is ``{"detail": {"code", "message", ...extra}}`` (``HubError``).
|
|
23
|
+
"""
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
from typing import Annotated, Any, ClassVar, Literal, Optional
|
|
27
|
+
|
|
28
|
+
from pydantic import BaseModel, ConfigDict, Field, model_serializer
|
|
29
|
+
|
|
30
|
+
from manigent.hub_protocol.constants import MAX_NOTE_CHARS, MAX_SEARCH_LIMIT
|
|
31
|
+
from manigent.models.chatroom import ParticipantHub, ParticipantInfo, RoomFlow
|
|
32
|
+
|
|
33
|
+
#: Seconds since the epoch, UTC, possibly fractional. The JSON schema carries
|
|
34
|
+
#: ``format: epoch-seconds`` so the snapshot pins which fields are timestamps.
|
|
35
|
+
EpochSeconds = Annotated[float, Field(ge=0, json_schema_extra={"format": "epoch-seconds"})]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class _Model(BaseModel):
|
|
39
|
+
model_config = ConfigDict(extra="forbid")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class _AbsentWhenNone(_Model):
|
|
43
|
+
"""A model whose ``ABSENT_WHEN_NONE`` fields are left out of the JSON when
|
|
44
|
+
they are None ("optional, absent when the deployment never rotated"),
|
|
45
|
+
while every other None is sent as null."""
|
|
46
|
+
|
|
47
|
+
ABSENT_WHEN_NONE: ClassVar[frozenset[str]] = frozenset({"current_fingerprint"})
|
|
48
|
+
|
|
49
|
+
@model_serializer(mode="wrap")
|
|
50
|
+
def _drop_absent(self, handler: Any) -> dict[str, Any]:
|
|
51
|
+
data = handler(self)
|
|
52
|
+
for name in self.ABSENT_WHEN_NONE:
|
|
53
|
+
if data.get(name, ...) is None:
|
|
54
|
+
del data[name]
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# ── vocabularies ──────────────────────────────────────────────────────────
|
|
59
|
+
|
|
60
|
+
HubMode = Literal["off", "auto", "discover_only", "full"]
|
|
61
|
+
#: ``held_for_reclaim`` is shown as ``none``; the frontend treats an unknown value like none.
|
|
62
|
+
RegistrationState = Literal["none", "pending_email", "active", "suspended"]
|
|
63
|
+
HubLinkState = Literal["connected", "unreachable", "untrusted", "off"]
|
|
64
|
+
HubChannelStatus = Literal[
|
|
65
|
+
"off", "enabling", "connected", "hub_unreachable", "key_revoked", "key_rotation_pending",
|
|
66
|
+
"hub_cannot_reach_deployment", "rejected", "hub_off_on_server", "agent_not_public",
|
|
67
|
+
"hub_untrusted", "hub_not_registered",
|
|
68
|
+
]
|
|
69
|
+
RejectReason = Literal[
|
|
70
|
+
"name_conflict", "deployment_suspended", "over_quota", "client_too_old", "invalid_name",
|
|
71
|
+
"invalid_listing", "delisted_by_hub", "owner_unverified", "owner_banned",
|
|
72
|
+
]
|
|
73
|
+
DeliveryState = Literal["sent_to_hub", "waiting_for_target", "delivered", "failed"]
|
|
74
|
+
WaitingReason = Literal["agent_offline", "deployment_offline", "hub_unreachable", "isolation_unavailable"]
|
|
75
|
+
FailedReason = Literal[
|
|
76
|
+
"expired_72h", "held_expired", "blocked_by_target", "agent_unlisted", "key_revoked",
|
|
77
|
+
"too_large", "rejected_by_hub", "retries_exhausted", "sender_untrusted", "not_accepting",
|
|
78
|
+
]
|
|
79
|
+
#: Only with ``not_accepting``. An open vocabulary: an unknown value falls to
|
|
80
|
+
#: the generic line in the browser, so the type is a string, not a Literal.
|
|
81
|
+
NOT_ACCEPTING_DETAILS = ("channel_off", "browse_only", "daily_cap", "requests_full")
|
|
82
|
+
ClosedReason = Literal[
|
|
83
|
+
"agent_unlisted", "key_revoked", "deployment_suspended", "conversation_closed",
|
|
84
|
+
"hub_off_on_server", "identity_changed",
|
|
85
|
+
]
|
|
86
|
+
SendWarning = Literal["agent_offline", "deployment_offline"]
|
|
87
|
+
ReportReason = Literal["impersonation", "spam", "harmful", "other"]
|
|
88
|
+
ServedFrom = Literal["live", "cache"]
|
|
89
|
+
PayloadLimit = Literal["file", "files", "envelope", "text"]
|
|
90
|
+
|
|
91
|
+
#: The daily run cap of an agent's Hub channel. Read-only in v1: section 5
|
|
92
|
+
#: has no route to edit it (a recorded deviation).
|
|
93
|
+
DAILY_RUN_CAP = 200
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# ── config ────────────────────────────────────────────────────────────────
|
|
97
|
+
|
|
98
|
+
class HubConfigOut(_Model):
|
|
99
|
+
"""GET /api/hub/config. Read-only: never a hub-state error."""
|
|
100
|
+
|
|
101
|
+
mode: HubMode
|
|
102
|
+
hub_url: str
|
|
103
|
+
hub_url_is_default: bool
|
|
104
|
+
deployment_id: Optional[str]
|
|
105
|
+
deployment_connected: bool
|
|
106
|
+
last_connected_at: Optional[EpochSeconds]
|
|
107
|
+
protocol_version: int
|
|
108
|
+
deployment_fingerprint: Optional[str] # genesis
|
|
109
|
+
deployment_name: Optional[str]
|
|
110
|
+
registration: RegistrationState
|
|
111
|
+
hub_link: HubLinkState
|
|
112
|
+
channels_enabled: bool
|
|
113
|
+
sender_label: str
|
|
114
|
+
max_file_bytes: int
|
|
115
|
+
max_files: int
|
|
116
|
+
max_envelope_bytes: int
|
|
117
|
+
max_text_bytes: int
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# ── an agent's Hub channel (owner) ────────────────────────────────────────
|
|
121
|
+
|
|
122
|
+
class HubChannel(_Model):
|
|
123
|
+
"""GET /me/channels/hub/{agent_full_name}; also the enable and disable
|
|
124
|
+
answers and the hub_channel_status payload."""
|
|
125
|
+
|
|
126
|
+
enabled: bool
|
|
127
|
+
status: HubChannelStatus
|
|
128
|
+
status_detail: Optional[str] # the hub's words, shown as text
|
|
129
|
+
reject_reason: Optional[RejectReason]
|
|
130
|
+
eligible: bool
|
|
131
|
+
ineligible_reason: Optional[str]
|
|
132
|
+
listed_as: Optional[str] # name@deployment_name
|
|
133
|
+
key_last4: Optional[str]
|
|
134
|
+
rotate_by: Optional[EpochSeconds] # renewal failed: the cert expires then
|
|
135
|
+
last_success_at: Optional[EpochSeconds]
|
|
136
|
+
next_retry_at: Optional[EpochSeconds]
|
|
137
|
+
hub_url: str
|
|
138
|
+
hub_url_is_default: bool
|
|
139
|
+
open_conversations: int
|
|
140
|
+
in_flight_messages: int
|
|
141
|
+
daily_run_cap: int
|
|
142
|
+
runs_today: int
|
|
143
|
+
runs_reset_at: EpochSeconds # the server's next local midnight
|
|
144
|
+
isolation: Literal["sandboxed", "unavailable"] = "unavailable" # the agent's CURRENT runners
|
|
145
|
+
held_conversations: int = 0 # waiting for a capable runner
|
|
146
|
+
# People on THIS server with a conversation with the agent: turning the
|
|
147
|
+
# switch off (which makes the agent private) stops their replies.
|
|
148
|
+
local_conversations: int = 0
|
|
149
|
+
owner_isolated: bool = False # turning off ends it too
|
|
150
|
+
# The agent is public. Off and public is an agent shared on this server
|
|
151
|
+
# before the switch became the one sharing control: the card offers
|
|
152
|
+
# Make private.
|
|
153
|
+
public: bool = False
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# ── enrollment: this server on the hub, and the user as an agent owner ────
|
|
157
|
+
|
|
158
|
+
#: ``none``: not on the hub yet (starting registers it; one code does both).
|
|
159
|
+
#: ``pending``: the registration waits for its emailed code. ``operator_only``:
|
|
160
|
+
#: only the operator may register it, or it needs the operator (suspended,
|
|
161
|
+
#: held for reclaim). ``off``: MANIGENT_HUB_MODE=off.
|
|
162
|
+
EnrollServerState = Literal["none", "pending", "active", "operator_only", "off"]
|
|
163
|
+
EnrollOwnerState = Literal["none", "code_sent", "verified"]
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
class HubEnrollment(_Model):
|
|
167
|
+
"""GET / POST /me/channels/hub/enrollment and POST …/confirm
|
|
168
|
+
(server/hub/enroll.py)."""
|
|
169
|
+
|
|
170
|
+
server: EnrollServerState
|
|
171
|
+
owner: EnrollOwnerState
|
|
172
|
+
email_masked: Optional[str] # the user's own address, masked: where the code goes
|
|
173
|
+
becomes_contact: bool # server none: you become this server's hub contact
|
|
174
|
+
contact_is_you: bool
|
|
175
|
+
tos_version: str
|
|
176
|
+
tos_url: str
|
|
177
|
+
code_expires_at: Optional[EpochSeconds]
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
class EnrollRequest(_Model):
|
|
181
|
+
"""POST /me/channels/hub/enrollment: accepting the hub terms sends the code."""
|
|
182
|
+
|
|
183
|
+
accept_tos_version: Annotated[str, Field(min_length=1, max_length=40)]
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
class EnrollConfirm(_Model):
|
|
187
|
+
code: Annotated[str, Field(min_length=4, max_length=16)]
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class EnableRequest(_Model):
|
|
191
|
+
"""POST /me/channels/hub/{agent}/enable: idempotent per agent and request id."""
|
|
192
|
+
|
|
193
|
+
client_request_id: Annotated[str, Field(min_length=1, max_length=100)]
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
class DisableRequest(_Model):
|
|
197
|
+
"""POST /me/channels/hub/{agent}/disable. ``confirm`` must be true
|
|
198
|
+
(confirm_required otherwise). ``stop_now`` fails the remaining replies at
|
|
199
|
+
once instead of draining them for 10 minutes."""
|
|
200
|
+
|
|
201
|
+
confirm: bool = False
|
|
202
|
+
stop_now: bool = False
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class BlockRequest(_Model):
|
|
206
|
+
"""POST …/blocked_deployments. A current fingerprint is resolved to its genesis."""
|
|
207
|
+
|
|
208
|
+
deployment_fingerprint: str
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
class BlockedDeployment(_AbsentWhenNone):
|
|
212
|
+
deployment_fingerprint: str # genesis
|
|
213
|
+
current_fingerprint: Optional[str] = None
|
|
214
|
+
deployment_name: str
|
|
215
|
+
created_at: EpochSeconds
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
class BlockedList(_Model):
|
|
219
|
+
"""GET, POST and DELETE …/blocked_deployments all answer this."""
|
|
220
|
+
|
|
221
|
+
blocked: list[BlockedDeployment]
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
# ── the directory ─────────────────────────────────────────────────────────
|
|
225
|
+
|
|
226
|
+
class HubAgentSearch(_Model):
|
|
227
|
+
"""GET /api/hub/agents query parameters."""
|
|
228
|
+
|
|
229
|
+
q: Annotated[str, Field(max_length=200)] = ""
|
|
230
|
+
capabilities: list[str] = Field(default_factory=list)
|
|
231
|
+
online_only: bool = False
|
|
232
|
+
cursor: Optional[Annotated[str, Field(max_length=200)]] = None
|
|
233
|
+
limit: Annotated[int, Field(ge=1, le=MAX_SEARCH_LIMIT)] = 20
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class HubAgent(_AbsentWhenNone):
|
|
237
|
+
"""One agents[] item."""
|
|
238
|
+
|
|
239
|
+
hub_agent_id: str # {genesis fp16}~{agent_name}, opaque
|
|
240
|
+
name: str
|
|
241
|
+
deployment_name: str
|
|
242
|
+
deployment_label: str
|
|
243
|
+
deployment_fingerprint: str # genesis
|
|
244
|
+
current_fingerprint: Optional[str] = None
|
|
245
|
+
deployment_url: Optional[str] # null unless verified
|
|
246
|
+
deployment_url_verified: bool
|
|
247
|
+
first_contact: bool
|
|
248
|
+
description: str
|
|
249
|
+
capabilities: list[str]
|
|
250
|
+
avatar_url: Optional[str] # the proxy path, or null
|
|
251
|
+
agent_online: bool
|
|
252
|
+
deployment_connected: bool
|
|
253
|
+
accepting_messages: bool
|
|
254
|
+
needs_approval: bool
|
|
255
|
+
last_seen_at: Optional[EpochSeconds]
|
|
256
|
+
listed_at: EpochSeconds
|
|
257
|
+
listing_refreshed_at: EpochSeconds
|
|
258
|
+
listing_age_s: float
|
|
259
|
+
is_local: bool
|
|
260
|
+
retained: bool = False # the caller retained it (state active)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class HubAgentPage(_Model):
|
|
264
|
+
"""GET /api/hub/agents."""
|
|
265
|
+
|
|
266
|
+
agents: list[HubAgent]
|
|
267
|
+
next_cursor: Optional[str]
|
|
268
|
+
served_from: ServedFrom
|
|
269
|
+
cache_age_s: Optional[float] # null when live
|
|
270
|
+
cached_at: Optional[EpochSeconds]
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
class HubAgentDetail(HubAgent):
|
|
274
|
+
"""GET /api/hub/agents/{hub_agent_id}: one item plus listed."""
|
|
275
|
+
|
|
276
|
+
listed: bool
|
|
277
|
+
served_from: ServedFrom
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
class ReportRequest(_Model):
|
|
281
|
+
"""POST /api/hub/agents/{hub_agent_id}/report."""
|
|
282
|
+
|
|
283
|
+
reason: ReportReason
|
|
284
|
+
note: Optional[Annotated[str, Field(max_length=MAX_NOTE_CHARS)]] = None
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class ReportAccepted(_Model):
|
|
288
|
+
"""202 {}."""
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
# ── retained agents ───────────────────────────────────────────────────────
|
|
292
|
+
|
|
293
|
+
RetainState = Literal["active", "unlisted", "identity_changed"]
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
class RetainedAgent(_Model):
|
|
297
|
+
"""One retained remote agent: POST /api/hub/agents/{hub_agent_id}/retain
|
|
298
|
+
answers it, GET /api/hub/retained lists them. ``description`` and
|
|
299
|
+
``capabilities`` are the listing as it was when the user retained it."""
|
|
300
|
+
|
|
301
|
+
hub_agent_id: str
|
|
302
|
+
name: str
|
|
303
|
+
deployment_name: str
|
|
304
|
+
deployment_fingerprint: str # genesis
|
|
305
|
+
description: str
|
|
306
|
+
capabilities: list[str]
|
|
307
|
+
retained_at: EpochSeconds
|
|
308
|
+
state: RetainState
|
|
309
|
+
live_rooms: int # workrooms it is bridged into
|
|
310
|
+
# A stand-in has no runner here: /agents/{id}/fs/* answers remote_agent.
|
|
311
|
+
home_folder_browsable: Literal[False] = False
|
|
312
|
+
# An agent of THIS server (another account's): no stand-in, no hub
|
|
313
|
+
# thread. ``agent_id`` is the local agent; messaging it opens the
|
|
314
|
+
# ordinary DM. ``state`` is ``unlisted`` once it is no longer public.
|
|
315
|
+
is_local: bool = False
|
|
316
|
+
agent_id: Optional[str] = None
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class RetainedList(_Model):
|
|
320
|
+
"""GET /api/hub/retained."""
|
|
321
|
+
|
|
322
|
+
agents: list[RetainedAgent]
|
|
323
|
+
# This server retains its own agents too (``is_local`` rows): a runner
|
|
324
|
+
# lists another account's agents only when retained. An older server's
|
|
325
|
+
# answer lacks it, and its runners list every public agent as before.
|
|
326
|
+
local_retains: bool = True
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
BridgeDeliveryState = Literal["queued", "relayed", "delivered", "answered", "failed", "cancelled"]
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
class BridgeDelivery(_Model):
|
|
333
|
+
"""One room message's relay to a retained agent (the room bridge). The
|
|
334
|
+
delivery line under a message that addresses a stand-in. ``reason``
|
|
335
|
+
includes ``held``, ``blocked`` and ``flow_stopped``; an open vocabulary."""
|
|
336
|
+
|
|
337
|
+
room_message_id: str
|
|
338
|
+
hub_agent_id: str
|
|
339
|
+
state: BridgeDeliveryState
|
|
340
|
+
reason: Optional[str] = None
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
class BridgeDeliveryList(_Model):
|
|
344
|
+
"""GET /api/hub/bridges/{project_id}/{chatroom_name}/deliveries."""
|
|
345
|
+
|
|
346
|
+
deliveries: list[BridgeDelivery]
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
class HubBridgeDeliveryPayload(_Model):
|
|
350
|
+
project_id: str
|
|
351
|
+
chatroom_name: str
|
|
352
|
+
delivery: BridgeDelivery
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
class HubBridgeDeliveryEvent(_Model):
|
|
356
|
+
"""WS ``hub_bridge_delivery`` (user sockets)."""
|
|
357
|
+
|
|
358
|
+
type: Literal["hub_bridge_delivery"]
|
|
359
|
+
payload: HubBridgeDeliveryPayload
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
# ── conversations (requester side) ────────────────────────────────────────
|
|
363
|
+
|
|
364
|
+
class HubTarget(_AbsentWhenNone):
|
|
365
|
+
"""``hub_target`` on project responses; null on every non-hub project."""
|
|
366
|
+
|
|
367
|
+
hub_agent_id: str
|
|
368
|
+
display: str # name@deployment_name
|
|
369
|
+
name: str
|
|
370
|
+
deployment_name: str
|
|
371
|
+
deployment_label: str
|
|
372
|
+
deployment_fingerprint: str # genesis
|
|
373
|
+
current_fingerprint: Optional[str] = None
|
|
374
|
+
deployment_url: Optional[str]
|
|
375
|
+
deployment_url_verified: bool
|
|
376
|
+
listed: bool
|
|
377
|
+
closed_reason: Optional[ClosedReason]
|
|
378
|
+
closed_at: Optional[EpochSeconds] # null while the thread is open
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
class HubProjectFields(_Model):
|
|
382
|
+
"""What the hub adds to GET /projects, /projects/{id} and
|
|
383
|
+
/participants/{id}/projects. Every other project field is unchanged."""
|
|
384
|
+
|
|
385
|
+
hub_target: Optional[HubTarget]
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
class StartConversationRequest(_Model):
|
|
389
|
+
"""POST /api/hub/conversations: deduped on (user, client_thread_key)."""
|
|
390
|
+
|
|
391
|
+
hub_agent_id: str
|
|
392
|
+
client_thread_key: Annotated[str, Field(min_length=1, max_length=100)]
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
class ConversationTarget(_AbsentWhenNone):
|
|
396
|
+
agent_online: bool
|
|
397
|
+
deployment_connected: bool
|
|
398
|
+
send_warning: Optional[SendWarning]
|
|
399
|
+
deployment_name: str
|
|
400
|
+
deployment_fingerprint: str # genesis
|
|
401
|
+
current_fingerprint: Optional[str] = None
|
|
402
|
+
deployment_url: Optional[str]
|
|
403
|
+
deployment_url_verified: bool
|
|
404
|
+
first_contact: bool
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
class StartConversationResponse(BaseModel):
|
|
408
|
+
"""The new (or existing) Front Desk project, as the project routes return
|
|
409
|
+
it, plus ``target``. Only the hub-specific fields are pinned here; the
|
|
410
|
+
rest of the project body passes through unchanged (``extra="allow"``)."""
|
|
411
|
+
|
|
412
|
+
model_config = ConfigDict(extra="allow")
|
|
413
|
+
|
|
414
|
+
id: str
|
|
415
|
+
surface: Literal["frontdesk"]
|
|
416
|
+
hub_target: HubTarget
|
|
417
|
+
target: ConversationTarget
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
class SendMessageRequest(_Model):
|
|
421
|
+
"""POST /api/hub/conversations/{project_id}/messages. A repeated
|
|
422
|
+
``client_message_id`` returns the original result with 200."""
|
|
423
|
+
|
|
424
|
+
text: str
|
|
425
|
+
client_message_id: Annotated[str, Field(min_length=1, max_length=100)]
|
|
426
|
+
confirm_offline: bool = False
|
|
427
|
+
file_ids: list[str] = Field(default_factory=list)
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
class Delivery(_Model):
|
|
431
|
+
"""One message's delivery, as the requester sees it."""
|
|
432
|
+
|
|
433
|
+
message_id: str
|
|
434
|
+
state: DeliveryState
|
|
435
|
+
waiting_reason: Optional[WaitingReason]
|
|
436
|
+
failed_reason: Optional[FailedReason]
|
|
437
|
+
detail: Optional[str] # NOT_ACCEPTING_DETAILS, only with not_accepting
|
|
438
|
+
retry_at: Optional[EpochSeconds]
|
|
439
|
+
held_for_approval: bool
|
|
440
|
+
delivered_late: bool
|
|
441
|
+
attempts: int
|
|
442
|
+
state_at: EpochSeconds
|
|
443
|
+
expires_at: EpochSeconds
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
class SendMessageResponse(_Model):
|
|
447
|
+
message_id: str # server-minted, = the local ChatMessage.id
|
|
448
|
+
delivery: Delivery
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
class DeliveryList(_Model):
|
|
452
|
+
"""GET …/{project_id}/deliveries: a JSON array of Delivery (this wrapper
|
|
453
|
+
names it for the snapshot; the route answers the bare list)."""
|
|
454
|
+
|
|
455
|
+
deliveries: list[Delivery]
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
# ── generic connection and thread rows ────────────────────────────────────
|
|
459
|
+
|
|
460
|
+
class HubContactFields(_Model):
|
|
461
|
+
"""What request rows and hub thread rows carry on the existing channel
|
|
462
|
+
routes, as separate fields, so the browser never parses contact_name."""
|
|
463
|
+
|
|
464
|
+
remote_username: Optional[str]
|
|
465
|
+
deployment_name: Optional[str]
|
|
466
|
+
deployment_fingerprint: Optional[str] # genesis
|
|
467
|
+
#: "sent by their agent X": which of the person's own agents sent their
|
|
468
|
+
#: newest message (signed by their deployment), plain text, cleaned like
|
|
469
|
+
#: remote_username; null when they sent it themselves.
|
|
470
|
+
via_agent: Optional[str] = None
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
# ── WebSocket events on the user's socket ─────────────────────────────────
|
|
474
|
+
|
|
475
|
+
class HubDeliveryStatePayload(_Model):
|
|
476
|
+
project_id: str
|
|
477
|
+
delivery: Delivery
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
class HubDeliveryStateEvent(_Model):
|
|
481
|
+
type: Literal["hub_delivery_state"] = "hub_delivery_state"
|
|
482
|
+
payload: HubDeliveryStatePayload
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
class HubChannelStatusPayload(_Model):
|
|
486
|
+
agent_full_name: str
|
|
487
|
+
channel: HubChannel # the full, masked object
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
class HubChannelStatusEvent(_Model):
|
|
491
|
+
type: Literal["hub_channel_status"] = "hub_channel_status"
|
|
492
|
+
payload: HubChannelStatusPayload
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
# ── errors ────────────────────────────────────────────────────────────────
|
|
496
|
+
|
|
497
|
+
class PayloadTooLarge(_Model):
|
|
498
|
+
"""payload_too_large [413] extras."""
|
|
499
|
+
|
|
500
|
+
limit: PayloadLimit
|
|
501
|
+
max: int
|
|
502
|
+
actual: int
|
|
503
|
+
file_id: Optional[str] = None
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
class LocalAgentDetail(_Model):
|
|
507
|
+
"""local_agent [409] extras: the browser goes to /dm/{agent_name}."""
|
|
508
|
+
|
|
509
|
+
use_path: str
|
|
510
|
+
agent_name: str # the local agent's full name
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
class RateLimitedDetail(_Model):
|
|
514
|
+
"""rate_limited [429] extras: whole seconds to wait, 1 to 3600."""
|
|
515
|
+
|
|
516
|
+
retry_after: int
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
class TargetOfflineDetail(_Model):
|
|
520
|
+
"""target_offline_confirm_required [409] extras: why the send wants a confirm."""
|
|
521
|
+
|
|
522
|
+
send_warning: SendWarning
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
class SendUnreachableDetail(_Model):
|
|
526
|
+
"""hub_unreachable [503] extras on send only: when this server last had
|
|
527
|
+
the hub (null when it never connected)."""
|
|
528
|
+
|
|
529
|
+
last_connected_at: Optional[EpochSeconds]
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
class FileNotFoundDetail(_Model):
|
|
533
|
+
"""file_not_found [404] extras: the first file_ids entry not in the conversation."""
|
|
534
|
+
|
|
535
|
+
file_id: str
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
#: The error codes whose body carries extras, and the model of those extras
|
|
539
|
+
#: (``detail`` minus ``code`` and ``message``). ``hub_unreachable`` has them
|
|
540
|
+
#: only on send; every other route sends it bare.
|
|
541
|
+
ERROR_DETAILS: dict[str, type[BaseModel]] = {
|
|
542
|
+
"payload_too_large": PayloadTooLarge,
|
|
543
|
+
"local_agent": LocalAgentDetail,
|
|
544
|
+
"rate_limited": RateLimitedDetail,
|
|
545
|
+
"agent_send_cap": RateLimitedDetail,
|
|
546
|
+
"target_offline_confirm_required": TargetOfflineDetail,
|
|
547
|
+
"hub_unreachable": SendUnreachableDetail,
|
|
548
|
+
"file_not_found": FileNotFoundDetail,
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
#: Every error code of section 5, with its usual HTTP status. A route may
|
|
553
|
+
#: answer a code with another status where the table says so (agent_unlisted
|
|
554
|
+
#: is 404 on agent detail and 410 on start and send).
|
|
555
|
+
ERROR_STATUS: dict[str, int] = {
|
|
556
|
+
"unauthorized": 401,
|
|
557
|
+
"hub_off_on_server": 503,
|
|
558
|
+
"hub_not_registered": 409,
|
|
559
|
+
"hub_discover_only": 409,
|
|
560
|
+
"hub_untrusted": 503,
|
|
561
|
+
"hub_unreachable": 503,
|
|
562
|
+
"not_owner": 403,
|
|
563
|
+
"agent_not_found": 404,
|
|
564
|
+
"agent_not_public": 409,
|
|
565
|
+
"confirm_required": 400,
|
|
566
|
+
"use_hub_routes": 409,
|
|
567
|
+
"use_hub_send": 409,
|
|
568
|
+
"query_too_broad": 400,
|
|
569
|
+
"rate_limited": 429,
|
|
570
|
+
"invalid_agent_id": 400,
|
|
571
|
+
"agent_unlisted": 410,
|
|
572
|
+
"avatar_not_set": 404,
|
|
573
|
+
"avatar_unavailable": 404,
|
|
574
|
+
"local_agent": 409,
|
|
575
|
+
"own_agent": 403,
|
|
576
|
+
"target_offline_confirm_required": 409,
|
|
577
|
+
"key_revoked": 409,
|
|
578
|
+
"identity_changed": 409,
|
|
579
|
+
"conversation_closed": 409,
|
|
580
|
+
"payload_too_large": 413,
|
|
581
|
+
"file_not_found": 404,
|
|
582
|
+
"project_not_found": 404,
|
|
583
|
+
"isolation_unavailable": 409,
|
|
584
|
+
"room_flow_stopped": 409,
|
|
585
|
+
"agent_send_cap": 429,
|
|
586
|
+
"user_only": 403,
|
|
587
|
+
"agent_name_unsupported": 409,
|
|
588
|
+
"turn_scope": 403,
|
|
589
|
+
"not_retained": 409,
|
|
590
|
+
"owner_isolation_refused": 409, # plan-owner-isolation: the setting cannot be turned on
|
|
591
|
+
"serving_only_agent": 403, # plan-owner-isolation 5d: an owner-isolated agent's own token
|
|
592
|
+
"foreign_coordinator": 403, # plan-owner-isolation 4: only the account's own agents coordinate
|
|
593
|
+
# Enrollment (server/hub/enroll.py)
|
|
594
|
+
"hub_owner_unverified": 409, # enable: verify yourself as an owner first (the UI opens the dialog)
|
|
595
|
+
"enroll_busy": 409, # another member is confirming this server's registration
|
|
596
|
+
"enroll_operator_only": 409,
|
|
597
|
+
"enroll_code_invalid": 400,
|
|
598
|
+
"enroll_code_expired": 400,
|
|
599
|
+
"enroll_email_unverified": 409, # the user's own Manigent email is not verified
|
|
600
|
+
"enroll_refused": 409, # any other hub refusal; the message carries the hub's words
|
|
601
|
+
"tos_outdated": 409,
|
|
602
|
+
"owner_banned": 403,
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
#: The hub-state errors. Only search, agent detail, start, send, report and
|
|
606
|
+
#: enable return them (``HubRuntime.require``); config, deliveries, avatar and
|
|
607
|
+
#: disable never do.
|
|
608
|
+
HUB_STATE_ERRORS = frozenset({
|
|
609
|
+
"hub_off_on_server", "hub_not_registered", "hub_discover_only", "hub_untrusted", "hub_unreachable",
|
|
610
|
+
})
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
class HubError(Exception):
|
|
614
|
+
"""A browser-facing error: ``{"detail": {"code", "message", **extra}}``
|
|
615
|
+
with ``status`` (the code's usual status unless given)."""
|
|
616
|
+
|
|
617
|
+
def __init__(self, code: str, message: str = "", *, status: Optional[int] = None, **extra: Any) -> None:
|
|
618
|
+
if code not in ERROR_STATUS:
|
|
619
|
+
raise ValueError(f"unknown hub error code {code!r}")
|
|
620
|
+
super().__init__(code)
|
|
621
|
+
self.code = code
|
|
622
|
+
self.message = message
|
|
623
|
+
self.status = status if status is not None else ERROR_STATUS[code]
|
|
624
|
+
self.extra = extra
|
|
625
|
+
|
|
626
|
+
def body(self) -> dict[str, Any]:
|
|
627
|
+
return {"detail": {"code": self.code, "message": self.message, **self.extra}}
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
# ── agent send (plan-agent-access 4.1) ────────────────────────────────────
|
|
631
|
+
|
|
632
|
+
class HubMessage(_Model):
|
|
633
|
+
"""One message of a hub conversation as GET …/messages lists it. ``text``
|
|
634
|
+
is None whenever the caller may not see remote text."""
|
|
635
|
+
|
|
636
|
+
id: str
|
|
637
|
+
author_kind: Literal["user", "agent", "remote"]
|
|
638
|
+
ts: EpochSeconds
|
|
639
|
+
state: Optional[str] = None
|
|
640
|
+
text: Optional[str] = None
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
class HubMessagePage(_Model):
|
|
644
|
+
"""GET /api/hub/conversations/{id}/messages."""
|
|
645
|
+
|
|
646
|
+
messages: list[HubMessage]
|
|
647
|
+
text_withheld: bool
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
class UsageWindowOut(_Model):
|
|
651
|
+
name: str
|
|
652
|
+
used: int
|
|
653
|
+
limit: int
|
|
654
|
+
resets_at: EpochSeconds
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
class AgentUsage(_Model):
|
|
658
|
+
"""GET /api/hub/agents-usage/{agent_id}: an agent's hub send windows."""
|
|
659
|
+
|
|
660
|
+
windows: list[UsageWindowOut]
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
# ── room flow (plan-agent-access 4.6) ─────────────────────────────────────
|
|
664
|
+
# ``RoomFlow`` (chatroom ``flow``) and ``ParticipantInfo`` (chatroom
|
|
665
|
+
# ``participant_info``) live with the Chatroom model; they are registered
|
|
666
|
+
# below so the snapshot freezes them too.
|
|
667
|
+
|
|
668
|
+
class ChatroomFlowChangedPayload(_Model):
|
|
669
|
+
project_id: str
|
|
670
|
+
chatroom_name: str
|
|
671
|
+
flow: RoomFlow
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
class ChatroomFlowChangedEvent(_Model):
|
|
675
|
+
"""WS ``chatroom_flow_changed`` (the owner's user sockets)."""
|
|
676
|
+
|
|
677
|
+
type: Literal["chatroom_flow_changed"]
|
|
678
|
+
payload: ChatroomFlowChangedPayload
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
#: Why a send was held: the room's inbound flow is stopped; the inspector
|
|
682
|
+
#: held it (its own reason is the owner's to see); the inspector failed or
|
|
683
|
+
#: timed out; the conversation has no requester key yet. A closed set.
|
|
684
|
+
HeldReason = Literal["flow_stopped", "held", "inspector_error", "requester_key_pending"]
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
class HeldForReview(_Model):
|
|
688
|
+
"""202 body of a send that was HELD rather than refused: a Front Desk
|
|
689
|
+
requester's direct post that any inspection hold caught. It is delivered
|
|
690
|
+
on release (or dropped at expiry), so the client must not resend. A
|
|
691
|
+
refused send answers 409 ``room_flow_stopped``; a blocked one 403."""
|
|
692
|
+
|
|
693
|
+
held: Literal[True]
|
|
694
|
+
reason: HeldReason
|
|
695
|
+
message: str
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
# ── owner isolation (plan-owner-isolation section 8, frozen) ──────────────
|
|
699
|
+
|
|
700
|
+
#: Why "runs in its own environment" cannot be turned on, or is not in effect.
|
|
701
|
+
OwnerIsolationRefusalCode = Literal[
|
|
702
|
+
"not_public", # the agent is not discoverable
|
|
703
|
+
"cohosted_with_non_isolated", # its host can read a credential of an agent without the setting
|
|
704
|
+
"owner_login_on_host", # a Manigent login is saved on its host
|
|
705
|
+
"runner_unreported", # no host report from a runner that knows owner isolation
|
|
706
|
+
]
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
class OwnerIsolationRefusal(_Model):
|
|
710
|
+
code: OwnerIsolationRefusalCode
|
|
711
|
+
message: str
|
|
712
|
+
#: cohosted only: short names of THIS owner's offending agents (other accounts are never named).
|
|
713
|
+
agents: list[str] = []
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
class OwnerIsolationConfirm(_Model):
|
|
717
|
+
"""Server-written copy, rendered verbatim."""
|
|
718
|
+
|
|
719
|
+
title: str
|
|
720
|
+
body: list[str]
|
|
721
|
+
acknowledge: str
|
|
722
|
+
action: str
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
class OwnerIsolationStatus(_Model):
|
|
726
|
+
"""GET/PUT /agents/{id}/owner-isolation, POST …/owner-isolation/clear-host."""
|
|
727
|
+
|
|
728
|
+
agent_id: str
|
|
729
|
+
enabled: bool # the owner's stored choice
|
|
730
|
+
effective: bool # the next serving turn runs without the system sandbox
|
|
731
|
+
eligible: bool # can be turned on right now
|
|
732
|
+
refusals: list[OwnerIsolationRefusal]
|
|
733
|
+
model_key_shared: Optional[bool] = None # warning only; None = unknown
|
|
734
|
+
host_exposed: bool = False # ran without the sandbox on a host not yet confirmed wiped
|
|
735
|
+
blocked_agents: list[str] = [] # this owner's agents refused on that host since
|
|
736
|
+
confirm: OwnerIsolationConfirm
|
|
737
|
+
clear_host_confirm: OwnerIsolationConfirm
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
class OwnerIsolationRequest(_Model):
|
|
741
|
+
enabled: bool
|
|
742
|
+
acknowledged: bool = False
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
class ClearHostRequest(_Model):
|
|
746
|
+
acknowledged: bool = False
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
class OwnerIsolationRefusedDetail(_Model):
|
|
750
|
+
"""409 ``owner_isolation_refused`` body (inside ``detail``)."""
|
|
751
|
+
|
|
752
|
+
code: Literal["owner_isolation_refused"]
|
|
753
|
+
message: str
|
|
754
|
+
refusals: list[OwnerIsolationRefusal]
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
#: Contract models defined beside the data they describe, not in this module.
|
|
758
|
+
SHARED_MODELS: tuple[type[BaseModel], ...] = (RoomFlow, ParticipantInfo, ParticipantHub)
|
|
759
|
+
|
|
760
|
+
#: Every model of the contract, by name: what the snapshot and the static
|
|
761
|
+
#: masking test walk. A model added above must be added here.
|
|
762
|
+
BROWSER_MODELS: dict[str, type[BaseModel]] = {
|
|
763
|
+
m.__name__: m for m in (
|
|
764
|
+
BridgeDelivery, BridgeDeliveryList, HubBridgeDeliveryPayload, HubBridgeDeliveryEvent,
|
|
765
|
+
HubConfigOut, HubChannel, EnableRequest, DisableRequest, BlockRequest, BlockedDeployment,
|
|
766
|
+
BlockedList, HubAgentSearch, HubAgent, HubAgentPage, HubAgentDetail, ReportRequest,
|
|
767
|
+
ReportAccepted, RetainedAgent, RetainedList, HubTarget, HubProjectFields, StartConversationRequest, ConversationTarget,
|
|
768
|
+
StartConversationResponse, SendMessageRequest, Delivery, SendMessageResponse, DeliveryList,
|
|
769
|
+
HubContactFields, HubDeliveryStatePayload, HubDeliveryStateEvent, HubChannelStatusPayload,
|
|
770
|
+
HubMessage, HubMessagePage, UsageWindowOut, AgentUsage,
|
|
771
|
+
HubChannelStatusEvent, PayloadTooLarge, LocalAgentDetail, RateLimitedDetail,
|
|
772
|
+
TargetOfflineDetail, SendUnreachableDetail, FileNotFoundDetail,
|
|
773
|
+
ChatroomFlowChangedPayload, ChatroomFlowChangedEvent, HeldForReview,
|
|
774
|
+
OwnerIsolationRefusal, OwnerIsolationConfirm, OwnerIsolationStatus, OwnerIsolationRequest,
|
|
775
|
+
ClearHostRequest, OwnerIsolationRefusedDetail, HubEnrollment, EnrollRequest, EnrollConfirm,
|
|
776
|
+
*SHARED_MODELS,
|
|
777
|
+
)
|
|
778
|
+
}
|