@sentry/junior 0.197.0 → 0.199.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/dist/{agent-hooks-CM4EKXL4.js → agent-hooks-GLHLHDA6.js} +11 -11
- package/dist/api/schema.d.ts +3157 -22
- package/dist/api/schema.js +1 -1
- package/dist/api.d.ts +27 -8
- package/dist/api.js +26 -25
- package/dist/app.d.ts +456 -15
- package/dist/app.js +3920 -3706
- package/dist/{catalog-runtime-V7WGCXUD.js → catalog-runtime-J2VOYYYV.js} +4 -4
- package/dist/{chunk-V2IX5Q5L.js → chunk-23ITKUM3.js} +8 -8
- package/dist/{chunk-SBCWV4E4.js → chunk-2B2KKIWT.js} +9 -9
- package/dist/{chunk-HDSDOBWN.js → chunk-3ARYTHKB.js} +8 -2
- package/dist/{chunk-5MMQLB2B.js → chunk-46WKZ2SS.js} +1 -1
- package/dist/{chunk-O5RG7SKU.js → chunk-4YIE2TYI.js} +3 -3
- package/dist/{chunk-YC5CFKME.js → chunk-5UMYAEOX.js} +1 -1
- package/dist/{chunk-DBTI74IT.js → chunk-7667XKEG.js} +5 -5
- package/dist/{chunk-C2SOA3KN.js → chunk-B63AKBOM.js} +3 -3
- package/dist/{chunk-6ZQ3CE6X.js → chunk-BO6MPZSQ.js} +1 -1
- package/dist/{chunk-ITP4OR7R.js → chunk-CIFTZ6A7.js} +4 -4
- package/dist/{chunk-5GWV7SXF.js → chunk-CYTCY25C.js} +3 -3
- package/dist/{chunk-EZKISZ3Q.js → chunk-CZFI77CX.js} +1 -1
- package/dist/{chunk-2K26W3FP.js → chunk-FAGRJZ4E.js} +1 -1
- package/dist/{chunk-VAUPAX3O.js → chunk-GNHCHX6P.js} +4 -4
- package/dist/{chunk-DHWYAHAM.js → chunk-HDZEZ7OB.js} +1 -1
- package/dist/{chunk-MJCJ62RZ.js → chunk-I3HP6Z6Z.js} +4 -4
- package/dist/{chunk-XALIC5SY.js → chunk-K3427KVO.js} +2 -2
- package/dist/{chunk-DLXA2ZXJ.js → chunk-MI5SP4SR.js} +2 -2
- package/dist/{chunk-LBN67OZR.js → chunk-MTM5IFCY.js} +1 -0
- package/dist/{chunk-WOJG25QZ.js → chunk-OJBDDF7X.js} +8 -8
- package/dist/{chunk-IGSAXSM7.js → chunk-P22PNLK7.js} +4 -4
- package/dist/{chunk-YZQLXALE.js → chunk-P7QOUKYL.js} +2 -2
- package/dist/{chunk-LIK4T6CF.js → chunk-PB74QQQS.js} +6 -6
- package/dist/{chunk-PM5WSDAD.js → chunk-PQWRTBQJ.js} +2 -2
- package/dist/{chunk-7ENMKNEK.js → chunk-PSFQC35H.js} +1 -1
- package/dist/{chunk-LMTHFU5D.js → chunk-PTT4LXUL.js} +7 -6
- package/dist/{chunk-T5MK3RUT.js → chunk-QF4E3RNM.js} +3 -3
- package/dist/{chunk-4USCVHQZ.js → chunk-RQJ4PBAI.js} +5 -5
- package/dist/{chunk-NANQFFGO.js → chunk-RVM3TBKW.js} +28 -28
- package/dist/{chunk-BR5GNDPS.js → chunk-SHWGNIZJ.js} +55 -3
- package/dist/{chunk-O2H7JUEQ.js → chunk-SWA7F2IQ.js} +25 -24
- package/dist/{chunk-H6QL3FWC.js → chunk-TN3MRLBG.js} +21 -21
- package/dist/{chunk-BQ7UXCUO.js → chunk-TT2FUK6X.js} +1 -1
- package/dist/{chunk-YLBJBBYX.js → chunk-VL4SXCWF.js} +3 -3
- package/dist/{chunk-FCONFDZ4.js → chunk-VXG62JVC.js} +1 -1
- package/dist/{chunk-PF3PEX4Q.js → chunk-WQ7RAWIY.js} +1 -1
- package/dist/{chunk-BGSAFVJO.js → chunk-WR4GQARR.js} +1 -1
- package/dist/{chunk-4UUKQB6I.js → chunk-YTXEKSV6.js} +6 -6
- package/dist/{chunk-S3DRTWPX.js → chunk-ZOUAXRCD.js} +5 -5
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-6BD722UD.js → db-2K4NSLLX.js} +6 -6
- package/dist/instrumentation.d.ts +3 -1
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.d.ts +14 -7
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-P6AIT27Q.js → oauth-callback-server-ECRF67PN.js} +29 -29
- package/dist/{runner-OKPDZOJC.js → runner-WCRHEM6N.js} +21 -21
- package/dist/{skills-CQFX3V2I.js → skills-HGNNRMPX.js} +5 -5
- package/dist/spawn-IZ5SV7OV.js +42 -0
- package/dist/task-runner-GG6KD2PL.js +36 -0
- package/dist/{validation-STB4W433.js → validation-EKFIUZ4Y.js} +5 -5
- package/dist/vercel.d.ts +4 -2
- package/dist/version.d.ts +3 -1
- package/dist/version.js +1 -1
- package/dist/{work-B7N5TEYI.js → work-LFTVZJUQ.js} +21 -21
- package/dist/{worker-W6PBEHCA.js → worker-5GGUQCE3.js} +10 -10
- package/package.json +5 -5
- package/dist/api/acp/auth.d.ts +0 -46
- package/dist/api/acp/authorization-page.d.ts +0 -11
- package/dist/api/acp/conversations.d.ts +0 -70
- package/dist/api/acp/errors.d.ts +0 -6
- package/dist/api/acp/route.d.ts +0 -16
- package/dist/api/acp/schema.d.ts +0 -115
- package/dist/api/acp/sleep.d.ts +0 -2
- package/dist/api/acp/state.d.ts +0 -22
- package/dist/api/acp/transport.d.ts +0 -113
- package/dist/api/activity.d.ts +0 -24
- package/dist/api/code/overview.d.ts +0 -98
- package/dist/api/code/routes.d.ts +0 -4
- package/dist/api/conversations/access.d.ts +0 -10
- package/dist/api/conversations/aggregate.d.ts +0 -31
- package/dist/api/conversations/archive.d.ts +0 -6
- package/dist/api/conversations/attachments.d.ts +0 -32
- package/dist/api/conversations/auxiliary-costs.d.ts +0 -6
- package/dist/api/conversations/cancel-pending-messages.d.ts +0 -4
- package/dist/api/conversations/create.d.ts +0 -6
- package/dist/api/conversations/cursor.d.ts +0 -17
- package/dist/api/conversations/detail.d.ts +0 -7
- package/dist/api/conversations/event-list.d.ts +0 -7
- package/dist/api/conversations/event-page.d.ts +0 -18
- package/dist/api/conversations/events.d.ts +0 -18
- package/dist/api/conversations/list.d.ts +0 -145
- package/dist/api/conversations/membership.d.ts +0 -30
- package/dist/api/conversations/pending-messages.d.ts +0 -15
- package/dist/api/conversations/priority.d.ts +0 -22
- package/dist/api/conversations/projection.d.ts +0 -21
- package/dist/api/conversations/reporting.d.ts +0 -48
- package/dist/api/conversations/routes.d.ts +0 -7
- package/dist/api/conversations/shared.d.ts +0 -5
- package/dist/api/conversations/stats.d.ts +0 -3
- package/dist/api/conversations/stats.query.d.ts +0 -3
- package/dist/api/conversations/usage.d.ts +0 -9
- package/dist/api/conversations/user-message-activity.d.ts +0 -3
- package/dist/api/http.d.ts +0 -8
- package/dist/api/locations/detail.d.ts +0 -134
- package/dist/api/locations/list.d.ts +0 -47
- package/dist/api/locations/query.d.ts +0 -8
- package/dist/api/locations/routes.d.ts +0 -4
- package/dist/api/people/code.d.ts +0 -34
- package/dist/api/people/list.d.ts +0 -3
- package/dist/api/people/list.query.d.ts +0 -3
- package/dist/api/people/plugin-reports.d.ts +0 -7
- package/dist/api/people/profile.d.ts +0 -6
- package/dist/api/people/profile.query.d.ts +0 -6
- package/dist/api/people/routes.d.ts +0 -4
- package/dist/api/people/shared.d.ts +0 -1375
- package/dist/api/people/spend.d.ts +0 -3
- package/dist/api/people/spend.query.d.ts +0 -3
- package/dist/api/personal-tokens/routes.d.ts +0 -4
- package/dist/api/reporting-window.d.ts +0 -78
- package/dist/api/route.d.ts +0 -15
- package/dist/api/schema/code.d.ts +0 -147
- package/dist/api/schema/common.d.ts +0 -6
- package/dist/api/schema/conversation.d.ts +0 -1604
- package/dist/api/schema/location.d.ts +0 -270
- package/dist/api/schema/person.d.ts +0 -362
- package/dist/api/schema/personal-token.d.ts +0 -38
- package/dist/api/schema/stats.d.ts +0 -22
- package/dist/api/schema/task.d.ts +0 -423
- package/dist/api/schema/workspace.d.ts +0 -69
- package/dist/api/stats.d.ts +0 -3
- package/dist/api/tasks/routes.d.ts +0 -4
- package/dist/api/user-pages/routes.d.ts +0 -4
- package/dist/api/validation.d.ts +0 -7
- package/dist/api/viewer.d.ts +0 -3
- package/dist/api/workspaces/routes.d.ts +0 -4
- package/dist/build/copy-build-content.d.ts +0 -6
- package/dist/build/glob-to-regex.d.ts +0 -2
- package/dist/build/rolldown-workarounds.d.ts +0 -14
- package/dist/build/virtual-config.d.ts +0 -25
- package/dist/chat/actor.d.ts +0 -83
- package/dist/chat/agent/action-confirmation-retry.d.ts +0 -6
- package/dist/chat/agent/handoff.d.ts +0 -73
- package/dist/chat/agent/index.d.ts +0 -22
- package/dist/chat/agent/prompt.d.ts +0 -86
- package/dist/chat/agent/repository-context.d.ts +0 -21
- package/dist/chat/agent/resume.d.ts +0 -60
- package/dist/chat/agent/retry-usage.d.ts +0 -8
- package/dist/chat/agent/sandbox.d.ts +0 -55
- package/dist/chat/agent/skills.d.ts +0 -17
- package/dist/chat/agent/tools.d.ts +0 -91
- package/dist/chat/agent/types.d.ts +0 -224
- package/dist/chat/agent-dispatch/context.d.ts +0 -43
- package/dist/chat/agent-dispatch/heartbeat.d.ts +0 -27
- package/dist/chat/agent-dispatch/store.d.ts +0 -42
- package/dist/chat/agent-dispatch/types.d.ts +0 -60
- package/dist/chat/agent-dispatch/validation.d.ts +0 -5
- package/dist/chat/agent-dispatch/work.d.ts +0 -49
- package/dist/chat/agent-invocations/errors.d.ts +0 -8
- package/dist/chat/agent-invocations/spawn.d.ts +0 -12
- package/dist/chat/agent-invocations/store.d.ts +0 -46
- package/dist/chat/agent-invocations/types.d.ts +0 -505
- package/dist/chat/agent-invocations/work.d.ts +0 -29
- package/dist/chat/app/conversation-work.d.ts +0 -37
- package/dist/chat/app/factory.d.ts +0 -23
- package/dist/chat/app/production.d.ts +0 -24
- package/dist/chat/app/services.d.ts +0 -25
- package/dist/chat/artifacts/store.d.ts +0 -42
- package/dist/chat/attachments/storage.d.ts +0 -14
- package/dist/chat/attachments/store.d.ts +0 -68
- package/dist/chat/attachments/vercel.d.ts +0 -3
- package/dist/chat/capabilities/factory.d.ts +0 -11
- package/dist/chat/capabilities/jr-rpc-command.d.ts +0 -26
- package/dist/chat/capabilities/router.d.ts +0 -20
- package/dist/chat/code/publisher.d.ts +0 -3
- package/dist/chat/code/store.d.ts +0 -9
- package/dist/chat/coerce.d.ts +0 -6
- package/dist/chat/config.d.ts +0 -84
- package/dist/chat/configuration/defaults.d.ts +0 -4
- package/dist/chat/configuration/service.d.ts +0 -5
- package/dist/chat/configuration/sql.d.ts +0 -9
- package/dist/chat/configuration/types.d.ts +0 -41
- package/dist/chat/configuration/validation.d.ts +0 -2
- package/dist/chat/conversation-privacy.d.ts +0 -39
- package/dist/chat/conversations/destination-visibility.d.ts +0 -7
- package/dist/chat/conversations/destination.d.ts +0 -12
- package/dist/chat/conversations/history.d.ts +0 -1157
- package/dist/chat/conversations/location.d.ts +0 -5
- package/dist/chat/conversations/message-projection.d.ts +0 -4
- package/dist/chat/conversations/message-search.d.ts +0 -38
- package/dist/chat/conversations/message-summaries.d.ts +0 -9
- package/dist/chat/conversations/messages.d.ts +0 -32
- package/dist/chat/conversations/projection.d.ts +0 -199
- package/dist/chat/conversations/provenance.d.ts +0 -50
- package/dist/chat/conversations/retention.d.ts +0 -40
- package/dist/chat/conversations/sql/actor-identity.d.ts +0 -19
- package/dist/chat/conversations/sql/bindings.d.ts +0 -13
- package/dist/chat/conversations/sql/conversation-row.d.ts +0 -17
- package/dist/chat/conversations/sql/event-actor.d.ts +0 -14
- package/dist/chat/conversations/sql/event-lock.d.ts +0 -3
- package/dist/chat/conversations/sql/history.d.ts +0 -4
- package/dist/chat/conversations/sql/location.d.ts +0 -18
- package/dist/chat/conversations/sql/message-search.d.ts +0 -4
- package/dist/chat/conversations/sql/participants.d.ts +0 -18
- package/dist/chat/conversations/sql/privacy.d.ts +0 -15
- package/dist/chat/conversations/sql/purge.d.ts +0 -45
- package/dist/chat/conversations/sql/store.d.ts +0 -77
- package/dist/chat/conversations/stop.d.ts +0 -12
- package/dist/chat/conversations/store.d.ts +0 -151
- package/dist/chat/conversations/structured-events.d.ts +0 -42
- package/dist/chat/conversations/tool-source.d.ts +0 -5
- package/dist/chat/conversations/turn-lifecycle.d.ts +0 -44
- package/dist/chat/conversations/web-authorization.d.ts +0 -24
- package/dist/chat/conversations/web-input.d.ts +0 -98
- package/dist/chat/conversations/web-mailbox.d.ts +0 -12
- package/dist/chat/credentials/broker.d.ts +0 -23
- package/dist/chat/credentials/context.d.ts +0 -121
- package/dist/chat/credentials/header-transforms.d.ts +0 -3
- package/dist/chat/credentials/oauth-scope.d.ts +0 -4
- package/dist/chat/credentials/state-adapter-token-store.d.ts +0 -11
- package/dist/chat/credentials/subject.d.ts +0 -49
- package/dist/chat/credentials/unlink-provider.d.ts +0 -3
- package/dist/chat/credentials/user-token-store.d.ts +0 -24
- package/dist/chat/current-instruction.d.ts +0 -8
- package/dist/chat/db.d.ts +0 -16
- package/dist/chat/destination.d.ts +0 -14
- package/dist/chat/discovery.d.ts +0 -49
- package/dist/chat/egress/credentialed.d.ts +0 -57
- package/dist/chat/egress/plugin.d.ts +0 -24
- package/dist/chat/event-tasks/ingest.d.ts +0 -9
- package/dist/chat/event-tasks/store.d.ts +0 -41
- package/dist/chat/event-tasks/tool-support.d.ts +0 -158
- package/dist/chat/event-tasks/types.d.ts +0 -51
- package/dist/chat/experimental.d.ts +0 -16
- package/dist/chat/identities/identity.d.ts +0 -18
- package/dist/chat/identities/sql.d.ts +0 -12
- package/dist/chat/ingress/bot-mention.d.ts +0 -13
- package/dist/chat/ingress/junior-chat.d.ts +0 -26
- package/dist/chat/ingress/message-changed.d.ts +0 -52
- package/dist/chat/ingress/message-router.d.ts +0 -12
- package/dist/chat/ingress/slack-webhook.d.ts +0 -21
- package/dist/chat/ingress/slash-command.d.ts +0 -3
- package/dist/chat/ingress/workspace-membership.d.ts +0 -9
- package/dist/chat/interruption-marker.d.ts +0 -2
- package/dist/chat/local/credential-sync.d.ts +0 -5
- package/dist/chat/local/oauth-relay.d.ts +0 -4
- package/dist/chat/log-context.d.ts +0 -40
- package/dist/chat/logging.d.ts +0 -122
- package/dist/chat/mcp/auth-store.d.ts +0 -43
- package/dist/chat/mcp/client.d.ts +0 -40
- package/dist/chat/mcp/errors.d.ts +0 -32
- package/dist/chat/mcp/oauth-provider.d.ts +0 -30
- package/dist/chat/mcp/oauth.d.ts +0 -21
- package/dist/chat/mcp/tool-manager.d.ts +0 -95
- package/dist/chat/mcp/tool-name.d.ts +0 -2
- package/dist/chat/model-profile.d.ts +0 -34
- package/dist/chat/no-reply.d.ts +0 -6
- package/dist/chat/oauth-authorization.d.ts +0 -17
- package/dist/chat/oauth-flow.d.ts +0 -60
- package/dist/chat/oauth-response.d.ts +0 -21
- package/dist/chat/optional-string.d.ts +0 -5
- package/dist/chat/pi/client.d.ts +0 -62
- package/dist/chat/pi/conversation-events.d.ts +0 -38
- package/dist/chat/pi/gateway-auth.d.ts +0 -16
- package/dist/chat/pi/messages.d.ts +0 -19
- package/dist/chat/pi/sdk.d.ts +0 -7
- package/dist/chat/pi/sql-model-usage.d.ts +0 -13
- package/dist/chat/pi/traced-stream.d.ts +0 -13
- package/dist/chat/pi/transcript.d.ts +0 -52
- package/dist/chat/plugins/agent-hooks.d.ts +0 -89
- package/dist/chat/plugins/annotations.d.ts +0 -11
- package/dist/chat/plugins/auth/api-headers-broker.d.ts +0 -6
- package/dist/chat/plugins/auth/auth-token-placeholder.d.ts +0 -3
- package/dist/chat/plugins/auth/oauth-bearer-broker.d.ts +0 -6
- package/dist/chat/plugins/auth/oauth-request.d.ts +0 -26
- package/dist/chat/plugins/catalog-runtime.d.ts +0 -1
- package/dist/chat/plugins/command-env.d.ts +0 -3
- package/dist/chat/plugins/conversation-event-stats.d.ts +0 -3
- package/dist/chat/plugins/conversation-events.d.ts +0 -15
- package/dist/chat/plugins/conversation-sidebar.d.ts +0 -3
- package/dist/chat/plugins/credential-hooks.d.ts +0 -51
- package/dist/chat/plugins/inline-manifest-source.d.ts +0 -5
- package/dist/chat/plugins/logging.d.ts +0 -3
- package/dist/chat/plugins/manifest.d.ts +0 -5
- package/dist/chat/plugins/model.d.ts +0 -9
- package/dist/chat/plugins/package-discovery.d.ts +0 -20
- package/dist/chat/plugins/prompt.d.ts +0 -14
- package/dist/chat/plugins/registry.d.ts +0 -27
- package/dist/chat/plugins/state.d.ts +0 -4
- package/dist/chat/plugins/task-queue.d.ts +0 -42
- package/dist/chat/plugins/task-runner.d.ts +0 -12
- package/dist/chat/plugins/types.d.ts +0 -126
- package/dist/chat/plugins/unfinished-work.d.ts +0 -13
- package/dist/chat/plugins/user-pages.d.ts +0 -16
- package/dist/chat/plugins/validation.d.ts +0 -5
- package/dist/chat/plugins/viewer.d.ts +0 -24
- package/dist/chat/prompt.d.ts +0 -44
- package/dist/chat/providers/slack/input.d.ts +0 -32
- package/dist/chat/providers/slack/processing-reaction.d.ts +0 -21
- package/dist/chat/providers/slack/resume.d.ts +0 -73
- package/dist/chat/providers/slack/runtime.d.ts +0 -114
- package/dist/chat/providers/slack/system-turn.d.ts +0 -13
- package/dist/chat/providers/slack/turn.d.ts +0 -59
- package/dist/chat/queue/callback.d.ts +0 -26
- package/dist/chat/queue/sign.d.ts +0 -30
- package/dist/chat/reasoning-level.d.ts +0 -4
- package/dist/chat/repository-instructions.d.ts +0 -55
- package/dist/chat/resource-events/actor.d.ts +0 -36
- package/dist/chat/resource-events/app-publisher.d.ts +0 -18
- package/dist/chat/resource-events/catalog.d.ts +0 -52
- package/dist/chat/resource-events/ingest.d.ts +0 -10
- package/dist/chat/resource-events/notification.d.ts +0 -54
- package/dist/chat/resource-events/runtime-catalog.d.ts +0 -8
- package/dist/chat/resource-events/store.d.ts +0 -92
- package/dist/chat/resource-events/tool-support.d.ts +0 -9
- package/dist/chat/resource-events/workspace.d.ts +0 -8
- package/dist/chat/runtime/agent-run-outcome.d.ts +0 -29
- package/dist/chat/runtime/agent-runner.d.ts +0 -18
- package/dist/chat/runtime/auth-pause-state.d.ts +0 -11
- package/dist/chat/runtime/conversation-message.d.ts +0 -10
- package/dist/chat/runtime/delivered-turn-state.d.ts +0 -12
- package/dist/chat/runtime/dev-agent-trace.d.ts +0 -1
- package/dist/chat/runtime/report-progress.d.ts +0 -6
- package/dist/chat/runtime/request-deadline.d.ts +0 -8
- package/dist/chat/runtime/thread-context.d.ts +0 -29
- package/dist/chat/runtime/thread-state.d.ts +0 -25
- package/dist/chat/runtime/turn-execution.d.ts +0 -35
- package/dist/chat/runtime/turn-input.d.ts +0 -34
- package/dist/chat/runtime/turn-preparation.d.ts +0 -30
- package/dist/chat/runtime/turn-user-message.d.ts +0 -13
- package/dist/chat/runtime/turn.d.ts +0 -77
- package/dist/chat/sandbox/command-result.d.ts +0 -74
- package/dist/chat/sandbox/credentials.d.ts +0 -11
- package/dist/chat/sandbox/docker.d.ts +0 -17
- package/dist/chat/sandbox/egress/credentials.d.ts +0 -61
- package/dist/chat/sandbox/egress/oidc.d.ts +0 -3
- package/dist/chat/sandbox/egress/policy.d.ts +0 -32
- package/dist/chat/sandbox/egress/proxy.d.ts +0 -35
- package/dist/chat/sandbox/egress/schemas.d.ts +0 -187
- package/dist/chat/sandbox/egress/session.d.ts +0 -59
- package/dist/chat/sandbox/egress/signals.d.ts +0 -9
- package/dist/chat/sandbox/egress/tracing.d.ts +0 -7
- package/dist/chat/sandbox/errors.d.ts +0 -18
- package/dist/chat/sandbox/http-error-details.d.ts +0 -18
- package/dist/chat/sandbox/noninteractive-command.d.ts +0 -21
- package/dist/chat/sandbox/paths.d.ts +0 -8
- package/dist/chat/sandbox/prepare-workspace.d.ts +0 -35
- package/dist/chat/sandbox/ref.d.ts +0 -6
- package/dist/chat/sandbox/resources.d.ts +0 -15
- package/dist/chat/sandbox/runtime-dependencies.d.ts +0 -3
- package/dist/chat/sandbox/sandbox.d.ts +0 -45
- package/dist/chat/sandbox/session.d.ts +0 -50
- package/dist/chat/sandbox/skill-sandbox.d.ts +0 -42
- package/dist/chat/sandbox/skill-sync.d.ts +0 -16
- package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/events.d.ts +0 -30
- package/dist/chat/sandbox/snapshot/install.d.ts +0 -6
- package/dist/chat/sandbox/snapshot/job-callback.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/job-queue.d.ts +0 -26
- package/dist/chat/sandbox/snapshot/job-runner.d.ts +0 -11
- package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +0 -11
- package/dist/chat/sandbox/snapshot/profile.d.ts +0 -15
- package/dist/chat/sandbox/snapshot/resolve.d.ts +0 -43
- package/dist/chat/sandbox/snapshot/runtime.d.ts +0 -2
- package/dist/chat/sandbox/snapshot/span.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/store.d.ts +0 -31
- package/dist/chat/sandbox/snapshot/workspace.d.ts +0 -23
- package/dist/chat/sandbox/workspace.d.ts +0 -72
- package/dist/chat/scheduled-tasks/cadence.d.ts +0 -27
- package/dist/chat/scheduled-tasks/heartbeat.d.ts +0 -6
- package/dist/chat/scheduled-tasks/identity.d.ts +0 -6
- package/dist/chat/scheduled-tasks/personal.d.ts +0 -23
- package/dist/chat/scheduled-tasks/runs.d.ts +0 -49
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +0 -61
- package/dist/chat/scheduled-tasks/tasks.d.ts +0 -27
- package/dist/chat/scheduled-tasks/telemetry.d.ts +0 -7
- package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -231
- package/dist/chat/scheduled-tasks/tools/create.d.ts +0 -95
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +0 -70
- package/dist/chat/scheduled-tasks/tools/list.d.ts +0 -71
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +0 -70
- package/dist/chat/scheduled-tasks/tools/update.d.ts +0 -97
- package/dist/chat/scheduled-tasks/tools.d.ts +0 -6
- package/dist/chat/scheduled-tasks/types.d.ts +0 -135
- package/dist/chat/sentry-links.d.ts +0 -6
- package/dist/chat/sentry-payload-filter.d.ts +0 -14
- package/dist/chat/sentry.d.ts +0 -3
- package/dist/chat/services/assistant-reply.d.ts +0 -16
- package/dist/chat/services/auth-pause-response.d.ts +0 -2
- package/dist/chat/services/auth-pause.d.ts +0 -24
- package/dist/chat/services/automated-turn-limit.d.ts +0 -89
- package/dist/chat/services/context-budget.d.ts +0 -19
- package/dist/chat/services/context-compaction-marker.d.ts +0 -8
- package/dist/chat/services/context-compaction.d.ts +0 -78
- package/dist/chat/services/conversation-memory.d.ts +0 -53
- package/dist/chat/services/conversation-title.d.ts +0 -20
- package/dist/chat/services/empty-output-continuation.d.ts +0 -20
- package/dist/chat/services/guardian-action-policy.d.ts +0 -12
- package/dist/chat/services/guardian-action-review.d.ts +0 -9
- package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -42
- package/dist/chat/services/message-actor-identity.d.ts +0 -16
- package/dist/chat/services/pending-auth.d.ts +0 -44
- package/dist/chat/services/persist-retry.d.ts +0 -2
- package/dist/chat/services/plugin-auth-orchestration.d.ts +0 -56
- package/dist/chat/services/provider-default-config.d.ts +0 -9
- package/dist/chat/services/provider-error.d.ts +0 -42
- package/dist/chat/services/provider-retry.d.ts +0 -13
- package/dist/chat/services/short-title.d.ts +0 -25
- package/dist/chat/services/subscribed-decision.d.ts +0 -75
- package/dist/chat/services/subscribed-reply-policy.d.ts +0 -13
- package/dist/chat/services/subscribed-reply-router-policy.d.ts +0 -12
- package/dist/chat/services/turn-failure-response.d.ts +0 -24
- package/dist/chat/services/turn-limit.d.ts +0 -16
- package/dist/chat/services/turn-result.d.ts +0 -42
- package/dist/chat/services/turn-router.d.ts +0 -59
- package/dist/chat/services/turn-session-routing.d.ts +0 -35
- package/dist/chat/skills.d.ts +0 -47
- package/dist/chat/slack/action-token.d.ts +0 -6
- package/dist/chat/slack/adapter-context.d.ts +0 -25
- package/dist/chat/slack/adapter.d.ts +0 -9
- package/dist/chat/slack/app-home.d.ts +0 -11
- package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -12
- package/dist/chat/slack/assistant-thread/status-render.d.ts +0 -28
- package/dist/chat/slack/assistant-thread/status-scheduler.d.ts +0 -24
- package/dist/chat/slack/assistant-thread/status-send.d.ts +0 -31
- package/dist/chat/slack/assistant-thread/status.d.ts +0 -36
- package/dist/chat/slack/assistant-thread/title.d.ts +0 -16
- package/dist/chat/slack/attachment-fetchers.d.ts +0 -11
- package/dist/chat/slack/automated-turn-limit-notice.d.ts +0 -16
- package/dist/chat/slack/canvas-references.d.ts +0 -2
- package/dist/chat/slack/channel.d.ts +0 -65
- package/dist/chat/slack/client.d.ts +0 -87
- package/dist/chat/slack/context.d.ts +0 -21
- package/dist/chat/slack/conversation-context.d.ts +0 -40
- package/dist/chat/slack/dashboard-link.d.ts +0 -11
- package/dist/chat/slack/dispatch-turn.d.ts +0 -24
- package/dist/chat/slack/emoji.d.ts +0 -1
- package/dist/chat/slack/errors.d.ts +0 -8
- package/dist/chat/slack/footer.d.ts +0 -46
- package/dist/chat/slack/id-param.d.ts +0 -25
- package/dist/chat/slack/ids.d.ts +0 -24
- package/dist/chat/slack/location-url.d.ts +0 -11
- package/dist/chat/slack/message/attachments.d.ts +0 -2
- package/dist/chat/slack/message/blocks.d.ts +0 -2
- package/dist/chat/slack/message/content.d.ts +0 -18
- package/dist/chat/slack/message/identity.d.ts +0 -7
- package/dist/chat/slack/message-control.d.ts +0 -2
- package/dist/chat/slack/mrkdwn.d.ts +0 -19
- package/dist/chat/slack/oauth-authorization-message.d.ts +0 -3
- package/dist/chat/slack/outbound.d.ts +0 -79
- package/dist/chat/slack/output.d.ts +0 -54
- package/dist/chat/slack/reply.d.ts +0 -19
- package/dist/chat/slack/status-format.d.ts +0 -2
- package/dist/chat/slack/team-domain.d.ts +0 -4
- package/dist/chat/slack/timestamp-param.d.ts +0 -23
- package/dist/chat/slack/timestamp.d.ts +0 -6
- package/dist/chat/slack/tool-support/canvas/api.d.ts +0 -38
- package/dist/chat/slack/tool-support/canvas/context.d.ts +0 -11
- package/dist/chat/slack/tool-support/canvas/markdown.d.ts +0 -9
- package/dist/chat/slack/tool-support/channel-access.d.ts +0 -42
- package/dist/chat/slack/tool-support/channel-capabilities.d.ts +0 -13
- package/dist/chat/slack/tool-support/channel-target.d.ts +0 -28
- package/dist/chat/slack/tool-support/context.d.ts +0 -15
- package/dist/chat/slack/tool-support/list/api.d.ts +0 -50
- package/dist/chat/slack/tool-support/list/params.d.ts +0 -5
- package/dist/chat/slack/tool-support/slack-message-url.d.ts +0 -18
- package/dist/chat/slack/tools/canvas/create.d.ts +0 -30
- package/dist/chat/slack/tools/canvas/edit.d.ts +0 -48
- package/dist/chat/slack/tools/canvas/read.d.ts +0 -51
- package/dist/chat/slack/tools/canvas/write.d.ts +0 -29
- package/dist/chat/slack/tools/channel-join.d.ts +0 -28
- package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -34
- package/dist/chat/slack/tools/conversation-message-search.d.ts +0 -67
- package/dist/chat/slack/tools/list/add-items.d.ts +0 -31
- package/dist/chat/slack/tools/list/create.d.ts +0 -28
- package/dist/chat/slack/tools/list/get-items.d.ts +0 -28
- package/dist/chat/slack/tools/list/update-item.d.ts +0 -36
- package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -29
- package/dist/chat/slack/tools/public-search.d.ts +0 -121
- package/dist/chat/slack/tools/send-files.d.ts +0 -53
- package/dist/chat/slack/tools/thread-read.d.ts +0 -32
- package/dist/chat/slack/user.d.ts +0 -11
- package/dist/chat/slack/users.d.ts +0 -40
- package/dist/chat/slack/vision-cache.d.ts +0 -5
- package/dist/chat/slack/vision-context.d.ts +0 -63
- package/dist/chat/slack/workspace-context.d.ts +0 -4
- package/dist/chat/sleep.d.ts +0 -2
- package/dist/chat/source.d.ts +0 -16
- package/dist/chat/state/adapter.d.ts +0 -10
- package/dist/chat/state/conversation.d.ts +0 -80
- package/dist/chat/state/locks.d.ts +0 -35
- package/dist/chat/state/ttl.d.ts +0 -2
- package/dist/chat/state/turn-id.d.ts +0 -4
- package/dist/chat/task-execution/assistant-message.d.ts +0 -32
- package/dist/chat/task-execution/checkpoint.d.ts +0 -86
- package/dist/chat/task-execution/conversation-turn.d.ts +0 -8
- package/dist/chat/task-execution/heartbeat.d.ts +0 -13
- package/dist/chat/task-execution/mailbox-input.d.ts +0 -3
- package/dist/chat/task-execution/mailbox-turn.d.ts +0 -52
- package/dist/chat/task-execution/paused-turn.d.ts +0 -27
- package/dist/chat/task-execution/queue-signing.d.ts +0 -17
- package/dist/chat/task-execution/queue.d.ts +0 -33
- package/dist/chat/task-execution/slack-work.d.ts +0 -274
- package/dist/chat/task-execution/state.d.ts +0 -410
- package/dist/chat/task-execution/store.d.ts +0 -248
- package/dist/chat/task-execution/turn-cursor-keys.d.ts +0 -6
- package/dist/chat/task-execution/turn-cursor.d.ts +0 -165
- package/dist/chat/task-execution/turn-wake.d.ts +0 -41
- package/dist/chat/task-execution/vercel-callback.d.ts +0 -27
- package/dist/chat/task-execution/vercel-queue.d.ts +0 -19
- package/dist/chat/task-execution/worker.d.ts +0 -42
- package/dist/chat/task-input.d.ts +0 -22
- package/dist/chat/tasks/execution-stats.d.ts +0 -105
- package/dist/chat/tasks/read.d.ts +0 -22
- package/dist/chat/tool-exposure.d.ts +0 -10
- package/dist/chat/tool-support/action-review-evidence.d.ts +0 -4
- package/dist/chat/tool-support/action-review-history.d.ts +0 -117
- package/dist/chat/tool-support/action-review.d.ts +0 -143
- package/dist/chat/tool-support/catalog-tool-call.d.ts +0 -10
- package/dist/chat/tool-support/normalize-result.d.ts +0 -9
- package/dist/chat/tool-support/pi-tool-adapter.d.ts +0 -13
- package/dist/chat/tool-support/private-trace-result.d.ts +0 -4
- package/dist/chat/tool-support/skill/mcp-tool-summary.d.ts +0 -20
- package/dist/chat/tool-support/structured-result.d.ts +0 -44
- package/dist/chat/tool-support/text-range-result.d.ts +0 -37
- package/dist/chat/tool-support/timed-out-tool-result.d.ts +0 -11
- package/dist/chat/tool-support/tool-execution-report.d.ts +0 -8
- package/dist/chat/tool-support/zod-tool.d.ts +0 -46
- package/dist/chat/tools/create-event-task.d.ts +0 -71
- package/dist/chat/tools/definition.d.ts +0 -122
- package/dist/chat/tools/delete-event-task.d.ts +0 -61
- package/dist/chat/tools/event-tasks.d.ts +0 -5
- package/dist/chat/tools/execute-tool.d.ts +0 -11
- package/dist/chat/tools/execution/build-sandbox-input.d.ts +0 -2
- package/dist/chat/tools/execution/tool-error-handler.d.ts +0 -4
- package/dist/chat/tools/execution/tool-input-error.d.ts +0 -6
- package/dist/chat/tools/handoff/tool.d.ts +0 -31
- package/dist/chat/tools/idempotency.d.ts +0 -1
- package/dist/chat/tools/index.d.ts +0 -11
- package/dist/chat/tools/list-event-tasks.d.ts +0 -59
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -46
- package/dist/chat/tools/publish-image.d.ts +0 -44
- package/dist/chat/tools/resource-events.d.ts +0 -5
- package/dist/chat/tools/runtime/report-progress.d.ts +0 -27
- package/dist/chat/tools/runtime/spawn-agent.d.ts +0 -33
- package/dist/chat/tools/sandbox/bash.d.ts +0 -11
- package/dist/chat/tools/sandbox/edit-file.d.ts +0 -43
- package/dist/chat/tools/sandbox/file-uploads.d.ts +0 -52
- package/dist/chat/tools/sandbox/file-utils.d.ts +0 -64
- package/dist/chat/tools/sandbox/find-files.d.ts +0 -33
- package/dist/chat/tools/sandbox/generated-artifacts.d.ts +0 -16
- package/dist/chat/tools/sandbox/grep.d.ts +0 -51
- package/dist/chat/tools/sandbox/list-dir.d.ts +0 -35
- package/dist/chat/tools/sandbox/read-file.d.ts +0 -12
- package/dist/chat/tools/sandbox/text-edits.d.ts +0 -29
- package/dist/chat/tools/sandbox/view-image.d.ts +0 -11
- package/dist/chat/tools/sandbox/write-file.d.ts +0 -10
- package/dist/chat/tools/scheduled-tasks.d.ts +0 -4
- package/dist/chat/tools/search-conversation-events.d.ts +0 -56
- package/dist/chat/tools/search-resource-event-types.d.ts +0 -56
- package/dist/chat/tools/search-tools.d.ts +0 -71
- package/dist/chat/tools/skill/call-mcp-tool.d.ts +0 -16
- package/dist/chat/tools/skill/load-skill.d.ts +0 -39
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -81
- package/dist/chat/tools/stop-watching-resources.d.ts +0 -30
- package/dist/chat/tools/system-time.d.ts +0 -42
- package/dist/chat/tools/types.d.ts +0 -129
- package/dist/chat/tools/unpublish-image.d.ts +0 -35
- package/dist/chat/tools/update-event-task.d.ts +0 -71
- package/dist/chat/tools/user-lookup.d.ts +0 -29
- package/dist/chat/tools/watch-resource-events.d.ts +0 -64
- package/dist/chat/tools/web/constants.d.ts +0 -6
- package/dist/chat/tools/web/fetch-content.d.ts +0 -28
- package/dist/chat/tools/web/fetch-tool.d.ts +0 -31
- package/dist/chat/tools/web/image-generate.d.ts +0 -51
- package/dist/chat/tools/web/network.d.ts +0 -6
- package/dist/chat/tools/web/search.d.ts +0 -28
- package/dist/chat/turn-context-tag.d.ts +0 -6
- package/dist/chat/usage.d.ts +0 -42
- package/dist/chat/vercel-queue-client.d.ts +0 -3
- package/dist/chat/workspaces/checkout-path.d.ts +0 -4
- package/dist/chat/workspaces/store.d.ts +0 -35
- package/dist/chat/workspaces/tools.d.ts +0 -4
- package/dist/chat/workspaces/types.d.ts +0 -36
- package/dist/chat/workspaces/validation.d.ts +0 -20
- package/dist/chat/xml.d.ts +0 -3
- package/dist/db/db.d.ts +0 -27
- package/dist/db/executor.d.ts +0 -8
- package/dist/db/neon.d.ts +0 -8
- package/dist/db/postgres-json.d.ts +0 -5
- package/dist/db/postgres.d.ts +0 -7
- package/dist/db/schema/agent-invocations.d.ts +0 -592
- package/dist/db/schema/api-tokens.d.ts +0 -160
- package/dist/db/schema/artifacts.d.ts +0 -178
- package/dist/db/schema/attachments.d.ts +0 -178
- package/dist/db/schema/code.d.ts +0 -367
- package/dist/db/schema/conversation-annotations.d.ts +0 -142
- package/dist/db/schema/conversation-bindings.d.ts +0 -110
- package/dist/db/schema/conversation-events.d.ts +0 -170
- package/dist/db/schema/conversation-participants.d.ts +0 -80
- package/dist/db/schema/conversations.d.ts +0 -1341
- package/dist/db/schema/destinations.d.ts +0 -209
- package/dist/db/schema/event-tasks.d.ts +0 -150
- package/dist/db/schema/identities.d.ts +0 -265
- package/dist/db/schema/location-configurations.d.ts +0 -127
- package/dist/db/schema/scheduled-tasks.d.ts +0 -298
- package/dist/db/schema/snapshots.d.ts +0 -271
- package/dist/db/schema/stats.d.ts +0 -97
- package/dist/db/schema/task-executions.d.ts +0 -131
- package/dist/db/schema/timestamps.d.ts +0 -1
- package/dist/db/schema/users.d.ts +0 -109
- package/dist/db/schema/workspaces.d.ts +0 -152
- package/dist/db/schema.d.ts +0 -4436
- package/dist/deployment.d.ts +0 -12
- package/dist/handlers/artifacts.d.ts +0 -8
- package/dist/handlers/health.d.ts +0 -7
- package/dist/handlers/heartbeat.d.ts +0 -7
- package/dist/handlers/mcp-oauth-callback.d.ts +0 -10
- package/dist/handlers/oauth-callback.d.ts +0 -10
- package/dist/handlers/oauth-html.d.ts +0 -4
- package/dist/handlers/retention.d.ts +0 -9
- package/dist/handlers/sandbox-egress-proxy.d.ts +0 -11
- package/dist/handlers/sandbox-egress-route.d.ts +0 -4
- package/dist/handlers/sandbox-egress-signals.d.ts +0 -4
- package/dist/handlers/slack-webhook.d.ts +0 -4
- package/dist/handlers/types.d.ts +0 -2
- package/dist/handlers/webhooks.d.ts +0 -12
- package/dist/package-resolution.d.ts +0 -13
- package/dist/personal-tokens/store.d.ts +0 -27
- package/dist/plugin-module.d.ts +0 -21
- package/dist/plugins.d.ts +0 -26
- package/dist/reporting-schema.d.ts +0 -194
- package/dist/reporting.d.ts +0 -12
- package/dist/spawn-GA5MADGU.js +0 -42
- package/dist/stats.d.ts +0 -18
- package/dist/task-runner-7IIYO44C.js +0 -36
- package/dist/usage-schema.d.ts +0 -25
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { SandboxWorkspace } from "@/chat/sandbox/workspace";
|
|
2
|
-
import { ToolInputError } from "@/chat/tools/execution/tool-input-error";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
/** Maximum single file size accepted by model-facing upload tools. */
|
|
5
|
-
export declare const MAX_SANDBOX_FILE_UPLOAD_BYTES: number;
|
|
6
|
-
/** Sandbox directory for generated files that later tools can consume. */
|
|
7
|
-
export declare const SANDBOX_ARTIFACTS_DIR = "/tmp/junior/artifacts";
|
|
8
|
-
/** Canonical model-facing reference to a file that already exists in the sandbox. */
|
|
9
|
-
export declare const sandboxFileReferenceSchema: z.ZodObject<{
|
|
10
|
-
path: z.ZodString;
|
|
11
|
-
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
mimeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
/** Model input accepted anywhere an existing sandbox file can be referenced. */
|
|
16
|
-
export type SandboxFileReferenceInput = z.input<typeof sandboxFileReferenceSchema>;
|
|
17
|
-
type WithoutNull<T> = {
|
|
18
|
-
[Key in keyof T]: Exclude<T[Key], null>;
|
|
19
|
-
};
|
|
20
|
-
/** Normalized projection consumed when materializing a sandbox file. */
|
|
21
|
-
export type SandboxFileMaterializationInput = WithoutNull<Omit<z.output<typeof sandboxFileReferenceSchema>, "bytes">>;
|
|
22
|
-
/** Generated file reference whose path and metadata can be passed directly to sendFiles. */
|
|
23
|
-
export declare const generatedArtifactFileRefSchema: z.ZodObject<{
|
|
24
|
-
path: z.ZodString;
|
|
25
|
-
filename: z.ZodString;
|
|
26
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
27
|
-
bytes: z.ZodNumber;
|
|
28
|
-
}, z.core.$strict>;
|
|
29
|
-
/** Fully materialized generated artifact returned to model-facing tools. */
|
|
30
|
-
export type GeneratedArtifactFileRef = z.output<typeof generatedArtifactFileRefSchema>;
|
|
31
|
-
/** Materialized sandbox file data ready for outbound upload boundaries. */
|
|
32
|
-
export interface SandboxFileUpload {
|
|
33
|
-
bytes: number;
|
|
34
|
-
data: Buffer;
|
|
35
|
-
filename: string;
|
|
36
|
-
mimeType: string;
|
|
37
|
-
path: string;
|
|
38
|
-
}
|
|
39
|
-
/** Signal that a model-provided file path did not resolve in the active sandbox. */
|
|
40
|
-
export declare class SandboxFileNotFoundError extends ToolInputError {
|
|
41
|
-
readonly path: string;
|
|
42
|
-
constructor(path: string);
|
|
43
|
-
}
|
|
44
|
-
/** Resolve model-provided sandbox paths against the sandbox workspace root. */
|
|
45
|
-
export declare function normalizeSandboxPath(inputPath: string): string;
|
|
46
|
-
/** Return the canonical sandbox artifact path for generated files. */
|
|
47
|
-
export declare function sandboxArtifactPath(filename: string): string;
|
|
48
|
-
/** Infer upload MIME type from an explicit value or filename extension. */
|
|
49
|
-
export declare function inferMimeType(filename: string, explicitMimeType?: string): string;
|
|
50
|
-
/** Read and validate one sandbox file for Slack/file reply upload. */
|
|
51
|
-
export declare function readSandboxFileUpload(workspace: SandboxWorkspace, input: SandboxFileMaterializationInput): Promise<SandboxFileUpload>;
|
|
52
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { SandboxCommandInput, SandboxCommandResult, SandboxFileSystem } from "@/chat/sandbox/workspace";
|
|
2
|
-
export type { SandboxFileSystem };
|
|
3
|
-
export type SandboxCommandRunner = (input: SandboxCommandInput) => Promise<SandboxCommandResult>;
|
|
4
|
-
/** Safe measurements produced by one sandbox-backed search operation. */
|
|
5
|
-
export interface SandboxSearchTelemetry {
|
|
6
|
-
emittedLineCount: number;
|
|
7
|
-
limit: number;
|
|
8
|
-
limitReached: boolean;
|
|
9
|
-
parsedRecordCount: number;
|
|
10
|
-
rawOutputBytes: number;
|
|
11
|
-
resultCount: number;
|
|
12
|
-
resultBytes: number;
|
|
13
|
-
}
|
|
14
|
-
export declare const MAX_TEXT_CHARS = 60000;
|
|
15
|
-
export declare const RIPGREP_EXCLUDED_GLOBS: readonly ["!**/.git/**", "!**/node_modules/**"];
|
|
16
|
-
export declare const DEFAULT_SEARCH_COMMAND_TIMEOUT_MS = 30000;
|
|
17
|
-
export type TextSearchResultDetails = {
|
|
18
|
-
target?: string;
|
|
19
|
-
path: string;
|
|
20
|
-
truncated: boolean;
|
|
21
|
-
};
|
|
22
|
-
export interface TextSearchToolResult {
|
|
23
|
-
content: [{
|
|
24
|
-
type: "text";
|
|
25
|
-
text: string;
|
|
26
|
-
}];
|
|
27
|
-
details: TextSearchResultDetails;
|
|
28
|
-
}
|
|
29
|
-
/** Normalize model-supplied numeric knobs before they reach filesystem tools. */
|
|
30
|
-
export declare function positiveInteger(value: unknown): number | undefined;
|
|
31
|
-
/** Compare and slice text in one line-ending space while preserving callers' output rules. */
|
|
32
|
-
export declare function normalizeToLf(value: string): string;
|
|
33
|
-
/** Keep tool output inside the model-facing budget with an explicit notice. */
|
|
34
|
-
export declare function truncateText(value: string, maxChars?: number): {
|
|
35
|
-
content: string;
|
|
36
|
-
truncated: boolean;
|
|
37
|
-
};
|
|
38
|
-
/** Detect model-facing missing paths without swallowing sandbox lifecycle/API failures. */
|
|
39
|
-
export declare function isMissingPathError(error: unknown): boolean;
|
|
40
|
-
/** Reject an expected missing search/list path through the tool-error channel. */
|
|
41
|
-
export declare function missingPathSearchResult(params: {
|
|
42
|
-
path: string;
|
|
43
|
-
displayPath?: string;
|
|
44
|
-
missingPath?: string;
|
|
45
|
-
}): never;
|
|
46
|
-
/** Keep sandbox filesystem tools scoped to the mounted workspace root. */
|
|
47
|
-
export declare function resolveWorkspacePath(input: string | undefined, fallback?: string): string;
|
|
48
|
-
/** Anchor ripgrep paths and globs to the requested search root. */
|
|
49
|
-
export declare function getRipgrepSearchLocation(root: string, rootIsDirectory: boolean): {
|
|
50
|
-
cwd: string;
|
|
51
|
-
target: string;
|
|
52
|
-
};
|
|
53
|
-
/** Share bounded workspace traversal across search tools so their skip rules stay aligned. */
|
|
54
|
-
export declare function collectFiles(params: {
|
|
55
|
-
fs: SandboxFileSystem;
|
|
56
|
-
root: string;
|
|
57
|
-
limit?: number;
|
|
58
|
-
pattern?: string;
|
|
59
|
-
}): Promise<{
|
|
60
|
-
files: string[];
|
|
61
|
-
limitReached: boolean;
|
|
62
|
-
missingPath?: string;
|
|
63
|
-
missingRoot: boolean;
|
|
64
|
-
}>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type SandboxCommandRunner, type SandboxFileSystem, type SandboxSearchTelemetry, type TextSearchResultDetails, type TextSearchToolResult } from "@/chat/tools/sandbox/file-utils";
|
|
2
|
-
import { type JuniorToolOutputEnvelope } from "@/chat/tool-support/structured-result";
|
|
3
|
-
interface FindFilesSuccessResult {
|
|
4
|
-
content: JuniorToolOutputEnvelope["content"];
|
|
5
|
-
details: TextSearchResultDetails & {
|
|
6
|
-
files: string[];
|
|
7
|
-
file_count: number;
|
|
8
|
-
truncation_reasons?: string[];
|
|
9
|
-
result_limit_reached?: number;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
type FindFilesResult = FindFilesSuccessResult | TextSearchToolResult;
|
|
13
|
-
/** Find workspace files with structured limits instead of ad hoc shell output. */
|
|
14
|
-
export declare function findFiles(params: {
|
|
15
|
-
fs: SandboxFileSystem;
|
|
16
|
-
limit?: unknown;
|
|
17
|
-
onTelemetry?: (telemetry: SandboxSearchTelemetry) => void;
|
|
18
|
-
path?: string;
|
|
19
|
-
pattern: string;
|
|
20
|
-
runCommand?: SandboxCommandRunner;
|
|
21
|
-
}): Promise<FindFilesResult>;
|
|
22
|
-
/** Create the sandbox file discovery tool definition exposed to the agent. */
|
|
23
|
-
export declare function createFindFilesTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
24
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
25
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
26
|
-
prepareArguments(args: unknown): {
|
|
27
|
-
pattern: string;
|
|
28
|
-
path?: string | undefined;
|
|
29
|
-
limit?: number | undefined;
|
|
30
|
-
};
|
|
31
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<never>) | undefined;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FileUpload } from "chat";
|
|
2
|
-
import { type GeneratedArtifactFileRef } from "@/chat/tools/sandbox/file-uploads";
|
|
3
|
-
import type { SandboxCommandResult } from "@/chat/sandbox/workspace";
|
|
4
|
-
/** Workspace operations needed to make generated artifacts visible to later tools. */
|
|
5
|
-
export interface GeneratedArtifactWorkspace {
|
|
6
|
-
runCommand(input: {
|
|
7
|
-
args?: string[];
|
|
8
|
-
cmd: string;
|
|
9
|
-
}): Promise<SandboxCommandResult>;
|
|
10
|
-
writeFiles(files: Array<{
|
|
11
|
-
content: string | Uint8Array;
|
|
12
|
-
path: string;
|
|
13
|
-
}>): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
/** Persist generated artifacts into the sandbox before returning model-visible handles. */
|
|
16
|
-
export declare function writeSandboxGeneratedArtifacts(workspace: GeneratedArtifactWorkspace, files: FileUpload[]): Promise<GeneratedArtifactFileRef[]>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type SandboxCommandRunner, type SandboxFileSystem, type SandboxSearchTelemetry, type TextSearchResultDetails, type TextSearchToolResult } from "@/chat/tools/sandbox/file-utils";
|
|
2
|
-
interface GrepResultData {
|
|
3
|
-
context: number;
|
|
4
|
-
glob?: string;
|
|
5
|
-
line_count: number;
|
|
6
|
-
lines: string[];
|
|
7
|
-
match_count: number;
|
|
8
|
-
pattern: string;
|
|
9
|
-
path: string;
|
|
10
|
-
truncation_reasons?: string[];
|
|
11
|
-
}
|
|
12
|
-
interface GrepSuccessResult {
|
|
13
|
-
content: [{
|
|
14
|
-
type: "text";
|
|
15
|
-
text: string;
|
|
16
|
-
}];
|
|
17
|
-
details: TextSearchResultDetails & GrepResultData & {
|
|
18
|
-
line_truncated?: boolean;
|
|
19
|
-
match_limit_reached?: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
type GrepResult = GrepSuccessResult | TextSearchToolResult;
|
|
23
|
-
/** Search workspace file contents with bounded, line-numbered output. */
|
|
24
|
-
export declare function grepFiles(params: {
|
|
25
|
-
context?: unknown;
|
|
26
|
-
fs: SandboxFileSystem;
|
|
27
|
-
glob?: string;
|
|
28
|
-
ignoreCase?: boolean;
|
|
29
|
-
limit?: unknown;
|
|
30
|
-
literal?: boolean;
|
|
31
|
-
onTelemetry?: (telemetry: SandboxSearchTelemetry) => void;
|
|
32
|
-
path?: string;
|
|
33
|
-
pattern: string;
|
|
34
|
-
runCommand?: SandboxCommandRunner;
|
|
35
|
-
}): Promise<GrepResult>;
|
|
36
|
-
/** Create the sandbox grep tool definition exposed to the agent. */
|
|
37
|
-
export declare function createGrepTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
38
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
39
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
40
|
-
prepareArguments(args: unknown): {
|
|
41
|
-
pattern: string;
|
|
42
|
-
path?: string | undefined;
|
|
43
|
-
glob?: string | undefined;
|
|
44
|
-
ignoreCase?: boolean | undefined;
|
|
45
|
-
literal?: boolean | undefined;
|
|
46
|
-
context?: number | undefined;
|
|
47
|
-
limit?: number | undefined;
|
|
48
|
-
};
|
|
49
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<never>) | undefined;
|
|
50
|
-
};
|
|
51
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type SandboxFileSystem, type TextSearchResultDetails, type TextSearchToolResult } from "@/chat/tools/sandbox/file-utils";
|
|
2
|
-
interface ListDirResultData {
|
|
3
|
-
entries: string[];
|
|
4
|
-
entry_count: number;
|
|
5
|
-
path: string;
|
|
6
|
-
total_entries: number;
|
|
7
|
-
truncation_reasons?: string[];
|
|
8
|
-
}
|
|
9
|
-
interface ListDirSuccessResult {
|
|
10
|
-
content: [{
|
|
11
|
-
type: "text";
|
|
12
|
-
text: string;
|
|
13
|
-
}];
|
|
14
|
-
details: TextSearchResultDetails & ListDirResultData & {
|
|
15
|
-
entry_limit_reached?: number;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
type ListDirResult = ListDirSuccessResult | TextSearchToolResult;
|
|
19
|
-
/** List workspace directories without forcing the model through shell output. */
|
|
20
|
-
export declare function listDir(params: {
|
|
21
|
-
fs: SandboxFileSystem;
|
|
22
|
-
limit?: unknown;
|
|
23
|
-
path?: string;
|
|
24
|
-
}): Promise<ListDirResult>;
|
|
25
|
-
/** Create the sandbox directory listing tool definition exposed to the agent. */
|
|
26
|
-
export declare function createListDirTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
27
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
28
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
29
|
-
prepareArguments(args: unknown): {
|
|
30
|
-
path?: string | undefined;
|
|
31
|
-
limit?: number | undefined;
|
|
32
|
-
};
|
|
33
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<never>) | undefined;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { missingFileResult, sliceFileContent, } from "@/chat/tool-support/text-range-result";
|
|
2
|
-
/** Create the sandbox read tool definition exposed to the agent. */
|
|
3
|
-
export declare function createReadFileTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
5
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
6
|
-
prepareArguments(args: unknown): {
|
|
7
|
-
path: string;
|
|
8
|
-
offset?: number | undefined;
|
|
9
|
-
limit?: number | undefined;
|
|
10
|
-
};
|
|
11
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<never>) | undefined;
|
|
12
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface TextReplacement {
|
|
2
|
-
oldText: string;
|
|
3
|
-
newText: string;
|
|
4
|
-
}
|
|
5
|
-
export interface TextReplacementInput {
|
|
6
|
-
edits: TextReplacement[];
|
|
7
|
-
}
|
|
8
|
-
/** Preserve a text artifact's dominant line-ending style across rewrites. */
|
|
9
|
-
export declare function detectLineEnding(value: string): "\r\n" | "\n";
|
|
10
|
-
/** Restore normalized LF content to the caller's original line-ending style. */
|
|
11
|
-
export declare function restoreLineEndings(value: string, lineEnding: "\r\n" | "\n"): string;
|
|
12
|
-
/** Keep UTF-8 BOM handling out of exact edit matching. */
|
|
13
|
-
export declare function stripBom(value: string): {
|
|
14
|
-
bom: string;
|
|
15
|
-
text: string;
|
|
16
|
-
};
|
|
17
|
-
/** Accept common exact-edit argument variants before schema validation. */
|
|
18
|
-
export declare function prepareTextReplacementArguments<T extends TextReplacementInput>(input: unknown): T;
|
|
19
|
-
/** Build a small line-oriented diff that gives agents enough context to review edits. */
|
|
20
|
-
export declare function buildCompactDiff(oldContent: string, newContent: string): {
|
|
21
|
-
diff: string;
|
|
22
|
-
firstChangedLine?: number;
|
|
23
|
-
truncated: boolean;
|
|
24
|
-
};
|
|
25
|
-
/** Apply exact replacements to normalized text after validating uniqueness and overlap. */
|
|
26
|
-
export declare function validateAndApplyTextEdits(content: string, edits: TextReplacement[], targetName: string): {
|
|
27
|
-
baseContent: string;
|
|
28
|
-
newContent: string;
|
|
29
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SandboxWorkspace } from "@/chat/sandbox/workspace";
|
|
2
|
-
import type { ViewImageToolDeps } from "@/chat/tools/types";
|
|
3
|
-
/** Create a tool that loads a sandbox image into the active model context. */
|
|
4
|
-
export declare function createViewImageTool(sandbox: SandboxWorkspace, supportsImageInput: () => boolean, deps?: ViewImageToolDeps): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
5
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
6
|
-
outputSchema?: undefined;
|
|
7
|
-
prepareArguments(args: unknown): {
|
|
8
|
-
path: string;
|
|
9
|
-
};
|
|
10
|
-
execute?: (input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<import("@/chat/tool-support/zod-tool").ContentOnlyToolResult> | import("@/chat/tool-support/zod-tool").ContentOnlyToolResult;
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** Create the sandbox full-file write tool definition exposed to the agent. */
|
|
2
|
-
export declare function createWriteFileTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
3
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
4
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
5
|
-
prepareArguments(args: unknown): {
|
|
6
|
-
path: string;
|
|
7
|
-
content: string;
|
|
8
|
-
};
|
|
9
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<never>) | undefined;
|
|
10
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ToolRegistry } from "@/chat/tools/definition";
|
|
2
|
-
import type { ToolRuntimeContext } from "@/chat/tools/types";
|
|
3
|
-
/** Build scheduled-task tools for an interactive Slack actor. */
|
|
4
|
-
export declare function createScheduledTaskTools(context: ToolRuntimeContext): ToolRegistry;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { type KnownConversationEventType } from "@/chat/conversations/history";
|
|
2
|
-
import type { ToolRuntimeContext } from "@/chat/tools/types";
|
|
3
|
-
/** Create a deferred tool that searches one conversation's durable event log. */
|
|
4
|
-
export declare function createSearchConversationEventsTool(context: ToolRuntimeContext): Omit<import("./definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
5
|
-
inputSchema: import("./definition").JsonSchemaObject;
|
|
6
|
-
outputSchema: import("./definition").JsonSchemaObject;
|
|
7
|
-
prepareArguments(args: unknown): {
|
|
8
|
-
conversation_id?: string | null | undefined;
|
|
9
|
-
after_seq?: number | null | undefined;
|
|
10
|
-
before_seq?: number | null | undefined;
|
|
11
|
-
limit?: number | null | undefined;
|
|
12
|
-
types?: ("message" | "handoff" | "user_message" | "assistant_message" | "tool_result" | "compaction" | "mcp_provider_connected" | "mcp_provider_connected_unowned" | "authorization_requested" | "authorization_completed" | "tool_execution_started" | "guardian_action_reviewed" | "message_updated" | "message_handled" | "messages_summarized" | "turn_started" | "turn_routed" | "turn_context" | "structured_event" | "attachments_delivered" | "turn_completed" | "turn_failed" | "subagent_started" | "subagent_ended")[] | null | undefined;
|
|
13
|
-
};
|
|
14
|
-
execute?: ((input: unknown, options: import("./definition").ToolExecuteOptions) => {
|
|
15
|
-
[x: string]: unknown;
|
|
16
|
-
conversation_id: string;
|
|
17
|
-
events: {
|
|
18
|
-
seq: number;
|
|
19
|
-
history_version: number;
|
|
20
|
-
created_at: string;
|
|
21
|
-
data: Record<string, unknown>;
|
|
22
|
-
idempotency_key?: string | undefined;
|
|
23
|
-
}[];
|
|
24
|
-
has_older: boolean;
|
|
25
|
-
has_newer: boolean;
|
|
26
|
-
target?: string | undefined;
|
|
27
|
-
truncated?: boolean | undefined;
|
|
28
|
-
timed_out?: boolean | undefined;
|
|
29
|
-
continuation?: {
|
|
30
|
-
arguments: Record<string, unknown>;
|
|
31
|
-
reason?: string | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
omitted_event_count?: number | undefined;
|
|
34
|
-
} | Promise<{
|
|
35
|
-
[x: string]: unknown;
|
|
36
|
-
conversation_id: string;
|
|
37
|
-
events: {
|
|
38
|
-
seq: number;
|
|
39
|
-
history_version: number;
|
|
40
|
-
created_at: string;
|
|
41
|
-
data: Record<string, unknown>;
|
|
42
|
-
idempotency_key?: string | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
has_older: boolean;
|
|
45
|
-
has_newer: boolean;
|
|
46
|
-
target?: string | undefined;
|
|
47
|
-
truncated?: boolean | undefined;
|
|
48
|
-
timed_out?: boolean | undefined;
|
|
49
|
-
continuation?: {
|
|
50
|
-
arguments: Record<string, unknown>;
|
|
51
|
-
reason?: string | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
omitted_event_count?: number | undefined;
|
|
54
|
-
}>) | undefined;
|
|
55
|
-
};
|
|
56
|
-
export type { KnownConversationEventType };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { type ResourceEventCatalog } from "@/chat/resource-events/catalog";
|
|
2
|
-
/** Create the read-only tool that searches enabled resource event types. */
|
|
3
|
-
export declare function createSearchResourceEventTypesTool(catalog: ResourceEventCatalog): Omit<import("./definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
-
inputSchema: import("./definition").JsonSchemaObject;
|
|
5
|
-
outputSchema: import("./definition").JsonSchemaObject;
|
|
6
|
-
prepareArguments(args: unknown): {
|
|
7
|
-
query?: string | null | undefined;
|
|
8
|
-
namespace?: string | null | undefined;
|
|
9
|
-
maxResults?: number | null | undefined;
|
|
10
|
-
};
|
|
11
|
-
execute?: ((input: unknown, options: import("./definition").ToolExecuteOptions) => {
|
|
12
|
-
query: string | null;
|
|
13
|
-
namespace: string | null;
|
|
14
|
-
totalMatches: number;
|
|
15
|
-
resourceTypes: {
|
|
16
|
-
namespace: string;
|
|
17
|
-
type: string;
|
|
18
|
-
supportedEvents: string[];
|
|
19
|
-
suggestedEvents?: string[] | undefined;
|
|
20
|
-
matchFields?: Record<string, {
|
|
21
|
-
kind: "string" | "number" | "boolean";
|
|
22
|
-
description: string;
|
|
23
|
-
enum?: string[] | undefined;
|
|
24
|
-
}> | undefined;
|
|
25
|
-
}[];
|
|
26
|
-
target?: string | undefined;
|
|
27
|
-
truncated?: boolean | undefined;
|
|
28
|
-
timed_out?: boolean | undefined;
|
|
29
|
-
continuation?: {
|
|
30
|
-
arguments: Record<string, unknown>;
|
|
31
|
-
reason?: string | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
} | Promise<{
|
|
34
|
-
query: string | null;
|
|
35
|
-
namespace: string | null;
|
|
36
|
-
totalMatches: number;
|
|
37
|
-
resourceTypes: {
|
|
38
|
-
namespace: string;
|
|
39
|
-
type: string;
|
|
40
|
-
supportedEvents: string[];
|
|
41
|
-
suggestedEvents?: string[] | undefined;
|
|
42
|
-
matchFields?: Record<string, {
|
|
43
|
-
kind: "string" | "number" | "boolean";
|
|
44
|
-
description: string;
|
|
45
|
-
enum?: string[] | undefined;
|
|
46
|
-
}> | undefined;
|
|
47
|
-
}[];
|
|
48
|
-
target?: string | undefined;
|
|
49
|
-
truncated?: boolean | undefined;
|
|
50
|
-
timed_out?: boolean | undefined;
|
|
51
|
-
continuation?: {
|
|
52
|
-
arguments: Record<string, unknown>;
|
|
53
|
-
reason?: string | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
}>) | undefined;
|
|
56
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { AnyToolDefinition } from "@/chat/tools/definition";
|
|
2
|
-
export declare const SEARCH_TOOLS_NAME = "searchTools";
|
|
3
|
-
/** Summarize catalog descriptions before rendering them into model-visible data. */
|
|
4
|
-
export declare function summarizeModelVisibleDescription(description: string): string;
|
|
5
|
-
/** Create the model-visible search tool for the executable tool catalog. */
|
|
6
|
-
export declare function createSearchToolsTool(catalogTools: Record<string, AnyToolDefinition>): Omit<AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
7
|
-
inputSchema: import("@/chat/tools/definition").JsonSchemaObject;
|
|
8
|
-
outputSchema: import("@/chat/tools/definition").JsonSchemaObject;
|
|
9
|
-
prepareArguments(args: unknown): {
|
|
10
|
-
query?: string | null | undefined;
|
|
11
|
-
source?: string | null | undefined;
|
|
12
|
-
max_results?: number | null | undefined;
|
|
13
|
-
};
|
|
14
|
-
execute?: ((input: unknown, options: import("@/chat/tools/definition").ToolExecuteOptions) => {
|
|
15
|
-
query: string | null;
|
|
16
|
-
source: string | null;
|
|
17
|
-
sources: {
|
|
18
|
-
id: string;
|
|
19
|
-
description: string;
|
|
20
|
-
}[];
|
|
21
|
-
total_catalog_tools: number;
|
|
22
|
-
total_eligible_tools: number;
|
|
23
|
-
total_matches: number;
|
|
24
|
-
returned_tools: number;
|
|
25
|
-
execution_tool: "executeTool";
|
|
26
|
-
tools: {
|
|
27
|
-
tool_name: string;
|
|
28
|
-
description: string;
|
|
29
|
-
exposure: "hidden" | "direct" | "deferred" | "modelOnly";
|
|
30
|
-
input_schema: unknown;
|
|
31
|
-
call_notes: string[];
|
|
32
|
-
annotations: Record<string, unknown>;
|
|
33
|
-
source?: string | undefined;
|
|
34
|
-
}[];
|
|
35
|
-
target?: string | undefined;
|
|
36
|
-
truncated?: boolean | undefined;
|
|
37
|
-
timed_out?: boolean | undefined;
|
|
38
|
-
continuation?: {
|
|
39
|
-
arguments: Record<string, unknown>;
|
|
40
|
-
reason?: string | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
} | Promise<{
|
|
43
|
-
query: string | null;
|
|
44
|
-
source: string | null;
|
|
45
|
-
sources: {
|
|
46
|
-
id: string;
|
|
47
|
-
description: string;
|
|
48
|
-
}[];
|
|
49
|
-
total_catalog_tools: number;
|
|
50
|
-
total_eligible_tools: number;
|
|
51
|
-
total_matches: number;
|
|
52
|
-
returned_tools: number;
|
|
53
|
-
execution_tool: "executeTool";
|
|
54
|
-
tools: {
|
|
55
|
-
tool_name: string;
|
|
56
|
-
description: string;
|
|
57
|
-
exposure: "hidden" | "direct" | "deferred" | "modelOnly";
|
|
58
|
-
input_schema: unknown;
|
|
59
|
-
call_notes: string[];
|
|
60
|
-
annotations: Record<string, unknown>;
|
|
61
|
-
source?: string | undefined;
|
|
62
|
-
}[];
|
|
63
|
-
target?: string | undefined;
|
|
64
|
-
truncated?: boolean | undefined;
|
|
65
|
-
timed_out?: boolean | undefined;
|
|
66
|
-
continuation?: {
|
|
67
|
-
arguments: Record<string, unknown>;
|
|
68
|
-
reason?: string | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
}>) | undefined;
|
|
71
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ManagedMcpTool } from "@/chat/mcp/tool-manager";
|
|
2
|
-
interface CallMcpToolManager {
|
|
3
|
-
getResolvedActiveTools(): ManagedMcpTool[];
|
|
4
|
-
}
|
|
5
|
-
/** Create the stable dispatcher for active MCP provider tools. */
|
|
6
|
-
export declare function createCallMcpToolTool(mcpToolManager: CallMcpToolManager): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
7
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
8
|
-
outputSchema?: undefined;
|
|
9
|
-
prepareArguments(args: unknown): {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
tool_name: string;
|
|
12
|
-
arguments?: Record<string, unknown> | undefined;
|
|
13
|
-
};
|
|
14
|
-
execute?: (input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<import("@/chat/tool-support/zod-tool").ContentOnlyToolResult> | import("@/chat/tool-support/zod-tool").ContentOnlyToolResult;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type Skill, type SkillMetadata } from "@/chat/skills";
|
|
2
|
-
export type LoadSkillResult = {
|
|
3
|
-
skill_name?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
skill_dir?: string;
|
|
6
|
-
working_directory?: string;
|
|
7
|
-
location?: string;
|
|
8
|
-
path_resolution?: string;
|
|
9
|
-
instructions?: string;
|
|
10
|
-
} & Record<string, unknown>;
|
|
11
|
-
/** Create the tool that loads skill instructions for the current turn. */
|
|
12
|
-
export declare function createLoadSkillTool(availableSkills: SkillMetadata[], options?: {
|
|
13
|
-
onSkillLoaded?: (skill: Skill) => void | Promise<void>;
|
|
14
|
-
}): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
15
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
16
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
17
|
-
prepareArguments(args: unknown): {
|
|
18
|
-
skill_name: string;
|
|
19
|
-
};
|
|
20
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
target?: string | undefined;
|
|
23
|
-
truncated?: boolean | undefined;
|
|
24
|
-
timed_out?: boolean | undefined;
|
|
25
|
-
continuation?: {
|
|
26
|
-
arguments: Record<string, unknown>;
|
|
27
|
-
reason?: string | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
} | Promise<{
|
|
30
|
-
[x: string]: unknown;
|
|
31
|
-
target?: string | undefined;
|
|
32
|
-
truncated?: boolean | undefined;
|
|
33
|
-
timed_out?: boolean | undefined;
|
|
34
|
-
continuation?: {
|
|
35
|
-
arguments: Record<string, unknown>;
|
|
36
|
-
reason?: string | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
}>) | undefined;
|
|
39
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { ManagedMcpToolDescriptor } from "@/chat/mcp/tool-manager";
|
|
2
|
-
interface ProviderSummary {
|
|
3
|
-
provider: string;
|
|
4
|
-
description: string;
|
|
5
|
-
active: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface SearchMcpToolManager {
|
|
8
|
-
activateProvider(provider: string): Promise<boolean>;
|
|
9
|
-
getActiveToolCatalog(options?: {
|
|
10
|
-
provider?: string;
|
|
11
|
-
}): ManagedMcpToolDescriptor[];
|
|
12
|
-
getAvailableProviderCatalog(): ProviderSummary[];
|
|
13
|
-
}
|
|
14
|
-
/** Create the progressive MCP catalog search tool used before callMcpTool. */
|
|
15
|
-
export declare function createSearchMcpToolsTool(mcpToolManager: SearchMcpToolManager): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
16
|
-
inputSchema: import("../definition").JsonSchemaObject;
|
|
17
|
-
outputSchema: import("../definition").JsonSchemaObject;
|
|
18
|
-
prepareArguments(args: unknown): {
|
|
19
|
-
query?: string | undefined;
|
|
20
|
-
provider?: string | undefined;
|
|
21
|
-
max_results?: number | undefined;
|
|
22
|
-
};
|
|
23
|
-
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
24
|
-
query: string | null;
|
|
25
|
-
provider: string | null;
|
|
26
|
-
total_active_tools: number;
|
|
27
|
-
returned_tools: number;
|
|
28
|
-
execution_tool: "callMcpTool";
|
|
29
|
-
available_providers: {
|
|
30
|
-
provider: string;
|
|
31
|
-
description: string;
|
|
32
|
-
active: boolean;
|
|
33
|
-
}[];
|
|
34
|
-
tools: {
|
|
35
|
-
tool_name: string;
|
|
36
|
-
mcp_tool_name: string;
|
|
37
|
-
provider: string;
|
|
38
|
-
description: string;
|
|
39
|
-
input_schema: Record<string, unknown>;
|
|
40
|
-
title?: string | undefined;
|
|
41
|
-
output_schema?: Record<string, unknown> | undefined;
|
|
42
|
-
annotations?: Record<string, unknown> | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
target?: string | undefined;
|
|
45
|
-
truncated?: boolean | undefined;
|
|
46
|
-
timed_out?: boolean | undefined;
|
|
47
|
-
continuation?: {
|
|
48
|
-
arguments: Record<string, unknown>;
|
|
49
|
-
reason?: string | undefined;
|
|
50
|
-
} | undefined;
|
|
51
|
-
} | Promise<{
|
|
52
|
-
query: string | null;
|
|
53
|
-
provider: string | null;
|
|
54
|
-
total_active_tools: number;
|
|
55
|
-
returned_tools: number;
|
|
56
|
-
execution_tool: "callMcpTool";
|
|
57
|
-
available_providers: {
|
|
58
|
-
provider: string;
|
|
59
|
-
description: string;
|
|
60
|
-
active: boolean;
|
|
61
|
-
}[];
|
|
62
|
-
tools: {
|
|
63
|
-
tool_name: string;
|
|
64
|
-
mcp_tool_name: string;
|
|
65
|
-
provider: string;
|
|
66
|
-
description: string;
|
|
67
|
-
input_schema: Record<string, unknown>;
|
|
68
|
-
title?: string | undefined;
|
|
69
|
-
output_schema?: Record<string, unknown> | undefined;
|
|
70
|
-
annotations?: Record<string, unknown> | undefined;
|
|
71
|
-
}[];
|
|
72
|
-
target?: string | undefined;
|
|
73
|
-
truncated?: boolean | undefined;
|
|
74
|
-
timed_out?: boolean | undefined;
|
|
75
|
-
continuation?: {
|
|
76
|
-
arguments: Record<string, unknown>;
|
|
77
|
-
reason?: string | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
}>) | undefined;
|
|
80
|
-
};
|
|
81
|
-
export {};
|