@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,274 +0,0 @@
|
|
|
1
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
2
|
-
import { Message, ThreadImpl, type StateAdapter } from "chat";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import type { SlackTurnOptions } from "@/chat/providers/slack/runtime";
|
|
5
|
-
import type { InboundMessage } from "@/chat/task-execution/store";
|
|
6
|
-
import type { ConversationWorkerContext, ConversationWorkerResult } from "@/chat/task-execution/worker";
|
|
7
|
-
import { type SlackInstallationContext } from "@/chat/slack/adapter-context";
|
|
8
|
-
import { type SlackActorProfile } from "@/chat/actor";
|
|
9
|
-
import { type CrossActorMidRunMode } from "@/chat/config";
|
|
10
|
-
declare const slackConversationRouteSchema: z.ZodEnum<{
|
|
11
|
-
mention: "mention";
|
|
12
|
-
subscribed: "subscribed";
|
|
13
|
-
}>;
|
|
14
|
-
export type SlackConversationRoute = z.output<typeof slackConversationRouteSchema>;
|
|
15
|
-
declare const slackConversationMessageMetadataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
16
|
-
installation: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
enterpriseId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
isEnterpriseInstall: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
teamId: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strict>>;
|
|
21
|
-
message: z.ZodObject<{
|
|
22
|
-
_type: z.ZodLiteral<"chat:Message">;
|
|
23
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
24
|
-
type: z.ZodEnum<{
|
|
25
|
-
file: "file";
|
|
26
|
-
image: "image";
|
|
27
|
-
audio: "audio";
|
|
28
|
-
video: "video";
|
|
29
|
-
}>;
|
|
30
|
-
url: z.ZodOptional<z.ZodString>;
|
|
31
|
-
name: z.ZodOptional<z.ZodString>;
|
|
32
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
33
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
fetchMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
|
-
}, z.core.$strict>>;
|
|
38
|
-
author: z.ZodObject<{
|
|
39
|
-
userId: z.ZodString;
|
|
40
|
-
userName: z.ZodString;
|
|
41
|
-
fullName: z.ZodString;
|
|
42
|
-
isBot: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"unknown">]>;
|
|
43
|
-
isMe: z.ZodBoolean;
|
|
44
|
-
}, z.core.$strict>;
|
|
45
|
-
formatted: z.ZodCustom<import("chat").Root, import("chat").Root>;
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
isMention: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
-
url: z.ZodString;
|
|
50
|
-
title: z.ZodOptional<z.ZodString>;
|
|
51
|
-
description: z.ZodOptional<z.ZodString>;
|
|
52
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
53
|
-
siteName: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$strict>>>;
|
|
55
|
-
metadata: z.ZodObject<{
|
|
56
|
-
dateSent: z.ZodISODateTime;
|
|
57
|
-
edited: z.ZodBoolean;
|
|
58
|
-
editedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
raw: z.ZodUnknown;
|
|
61
|
-
text: z.ZodString;
|
|
62
|
-
threadId: z.ZodString;
|
|
63
|
-
}, z.core.$strict>;
|
|
64
|
-
platform: z.ZodLiteral<"slack">;
|
|
65
|
-
route: z.ZodEnum<{
|
|
66
|
-
mention: "mention";
|
|
67
|
-
subscribed: "subscribed";
|
|
68
|
-
}>;
|
|
69
|
-
thread: z.ZodObject<{
|
|
70
|
-
_type: z.ZodLiteral<"chat:Thread">;
|
|
71
|
-
adapterName: z.ZodLiteral<"slack">;
|
|
72
|
-
channelId: z.ZodString;
|
|
73
|
-
channelVisibility: z.ZodOptional<z.ZodEnum<{
|
|
74
|
-
private: "private";
|
|
75
|
-
unknown: "unknown";
|
|
76
|
-
external: "external";
|
|
77
|
-
workspace: "workspace";
|
|
78
|
-
}>>;
|
|
79
|
-
currentMessage: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
_type: z.ZodLiteral<"chat:Message">;
|
|
81
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
82
|
-
type: z.ZodEnum<{
|
|
83
|
-
file: "file";
|
|
84
|
-
image: "image";
|
|
85
|
-
audio: "audio";
|
|
86
|
-
video: "video";
|
|
87
|
-
}>;
|
|
88
|
-
url: z.ZodOptional<z.ZodString>;
|
|
89
|
-
name: z.ZodOptional<z.ZodString>;
|
|
90
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
91
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
93
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
94
|
-
fetchMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
95
|
-
}, z.core.$strict>>;
|
|
96
|
-
author: z.ZodObject<{
|
|
97
|
-
userId: z.ZodString;
|
|
98
|
-
userName: z.ZodString;
|
|
99
|
-
fullName: z.ZodString;
|
|
100
|
-
isBot: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"unknown">]>;
|
|
101
|
-
isMe: z.ZodBoolean;
|
|
102
|
-
}, z.core.$strict>;
|
|
103
|
-
formatted: z.ZodCustom<import("chat").Root, import("chat").Root>;
|
|
104
|
-
id: z.ZodString;
|
|
105
|
-
isMention: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
-
url: z.ZodString;
|
|
108
|
-
title: z.ZodOptional<z.ZodString>;
|
|
109
|
-
description: z.ZodOptional<z.ZodString>;
|
|
110
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
111
|
-
siteName: z.ZodOptional<z.ZodString>;
|
|
112
|
-
}, z.core.$strict>>>;
|
|
113
|
-
metadata: z.ZodObject<{
|
|
114
|
-
dateSent: z.ZodISODateTime;
|
|
115
|
-
edited: z.ZodBoolean;
|
|
116
|
-
editedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
117
|
-
}, z.core.$strict>;
|
|
118
|
-
raw: z.ZodUnknown;
|
|
119
|
-
text: z.ZodString;
|
|
120
|
-
threadId: z.ZodString;
|
|
121
|
-
}, z.core.$strict>>;
|
|
122
|
-
id: z.ZodString;
|
|
123
|
-
isDM: z.ZodBoolean;
|
|
124
|
-
}, z.core.$strict>;
|
|
125
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
126
|
-
installation: z.ZodOptional<z.ZodObject<{
|
|
127
|
-
enterpriseId: z.ZodOptional<z.ZodString>;
|
|
128
|
-
isEnterpriseInstall: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
-
teamId: z.ZodOptional<z.ZodString>;
|
|
130
|
-
}, z.core.$strict>>;
|
|
131
|
-
message: z.ZodObject<{
|
|
132
|
-
_type: z.ZodLiteral<"chat:Message">;
|
|
133
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
134
|
-
type: z.ZodEnum<{
|
|
135
|
-
file: "file";
|
|
136
|
-
image: "image";
|
|
137
|
-
audio: "audio";
|
|
138
|
-
video: "video";
|
|
139
|
-
}>;
|
|
140
|
-
url: z.ZodOptional<z.ZodString>;
|
|
141
|
-
name: z.ZodOptional<z.ZodString>;
|
|
142
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
143
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
144
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
145
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
146
|
-
fetchMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
147
|
-
}, z.core.$strict>>;
|
|
148
|
-
author: z.ZodObject<{
|
|
149
|
-
userId: z.ZodString;
|
|
150
|
-
userName: z.ZodString;
|
|
151
|
-
fullName: z.ZodString;
|
|
152
|
-
isBot: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"unknown">]>;
|
|
153
|
-
isMe: z.ZodBoolean;
|
|
154
|
-
}, z.core.$strict>;
|
|
155
|
-
formatted: z.ZodCustom<import("chat").Root, import("chat").Root>;
|
|
156
|
-
id: z.ZodString;
|
|
157
|
-
isMention: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
|
-
url: z.ZodString;
|
|
160
|
-
title: z.ZodOptional<z.ZodString>;
|
|
161
|
-
description: z.ZodOptional<z.ZodString>;
|
|
162
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
163
|
-
siteName: z.ZodOptional<z.ZodString>;
|
|
164
|
-
}, z.core.$strict>>>;
|
|
165
|
-
metadata: z.ZodObject<{
|
|
166
|
-
dateSent: z.ZodISODateTime;
|
|
167
|
-
edited: z.ZodBoolean;
|
|
168
|
-
editedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
169
|
-
}, z.core.$strict>;
|
|
170
|
-
raw: z.ZodUnknown;
|
|
171
|
-
text: z.ZodString;
|
|
172
|
-
threadId: z.ZodString;
|
|
173
|
-
}, z.core.$strict>;
|
|
174
|
-
platform: z.ZodLiteral<"slack">;
|
|
175
|
-
route: z.ZodEnum<{
|
|
176
|
-
mention: "mention";
|
|
177
|
-
subscribed: "subscribed";
|
|
178
|
-
}>;
|
|
179
|
-
thread: z.ZodObject<{
|
|
180
|
-
_type: z.ZodLiteral<"chat:Thread">;
|
|
181
|
-
adapterName: z.ZodLiteral<"slack">;
|
|
182
|
-
channelId: z.ZodString;
|
|
183
|
-
channelVisibility: z.ZodOptional<z.ZodEnum<{
|
|
184
|
-
private: "private";
|
|
185
|
-
unknown: "unknown";
|
|
186
|
-
external: "external";
|
|
187
|
-
workspace: "workspace";
|
|
188
|
-
}>>;
|
|
189
|
-
currentMessage: z.ZodOptional<z.ZodObject<{
|
|
190
|
-
_type: z.ZodLiteral<"chat:Message">;
|
|
191
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
192
|
-
type: z.ZodEnum<{
|
|
193
|
-
file: "file";
|
|
194
|
-
image: "image";
|
|
195
|
-
audio: "audio";
|
|
196
|
-
video: "video";
|
|
197
|
-
}>;
|
|
198
|
-
url: z.ZodOptional<z.ZodString>;
|
|
199
|
-
name: z.ZodOptional<z.ZodString>;
|
|
200
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
201
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
202
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
203
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
204
|
-
fetchMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
205
|
-
}, z.core.$strict>>;
|
|
206
|
-
author: z.ZodObject<{
|
|
207
|
-
userId: z.ZodString;
|
|
208
|
-
userName: z.ZodString;
|
|
209
|
-
fullName: z.ZodString;
|
|
210
|
-
isBot: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"unknown">]>;
|
|
211
|
-
isMe: z.ZodBoolean;
|
|
212
|
-
}, z.core.$strict>;
|
|
213
|
-
formatted: z.ZodCustom<import("chat").Root, import("chat").Root>;
|
|
214
|
-
id: z.ZodString;
|
|
215
|
-
isMention: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
-
url: z.ZodString;
|
|
218
|
-
title: z.ZodOptional<z.ZodString>;
|
|
219
|
-
description: z.ZodOptional<z.ZodString>;
|
|
220
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
221
|
-
siteName: z.ZodOptional<z.ZodString>;
|
|
222
|
-
}, z.core.$strict>>>;
|
|
223
|
-
metadata: z.ZodObject<{
|
|
224
|
-
dateSent: z.ZodISODateTime;
|
|
225
|
-
edited: z.ZodBoolean;
|
|
226
|
-
editedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
227
|
-
}, z.core.$strict>;
|
|
228
|
-
raw: z.ZodUnknown;
|
|
229
|
-
text: z.ZodString;
|
|
230
|
-
threadId: z.ZodString;
|
|
231
|
-
}, z.core.$strict>>;
|
|
232
|
-
id: z.ZodString;
|
|
233
|
-
isDM: z.ZodBoolean;
|
|
234
|
-
}, z.core.$strict>;
|
|
235
|
-
kind: z.ZodLiteral<"resource_event">;
|
|
236
|
-
resourceEvent: z.ZodObject<{
|
|
237
|
-
eventKey: z.ZodString;
|
|
238
|
-
eventType: z.ZodString;
|
|
239
|
-
namespace: z.ZodString;
|
|
240
|
-
identifier: z.ZodString;
|
|
241
|
-
subscriptionId: z.ZodString;
|
|
242
|
-
}, z.core.$strict>;
|
|
243
|
-
}, z.core.$strict>]>;
|
|
244
|
-
export type SlackConversationMessageMetadata = z.output<typeof slackConversationMessageMetadataSchema>;
|
|
245
|
-
type SlackInboxTurnOptions = SlackTurnOptions & {
|
|
246
|
-
ack: () => Promise<void>;
|
|
247
|
-
isFinalAttempt: boolean;
|
|
248
|
-
};
|
|
249
|
-
interface SlackInboxTurnRuntime {
|
|
250
|
-
handleNewMention(thread: ThreadImpl, message: Message, hooks: SlackInboxTurnOptions): Promise<void>;
|
|
251
|
-
handleSubscribedMessage(thread: ThreadImpl, message: Message, hooks: SlackInboxTurnOptions): Promise<void>;
|
|
252
|
-
}
|
|
253
|
-
export interface CreateSlackConversationWorkerOptions {
|
|
254
|
-
crossActorMidRunMode?: CrossActorMidRunMode;
|
|
255
|
-
getSlackAdapter: () => SlackAdapter;
|
|
256
|
-
lookupSlackUser?: (teamId: string, userId: string) => Promise<SlackActorProfile | null | undefined>;
|
|
257
|
-
runNextPausedTurn: (conversationId: string, options: {
|
|
258
|
-
shouldYield: () => boolean;
|
|
259
|
-
}) => Promise<boolean>;
|
|
260
|
-
runtime: SlackInboxTurnRuntime;
|
|
261
|
-
state?: StateAdapter;
|
|
262
|
-
}
|
|
263
|
-
/** Build the worker run function for queued Slack conversation work. */
|
|
264
|
-
export declare function createSlackConversationWorker(options: CreateSlackConversationWorkerOptions): (context: ConversationWorkerContext) => Promise<ConversationWorkerResult>;
|
|
265
|
-
/** Serialize a Slack message into the generic durable conversation mailbox. */
|
|
266
|
-
export declare function buildSlackInboundMessage(args: {
|
|
267
|
-
conversationId: string;
|
|
268
|
-
installation?: SlackInstallationContext;
|
|
269
|
-
message: Message;
|
|
270
|
-
receivedAtMs: number;
|
|
271
|
-
route: SlackConversationRoute;
|
|
272
|
-
thread: ThreadImpl;
|
|
273
|
-
}): InboundMessage;
|
|
274
|
-
export {};
|
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import { type Destination } from "@sentry/junior-plugin-api";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import { type StoredSlackActor } from "@/chat/actor";
|
|
5
|
-
declare class InvalidConversationRecordError extends Error {
|
|
6
|
-
constructor(conversationId: string);
|
|
7
|
-
}
|
|
8
|
-
/** Return whether an error means a stored conversation record failed validation. */
|
|
9
|
-
export declare function isInvalidConversationRecordError(error: unknown): error is InvalidConversationRecordError;
|
|
10
|
-
export declare const CONVERSATION_BY_ACTIVITY_INDEX_KEY = "junior:conversation:v2:by-activity";
|
|
11
|
-
export declare const CONVERSATION_ACTIVE_INDEX_KEY = "junior:conversation:v2:active";
|
|
12
|
-
export declare const CONVERSATION_WORK_LEASE_TTL_MS = 90000;
|
|
13
|
-
export declare const CONVERSATION_WORK_CHECK_IN_INTERVAL_MS = 15000;
|
|
14
|
-
export declare const CONVERSATION_WORK_STALE_ENQUEUE_MS = 60000;
|
|
15
|
-
export declare const CONVERSATION_WORK_MAX_DELIVERY_ATTEMPTS = 5;
|
|
16
|
-
export declare const CONVERSATION_WORK_MAX_RETRIES = 5;
|
|
17
|
-
declare const inboundMessageSourceSchema: z.ZodEnum<{
|
|
18
|
-
slack: "slack";
|
|
19
|
-
local: "local";
|
|
20
|
-
web: "web";
|
|
21
|
-
resource_event: "resource_event";
|
|
22
|
-
plugin: "plugin";
|
|
23
|
-
api: "api";
|
|
24
|
-
scheduler: "scheduler";
|
|
25
|
-
internal: "internal";
|
|
26
|
-
}>;
|
|
27
|
-
export type Source = z.output<typeof inboundMessageSourceSchema>;
|
|
28
|
-
export type ExecutionStatus = "paused" | "failed" | "idle" | "pending" | "running";
|
|
29
|
-
declare const agentInputSchema: z.ZodObject<{
|
|
30
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
31
|
-
authorId: z.ZodOptional<z.ZodString>;
|
|
32
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
-
text: z.ZodString;
|
|
34
|
-
}, z.core.$strict>;
|
|
35
|
-
export type AgentInput = z.output<typeof agentInputSchema>;
|
|
36
|
-
/** Durable delivery modes for pending inbound mailbox work. */
|
|
37
|
-
export declare const inboundMessageDeliverySchema: z.ZodEnum<{
|
|
38
|
-
defer: "defer";
|
|
39
|
-
interrupt: "interrupt";
|
|
40
|
-
}>;
|
|
41
|
-
export type InboundMessageDelivery = z.output<typeof inboundMessageDeliverySchema>;
|
|
42
|
-
/** Canonical durable mailbox entry owned by task execution. */
|
|
43
|
-
export declare const inboundMessageSchema: z.ZodObject<{
|
|
44
|
-
attemptCount: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
conversationId: z.ZodString;
|
|
46
|
-
createdAtMs: z.ZodNumber;
|
|
47
|
-
delivery: z.ZodEnum<{
|
|
48
|
-
defer: "defer";
|
|
49
|
-
interrupt: "interrupt";
|
|
50
|
-
}>;
|
|
51
|
-
destination: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
-
platform: z.ZodLiteral<"slack">;
|
|
53
|
-
teamId: z.ZodString;
|
|
54
|
-
channelId: z.ZodString;
|
|
55
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
-
platform: z.ZodLiteral<"local">;
|
|
57
|
-
conversationId: z.ZodString;
|
|
58
|
-
}, z.core.$strict>], "platform">>;
|
|
59
|
-
inboundMessageId: z.ZodString;
|
|
60
|
-
injectedAtMs: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
input: z.ZodObject<{
|
|
62
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
63
|
-
authorId: z.ZodOptional<z.ZodString>;
|
|
64
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
|
-
text: z.ZodString;
|
|
66
|
-
}, z.core.$strict>;
|
|
67
|
-
receivedAtMs: z.ZodNumber;
|
|
68
|
-
source: z.ZodEnum<{
|
|
69
|
-
slack: "slack";
|
|
70
|
-
local: "local";
|
|
71
|
-
web: "web";
|
|
72
|
-
resource_event: "resource_event";
|
|
73
|
-
plugin: "plugin";
|
|
74
|
-
api: "api";
|
|
75
|
-
scheduler: "scheduler";
|
|
76
|
-
internal: "internal";
|
|
77
|
-
}>;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
export type InboundMessage = z.output<typeof inboundMessageSchema>;
|
|
80
|
-
export interface Lease {
|
|
81
|
-
acquiredAtMs: number;
|
|
82
|
-
expiresAtMs: number;
|
|
83
|
-
lastCheckInAtMs: number;
|
|
84
|
-
token: string;
|
|
85
|
-
}
|
|
86
|
-
/** Durable request to stop the current Conversation run. */
|
|
87
|
-
export interface ConversationStop {
|
|
88
|
-
inboundMessageIds: string[];
|
|
89
|
-
runId: string;
|
|
90
|
-
}
|
|
91
|
-
export interface ConversationExecution {
|
|
92
|
-
inboundMessageIds: string[];
|
|
93
|
-
lastCheckpointAtMs?: number;
|
|
94
|
-
lastEnqueuedAtMs?: number;
|
|
95
|
-
lastProgressAtMs?: number;
|
|
96
|
-
retryCount?: number;
|
|
97
|
-
lease?: Lease;
|
|
98
|
-
pendingCount: number;
|
|
99
|
-
pendingMessages: InboundMessage[];
|
|
100
|
-
runId?: string;
|
|
101
|
-
status: ExecutionStatus;
|
|
102
|
-
stop?: ConversationStop;
|
|
103
|
-
updatedAtMs?: number;
|
|
104
|
-
}
|
|
105
|
-
export interface Conversation {
|
|
106
|
-
channelName?: string;
|
|
107
|
-
conversationId: string;
|
|
108
|
-
createdAtMs: number;
|
|
109
|
-
destination?: Destination;
|
|
110
|
-
execution: ConversationExecution;
|
|
111
|
-
lastActivityAtMs: number;
|
|
112
|
-
actor?: StoredSlackActor;
|
|
113
|
-
schemaVersion: 2;
|
|
114
|
-
source?: Source;
|
|
115
|
-
title?: string;
|
|
116
|
-
updatedAtMs: number;
|
|
117
|
-
}
|
|
118
|
-
export interface ConversationWorkLease {
|
|
119
|
-
acquiredAtMs: number;
|
|
120
|
-
lastCheckInAtMs: number;
|
|
121
|
-
leaseExpiresAtMs: number;
|
|
122
|
-
leaseToken: string;
|
|
123
|
-
}
|
|
124
|
-
export interface ConversationWorkState extends Conversation {
|
|
125
|
-
lastEnqueuedAtMs?: number;
|
|
126
|
-
lease?: ConversationWorkLease;
|
|
127
|
-
messages: InboundMessage[];
|
|
128
|
-
needsRun: boolean;
|
|
129
|
-
}
|
|
130
|
-
export interface StartConversationWorkAcquired {
|
|
131
|
-
leaseExpiresAtMs: number;
|
|
132
|
-
leaseToken: string;
|
|
133
|
-
status: "acquired";
|
|
134
|
-
}
|
|
135
|
-
export interface StartConversationWorkActive {
|
|
136
|
-
leaseExpiresAtMs: number;
|
|
137
|
-
status: "active";
|
|
138
|
-
}
|
|
139
|
-
export interface StartConversationWorkNoWork {
|
|
140
|
-
status: "no_work";
|
|
141
|
-
}
|
|
142
|
-
export type StartConversationWorkResult = StartConversationWorkAcquired | StartConversationWorkActive | StartConversationWorkNoWork;
|
|
143
|
-
export interface AppendInboundMessageResult {
|
|
144
|
-
status: "appended" | "duplicate";
|
|
145
|
-
}
|
|
146
|
-
export interface AppendAndEnqueueInboundMessageResult extends AppendInboundMessageResult {
|
|
147
|
-
queueMessageId?: string;
|
|
148
|
-
}
|
|
149
|
-
/** Result of requesting that the current Conversation run stop. */
|
|
150
|
-
export type StopConversationWorkResult = {
|
|
151
|
-
status: "no_work";
|
|
152
|
-
} | {
|
|
153
|
-
runId: string;
|
|
154
|
-
status: "requested";
|
|
155
|
-
};
|
|
156
|
-
/** Result of clearing one stop observed by the matching leased run. */
|
|
157
|
-
export interface CompleteConversationStopResult {
|
|
158
|
-
status: "cleared" | "lost_lease" | "none";
|
|
159
|
-
removedInboundMessageIds: string[];
|
|
160
|
-
}
|
|
161
|
-
/** Result of an append that rejects new work while a Conversation is runnable. */
|
|
162
|
-
export type AppendExclusiveInboundMessageResult = AppendInboundMessageResult | {
|
|
163
|
-
status: "active";
|
|
164
|
-
};
|
|
165
|
-
/** Exclusive append result with an optional queue delivery id. */
|
|
166
|
-
export type AppendAndEnqueueExclusiveInboundMessageResult = AppendAndEnqueueInboundMessageResult | {
|
|
167
|
-
status: "active";
|
|
168
|
-
};
|
|
169
|
-
export interface RequestConversationWorkResult {
|
|
170
|
-
status: "created" | "updated";
|
|
171
|
-
}
|
|
172
|
-
/** Whether this is the final attempt before an unacked message is dead-lettered. */
|
|
173
|
-
export declare function isFinalAttempt(message: Pick<InboundMessage, "attemptCount">): boolean;
|
|
174
|
-
/** Return a persisted conversation record, if one exists. */
|
|
175
|
-
export declare function getConversation(args: {
|
|
176
|
-
conversationId: string;
|
|
177
|
-
state?: StateAdapter;
|
|
178
|
-
}): Promise<Conversation | undefined>;
|
|
179
|
-
/** Return a persisted conversation work record, if one exists. */
|
|
180
|
-
export declare function getConversationWorkState(args: {
|
|
181
|
-
conversationId: string;
|
|
182
|
-
state?: StateAdapter;
|
|
183
|
-
}): Promise<ConversationWorkState | undefined>;
|
|
184
|
-
/** Count mailbox messages that have not yet reached the conversation event log. */
|
|
185
|
-
export declare function countPendingConversationMessages(conversation: Conversation): number;
|
|
186
|
-
/** Return whether a conversation has pending or resumable execution work. */
|
|
187
|
-
export declare function hasRunnableConversationWork(conversation: Conversation): boolean;
|
|
188
|
-
/** Persist one inbound message idempotently in its conversation mailbox. */
|
|
189
|
-
export declare function appendInboundMessage(args: {
|
|
190
|
-
message: InboundMessage;
|
|
191
|
-
nowMs?: number;
|
|
192
|
-
state?: StateAdapter;
|
|
193
|
-
}): Promise<AppendInboundMessageResult>;
|
|
194
|
-
/** Append only when the Conversation has no other runnable work. */
|
|
195
|
-
export declare function appendExclusiveInboundMessage(args: {
|
|
196
|
-
message: InboundMessage;
|
|
197
|
-
nowMs?: number;
|
|
198
|
-
state?: StateAdapter;
|
|
199
|
-
}): Promise<AppendExclusiveInboundMessageResult>;
|
|
200
|
-
/** Mark a conversation runnable when there is no new mailbox message. */
|
|
201
|
-
export declare function requestConversationWork(args: {
|
|
202
|
-
conversationId: string;
|
|
203
|
-
destination?: Destination;
|
|
204
|
-
nowMs?: number;
|
|
205
|
-
state?: StateAdapter;
|
|
206
|
-
}): Promise<RequestConversationWorkResult>;
|
|
207
|
-
/** Record visible conversation activity without making the conversation runnable. */
|
|
208
|
-
export declare function recordConversationActivity(args: {
|
|
209
|
-
activityAtMs?: number;
|
|
210
|
-
channelName?: string;
|
|
211
|
-
conversationId: string;
|
|
212
|
-
destination?: Destination;
|
|
213
|
-
nowMs?: number;
|
|
214
|
-
actor?: StoredSlackActor;
|
|
215
|
-
source?: Source;
|
|
216
|
-
state?: StateAdapter;
|
|
217
|
-
title?: string;
|
|
218
|
-
}): Promise<void>;
|
|
219
|
-
/** Store task-execution metadata for legacy SQL import. */
|
|
220
|
-
export declare function recordConversationExecution(args: {
|
|
221
|
-
channelName?: string;
|
|
222
|
-
conversationId: string;
|
|
223
|
-
createdAtMs: number;
|
|
224
|
-
destination?: Destination;
|
|
225
|
-
execution: {
|
|
226
|
-
lastCheckpointAtMs?: number;
|
|
227
|
-
lastEnqueuedAtMs?: number;
|
|
228
|
-
runId?: string;
|
|
229
|
-
status: ExecutionStatus;
|
|
230
|
-
updatedAtMs?: number;
|
|
231
|
-
};
|
|
232
|
-
lastActivityAtMs: number;
|
|
233
|
-
actor?: StoredSlackActor;
|
|
234
|
-
source?: Source;
|
|
235
|
-
state?: StateAdapter;
|
|
236
|
-
title?: string;
|
|
237
|
-
updatedAtMs: number;
|
|
238
|
-
}): Promise<void>;
|
|
239
|
-
/** Record that a wake-up nudge was accepted for the conversation. */
|
|
240
|
-
export declare function markConversationWorkEnqueued(args: {
|
|
241
|
-
conversationId: string;
|
|
242
|
-
nowMs?: number;
|
|
243
|
-
state?: StateAdapter;
|
|
244
|
-
}): Promise<void>;
|
|
245
|
-
/** Clear a wake marker after its queue delivery finds no runnable work. */
|
|
246
|
-
export declare function clearConsumedConversationWake(args: {
|
|
247
|
-
conversationId: string;
|
|
248
|
-
nowMs?: number;
|
|
249
|
-
state?: StateAdapter;
|
|
250
|
-
}): Promise<boolean>;
|
|
251
|
-
/** Try to acquire the durable execution lease for one conversation. */
|
|
252
|
-
export declare function startConversationWork(args: {
|
|
253
|
-
conversationId: string;
|
|
254
|
-
nowMs?: number;
|
|
255
|
-
state?: StateAdapter;
|
|
256
|
-
}): Promise<StartConversationWorkResult>;
|
|
257
|
-
/** Extend the durable execution lease when the worker checks in. */
|
|
258
|
-
export declare function checkInConversationWork(args: {
|
|
259
|
-
conversationId: string;
|
|
260
|
-
leaseToken: string;
|
|
261
|
-
nowMs?: number;
|
|
262
|
-
state?: StateAdapter;
|
|
263
|
-
}): Promise<boolean>;
|
|
264
|
-
/**
|
|
265
|
-
* Resolve pending mailbox entries after the caller accepts responsibility.
|
|
266
|
-
*
|
|
267
|
-
* Returning ids acknowledges only that subset; returning nothing acknowledges
|
|
268
|
-
* every pending entry passed to the handler.
|
|
269
|
-
*/
|
|
270
|
-
export declare function drainConversationMailbox(args: {
|
|
271
|
-
conversationId: string;
|
|
272
|
-
handle: (messages: InboundMessage[]) => Promise<readonly string[] | void>;
|
|
273
|
-
leaseToken: string;
|
|
274
|
-
nowMs?: number;
|
|
275
|
-
state?: StateAdapter;
|
|
276
|
-
}): Promise<{
|
|
277
|
-
changed: boolean;
|
|
278
|
-
messages: InboundMessage[];
|
|
279
|
-
}>;
|
|
280
|
-
/** Acknowledge leased mailbox entries after the handler accepts responsibility. */
|
|
281
|
-
export declare function ackMessages(args: {
|
|
282
|
-
conversationId: string;
|
|
283
|
-
inboundMessageIds: string[];
|
|
284
|
-
leaseToken: string;
|
|
285
|
-
nowMs?: number;
|
|
286
|
-
state?: StateAdapter;
|
|
287
|
-
}): Promise<boolean>;
|
|
288
|
-
/** Persist a stop request for the current run without process affinity. */
|
|
289
|
-
export declare function stopConversationWork(args: {
|
|
290
|
-
conversationId: string;
|
|
291
|
-
nowMs?: number;
|
|
292
|
-
state?: StateAdapter;
|
|
293
|
-
}): Promise<StopConversationWorkResult>;
|
|
294
|
-
/** Clear one observed stop request and discard older human-facing mailbox work. */
|
|
295
|
-
export declare function completeConversationStop(args: {
|
|
296
|
-
conversationId: string;
|
|
297
|
-
leaseToken: string;
|
|
298
|
-
nowMs?: number;
|
|
299
|
-
runId: string;
|
|
300
|
-
state?: StateAdapter;
|
|
301
|
-
}): Promise<CompleteConversationStopResult>;
|
|
302
|
-
/** Cancel human-facing pending mailbox rows without requiring a worker lease. */
|
|
303
|
-
export declare function cancelHumanFacingPendingMessages(args: {
|
|
304
|
-
conversationId: string;
|
|
305
|
-
inboundMessageIds?: readonly string[];
|
|
306
|
-
receivedBeforeMs?: number;
|
|
307
|
-
nowMs?: number;
|
|
308
|
-
state?: StateAdapter;
|
|
309
|
-
}): Promise<{
|
|
310
|
-
cancelledInboundMessageIds: string[];
|
|
311
|
-
}>;
|
|
312
|
-
/** Mark the leased conversation as needing another queue-delivered slice. */
|
|
313
|
-
export declare function requestAnotherSlice(args: {
|
|
314
|
-
conversationId: string;
|
|
315
|
-
destination?: Destination;
|
|
316
|
-
leaseToken: string;
|
|
317
|
-
nowMs?: number;
|
|
318
|
-
state?: StateAdapter;
|
|
319
|
-
}): Promise<boolean>;
|
|
320
|
-
/** Begin a requested turn resume under the worker's existing lease. */
|
|
321
|
-
export declare function beginConversationResume(args: {
|
|
322
|
-
conversationId: string;
|
|
323
|
-
leaseToken: string;
|
|
324
|
-
nowMs?: number;
|
|
325
|
-
state?: StateAdapter;
|
|
326
|
-
}): Promise<boolean>;
|
|
327
|
-
/** Release the durable execution lease without changing completion state. */
|
|
328
|
-
export declare function releaseConversationWork(args: {
|
|
329
|
-
conversationId: string;
|
|
330
|
-
leaseToken: string;
|
|
331
|
-
nowMs?: number;
|
|
332
|
-
state?: StateAdapter;
|
|
333
|
-
}): Promise<boolean>;
|
|
334
|
-
/** Count one failed execution attempt and stop the conversation when retries are exhausted. */
|
|
335
|
-
export declare function recordConversationRetry(args: {
|
|
336
|
-
conversationId: string;
|
|
337
|
-
leaseToken: string;
|
|
338
|
-
nowMs?: number;
|
|
339
|
-
state?: StateAdapter;
|
|
340
|
-
}): Promise<"lost_lease" | "recorded" | "stopped">;
|
|
341
|
-
/** Finish a leased conversation and report whether runnable work remains. */
|
|
342
|
-
export declare function completeConversationWork(args: {
|
|
343
|
-
conversationId: string;
|
|
344
|
-
leaseToken: string;
|
|
345
|
-
madeProgress?: boolean;
|
|
346
|
-
nowMs?: number;
|
|
347
|
-
/** Keep a raced stop runnable after a stop-aware adapter returns. */
|
|
348
|
-
resumeIfStopped?: boolean;
|
|
349
|
-
state?: StateAdapter;
|
|
350
|
-
}): Promise<"completed" | "lost_lease" | "pending">;
|
|
351
|
-
/** Failure outcome: `lost_lease` (another owner took over), `recorded` (retry counted), or `skipped` (durable progress was made). */
|
|
352
|
-
export interface AttemptFailure {
|
|
353
|
-
pendingCount: number;
|
|
354
|
-
deadLetteredMessages: InboundMessage[];
|
|
355
|
-
retryCount: number;
|
|
356
|
-
status: "lost_lease" | "recorded" | "skipped";
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Record one failed execution attempt for pending messages, dead-lettering
|
|
360
|
-
* the conversation when its retry budget or the legacy message delivery limit
|
|
361
|
-
* is exhausted.
|
|
362
|
-
*
|
|
363
|
-
* Retries are counted only when the run made no durable progress: if any
|
|
364
|
-
* attempted message left the mailbox, the remaining pending entries may be
|
|
365
|
-
* deliberate deferrals and are left untouched. Consumed message ids stay in
|
|
366
|
-
* `inboundMessageIds` so source retries remain duplicates.
|
|
367
|
-
*/
|
|
368
|
-
export declare function recordAttemptFailure(args: {
|
|
369
|
-
conversationId: string;
|
|
370
|
-
inboundMessageIds: string[];
|
|
371
|
-
leaseToken: string;
|
|
372
|
-
nowMs?: number;
|
|
373
|
-
state?: StateAdapter;
|
|
374
|
-
}): Promise<AttemptFailure>;
|
|
375
|
-
/** Record a terminal failure completion for a leased conversation. */
|
|
376
|
-
export declare function deadLetterAttempt(args: {
|
|
377
|
-
conversationId: string;
|
|
378
|
-
leaseToken: string;
|
|
379
|
-
nowMs?: number;
|
|
380
|
-
state?: StateAdapter;
|
|
381
|
-
}): Promise<"failed" | "lost_lease" | "pending">;
|
|
382
|
-
/** Recover an expired lease, consuming the retry budget under the mutation lock. */
|
|
383
|
-
export declare function clearExpiredConversationLease(args: {
|
|
384
|
-
conversationId: string;
|
|
385
|
-
nowMs?: number;
|
|
386
|
-
state?: StateAdapter;
|
|
387
|
-
}): Promise<"not_expired" | "requeued" | "stopped">;
|
|
388
|
-
/** Delete one conversation mailbox and all of its index entries. */
|
|
389
|
-
export declare function deleteConversationState(args: {
|
|
390
|
-
conversationId: string;
|
|
391
|
-
state?: StateAdapter;
|
|
392
|
-
}): Promise<void>;
|
|
393
|
-
/** Remove one conversation from the active index after it is missing or idle. */
|
|
394
|
-
export declare function removeActiveConversation(args: {
|
|
395
|
-
conversationId: string;
|
|
396
|
-
state?: StateAdapter;
|
|
397
|
-
}): Promise<void>;
|
|
398
|
-
/** List active conversation ids by oldest execution update first. */
|
|
399
|
-
export declare function listActiveConversationIds(args?: {
|
|
400
|
-
limit?: number;
|
|
401
|
-
staleBeforeMs?: number;
|
|
402
|
-
state?: StateAdapter;
|
|
403
|
-
}): Promise<string[]>;
|
|
404
|
-
/** List retained conversations by newest visible activity first. */
|
|
405
|
-
export declare function listConversationsByActivity(args?: {
|
|
406
|
-
limit?: number;
|
|
407
|
-
offset?: number;
|
|
408
|
-
state?: StateAdapter;
|
|
409
|
-
}): Promise<Conversation[]>;
|
|
410
|
-
export {};
|