@adonis-agora/agent 0.61.0 → 0.63.0
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 +91 -0
- package/README.md +12 -7
- package/dist/configure.d.ts +7 -5
- package/dist/configure.d.ts.map +1 -1
- package/dist/configure.js +7 -5
- package/dist/configure.js.map +1 -1
- package/dist/providers/a2a_provider.d.ts +14 -0
- package/dist/providers/a2a_provider.d.ts.map +1 -0
- package/dist/providers/a2a_provider.js +136 -0
- package/dist/providers/a2a_provider.js.map +1 -0
- package/dist/providers/agent_provider.d.ts.map +1 -1
- package/dist/providers/agent_provider.js +81 -25
- package/dist/providers/agent_provider.js.map +1 -1
- package/dist/providers/mcp_provider.d.ts +3 -0
- package/dist/providers/mcp_provider.d.ts.map +1 -1
- package/dist/providers/mcp_provider.js +147 -62
- package/dist/providers/mcp_provider.js.map +1 -1
- package/dist/src/a2a/auth.d.ts +67 -0
- package/dist/src/a2a/auth.d.ts.map +1 -0
- package/dist/src/a2a/auth.js +47 -0
- package/dist/src/a2a/auth.js.map +1 -0
- package/dist/src/a2a/define_config.d.ts +74 -0
- package/dist/src/a2a/define_config.d.ts.map +1 -0
- package/dist/src/a2a/define_config.js +5 -0
- package/dist/src/a2a/define_config.js.map +1 -0
- package/dist/src/a2a/gate.d.ts +23 -0
- package/dist/src/a2a/gate.d.ts.map +1 -0
- package/dist/src/a2a/gate.js +56 -0
- package/dist/src/a2a/gate.js.map +1 -0
- package/dist/src/a2a/handler.d.ts +65 -0
- package/dist/src/a2a/handler.d.ts.map +1 -0
- package/dist/src/a2a/handler.js +322 -0
- package/dist/src/a2a/handler.js.map +1 -0
- package/dist/src/a2a/index.d.ts +15 -0
- package/dist/src/a2a/index.d.ts.map +1 -0
- package/dist/src/a2a/index.js +9 -0
- package/dist/src/a2a/index.js.map +1 -0
- package/dist/src/a2a/permission-tool.d.ts +17 -0
- package/dist/src/a2a/permission-tool.d.ts.map +1 -0
- package/dist/src/a2a/permission-tool.js +70 -0
- package/dist/src/a2a/permission-tool.js.map +1 -0
- package/dist/src/a2a/protocol.d.ts +100 -0
- package/dist/src/a2a/protocol.d.ts.map +1 -0
- package/dist/src/a2a/protocol.js +106 -0
- package/dist/src/a2a/protocol.js.map +1 -0
- package/dist/src/a2a/runtime.d.ts +6 -0
- package/dist/src/a2a/runtime.d.ts.map +1 -0
- package/dist/src/a2a/runtime.js +13 -0
- package/dist/src/a2a/runtime.js.map +1 -0
- package/dist/src/a2a/server_middleware.d.ts +13 -0
- package/dist/src/a2a/server_middleware.d.ts.map +1 -0
- package/dist/src/a2a/server_middleware.js +18 -0
- package/dist/src/a2a/server_middleware.js.map +1 -0
- package/dist/src/a2a/store.d.ts +79 -0
- package/dist/src/a2a/store.d.ts.map +1 -0
- package/dist/src/a2a/store.js +151 -0
- package/dist/src/a2a/store.js.map +1 -0
- package/dist/src/a2a/turn.d.ts +80 -0
- package/dist/src/a2a/turn.d.ts.map +1 -0
- package/dist/src/a2a/turn.js +211 -0
- package/dist/src/a2a/turn.js.map +1 -0
- package/dist/src/action-proposal-executor.d.ts +3 -0
- package/dist/src/action-proposal-executor.d.ts.map +1 -1
- package/dist/src/action-proposal-executor.js +10 -0
- package/dist/src/action-proposal-executor.js.map +1 -1
- package/dist/src/action-proposal-service.d.ts +7 -2
- package/dist/src/action-proposal-service.d.ts.map +1 -1
- package/dist/src/action-proposal-service.js +21 -16
- package/dist/src/action-proposal-service.js.map +1 -1
- package/dist/src/action-proposal-text.d.ts +42 -3
- package/dist/src/action-proposal-text.d.ts.map +1 -1
- package/dist/src/action-proposal-text.js +80 -12
- package/dist/src/action-proposal-text.js.map +1 -1
- package/dist/src/action-proposal-worker.d.ts +2 -1
- package/dist/src/action-proposal-worker.d.ts.map +1 -1
- package/dist/src/action-proposal-worker.js +9 -2
- package/dist/src/action-proposal-worker.js.map +1 -1
- package/dist/src/actor-resolver.d.ts +12 -4
- package/dist/src/actor-resolver.d.ts.map +1 -1
- package/dist/src/actor-resolver.js +24 -7
- package/dist/src/actor-resolver.js.map +1 -1
- package/dist/src/ag-ui/adapter.d.ts.map +1 -1
- package/dist/src/ag-ui/adapter.js +115 -17
- package/dist/src/ag-ui/adapter.js.map +1 -1
- package/dist/src/ag-ui/core/encoder.d.ts +106 -0
- package/dist/src/ag-ui/core/encoder.d.ts.map +1 -0
- package/dist/src/ag-ui/core/encoder.js +534 -0
- package/dist/src/ag-ui/core/encoder.js.map +1 -0
- package/dist/src/ag-ui/core/index.d.ts +12 -0
- package/dist/src/ag-ui/core/index.d.ts.map +1 -0
- package/dist/src/ag-ui/core/index.js +12 -0
- package/dist/src/ag-ui/core/index.js.map +1 -0
- package/dist/src/ag-ui/core/input.d.ts +92 -0
- package/dist/src/ag-ui/core/input.d.ts.map +1 -0
- package/dist/src/ag-ui/core/input.js +246 -0
- package/dist/src/ag-ui/core/input.js.map +1 -0
- package/dist/src/ag-ui/core/interrupt-id.d.ts +31 -0
- package/dist/src/ag-ui/core/interrupt-id.d.ts.map +1 -0
- package/dist/src/ag-ui/core/interrupt-id.js +48 -0
- package/dist/src/ag-ui/core/interrupt-id.js.map +1 -0
- package/dist/src/ag-ui/{proposal-decision.d.ts → core/proposal-decision.d.ts} +1 -1
- package/dist/src/ag-ui/core/proposal-decision.d.ts.map +1 -0
- package/dist/src/ag-ui/{proposal-decision.js → core/proposal-decision.js} +3 -6
- package/dist/src/ag-ui/core/proposal-decision.js.map +1 -0
- package/dist/src/ag-ui/core/stream.d.ts +49 -0
- package/dist/src/ag-ui/core/stream.d.ts.map +1 -0
- package/dist/src/ag-ui/core/stream.js +90 -0
- package/dist/src/ag-ui/core/stream.js.map +1 -0
- package/dist/src/ag-ui/core/types.d.ts +249 -0
- package/dist/src/ag-ui/core/types.d.ts.map +1 -0
- package/dist/src/ag-ui/core/types.js +35 -0
- package/dist/src/ag-ui/core/types.js.map +1 -0
- package/dist/src/ag-ui/encoder.d.ts +3 -4
- package/dist/src/ag-ui/encoder.d.ts.map +1 -1
- package/dist/src/ag-ui/encoder.js +10 -11
- package/dist/src/ag-ui/encoder.js.map +1 -1
- package/dist/src/ag-ui/frames.d.ts +8 -5
- package/dist/src/ag-ui/frames.d.ts.map +1 -1
- package/dist/src/ag-ui/frames.js +21 -7
- package/dist/src/ag-ui/frames.js.map +1 -1
- package/dist/src/ag-ui/index.d.ts +3 -5
- package/dist/src/ag-ui/index.d.ts.map +1 -1
- package/dist/src/ag-ui/index.js +3 -5
- package/dist/src/ag-ui/index.js.map +1 -1
- package/dist/src/ag-ui/stream.d.ts +3 -4
- package/dist/src/ag-ui/stream.d.ts.map +1 -1
- package/dist/src/ag-ui/stream.js +4 -5
- package/dist/src/ag-ui/stream.js.map +1 -1
- package/dist/src/agent-deps-factory.d.ts +3 -0
- package/dist/src/agent-deps-factory.d.ts.map +1 -1
- package/dist/src/agent-deps-factory.js +3 -0
- package/dist/src/agent-deps-factory.js.map +1 -1
- package/dist/src/agent-deps.d.ts +3 -0
- package/dist/src/agent-deps.d.ts.map +1 -1
- package/dist/src/agent-deps.js.map +1 -1
- package/dist/src/agent-loop.d.ts +4 -3
- package/dist/src/agent-loop.d.ts.map +1 -1
- package/dist/src/agent-loop.js +50 -25
- package/dist/src/agent-loop.js.map +1 -1
- package/dist/src/agent-service.d.ts +46 -4
- package/dist/src/agent-service.d.ts.map +1 -1
- package/dist/src/agent-service.js +87 -11
- package/dist/src/agent-service.js.map +1 -1
- package/dist/src/ai-sdk/ai-sdk-model.js +4 -1
- package/dist/src/ai-sdk/ai-sdk-model.js.map +1 -1
- package/dist/src/ai-tool-ref.d.ts +4 -0
- package/dist/src/ai-tool-ref.d.ts.map +1 -1
- package/dist/src/ai-tool-ref.js +10 -14
- package/dist/src/ai-tool-ref.js.map +1 -1
- package/dist/src/attachment-limits.d.ts +10 -0
- package/dist/src/attachment-limits.d.ts.map +1 -0
- package/dist/src/attachment-limits.js +13 -0
- package/dist/src/attachment-limits.js.map +1 -0
- package/dist/src/channels/adapters/evolution_api.d.ts +49 -0
- package/dist/src/channels/adapters/evolution_api.d.ts.map +1 -0
- package/dist/src/channels/adapters/evolution_api.js +241 -0
- package/dist/src/channels/adapters/evolution_api.js.map +1 -0
- package/dist/src/channels/adapters/telegram.d.ts +34 -0
- package/dist/src/channels/adapters/telegram.d.ts.map +1 -0
- package/dist/src/channels/adapters/telegram.js +196 -0
- package/dist/src/channels/adapters/telegram.js.map +1 -0
- package/dist/src/channels/adapters/whatsapp_cloud.d.ts +31 -0
- package/dist/src/channels/adapters/whatsapp_cloud.d.ts.map +1 -0
- package/dist/src/channels/adapters/whatsapp_cloud.js +177 -0
- package/dist/src/channels/adapters/whatsapp_cloud.js.map +1 -0
- package/dist/src/channels/handler.d.ts +167 -0
- package/dist/src/channels/handler.d.ts.map +1 -0
- package/dist/src/channels/handler.js +569 -0
- package/dist/src/channels/handler.js.map +1 -0
- package/dist/src/channels/http.d.ts +45 -0
- package/dist/src/channels/http.d.ts.map +1 -0
- package/dist/src/channels/http.js +147 -0
- package/dist/src/channels/http.js.map +1 -0
- package/dist/src/channels/index.d.ts +16 -0
- package/dist/src/channels/index.d.ts.map +1 -0
- package/dist/src/channels/index.js +15 -0
- package/dist/src/channels/index.js.map +1 -0
- package/dist/src/channels/markdown.d.ts +12 -0
- package/dist/src/channels/markdown.d.ts.map +1 -0
- package/dist/src/channels/markdown.js +120 -0
- package/dist/src/channels/markdown.js.map +1 -0
- package/dist/src/channels/questions.d.ts +43 -0
- package/dist/src/channels/questions.d.ts.map +1 -0
- package/dist/src/channels/questions.js +90 -0
- package/dist/src/channels/questions.js.map +1 -0
- package/dist/src/channels/split.d.ts +8 -0
- package/dist/src/channels/split.d.ts.map +1 -0
- package/dist/src/channels/split.js +45 -0
- package/dist/src/channels/split.js.map +1 -0
- package/dist/src/channels/store.d.ts +78 -0
- package/dist/src/channels/store.d.ts.map +1 -0
- package/dist/src/channels/store.js +151 -0
- package/dist/src/channels/store.js.map +1 -0
- package/dist/src/channels/types.d.ts +138 -0
- package/dist/src/channels/types.d.ts.map +1 -0
- package/dist/src/channels/types.js +7 -0
- package/dist/src/channels/types.js.map +1 -0
- package/dist/src/chat-queue-service.d.ts.map +1 -1
- package/dist/src/chat-queue-service.js +2 -0
- package/dist/src/chat-queue-service.js.map +1 -1
- package/dist/src/define_config.d.ts +61 -12
- package/dist/src/define_config.d.ts.map +1 -1
- package/dist/src/define_config.js.map +1 -1
- package/dist/src/engine.d.ts +77 -0
- package/dist/src/engine.d.ts.map +1 -0
- package/dist/src/engine.js +27 -0
- package/dist/src/engine.js.map +1 -0
- package/dist/src/genui/builtins.d.ts +73 -3
- package/dist/src/genui/builtins.d.ts.map +1 -1
- package/dist/src/genui/builtins.js +357 -3
- package/dist/src/genui/builtins.js.map +1 -1
- package/dist/src/genui/capabilities.d.ts +24 -0
- package/dist/src/genui/capabilities.d.ts.map +1 -0
- package/dist/src/genui/capabilities.js +81 -0
- package/dist/src/genui/capabilities.js.map +1 -0
- package/dist/src/genui/catalog.d.ts +86 -0
- package/dist/src/genui/catalog.d.ts.map +1 -0
- package/dist/src/genui/catalog.js +96 -0
- package/dist/src/genui/catalog.js.map +1 -0
- package/dist/src/genui/factory.d.ts +7 -14
- package/dist/src/genui/factory.d.ts.map +1 -1
- package/dist/src/genui/factory.js.map +1 -1
- package/dist/src/genui/index.d.ts +4 -12
- package/dist/src/genui/index.d.ts.map +1 -1
- package/dist/src/genui/index.js +5 -18
- package/dist/src/genui/index.js.map +1 -1
- package/dist/src/genui/public.d.ts +9 -0
- package/dist/src/genui/public.d.ts.map +1 -0
- package/dist/src/genui/public.js +9 -0
- package/dist/src/genui/public.js.map +1 -0
- package/dist/src/genui/registry.d.ts +65 -0
- package/dist/src/genui/registry.d.ts.map +1 -0
- package/dist/src/genui/registry.js +151 -0
- package/dist/src/genui/registry.js.map +1 -0
- package/dist/src/genui/schema.d.ts +71 -0
- package/dist/src/genui/schema.d.ts.map +1 -0
- package/dist/src/genui/schema.js +304 -0
- package/dist/src/genui/schema.js.map +1 -0
- package/dist/src/genui/text.d.ts +36 -0
- package/dist/src/genui/text.d.ts.map +1 -0
- package/dist/src/genui/text.js +157 -0
- package/dist/src/genui/text.js.map +1 -0
- package/dist/src/genui/tools.d.ts +92 -0
- package/dist/src/genui/tools.d.ts.map +1 -0
- package/dist/src/genui/tools.js +291 -0
- package/dist/src/genui/tools.js.map +1 -0
- package/dist/src/genui/tree.d.ts +56 -0
- package/dist/src/genui/tree.d.ts.map +1 -0
- package/dist/src/genui/tree.js +188 -0
- package/dist/src/genui/tree.js.map +1 -0
- package/dist/src/index.d.ts +6 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcp/auth.d.ts +17 -1
- package/dist/src/mcp/auth.d.ts.map +1 -1
- package/dist/src/mcp/auth.js +14 -3
- package/dist/src/mcp/auth.js.map +1 -1
- package/dist/src/mcp/define_config.d.ts +81 -2
- package/dist/src/mcp/define_config.d.ts.map +1 -1
- package/dist/src/mcp/define_config.js.map +1 -1
- package/dist/src/mcp/index.d.ts +1 -1
- package/dist/src/mcp/index.d.ts.map +1 -1
- package/dist/src/mcp/index.js.map +1 -1
- package/dist/src/mcp/oauth-resource.d.ts +9 -0
- package/dist/src/mcp/oauth-resource.d.ts.map +1 -0
- package/dist/src/mcp/oauth-resource.js +16 -0
- package/dist/src/mcp/oauth-resource.js.map +1 -0
- package/dist/src/mcp/server.d.ts +5 -0
- package/dist/src/mcp/server.d.ts.map +1 -1
- package/dist/src/mcp/server.js +48 -16
- package/dist/src/mcp/server.js.map +1 -1
- package/dist/src/negotiated-tool-ui.d.ts.map +1 -1
- package/dist/src/negotiated-tool-ui.js +12 -8
- package/dist/src/negotiated-tool-ui.js.map +1 -1
- package/dist/src/opencode/client.d.ts +202 -0
- package/dist/src/opencode/client.d.ts.map +1 -0
- package/dist/src/opencode/client.js +2 -0
- package/dist/src/opencode/client.js.map +1 -0
- package/dist/src/opencode/durable/index.d.ts +33 -0
- package/dist/src/opencode/durable/index.d.ts.map +1 -0
- package/dist/src/opencode/durable/index.js +38 -0
- package/dist/src/opencode/durable/index.js.map +1 -0
- package/dist/src/opencode/durable/runner.d.ts +36 -0
- package/dist/src/opencode/durable/runner.d.ts.map +1 -0
- package/dist/src/opencode/durable/runner.js +88 -0
- package/dist/src/opencode/durable/runner.js.map +1 -0
- package/dist/src/opencode/durable/workflow.d.ts +40 -0
- package/dist/src/opencode/durable/workflow.d.ts.map +1 -0
- package/dist/src/opencode/durable/workflow.js +106 -0
- package/dist/src/opencode/durable/workflow.js.map +1 -0
- package/dist/src/opencode/engine.d.ts +48 -0
- package/dist/src/opencode/engine.d.ts.map +1 -0
- package/dist/src/opencode/engine.js +98 -0
- package/dist/src/opencode/engine.js.map +1 -0
- package/dist/src/opencode/event-hub.d.ts +23 -0
- package/dist/src/opencode/event-hub.d.ts.map +1 -0
- package/dist/src/opencode/event-hub.js +99 -0
- package/dist/src/opencode/event-hub.js.map +1 -0
- package/dist/src/opencode/forms.d.ts +19 -0
- package/dist/src/opencode/forms.d.ts.map +1 -0
- package/dist/src/opencode/forms.js +82 -0
- package/dist/src/opencode/forms.js.map +1 -0
- package/dist/src/opencode/host.d.ts +179 -0
- package/dist/src/opencode/host.d.ts.map +1 -0
- package/dist/src/opencode/host.js +34 -0
- package/dist/src/opencode/host.js.map +1 -0
- package/dist/src/opencode/index.d.ts +15 -0
- package/dist/src/opencode/index.d.ts.map +1 -0
- package/dist/src/opencode/index.js +9 -0
- package/dist/src/opencode/index.js.map +1 -0
- package/dist/src/opencode/log.d.ts +9 -0
- package/dist/src/opencode/log.d.ts.map +1 -0
- package/dist/src/opencode/log.js +15 -0
- package/dist/src/opencode/log.js.map +1 -0
- package/dist/src/opencode/mcp.d.ts +60 -0
- package/dist/src/opencode/mcp.d.ts.map +1 -0
- package/dist/src/opencode/mcp.js +258 -0
- package/dist/src/opencode/mcp.js.map +1 -0
- package/dist/src/opencode/runner.d.ts +40 -0
- package/dist/src/opencode/runner.d.ts.map +1 -0
- package/dist/src/opencode/runner.js +125 -0
- package/dist/src/opencode/runner.js.map +1 -0
- package/dist/src/opencode/turn.d.ts +167 -0
- package/dist/src/opencode/turn.d.ts.map +1 -0
- package/dist/src/opencode/turn.js +761 -0
- package/dist/src/opencode/turn.js.map +1 -0
- package/dist/src/opencode/turns.d.ts +247 -0
- package/dist/src/opencode/turns.d.ts.map +1 -0
- package/dist/src/opencode/turns.js +867 -0
- package/dist/src/opencode/turns.js.map +1 -0
- package/dist/src/personas.d.ts.map +1 -1
- package/dist/src/personas.js +4 -1
- package/dist/src/personas.js.map +1 -1
- package/dist/src/react/ag-ui.d.ts +4 -2
- package/dist/src/react/ag-ui.d.ts.map +1 -1
- package/dist/src/react/ag-ui.js +2 -2
- package/dist/src/react/ag-ui.js.map +1 -1
- package/dist/src/react/client.d.ts +1 -1
- package/dist/src/react/client.d.ts.map +1 -1
- package/dist/src/react/client.js +1 -1
- package/dist/src/react/client.js.map +1 -1
- package/dist/src/react/core/ag-ui-backend.d.ts +109 -0
- package/dist/src/react/core/ag-ui-backend.d.ts.map +1 -0
- package/dist/src/react/core/ag-ui-backend.js +574 -0
- package/dist/src/react/core/ag-ui-backend.js.map +1 -0
- package/dist/src/react/core/agent-chat-transport.d.ts +187 -0
- package/dist/src/react/core/agent-chat-transport.d.ts.map +1 -0
- package/dist/src/react/core/agent-chat-transport.js +817 -0
- package/dist/src/react/core/agent-chat-transport.js.map +1 -0
- package/dist/src/react/core/approvals/countdown.d.ts +22 -0
- package/dist/src/react/core/approvals/countdown.d.ts.map +1 -0
- package/dist/src/react/core/approvals/countdown.js +39 -0
- package/dist/src/react/core/approvals/countdown.js.map +1 -0
- package/dist/src/react/core/approvals/proposals.d.ts +15 -0
- package/dist/src/react/core/approvals/proposals.d.ts.map +1 -0
- package/dist/src/react/core/approvals/proposals.js +82 -0
- package/dist/src/react/core/approvals/proposals.js.map +1 -0
- package/dist/src/react/core/approvals/use-action-proposals.d.ts +10 -0
- package/dist/src/react/core/approvals/use-action-proposals.d.ts.map +1 -0
- package/dist/src/react/core/approvals/use-action-proposals.js +86 -0
- package/dist/src/react/core/approvals/use-action-proposals.js.map +1 -0
- package/dist/src/react/core/attachments/files.d.ts +39 -0
- package/dist/src/react/core/attachments/files.d.ts.map +1 -0
- package/dist/src/react/core/attachments/files.js +89 -0
- package/dist/src/react/core/attachments/files.js.map +1 -0
- package/dist/src/react/core/attachments/use-attachments.d.ts +106 -0
- package/dist/src/react/core/attachments/use-attachments.d.ts.map +1 -0
- package/dist/src/react/core/attachments/use-attachments.js +217 -0
- package/dist/src/react/core/attachments/use-attachments.js.map +1 -0
- package/dist/src/react/core/backend.d.ts +245 -0
- package/dist/src/react/core/backend.d.ts.map +1 -0
- package/dist/src/react/core/backend.js +21 -0
- package/dist/src/react/core/backend.js.map +1 -0
- package/dist/src/react/core/background-runs.d.ts +32 -0
- package/dist/src/react/core/background-runs.d.ts.map +1 -0
- package/dist/src/react/core/background-runs.js +47 -0
- package/dist/src/react/core/background-runs.js.map +1 -0
- package/dist/src/react/core/catalog/use-agents.d.ts +31 -0
- package/dist/src/react/core/catalog/use-agents.d.ts.map +1 -0
- package/dist/src/react/core/catalog/use-agents.js +28 -0
- package/dist/src/react/core/catalog/use-agents.js.map +1 -0
- package/dist/src/react/core/catalog/use-models.d.ts +41 -0
- package/dist/src/react/core/catalog/use-models.d.ts.map +1 -0
- package/dist/src/react/core/catalog/use-models.js +35 -0
- package/dist/src/react/core/catalog/use-models.js.map +1 -0
- package/dist/src/react/core/catalog/use-resource.d.ts +12 -0
- package/dist/src/react/core/catalog/use-resource.d.ts.map +1 -0
- package/dist/src/react/core/catalog/use-resource.js +41 -0
- package/dist/src/react/core/catalog/use-resource.js.map +1 -0
- package/dist/src/react/core/client-wire.d.ts +14 -0
- package/dist/src/react/core/client-wire.d.ts.map +1 -0
- package/dist/src/react/core/client-wire.js +2 -0
- package/dist/src/react/core/client-wire.js.map +1 -0
- package/dist/src/react/core/client.d.ts +222 -0
- package/dist/src/react/core/client.d.ts.map +1 -0
- package/dist/src/react/core/client.js +435 -0
- package/dist/src/react/core/client.js.map +1 -0
- package/dist/src/react/core/components/ambient-ui.d.ts +22 -0
- package/dist/src/react/core/components/ambient-ui.d.ts.map +1 -0
- package/dist/src/react/core/components/ambient-ui.js +30 -0
- package/dist/src/react/core/components/ambient-ui.js.map +1 -0
- package/dist/src/react/core/components/chat-input.d.ts +44 -0
- package/dist/src/react/core/components/chat-input.d.ts.map +1 -0
- package/dist/src/react/core/components/chat-input.js +69 -0
- package/dist/src/react/core/components/chat-input.js.map +1 -0
- package/dist/src/react/core/components/index.d.ts +7 -0
- package/dist/src/react/core/components/index.d.ts.map +1 -0
- package/dist/src/react/core/components/index.js +7 -0
- package/dist/src/react/core/components/index.js.map +1 -0
- package/dist/src/react/core/components/message-item.d.ts +101 -0
- package/dist/src/react/core/components/message-item.d.ts.map +1 -0
- package/dist/src/react/core/components/message-item.js +118 -0
- package/dist/src/react/core/components/message-item.js.map +1 -0
- package/dist/src/react/core/components/message-list.d.ts +85 -0
- package/dist/src/react/core/components/message-list.d.ts.map +1 -0
- package/dist/src/react/core/components/message-list.js +45 -0
- package/dist/src/react/core/components/message-list.js.map +1 -0
- package/dist/src/react/core/components/speech-languages.d.ts +22 -0
- package/dist/src/react/core/components/speech-languages.d.ts.map +1 -0
- package/dist/src/react/core/components/speech-languages.js +38 -0
- package/dist/src/react/core/components/speech-languages.js.map +1 -0
- package/dist/src/react/core/components/use-speech-recognition.d.ts +19 -0
- package/dist/src/react/core/components/use-speech-recognition.d.ts.map +1 -0
- package/dist/src/react/core/components/use-speech-recognition.js +92 -0
- package/dist/src/react/core/components/use-speech-recognition.js.map +1 -0
- package/dist/src/react/core/composer/index.d.ts +4 -0
- package/dist/src/react/core/composer/index.d.ts.map +1 -0
- package/dist/src/react/core/composer/index.js +4 -0
- package/dist/src/react/core/composer/index.js.map +1 -0
- package/dist/src/react/core/composer/model.d.ts +83 -0
- package/dist/src/react/core/composer/model.d.ts.map +1 -0
- package/dist/src/react/core/composer/model.js +53 -0
- package/dist/src/react/core/composer/model.js.map +1 -0
- package/dist/src/react/core/composer/skills-source.d.ts +29 -0
- package/dist/src/react/core/composer/skills-source.d.ts.map +1 -0
- package/dist/src/react/core/composer/skills-source.js +61 -0
- package/dist/src/react/core/composer/skills-source.js.map +1 -0
- package/dist/src/react/core/composer/use-composer-autocomplete.d.ts +78 -0
- package/dist/src/react/core/composer/use-composer-autocomplete.d.ts.map +1 -0
- package/dist/src/react/core/composer/use-composer-autocomplete.js +244 -0
- package/dist/src/react/core/composer/use-composer-autocomplete.js.map +1 -0
- package/dist/src/react/core/config/use-agent-config.d.ts +21 -0
- package/dist/src/react/core/config/use-agent-config.d.ts.map +1 -0
- package/dist/src/react/core/config/use-agent-config.js +57 -0
- package/dist/src/react/core/config/use-agent-config.js.map +1 -0
- package/dist/src/react/core/elicitation/answers.d.ts +22 -0
- package/dist/src/react/core/elicitation/answers.d.ts.map +1 -0
- package/dist/src/react/core/elicitation/answers.js +65 -0
- package/dist/src/react/core/elicitation/answers.js.map +1 -0
- package/dist/src/react/core/feedback/use-message-feedback.d.ts +32 -0
- package/dist/src/react/core/feedback/use-message-feedback.d.ts.map +1 -0
- package/dist/src/react/core/feedback/use-message-feedback.js +106 -0
- package/dist/src/react/core/feedback/use-message-feedback.js.map +1 -0
- package/dist/src/react/core/genui/generative-ui.d.ts +76 -0
- package/dist/src/react/core/genui/generative-ui.d.ts.map +1 -0
- package/dist/src/react/core/genui/generative-ui.js +210 -0
- package/dist/src/react/core/genui/generative-ui.js.map +1 -0
- package/dist/src/react/core/genui/index.d.ts +5 -0
- package/dist/src/react/core/genui/index.d.ts.map +1 -0
- package/dist/src/react/core/genui/index.js +5 -0
- package/dist/src/react/core/genui/index.js.map +1 -0
- package/dist/src/react/core/genui/json-render.d.ts +54 -0
- package/dist/src/react/core/genui/json-render.d.ts.map +1 -0
- package/dist/src/react/core/genui/json-render.js +64 -0
- package/dist/src/react/core/genui/json-render.js.map +1 -0
- package/dist/src/react/core/genui/playwright.d.ts +12 -0
- package/dist/src/react/core/genui/playwright.d.ts.map +1 -0
- package/dist/src/react/core/genui/playwright.js +141 -0
- package/dist/src/react/core/genui/playwright.js.map +1 -0
- package/dist/src/react/core/genui/react-registry.d.ts +22 -0
- package/dist/src/react/core/genui/react-registry.d.ts.map +1 -0
- package/dist/src/react/core/genui/react-registry.js +72 -0
- package/dist/src/react/core/genui/react-registry.js.map +1 -0
- package/dist/src/react/core/genui/server.d.ts +32 -0
- package/dist/src/react/core/genui/server.d.ts.map +1 -0
- package/dist/src/react/core/genui/server.js +66 -0
- package/dist/src/react/core/genui/server.js.map +1 -0
- package/dist/src/react/core/genui/types.d.ts +98 -0
- package/dist/src/react/core/genui/types.d.ts.map +1 -0
- package/dist/src/react/core/genui/types.js +3 -0
- package/dist/src/react/core/genui/types.js.map +1 -0
- package/dist/src/react/core/genui/use-generative-ui.d.ts +42 -0
- package/dist/src/react/core/genui/use-generative-ui.d.ts.map +1 -0
- package/dist/src/react/core/genui/use-generative-ui.js +186 -0
- package/dist/src/react/core/genui/use-generative-ui.js.map +1 -0
- package/dist/src/react/core/http-error.d.ts +33 -0
- package/dist/src/react/core/http-error.d.ts.map +1 -0
- package/dist/src/react/core/http-error.js +47 -0
- package/dist/src/react/core/http-error.js.map +1 -0
- package/dist/src/react/core/index.d.ts +35 -0
- package/dist/src/react/core/index.d.ts.map +1 -0
- package/dist/src/react/core/index.js +34 -0
- package/dist/src/react/core/index.js.map +1 -0
- package/dist/src/react/core/markdown/agent-markdown.d.ts +39 -0
- package/dist/src/react/core/markdown/agent-markdown.d.ts.map +1 -0
- package/dist/src/react/core/markdown/agent-markdown.js +22 -0
- package/dist/src/react/core/markdown/agent-markdown.js.map +1 -0
- package/dist/src/react/core/markdown/index.d.ts +2 -0
- package/dist/src/react/core/markdown/index.d.ts.map +1 -0
- package/dist/src/react/core/markdown/index.js +2 -0
- package/dist/src/react/core/markdown/index.js.map +1 -0
- package/dist/src/react/core/media/index.d.ts +64 -0
- package/dist/src/react/core/media/index.d.ts.map +1 -0
- package/dist/src/react/core/media/index.js +135 -0
- package/dist/src/react/core/media/index.js.map +1 -0
- package/dist/src/react/core/media/tus.d.ts +13 -0
- package/dist/src/react/core/media/tus.d.ts.map +1 -0
- package/dist/src/react/core/media/tus.js +59 -0
- package/dist/src/react/core/media/tus.js.map +1 -0
- package/dist/src/react/core/presentation/phrasing.d.ts +25 -0
- package/dist/src/react/core/presentation/phrasing.d.ts.map +1 -0
- package/dist/src/react/core/presentation/phrasing.js +58 -0
- package/dist/src/react/core/presentation/phrasing.js.map +1 -0
- package/dist/src/react/core/presentation/result-view.d.ts +43 -0
- package/dist/src/react/core/presentation/result-view.d.ts.map +1 -0
- package/dist/src/react/core/presentation/result-view.js +90 -0
- package/dist/src/react/core/presentation/result-view.js.map +1 -0
- package/dist/src/react/core/presentation/tool-activity.d.ts +106 -0
- package/dist/src/react/core/presentation/tool-activity.d.ts.map +1 -0
- package/dist/src/react/core/presentation/tool-activity.js +165 -0
- package/dist/src/react/core/presentation/tool-activity.js.map +1 -0
- package/dist/src/react/core/presentation/use-tool-catalog.d.ts +39 -0
- package/dist/src/react/core/presentation/use-tool-catalog.d.ts.map +1 -0
- package/dist/src/react/core/presentation/use-tool-catalog.js +77 -0
- package/dist/src/react/core/presentation/use-tool-catalog.js.map +1 -0
- package/dist/src/react/core/provider.d.ts +68 -0
- package/dist/src/react/core/provider.d.ts.map +1 -0
- package/dist/src/react/core/provider.js +61 -0
- package/dist/src/react/core/provider.js.map +1 -0
- package/dist/src/react/core/queue/model.d.ts +73 -0
- package/dist/src/react/core/queue/model.d.ts.map +1 -0
- package/dist/src/react/core/queue/model.js +2 -0
- package/dist/src/react/core/queue/model.js.map +1 -0
- package/dist/src/react/core/quota/use-quota.d.ts +35 -0
- package/dist/src/react/core/quota/use-quota.d.ts.map +1 -0
- package/dist/src/react/core/quota/use-quota.js +47 -0
- package/dist/src/react/core/quota/use-quota.js.map +1 -0
- package/dist/src/react/core/reasoning/timing.d.ts +38 -0
- package/dist/src/react/core/reasoning/timing.d.ts.map +1 -0
- package/dist/src/react/core/reasoning/timing.js +73 -0
- package/dist/src/react/core/reasoning/timing.js.map +1 -0
- package/dist/src/react/core/run-errors.d.ts +37 -0
- package/dist/src/react/core/run-errors.d.ts.map +1 -0
- package/dist/src/react/core/run-errors.js +37 -0
- package/dist/src/react/core/run-errors.js.map +1 -0
- package/dist/src/react/core/stored-message-to-ui-message.d.ts +4 -0
- package/dist/src/react/core/stored-message-to-ui-message.d.ts.map +1 -0
- package/dist/src/react/core/stored-message-to-ui-message.js +216 -0
- package/dist/src/react/core/stored-message-to-ui-message.js.map +1 -0
- package/dist/src/react/core/stored-thread-to-ui-messages.d.ts +82 -0
- package/dist/src/react/core/stored-thread-to-ui-messages.d.ts.map +1 -0
- package/dist/src/react/core/stored-thread-to-ui-messages.js +116 -0
- package/dist/src/react/core/stored-thread-to-ui-messages.js.map +1 -0
- package/dist/src/react/core/threads/threads-events.d.ts +22 -0
- package/dist/src/react/core/threads/threads-events.d.ts.map +1 -0
- package/dist/src/react/core/threads/threads-events.js +21 -0
- package/dist/src/react/core/threads/threads-events.js.map +1 -0
- package/dist/src/react/core/threads/use-threads.d.ts +31 -0
- package/dist/src/react/core/threads/use-threads.d.ts.map +1 -0
- package/dist/src/react/core/threads/use-threads.js +81 -0
- package/dist/src/react/core/threads/use-threads.js.map +1 -0
- package/dist/src/react/core/transcript/index.d.ts +4 -0
- package/dist/src/react/core/transcript/index.d.ts.map +1 -0
- package/dist/src/react/core/transcript/index.js +4 -0
- package/dist/src/react/core/transcript/index.js.map +1 -0
- package/dist/src/react/core/transcript/model.d.ts +399 -0
- package/dist/src/react/core/transcript/model.d.ts.map +1 -0
- package/dist/src/react/core/transcript/model.js +725 -0
- package/dist/src/react/core/transcript/model.js.map +1 -0
- package/dist/src/react/core/transcript/use-chat-transcript.d.ts +254 -0
- package/dist/src/react/core/transcript/use-chat-transcript.d.ts.map +1 -0
- package/dist/src/react/core/transcript/use-chat-transcript.js +572 -0
- package/dist/src/react/core/transcript/use-chat-transcript.js.map +1 -0
- package/dist/src/react/core/transcript/use-stick-to-bottom.d.ts +33 -0
- package/dist/src/react/core/transcript/use-stick-to-bottom.d.ts.map +1 -0
- package/dist/src/react/core/transcript/use-stick-to-bottom.js +48 -0
- package/dist/src/react/core/transcript/use-stick-to-bottom.js.map +1 -0
- package/dist/src/react/core/use-agent-chat.d.ts +341 -0
- package/dist/src/react/core/use-agent-chat.d.ts.map +1 -0
- package/dist/src/react/core/use-agent-chat.js +1118 -0
- package/dist/src/react/core/use-agent-chat.js.map +1 -0
- package/dist/src/react/genui/index.d.ts +1 -7
- package/dist/src/react/genui/index.d.ts.map +1 -1
- package/dist/src/react/genui/index.js +1 -7
- package/dist/src/react/genui/index.js.map +1 -1
- package/dist/src/react/genui/json-render.d.ts +1 -5
- package/dist/src/react/genui/json-render.d.ts.map +1 -1
- package/dist/src/react/genui/json-render.js +1 -5
- package/dist/src/react/genui/json-render.js.map +1 -1
- package/dist/src/react/genui/server.d.ts +2 -0
- package/dist/src/react/genui/server.d.ts.map +1 -0
- package/dist/src/react/genui/server.js +2 -0
- package/dist/src/react/genui/server.js.map +1 -0
- package/dist/src/react/genui/server_playwright.d.ts +2 -0
- package/dist/src/react/genui/server_playwright.d.ts.map +1 -0
- package/dist/src/react/genui/server_playwright.js +2 -0
- package/dist/src/react/genui/server_playwright.js.map +1 -0
- package/dist/src/react/index.d.ts +5 -7
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/index.js +5 -7
- package/dist/src/react/index.js.map +1 -1
- package/dist/src/react/markdown.d.ts +1 -6
- package/dist/src/react/markdown.d.ts.map +1 -1
- package/dist/src/react/markdown.js +1 -6
- package/dist/src/react/markdown.js.map +1 -1
- package/dist/src/react/media.d.ts +1 -17
- package/dist/src/react/media.d.ts.map +1 -1
- package/dist/src/react/media.js +1 -17
- package/dist/src/react/media.js.map +1 -1
- package/dist/src/refusal.d.ts +3 -0
- package/dist/src/refusal.d.ts.map +1 -0
- package/dist/src/refusal.js +3 -0
- package/dist/src/refusal.js.map +1 -0
- package/dist/src/spi/agent-runner.d.ts +6 -0
- package/dist/src/spi/agent-runner.d.ts.map +1 -1
- package/dist/src/spi/chat-queue.d.ts +4 -1
- package/dist/src/spi/chat-queue.d.ts.map +1 -1
- package/dist/src/spi/chat-queue.js.map +1 -1
- package/dist/src/spi/protocol-adapter.d.ts +3 -3
- package/dist/src/spi/roles-policy.d.ts +7 -0
- package/dist/src/spi/roles-policy.d.ts.map +1 -1
- package/dist/src/spi/tool.d.ts +18 -3
- package/dist/src/spi/tool.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts +24 -6
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +49 -6
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts +2 -0
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +7 -0
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/testing/chat-queue-store-contract.d.ts.map +1 -1
- package/dist/src/testing/chat-queue-store-contract.js +4 -0
- package/dist/src/testing/chat-queue-store-contract.js.map +1 -1
- package/dist/src/testing/in-memory-store.d.ts.map +1 -1
- package/dist/src/testing/in-memory-store.js +1 -0
- package/dist/src/testing/in-memory-store.js.map +1 -1
- package/dist/src/tool-discovery.d.ts +1 -1
- package/dist/src/tool-discovery.d.ts.map +1 -1
- package/dist/src/tool-discovery.js +5 -1
- package/dist/src/tool-discovery.js.map +1 -1
- package/dist/src/tool-registry.d.ts +3 -0
- package/dist/src/tool-registry.d.ts.map +1 -1
- package/dist/src/tool-registry.js +15 -3
- package/dist/src/tool-registry.js.map +1 -1
- package/dist/src/tool-result-presentation.d.ts +12 -0
- package/dist/src/tool-result-presentation.d.ts.map +1 -0
- package/dist/src/tool-result-presentation.js +44 -0
- package/dist/src/tool-result-presentation.js.map +1 -0
- package/dist/src/types.d.ts +20 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/ui-capabilities.d.ts +1 -8
- package/dist/src/ui-capabilities.d.ts.map +1 -1
- package/dist/src/ui-capabilities.js +3 -24
- package/dist/src/ui-capabilities.js.map +1 -1
- package/package.json +128 -22
- package/skills/agent-governance/SKILL.md +12 -4
- package/skills/agent-personas-agents/SKILL.md +2 -1
- package/skills/agent-setup/SKILL.md +73 -14
- package/skills/agent-testing/SKILL.md +22 -0
- package/skills/agent-tools/SKILL.md +57 -9
- package/dist/src/ag-ui/proposal-decision.d.ts.map +0 -1
- package/dist/src/ag-ui/proposal-decision.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define_config.d.ts","sourceRoot":"","sources":["../../src/define_config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,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IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,2GAA2G;IAC3G,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,mEAAmE;AACnE,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAE7D;AAED,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GACjB,CAAC;AACF,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,UAAU,GACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define_config.js","sourceRoot":"","sources":["../../src/define_config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"define_config.js","sourceRoot":"","sources":["../../src/define_config.ts"],"names":[],"mappings":"AAoDA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAyV7B,mEAAmE;AACnE,MAAM,UAAU,YAAY,CAAC,MAAmB;IAC9C,OAAO,MAAM,CAAC;AAChB,CAAC;AA0BD,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,UAAU,GACX,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { AgentDepsFactory } from './agent-deps-factory.js';
|
|
2
|
+
import type { ChatQueueService } from './chat-queue-service.js';
|
|
3
|
+
import type { AgentRunner } from './spi/agent-runner.js';
|
|
4
|
+
import type { AgentStore } from './spi/agent-store.js';
|
|
5
|
+
import type { ModelProvider } from './spi/model-provider.js';
|
|
6
|
+
import type { ProtocolAdapter } from './spi/protocol-adapter.js';
|
|
7
|
+
import type { TokenStreamSink } from './spi/token-stream-sink.js';
|
|
8
|
+
import type { ToolRegistry } from './tool-registry.js';
|
|
9
|
+
/**
|
|
10
|
+
* What the provider hands an engine when it builds the runner: the same graph the library's own
|
|
11
|
+
* runners are built from. Everything around a turn stays the library's — the routes and the stream
|
|
12
|
+
* protocol, threads and the store, the sink, approvals and answers routed through `AgentService`, the
|
|
13
|
+
* queue — and the engine reads the agent's prompt, approval policy, skills and memory off `factory`.
|
|
14
|
+
*/
|
|
15
|
+
export interface AgentEngineContext {
|
|
16
|
+
factory: AgentDepsFactory;
|
|
17
|
+
store: AgentStore;
|
|
18
|
+
sink: TokenStreamSink;
|
|
19
|
+
registry: ToolRegistry;
|
|
20
|
+
/** The thread message queue: a settling turn hands its thread to the next queued message. */
|
|
21
|
+
queue: ChatQueueService;
|
|
22
|
+
/**
|
|
23
|
+
* Resolve a container binding (e.g. `@adonis-agora/durable`'s `WorkflowEngine`). Absent when the
|
|
24
|
+
* engine is wired outside an AdonisJS app (a test building the graph by hand).
|
|
25
|
+
*/
|
|
26
|
+
make?: <T = unknown>(binding: unknown) => Promise<T>;
|
|
27
|
+
/** The app's `APP_KEY`, when there is one — a stable secret for whatever the engine signs. */
|
|
28
|
+
appKey?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Something other than this library's loop that runs a turn — what `engine` in `config/agent.ts`
|
|
32
|
+
* takes. An engine owns the turn end to end (the model calls, the tools, the context it keeps) and
|
|
33
|
+
* builds the {@link AgentRunner} the service runs turns on; everything around the turn stays the
|
|
34
|
+
* library's.
|
|
35
|
+
*
|
|
36
|
+
* `openCode()` (`@adonis-agora/agent/opencode`) is the one that ships. An engine replaces the loop,
|
|
37
|
+
* so the options only the loop reads (`model`, processors, `maxSteps`, `historyWindow`, `retriever`,
|
|
38
|
+
* delegation) do nothing under one, and `model` becomes optional.
|
|
39
|
+
*/
|
|
40
|
+
export interface AgentEngine {
|
|
41
|
+
/** For logs and diagnostics. */
|
|
42
|
+
readonly name: string;
|
|
43
|
+
/**
|
|
44
|
+
* The engine checkpoints its own turns (`openCodeDurable()`). `durable: true` in the config names the
|
|
45
|
+
* LOOP's durable runner, which an engine replaces — so it is refused next to an engine that is not
|
|
46
|
+
* durable itself, rather than silently ignored.
|
|
47
|
+
*/
|
|
48
|
+
readonly durable?: boolean;
|
|
49
|
+
/** Build the runner the service starts, signals and cancels turns on. Called once, at boot. */
|
|
50
|
+
createRunner(context: AgentEngineContext): AgentRunner | Promise<AgentRunner>;
|
|
51
|
+
/**
|
|
52
|
+
* Routes the engine serves next to the agent's own (e.g. the MCP endpoint OpenCode reaches the
|
|
53
|
+
* app's tools through), mounted like `adapters` once {@link createRunner} has run.
|
|
54
|
+
*/
|
|
55
|
+
adapters?(): readonly ProtocolAdapter[];
|
|
56
|
+
/** Release what the engine holds (event streams, timers) when the app shuts down. */
|
|
57
|
+
shutdown?(): void | Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
/** `engine` in `config/agent.ts`: an engine, or a lazy factory so its module loads with the config. */
|
|
60
|
+
export type AgentEngineFactory = () => AgentEngine | Promise<AgentEngine>;
|
|
61
|
+
/**
|
|
62
|
+
* Refuse a wiring that cannot run a turn, at boot rather than on the first message: no `model` and
|
|
63
|
+
* no `engine` leaves the loop nothing to call, and `durable: true` names the loop's own durable
|
|
64
|
+
* runner, which a non-durable engine replaces (a durable engine brings its own durability).
|
|
65
|
+
*/
|
|
66
|
+
export declare function assertRunnable(options: {
|
|
67
|
+
model?: unknown;
|
|
68
|
+
engine?: AgentEngine | undefined;
|
|
69
|
+
durable?: boolean | undefined;
|
|
70
|
+
}): void;
|
|
71
|
+
/**
|
|
72
|
+
* The model the loop is handed when an engine runs the turns and no `model` is configured: nothing
|
|
73
|
+
* of the library's calls it on that path, and a caller that does (a background summarizer reading
|
|
74
|
+
* `deps.model`) is told why instead of crashing on `undefined`.
|
|
75
|
+
*/
|
|
76
|
+
export declare function engineOnlyModel(engine: AgentEngine): ModelProvider;
|
|
77
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,6FAA6F;IAC7F,KAAK,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IACrD,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,+FAA+F;IAC/F,YAAY,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9E;;;OAGG;IACH,QAAQ,CAAC,IAAI,SAAS,eAAe,EAAE,CAAC;IACxC,qFAAqF;IACrF,QAAQ,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AAED,uGAAuG;AACvG,MAAM,MAAM,kBAAkB,GAAG,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1E;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,GAAG,IAAI,CAYP;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,aAAa,CAQlE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refuse a wiring that cannot run a turn, at boot rather than on the first message: no `model` and
|
|
3
|
+
* no `engine` leaves the loop nothing to call, and `durable: true` names the loop's own durable
|
|
4
|
+
* runner, which a non-durable engine replaces (a durable engine brings its own durability).
|
|
5
|
+
*/
|
|
6
|
+
export function assertRunnable(options) {
|
|
7
|
+
const { engine } = options;
|
|
8
|
+
if (engine !== undefined && options.durable === true && engine.durable !== true) {
|
|
9
|
+
throw new Error(`[@adonis-agora/agent] \`durable: true\` runs turns on the library's loop, but the \`${engine.name}\` engine runs them instead. Drop \`durable\`, or use the engine's durable variant.`);
|
|
10
|
+
}
|
|
11
|
+
if (engine === undefined && options.model === undefined) {
|
|
12
|
+
throw new Error('[@adonis-agora/agent] set `model` in config/agent.ts (the loop runs the turns) or `engine` (something else does).');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The model the loop is handed when an engine runs the turns and no `model` is configured: nothing
|
|
17
|
+
* of the library's calls it on that path, and a caller that does (a background summarizer reading
|
|
18
|
+
* `deps.model`) is told why instead of crashing on `undefined`.
|
|
19
|
+
*/
|
|
20
|
+
export function engineOnlyModel(engine) {
|
|
21
|
+
return {
|
|
22
|
+
async runTurn() {
|
|
23
|
+
throw new Error(`[@adonis-agora/agent] the \`${engine.name}\` engine runs this deployment's turns and no \`model\` is configured; set \`model\` for anything that calls the loop's model directly.`);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/engine.ts"],"names":[],"mappings":"AAgEA;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,OAI9B;IACC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,IAAI,MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,IAAI,MAAM,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAChF,MAAM,IAAI,KAAK,CACb,uFAAuF,MAAM,CAAC,IAAI,qFAAqF,CACxL,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CACb,mHAAmH,CACpH,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAAmB;IACjD,OAAO;QACL,KAAK,CAAC,OAAO;YACX,MAAM,IAAI,KAAK,CACb,+BAA+B,MAAM,CAAC,IAAI,yIAAyI,CACpL,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,76 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Optional builtin component DEFINITIONS — names, props schemas, model descriptions and plain-text
|
|
3
|
+
* fallbacks for the components most chat apps want. No visuals: an app renders each with its own
|
|
4
|
+
* look, keyed by name. Use them as-is, pick some, or extend them:
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* const catalog = defineCatalog([...BUILTIN_COMPONENTS, ...LAYOUT_COMPONENTS, myDealCard]);
|
|
8
|
+
* ```
|
|
4
9
|
*/
|
|
5
|
-
|
|
10
|
+
import { type ComponentDefinition } from './catalog.js';
|
|
11
|
+
import type { ChartProps, TableProps } from './registry.js';
|
|
12
|
+
type Props = Record<string, unknown>;
|
|
13
|
+
/** A fixed-width text table in a code block, at most `max` rows. */
|
|
14
|
+
export declare function textTable(columns: readonly {
|
|
15
|
+
key: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}[], rows: readonly Props[], max?: number): string;
|
|
18
|
+
export interface DiffLine {
|
|
19
|
+
op: 'same' | 'add' | 'del';
|
|
20
|
+
text: string;
|
|
21
|
+
}
|
|
22
|
+
/** Line diff (LCS) — good enough for snippets up to a few hundred lines. */
|
|
23
|
+
export declare function lineDiff(before: string, after: string): DiffLine[];
|
|
24
|
+
export declare const DataTable: ComponentDefinition<TableProps>;
|
|
25
|
+
export declare const Chart: ComponentDefinition<ChartProps>;
|
|
26
|
+
export declare const KpiCards: ComponentDefinition<{
|
|
27
|
+
title?: string;
|
|
28
|
+
items: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string | number;
|
|
31
|
+
delta?: string;
|
|
32
|
+
trend?: 'up' | 'down' | 'flat';
|
|
33
|
+
hint?: string;
|
|
34
|
+
}[];
|
|
35
|
+
}>;
|
|
36
|
+
export declare const SourceCards: ComponentDefinition<{
|
|
37
|
+
title?: string;
|
|
38
|
+
items: {
|
|
39
|
+
title: string;
|
|
40
|
+
url?: string;
|
|
41
|
+
snippet?: string;
|
|
42
|
+
source?: string;
|
|
43
|
+
}[];
|
|
44
|
+
}>;
|
|
45
|
+
export declare const Checklist: ComponentDefinition<{
|
|
46
|
+
title?: string;
|
|
47
|
+
items: {
|
|
48
|
+
label: string;
|
|
49
|
+
done?: boolean;
|
|
50
|
+
note?: string;
|
|
51
|
+
}[];
|
|
52
|
+
}>;
|
|
53
|
+
export declare const Timeline: ComponentDefinition<{
|
|
54
|
+
title?: string;
|
|
55
|
+
events: {
|
|
56
|
+
date?: string;
|
|
57
|
+
title: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
}[];
|
|
60
|
+
}>;
|
|
61
|
+
export declare const CodeBlock: ComponentDefinition<Props>;
|
|
62
|
+
export declare const Diff: ComponentDefinition<Props>;
|
|
63
|
+
export declare const Callout: ComponentDefinition<Props>;
|
|
64
|
+
export declare const Stack: ComponentDefinition<Props>;
|
|
65
|
+
export declare const Card: ComponentDefinition<Props>;
|
|
66
|
+
export declare const Heading: ComponentDefinition<Props>;
|
|
67
|
+
export declare const Text: ComponentDefinition<Props>;
|
|
68
|
+
export declare const Badge: ComponentDefinition<Props>;
|
|
69
|
+
export declare const Link: ComponentDefinition<Props>;
|
|
70
|
+
export declare const Image: ComponentDefinition<Props>;
|
|
71
|
+
/** Content components: data a model shows. */
|
|
72
|
+
export declare const BUILTIN_COMPONENTS: readonly ComponentDefinition<unknown>[];
|
|
73
|
+
/** Layout and text primitives, mostly for composing trees (`Stack`, `Card` take children). */
|
|
74
|
+
export declare const LAYOUT_COMPONENTS: readonly ComponentDefinition<unknown>[];
|
|
75
|
+
export {};
|
|
6
76
|
//# sourceMappingURL=builtins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtins.d.ts","sourceRoot":"","sources":["../../../src/genui/builtins.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"builtins.d.ts","sourceRoot":"","sources":["../../../src/genui/builtins.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,mBAAmB,EAAmB,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG5D,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAyBrC,oEAAoE;AACpE,wBAAgB,SAAS,CACvB,OAAO,EAAE,SAAS;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EAClD,IAAI,EAAE,SAAS,KAAK,EAAE,EACtB,GAAG,SAAK,GACP,MAAM,CAER;AAyBD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4EAA4E;AAC5E,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,CAoClE;AAOD,eAAO,MAAM,SAAS,iCA2BpB,CAAC;AAEH,eAAO,MAAM,KAAK,iCA6BhB,CAAC;AA+EH,eAAO,MAAM,QAAQ;YACX,MAAM;WACP;QACL,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,IAAI,GAAG,M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|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Optional builtin component DEFINITIONS — names, props schemas, model descriptions and plain-text
|
|
3
|
+
* fallbacks for the components most chat apps want. No visuals: an app renders each with its own
|
|
4
|
+
* look, keyed by name. Use them as-is, pick some, or extend them:
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* const catalog = defineCatalog([...BUILTIN_COMPONENTS, ...LAYOUT_COMPONENTS, myDealCard]);
|
|
8
|
+
* ```
|
|
4
9
|
*/
|
|
5
|
-
|
|
10
|
+
import { defineComponent } from './catalog.js';
|
|
11
|
+
const str = (description, extra = {}) => ({
|
|
12
|
+
type: 'string',
|
|
13
|
+
...(description !== undefined ? { description } : {}),
|
|
14
|
+
...extra,
|
|
15
|
+
});
|
|
16
|
+
const obj = (properties, required = []) => ({
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties,
|
|
19
|
+
required,
|
|
20
|
+
additionalProperties: false,
|
|
21
|
+
});
|
|
22
|
+
const arr = (items, extra = {}) => ({
|
|
23
|
+
type: 'array',
|
|
24
|
+
items,
|
|
25
|
+
...extra,
|
|
26
|
+
});
|
|
27
|
+
const cell = { type: ['string', 'number', 'boolean', 'null'] };
|
|
28
|
+
const row = { type: 'object', additionalProperties: cell };
|
|
29
|
+
const s = (value) => (value === null || value === undefined ? '' : String(value));
|
|
30
|
+
const heading = (props) => props.title ? `*${s(props.title)}*\n` : '';
|
|
31
|
+
/** A fixed-width text table in a code block, at most `max` rows. */
|
|
32
|
+
export function textTable(columns, rows, max = 15) {
|
|
33
|
+
return `\`\`\`\n${tableLines(columns, rows, max).join('\n')}\n\`\`\``;
|
|
34
|
+
}
|
|
35
|
+
/** {@link textTable}'s lines, without the code block. */
|
|
36
|
+
function tableLines(columns, rows, max) {
|
|
37
|
+
const shown = rows.slice(0, max);
|
|
38
|
+
const widths = columns.map((column) => Math.min(28, Math.max(column.label.length, ...shown.map((r) => s(r[column.key]).length))));
|
|
39
|
+
const format = (values) => values
|
|
40
|
+
.map((value, index) => value.slice(0, widths[index]).padEnd(widths[index] ?? 0))
|
|
41
|
+
.join(' ');
|
|
42
|
+
const lines = [
|
|
43
|
+
format(columns.map((column) => column.label)),
|
|
44
|
+
widths.map((width) => '-'.repeat(width)).join(' '),
|
|
45
|
+
...shown.map((r) => format(columns.map((column) => s(r[column.key])))),
|
|
46
|
+
];
|
|
47
|
+
if (rows.length > max)
|
|
48
|
+
lines.push(`… ${rows.length - max} more rows`);
|
|
49
|
+
return lines;
|
|
50
|
+
}
|
|
51
|
+
/** Line diff (LCS) — good enough for snippets up to a few hundred lines. */
|
|
52
|
+
export function lineDiff(before, after) {
|
|
53
|
+
const a = before.split('\n');
|
|
54
|
+
const b = after.split('\n');
|
|
55
|
+
if (a.length * b.length > 250_000) {
|
|
56
|
+
return [
|
|
57
|
+
...a.map((text) => ({ op: 'del', text })),
|
|
58
|
+
...b.map((text) => ({ op: 'add', text })),
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
const dp = Array.from({ length: a.length + 1 }, () => new Array(b.length + 1).fill(0));
|
|
62
|
+
const at = (i, j) => dp[i]?.[j] ?? 0;
|
|
63
|
+
for (let i = a.length - 1; i >= 0; i--) {
|
|
64
|
+
for (let j = b.length - 1; j >= 0; j--) {
|
|
65
|
+
dp[i][j] =
|
|
66
|
+
a[i] === b[j] ? at(i + 1, j + 1) + 1 : Math.max(at(i + 1, j), at(i, j + 1));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const out = [];
|
|
70
|
+
let i = 0;
|
|
71
|
+
let j = 0;
|
|
72
|
+
while (i < a.length && j < b.length) {
|
|
73
|
+
if (a[i] === b[j]) {
|
|
74
|
+
out.push({ op: 'same', text: a[i] });
|
|
75
|
+
i++;
|
|
76
|
+
j++;
|
|
77
|
+
}
|
|
78
|
+
else if (at(i + 1, j) >= at(i, j + 1)) {
|
|
79
|
+
out.push({ op: 'del', text: a[i++] });
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
out.push({ op: 'add', text: b[j++] });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
while (i < a.length)
|
|
86
|
+
out.push({ op: 'del', text: a[i++] });
|
|
87
|
+
while (j < b.length)
|
|
88
|
+
out.push({ op: 'add', text: b[j++] });
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
function bar(value, max, width = 20) {
|
|
92
|
+
const n = max > 0 ? Math.round((Math.abs(value) / max) * width) : 0;
|
|
93
|
+
return '█'.repeat(n) || '▏';
|
|
94
|
+
}
|
|
95
|
+
export const DataTable = defineComponent({
|
|
96
|
+
name: 'DataTable',
|
|
97
|
+
title: 'Data table',
|
|
98
|
+
description: 'Tabular data (records with the same fields) as a sortable table. Prefer it over markdown tables for more than 3 rows.',
|
|
99
|
+
props: obj({
|
|
100
|
+
title: str('Short caption'),
|
|
101
|
+
columns: arr(obj({
|
|
102
|
+
key: str('Field name in each row'),
|
|
103
|
+
label: str('Column header'),
|
|
104
|
+
align: str(undefined, { enum: ['left', 'right', 'center'] }),
|
|
105
|
+
format: str('How to format values', {
|
|
106
|
+
enum: ['text', 'number', 'currency', 'percent', 'date', 'link'],
|
|
107
|
+
}),
|
|
108
|
+
}, ['key', 'label']), { minItems: 1, maxItems: 12 }),
|
|
109
|
+
rows: arr(row, { maxItems: 500 }),
|
|
110
|
+
}, ['columns', 'rows']),
|
|
111
|
+
fallbackText: (props) => `${heading(props)}${textTable(props.columns ?? [], props.rows ?? [])}`,
|
|
112
|
+
});
|
|
113
|
+
export const Chart = defineComponent({
|
|
114
|
+
name: 'Chart',
|
|
115
|
+
title: 'Chart',
|
|
116
|
+
description: '`bar` to compare categories, `line` for a trend over time. `data` is a list of points; `xKey` names the category/time field and each series names a numeric field.',
|
|
117
|
+
props: obj({
|
|
118
|
+
type: str('Chart type', { enum: ['bar', 'line'] }),
|
|
119
|
+
title: str(),
|
|
120
|
+
xKey: str('Field of each point used for the x axis'),
|
|
121
|
+
series: arr(obj({ key: str('Numeric field'), label: str() }, ['key']), {
|
|
122
|
+
minItems: 1,
|
|
123
|
+
maxItems: 6,
|
|
124
|
+
}),
|
|
125
|
+
data: arr(row, { minItems: 1, maxItems: 200 }),
|
|
126
|
+
unit: str('Unit shown after values, e.g. `KB` or `%`'),
|
|
127
|
+
}, ['type', 'xKey', 'series', 'data']),
|
|
128
|
+
fallbackText: (props) => {
|
|
129
|
+
const series = props.series ?? [];
|
|
130
|
+
const data = props.data ?? [];
|
|
131
|
+
const unit = props.unit ? ` ${s(props.unit)}` : '';
|
|
132
|
+
const lines = props.type === 'line'
|
|
133
|
+
? lineChartLines(props.xKey, series, data, unit)
|
|
134
|
+
: barChartLines(props.xKey, series, data, unit);
|
|
135
|
+
return `${heading(props)}\`\`\`\n${lines.join('\n')}\n\`\`\``;
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
const seriesName = (each) => s(each.label || each.key);
|
|
139
|
+
const pad = (value, width) => s(value).slice(0, width).padEnd(width);
|
|
140
|
+
/**
|
|
141
|
+
* A bar chart as text: one bar per point (one series), or per point a bar per series, all on one
|
|
142
|
+
* scale. At most 20 points.
|
|
143
|
+
*/
|
|
144
|
+
function barChartLines(xKey, series, data, unit) {
|
|
145
|
+
const value = (point, key) => Number(point[key]) || 0;
|
|
146
|
+
const max = Math.max(0, ...data.flatMap((point) => series.map((each) => Math.abs(value(point, each.key)))));
|
|
147
|
+
const lines = [];
|
|
148
|
+
const width = Math.min(18, Math.max(0, ...series.map((each) => seriesName(each).length)));
|
|
149
|
+
for (const point of data.slice(0, 20)) {
|
|
150
|
+
if (series.length <= 1) {
|
|
151
|
+
const key = series[0]?.key ?? '';
|
|
152
|
+
lines.push(`${pad(point[xKey], 18)} ${bar(value(point, key), max)} ${s(point[key])}${unit}`);
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
lines.push(s(point[xKey]));
|
|
156
|
+
for (const each of series) {
|
|
157
|
+
lines.push(` ${pad(seriesName(each), width)} ${bar(value(point, each.key), max)} ${s(point[each.key])}${unit}`);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (data.length > 20)
|
|
161
|
+
lines.push(`… ${data.length - 20} more points`);
|
|
162
|
+
return lines;
|
|
163
|
+
}
|
|
164
|
+
const SPARKS = '▁▂▃▄▅▆▇█';
|
|
165
|
+
/** `▁▃▅█`: one block per value, scaled between the smallest and the largest. */
|
|
166
|
+
function sparkline(values) {
|
|
167
|
+
const min = Math.min(...values);
|
|
168
|
+
const max = Math.max(...values);
|
|
169
|
+
return values
|
|
170
|
+
.map((value) => max === min
|
|
171
|
+
? SPARKS[3]
|
|
172
|
+
: SPARKS[Math.round(((value - min) / (max - min)) * (SPARKS.length - 1))])
|
|
173
|
+
.join('');
|
|
174
|
+
}
|
|
175
|
+
/** A line chart as text: a sparkline per series (first → last, min/max), then the points as a table. */
|
|
176
|
+
function lineChartLines(xKey, series, data, unit) {
|
|
177
|
+
const width = Math.min(18, Math.max(0, ...series.map((each) => seriesName(each).length)));
|
|
178
|
+
// At most 40 sparkline points, sampled evenly across the data.
|
|
179
|
+
const step = Math.max(1, Math.ceil(data.length / 40));
|
|
180
|
+
const lines = series.map((each) => {
|
|
181
|
+
const values = data.map((point) => Number(point[each.key]) || 0);
|
|
182
|
+
if (values.length === 0)
|
|
183
|
+
return seriesName(each);
|
|
184
|
+
const spark = sparkline(values.filter((_value, index) => index % step === 0));
|
|
185
|
+
const first = s(data[0]?.[each.key]);
|
|
186
|
+
const last = s(data[data.length - 1]?.[each.key]);
|
|
187
|
+
return `${pad(seriesName(each), width)} ${spark} ${first} → ${last}${unit} (min ${Math.min(...values)}, max ${Math.max(...values)})`;
|
|
188
|
+
});
|
|
189
|
+
const columns = [
|
|
190
|
+
{ key: xKey, label: xKey },
|
|
191
|
+
...series.map((each) => ({ key: each.key, label: seriesName(each) })),
|
|
192
|
+
];
|
|
193
|
+
return [...lines, '', ...tableLines(columns, data, 20)];
|
|
194
|
+
}
|
|
195
|
+
export const KpiCards = defineComponent({
|
|
196
|
+
name: 'KpiCards',
|
|
197
|
+
title: 'KPI cards',
|
|
198
|
+
description: 'A few key numbers (metrics, totals, counts) as cards.',
|
|
199
|
+
props: obj({
|
|
200
|
+
title: str(),
|
|
201
|
+
items: arr(obj({
|
|
202
|
+
label: str(),
|
|
203
|
+
value: { type: ['string', 'number'] },
|
|
204
|
+
delta: str('Change, e.g. `+12%`'),
|
|
205
|
+
trend: str(undefined, { enum: ['up', 'down', 'flat'] }),
|
|
206
|
+
hint: str(),
|
|
207
|
+
}, ['label', 'value']), { minItems: 1, maxItems: 8 }),
|
|
208
|
+
}, ['items']),
|
|
209
|
+
fallbackText: (props) => `${heading(props)}${(props.items ?? [])
|
|
210
|
+
.map((item) => `• *${s(item.label)}:* ${s(item.value)}${item.delta ? ` (${s(item.delta)})` : ''}`)
|
|
211
|
+
.join('\n')}`,
|
|
212
|
+
});
|
|
213
|
+
export const SourceCards = defineComponent({
|
|
214
|
+
name: 'SourceCards',
|
|
215
|
+
title: 'Sources',
|
|
216
|
+
description: 'The documents, pages or links an answer is based on, as cards.',
|
|
217
|
+
props: obj({
|
|
218
|
+
title: str(),
|
|
219
|
+
items: arr(obj({ title: str(), url: str(), snippet: str(), source: str('e.g. Wiki, GitHub') }, [
|
|
220
|
+
'title',
|
|
221
|
+
]), { minItems: 1, maxItems: 12 }),
|
|
222
|
+
}, ['items']),
|
|
223
|
+
fallbackText: (props) => `${heading(props)}${(props.items ?? [])
|
|
224
|
+
.map((item) => `• ${item.url ? `<${s(item.url)}|${s(item.title)}>` : s(item.title)}${item.source ? ` — ${s(item.source)}` : ''}`)
|
|
225
|
+
.join('\n')}`,
|
|
226
|
+
});
|
|
227
|
+
export const Checklist = defineComponent({
|
|
228
|
+
name: 'Checklist',
|
|
229
|
+
title: 'Checklist',
|
|
230
|
+
description: 'Steps or a to-do list with done/not-done state.',
|
|
231
|
+
props: obj({
|
|
232
|
+
title: str(),
|
|
233
|
+
items: arr(obj({ label: str(), done: { type: 'boolean' }, note: str() }, ['label']), {
|
|
234
|
+
minItems: 1,
|
|
235
|
+
maxItems: 50,
|
|
236
|
+
}),
|
|
237
|
+
}, ['items']),
|
|
238
|
+
fallbackText: (props) => `${heading(props)}${(props.items ?? [])
|
|
239
|
+
.map((item) => `${item.done ? '☑' : '☐'} ${s(item.label)}${item.note ? ` — _${s(item.note)}_` : ''}`)
|
|
240
|
+
.join('\n')}`,
|
|
241
|
+
});
|
|
242
|
+
export const Timeline = defineComponent({
|
|
243
|
+
name: 'Timeline',
|
|
244
|
+
title: 'Timeline',
|
|
245
|
+
description: 'Events in chronological order (the history of a project, an incident, a deal).',
|
|
246
|
+
props: obj({
|
|
247
|
+
title: str(),
|
|
248
|
+
events: arr(obj({ date: str(), title: str(), description: str() }, ['title']), {
|
|
249
|
+
minItems: 1,
|
|
250
|
+
maxItems: 50,
|
|
251
|
+
}),
|
|
252
|
+
}, ['events']),
|
|
253
|
+
fallbackText: (props) => `${heading(props)}${(props.events ?? [])
|
|
254
|
+
.map((event) => `• ${event.date ? `*${s(event.date)}* ` : ''}${s(event.title)}${event.description ? ` — ${s(event.description)}` : ''}`)
|
|
255
|
+
.join('\n')}`,
|
|
256
|
+
});
|
|
257
|
+
export const CodeBlock = defineComponent({
|
|
258
|
+
name: 'CodeBlock',
|
|
259
|
+
title: 'Code',
|
|
260
|
+
description: 'A code snippet or file excerpt with syntax highlighting.',
|
|
261
|
+
props: obj({ title: str(), language: str(), code: str() }, ['code']),
|
|
262
|
+
fallbackText: (props) => `${heading(props)}\`\`\`\n${s(props.code)}\n\`\`\``,
|
|
263
|
+
});
|
|
264
|
+
export const Diff = defineComponent({
|
|
265
|
+
name: 'Diff',
|
|
266
|
+
title: 'Diff',
|
|
267
|
+
description: 'A before/after change to a text or code file, as a line diff.',
|
|
268
|
+
props: obj({ title: str(), language: str(), before: str(), after: str() }, ['before', 'after']),
|
|
269
|
+
fallbackText: (props) => `${heading(props)}\`\`\`\n${lineDiff(s(props.before), s(props.after))
|
|
270
|
+
.map((line) => `${line.op === 'add' ? '+' : line.op === 'del' ? '-' : ' '} ${line.text}`)
|
|
271
|
+
.join('\n')}\n\`\`\``,
|
|
272
|
+
});
|
|
273
|
+
export const Callout = defineComponent({
|
|
274
|
+
name: 'Callout',
|
|
275
|
+
title: 'Callout',
|
|
276
|
+
description: 'A short note, warning or success message, emphasized.',
|
|
277
|
+
props: obj({
|
|
278
|
+
tone: str(undefined, { enum: ['info', 'success', 'warning', 'danger'] }),
|
|
279
|
+
title: str(),
|
|
280
|
+
text: str(),
|
|
281
|
+
}, ['text']),
|
|
282
|
+
fallbackText: (props) => `${props.tone === 'warning' || props.tone === 'danger' ? ':warning: ' : ':information_source: '}${heading(props)}${s(props.text)}`,
|
|
283
|
+
});
|
|
284
|
+
export const Stack = defineComponent({
|
|
285
|
+
name: 'Stack',
|
|
286
|
+
title: 'Stack',
|
|
287
|
+
description: 'Lays its children out vertically (or horizontally with direction=row).',
|
|
288
|
+
props: obj({ direction: str(undefined, { enum: ['column', 'row'] }), gap: { type: 'number' } }),
|
|
289
|
+
children: true,
|
|
290
|
+
fallbackText: () => '',
|
|
291
|
+
});
|
|
292
|
+
export const Card = defineComponent({
|
|
293
|
+
name: 'Card',
|
|
294
|
+
title: 'Card',
|
|
295
|
+
description: 'A box with an optional title around its children.',
|
|
296
|
+
props: obj({ title: str(), subtitle: str() }),
|
|
297
|
+
children: true,
|
|
298
|
+
fallbackText: (props) => props.title ? `*${s(props.title)}*${props.subtitle ? ` — ${s(props.subtitle)}` : ''}` : '',
|
|
299
|
+
});
|
|
300
|
+
export const Heading = defineComponent({
|
|
301
|
+
name: 'Heading',
|
|
302
|
+
title: 'Heading',
|
|
303
|
+
description: 'A heading.',
|
|
304
|
+
props: obj({ text: str() }, ['text']),
|
|
305
|
+
fallbackText: (props) => `*${s(props.text)}*`,
|
|
306
|
+
});
|
|
307
|
+
export const Text = defineComponent({
|
|
308
|
+
name: 'Text',
|
|
309
|
+
title: 'Text',
|
|
310
|
+
description: 'A paragraph of plain text (no markdown).',
|
|
311
|
+
props: obj({ text: str(), muted: { type: 'boolean' } }, ['text']),
|
|
312
|
+
fallbackText: (props) => s(props.text),
|
|
313
|
+
});
|
|
314
|
+
export const Badge = defineComponent({
|
|
315
|
+
name: 'Badge',
|
|
316
|
+
title: 'Badge',
|
|
317
|
+
description: 'A small label.',
|
|
318
|
+
props: obj({
|
|
319
|
+
text: str(),
|
|
320
|
+
tone: str(undefined, { enum: ['neutral', 'brand', 'success', 'warning', 'danger'] }),
|
|
321
|
+
}, ['text']),
|
|
322
|
+
fallbackText: (props) => `[${s(props.text)}]`,
|
|
323
|
+
});
|
|
324
|
+
export const Link = defineComponent({
|
|
325
|
+
name: 'Link',
|
|
326
|
+
title: 'Link',
|
|
327
|
+
description: 'A link to an http(s) URL.',
|
|
328
|
+
props: obj({ text: str(), url: str(undefined, { pattern: '^https?://' }) }, ['text', 'url']),
|
|
329
|
+
fallbackText: (props) => `<${s(props.url)}|${s(props.text || props.url)}>`,
|
|
330
|
+
});
|
|
331
|
+
export const Image = defineComponent({
|
|
332
|
+
name: 'Image',
|
|
333
|
+
title: 'Image',
|
|
334
|
+
description: 'An image from an https URL.',
|
|
335
|
+
props: obj({ url: str(undefined, { pattern: '^https://' }), alt: str() }, ['url']),
|
|
336
|
+
fallbackText: (props) => s(props.url),
|
|
337
|
+
});
|
|
338
|
+
/** Content components: data a model shows. */
|
|
339
|
+
export const BUILTIN_COMPONENTS = [
|
|
340
|
+
DataTable,
|
|
341
|
+
Chart,
|
|
342
|
+
KpiCards,
|
|
343
|
+
SourceCards,
|
|
344
|
+
Checklist,
|
|
345
|
+
Timeline,
|
|
346
|
+
CodeBlock,
|
|
347
|
+
Diff,
|
|
348
|
+
Callout,
|
|
349
|
+
];
|
|
350
|
+
/** Layout and text primitives, mostly for composing trees (`Stack`, `Card` take children). */
|
|
351
|
+
export const LAYOUT_COMPONENTS = [
|
|
352
|
+
Stack,
|
|
353
|
+
Card,
|
|
354
|
+
Heading,
|
|
355
|
+
Text,
|
|
356
|
+
Badge,
|
|
357
|
+
Link,
|
|
358
|
+
Image,
|
|
359
|
+
];
|
|
6
360
|
//# sourceMappingURL=builtins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtins.js","sourceRoot":"","sources":["../../../src/genui/builtins.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,4CAA4C,CAAC"}
|
|
1
|
+
{"version":3,"file":"builtins.js","sourceRoot":"","sources":["../../../src/genui/builtins.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAA4B,eAAe,EAAE,MAAM,cAAc,CAAC;AAMzE,MAAM,GAAG,GAAG,CAAC,WAAoB,EAAE,KAAK,GAAe,EAAE,EAAc,EAAE,CAAC,CAAC;IACzE,IAAI,EAAE,QAAQ;IACd,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,GAAG,KAAK;CACT,CAAC,CAAC;AACH,MAAM,GAAG,GAAG,CAAC,UAAsC,EAAE,QAAQ,GAAa,EAAE,EAAc,EAAE,CAAC,CAAC;IAC5F,IAAI,EAAE,QAAQ;IACd,UAAU;IACV,QAAQ;IACR,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC;AACH,MAAM,GAAG,GAAG,CAAC,KAAiB,EAAE,KAAK,GAAe,EAAE,EAAc,EAAE,CAAC,CAAC;IACtE,IAAI,EAAE,OAAO;IACb,KAAK;IACL,GAAG,KAAK;CACT,CAAC,CAAC;AACH,MAAM,IAAI,GAAe,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;AAC3E,MAAM,GAAG,GAAe,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;AAEvE,MAAM,CAAC,GAAG,CAAC,KA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