@nocobase/app-plugin-agents 0.0.0-stage → 0.1.0-beta.1
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 +109 -0
- package/README.md +194 -2
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +9 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/runner-token.d.ts +21 -0
- package/dist/cli/runner-token.d.ts.map +1 -0
- package/dist/cli/runner-token.js +52 -0
- package/dist/cli/runner-token.js.map +1 -0
- package/dist/client/api/client.d.ts +131 -0
- package/dist/client/api/client.d.ts.map +1 -0
- package/dist/client/api/client.js +276 -0
- package/dist/client/api/client.js.map +1 -0
- package/dist/client/api/keys.d.ts +31 -0
- package/dist/client/api/keys.d.ts.map +1 -0
- package/dist/client/api/keys.js +40 -0
- package/dist/client/api/keys.js.map +1 -0
- package/dist/client/api/runners.d.ts +24 -0
- package/dist/client/api/runners.d.ts.map +1 -0
- package/dist/client/api/runners.js +58 -0
- package/dist/client/api/runners.js.map +1 -0
- package/dist/client/chat/api.d.ts +42 -0
- package/dist/client/chat/api.d.ts.map +1 -0
- package/dist/client/chat/api.js +125 -0
- package/dist/client/chat/api.js.map +1 -0
- package/dist/client/chat/context-model.d.ts +67 -0
- package/dist/client/chat/context-model.d.ts.map +1 -0
- package/dist/client/chat/context-model.js +113 -0
- package/dist/client/chat/context-model.js.map +1 -0
- package/dist/client/chat/extensions.d.ts +41 -0
- package/dist/client/chat/extensions.d.ts.map +1 -0
- package/dist/client/chat/extensions.js +14 -0
- package/dist/client/chat/extensions.js.map +1 -0
- package/dist/client/chat/keys.d.ts +13 -0
- package/dist/client/chat/keys.d.ts.map +1 -0
- package/dist/client/chat/keys.js +12 -0
- package/dist/client/chat/keys.js.map +1 -0
- package/dist/client/chat/message-model.d.ts +111 -0
- package/dist/client/chat/message-model.d.ts.map +1 -0
- package/dist/client/chat/message-model.js +203 -0
- package/dist/client/chat/message-model.js.map +1 -0
- package/dist/client/chat/panel-state.d.ts +43 -0
- package/dist/client/chat/panel-state.d.ts.map +1 -0
- package/dist/client/chat/panel-state.js +113 -0
- package/dist/client/chat/panel-state.js.map +1 -0
- package/dist/client/chat/provider.d.ts +101 -0
- package/dist/client/chat/provider.d.ts.map +1 -0
- package/dist/client/chat/provider.js +399 -0
- package/dist/client/chat/provider.js.map +1 -0
- package/dist/client/chat/redirect.d.ts +8 -0
- package/dist/client/chat/redirect.d.ts.map +1 -0
- package/dist/client/chat/redirect.js +34 -0
- package/dist/client/chat/redirect.js.map +1 -0
- package/dist/client/chat/settings-section.d.ts +5 -0
- package/dist/client/chat/settings-section.d.ts.map +1 -0
- package/dist/client/chat/settings-section.js +76 -0
- package/dist/client/chat/settings-section.js.map +1 -0
- package/dist/client/chat/ui-hooks.d.ts +16 -0
- package/dist/client/chat/ui-hooks.d.ts.map +1 -0
- package/dist/client/chat/ui-hooks.js +35 -0
- package/dist/client/chat/ui-hooks.js.map +1 -0
- package/dist/client/chat/use-chat.d.ts +88 -0
- package/dist/client/chat/use-chat.d.ts.map +1 -0
- package/dist/client/chat/use-chat.js +399 -0
- package/dist/client/chat/use-chat.js.map +1 -0
- package/dist/client/chat.d.ts +41 -0
- package/dist/client/chat.d.ts.map +1 -0
- package/dist/client/chat.js +43 -0
- package/dist/client/chat.js.map +1 -0
- package/dist/client/components/ag-markdown.d.ts +7 -0
- package/dist/client/components/ag-markdown.d.ts.map +1 -0
- package/dist/client/components/ag-markdown.js +29 -0
- package/dist/client/components/ag-markdown.js.map +1 -0
- package/dist/client/components/ag-multi-select.d.ts +26 -0
- package/dist/client/components/ag-multi-select.d.ts.map +1 -0
- package/dist/client/components/ag-multi-select.js +48 -0
- package/dist/client/components/ag-multi-select.js.map +1 -0
- package/dist/client/components/ag-pulse.d.ts +4 -0
- package/dist/client/components/ag-pulse.d.ts.map +1 -0
- package/dist/client/components/ag-pulse.js +6 -0
- package/dist/client/components/ag-pulse.js.map +1 -0
- package/dist/client/components/ag-section.d.ts +11 -0
- package/dist/client/components/ag-section.d.ts.map +1 -0
- package/dist/client/components/ag-section.js +7 -0
- package/dist/client/components/ag-section.js.map +1 -0
- package/dist/client/components/ag-states.d.ts +27 -0
- package/dist/client/components/ag-states.d.ts.map +1 -0
- package/dist/client/components/ag-states.js +33 -0
- package/dist/client/components/ag-states.js.map +1 -0
- package/dist/client/components/ag-tag.d.ts +9 -0
- package/dist/client/components/ag-tag.d.ts.map +1 -0
- package/dist/client/components/ag-tag.js +20 -0
- package/dist/client/components/ag-tag.js.map +1 -0
- package/dist/client/components/agent-avatar.d.ts +16 -0
- package/dist/client/components/agent-avatar.d.ts.map +1 -0
- package/dist/client/components/agent-avatar.js +48 -0
- package/dist/client/components/agent-avatar.js.map +1 -0
- package/dist/client/components/agent-fields.d.ts +45 -0
- package/dist/client/components/agent-fields.d.ts.map +1 -0
- package/dist/client/components/agent-fields.js +83 -0
- package/dist/client/components/agent-fields.js.map +1 -0
- package/dist/client/components/agent-picker.d.ts +128 -0
- package/dist/client/components/agent-picker.d.ts.map +1 -0
- package/dist/client/components/agent-picker.js +150 -0
- package/dist/client/components/agent-picker.js.map +1 -0
- package/dist/client/components/agent-type.d.ts +32 -0
- package/dist/client/components/agent-type.d.ts.map +1 -0
- package/dist/client/components/agent-type.js +80 -0
- package/dist/client/components/agent-type.js.map +1 -0
- package/dist/client/components/availability-dot.d.ts +8 -0
- package/dist/client/components/availability-dot.d.ts.map +1 -0
- package/dist/client/components/availability-dot.js +15 -0
- package/dist/client/components/availability-dot.js.map +1 -0
- package/dist/client/components/brief-view.d.ts +6 -0
- package/dist/client/components/brief-view.d.ts.map +1 -0
- package/dist/client/components/brief-view.js +34 -0
- package/dist/client/components/brief-view.js.map +1 -0
- package/dist/client/components/command-line.d.ts +6 -0
- package/dist/client/components/command-line.d.ts.map +1 -0
- package/dist/client/components/command-line.js +24 -0
- package/dist/client/components/command-line.js.map +1 -0
- package/dist/client/components/default-skills.d.ts +10 -0
- package/dist/client/components/default-skills.d.ts.map +1 -0
- package/dist/client/components/default-skills.js +47 -0
- package/dist/client/components/default-skills.js.map +1 -0
- package/dist/client/components/diff-block.d.ts +8 -0
- package/dist/client/components/diff-block.d.ts.map +1 -0
- package/dist/client/components/diff-block.js +14 -0
- package/dist/client/components/diff-block.js.map +1 -0
- package/dist/client/components/model-entries.d.ts +35 -0
- package/dist/client/components/model-entries.d.ts.map +1 -0
- package/dist/client/components/model-entries.js +82 -0
- package/dist/client/components/model-entries.js.map +1 -0
- package/dist/client/components/page-container.d.ts +11 -0
- package/dist/client/components/page-container.d.ts.map +1 -0
- package/dist/client/components/page-container.js +13 -0
- package/dist/client/components/page-container.js.map +1 -0
- package/dist/client/components/page-header.d.ts +14 -0
- package/dist/client/components/page-header.d.ts.map +1 -0
- package/dist/client/components/page-header.js +10 -0
- package/dist/client/components/page-header.js.map +1 -0
- package/dist/client/components/refresh-button.d.ts +6 -0
- package/dist/client/components/refresh-button.d.ts.map +1 -0
- package/dist/client/components/refresh-button.js +26 -0
- package/dist/client/components/refresh-button.js.map +1 -0
- package/dist/client/components/route-child-page.d.ts +24 -0
- package/dist/client/components/route-child-page.d.ts.map +1 -0
- package/dist/client/components/route-child-page.js +46 -0
- package/dist/client/components/route-child-page.js.map +1 -0
- package/dist/client/components/route-dialog.d.ts +6 -0
- package/dist/client/components/route-dialog.d.ts.map +1 -0
- package/dist/client/components/route-dialog.js +7 -0
- package/dist/client/components/route-dialog.js.map +1 -0
- package/dist/client/components/route-overlay.d.ts +21 -0
- package/dist/client/components/route-overlay.d.ts.map +1 -0
- package/dist/client/components/route-overlay.js +87 -0
- package/dist/client/components/route-overlay.js.map +1 -0
- package/dist/client/components/runners-refresh.d.ts +3 -0
- package/dist/client/components/runners-refresh.d.ts.map +1 -0
- package/dist/client/components/runners-refresh.js +13 -0
- package/dist/client/components/runners-refresh.js.map +1 -0
- package/dist/client/components/secret-input.d.ts +7 -0
- package/dist/client/components/secret-input.d.ts.map +1 -0
- package/dist/client/components/secret-input.js +12 -0
- package/dist/client/components/secret-input.js.map +1 -0
- package/dist/client/components/skills-select.d.ts +16 -0
- package/dist/client/components/skills-select.d.ts.map +1 -0
- package/dist/client/components/skills-select.js +39 -0
- package/dist/client/components/skills-select.js.map +1 -0
- package/dist/client/components/ui/alert-dialog.d.ts +19 -0
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/client/components/ui/alert-dialog.js +42 -0
- package/dist/client/components/ui/alert-dialog.js.map +1 -0
- package/dist/client/components/ui/alert.d.ts +13 -0
- package/dist/client/components/ui/alert.d.ts.map +1 -0
- package/dist/client/components/ui/alert.js +31 -0
- package/dist/client/components/ui/alert.js.map +1 -0
- package/dist/client/components/ui/avatar.d.ts +12 -0
- package/dist/client/components/ui/avatar.d.ts.map +1 -0
- package/dist/client/components/ui/avatar.js +23 -0
- package/dist/client/components/ui/avatar.js.map +1 -0
- package/dist/client/components/ui/badge.d.ts +11 -0
- package/dist/client/components/ui/badge.d.ts.map +1 -0
- package/dist/client/components/ui/badge.js +37 -0
- package/dist/client/components/ui/badge.js.map +1 -0
- package/dist/client/components/ui/button.d.ts +12 -0
- package/dist/client/components/ui/button.d.ts.map +1 -0
- package/dist/client/components/ui/button.js +38 -0
- package/dist/client/components/ui/button.js.map +1 -0
- package/dist/client/components/ui/calendar.d.ts +11 -0
- package/dist/client/components/ui/calendar.d.ts.map +1 -0
- package/dist/client/components/ui/calendar.js +76 -0
- package/dist/client/components/ui/calendar.js.map +1 -0
- package/dist/client/components/ui/card.d.ts +12 -0
- package/dist/client/components/ui/card.d.ts.map +1 -0
- package/dist/client/components/ui/card.js +25 -0
- package/dist/client/components/ui/card.js.map +1 -0
- package/dist/client/components/ui/chart.d.ts +45 -0
- package/dist/client/components/ui/chart.d.ts.map +1 -0
- package/dist/client/components/ui/chart.js +133 -0
- package/dist/client/components/ui/chart.js.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +5 -0
- package/dist/client/components/ui/checkbox.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.js +9 -0
- package/dist/client/components/ui/checkbox.js.map +1 -0
- package/dist/client/components/ui/collapsible.d.ts +7 -0
- package/dist/client/components/ui/collapsible.d.ts.map +1 -0
- package/dist/client/components/ui/collapsible.js +13 -0
- package/dist/client/components/ui/collapsible.js.map +1 -0
- package/dist/client/components/ui/combobox.d.ts +25 -0
- package/dist/client/components/ui/combobox.d.ts.map +1 -0
- package/dist/client/components/ui/combobox.js +58 -0
- package/dist/client/components/ui/combobox.js.map +1 -0
- package/dist/client/components/ui/dialog.d.ts +18 -0
- package/dist/client/components/ui/dialog.d.ts.map +1 -0
- package/dist/client/components/ui/dialog.js +40 -0
- package/dist/client/components/ui/dialog.js.map +1 -0
- package/dist/client/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/client/components/ui/dropdown-menu.js +51 -0
- package/dist/client/components/ui/dropdown-menu.js.map +1 -0
- package/dist/client/components/ui/empty.d.ts +15 -0
- package/dist/client/components/ui/empty.d.ts.map +1 -0
- package/dist/client/components/ui/empty.js +37 -0
- package/dist/client/components/ui/empty.js.map +1 -0
- package/dist/client/components/ui/field.d.ts +28 -0
- package/dist/client/components/ui/field.d.ts.map +1 -0
- package/dist/client/components/ui/field.js +71 -0
- package/dist/client/components/ui/field.js.map +1 -0
- package/dist/client/components/ui/input-group.d.ts +22 -0
- package/dist/client/components/ui/input-group.d.ts.map +1 -0
- package/dist/client/components/ui/input-group.js +63 -0
- package/dist/client/components/ui/input-group.js.map +1 -0
- package/dist/client/components/ui/input.d.ts +4 -0
- package/dist/client/components/ui/input.d.ts.map +1 -0
- package/dist/client/components/ui/input.js +8 -0
- package/dist/client/components/ui/input.js.map +1 -0
- package/dist/client/components/ui/item.d.ts +25 -0
- package/dist/client/components/ui/item.d.ts.map +1 -0
- package/dist/client/components/ui/item.js +82 -0
- package/dist/client/components/ui/item.js.map +1 -0
- package/dist/client/components/ui/label.d.ts +4 -0
- package/dist/client/components/ui/label.d.ts.map +1 -0
- package/dist/client/components/ui/label.js +7 -0
- package/dist/client/components/ui/label.js.map +1 -0
- package/dist/client/components/ui/popover.d.ts +10 -0
- package/dist/client/components/ui/popover.d.ts.map +1 -0
- package/dist/client/components/ui/popover.js +23 -0
- package/dist/client/components/ui/popover.js.map +1 -0
- package/dist/client/components/ui/radio-group.d.ts +7 -0
- package/dist/client/components/ui/radio-group.d.ts.map +1 -0
- package/dist/client/components/ui/radio-group.js +12 -0
- package/dist/client/components/ui/radio-group.js.map +1 -0
- package/dist/client/components/ui/select.d.ts +16 -0
- package/dist/client/components/ui/select.d.ts.map +1 -0
- package/dist/client/components/ui/select.js +34 -0
- package/dist/client/components/ui/select.js.map +1 -0
- package/dist/client/components/ui/separator.d.ts +5 -0
- package/dist/client/components/ui/separator.d.ts.map +1 -0
- package/dist/client/components/ui/separator.js +8 -0
- package/dist/client/components/ui/separator.js.map +1 -0
- package/dist/client/components/ui/sheet.d.ts +15 -0
- package/dist/client/components/ui/sheet.d.ts.map +1 -0
- package/dist/client/components/ui/sheet.js +39 -0
- package/dist/client/components/ui/sheet.js.map +1 -0
- package/dist/client/components/ui/skeleton.d.ts +4 -0
- package/dist/client/components/ui/skeleton.d.ts.map +1 -0
- package/dist/client/components/ui/skeleton.js +7 -0
- package/dist/client/components/ui/skeleton.js.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +4 -0
- package/dist/client/components/ui/spinner.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.js +11 -0
- package/dist/client/components/ui/spinner.js.map +1 -0
- package/dist/client/components/ui/switch.d.ts +7 -0
- package/dist/client/components/ui/switch.d.ts.map +1 -0
- package/dist/client/components/ui/switch.js +8 -0
- package/dist/client/components/ui/switch.js.map +1 -0
- package/dist/client/components/ui/table.d.ts +11 -0
- package/dist/client/components/ui/table.d.ts.map +1 -0
- package/dist/client/components/ui/table.js +28 -0
- package/dist/client/components/ui/table.js.map +1 -0
- package/dist/client/components/ui/tabs.d.ts +14 -0
- package/dist/client/components/ui/tabs.d.ts.map +1 -0
- package/dist/client/components/ui/tabs.js +32 -0
- package/dist/client/components/ui/tabs.js.map +1 -0
- package/dist/client/components/ui/textarea.d.ts +4 -0
- package/dist/client/components/ui/textarea.d.ts.map +1 -0
- package/dist/client/components/ui/textarea.js +7 -0
- package/dist/client/components/ui/textarea.js.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +8 -0
- package/dist/client/components/ui/tooltip.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.js +17 -0
- package/dist/client/components/ui/tooltip.js.map +1 -0
- package/dist/client/components/unsaved-changes.d.ts +8 -0
- package/dist/client/components/unsaved-changes.d.ts.map +1 -0
- package/dist/client/components/unsaved-changes.js +19 -0
- package/dist/client/components/unsaved-changes.js.map +1 -0
- package/dist/client/components/use-route-overlay.d.ts +15 -0
- package/dist/client/components/use-route-overlay.d.ts.map +1 -0
- package/dist/client/components/use-route-overlay.js +15 -0
- package/dist/client/components/use-route-overlay.js.map +1 -0
- package/dist/client/components/variables/access-log.d.ts +17 -0
- package/dist/client/components/variables/access-log.d.ts.map +1 -0
- package/dist/client/components/variables/access-log.js +52 -0
- package/dist/client/components/variables/access-log.js.map +1 -0
- package/dist/client/components/variables/variable-dialogs.d.ts +26 -0
- package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -0
- package/dist/client/components/variables/variable-dialogs.js +100 -0
- package/dist/client/components/variables/variable-dialogs.js.map +1 -0
- package/dist/client/components/variables/variables-panel.d.ts +24 -0
- package/dist/client/components/variables/variables-panel.d.ts.map +1 -0
- package/dist/client/components/variables/variables-panel.js +114 -0
- package/dist/client/components/variables/variables-panel.js.map +1 -0
- package/dist/client/config.d.ts +6 -0
- package/dist/client/config.d.ts.map +1 -0
- package/dist/client/config.js +6 -0
- package/dist/client/config.js.map +1 -0
- package/dist/client/hooks/use-access.d.ts +6 -0
- package/dist/client/hooks/use-access.d.ts.map +1 -0
- package/dist/client/hooks/use-access.js +8 -0
- package/dist/client/hooks/use-access.js.map +1 -0
- package/dist/client/hooks/use-agent-picker-labels.d.ts +4 -0
- package/dist/client/hooks/use-agent-picker-labels.d.ts.map +1 -0
- package/dist/client/hooks/use-agent-picker-labels.js +39 -0
- package/dist/client/hooks/use-agent-picker-labels.js.map +1 -0
- package/dist/client/hooks/use-agent-save.d.ts +9 -0
- package/dist/client/hooks/use-agent-save.d.ts.map +1 -0
- package/dist/client/hooks/use-agent-save.js +40 -0
- package/dist/client/hooks/use-agent-save.js.map +1 -0
- package/dist/client/hooks/use-agents-api.d.ts +4 -0
- package/dist/client/hooks/use-agents-api.d.ts.map +1 -0
- package/dist/client/hooks/use-agents-api.js +9 -0
- package/dist/client/hooks/use-agents-api.js.map +1 -0
- package/dist/client/hooks/use-media-query.d.ts +3 -0
- package/dist/client/hooks/use-media-query.d.ts.map +1 -0
- package/dist/client/hooks/use-media-query.js +14 -0
- package/dist/client/hooks/use-media-query.js.map +1 -0
- package/dist/client/hooks/use-model-catalog.d.ts +9 -0
- package/dist/client/hooks/use-model-catalog.d.ts.map +1 -0
- package/dist/client/hooks/use-model-catalog.js +27 -0
- package/dist/client/hooks/use-model-catalog.js.map +1 -0
- package/dist/client/hooks/use-notify.d.ts +9 -0
- package/dist/client/hooks/use-notify.d.ts.map +1 -0
- package/dist/client/hooks/use-notify.js +27 -0
- package/dist/client/hooks/use-notify.js.map +1 -0
- package/dist/client/hooks/use-realtime-topic.d.ts +6 -0
- package/dist/client/hooks/use-realtime-topic.d.ts.map +1 -0
- package/dist/client/hooks/use-realtime-topic.js +24 -0
- package/dist/client/hooks/use-realtime-topic.js.map +1 -0
- package/dist/client/hooks/use-server-url.d.ts +6 -0
- package/dist/client/hooks/use-server-url.d.ts.map +1 -0
- package/dist/client/hooks/use-server-url.js +10 -0
- package/dist/client/hooks/use-server-url.js.map +1 -0
- package/dist/client/hooks/use-vocabulary.d.ts +38 -0
- package/dist/client/hooks/use-vocabulary.d.ts.map +1 -0
- package/dist/client/hooks/use-vocabulary.js +77 -0
- package/dist/client/hooks/use-vocabulary.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/kit.d.ts +65 -0
- package/dist/client/kit.d.ts.map +1 -0
- package/dist/client/kit.js +124 -0
- package/dist/client/kit.js.map +1 -0
- package/dist/client/lib/action-catalog.d.ts +13 -0
- package/dist/client/lib/action-catalog.d.ts.map +1 -0
- package/dist/client/lib/action-catalog.js +45 -0
- package/dist/client/lib/action-catalog.js.map +1 -0
- package/dist/client/lib/agents.d.ts +15 -0
- package/dist/client/lib/agents.d.ts.map +1 -0
- package/dist/client/lib/agents.js +48 -0
- package/dist/client/lib/agents.js.map +1 -0
- package/dist/client/lib/diff.d.ts +8 -0
- package/dist/client/lib/diff.d.ts.map +1 -0
- package/dist/client/lib/diff.js +55 -0
- package/dist/client/lib/diff.js.map +1 -0
- package/dist/client/lib/download.d.ts +5 -0
- package/dist/client/lib/download.d.ts.map +1 -0
- package/dist/client/lib/download.js +17 -0
- package/dist/client/lib/download.js.map +1 -0
- package/dist/client/lib/format.d.ts +15 -0
- package/dist/client/lib/format.d.ts.map +1 -0
- package/dist/client/lib/format.js +76 -0
- package/dist/client/lib/format.js.map +1 -0
- package/dist/client/lib/install.d.ts +23 -0
- package/dist/client/lib/install.d.ts.map +1 -0
- package/dist/client/lib/install.js +54 -0
- package/dist/client/lib/install.js.map +1 -0
- package/dist/client/lib/revision.d.ts +3 -0
- package/dist/client/lib/revision.d.ts.map +1 -0
- package/dist/client/lib/revision.js +10 -0
- package/dist/client/lib/revision.js.map +1 -0
- package/dist/client/lib/runs.d.ts +11 -0
- package/dist/client/lib/runs.d.ts.map +1 -0
- package/dist/client/lib/runs.js +22 -0
- package/dist/client/lib/runs.js.map +1 -0
- package/dist/client/lib/text.d.ts +3 -0
- package/dist/client/lib/text.d.ts.map +1 -0
- package/dist/client/lib/text.js +6 -0
- package/dist/client/lib/text.js.map +1 -0
- package/dist/client/lib/tool-policy.d.ts +5 -0
- package/dist/client/lib/tool-policy.d.ts.map +1 -0
- package/dist/client/lib/tool-policy.js +10 -0
- package/dist/client/lib/tool-policy.js.map +1 -0
- package/dist/client/lib/tool-slots.d.ts +16 -0
- package/dist/client/lib/tool-slots.d.ts.map +1 -0
- package/dist/client/lib/tool-slots.js +37 -0
- package/dist/client/lib/tool-slots.js.map +1 -0
- package/dist/client/lib/tool-summary.d.ts +6 -0
- package/dist/client/lib/tool-summary.d.ts.map +1 -0
- package/dist/client/lib/tool-summary.js +44 -0
- package/dist/client/lib/tool-summary.js.map +1 -0
- package/dist/client/locales/chat.en-US.d.ts +83 -0
- package/dist/client/locales/chat.en-US.d.ts.map +1 -0
- package/dist/client/locales/chat.en-US.js +82 -0
- package/dist/client/locales/chat.en-US.js.map +1 -0
- package/dist/client/locales/chat.zh-CN.d.ts +4 -0
- package/dist/client/locales/chat.zh-CN.d.ts.map +1 -0
- package/dist/client/locales/chat.zh-CN.js +76 -0
- package/dist/client/locales/chat.zh-CN.js.map +1 -0
- package/dist/client/locales/en-US.d.ts +610 -0
- package/dist/client/locales/en-US.d.ts.map +1 -0
- package/dist/client/locales/en-US.js +604 -0
- package/dist/client/locales/en-US.js.map +1 -0
- package/dist/client/locales/index.d.ts +4 -0
- package/dist/client/locales/index.d.ts.map +1 -0
- package/dist/client/locales/index.js +7 -0
- package/dist/client/locales/index.js.map +1 -0
- package/dist/client/locales/prices.en-US.d.ts +49 -0
- package/dist/client/locales/prices.en-US.d.ts.map +1 -0
- package/dist/client/locales/prices.en-US.js +48 -0
- package/dist/client/locales/prices.en-US.js.map +1 -0
- package/dist/client/locales/prices.zh-CN.d.ts +5 -0
- package/dist/client/locales/prices.zh-CN.d.ts.map +1 -0
- package/dist/client/locales/prices.zh-CN.js +48 -0
- package/dist/client/locales/prices.zh-CN.js.map +1 -0
- package/dist/client/locales/runtimes.en-US.d.ts +172 -0
- package/dist/client/locales/runtimes.en-US.d.ts.map +1 -0
- package/dist/client/locales/runtimes.en-US.js +171 -0
- package/dist/client/locales/runtimes.en-US.js.map +1 -0
- package/dist/client/locales/runtimes.zh-CN.d.ts +4 -0
- package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -0
- package/dist/client/locales/runtimes.zh-CN.js +170 -0
- package/dist/client/locales/runtimes.zh-CN.js.map +1 -0
- package/dist/client/locales/services.en-US.d.ts +112 -0
- package/dist/client/locales/services.en-US.d.ts.map +1 -0
- package/dist/client/locales/services.en-US.js +111 -0
- package/dist/client/locales/services.en-US.js.map +1 -0
- package/dist/client/locales/services.zh-CN.d.ts +4 -0
- package/dist/client/locales/services.zh-CN.d.ts.map +1 -0
- package/dist/client/locales/services.zh-CN.js +110 -0
- package/dist/client/locales/services.zh-CN.js.map +1 -0
- package/dist/client/locales/skills.en-US.d.ts +149 -0
- package/dist/client/locales/skills.en-US.d.ts.map +1 -0
- package/dist/client/locales/skills.en-US.js +149 -0
- package/dist/client/locales/skills.en-US.js.map +1 -0
- package/dist/client/locales/skills.zh-CN.d.ts +4 -0
- package/dist/client/locales/skills.zh-CN.d.ts.map +1 -0
- package/dist/client/locales/skills.zh-CN.js +148 -0
- package/dist/client/locales/skills.zh-CN.js.map +1 -0
- package/dist/client/locales/zh-CN.d.ts +4 -0
- package/dist/client/locales/zh-CN.d.ts.map +1 -0
- package/dist/client/locales/zh-CN.js +599 -0
- package/dist/client/locales/zh-CN.js.map +1 -0
- package/dist/client/online/default-model.d.ts +5 -0
- package/dist/client/online/default-model.d.ts.map +1 -0
- package/dist/client/online/default-model.js +65 -0
- package/dist/client/online/default-model.js.map +1 -0
- package/dist/client/online/model.d.ts +45 -0
- package/dist/client/online/model.d.ts.map +1 -0
- package/dist/client/online/model.js +128 -0
- package/dist/client/online/model.js.map +1 -0
- package/dist/client/online/service-editor.d.ts +11 -0
- package/dist/client/online/service-editor.d.ts.map +1 -0
- package/dist/client/online/service-editor.js +235 -0
- package/dist/client/online/service-editor.js.map +1 -0
- package/dist/client/online/services.d.ts +3 -0
- package/dist/client/online/services.d.ts.map +1 -0
- package/dist/client/online/services.js +109 -0
- package/dist/client/online/services.js.map +1 -0
- package/dist/client/pages/agents/agent-model.d.ts +73 -0
- package/dist/client/pages/agents/agent-model.d.ts.map +1 -0
- package/dist/client/pages/agents/agent-model.js +172 -0
- package/dist/client/pages/agents/agent-model.js.map +1 -0
- package/dist/client/pages/agents/detail/brief-preview.d.ts +7 -0
- package/dist/client/pages/agents/detail/brief-preview.d.ts.map +1 -0
- package/dist/client/pages/agents/detail/brief-preview.js +43 -0
- package/dist/client/pages/agents/detail/brief-preview.js.map +1 -0
- package/dist/client/pages/agents/detail/history.d.ts +11 -0
- package/dist/client/pages/agents/detail/history.d.ts.map +1 -0
- package/dist/client/pages/agents/detail/history.js +149 -0
- package/dist/client/pages/agents/detail/history.js.map +1 -0
- package/dist/client/pages/agents/detail/index.d.ts +3 -0
- package/dist/client/pages/agents/detail/index.d.ts.map +1 -0
- package/dist/client/pages/agents/detail/index.js +241 -0
- package/dist/client/pages/agents/detail/index.js.map +1 -0
- package/dist/client/pages/agents/detail/sections.d.ts +22 -0
- package/dist/client/pages/agents/detail/sections.d.ts.map +1 -0
- package/dist/client/pages/agents/detail/sections.js +311 -0
- package/dist/client/pages/agents/detail/sections.js.map +1 -0
- package/dist/client/pages/agents/detail/tab-draft.d.ts +43 -0
- package/dist/client/pages/agents/detail/tab-draft.d.ts.map +1 -0
- package/dist/client/pages/agents/detail/tab-draft.js +115 -0
- package/dist/client/pages/agents/detail/tab-draft.js.map +1 -0
- package/dist/client/pages/agents/detail/unsaved-bar.d.ts +13 -0
- package/dist/client/pages/agents/detail/unsaved-bar.d.ts.map +1 -0
- package/dist/client/pages/agents/detail/unsaved-bar.js +21 -0
- package/dist/client/pages/agents/detail/unsaved-bar.js.map +1 -0
- package/dist/client/pages/agents/index.d.ts +3 -0
- package/dist/client/pages/agents/index.d.ts.map +1 -0
- package/dist/client/pages/agents/index.js +109 -0
- package/dist/client/pages/agents/index.js.map +1 -0
- package/dist/client/pages/agents/new.d.ts +3 -0
- package/dist/client/pages/agents/new.d.ts.map +1 -0
- package/dist/client/pages/agents/new.js +149 -0
- package/dist/client/pages/agents/new.js.map +1 -0
- package/dist/client/pages/agents/preset-picker.d.ts +8 -0
- package/dist/client/pages/agents/preset-picker.d.ts.map +1 -0
- package/dist/client/pages/agents/preset-picker.js +41 -0
- package/dist/client/pages/agents/preset-picker.js.map +1 -0
- package/dist/client/pages/models/index.d.ts +6 -0
- package/dist/client/pages/models/index.d.ts.map +1 -0
- package/dist/client/pages/models/index.js +6 -0
- package/dist/client/pages/models/index.js.map +1 -0
- package/dist/client/pages/runtimes/connect.d.ts +3 -0
- package/dist/client/pages/runtimes/connect.d.ts.map +1 -0
- package/dist/client/pages/runtimes/connect.js +155 -0
- package/dist/client/pages/runtimes/connect.js.map +1 -0
- package/dist/client/pages/runtimes/index.d.ts +3 -0
- package/dist/client/pages/runtimes/index.d.ts.map +1 -0
- package/dist/client/pages/runtimes/index.js +110 -0
- package/dist/client/pages/runtimes/index.js.map +1 -0
- package/dist/client/pages/runtimes/runner-cells.d.ts +39 -0
- package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -0
- package/dist/client/pages/runtimes/runner-cells.js +117 -0
- package/dist/client/pages/runtimes/runner-cells.js.map +1 -0
- package/dist/client/pages/runtimes/runner-policy.d.ts +18 -0
- package/dist/client/pages/runtimes/runner-policy.d.ts.map +1 -0
- package/dist/client/pages/runtimes/runner-policy.js +10 -0
- package/dist/client/pages/runtimes/runner-policy.js.map +1 -0
- package/dist/client/pages/runtimes/runner-sheet.d.ts +8 -0
- package/dist/client/pages/runtimes/runner-sheet.d.ts.map +1 -0
- package/dist/client/pages/runtimes/runner-sheet.js +188 -0
- package/dist/client/pages/runtimes/runner-sheet.js.map +1 -0
- package/dist/client/pages/runtimes/tool-slots-fields.d.ts +33 -0
- package/dist/client/pages/runtimes/tool-slots-fields.d.ts.map +1 -0
- package/dist/client/pages/runtimes/tool-slots-fields.js +28 -0
- package/dist/client/pages/runtimes/tool-slots-fields.js.map +1 -0
- package/dist/client/pages/skills/detail/index.d.ts +3 -0
- package/dist/client/pages/skills/detail/index.d.ts.map +1 -0
- package/dist/client/pages/skills/detail/index.js +115 -0
- package/dist/client/pages/skills/detail/index.js.map +1 -0
- package/dist/client/pages/skills/detail/skill-editor.d.ts +13 -0
- package/dist/client/pages/skills/detail/skill-editor.d.ts.map +1 -0
- package/dist/client/pages/skills/detail/skill-editor.js +80 -0
- package/dist/client/pages/skills/detail/skill-editor.js.map +1 -0
- package/dist/client/pages/skills/detail/skill-versions.d.ts +7 -0
- package/dist/client/pages/skills/detail/skill-versions.d.ts.map +1 -0
- package/dist/client/pages/skills/detail/skill-versions.js +115 -0
- package/dist/client/pages/skills/detail/skill-versions.js.map +1 -0
- package/dist/client/pages/skills/import-button.d.ts +9 -0
- package/dist/client/pages/skills/import-button.d.ts.map +1 -0
- package/dist/client/pages/skills/import-button.js +69 -0
- package/dist/client/pages/skills/import-button.js.map +1 -0
- package/dist/client/pages/skills/index.d.ts +3 -0
- package/dist/client/pages/skills/index.d.ts.map +1 -0
- package/dist/client/pages/skills/index.js +49 -0
- package/dist/client/pages/skills/index.js.map +1 -0
- package/dist/client/pages/skills/new.d.ts +3 -0
- package/dist/client/pages/skills/new.d.ts.map +1 -0
- package/dist/client/pages/skills/new.js +81 -0
- package/dist/client/pages/skills/new.js.map +1 -0
- package/dist/client/pages/skills/workbench/discard-dialog.d.ts +8 -0
- package/dist/client/pages/skills/workbench/discard-dialog.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/discard-dialog.js +9 -0
- package/dist/client/pages/skills/workbench/discard-dialog.js.map +1 -0
- package/dist/client/pages/skills/workbench/entry-dialog.d.ts +23 -0
- package/dist/client/pages/skills/workbench/entry-dialog.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/entry-dialog.js +63 -0
- package/dist/client/pages/skills/workbench/entry-dialog.js.map +1 -0
- package/dist/client/pages/skills/workbench/file-pane.d.ts +27 -0
- package/dist/client/pages/skills/workbench/file-pane.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/file-pane.js +101 -0
- package/dist/client/pages/skills/workbench/file-pane.js.map +1 -0
- package/dist/client/pages/skills/workbench/file-tree.d.ts +23 -0
- package/dist/client/pages/skills/workbench/file-tree.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/file-tree.js +85 -0
- package/dist/client/pages/skills/workbench/file-tree.js.map +1 -0
- package/dist/client/pages/skills/workbench/model.d.ts +72 -0
- package/dist/client/pages/skills/workbench/model.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/model.js +176 -0
- package/dist/client/pages/skills/workbench/model.js.map +1 -0
- package/dist/client/pages/skills/workbench/skill-workbench.d.ts +13 -0
- package/dist/client/pages/skills/workbench/skill-workbench.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/skill-workbench.js +223 -0
- package/dist/client/pages/skills/workbench/skill-workbench.js.map +1 -0
- package/dist/client/pages/skills/workbench/state.d.ts +28 -0
- package/dist/client/pages/skills/workbench/state.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/state.js +62 -0
- package/dist/client/pages/skills/workbench/state.js.map +1 -0
- package/dist/client/pages/skills/workbench/use-element-width.d.ts +6 -0
- package/dist/client/pages/skills/workbench/use-element-width.d.ts.map +1 -0
- package/dist/client/pages/skills/workbench/use-element-width.js +18 -0
- package/dist/client/pages/skills/workbench/use-element-width.js.map +1 -0
- package/dist/client/pages/usage/date-range-picker.d.ts +10 -0
- package/dist/client/pages/usage/date-range-picker.d.ts.map +1 -0
- package/dist/client/pages/usage/date-range-picker.js +45 -0
- package/dist/client/pages/usage/date-range-picker.js.map +1 -0
- package/dist/client/pages/usage/index.d.ts +3 -0
- package/dist/client/pages/usage/index.d.ts.map +1 -0
- package/dist/client/pages/usage/index.js +269 -0
- package/dist/client/pages/usage/index.js.map +1 -0
- package/dist/client/pages/usage/model.d.ts +70 -0
- package/dist/client/pages/usage/model.d.ts.map +1 -0
- package/dist/client/pages/usage/model.js +234 -0
- package/dist/client/pages/usage/model.js.map +1 -0
- package/dist/client/pages/usage/prices/index.d.ts +6 -0
- package/dist/client/pages/usage/prices/index.d.ts.map +1 -0
- package/dist/client/pages/usage/prices/index.js +35 -0
- package/dist/client/pages/usage/prices/index.js.map +1 -0
- package/dist/client/pages/usage/prices/model.d.ts +43 -0
- package/dist/client/pages/usage/prices/model.d.ts.map +1 -0
- package/dist/client/pages/usage/prices/model.js +104 -0
- package/dist/client/pages/usage/prices/model.js.map +1 -0
- package/dist/client/pages/usage/prices/price-cells.d.ts +24 -0
- package/dist/client/pages/usage/prices/price-cells.d.ts.map +1 -0
- package/dist/client/pages/usage/prices/price-cells.js +61 -0
- package/dist/client/pages/usage/prices/price-cells.js.map +1 -0
- package/dist/client/pages/usage/prices/prices-section.d.ts +7 -0
- package/dist/client/pages/usage/prices/prices-section.d.ts.map +1 -0
- package/dist/client/pages/usage/prices/prices-section.js +50 -0
- package/dist/client/pages/usage/prices/prices-section.js.map +1 -0
- package/dist/client/pages/usage/prices/tool-panel.d.ts +9 -0
- package/dist/client/pages/usage/prices/tool-panel.d.ts.map +1 -0
- package/dist/client/pages/usage/prices/tool-panel.js +78 -0
- package/dist/client/pages/usage/prices/tool-panel.js.map +1 -0
- package/dist/client/pages/usage/prices/use-save-prices.d.ts +6 -0
- package/dist/client/pages/usage/prices/use-save-prices.d.ts.map +1 -0
- package/dist/client/pages/usage/prices/use-save-prices.js +14 -0
- package/dist/client/pages/usage/prices/use-save-prices.js.map +1 -0
- package/dist/client/plugin.d.ts +4 -0
- package/dist/client/plugin.d.ts.map +1 -0
- package/dist/client/plugin.js +11 -0
- package/dist/client/plugin.js.map +1 -0
- package/dist/client/profile/default-agent.d.ts +3 -0
- package/dist/client/profile/default-agent.d.ts.map +1 -0
- package/dist/client/profile/default-agent.js +89 -0
- package/dist/client/profile/default-agent.js.map +1 -0
- package/dist/client/profile.d.ts +8 -0
- package/dist/client/profile.d.ts.map +1 -0
- package/dist/client/profile.js +4 -0
- package/dist/client/profile.js.map +1 -0
- package/dist/client/query.d.ts +9 -0
- package/dist/client/query.d.ts.map +1 -0
- package/dist/client/query.js +41 -0
- package/dist/client/query.js.map +1 -0
- package/dist/client/routes.d.ts +25 -0
- package/dist/client/routes.d.ts.map +1 -0
- package/dist/client/routes.js +89 -0
- package/dist/client/routes.js.map +1 -0
- package/dist/client/runs/run-hooks.d.ts +35 -0
- package/dist/client/runs/run-hooks.d.ts.map +1 -0
- package/dist/client/runs/run-hooks.js +92 -0
- package/dist/client/runs/run-hooks.js.map +1 -0
- package/dist/client/runs/subject-runs.d.ts +12 -0
- package/dist/client/runs/subject-runs.d.ts.map +1 -0
- package/dist/client/runs/subject-runs.js +56 -0
- package/dist/client/runs/subject-runs.js.map +1 -0
- package/dist/client/runs/use-run-events.d.ts +24 -0
- package/dist/client/runs/use-run-events.d.ts.map +1 -0
- package/dist/client/runs/use-run-events.js +80 -0
- package/dist/client/runs/use-run-events.js.map +1 -0
- package/dist/client/runs.d.ts +14 -0
- package/dist/client/runs.d.ts.map +1 -0
- package/dist/client/runs.js +13 -0
- package/dist/client/runs.js.map +1 -0
- package/dist/database/migrations/.manifest.json +57 -0
- package/dist/database/migrations/202610020001_ag_create_agents.d.ts +4 -0
- package/dist/database/migrations/202610020001_ag_create_agents.d.ts.map +1 -0
- package/dist/database/migrations/202610020001_ag_create_agents.js +108 -0
- package/dist/database/migrations/202610020001_ag_create_agents.js.map +1 -0
- package/dist/database/migrations/202610020002_ag_create_runners.d.ts +4 -0
- package/dist/database/migrations/202610020002_ag_create_runners.d.ts.map +1 -0
- package/dist/database/migrations/202610020002_ag_create_runners.js +115 -0
- package/dist/database/migrations/202610020002_ag_create_runners.js.map +1 -0
- package/dist/database/migrations/202610020003_ag_create_runs.d.ts +4 -0
- package/dist/database/migrations/202610020003_ag_create_runs.d.ts.map +1 -0
- package/dist/database/migrations/202610020003_ag_create_runs.js +289 -0
- package/dist/database/migrations/202610020003_ag_create_runs.js.map +1 -0
- package/dist/database/migrations/202610020004_ag_create_variables.d.ts +4 -0
- package/dist/database/migrations/202610020004_ag_create_variables.d.ts.map +1 -0
- package/dist/database/migrations/202610020004_ag_create_variables.js +52 -0
- package/dist/database/migrations/202610020004_ag_create_variables.js.map +1 -0
- package/dist/database/migrations/202610020005_ag_create_skills.d.ts +4 -0
- package/dist/database/migrations/202610020005_ag_create_skills.d.ts.map +1 -0
- package/dist/database/migrations/202610020005_ag_create_skills.js +94 -0
- package/dist/database/migrations/202610020005_ag_create_skills.js.map +1 -0
- package/dist/database/migrations/202610020006_ag_create_model_prices.d.ts +4 -0
- package/dist/database/migrations/202610020006_ag_create_model_prices.d.ts.map +1 -0
- package/dist/database/migrations/202610020006_ag_create_model_prices.js +46 -0
- package/dist/database/migrations/202610020006_ag_create_model_prices.js.map +1 -0
- package/dist/database/migrations/202610020008_ag_create_conversations.d.ts +4 -0
- package/dist/database/migrations/202610020008_ag_create_conversations.d.ts.map +1 -0
- package/dist/database/migrations/202610020008_ag_create_conversations.js +113 -0
- package/dist/database/migrations/202610020008_ag_create_conversations.js.map +1 -0
- package/dist/database/migrations/202610020009_ag_create_jobs.d.ts +4 -0
- package/dist/database/migrations/202610020009_ag_create_jobs.d.ts.map +1 -0
- package/dist/database/migrations/202610020009_ag_create_jobs.js +102 -0
- package/dist/database/migrations/202610020009_ag_create_jobs.js.map +1 -0
- package/dist/database/migrations/202610020010_ag_create_model_services.d.ts +4 -0
- package/dist/database/migrations/202610020010_ag_create_model_services.d.ts.map +1 -0
- package/dist/database/migrations/202610020010_ag_create_model_services.js +57 -0
- package/dist/database/migrations/202610020010_ag_create_model_services.js.map +1 -0
- package/dist/database/migrations/202610020011_ag_create_vectors.d.ts +4 -0
- package/dist/database/migrations/202610020011_ag_create_vectors.d.ts.map +1 -0
- package/dist/database/migrations/202610020011_ag_create_vectors.js +68 -0
- package/dist/database/migrations/202610020011_ag_create_vectors.js.map +1 -0
- package/dist/database/migrations/202610060001_ag_add_runner_product.d.ts +8 -0
- package/dist/database/migrations/202610060001_ag_add_runner_product.d.ts.map +1 -0
- package/dist/database/migrations/202610060001_ag_add_runner_product.js +21 -0
- package/dist/database/migrations/202610060001_ag_add_runner_product.js.map +1 -0
- package/dist/database/migrations/202610070001_ag_create_chat_attachments.d.ts +4 -0
- package/dist/database/migrations/202610070001_ag_create_chat_attachments.d.ts.map +1 -0
- package/dist/database/migrations/202610070001_ag_create_chat_attachments.js +35 -0
- package/dist/database/migrations/202610070001_ag_create_chat_attachments.js.map +1 -0
- package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.d.ts +9 -0
- package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.d.ts.map +1 -0
- package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.js +30 -0
- package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.js.map +1 -0
- package/dist/database/seeds/.manifest.json +9 -0
- package/dist/database/seeds/202610020007_ag_default_model_prices.d.ts +4 -0
- package/dist/database/seeds/202610020007_ag_default_model_prices.d.ts.map +1 -0
- package/dist/database/seeds/202610020007_ag_default_model_prices.js +142 -0
- package/dist/database/seeds/202610020007_ag_default_model_prices.js.map +1 -0
- package/dist/package.d.ts +2 -0
- package/dist/package.d.ts.map +1 -0
- package/dist/package.js +2 -0
- package/dist/package.js.map +1 -0
- package/dist/package.json +312 -0
- package/dist/server/cli/run-credential.d.ts +17 -0
- package/dist/server/cli/run-credential.d.ts.map +1 -0
- package/dist/server/cli/run-credential.js +52 -0
- package/dist/server/cli/run-credential.js.map +1 -0
- package/dist/server/cli/surface.d.ts +20 -0
- package/dist/server/cli/surface.d.ts.map +1 -0
- package/dist/server/cli/surface.js +66 -0
- package/dist/server/cli/surface.js.map +1 -0
- package/dist/server/composition.d.ts +194 -0
- package/dist/server/composition.d.ts.map +1 -0
- package/dist/server/composition.js +365 -0
- package/dist/server/composition.js.map +1 -0
- package/dist/server/core/agents/actions.d.ts +16 -0
- package/dist/server/core/agents/actions.d.ts.map +1 -0
- package/dist/server/core/agents/actions.js +26 -0
- package/dist/server/core/agents/actions.js.map +1 -0
- package/dist/server/core/agents/agent.history.d.ts +32 -0
- package/dist/server/core/agents/agent.history.d.ts.map +1 -0
- package/dist/server/core/agents/agent.history.js +71 -0
- package/dist/server/core/agents/agent.history.js.map +1 -0
- package/dist/server/core/agents/agent.service.d.ts +85 -0
- package/dist/server/core/agents/agent.service.d.ts.map +1 -0
- package/dist/server/core/agents/agent.service.js +427 -0
- package/dist/server/core/agents/agent.service.js.map +1 -0
- package/dist/server/core/agents/agent.store.d.ts +51 -0
- package/dist/server/core/agents/agent.store.d.ts.map +1 -0
- package/dist/server/core/agents/agent.store.js +152 -0
- package/dist/server/core/agents/agent.store.js.map +1 -0
- package/dist/server/core/agents/index.d.ts +4 -0
- package/dist/server/core/agents/index.d.ts.map +1 -0
- package/dist/server/core/agents/index.js +4 -0
- package/dist/server/core/agents/index.js.map +1 -0
- package/dist/server/core/brief/brief.d.ts +114 -0
- package/dist/server/core/brief/brief.d.ts.map +1 -0
- package/dist/server/core/brief/brief.js +216 -0
- package/dist/server/core/brief/brief.js.map +1 -0
- package/dist/server/core/brief/index.d.ts +2 -0
- package/dist/server/core/brief/index.d.ts.map +1 -0
- package/dist/server/core/brief/index.js +2 -0
- package/dist/server/core/brief/index.js.map +1 -0
- package/dist/server/core/callers/index.d.ts +63 -0
- package/dist/server/core/callers/index.d.ts.map +1 -0
- package/dist/server/core/callers/index.js +42 -0
- package/dist/server/core/callers/index.js.map +1 -0
- package/dist/server/core/consultations/consultation.service.d.ts +59 -0
- package/dist/server/core/consultations/consultation.service.d.ts.map +1 -0
- package/dist/server/core/consultations/consultation.service.js +195 -0
- package/dist/server/core/consultations/consultation.service.js.map +1 -0
- package/dist/server/core/consultations/index.d.ts +3 -0
- package/dist/server/core/consultations/index.d.ts.map +1 -0
- package/dist/server/core/consultations/index.js +3 -0
- package/dist/server/core/consultations/index.js.map +1 -0
- package/dist/server/core/consultations/prompt.d.ts +41 -0
- package/dist/server/core/consultations/prompt.d.ts.map +1 -0
- package/dist/server/core/consultations/prompt.js +64 -0
- package/dist/server/core/consultations/prompt.js.map +1 -0
- package/dist/server/core/conversations/attachments.d.ts +159 -0
- package/dist/server/core/conversations/attachments.d.ts.map +1 -0
- package/dist/server/core/conversations/attachments.js +281 -0
- package/dist/server/core/conversations/attachments.js.map +1 -0
- package/dist/server/core/conversations/availability.d.ts +14 -0
- package/dist/server/core/conversations/availability.d.ts.map +1 -0
- package/dist/server/core/conversations/availability.js +42 -0
- package/dist/server/core/conversations/availability.js.map +1 -0
- package/dist/server/core/conversations/chat-settings.d.ts +26 -0
- package/dist/server/core/conversations/chat-settings.d.ts.map +1 -0
- package/dist/server/core/conversations/chat-settings.js +98 -0
- package/dist/server/core/conversations/chat-settings.js.map +1 -0
- package/dist/server/core/conversations/conversation.service.d.ts +31 -0
- package/dist/server/core/conversations/conversation.service.d.ts.map +1 -0
- package/dist/server/core/conversations/conversation.service.js +1158 -0
- package/dist/server/core/conversations/conversation.service.js.map +1 -0
- package/dist/server/core/conversations/conversation.store.d.ts +104 -0
- package/dist/server/core/conversations/conversation.store.d.ts.map +1 -0
- package/dist/server/core/conversations/conversation.store.js +159 -0
- package/dist/server/core/conversations/conversation.store.js.map +1 -0
- package/dist/server/core/conversations/index.d.ts +8 -0
- package/dist/server/core/conversations/index.d.ts.map +1 -0
- package/dist/server/core/conversations/index.js +7 -0
- package/dist/server/core/conversations/index.js.map +1 -0
- package/dist/server/core/conversations/page-context.d.ts +35 -0
- package/dist/server/core/conversations/page-context.d.ts.map +1 -0
- package/dist/server/core/conversations/page-context.js +144 -0
- package/dist/server/core/conversations/page-context.js.map +1 -0
- package/dist/server/core/conversations/ports.d.ts +145 -0
- package/dist/server/core/conversations/ports.d.ts.map +1 -0
- package/dist/server/core/conversations/ports.js +2 -0
- package/dist/server/core/conversations/ports.js.map +1 -0
- package/dist/server/core/conversations/prompt.d.ts +46 -0
- package/dist/server/core/conversations/prompt.d.ts.map +1 -0
- package/dist/server/core/conversations/prompt.js +107 -0
- package/dist/server/core/conversations/prompt.js.map +1 -0
- package/dist/server/core/conversations/titles.d.ts +9 -0
- package/dist/server/core/conversations/titles.d.ts.map +1 -0
- package/dist/server/core/conversations/titles.js +20 -0
- package/dist/server/core/conversations/titles.js.map +1 -0
- package/dist/server/core/presets/index.d.ts +19 -0
- package/dist/server/core/presets/index.d.ts.map +1 -0
- package/dist/server/core/presets/index.js +28 -0
- package/dist/server/core/presets/index.js.map +1 -0
- package/dist/server/core/reports/index.d.ts +7 -0
- package/dist/server/core/reports/index.d.ts.map +1 -0
- package/dist/server/core/reports/index.js +7 -0
- package/dist/server/core/reports/index.js.map +1 -0
- package/dist/server/core/reports/metrics.d.ts +23 -0
- package/dist/server/core/reports/metrics.d.ts.map +1 -0
- package/dist/server/core/reports/metrics.js +60 -0
- package/dist/server/core/reports/metrics.js.map +1 -0
- package/dist/server/core/reports/model-usage.d.ts +35 -0
- package/dist/server/core/reports/model-usage.d.ts.map +1 -0
- package/dist/server/core/reports/model-usage.js +84 -0
- package/dist/server/core/reports/model-usage.js.map +1 -0
- package/dist/server/core/reports/prices.d.ts +35 -0
- package/dist/server/core/reports/prices.d.ts.map +1 -0
- package/dist/server/core/reports/prices.js +173 -0
- package/dist/server/core/reports/prices.js.map +1 -0
- package/dist/server/core/reports/report.service.d.ts +57 -0
- package/dist/server/core/reports/report.service.d.ts.map +1 -0
- package/dist/server/core/reports/report.service.js +310 -0
- package/dist/server/core/reports/report.service.js.map +1 -0
- package/dist/server/core/reports/usage.d.ts +50 -0
- package/dist/server/core/reports/usage.d.ts.map +1 -0
- package/dist/server/core/reports/usage.js +159 -0
- package/dist/server/core/reports/usage.js.map +1 -0
- package/dist/server/core/runs/availability.d.ts +20 -0
- package/dist/server/core/runs/availability.d.ts.map +1 -0
- package/dist/server/core/runs/availability.js +31 -0
- package/dist/server/core/runs/availability.js.map +1 -0
- package/dist/server/core/runs/claim.d.ts +172 -0
- package/dist/server/core/runs/claim.d.ts.map +1 -0
- package/dist/server/core/runs/claim.js +750 -0
- package/dist/server/core/runs/claim.js.map +1 -0
- package/dist/server/core/runs/cli-package.d.ts +16 -0
- package/dist/server/core/runs/cli-package.d.ts.map +1 -0
- package/dist/server/core/runs/cli-package.js +18 -0
- package/dist/server/core/runs/cli-package.js.map +1 -0
- package/dist/server/core/runs/extensions.d.ts +129 -0
- package/dist/server/core/runs/extensions.d.ts.map +1 -0
- package/dist/server/core/runs/extensions.js +184 -0
- package/dist/server/core/runs/extensions.js.map +1 -0
- package/dist/server/core/runs/index.d.ts +16 -0
- package/dist/server/core/runs/index.d.ts.map +1 -0
- package/dist/server/core/runs/index.js +15 -0
- package/dist/server/core/runs/index.js.map +1 -0
- package/dist/server/core/runs/lifecycle.d.ts +56 -0
- package/dist/server/core/runs/lifecycle.d.ts.map +1 -0
- package/dist/server/core/runs/lifecycle.js +348 -0
- package/dist/server/core/runs/lifecycle.js.map +1 -0
- package/dist/server/core/runs/policy.d.ts +33 -0
- package/dist/server/core/runs/policy.d.ts.map +1 -0
- package/dist/server/core/runs/policy.js +38 -0
- package/dist/server/core/runs/policy.js.map +1 -0
- package/dist/server/core/runs/ports.d.ts +197 -0
- package/dist/server/core/runs/ports.d.ts.map +1 -0
- package/dist/server/core/runs/ports.js +33 -0
- package/dist/server/core/runs/ports.js.map +1 -0
- package/dist/server/core/runs/preview.d.ts +47 -0
- package/dist/server/core/runs/preview.d.ts.map +1 -0
- package/dist/server/core/runs/preview.js +104 -0
- package/dist/server/core/runs/preview.js.map +1 -0
- package/dist/server/core/runs/run-tokens.d.ts +21 -0
- package/dist/server/core/runs/run-tokens.d.ts.map +1 -0
- package/dist/server/core/runs/run-tokens.js +51 -0
- package/dist/server/core/runs/run-tokens.js.map +1 -0
- package/dist/server/core/runs/run.service.d.ts +167 -0
- package/dist/server/core/runs/run.service.d.ts.map +1 -0
- package/dist/server/core/runs/run.service.js +473 -0
- package/dist/server/core/runs/run.service.js.map +1 -0
- package/dist/server/core/runs/run.store.d.ts +186 -0
- package/dist/server/core/runs/run.store.d.ts.map +1 -0
- package/dist/server/core/runs/run.store.js +246 -0
- package/dist/server/core/runs/run.store.js.map +1 -0
- package/dist/server/core/runs/runner-view.d.ts +46 -0
- package/dist/server/core/runs/runner-view.d.ts.map +1 -0
- package/dist/server/core/runs/runner-view.js +119 -0
- package/dist/server/core/runs/runner-view.js.map +1 -0
- package/dist/server/core/runs/sweeper.d.ts +28 -0
- package/dist/server/core/runs/sweeper.d.ts.map +1 -0
- package/dist/server/core/runs/sweeper.js +199 -0
- package/dist/server/core/runs/sweeper.js.map +1 -0
- package/dist/server/core/runs/transitions.d.ts +41 -0
- package/dist/server/core/runs/transitions.d.ts.map +1 -0
- package/dist/server/core/runs/transitions.js +105 -0
- package/dist/server/core/runs/transitions.js.map +1 -0
- package/dist/server/core/runs/workload.d.ts +49 -0
- package/dist/server/core/runs/workload.d.ts.map +1 -0
- package/dist/server/core/runs/workload.js +281 -0
- package/dist/server/core/runs/workload.js.map +1 -0
- package/dist/server/core/runs/workspace.store.d.ts +23 -0
- package/dist/server/core/runs/workspace.store.d.ts.map +1 -0
- package/dist/server/core/runs/workspace.store.js +77 -0
- package/dist/server/core/runs/workspace.store.js.map +1 -0
- package/dist/server/core/skills/blobs.d.ts +65 -0
- package/dist/server/core/skills/blobs.d.ts.map +1 -0
- package/dist/server/core/skills/blobs.js +212 -0
- package/dist/server/core/skills/blobs.js.map +1 -0
- package/dist/server/core/skills/bundle.d.ts +27 -0
- package/dist/server/core/skills/bundle.d.ts.map +1 -0
- package/dist/server/core/skills/bundle.js +71 -0
- package/dist/server/core/skills/bundle.js.map +1 -0
- package/dist/server/core/skills/index.d.ts +6 -0
- package/dist/server/core/skills/index.d.ts.map +1 -0
- package/dist/server/core/skills/index.js +6 -0
- package/dist/server/core/skills/index.js.map +1 -0
- package/dist/server/core/skills/skill.service.d.ts +105 -0
- package/dist/server/core/skills/skill.service.d.ts.map +1 -0
- package/dist/server/core/skills/skill.service.js +625 -0
- package/dist/server/core/skills/skill.service.js.map +1 -0
- package/dist/server/core/skills/skill.store.d.ts +50 -0
- package/dist/server/core/skills/skill.store.d.ts.map +1 -0
- package/dist/server/core/skills/skill.store.js +58 -0
- package/dist/server/core/skills/skill.store.js.map +1 -0
- package/dist/server/core/skills/zip.d.ts +13 -0
- package/dist/server/core/skills/zip.d.ts.map +1 -0
- package/dist/server/core/skills/zip.js +126 -0
- package/dist/server/core/skills/zip.js.map +1 -0
- package/dist/server/core/variables/index.d.ts +2 -0
- package/dist/server/core/variables/index.d.ts.map +1 -0
- package/dist/server/core/variables/index.js +2 -0
- package/dist/server/core/variables/index.js.map +1 -0
- package/dist/server/core/variables/variable.service.d.ts +83 -0
- package/dist/server/core/variables/variable.service.d.ts.map +1 -0
- package/dist/server/core/variables/variable.service.js +199 -0
- package/dist/server/core/variables/variable.service.js.map +1 -0
- package/dist/server/distribution/dist.service.d.ts +50 -0
- package/dist/server/distribution/dist.service.d.ts.map +1 -0
- package/dist/server/distribution/dist.service.js +201 -0
- package/dist/server/distribution/dist.service.js.map +1 -0
- package/dist/server/distribution/download-tokens.d.ts +30 -0
- package/dist/server/distribution/download-tokens.d.ts.map +1 -0
- package/dist/server/distribution/download-tokens.js +82 -0
- package/dist/server/distribution/download-tokens.js.map +1 -0
- package/dist/server/distribution/index.d.ts +14 -0
- package/dist/server/distribution/index.d.ts.map +1 -0
- package/dist/server/distribution/index.js +28 -0
- package/dist/server/distribution/index.js.map +1 -0
- package/dist/server/index.d.ts +4 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +4 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/jobs/index.d.ts +5 -0
- package/dist/server/jobs/index.d.ts.map +1 -0
- package/dist/server/jobs/index.js +5 -0
- package/dist/server/jobs/index.js.map +1 -0
- package/dist/server/jobs/job.service.d.ts +152 -0
- package/dist/server/jobs/job.service.d.ts.map +1 -0
- package/dist/server/jobs/job.service.js +713 -0
- package/dist/server/jobs/job.service.js.map +1 -0
- package/dist/server/jobs/job.store.d.ts +74 -0
- package/dist/server/jobs/job.store.d.ts.map +1 -0
- package/dist/server/jobs/job.store.js +110 -0
- package/dist/server/jobs/job.store.js.map +1 -0
- package/dist/server/jobs/job.transitions.d.ts +41 -0
- package/dist/server/jobs/job.transitions.d.ts.map +1 -0
- package/dist/server/jobs/job.transitions.js +112 -0
- package/dist/server/jobs/job.transitions.js.map +1 -0
- package/dist/server/jobs/registry.d.ts +53 -0
- package/dist/server/jobs/registry.d.ts.map +1 -0
- package/dist/server/jobs/registry.js +32 -0
- package/dist/server/jobs/registry.js.map +1 -0
- package/dist/server/jobs/spec.d.ts +45 -0
- package/dist/server/jobs/spec.d.ts.map +1 -0
- package/dist/server/jobs/spec.js +106 -0
- package/dist/server/jobs/spec.js.map +1 -0
- package/dist/server/kernel/clock.d.ts +10 -0
- package/dist/server/kernel/clock.d.ts.map +1 -0
- package/dist/server/kernel/clock.js +10 -0
- package/dist/server/kernel/clock.js.map +1 -0
- package/dist/server/kernel/crypto.d.ts +18 -0
- package/dist/server/kernel/crypto.d.ts.map +1 -0
- package/dist/server/kernel/crypto.js +25 -0
- package/dist/server/kernel/crypto.js.map +1 -0
- package/dist/server/kernel/errors.d.ts +16 -0
- package/dist/server/kernel/errors.d.ts.map +1 -0
- package/dist/server/kernel/errors.js +44 -0
- package/dist/server/kernel/errors.js.map +1 -0
- package/dist/server/kernel/events.d.ts +122 -0
- package/dist/server/kernel/events.d.ts.map +1 -0
- package/dist/server/kernel/events.js +32 -0
- package/dist/server/kernel/events.js.map +1 -0
- package/dist/server/kernel/http.d.ts +23 -0
- package/dist/server/kernel/http.d.ts.map +1 -0
- package/dist/server/kernel/http.js +56 -0
- package/dist/server/kernel/http.js.map +1 -0
- package/dist/server/kernel/ids.d.ts +9 -0
- package/dist/server/kernel/ids.d.ts.map +1 -0
- package/dist/server/kernel/ids.js +5 -0
- package/dist/server/kernel/ids.js.map +1 -0
- package/dist/server/kernel/people.d.ts +28 -0
- package/dist/server/kernel/people.d.ts.map +1 -0
- package/dist/server/kernel/people.js +30 -0
- package/dist/server/kernel/people.js.map +1 -0
- package/dist/server/kernel/redaction.d.ts +25 -0
- package/dist/server/kernel/redaction.d.ts.map +1 -0
- package/dist/server/kernel/redaction.js +39 -0
- package/dist/server/kernel/redaction.js.map +1 -0
- package/dist/server/kernel/scopes.d.ts +34 -0
- package/dist/server/kernel/scopes.d.ts.map +1 -0
- package/dist/server/kernel/scopes.js +47 -0
- package/dist/server/kernel/scopes.js.map +1 -0
- package/dist/server/kernel/secrets.d.ts +12 -0
- package/dist/server/kernel/secrets.d.ts.map +1 -0
- package/dist/server/kernel/secrets.js +20 -0
- package/dist/server/kernel/secrets.js.map +1 -0
- package/dist/server/kernel/tx.d.ts +18 -0
- package/dist/server/kernel/tx.d.ts.map +1 -0
- package/dist/server/kernel/tx.js +15 -0
- package/dist/server/kernel/tx.js.map +1 -0
- package/dist/server/kernel/values.d.ts +19 -0
- package/dist/server/kernel/values.d.ts.map +1 -0
- package/dist/server/kernel/values.js +64 -0
- package/dist/server/kernel/values.js.map +1 -0
- package/dist/server/locales/en-US.d.ts +4 -0
- package/dist/server/locales/en-US.d.ts.map +1 -0
- package/dist/server/locales/en-US.js +6 -0
- package/dist/server/locales/en-US.js.map +1 -0
- package/dist/server/locales/index.d.ts +4 -0
- package/dist/server/locales/index.d.ts.map +1 -0
- package/dist/server/locales/index.js +6 -0
- package/dist/server/locales/index.js.map +1 -0
- package/dist/server/locales/zh-CN.d.ts +4 -0
- package/dist/server/locales/zh-CN.d.ts.map +1 -0
- package/dist/server/locales/zh-CN.js +6 -0
- package/dist/server/locales/zh-CN.js.map +1 -0
- package/dist/server/online/cli-command.d.ts +20 -0
- package/dist/server/online/cli-command.d.ts.map +1 -0
- package/dist/server/online/cli-command.js +345 -0
- package/dist/server/online/cli-command.js.map +1 -0
- package/dist/server/online/consult-tool.d.ts +54 -0
- package/dist/server/online/consult-tool.d.ts.map +1 -0
- package/dist/server/online/consult-tool.js +177 -0
- package/dist/server/online/consult-tool.js.map +1 -0
- package/dist/server/online/executor.d.ts +83 -0
- package/dist/server/online/executor.d.ts.map +1 -0
- package/dist/server/online/executor.js +714 -0
- package/dist/server/online/executor.js.map +1 -0
- package/dist/server/online/gateway.d.ts +240 -0
- package/dist/server/online/gateway.d.ts.map +1 -0
- package/dist/server/online/gateway.js +552 -0
- package/dist/server/online/gateway.js.map +1 -0
- package/dist/server/online/index.d.ts +10 -0
- package/dist/server/online/index.d.ts.map +1 -0
- package/dist/server/online/index.js +10 -0
- package/dist/server/online/index.js.map +1 -0
- package/dist/server/online/providers.d.ts +58 -0
- package/dist/server/online/providers.d.ts.map +1 -0
- package/dist/server/online/providers.js +370 -0
- package/dist/server/online/providers.js.map +1 -0
- package/dist/server/online/routes.d.ts +9 -0
- package/dist/server/online/routes.d.ts.map +1 -0
- package/dist/server/online/routes.js +197 -0
- package/dist/server/online/routes.js.map +1 -0
- package/dist/server/online/sandbox.d.ts +32 -0
- package/dist/server/online/sandbox.d.ts.map +1 -0
- package/dist/server/online/sandbox.js +246 -0
- package/dist/server/online/sandbox.js.map +1 -0
- package/dist/server/online/scripted.d.ts +12 -0
- package/dist/server/online/scripted.d.ts.map +1 -0
- package/dist/server/online/scripted.js +176 -0
- package/dist/server/online/scripted.js.map +1 -0
- package/dist/server/online/services.d.ts +49 -0
- package/dist/server/online/services.d.ts.map +1 -0
- package/dist/server/online/services.js +444 -0
- package/dist/server/online/services.js.map +1 -0
- package/dist/server/online/tools.d.ts +17 -0
- package/dist/server/online/tools.d.ts.map +1 -0
- package/dist/server/online/tools.js +31 -0
- package/dist/server/online/tools.js.map +1 -0
- package/dist/server/plugin.d.ts +4 -0
- package/dist/server/plugin.d.ts.map +1 -0
- package/dist/server/plugin.js +20 -0
- package/dist/server/plugin.js.map +1 -0
- package/dist/server/providers/agents.d.ts +84 -0
- package/dist/server/providers/agents.d.ts.map +1 -0
- package/dist/server/providers/agents.js +303 -0
- package/dist/server/providers/agents.js.map +1 -0
- package/dist/server/providers/authorization.d.ts +17 -0
- package/dist/server/providers/authorization.d.ts.map +1 -0
- package/dist/server/providers/authorization.js +60 -0
- package/dist/server/providers/authorization.js.map +1 -0
- package/dist/server/providers/index.d.ts +4 -0
- package/dist/server/providers/index.d.ts.map +1 -0
- package/dist/server/providers/index.js +10 -0
- package/dist/server/providers/index.js.map +1 -0
- package/dist/server/providers/runners.d.ts +19 -0
- package/dist/server/providers/runners.d.ts.map +1 -0
- package/dist/server/providers/runners.js +143 -0
- package/dist/server/providers/runners.js.map +1 -0
- package/dist/server/routes/admin.d.ts +27 -0
- package/dist/server/routes/admin.d.ts.map +1 -0
- package/dist/server/routes/admin.js +1424 -0
- package/dist/server/routes/admin.js.map +1 -0
- package/dist/server/routes/chat.d.ts +9 -0
- package/dist/server/routes/chat.d.ts.map +1 -0
- package/dist/server/routes/chat.js +570 -0
- package/dist/server/routes/chat.js.map +1 -0
- package/dist/server/routes/index.d.ts +6 -0
- package/dist/server/routes/index.d.ts.map +1 -0
- package/dist/server/routes/index.js +100 -0
- package/dist/server/routes/index.js.map +1 -0
- package/dist/server/routes/openapi.d.ts +30 -0
- package/dist/server/routes/openapi.d.ts.map +1 -0
- package/dist/server/routes/openapi.js +101 -0
- package/dist/server/routes/openapi.js.map +1 -0
- package/dist/server/routes/roster.d.ts +6 -0
- package/dist/server/routes/roster.d.ts.map +1 -0
- package/dist/server/routes/roster.js +52 -0
- package/dist/server/routes/roster.js.map +1 -0
- package/dist/server/routes/run.d.ts +10 -0
- package/dist/server/routes/run.d.ts.map +1 -0
- package/dist/server/routes/run.js +91 -0
- package/dist/server/routes/run.js.map +1 -0
- package/dist/server/routes/runners/admin.d.ts +20 -0
- package/dist/server/routes/runners/admin.d.ts.map +1 -0
- package/dist/server/routes/runners/admin.js +280 -0
- package/dist/server/routes/runners/admin.js.map +1 -0
- package/dist/server/routes/runners/dist.d.ts +20 -0
- package/dist/server/routes/runners/dist.d.ts.map +1 -0
- package/dist/server/routes/runners/dist.js +190 -0
- package/dist/server/routes/runners/dist.js.map +1 -0
- package/dist/server/routes/runners/install.d.ts +23 -0
- package/dist/server/routes/runners/install.d.ts.map +1 -0
- package/dist/server/routes/runners/install.js +352 -0
- package/dist/server/routes/runners/install.js.map +1 -0
- package/dist/server/routes/runners/runner.d.ts +9 -0
- package/dist/server/routes/runners/runner.d.ts.map +1 -0
- package/dist/server/routes/runners/runner.js +303 -0
- package/dist/server/routes/runners/runner.js.map +1 -0
- package/dist/server/routes/runners/runs.d.ts +5 -0
- package/dist/server/routes/runners/runs.d.ts.map +1 -0
- package/dist/server/routes/runners/runs.js +74 -0
- package/dist/server/routes/runners/runs.js.map +1 -0
- package/dist/server/routes/schemas.d.ts +220 -0
- package/dist/server/routes/schemas.d.ts.map +1 -0
- package/dist/server/routes/schemas.js +1040 -0
- package/dist/server/routes/schemas.js.map +1 -0
- package/dist/server/runners/index.d.ts +13 -0
- package/dist/server/runners/index.d.ts.map +1 -0
- package/dist/server/runners/index.js +6 -0
- package/dist/server/runners/index.js.map +1 -0
- package/dist/server/runners/runner.service.d.ts +77 -0
- package/dist/server/runners/runner.service.d.ts.map +1 -0
- package/dist/server/runners/runner.service.js +384 -0
- package/dist/server/runners/runner.service.js.map +1 -0
- package/dist/server/runners/runner.store.d.ts +74 -0
- package/dist/server/runners/runner.store.d.ts.map +1 -0
- package/dist/server/runners/runner.store.js +121 -0
- package/dist/server/runners/runner.store.js.map +1 -0
- package/dist/server/runners/signal.d.ts +13 -0
- package/dist/server/runners/signal.d.ts.map +1 -0
- package/dist/server/runners/signal.js +30 -0
- package/dist/server/runners/signal.js.map +1 -0
- package/dist/server/runners/slots.d.ts +26 -0
- package/dist/server/runners/slots.d.ts.map +1 -0
- package/dist/server/runners/slots.js +27 -0
- package/dist/server/runners/slots.js.map +1 -0
- package/dist/server/runners/sweeper.d.ts +21 -0
- package/dist/server/runners/sweeper.d.ts.map +1 -0
- package/dist/server/runners/sweeper.js +19 -0
- package/dist/server/runners/sweeper.js.map +1 -0
- package/dist/server/secrets-stores.d.ts +8 -0
- package/dist/server/secrets-stores.d.ts.map +1 -0
- package/dist/server/secrets-stores.js +43 -0
- package/dist/server/secrets-stores.js.map +1 -0
- package/dist/server/testing.d.ts +16 -0
- package/dist/server/testing.d.ts.map +1 -0
- package/dist/server/testing.js +24 -0
- package/dist/server/testing.js.map +1 -0
- package/dist/server/tokens.d.ts +39 -0
- package/dist/server/tokens.d.ts.map +1 -0
- package/dist/server/tokens.js +8 -0
- package/dist/server/tokens.js.map +1 -0
- package/dist/server/vectors/index.d.ts +7 -0
- package/dist/server/vectors/index.d.ts.map +1 -0
- package/dist/server/vectors/index.js +6 -0
- package/dist/server/vectors/index.js.map +1 -0
- package/dist/server/vectors/naming.d.ts +6 -0
- package/dist/server/vectors/naming.d.ts.map +1 -0
- package/dist/server/vectors/naming.js +15 -0
- package/dist/server/vectors/naming.js.map +1 -0
- package/dist/server/vectors/pgvector.d.ts +26 -0
- package/dist/server/vectors/pgvector.d.ts.map +1 -0
- package/dist/server/vectors/pgvector.js +346 -0
- package/dist/server/vectors/pgvector.js.map +1 -0
- package/dist/server/vectors/sqlite-vec.d.ts +14 -0
- package/dist/server/vectors/sqlite-vec.d.ts.map +1 -0
- package/dist/server/vectors/sqlite-vec.js +286 -0
- package/dist/server/vectors/sqlite-vec.js.map +1 -0
- package/dist/server/vectors/types.d.ts +256 -0
- package/dist/server/vectors/types.d.ts.map +1 -0
- package/dist/server/vectors/types.js +2 -0
- package/dist/server/vectors/types.js.map +1 -0
- package/dist/server/vectors/vectors.d.ts +34 -0
- package/dist/server/vectors/vectors.d.ts.map +1 -0
- package/dist/server/vectors/vectors.js +866 -0
- package/dist/server/vectors/vectors.js.map +1 -0
- package/dist/server/vendor/THIRD_PARTY_LICENSES.txt +782 -0
- package/dist/server/vendor/just-bash.d.ts +83 -0
- package/dist/server/vendor/just-bash.js +2102 -0
- package/dist/shared/access.d.ts +154 -0
- package/dist/shared/access.d.ts.map +1 -0
- package/dist/shared/access.js +166 -0
- package/dist/shared/access.js.map +1 -0
- package/dist/shared/agents.d.ts +284 -0
- package/dist/shared/agents.d.ts.map +1 -0
- package/dist/shared/agents.js +143 -0
- package/dist/shared/agents.js.map +1 -0
- package/dist/shared/briefs.d.ts +46 -0
- package/dist/shared/briefs.d.ts.map +1 -0
- package/dist/shared/briefs.js +10 -0
- package/dist/shared/briefs.js.map +1 -0
- package/dist/shared/conversations.d.ts +623 -0
- package/dist/shared/conversations.d.ts.map +1 -0
- package/dist/shared/conversations.js +182 -0
- package/dist/shared/conversations.js.map +1 -0
- package/dist/shared/i18n.d.ts +10 -0
- package/dist/shared/i18n.d.ts.map +1 -0
- package/dist/shared/i18n.js +2 -0
- package/dist/shared/i18n.js.map +1 -0
- package/dist/shared/jobs.d.ts +73 -0
- package/dist/shared/jobs.d.ts.map +1 -0
- package/dist/shared/jobs.js +3 -0
- package/dist/shared/jobs.js.map +1 -0
- package/dist/shared/locales/access.en-US.d.ts +47 -0
- package/dist/shared/locales/access.en-US.d.ts.map +1 -0
- package/dist/shared/locales/access.en-US.js +51 -0
- package/dist/shared/locales/access.en-US.js.map +1 -0
- package/dist/shared/locales/access.zh-CN.d.ts +4 -0
- package/dist/shared/locales/access.zh-CN.d.ts.map +1 -0
- package/dist/shared/locales/access.zh-CN.js +51 -0
- package/dist/shared/locales/access.zh-CN.js.map +1 -0
- package/dist/shared/models.d.ts +196 -0
- package/dist/shared/models.d.ts.map +1 -0
- package/dist/shared/models.js +142 -0
- package/dist/shared/models.js.map +1 -0
- package/dist/shared/presets.d.ts +30 -0
- package/dist/shared/presets.d.ts.map +1 -0
- package/dist/shared/presets.js +2 -0
- package/dist/shared/presets.js.map +1 -0
- package/dist/shared/realtime.d.ts +27 -0
- package/dist/shared/realtime.d.ts.map +1 -0
- package/dist/shared/realtime.js +7 -0
- package/dist/shared/realtime.js.map +1 -0
- package/dist/shared/reports.d.ts +293 -0
- package/dist/shared/reports.d.ts.map +1 -0
- package/dist/shared/reports.js +135 -0
- package/dist/shared/reports.js.map +1 -0
- package/dist/shared/runners.d.ts +246 -0
- package/dist/shared/runners.d.ts.map +1 -0
- package/dist/shared/runners.js +90 -0
- package/dist/shared/runners.js.map +1 -0
- package/dist/shared/runs.d.ts +205 -0
- package/dist/shared/runs.d.ts.map +1 -0
- package/dist/shared/runs.js +41 -0
- package/dist/shared/runs.js.map +1 -0
- package/dist/shared/skill-markdown.d.ts +45 -0
- package/dist/shared/skill-markdown.d.ts.map +1 -0
- package/dist/shared/skill-markdown.js +131 -0
- package/dist/shared/skill-markdown.js.map +1 -0
- package/dist/shared/skills.d.ts +155 -0
- package/dist/shared/skills.d.ts.map +1 -0
- package/dist/shared/skills.js +61 -0
- package/dist/shared/skills.js.map +1 -0
- package/dist/shared/variables.d.ts +51 -0
- package/dist/shared/variables.d.ts.map +1 -0
- package/dist/shared/variables.js +46 -0
- package/dist/shared/variables.js.map +1 -0
- package/dist/shared/vocabulary.d.ts +44 -0
- package/dist/shared/vocabulary.d.ts.map +1 -0
- package/dist/shared/vocabulary.js +2 -0
- package/dist/shared/vocabulary.js.map +1 -0
- package/package.json +202 -3
- package/skills/nocobase-app-plugin-agents/SKILL.md +34 -0
- package/skills/nocobase-app-plugin-agents/references/distribution.md +62 -0
- package/skills/nocobase-app-plugin-agents/references/extension-points.md +33 -0
- package/skills/nocobase-app-plugin-agents/references/online-agents.md +31 -0
- package/skills/nocobase-app-plugin-agents/references/runners.md +32 -0
- package/skills/nocobase-app-plugin-agents/references/setup-and-config.md +60 -0
- package/skills/nocobase-app-plugin-agents/references/variables-skills-usage.md +21 -0
- package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +46 -0
package/package.json
CHANGED
|
@@ -1,6 +1,205 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/app-plugin-agents",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"displayName": "Agents",
|
|
4
|
+
"description": "Agents for NocoBase applications: agents, the model services online agents call, their runs and conversations, and the runners people connect to run them (registration, the long-poll claim, slots, the sweeper, build jobs, and the runner and CLI tarballs the application serves).",
|
|
5
|
+
"version": "0.1.0-beta.1",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"prettier": "@nocobase/dev-config/prettier",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=24.0.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
"./server": {
|
|
14
|
+
"types": "./dist/server/index.d.ts",
|
|
15
|
+
"import": "./dist/server/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./server/tokens": {
|
|
18
|
+
"types": "./dist/server/tokens.d.ts",
|
|
19
|
+
"import": "./dist/server/tokens.js"
|
|
20
|
+
},
|
|
21
|
+
"./testing": {
|
|
22
|
+
"types": "./dist/server/testing.d.ts",
|
|
23
|
+
"import": "./dist/server/testing.js"
|
|
24
|
+
},
|
|
25
|
+
"./shared/access": {
|
|
26
|
+
"types": "./dist/shared/access.d.ts",
|
|
27
|
+
"import": "./dist/shared/access.js"
|
|
28
|
+
},
|
|
29
|
+
"./shared/agents": {
|
|
30
|
+
"types": "./dist/shared/agents.d.ts",
|
|
31
|
+
"import": "./dist/shared/agents.js"
|
|
32
|
+
},
|
|
33
|
+
"./shared/runs": {
|
|
34
|
+
"types": "./dist/shared/runs.d.ts",
|
|
35
|
+
"import": "./dist/shared/runs.js"
|
|
36
|
+
},
|
|
37
|
+
"./shared/runners": {
|
|
38
|
+
"types": "./dist/shared/runners.d.ts",
|
|
39
|
+
"import": "./dist/shared/runners.js"
|
|
40
|
+
},
|
|
41
|
+
"./shared/jobs": {
|
|
42
|
+
"types": "./dist/shared/jobs.d.ts",
|
|
43
|
+
"import": "./dist/shared/jobs.js"
|
|
44
|
+
},
|
|
45
|
+
"./shared/variables": {
|
|
46
|
+
"types": "./dist/shared/variables.d.ts",
|
|
47
|
+
"import": "./dist/shared/variables.js"
|
|
48
|
+
},
|
|
49
|
+
"./shared/skills": {
|
|
50
|
+
"types": "./dist/shared/skills.d.ts",
|
|
51
|
+
"import": "./dist/shared/skills.js"
|
|
52
|
+
},
|
|
53
|
+
"./shared/briefs": {
|
|
54
|
+
"types": "./dist/shared/briefs.d.ts",
|
|
55
|
+
"import": "./dist/shared/briefs.js"
|
|
56
|
+
},
|
|
57
|
+
"./shared/realtime": {
|
|
58
|
+
"types": "./dist/shared/realtime.d.ts",
|
|
59
|
+
"import": "./dist/shared/realtime.js"
|
|
60
|
+
},
|
|
61
|
+
"./shared/reports": {
|
|
62
|
+
"types": "./dist/shared/reports.d.ts",
|
|
63
|
+
"import": "./dist/shared/reports.js"
|
|
64
|
+
},
|
|
65
|
+
"./shared/conversations": {
|
|
66
|
+
"types": "./dist/shared/conversations.d.ts",
|
|
67
|
+
"import": "./dist/shared/conversations.js"
|
|
68
|
+
},
|
|
69
|
+
"./shared/presets": {
|
|
70
|
+
"types": "./dist/shared/presets.d.ts",
|
|
71
|
+
"import": "./dist/shared/presets.js"
|
|
72
|
+
},
|
|
73
|
+
"./shared/models": {
|
|
74
|
+
"types": "./dist/shared/models.d.ts",
|
|
75
|
+
"import": "./dist/shared/models.js"
|
|
76
|
+
},
|
|
77
|
+
"./shared/i18n": {
|
|
78
|
+
"types": "./dist/shared/i18n.d.ts",
|
|
79
|
+
"import": "./dist/shared/i18n.js"
|
|
80
|
+
},
|
|
81
|
+
"./shared/vocabulary": {
|
|
82
|
+
"types": "./dist/shared/vocabulary.d.ts",
|
|
83
|
+
"import": "./dist/shared/vocabulary.js"
|
|
84
|
+
},
|
|
85
|
+
"./client": {
|
|
86
|
+
"types": "./dist/client/index.d.ts",
|
|
87
|
+
"import": "./dist/client/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./client/config": {
|
|
90
|
+
"types": "./dist/client/config.d.ts",
|
|
91
|
+
"import": "./dist/client/config.js"
|
|
92
|
+
},
|
|
93
|
+
"./client/routes": {
|
|
94
|
+
"types": "./dist/client/routes.d.ts",
|
|
95
|
+
"import": "./dist/client/routes.js"
|
|
96
|
+
},
|
|
97
|
+
"./client/runs": {
|
|
98
|
+
"types": "./dist/client/runs.d.ts",
|
|
99
|
+
"import": "./dist/client/runs.js"
|
|
100
|
+
},
|
|
101
|
+
"./client/kit": {
|
|
102
|
+
"types": "./dist/client/kit.d.ts",
|
|
103
|
+
"import": "./dist/client/kit.js"
|
|
104
|
+
},
|
|
105
|
+
"./client/chat": {
|
|
106
|
+
"types": "./dist/client/chat.d.ts",
|
|
107
|
+
"import": "./dist/client/chat.js"
|
|
108
|
+
},
|
|
109
|
+
"./client/profile": {
|
|
110
|
+
"types": "./dist/client/profile.d.ts",
|
|
111
|
+
"import": "./dist/client/profile.js"
|
|
112
|
+
},
|
|
113
|
+
"./cli": {
|
|
114
|
+
"types": "./dist/cli/index.d.ts",
|
|
115
|
+
"import": "./dist/cli/index.js"
|
|
116
|
+
},
|
|
117
|
+
"./package.json": "./package.json"
|
|
118
|
+
},
|
|
119
|
+
"files": [
|
|
120
|
+
"dist",
|
|
121
|
+
"README.md",
|
|
122
|
+
"CHANGELOG.md",
|
|
123
|
+
"skills"
|
|
124
|
+
],
|
|
125
|
+
"publishConfig": {
|
|
126
|
+
"access": "public"
|
|
127
|
+
},
|
|
128
|
+
"dependencies": {
|
|
129
|
+
"@ai-sdk/alibaba": "^2.0.60",
|
|
130
|
+
"@ai-sdk/anthropic": "^4.0.71",
|
|
131
|
+
"@ai-sdk/cohere": "^4.0.54",
|
|
132
|
+
"@ai-sdk/deepseek": "^3.0.58",
|
|
133
|
+
"@ai-sdk/google": "^4.0.87",
|
|
134
|
+
"@ai-sdk/moonshotai": "^3.0.62",
|
|
135
|
+
"@ai-sdk/openai": "^4.0.83",
|
|
136
|
+
"@ai-sdk/openai-compatible": "^3.0.62",
|
|
137
|
+
"ai": "^7.0.127",
|
|
138
|
+
"better-sqlite3": "^13.0.3",
|
|
139
|
+
"hono": "^4.13.2",
|
|
140
|
+
"knex": "^3.1.0",
|
|
141
|
+
"ollama-ai-provider-v2": "^4.0.1",
|
|
142
|
+
"pg": "^8.23.0",
|
|
143
|
+
"sqlite-vec": "^0.1.9",
|
|
144
|
+
"yaml": "^2.9.0",
|
|
145
|
+
"zod": "^4.6.5",
|
|
146
|
+
"@nocobase/agent-protocol": "^0.1.0-beta.1",
|
|
147
|
+
"@nocobase/app-cli-client": "^0.1.0-beta.0",
|
|
148
|
+
"@nocobase/cli-envelope": "^0.1.0-beta.0"
|
|
149
|
+
},
|
|
150
|
+
"peerDependencies": {
|
|
151
|
+
"@base-ui/react": "^1.6.0",
|
|
152
|
+
"@oclif/core": "^4.14.0",
|
|
153
|
+
"@tanstack/react-query": "^5.81.5",
|
|
154
|
+
"class-variance-authority": "^0.7.1",
|
|
155
|
+
"cn": "^0.4.0",
|
|
156
|
+
"lucide-react": "^0.487.0",
|
|
157
|
+
"react": "^19.0.0",
|
|
158
|
+
"react-day-picker": "10.0.1",
|
|
159
|
+
"react-markdown": "^10.1.0",
|
|
160
|
+
"react-router": "^7.0.2",
|
|
161
|
+
"recharts": "^3.8.0",
|
|
162
|
+
"remark-gfm": "^4.0.1",
|
|
163
|
+
"@nocobase/app-cli": "^1.0.0-beta.14",
|
|
164
|
+
"@nocobase/app-client": "^2.0.0-beta.2",
|
|
165
|
+
"@nocobase/app-plugin-authentication": "^2.0.0-beta.2",
|
|
166
|
+
"@nocobase/app-plugin-authorization": "^1.0.0-beta.25",
|
|
167
|
+
"@nocobase/app-plugin-file": "^1.0.0-beta.20",
|
|
168
|
+
"@nocobase/app-server": "^2.0.0-beta.1",
|
|
169
|
+
"@nocobase/authorization": "^1.0.0-beta.12",
|
|
170
|
+
"@nocobase/db": "^1.0.0-beta.18",
|
|
171
|
+
"@nocobase/i18n": "^1.0.0-beta.5",
|
|
172
|
+
"@nocobase/markdown-mermaid": "^0.1.0-beta.0",
|
|
173
|
+
"@nocobase/service-provider": "^0.0.2-beta.1"
|
|
174
|
+
},
|
|
175
|
+
"devDependencies": {
|
|
176
|
+
"@testing-library/react": "^16.3.2",
|
|
177
|
+
"@testing-library/user-event": "^14.6.3",
|
|
178
|
+
"@types/node": "^24.0.0",
|
|
179
|
+
"@types/react": "^19.2.0",
|
|
180
|
+
"esbuild": "^0.28.2",
|
|
181
|
+
"eslint": "^10.0.0",
|
|
182
|
+
"jsdom": "^30.0.1",
|
|
183
|
+
"just-bash": "^3.6.0",
|
|
184
|
+
"prettier": "^3.9.6",
|
|
185
|
+
"react-dom": "^19.2.8",
|
|
186
|
+
"typescript": "^6.0.3",
|
|
187
|
+
"vitest": "^4.1.10",
|
|
188
|
+
"@nocobase/app-testing": "0.1.0-beta.1",
|
|
189
|
+
"@nocobase/db-postgres": "0.1.0-beta.3",
|
|
190
|
+
"@nocobase/db-sqlite": "0.1.0-beta.4",
|
|
191
|
+
"@nocobase/dev-config": "0.1.0-beta.19",
|
|
192
|
+
"@nocobase/jobs": "0.1.0-beta.2"
|
|
193
|
+
},
|
|
194
|
+
"scripts": {
|
|
195
|
+
"build": "tsc -p tsconfig.json && node ./scripts/bundle-just-bash.mjs && nocobase-db-manifests",
|
|
196
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.type-tests.json --noEmit",
|
|
197
|
+
"test": "vitest run --passWithNoTests",
|
|
198
|
+
"lint": "eslint . --max-warnings 0",
|
|
199
|
+
"lint:fix": "eslint . --fix --max-warnings 0",
|
|
200
|
+
"format": "prettier . --write",
|
|
201
|
+
"format:check": "prettier . --check",
|
|
202
|
+
"check": "pnpm lint && pnpm format:check && pnpm typecheck && pnpm test && pnpm build",
|
|
203
|
+
"fix": "pnpm lint:fix && pnpm format"
|
|
204
|
+
}
|
|
6
205
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: nocobase-app-plugin-agents
|
|
3
|
+
description: Register the Agents plugin in a NocoBase App and configure it (agents.* in config.yml), contribute subjects, scopes, business actions, presets, CLI commands and reports through agentsToken, set up online agents and model services, connect runners (registration tokens, protocol, upgrade_required), build and serve the CLI and runner tarballs (pnpm nocobase cli build, --runner), or work out why a run, a runner or a model fails.
|
|
4
|
+
metadata:
|
|
5
|
+
short-description: Agents, runners, model services and their distribution
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Agents App Plugin
|
|
9
|
+
|
|
10
|
+
Use this Skill when an App gives people agents to work with: online agents that answer through a model service on the server, or work agents that drive a coding tool (Claude Code, Codex, OpenCode, Pi) on a runner someone connects. Use it as well to build the App's CLI and the runner as tarballs the App serves, and to diagnose a run, a runner or a model that does not work. Do not use it for the business data agents act on; that stays with `nocobase-app-development` and the plugins that own it.
|
|
11
|
+
|
|
12
|
+
The package README is the full reference: read it at `node_modules/@nocobase/app-plugin-agents/README.md` (in this repository, `packages/plugins/app-plugin-agents/README.md`). The references below say what to do and point to its sections rather than repeating them.
|
|
13
|
+
|
|
14
|
+
## Key rules
|
|
15
|
+
|
|
16
|
+
- The plugin knows no business of its own. Subjects, scopes, business actions, presets, CLI commands and report pages are the App's, contributed through `agentsToken` from `@nocobase/app-plugin-agents/server/tokens` when the App's providers boot. With nothing contributed, agents still work in conversations.
|
|
17
|
+
- An agent's type (`runner` or `online`) is chosen once and never changes. Online agents need a model service and no runner; runner agents need a runner that is online, has the agent's coding tool installed and signed in, and whose owner's local policy lets it take the work.
|
|
18
|
+
- Variables and model service keys are sealed with the App's secrets service: configure `secrets.keys` before storing any, or the API answers `SECRETS_KEY_MISSING` (503).
|
|
19
|
+
- The plugin registers no pages. The App routes the exported pages and mounts the chat; the App also binds `agentsAccessToken`, or every business action level is `none`.
|
|
20
|
+
- `subjects.register`'s `context.assemble`, brief sections and mounts run inside the claim's transaction: database reads only, never a network or a model call. Read anything else in the optional `prepare(run)`.
|
|
21
|
+
- Tarballs are built by `pnpm nocobase cli build` (the App's CLI) and `cli build --runner` (`nocobase-runner`) as separate CI artifacts and mounted into `storage/runners/dist` (or `agents.dist.dir`). Never bake them into the App's image or commit them.
|
|
22
|
+
- In examples, name the App's CLI after the App (`acme`), never `nocobase` or `nocobase-runner`.
|
|
23
|
+
|
|
24
|
+
## References
|
|
25
|
+
|
|
26
|
+
| Task | Read |
|
|
27
|
+
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
28
|
+
| Register the plugin, its prerequisites and `agents.*` configuration, mount the pages and the chat | [Setup and configuration](references/setup-and-config.md) |
|
|
29
|
+
| Contribute subjects, scopes, actions, presets, CLI commands, people, reports, brief sections, mounts | [Extension points](references/extension-points.md) |
|
|
30
|
+
| Online agents, model services, the model gateway, consultations, vectors | [Online agents and model services](references/online-agents.md) |
|
|
31
|
+
| Register runners, how claims and heartbeats work, local policy, protocol and `upgrade_required` | [Runners](references/runners.md) |
|
|
32
|
+
| Build the CLI and runner tarballs, serve them, CI artifacts, install script, download tokens, updates, the npm runner | [Distribution](references/distribution.md) |
|
|
33
|
+
| Variables and secrets, the skill library, chat attachments, usage, prices and reports | [Variables, skills, attachments and usage](references/variables-skills-usage.md) |
|
|
34
|
+
| Check that everything works, and diagnose failures | [Verification and troubleshooting](references/verification-and-troubleshooting.md) |
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Distribution: the CLI and runner tarballs
|
|
2
|
+
|
|
3
|
+
The App serves two products itself, as standalone tarballs that bundle Node.js, one per platform: its own CLI (the `nocobase.cli.bin` of its `package.json`, such as `acme`) and the runner, `nocobase-runner`. Nothing is published to a registry and a machine needs nothing installed beforehand. The README's "What it does" (Distribution) and "The CLI runs get" sections, and `@nocobase/app-cli`'s README section "The application's own CLI: `cli build` and `cli link`", are the reference.
|
|
4
|
+
|
|
5
|
+
## Building
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm nocobase cli build # the App's CLI (needs nocobase.cli in package.json)
|
|
9
|
+
pnpm nocobase cli build --runner # nocobase-runner, from @nocobase/agent-runner
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
- `--targets` takes a comma-separated list; the default is `darwin-arm64,darwin-x64,linux-x64,linux-arm64`. Windows is not supported.
|
|
13
|
+
- Node.js for each target is downloaded from nodejs.org and checked against `SHASUMS256.txt` (cached in `node_modules/.cache/nocobase-cli/node`). `--node-version` picks the version (default: the one running the command). `--host-node` uses this machine's Node.js for its own platform instead of downloading, for a quick local build: `pnpm nocobase cli build --targets darwin-arm64 --host-node`.
|
|
14
|
+
- `--out` (default `storage/runners/dist`), `--channel` (default `stable`), `--version` (default `nocobase.cli.version`, else the App's version; with `--runner`, the runner's), `--skip-build`, `--keep-staging`.
|
|
15
|
+
- The App needs `@nocobase/app-cli-client` in its `devDependencies` for the CLI and `@nocobase/agent-runner` for the runner; `npm`, `pnpm` and `tar` come from the environment.
|
|
16
|
+
|
|
17
|
+
Each product lands in a directory of its own, with a manifest of every file's SHA-256 and size:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
<out>/<channel>/<product>/manifest.json
|
|
21
|
+
<out>/<channel>/<product>/<version>/<product>-v<version>-<target>.tar.gz
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Serving
|
|
25
|
+
|
|
26
|
+
The plugin serves `agents.dist.dir` (default `storage/runners/dist`, relative to the App root), channel `agents.dist.channel` (default `stable`). A product's current version is the highest in the channel, unless `agents.dist.versions` pins one. Only files a manifest lists are served. Routes (`DIST_ROUTES` of `@nocobase/agent-protocol`): `GET /api/agents/dist/manifest`, `GET /api/agents/dist/products/<product>/targets/<target>` (`?format=env` for a shell; 404 `PLATFORM_UNSUPPORTED` with the targets there are), the tarball itself, and `POST /api/agents/dist/downloadTokens`.
|
|
27
|
+
|
|
28
|
+
## CI and deployment
|
|
29
|
+
|
|
30
|
+
Build the two products as separate artifacts in CI, one job each (`pnpm nocobase cli build --out output/dist` and `pnpm nocobase cli build --runner --out output/dist`, uploading `output/dist`), and mount or copy each into the deployment's `storage/runners/dist` (or the directory `agents.dist.dir` names), keeping the `<channel>/<product>/` layout. Do not bake them into the App's image: they change on their own schedule and are large. Rebuild the runner whenever `@nocobase/agent-runner` or the agents plugin is upgraded, so runners can update to a version that speaks the App's protocol, and rebuild the CLI whenever the App's `nocobase.cli` or its CLI skills change.
|
|
31
|
+
|
|
32
|
+
## Installing on a machine
|
|
33
|
+
|
|
34
|
+
The install script (`GET /api/agents/dist/installScript`, no credential, it carries no secret) installs the App's CLI under `~/.local/share/<cli>` and links it into `~/.local/bin`:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# The CLI alone, with a download token any signed-in person mints (one platform, three downloads within 30 minutes):
|
|
38
|
+
curl -fsSL https://app.example.com/api/agents/dist/installScript | sh -s -- --token <download token>
|
|
39
|
+
|
|
40
|
+
# A runtime: also installs nocobase-runner, registers it and starts it as a user service. "Add runtime" shows this line:
|
|
41
|
+
curl -fsSL https://app.example.com/api/agents/dist/installScript | sh -s -- --runner --server https://app.example.com --token <registration token>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Options: `--prefix`, `--bin-dir`, `--dry-run`; with `--runner`, `--runner-prefix`, `--name`, `--label` and `--no-service` (register only). A token of the other kind fails before anything is installed. An App that serves no CLI still installs the runtime.
|
|
45
|
+
|
|
46
|
+
## Updates
|
|
47
|
+
|
|
48
|
+
- The runner reports its product and version on every heartbeat; the answer names a newer `nocobase-runner` when the channel serves one for its platform. An installed runner started by its service updates itself between runs; `nocobase-runner update` does it now (`--check` only checks, `--auto on|off` switches automatic updates). The Runtimes page marks such a runner "Upgradable".
|
|
49
|
+
- The App's CLI, installed by the script, has `<cli> update`, and says on stderr when a newer version is served.
|
|
50
|
+
- A run gets the App's CLI as `agents.cli.package` says: by default the tarball the App serves for the runner's platform (`{ kind: served }`), downloaded once per version. A runner without the `archives` feature, or a platform with no build, falls back to the CLI installed beside it (`preinstalled`). `{ kind: npm, package, version }` names an npm package instead.
|
|
51
|
+
|
|
52
|
+
## The npm package as an alternative
|
|
53
|
+
|
|
54
|
+
`@nocobase/agent-runner` is published to npm with the `nocobase-runner` command, for a machine that already has Node.js 24 or later and prefers a package manager to the install script:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npm install -g @nocobase/agent-runner
|
|
58
|
+
nocobase-runner register --server https://app.example.com --token <registration token>
|
|
59
|
+
nocobase-runner service install
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Such a runner is not in the install script's layout, so it does not update itself: upgrade it with npm to a version that speaks the App's protocol. Install the App's CLI separately (the download-token line above) unless runs get it from the served tarball.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Extension points
|
|
2
|
+
|
|
3
|
+
Everything the App contributes goes through `agentsToken` (`@nocobase/app-plugin-agents/server/tokens`), resolved in one of the App's service providers when it boots. Text people read is an `I18nText` (`{ key, ns }`) in the App's own namespace. The README's "Extension points" section describes each field; this is the map. Where the two disagree, the types exported from `server/tokens` (the `Agents` interface) are authoritative.
|
|
4
|
+
|
|
5
|
+
| Extension point | Contributes | Typical use |
|
|
6
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
7
|
+
| `subjects.register(binding)` | A kind of subject runs work on: `kind`, `title`, `triggers`, `preview`, `context.assemble`, `sink.onRunFinished`, `queuedExpiryMs`, `reports.describe`, `agentTypes` | An issue, a ticket, a document an agent works on |
|
|
8
|
+
| `runs.enqueue(...)`, `runs.withdrawQueued(...)`, `runs.workload(...)` | Wake an agent on a subject, withdraw queued work, read the board of open runs | Assigning work to an agent from a business action |
|
|
9
|
+
| `scopes.register(kind)` | A scope of variables and default skills (`key`, `title`, `description`, `access(scopeId, userId)`); `agent` is reserved, `workdir` is registered by the App | Per-project or per-team variables |
|
|
10
|
+
| `actions.provide(source)` | The business actions an agent may be given (`key`, `group`, `title`, `description`, `defaultOn`), and those never granted (`grantable: false` with a `reason`) | What the agent editor's Capabilities tab offers |
|
|
11
|
+
| `presets.register(preset)` | A role a new agent starts from (`name`, `description`, `instructions`, `actions`) | "Reviewer", "Support assistant" |
|
|
12
|
+
| `gate.set(gate)` (`ActionGate`: `allowed(identity)`, optional `consultable(action)`) | Which business actions a caller holds now: a person their own (narrowed by an API key's scope), a run those its agent is configured with within the waking person's | Bounding the command manifest and every request a run makes; without a gate a caller holds only `agents.agents/view` (and `agents.runs/self` for a run) |
|
|
13
|
+
| `conversations.sources.register`, `conversations.contextKinds.register`, `conversations.rules.provide`, `conversations.deliver`, `consultations.rules.provide` | Where conversations start from, what a page context may reference, extra system rules, news delivered into a conversation | "Ask agent" buttons on business pages |
|
|
14
|
+
| `people.provide(source)` | The App's directory: names, whom to pick, who can no longer act (`inactive`) | Disabling a person stops their runners |
|
|
15
|
+
| `events.on('agent.removed' \| 'notice', listener)` | An agent archived or deleted; people to be told, such as `runner_upgrade_required` | Releasing work given to an agent; forwarding notices to the App's inbox |
|
|
16
|
+
| `jobs.register(kind, registration)` | A build job kind, only for an off-by-default runner build method | Builds on runners |
|
|
17
|
+
| `reporting.usage`, `reporting.runFigures`, `reporting.range`, `reporting.modelUsage` | What runs used and cost, grouped as the App needs | The App's report pages |
|
|
18
|
+
| `briefs.sections.register(provider)` | Sections added to every brief's context layer | Project conventions every run should read |
|
|
19
|
+
| `mounts.register(provider)` | Directories of files placed beside the agent | Reference material for a run |
|
|
20
|
+
| `repoAccess.register(provider)` | Commit identity and short-lived push credentials per run | Git hosting integration |
|
|
21
|
+
| `online.skills`, `online.gateway` | Skills every online run gets; the model gateway for the App's own model calls | See [Online agents](online-agents.md) |
|
|
22
|
+
| `vectors.collection(spec)`, `vectors.stores.register` | Vector collections searched by meaning; another vector store type | Semantic search for a knowledge base |
|
|
23
|
+
|
|
24
|
+
Rules that are easy to miss:
|
|
25
|
+
|
|
26
|
+
- `context.assemble`, brief sections and mounts run inside the claim's transaction and read the database through the claim's connection only (on SQLite it is the only connection). Read anything else in the provider's optional `prepare(run)`, which runs before the transaction. A throw leaves the run queued; three failures fail it `setupFailed`.
|
|
27
|
+
- `runs.enqueue` takes an optional outer transaction; inside another plugin's transaction, publish the collected events after it commits.
|
|
28
|
+
- A subject kind takes runner agents only unless its binding lists `online` in `agentTypes`; a run of another type is refused with `AGENT_TYPE_NOT_ALLOWED`.
|
|
29
|
+
- Name commands in a brief with `commandRef(dialect, cli, id, flag?)` rather than spelling them, so online and runner agents both get the right form.
|
|
30
|
+
- The App's CLI commands are its API routes: a route declares `...cliRoute({ command, action, ... })` in `describeRoute()`, and lists `runToken` in its `security` when a run may call it. The command manifest (`GET /api/cli/manifest`) offers each caller only the commands whose `action` the gate allows. There is no separate command registry.
|
|
31
|
+
- `GET /api/agents/vocabulary` hands the browser the subjects, sources and scopes the App contributed; the browser never imports server code for them.
|
|
32
|
+
|
|
33
|
+
The README's example under "Extension points" shows a subject registered and work enqueued and withdrawn.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Online agents and model services
|
|
2
|
+
|
|
3
|
+
An online agent talks to a model of a model service and is run by the App itself, on every instance (`agents.server.enabled`), through the same claim as runner runs: it needs no runner and answers in seconds. Its tools are a sandboxed in-process shell (`bash`, no real processes or network) carrying the App's CLI, and `skill`, which reads one of the run's skills. The README's "What it does" (Online runs) and "Online agents" sections are the reference.
|
|
4
|
+
|
|
5
|
+
## Model services
|
|
6
|
+
|
|
7
|
+
- A service is a provider type (`MODEL_PROVIDERS` in `@nocobase/app-plugin-agents/shared/models`: OpenAI, Anthropic, Google, DeepSeek, Alibaba, Moonshot, Cohere, Ollama, and OpenAI-compatible endpoints), a name, a base URL, a write-only API key sealed with the secrets service, an on/off switch and the models it offers. OpenCode Zen and Go serve each model family through its own API under one base URL: DeepSeek, GLM, Kimi and MiMo through a DeepSeek or OpenAI-compatible service, Claude, MiniMax and Qwen through an Anthropic one, GPT and Grok through an OpenAI one; a call to an OpenCode base URL sends `x-opencode-session` automatically, one session id per conversation. Each model has a kind: `chat` (what agents talk to), `embedding` or `rerank`.
|
|
8
|
+
- Services are added on the Models page (`modelsRoute`, behind `agents.services`) or through the API (`service create|discover|check` on the CLI). They are never configured in `config.yml`.
|
|
9
|
+
- The system default chat model (Models page, `PUT /api/agents/defaultModels/chat`) is what an online agent that lists no model answers with. With none set, the first chat model an enabled service offers is used.
|
|
10
|
+
- An online agent lists ordered entries (service, model, effort); its first is the default. A conversation may pick another of the agent's entries. A failing model fails the run; nothing falls back to another entry.
|
|
11
|
+
- `GET /api/agents/models` (anyone signed in) lists what agents may use; `POST /api/agents/checkModel` (who reads agents) tests one with a short call and never throws.
|
|
12
|
+
|
|
13
|
+
## The model gateway
|
|
14
|
+
|
|
15
|
+
`online.gateway` on `agentsToken` serves the App's own model calls outside runs: `catalog(kind)`, `check(ref)`, `embed({ model, values, source })`, `rerank({ model, query, documents, topN?, source })` and `generate({ model, system?, prompt, maxOutputTokens?, source })`. Each names who asks (`source`), is recorded in `agModelUsage` and priced like runs, and throws `ModelError` with a code (`config`, `auth`, `quota`, `rateLimit`, `network`, `contextOverflow`, `filtered`, `badResponse`, `aborted`, `unknown`). Use it rather than calling a provider SDK, so keys, usage and prices stay in one place.
|
|
16
|
+
|
|
17
|
+
`online.skills.register(skill)` adds a skill every online run gets besides its own, typically the App's CLI skill.
|
|
18
|
+
|
|
19
|
+
## Commands in an online run
|
|
20
|
+
|
|
21
|
+
The run's shell carries the App's CLI, built from the command manifest for the run (the actions of the waking person that the agent is configured with). Each command is one request through the App with the run's token, so the route checks the permission again. Commands that send or save files are refused. A route therefore needs `runToken` in its `security` and an `x-cli` `action` the gate allows before an online agent can call it.
|
|
22
|
+
|
|
23
|
+
Run limits: `agents.server.maxSteps` model calls (then `stepLimit`); a cancel aborts within a second; at shutdown an instance hands its runs back (`runnerOffline`).
|
|
24
|
+
|
|
25
|
+
## Consultations
|
|
26
|
+
|
|
27
|
+
An online run may ask another online agent a question (`ask_agent`), synchronously, in a read-only child run (`parentRunId`) bounded by `agents.server.consult.timeoutMs` and `tokenBudget`, at most `CONSULT_MAX_DEPTH` deep. The gate keeps a consultation to reading actions plus those `ActionGate.consultable` allows. See the README's "Consultations" section.
|
|
28
|
+
|
|
29
|
+
## Vectors
|
|
30
|
+
|
|
31
|
+
`vectors.collection(spec)` gives the App semantic search over items it names, embedded with the model it chooses, in the store `agents.vectors` configures (`sqlite-vec` by default, `pgvector` for several instances or Alpine). `status()` answers availability and a `VectorUnavailableCode` when it is not available; then search answers null and the caller keeps its keyword search. See the README's "Vectors" section.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Runners
|
|
2
|
+
|
|
3
|
+
A runner (shown as a runtime) is `nocobase-runner` from `@nocobase/agent-runner`, running on a server, a VM or someone's own device. It registers with one or more Apps, long-polls them for work and drives a coding tool for runner agents' runs. The wire protocol is `@nocobase/agent-protocol`. The README's "What it does" section (Runners, The claim, Runs, The sweep) and `@nocobase/agent-runner`'s README are the reference.
|
|
4
|
+
|
|
5
|
+
## Registering a runner
|
|
6
|
+
|
|
7
|
+
A runner registers once per App with a one-time registration token (10 minutes):
|
|
8
|
+
|
|
9
|
+
- On the web: Runtimes page, "Add runtime". It asks who the runner works for (personal, or team for who manages `agents.runners`), which coding tools it may run and its maximum concurrent runs, then shows the one-line install and the register command with a fresh token, and waits for the runner to connect.
|
|
10
|
+
- Through the API: `POST /api/agents/runners/registrationTokens` (CLI: `runtime token create`).
|
|
11
|
+
- From the App's checkout or deployment: `pnpm nocobase agents runner-token --trust team` or `--trust ownerOnly --owner <user id>`, optionally `--tools claude,codex`. It prints the token (`--json` for the envelope).
|
|
12
|
+
|
|
13
|
+
Then on the runner's machine: `nocobase-runner register --server <App URL> --token <token>`, and `nocobase-runner start` or `nocobase-runner service install` (launchd on macOS, a systemd user unit on Linux). The install script does all of this in one line; see [Distribution](distribution.md).
|
|
14
|
+
|
|
15
|
+
A runner authenticates afterwards with its own key. Personal runners (`ownerOnly`) run only work their owner started; their owner may share them with the team. `nocobase-runner unregister --server <url>` or "Revoke" on the Runtimes page ends a registration.
|
|
16
|
+
|
|
17
|
+
## How work reaches a runner
|
|
18
|
+
|
|
19
|
+
- **Heartbeat**: the runner reports its system, features, coding tools (version, installed, signed in), its owner's local policy and the product it runs as. It is marked offline after 150 s without one. The heartbeat answer reconciles what it holds (releasing what the server no longer thinks it holds, asking it to stop what was cancelled) and carries an `upgrade` notice when a newer `nocobase-runner` is served for its platform.
|
|
20
|
+
- **Claim**: one long-poll, `POST /api/agents/runners/claim?wait=true`, answers jobs and runs together, at most the runner's free slots. A run is handed over only when one of the agent's tools is enabled, installed and signed in there, the agent names no runner or this one, the runner is shared or owned by who woke the agent, its features cover what the run needs, the agent's concurrency has room and the runner's local policy allows the agent, subject and repositories. The claim renders the brief, mints a run token and hands over working directories, variables, skills and the CLI to install.
|
|
21
|
+
- **Lease and sweep**: a runner renews its lease while it works; the sweeper (every 30 s) takes back runs from runners that went away or lost their lease, and retries the retryable failures (`runnerOffline`, `policyRefused`, `leaseExpired`, `startTimeout`, `cliUnavailable`, `toolNetwork`, `toolRateLimit`) while attempts remain.
|
|
22
|
+
- **Local policy**: the machine's owner decides what it takes in `~/.nocobase-runner/policy.json` (agents, subjects, repos, build, per-App overrides). An App cannot change it. Work outside it fails `policyRefused` and goes to another runner; a policy file it cannot read makes it take nothing.
|
|
23
|
+
|
|
24
|
+
## Protocol versions and `upgrade_required`
|
|
25
|
+
|
|
26
|
+
Every runner request carries its protocol version (`PROTOCOL_VERSION` of `@nocobase/agent-protocol`). The App serves a range (`MIN_PROTOCOL_VERSION` to `PROTOCOL_VERSION`; `RunnerSummary.requiredProtocol` on the API). A runner outside it stays connected with status `upgrade_required`: it gets no work, what it held is released, and its owner is told once per protocol through the `notice` event (`runner_upgrade_required`; `notice.cleared` once it connects with a supported protocol). Forward that event to the App's inbox or notifications so the owner hears about it.
|
|
27
|
+
|
|
28
|
+
What to do: upgrade the runner to a version that speaks the App's protocol. An installed runner updates itself between runs when the App serves a newer `nocobase-runner`, or now with `nocobase-runner update`; that only helps once the App serves a runner built from the matching `@nocobase/agent-runner`, so rebuild and remount the runner tarballs whenever the App's agents plugin is upgraded (see [Distribution](distribution.md)). A runner that reports no product (installed before products existed) is offered no update: install it again with the one-line install.
|
|
29
|
+
|
|
30
|
+
## Coding tools
|
|
31
|
+
|
|
32
|
+
The runner finds each coding tool on its PATH and reports whether it is signed in. A tool not found, or not signed in, is offered no runs: sign in on the runner's machine as the runner's user (for example `claude` and its login), then wait for the next heartbeat. Which tools a runner is offered work for is chosen on the Runtimes page (`enabledTools`). A model the tool's account cannot use fails the run `modelUnavailable`.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Setup and configuration
|
|
2
|
+
|
|
3
|
+
## Register the plugin
|
|
4
|
+
|
|
5
|
+
The plugin has three entries, each listed in the App's matching composition root:
|
|
6
|
+
|
|
7
|
+
| Root | Import | Entry |
|
|
8
|
+
| ------------------- | --------------------------------------------------------- | --------------------------------------------------- |
|
|
9
|
+
| `server/plugins.ts` | `import agents from '@nocobase/app-plugin-agents/server'` | `agents` |
|
|
10
|
+
| `client/plugins.ts` | `import agents from '@nocobase/app-plugin-agents/client'` | `agents()` |
|
|
11
|
+
| `cli/plugins.ts` | `import agents from '@nocobase/app-plugin-agents/cli'` | `agents` (adds `pnpm nocobase agents runner-token`) |
|
|
12
|
+
|
|
13
|
+
Register `@nocobase/app-plugin-authentication`, `@nocobase/app-plugin-authorization` and `@nocobase/app-plugin-file` before it; they are its peers, and chat attachments and the skill library store files through the file plugin and Drive. Run `pnpm nocobase db apply` after adding it: the plugin brings its own migrations. Run `pnpm nocobase skills sync` so this Skill reaches the App's `.agents/skills/`.
|
|
14
|
+
|
|
15
|
+
The App binds `agentsAccessToken` (`AgentsAccess.scopeOf(identity, key)`) from one of its own providers to say how far each caller's business actions reach (`BUSINESS_ACTIONS` in `@nocobase/app-plugin-agents/shared/access`). Unbound, every level is `none`, and only who manages agents (the `agents.agents` settings item) changes agents and skills. The README's "HTTP API" section lists the four settings items (`agents.agents`, `agents.runners`, `agents.prices`, `agents.services`) and what each allows.
|
|
16
|
+
|
|
17
|
+
Contributions (subjects, scopes, actions and the rest) go in a provider of the App that resolves `agentsToken` at boot; see [Extension points](extension-points.md). Keep them together, for example in `server/agents/`, and the browser's side in `client/agents/`.
|
|
18
|
+
|
|
19
|
+
## The App's own CLI
|
|
20
|
+
|
|
21
|
+
Agents call the App through the App's CLI. An App that wants one declares it under `nocobase.cli` in its `package.json` (`bin`, `displayName`, `envPrefix`, `auth.clientId`, `skills`, …) and adds `@nocobase/app-cli-client` to its `devDependencies`, plus `@nocobase/agent-runner` to pack the runner. `@nocobase/app-cli`'s README, section "The application's own CLI: `cli build` and `cli link`", lists every field. `pnpm nocobase cli link` makes `pnpm exec acme` run it during development. Its commands are the App's API routes that declare `x-cli` (`cliRoute()` in `describeRoute()`), served by `GET /api/cli/manifest`; a route a run may call lists `runToken` in its `security` and gives its `x-cli` an `action`. The README's "The CLI's commands" section has the details.
|
|
22
|
+
|
|
23
|
+
## Configuration
|
|
24
|
+
|
|
25
|
+
Everything is optional. Read the README's "Configuration" section for the annotated block; in short:
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
agents:
|
|
29
|
+
cli: # the CLI runs get
|
|
30
|
+
name: acme
|
|
31
|
+
credentialFile: .acme/run.json # .<name>/run.json by default
|
|
32
|
+
package: { kind: served } # or { kind: npm, package, version }, or { kind: preinstalled }
|
|
33
|
+
app: { id: acme, name: Acme } # how runners name this App
|
|
34
|
+
dist: # the runner and CLI tarballs
|
|
35
|
+
dir: storage/runners/dist # the default; relative to the App root
|
|
36
|
+
channel: stable
|
|
37
|
+
versions: { acme: 0.1.0 } # pin a product instead of the channel's highest
|
|
38
|
+
server: # online agents, run by every instance
|
|
39
|
+
enabled: true
|
|
40
|
+
maxSteps: 16
|
|
41
|
+
consult: { timeoutMs: 120000, tokenBudget: 200000 }
|
|
42
|
+
vectors:
|
|
43
|
+
store: sqlite-vec # the default; pgvector (own PostgreSQL), or false
|
|
44
|
+
path: storage/vectors.sqlite
|
|
45
|
+
skills:
|
|
46
|
+
disk: s3 # Drive disk for skill files; drive.default by default
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- `agents.cli.name` defaults to `agents.app.id`; set it to the App's `nocobase.cli.bin` so runs install and call the same CLI the App serves.
|
|
50
|
+
- `agents.server.enabled: false` leaves online runs to the other instances.
|
|
51
|
+
- `sqlite-vec` is local to an instance and has no build for Alpine (musl), where it reports `SQLITE_VEC_UNSUPPORTED`; an App running several instances, or on Alpine, uses `pgvector`, which takes its own PostgreSQL connection and never the App's.
|
|
52
|
+
- Moving `agents.skills.disk` does not copy what is stored: copy `skills/blobs/` across first.
|
|
53
|
+
- Model services are not configured here; they are added on the Models page or through the API.
|
|
54
|
+
- `secrets.keys` (the App's secrets service) must be set before variables or model service keys can be stored. `pnpm nocobase secrets rotate` reseals both stores.
|
|
55
|
+
|
|
56
|
+
## Pages and chat
|
|
57
|
+
|
|
58
|
+
The plugin has no routes of its own. The App routes what `@nocobase/app-plugin-agents/client/routes` exports (`agentsRoute`, `runtimesRoute`, `skillsRoute`, `usageRoute`, `modelsRoute`), each behind a page grant named like its route (`PAGES` in `shared/access`); `modelsRoute` stands behind `agents.services` read. `client/kit` has the pieces for the App's own settings pages (`VariablesSection`, `DefaultSkillsSection`, `useRunnerOptions`, `useAgentOptions`), `client/runs` the headless parts of a subject's runs, `client/profile` the person's default chat agent, and `client/config` the business-action catalog context.
|
|
59
|
+
|
|
60
|
+
The chat is headless in `client/chat`: wrap the App's routes in `ChatProvider` and install the UI Library's `agent-chat` block (`yes n | pnpm exec shadcn add @nocobase/agent-chat`) for its UI. The README's "Web UI" section describes every export.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Variables, skills, attachments and usage
|
|
2
|
+
|
|
3
|
+
## Variables and secrets
|
|
4
|
+
|
|
5
|
+
Variables (`agSecrets`) are environment variables for a runner agent's process. Every one is a secret sealed with the App's secrets service, so `secrets.keys` must be configured first (otherwise `SECRETS_KEY_MISSING`, 503). They are set on an agent, on a working directory (`workdir`) or on a scope the App registers (`scopes.register`), and merged for a run in the order the subject names its scopes, then its working directories, then the agent. They reach only runners with the `secrets` feature. Values are write-only; revealing one and every delivery are audited (`agSecretAudits`, `variable audit list`). The redactor replaces delivered values with `[REDACTED]` in everything a runner reports.
|
|
6
|
+
|
|
7
|
+
On the App's own pages, `VariablesSection` from `client/kit` edits a scope's variables. On the CLI: `variable list|set|delete|reveal <scope kind> <scope>`. `pnpm nocobase secrets rotate` reseals them under a new key.
|
|
8
|
+
|
|
9
|
+
## The skill library
|
|
10
|
+
|
|
11
|
+
Skills (`agSkills`) follow the open Agent Skills format: a directory with `SKILL.md` (front matter `name` and `description` required) and supporting files under `scripts/`, `references/` and `assets/`. Every save is a version runs get at once; saves name the revision they were made against and conflict with 409 `REVISION_CONFLICT`. Skills are attached to agents, and as defaults to a working directory or a registered scope (`DefaultSkillsSection` in `client/kit`). Runner agents may run a skill's scripts; online agents only read them. File contents go to the Drive disk `agents.skills.disk` names. See the README's "What it does" (Skills) and "Configuration" sections.
|
|
12
|
+
|
|
13
|
+
Skills the App's CLI ships (`nocobase.cli.skills`) reach every runner run beside the run's own; `online.skills.register` does the same for online runs.
|
|
14
|
+
|
|
15
|
+
## Chat attachments
|
|
16
|
+
|
|
17
|
+
A person may send files with a message: each is uploaded first (`POST /api/agents/chatAttachments`, one file, stored through the file plugin), readable only by its uploader until sent, then sent with the message (`attachmentIds`). After that only the conversation's owner and a run of its agent on that conversation read it. A runner agent downloads a file with the CLI (`conversation attachment download <file-id>`); an online agent is shown the images and only the names of the rest. Uploads never sent are purged. Size and count limits are the `CHAT_ATTACHMENT_*` constants in `@nocobase/app-plugin-agents/shared/conversations`, whose header comment is the contract.
|
|
18
|
+
|
|
19
|
+
## Usage, prices and reports
|
|
20
|
+
|
|
21
|
+
Every run records what it used (tokens per model and tool) as it reports. The Usage page (`usageRoute`, `GET /api/agents/usage`) groups it by agent, person, group, subject, day, model, tool or type; who reads `agents.prices` sets prices on its prices sheet, and costs are computed from them. Model calls outside runs (embeddings, reranking, short generations through `online.gateway`) appear as "Other model use" (`GET /api/agents/usage/models`). The App's own report pages read `reporting.usage`, `reporting.runFigures`, `reporting.range` and `reporting.modelUsage` from `agentsToken`, and each subject kind's `reports.describe` labels and groups its runs.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Verification and troubleshooting
|
|
2
|
+
|
|
3
|
+
## What to test
|
|
4
|
+
|
|
5
|
+
Test what the App builds on the plugin, not the plugin itself. `@nocobase/app-plugin-agents/testing` assembles the services against a test database (`createAgents`, `AGENTS_MIGRATIONS`), mounts the run and runner routes on a test server, and runs the online executor over a scripted model gateway; use it with `createAppTest()` from `@nocobase/app-testing/server`.
|
|
6
|
+
|
|
7
|
+
- Each subject kind: `assemble` returns the task, context and working directories for a sample subject, reads only the database, and `sink.onRunFinished` does what the App expects for completed and failed runs.
|
|
8
|
+
- The gate: a person holds exactly their actions; a run holds only the waking person's actions its agent is configured with; an API key's scope narrows a person.
|
|
9
|
+
- Routes a run may call: `findUndeclaredApiRoutes(app)` lists none, each route lists `runToken` in its `security`, and the command manifest for a run shows the command only when the gate allows its `action`.
|
|
10
|
+
- Contributed actions, presets and scopes appear in `GET /api/agents/actions`, `GET /api/agents/presets` and `GET /api/agents/vocabulary`.
|
|
11
|
+
|
|
12
|
+
## Health checks on a running App
|
|
13
|
+
|
|
14
|
+
| Check | How |
|
|
15
|
+
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| Runners | `GET /api/agents/runners` (`runtime list`): `status` (`online`, `offline`, `revoked`, `upgrade_required`), `lastSeenAt`, `tools` (installed, version, signed in), `policy`, `updateVersion`, `requiredProtocol` |
|
|
17
|
+
| Agents that can take work | `GET /api/agents/available` (`agent list`): each agent and whether it can take work now |
|
|
18
|
+
| Why a run waits | The run's detail and `runs.workload()`: `RUN_WAIT_REASONS` (`noRunnerOnline`, `toolUnavailable`, `noSharedRunner`, `missingFeatures`, `concurrencyFull`, `runnersBusy`, …) |
|
|
19
|
+
| A run's history | `GET /api/agents/runs/:runId` and its events (`run get`, `run events`); `failureReason` and `failureDetail` |
|
|
20
|
+
| Models | `GET /api/agents/models` (what agents may use), `POST /api/agents/checkModel` (`model check`), `GET /api/agents/defaultModels` |
|
|
21
|
+
| Tarballs served | `GET /api/agents/dist/manifest` signed in; `GET /api/agents/dist/products/<product>/targets/linux-x64?format=env` |
|
|
22
|
+
| Vectors | `vectors.status()` on `agentsToken`: availability, store and the `VectorUnavailableCode` |
|
|
23
|
+
| The runner itself | `nocobase-runner status`, `nocobase-runner logs -f [--run <id>]`, `~/.nocobase-runner/policy.json` |
|
|
24
|
+
|
|
25
|
+
## Troubleshooting
|
|
26
|
+
|
|
27
|
+
| Symptom | Cause and fix |
|
|
28
|
+
| ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
29
|
+
| Runner shows offline | No heartbeat for 150 s. Check `nocobase-runner status` and `logs`, that its service is installed (`nocobase-runner service install`) and that it reaches the App's URL. `RUNNER_KEY_INVALID` or `RUNNER_REVOKED`: register it again with a new token. `RUNNER_OWNER_DISABLED`: its owner can no longer act (`people.provide` `inactive`). |
|
|
30
|
+
| Runner shows `upgrade_required` | It speaks a protocol outside the App's range. Rebuild and remount the runner tarball from the App's `@nocobase/agent-runner`, then `nocobase-runner update` (an npm-installed runner: `npm install -g @nocobase/agent-runner@<version>`); one that reports no product: reinstall with the one-line install. See [Runners](runners.md). |
|
|
31
|
+
| Runs queue with `toolUnavailable` or fail `toolAuth` | The agent's coding tool is not installed, not enabled for that runner, or not signed in. Sign in on the runner's machine as the runner's user and check the Runtimes page's Tools tab. |
|
|
32
|
+
| Runs queue with `noRunnerOnline`, `noSharedRunner` or `missingFeatures` | No online runner fits: only other people's personal runners, the agent names an offline runner, or the runner is too old for what the run needs (skills, secrets, mounts). Add or share a runner, or update it. |
|
|
33
|
+
| Run fails `policyRefused` | The runner owner's `policy.json` excludes the agent, subject or repository. Retried on another runner; change the policy on the machine if this one should take it. |
|
|
34
|
+
| Run fails `modelUnavailable` | Runner: the tool's account cannot use the model; pick another model on the agent. Online: the service or model is disabled, deleted or unknown to its provider; check the Models page and `model check`. |
|
|
35
|
+
| Online run fails `toolAuth`, `toolQuota`, `toolRateLimit`, `contextOverflow` | The model service's key, quota or rate limit, or a conversation too long for the model. Fix the service's key or plan; rate limits and network errors are retried. |
|
|
36
|
+
| Online run fails `stepLimit` | The model kept calling tools; raise `agents.server.maxSteps` or tighten the agent's instructions. |
|
|
37
|
+
| Run fails `cliUnavailable` | The run's CLI could not be installed: no served tarball for the runner's platform (`PLATFORM_UNSUPPORTED`), or `agents.cli.name` differs from the App's `nocobase.cli.bin`. Build and mount the CLI tarballs. |
|
|
38
|
+
| Run fails `setupFailed` | `assemble`, a brief section or a mount threw three times; read the server log for the throw. |
|
|
39
|
+
| Run fails `queuedExpired` | Waited longer than the subject's `queuedExpiryMs`; see why it waited. |
|
|
40
|
+
| `SECRETS_KEY_MISSING` (503) | `secrets.keys` is not configured; set it before storing variables or model service keys. |
|
|
41
|
+
| `SCOPED_KEY_FORBIDDEN` | A scoped API key called a route outside the settings-only ones; use a session or an unscoped key. |
|
|
42
|
+
| `AGENT_TYPE_NOT_ALLOWED` | The subject kind does not list the agent's type in `agentTypes`. |
|
|
43
|
+
| `PLATFORM_UNSUPPORTED` / `PRODUCT_NOT_FOUND` from the install script | The product or the platform is not in `agents.dist.dir/<channel>/`; check the mount and the `--targets` the build used. |
|
|
44
|
+
| `REGISTRATION_TOKEN_INVALID` / `DOWNLOAD_TOKEN_INVALID` | The token expired (10 minutes for registration, 30 for downloads), was used up, or is of the other kind; mint a new one. |
|
|
45
|
+
| `VARIABLES_MISSING` | Not this plugin: a deployment refused because a required deployment variable is unset. Set it where the deploying plugin keeps variables; agent variables never cause it. |
|
|
46
|
+
| `SQLITE_VEC_UNSUPPORTED` | No sqlite-vec build for the platform (Alpine/musl); configure `agents.vectors.store: pgvector`. |
|