@nocobase/app-plugin-agents 0.1.0-beta.1 → 0.1.0-beta.10
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.
- package/CHANGELOG.md +355 -0
- package/README.md +107 -67
- package/dist/client/api/client.d.ts +25 -17
- package/dist/client/api/client.d.ts.map +1 -1
- package/dist/client/api/client.js +29 -27
- package/dist/client/api/client.js.map +1 -1
- package/dist/client/api/keys.d.ts +1 -1
- package/dist/client/api/keys.d.ts.map +1 -1
- package/dist/client/api/keys.js +1 -1
- package/dist/client/api/keys.js.map +1 -1
- package/dist/client/chat/api.d.ts +2 -7
- package/dist/client/chat/api.d.ts.map +1 -1
- package/dist/client/chat/api.js +0 -7
- package/dist/client/chat/api.js.map +1 -1
- package/dist/client/chat/consultation-identity.d.ts +7 -0
- package/dist/client/chat/consultation-identity.d.ts.map +1 -0
- package/dist/client/chat/consultation-identity.js +39 -0
- package/dist/client/chat/consultation-identity.js.map +1 -0
- package/dist/client/chat/message-model.d.ts +4 -2
- package/dist/client/chat/message-model.d.ts.map +1 -1
- package/dist/client/chat/message-model.js +28 -3
- package/dist/client/chat/message-model.js.map +1 -1
- package/dist/client/chat/use-chat.d.ts +2 -10
- package/dist/client/chat/use-chat.d.ts.map +1 -1
- package/dist/client/chat/use-chat.js +3 -10
- package/dist/client/chat/use-chat.js.map +1 -1
- package/dist/client/chat.d.ts +4 -1
- package/dist/client/chat.d.ts.map +1 -1
- package/dist/client/chat.js +3 -0
- package/dist/client/chat.js.map +1 -1
- package/dist/client/components/agent-picker.d.ts +6 -23
- package/dist/client/components/agent-picker.d.ts.map +1 -1
- package/dist/client/components/agent-picker.js +19 -39
- package/dist/client/components/agent-picker.js.map +1 -1
- package/dist/client/components/variables/variable-dialogs.d.ts +6 -1
- package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -1
- package/dist/client/components/variables/variable-dialogs.js +27 -11
- package/dist/client/components/variables/variable-dialogs.js.map +1 -1
- package/dist/client/components/variables/variables-panel.d.ts.map +1 -1
- package/dist/client/components/variables/variables-panel.js +9 -2
- package/dist/client/components/variables/variables-panel.js.map +1 -1
- package/dist/client/hooks/use-agent-picker-labels.d.ts.map +1 -1
- package/dist/client/hooks/use-agent-picker-labels.js +3 -12
- package/dist/client/hooks/use-agent-picker-labels.js.map +1 -1
- package/dist/client/kit.d.ts +9 -12
- package/dist/client/kit.d.ts.map +1 -1
- package/dist/client/kit.js +12 -14
- package/dist/client/kit.js.map +1 -1
- package/dist/client/lib/agents.d.ts +5 -13
- package/dist/client/lib/agents.d.ts.map +1 -1
- package/dist/client/lib/agents.js +17 -32
- package/dist/client/lib/agents.js.map +1 -1
- package/dist/client/lib/install.js +1 -1
- package/dist/client/locales/chat.en-US.d.ts +9 -22
- package/dist/client/locales/chat.en-US.d.ts.map +1 -1
- package/dist/client/locales/chat.en-US.js +13 -25
- package/dist/client/locales/chat.en-US.js.map +1 -1
- package/dist/client/locales/chat.zh-CN.d.ts.map +1 -1
- package/dist/client/locales/chat.zh-CN.js +10 -22
- package/dist/client/locales/chat.zh-CN.js.map +1 -1
- package/dist/client/locales/en-US.d.ts +100 -219
- package/dist/client/locales/en-US.d.ts.map +1 -1
- package/dist/client/locales/en-US.js +105 -219
- package/dist/client/locales/en-US.js.map +1 -1
- package/dist/client/locales/runWait.en-US.d.ts +38 -0
- package/dist/client/locales/runWait.en-US.d.ts.map +1 -0
- package/dist/client/locales/runWait.en-US.js +37 -0
- package/dist/client/locales/runWait.en-US.js.map +1 -0
- package/dist/client/locales/runWait.zh-CN.d.ts +5 -0
- package/dist/client/locales/runWait.zh-CN.d.ts.map +1 -0
- package/dist/client/locales/runWait.zh-CN.js +32 -0
- package/dist/client/locales/runWait.zh-CN.js.map +1 -0
- package/dist/client/locales/runtimes.en-US.d.ts +55 -0
- package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
- package/dist/client/locales/runtimes.en-US.js +58 -3
- package/dist/client/locales/runtimes.en-US.js.map +1 -1
- package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -1
- package/dist/client/locales/runtimes.zh-CN.js +58 -3
- package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
- package/dist/client/locales/zh-CN.d.ts.map +1 -1
- package/dist/client/locales/zh-CN.js +107 -221
- package/dist/client/locales/zh-CN.js.map +1 -1
- package/dist/client/online/services.d.ts.map +1 -1
- package/dist/client/online/services.js +5 -6
- package/dist/client/online/services.js.map +1 -1
- package/dist/client/pages/agents/agent-dialog.d.ts +9 -0
- package/dist/client/pages/agents/agent-dialog.d.ts.map +1 -0
- package/dist/client/pages/agents/agent-dialog.js +106 -0
- package/dist/client/pages/agents/agent-dialog.js.map +1 -0
- package/dist/client/pages/agents/agent-state.d.ts +11 -0
- package/dist/client/pages/agents/agent-state.d.ts.map +1 -0
- package/dist/client/pages/agents/agent-state.js +28 -0
- package/dist/client/pages/agents/agent-state.js.map +1 -0
- package/dist/client/pages/agents/index.d.ts +1 -1
- package/dist/client/pages/agents/index.d.ts.map +1 -1
- package/dist/client/pages/agents/index.js +6 -100
- package/dist/client/pages/agents/index.js.map +1 -1
- package/dist/client/pages/agents/runner-agents.d.ts +3 -0
- package/dist/client/pages/agents/runner-agents.d.ts.map +1 -0
- package/dist/client/pages/agents/runner-agents.js +172 -0
- package/dist/client/pages/agents/runner-agents.js.map +1 -0
- package/dist/client/pages/runtimes/connect.js +1 -1
- package/dist/client/pages/runtimes/connect.js.map +1 -1
- package/dist/client/pages/runtimes/index.d.ts.map +1 -1
- package/dist/client/pages/runtimes/index.js +3 -2
- package/dist/client/pages/runtimes/index.js.map +1 -1
- package/dist/client/pages/runtimes/runner-cells.d.ts +1 -1
- package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -1
- package/dist/client/pages/runtimes/runner-cells.js +4 -1
- package/dist/client/pages/runtimes/runner-cells.js.map +1 -1
- package/dist/client/pages/runtimes/runner-sheet.d.ts.map +1 -1
- package/dist/client/pages/runtimes/runner-sheet.js +12 -3
- package/dist/client/pages/runtimes/runner-sheet.js.map +1 -1
- package/dist/client/pages/runtimes/workspace-diagnostics.d.ts +9 -0
- package/dist/client/pages/runtimes/workspace-diagnostics.d.ts.map +1 -0
- package/dist/client/pages/runtimes/workspace-diagnostics.js +70 -0
- package/dist/client/pages/runtimes/workspace-diagnostics.js.map +1 -0
- package/dist/client/pages/usage/index.js +2 -2
- package/dist/client/pages/usage/index.js.map +1 -1
- package/dist/client/profile/default-agent.d.ts.map +1 -1
- package/dist/client/profile/default-agent.js +2 -4
- package/dist/client/profile/default-agent.js.map +1 -1
- package/dist/client/routes.d.ts +1 -1
- package/dist/client/routes.d.ts.map +1 -1
- package/dist/client/routes.js +1 -13
- package/dist/client/routes.js.map +1 -1
- package/dist/client/runs/format-wait.d.ts +21 -0
- package/dist/client/runs/format-wait.d.ts.map +1 -0
- package/dist/client/runs/format-wait.js +90 -0
- package/dist/client/runs/format-wait.js.map +1 -0
- package/dist/client/runs/subject-runs.d.ts +5 -0
- package/dist/client/runs/subject-runs.d.ts.map +1 -1
- package/dist/client/runs/subject-runs.js +13 -7
- package/dist/client/runs/subject-runs.js.map +1 -1
- package/dist/client/runs.d.ts +3 -1
- package/dist/client/runs.d.ts.map +1 -1
- package/dist/client/runs.js +3 -1
- package/dist/client/runs.js.map +1 -1
- package/dist/database/migrations/.manifest.json +48 -0
- package/dist/database/migrations/202610090001_ag_add_team_runner_variables.d.ts +9 -0
- package/dist/database/migrations/202610090001_ag_add_team_runner_variables.d.ts.map +1 -0
- package/dist/database/migrations/202610090001_ag_add_team_runner_variables.js +28 -0
- package/dist/database/migrations/202610090001_ag_add_team_runner_variables.js.map +1 -0
- package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts +10 -0
- package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts.map +1 -0
- package/dist/database/migrations/202610090002_ag_create_run_requests.js +105 -0
- package/dist/database/migrations/202610090002_ag_create_run_requests.js.map +1 -0
- package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts +4 -0
- package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts.map +1 -0
- package/dist/database/migrations/202610090003_ag_add_execution_history.js +17 -0
- package/dist/database/migrations/202610090003_ag_add_execution_history.js.map +1 -0
- package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts +9 -0
- package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts.map +1 -0
- package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js +22 -0
- package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js.map +1 -0
- package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts +10 -0
- package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts.map +1 -0
- package/dist/database/migrations/202610090005_ag_add_runner_variables.js +36 -0
- package/dist/database/migrations/202610090005_ag_add_runner_variables.js.map +1 -0
- package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts +4 -0
- package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts.map +1 -0
- package/dist/database/migrations/202610100001_ag_index_run_event_types.js +17 -0
- package/dist/database/migrations/202610100001_ag_index_run_event_types.js.map +1 -0
- package/dist/database/migrations/202610100002_ag_add_run_git_credentials.d.ts +9 -0
- package/dist/database/migrations/202610100002_ag_add_run_git_credentials.d.ts.map +1 -0
- package/dist/database/migrations/202610100002_ag_add_run_git_credentials.js +30 -0
- package/dist/database/migrations/202610100002_ag_add_run_git_credentials.js.map +1 -0
- package/dist/database/migrations/202610110001_ag_add_fresh_sessions.d.ts +4 -0
- package/dist/database/migrations/202610110001_ag_add_fresh_sessions.d.ts.map +1 -0
- package/dist/database/migrations/202610110001_ag_add_fresh_sessions.js +23 -0
- package/dist/database/migrations/202610110001_ag_add_fresh_sessions.js.map +1 -0
- package/dist/database/migrations/202610120001_ag_index_run_retries.d.ts +4 -0
- package/dist/database/migrations/202610120001_ag_index_run_retries.d.ts.map +1 -0
- package/dist/database/migrations/202610120001_ag_index_run_retries.js +17 -0
- package/dist/database/migrations/202610120001_ag_index_run_retries.js.map +1 -0
- package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts +4 -0
- package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts.map +1 -0
- package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js +50 -0
- package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js.map +1 -0
- package/dist/database/migrations/202610240020_ag_runner_agents.d.ts +4 -0
- package/dist/database/migrations/202610240020_ag_runner_agents.d.ts.map +1 -0
- package/dist/database/migrations/202610240020_ag_runner_agents.js +115 -0
- package/dist/database/migrations/202610240020_ag_runner_agents.js.map +1 -0
- package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts +4 -0
- package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts.map +1 -0
- package/dist/database/migrations/202610240040_ag_discovery_preferences.js +18 -0
- package/dist/database/migrations/202610240040_ag_discovery_preferences.js.map +1 -0
- package/dist/package.json +8 -10
- package/dist/server/cli/run-credential.js +1 -1
- package/dist/server/composition.d.ts +39 -37
- package/dist/server/composition.d.ts.map +1 -1
- package/dist/server/composition.js +53 -65
- package/dist/server/composition.js.map +1 -1
- package/dist/server/core/agents/agent.service.d.ts +51 -43
- package/dist/server/core/agents/agent.service.d.ts.map +1 -1
- package/dist/server/core/agents/agent.service.js +342 -317
- package/dist/server/core/agents/agent.service.js.map +1 -1
- package/dist/server/core/agents/agent.store.d.ts +24 -12
- package/dist/server/core/agents/agent.store.d.ts.map +1 -1
- package/dist/server/core/agents/agent.store.js +65 -64
- package/dist/server/core/agents/agent.store.js.map +1 -1
- package/dist/server/core/agents/agent.views.d.ts +29 -0
- package/dist/server/core/agents/agent.views.d.ts.map +1 -0
- package/dist/server/core/agents/agent.views.js +86 -0
- package/dist/server/core/agents/agent.views.js.map +1 -0
- package/dist/server/core/agents/discovery.d.ts +12 -0
- package/dist/server/core/agents/discovery.d.ts.map +1 -0
- package/dist/server/core/agents/discovery.js +39 -0
- package/dist/server/core/agents/discovery.js.map +1 -0
- package/dist/server/core/agents/index.d.ts +2 -1
- package/dist/server/core/agents/index.d.ts.map +1 -1
- package/dist/server/core/agents/index.js +2 -1
- package/dist/server/core/agents/index.js.map +1 -1
- package/dist/server/core/brief/brief.js +1 -1
- package/dist/server/core/brief/brief.js.map +1 -1
- package/dist/server/core/callers/index.d.ts +1 -1
- package/dist/server/core/conversations/availability.d.ts +11 -10
- package/dist/server/core/conversations/availability.d.ts.map +1 -1
- package/dist/server/core/conversations/availability.js +14 -32
- package/dist/server/core/conversations/availability.js.map +1 -1
- package/dist/server/core/conversations/chat-settings.d.ts.map +1 -1
- package/dist/server/core/conversations/chat-settings.js +5 -3
- package/dist/server/core/conversations/chat-settings.js.map +1 -1
- package/dist/server/core/conversations/conversation.service.d.ts +3 -5
- package/dist/server/core/conversations/conversation.service.d.ts.map +1 -1
- package/dist/server/core/conversations/conversation.service.js +161 -221
- package/dist/server/core/conversations/conversation.service.js.map +1 -1
- package/dist/server/core/conversations/ports.d.ts +3 -17
- package/dist/server/core/conversations/ports.d.ts.map +1 -1
- package/dist/server/core/reports/report.service.d.ts.map +1 -1
- package/dist/server/core/reports/report.service.js +5 -2
- package/dist/server/core/reports/report.service.js.map +1 -1
- package/dist/server/core/runs/availability.d.ts +18 -7
- package/dist/server/core/runs/availability.d.ts.map +1 -1
- package/dist/server/core/runs/availability.js +35 -24
- package/dist/server/core/runs/availability.js.map +1 -1
- package/dist/server/core/runs/claim.d.ts +33 -65
- package/dist/server/core/runs/claim.d.ts.map +1 -1
- package/dist/server/core/runs/claim.js +566 -307
- package/dist/server/core/runs/claim.js.map +1 -1
- package/dist/server/core/runs/eligibility.d.ts +51 -0
- package/dist/server/core/runs/eligibility.d.ts.map +1 -0
- package/dist/server/core/runs/eligibility.js +44 -0
- package/dist/server/core/runs/eligibility.js.map +1 -0
- package/dist/server/core/runs/execution-view.d.ts +10 -0
- package/dist/server/core/runs/execution-view.d.ts.map +1 -0
- package/dist/server/core/runs/execution-view.js +25 -0
- package/dist/server/core/runs/execution-view.js.map +1 -0
- package/dist/server/core/runs/execution.d.ts +13 -0
- package/dist/server/core/runs/execution.d.ts.map +1 -0
- package/dist/server/core/runs/execution.js +85 -0
- package/dist/server/core/runs/execution.js.map +1 -0
- package/dist/server/core/runs/extensions.d.ts +59 -4
- package/dist/server/core/runs/extensions.d.ts.map +1 -1
- package/dist/server/core/runs/extensions.js +45 -9
- package/dist/server/core/runs/extensions.js.map +1 -1
- package/dist/server/core/runs/git-credentials.d.ts +43 -0
- package/dist/server/core/runs/git-credentials.d.ts.map +1 -0
- package/dist/server/core/runs/git-credentials.js +129 -0
- package/dist/server/core/runs/git-credentials.js.map +1 -0
- package/dist/server/core/runs/identity.d.ts +6 -0
- package/dist/server/core/runs/identity.d.ts.map +1 -0
- package/dist/server/core/runs/identity.js +49 -0
- package/dist/server/core/runs/identity.js.map +1 -0
- package/dist/server/core/runs/index.d.ts +9 -5
- package/dist/server/core/runs/index.d.ts.map +1 -1
- package/dist/server/core/runs/index.js +9 -5
- package/dist/server/core/runs/index.js.map +1 -1
- package/dist/server/core/runs/input-gate.d.ts +34 -0
- package/dist/server/core/runs/input-gate.d.ts.map +1 -0
- package/dist/server/core/runs/input-gate.js +54 -0
- package/dist/server/core/runs/input-gate.js.map +1 -0
- package/dist/server/core/runs/lifecycle.d.ts +9 -19
- package/dist/server/core/runs/lifecycle.d.ts.map +1 -1
- package/dist/server/core/runs/lifecycle.js +76 -34
- package/dist/server/core/runs/lifecycle.js.map +1 -1
- package/dist/server/core/runs/policy.d.ts +8 -0
- package/dist/server/core/runs/policy.d.ts.map +1 -1
- package/dist/server/core/runs/policy.js +10 -0
- package/dist/server/core/runs/policy.js.map +1 -1
- package/dist/server/core/runs/ports.d.ts +84 -28
- package/dist/server/core/runs/ports.d.ts.map +1 -1
- package/dist/server/core/runs/ports.js +2 -13
- package/dist/server/core/runs/ports.js.map +1 -1
- package/dist/server/core/runs/preview.d.ts.map +1 -1
- package/dist/server/core/runs/preview.js +3 -3
- package/dist/server/core/runs/preview.js.map +1 -1
- package/dist/server/core/runs/run-requests.d.ts +220 -0
- package/dist/server/core/runs/run-requests.d.ts.map +1 -0
- package/dist/server/core/runs/run-requests.js +475 -0
- package/dist/server/core/runs/run-requests.js.map +1 -0
- package/dist/server/core/runs/run.service.d.ts +84 -11
- package/dist/server/core/runs/run.service.d.ts.map +1 -1
- package/dist/server/core/runs/run.service.js +433 -93
- package/dist/server/core/runs/run.service.js.map +1 -1
- package/dist/server/core/runs/run.store.d.ts +20 -3
- package/dist/server/core/runs/run.store.d.ts.map +1 -1
- package/dist/server/core/runs/run.store.js +49 -2
- package/dist/server/core/runs/run.store.js.map +1 -1
- package/dist/server/core/runs/runner-view.d.ts +6 -4
- package/dist/server/core/runs/runner-view.d.ts.map +1 -1
- package/dist/server/core/runs/runner-view.js +13 -11
- package/dist/server/core/runs/runner-view.js.map +1 -1
- package/dist/server/core/runs/selection.d.ts +13 -0
- package/dist/server/core/runs/selection.d.ts.map +1 -0
- package/dist/server/core/runs/selection.js +21 -0
- package/dist/server/core/runs/selection.js.map +1 -0
- package/dist/server/core/runs/sweeper.d.ts.map +1 -1
- package/dist/server/core/runs/sweeper.js +54 -10
- package/dist/server/core/runs/sweeper.js.map +1 -1
- package/dist/server/core/runs/transitions.d.ts +1 -1
- package/dist/server/core/runs/transitions.d.ts.map +1 -1
- package/dist/server/core/runs/transitions.js +69 -5
- package/dist/server/core/runs/transitions.js.map +1 -1
- package/dist/server/core/runs/workload.d.ts +3 -3
- package/dist/server/core/runs/workload.d.ts.map +1 -1
- package/dist/server/core/runs/workload.js +154 -45
- package/dist/server/core/runs/workload.js.map +1 -1
- package/dist/server/core/variables/index.d.ts +1 -1
- package/dist/server/core/variables/index.d.ts.map +1 -1
- package/dist/server/core/variables/index.js +1 -1
- package/dist/server/core/variables/index.js.map +1 -1
- package/dist/server/core/variables/variable.service.d.ts +38 -6
- package/dist/server/core/variables/variable.service.d.ts.map +1 -1
- package/dist/server/core/variables/variable.service.js +201 -30
- package/dist/server/core/variables/variable.service.js.map +1 -1
- package/dist/server/distribution/dist.service.d.ts +27 -5
- package/dist/server/distribution/dist.service.d.ts.map +1 -1
- package/dist/server/distribution/dist.service.js +41 -5
- package/dist/server/distribution/dist.service.js.map +1 -1
- package/dist/server/distribution/download-tokens.d.ts +1 -1
- package/dist/server/distribution/download-tokens.d.ts.map +1 -1
- package/dist/server/distribution/download-tokens.js +7 -4
- package/dist/server/distribution/download-tokens.js.map +1 -1
- package/dist/server/distribution/index.d.ts +11 -3
- package/dist/server/distribution/index.d.ts.map +1 -1
- package/dist/server/distribution/index.js +31 -8
- package/dist/server/distribution/index.js.map +1 -1
- package/dist/server/jobs/index.d.ts +1 -1
- package/dist/server/jobs/index.d.ts.map +1 -1
- package/dist/server/jobs/index.js +1 -1
- package/dist/server/jobs/index.js.map +1 -1
- package/dist/server/jobs/job.service.d.ts +3 -1
- package/dist/server/jobs/job.service.d.ts.map +1 -1
- package/dist/server/jobs/job.service.js +11 -3
- package/dist/server/jobs/job.service.js.map +1 -1
- package/dist/server/jobs/spec.d.ts +4 -0
- package/dist/server/jobs/spec.d.ts.map +1 -1
- package/dist/server/jobs/spec.js +6 -0
- package/dist/server/jobs/spec.js.map +1 -1
- package/dist/server/kernel/errors.d.ts +1 -1
- package/dist/server/kernel/errors.d.ts.map +1 -1
- package/dist/server/kernel/errors.js +1 -0
- package/dist/server/kernel/errors.js.map +1 -1
- package/dist/server/kernel/events.d.ts +34 -9
- package/dist/server/kernel/events.d.ts.map +1 -1
- package/dist/server/kernel/events.js.map +1 -1
- package/dist/server/kernel/redaction.d.ts +2 -0
- package/dist/server/kernel/redaction.d.ts.map +1 -1
- package/dist/server/kernel/redaction.js +17 -0
- package/dist/server/kernel/redaction.js.map +1 -1
- package/dist/server/online/index.d.ts +0 -5
- package/dist/server/online/index.d.ts.map +1 -1
- package/dist/server/online/index.js +0 -5
- package/dist/server/online/index.js.map +1 -1
- package/dist/server/online/routes.d.ts.map +1 -1
- package/dist/server/online/routes.js +6 -35
- package/dist/server/online/routes.js.map +1 -1
- package/dist/server/providers/agents.d.ts +4 -25
- package/dist/server/providers/agents.d.ts.map +1 -1
- package/dist/server/providers/agents.js +8 -75
- package/dist/server/providers/agents.js.map +1 -1
- package/dist/server/routes/admin.d.ts.map +1 -1
- package/dist/server/routes/admin.js +140 -201
- package/dist/server/routes/admin.js.map +1 -1
- package/dist/server/routes/chat.d.ts.map +1 -1
- package/dist/server/routes/chat.js +12 -70
- package/dist/server/routes/chat.js.map +1 -1
- package/dist/server/routes/index.d.ts.map +1 -1
- package/dist/server/routes/index.js +11 -1
- package/dist/server/routes/index.js.map +1 -1
- package/dist/server/routes/roster.d.ts.map +1 -1
- package/dist/server/routes/roster.js +6 -21
- package/dist/server/routes/roster.js.map +1 -1
- package/dist/server/routes/run-requests.d.ts +6 -0
- package/dist/server/routes/run-requests.d.ts.map +1 -0
- package/dist/server/routes/run-requests.js +216 -0
- package/dist/server/routes/run-requests.js.map +1 -0
- package/dist/server/routes/runners/admin.d.ts +9 -1
- package/dist/server/routes/runners/admin.d.ts.map +1 -1
- package/dist/server/routes/runners/admin.js +62 -24
- package/dist/server/routes/runners/admin.js.map +1 -1
- package/dist/server/routes/runners/dist.d.ts +5 -1
- package/dist/server/routes/runners/dist.d.ts.map +1 -1
- package/dist/server/routes/runners/dist.js +36 -9
- package/dist/server/routes/runners/dist.js.map +1 -1
- package/dist/server/routes/runners/install.d.ts.map +1 -1
- package/dist/server/routes/runners/install.js +98 -15
- package/dist/server/routes/runners/install.js.map +1 -1
- package/dist/server/routes/runners/runner.d.ts.map +1 -1
- package/dist/server/routes/runners/runner.js +25 -7
- package/dist/server/routes/runners/runner.js.map +1 -1
- package/dist/server/routes/runners/runs.d.ts +1 -1
- package/dist/server/routes/runners/runs.d.ts.map +1 -1
- package/dist/server/routes/runners/runs.js +23 -3
- package/dist/server/routes/runners/runs.js.map +1 -1
- package/dist/server/routes/schemas.d.ts +37 -8
- package/dist/server/routes/schemas.d.ts.map +1 -1
- package/dist/server/routes/schemas.js +367 -82
- package/dist/server/routes/schemas.js.map +1 -1
- package/dist/server/runners/index.d.ts +1 -0
- package/dist/server/runners/index.d.ts.map +1 -1
- package/dist/server/runners/index.js +1 -0
- package/dist/server/runners/index.js.map +1 -1
- package/dist/server/runners/runner.service.d.ts +22 -8
- package/dist/server/runners/runner.service.d.ts.map +1 -1
- package/dist/server/runners/runner.service.js +112 -14
- package/dist/server/runners/runner.service.js.map +1 -1
- package/dist/server/runners/runner.store.d.ts +10 -1
- package/dist/server/runners/runner.store.d.ts.map +1 -1
- package/dist/server/runners/runner.store.js +117 -4
- package/dist/server/runners/runner.store.js.map +1 -1
- package/dist/server/runners/sweeper.d.ts +5 -0
- package/dist/server/runners/sweeper.d.ts.map +1 -1
- package/dist/server/runners/sweeper.js +4 -2
- package/dist/server/runners/sweeper.js.map +1 -1
- package/dist/server/runners/workspaces.d.ts +33 -0
- package/dist/server/runners/workspaces.d.ts.map +1 -0
- package/dist/server/runners/workspaces.js +248 -0
- package/dist/server/runners/workspaces.js.map +1 -0
- package/dist/server/testing.d.ts +0 -2
- package/dist/server/testing.d.ts.map +1 -1
- package/dist/server/testing.js +1 -4
- package/dist/server/testing.js.map +1 -1
- package/dist/server/tokens.d.ts +12 -9
- package/dist/server/tokens.d.ts.map +1 -1
- package/dist/server/tokens.js +6 -2
- package/dist/server/tokens.js.map +1 -1
- package/dist/shared/access.d.ts +2 -6
- package/dist/shared/access.d.ts.map +1 -1
- package/dist/shared/access.js +2 -6
- package/dist/shared/access.js.map +1 -1
- package/dist/shared/agents.d.ts +128 -165
- package/dist/shared/agents.d.ts.map +1 -1
- package/dist/shared/agents.js +46 -97
- package/dist/shared/agents.js.map +1 -1
- package/dist/shared/conversations.d.ts +43 -89
- package/dist/shared/conversations.d.ts.map +1 -1
- package/dist/shared/conversations.js +5 -24
- package/dist/shared/conversations.js.map +1 -1
- package/dist/shared/model-catalog.d.ts +48 -0
- package/dist/shared/model-catalog.d.ts.map +1 -0
- package/dist/shared/model-catalog.js +148 -0
- package/dist/shared/model-catalog.js.map +1 -0
- package/dist/shared/models.js +1 -1
- package/dist/shared/models.js.map +1 -1
- package/dist/shared/runners.d.ts +107 -17
- package/dist/shared/runners.d.ts.map +1 -1
- package/dist/shared/runners.js +49 -7
- package/dist/shared/runners.js.map +1 -1
- package/dist/shared/runs.d.ts +203 -1
- package/dist/shared/runs.d.ts.map +1 -1
- package/dist/shared/runs.js +24 -0
- package/dist/shared/runs.js.map +1 -1
- package/dist/shared/variables.d.ts +22 -0
- package/dist/shared/variables.d.ts.map +1 -1
- package/dist/shared/variables.js +9 -1
- package/dist/shared/variables.js.map +1 -1
- package/package.json +24 -26
- package/skills/nocobase-app-plugin-agents/SKILL.md +8 -7
- package/skills/nocobase-app-plugin-agents/references/agents.md +30 -0
- package/skills/nocobase-app-plugin-agents/references/distribution.md +21 -4
- package/skills/nocobase-app-plugin-agents/references/extension-points.md +30 -20
- package/skills/nocobase-app-plugin-agents/references/model-services.md +17 -0
- package/skills/nocobase-app-plugin-agents/references/runners.md +15 -1
- package/skills/nocobase-app-plugin-agents/references/setup-and-config.md +4 -7
- package/skills/nocobase-app-plugin-agents/references/variables-skills-usage.md +4 -4
- package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +33 -32
- package/dist/client/chat/settings-section.d.ts +0 -5
- package/dist/client/chat/settings-section.d.ts.map +0 -1
- package/dist/client/chat/settings-section.js +0 -76
- package/dist/client/chat/settings-section.js.map +0 -1
- package/dist/client/components/agent-fields.d.ts +0 -45
- package/dist/client/components/agent-fields.d.ts.map +0 -1
- package/dist/client/components/agent-fields.js +0 -83
- package/dist/client/components/agent-fields.js.map +0 -1
- package/dist/client/components/agent-type.d.ts +0 -32
- package/dist/client/components/agent-type.d.ts.map +0 -1
- package/dist/client/components/agent-type.js +0 -80
- package/dist/client/components/agent-type.js.map +0 -1
- package/dist/client/components/model-entries.d.ts +0 -35
- package/dist/client/components/model-entries.d.ts.map +0 -1
- package/dist/client/components/model-entries.js +0 -82
- package/dist/client/components/model-entries.js.map +0 -1
- package/dist/client/hooks/use-agent-save.d.ts +0 -9
- package/dist/client/hooks/use-agent-save.d.ts.map +0 -1
- package/dist/client/hooks/use-agent-save.js +0 -40
- package/dist/client/hooks/use-agent-save.js.map +0 -1
- package/dist/client/hooks/use-model-catalog.d.ts +0 -9
- package/dist/client/hooks/use-model-catalog.d.ts.map +0 -1
- package/dist/client/hooks/use-model-catalog.js +0 -27
- package/dist/client/hooks/use-model-catalog.js.map +0 -1
- package/dist/client/lib/tool-policy.d.ts +0 -5
- package/dist/client/lib/tool-policy.d.ts.map +0 -1
- package/dist/client/lib/tool-policy.js +0 -10
- package/dist/client/lib/tool-policy.js.map +0 -1
- package/dist/client/online/default-model.d.ts +0 -5
- package/dist/client/online/default-model.d.ts.map +0 -1
- package/dist/client/online/default-model.js +0 -65
- package/dist/client/online/default-model.js.map +0 -1
- package/dist/client/pages/agents/agent-model.d.ts +0 -73
- package/dist/client/pages/agents/agent-model.d.ts.map +0 -1
- package/dist/client/pages/agents/agent-model.js +0 -172
- package/dist/client/pages/agents/agent-model.js.map +0 -1
- package/dist/client/pages/agents/detail/brief-preview.d.ts +0 -7
- package/dist/client/pages/agents/detail/brief-preview.d.ts.map +0 -1
- package/dist/client/pages/agents/detail/brief-preview.js +0 -43
- package/dist/client/pages/agents/detail/brief-preview.js.map +0 -1
- package/dist/client/pages/agents/detail/history.d.ts +0 -11
- package/dist/client/pages/agents/detail/history.d.ts.map +0 -1
- package/dist/client/pages/agents/detail/history.js +0 -149
- package/dist/client/pages/agents/detail/history.js.map +0 -1
- package/dist/client/pages/agents/detail/index.d.ts +0 -3
- package/dist/client/pages/agents/detail/index.d.ts.map +0 -1
- package/dist/client/pages/agents/detail/index.js +0 -241
- package/dist/client/pages/agents/detail/index.js.map +0 -1
- package/dist/client/pages/agents/detail/sections.d.ts +0 -22
- package/dist/client/pages/agents/detail/sections.d.ts.map +0 -1
- package/dist/client/pages/agents/detail/sections.js +0 -311
- package/dist/client/pages/agents/detail/sections.js.map +0 -1
- package/dist/client/pages/agents/detail/tab-draft.d.ts +0 -43
- package/dist/client/pages/agents/detail/tab-draft.d.ts.map +0 -1
- package/dist/client/pages/agents/detail/tab-draft.js +0 -115
- package/dist/client/pages/agents/detail/tab-draft.js.map +0 -1
- package/dist/client/pages/agents/detail/unsaved-bar.d.ts +0 -13
- package/dist/client/pages/agents/detail/unsaved-bar.d.ts.map +0 -1
- package/dist/client/pages/agents/detail/unsaved-bar.js +0 -21
- package/dist/client/pages/agents/detail/unsaved-bar.js.map +0 -1
- package/dist/client/pages/agents/new.d.ts +0 -3
- package/dist/client/pages/agents/new.d.ts.map +0 -1
- package/dist/client/pages/agents/new.js +0 -149
- package/dist/client/pages/agents/new.js.map +0 -1
- package/dist/client/pages/agents/preset-picker.d.ts +0 -8
- package/dist/client/pages/agents/preset-picker.d.ts.map +0 -1
- package/dist/client/pages/agents/preset-picker.js +0 -41
- package/dist/client/pages/agents/preset-picker.js.map +0 -1
- package/dist/server/core/consultations/consultation.service.d.ts +0 -59
- package/dist/server/core/consultations/consultation.service.d.ts.map +0 -1
- package/dist/server/core/consultations/consultation.service.js +0 -195
- package/dist/server/core/consultations/consultation.service.js.map +0 -1
- package/dist/server/core/consultations/index.d.ts +0 -3
- package/dist/server/core/consultations/index.d.ts.map +0 -1
- package/dist/server/core/consultations/index.js +0 -3
- package/dist/server/core/consultations/index.js.map +0 -1
- package/dist/server/core/consultations/prompt.d.ts +0 -41
- package/dist/server/core/consultations/prompt.d.ts.map +0 -1
- package/dist/server/core/consultations/prompt.js +0 -64
- package/dist/server/core/consultations/prompt.js.map +0 -1
- package/dist/server/core/presets/index.d.ts +0 -19
- package/dist/server/core/presets/index.d.ts.map +0 -1
- package/dist/server/core/presets/index.js +0 -28
- package/dist/server/core/presets/index.js.map +0 -1
- package/dist/server/online/cli-command.d.ts +0 -20
- package/dist/server/online/cli-command.d.ts.map +0 -1
- package/dist/server/online/cli-command.js +0 -345
- package/dist/server/online/cli-command.js.map +0 -1
- package/dist/server/online/consult-tool.d.ts +0 -54
- package/dist/server/online/consult-tool.d.ts.map +0 -1
- package/dist/server/online/consult-tool.js +0 -177
- package/dist/server/online/consult-tool.js.map +0 -1
- package/dist/server/online/executor.d.ts +0 -83
- package/dist/server/online/executor.d.ts.map +0 -1
- package/dist/server/online/executor.js +0 -714
- package/dist/server/online/executor.js.map +0 -1
- package/dist/server/online/sandbox.d.ts +0 -32
- package/dist/server/online/sandbox.d.ts.map +0 -1
- package/dist/server/online/sandbox.js +0 -246
- package/dist/server/online/sandbox.js.map +0 -1
- package/dist/server/online/scripted.d.ts +0 -12
- package/dist/server/online/scripted.d.ts.map +0 -1
- package/dist/server/online/scripted.js +0 -176
- package/dist/server/online/scripted.js.map +0 -1
- package/dist/server/online/tools.d.ts +0 -17
- package/dist/server/online/tools.d.ts.map +0 -1
- package/dist/server/online/tools.js +0 -31
- package/dist/server/online/tools.js.map +0 -1
- package/dist/server/vendor/THIRD_PARTY_LICENSES.txt +0 -782
- package/dist/server/vendor/just-bash.d.ts +0 -83
- package/dist/server/vendor/just-bash.js +0 -2102
- package/dist/shared/presets.d.ts +0 -30
- package/dist/shared/presets.d.ts.map +0 -1
- package/dist/shared/presets.js +0 -2
- package/dist/shared/presets.js.map +0 -1
- package/skills/nocobase-app-plugin-agents/references/online-agents.md +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../shared/agents.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../shared/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,YAAY,GAGb,MAAM,0BAA0B,CAAC;AAIlC,kGAAkG;AAClG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAI3D;;;GAGG;AACH,MAAM,CA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GAAG;IAClC,MAAM;IACN,aAAa;IACb,QAAQ;IACR,cAAc;IACd,cAAc;IACd,SAAS;CACD,CAAC;AA8DX,6FAA6F;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,cAAc,EAAE,aAAa;IAC7B,eAAe,EAAE;QACf,8GAA8G;QAC9G,kGAAkG;KACnG;IACD,cAAc,EAAE;QACd,uCAAuC;QACvC,YAAY;QACZ,wCAAwC;QACxC,oCAAoC;QACpC,0BAA0B;KAC3B;IACD,aAAa,EAAE,EAAE,GAAG,MAAM;CAC3B,CAAC"}
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* ## Model
|
|
7
7
|
*
|
|
8
|
-
* - A **conversation** belongs to one person (its owner) and is bound to one agent
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* starts another conversation. Only the owner reads its content:
|
|
8
|
+
* - A **conversation** belongs to one person (its owner) and is bound to one agent, which answers on a runner. Its
|
|
9
|
+
* **mode** is `runner`; conversations an earlier version answered with an online agent keep `online`. Only the owner
|
|
10
|
+
* reads its content:
|
|
12
11
|
* the API answers 404 to everyone else, administrators included, and the runs a conversation starts are hidden from
|
|
13
12
|
* anyone the run does not involve. Administrators see usage only.
|
|
14
13
|
* - A **message** is what the owner sent (`user`), what the agent replied (`assistant`), or a notice the server wrote
|
|
@@ -17,16 +16,17 @@
|
|
|
17
16
|
* - Each message the owner sends wakes the agent: a run with the subject `{ kind: 'conversation', id }`, woken by the
|
|
18
17
|
* owner (whose permissions bound it). A message sent while the agent is working joins that run as input; a message
|
|
19
18
|
* sent while it waits for a runner joins the waiting run. Every text the agent writes in a run becomes an assistant
|
|
20
|
-
* message, in order, as the runner reports it.
|
|
21
|
-
* (`metadata.streaming`) whose content grows until the reply is final, in place, at the same `seq`. The run's
|
|
22
|
-
* step-by-step transcript stays readable through the runs API
|
|
19
|
+
* message, in order, as the runner reports it. The run's step-by-step transcript stays readable through the runs API
|
|
23
20
|
* (`/api/agents/admin/runs/:runId/events`), for the "thinking / reading X" lines.
|
|
24
21
|
* - **Sessions**: a run resumes the session the same runner kept for the conversation. On another runner it starts a
|
|
25
22
|
* fresh session and its prompt carries the last `CONVERSATION_HISTORY_IN_PROMPT` messages and the previous run's
|
|
26
23
|
* summary. Switching the conversation's agent (to the system default and back) starts a new session every time.
|
|
27
|
-
* - **Availability**: a message is always saved. When the agent is
|
|
28
|
-
* online
|
|
29
|
-
* conversation
|
|
24
|
+
* - **Availability**: a message is always saved. When the agent is not enabled, the owner may no longer use it, or no
|
|
25
|
+
* online runner that has its tool and model may run the owner's work (including claim's feature and team-only
|
|
26
|
+
* variable restrictions), the conversation reports `offline` with the reason; the owner may switch the conversation
|
|
27
|
+
* to the system default agent and later switch back. Switching transfers unanswered queued messages. Manual fallback
|
|
28
|
+
* skips an unavailable system default, and restoring requires the original agent to be available again. The owner is
|
|
29
|
+
* the one answerable for their conversation, so none of this waits for anyone's confirmation.
|
|
30
30
|
* - **Titles**: the first message's first `CONVERSATION_TITLE_AUTO_CHARS` characters (`auto`), until the agent sets one
|
|
31
31
|
* of at most `CONVERSATION_TITLE_AGENT_MAX` characters (`agent`), which it may do until the owner renames the
|
|
32
32
|
* conversation (`user`); after that the agent's attempts answer `CONVERSATION_CONFLICT` with `reason: 'titleLocked'`.
|
|
@@ -48,8 +48,7 @@
|
|
|
48
48
|
* which attaches it to the conversation. From then on only the conversation's owner, and a run of its agent on that
|
|
49
49
|
* conversation (by its run token), may read it. An upload never sent is purged after `CHAT_ATTACHMENT_ORPHAN_HOURS`.
|
|
50
50
|
* The agent reads the files' names, types and ids with the message; a runner agent downloads one into its working
|
|
51
|
-
* directory with the CLI (`conversation attachment download <file-id>`)
|
|
52
|
-
* them (`CHAT_IMAGE_TO_MODEL_MAX` bytes each at most) and only the names of the rest. Agents do not send files back.
|
|
51
|
+
* directory with the CLI (`conversation attachment download <file-id>`). Agents do not send files back.
|
|
53
52
|
*
|
|
54
53
|
* ## Realtime
|
|
55
54
|
*
|
|
@@ -58,9 +57,7 @@
|
|
|
58
57
|
* open, because announcements reach only the browsers connected to the instance that made the change.
|
|
59
58
|
*/
|
|
60
59
|
import type { FailureReason, RunStatus } from '@nocobase/agent-protocol';
|
|
61
|
-
import type { OnlineModelEntry } from './agents.js';
|
|
62
60
|
import type { I18nText } from './i18n.js';
|
|
63
|
-
import type { ModelCatalog } from './models.js';
|
|
64
61
|
/** The run subject kind of a conversation. */
|
|
65
62
|
export declare const CONVERSATION_SUBJECT = "conversation";
|
|
66
63
|
/** The automatic title: the first message's first characters, without Markdown punctuation. */
|
|
@@ -77,8 +74,6 @@ export declare const CHAT_ATTACHMENT_SIZE_MAX: number;
|
|
|
77
74
|
export declare const CHAT_ATTACHMENTS_PER_MESSAGE_MAX = 10;
|
|
78
75
|
/** How long an upload not sent with a message is kept. */
|
|
79
76
|
export declare const CHAT_ATTACHMENT_ORPHAN_HOURS = 24;
|
|
80
|
-
/** The largest image an online agent's model is shown; a larger one is listed by name only. */
|
|
81
|
-
export declare const CHAT_IMAGE_TO_MODEL_MAX: number;
|
|
82
77
|
/** The raster images shown inline, by extension: the declared type must be the one listed. */
|
|
83
78
|
export declare const INLINE_IMAGE_TYPES: Readonly<Record<string, string>>;
|
|
84
79
|
/** A safe raster image, whose declared type matches its extension; anything else is only downloaded. */
|
|
@@ -193,17 +188,17 @@ export interface ConversationAgent {
|
|
|
193
188
|
readonly archived: boolean;
|
|
194
189
|
}
|
|
195
190
|
/** Why a conversation's agent cannot answer now. */
|
|
196
|
-
export declare const OFFLINE_REASONS: readonly ["agentMissing", "agentArchived", "forbidden", "noRunner", "
|
|
191
|
+
export declare const OFFLINE_REASONS: readonly ["agentMissing", "agentArchived", "forbidden", "noRunner", "othersPersonal"];
|
|
197
192
|
export type OfflineReason = (typeof OFFLINE_REASONS)[number];
|
|
198
193
|
/** Whether the agent can answer now. */
|
|
199
194
|
export interface ChatAvailability {
|
|
200
195
|
readonly online: boolean;
|
|
201
196
|
/** Null when online. */
|
|
202
197
|
readonly reason: OfflineReason | null;
|
|
203
|
-
/** Runners that may run the agent for the owner now
|
|
198
|
+
/** Runners that may run the agent for the owner now. */
|
|
204
199
|
readonly onlineRunners: number;
|
|
205
200
|
}
|
|
206
|
-
/** A conversation's mode:
|
|
201
|
+
/** A conversation's mode: `runner`, or `online` for a conversation an earlier version answered with an online agent. */
|
|
207
202
|
export type ConversationMode = 'online' | 'runner';
|
|
208
203
|
/** The conversation's open run: queued, waiting for a runner, or working. */
|
|
209
204
|
export interface ConversationRun {
|
|
@@ -220,20 +215,10 @@ export interface ConversationSummary {
|
|
|
220
215
|
readonly titleSource: TitleSource;
|
|
221
216
|
readonly category: ConversationCategory;
|
|
222
217
|
readonly source: ConversationSource;
|
|
223
|
-
/** `online` or `runner`, for the conversation's whole life. */
|
|
224
218
|
readonly mode: ConversationMode;
|
|
225
219
|
readonly agent: ConversationAgent;
|
|
226
|
-
/**
|
|
227
|
-
* While the conversation uses the system default agent in place of its own (`fallback`): the agent it switches back
|
|
228
|
-
* to. Null otherwise.
|
|
229
|
-
*/
|
|
220
|
+
/** While the conversation uses the system default agent in place of its own (`fallback`): the agent it switches back to. */
|
|
230
221
|
readonly fallbackFrom: ConversationAgent | null;
|
|
231
|
-
/**
|
|
232
|
-
* An online conversation: the entry of its agent's list it answers with, the owner's choice
|
|
233
|
-
* (`ConversationPatch.model`) while the agent lists it, else the agent's first. Null for a runner conversation, or
|
|
234
|
-
* when the agent is gone.
|
|
235
|
-
*/
|
|
236
|
-
readonly model: OnlineModelEntry | null;
|
|
237
222
|
/** False when the agent wrote since the owner last marked it read. */
|
|
238
223
|
readonly read: boolean;
|
|
239
224
|
readonly lastMessageAt: string;
|
|
@@ -243,23 +228,12 @@ export interface ConversationSummary {
|
|
|
243
228
|
/** The open run, if any: the panel shows "working" and offers to stop. */
|
|
244
229
|
readonly run: ConversationRun | null;
|
|
245
230
|
}
|
|
246
|
-
/** An entry a conversation may answer with, named as the person reads it: its service's title and the model's label. */
|
|
247
|
-
export interface ChatModelChoice extends OnlineModelEntry {
|
|
248
|
-
/** Its service's title; its name when no enabled service has it any more. */
|
|
249
|
-
readonly serviceTitle: string;
|
|
250
|
-
/** The model's label in its service; its id when the service no longer offers it. */
|
|
251
|
-
readonly modelLabel: string;
|
|
252
|
-
}
|
|
253
|
-
/** The entries named from the catalog (`ChatModelChoice`); what the catalog no longer has keeps its ids. */
|
|
254
|
-
export declare function chatModelChoices(entries: readonly OnlineModelEntry[], catalog: Pick<ModelCatalog, 'services'>): ChatModelChoice[];
|
|
255
231
|
/** One conversation as the panel opens it. */
|
|
256
232
|
export interface ConversationDetail extends ConversationSummary {
|
|
257
233
|
readonly availability: ChatAvailability;
|
|
258
|
-
/**
|
|
259
|
-
readonly models: readonly ChatModelChoice[];
|
|
260
|
-
/** The system default agent may take over (`POST …/fallback`). */
|
|
234
|
+
/** Another agent may take over (`POST …/fallback`): the system default agent, when it can answer. */
|
|
261
235
|
readonly canFallback: boolean;
|
|
262
|
-
/** The conversation
|
|
236
|
+
/** The conversation uses another agent and its original agent can answer again (`POST …/restore`). */
|
|
263
237
|
readonly canRestore: boolean;
|
|
264
238
|
}
|
|
265
239
|
/** `aiMessages.content`. */
|
|
@@ -279,6 +253,18 @@ export type ConversationNotice =
|
|
|
279
253
|
readonly agentId: string;
|
|
280
254
|
readonly fromAgentId: string;
|
|
281
255
|
}
|
|
256
|
+
/** Written by earlier versions: the conversation used the online fallback agent in place of its runner agent. */
|
|
257
|
+
| {
|
|
258
|
+
readonly code: 'switchedToOnline';
|
|
259
|
+
readonly agentId: string;
|
|
260
|
+
readonly fromAgentId: string;
|
|
261
|
+
}
|
|
262
|
+
/** Written by earlier versions: the configured online fallback could not answer. */
|
|
263
|
+
| {
|
|
264
|
+
readonly code: 'onlineFallbackUnavailable';
|
|
265
|
+
readonly fromAgentId: string;
|
|
266
|
+
readonly reason: OfflineReason;
|
|
267
|
+
}
|
|
282
268
|
/** The conversation is back on its own agent. */
|
|
283
269
|
| {
|
|
284
270
|
readonly code: 'switchedBack';
|
|
@@ -311,11 +297,12 @@ export type ConversationNotice =
|
|
|
311
297
|
export declare const CONSULTATION_STATES: readonly ["running", "completed", "failed", "refused"];
|
|
312
298
|
export type ConsultationState = (typeof CONSULTATION_STATES)[number];
|
|
313
299
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
* transcript and usage.
|
|
300
|
+
* Written by earlier versions: the online agent consulted another one (`ask_agent`) while answering, one card per call.
|
|
301
|
+
* The consulted agent's own run (`runId`) has its transcript and usage.
|
|
317
302
|
*/
|
|
318
303
|
export interface ConsultationNotice {
|
|
304
|
+
/** Display-only marker: the requested subject could not be resolved; agentName is a historical snapshot. */
|
|
305
|
+
readonly identitySnapshot?: boolean;
|
|
319
306
|
readonly code: 'consultation';
|
|
320
307
|
/** The tool call: one card per call. */
|
|
321
308
|
readonly callId: string;
|
|
@@ -349,14 +336,13 @@ export interface MessageMetadata {
|
|
|
349
336
|
readonly runEventSeq?: number;
|
|
350
337
|
/** A system message: what happened. */
|
|
351
338
|
readonly notice?: ConversationNotice;
|
|
339
|
+
/** Written by earlier versions: an online fallback failure no longer applied. */
|
|
340
|
+
readonly onlineFallbackResolved?: boolean;
|
|
352
341
|
/** The id the browser gave a message it sent, echoed so it can replace its optimistic copy. */
|
|
353
342
|
readonly clientId?: string;
|
|
354
|
-
/**
|
|
355
|
-
* An assistant message an online agent is still writing: its content grows in place (same id and `seq`) until the reply
|
|
356
|
-
* is final, when the flag goes. Fetch messages again from before the first streaming one to see it grow.
|
|
357
|
-
*/
|
|
343
|
+
/** Written by earlier versions: an online agent's reply still being written. */
|
|
358
344
|
readonly streaming?: boolean;
|
|
359
|
-
/**
|
|
345
|
+
/** Written by earlier versions: a draft whose run ended before the reply was final. */
|
|
360
346
|
readonly interrupted?: boolean;
|
|
361
347
|
}
|
|
362
348
|
/** A file sent with a message (`SendMessageRequest.attachmentIds`), or an upload not sent yet. */
|
|
@@ -412,7 +398,6 @@ export interface ConversationMessage {
|
|
|
412
398
|
* | POST | `fallback` | | `ConversationDetail` |
|
|
413
399
|
* | POST | `restore` | | `ConversationDetail` |
|
|
414
400
|
* | GET | `agents` | | `ChatAgent[]` |
|
|
415
|
-
* | POST | `copyAgent` | `CopyAgentRequest` | `Agent` |
|
|
416
401
|
* | GET | `preferences` | | `ChatPreferences` |
|
|
417
402
|
* | PATCH | `preferences` | `ChatPreferencesPatch` | `ChatPreferences` |
|
|
418
403
|
* | GET | `settings` | | `ChatSettings` |
|
|
@@ -434,7 +419,6 @@ export declare const CHAT_ROUTES: {
|
|
|
434
419
|
readonly restore: "agents/conversations/:conversationId/restore";
|
|
435
420
|
readonly start: "agents/conversations/start";
|
|
436
421
|
readonly agents: "agents/chatAgents";
|
|
437
|
-
readonly copyAgent: "agents/:agentId/copy";
|
|
438
422
|
readonly preferences: "agents/chatPreferences";
|
|
439
423
|
readonly settings: "agents/chatSettings";
|
|
440
424
|
readonly attachments: "agents/chatAttachments";
|
|
@@ -468,32 +452,20 @@ export interface ConversationPage {
|
|
|
468
452
|
/** `POST conversations`. Creating starts no run; the first message does. */
|
|
469
453
|
export interface CreateConversationRequest {
|
|
470
454
|
/**
|
|
471
|
-
* The agent to chat with, which
|
|
472
|
-
*
|
|
473
|
-
*
|
|
474
|
-
* (`ChatSettings.defaultAgentId`), else `CONVERSATION_CONFLICT` `noChatAgent`.
|
|
455
|
+
* The agent to chat with, which must be enabled. Without one: the person's default agent
|
|
456
|
+
* (`ChatPreferences.defaultAgentId`) while it is enabled, else the system default (`ChatSettings.defaultAgentId`),
|
|
457
|
+
* else `CONVERSATION_CONFLICT` `noChatAgent`.
|
|
475
458
|
*/
|
|
476
459
|
readonly agentId?: string;
|
|
477
460
|
/** An explicit title (`user`); otherwise the first message gives one. */
|
|
478
461
|
readonly title?: string;
|
|
479
462
|
/** `panel` by default; otherwise a registered source. */
|
|
480
463
|
readonly source?: ConversationSource;
|
|
481
|
-
/**
|
|
482
|
-
* An online agent: the entry of its list (`ChatAgent.models`) the conversation answers with, as `ConversationPatch.model`
|
|
483
|
-
* sets it later; null or left out for the agent's default. 400 `INVALID_REQUEST` (`MODEL_NOT_LISTED`) for one the
|
|
484
|
-
* agent does not list.
|
|
485
|
-
*/
|
|
486
|
-
readonly model?: OnlineModelEntry | null;
|
|
487
464
|
}
|
|
488
|
-
/**
|
|
489
|
-
* `PATCH conversation`: rename (the title becomes `user`'s and the agent may no longer change it), archive, or choose
|
|
490
|
-
* the model an online conversation answers with: one of `ConversationDetail.models`, or null for the agent's default.
|
|
491
|
-
* The choice applies from the next run; a model that fails fails the run, nothing falls back to another.
|
|
492
|
-
*/
|
|
465
|
+
/** `PATCH conversation`: rename (the title becomes `user`'s and the agent may no longer change it), or archive. */
|
|
493
466
|
export interface ConversationPatch {
|
|
494
467
|
readonly title?: string;
|
|
495
468
|
readonly archived?: boolean;
|
|
496
|
-
readonly model?: OnlineModelEntry | null;
|
|
497
469
|
}
|
|
498
470
|
/**
|
|
499
471
|
* `GET messages`: without a page token, the newest `pageSize` messages; `meta.nextPageToken` pages back through older
|
|
@@ -570,29 +542,11 @@ export interface ChatAgent {
|
|
|
570
542
|
readonly nameText: I18nText | null;
|
|
571
543
|
readonly descriptionText: I18nText | null;
|
|
572
544
|
readonly avatar: string | null;
|
|
573
|
-
/** `online` or `runner`: the mode of the conversations it is started in. */
|
|
574
|
-
readonly type: 'online' | 'runner';
|
|
575
|
-
/**
|
|
576
|
-
* An online agent: the entries of its list a new conversation may answer with (`CreateConversationRequest.model`), in
|
|
577
|
-
* order, the first its default; empty for a runner agent.
|
|
578
|
-
*/
|
|
579
|
-
readonly models: readonly ChatModelChoice[];
|
|
580
|
-
/** The person's own agent, which only they may use (a "copy for myself"). */
|
|
581
|
-
readonly personal: boolean;
|
|
582
545
|
readonly isSystemDefault: boolean;
|
|
583
546
|
readonly isMyDefault: boolean;
|
|
584
547
|
readonly availability: ChatAvailability;
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
* `POST copyAgent`: a private copy of an agent the person may wake, owned by them and usable only by them. The copy
|
|
588
|
-
* takes the agent's description, avatar, tool, model, instructions, business actions, skills, runners and limits, not
|
|
589
|
-
* its variables.
|
|
590
|
-
*/
|
|
591
|
-
export interface CopyAgentRequest {
|
|
592
|
-
/** The copy's name; `<name> (copy)` by default. */
|
|
593
|
-
readonly name?: string;
|
|
594
|
-
/** Also make the copy the person's default online agent. */
|
|
595
|
-
readonly makeDefault?: boolean;
|
|
548
|
+
/** Only personal runners have it: it takes only their owners' work. */
|
|
549
|
+
readonly personalOnly: boolean;
|
|
596
550
|
}
|
|
597
551
|
/** The person's own chat settings ("Profile › Agent"). */
|
|
598
552
|
export interface ChatPreferences {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../shared/conversations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AAEnD,+FAA+F;AAC/F,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,0CAA0C;AAC1C,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,QAAS,CAAC;AAC1C,8CAA8C;AAC9C,eAAO,MAAM,wBAAwB,EAAE,MAAyB,CAAC;AACjE,mCAAmC;AACnC,eAAO,MAAM,gCAAg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,EAAE,sBAAsB,CAAC;IACtC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC,CAAC"}
|
|
@@ -14,8 +14,6 @@ export const CHAT_ATTACHMENT_SIZE_MAX = 20 * 1024 * 1024;
|
|
|
14
14
|
export const CHAT_ATTACHMENTS_PER_MESSAGE_MAX = 10;
|
|
15
15
|
/** How long an upload not sent with a message is kept. */
|
|
16
16
|
export const CHAT_ATTACHMENT_ORPHAN_HOURS = 24;
|
|
17
|
-
/** The largest image an online agent's model is shown; a larger one is listed by name only. */
|
|
18
|
-
export const CHAT_IMAGE_TO_MODEL_MAX = 5 * 1024 * 1024;
|
|
19
17
|
/** The raster images shown inline, by extension: the declared type must be the one listed. */
|
|
20
18
|
export const INLINE_IMAGE_TYPES = {
|
|
21
19
|
png: 'image/png',
|
|
@@ -74,27 +72,15 @@ export const PAGE_CONTEXT_KIND_PATTERN = /^[a-zA-Z][a-zA-Z0-9._-]{0,31}$/u;
|
|
|
74
72
|
export const OFFLINE_REASONS = [
|
|
75
73
|
/** The agent was deleted. */
|
|
76
74
|
'agentMissing',
|
|
77
|
-
/** The agent is
|
|
75
|
+
/** The agent is not enabled. */
|
|
78
76
|
'agentArchived',
|
|
79
77
|
/** The owner may no longer wake the agent. */
|
|
80
78
|
'forbidden',
|
|
81
|
-
/** No online runner
|
|
79
|
+
/** No online runner that has the agent's tool and model may run the owner's work. */
|
|
82
80
|
'noRunner',
|
|
83
|
-
/**
|
|
84
|
-
'
|
|
81
|
+
/** Only other people's personal runners have the agent's tool and model. */
|
|
82
|
+
'othersPersonal',
|
|
85
83
|
];
|
|
86
|
-
/** The entries named from the catalog (`ChatModelChoice`); what the catalog no longer has keeps its ids. */
|
|
87
|
-
export function chatModelChoices(entries, catalog) {
|
|
88
|
-
return entries.map((entry) => {
|
|
89
|
-
const service = catalog.services.find((item) => item.name === entry.modelService);
|
|
90
|
-
const option = service?.models.find((item) => item.value === entry.model);
|
|
91
|
-
return {
|
|
92
|
-
...entry,
|
|
93
|
-
serviceTitle: service?.title || entry.modelService,
|
|
94
|
-
modelLabel: option?.label || entry.model,
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
84
|
/** How a consultation went: asked and not answered yet, answered, failed, or refused before it started. */
|
|
99
85
|
export const CONSULTATION_STATES = [
|
|
100
86
|
'running',
|
|
@@ -124,7 +110,6 @@ export const CONSULTATION_STATES = [
|
|
|
124
110
|
* | POST | `fallback` | | `ConversationDetail` |
|
|
125
111
|
* | POST | `restore` | | `ConversationDetail` |
|
|
126
112
|
* | GET | `agents` | | `ChatAgent[]` |
|
|
127
|
-
* | POST | `copyAgent` | `CopyAgentRequest` | `Agent` |
|
|
128
113
|
* | GET | `preferences` | | `ChatPreferences` |
|
|
129
114
|
* | PATCH | `preferences` | `ChatPreferencesPatch` | `ChatPreferences` |
|
|
130
115
|
* | GET | `settings` | | `ChatSettings` |
|
|
@@ -146,7 +131,6 @@ export const CHAT_ROUTES = {
|
|
|
146
131
|
restore: 'agents/conversations/:conversationId/restore',
|
|
147
132
|
start: 'agents/conversations/start',
|
|
148
133
|
agents: 'agents/chatAgents',
|
|
149
|
-
copyAgent: 'agents/:agentId/copy',
|
|
150
134
|
preferences: 'agents/chatPreferences',
|
|
151
135
|
settings: 'agents/chatSettings',
|
|
152
136
|
attachments: 'agents/chatAttachments',
|
|
@@ -166,10 +150,7 @@ export const CONVERSATION_CONFLICTS = [
|
|
|
166
150
|
'noChatAgent',
|
|
167
151
|
/** The agent tried to set the title after the owner renamed the conversation. */
|
|
168
152
|
'titleLocked',
|
|
169
|
-
/**
|
|
170
|
-
* `fallback`: the conversation already uses the system default, or none is set or usable, or it is of the other type
|
|
171
|
-
* (a conversation keeps its mode).
|
|
172
|
-
*/
|
|
153
|
+
/** `fallback`: the conversation already uses another agent in place of its own, or the system default cannot answer. */
|
|
173
154
|
'noFallback',
|
|
174
155
|
/** `restore`: the conversation is not on the system default, or its own agent is still unavailable. */
|
|
175
156
|
'noRestore',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../shared/conversations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../shared/conversations.ts"],"names":[],"mappings":"AA8DA,8CAA8C;AAC9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAEnD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAChD,0CAA0C;AAC1C,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAC/C,0CAA0C;AAC1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAC1C,4DAA4D;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAC1C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,wBAAwB,GAAW,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,mCAAmC;AACnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,CAAC;AACnD,0DAA0D;AAC1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAC/C,8FAA8F;AAC9F,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,wGAAwG;AACxG,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,GAAW;IACzD,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC;IAChE,OAAO,kBAAkB,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,IAAI,CAAC;AACxD,CAAC;AAED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,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The models agents are named after. Runners report each coding tool's models by the ids the tool lists them under;
|
|
3
|
+
* the server keeps one agent per tool and model (`agents.ts`), so the same model reported under two spellings has to
|
|
4
|
+
* become one agent: `normalizeModel` turns what a runner reports into the id the agent keeps, and `agentNameOf` names
|
|
5
|
+
* it, such as "Claude · Opus 5.5" for Claude Code's `claude-opus-5-5`.
|
|
6
|
+
*
|
|
7
|
+
* The catalog ships with the plugin. A model it does not know still becomes an agent, named after its id, with nothing
|
|
8
|
+
* suggested for what it is good at. Keep it to the models the tools offer today, checked against the same lists as
|
|
9
|
+
* `TOOL_MODEL_SUGGESTIONS` in `@nocobase/agent-protocol`; a model leaving it only loses its suggestion and its label.
|
|
10
|
+
*/
|
|
11
|
+
import type { AgentTool } from '@nocobase/agent-protocol';
|
|
12
|
+
/** A coding tool as agent names show it. */
|
|
13
|
+
export declare const TOOL_LABELS: Readonly<Record<AgentTool, string>>;
|
|
14
|
+
/** What the catalog knows about one model. */
|
|
15
|
+
export interface CatalogModel {
|
|
16
|
+
/** The model's id without a provider, as Claude Code or Codex take it. */
|
|
17
|
+
readonly id: string;
|
|
18
|
+
/** How names show it: `Opus 5.5`. */
|
|
19
|
+
readonly label: string;
|
|
20
|
+
/** Other ids the same model is listed under, such as Claude Code's `opus`. */
|
|
21
|
+
readonly aliases?: readonly string[];
|
|
22
|
+
/** What it is good at, suggested when someone enables its agent. */
|
|
23
|
+
readonly goodAt: {
|
|
24
|
+
readonly en: string;
|
|
25
|
+
readonly zh: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/** The models the catalog names. OpenCode and Pi list them as `provider/<id>` and are matched by `<id>`. */
|
|
29
|
+
export declare const MODEL_CATALOG: readonly CatalogModel[];
|
|
30
|
+
/**
|
|
31
|
+
* The id an agent keeps for what a runner reports: without a dated release suffix (`claude-haiku-4-5-20251001`), an
|
|
32
|
+
* alias (`opus`) resolved to the model it names, and for OpenCode and Pi the provider kept in front
|
|
33
|
+
* (`anthropic/claude-opus-5-5`; a nested id such as `alibaba-cn/kimi/kimi-k2.5` keeps everything after the provider).
|
|
34
|
+
* Case is kept: OpenCode and Pi take ids such as `minimax/MiniMax-M2.7` as written. Versions are never folded together:
|
|
35
|
+
* `gpt-6-sol` and `gpt-6.1-sol` are two models.
|
|
36
|
+
*/
|
|
37
|
+
export declare function normalizeModel(tool: AgentTool, reported: string): string;
|
|
38
|
+
/** What the catalog knows about a tool's model, normalized or not; undefined for a model it does not know. */
|
|
39
|
+
export declare function catalogEntry(tool: AgentTool, model: string): CatalogModel | undefined;
|
|
40
|
+
/** How names show a tool's model: the catalog's label, else its id without the provider. */
|
|
41
|
+
export declare function modelLabel(tool: AgentTool, model: string): string;
|
|
42
|
+
/** An agent's name for a tool and model: "Claude · Opus 5.5". */
|
|
43
|
+
export declare function agentNameOf(tool: AgentTool, model: string): string;
|
|
44
|
+
/** Whether two ids of one tool's model name the same model. */
|
|
45
|
+
export declare function sameModel(tool: AgentTool, a: string, b: string): boolean;
|
|
46
|
+
/** Display identity only. Unknown models retain their provider; execution identity never changes. */
|
|
47
|
+
export declare function discoveryKey(tool: AgentTool, model: string): string;
|
|
48
|
+
//# sourceMappingURL=model-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../shared/model-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,4CAA4C;AAC5C,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAK3D,CAAC;AAEF,8CAA8C;AAC9C,MAAM,WAAW,YAAY;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,KA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