eve 0.75.0 → 0.76.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 +54 -0
- package/dist/src/_virtual/_rolldown/runtime.js +1 -1
- package/dist/src/acp/adapter.js +1 -1
- package/dist/src/channel/task-card.js +1 -1
- package/dist/src/channel/tool-eligibility.d.ts +1 -2
- package/dist/src/chunks/{use-eve-agent-B2Kne9z6.js → use-eve-agent-D2V9UhLt.js} +68 -10
- package/dist/src/chunks/{use-eve-agent-DK_T88EP.js → use-eve-agent-QmriPA-w.js} +68 -10
- package/dist/src/cli/commands/deploy.js +1 -1
- package/dist/src/cli/commands/link.d.ts +2 -1
- package/dist/src/cli/commands/link.js +1 -1
- package/dist/src/cli/commands/registry.js +1 -1
- package/dist/src/cli/commands/vercel-non-interactive.d.ts +6 -4
- package/dist/src/cli/commands/vercel-non-interactive.js +1 -1
- package/dist/src/cli/dev/environment.d.ts +0 -6
- package/dist/src/cli/dev/environment.js +1 -1
- package/dist/src/cli/dev/tui/conversation-view.js +1 -1
- package/dist/src/cli/dev/tui/runner.js +1 -1
- package/dist/src/cli/dev/tui/tool-presentation.js +1 -1
- package/dist/src/cli/dev/tui/transcript.js +1 -1
- package/dist/src/client/message-action-parts.d.ts +3 -0
- package/dist/src/client/message-action-parts.js +1 -1
- package/dist/src/client/message-reducer-types.d.ts +6 -1
- package/dist/src/client/message-reducer.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +9 -8
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/@vercel/queue/index.d.ts +1066 -0
- package/dist/src/compiled/@vercel/queue/index.js +47 -0
- package/dist/src/compiled/@workflow/core/global.d.ts +10 -0
- package/dist/src/compiled/@workflow/core/index.js +1 -1
- package/dist/src/compiled/@workflow/core/private.d.ts +11 -0
- package/dist/src/compiled/@workflow/core/private.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +36 -8
- package/dist/src/compiled/@workflow/core/runtime/helpers.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/lifecycle-hooks.d.ts +10 -6
- package/dist/src/compiled/@workflow/core/runtime/out-of-band-observation.d.ts +159 -0
- package/dist/src/compiled/@workflow/core/runtime/vm-mode.d.ts +28 -4
- package/dist/src/compiled/@workflow/core/runtime.js +4 -4
- package/dist/src/compiled/@workflow/core/serialization.js +1 -1
- package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/workflow.js +1 -1
- package/dist/src/compiled/@workflow/world-local/index.js +5 -5
- package/dist/src/compiled/@workflow/world-vercel/index.js +4 -4
- package/dist/src/compiled/_chunks/workflow/{attribute-changes-CSqvJx6j.js → attribute-changes-BW-kbMMn.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/dist-CyBgVS7g.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{helpers-BXCuoPUb.js → helpers-DlLD3ov_.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/private-tQUuwBoQ.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{resume-hook-CvENCrxc.js → resume-hook-DMsV_b4n.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{run-8pLWuR2U.js → run-DzdAqdb1.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{serialization-vDozzDhh.js → serialization-DPdYS_w2.js} +2 -2
- package/dist/src/compiled/_chunks/workflow/sleep-BY6leHh8.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{token-BKeK6DmC.js → token-D5ugC3PI.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{token-util-CddTZ_ef.js → token-util-Bla5Z0G9.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/undici-D-ILjOKD.js +95 -0
- package/dist/src/compiled/_chunks/workflow/{wait-until-A344L2AG.js → wait-until-xbRRDuUf.js} +1 -1
- package/dist/src/compiler/connection-ownership.d.ts +6 -0
- package/dist/src/compiler/connection-ownership.js +1 -0
- package/dist/src/compiler/default-tool-policy.d.ts +0 -3
- package/dist/src/compiler/default-tool-policy.js +1 -1
- package/dist/src/compiler/extension-compatibility.d.ts +21 -20
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.d.ts +9 -6
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/normalize-connection.js +1 -1
- package/dist/src/compiler/normalize-manifest.js +1 -1
- package/dist/src/compiler/normalize-skill.d.ts +5 -0
- package/dist/src/compiler/normalize-skill.js +1 -1
- package/dist/src/compiler/normalize-subagent.d.ts +2 -1
- package/dist/src/compiler/normalize-subagent.js +1 -1
- package/dist/src/compiler/normalize-tool.js +1 -1
- package/dist/src/compiler/remote-agent-node.d.ts +2 -1
- package/dist/src/compiler/remote-agent-node.js +1 -1
- package/dist/src/connections/ownership.d.ts +18 -0
- package/dist/src/connections/ownership.js +1 -0
- package/dist/src/context/build-dynamic-tools.d.ts +3 -9
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/dynamic-connection-lifecycle.js +1 -1
- package/dist/src/context/dynamic-skill-lifecycle.d.ts +2 -11
- package/dist/src/context/dynamic-skill-lifecycle.js +1 -1
- package/dist/src/context/dynamic-subagent-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-metadata.d.ts +1 -0
- package/dist/src/context/keys.d.ts +5 -4
- package/dist/src/context/memory-tools.js +1 -1
- package/dist/src/context/schedule-collection-tools.js +1 -1
- package/dist/src/discover/grammar.d.ts +11 -0
- package/dist/src/discover/grammar.js +1 -1
- package/dist/src/discover/manifest.d.ts +1 -0
- package/dist/src/discover/manifest.js +1 -1
- package/dist/src/discover/skills.d.ts +1 -0
- package/dist/src/discover/skills.js +1 -1
- package/dist/src/dynamic/definition.d.ts +7 -5
- package/dist/src/evals/assertions/collector.d.ts +4 -0
- package/dist/src/evals/assertions/collector.js +1 -1
- package/dist/src/evals/assertions/run.d.ts +2 -3
- package/dist/src/evals/assertions/run.js +2 -2
- package/dist/src/evals/assertions/scoped.js +1 -1
- package/dist/src/evals/index.d.ts +1 -1
- package/dist/src/evals/match.d.ts +9 -6
- package/dist/src/evals/reported-tool-name.d.ts +9 -0
- package/dist/src/evals/reported-tool-name.js +1 -0
- package/dist/src/evals/runner/derive-run-facts.d.ts +3 -3
- package/dist/src/evals/runner/derive-run-facts.js +1 -1
- package/dist/src/evals/runner/execute-task.js +1 -1
- package/dist/src/evals/runner/reporters/braintrust.js +1 -1
- package/dist/src/evals/runner/reporters/datadog-runtime-trace-links.d.ts +11 -0
- package/dist/src/evals/runner/reporters/datadog-runtime-trace-links.js +1 -0
- package/dist/src/evals/runner/reporters/datadog.js +2 -2
- package/dist/src/evals/session.js +2 -2
- package/dist/src/evals/target.d.ts +7 -0
- package/dist/src/evals/target.js +1 -1
- package/dist/src/evals/types.d.ts +17 -1
- package/dist/src/eve-channel/request.js +1 -1
- package/dist/src/execution/agent-sessions/remote.js +1 -1
- package/dist/src/execution/catalog/connection-auth.d.ts +41 -0
- package/dist/src/execution/catalog/connection-auth.js +1 -0
- package/dist/src/execution/catalog/connection-entry.d.ts +16 -0
- package/dist/src/execution/catalog/connection-entry.js +1 -0
- package/dist/src/execution/catalog/listing.d.ts +9 -0
- package/dist/src/execution/catalog/listing.js +3 -0
- package/dist/src/execution/catalog/rank.d.ts +44 -0
- package/dist/src/execution/catalog/rank.js +1 -0
- package/dist/src/execution/catalog/search.d.ts +28 -0
- package/dist/src/execution/catalog/search.js +1 -0
- package/dist/src/execution/catalog/signatures.d.ts +11 -0
- package/dist/src/execution/catalog/signatures.js +1 -0
- package/dist/src/execution/catalog/skills.d.ts +24 -0
- package/dist/src/execution/catalog/skills.js +1 -0
- package/dist/src/execution/catalog/step-catalog.d.ts +51 -0
- package/dist/src/execution/catalog/step-catalog.js +1 -0
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/dynamic-connections.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/invoke-tool.js +1 -1
- package/dist/src/execution/ndjson-stream.d.ts +6 -6
- package/dist/src/execution/ndjson-stream.js +3 -3
- package/dist/src/execution/node-step.js +1 -1
- package/dist/src/execution/session/active-turn.d.ts +1 -1
- package/dist/src/execution/session/pending-turn-state.js +1 -1
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn.d.ts +5 -5
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/session.js +1 -1
- package/dist/src/execution/skills/instructions.d.ts +20 -10
- package/dist/src/execution/skills/instructions.js +2 -2
- package/dist/src/execution/tasks/calls.d.ts +6 -5
- package/dist/src/execution/tasks/calls.js +1 -1
- package/dist/src/execution/tasks/model-step.d.ts +10 -10
- package/dist/src/execution/tasks/model-step.js +1 -1
- package/dist/src/execution/tasks/render.d.ts +3 -3
- package/dist/src/execution/tasks/render.js +3 -3
- package/dist/src/execution/tasks/session.d.ts +2 -1
- package/dist/src/execution/tasks/table.d.ts +1 -1
- package/dist/src/execution/tasks/tool-entry-point.d.ts +1 -1
- package/dist/src/execution/tool-auth.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/execution/tools/workflow/harness-definition.js +1 -1
- package/dist/src/extensions/code/extension/extension.d.ts +4 -18
- package/dist/src/extensions/code/extension/instructions/github.d.ts +3 -0
- package/dist/src/extensions/code/extension/instructions/github.js +1 -0
- package/dist/src/extensions/code/extension/instructions.md +1 -13
- package/dist/src/extensions/code/extension/lib/diagnostics.d.ts +4 -2
- package/dist/src/extensions/code/extension/lib/diagnostics.js +3 -3
- package/dist/src/extensions/code/extension/lib/github-compat.d.ts +28 -0
- package/dist/src/extensions/code/extension/lib/github-compat.js +1 -0
- package/dist/src/extensions/code/extension/lib/grep-search.d.ts +3 -13
- package/dist/src/extensions/code/extension/lib/grep-search.js +2 -2
- package/dist/src/extensions/code/extension/lib/patch.d.ts +8 -2
- package/dist/src/extensions/code/extension/lib/patch.js +4 -4
- package/dist/src/extensions/code/extension/lib/repository-root.d.ts +3 -4
- package/dist/src/extensions/code/extension/lib/repository-root.js +1 -1
- package/dist/src/extensions/code/extension/lib/sandbox.d.ts +2 -1
- package/dist/src/extensions/code/extension/lib/sandbox.js +1 -1
- package/dist/src/extensions/code/extension/lib/tooling.d.ts +4 -4
- package/dist/src/extensions/code/extension/lib/tooling.js +7 -7
- package/dist/src/extensions/code/extension/lib/workspace-root.d.ts +31 -0
- package/dist/src/extensions/code/extension/lib/workspace-root.js +1 -0
- package/dist/src/extensions/code/extension/skills/pr.d.ts +6 -0
- package/dist/src/extensions/code/extension/skills/pr.js +1 -0
- package/dist/src/extensions/code/extension/tools/apply_patch.d.ts +2 -2
- package/dist/src/extensions/code/extension/tools/apply_patch.js +2 -2
- package/dist/src/extensions/code/extension/tools/gh.d.ts +4 -3
- package/dist/src/extensions/code/extension/tools/gh.js +1 -1
- package/dist/src/extensions/code/extension/tools/grep.js +1 -1
- package/dist/src/extensions/code/tools.d.ts +2 -1
- package/dist/src/extensions/code/tools.js +1 -1
- package/dist/src/extensions/git/extension/extension.d.ts +12 -0
- package/dist/src/extensions/git/extension/extension.js +1 -0
- package/dist/src/extensions/git/extension/instructions/github.d.ts +2 -0
- package/dist/src/extensions/git/extension/instructions/github.js +1 -0
- package/dist/src/extensions/git/extension/lib/gh-tool.d.ts +29 -0
- package/dist/src/extensions/git/extension/lib/gh-tool.js +1 -0
- package/dist/src/extensions/git/extension/lib/github-guidance.d.ts +3 -0
- package/dist/src/extensions/git/extension/lib/github-guidance.js +49 -0
- package/dist/src/extensions/{code → git}/extension/lib/github-shell.d.ts +1 -1
- package/dist/src/extensions/git/extension/lib/github-shell.js +1 -0
- package/dist/src/extensions/git/extension/lib/repository-root.d.ts +5 -0
- package/dist/src/extensions/git/extension/lib/repository-root.js +1 -0
- package/dist/src/extensions/git/extension/lib/sandbox.d.ts +6 -0
- package/dist/src/extensions/git/extension/lib/sandbox.js +1 -0
- package/dist/src/extensions/git/extension/lib/shell.d.ts +1 -0
- package/dist/src/extensions/git/extension/lib/shell.js +1 -0
- package/dist/src/extensions/git/extension/lib/tooling.d.ts +4 -0
- package/dist/src/extensions/git/extension/lib/tooling.js +1 -0
- package/dist/src/extensions/git/extension/skills/pr.d.ts +5 -0
- package/dist/src/extensions/git/extension/skills/pr.js +1 -0
- package/dist/src/extensions/git/extension/tools/gh.d.ts +28 -0
- package/dist/src/extensions/git/extension/tools/gh.js +1 -0
- package/dist/src/extensions/git/tools.d.ts +27 -0
- package/dist/src/extensions/git/tools.js +1 -0
- package/dist/src/framework/sources/registry.js +1 -1
- package/dist/src/harness/action-presentation.d.ts +2 -2
- package/dist/src/harness/action-result-helpers.d.ts +10 -2
- package/dist/src/harness/action-result-helpers.js +1 -1
- package/dist/src/harness/announcements.d.ts +2 -8
- package/dist/src/harness/announcements.js +1 -1
- package/dist/src/harness/compaction/engine.d.ts +8 -19
- package/dist/src/harness/compaction/engine.js +1 -1
- package/dist/src/harness/compaction/step.d.ts +7 -1
- package/dist/src/harness/compaction/step.js +1 -1
- package/dist/src/harness/coordination.d.ts +11 -11
- package/dist/src/harness/coordination.js +1 -1
- package/dist/src/harness/current-messages.d.ts +1 -5
- package/dist/src/harness/current-messages.js +1 -1
- package/dist/src/harness/emission.d.ts +2 -2
- package/dist/src/harness/emission.js +1 -1
- package/dist/src/harness/execute-call.d.ts +48 -0
- package/dist/src/harness/execute-call.js +1 -0
- package/dist/src/harness/execute-tool.d.ts +3 -1
- package/dist/src/harness/final-output.d.ts +2 -6
- package/dist/src/harness/final-output.js +1 -1
- package/dist/src/harness/hitl/approvals.d.ts +5 -0
- package/dist/src/harness/hitl/approvals.js +1 -1
- package/dist/src/harness/hitl/approved-calls.d.ts +3 -2
- package/dist/src/harness/hitl/approved-calls.js +1 -1
- package/dist/src/harness/hitl/candidates.d.ts +13 -2
- package/dist/src/harness/hitl/candidates.js +1 -1
- package/dist/src/harness/hitl/coordinator.d.ts +3 -3
- package/dist/src/harness/hitl/coordinator.js +1 -1
- package/dist/src/harness/hitl/index.d.ts +6 -4
- package/dist/src/harness/hitl/index.js +1 -1
- package/dist/src/harness/hitl/intake.d.ts +3 -3
- package/dist/src/harness/hitl/intake.js +1 -1
- package/dist/src/harness/input-extraction.d.ts +4 -1
- package/dist/src/harness/input-extraction.js +1 -1
- package/dist/src/harness/input-request-resolution.d.ts +15 -0
- package/dist/src/harness/input-request-resolution.js +1 -1
- package/dist/src/harness/model-call/call.d.ts +5 -8
- package/dist/src/harness/model-call/call.js +1 -1
- package/dist/src/harness/model-call/errors.js +1 -1
- package/dist/src/harness/model-call/model.d.ts +4 -5
- package/dist/src/harness/model-call/model.js +1 -1
- package/dist/src/harness/model-call/request.d.ts +4 -4
- package/dist/src/harness/model-call/request.js +1 -1
- package/dist/src/harness/model-call/response.d.ts +2 -1
- package/dist/src/harness/model-call/response.js +1 -1
- package/dist/src/harness/model-call/retry.d.ts +1 -1
- package/dist/src/harness/model-call/retry.js +1 -1
- package/dist/src/harness/model-call/run.d.ts +5 -3
- package/dist/src/harness/model-call/run.js +1 -1
- package/dist/src/harness/model-call/tools.d.ts +14 -24
- package/dist/src/harness/model-call/tools.js +1 -1
- package/dist/src/harness/model-call/usage.js +1 -1
- package/dist/src/harness/model-profile.d.ts +28 -0
- package/dist/src/harness/model-profile.js +1 -0
- package/dist/src/harness/prompt-cache.d.ts +5 -53
- package/dist/src/harness/prompt-cache.js +1 -1
- package/dist/src/harness/provider-safety.d.ts +3 -5
- package/dist/src/harness/provider-safety.js +1 -1
- package/dist/src/harness/provider-tools.d.ts +7 -14
- package/dist/src/harness/provider-tools.js +1 -1
- package/dist/src/harness/session-machine/commit.js +1 -1
- package/dist/src/harness/session-machine/transitions.d.ts +5 -2
- package/dist/src/harness/session-machine/transitions.js +1 -1
- package/dist/src/harness/step/after-model.js +1 -1
- package/dist/src/harness/step-hooks.d.ts +6 -9
- package/dist/src/harness/step-hooks.js +1 -1
- package/dist/src/harness/tool-call-input-errors.d.ts +2 -2
- package/dist/src/harness/tool-call-io.d.ts +3 -0
- package/dist/src/harness/tool-call-io.js +1 -1
- package/dist/src/harness/tools.d.ts +24 -22
- package/dist/src/harness/tools.js +1 -1
- package/dist/src/harness/turn-tag-state.d.ts +12 -0
- package/dist/src/harness/turn-tag-state.js +1 -1
- package/dist/src/harness/types.d.ts +14 -0
- package/dist/src/instrumentation/lifecycle.d.ts +0 -1
- package/dist/src/instrumentation/native-events.js +1 -1
- package/dist/src/instrumentation/runtime.d.ts +2 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/core.js +1 -1
- package/dist/src/internal/authored-definition/schedule-collection.js +1 -1
- package/dist/src/internal/authored-definition/schema-backed.d.ts +2 -2
- package/dist/src/internal/authored-definition/schema-backed.js +1 -1
- package/dist/src/internal/authored-module.d.ts +2 -1
- package/dist/src/internal/authored-module.js +1 -1
- package/dist/src/internal/gateway.d.ts +0 -13
- package/dist/src/internal/gateway.js +1 -1
- package/dist/src/internal/helpers/markdown.js +1 -1
- package/dist/src/internal/mcp/skills.js +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
- package/dist/src/internal/nitro/host/dev-host-fingerprint.js +1 -1
- package/dist/src/internal/nitro/host/local-schedules-runtime-plugin.d.ts +5 -0
- package/dist/src/internal/nitro/host/local-schedules-runtime-plugin.js +1 -0
- package/dist/src/internal/nitro/routes/schedule-collection-consumer.d.ts +6 -0
- package/dist/src/internal/nitro/routes/schedule-collection-consumer.js +1 -1
- package/dist/src/internal/schedules/consumer-route.d.ts +2 -0
- package/dist/src/internal/schedules/consumer-route.js +1 -1
- package/dist/src/internal/schedules/dev-environment.d.ts +2 -0
- package/dist/src/internal/schedules/dev-environment.js +1 -0
- package/dist/src/internal/vercel-agent-summary.d.ts +2 -2
- package/dist/src/internal/workflow/vercel-world-defaults.d.ts +1 -1
- package/dist/src/internal/workflow/vercel-world-defaults.js +1 -1
- package/dist/src/protocol/catalog-tools.d.ts +12 -0
- package/dist/src/protocol/catalog-tools.js +1 -0
- package/dist/src/protocol/message-version.js +1 -1
- package/dist/src/protocol/message.d.ts +1 -1
- package/dist/src/protocol/remote-agent-protocol.d.ts +2 -0
- package/dist/src/protocol/remote-agent-protocol.js +1 -1
- package/dist/src/protocol/reply-tool.d.ts +2 -0
- package/dist/src/protocol/reply-tool.js +1 -0
- package/dist/src/protocol/runtime-tools.d.ts +6 -0
- package/dist/src/protocol/runtime-tools.js +1 -0
- package/dist/src/protocol/session-projection.js +1 -1
- package/dist/src/protocol/task-tools.d.ts +4 -4
- package/dist/src/protocol/task-tools.js +1 -1
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +1 -1
- package/dist/src/public/channels/linear/defaults.js +2 -2
- package/dist/src/public/channels/slack/action-status.d.ts +0 -9
- package/dist/src/public/channels/slack/action-status.js +1 -1
- package/dist/src/public/channels/slack/defaults.js +2 -2
- package/dist/src/public/channels/slack/task-card.d.ts +1 -1
- package/dist/src/public/definitions/connections/mcp.d.ts +4 -4
- package/dist/src/public/definitions/connections/openapi.d.ts +6 -7
- package/dist/src/public/definitions/remote-agent.d.ts +6 -3
- package/dist/src/public/definitions/workspace-agent.d.ts +6 -3
- package/dist/src/public/experimental/schedules/index.d.ts +1 -1
- package/dist/src/public/schedules/providers/in-memory.js +1 -1
- package/dist/src/public/schedules/providers/vercel.js +1 -1
- package/dist/src/public/schedules/subscription.d.ts +36 -16
- package/dist/src/public/tools/web-search.d.ts +1 -1
- package/dist/src/runtime/agent/bootstrap.d.ts +2 -1
- package/dist/src/runtime/agent/bootstrap.js +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.js +2 -2
- package/dist/src/runtime/agent/mock-model-fixtures.js +2 -2
- package/dist/src/runtime/agent/mock-model-skill-selection.d.ts +2 -0
- package/dist/src/runtime/agent/mock-model-skill-selection.js +2 -2
- package/dist/src/runtime/agent/mock-structured-output.d.ts +1 -1
- package/dist/src/runtime/connections/mcp-client.js +1 -1
- package/dist/src/runtime/connections/registry.js +1 -1
- package/dist/src/runtime/connections/scoped-authorization.js +1 -1
- package/dist/src/runtime/connections/tool-result.d.ts +2 -2
- package/dist/src/runtime/resolve-agent-graph.js +1 -1
- package/dist/src/runtime/resolve-tool.js +1 -1
- package/dist/src/runtime/schedules/collection-client.d.ts +12 -3
- package/dist/src/runtime/schedules/collection-client.js +1 -1
- package/dist/src/runtime/subagents/dynamic-agent-config.d.ts +2 -2
- package/dist/src/runtime/subagents/dynamic-remote-agent-config.d.ts +2 -1
- package/dist/src/runtime/subagents/dynamic-remote-agent-config.js +1 -1
- package/dist/src/runtime/subagents/registry.d.ts +2 -1
- package/dist/src/runtime/subagents/registry.js +1 -1
- package/dist/src/runtime/tools/registry.d.ts +2 -0
- package/dist/src/runtime/tools/registry.js +1 -1
- package/dist/src/runtime/types.d.ts +3 -3
- package/dist/src/setup/connection-connector.js +1 -2
- package/dist/src/setup/index.d.ts +1 -1
- package/dist/src/setup/index.js +1 -1
- package/dist/src/setup/integrations/slack/setup.d.ts +23 -3
- package/dist/src/setup/integrations/slack/setup.js +1 -1
- package/dist/src/setup/primitives/process-output.d.ts +5 -0
- package/dist/src/setup/primitives/process-output.js +2 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/setup/scaffold/create/web-template.d.ts +3 -2
- package/dist/src/setup/scaffold/create/web-template.js +384 -412
- package/dist/src/setup/scaffold/update/update-slack-channel.d.ts +17 -0
- package/dist/src/setup/scaffold/update/update-slack-channel.js +1 -1
- package/dist/src/setup/slack-connect-create.d.ts +10 -2
- package/dist/src/setup/slack-connect-create.js +1 -1
- package/dist/src/setup/slack-connect-lifecycle.d.ts +92 -44
- package/dist/src/setup/slack-connect-lifecycle.js +1 -1
- package/dist/src/setup/slack-connect.d.ts +30 -11
- package/dist/src/setup/slack-connect.js +1 -1
- package/dist/src/setup/slack-setup-plan.d.ts +72 -0
- package/dist/src/setup/slack-setup-plan.js +1 -0
- package/dist/src/setup/slackbot.d.ts +75 -35
- package/dist/src/setup/slackbot.js +2 -1
- package/dist/src/setup/vercel-project.d.ts +1 -1
- package/dist/src/setup/vercel-project.js +0 -0
- package/dist/src/shared/action-label.d.ts +10 -0
- package/dist/src/shared/action-label.js +1 -0
- package/dist/src/shared/action-request-name.d.ts +3 -1
- package/dist/src/shared/action-request-name.js +1 -1
- package/dist/src/shared/action-types.d.ts +7 -8
- package/dist/src/shared/action-types.js +1 -1
- package/dist/src/shared/agent-definition.d.ts +11 -3
- package/dist/src/shared/development-env-files.d.ts +4 -0
- package/dist/src/shared/development-env-files.js +1 -0
- package/dist/src/shared/input.d.ts +0 -1
- package/dist/src/shared/map-with-concurrency.d.ts +2 -0
- package/dist/src/shared/map-with-concurrency.js +1 -0
- package/dist/src/shared/skill-definition.d.ts +6 -0
- package/dist/src/shared/skill-package.d.ts +1 -0
- package/dist/src/shared/skill-package.js +1 -1
- package/dist/src/shared/web-search.d.ts +15 -2
- package/dist/src/shared/web-search.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tool-stubs/execute.d.ts +0 -3
- package/dist/src/tool-stubs/execute.js +1 -1
- package/dist/src/tool-stubs/rules.js +1 -1
- package/dist/src/tool-stubs/validate-targets.js +1 -1
- package/dist/src/tools/behavior.d.ts +3 -6
- package/dist/src/tools/definition.d.ts +5 -0
- package/dist/src/tools/dynamic.d.ts +5 -2
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/dist/src/tools/provided/task-cancel.d.ts +1 -1
- package/dist/src/tools/provided/task-wait.d.ts +1 -1
- package/dist/src/tools/provided/web-search.d.ts +20 -7
- package/dist/src/tools/provided/web-search.js +1 -1
- package/dist/src/tools/schema.d.ts +5 -0
- package/dist/src/tools/schema.js +1 -1
- package/dist/src/{runtime/connections/tool-signature.d.ts → tools/signature.d.ts} +2 -2
- package/dist/src/tools/workflow-definition.d.ts +1 -1
- package/dist/src/tracing/agent-approval-instrumentation.js +1 -1
- package/dist/src/tracing/agent-otel-provider.js +2 -2
- package/dist/src/tracing/agent-otel-runtime-context.d.ts +1 -0
- package/dist/src/tracing/agent-otel-runtime-context.js +1 -1
- package/dist/src/tracing/agent-otel-turn-state.d.ts +6 -0
- package/dist/src/tracing/agent-otel-turn-state.js +1 -0
- package/dist/src/tracing/agent-tool-instrumentation.js +1 -1
- package/dist/src/tracing/agent-trace-context-codec.js +1 -1
- package/dist/src/tracing/agent-trace-state.d.ts +4 -1
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +8 -8
- package/docs/channels/chat-sdk.mdx +1 -1
- package/docs/channels/slack.mdx +32 -82
- package/docs/code-extension.mdx +28 -7
- package/docs/concepts/built-in-tools.md +43 -43
- package/docs/concepts/context-control.md +1 -1
- package/docs/concepts/execution-model-and-durability.mdx +1 -1
- package/docs/concepts/sessions-runs-and-streaming.md +4 -4
- package/docs/connections/mcp.mdx +5 -5
- package/docs/connections/openapi.mdx +1 -1
- package/docs/connections/overview.mdx +4 -2
- package/docs/evals/assertions.mdx +5 -3
- package/docs/evals/reporters.mdx +3 -1
- package/docs/evals/tool-stubs.mdx +3 -1
- package/docs/extensions.md +2 -0
- package/docs/guides/dev-tui.md +2 -2
- package/docs/guides/dynamic-capabilities.md +14 -4
- package/docs/guides/frontend/overview.mdx +1 -1
- package/docs/guides/remote-agents.md +10 -3
- package/docs/instructions.mdx +5 -5
- package/docs/reference/cli.md +2 -2
- package/docs/reference/typescript-api.md +3 -3
- package/docs/skills.mdx +19 -4
- package/docs/subagents/index.mdx +5 -3
- package/docs/tools/overview.mdx +22 -1
- package/docs/tools/tasks-upgrade.md +1 -1
- package/docs/tools/tasks.md +32 -32
- package/docs/tools/workflows.mdx +6 -6
- package/docs/tutorial/team-playbooks.mdx +2 -2
- package/package.json +27 -11
- package/dist/src/compiled/_chunks/workflow/dist-DmXynLVH.js +0 -1
- package/dist/src/compiled/_chunks/workflow/private-Dlf90Zvn.js +0 -1
- package/dist/src/compiled/_chunks/workflow/signal-exit-iIdjQcCK.js +0 -95
- package/dist/src/compiled/_chunks/workflow/sleep-BMqbraZM.js +0 -1
- package/dist/src/execution/connection-announcement.d.ts +0 -7
- package/dist/src/execution/connection-announcement.js +0 -4
- package/dist/src/execution/tools/connection-approval.d.ts +0 -25
- package/dist/src/execution/tools/connection-approval.js +0 -1
- package/dist/src/execution/tools/connection-search-rank.d.ts +0 -21
- package/dist/src/execution/tools/connection-search-rank.js +0 -1
- package/dist/src/execution/tools/connection-target.d.ts +0 -18
- package/dist/src/execution/tools/connection-target.js +0 -1
- package/dist/src/execution/tools/connection-tools.d.ts +0 -4
- package/dist/src/execution/tools/connection-tools.js +0 -2
- package/dist/src/execution/tools/load-skill.d.ts +0 -10
- package/dist/src/execution/tools/load-skill.js +0 -1
- package/dist/src/extensions/code/extension/lib/github-shell.js +0 -1
- package/dist/src/extensions/code/extension/skills/pr/SKILL.md +0 -53
- package/dist/src/extensions/code/extension/subagents/worker/tools/load_skill.d.ts +0 -2
- package/dist/src/extensions/code/extension/subagents/worker/tools/load_skill.js +0 -1
- package/dist/src/harness/advertised-tools.d.ts +0 -26
- package/dist/src/harness/advertised-tools.js +0 -1
- package/dist/src/harness/nested-actions.d.ts +0 -23
- package/dist/src/harness/nested-actions.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.2.0/node_modules/@vercel/cli-config/dist/cli-config.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.2.0/node_modules/@vercel/cli-config/dist/cred-storage.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.2.0/node_modules/@vercel/cli-config/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.2.0/node_modules/@vercel/cli-config/dist/schema.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.2.0/node_modules/@vercel/cli-config/dist/schema.zod.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.2.0/node_modules/@vercel/cli-config/dist/types.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/envpath.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/errors.js +0 -2
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/errutils.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/exec.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/fsutils.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/lookup.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.0/node_modules/@vercel/cli-exec/dist/safety.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/auth-errors.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/exchange-vercel-oidc-token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/get-context.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/get-vercel-oidc-token-sync.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/get-vercel-oidc-token-with-refresh.js +0 -2
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/oauth.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/token-error.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/token-io.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/token-util.js +0 -2
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/verify-vercel-oidc-token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.0/node_modules/@vercel/oidc/dist/version.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_queue@0.5.1_@opentelemetry_api@1.9.1/node_modules/@vercel/queue/dist/index.js +0 -36
- package/dist/src/node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js +0 -1
- package/dist/src/node_modules/.pnpm/brace-expansion@5.0.12/node_modules/brace-expansion/dist/esm/index.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js +0 -2
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js +0 -1
- package/dist/src/node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js +0 -1
- package/dist/src/node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js +0 -1
- package/dist/src/node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js +0 -1
- package/dist/src/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js +0 -1
- package/dist/src/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js +0 -1
- package/dist/src/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/index.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/compact/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/compact/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/flattened/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/flattened/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/general/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/general/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwk/embedded.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwk/thumbprint.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwks/local.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwks/remote.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/compact/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/compact/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/flattened/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/flattened/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/general/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/general/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/produce.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/unsecured.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/export.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/generate_key_pair.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/generate_secret.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/import.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/aesgcmkw.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/buffer_utils.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/cek.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/check_iv_length.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/check_key_type.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/check_p2s.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/crypto_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/decrypt_key_management.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/encrypt_key_management.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/epoch.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/invalid_key_input.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/is_disjoint.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/is_jwk.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/is_object.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/iv.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/jwt_claims_set.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/private_symbols.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/secs.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/validate_algorithms.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/validate_crit.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/aeskw.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/asn1.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/base64url.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/cbc_tag.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/check_cek_length.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/check_key_length.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/ciphers.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/digest.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/dsa_digest.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/ecdhes.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/fetch_jwks.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/generate.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/get_named_curve.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/get_sign_verify_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/hmac_digest.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/is_key_like.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/is_key_object.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/jwk_to_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/key_to_jwk.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/node_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/normalize_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/pbes2kw.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/random.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/rsaes.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/runtime.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/timing_safe_equal.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/webcrypto.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/base64url.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/decode_jwt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/decode_protected_header.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/errors.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/runtime.js +0 -1
- package/dist/src/node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js +0 -1
- package/dist/src/node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js +0 -1
- package/dist/src/node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -1
- package/dist/src/node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js +0 -1
- package/dist/src/node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js +0 -1
- package/dist/src/node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js +0 -1
- package/dist/src/node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js +0 -1
- package/dist/src/node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js +0 -1
- package/dist/src/node_modules/.pnpm/mixpart@0.0.6/node_modules/mixpart/dist/index.js +0 -7
- package/dist/src/node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js +0 -1
- package/dist/src/node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js +0 -1
- package/dist/src/node_modules/.pnpm/os-paths@4.4.0/node_modules/os-paths/src/lib/index.js +0 -1
- package/dist/src/node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js +0 -1
- package/dist/src/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +0 -1
- package/dist/src/node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js +0 -1
- package/dist/src/node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js +0 -1
- package/dist/src/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +0 -1
- package/dist/src/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +0 -1
- package/dist/src/node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js +0 -2
- package/dist/src/node_modules/.pnpm/which@2.0.2/node_modules/which/which.js +0 -1
- package/dist/src/node_modules/.pnpm/xdg-app-paths@5.5.1/node_modules/xdg-app-paths/src/lib/index.js +0 -1
- package/dist/src/node_modules/.pnpm/xdg-portable@7.3.0/node_modules/xdg-portable/src/lib/index.js +0 -1
- package/dist/src/public/tools/load-skill.d.ts +0 -3
- package/dist/src/public/tools/load-skill.js +0 -1
- package/dist/src/runtime/skills/fragment-context.d.ts +0 -4
- package/dist/src/runtime/skills/fragment-context.js +0 -1
- package/dist/src/tools/framework/connection-tools.d.ts +0 -3
- package/dist/src/tools/framework/connection-tools.js +0 -1
- package/dist/src/tools/provided/load-skill.d.ts +0 -2
- package/dist/src/tools/provided/load-skill.js +0 -1
- /package/dist/src/extensions/{code → git}/extension/lib/github-shell-schema.d.ts +0 -0
- /package/dist/src/extensions/{code → git}/extension/lib/github-shell-schema.js +0 -0
- /package/dist/src/extensions/{code → git}/extension/lib/signed-commit.d.ts +0 -0
- /package/dist/src/extensions/{code → git}/extension/lib/signed-commit.js +0 -0
- /package/dist/src/{runtime/connections/tool-signature.js → tools/signature.js} +0 -0
|
@@ -322,11 +322,9 @@ import type {
|
|
|
322
322
|
EveMessageInputRequest,
|
|
323
323
|
EveMessagePart,
|
|
324
324
|
} from "eve/react";
|
|
325
|
-
import {
|
|
325
|
+
import type { FormEvent } from "react";
|
|
326
326
|
import {
|
|
327
|
-
ArrowRightIcon,
|
|
328
327
|
CheckCircleIcon,
|
|
329
|
-
CheckIcon,
|
|
330
328
|
ExternalLinkIcon,
|
|
331
329
|
FileIcon,
|
|
332
330
|
ImageIcon,
|
|
@@ -334,16 +332,6 @@ import {
|
|
|
334
332
|
XCircleIcon,
|
|
335
333
|
} from "lucide-react";
|
|
336
334
|
import { Message, MessageContent, MessageResponse } from "@/components/ai-elements/message";
|
|
337
|
-
import {
|
|
338
|
-
Question,
|
|
339
|
-
QuestionInput,
|
|
340
|
-
QuestionOption,
|
|
341
|
-
QuestionOptions,
|
|
342
|
-
QuestionPrompt,
|
|
343
|
-
type QuestionResponse,
|
|
344
|
-
QuestionSubmit,
|
|
345
|
-
type QuestionValue,
|
|
346
|
-
} from "@/components/ai-elements/question";
|
|
347
335
|
import { Reasoning, ReasoningContent, ReasoningTrigger } from "@/components/ai-elements/reasoning";
|
|
348
336
|
import {
|
|
349
337
|
BashToolContent,
|
|
@@ -354,6 +342,18 @@ import {
|
|
|
354
342
|
ToolOutput,
|
|
355
343
|
} from "@/components/ai-elements/tool";
|
|
356
344
|
import { Button } from "@/components/ui/button";
|
|
345
|
+
import {
|
|
346
|
+
Questionnaire,
|
|
347
|
+
QuestionnaireActions,
|
|
348
|
+
QuestionnaireChoice,
|
|
349
|
+
QuestionnaireChoiceDescription,
|
|
350
|
+
QuestionnaireChoices,
|
|
351
|
+
QuestionnaireError,
|
|
352
|
+
QuestionnaireInput,
|
|
353
|
+
QuestionnaireItem,
|
|
354
|
+
QuestionnaireSubmit,
|
|
355
|
+
QuestionnaireTitle,
|
|
356
|
+
} from "@/components/ui/questionnaire";
|
|
357
357
|
import { cn } from "@/lib/utils";
|
|
358
358
|
|
|
359
359
|
export type AgentInputResponse = {
|
|
@@ -464,7 +464,7 @@ function AgentMessagePart({
|
|
|
464
464
|
<Tool>
|
|
465
465
|
<ToolHeader
|
|
466
466
|
state={part.state}
|
|
467
|
-
title={part.toolName}
|
|
467
|
+
title={part.toolMetadata?.eve?.label ?? part.toolName}
|
|
468
468
|
toolName={part.toolName}
|
|
469
469
|
type="dynamic-tool"
|
|
470
470
|
/>
|
|
@@ -506,90 +506,73 @@ function QuestionRequest({
|
|
|
506
506
|
readonly inputResponse?: AgentInputResponse;
|
|
507
507
|
readonly onInputResponses: (responses: readonly AgentInputResponse[]) => void | Promise<void>;
|
|
508
508
|
}) {
|
|
509
|
-
const
|
|
510
|
-
const acceptsFreeform = inputRequest.allowFreeform === true ||
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
509
|
+
const options = inputRequest.options ?? [];
|
|
510
|
+
const acceptsFreeform = inputRequest.allowFreeform === true || options.length === 0;
|
|
511
|
+
const disabled = !canRespond || inputResponse !== undefined;
|
|
512
|
+
|
|
513
|
+
const submitResponse = (event: FormEvent<HTMLFormElement>) => {
|
|
514
|
+
event.preventDefault();
|
|
515
|
+
const answer = new FormData(event.currentTarget).get(inputRequest.requestId);
|
|
516
|
+
if (typeof answer !== "string") {
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
515
519
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
optionId,
|
|
521
|
-
requestId: inputRequest.requestId,
|
|
522
|
-
},
|
|
520
|
+
const option = options.find(({ id }) => id === answer);
|
|
521
|
+
void onInputResponses([
|
|
522
|
+
option === undefined
|
|
523
|
+
? { requestId: inputRequest.requestId, text: answer.trim() }
|
|
524
|
+
: { optionId: option.id, requestId: inputRequest.requestId },
|
|
523
525
|
]);
|
|
524
526
|
};
|
|
525
527
|
|
|
526
|
-
const submitResponse = ({ selectedValues, text }: QuestionResponse) =>
|
|
527
|
-
onInputResponses([
|
|
528
|
-
{
|
|
529
|
-
optionId: selectedValues[0],
|
|
530
|
-
requestId: inputRequest.requestId,
|
|
531
|
-
text,
|
|
532
|
-
},
|
|
533
|
-
]);
|
|
534
|
-
|
|
535
528
|
return (
|
|
536
|
-
<
|
|
537
|
-
|
|
529
|
+
<Questionnaire
|
|
530
|
+
className="gap-4 rounded-xl border bg-card p-4"
|
|
531
|
+
// Validation reads disabled answers as missing, so locking a submitted form in place would
|
|
532
|
+
// flag it invalid. Remounting restores the answer from the response instead.
|
|
533
|
+
key={disabled ? "locked" : "open"}
|
|
538
534
|
onSubmit={submitResponse}
|
|
539
|
-
|
|
540
|
-
value={questionValue}
|
|
535
|
+
shortcuts="numbers"
|
|
541
536
|
>
|
|
542
|
-
<
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
537
|
+
<QuestionnaireItem name={inputRequest.requestId} required>
|
|
538
|
+
<QuestionnaireTitle className="text-sm font-medium">
|
|
539
|
+
{inputRequest.prompt}
|
|
540
|
+
</QuestionnaireTitle>
|
|
541
|
+
<QuestionnaireChoices>
|
|
542
|
+
{options.map((option) => (
|
|
543
|
+
<QuestionnaireChoice
|
|
544
|
+
className={cn(inputResponse?.optionId === option.id && "data-disabled:opacity-100")}
|
|
545
|
+
defaultChecked={inputResponse?.optionId === option.id}
|
|
546
|
+
disabled={disabled}
|
|
548
547
|
key={option.id}
|
|
549
|
-
onClick={() => void submitOption(option.id)}
|
|
550
548
|
value={option.id}
|
|
551
549
|
>
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
</span>
|
|
560
|
-
{inputResponse === undefined ? (
|
|
561
|
-
<span aria-hidden="true" className="relative size-6 shrink-0">
|
|
562
|
-
<span className="absolute inset-0 flex items-center justify-center rounded-full bg-foreground/8 text-xs text-muted-foreground transition-opacity group-hover/option:opacity-0 group-focus-visible/option:opacity-0">
|
|
563
|
-
{index + 1}
|
|
564
|
-
</span>
|
|
565
|
-
<ArrowRightIcon className="absolute top-1/2 left-1/2 size-4 -translate-x-1/2 -translate-y-1/2 text-muted-foreground opacity-0 transition-[color,opacity] group-hover/option:text-foreground group-hover/option:opacity-100 group-focus-visible/option:opacity-100" />
|
|
566
|
-
</span>
|
|
567
|
-
) : (
|
|
568
|
-
<CheckIcon className="size-4 shrink-0 opacity-0 transition-opacity group-data-[state=checked]/option:opacity-100" />
|
|
569
|
-
)}
|
|
570
|
-
</QuestionOption>
|
|
550
|
+
{option.label}
|
|
551
|
+
{option.description ? (
|
|
552
|
+
<QuestionnaireChoiceDescription>
|
|
553
|
+
{option.description}
|
|
554
|
+
</QuestionnaireChoiceDescription>
|
|
555
|
+
) : null}
|
|
556
|
+
</QuestionnaireChoice>
|
|
571
557
|
))}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
{acceptsFreeform ? (
|
|
575
|
-
<div className="relative">
|
|
576
|
-
<QuestionInput
|
|
577
|
-
aria-label="Answer"
|
|
578
|
-
className={inputResponse === undefined ? "pr-12 pb-12" : undefined}
|
|
579
|
-
placeholder="Type your answer…"
|
|
580
|
-
/>
|
|
581
|
-
{inputResponse === undefined && questionValue.text.trim().length > 0 ? (
|
|
582
|
-
<QuestionSubmit
|
|
558
|
+
{acceptsFreeform ? (
|
|
559
|
+
<QuestionnaireInput
|
|
583
560
|
aria-label="Answer"
|
|
584
|
-
className=
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
561
|
+
className={cn(inputResponse?.text !== undefined && "disabled:opacity-100")}
|
|
562
|
+
defaultValue={inputResponse?.text}
|
|
563
|
+
disabled={disabled}
|
|
564
|
+
placeholder="Type your answer…"
|
|
565
|
+
/>
|
|
589
566
|
) : null}
|
|
590
|
-
</
|
|
591
|
-
|
|
592
|
-
|
|
567
|
+
</QuestionnaireChoices>
|
|
568
|
+
<QuestionnaireError />
|
|
569
|
+
</QuestionnaireItem>
|
|
570
|
+
{disabled ? null : (
|
|
571
|
+
<QuestionnaireActions>
|
|
572
|
+
<QuestionnaireSubmit size="sm">Answer</QuestionnaireSubmit>
|
|
573
|
+
</QuestionnaireActions>
|
|
574
|
+
)}
|
|
575
|
+
</Questionnaire>
|
|
593
576
|
);
|
|
594
577
|
}
|
|
595
578
|
|
|
@@ -3624,332 +3607,6 @@ export const PromptInputCommandSeparator = ({
|
|
|
3624
3607
|
className,
|
|
3625
3608
|
...props
|
|
3626
3609
|
}: PromptInputCommandSeparatorProps) => <CommandSeparator className={cn(className)} {...props} />;
|
|
3627
|
-
`,"components/ai-elements/question.tsx":`"use client";
|
|
3628
|
-
|
|
3629
|
-
import type {
|
|
3630
|
-
ChangeEvent,
|
|
3631
|
-
ComponentProps,
|
|
3632
|
-
FormEvent,
|
|
3633
|
-
HTMLAttributes,
|
|
3634
|
-
KeyboardEvent,
|
|
3635
|
-
MouseEvent,
|
|
3636
|
-
ReactNode,
|
|
3637
|
-
} from "react";
|
|
3638
|
-
|
|
3639
|
-
import { Button } from "@/components/ui/button";
|
|
3640
|
-
import { Textarea } from "@/components/ui/textarea";
|
|
3641
|
-
import { cn } from "@/lib/utils";
|
|
3642
|
-
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
3643
|
-
|
|
3644
|
-
export interface QuestionValue {
|
|
3645
|
-
selectedValues: readonly string[];
|
|
3646
|
-
text: string;
|
|
3647
|
-
}
|
|
3648
|
-
|
|
3649
|
-
export interface QuestionResponse {
|
|
3650
|
-
selectedValues: readonly string[];
|
|
3651
|
-
text?: string;
|
|
3652
|
-
}
|
|
3653
|
-
|
|
3654
|
-
type SelectionMode = "multiple" | "single";
|
|
3655
|
-
|
|
3656
|
-
interface QuestionContextValue {
|
|
3657
|
-
disabled: boolean;
|
|
3658
|
-
selectedValues: readonly string[];
|
|
3659
|
-
selectionMode: SelectionMode;
|
|
3660
|
-
setText: (text: string) => void;
|
|
3661
|
-
text: string;
|
|
3662
|
-
toggleValue: (value: string) => void;
|
|
3663
|
-
}
|
|
3664
|
-
|
|
3665
|
-
const QuestionContext = createContext<QuestionContextValue | null>(null);
|
|
3666
|
-
|
|
3667
|
-
const useQuestion = () => {
|
|
3668
|
-
const context = useContext(QuestionContext);
|
|
3669
|
-
|
|
3670
|
-
if (!context) {
|
|
3671
|
-
throw new Error("Question components must be used within Question");
|
|
3672
|
-
}
|
|
3673
|
-
|
|
3674
|
-
return context;
|
|
3675
|
-
};
|
|
3676
|
-
|
|
3677
|
-
export type QuestionProps = Omit<ComponentProps<"form">, "defaultValue" | "onSubmit" | "value"> & {
|
|
3678
|
-
defaultValue?: QuestionValue;
|
|
3679
|
-
disabled?: boolean;
|
|
3680
|
-
onSubmit?: (
|
|
3681
|
-
response: QuestionResponse,
|
|
3682
|
-
event: FormEvent<HTMLFormElement>,
|
|
3683
|
-
) => void | Promise<void>;
|
|
3684
|
-
onValueChange?: (value: QuestionValue) => void;
|
|
3685
|
-
selectionMode?: SelectionMode;
|
|
3686
|
-
value?: QuestionValue;
|
|
3687
|
-
};
|
|
3688
|
-
|
|
3689
|
-
const EMPTY_VALUE: QuestionValue = { selectedValues: [], text: "" };
|
|
3690
|
-
|
|
3691
|
-
const getSelectedValues = (
|
|
3692
|
-
currentValues: readonly string[],
|
|
3693
|
-
optionValue: string,
|
|
3694
|
-
selectionMode: SelectionMode,
|
|
3695
|
-
): readonly string[] => {
|
|
3696
|
-
const isSelected = currentValues.includes(optionValue);
|
|
3697
|
-
|
|
3698
|
-
if (selectionMode === "single") {
|
|
3699
|
-
return isSelected ? [] : [optionValue];
|
|
3700
|
-
}
|
|
3701
|
-
|
|
3702
|
-
if (isSelected) {
|
|
3703
|
-
return currentValues.filter((item) => item !== optionValue);
|
|
3704
|
-
}
|
|
3705
|
-
|
|
3706
|
-
return [...currentValues, optionValue];
|
|
3707
|
-
};
|
|
3708
|
-
|
|
3709
|
-
export const Question = ({
|
|
3710
|
-
children,
|
|
3711
|
-
className,
|
|
3712
|
-
defaultValue = EMPTY_VALUE,
|
|
3713
|
-
disabled = false,
|
|
3714
|
-
onSubmit,
|
|
3715
|
-
onValueChange,
|
|
3716
|
-
selectionMode = "single",
|
|
3717
|
-
value: controlledValue,
|
|
3718
|
-
...props
|
|
3719
|
-
}: QuestionProps) => {
|
|
3720
|
-
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
3721
|
-
const value = controlledValue ?? internalValue;
|
|
3722
|
-
|
|
3723
|
-
const setValue = useCallback(
|
|
3724
|
-
(nextValue: QuestionValue) => {
|
|
3725
|
-
if (controlledValue === undefined) {
|
|
3726
|
-
setInternalValue(nextValue);
|
|
3727
|
-
}
|
|
3728
|
-
onValueChange?.(nextValue);
|
|
3729
|
-
},
|
|
3730
|
-
[controlledValue, onValueChange],
|
|
3731
|
-
);
|
|
3732
|
-
|
|
3733
|
-
const setText = useCallback(
|
|
3734
|
-
(text: string) => {
|
|
3735
|
-
setValue({ ...value, text });
|
|
3736
|
-
},
|
|
3737
|
-
[setValue, value],
|
|
3738
|
-
);
|
|
3739
|
-
|
|
3740
|
-
const toggleValue = useCallback(
|
|
3741
|
-
(optionValue: string) => {
|
|
3742
|
-
const selectedValues = getSelectedValues(value.selectedValues, optionValue, selectionMode);
|
|
3743
|
-
setValue({ ...value, selectedValues });
|
|
3744
|
-
},
|
|
3745
|
-
[selectionMode, setValue, value],
|
|
3746
|
-
);
|
|
3747
|
-
|
|
3748
|
-
const contextValue = useMemo(
|
|
3749
|
-
() => ({
|
|
3750
|
-
disabled,
|
|
3751
|
-
selectedValues: value.selectedValues,
|
|
3752
|
-
selectionMode,
|
|
3753
|
-
setText,
|
|
3754
|
-
text: value.text,
|
|
3755
|
-
toggleValue,
|
|
3756
|
-
}),
|
|
3757
|
-
[disabled, selectionMode, setText, toggleValue, value],
|
|
3758
|
-
);
|
|
3759
|
-
|
|
3760
|
-
const handleSubmit = useCallback(
|
|
3761
|
-
async (event: FormEvent<HTMLFormElement>) => {
|
|
3762
|
-
event.preventDefault();
|
|
3763
|
-
if (disabled) {
|
|
3764
|
-
return;
|
|
3765
|
-
}
|
|
3766
|
-
|
|
3767
|
-
const text = value.text.trim();
|
|
3768
|
-
if (value.selectedValues.length === 0 && text.length === 0) {
|
|
3769
|
-
return;
|
|
3770
|
-
}
|
|
3771
|
-
|
|
3772
|
-
await onSubmit?.(
|
|
3773
|
-
{
|
|
3774
|
-
selectedValues: value.selectedValues,
|
|
3775
|
-
text: text.length > 0 ? text : undefined,
|
|
3776
|
-
},
|
|
3777
|
-
event,
|
|
3778
|
-
);
|
|
3779
|
-
},
|
|
3780
|
-
[disabled, onSubmit, value],
|
|
3781
|
-
);
|
|
3782
|
-
|
|
3783
|
-
return (
|
|
3784
|
-
<QuestionContext.Provider value={contextValue}>
|
|
3785
|
-
<form
|
|
3786
|
-
className={cn("space-y-3 rounded-xl border bg-card p-4", className)}
|
|
3787
|
-
onSubmit={handleSubmit}
|
|
3788
|
-
{...props}
|
|
3789
|
-
>
|
|
3790
|
-
{children}
|
|
3791
|
-
</form>
|
|
3792
|
-
</QuestionContext.Provider>
|
|
3793
|
-
);
|
|
3794
|
-
};
|
|
3795
|
-
|
|
3796
|
-
export type QuestionPromptProps = HTMLAttributes<HTMLParagraphElement>;
|
|
3797
|
-
|
|
3798
|
-
export const QuestionPrompt = ({ className, ...props }: QuestionPromptProps) => (
|
|
3799
|
-
<p className={cn("font-medium text-sm leading-snug", className)} {...props} />
|
|
3800
|
-
);
|
|
3801
|
-
|
|
3802
|
-
export type QuestionDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
3803
|
-
|
|
3804
|
-
export const QuestionDescription = ({ className, ...props }: QuestionDescriptionProps) => (
|
|
3805
|
-
<p className={cn("text-muted-foreground text-sm", className)} {...props} />
|
|
3806
|
-
);
|
|
3807
|
-
|
|
3808
|
-
export type QuestionOptionsProps = HTMLAttributes<HTMLDivElement>;
|
|
3809
|
-
|
|
3810
|
-
export const QuestionOptions = ({ className, ...props }: QuestionOptionsProps) => {
|
|
3811
|
-
const { selectionMode } = useQuestion();
|
|
3812
|
-
|
|
3813
|
-
return (
|
|
3814
|
-
<div
|
|
3815
|
-
className={cn("flex flex-wrap gap-1.5", className)}
|
|
3816
|
-
role={selectionMode === "single" ? "radiogroup" : "group"}
|
|
3817
|
-
{...props}
|
|
3818
|
-
/>
|
|
3819
|
-
);
|
|
3820
|
-
};
|
|
3821
|
-
|
|
3822
|
-
export type QuestionOptionProps = Omit<ComponentProps<typeof Button>, "value"> & {
|
|
3823
|
-
value: string;
|
|
3824
|
-
};
|
|
3825
|
-
|
|
3826
|
-
export const QuestionOption = ({
|
|
3827
|
-
children,
|
|
3828
|
-
className,
|
|
3829
|
-
disabled,
|
|
3830
|
-
onClick,
|
|
3831
|
-
value,
|
|
3832
|
-
variant,
|
|
3833
|
-
...props
|
|
3834
|
-
}: QuestionOptionProps) => {
|
|
3835
|
-
const question = useQuestion();
|
|
3836
|
-
const isSelected = question.selectedValues.includes(value);
|
|
3837
|
-
const role = question.selectionMode === "single" ? "radio" : "checkbox";
|
|
3838
|
-
const handleClick = useCallback(
|
|
3839
|
-
(event: MouseEvent<HTMLButtonElement>) => {
|
|
3840
|
-
question.toggleValue(value);
|
|
3841
|
-
onClick?.(event);
|
|
3842
|
-
},
|
|
3843
|
-
[onClick, question, value],
|
|
3844
|
-
);
|
|
3845
|
-
|
|
3846
|
-
return (
|
|
3847
|
-
<Button
|
|
3848
|
-
aria-checked={isSelected}
|
|
3849
|
-
// Selection only changes colors: the border is always present so the
|
|
3850
|
-
// layout never shifts when an option is picked.
|
|
3851
|
-
className={cn(
|
|
3852
|
-
"group/option h-auto whitespace-normal border border-input font-normal shadow-none transition-colors",
|
|
3853
|
-
isSelected
|
|
3854
|
-
? "border-foreground/20 bg-accent text-accent-foreground disabled:opacity-100"
|
|
3855
|
-
: "text-muted-foreground hover:bg-accent/50 hover:text-foreground",
|
|
3856
|
-
className,
|
|
3857
|
-
)}
|
|
3858
|
-
data-state={isSelected ? "checked" : "unchecked"}
|
|
3859
|
-
disabled={question.disabled || disabled}
|
|
3860
|
-
onClick={handleClick}
|
|
3861
|
-
role={role}
|
|
3862
|
-
type="button"
|
|
3863
|
-
variant={variant ?? "ghost"}
|
|
3864
|
-
{...props}
|
|
3865
|
-
>
|
|
3866
|
-
{children ?? value}
|
|
3867
|
-
</Button>
|
|
3868
|
-
);
|
|
3869
|
-
};
|
|
3870
|
-
|
|
3871
|
-
export type QuestionInputProps = Omit<ComponentProps<typeof Textarea>, "defaultValue" | "value">;
|
|
3872
|
-
|
|
3873
|
-
export const QuestionInput = ({
|
|
3874
|
-
className,
|
|
3875
|
-
disabled,
|
|
3876
|
-
onChange,
|
|
3877
|
-
onKeyDown,
|
|
3878
|
-
...props
|
|
3879
|
-
}: QuestionInputProps) => {
|
|
3880
|
-
const question = useQuestion();
|
|
3881
|
-
const handleChange = useCallback(
|
|
3882
|
-
(event: ChangeEvent<HTMLTextAreaElement>) => {
|
|
3883
|
-
question.setText(event.currentTarget.value);
|
|
3884
|
-
onChange?.(event);
|
|
3885
|
-
},
|
|
3886
|
-
[onChange, question],
|
|
3887
|
-
);
|
|
3888
|
-
const handleKeyDown = useCallback(
|
|
3889
|
-
(event: KeyboardEvent<HTMLTextAreaElement>) => {
|
|
3890
|
-
onKeyDown?.(event);
|
|
3891
|
-
if (
|
|
3892
|
-
event.defaultPrevented ||
|
|
3893
|
-
event.key !== "Enter" ||
|
|
3894
|
-
event.shiftKey ||
|
|
3895
|
-
event.nativeEvent.isComposing
|
|
3896
|
-
) {
|
|
3897
|
-
return;
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
event.preventDefault();
|
|
3901
|
-
event.currentTarget.form?.requestSubmit();
|
|
3902
|
-
},
|
|
3903
|
-
[onKeyDown],
|
|
3904
|
-
);
|
|
3905
|
-
|
|
3906
|
-
return (
|
|
3907
|
-
<Textarea
|
|
3908
|
-
className={cn(
|
|
3909
|
-
"min-h-16 resize-none rounded-lg text-base md:text-sm shadow-none focus-visible:border-foreground!",
|
|
3910
|
-
className,
|
|
3911
|
-
)}
|
|
3912
|
-
disabled={question.disabled || disabled}
|
|
3913
|
-
onChange={handleChange}
|
|
3914
|
-
onKeyDown={handleKeyDown}
|
|
3915
|
-
value={question.text}
|
|
3916
|
-
{...props}
|
|
3917
|
-
/>
|
|
3918
|
-
);
|
|
3919
|
-
};
|
|
3920
|
-
|
|
3921
|
-
export type QuestionActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
3922
|
-
|
|
3923
|
-
export const QuestionActions = ({ className, ...props }: QuestionActionsProps) => (
|
|
3924
|
-
<div className={cn("flex items-center justify-end gap-2", className)} {...props} />
|
|
3925
|
-
);
|
|
3926
|
-
|
|
3927
|
-
export type QuestionSubmitProps = ComponentProps<typeof Button> & {
|
|
3928
|
-
children?: ReactNode;
|
|
3929
|
-
};
|
|
3930
|
-
|
|
3931
|
-
export const QuestionSubmit = ({
|
|
3932
|
-
children = "Submit",
|
|
3933
|
-
className,
|
|
3934
|
-
disabled,
|
|
3935
|
-
size = "sm",
|
|
3936
|
-
...props
|
|
3937
|
-
}: QuestionSubmitProps) => {
|
|
3938
|
-
const question = useQuestion();
|
|
3939
|
-
const hasResponse = question.selectedValues.length > 0 || question.text.trim().length > 0;
|
|
3940
|
-
|
|
3941
|
-
return (
|
|
3942
|
-
<Button
|
|
3943
|
-
className={cn("text-sm! shadow-none", className)}
|
|
3944
|
-
disabled={question.disabled || disabled || !hasResponse}
|
|
3945
|
-
size={size}
|
|
3946
|
-
type="submit"
|
|
3947
|
-
{...props}
|
|
3948
|
-
>
|
|
3949
|
-
{children}
|
|
3950
|
-
</Button>
|
|
3951
|
-
);
|
|
3952
|
-
};
|
|
3953
3610
|
`,"components/ai-elements/reasoning.tsx":`"use client";
|
|
3954
3611
|
|
|
3955
3612
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
@@ -5392,6 +5049,321 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
|
5392
5049
|
}
|
|
5393
5050
|
|
|
5394
5051
|
export { Input };
|
|
5052
|
+
`,"components/ui/questionnaire.tsx":`"use client";
|
|
5053
|
+
|
|
5054
|
+
import * as React from "react";
|
|
5055
|
+
import { Questionnaire as QuestionnairePrimitive } from "@shadcn/react/questionnaire";
|
|
5056
|
+
import { CheckIcon } from "lucide-react";
|
|
5057
|
+
|
|
5058
|
+
import { buttonVariants, type Button } from "@/components/ui/button";
|
|
5059
|
+
import { cn } from "@/lib/utils";
|
|
5060
|
+
|
|
5061
|
+
function Questionnaire({
|
|
5062
|
+
className,
|
|
5063
|
+
...props
|
|
5064
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Root>) {
|
|
5065
|
+
return (
|
|
5066
|
+
<QuestionnairePrimitive.Root
|
|
5067
|
+
data-slot="questionnaire"
|
|
5068
|
+
className={cn("flex w-full min-w-0 flex-col gap-6", className)}
|
|
5069
|
+
{...props}
|
|
5070
|
+
/>
|
|
5071
|
+
);
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
function QuestionnaireProgress({
|
|
5075
|
+
className,
|
|
5076
|
+
...props
|
|
5077
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Progress>) {
|
|
5078
|
+
return (
|
|
5079
|
+
<QuestionnairePrimitive.Progress
|
|
5080
|
+
data-slot="questionnaire-progress"
|
|
5081
|
+
className={cn(
|
|
5082
|
+
"min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium text-muted-foreground tabular-nums",
|
|
5083
|
+
className,
|
|
5084
|
+
)}
|
|
5085
|
+
{...props}
|
|
5086
|
+
/>
|
|
5087
|
+
);
|
|
5088
|
+
}
|
|
5089
|
+
|
|
5090
|
+
function QuestionnaireItem({
|
|
5091
|
+
className,
|
|
5092
|
+
...props
|
|
5093
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Item>) {
|
|
5094
|
+
return (
|
|
5095
|
+
<QuestionnairePrimitive.Item
|
|
5096
|
+
data-slot="questionnaire-item"
|
|
5097
|
+
className={cn("flex min-w-0 flex-col gap-5 border-0 p-0 outline-none", className)}
|
|
5098
|
+
{...props}
|
|
5099
|
+
/>
|
|
5100
|
+
);
|
|
5101
|
+
}
|
|
5102
|
+
|
|
5103
|
+
function QuestionnaireTitle({
|
|
5104
|
+
className,
|
|
5105
|
+
...props
|
|
5106
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Title>) {
|
|
5107
|
+
return (
|
|
5108
|
+
<QuestionnairePrimitive.Title
|
|
5109
|
+
data-slot="questionnaire-title"
|
|
5110
|
+
className={cn(
|
|
5111
|
+
"text-base font-semibold text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-5",
|
|
5112
|
+
className,
|
|
5113
|
+
)}
|
|
5114
|
+
{...props}
|
|
5115
|
+
/>
|
|
5116
|
+
);
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
function QuestionnaireDescription({
|
|
5120
|
+
className,
|
|
5121
|
+
...props
|
|
5122
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Description>) {
|
|
5123
|
+
return (
|
|
5124
|
+
<QuestionnairePrimitive.Description
|
|
5125
|
+
data-slot="questionnaire-description"
|
|
5126
|
+
className={cn("text-sm text-pretty text-muted-foreground", className)}
|
|
5127
|
+
{...props}
|
|
5128
|
+
/>
|
|
5129
|
+
);
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
function QuestionnaireChoices({
|
|
5133
|
+
className,
|
|
5134
|
+
...props
|
|
5135
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Choices>) {
|
|
5136
|
+
return (
|
|
5137
|
+
<QuestionnairePrimitive.Choices
|
|
5138
|
+
data-slot="questionnaire-choices"
|
|
5139
|
+
className={cn("group/questionnaire-choices grid min-w-0 gap-3", className)}
|
|
5140
|
+
{...props}
|
|
5141
|
+
/>
|
|
5142
|
+
);
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
function QuestionnaireChoice({
|
|
5146
|
+
children,
|
|
5147
|
+
className,
|
|
5148
|
+
...props
|
|
5149
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Choice>) {
|
|
5150
|
+
return (
|
|
5151
|
+
<QuestionnairePrimitive.Choice
|
|
5152
|
+
data-slot="questionnaire-choice"
|
|
5153
|
+
className={cn(
|
|
5154
|
+
"group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-3 rounded-md border border-input bg-transparent px-4 py-3.5 text-start text-sm shadow-xs transition-colors outline-none select-none hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-3 has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted",
|
|
5155
|
+
"data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
5156
|
+
className,
|
|
5157
|
+
)}
|
|
5158
|
+
{...props}
|
|
5159
|
+
>
|
|
5160
|
+
<QuestionnairePrimitive.ChoiceInput
|
|
5161
|
+
data-slot="questionnaire-choice-input"
|
|
5162
|
+
className="absolute inset-0 z-10 size-full cursor-pointer opacity-0"
|
|
5163
|
+
/>
|
|
5164
|
+
<span
|
|
5165
|
+
aria-hidden="true"
|
|
5166
|
+
data-slot="questionnaire-choice-indicator"
|
|
5167
|
+
className="pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border border-input group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary"
|
|
5168
|
+
>
|
|
5169
|
+
<span
|
|
5170
|
+
data-slot="questionnaire-choice-indicator-dot"
|
|
5171
|
+
className="hidden size-2 rounded-full bg-primary-foreground group-data-[type=checkbox]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
|
|
5172
|
+
/>
|
|
5173
|
+
<CheckIcon
|
|
5174
|
+
data-slot="questionnaire-choice-indicator-check"
|
|
5175
|
+
className="hidden size-3.5 group-data-[type=radio]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
|
|
5176
|
+
/>
|
|
5177
|
+
</span>
|
|
5178
|
+
<QuestionnairePrimitive.ChoiceLabel
|
|
5179
|
+
data-slot="questionnaire-choice-label"
|
|
5180
|
+
className="flex min-w-0 flex-1 flex-col gap-1 leading-snug"
|
|
5181
|
+
>
|
|
5182
|
+
{children}
|
|
5183
|
+
</QuestionnairePrimitive.ChoiceLabel>
|
|
5184
|
+
<QuestionnairePrimitive.ChoiceShortcut
|
|
5185
|
+
data-slot="questionnaire-choice-shortcut"
|
|
5186
|
+
className="pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border border-input bg-background font-mono text-[0.625rem] leading-none font-medium text-muted-foreground shadow-xs group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex"
|
|
5187
|
+
/>
|
|
5188
|
+
</QuestionnairePrimitive.Choice>
|
|
5189
|
+
);
|
|
5190
|
+
}
|
|
5191
|
+
|
|
5192
|
+
function QuestionnaireChoiceDescription({ className, ...props }: React.ComponentProps<"span">) {
|
|
5193
|
+
return (
|
|
5194
|
+
<span
|
|
5195
|
+
data-slot="questionnaire-choice-description"
|
|
5196
|
+
className={cn("text-muted-foreground", className)}
|
|
5197
|
+
{...props}
|
|
5198
|
+
/>
|
|
5199
|
+
);
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
function QuestionnaireInput({
|
|
5203
|
+
className,
|
|
5204
|
+
...props
|
|
5205
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Input>) {
|
|
5206
|
+
return (
|
|
5207
|
+
<div
|
|
5208
|
+
data-slot="questionnaire-input-wrapper"
|
|
5209
|
+
className="group/questionnaire-input relative w-full min-w-0"
|
|
5210
|
+
>
|
|
5211
|
+
<QuestionnairePrimitive.Input
|
|
5212
|
+
data-slot="questionnaire-input"
|
|
5213
|
+
className={cn(
|
|
5214
|
+
"h-9 min-h-11 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow,background-color] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 sm:min-h-0 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
5215
|
+
"selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
|
|
5216
|
+
className,
|
|
5217
|
+
)}
|
|
5218
|
+
{...props}
|
|
5219
|
+
/>
|
|
5220
|
+
</div>
|
|
5221
|
+
);
|
|
5222
|
+
}
|
|
5223
|
+
|
|
5224
|
+
function QuestionnaireError({
|
|
5225
|
+
className,
|
|
5226
|
+
...props
|
|
5227
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Error>) {
|
|
5228
|
+
return (
|
|
5229
|
+
<QuestionnairePrimitive.Error
|
|
5230
|
+
data-slot="questionnaire-error"
|
|
5231
|
+
className={cn("text-sm text-destructive", className)}
|
|
5232
|
+
{...props}
|
|
5233
|
+
/>
|
|
5234
|
+
);
|
|
5235
|
+
}
|
|
5236
|
+
|
|
5237
|
+
function QuestionnaireActions({ className, ...props }: React.ComponentProps<"div">) {
|
|
5238
|
+
return (
|
|
5239
|
+
<div
|
|
5240
|
+
data-slot="questionnaire-actions"
|
|
5241
|
+
className={cn(
|
|
5242
|
+
"grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-9",
|
|
5243
|
+
className,
|
|
5244
|
+
)}
|
|
5245
|
+
{...props}
|
|
5246
|
+
/>
|
|
5247
|
+
);
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
function QuestionnairePrevious({
|
|
5251
|
+
children,
|
|
5252
|
+
className,
|
|
5253
|
+
size = "default",
|
|
5254
|
+
variant = "outline",
|
|
5255
|
+
...props
|
|
5256
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &
|
|
5257
|
+
Pick<React.ComponentProps<typeof Button>, "size" | "variant">) {
|
|
5258
|
+
return (
|
|
5259
|
+
<QuestionnairePrimitive.Previous
|
|
5260
|
+
data-slot="questionnaire-previous"
|
|
5261
|
+
data-size={size}
|
|
5262
|
+
data-variant={variant}
|
|
5263
|
+
className={cn(
|
|
5264
|
+
buttonVariants({ size, variant }),
|
|
5265
|
+
"col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0",
|
|
5266
|
+
className,
|
|
5267
|
+
)}
|
|
5268
|
+
{...props}
|
|
5269
|
+
>
|
|
5270
|
+
{children ?? "Previous"}
|
|
5271
|
+
</QuestionnairePrimitive.Previous>
|
|
5272
|
+
);
|
|
5273
|
+
}
|
|
5274
|
+
|
|
5275
|
+
function QuestionnaireSkip({
|
|
5276
|
+
children,
|
|
5277
|
+
className,
|
|
5278
|
+
size = "default",
|
|
5279
|
+
variant = "outline",
|
|
5280
|
+
...props
|
|
5281
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &
|
|
5282
|
+
Pick<React.ComponentProps<typeof Button>, "size" | "variant">) {
|
|
5283
|
+
return (
|
|
5284
|
+
<QuestionnairePrimitive.Skip
|
|
5285
|
+
data-slot="questionnaire-skip"
|
|
5286
|
+
data-size={size}
|
|
5287
|
+
data-variant={variant}
|
|
5288
|
+
className={cn(
|
|
5289
|
+
buttonVariants({ size, variant }),
|
|
5290
|
+
"col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0",
|
|
5291
|
+
className,
|
|
5292
|
+
)}
|
|
5293
|
+
{...props}
|
|
5294
|
+
>
|
|
5295
|
+
{children ?? "Skip"}
|
|
5296
|
+
</QuestionnairePrimitive.Skip>
|
|
5297
|
+
);
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
function QuestionnaireNext({
|
|
5301
|
+
children,
|
|
5302
|
+
className,
|
|
5303
|
+
size = "default",
|
|
5304
|
+
variant = "default",
|
|
5305
|
+
...props
|
|
5306
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &
|
|
5307
|
+
Pick<React.ComponentProps<typeof Button>, "size" | "variant">) {
|
|
5308
|
+
return (
|
|
5309
|
+
<QuestionnairePrimitive.Next
|
|
5310
|
+
data-slot="questionnaire-next"
|
|
5311
|
+
data-size={size}
|
|
5312
|
+
data-variant={variant}
|
|
5313
|
+
className={cn(
|
|
5314
|
+
buttonVariants({ size, variant }),
|
|
5315
|
+
"col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0",
|
|
5316
|
+
className,
|
|
5317
|
+
)}
|
|
5318
|
+
{...props}
|
|
5319
|
+
>
|
|
5320
|
+
{children ?? "Next"}
|
|
5321
|
+
</QuestionnairePrimitive.Next>
|
|
5322
|
+
);
|
|
5323
|
+
}
|
|
5324
|
+
|
|
5325
|
+
function QuestionnaireSubmit({
|
|
5326
|
+
children,
|
|
5327
|
+
className,
|
|
5328
|
+
size = "default",
|
|
5329
|
+
variant = "default",
|
|
5330
|
+
...props
|
|
5331
|
+
}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &
|
|
5332
|
+
Pick<React.ComponentProps<typeof Button>, "size" | "variant">) {
|
|
5333
|
+
return (
|
|
5334
|
+
<QuestionnairePrimitive.Submit
|
|
5335
|
+
data-slot="questionnaire-submit"
|
|
5336
|
+
data-size={size}
|
|
5337
|
+
data-variant={variant}
|
|
5338
|
+
className={cn(
|
|
5339
|
+
buttonVariants({ size, variant }),
|
|
5340
|
+
"col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0",
|
|
5341
|
+
className,
|
|
5342
|
+
)}
|
|
5343
|
+
{...props}
|
|
5344
|
+
>
|
|
5345
|
+
{children ?? "Submit"}
|
|
5346
|
+
</QuestionnairePrimitive.Submit>
|
|
5347
|
+
);
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
export {
|
|
5351
|
+
Questionnaire,
|
|
5352
|
+
QuestionnaireActions,
|
|
5353
|
+
QuestionnaireChoice,
|
|
5354
|
+
QuestionnaireChoiceDescription,
|
|
5355
|
+
QuestionnaireChoices,
|
|
5356
|
+
QuestionnaireDescription,
|
|
5357
|
+
QuestionnaireError,
|
|
5358
|
+
QuestionnaireInput,
|
|
5359
|
+
QuestionnaireItem,
|
|
5360
|
+
QuestionnaireNext,
|
|
5361
|
+
QuestionnairePrevious,
|
|
5362
|
+
QuestionnaireProgress,
|
|
5363
|
+
QuestionnaireSkip,
|
|
5364
|
+
QuestionnaireSubmit,
|
|
5365
|
+
QuestionnaireTitle,
|
|
5366
|
+
};
|
|
5395
5367
|
`,"components/ui/select.tsx":`"use client";
|
|
5396
5368
|
|
|
5397
5369
|
import * as React from "react";
|
|
@@ -6143,4 +6115,4 @@ export const auth = betterAuth({
|
|
|
6143
6115
|
},
|
|
6144
6116
|
},
|
|
6145
6117
|
});
|
|
6146
|
-
`},WEB_APP_TEMPLATE_PACKAGE_JSON={scripts:{build:`next build`,"build:eve":`eve build`,dev:`next dev`,"dev:eve":`eve dev`,start:`next start`,"start:eve":`eve start`,typecheck:`tsc --noEmit -p tsconfig.json`},dependencies:{"@radix-ui/react-use-controllable-state":`1.2.2`,"@shikijs/core":`3.23.0`,"@shikijs/engine-javascript":`3.23.0`,"@shikijs/engine-oniguruma":`3.23.0`,"@streamdown/cjk":`1.0.3`,"@streamdown/code":`1.1.1`,"@streamdown/math":`1.0.2`,"@streamdown/mermaid":`1.0.2`,"@tailwindcss/postcss":`4.3.0`,"class-variance-authority":`0.7.1`,clsx:`2.1.1`,cmdk:`1.1.1`,"lucide-react":`1.16.0`,motion:`12.40.0`,nanoid:`5.1.11`,next:`16.3.6`,"radix-ui":`1.4.3`,react:`19.2.6`,"react-dom":`19.2.6`,shiki:`3.23.0`,streamdown:`2.5.0`,"tailwind-merge":`3.6.0`,tailwindcss:`4.3.0`,"use-stick-to-bottom":`1.1.4`,zod:`4.5.4`},devDependencies:{"@types/node":`26`,"@types/react":`19.2.15`,"@types/react-dom":`19.2.3`,typescript:`6.0.3`}};export{WEB_APP_SIGN_IN_WITH_VERCEL_TEMPLATE_FILES,WEB_APP_TEMPLATE_FILES,WEB_APP_TEMPLATE_PACKAGE_JSON,WEB_CHANNEL_TEMPLATES};
|
|
6118
|
+
`},WEB_APP_TEMPLATE_PACKAGE_JSON={scripts:{build:`next build`,"build:eve":`eve build`,dev:`next dev`,"dev:eve":`eve dev`,start:`next start`,"start:eve":`eve start`,typecheck:`tsc --noEmit -p tsconfig.json`},dependencies:{"@radix-ui/react-use-controllable-state":`1.2.2`,"@shadcn/react":`0.3.1`,"@shikijs/core":`3.23.0`,"@shikijs/engine-javascript":`3.23.0`,"@shikijs/engine-oniguruma":`3.23.0`,"@streamdown/cjk":`1.0.3`,"@streamdown/code":`1.1.1`,"@streamdown/math":`1.0.2`,"@streamdown/mermaid":`1.0.2`,"@tailwindcss/postcss":`4.3.0`,"class-variance-authority":`0.7.1`,clsx:`2.1.1`,cmdk:`1.1.1`,"lucide-react":`1.16.0`,motion:`12.40.0`,nanoid:`5.1.11`,next:`16.3.6`,"radix-ui":`1.4.3`,react:`19.2.6`,"react-dom":`19.2.6`,shiki:`3.23.0`,streamdown:`2.5.0`,"tailwind-merge":`3.6.0`,tailwindcss:`4.3.0`,"use-stick-to-bottom":`1.1.4`,zod:`4.5.4`},devDependencies:{"@types/node":`26`,"@types/react":`19.2.15`,"@types/react-dom":`19.2.3`,typescript:`6.0.3`}};export{WEB_APP_SIGN_IN_WITH_VERCEL_TEMPLATE_FILES,WEB_APP_TEMPLATE_FILES,WEB_APP_TEMPLATE_PACKAGE_JSON,WEB_CHANNEL_TEMPLATES};
|