@nocobase/app-plugin-agents 0.1.0-beta.1 → 0.1.0-beta.11
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 +398 -0
- package/README.md +129 -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 +101 -219
- package/dist/client/locales/en-US.d.ts.map +1 -1
- package/dist/client/locales/en-US.js +106 -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 +54 -0
- package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
- package/dist/client/locales/runtimes.en-US.js +57 -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 +57 -3
- package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
- package/dist/client/locales/skills.en-US.d.ts +1 -0
- package/dist/client/locales/skills.en-US.d.ts.map +1 -1
- package/dist/client/locales/skills.en-US.js +2 -1
- package/dist/client/locales/skills.en-US.js.map +1 -1
- package/dist/client/locales/skills.zh-CN.d.ts.map +1 -1
- package/dist/client/locales/skills.zh-CN.js +2 -1
- package/dist/client/locales/skills.zh-CN.js.map +1 -1
- package/dist/client/locales/zh-CN.d.ts.map +1 -1
- package/dist/client/locales/zh-CN.js +108 -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 +68 -0
- package/dist/client/pages/runtimes/workspace-diagnostics.js.map +1 -0
- package/dist/client/pages/skills/detail/index.d.ts.map +1 -1
- package/dist/client/pages/skills/detail/index.js +7 -10
- package/dist/client/pages/skills/detail/index.js.map +1 -1
- package/dist/client/pages/skills/index.d.ts.map +1 -1
- package/dist/client/pages/skills/index.js +2 -2
- package/dist/client/pages/skills/index.js.map +1 -1
- 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 +62 -2
- package/dist/database/migrations/202610020003_ag_create_runs.d.ts.map +1 -1
- package/dist/database/migrations/202610020003_ag_create_runs.js +0 -1
- package/dist/database/migrations/202610020003_ag_create_runs.js.map +1 -1
- 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/database/migrations/202610250001_ag_comment_runner_consent.d.ts +4 -0
- package/dist/database/migrations/202610250001_ag_comment_runner_consent.d.ts.map +1 -0
- package/dist/database/migrations/202610250001_ag_comment_runner_consent.js +41 -0
- package/dist/database/migrations/202610250001_ag_comment_runner_consent.js.map +1 -0
- package/dist/database/migrations/202610260001_ag_drop_directory_index.d.ts +4 -0
- package/dist/database/migrations/202610260001_ag_drop_directory_index.d.ts.map +1 -0
- package/dist/database/migrations/202610260001_ag_drop_directory_index.js +24 -0
- package/dist/database/migrations/202610260001_ag_drop_directory_index.js.map +1 -0
- package/dist/database/migrations/202610260001_ag_run_revision.d.ts +4 -0
- package/dist/database/migrations/202610260001_ag_run_revision.d.ts.map +1 -0
- package/dist/database/migrations/202610260001_ag_run_revision.js +19 -0
- package/dist/database/migrations/202610260001_ag_run_revision.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 +41 -37
- package/dist/server/composition.d.ts.map +1 -1
- package/dist/server/composition.js +66 -66
- 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 +64 -66
- 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 +47 -67
- package/dist/server/core/runs/claim.d.ts.map +1 -1
- package/dist/server/core/runs/claim.js +805 -313
- package/dist/server/core/runs/claim.js.map +1 -1
- package/dist/server/core/runs/comment-consent.d.ts +24 -0
- package/dist/server/core/runs/comment-consent.d.ts.map +1 -0
- package/dist/server/core/runs/comment-consent.js +116 -0
- package/dist/server/core/runs/comment-consent.js.map +1 -0
- 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 +9 -0
- package/dist/server/core/runs/identity.d.ts.map +1 -0
- package/dist/server/core/runs/identity.js +75 -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 +58 -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 +98 -50
- 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 +91 -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-data-purge.d.ts +15 -0
- package/dist/server/core/runs/run-data-purge.d.ts.map +1 -0
- package/dist/server/core/runs/run-data-purge.js +82 -0
- package/dist/server/core/runs/run-data-purge.js.map +1 -0
- package/dist/server/core/runs/run-requests.d.ts +245 -0
- package/dist/server/core/runs/run-requests.d.ts.map +1 -0
- package/dist/server/core/runs/run-requests.js +543 -0
- package/dist/server/core/runs/run-requests.js.map +1 -0
- package/dist/server/core/runs/run.service.d.ts +96 -11
- package/dist/server/core/runs/run.service.d.ts.map +1 -1
- package/dist/server/core/runs/run.service.js +921 -96
- package/dist/server/core/runs/run.service.js.map +1 -1
- package/dist/server/core/runs/run.store.d.ts +25 -3
- package/dist/server/core/runs/run.store.d.ts.map +1 -1
- package/dist/server/core/runs/run.store.js +52 -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 +1 -0
- package/dist/server/core/runs/sweeper.d.ts.map +1 -1
- package/dist/server/core/runs/sweeper.js +55 -10
- package/dist/server/core/runs/sweeper.js.map +1 -1
- package/dist/server/core/runs/transitions.d.ts +2 -2
- package/dist/server/core/runs/transitions.d.ts.map +1 -1
- package/dist/server/core/runs/transitions.js +80 -8
- 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/skills/skill.service.d.ts +6 -2
- package/dist/server/core/skills/skill.service.d.ts.map +1 -1
- package/dist/server/core/skills/skill.service.js +43 -58
- package/dist/server/core/skills/skill.service.js.map +1 -1
- package/dist/server/core/skills/skill.store.d.ts +14 -0
- package/dist/server/core/skills/skill.store.d.ts.map +1 -1
- package/dist/server/core/skills/skill.store.js +30 -0
- package/dist/server/core/skills/skill.store.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/kernel/scopes.d.ts.map +1 -1
- package/dist/server/kernel/scopes.js +3 -1
- package/dist/server/kernel/scopes.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 +8 -25
- package/dist/server/providers/agents.d.ts.map +1 -1
- package/dist/server/providers/agents.js +11 -75
- package/dist/server/providers/agents.js.map +1 -1
- package/dist/server/providers/runners.d.ts.map +1 -1
- package/dist/server/providers/runners.js +23 -0
- package/dist/server/providers/runners.js.map +1 -1
- package/dist/server/routes/admin.d.ts.map +1 -1
- package/dist/server/routes/admin.js +158 -209
- 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 +27 -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 +381 -84
- 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 +32 -8
- package/dist/server/runners/runner.service.d.ts.map +1 -1
- package/dist/server/runners/runner.service.js +130 -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 +13 -9
- package/dist/server/tokens.d.ts.map +1 -1
- package/dist/server/tokens.js +7 -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 -167
- 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 +213 -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/skills.d.ts +8 -4
- package/dist/shared/skills.d.ts.map +1 -1
- package/dist/shared/skills.js +7 -2
- package/dist/shared/skills.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 +10 -2
- 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 +6 -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
package/dist/shared/agents.js
CHANGED
|
@@ -1,130 +1,79 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agents as the browser and the server's admin API exchange them.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Nobody creates an agent. Each coding tool and model the runners report becomes one agent (`source: 'runner'`): the
|
|
5
|
+
* runners report, per tool, whether it is installed and signed in and which models it can use, and the server keeps one
|
|
6
|
+
* agent per tool and model (`model-catalog.ts` names it and normalizes the model), however many runners report it. A new
|
|
7
|
+
* one waits (`pending`) until someone who manages agents writes what it is good at and enables it. The application may
|
|
8
|
+
* also keep agents of its own (`source: 'system'`), such as a project manager, which it configures through its own
|
|
9
|
+
* settings and runs with the tool and model of the agents it names.
|
|
6
10
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* variables. Its tools are the application's commands it may run, and whatever else the application offers
|
|
12
|
-
* (knowledge search). It answers in seconds and runs only on subjects that need no working directory, such as
|
|
13
|
-
* conversations.
|
|
14
|
-
*
|
|
15
|
-
* Which tool or model it works with, and with what reasoning effort, is an ordered list (`modelEntries`), the first
|
|
16
|
-
* being its default. A runner takes a runner agent's run with the first entry whose tool it has enabled and signed in;
|
|
17
|
-
* nobody chooses. An online agent's runs use the first entry, except in a conversation, whose owner may pick another of
|
|
18
|
-
* its entries. The run records the entry it used (`Run.tool`, `Run.modelService`, `Run.model`, `Run.effort`).
|
|
19
|
-
*
|
|
20
|
-
* An online agent with no entry is not configured yet (such as an application's built-in assistant before a model service exists): it is
|
|
21
|
-
* kept, shown as needing a model, and offered no work until an entry is added. A runner agent always has one.
|
|
11
|
+
* Which tool and model an agent works with, and with what reasoning effort, is an ordered list (`modelEntries`); a
|
|
12
|
+
* runner takes a run with the first entry it reports. An agent discovered from runners has exactly one entry, its own
|
|
13
|
+
* tool and model; only its default reasoning effort can be changed. The rest of what an agent is (its instructions,
|
|
14
|
+
* the business actions it may perform, how many attempts a run gets) is the application's, the same for every agent.
|
|
22
15
|
*/
|
|
23
16
|
import { TOOL_EFFORTS, } from '@nocobase/agent-protocol';
|
|
24
|
-
/**
|
|
25
|
-
export const
|
|
26
|
-
/** What kind of agent it is; chosen at creation and never changed (`runner`: a coding tool on a runner, `online`: a model on the server). */
|
|
27
|
-
export const AGENT_TYPES = ['online', 'runner'];
|
|
17
|
+
/** Where an agent comes from: discovered from what runners report, or kept by the application. */
|
|
18
|
+
export const AGENT_SOURCES = ['runner', 'system'];
|
|
28
19
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* rules, and anything larger goes through a plan). There is no "never": what the rules call larger (waking an agent,
|
|
32
|
-
* finishing an issue, changing an owner, …) always needs the person's confirmation.
|
|
20
|
+
* Whether an agent is offered work: `pending` (discovered, nobody enabled it yet), `enabled`, `disabled`. Only enabled
|
|
21
|
+
* agents are offered work, mentioned or chatted with.
|
|
33
22
|
*/
|
|
23
|
+
export const AGENT_STATUSES = ['pending', 'enabled', 'disabled'];
|
|
24
|
+
/** How long a tool and model may go unreported by every runner before its agent shows as having no runner. */
|
|
25
|
+
export const AGENT_UNREPORTED_AFTER_MS = 14 * 24 * 60 * 60_000;
|
|
26
|
+
/** When in a conversation an agent asks before changing data: every change, or only larger ones. */
|
|
34
27
|
export const CONFIRM_CHANGES = ['always', 'larger'];
|
|
35
|
-
/** The reasoning efforts an online agent's entry may name, weakest first, as the model gateway passes them to providers. */
|
|
36
|
-
export const ONLINE_EFFORTS = [
|
|
37
|
-
'minimal',
|
|
38
|
-
'low',
|
|
39
|
-
'medium',
|
|
40
|
-
'high',
|
|
41
|
-
'xhigh',
|
|
42
|
-
];
|
|
43
28
|
/** The most entries an agent's list holds. */
|
|
44
29
|
export const MAX_MODEL_ENTRIES = 20;
|
|
45
|
-
|
|
46
|
-
return 'tool' in entry;
|
|
47
|
-
}
|
|
48
|
-
export function isOnlineEntry(entry) {
|
|
49
|
-
return 'modelService' in entry;
|
|
50
|
-
}
|
|
51
|
-
/** The reasoning efforts `entry` may name: its tool's for a runner entry, `ONLINE_EFFORTS` for an online one. */
|
|
30
|
+
/** The reasoning efforts `entry`'s tool takes. */
|
|
52
31
|
export function effortsFor(entry) {
|
|
53
|
-
return
|
|
54
|
-
}
|
|
55
|
-
/** A runner agent's entries, in order; empty for an online agent. */
|
|
56
|
-
export function runnerEntries(agent) {
|
|
57
|
-
return agent.modelEntries.filter(isRunnerEntry);
|
|
58
|
-
}
|
|
59
|
-
/** An online agent's entries, in order; empty for a runner agent. */
|
|
60
|
-
export function onlineEntries(agent) {
|
|
61
|
-
return agent.modelEntries.filter(isOnlineEntry);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The entries an online agent answers with: its own, or, when it lists none, the system default chat model
|
|
65
|
-
* (`DefaultModels`) as its only one; empty for a runner agent or when there is no default either.
|
|
66
|
-
*/
|
|
67
|
-
export function onlineEntriesOrDefault(agent, defaultModel) {
|
|
68
|
-
if (agent.type !== 'online')
|
|
69
|
-
return [];
|
|
70
|
-
const own = onlineEntries(agent);
|
|
71
|
-
if (own.length > 0)
|
|
72
|
-
return own;
|
|
73
|
-
return defaultModel
|
|
74
|
-
? [{ modelService: defaultModel.modelService, model: defaultModel.model }]
|
|
75
|
-
: [];
|
|
32
|
+
return TOOL_EFFORTS[entry.tool];
|
|
76
33
|
}
|
|
77
|
-
/** The coding tools
|
|
34
|
+
/** The coding tools an agent's entries name, in order and once each. */
|
|
78
35
|
export function entryTools(agent) {
|
|
79
|
-
return [...new Set(
|
|
36
|
+
return [...new Set(agent.modelEntries.map((entry) => entry.tool))];
|
|
80
37
|
}
|
|
81
|
-
/** Whether two entries name the same tool
|
|
38
|
+
/** Whether two entries name the same tool and model, whatever their efforts. */
|
|
82
39
|
export function sameEntry(a, b) {
|
|
83
|
-
|
|
84
|
-
return (isRunnerEntry(b) &&
|
|
85
|
-
a.tool === b.tool &&
|
|
86
|
-
(a.model ?? null) === (b.model ?? null));
|
|
87
|
-
return (isOnlineEntry(b) && a.modelService === b.modelService && a.model === b.model);
|
|
40
|
+
return a.tool === b.tool && (a.model ?? null) === (b.model ?? null);
|
|
88
41
|
}
|
|
89
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Why an agent cannot take the caller's work now: `pending` and `disabled` (not enabled), `unreported` (no runner
|
|
44
|
+
* reported its tool and model for `AGENT_UNREPORTED_AFTER_MS`), `notConfigured` (an application's own agent with no
|
|
45
|
+
* tool and model yet), `noRunner` (no runner online that has it and would take the caller's work), `othersPersonal`
|
|
46
|
+
* (only other people's personal runners have it).
|
|
47
|
+
*/
|
|
48
|
+
export const AGENT_UNUSABLE_REASONS = [
|
|
49
|
+
'pending',
|
|
50
|
+
'disabled',
|
|
51
|
+
'unreported',
|
|
52
|
+
'notConfigured',
|
|
53
|
+
'noRunner',
|
|
54
|
+
'othersPersonal',
|
|
55
|
+
];
|
|
56
|
+
/** What a change to an agent was. */
|
|
90
57
|
export const AGENT_CHANGE_ACTIONS = [
|
|
91
58
|
'created',
|
|
92
59
|
'updated',
|
|
60
|
+
'enabled',
|
|
61
|
+
'disabled',
|
|
62
|
+
'variables',
|
|
63
|
+
// Recorded by earlier versions, which kept agents people configured.
|
|
93
64
|
'archived',
|
|
94
65
|
'restored',
|
|
95
|
-
'variables',
|
|
96
66
|
];
|
|
97
67
|
/** The fields of an agent whose changes its history records, in the order the history shows them. */
|
|
98
68
|
export const AGENT_HISTORY_FIELDS = [
|
|
99
69
|
'name',
|
|
100
70
|
'description',
|
|
101
|
-
'
|
|
102
|
-
'instructions',
|
|
103
|
-
'type',
|
|
71
|
+
'status',
|
|
104
72
|
'modelEntries',
|
|
105
|
-
'
|
|
73
|
+
'instructions',
|
|
106
74
|
'actions',
|
|
107
|
-
'confirmChanges',
|
|
108
|
-
'toolPolicy',
|
|
109
|
-
'runnerIds',
|
|
110
|
-
'maxConcurrentRuns',
|
|
111
|
-
'maxAttempts',
|
|
112
|
-
'access',
|
|
113
|
-
'userIds',
|
|
114
|
-
'ownerUserId',
|
|
115
|
-
];
|
|
116
|
-
/** Fields no longer recorded that older history entries still carry, so the history can still name them. */
|
|
117
|
-
export const RETIRED_AGENT_HISTORY_FIELDS = [
|
|
118
|
-
'tool',
|
|
119
|
-
'model',
|
|
120
|
-
'llmService',
|
|
121
|
-
'modelService',
|
|
122
|
-
'reasoningEffort',
|
|
123
75
|
];
|
|
124
|
-
/**
|
|
125
|
-
* The tool policy an agent starts from; an agent's `toolPolicy` overrides fields of it. The editor shows it so people
|
|
126
|
-
* see what they override.
|
|
127
|
-
*/
|
|
76
|
+
/** The tool policy every agent runs with; an agent's `toolPolicy` overrides fields of it. */
|
|
128
77
|
export const DEFAULT_TOOL_POLICY = {
|
|
129
78
|
permissionMode: 'acceptEdits',
|
|
130
79
|
allowedCommands: [
|
|
@@ -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,CAAC,MAAM,cAAc,GAAG,CA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AAa;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,gCAAgC,KAAK,CAAC;AACnD,0DA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tC,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,iFAAiF;AACjF,MAAM,CA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