@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,126 +0,0 @@
|
|
|
1
|
-
import type { PluginMcpConfig, PluginRuntimeDependency, PluginRuntimePostinstallCommand } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { UserTokenStore } from "@/chat/credentials/user-token-store";
|
|
3
|
-
export type { PluginNpmRuntimeDependency, PluginMcpConfig, PluginRuntimeDependency, PluginRuntimePostinstallCommand, PluginSystemRuntimeDependency, PluginSystemRuntimeDependencyFromUrl, } from "@sentry/junior-plugin-api";
|
|
4
|
-
export interface PluginOAuthConfig {
|
|
5
|
-
clientIdEnv: string;
|
|
6
|
-
clientSecretEnv: string;
|
|
7
|
-
authorizeEndpoint: string;
|
|
8
|
-
tokenEndpoint: string;
|
|
9
|
-
scope?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Set true when the provider returns an empty scope string even for authorized
|
|
12
|
-
* grants (e.g. GitHub App user-to-server tokens always return `scope: ""`
|
|
13
|
-
* regardless of what was requested). When enabled, an empty response scope
|
|
14
|
-
* uses the configured `scope` value instead of being treated as
|
|
15
|
-
* "no scopes granted".
|
|
16
|
-
*/
|
|
17
|
-
treatEmptyScopeAsUnreported?: boolean;
|
|
18
|
-
authorizeParams?: Record<string, string>;
|
|
19
|
-
tokenAuthMethod?: "body" | "basic";
|
|
20
|
-
tokenExtraHeaders?: Record<string, string>;
|
|
21
|
-
}
|
|
22
|
-
export interface OAuthProviderConfig extends PluginOAuthConfig {
|
|
23
|
-
callbackPath: string;
|
|
24
|
-
}
|
|
25
|
-
export interface OAuthBearerCredentials {
|
|
26
|
-
type: "oauth-bearer";
|
|
27
|
-
domains: string[];
|
|
28
|
-
apiHeaders?: Record<string, string>;
|
|
29
|
-
authTokenEnv: string;
|
|
30
|
-
authTokenPlaceholder?: string;
|
|
31
|
-
}
|
|
32
|
-
export type PluginCredentials = OAuthBearerCredentials;
|
|
33
|
-
export interface PluginEnvVarDeclaration {
|
|
34
|
-
default?: string;
|
|
35
|
-
exposeToCommandEnv?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface PluginManifest {
|
|
38
|
-
name: string;
|
|
39
|
-
displayName: string;
|
|
40
|
-
description: string;
|
|
41
|
-
configKeys: string[];
|
|
42
|
-
domains?: string[];
|
|
43
|
-
apiHeaders?: Record<string, string>;
|
|
44
|
-
commandEnv?: Record<string, string>;
|
|
45
|
-
envVars?: Record<string, PluginEnvVarDeclaration>;
|
|
46
|
-
credentials?: PluginCredentials;
|
|
47
|
-
runtimeDependencies?: PluginRuntimeDependency[];
|
|
48
|
-
runtimePostinstall?: PluginRuntimePostinstallCommand[];
|
|
49
|
-
mcp?: PluginMcpConfig;
|
|
50
|
-
oauth?: PluginOAuthConfig;
|
|
51
|
-
target?: {
|
|
52
|
-
type: string;
|
|
53
|
-
configKey: string;
|
|
54
|
-
commandFlags?: string[];
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
type PluginRuntimeDependencyConfig = {
|
|
58
|
-
type: "npm";
|
|
59
|
-
package: string;
|
|
60
|
-
version?: string;
|
|
61
|
-
} | {
|
|
62
|
-
type: "system";
|
|
63
|
-
package: string;
|
|
64
|
-
} | {
|
|
65
|
-
type: "system";
|
|
66
|
-
url: string;
|
|
67
|
-
sha256: string;
|
|
68
|
-
};
|
|
69
|
-
interface PluginOAuthConfigPatch extends Omit<Partial<PluginOAuthConfig>, "authorizeParams" | "tokenExtraHeaders"> {
|
|
70
|
-
authorizeParams?: Record<string, string | null> | null;
|
|
71
|
-
tokenExtraHeaders?: Record<string, string | null> | null;
|
|
72
|
-
}
|
|
73
|
-
type PluginCredentialConfigBase = {
|
|
74
|
-
domains?: string[];
|
|
75
|
-
authTokenEnv?: string;
|
|
76
|
-
authTokenPlaceholder?: string | null;
|
|
77
|
-
};
|
|
78
|
-
type PluginCredentialConfig = PluginCredentialConfigBase & {
|
|
79
|
-
apiHeaders?: Record<string, string | null> | null;
|
|
80
|
-
type?: "oauth-bearer";
|
|
81
|
-
};
|
|
82
|
-
/** Install-level changes applied to one plugin manifest before validation. */
|
|
83
|
-
export interface PluginManifestConfig {
|
|
84
|
-
displayName?: string;
|
|
85
|
-
description?: string;
|
|
86
|
-
configKeys?: string[];
|
|
87
|
-
domains?: string[] | null;
|
|
88
|
-
apiHeaders?: Record<string, string | null> | null;
|
|
89
|
-
commandEnv?: Record<string, string | null> | null;
|
|
90
|
-
envVars?: Record<string, PluginEnvVarDeclaration | null> | null;
|
|
91
|
-
credentials?: PluginCredentialConfig | null;
|
|
92
|
-
runtimeDependencies?: PluginRuntimeDependencyConfig[] | null;
|
|
93
|
-
runtimePostinstall?: PluginRuntimePostinstallCommand[] | null;
|
|
94
|
-
mcp?: {
|
|
95
|
-
transport?: "http";
|
|
96
|
-
url?: string;
|
|
97
|
-
headers?: Record<string, string | null> | null;
|
|
98
|
-
allowedTools?: string[] | null;
|
|
99
|
-
wrappedTools?: string[] | null;
|
|
100
|
-
} | null;
|
|
101
|
-
oauth?: PluginOAuthConfigPatch | null;
|
|
102
|
-
target?: {
|
|
103
|
-
type?: string;
|
|
104
|
-
configKey?: string;
|
|
105
|
-
commandFlags?: string[] | null;
|
|
106
|
-
} | null;
|
|
107
|
-
}
|
|
108
|
-
/** Install-level plugin package list and manifest override catalog. */
|
|
109
|
-
export interface PluginCatalogConfig {
|
|
110
|
-
inlineManifests?: InlinePluginManifestDefinition[];
|
|
111
|
-
packages?: string[];
|
|
112
|
-
manifests?: Record<string, PluginManifestConfig>;
|
|
113
|
-
}
|
|
114
|
-
export interface PluginBrokerDeps {
|
|
115
|
-
userTokenStore: UserTokenStore;
|
|
116
|
-
}
|
|
117
|
-
export interface PluginDefinition {
|
|
118
|
-
manifest: PluginManifest;
|
|
119
|
-
dir: string;
|
|
120
|
-
migrationsDir?: string;
|
|
121
|
-
skillsDir?: string;
|
|
122
|
-
}
|
|
123
|
-
export interface InlinePluginManifestDefinition {
|
|
124
|
-
manifest: PluginManifest;
|
|
125
|
-
packageName?: string;
|
|
126
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type ConversationWork = {
|
|
2
|
-
assignedIds: string[];
|
|
3
|
-
/** Latest finish time per conversation, used with activity for Priority. */
|
|
4
|
-
finishedAtById: Record<string, string>;
|
|
5
|
-
unfinishedIds: string[];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Return assigned and unfinished plugin work for the candidate conversations.
|
|
9
|
-
* Feed Priority combines these signals with conversation activity on the host.
|
|
10
|
-
*/
|
|
11
|
-
export declare function listConversationWork(conversationIds: string[]): Promise<ConversationWork>;
|
|
12
|
-
/** Return candidate conversations that have unfinished plugin work. */
|
|
13
|
-
export declare function listUnfinishedWork(conversationIds: string[]): Promise<string[]>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime ownership for plugin user pages.
|
|
3
|
-
*
|
|
4
|
-
* This module joins registered readers with the authenticated viewer and
|
|
5
|
-
* validates every plugin response before it reaches the dashboard.
|
|
6
|
-
*/
|
|
7
|
-
import { type PluginUserPageContent, type PluginUserPageInput, type PluginUserPageLink } from "@sentry/junior-plugin-api";
|
|
8
|
-
/** List safe navigation metadata for registered plugin user pages. */
|
|
9
|
-
export declare function readPluginUserPageLinks(): PluginUserPageLink[];
|
|
10
|
-
/** Read one registered plugin user page for the authenticated viewer. */
|
|
11
|
-
export declare function readPluginUserPage(input: {
|
|
12
|
-
email: string;
|
|
13
|
-
pageId: string;
|
|
14
|
-
pluginName: string;
|
|
15
|
-
query: PluginUserPageInput;
|
|
16
|
-
}): Promise<PluginUserPageContent | undefined>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PluginRegistration } from "@sentry/junior-plugin-api";
|
|
2
|
-
/** Validate hook registrations against the loaded plugin manifest catalog. */
|
|
3
|
-
export declare function validatePluginRegistrations(registrations: PluginRegistration[]): void;
|
|
4
|
-
/** Validate credential hook registrations against the loaded plugin manifests. */
|
|
5
|
-
export declare function validatePluginEgressCredentialHooks(registrations: PluginRegistration[]): void;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type Actor, type Identity, type User } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { JuniorDatabase } from "@/db/db";
|
|
3
|
-
/** Resolve or create the canonical user for one verified viewer email. */
|
|
4
|
-
export declare function resolveViewerUserFromSql(db: JuniorDatabase, email: string): Promise<User | undefined>;
|
|
5
|
-
/** Resolve or create the canonical user for one authenticated viewer. */
|
|
6
|
-
export declare function resolveViewerUser(email: string): Promise<User | undefined>;
|
|
7
|
-
/** Read one existing canonical user by verified email without creating a row. */
|
|
8
|
-
export declare function findUserByEmailFromSql(db: JuniorDatabase, email: string): Promise<User | undefined>;
|
|
9
|
-
/** Read one existing canonical user by verified email without creating a row. */
|
|
10
|
-
export declare function findUserByEmail(email: string): Promise<User | undefined>;
|
|
11
|
-
/** Update one canonical user's display name in SQL. */
|
|
12
|
-
export declare function updateViewerDisplayNameFromSql(db: JuniorDatabase, userId: string, displayName: string): Promise<User | undefined>;
|
|
13
|
-
/** Update one canonical user's display name. */
|
|
14
|
-
export declare function updateViewerDisplayName(userId: string, displayName: string): Promise<User | undefined>;
|
|
15
|
-
/** Resolve the stored identity and linked user for one runtime actor. */
|
|
16
|
-
export declare function readActorIdentityFromSql(db: JuniorDatabase, actor: Actor): Promise<{
|
|
17
|
-
identity: Identity;
|
|
18
|
-
user?: User;
|
|
19
|
-
} | undefined>;
|
|
20
|
-
/** Resolve the stored identity and linked user for one runtime actor. */
|
|
21
|
-
export declare function readActorIdentity(actor: Actor): Promise<{
|
|
22
|
-
identity: Identity;
|
|
23
|
-
user?: User;
|
|
24
|
-
} | undefined>;
|
package/dist/chat/prompt.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { SlackConversationContext } from "@/chat/slack/conversation-context";
|
|
2
|
-
import type { SkillMetadata } from "@/chat/skills";
|
|
3
|
-
import type { ActiveMcpCatalogSummary } from "@/chat/tool-support/skill/mcp-tool-summary";
|
|
4
|
-
import type { PluginPromptContributionContext } from "@/chat/plugins/prompt";
|
|
5
|
-
import type { Destination, Platform, Source, SystemActor } from "@sentry/junior-plugin-api";
|
|
6
|
-
export declare const JUNIOR_PERSONALITY: string;
|
|
7
|
-
export declare const JUNIOR_WORLD: string | null;
|
|
8
|
-
interface ToolPromptContext {
|
|
9
|
-
name: string;
|
|
10
|
-
promptGuidelines?: string[];
|
|
11
|
-
promptSnippet?: string;
|
|
12
|
-
}
|
|
13
|
-
type PromptPlatform = Platform;
|
|
14
|
-
/** Render plugin system prompt additions under a core-owned wrapper. */
|
|
15
|
-
export declare function buildPluginSystemPromptContributions(contributions: PluginPromptContributionContext[]): string | null;
|
|
16
|
-
type TurnContextPromptInput = {
|
|
17
|
-
availableSkills: SkillMetadata[];
|
|
18
|
-
activeMcpCatalogs?: ActiveMcpCatalogSummary[];
|
|
19
|
-
includeSessionContext?: boolean;
|
|
20
|
-
pluginPromptContributions?: PluginPromptContributionContext[];
|
|
21
|
-
toolGuidance?: ToolPromptContext[];
|
|
22
|
-
runtime?: {
|
|
23
|
-
conversationId?: string;
|
|
24
|
-
slackConversation?: SlackConversationContext;
|
|
25
|
-
};
|
|
26
|
-
dispatch?: {
|
|
27
|
-
actor?: SystemActor;
|
|
28
|
-
destination: Destination;
|
|
29
|
-
metadata?: Record<string, string>;
|
|
30
|
-
plugin?: string;
|
|
31
|
-
source: Source;
|
|
32
|
-
};
|
|
33
|
-
actor?: {
|
|
34
|
-
userName?: string;
|
|
35
|
-
fullName?: string;
|
|
36
|
-
userId?: string;
|
|
37
|
-
};
|
|
38
|
-
configuration?: Record<string, unknown>;
|
|
39
|
-
};
|
|
40
|
-
/** Return the fixed instructions shared by every Conversation and Turn. */
|
|
41
|
-
export declare function buildSystemPrompt(platform: PromptPlatform): string;
|
|
42
|
-
/** Build volatile runtime context that belongs in the user turn, not the system prompt. */
|
|
43
|
-
export declare function buildTurnContextPrompt(params: TurnContextPromptInput): string | null;
|
|
44
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Message, Thread } from "chat";
|
|
2
|
-
import type { AgentSteeringMessage } from "@/chat/agent/types";
|
|
3
|
-
import { type ConversationMessageProvenance } from "@/chat/conversations/provenance";
|
|
4
|
-
import type { PiMessage } from "@/chat/pi/messages";
|
|
5
|
-
import type { QueuedTurnMessage } from "@/chat/runtime/turn-input";
|
|
6
|
-
/**
|
|
7
|
-
* Return a stable key for one steering message. Resolved attachments may change
|
|
8
|
-
* when Junior retries a mailbox delivery, so only the message time and text
|
|
9
|
-
* form the key.
|
|
10
|
-
*/
|
|
11
|
-
export declare function steeringMessageKey(message: PiMessage): string | undefined;
|
|
12
|
-
/** Add recent Slack messages to the agent context. */
|
|
13
|
-
export declare function appendRecentMessagesToContext(conversationContext: string | undefined, messages: QueuedTurnMessage[]): string | undefined;
|
|
14
|
-
/** Return the actor stored with one inbound Slack message. */
|
|
15
|
-
export declare function inboundMessageActor(queued: QueuedTurnMessage): AgentSteeringMessage["actor"];
|
|
16
|
-
/** Return the authority stored with one inbound Slack message. */
|
|
17
|
-
export declare function inboundMessageProvenance(queued: QueuedTurnMessage, teamId: string): ConversationMessageProvenance;
|
|
18
|
-
/** Return the Slack channel name when it is available. */
|
|
19
|
-
export declare function resolveChannelName(thread: Thread): Promise<string | undefined>;
|
|
20
|
-
/** Collect attachments from the current Slack message and its batch. */
|
|
21
|
-
export declare function collectAttachments(message: Message, batchedMessages?: QueuedTurnMessage[]): Message["attachments"];
|
|
22
|
-
/**
|
|
23
|
-
* Save each steering message once. Return false when a resumed Run is active
|
|
24
|
-
* so the mailbox delivery stays pending.
|
|
25
|
-
*/
|
|
26
|
-
export declare function saveSteeringMessages(args: {
|
|
27
|
-
conversationId: string;
|
|
28
|
-
messages: Array<{
|
|
29
|
-
message: PiMessage;
|
|
30
|
-
provenance: ConversationMessageProvenance;
|
|
31
|
-
}>;
|
|
32
|
-
}): Promise<boolean>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Message, Thread } from "chat";
|
|
2
|
-
import type { TurnToolInvocation } from "@/chat/runtime/turn-input";
|
|
3
|
-
import type { SlackMessageTs } from "@/chat/slack/timestamp";
|
|
4
|
-
/** Controls the automatic Slack processing reaction lifecycle for one message. */
|
|
5
|
-
export interface ProcessingReaction {
|
|
6
|
-
complete: () => Promise<void>;
|
|
7
|
-
keep: () => void;
|
|
8
|
-
stop: () => Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
/** Return true when a Slack reaction tool invocation keeps the processing reaction. */
|
|
11
|
-
export declare function shouldKeepProcessingReactionForToolInvocation(input: TurnToolInvocation): boolean;
|
|
12
|
-
/** Start Junior's automatic Slack processing reaction for one inbound message. */
|
|
13
|
-
export declare function startProcessingReaction(args: {
|
|
14
|
-
message: Message;
|
|
15
|
-
thread: Thread;
|
|
16
|
-
}): Promise<ProcessingReaction>;
|
|
17
|
-
/** Start Junior's automatic Slack processing reaction for a known Slack message. */
|
|
18
|
-
export declare function startProcessingReactionForMessage(args: {
|
|
19
|
-
channelId: string;
|
|
20
|
-
timestamp: SlackMessageTs;
|
|
21
|
-
}): Promise<ProcessingReaction>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { type AgentRun } from "@/chat/agent/types";
|
|
2
|
-
import type { AgentRunResult } from "@/chat/services/turn-result";
|
|
3
|
-
import { type ExecuteTurn } from "@/chat/runtime/turn-execution";
|
|
4
|
-
import { scheduleSessionCompletedPluginTasks } from "@/chat/plugins/task-runner";
|
|
5
|
-
import { type AssistantStatusSpec } from "@/chat/slack/assistant-thread/status";
|
|
6
|
-
import type { SlackMessageTs } from "@/chat/slack/timestamp";
|
|
7
|
-
/** Error raised when another worker is already resuming the Slack Turn. */
|
|
8
|
-
export declare class ResumeTurnBusyError extends Error {
|
|
9
|
-
constructor(lockKey: string);
|
|
10
|
-
}
|
|
11
|
-
interface ResumeSlackTurnArgs {
|
|
12
|
-
messageText: string;
|
|
13
|
-
conversationId: string;
|
|
14
|
-
turnId: string;
|
|
15
|
-
/** Active durable execution slice being resumed. */
|
|
16
|
-
sliceId?: number;
|
|
17
|
-
channelId: string;
|
|
18
|
-
threadTs?: string;
|
|
19
|
-
messageTs?: SlackMessageTs;
|
|
20
|
-
/** Saved Run fields. `beforeStart` may supply them after stale-work checks. */
|
|
21
|
-
run?: ResumeRun;
|
|
22
|
-
lockKey?: string;
|
|
23
|
-
/**
|
|
24
|
-
* When true, the caller already holds the conversation work lease.
|
|
25
|
-
* Skip the second resume lock so the queue continuation has one owner.
|
|
26
|
-
* Authorization callbacks and other independent resumes leave this false.
|
|
27
|
-
*/
|
|
28
|
-
ownsConversationLease?: boolean;
|
|
29
|
-
initialText?: string;
|
|
30
|
-
initialStatus?: AssistantStatusSpec;
|
|
31
|
-
executeTurn: ExecuteTurn;
|
|
32
|
-
inputMessageIds?: string[];
|
|
33
|
-
scheduleSessionCompletedPluginTasks?: typeof scheduleSessionCompletedPluginTasks;
|
|
34
|
-
commitResult?: (result: AgentRunResult) => Promise<void>;
|
|
35
|
-
onFailure?: (error: unknown) => Promise<void>;
|
|
36
|
-
onAuthPause?: (pause: {
|
|
37
|
-
providerDisplayName: string;
|
|
38
|
-
}) => Promise<void>;
|
|
39
|
-
onSuspend?: (resumeVersion: number) => Promise<void>;
|
|
40
|
-
onPostDeliveryCommitFailure?: (error: unknown) => Promise<void>;
|
|
41
|
-
beforeStart?: () => Promise<ResumePreparedTurn | false | void>;
|
|
42
|
-
}
|
|
43
|
-
type ResumeRun = Omit<AgentRun, "conversationId" | "turnId" | "runId" | "instruction" | "delivery"> & {
|
|
44
|
-
instruction?: Omit<AgentRun["instruction"], "text">;
|
|
45
|
-
};
|
|
46
|
-
interface ResumePreparedTurn {
|
|
47
|
-
messageText: string;
|
|
48
|
-
/** Active durable execution slice being resumed. */
|
|
49
|
-
sliceId?: number;
|
|
50
|
-
messageTs?: SlackMessageTs;
|
|
51
|
-
inputMessageIds?: string[];
|
|
52
|
-
initialStatus?: AssistantStatusSpec;
|
|
53
|
-
run: ResumeRun;
|
|
54
|
-
commitResult?: (result: AgentRunResult) => Promise<void>;
|
|
55
|
-
onFailure?: (error: unknown) => Promise<void>;
|
|
56
|
-
onAuthPause?: (pause: {
|
|
57
|
-
providerDisplayName: string;
|
|
58
|
-
}) => Promise<void>;
|
|
59
|
-
onSuspend?: (resumeVersion: number) => Promise<void>;
|
|
60
|
-
onPostDeliveryCommitFailure?: (error: unknown) => Promise<void>;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Resume a paused Slack Turn.
|
|
64
|
-
*
|
|
65
|
-
* Queue continuations pass `ownsConversationLease` and skip the second lock
|
|
66
|
-
* because the worker lease is already held. Authorization callbacks and other
|
|
67
|
-
* independent resumes still take the thread lock. A started resume owns its
|
|
68
|
-
* completion work.
|
|
69
|
-
* Returns false only when `beforeStart` proves the resume is stale before
|
|
70
|
-
* generation begins.
|
|
71
|
-
*/
|
|
72
|
-
export declare function resumeSlackTurn(args: ResumeSlackTurnArgs): Promise<boolean>;
|
|
73
|
-
export {};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slack provider runtime.
|
|
3
|
-
*
|
|
4
|
-
* This module owns inbound Slack routing decisions for mentions, subscribed
|
|
5
|
-
* messages, assistant lifecycle events, and retryable turn pauses. It should
|
|
6
|
-
* normalize text/queued context and decide reply vs silence while keeping
|
|
7
|
-
* Pi/MCP internals and durable session storage behind injected services.
|
|
8
|
-
*/
|
|
9
|
-
import type { Message, MessageContext, Thread } from "chat";
|
|
10
|
-
import type { Destination } from "@sentry/junior-plugin-api";
|
|
11
|
-
import type { SubscribedReplyDecision, SubscribedReplyPolicy } from "@/chat/services/subscribed-reply-policy";
|
|
12
|
-
import { type PrepareTurnStateInput, type QueuedTurnMessage, type TurnMessageText, type TurnToolInvocation } from "@/chat/runtime/turn-input";
|
|
13
|
-
export interface AssistantLifecycleEvent {
|
|
14
|
-
channelId: string;
|
|
15
|
-
context?: {
|
|
16
|
-
channelId?: string;
|
|
17
|
-
};
|
|
18
|
-
threadId: string;
|
|
19
|
-
threadTs: string;
|
|
20
|
-
userId?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface SteeringCandidateMessage {
|
|
23
|
-
inboundMessageId: string;
|
|
24
|
-
message: Message;
|
|
25
|
-
}
|
|
26
|
-
export interface ReplyHooks {
|
|
27
|
-
beforeFirstResponsePost?: () => Promise<void>;
|
|
28
|
-
drainSteeringMessages?: (accept: (messages: SteeringCandidateMessage[]) => Promise<readonly string[]>) => Promise<void>;
|
|
29
|
-
messageContext?: MessageContext;
|
|
30
|
-
ack?: () => Promise<void>;
|
|
31
|
-
onToolInvocation?: (invocation: TurnToolInvocation) => void;
|
|
32
|
-
onTurnStatePersisted?: () => Promise<void>;
|
|
33
|
-
isFinalAttempt?: boolean;
|
|
34
|
-
shouldYield?: () => boolean;
|
|
35
|
-
}
|
|
36
|
-
interface SteeringDrainContext {
|
|
37
|
-
conversationContext?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface SlackTurnOptions extends ReplyHooks {
|
|
40
|
-
conversationId?: string;
|
|
41
|
-
destination: Destination;
|
|
42
|
-
}
|
|
43
|
-
export interface SlackTurnRuntimeDependencies<TPreparedState> {
|
|
44
|
-
assistantUserName: string;
|
|
45
|
-
cancelEventSubscriptions: (input: {
|
|
46
|
-
conversationId: string;
|
|
47
|
-
}) => Promise<void>;
|
|
48
|
-
getBotUserId: () => string | undefined;
|
|
49
|
-
getPreparedConversationContext: (preparedState: TPreparedState) => string | undefined;
|
|
50
|
-
initializeAssistantThread: (event: {
|
|
51
|
-
channelId: string;
|
|
52
|
-
sourceChannelId?: string;
|
|
53
|
-
threadId: string;
|
|
54
|
-
threadTs: string;
|
|
55
|
-
}) => Promise<void>;
|
|
56
|
-
refreshAssistantThreadContext: (event: {
|
|
57
|
-
channelId: string;
|
|
58
|
-
sourceChannelId?: string;
|
|
59
|
-
threadId: string;
|
|
60
|
-
threadTs: string;
|
|
61
|
-
}) => Promise<void>;
|
|
62
|
-
modelId: string;
|
|
63
|
-
now: () => number;
|
|
64
|
-
recordSkippedSteeringMessage: (args: {
|
|
65
|
-
decision: SubscribedReplyDecision;
|
|
66
|
-
message: Message;
|
|
67
|
-
text: TurnMessageText;
|
|
68
|
-
thread: Thread;
|
|
69
|
-
}) => Promise<void>;
|
|
70
|
-
recordSkippedSubscribedTurn: (args: {
|
|
71
|
-
completedAtMs: number;
|
|
72
|
-
decision: SubscribedReplyDecision;
|
|
73
|
-
message: Message;
|
|
74
|
-
text: TurnMessageText;
|
|
75
|
-
thread: Thread;
|
|
76
|
-
}) => Promise<void>;
|
|
77
|
-
onSubscribedMessageSkipped: (args: {
|
|
78
|
-
completedAtMs: number;
|
|
79
|
-
decision: SubscribedReplyDecision;
|
|
80
|
-
message: Message;
|
|
81
|
-
preparedState: TPreparedState;
|
|
82
|
-
thread: Thread;
|
|
83
|
-
}) => Promise<void>;
|
|
84
|
-
persistPreparedState: (args: {
|
|
85
|
-
preparedState: TPreparedState;
|
|
86
|
-
thread: Thread;
|
|
87
|
-
}) => Promise<void>;
|
|
88
|
-
prepareTurnState: (args: PrepareTurnStateInput) => Promise<TPreparedState>;
|
|
89
|
-
executeSlackTurn: (thread: Thread, message: Message, options: {
|
|
90
|
-
beforeFirstResponsePost?: () => Promise<void>;
|
|
91
|
-
conversationId?: string;
|
|
92
|
-
destination: Destination;
|
|
93
|
-
explicitMention?: boolean;
|
|
94
|
-
ack?: () => Promise<void>;
|
|
95
|
-
onToolInvocation?: (invocation: TurnToolInvocation) => void;
|
|
96
|
-
onTurnCompleted?: () => Promise<void>;
|
|
97
|
-
onTurnStatePersisted?: () => Promise<void>;
|
|
98
|
-
preparedState?: TPreparedState;
|
|
99
|
-
queuedMessages?: QueuedTurnMessage[];
|
|
100
|
-
drainSteeringMessages?: (accept: (messages: QueuedTurnMessage[]) => Promise<void>, context?: SteeringDrainContext) => Promise<QueuedTurnMessage[]>;
|
|
101
|
-
shouldYield?: () => boolean;
|
|
102
|
-
}) => Promise<void>;
|
|
103
|
-
decideSubscribedReply: SubscribedReplyPolicy;
|
|
104
|
-
}
|
|
105
|
-
export interface SlackTurnRuntime<_TPreparedState, TAssistantEvent extends AssistantLifecycleEvent = AssistantLifecycleEvent> {
|
|
106
|
-
handleAssistantContextChanged: (event: TAssistantEvent) => Promise<void>;
|
|
107
|
-
handleAssistantThreadStarted: (event: TAssistantEvent) => Promise<void>;
|
|
108
|
-
handleNewMention: (thread: Thread, message: Message, hooks: SlackTurnOptions) => Promise<void>;
|
|
109
|
-
/** Webhook entry for subscribed Slack Message traffic. */
|
|
110
|
-
handleSubscribedMessage: (thread: Thread, message: Message, hooks: SlackTurnOptions) => Promise<void>;
|
|
111
|
-
}
|
|
112
|
-
/** Build the Slack event runtime that routes mentions and subscribed messages. */
|
|
113
|
-
export declare function createSlackTurnRuntime<TPreparedState, TAssistantEvent extends AssistantLifecycleEvent = AssistantLifecycleEvent>(deps: SlackTurnRuntimeDependencies<TPreparedState>): SlackTurnRuntime<TPreparedState, TAssistantEvent>;
|
|
114
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
2
|
-
import type { StateAdapter } from "chat";
|
|
3
|
-
import type { DeliverMessage } from "@/chat/task-execution/assistant-message";
|
|
4
|
-
/**
|
|
5
|
-
* Deliver system Turn output to Slack without a webhook Message.
|
|
6
|
-
*
|
|
7
|
-
* TODO(dcramer): Replace this Location-taking function with Delivery bound to one
|
|
8
|
-
* Location after Resource event work supplies Delivery before the Run.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createSlackSystemTurnDelivery(args: {
|
|
11
|
-
getSlackAdapter: () => SlackAdapter;
|
|
12
|
-
state?: StateAdapter;
|
|
13
|
-
}): DeliverMessage;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add Slack behavior around one Turn.
|
|
3
|
-
*
|
|
4
|
-
* This module owns Slack status, delivery, and state.
|
|
5
|
-
* It calls `executeTurn` to run and finish the Turn.
|
|
6
|
-
*/
|
|
7
|
-
import type { Message, Thread } from "chat";
|
|
8
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
9
|
-
import { type Destination } from "@sentry/junior-plugin-api";
|
|
10
|
-
import { type ExecuteTurn } from "@/chat/runtime/turn-execution";
|
|
11
|
-
import type { PreparedTurnState } from "@/chat/runtime/turn-preparation";
|
|
12
|
-
import { type PrepareTurnStateInput, type QueuedTurnMessage, type TurnToolInvocation } from "@/chat/runtime/turn-input";
|
|
13
|
-
import type { ContextCompactor } from "@/chat/services/context-compaction";
|
|
14
|
-
import type { PausedTurns } from "@/chat/task-execution/turn-wake";
|
|
15
|
-
import { type ScheduleSessionCompletedPluginTasksOptions } from "@/chat/plugins/task-runner";
|
|
16
|
-
import type { DispatchTurnContext, DispatchTurnResult } from "@/chat/agent-dispatch/types";
|
|
17
|
-
interface SlackTurnDeps {
|
|
18
|
-
contextCompactor: ContextCompactor;
|
|
19
|
-
executeTurn: ExecuteTurn;
|
|
20
|
-
getSlackAdapter: () => SlackAdapter;
|
|
21
|
-
pausedTurns: PausedTurns;
|
|
22
|
-
resolveUserAttachments: (attachments: Message["attachments"] | undefined, context: {
|
|
23
|
-
threadId?: string;
|
|
24
|
-
actorId?: string;
|
|
25
|
-
channelId?: string;
|
|
26
|
-
runId?: string;
|
|
27
|
-
conversation?: PreparedTurnState["conversation"];
|
|
28
|
-
messageTs?: string;
|
|
29
|
-
}) => Promise<Array<{
|
|
30
|
-
data?: Buffer;
|
|
31
|
-
mediaType: string;
|
|
32
|
-
filename?: string;
|
|
33
|
-
promptText?: string;
|
|
34
|
-
}>>;
|
|
35
|
-
prepareTurnState: (args: PrepareTurnStateInput) => Promise<PreparedTurnState>;
|
|
36
|
-
sendPluginTask?: ScheduleSessionCompletedPluginTasksOptions["send"];
|
|
37
|
-
}
|
|
38
|
-
/** Build the Slack caller that prepares input and delivers output for a Turn. */
|
|
39
|
-
export declare function createSlackTurn(deps: SlackTurnDeps): (thread: Thread, message: Message, options: {
|
|
40
|
-
beforeFirstResponsePost?: () => Promise<void>;
|
|
41
|
-
conversationId?: string;
|
|
42
|
-
destination: Destination;
|
|
43
|
-
explicitMention?: boolean;
|
|
44
|
-
ack?: () => Promise<void>;
|
|
45
|
-
onToolInvocation?: (invocation: TurnToolInvocation) => void;
|
|
46
|
-
onTurnCompleted?: () => Promise<void>;
|
|
47
|
-
onTurnDeliveryAccepted?: (messageId?: string) => void;
|
|
48
|
-
onTurnOutcome?: (result: DispatchTurnResult) => void;
|
|
49
|
-
onTurnStatePersisted?: () => Promise<void>;
|
|
50
|
-
preparedState?: PreparedTurnState;
|
|
51
|
-
queuedMessages?: QueuedTurnMessage[];
|
|
52
|
-
execution?: DispatchTurnContext;
|
|
53
|
-
skipBackfill?: boolean;
|
|
54
|
-
drainSteeringMessages?: (accept: (messages: QueuedTurnMessage[]) => Promise<void>, context?: {
|
|
55
|
-
conversationContext?: string;
|
|
56
|
-
}) => Promise<QueuedTurnMessage[]>;
|
|
57
|
-
shouldYield?: () => boolean;
|
|
58
|
-
}) => Promise<void>;
|
|
59
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Shared Vercel Queue callback wiring for signed messages. */
|
|
2
|
-
import { type MessageMetadata } from "@vercel/queue";
|
|
3
|
-
import type { QueueRejectReason, QueueVerifyResult } from "./sign";
|
|
4
|
-
export interface QueueCallbackOptions<Message> {
|
|
5
|
-
consumerGroup: string;
|
|
6
|
-
/** Use `null` when durable state already owns the attempt limit. */
|
|
7
|
-
maxDeliveries: number | null;
|
|
8
|
-
onRejected(reason: QueueRejectReason | string, metadata: MessageMetadata, error?: unknown): void;
|
|
9
|
-
permanentError?: (error: unknown) => string | undefined;
|
|
10
|
-
run(message: Message, metadata: MessageMetadata): Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* Acknowledge without checking or running the message.
|
|
13
|
-
* Use for kill switches that must not depend on signing secrets.
|
|
14
|
-
*/
|
|
15
|
-
skip?: (metadata: MessageMetadata) => boolean;
|
|
16
|
-
topic: string;
|
|
17
|
-
verify(value: unknown): QueueVerifyResult<Message>;
|
|
18
|
-
visibilityTimeoutSeconds?: number;
|
|
19
|
-
}
|
|
20
|
-
/** Build the HTTP callback and local-dev consumer for one signed queue. */
|
|
21
|
-
export declare function queueCallback<Message>(options: QueueCallbackOptions<Message>): {
|
|
22
|
-
create: () => (requestOrEvent: Request | {
|
|
23
|
-
request: Request;
|
|
24
|
-
}) => Promise<Response>;
|
|
25
|
-
registerDev: () => (() => void) | undefined;
|
|
26
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const QUEUE_SIGNATURE_MAX_AGE_MS: number;
|
|
3
|
-
export type QueueRejectReason = "expired" | "malformed" | "signature_mismatch";
|
|
4
|
-
export type QueueVerifyResult<Message> = {
|
|
5
|
-
status: "verified";
|
|
6
|
-
message: Message;
|
|
7
|
-
} | {
|
|
8
|
-
status: "rejected";
|
|
9
|
-
reason: QueueRejectReason;
|
|
10
|
-
} | {
|
|
11
|
-
status: "unavailable";
|
|
12
|
-
reason: "invalid_clock" | "missing_secret";
|
|
13
|
-
};
|
|
14
|
-
export interface QueueSignConfig<Message extends object, Version extends string> {
|
|
15
|
-
context: string;
|
|
16
|
-
maxAgeMs?: number;
|
|
17
|
-
schema: z.ZodType<Message>;
|
|
18
|
-
/** Kept for jobs that already signed with `:` instead of null bytes. */
|
|
19
|
-
separator?: string;
|
|
20
|
-
signatureVersion: Version;
|
|
21
|
-
parts(message: Message): readonly string[];
|
|
22
|
-
}
|
|
23
|
-
/** Sign one queue message. */
|
|
24
|
-
export declare function signQueueMessage<Message extends object, Version extends string>(config: QueueSignConfig<Message, Version>, message: Message, nowMs?: number): Message & {
|
|
25
|
-
signature: string;
|
|
26
|
-
signatureVersion: Version;
|
|
27
|
-
signedAtMs: number;
|
|
28
|
-
};
|
|
29
|
-
/** Check one signed queue message. */
|
|
30
|
-
export declare function verifyQueueMessage<Message extends object, Version extends string>(config: QueueSignConfig<Message, Version>, value: unknown, nowMs?: number): QueueVerifyResult<Message>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const TURN_REASONING_LEVELS: readonly ["none", "low", "medium", "high", "xhigh"];
|
|
2
|
-
export type TurnReasoningLevel = (typeof TURN_REASONING_LEVELS)[number];
|
|
3
|
-
/** Validate a configured main-agent reasoning level. */
|
|
4
|
-
export declare function parseTurnReasoningLevel(value: unknown): TurnReasoningLevel;
|