eve 0.51.0 → 0.52.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 +46 -0
- package/dist/src/channel/session.d.ts +2 -1
- package/dist/src/channel/session.js +1 -1
- package/dist/src/channel/types.d.ts +4 -1
- package/dist/src/chunks/{use-eve-agent-C3vUG5g2.js → use-eve-agent-3DZuvuWE.js} +17 -6
- package/dist/src/chunks/{use-eve-agent-B4xN7-fK.js → use-eve-agent-D7apPojZ.js} +17 -6
- package/dist/src/cli/agent-command.js +1 -1
- package/dist/src/cli/commands/agent-instructions.d.ts +3 -1
- package/dist/src/cli/commands/agent-instructions.js +1 -1
- package/dist/src/cli/commands/build.js +1 -1
- package/dist/src/cli/commands/deploy.js +1 -1
- package/dist/src/cli/commands/init-agent-workspace.js +1 -1
- package/dist/src/cli/commands/init-repl.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/integration-connect.js +1 -1
- package/dist/src/cli/commands/link.js +1 -1
- package/dist/src/cli/commands/preconditions.js +1 -1
- package/dist/src/cli/commands/register-project-commands.d.ts +1 -1
- package/dist/src/cli/commands/register-project-commands.js +1 -1
- package/dist/src/cli/commands/registry.js +1 -1
- package/dist/src/cli/dev/boot-progress.d.ts +3 -0
- package/dist/src/cli/dev/boot-progress.js +1 -0
- package/dist/src/cli/dev/environment.js +1 -1
- package/dist/src/cli/dev/run-interactive-ui.js +1 -1
- package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
- package/dist/src/cli/dev/tui/setup-commands.d.ts +3 -1
- package/dist/src/cli/dev/tui/setup-commands.js +1 -1
- package/dist/src/cli/run.d.ts +4 -0
- package/dist/src/cli/run.js +3 -3
- package/dist/src/cli/telemetry/command.d.ts +9 -0
- package/dist/src/cli/telemetry/command.js +1 -0
- package/dist/src/cli/telemetry/flush.d.ts +2 -0
- package/dist/src/cli/telemetry/flush.js +1 -0
- package/dist/src/cli/telemetry/identity.d.ts +13 -0
- package/dist/src/cli/telemetry/identity.js +1 -0
- package/dist/src/cli/telemetry/index.d.ts +25 -0
- package/dist/src/cli/telemetry/index.js +3 -0
- package/dist/src/cli/telemetry/preference.d.ts +9 -0
- package/dist/src/cli/telemetry/preference.js +1 -0
- package/dist/src/client/open-stream.js +1 -1
- package/dist/src/client/session-controls.d.ts +3 -0
- package/dist/src/client/session-controls.js +1 -1
- package/dist/src/client/session.d.ts +4 -1
- package/dist/src/client/types.d.ts +3 -2
- package/dist/src/compiled/.vendor-stamp.json +11 -11
- package/dist/src/compiled/@clack/core/LICENSE +9 -0
- package/dist/src/compiled/@clack/core/index.d.ts +363 -0
- package/dist/src/compiled/@clack/core/index.js +20 -0
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/@modelcontextprotocol/server/index.d.ts +1 -0
- package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +34 -92
- package/dist/src/compiled/@vercel/sandbox/api-client/base-client.d.ts +1 -1
- package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +1 -1
- package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +13 -29
- package/dist/src/compiled/@vercel/sandbox/constants.d.ts +11 -1
- package/dist/src/compiled/@vercel/sandbox/index.d.ts +3 -3
- package/dist/src/compiled/@vercel/sandbox/index.js +9 -9
- package/dist/src/compiled/@vercel/sandbox/sandbox-user.d.ts +5 -6
- package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +79 -67
- package/dist/src/compiled/@vercel/sandbox/session.d.ts +5 -3
- package/dist/src/compiled/@vercel/sandbox/snapshot.d.ts +9 -0
- package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/api-client.d.ts +86 -1
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/index.d.ts +2 -0
- package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/validators.d.ts +26 -1
- package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/constants.d.ts +2 -2
- package/dist/src/compiled/@vercel/{sandbox → sandbox-drives}/drive.d.ts +10 -0
- package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/index.d.ts +3 -2
- package/dist/src/compiled/@vercel/sandbox-drives/index.js +9 -0
- package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/sandbox.d.ts +35 -6
- package/dist/src/compiled/@workflow/core/index.js +1 -1
- package/dist/src/compiled/@workflow/core/private.d.ts +2 -4
- package/dist/src/compiled/@workflow/core/private.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +9 -7
- package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +13 -0
- package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +54 -1
- package/dist/src/compiled/@workflow/core/runtime.js +3 -3
- package/dist/src/compiled/@workflow/core/serialization/types.d.ts +7 -0
- package/dist/src/compiled/@workflow/core/serialization.d.ts +24 -2
- 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/errors/error-codes.d.ts +2 -0
- package/dist/src/compiled/@workflow/errors/index.d.ts +19 -0
- package/dist/src/compiled/@workflow/errors/index.js +1 -1
- package/dist/src/compiled/@workflow/world/analytics.d.ts +46 -2
- package/dist/src/compiled/@workflow/world/events.d.ts +26 -1
- package/dist/src/compiled/@workflow/world/index.d.ts +1 -1
- package/dist/src/compiled/@workflow/world/runs.d.ts +2 -2
- package/dist/src/compiled/@workflow/world-local/index.js +3 -3
- package/dist/src/compiled/@workflow/world-vercel/index.js +12 -12
- package/dist/src/compiled/_chunks/node/{auth-BSKyPAEP.js → auth-Bx1Aoyfo.js} +1 -1
- package/dist/src/compiled/_chunks/node/{auth-YpKlwhP1.js → auth-CA8ZMfB8.js} +1 -1
- package/dist/src/compiled/_chunks/node/esm-CE0tAvRh.js +7 -0
- package/dist/src/compiled/_chunks/node/version-BC6t2Txc.js +1 -0
- package/dist/src/compiled/_chunks/node/version-DSQqVZ5T.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{attribute-changes-BwAadFfB.js → attribute-changes-03lzo29R.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/dist-BIdMK5N8.js +40 -0
- package/dist/src/compiled/_chunks/workflow/dist-DMQ3CtWt.js +3 -0
- package/dist/src/compiled/_chunks/workflow/frames-Boesh7kU.js +3 -0
- package/dist/src/compiled/_chunks/workflow/{private-CZFMABEf.js → private-CKx3PkSS.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{resume-hook-BToMtPbH.js → resume-hook-C6eL-S_T.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/run-BV0S6Zc2.js +1 -0
- package/dist/src/compiled/_chunks/workflow/sleep-Bh3jP9ii.js +1 -0
- package/dist/src/compiled/_chunks/workflow/wait-until-l-cwfJvm.js +15 -0
- package/dist/src/compiled/_chunks/workflow/{ws-transport-PnVVxT0R.js → ws-transport-BagXNxCE.js} +1 -1
- package/dist/src/compiler/compile-from-memory.d.ts +1 -0
- package/dist/src/compiler/extension-compatibility.d.ts +38 -20
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.d.ts +2 -2
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/compiler/normalize-channel.js +1 -1
- package/dist/src/compiler/normalize-schedule.js +1 -1
- package/dist/src/compiler/normalize-tool.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/discover/extensions.d.ts +2 -0
- package/dist/src/discover/extensions.js +1 -1
- package/dist/src/discover/filesystem.d.ts +1 -0
- package/dist/src/discover/filesystem.js +1 -1
- package/dist/src/discover/project.js +1 -1
- package/dist/src/evals/runner/execute-task.js +1 -1
- package/dist/src/evals/session-cleanup.d.ts +7 -0
- package/dist/src/evals/session-cleanup.js +1 -0
- package/dist/src/evals/session.d.ts +4 -0
- package/dist/src/evals/session.js +1 -1
- package/dist/src/eve-channel/index.js +1 -1
- package/dist/src/eve-channel/request.d.ts +1 -0
- package/dist/src/eve-channel/request.js +1 -1
- package/dist/src/execution/activity-collector.js +1 -1
- package/dist/src/execution/activity-work.d.ts +8 -0
- package/dist/src/execution/activity-work.js +1 -1
- package/dist/src/execution/cancel-indexed-session-tasks-step.d.ts +6 -0
- package/dist/src/execution/cancel-indexed-session-tasks-step.js +1 -0
- package/dist/src/execution/continuation-conflict-step.js +1 -1
- package/dist/src/execution/coordination-dispatch-shared.d.ts +2 -2
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/coordination-dispatch-step.js +1 -1
- package/dist/src/execution/create-session-step.js +1 -1
- package/dist/src/execution/durable-session-migrations/turn-workflow.d.ts +1 -1
- package/dist/src/execution/inline-turn.d.ts +4 -2
- package/dist/src/execution/inline-turn.js +1 -1
- package/dist/src/execution/next-driver-action.d.ts +0 -3
- package/dist/src/execution/parked-delivery-wait.js +1 -1
- package/dist/src/execution/proxied-deliver-step.js +1 -1
- package/dist/src/execution/run-session-limits.d.ts +5 -5
- package/dist/src/execution/sandbox/bindings/vercel-create-sdk.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel-sdk-types.d.ts +4 -4
- package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
- package/dist/src/execution/session-activity-projection.js +1 -1
- package/dist/src/execution/session-activity.js +1 -1
- package/dist/src/execution/session-timeout-workflow.js +1 -1
- package/dist/src/execution/session.d.ts +1 -0
- package/dist/src/execution/session.js +1 -1
- package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
- package/dist/src/execution/tasks/child/steps.d.ts +19 -1
- package/dist/src/execution/tasks/child/steps.js +1 -1
- package/dist/src/execution/tasks/child/workflow.d.ts +2 -0
- package/dist/src/execution/tasks/child/workflow.js +1 -1
- package/dist/src/execution/tasks/parent/control-shared.js +1 -1
- package/dist/src/execution/tasks/parent/delegate.d.ts +2 -0
- package/dist/src/execution/tasks/parent/delegate.js +1 -1
- package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +1 -1
- package/dist/src/execution/tasks/parent/subagent-task-projection.d.ts +26 -0
- package/dist/src/execution/tasks/parent/subagent-task-projection.js +1 -0
- package/dist/src/execution/tasks/parent/tool-execution.js +1 -1
- package/dist/src/execution/terminate-child-sessions-step.js +1 -1
- package/dist/src/execution/tools/sleep-workflow.d.ts +3 -0
- package/dist/src/execution/tools/sleep-workflow.js +1 -0
- package/dist/src/execution/tools/sleep.d.ts +1 -5
- package/dist/src/execution/tools/sleep.js +1 -1
- package/dist/src/execution/tools/subagent/accept-event-step.js +1 -1
- package/dist/src/execution/tools/subagent/invoke-agent.d.ts +1 -7
- package/dist/src/execution/tools/subagent/invoke-agent.js +1 -1
- package/dist/src/execution/tools/subagent/invoke-step.js +1 -1
- package/dist/src/execution/tools/workflow/ask.d.ts +1 -2
- package/dist/src/execution/tools/workflow/ask.js +1 -1
- package/dist/src/execution/tools/workflow/body.d.ts +6 -1
- package/dist/src/execution/tools/workflow/body.js +1 -1
- package/dist/src/execution/tools/workflow/cancel.js +1 -1
- package/dist/src/execution/tools/workflow/messages.d.ts +9 -8
- package/dist/src/execution/tools/workflow/messages.js +1 -1
- package/dist/src/execution/tools/workflow/owner-inbox.d.ts +2 -2
- package/dist/src/execution/tools/workflow/owner-inbox.js +1 -1
- package/dist/src/execution/tools/workflow/owner.d.ts +5 -11
- package/dist/src/execution/tools/workflow/owner.js +1 -1
- package/dist/src/execution/tools/workflow/run-control.d.ts +0 -4
- package/dist/src/execution/tools/workflow/run-control.js +1 -1
- package/dist/src/execution/tools/workflow/start.d.ts +5 -14
- package/dist/src/execution/tools/workflow/start.js +1 -1
- package/dist/src/execution/tools/workflow/workflow.d.ts +1 -1
- package/dist/src/execution/tools/workflow/workflow.js +1 -1
- package/dist/src/execution/turn-cancellation-control.d.ts +1 -0
- package/dist/src/execution/turn-cancellation-control.js +1 -1
- package/dist/src/execution/turn-cancellation-token.d.ts +1 -0
- package/dist/src/execution/turn-control-receiver.d.ts +3 -0
- package/dist/src/execution/turn-control-receiver.js +1 -1
- package/dist/src/execution/turn-dispatch.d.ts +2 -0
- package/dist/src/execution/turn-dispatch.js +1 -1
- package/dist/src/execution/turn-workflow-tool-run.d.ts +2 -8
- package/dist/src/execution/turn-workflow-tool-run.js +1 -1
- package/dist/src/execution/turn-workflow.d.ts +1 -0
- package/dist/src/execution/turn-workflow.js +1 -1
- package/dist/src/execution/wire/session-inbox-contract.d.ts +2 -2
- package/dist/src/execution/wire/session-inbox-contract.js +1 -1
- package/dist/src/execution/wire/session-inbox-encoder.d.ts +10 -2
- package/dist/src/execution/wire/session-inbox-encoder.js +1 -1
- package/dist/src/execution/wire/session-inbox-resume.js +1 -1
- package/dist/src/execution/wire/session-inbox-wire.js +1 -1
- package/dist/src/execution/wire/session-inbox-wire.v5.d.ts +341 -0
- package/dist/src/execution/wire/session-inbox-wire.v5.js +1 -0
- package/dist/src/execution/wire/session-inbox-wire.v5.migration.d.ts +3 -0
- package/dist/src/execution/wire/session-inbox-wire.v5.migration.js +1 -0
- package/dist/src/execution/wire/session-inbox-wire.v6.d.ts +341 -0
- package/dist/src/execution/wire/session-inbox-wire.v6.js +1 -0
- package/dist/src/execution/workflow-entry.js +1 -1
- package/dist/src/execution/workflow-runtime.js +1 -1
- package/dist/src/execution/workflow-steps.js +1 -1
- package/dist/src/harness/emission-state.js +1 -1
- package/dist/src/harness/session-limit-continuation.d.ts +5 -5
- package/dist/src/harness/session-limit-continuation.js +1 -1
- package/dist/src/harness/session-limit-enforcement.d.ts +4 -4
- package/dist/src/harness/session-limit-enforcement.js +1 -1
- package/dist/src/harness/session-usage-limits.d.ts +48 -0
- package/dist/src/harness/session-usage-limits.js +1 -0
- package/dist/src/harness/tool-loop.js +2 -2
- package/dist/src/harness/turn-client-context.d.ts +9 -0
- package/dist/src/harness/turn-client-context.js +1 -0
- package/dist/src/harness/turn-tag-state.d.ts +17 -20
- package/dist/src/harness/turn-tag-state.js +1 -1
- package/dist/src/harness/types.d.ts +5 -0
- package/dist/src/harness/workflow-tool-runs.d.ts +0 -1
- package/dist/src/harness/workflow-tool-runs.js +1 -1
- package/dist/src/internal/application/build-output-environment.d.ts +1 -0
- package/dist/src/internal/application/build-output-environment.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/application/paths.js +1 -1
- package/dist/src/internal/authored-definition/core.js +1 -1
- package/dist/src/internal/authored-definition/schema-backed.js +1 -1
- package/dist/src/internal/eve-project-root.d.ts +8 -0
- package/dist/src/internal/eve-project-root.js +1 -0
- package/dist/src/internal/invocation/workflow-execution.js +1 -1
- package/dist/src/internal/mcp/streamable-http-server.d.ts +29 -1
- package/dist/src/internal/mcp/streamable-http-server.js +1 -1
- package/dist/src/internal/nitro/host/build-application.js +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts +1 -0
- package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
- package/dist/src/internal/nitro/host/types.d.ts +2 -0
- package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +1 -0
- package/dist/src/internal/nitro/host/vercel-build-output-config.js +1 -1
- package/dist/src/internal/project-context.d.ts +13 -8
- package/dist/src/internal/project-context.js +1 -1
- package/dist/src/internal/vercel/build-agent-workspace.d.ts +1 -1
- package/dist/src/internal/vercel/build-agent-workspace.js +1 -1
- package/dist/src/internal/vercel/eve-service-contribution.d.ts +1 -0
- package/dist/src/internal/vercel/eve-service-contribution.js +1 -1
- package/dist/src/internal/workflow/reference.d.ts +2 -0
- package/dist/src/internal/workflow/reference.js +1 -0
- package/dist/src/internal/workflow/runtime.d.ts +6 -0
- package/dist/src/internal/workflow/runtime.js +1 -1
- package/dist/src/internal/workflow-bundle/authored-workflow-directives.d.ts +1 -3
- package/dist/src/internal/workflow-bundle/authored-workflow-directives.js +1 -1
- package/dist/src/internal/workflow-bundle/authored-workflow-modules.d.ts +1 -11
- package/dist/src/internal/workflow-bundle/authored-workflow-modules.js +1 -1
- package/dist/src/internal/workflow-bundle/builder.js +1 -1
- package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +1 -1
- package/dist/src/internal/workflow-bundle/workflow-builders.d.ts +1 -3
- package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -1
- package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +1 -1
- package/dist/src/internal/workflow-bundle/workflow-transformer.js +2 -2
- package/dist/src/protocol/message.d.ts +3 -2
- package/dist/src/public/channels/mcp.js +1 -1
- package/dist/src/public/channels/slack/activity-plan.d.ts +4 -0
- package/dist/src/public/channels/slack/activity-plan.js +1 -0
- package/dist/src/public/channels/slack/activity.d.ts +45 -2
- package/dist/src/public/channels/slack/activity.js +2 -1
- package/dist/src/public/channels/slack/index.d.ts +1 -1
- package/dist/src/public/channels/slack/index.js +1 -1
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/memory/index.js +1 -1
- package/dist/src/public/models/openai/chatgpt/model.js +2 -2
- package/dist/src/public/models/openai/chatgpt/transport.js +1 -1
- package/dist/src/public/nuxt/index.js +1 -1
- package/dist/src/public/nuxt/module.d.ts +3 -2
- package/dist/src/public/nuxt/module.js +1 -1
- package/dist/src/public/sandbox/vercel-sandbox.d.ts +9 -5
- package/dist/src/public/sandbox/vercel.d.ts +1 -1
- package/dist/src/public/sandbox/vercel.js +1 -1
- package/dist/src/public/tools/index.d.ts +3 -1
- package/dist/src/public/tools/index.js +1 -1
- package/dist/src/runtime/resolve-agent.js +1 -1
- package/dist/src/runtime/subagents/workflow.js +1 -1
- package/dist/src/self-modification/agent.d.ts +22 -0
- package/dist/src/self-modification/agent.js +1 -0
- package/dist/src/self-modification/extension/classify-registry-item.d.ts +19 -0
- package/dist/src/self-modification/extension/classify-registry-item.js +1 -0
- package/dist/src/self-modification/extension/eve-add.d.ts +56 -0
- package/dist/src/self-modification/extension/eve-add.js +2 -0
- package/dist/src/self-modification/extension/extension.d.ts +2 -0
- package/dist/src/self-modification/extension/extension.js +1 -0
- package/dist/src/self-modification/extension/instructions.d.ts +4 -0
- package/dist/src/self-modification/extension/instructions.js +23 -0
- package/dist/src/self-modification/extension/source-lock.d.ts +2 -0
- package/dist/src/self-modification/extension/source-lock.js +1 -0
- package/dist/src/self-modification/extension/tools/edit_file.d.ts +16 -0
- package/dist/src/self-modification/extension/tools/edit_file.js +1 -0
- package/dist/src/self-modification/extension/tools/registry_add.d.ts +52 -0
- package/dist/src/self-modification/extension/tools/registry_add.js +1 -0
- package/dist/src/self-modification/extension/tools/search_models.d.ts +22 -0
- package/dist/src/self-modification/extension/tools/search_models.js +1 -0
- package/dist/src/self-modification/extension/tools/search_registry.d.ts +103 -0
- package/dist/src/self-modification/extension/tools/search_registry.js +1 -0
- package/dist/src/self-modification/filesystem.d.ts +6 -0
- package/dist/src/self-modification/filesystem.js +1 -0
- package/dist/src/self-modification/sandbox.d.ts +2 -0
- package/dist/src/self-modification/sandbox.js +1 -0
- package/dist/src/services/dev-client/target.d.ts +3 -1
- package/dist/src/setup/boxes/select-model.d.ts +3 -21
- package/dist/src/setup/boxes/select-model.js +1 -1
- package/dist/src/setup/cli/prompt-ui.js +4 -4
- package/dist/src/setup/cli/select-component.d.ts +1 -1
- package/dist/src/setup/cli/select-component.js +1 -1
- package/dist/src/setup/flows/model.d.ts +3 -0
- package/dist/src/setup/flows/model.js +1 -1
- package/dist/src/setup/prompter.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/setup/scaffold/update/web-options.js +1 -1
- package/dist/src/shared/action-types.d.ts +35 -22
- package/dist/src/shared/action-types.js +1 -1
- package/dist/src/shared/agent-definition.d.ts +13 -0
- package/dist/src/shared/agent-turn-outcome.d.ts +2 -0
- package/dist/src/shared/agent-turn-outcome.js +1 -1
- package/dist/src/shared/extension-package-contract.d.ts +2 -0
- package/dist/src/shared/extension-package-contract.js +1 -1
- package/dist/src/shared/gateway-model-catalog.d.ts +21 -0
- package/dist/src/shared/gateway-model-catalog.js +1 -0
- package/dist/src/shared/sandbox-network-policy.d.ts +1 -1
- package/dist/src/shared/token-usage.d.ts +11 -15
- package/dist/src/shared/token-usage.js +1 -1
- package/dist/src/shared/workflow-tool-context.d.ts +2 -0
- package/dist/src/shared/workflow-tool-context.js +1 -0
- package/dist/src/subagents/callback-route.js +1 -1
- package/dist/src/subagents/event-proxy-step.js +1 -1
- package/dist/src/subagents/start-remote.js +1 -1
- package/dist/src/subagents/token-budget.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tasks/types.d.ts +18 -1
- package/dist/src/tasks/types.js +1 -1
- package/dist/src/tools/behavior.d.ts +5 -0
- package/dist/src/tools/definition.d.ts +16 -12
- package/dist/src/tools/definition.js +1 -1
- package/dist/src/tools/dynamic.d.ts +2 -2
- package/dist/src/tools/provided/sleep.d.ts +4 -4
- package/dist/src/tools/provided/sleep.js +1 -1
- package/dist/src/tools/task.d.ts +28 -80
- package/dist/src/tools/task.js +1 -1
- package/dist/src/tools/workflow-definition.d.ts +60 -0
- package/dist/src/tools/workflow-definition.js +1 -0
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +24 -19
- package/docs/channels/eve.mdx +1 -1
- package/docs/channels/mcp.mdx +25 -3
- package/docs/concepts/built-in-tools.md +1 -1
- package/docs/concepts/execution-model-and-durability.mdx +13 -2
- package/docs/concepts/sessions-runs-and-streaming.md +9 -1
- package/docs/guides/client/messages.mdx +1 -1
- package/docs/guides/client/streaming.mdx +1 -1
- package/docs/guides/deployment/vercel.mdx +3 -1
- package/docs/guides/frontend/overview.mdx +1 -1
- package/docs/memory/overview.mdx +41 -12
- package/docs/reference/cli.md +31 -33
- package/docs/reference/meta.json +1 -4
- package/docs/reference/telemetry.md +56 -0
- package/docs/reference/typescript-api.md +38 -35
- package/docs/sandbox.mdx +1 -1
- package/docs/tools/overview.mdx +59 -18
- package/docs/tools/workflows.mdx +146 -70
- package/package.json +38 -19
- package/dist/src/compiled/@vercel/sandbox-delete/api-client/index.d.ts +0 -2
- package/dist/src/compiled/@vercel/sandbox-delete/index.js +0 -9
- package/dist/src/compiled/@vercel/sandbox-stable/LICENSE +0 -201
- package/dist/src/compiled/@vercel/sandbox-stable/_async-retry.d.ts +0 -8
- package/dist/src/compiled/@vercel/sandbox-stable/_workflow-serde.d.ts +0 -5
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/api-client.d.ts +0 -1456
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/api-error.d.ts +0 -29
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/base-client.d.ts +0 -39
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/file-writer.d.ts +0 -66
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/index.d.ts +0 -2
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/validators.d.ts +0 -899
- package/dist/src/compiled/@vercel/sandbox-stable/api-client/with-retry.d.ts +0 -10
- package/dist/src/compiled/@vercel/sandbox-stable/auth/error.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox-stable/auth/file.d.ts +0 -18
- package/dist/src/compiled/@vercel/sandbox-stable/auth/index.d.ts +0 -6
- package/dist/src/compiled/@vercel/sandbox-stable/auth/oauth.d.ts +0 -111
- package/dist/src/compiled/@vercel/sandbox-stable/auth/poll-for-token.d.ts +0 -28
- package/dist/src/compiled/@vercel/sandbox-stable/auth/project.d.ts +0 -40
- package/dist/src/compiled/@vercel/sandbox-stable/command.d.ts +0 -292
- package/dist/src/compiled/@vercel/sandbox-stable/constants.d.ts +0 -5
- package/dist/src/compiled/@vercel/sandbox-stable/execution-context.d.ts +0 -116
- package/dist/src/compiled/@vercel/sandbox-stable/filesystem.d.ts +0 -258
- package/dist/src/compiled/@vercel/sandbox-stable/index.d.ts +0 -12
- package/dist/src/compiled/@vercel/sandbox-stable/index.js +0 -1
- package/dist/src/compiled/@vercel/sandbox-stable/network-policy.d.ts +0 -169
- package/dist/src/compiled/@vercel/sandbox-stable/proxy.d.ts +0 -55
- package/dist/src/compiled/@vercel/sandbox-stable/sandbox-user.d.ts +0 -212
- package/dist/src/compiled/@vercel/sandbox-stable/sandbox.d.ts +0 -1216
- package/dist/src/compiled/@vercel/sandbox-stable/session.d.ts +0 -433
- package/dist/src/compiled/@vercel/sandbox-stable/snapshot.d.ts +0 -229
- package/dist/src/compiled/@vercel/sandbox-stable/utils/get-credentials.d.ts +0 -21
- package/dist/src/compiled/@vercel/sandbox-stable/utils/paginator.d.ts +0 -16
- package/dist/src/compiled/@vercel/sandbox-stable/utils/resolveSignal.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox-stable/utils/sandbox-snapshot.d.ts +0 -11
- package/dist/src/compiled/@vercel/sandbox-stable/utils/types.d.ts +0 -11
- package/dist/src/compiled/_chunks/node/decode_jwt-Col8JOnf.js +0 -7
- package/dist/src/compiled/_chunks/node/version-BYHw-SDY.js +0 -1
- package/dist/src/compiled/_chunks/node/version-DH6yRy-M.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-CgbVZs5l.js +0 -40
- package/dist/src/compiled/_chunks/workflow/dist-DjojkP5e.js +0 -3
- package/dist/src/compiled/_chunks/workflow/frames-CZ9eHShe.js +0 -3
- package/dist/src/compiled/_chunks/workflow/run-DzyAoGh4.js +0 -1
- package/dist/src/compiled/_chunks/workflow/sleep-3_A5uOp-.js +0 -1
- package/dist/src/compiled/_chunks/workflow/wait-until-BtySPYD0.js +0 -15
- package/dist/src/harness/session-token-limits.d.ts +0 -41
- package/dist/src/harness/session-token-limits.js +0 -1
- package/dist/src/harness/turn-sleep.d.ts +0 -12
- package/dist/src/harness/turn-sleep.js +0 -1
- package/dist/src/internal/agent-workspace.d.ts +0 -15
- package/dist/src/internal/agent-workspace.js +0 -1
- package/dist/src/node_modules/.pnpm/@clack_core@1.3.1/node_modules/@clack/core/dist/index.js +0 -16
- package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js +0 -1
- package/dist/src/node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js +0 -5
- package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js +0 -1
- package/dist/src/public/workflow/index.d.ts +0 -5
- package/dist/src/public/workflow/index.js +0 -1
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/LICENSE +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/_async-retry.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/_workflow-serde.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/api-error.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/base-client.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/file-writer.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/with-retry.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/error.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/file.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/index.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/oauth.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/poll-for-token.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/project.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/command.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/execution-context.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/filesystem.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/network-policy.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/proxy.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/sandbox-user.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/session.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/snapshot.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/get-credentials.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/paginator.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/resolveSignal.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/sandbox-snapshot.d.ts +0 -0
- /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/types.d.ts +0 -0
package/dist/src/node_modules/.pnpm/@clack_core@1.3.1/node_modules/@clack/core/dist/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{wrapAnsi}from"../../../../../fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js";import{require_src}from"../../../../../sisteransi@1.0.5/node_modules/sisteransi/src/index.js";import{styleText}from"node:util";import*as b from"node:readline";import E from"node:readline";import{stdin,stdout}from"node:process";import{ReadStream}from"node:tty";var import_src=require_src();function f(e,t,r){if(!r.some(e=>!e.disabled))return e;let i=e+t,a=Math.max(r.length-1,0),o=i<0?a:i>a?0:i;return r[o].disabled?f(o,t<0?-1:1,r):o}function I(e,t,r,i){let a=i.split(`
|
|
2
|
-
`),o=0,s=e;for(let e of a){if(s<=e.length)break;s-=e.length+1,o++}for(o=Math.max(0,Math.min(a.length-1,o+r)),s=Math.min(s,a[o].length)+t;s<0&&o>0;)o--,s+=a[o].length+1;for(;s>a[o].length&&o<a.length-1;)s-=a[o].length+1,o++;s=Math.max(0,Math.min(a[o].length,s));let c=0;for(let e=0;e<o;e++)c+=a[e].length+1;return c+s}const h={actions:new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]]),messages:{cancel:`Canceled`,error:`Something went wrong`},withGuide:!0,date:{monthNames:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],messages:{required:`Please enter a valid date`,invalidMonth:`There are only 12 months in a year`,invalidDay:(e,t)=>`There are only ${e} days in ${t}`,afterMin:e=>`Date must be on or after ${e.toISOString().slice(0,10)}`,beforeMax:e=>`Date must be on or before ${e.toISOString().slice(0,10)}`}}};function j(e){if(e.aliases!==void 0){let t=e.aliases;for(let e in t){if(!Object.hasOwn(t,e))continue;let r=t[e];h.actions.has(r)&&(h.aliases.has(e)||h.aliases.set(e,r))}}if(e.messages!==void 0){let t=e.messages;t.cancel!==void 0&&(h.messages.cancel=t.cancel),t.error!==void 0&&(h.messages.error=t.error)}if(e.withGuide!==void 0&&(h.withGuide=e.withGuide!==!1),e.date!==void 0){let t=e.date;t.monthNames!==void 0&&(h.date.monthNames=[...t.monthNames]),t.messages!==void 0&&(t.messages.required!==void 0&&(h.date.messages.required=t.messages.required),t.messages.invalidMonth!==void 0&&(h.date.messages.invalidMonth=t.messages.invalidMonth),t.messages.invalidDay!==void 0&&(h.date.messages.invalidDay=t.messages.invalidDay),t.messages.afterMin!==void 0&&(h.date.messages.afterMin=t.messages.afterMin),t.messages.beforeMax!==void 0&&(h.date.messages.beforeMax=t.messages.beforeMax))}}function C(e,t){if(typeof e==`string`)return h.aliases.get(e)===t;for(let r of e)if(r!==void 0&&C(r,t))return!0;return!1}function z(e,t){if(e===t)return;let r=e.split(`
|
|
3
|
-
`),i=t.split(`
|
|
4
|
-
`),a=Math.max(r.length,i.length),o=[];for(let e=0;e<a;e++)r[e]!==i[e]&&o.push(e);return{lines:o,numLinesBefore:r.length,numLinesAfter:i.length,numLines:a}}const Y=globalThis.process.platform.startsWith(`win`),k=Symbol(`clack:cancel`);function q(e){return e===k}function w(e,t){let r=e;r.isTTY&&r.setRawMode(t)}function R({input:e=stdin,output:t=stdout,overwrite:r=!0,hideCursor:a=!0}={}){let u=b.createInterface({input:e,output:t,prompt:``,tabSize:1});b.emitKeypressEvents(e,u),e instanceof ReadStream&&e.isTTY&&e.setRawMode(!0);let n=(o,{name:s,sequence:c})=>{if(C([String(o),s,c],`cancel`)){a&&t.write(import_src.cursor.show),process.exit(0);return}if(!r)return;let u=s===`return`?0:-1,d=s===`return`?-1:0;b.moveCursor(t,u,d,()=>{b.clearLine(t,1,()=>{e.once(`keypress`,n)})})};return a&&t.write(import_src.cursor.hide),e.once(`keypress`,n),()=>{e.off(`keypress`,n),a&&t.write(import_src.cursor.show),e instanceof ReadStream&&e.isTTY&&!Y&&e.setRawMode(!1),u.terminal=!1,u.close()}}const A=e=>`columns`in e&&typeof e.columns==`number`?e.columns:80,L=e=>`rows`in e&&typeof e.rows==`number`?e.rows:20;function W(t,r,i,a=i,o=i,c){return wrapAnsi(r,A(t??stdout)-i.length,{hard:!0,trim:!1}).split(`
|
|
5
|
-
`).map((e,t,r)=>{let s=c?c(e,t):e;return t===0?`${a}${s}`:t===r.length-1?`${o}${s}`:`${i}${s}`}).join(`
|
|
6
|
-
`)}let m=class{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame=``;_subscribers=new Map;_cursor=0;state=`initial`;error=``;value;userInput=``;constructor(e,t=!0){let{input:r=stdin,output:i=stdout,render:a,signal:c,...l}=e;this.opts=l,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=a.bind(this),this._track=t,this._abortSignal=c,this.input=r,this.output=i}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let r=this._subscribers.get(e)??[];r.push(t),this._subscribers.set(e,r)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let r=this._subscribers.get(e)??[],i=[];for(let e of r)e.cb(...t),e.once&&i.push(()=>r.splice(r.indexOf(e),1));for(let e of i)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(k);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}this.rl=E.createInterface({input:this.input,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on(`keypress`,this.onKeypress),w(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(import_src.cursor.show),this.output.off(`resize`,this.render),w(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(import_src.cursor.show),this.output.off(`resize`,this.render),w(this.input,!1),e(k)})})}_isActionKey(e,t){return e===` `}_shouldSubmit(e,t){return!0}_setValue(e){this.value=e,this.emit(`value`,this.value)}_setUserInput(e,t){this.userInput=e??``,this.emit(`userInput`,this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:`u`}),this._setUserInput(``)}onKeypress(e,t){if(this._track&&t.name!==`return`&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:`h`}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&h.aliases.has(t.name)&&this.emit(`cursor`,h.aliases.get(t.name)),h.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),this.emit(`key`,e?.toLowerCase(),t),t?.name===`return`&&this._shouldSubmit(e,t)){if(this.opts.validate){let e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state=`error`,this.rl?.write(this.userInput))}this.state!==`error`&&(this.state=`submit`)}C([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
|
|
7
|
-
`),w(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=wrapAnsi(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
|
|
8
|
-
`).length-1;this.output.write(import_src.cursor.move(-999,t*-1))}render(){let t=wrapAnsi(this._render(this)??``,process.stdout.columns,{hard:!0,trim:!1});if(t!==this._prevFrame){if(this.state===`initial`)this.output.write(import_src.cursor.hide);else{let e=z(this._prevFrame,t),r=L(this.output);if(this.restoreCursor(),e){let i=Math.max(0,e.numLinesAfter-r),a=Math.max(0,e.numLinesBefore-r),o=e.lines.find(e=>e>=i);if(o===void 0){this._prevFrame=t;return}if(e.lines.length===1){this.output.write(import_src.cursor.move(0,o-a)),this.output.write(import_src.erase.lines(1));let e=t.split(`
|
|
9
|
-
`);this.output.write(e[o]),this._prevFrame=t,this.output.write(import_src.cursor.move(0,e.length-o-1));return}else if(e.lines.length>1){if(i<a)o=i;else{let e=o-a;e>0&&this.output.write(import_src.cursor.move(0,e))}this.output.write(import_src.erase.down());let e=t.split(`
|
|
10
|
-
`).slice(o);this.output.write(e.join(`
|
|
11
|
-
`)),this._prevFrame=t;return}}this.output.write(import_src.erase.down())}this.output.write(t),this.state===`initial`&&(this.state=`active`),this._prevFrame=t}}};function B(e,t){if(e===void 0||t.length===0)return 0;let r=t.findIndex(t=>t.value===e);return r===-1?0:r}function J(e,t){return(t.label??String(t.value)).toLowerCase().includes(e.toLowerCase())}function H(e,t){if(t)return e?t:t[0]}let Q=class extends m{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#e=0;#t=``;#n;#r;#i;get cursor(){return this.#e}get userInputWithCursor(){if(!this.userInput)return styleText([`inverse`,`hidden`],`_`);if(this._cursor>=this.userInput.length)return`${this.userInput}\u2588`;let e=this.userInput.slice(0,this._cursor),[t,...i]=this.userInput.slice(this._cursor);return`${e}${styleText(`inverse`,t)}${i.join(``)}`}get options(){return typeof this.#r==`function`?this.#r():this.#r}constructor(e){super(e),this.#r=e.options,this.#i=e.placeholder;let t=this.options;this.filteredOptions=[...t],this.multiple=e.multiple===!0,this.#n=typeof e.options==`function`?e.filter:e.filter??J;let r;if(e.initialValue&&Array.isArray(e.initialValue)?r=this.multiple?e.initialValue:e.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(r=[this.options[0].value]),r)for(let e of r){let r=t.findIndex(t=>t.value===e);r!==-1&&(this.toggleSelected(e),this.#e=r)}this.focusedValue=this.options[this.#e]?.value,this.on(`key`,(e,t)=>this.#a(e,t)),this.on(`userInput`,e=>this.#o(e))}_isActionKey(e,t){return e===` `||this.multiple&&this.isNavigating&&t.name===`space`&&e!==void 0&&e!==``}#a(e,t){let r=t.name===`up`,i=t.name===`down`,a=t.name===`return`,o=this.userInput===``||this.userInput===` `,s=this.#i,c=this.options,l=s!==void 0&&s!==``&&c.some(e=>!e.disabled&&(!this.#n||this.#n(s,e)));if(t.name===`tab`&&o&&l){this.userInput===` `&&this._clearUserInput(),this._setUserInput(s,!0),this.isNavigating=!1;return}r||i?(this.#e=f(this.#e,r?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#e]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):a?this.value=H(this.multiple,this.selectedValues):this.multiple?this.focusedValue!==void 0&&(t.name===`tab`||this.isNavigating&&t.name===`space`)?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected(e){this.filteredOptions.length!==0&&(this.multiple?this.selectedValues.includes(e)?this.selectedValues=this.selectedValues.filter(t=>t!==e):this.selectedValues=[...this.selectedValues,e]:this.selectedValues=[e])}#o(e){if(e!==this.#t){this.#t=e;let t=this.options;e&&this.#n?this.filteredOptions=t.filter(t=>this.#n?.(e,t)):this.filteredOptions=[...t];let r=B(this.focusedValue,this.filteredOptions);this.#e=f(r,0,this.filteredOptions);let i=this.filteredOptions[this.#e];i&&!i.disabled?this.focusedValue=i.value:this.focusedValue=void 0,this.multiple||(this.focusedValue===void 0?this.deselectAll():this.toggleSelected(this.focusedValue))}}};var X=class extends m{get cursor(){return+!this.value}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on(`userInput`,()=>{this.value=this._value}),this.on(`confirm`,e=>{this.output.write(import_src.cursor.move(0,-1)),this.value=e,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}};const Z={Y:{type:`year`,len:4},M:{type:`month`,len:2},D:{type:`day`,len:2}};function P(e){return[...e].map(e=>Z[e])}function tt(e){let t=new Intl.DateTimeFormat(e,{year:`numeric`,month:`2-digit`,day:`2-digit`}).formatToParts(new Date(2e3,0,15)),r=[],i=`/`;for(let e of t)e.type===`literal`?i=e.value.trim()||e.value:(e.type===`year`||e.type===`month`||e.type===`day`)&&r.push({type:e.type,len:e.type===`year`?4:2});return{segments:r,separator:i}}function $(e){return Number.parseInt((e||`0`).replace(/_/g,`0`),10)||0}function S(e){return{year:$(e.year),month:$(e.month),day:$(e.day)}}function U(e,t){return new Date(e||2001,t||1,0).getDate()}function F(e){let{year:t,month:r,day:i}=S(e);if(!t||t<0||t>9999||!r||r<1||r>12||!i||i<1)return;let a=new Date(Date.UTC(t,r-1,i));if(!(a.getUTCFullYear()!==t||a.getUTCMonth()!==r-1||a.getUTCDate()!==i))return{year:t,month:r,day:i}}function N(e){let t=F(e);return t?new Date(Date.UTC(t.year,t.month-1,t.day)):void 0}function st(e,t,r,i){let a=r?{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate()}:null,o=i?{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate()}:null;return e===`year`?{min:a?.year??1,max:o?.year??9999}:e===`month`?{min:a&&t.year===a.year?a.month:1,max:o&&t.year===o.year?o.month:12}:{min:a&&t.year===a.year&&t.month===a.month?a.day:1,max:o&&t.year===o.year&&t.month===o.month?o.day:U(t.year,t.month)}}var et=class extends m{#e;#t;#n;#r;#i;#a={segmentIndex:0,positionInSegment:0};#o=!0;#s=null;inlineError=``;get segmentCursor(){return{...this.#a}}get segmentValues(){return{...this.#n}}get segments(){return this.#e}get separator(){return this.#t}get formattedValue(){return this.#c(this.#n)}#c(e){return this.#e.map(t=>e[t.type]).join(this.#t)}#l(){this._setUserInput(this.#c(this.#n)),this._setValue(N(this.#n)??void 0)}constructor(e){let t=e.format?{segments:P(e.format),separator:e.separator??`/`}:tt(e.locale),r=e.separator??t.separator,i=e.format?P(e.format):t.segments,a=e.initialValue??e.defaultValue,o=a?{year:String(a.getUTCFullYear()).padStart(4,`0`),month:String(a.getUTCMonth()+1).padStart(2,`0`),day:String(a.getUTCDate()).padStart(2,`0`)}:{year:`____`,month:`__`,day:`__`},s=i.map(e=>o[e.type]).join(r);super({...e,initialUserInput:s},!1),this.#e=i,this.#t=r,this.#n=o,this.#r=e.minDate,this.#i=e.maxDate,this.#l(),this.on(`cursor`,e=>this.#p(e)),this.on(`key`,(e,t)=>this.#m(e,t)),this.on(`finalize`,()=>this.#g(e))}#u(){let e=Math.max(0,Math.min(this.#a.segmentIndex,this.#e.length-1)),t=this.#e[e];if(t)return this.#a.positionInSegment=Math.max(0,Math.min(this.#a.positionInSegment,t.len-1)),{segment:t,index:e}}#d(e){this.inlineError=``,this.#s=null;let t=this.#u();t&&(this.#a.segmentIndex=Math.max(0,Math.min(this.#e.length-1,t.index+e)),this.#a.positionInSegment=0,this.#o=!0)}#f(e){let t=this.#u();if(!t)return;let{segment:r}=t,i=this.#n[r.type],a=!i||i.replace(/_/g,``)===``,o=Number.parseInt((i||`0`).replace(/_/g,`0`),10)||0,s=st(r.type,S(this.#n),this.#r,this.#i),c;c=a?e===1?s.min:s.max:Math.max(Math.min(s.max,o+e),s.min),this.#n={...this.#n,[r.type]:c.toString().padStart(r.len,`0`)},this.#o=!0,this.#s=null,this.#l()}#p(e){if(e)switch(e){case`right`:return this.#d(1);case`left`:return this.#d(-1);case`up`:return this.#f(1);case`down`:return this.#f(-1)}}#m(e,t){if(t?.name===`backspace`||t?.sequence===``||t?.sequence===`\b`||e===``||e===`\b`){this.inlineError=``;let e=this.#u();if(!e)return;if(!this.#n[e.segment.type].replace(/_/g,``)){this.#d(-1);return}this.#n[e.segment.type]=`_`.repeat(e.segment.len),this.#o=!0,this.#a.positionInSegment=0,this.#l();return}if(t?.name===`tab`){this.inlineError=``;let e=this.#u();if(!e)return;let r=t.shift?-1:1,i=e.index+r;i>=0&&i<this.#e.length&&(this.#a.segmentIndex=i,this.#a.positionInSegment=0,this.#o=!0);return}if(e&&/^[0-9]$/.test(e)){let t=this.#u();if(!t)return;let{segment:r}=t,i=!this.#n[r.type].replace(/_/g,``);if(this.#o&&this.#s!==null&&!i){let i=this.#s+e,a={...this.#n,[r.type]:i},o=this.#h(a,r);if(o){this.inlineError=o,this.#s=null,this.#o=!1;return}this.inlineError=``,this.#n[r.type]=i,this.#s=null,this.#o=!1,this.#l(),t.index<this.#e.length-1&&(this.#a.segmentIndex=t.index+1,this.#a.positionInSegment=0,this.#o=!0);return}this.#o&&!i&&(this.#n[r.type]=`_`.repeat(r.len),this.#a.positionInSegment=0),this.#o=!1,this.#s=null;let a=this.#n[r.type],o=a.indexOf(`_`),s=o>=0?o:Math.min(this.#a.positionInSegment,r.len-1);if(s<0||s>=r.len)return;let c=a.slice(0,s)+e+a.slice(s+1),l=!1;if(s===0&&a===`__`&&(r.type===`month`||r.type===`day`)){let t=Number.parseInt(e,10);c=`0${e}`,l=t<=(r.type===`month`?1:2)}if(r.type===`year`&&(c=(a.replace(/_/g,``)+e).padStart(r.len,`_`)),!c.includes(`_`)){let e={...this.#n,[r.type]:c},t=this.#h(e,r);if(t){this.inlineError=t;return}}this.inlineError=``,this.#n[r.type]=c;let u=c.includes(`_`)?void 0:F(this.#n);if(u){let{year:e,month:t}=u,r=U(e,t);this.#n={year:String(Math.max(0,Math.min(9999,e))).padStart(4,`0`),month:String(Math.max(1,Math.min(12,t))).padStart(2,`0`),day:String(Math.max(1,Math.min(r,u.day))).padStart(2,`0`)}}this.#l();let d=c.indexOf(`_`);l?(this.#o=!0,this.#s=e):d>=0?this.#a.positionInSegment=d:o>=0&&t.index<this.#e.length-1?(this.#a.segmentIndex=t.index+1,this.#a.positionInSegment=0,this.#o=!0):this.#a.positionInSegment=Math.min(s+1,r.len-1)}}#h(e,t){let{month:r,day:i}=S(e);if(t.type===`month`&&(r<0||r>12))return h.date.messages.invalidMonth;if(t.type===`day`&&(i<0||i>31))return h.date.messages.invalidDay(31,`any month`)}#g(e){let{year:t,month:r,day:i}=S(this.#n);if(t&&r&&i){let e=U(t,r);this.#n={...this.#n,day:String(Math.min(i,e)).padStart(2,`0`)}}this.value=N(this.#n)??e.defaultValue??void 0}},it=class extends m{options;cursor=0;#e;getGroupItems(e){return this.options.filter(t=>t.group===e)}isGroupSelected(e){let t=this.getGroupItems(e),r=this.value;return r!==void 0&&t.every(e=>r.includes(e.value))}toggleValue(){let e=this.options[this.cursor];if(this.value===void 0&&(this.value=[]),e.group===!0){let t=e.value,r=this.getGroupItems(t);this.isGroupSelected(t)?this.value=this.value.filter(e=>r.findIndex(t=>t.value===e)===-1):this.value=[...this.value,...r.map(e=>e.value)],this.value=Array.from(new Set(this.value))}else{let t=this.value.includes(e.value);this.value=t?this.value.filter(t=>t!==e.value):[...this.value,e.value]}}constructor(e){super(e,!1);let{options:t}=e;this.#e=e.selectableGroups!==!1,this.options=Object.entries(t).flatMap(([e,t])=>[{value:e,group:!0,label:e},...t.map(t=>({...t,group:e}))]),this.value=[...e.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),+!this.#e),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let e=this.options[this.cursor]?.group===!0;!this.#e&&e&&(this.cursor=this.cursor===0?this.options.length-1:this.cursor-1);break}case`down`:case`right`:{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let e=this.options[this.cursor]?.group===!0;!this.#e&&e&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case`space`:this.toggleValue();break}})}},rt=class extends m{#e=!1;#t;focused=`editor`;get userInputWithCursor(){if(this.state===`submit`)return this.userInput;let e=this.userInput;if(this.cursor>=e.length)return`${e}\u2588`;let t=e.slice(0,this.cursor),i=e[this.cursor],a=e.slice(this.cursor+1);return i===`
|
|
12
|
-
`?`${t}\u2588
|
|
13
|
-
${a}`:`${t}${styleText(`inverse`,i)}${a}`}get cursor(){return this._cursor}#n(e){if(this.userInput.length===0){this._setUserInput(e);return}this._setUserInput(this.userInput.slice(0,this.cursor)+e+this.userInput.slice(this.cursor))}#r(e){let t=this.value??``;switch(e){case`up`:this._cursor=I(this._cursor,0,-1,t);return;case`down`:this._cursor=I(this._cursor,0,1,t);return;case`left`:this._cursor=I(this._cursor,-1,0,t);return;case`right`:this._cursor=I(this._cursor,1,0,t);return}}_shouldSubmit(e,t){if(this.#t)return this.focused===`submit`?!0:(this.#n(`
|
|
14
|
-
`),this._cursor++,!1);let r=this.#e;return this.#e=!0,r?(this.userInput[this.cursor-1]===`
|
|
15
|
-
`&&(this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--),!0):(this.#n(`
|
|
16
|
-
`),this._cursor++,!1)}constructor(e){super(e,!1),this.#t=e.showSubmit??!1,this.on(`key`,(e,t)=>{if(t?.name&&h.actions.has(t.name)){this.#r(t.name);return}if(e===` `&&this.#t){this.focused=this.focused===`editor`?`submit`:`editor`;return}if(t?.name!==`return`){if(this.#e=!1,t?.name===`backspace`&&this.cursor>0){this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--;return}if(t?.name===`delete`&&this.cursor<this.userInput.length){this._setUserInput(this.userInput.slice(0,this.cursor)+this.userInput.slice(this.cursor+1));return}e&&(this.#t&&this.focused===`submit`&&(this.focused=`editor`),this.#n(e??``),this._cursor++)}}),this.on(`userInput`,e=>{this._setValue(e)}),this.on(`finalize`,()=>{this.value||=e.defaultValue,this.value===void 0&&(this.value=``)})}};let nt=class extends m{options;cursor=0;get _value(){return this.options[this.cursor].value}get _enabledOptions(){return this.options.filter(e=>e.disabled!==!0)}toggleAll(){let e=this._enabledOptions,t=this.value!==void 0&&this.value.length===e.length;this.value=t?[]:e.map(e=>e.value)}toggleInvert(){let e=this.value;if(!e)return;let t=this._enabledOptions.filter(t=>!e.includes(t.value));this.value=t.map(e=>e.value)}toggleValue(){this.value===void 0&&(this.value=[]);let e=this.value.includes(this._value);this.value=e?this.value.filter(e=>e!==this._value):[...this.value,this._value]}constructor(e){super(e,!1),this.options=e.options,this.value=[...e.initialValues??[]];let t=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),0);this.cursor=this.options[t].disabled?f(t,1,this.options):t,this.on(`key`,e=>{e===`a`&&this.toggleAll(),e===`i`&&this.toggleInvert()}),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=f(this.cursor,-1,this.options);break;case`down`:case`right`:this.cursor=f(this.cursor,1,this.options);break;case`space`:this.toggleValue();break}})}};var ot=class extends m{_mask=`•`;get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if(this.state===`submit`||this.state===`cancel`)return this.masked;let e=this.userInput;if(this.cursor>=e.length)return`${this.masked}${styleText([`inverse`,`hidden`],`_`)}`;let t=this.masked,i=t.slice(0,this.cursor),a=t.slice(this.cursor);return`${i}${styleText(`inverse`,a[0])}${a.slice(1)}`}clear(){this._clearUserInput()}constructor({mask:e,...t}){super(t),this._mask=e??`•`,this.on(`userInput`,e=>{this._setValue(e)})}},ut=class extends m{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value}constructor(e){super(e,!1),this.options=e.options;let t=this.options.findIndex(({value:t})=>t===e.initialValue),r=t===-1?0:t;this.cursor=this.options[r].disabled?f(r,1,this.options):r,this.changeValue(),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=f(this.cursor,-1,this.options);break;case`down`:case`right`:this.cursor=f(this.cursor,1,this.options);break}this.changeValue()})}},at=class extends m{options;cursor=0;constructor(e){super(e,!1),this.options=e.options;let t=e.caseSensitive===!0,r=this.options.map(({value:[e]})=>t?e:e?.toLowerCase());this.cursor=Math.max(r.indexOf(e.initialValue),0),this.on(`key`,(e,i)=>{if(!e)return;let a=t&&i.shift?e.toUpperCase():e;if(!r.includes(a))return;let o=this.options.find(({value:[r]})=>t?r===a:r?.toLowerCase()===e);o&&(this.value=o.value,this.state=`submit`,this.emit(`submit`))})}},ht=class extends m{get userInputWithCursor(){if(this.state===`submit`)return this.userInput;let e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}\u2588`;let t=e.slice(0,this.cursor),[i,...a]=e.slice(this.cursor);return`${t}${styleText(`inverse`,i)}${a.join(``)}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on(`userInput`,e=>{this._setValue(e)}),this.on(`finalize`,()=>{this.value||=e.defaultValue,this.value===void 0&&(this.value=``)})}};export{Q as AutocompletePrompt,X as ConfirmPrompt,et as DatePrompt,it as GroupMultiSelectPrompt,rt as MultiLinePrompt,nt as MultiSelectPrompt,ot as PasswordPrompt,m as Prompt,at as SelectKeyPrompt,ut as SelectPrompt,ht as TextPrompt,R as block,A as getColumns,L as getRows,q as isCancel,h as settings,j as updateSettings,W as wrapTextWithPrefix};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getCodePointsLength,isFullWidth,isWideNotCJKTNotEmoji}from"./utils.js";const ANSI_RE=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,CONTROL_RE=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,CJKT_WIDE_RE=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/uy,TAB_RE=/\t{1,1000}/y,EMOJI_RE=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,LATIN_RE=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,MODIFIER_RE=/\p{M}+/gu,NO_TRUNCATION={limit:1/0,ellipsis:``},getStringTruncatedWidth=(i,a={},o={})=>{let s=a.limit??1/0,c=a.ellipsis??``,l=a?.ellipsisWidth??(c?getStringTruncatedWidth(c,NO_TRUNCATION,o).width:0),u=o.controlWidth??0,d=o.tabWidth??8,f=o.emojiWidth??2,p=o.regularWidth??1,m=o.wideWidth??2,h=[[LATIN_RE,p],[ANSI_RE,0],[CONTROL_RE,u],[TAB_RE,d],[EMOJI_RE,f],[CJKT_WIDE_RE,m]],g=0,_=0,v=i.length,y=0,b=!1,x=v,S=Math.max(0,s-l),C=0,w=0,T=0,E=0;outer:for(;;){if(w>C||_>=v&&_>g){let e=i.slice(C,w)||i.slice(g,_);y=0;for(let r of e.replaceAll(MODIFIER_RE,``)){let e=r.codePointAt(0)||0;if(E=isFullWidth(e)?2:isWideNotCJKTNotEmoji(e)?m:p,T+E>S&&(x=Math.min(x,Math.max(C,g)+y)),T+E>s){b=!0;break outer}y+=r.length,T+=E}C=w=0}if(_>=v)break outer;for(let t=0,n=h.length;t<n;t++){let[n,r]=h[t];if(n.lastIndex=_,n.test(i)){if(y=n===CJKT_WIDE_RE?getCodePointsLength(i.slice(_,n.lastIndex)):n===EMOJI_RE?1:n.lastIndex-_,E=y*r,T+E>S&&(x=Math.min(x,_+Math.floor((S-T)/r))),T+E>s){b=!0;break outer}T+=E,C=g,w=_,_=g=n.lastIndex;continue outer}}_+=1}return{width:b?S:T,index:b?x:v,truncated:b,ellipsed:b&&s>=l}};export{getStringTruncatedWidth as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const getCodePointsLength=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),isFullWidth=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,isWideNotCJKTNotEmoji=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141;export{getCodePointsLength,isFullWidth,isWideNotCJKTNotEmoji};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import getStringTruncatedWidth from"../../../../fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js";const NO_TRUNCATION={limit:1/0,ellipsis:``,ellipsisWidth:0},fastStringWidth=(e,t={})=>getStringTruncatedWidth(e,NO_TRUNCATION,t).width;export{fastStringWidth as default};
|
package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import fastStringWidth from"../../../../fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js";const ANSI_ESCAPE_LINK=`]8;;`,GROUP_REGEX=RegExp(`(?:\\[(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*))`,`y`),getClosingCode=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},wrapAnsiCode=e=>`[${e}m`,wrapAnsiHyperlink=e=>`${ANSI_ESCAPE_LINK}${e}`,wrapWord=(n,r,i)=>{let a=r[Symbol.iterator](),o=!1,s=!1,c=n.at(-1),l=c===void 0?0:fastStringWidth(c),u=a.next(),d=a.next(),f=0;for(;!u.done;){let c=u.value,p=fastStringWidth(c);l+p<=i?n[n.length-1]+=c:(n.push(c),l=0),(c===`\x1B`||c===``)&&(o=!0,s=r.startsWith(ANSI_ESCAPE_LINK,f+1)),o?s?c===`\x07`&&(o=!1,s=!1):c===`m`&&(o=!1):(l+=p,l===i&&!d.done&&(n.push(``),l=0)),u=d,d=a.next(),f+=c.length}c=n.at(-1),!l&&c!==void 0&&c.length&&n.length>1&&(n[n.length-2]+=n.pop())},stringVisibleTrimSpacesRight=t=>{let n=t.split(` `),r=n.length;for(;r&&!fastStringWidth(n[r-1]);)r--;return r===n.length?t:n.slice(0,r).join(` `)+n.slice(r).join(``)},exec=(t,r,i={})=>{if(i.trim!==!1&&t.trim()===``)return``;let a=``,o,s,c=t.split(` `),l=[``],u=0;for(let t=0;t<c.length;t++){let n=c[t];if(i.trim!==!1){let t=l.at(-1)??``,n=t.trimStart();t.length!==n.length&&(l[l.length-1]=n,u=fastStringWidth(n))}t!==0&&(u>=r&&(i.wordWrap===!1||i.trim===!1)&&(l.push(``),u=0),(u||i.trim===!1)&&(l[l.length-1]+=` `,u++));let a=fastStringWidth(n);if(i.hard&&a>r){let t=r-u,i=1+Math.floor((a-t-1)/r);Math.floor((a-1)/r)<i&&l.push(``),wrapWord(l,n,r),u=fastStringWidth(l.at(-1)??``);continue}if(u+a>r&&u&&a){if(i.wordWrap===!1&&u<r){wrapWord(l,n,r),u=fastStringWidth(l.at(-1)??``);continue}l.push(``),u=0}if(u+a>r&&i.wordWrap===!1){wrapWord(l,n,r),u=fastStringWidth(l.at(-1)??``);continue}l[l.length-1]+=n,u+=a}i.trim!==!1&&(l=l.map(e=>stringVisibleTrimSpacesRight(e)));let d=l.join(`
|
|
2
|
-
`),f=!1;for(let e=0;e<d.length;e++){let t=d[e];if(a+=t,f)f=!1;else if(f=t>=`\ud800`&&t<=`\udbff`,f)continue;if(t===`\x1B`||t===``){GROUP_REGEX.lastIndex=e+1;let t=GROUP_REGEX.exec(d)?.groups;if(t?.code!==void 0){let e=Number.parseFloat(t.code);o=e===39?void 0:e}else t?.uri!==void 0&&(s=t.uri.length===0?void 0:t.uri)}if(d[e+1]===`
|
|
3
|
-
`){s&&(a+=wrapAnsiHyperlink(``));let e=o?getClosingCode(o):void 0;o&&e&&(a+=wrapAnsiCode(e))}else t===`
|
|
4
|
-
`&&(o&&getClosingCode(o)&&(a+=wrapAnsiCode(o)),s&&(a+=wrapAnsiHyperlink(s)))}return a},CRLF_OR_LF=/\r?\n/;function wrapAnsi(e,t,n){return String(e).normalize().split(CRLF_OR_LF).map(e=>exec(e,t,n)).join(`
|
|
5
|
-
`)}export{wrapAnsi};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin}from"../../../../../../_virtual/_rolldown/runtime.js";var require_src=__commonJSMin(((e,t)=>{let n={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};t.exports={cursor:n,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(e){let t=``;for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():``);return e&&(t+=n.left),t}},beep:`\x07`}}));export default require_src();export{require_src};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** `eve/workflow`: what eve adds inside a workflow tool body. The SDK's own constructs come from `workflow`. */
|
|
2
|
-
export { ask } from "#execution/tools/workflow/ask.js";
|
|
3
|
-
export { agent } from "#execution/tools/subagent/invoke-agent.js";
|
|
4
|
-
export type { AgentInput } from "#execution/tools/subagent/invoke-agent.js";
|
|
5
|
-
export type { ToolInputRequest, ToolInputResponse } from "#tools/definition.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ask}from"#execution/tools/workflow/ask.js";import{agent}from"#execution/tools/subagent/invoke-agent.js";export{agent,ask};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/api-error.d.ts
RENAMED
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/base-client.d.ts
RENAMED
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/file-writer.d.ts
RENAMED
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/with-retry.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/poll-for-token.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/get-credentials.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/resolveSignal.d.ts
RENAMED
|
File without changes
|
/package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/sandbox-snapshot.d.ts
RENAMED
|
File without changes
|
|
File without changes
|