@sentry/junior 0.198.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-3E7O7ATZ.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 -16
- package/dist/app.js +3913 -3701
- package/dist/{catalog-runtime-QDUBRXEW.js → catalog-runtime-J2VOYYYV.js} +4 -4
- package/dist/{chunk-X2WFY3TM.js → chunk-23ITKUM3.js} +8 -8
- package/dist/{chunk-IZ4CIFJY.js → chunk-2B2KKIWT.js} +9 -9
- package/dist/{chunk-N3GQY63R.js → chunk-3ARYTHKB.js} +1 -1
- package/dist/{chunk-342FVAX5.js → chunk-46WKZ2SS.js} +1 -1
- package/dist/{chunk-LXPGGSYD.js → chunk-4YIE2TYI.js} +3 -3
- package/dist/{chunk-KVXHBJCH.js → chunk-5UMYAEOX.js} +1 -1
- package/dist/{chunk-OKQMTCHU.js → chunk-7667XKEG.js} +5 -5
- package/dist/{chunk-ZUEUBQWE.js → chunk-B63AKBOM.js} +3 -3
- package/dist/{chunk-2ACXVY6O.js → chunk-BO6MPZSQ.js} +1 -1
- package/dist/{chunk-VYGZPJSM.js → chunk-CIFTZ6A7.js} +4 -4
- package/dist/{chunk-SPEJV3TW.js → chunk-CYTCY25C.js} +3 -3
- package/dist/{chunk-4FHQ6CCO.js → chunk-CZFI77CX.js} +1 -1
- package/dist/{chunk-3J5Y4RWY.js → chunk-FAGRJZ4E.js} +1 -1
- package/dist/{chunk-QYSJWJLJ.js → chunk-GNHCHX6P.js} +4 -4
- package/dist/{chunk-7KXZRRMK.js → chunk-HDZEZ7OB.js} +1 -1
- package/dist/{chunk-G6XSYS3Q.js → chunk-I3HP6Z6Z.js} +4 -4
- package/dist/{chunk-CSGQWJIY.js → chunk-K3427KVO.js} +2 -2
- package/dist/{chunk-D3SLBCD4.js → chunk-MI5SP4SR.js} +2 -2
- package/dist/{chunk-LBN67OZR.js → chunk-MTM5IFCY.js} +1 -0
- package/dist/{chunk-CGNZXN7B.js → chunk-OJBDDF7X.js} +8 -8
- package/dist/{chunk-A6KKPVEA.js → chunk-P22PNLK7.js} +4 -4
- package/dist/{chunk-FU4OWKCL.js → chunk-P7QOUKYL.js} +2 -2
- package/dist/{chunk-CZC6ZEXR.js → chunk-PB74QQQS.js} +6 -6
- package/dist/{chunk-XNZAZ57D.js → chunk-PQWRTBQJ.js} +2 -2
- package/dist/{chunk-3TMKXW4H.js → chunk-PSFQC35H.js} +1 -1
- package/dist/{chunk-U67DBSNZ.js → chunk-PTT4LXUL.js} +7 -6
- package/dist/{chunk-EWPTEQXA.js → chunk-QF4E3RNM.js} +3 -3
- package/dist/{chunk-G2CT2D5U.js → chunk-RQJ4PBAI.js} +5 -5
- package/dist/{chunk-ZORFTPFN.js → chunk-RVM3TBKW.js} +28 -28
- package/dist/{chunk-EATO3SKS.js → chunk-SHWGNIZJ.js} +3 -3
- package/dist/{chunk-SCVIT6K4.js → chunk-SWA7F2IQ.js} +25 -24
- package/dist/{chunk-C3SNQB6B.js → chunk-TN3MRLBG.js} +21 -21
- package/dist/{chunk-CBHQOGFA.js → chunk-TT2FUK6X.js} +1 -1
- package/dist/{chunk-BFIFTKUS.js → chunk-VL4SXCWF.js} +3 -3
- package/dist/{chunk-NVDUM2CM.js → chunk-VXG62JVC.js} +1 -1
- package/dist/{chunk-T5KV6DUY.js → chunk-WQ7RAWIY.js} +1 -1
- package/dist/{chunk-N6LJYW7V.js → chunk-WR4GQARR.js} +1 -1
- package/dist/{chunk-4UW7BEJZ.js → chunk-YTXEKSV6.js} +6 -6
- package/dist/{chunk-F3XUS2T5.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-OSPYS4WA.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-VG736DHZ.js → oauth-callback-server-ECRF67PN.js} +29 -29
- package/dist/{runner-3GKIVG6A.js → runner-WCRHEM6N.js} +21 -21
- package/dist/{skills-FKMV7HTX.js → skills-HGNNRMPX.js} +5 -5
- package/dist/spawn-IZ5SV7OV.js +42 -0
- package/dist/task-runner-GG6KD2PL.js +36 -0
- package/dist/{validation-4XYG33GY.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-TJAL6PV3.js → work-LFTVZJUQ.js} +21 -21
- package/dist/{worker-3OYUEME2.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 -100
- 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-5YR3E42B.js +0 -42
- package/dist/stats.d.ts +0 -18
- package/dist/task-runner-GR2WZNCW.js +0 -36
- package/dist/usage-schema.d.ts +0 -25
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import type { ConversationStore } from "@/chat/conversations/store";
|
|
3
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
4
|
-
import { type StopConversationWorkResult } from "@/chat/task-execution/store";
|
|
5
|
-
/** Stop the current Conversation Turn and wake an idle resume when needed. */
|
|
6
|
-
export declare function stopConversationTurn(args: {
|
|
7
|
-
conversationId: string;
|
|
8
|
-
conversationStore?: ConversationStore;
|
|
9
|
-
nowMs?: number;
|
|
10
|
-
queue: ConversationWorkQueue;
|
|
11
|
-
state?: StateAdapter;
|
|
12
|
-
}): Promise<StopConversationWorkResult>;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import type { Destination, Source } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { Location } from "@/chat/conversations/location";
|
|
3
|
-
import type { ConversationPrivacy } from "@/chat/conversation-privacy";
|
|
4
|
-
import type { StoredSlackActor } from "@/chat/actor";
|
|
5
|
-
import type { SessionSource } from "@/chat/source";
|
|
6
|
-
import type { AgentTurnUsage } from "@/chat/usage";
|
|
7
|
-
export type ConversationSource = "api" | "internal" | "local" | "plugin" | "resource_event" | "scheduler" | "slack" | "web";
|
|
8
|
-
export type ConversationStatus = "paused" | "failed" | "idle" | "pending" | "running";
|
|
9
|
-
export interface ConversationExecution {
|
|
10
|
-
lastCheckpointAtMs?: number;
|
|
11
|
-
lastEnqueuedAtMs?: number;
|
|
12
|
-
runId?: string;
|
|
13
|
-
status: ConversationStatus;
|
|
14
|
-
updatedAtMs?: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Durable Conversation owned by Junior.
|
|
18
|
-
*
|
|
19
|
-
* The final interface stores zero or one complete Location here. No Location
|
|
20
|
-
* means the Conversation stays in Junior's API and UI. A Location names the
|
|
21
|
-
* outside place where a provider can deliver the Conversation. A Run carries
|
|
22
|
-
* this Location when the agent or tools need it. Source stays about the input.
|
|
23
|
-
* Delivery is created for the Location and allows output to be sent there.
|
|
24
|
-
*
|
|
25
|
-
* `destination` and `sessionSource` temporarily duplicate parts of that model.
|
|
26
|
-
* Their field TODOs state when each legacy copy can be removed.
|
|
27
|
-
*/
|
|
28
|
-
export interface Conversation {
|
|
29
|
-
channelName?: string;
|
|
30
|
-
conversationId: string;
|
|
31
|
-
createdAtMs: number;
|
|
32
|
-
destination?: Destination;
|
|
33
|
-
execution: ConversationExecution;
|
|
34
|
-
executionMetrics?: {
|
|
35
|
-
durationMs: number;
|
|
36
|
-
runId?: string;
|
|
37
|
-
usage?: AgentTurnUsage;
|
|
38
|
-
};
|
|
39
|
-
lastActivityAtMs: number;
|
|
40
|
-
/** Immutable parent Conversation. */
|
|
41
|
-
parentConversationId?: string;
|
|
42
|
-
/** Optional provider coordinates associated with this Conversation. */
|
|
43
|
-
location?: Location;
|
|
44
|
-
actor?: StoredSlackActor;
|
|
45
|
-
schemaVersion: 1;
|
|
46
|
-
source?: ConversationSource;
|
|
47
|
-
/**
|
|
48
|
-
* Structured inbound Source locator for this conversation session.
|
|
49
|
-
* Session-stable (threaded Slack keeps threadTs; channel-level turns omit
|
|
50
|
-
* it; never stores per-message ts). Set-once.
|
|
51
|
-
*/
|
|
52
|
-
sessionSource?: SessionSource;
|
|
53
|
-
title?: string;
|
|
54
|
-
updatedAtMs: number;
|
|
55
|
-
/**
|
|
56
|
-
* When retention purged this conversation's content. Set means messages and
|
|
57
|
-
* events were deleted wholesale; reporting presents the transcript as expired
|
|
58
|
-
* rather than privacy-redacted (`../../../../../policies/data-redaction.md`).
|
|
59
|
-
*/
|
|
60
|
-
transcriptPurgedAtMs?: number;
|
|
61
|
-
/** Confirmed Conversation visibility. Undefined means no confirmation exists. */
|
|
62
|
-
visibility?: ConversationPrivacy;
|
|
63
|
-
}
|
|
64
|
-
/** Persist and read durable conversation metadata for reporting surfaces. */
|
|
65
|
-
export interface ConversationStore {
|
|
66
|
-
/** Create one Conversation with an immutable parent. */
|
|
67
|
-
createChild(args: {
|
|
68
|
-
childConversationId: string;
|
|
69
|
-
parentConversationId: string;
|
|
70
|
-
nowMs?: number;
|
|
71
|
-
source?: ConversationSource;
|
|
72
|
-
}): Promise<void>;
|
|
73
|
-
get(args: {
|
|
74
|
-
conversationId: string;
|
|
75
|
-
}): Promise<Conversation | undefined>;
|
|
76
|
-
/** Resolve the durable conversation bound to one provider conversation. */
|
|
77
|
-
getConversationIdByProviderConversation(args: {
|
|
78
|
-
provider: string;
|
|
79
|
-
providerDestinationId: string;
|
|
80
|
-
providerTenantId: string;
|
|
81
|
-
providerConversationId: string;
|
|
82
|
-
}): Promise<string | undefined>;
|
|
83
|
-
/** Bind one provider conversation to its pre-existing durable conversation. */
|
|
84
|
-
bindProviderConversation(args: {
|
|
85
|
-
conversationId: string;
|
|
86
|
-
provider: string;
|
|
87
|
-
providerDestinationId: string;
|
|
88
|
-
providerTenantId: string;
|
|
89
|
-
providerConversationId: string;
|
|
90
|
-
}): Promise<void>;
|
|
91
|
-
/** Read confirmed public/private visibility for one destination. */
|
|
92
|
-
getDestinationVisibility(args: {
|
|
93
|
-
provider: string;
|
|
94
|
-
providerDestinationId: string;
|
|
95
|
-
providerTenantId?: string;
|
|
96
|
-
}): Promise<ConversationPrivacy | undefined>;
|
|
97
|
-
/**
|
|
98
|
-
* Resolve one Slack channel id from a known destination display name.
|
|
99
|
-
*
|
|
100
|
-
* Matches only destinations Junior already stored for this workspace. Exact
|
|
101
|
-
* name match after stripping a leading `#`. Returns undefined when missing
|
|
102
|
-
* or ambiguous. Does not scan Slack.
|
|
103
|
-
*/
|
|
104
|
-
findSlackDestinationByName(args: {
|
|
105
|
-
channelName: string;
|
|
106
|
-
teamId: string;
|
|
107
|
-
}): Promise<{
|
|
108
|
-
channelId: string;
|
|
109
|
-
channelName?: string;
|
|
110
|
-
} | undefined>;
|
|
111
|
-
recordActivity(args: {
|
|
112
|
-
activityAtMs?: number;
|
|
113
|
-
channelName?: string;
|
|
114
|
-
conversationId: string;
|
|
115
|
-
destination?: Destination;
|
|
116
|
-
nowMs?: number;
|
|
117
|
-
actor?: StoredSlackActor;
|
|
118
|
-
source?: ConversationSource;
|
|
119
|
-
/** Source normalized to a stable session locator; set-once when absent. */
|
|
120
|
-
sessionSource?: Source;
|
|
121
|
-
title?: string;
|
|
122
|
-
/** Confirmed destination visibility; omit when unavailable. */
|
|
123
|
-
visibility?: ConversationPrivacy;
|
|
124
|
-
}): Promise<void>;
|
|
125
|
-
/**
|
|
126
|
-
* Materialize execution and usage aggregates beside canonical metadata.
|
|
127
|
-
* These fields serve reporting and runtime control, never history hydration.
|
|
128
|
-
*/
|
|
129
|
-
recordExecution(args: {
|
|
130
|
-
channelName?: string;
|
|
131
|
-
conversationId: string;
|
|
132
|
-
createdAtMs: number;
|
|
133
|
-
destination?: Destination;
|
|
134
|
-
execution: ConversationExecution;
|
|
135
|
-
lastActivityAtMs: number;
|
|
136
|
-
metrics: {
|
|
137
|
-
durationMs: number;
|
|
138
|
-
usage?: AgentTurnUsage;
|
|
139
|
-
} | null;
|
|
140
|
-
actor?: StoredSlackActor;
|
|
141
|
-
source?: ConversationSource;
|
|
142
|
-
title?: string;
|
|
143
|
-
updatedAtMs: number;
|
|
144
|
-
/** Confirmed destination visibility; omit when unavailable. */
|
|
145
|
-
visibility?: ConversationPrivacy;
|
|
146
|
-
}): Promise<void>;
|
|
147
|
-
listByActivity(args?: {
|
|
148
|
-
limit?: number;
|
|
149
|
-
offset?: number;
|
|
150
|
-
}): Promise<Conversation[]>;
|
|
151
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type ConversationEventPresentation, type PluginConversationEventDefinition } from "@sentry/junior-plugin-api";
|
|
2
|
-
/** Reserved namespace for Junior-owned conversation metadata events. */
|
|
3
|
-
export declare const JUNIOR_NATIVE_EVENT_NAMESPACE: "junior";
|
|
4
|
-
/** Junior-owned account-link transcript event. */
|
|
5
|
-
export declare const authenticationLinkedEvent: import("@sentry/junior-plugin-api").DefinedConversationEvent<{
|
|
6
|
-
actorId: string;
|
|
7
|
-
provider: string;
|
|
8
|
-
accountLabel?: string | undefined;
|
|
9
|
-
authorizationId?: string | undefined;
|
|
10
|
-
providerLabel?: string | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
/** Junior-owned account-unlink transcript event. */
|
|
13
|
-
export declare const authenticationUnlinkedEvent: import("@sentry/junior-plugin-api").DefinedConversationEvent<{
|
|
14
|
-
actorId: string;
|
|
15
|
-
provider: string;
|
|
16
|
-
accountLabel?: string | undefined;
|
|
17
|
-
authorizationId?: string | undefined;
|
|
18
|
-
providerLabel?: string | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
/** Junior-owned AGENTS.md bootstrap transition for the dashboard timeline. */
|
|
21
|
-
export declare const agentsInstructionsUpdatedEvent: import("@sentry/junior-plugin-api").DefinedConversationEvent<{
|
|
22
|
-
action: "cleared" | "loaded" | "replaced";
|
|
23
|
-
fingerprint: string;
|
|
24
|
-
sources: {
|
|
25
|
-
content: string;
|
|
26
|
-
path: string;
|
|
27
|
-
}[];
|
|
28
|
-
directory?: string | undefined;
|
|
29
|
-
textBytes?: number | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
/** Resolve a registered Junior-native conversation event definition. */
|
|
32
|
-
export declare function getJuniorNativeEventDefinition(args: {
|
|
33
|
-
name: string;
|
|
34
|
-
version: number;
|
|
35
|
-
}): PluginConversationEventDefinition | undefined;
|
|
36
|
-
/** Render one Junior-native event through its active definition. */
|
|
37
|
-
export declare function renderJuniorNativeConversationEvent(args: {
|
|
38
|
-
content: Record<string, unknown>;
|
|
39
|
-
name: string;
|
|
40
|
-
namespace: string;
|
|
41
|
-
version: number;
|
|
42
|
-
}): ConversationEventPresentation | undefined;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { ConversationEventStore, ConversationTurnFailureCode, ConversationTurnFailureReason } from "./history";
|
|
2
|
-
/** Product-owned inputs for opening one correlated conversation turn. */
|
|
3
|
-
export interface StartConversationTurnInput {
|
|
4
|
-
conversationId: string;
|
|
5
|
-
createdAtMs: number;
|
|
6
|
-
inputMessageIds: string[];
|
|
7
|
-
surface: "slack" | "api" | "scheduler" | "internal";
|
|
8
|
-
turnId: string;
|
|
9
|
-
}
|
|
10
|
-
/** Product-owned inputs for closing one correlated conversation turn. */
|
|
11
|
-
export interface CompleteConversationTurnInput {
|
|
12
|
-
conversationId: string;
|
|
13
|
-
createdAtMs: number;
|
|
14
|
-
outcome: "success" | "no_reply" | "cancelled";
|
|
15
|
-
turnId: string;
|
|
16
|
-
}
|
|
17
|
-
/** Inputs for failing one correlated conversation turn. */
|
|
18
|
-
export interface FailConversationTurnInput {
|
|
19
|
-
conversationId: string;
|
|
20
|
-
createdAtMs: number;
|
|
21
|
-
eventId?: string;
|
|
22
|
-
failureCode: ConversationTurnFailureCode;
|
|
23
|
-
failureReason?: ConversationTurnFailureReason;
|
|
24
|
-
turnId: string;
|
|
25
|
-
}
|
|
26
|
-
/** Runtime port for correlated canonical turn lifecycle persistence. */
|
|
27
|
-
export interface ConversationTurnLifecycle {
|
|
28
|
-
start(input: StartConversationTurnInput): Promise<void>;
|
|
29
|
-
complete(input: CompleteConversationTurnInput): Promise<void>;
|
|
30
|
-
fail(input: FailConversationTurnInput): Promise<void>;
|
|
31
|
-
}
|
|
32
|
-
/** Persist correlated turn lifecycle facts with retry-safe terminal exclusion. */
|
|
33
|
-
export declare class ConversationTurnLifecycleService implements ConversationTurnLifecycle {
|
|
34
|
-
private readonly events;
|
|
35
|
-
constructor(events: ConversationEventStore);
|
|
36
|
-
/** Record the turn start once after every input message is durable. */
|
|
37
|
-
start(input: StartConversationTurnInput): Promise<void>;
|
|
38
|
-
/** Record successful or intentional-silence completion once. */
|
|
39
|
-
complete(input: CompleteConversationTurnInput): Promise<void>;
|
|
40
|
-
/** Record a classified failure once. Do not store raw error text. */
|
|
41
|
-
fail(input: FailConversationTurnInput): Promise<void>;
|
|
42
|
-
}
|
|
43
|
-
/** Return the Turn lifecycle that records Conversation events. */
|
|
44
|
-
export declare function getTurnLifecycle(): ConversationTurnLifecycle;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { OAuthAuthorizationRequest } from "@/chat/oauth-authorization";
|
|
2
|
-
/** Pending web authorization saved for one Actor and Conversation. */
|
|
3
|
-
export interface WebAuthorizationState extends OAuthAuthorizationRequest {
|
|
4
|
-
actorId: string;
|
|
5
|
-
conversationId: string;
|
|
6
|
-
}
|
|
7
|
-
/** Build authorization delivery for one web turn. */
|
|
8
|
-
export declare function createWebAuthorization(args: {
|
|
9
|
-
actorId: string;
|
|
10
|
-
conversationId: string;
|
|
11
|
-
}): {
|
|
12
|
-
createState: () => Promise<`${string}-${string}-${string}-${string}-${string}`>;
|
|
13
|
-
deliver: (request: OAuthAuthorizationRequest) => Promise<void>;
|
|
14
|
-
};
|
|
15
|
-
/** Read the pending authorization request for one web actor. */
|
|
16
|
-
export declare function getWebAuthorization(args: {
|
|
17
|
-
actorId: string;
|
|
18
|
-
conversationId: string;
|
|
19
|
-
}): Promise<WebAuthorizationState | undefined>;
|
|
20
|
-
/** Remove a web authorization request after the parked turn continues. */
|
|
21
|
-
export declare function deleteWebAuthorization(args: {
|
|
22
|
-
actorId: string;
|
|
23
|
-
conversationId: string;
|
|
24
|
-
}): Promise<void>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import { type Destination } from "@sentry/junior-plugin-api";
|
|
3
|
-
import type { ConversationPrivacy } from "@/chat/conversation-privacy";
|
|
4
|
-
import { type WebActor } from "@/chat/actor";
|
|
5
|
-
import type { ConversationStore } from "@/chat/conversations/store";
|
|
6
|
-
import { type InboundMessage } from "@/chat/task-execution/store";
|
|
7
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
8
|
-
type EnqueueOptions = {
|
|
9
|
-
conversationStore?: ConversationStore;
|
|
10
|
-
nowMs?: number;
|
|
11
|
-
queue: ConversationWorkQueue;
|
|
12
|
-
state?: StateAdapter;
|
|
13
|
-
};
|
|
14
|
-
/** Input for a new Conversation from web input. */
|
|
15
|
-
export interface CreateConversationInput {
|
|
16
|
-
actor: WebActor;
|
|
17
|
-
message: string;
|
|
18
|
-
/** Client-supplied idempotency key for the first message. */
|
|
19
|
-
idempotencyKey: string;
|
|
20
|
-
/** New roots default public. Continues never rewrite visibility. */
|
|
21
|
-
visibility?: ConversationPrivacy;
|
|
22
|
-
}
|
|
23
|
-
/** Input for one web Message. */
|
|
24
|
-
export interface AppendWebMessageInput {
|
|
25
|
-
actor: WebActor;
|
|
26
|
-
conversationId: string;
|
|
27
|
-
message: string;
|
|
28
|
-
idempotencyKey: string;
|
|
29
|
-
/** Applied only when this call creates the conversation root. */
|
|
30
|
-
rootVisibility?: ConversationPrivacy;
|
|
31
|
-
}
|
|
32
|
-
/** Accepted web Message, including an earlier matching request. */
|
|
33
|
-
export interface WebMessageAccepted {
|
|
34
|
-
conversationId: string;
|
|
35
|
-
messageId: string;
|
|
36
|
-
status: "accepted" | "duplicate";
|
|
37
|
-
}
|
|
38
|
-
/** Result when a request can also find an active Turn. */
|
|
39
|
-
export type WebMessageResult = WebMessageAccepted | {
|
|
40
|
-
conversationId: string;
|
|
41
|
-
messageId: string;
|
|
42
|
-
status: "active";
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Build a durable Conversation id for one web Actor and create key.
|
|
46
|
-
*
|
|
47
|
-
* Retries with the same key must address the same Conversation before the
|
|
48
|
-
* mailbox Message id is derived.
|
|
49
|
-
*/
|
|
50
|
-
export declare function createConversationId(args: {
|
|
51
|
-
actorEmail: string;
|
|
52
|
-
idempotencyKey: string;
|
|
53
|
-
}): string;
|
|
54
|
-
/**
|
|
55
|
-
* Build the retry-stable id for one web Message.
|
|
56
|
-
*
|
|
57
|
-
* TODO(dcramer): Replace the `api-msg` prefix after deployed request retries
|
|
58
|
-
* no longer need to derive ids written by the old web input code.
|
|
59
|
-
*/
|
|
60
|
-
export declare function webMessageId(args: {
|
|
61
|
-
conversationId: string;
|
|
62
|
-
idempotencyKey: string;
|
|
63
|
-
}): string;
|
|
64
|
-
/** Return the stable Turn id for one mailbox Message. */
|
|
65
|
-
export declare function conversationTurnIdForMessage(messageId: string): string;
|
|
66
|
-
/** Rebuild the web Actor from durable Conversation identity. */
|
|
67
|
-
export declare function webActorFromEmail(email: string, profile?: {
|
|
68
|
-
fullName?: string;
|
|
69
|
-
userName?: string;
|
|
70
|
-
}): WebActor;
|
|
71
|
-
/** Build one web mailbox entry. */
|
|
72
|
-
export declare function buildWebInboundMessage(args: {
|
|
73
|
-
actor: WebActor;
|
|
74
|
-
conversationId: string;
|
|
75
|
-
createdAtMs?: number;
|
|
76
|
-
/** Existing Conversation Destination, when the root already exists. */
|
|
77
|
-
destination?: Destination;
|
|
78
|
-
message: string;
|
|
79
|
-
messageId: string;
|
|
80
|
-
nowMs?: number;
|
|
81
|
-
}): InboundMessage;
|
|
82
|
-
/** Record web activity and create a Conversation root when needed. */
|
|
83
|
-
export declare function recordWebConversationActivity(args: {
|
|
84
|
-
actor: WebActor;
|
|
85
|
-
conversationId: string;
|
|
86
|
-
conversationStore?: ConversationStore;
|
|
87
|
-
nowMs: number;
|
|
88
|
-
/** Applied only when this call creates the Conversation root. */
|
|
89
|
-
rootVisibility?: ConversationPrivacy;
|
|
90
|
-
}): Promise<Destination>;
|
|
91
|
-
/** Create a Conversation from web input and enqueue its first Message. */
|
|
92
|
-
export declare function createAndEnqueueConversation(input: CreateConversationInput, options: EnqueueOptions): Promise<WebMessageAccepted>;
|
|
93
|
-
/** Append one web Message and optionally require an idle Conversation. */
|
|
94
|
-
export declare function appendAndEnqueueWebMessage(input: AppendWebMessageInput, options: EnqueueOptions & {
|
|
95
|
-
exclusive: true;
|
|
96
|
-
}): Promise<WebMessageResult>;
|
|
97
|
-
export declare function appendAndEnqueueWebMessage(input: AppendWebMessageInput, options: EnqueueOptions): Promise<WebMessageAccepted>;
|
|
98
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Parse web mailbox metadata written before Source and Actor were complete. */
|
|
3
|
-
export declare const legacyWebMailboxMetadataSchema: z.ZodObject<{
|
|
4
|
-
authorEmail: z.ZodString;
|
|
5
|
-
authorFullName: z.ZodOptional<z.ZodString>;
|
|
6
|
-
authorUserId: z.ZodString;
|
|
7
|
-
authorUserName: z.ZodOptional<z.ZodString>;
|
|
8
|
-
kind: z.ZodLiteral<"api_turn">;
|
|
9
|
-
messageId: z.ZodString;
|
|
10
|
-
}, z.core.$strict>;
|
|
11
|
-
/** Stored metadata used while web mailbox input has no complete Source. */
|
|
12
|
-
export type LegacyWebMailboxMetadata = z.output<typeof legacyWebMailboxMetadataSchema>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { CredentialContext } from "@/chat/credentials/context";
|
|
2
|
-
export declare class CredentialUnavailableError extends Error {
|
|
3
|
-
readonly provider: string;
|
|
4
|
-
constructor(provider: string, message: string);
|
|
5
|
-
}
|
|
6
|
-
export type CredentialHeaderTransform = {
|
|
7
|
-
domain: string;
|
|
8
|
-
headers: Record<string, string>;
|
|
9
|
-
};
|
|
10
|
-
export interface CredentialLease {
|
|
11
|
-
id: string;
|
|
12
|
-
provider: string;
|
|
13
|
-
env: Record<string, string>;
|
|
14
|
-
headerTransforms?: CredentialHeaderTransform[];
|
|
15
|
-
expiresAt: string;
|
|
16
|
-
metadata?: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export interface CredentialBroker {
|
|
19
|
-
issue(input: {
|
|
20
|
-
context: CredentialContext;
|
|
21
|
-
reason: string;
|
|
22
|
-
}): Promise<CredentialLease>;
|
|
23
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type Actor } from "@/chat/actor";
|
|
3
|
-
declare const credentialSubjectBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
-
type: z.ZodLiteral<"slack-direct-conversation">;
|
|
5
|
-
teamId: z.ZodString;
|
|
6
|
-
channelId: z.ZodString;
|
|
7
|
-
signature: z.ZodString;
|
|
8
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9
|
-
type: z.ZodLiteral<"scheduled-task">;
|
|
10
|
-
plugin: z.ZodString;
|
|
11
|
-
taskId: z.ZodString;
|
|
12
|
-
signature: z.ZodString;
|
|
13
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<"event-task">;
|
|
15
|
-
plugin: z.ZodString;
|
|
16
|
-
taskId: z.ZodString;
|
|
17
|
-
signature: z.ZodString;
|
|
18
|
-
}, z.core.$strict>], "type">;
|
|
19
|
-
declare const credentialSystemActorSchema: z.ZodObject<{
|
|
20
|
-
platform: z.ZodLiteral<"system">;
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
}, z.core.$strict>;
|
|
23
|
-
export declare const credentialSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
-
type: z.ZodLiteral<"user">;
|
|
25
|
-
userId: z.ZodString;
|
|
26
|
-
allowedWhen: z.ZodLiteral<"private-direct-conversation">;
|
|
27
|
-
binding: z.ZodObject<{
|
|
28
|
-
type: z.ZodLiteral<"slack-direct-conversation">;
|
|
29
|
-
teamId: z.ZodString;
|
|
30
|
-
channelId: z.ZodString;
|
|
31
|
-
signature: z.ZodString;
|
|
32
|
-
}, z.core.$strict>;
|
|
33
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
-
type: z.ZodLiteral<"user">;
|
|
35
|
-
userId: z.ZodString;
|
|
36
|
-
allowedWhen: z.ZodLiteral<"scheduled-task">;
|
|
37
|
-
taskId: z.ZodString;
|
|
38
|
-
binding: z.ZodObject<{
|
|
39
|
-
type: z.ZodLiteral<"scheduled-task">;
|
|
40
|
-
plugin: z.ZodString;
|
|
41
|
-
taskId: z.ZodString;
|
|
42
|
-
signature: z.ZodString;
|
|
43
|
-
}, z.core.$strict>;
|
|
44
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
-
type: z.ZodLiteral<"user">;
|
|
46
|
-
userId: z.ZodString;
|
|
47
|
-
allowedWhen: z.ZodLiteral<"event-task">;
|
|
48
|
-
taskId: z.ZodString;
|
|
49
|
-
binding: z.ZodObject<{
|
|
50
|
-
type: z.ZodLiteral<"event-task">;
|
|
51
|
-
plugin: z.ZodString;
|
|
52
|
-
taskId: z.ZodString;
|
|
53
|
-
signature: z.ZodString;
|
|
54
|
-
}, z.core.$strict>;
|
|
55
|
-
}, z.core.$strict>], "allowedWhen">;
|
|
56
|
-
export declare const credentialContextSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
57
|
-
actor: z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"user">;
|
|
59
|
-
userId: z.ZodString;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
-
actor: z.ZodObject<{
|
|
63
|
-
platform: z.ZodLiteral<"system">;
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
}, z.core.$strict>;
|
|
66
|
-
subject: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
-
type: z.ZodLiteral<"user">;
|
|
68
|
-
userId: z.ZodString;
|
|
69
|
-
allowedWhen: z.ZodLiteral<"private-direct-conversation">;
|
|
70
|
-
binding: z.ZodObject<{
|
|
71
|
-
type: z.ZodLiteral<"slack-direct-conversation">;
|
|
72
|
-
teamId: z.ZodString;
|
|
73
|
-
channelId: z.ZodString;
|
|
74
|
-
signature: z.ZodString;
|
|
75
|
-
}, z.core.$strict>;
|
|
76
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"user">;
|
|
78
|
-
userId: z.ZodString;
|
|
79
|
-
allowedWhen: z.ZodLiteral<"scheduled-task">;
|
|
80
|
-
taskId: z.ZodString;
|
|
81
|
-
binding: z.ZodObject<{
|
|
82
|
-
type: z.ZodLiteral<"scheduled-task">;
|
|
83
|
-
plugin: z.ZodString;
|
|
84
|
-
taskId: z.ZodString;
|
|
85
|
-
signature: z.ZodString;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
-
type: z.ZodLiteral<"user">;
|
|
89
|
-
userId: z.ZodString;
|
|
90
|
-
allowedWhen: z.ZodLiteral<"event-task">;
|
|
91
|
-
taskId: z.ZodString;
|
|
92
|
-
binding: z.ZodObject<{
|
|
93
|
-
type: z.ZodLiteral<"event-task">;
|
|
94
|
-
plugin: z.ZodString;
|
|
95
|
-
taskId: z.ZodString;
|
|
96
|
-
signature: z.ZodString;
|
|
97
|
-
}, z.core.$strict>;
|
|
98
|
-
}, z.core.$strict>], "allowedWhen">>;
|
|
99
|
-
}, z.core.$strict>]>;
|
|
100
|
-
export type CredentialSubjectBinding = z.output<typeof credentialSubjectBindingSchema>;
|
|
101
|
-
export type CredentialSystemActor = z.output<typeof credentialSystemActorSchema>;
|
|
102
|
-
export type CredentialSubject = z.output<typeof credentialSubjectSchema>;
|
|
103
|
-
export type CredentialContext = z.output<typeof credentialContextSchema>;
|
|
104
|
-
/**
|
|
105
|
-
* Build credential authority from the run actor.
|
|
106
|
-
*
|
|
107
|
-
* `actor` is the rich execution principal. This projects the credential stub
|
|
108
|
-
* tools/auth need from it:
|
|
109
|
-
* - user actor → `{ actor: { type: "user", userId } }`
|
|
110
|
-
* - system actor → `{ actor: systemActor, subject? }`
|
|
111
|
-
*
|
|
112
|
-
* They only diverge when a system run carries an explicit delegated `subject`
|
|
113
|
-
* (scheduled/event-task creator credentials). Callers should set `actor` first,
|
|
114
|
-
* then derive this — do not hand-build parallel shapes.
|
|
115
|
-
*/
|
|
116
|
-
export declare function credentialContextForActor(actor: Actor, subject?: CredentialSubject): CredentialContext;
|
|
117
|
-
/** Return the user whose OAuth token may satisfy this credential request. */
|
|
118
|
-
export declare function credentialUserSubjectId(context: CredentialContext): string | undefined;
|
|
119
|
-
/** Parse an untrusted credential context payload from sandbox egress state. */
|
|
120
|
-
export declare function parseCredentialContext(value: unknown): CredentialContext | undefined;
|
|
121
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { CredentialHeaderTransform } from "@/chat/credentials/broker";
|
|
2
|
-
/** Merge transforms by domain so later transforms override earlier headers. */
|
|
3
|
-
export declare function mergeHeaderTransforms(transforms: CredentialHeaderTransform[]): CredentialHeaderTransform[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Normalize OAuth scope strings so persisted grants can be compared reliably. */
|
|
2
|
-
export declare function normalizeOAuthScope(scope?: string): string | undefined;
|
|
3
|
-
/** Return whether the stored grant still satisfies the provider's current scope contract. */
|
|
4
|
-
export declare function hasRequiredOAuthScope(storedScope?: string, requiredScope?: string): boolean;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import type { StoredTokens, UserTokenStore } from "@/chat/credentials/user-token-store";
|
|
3
|
-
export declare class StateAdapterTokenStore implements UserTokenStore {
|
|
4
|
-
private readonly state;
|
|
5
|
-
constructor(stateAdapter: StateAdapter);
|
|
6
|
-
get(userId: string, provider: string): Promise<StoredTokens | undefined>;
|
|
7
|
-
set(userId: string, provider: string, tokens: StoredTokens): Promise<void>;
|
|
8
|
-
delete(userId: string, provider: string): Promise<void>;
|
|
9
|
-
/** Wait for the per-slot refresh gate so rotated refresh tokens are used once. */
|
|
10
|
-
withRefresh<T>(userId: string, provider: string, callback: () => Promise<T>): Promise<T>;
|
|
11
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { PluginCredentialSubject } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { CredentialSubject } from "@/chat/credentials/context";
|
|
3
|
-
type SlackDirectPluginCredentialSubject = Extract<PluginCredentialSubject, {
|
|
4
|
-
allowedWhen: "private-direct-conversation";
|
|
5
|
-
}>;
|
|
6
|
-
/** Create a delegated user credential subject for a verified Slack DM turn. */
|
|
7
|
-
export declare function createSlackDirectCredentialSubject(input: {
|
|
8
|
-
channelId: string | undefined;
|
|
9
|
-
teamId: string | undefined;
|
|
10
|
-
userId: string | undefined;
|
|
11
|
-
}): SlackDirectPluginCredentialSubject | undefined;
|
|
12
|
-
/** Bind a delegated user subject to the Slack DM destination being dispatched. */
|
|
13
|
-
export declare function bindSlackDirectCredentialSubject(input: {
|
|
14
|
-
channelId: string;
|
|
15
|
-
subject: PluginCredentialSubject;
|
|
16
|
-
teamId: string;
|
|
17
|
-
}): CredentialSubject | undefined;
|
|
18
|
-
/** Verify that a delegated subject was signed for the dispatch destination. */
|
|
19
|
-
export declare function verifySlackDirectCredentialSubject(input: {
|
|
20
|
-
channelId: string;
|
|
21
|
-
subject: CredentialSubject;
|
|
22
|
-
teamId: string;
|
|
23
|
-
}): boolean;
|
|
24
|
-
/** Bind a delegated user subject to one scheduler task dispatch. */
|
|
25
|
-
export declare function bindScheduledTaskCredentialSubject(input: {
|
|
26
|
-
plugin: string;
|
|
27
|
-
subject: PluginCredentialSubject;
|
|
28
|
-
}): CredentialSubject | undefined;
|
|
29
|
-
/** Verify that a delegated subject was signed for one scheduler task. */
|
|
30
|
-
export declare function verifyScheduledTaskCredentialSubject(input: {
|
|
31
|
-
plugin: string;
|
|
32
|
-
subject: CredentialSubject;
|
|
33
|
-
}): boolean;
|
|
34
|
-
/** Bind a delegated user subject to one event task dispatch. */
|
|
35
|
-
export declare function bindEventTaskCredentialSubject(input: {
|
|
36
|
-
plugin: string;
|
|
37
|
-
subject: {
|
|
38
|
-
allowedWhen: "event-task";
|
|
39
|
-
taskId: string;
|
|
40
|
-
type: "user";
|
|
41
|
-
userId: string;
|
|
42
|
-
};
|
|
43
|
-
}): CredentialSubject | undefined;
|
|
44
|
-
/** Verify that a delegated subject was signed for one event task. */
|
|
45
|
-
export declare function verifyEventTaskCredentialSubject(input: {
|
|
46
|
-
plugin: string;
|
|
47
|
-
subject: CredentialSubject;
|
|
48
|
-
}): boolean;
|
|
49
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { UserTokenStore } from "@/chat/credentials/user-token-store";
|
|
2
|
-
/** Remove one provider connection and its exact stored account identity. */
|
|
3
|
-
export declare function unlinkProvider(userId: string, provider: string, userTokenStore: UserTokenStore, slackTeamId?: string): Promise<void>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type PluginProviderAccount, type PluginStoredTokens } from "@sentry/junior-plugin-api";
|
|
2
|
-
export declare const storedTokensSchema: import("zod").ZodObject<{
|
|
3
|
-
account: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4
|
-
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
-
handle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
-
id: import("zod").ZodString;
|
|
7
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
-
}, import("zod/v4/core").$strict>>;
|
|
10
|
-
accessToken: import("zod").ZodString;
|
|
11
|
-
expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12
|
-
refreshToken: import("zod").ZodString;
|
|
13
|
-
refreshTokenExpiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
-
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
-
}, import("zod/v4/core").$strict>;
|
|
16
|
-
export type StoredProviderAccount = PluginProviderAccount;
|
|
17
|
-
export type StoredTokens = PluginStoredTokens;
|
|
18
|
-
export interface UserTokenStore {
|
|
19
|
-
get(userId: string, provider: string): Promise<StoredTokens | undefined>;
|
|
20
|
-
set(userId: string, provider: string, tokens: StoredTokens): Promise<void>;
|
|
21
|
-
delete(userId: string, provider: string): Promise<void>;
|
|
22
|
-
/** Run refresh-token rotation for one user/provider slot, or throw after a bounded wait. */
|
|
23
|
-
withRefresh<T>(userId: string, provider: string, callback: () => Promise<T>): Promise<T>;
|
|
24
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Render the active user task in a stable prompt boundary. */
|
|
2
|
-
export declare function renderCurrentInstruction(instruction: string, attrs?: {
|
|
3
|
-
authorId?: string;
|
|
4
|
-
authorName?: string;
|
|
5
|
-
slackTs?: string;
|
|
6
|
-
}): string;
|
|
7
|
-
/** Recover display text from the internal current-task prompt boundary. */
|
|
8
|
-
export declare function unwrapCurrentInstruction(text: string): string | undefined;
|