@adonis-agora/agent 0.61.0 → 0.62.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 +62 -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 +80 -13
- 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 +6 -2
- package/dist/src/action-proposal-service.d.ts.map +1 -1
- package/dist/src/action-proposal-service.js +20 -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/ag-ui/adapter.d.ts.map +1 -1
- package/dist/src/ag-ui/adapter.js +83 -11
- package/dist/src/ag-ui/adapter.js.map +1 -1
- package/dist/src/ag-ui/core/encoder.d.ts +105 -0
- package/dist/src/ag-ui/core/encoder.d.ts.map +1 -0
- package/dist/src/ag-ui/core/encoder.js +523 -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 +74 -0
- package/dist/src/ag-ui/core/input.d.ts.map +1 -0
- package/dist/src/ag-ui/core/input.js +228 -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 +27 -0
- package/dist/src/ag-ui/core/stream.d.ts.map +1 -0
- package/dist/src/ag-ui/core/stream.js +68 -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 +4 -5
- package/dist/src/ag-ui/frames.d.ts.map +1 -1
- package/dist/src/ag-ui/frames.js +8 -4
- 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 +11 -2
- package/dist/src/agent-service.d.ts.map +1 -1
- package/dist/src/agent-service.js +23 -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/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 +298 -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 +77 -0
- package/dist/src/genui/catalog.d.ts.map +1 -0
- package/dist/src/genui/catalog.js +88 -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 +35 -0
- package/dist/src/genui/text.d.ts.map +1 -0
- package/dist/src/genui/text.js +156 -0
- package/dist/src/genui/text.js.map +1 -0
- package/dist/src/genui/tools.d.ts +91 -0
- package/dist/src/genui/tools.d.ts.map +1 -0
- package/dist/src/genui/tools.js +292 -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 +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- 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 +245 -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 +85 -0
- package/dist/src/react/core/ag-ui-backend.d.ts.map +1 -0
- package/dist/src/react/core/ag-ui-backend.js +409 -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 +796 -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 +234 -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.map +1 -1
- package/dist/src/stores/lucid-schema.js +2 -0
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +3 -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 +123 -22
- package/skills/agent-governance/SKILL.md +12 -4
- package/skills/agent-personas-agents/SKILL.md +2 -1
- package/skills/agent-setup/SKILL.md +36 -13
- package/skills/agent-testing/SKILL.md +22 -0
- package/skills/agent-tools/SKILL.md +54 -9
- package/dist/src/ag-ui/proposal-decision.d.ts.map +0 -1
- package/dist/src/ag-ui/proposal-decision.js.map +0 -1
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { type DynamicToolUIPart, type ToolUIPart, type UIMessage } from 'ai';
|
|
2
|
+
import { type ElicitationInput } from '../../../elicitation-input.js';
|
|
3
|
+
import type { ToolConfirmation } from '../../../index.js';
|
|
4
|
+
import type { ApprovalTarget } from '../approvals/proposals.js';
|
|
5
|
+
import { type RawAnswer } from '../elicitation/answers.js';
|
|
6
|
+
import type { ToolCatalog } from '../presentation/phrasing.js';
|
|
7
|
+
import { type ToolActivityGroup, type ToolCallDescription } from '../presentation/tool-activity.js';
|
|
8
|
+
/** A tool UI part on a `UIMessage` — a static `tool-*` part or the `dynamic-tool` part. */
|
|
9
|
+
export type AnyToolUIPart = ToolUIPart | DynamicToolUIPart;
|
|
10
|
+
/**
|
|
11
|
+
* The AI SDK's chat status, plus `reconnecting`: a turn is in flight and its stream dropped, and the
|
|
12
|
+
* transport is re-attaching (`useAgentChat`). A busy status, like `streaming`.
|
|
13
|
+
*/
|
|
14
|
+
export type ChatStatus = 'ready' | 'submitted' | 'streaming' | 'reconnecting' | 'error';
|
|
15
|
+
/** Server-aggregated usage for an assistant turn. */
|
|
16
|
+
export interface MessageUsageInfo {
|
|
17
|
+
inputTokens: number;
|
|
18
|
+
outputTokens: number;
|
|
19
|
+
/**
|
|
20
|
+
* `null` when no price is on record for the model that ran the turn. Distinct from `0`, which is
|
|
21
|
+
* a turn that genuinely cost nothing — printing `$0` for an unpriced turn states a number the
|
|
22
|
+
* store never had.
|
|
23
|
+
*/
|
|
24
|
+
costUsd: number | null;
|
|
25
|
+
}
|
|
26
|
+
/** A run of contiguous prose. `isStreaming` is the PART's own state, not the message's. */
|
|
27
|
+
export interface TranscriptTextBlock {
|
|
28
|
+
kind: 'text';
|
|
29
|
+
key: string;
|
|
30
|
+
text: string;
|
|
31
|
+
isStreaming: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** One file on a message — an uploaded attachment, or one the model produced. */
|
|
34
|
+
export interface TranscriptFile {
|
|
35
|
+
/** Presigned or otherwise directly fetchable. Display-only: the model reads its own copy. */
|
|
36
|
+
url: string;
|
|
37
|
+
mediaType: string;
|
|
38
|
+
filename: string | null;
|
|
39
|
+
/** `image/*`, which a renderer can show inline rather than as a link. */
|
|
40
|
+
isImage: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** A run of contiguous files. Grouped so a renderer can lay several out as one strip. */
|
|
43
|
+
export interface TranscriptFilesBlock {
|
|
44
|
+
kind: 'files';
|
|
45
|
+
key: string;
|
|
46
|
+
files: TranscriptFile[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A run of contiguous reasoning. Carries its own disclosure state because a thread can hold many
|
|
50
|
+
* of them and each is toggled independently; `isOpen` defaults to `isStreaming` (thinking is worth
|
|
51
|
+
* watching live, worth folding away once answered) until `toggle` is called for that run.
|
|
52
|
+
*/
|
|
53
|
+
export interface TranscriptReasoningBlock {
|
|
54
|
+
kind: 'reasoning';
|
|
55
|
+
key: string;
|
|
56
|
+
text: string;
|
|
57
|
+
isStreaming: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* How long the model thought, in ms — the backend's measurement once the run closed (live) or as
|
|
60
|
+
* persisted (reloaded). `null` while it still streams, or when nothing was recorded: pair it with
|
|
61
|
+
* `useElapsed(block.isStreaming)` for a ticking label (`block.durationMs ?? elapsed`).
|
|
62
|
+
*/
|
|
63
|
+
durationMs: number | null;
|
|
64
|
+
isOpen: boolean;
|
|
65
|
+
toggle: (open?: boolean) => void;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A decision a run is waiting on a human for, and which one a parked call is currently sending.
|
|
69
|
+
*
|
|
70
|
+
* One call settles one way at a time, and WHICH one is what lets a surface report progress on the
|
|
71
|
+
* affordance the person pressed instead of on all of them.
|
|
72
|
+
*/
|
|
73
|
+
export type SettleAction = 'approve' | 'reject' | 'answer' | 'skip';
|
|
74
|
+
/** One such decision: whether it can be made, whether it is on its way, and how to send it. */
|
|
75
|
+
export interface TranscriptSettleState {
|
|
76
|
+
available: boolean;
|
|
77
|
+
/** True from the click until the run resumes and settles the call. */
|
|
78
|
+
isSubmitting: boolean;
|
|
79
|
+
run: () => void;
|
|
80
|
+
}
|
|
81
|
+
/** How an approval stands. */
|
|
82
|
+
export type TranscriptApprovalStatus = 'pending' | 'approved' | 'rejected' | 'expired' | 'superseded';
|
|
83
|
+
/**
|
|
84
|
+
* Who has to settle a parked call, until when, and — once it settled — how. From the stream's
|
|
85
|
+
* `approval-requested` / `approval-settled` frames, or the same parts a reloaded thread carries.
|
|
86
|
+
* `null` on a call whose runner never said (the call can still be awaiting approval).
|
|
87
|
+
*/
|
|
88
|
+
export interface TranscriptApproval {
|
|
89
|
+
target?: ApprovalTarget;
|
|
90
|
+
executionStatus?: 'queued' | 'executing' | 'succeeded' | 'failed' | null;
|
|
91
|
+
confirmation?: ToolConfirmation;
|
|
92
|
+
/** Open vocabulary the host defines: `'requester'`, `'admin'`, a role… */
|
|
93
|
+
approver: string;
|
|
94
|
+
/** ISO-8601; `null` when the request never lapses. Pair with `useApprovalCountdown`. */
|
|
95
|
+
expiresAt: string | null;
|
|
96
|
+
/** Why the call needs a person, when the runner said. */
|
|
97
|
+
reason: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* `pending` until a settlement arrives; then what it said. Falls back to the call's own state
|
|
100
|
+
* (denied → `rejected`, an output → `approved`) for a runner that streams no settlement.
|
|
101
|
+
*/
|
|
102
|
+
status: TranscriptApprovalStatus;
|
|
103
|
+
/** The approval also covers later calls of this tool in this thread. */
|
|
104
|
+
remember: boolean;
|
|
105
|
+
/** Opaque ref of who decided; `null` while pending, on an expiry, or when the runner did not say. */
|
|
106
|
+
decidedBy: string | null;
|
|
107
|
+
/** The surface the decision came through (`'web'`, `'slack'`, `'remembered'`, …). */
|
|
108
|
+
decidedVia: string | null;
|
|
109
|
+
/** What the person said when declining. */
|
|
110
|
+
decisionReason: string | null;
|
|
111
|
+
}
|
|
112
|
+
/** What an approval can carry beyond yes. */
|
|
113
|
+
export interface ApproveOptions {
|
|
114
|
+
/** Approve later calls of the same tool in the same thread without asking again. */
|
|
115
|
+
remember?: boolean;
|
|
116
|
+
}
|
|
117
|
+
/** One call in a tool run, with whatever human decision it is parked on. */
|
|
118
|
+
export interface TranscriptToolCall {
|
|
119
|
+
part: AnyToolUIPart;
|
|
120
|
+
toolCallId: string;
|
|
121
|
+
name: string;
|
|
122
|
+
/** `read` / `action` as the stream classified the call; `null` when the backend did not say. */
|
|
123
|
+
toolKind: string | null;
|
|
124
|
+
/** The call this one ran inside (a code-mode `execute`, a delegated agent); `null` for a top-level call. */
|
|
125
|
+
parentId: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* Calls nested under this one within the same block, in stream order. Always empty for a call
|
|
128
|
+
* nothing names as its parent.
|
|
129
|
+
*/
|
|
130
|
+
children: TranscriptToolCall[];
|
|
131
|
+
/** Who has to decide, when the runner said so. See {@link TranscriptApproval}. */
|
|
132
|
+
approval: TranscriptApproval | null;
|
|
133
|
+
/**
|
|
134
|
+
* How to talk about this call without naming it — status, phrase, label, icon, approval prompt,
|
|
135
|
+
* resolved result — from the server's presentation when `toolCatalog` was given, generic otherwise.
|
|
136
|
+
*/
|
|
137
|
+
description: ToolCallDescription;
|
|
138
|
+
/**
|
|
139
|
+
* Parked on a person. An `action` tool's input lands and its output never follows on its own —
|
|
140
|
+
* the loop waits for an approval between the two — so a settled-looking card that never settles
|
|
141
|
+
* IS the pending approval.
|
|
142
|
+
*/
|
|
143
|
+
isAwaitingApproval: boolean;
|
|
144
|
+
/** `run({ remember: true })` approves this tool for the rest of the thread. */
|
|
145
|
+
approve: TranscriptSettleState & {
|
|
146
|
+
run: (options?: ApproveOptions) => void;
|
|
147
|
+
};
|
|
148
|
+
reject: TranscriptSettleState;
|
|
149
|
+
/** A failed decision — the call is still parked, so the affordance stays live. */
|
|
150
|
+
error: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The server's machine-readable reason for {@link error}, when it gave one. `run_not_active`
|
|
153
|
+
* means the turn that asked has ended: nothing is waiting for the decision, and pressing again
|
|
154
|
+
* will be refused again — word it yourself and let the person send the message again.
|
|
155
|
+
*/
|
|
156
|
+
errorCode: string | null;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A run of CONSECUTIVE tool parts, grouped so a UI can collapse "5 tools ran" into one affordance.
|
|
160
|
+
* Any non-tool part between two tool parts ends the run — including the AI SDK's `step-start`
|
|
161
|
+
* markers, so tools from different steps never merge into one group.
|
|
162
|
+
*/
|
|
163
|
+
export interface TranscriptToolBlock {
|
|
164
|
+
kind: 'tools';
|
|
165
|
+
key: string;
|
|
166
|
+
parts: AnyToolUIPart[];
|
|
167
|
+
/** The same calls, each with its human-decision state. Same order as `parts`. */
|
|
168
|
+
calls: TranscriptToolCall[];
|
|
169
|
+
/**
|
|
170
|
+
* The same calls as a tree: every call whose parent is NOT in this block, each carrying its
|
|
171
|
+
* nested calls in `children`. Equal to `calls` when nothing is nested.
|
|
172
|
+
*/
|
|
173
|
+
roots: TranscriptToolCall[];
|
|
174
|
+
/**
|
|
175
|
+
* The run folded into activity groups ("Database query ×3"), over `roots`, keyed by each tool's
|
|
176
|
+
* presentation label (else its name). For another grouping, call `groupToolActivity` yourself.
|
|
177
|
+
*/
|
|
178
|
+
activity: ToolActivityGroup[];
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A component the server pushed into the message (the stream's `ui` frame, or a persisted
|
|
182
|
+
* `data-ui` part). Rendered by looking `component` up in the host's own registry.
|
|
183
|
+
*/
|
|
184
|
+
export interface TranscriptUiBlock {
|
|
185
|
+
kind: 'ui';
|
|
186
|
+
key: string;
|
|
187
|
+
/** The component's identity within the message. */
|
|
188
|
+
id: string;
|
|
189
|
+
component: string;
|
|
190
|
+
props: Record<string, unknown>;
|
|
191
|
+
/** Schema version of `props`; `null` when the server did not stamp one. */
|
|
192
|
+
version: number | null;
|
|
193
|
+
fallbackText?: string;
|
|
194
|
+
componentVersions?: Record<string, number>;
|
|
195
|
+
/** The tool call that pushed it (`ctx.emitUi`); `null` for a component pushed outside a tool. */
|
|
196
|
+
toolCallId: string | null;
|
|
197
|
+
}
|
|
198
|
+
/** One choice a question offers, with its live selection state. */
|
|
199
|
+
export interface TranscriptQuestionOption {
|
|
200
|
+
value: string;
|
|
201
|
+
label: string;
|
|
202
|
+
/** A single character the request suggested as a shortcut; `null` when it suggested none. */
|
|
203
|
+
hotkey: string | null;
|
|
204
|
+
isSelected: boolean;
|
|
205
|
+
/** Pre-picked by the agent — what an untouched question submits as. */
|
|
206
|
+
isDefault: boolean;
|
|
207
|
+
/** Single choice: replaces the selection. Multiple: adds or removes this value. */
|
|
208
|
+
select: () => void;
|
|
209
|
+
}
|
|
210
|
+
/** One question of a set, numbered against the whole. */
|
|
211
|
+
export interface TranscriptQuestion {
|
|
212
|
+
id: string;
|
|
213
|
+
prompt: string;
|
|
214
|
+
/** A line of help under the prompt; `null` when the request gave none. */
|
|
215
|
+
description: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* How the answer is typed — `{ type, placeholder?, required?, min?, max?, pattern? }` — or `null`
|
|
218
|
+
* for a plain pick from `options`. Render the control from `input.type`; `select` still picks
|
|
219
|
+
* from `options`.
|
|
220
|
+
*/
|
|
221
|
+
input: ElicitationInput | null;
|
|
222
|
+
multiple: boolean;
|
|
223
|
+
/** 1-based. The request carries every question up front, so "Question 1 of N" is honest. */
|
|
224
|
+
position: number;
|
|
225
|
+
options: TranscriptQuestionOption[];
|
|
226
|
+
selected: string[];
|
|
227
|
+
/**
|
|
228
|
+
* The user has not touched this question, so a submission leaves it out and the server applies
|
|
229
|
+
* the same defaults it showed. Distinct from "selected happens to equal the defaults": only the
|
|
230
|
+
* first is recorded as `defaulted` rather than as a choice the user made.
|
|
231
|
+
*/
|
|
232
|
+
isPristine: boolean;
|
|
233
|
+
/** The first selected value, or `''` — what a single text/number/date field shows. */
|
|
234
|
+
value: string;
|
|
235
|
+
/**
|
|
236
|
+
* Set a typed answer from whatever the control produced (a string, a number, a checkbox's
|
|
237
|
+
* boolean, a `Date`, a list); coerced to the question's canonical strings with `coerceAnswer`.
|
|
238
|
+
* `null`/`''` clears it. Does nothing once the set settled.
|
|
239
|
+
*/
|
|
240
|
+
setValue: (raw: RawAnswer) => void;
|
|
241
|
+
/**
|
|
242
|
+
* Why the current selection would be refused (the server's own rules — `validateAnswer`), or
|
|
243
|
+
* `null`. A pristine required question with no default reads `requires an answer`; show it once
|
|
244
|
+
* the user tried to submit, or right away — the model does not decide that for you.
|
|
245
|
+
*/
|
|
246
|
+
error: string | null;
|
|
247
|
+
}
|
|
248
|
+
/** How a question set settled, once it did. */
|
|
249
|
+
export interface TranscriptElicitationOutcome {
|
|
250
|
+
answers: Record<string, string[]>;
|
|
251
|
+
/** The user declined to answer and let the agent proceed on its own picks. */
|
|
252
|
+
skipped: boolean;
|
|
253
|
+
/** Questions filled from their own defaults rather than by the human. */
|
|
254
|
+
defaulted: string[];
|
|
255
|
+
/** The questions against the chosen labels, as the model read them back. */
|
|
256
|
+
summary: string | null;
|
|
257
|
+
/** Who answered (or skipped) — an approval's `decidedBy`. `null` when the run did not record it. */
|
|
258
|
+
answeredBy: string | null;
|
|
259
|
+
/** The surface it came through (`'web'`, `'slack'`, …) — an approval's `decidedVia`. */
|
|
260
|
+
answeredVia: string | null;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* A question set the run put to the user, parked until someone settles it — the intake an agent
|
|
264
|
+
* declares and the model's own `ask` produce the same block, because the loop streams the same
|
|
265
|
+
* frame for both.
|
|
266
|
+
*/
|
|
267
|
+
export interface TranscriptElicitationBlock {
|
|
268
|
+
kind: 'elicitation';
|
|
269
|
+
key: string;
|
|
270
|
+
/** The parked tool call — what `answer`/`skip` route by. */
|
|
271
|
+
toolCallId: string;
|
|
272
|
+
preamble: string | null;
|
|
273
|
+
questions: TranscriptQuestion[];
|
|
274
|
+
questionCount: number;
|
|
275
|
+
/** Still waiting on a human. */
|
|
276
|
+
isPending: boolean;
|
|
277
|
+
/** Every question's current selection is acceptable (no question has an `error`). */
|
|
278
|
+
isValid: boolean;
|
|
279
|
+
outcome: TranscriptElicitationOutcome | null;
|
|
280
|
+
/** A failed submission — the run is still parked, so the form stays live. */
|
|
281
|
+
error: string | null;
|
|
282
|
+
/** The server's machine-readable reason for {@link error} (`run_not_active`, …), when it gave one. */
|
|
283
|
+
errorCode: string | null;
|
|
284
|
+
answer: TranscriptSettleState;
|
|
285
|
+
skip: TranscriptSettleState;
|
|
286
|
+
}
|
|
287
|
+
/** One retrieved passage, as it rides a retrieval tool call's output. Mirrors core's `Passage`. */
|
|
288
|
+
export interface RetrievedPassage {
|
|
289
|
+
id: string;
|
|
290
|
+
text: string;
|
|
291
|
+
score: number;
|
|
292
|
+
/** Citation-facing origin — a document title, URL or row id. */
|
|
293
|
+
source?: string;
|
|
294
|
+
metadata?: Record<string, unknown>;
|
|
295
|
+
}
|
|
296
|
+
/** The passages of one origin, folded together so a citation line reads once per source. */
|
|
297
|
+
export interface TranscriptSource {
|
|
298
|
+
/** The `source` string the retriever stamped, falling back to the passage id when it stamped none. */
|
|
299
|
+
id: string;
|
|
300
|
+
label: string;
|
|
301
|
+
passageCount: number;
|
|
302
|
+
/** Highest relevance among this source's passages; the scale is the retriever's. */
|
|
303
|
+
topScore: number;
|
|
304
|
+
passages: RetrievedPassage[];
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* The provenance behind an answer: a run of CONSECUTIVE retrieval tool parts, aggregated by origin.
|
|
308
|
+
* Detection is structural — a tool output shaped `{ passages: [{ id, text, ... }] }` — because the
|
|
309
|
+
* tool's NAME is not fixed: inject-mode retrieval persists as `retrieve`, and `createRetrievalTool`
|
|
310
|
+
* lets the host rename `search_knowledge` to anything.
|
|
311
|
+
*/
|
|
312
|
+
export interface TranscriptSourcesBlock {
|
|
313
|
+
kind: 'sources';
|
|
314
|
+
key: string;
|
|
315
|
+
/** What was searched, when the tool call recorded a `{ query }` input. */
|
|
316
|
+
query: string | null;
|
|
317
|
+
sources: TranscriptSource[];
|
|
318
|
+
passageCount: number;
|
|
319
|
+
}
|
|
320
|
+
export type TranscriptBlock = TranscriptTextBlock | TranscriptFilesBlock | TranscriptReasoningBlock | TranscriptToolBlock | TranscriptSourcesBlock | TranscriptElicitationBlock | TranscriptUiBlock;
|
|
321
|
+
/** Where a question set's selection state is held, and where its settlement is sent. */
|
|
322
|
+
export interface ElicitationBlockOptions {
|
|
323
|
+
/** The values a question is showing, or `undefined` while the user has not touched it. */
|
|
324
|
+
picked: (toolCallId: string, questionId: string) => string[] | undefined;
|
|
325
|
+
pick: (toolCallId: string, questionId: string, values: string[]) => void;
|
|
326
|
+
canAnswer: boolean;
|
|
327
|
+
canSkip: boolean;
|
|
328
|
+
answer: (toolCallId: string) => void;
|
|
329
|
+
skip: (toolCallId: string) => void;
|
|
330
|
+
/** Which decision this call is sending, or `null` for none. */
|
|
331
|
+
submitting: (toolCallId: string) => SettleAction | null;
|
|
332
|
+
errorOf: (toolCallId: string) => string | null;
|
|
333
|
+
/** The `code` of the error `errorOf` reports, when the server sent one. */
|
|
334
|
+
errorCodeOf?: (toolCallId: string) => string | null;
|
|
335
|
+
}
|
|
336
|
+
/** Where an approval decision is sent, and what the last one did. */
|
|
337
|
+
export interface ApprovalBlockOptions {
|
|
338
|
+
canApprove: boolean;
|
|
339
|
+
canReject: boolean;
|
|
340
|
+
approve: (toolCallId: string, options?: ApproveOptions, target?: ApprovalTarget) => void;
|
|
341
|
+
reject: (toolCallId: string, target?: ApprovalTarget) => void;
|
|
342
|
+
/** Which decision this call is sending, or `null` for none. */
|
|
343
|
+
submitting: (toolCallId: string) => SettleAction | null;
|
|
344
|
+
errorOf: (toolCallId: string) => string | null;
|
|
345
|
+
/** The `code` of the error `errorOf` reports, when the server sent one. */
|
|
346
|
+
errorCodeOf?: (toolCallId: string) => string | null;
|
|
347
|
+
}
|
|
348
|
+
export interface BuildBlocksOptions {
|
|
349
|
+
/** Disclosure lookup for a reasoning run; `isStreaming` is the fallback when untouched. */
|
|
350
|
+
isReasoningOpen: (key: string, isStreaming: boolean) => boolean;
|
|
351
|
+
toggleReasoning: (key: string, open?: boolean) => void;
|
|
352
|
+
/**
|
|
353
|
+
* Lift retrieval tool parts out of the tool run into a `sources` block. Off by default, so a
|
|
354
|
+
* renderer wired to draw tool cards keeps receiving them as the tool calls they are.
|
|
355
|
+
*/
|
|
356
|
+
sources?: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Lift a question set out of the tool run into an `elicitation` block. Omitted → it stays a tool
|
|
359
|
+
* card, which is all a host that has nowhere to send an answer could render anyway.
|
|
360
|
+
*/
|
|
361
|
+
elicitation?: ElicitationBlockOptions;
|
|
362
|
+
/** Wire approve/reject onto the calls parked on a human. Omitted → they are reported, not actionable. */
|
|
363
|
+
approval?: ApprovalBlockOptions;
|
|
364
|
+
/** Server-declared tool presentations (`useToolCatalog`), for each call's `description`. */
|
|
365
|
+
toolCatalog?: ToolCatalog;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Walk a message's parts into renderable blocks, buffering consecutive tool parts into one run and
|
|
369
|
+
* consecutive files into one strip. A `data-ui` part becomes a `ui` block. A
|
|
370
|
+
* `data-approval-requested` part is metadata about a call — it is folded into that call's
|
|
371
|
+
* `approval` and takes no position of its own. Other `data-*` parts are dropped rather than guessed
|
|
372
|
+
* at, but they still terminate a tool run — their position in the transcript is meaningful even
|
|
373
|
+
* when their content is not modelled here.
|
|
374
|
+
*/
|
|
375
|
+
export declare function buildTranscriptBlocks(message: UIMessage, options: BuildBlocksOptions): TranscriptBlock[];
|
|
376
|
+
/** The message's prose, joined for the clipboard. Reasoning is excluded — it is not the answer. */
|
|
377
|
+
export declare function extractMessageText(parts: UIMessage['parts'] | undefined): string;
|
|
378
|
+
export interface UsageSummary extends MessageUsageInfo {
|
|
379
|
+
totalTokens: number;
|
|
380
|
+
/** `$0`, `$0.0123`, `$0.012`, `$1.23` — precision follows magnitude so sub-cent turns stay legible. */
|
|
381
|
+
costLabel: string;
|
|
382
|
+
tokensLabel: string;
|
|
383
|
+
}
|
|
384
|
+
export declare function describeUsage(usage: MessageUsageInfo): UsageSummary;
|
|
385
|
+
export interface TimestampInfo {
|
|
386
|
+
iso: string;
|
|
387
|
+
date: Date;
|
|
388
|
+
/** "just now" / "5 min. ago" / "Mar 3" — see {@link formatRelativeTime}. */
|
|
389
|
+
relative: string;
|
|
390
|
+
absolute: string;
|
|
391
|
+
}
|
|
392
|
+
/** `null` for an unparseable stamp, so a bad `created_at` renders nothing instead of "Invalid Date". */
|
|
393
|
+
export declare function describeTimestamp(createdAt: string | null | undefined): TimestampInfo | null;
|
|
394
|
+
/**
|
|
395
|
+
* "just now" within ±10s (server `created_at` can land a few ms ahead of the client clock), a
|
|
396
|
+
* relative phrase up to a week, then a calendar date. Uses Intl.RelativeTimeFormat — no date-fns.
|
|
397
|
+
*/
|
|
398
|
+
export declare function formatRelativeTime(date: Date): string;
|
|
399
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/transcript/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAQtB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,IAAI,CAAC;AACZ,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,mBA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