@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,12 +0,0 @@
|
|
|
1
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
2
|
-
interface AssistantThreadLifecycleEvent {
|
|
3
|
-
channelId: string;
|
|
4
|
-
threadTs: string;
|
|
5
|
-
sourceChannelId?: string;
|
|
6
|
-
getSlackAdapter: () => SlackAdapter;
|
|
7
|
-
}
|
|
8
|
-
/** Initialize a newly started Slack assistant thread. */
|
|
9
|
-
export declare function initializeAssistantThread(event: AssistantThreadLifecycleEvent): Promise<void>;
|
|
10
|
-
/** Refresh Slack assistant thread context without resetting the thread title. */
|
|
11
|
-
export declare function refreshAssistantThreadContext(event: AssistantThreadLifecycleEvent): Promise<void>;
|
|
12
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const DEFAULT_STATUS_CONTEXTS: {
|
|
2
|
-
readonly thinking: "…";
|
|
3
|
-
readonly searching: "sources";
|
|
4
|
-
readonly reading: "task";
|
|
5
|
-
readonly reviewing: "results";
|
|
6
|
-
readonly drafting: "reply";
|
|
7
|
-
readonly running: "tasks";
|
|
8
|
-
};
|
|
9
|
-
type AssistantStatusVerb = keyof typeof DEFAULT_STATUS_CONTEXTS;
|
|
10
|
-
export interface AssistantStatusSpec {
|
|
11
|
-
text: string;
|
|
12
|
-
}
|
|
13
|
-
interface AssistantStatusPresentation {
|
|
14
|
-
key: string;
|
|
15
|
-
visible: string;
|
|
16
|
-
}
|
|
17
|
-
/** Build assistant progress text from a verb and optional context. */
|
|
18
|
-
export declare function makeAssistantStatus(verb: AssistantStatusVerb, context?: string): AssistantStatusSpec;
|
|
19
|
-
/** Normalize a progress update into the visible Slack loading copy. */
|
|
20
|
-
export declare function renderAssistantStatus(args: {
|
|
21
|
-
status: AssistantStatusSpec;
|
|
22
|
-
}): AssistantStatusPresentation;
|
|
23
|
-
/** Select and normalize the loading messages used for Slack status rotation. */
|
|
24
|
-
export declare function selectAssistantLoadingMessages(args: {
|
|
25
|
-
messages: string[];
|
|
26
|
-
random?: () => number;
|
|
27
|
-
}): string[] | undefined;
|
|
28
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type AssistantStatusSpec } from "@/chat/slack/assistant-thread/status-render";
|
|
2
|
-
export type TimerHandle = ReturnType<typeof setTimeout>;
|
|
3
|
-
export interface AssistantStatusSession {
|
|
4
|
-
/** Activate or replace the loading state; omit status to show generic loading. */
|
|
5
|
-
update: (status?: AssistantStatusSpec) => void;
|
|
6
|
-
/** Stop refresh scheduling and clear the loading state. */
|
|
7
|
-
clear: () => Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Pace assistant loading-state writes for a single turn.
|
|
11
|
-
*
|
|
12
|
-
* This layer owns only local scheduling policy: debounce, minimum visible
|
|
13
|
-
* duration, refresh cadence, and write ordering. It deals in user-visible
|
|
14
|
-
* progress copy; the transport decides how that maps onto Slack's `status`
|
|
15
|
-
* versus `loading_messages` fields.
|
|
16
|
-
*/
|
|
17
|
-
export declare function createAssistantStatusScheduler(args: {
|
|
18
|
-
sendStatus: (text: string, loadingMessages?: string[]) => Promise<void>;
|
|
19
|
-
loadingMessages?: string[];
|
|
20
|
-
now?: () => number;
|
|
21
|
-
setTimer?: (callback: () => void, delayMs: number) => TimerHandle;
|
|
22
|
-
clearTimer?: (timer: TimerHandle) => void;
|
|
23
|
-
random?: () => number;
|
|
24
|
-
}): AssistantStatusSession;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
2
|
-
import { getSlackClient } from "@/chat/slack/client";
|
|
3
|
-
/**
|
|
4
|
-
* Slack's assistant loading UI accepts both `status` and `loading_messages`,
|
|
5
|
-
* but product policy keeps `status` stable and generic. User-visible progress
|
|
6
|
-
* copy belongs in `loading_messages`.
|
|
7
|
-
*/
|
|
8
|
-
export declare const SLACK_ASSISTANT_ACTIVE_STATUS = "is working on your request...";
|
|
9
|
-
type AssistantStatusSender = (text: string, loadingMessages?: string[]) => Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* Build a best-effort sender for Slack's assistant loading state.
|
|
12
|
-
*
|
|
13
|
-
* The `text` argument is internal progress copy. This transport maps it onto
|
|
14
|
-
* Slack's loading surface and keeps the raw Slack `status` field fixed.
|
|
15
|
-
*/
|
|
16
|
-
export declare function createSlackAdapterStatusSender(args: {
|
|
17
|
-
channelId?: string;
|
|
18
|
-
threadTs?: string;
|
|
19
|
-
getSlackAdapter: () => Pick<SlackAdapter, "setAssistantStatus">;
|
|
20
|
-
}): AssistantStatusSender;
|
|
21
|
-
/**
|
|
22
|
-
* Build a best-effort sender for Slack's assistant loading state over raw Web
|
|
23
|
-
* API calls. As with the adapter-backed path, the dynamic copy goes to
|
|
24
|
-
* `loading_messages` while `status` stays fixed and generic.
|
|
25
|
-
*/
|
|
26
|
-
export declare function createSlackWebApiStatusSender(args: {
|
|
27
|
-
channelId?: string;
|
|
28
|
-
threadTs?: string;
|
|
29
|
-
getSlackClient?: typeof getSlackClient;
|
|
30
|
-
}): AssistantStatusSender;
|
|
31
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
2
|
-
import { getSlackClient } from "@/chat/slack/client";
|
|
3
|
-
import { type AssistantStatusSession, type TimerHandle } from "@/chat/slack/assistant-thread/status-scheduler";
|
|
4
|
-
export { makeAssistantStatus, type AssistantStatusSpec, } from "@/chat/slack/assistant-thread/status-render";
|
|
5
|
-
export type { AssistantStatusSession } from "@/chat/slack/assistant-thread/status-scheduler";
|
|
6
|
-
/**
|
|
7
|
-
* Create a Slack adapter-backed session for Slack's assistant loading state.
|
|
8
|
-
*
|
|
9
|
-
* The session accepts internal progress updates and leaves it to the sender to
|
|
10
|
-
* map them onto Slack's fixed generic `status` field plus dynamic
|
|
11
|
-
* `loading_messages`.
|
|
12
|
-
*/
|
|
13
|
-
export declare function createSlackAdapterAssistantStatusSession(args: {
|
|
14
|
-
channelId?: string;
|
|
15
|
-
threadTs?: string;
|
|
16
|
-
getSlackAdapter: () => Pick<SlackAdapter, "setAssistantStatus">;
|
|
17
|
-
loadingMessages?: string[];
|
|
18
|
-
now?: () => number;
|
|
19
|
-
setTimer?: (callback: () => void, delayMs: number) => TimerHandle;
|
|
20
|
-
clearTimer?: (timer: TimerHandle) => void;
|
|
21
|
-
random?: () => number;
|
|
22
|
-
}): AssistantStatusSession;
|
|
23
|
-
/**
|
|
24
|
-
* Create a Web API-backed session for Slack's assistant loading state in
|
|
25
|
-
* resume/callback flows that do not use the adapter thread object.
|
|
26
|
-
*/
|
|
27
|
-
export declare function createSlackWebApiAssistantStatusSession(args: {
|
|
28
|
-
channelId?: string;
|
|
29
|
-
threadTs?: string;
|
|
30
|
-
getSlackClient?: typeof getSlackClient;
|
|
31
|
-
loadingMessages?: string[];
|
|
32
|
-
now?: () => number;
|
|
33
|
-
setTimer?: (callback: () => void, delayMs: number) => TimerHandle;
|
|
34
|
-
clearTimer?: (timer: TimerHandle) => void;
|
|
35
|
-
random?: () => number;
|
|
36
|
-
}): AssistantStatusSession;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
2
|
-
/** Test-only: clear set-once DM title projection between cases. */
|
|
3
|
-
export declare function resetAssistantTitleProjectionForTests(): void;
|
|
4
|
-
/**
|
|
5
|
-
* Best-effort Slack projection for a stored conversation title.
|
|
6
|
-
*
|
|
7
|
-
* Only DM assistant threads support `setAssistantTitle`. Channel conversations
|
|
8
|
-
* keep the title in Junior for dashboard reporting and do not call Slack.
|
|
9
|
-
* Projection is set-once per DM thread so later turns do not rewrite Slack.
|
|
10
|
-
*/
|
|
11
|
-
export declare function maybeSyncAssistantTitle(args: {
|
|
12
|
-
channelId?: string;
|
|
13
|
-
getSlackAdapter: () => Pick<SlackAdapter, "setAssistantTitle">;
|
|
14
|
-
threadTs?: string;
|
|
15
|
-
title: string;
|
|
16
|
-
}): Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { downloadPrivateSlackFile as downloadPrivateSlackFileImpl } from "@/chat/slack/client";
|
|
2
|
-
/**
|
|
3
|
-
* Restore Slack private-file fetchers on message attachments that crossed a
|
|
4
|
-
* serialization boundary.
|
|
5
|
-
*/
|
|
6
|
-
export declare function rehydrateAttachmentFetchers(message: {
|
|
7
|
-
attachments: Array<{
|
|
8
|
-
fetchData?: unknown;
|
|
9
|
-
url?: string;
|
|
10
|
-
}>;
|
|
11
|
-
}, downloadPrivateSlackFile?: typeof downloadPrivateSlackFileImpl): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type AutomatedTurnLimitUpdate } from "@/chat/services/automated-turn-limit";
|
|
2
|
-
/** Post the pause notice for one Conversation Location when known. */
|
|
3
|
-
export declare function postAutomatedTurnLimitNoticeForConversation(args: {
|
|
4
|
-
conversationId: string;
|
|
5
|
-
maxTurns: number;
|
|
6
|
-
nowMs?: number;
|
|
7
|
-
threadTs?: string;
|
|
8
|
-
}): Promise<boolean>;
|
|
9
|
-
/** Post the pause notice after a finished Turn hits the limit. */
|
|
10
|
-
export declare function maybePostAutomatedTurnLimitNotice(args: {
|
|
11
|
-
conversationId: string;
|
|
12
|
-
maxTurns: number;
|
|
13
|
-
nowMs?: number;
|
|
14
|
-
threadTs?: string;
|
|
15
|
-
update: AutomatedTurnLimitUpdate | undefined;
|
|
16
|
-
}): Promise<void>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { SlackChannelId } from "@/chat/slack/ids";
|
|
2
|
-
import type { SlackMessageTs } from "@/chat/slack/timestamp";
|
|
3
|
-
export interface SlackChannelMessage {
|
|
4
|
-
ts?: string;
|
|
5
|
-
user?: string;
|
|
6
|
-
text?: string;
|
|
7
|
-
thread_ts?: string;
|
|
8
|
-
subtype?: string;
|
|
9
|
-
bot_id?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
attachments?: unknown[];
|
|
12
|
-
}
|
|
13
|
-
export interface SlackFileRef {
|
|
14
|
-
id?: string;
|
|
15
|
-
mimetype?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
size?: number;
|
|
18
|
-
url_private?: string;
|
|
19
|
-
url_private_download?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface SlackThreadReply {
|
|
22
|
-
ts?: string;
|
|
23
|
-
user?: string;
|
|
24
|
-
text?: string;
|
|
25
|
-
thread_ts?: string;
|
|
26
|
-
subtype?: string;
|
|
27
|
-
bot_id?: string;
|
|
28
|
-
type?: string;
|
|
29
|
-
files?: SlackFileRef[];
|
|
30
|
-
attachments?: unknown[];
|
|
31
|
-
}
|
|
32
|
-
/** List channel history using Slack-native, pre-validated timestamp bounds. */
|
|
33
|
-
export declare function listChannelMessages(input: {
|
|
34
|
-
channelId: SlackChannelId;
|
|
35
|
-
limit: number;
|
|
36
|
-
cursor?: string;
|
|
37
|
-
oldest?: SlackMessageTs;
|
|
38
|
-
latest?: SlackMessageTs;
|
|
39
|
-
inclusive?: boolean;
|
|
40
|
-
maxPages?: number;
|
|
41
|
-
}): Promise<{
|
|
42
|
-
messages: SlackChannelMessage[];
|
|
43
|
-
nextCursor?: string;
|
|
44
|
-
}>;
|
|
45
|
-
/** Read replies from a Slack thread identified by a validated native thread timestamp. */
|
|
46
|
-
export declare function listThreadReplies(input: {
|
|
47
|
-
channelId: SlackChannelId;
|
|
48
|
-
threadTs: SlackMessageTs;
|
|
49
|
-
limit?: number;
|
|
50
|
-
maxPages?: number;
|
|
51
|
-
targetMessageTs?: string[];
|
|
52
|
-
}): Promise<SlackThreadReply[]>;
|
|
53
|
-
export interface SlackConversationInfo {
|
|
54
|
-
id: SlackChannelId;
|
|
55
|
-
name?: string;
|
|
56
|
-
isChannel: boolean;
|
|
57
|
-
isPrivate: boolean;
|
|
58
|
-
isIm: boolean;
|
|
59
|
-
isMpim: boolean;
|
|
60
|
-
isMember?: boolean;
|
|
61
|
-
}
|
|
62
|
-
/** Load conversation metadata used for cross-channel read access checks. */
|
|
63
|
-
export declare function getConversationInfo(channelId: SlackChannelId): Promise<SlackConversationInfo>;
|
|
64
|
-
/** Join a public channel so the bot can read history and threads there. */
|
|
65
|
-
export declare function joinPublicChannel(channelId: SlackChannelId): Promise<void>;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { WebClient } from "@slack/web-api";
|
|
2
|
-
import { type SlackChannelId } from "@/chat/slack/ids";
|
|
3
|
-
export type SlackActionErrorCode = "missing_token" | "missing_scope" | "rate_limited" | "feature_unavailable" | "canvas_creation_failed" | "canvas_editing_failed" | "invalid_arguments" | "not_found" | "not_in_channel" | "already_reacted" | "no_reaction" | "read_only_channel" | "internal_error";
|
|
4
|
-
export declare class SlackActionError extends Error {
|
|
5
|
-
code: SlackActionErrorCode;
|
|
6
|
-
apiError?: string;
|
|
7
|
-
needed?: string;
|
|
8
|
-
provided?: string;
|
|
9
|
-
statusCode?: number;
|
|
10
|
-
requestId?: string;
|
|
11
|
-
errorData?: string;
|
|
12
|
-
retryAfterSeconds?: number;
|
|
13
|
-
detail?: string;
|
|
14
|
-
detailLine?: number;
|
|
15
|
-
detailRule?: string;
|
|
16
|
-
constructor(message: string, code: SlackActionErrorCode, options?: {
|
|
17
|
-
apiError?: string;
|
|
18
|
-
needed?: string;
|
|
19
|
-
provided?: string;
|
|
20
|
-
statusCode?: number;
|
|
21
|
-
requestId?: string;
|
|
22
|
-
errorData?: string;
|
|
23
|
-
retryAfterSeconds?: number;
|
|
24
|
-
detail?: string;
|
|
25
|
-
detailLine?: number;
|
|
26
|
-
detailRule?: string;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
interface SlackRetryContext {
|
|
30
|
-
action?: string;
|
|
31
|
-
attributes?: Record<string, string | number | boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Whether repeating the operation cannot produce a duplicate user-visible
|
|
34
|
-
* effect (reads, deletes, reactions). Request timeouts are ambiguous — Slack
|
|
35
|
-
* may have accepted the write — so they are only retried when the caller
|
|
36
|
-
* marks the operation idempotent. Defaults to false (never risk a duplicate
|
|
37
|
-
* post).
|
|
38
|
-
*/
|
|
39
|
-
idempotent?: boolean;
|
|
40
|
-
/** Extra attributes forwarded onto the per-attempt Sentry span. */
|
|
41
|
-
spanAttributes?: Record<string, string | number | boolean>;
|
|
42
|
-
}
|
|
43
|
-
/** Extract a header value by case-insensitive name from a raw headers object. */
|
|
44
|
-
export declare function getHeaderString(headers: unknown, name: string): string | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Bind a workspace installation token for all Slack Web API calls inside
|
|
47
|
-
* `fn`, so multi-workspace outbound writes use the destination workspace's
|
|
48
|
-
* credentials rather than the env fallback token.
|
|
49
|
-
*/
|
|
50
|
-
export declare function runWithSlackInstallationToken<T>(token: string, fn: () => T): T;
|
|
51
|
-
/** Normalize Junior Slack references to native Slack conversation IDs. */
|
|
52
|
-
export declare function normalizeSlackConversationId(channelId: string | undefined): SlackChannelId | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Run a Slack Web API call with bounded retries so transient platform
|
|
55
|
-
* failures do not surface as turn failures, while non-idempotent posts are
|
|
56
|
-
* never re-sent when Slack may already have accepted them.
|
|
57
|
-
*
|
|
58
|
-
* Retry classes: rate limits (bounded Retry-After), connection-phase network
|
|
59
|
-
* failures, and Slack 5xx responses always retry; request timeouts retry only
|
|
60
|
-
* when the caller marks the operation `idempotent`.
|
|
61
|
-
*/
|
|
62
|
-
export declare function withSlackRetries<T>(task: () => Promise<T>, maxAttempts?: number, context?: SlackRetryContext): Promise<T>;
|
|
63
|
-
/**
|
|
64
|
-
* Slack Web API client for the current destination workspace: the ambient
|
|
65
|
-
* installation token when one is bound, otherwise the env bot token for
|
|
66
|
-
* single-workspace deployments. Fails instead of falling back when the call
|
|
67
|
-
* is workspace-scoped and no installation token can be resolved, so a write
|
|
68
|
-
* never goes out with another workspace's credentials.
|
|
69
|
-
*/
|
|
70
|
-
export declare function getSlackClient(): WebClient;
|
|
71
|
-
/**
|
|
72
|
-
* Slack channel ID prefixes:
|
|
73
|
-
* - C: channel — modern private channels also use C, so the prefix never
|
|
74
|
-
* proves a channel is public
|
|
75
|
-
* - G: legacy private channel / group DM
|
|
76
|
-
* - D: direct message (1:1)
|
|
77
|
-
*/
|
|
78
|
-
export declare function isDmChannel(channelId: string): boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Conversation-scoped Slack contexts backed by a concrete conversation ID.
|
|
81
|
-
* Includes channels/groups/DMs (C/G/D).
|
|
82
|
-
*/
|
|
83
|
-
export declare function isConversationScopedChannel(channelId: string | undefined): boolean;
|
|
84
|
-
export declare function isConversationChannel(channelId: string | undefined): boolean;
|
|
85
|
-
export declare function getFilePermalink(fileId: string): Promise<string | undefined>;
|
|
86
|
-
export declare function downloadPrivateSlackFile(url: string): Promise<Buffer>;
|
|
87
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type SlackChannelId, type SlackTeamId } from "@/chat/slack/ids";
|
|
2
|
-
import { type SlackMessageTs } from "@/chat/slack/timestamp";
|
|
3
|
-
export interface SlackRawMessageContext {
|
|
4
|
-
authorTeamId?: SlackTeamId;
|
|
5
|
-
channelId?: SlackChannelId;
|
|
6
|
-
messageTs?: SlackMessageTs;
|
|
7
|
-
nestedMessageTs?: SlackMessageTs;
|
|
8
|
-
teamId?: SlackTeamId;
|
|
9
|
-
threadTs?: SlackMessageTs;
|
|
10
|
-
}
|
|
11
|
-
/** Project only the Slack raw fields consumed by runtime thread context. */
|
|
12
|
-
export declare function readSlackRawMessageContext(message: unknown): SlackRawMessageContext | undefined;
|
|
13
|
-
/** Extract a channel ID and validated Slack timestamp from `slack:<channel>:<ts>`. */
|
|
14
|
-
export declare function parseSlackThreadId(threadId: string | undefined): {
|
|
15
|
-
channelId: SlackChannelId;
|
|
16
|
-
threadTs: SlackMessageTs;
|
|
17
|
-
} | undefined;
|
|
18
|
-
/** Resolve the Slack channel ID from a `slack:<channel>:<ts>` thread identifier. */
|
|
19
|
-
export declare function resolveSlackChannelIdFromThreadId(threadId: string | undefined): SlackChannelId | undefined;
|
|
20
|
-
/** Best-effort channel ID extraction from a raw Slack message payload. */
|
|
21
|
-
export declare function resolveSlackChannelIdFromMessage(message: unknown): SlackChannelId | undefined;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/** Slack Events API channel_type values relevant to message surfaces. */
|
|
2
|
-
export type SlackEventChannelType = "channel" | "group" | "mpim" | "im";
|
|
3
|
-
/** Slack conversation categories Junior can share with agents. */
|
|
4
|
-
export type SlackConversationType = "public_channel" | "private_channel" | "group_dm" | "direct_message" | "private_channel_or_group_dm";
|
|
5
|
-
/** Conversation visibility classification derived from source-provided signals. */
|
|
6
|
-
export type SlackConversationVisibility = "public" | "private";
|
|
7
|
-
/** Slack conversation facts available to the bot for runtime context. */
|
|
8
|
-
export interface SlackConversationContext {
|
|
9
|
-
type: SlackConversationType;
|
|
10
|
-
name?: string;
|
|
11
|
-
/** Visibility proven by source or persisted metadata. */
|
|
12
|
-
visibility?: SlackConversationVisibility;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Map Slack's Events API channel_type to a source-confirmed visibility.
|
|
16
|
-
*
|
|
17
|
-
* Slack's event metadata is the only visibility authority; channel IDs never
|
|
18
|
-
* classify visibility.
|
|
19
|
-
*/
|
|
20
|
-
export declare function conversationVisibilityFromSlackChannelType(channelType: SlackEventChannelType | undefined): SlackConversationVisibility | undefined;
|
|
21
|
-
/** Resolve Slack's raw event channel type from a Chat SDK message-like object. */
|
|
22
|
-
export declare function resolveSlackChannelTypeFromMessage(message: unknown): SlackEventChannelType | undefined;
|
|
23
|
-
/** Build Slack conversation facts available to runtime consumers. */
|
|
24
|
-
export declare function resolveSlackConversationContext(input: {
|
|
25
|
-
channelId?: string;
|
|
26
|
-
channelName?: string;
|
|
27
|
-
channelType?: SlackEventChannelType;
|
|
28
|
-
}): SlackConversationContext | undefined;
|
|
29
|
-
/** Build Slack conversation facts from Junior's persisted Slack thread id. */
|
|
30
|
-
export declare function resolveSlackConversationContextFromThreadId(input: {
|
|
31
|
-
threadId?: string;
|
|
32
|
-
channelName?: string;
|
|
33
|
-
visibility?: SlackConversationVisibility;
|
|
34
|
-
}): SlackConversationContext | undefined;
|
|
35
|
-
/** Render a human label for a privacy-preserving Slack conversation type. */
|
|
36
|
-
export declare function formatSlackConversationTypeLabel(type: SlackConversationType): string;
|
|
37
|
-
/** Render a Slack conversation label for surfaces allowed to expose names. */
|
|
38
|
-
export declare function formatSlackConversationContextLabel(context: SlackConversationContext | undefined): string | undefined;
|
|
39
|
-
/** Render a Slack conversation label without exposing conversation names. */
|
|
40
|
-
export declare function formatSlackConversationRedactedLabel(context: SlackConversationContext | undefined): string | undefined;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface DashboardConversationLinkOptions {
|
|
2
|
-
basePath?: string;
|
|
3
|
-
baseURL?: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/** Configure core dashboard links used in Slack footers. */
|
|
7
|
-
export declare function setDashboardConversationLinkOptions(options: DashboardConversationLinkOptions | undefined): DashboardConversationLinkOptions | undefined;
|
|
8
|
-
/** Build the dashboard conversation URL when the core dashboard is enabled. */
|
|
9
|
-
export declare function getDashboardConversationLink(conversationId: string): string | undefined;
|
|
10
|
-
/** Build the dashboard task detail URL when the core dashboard is enabled. */
|
|
11
|
-
export declare function getDashboardTaskLink(taskId: string): string | undefined;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Message, ThreadImpl } from "chat";
|
|
2
|
-
import type { SlackAdapter } from "@chat-adapter/slack";
|
|
3
|
-
import type { DispatchTurnContext, DispatchTurnResult } from "@/chat/agent-dispatch/types";
|
|
4
|
-
import type { DispatchRecord } from "@/chat/agent-dispatch/types";
|
|
5
|
-
type ExecuteSlackTurn = (thread: ThreadImpl, message: Message, options: {
|
|
6
|
-
ack?: () => Promise<void>;
|
|
7
|
-
conversationId?: string;
|
|
8
|
-
destination: DispatchRecord["destination"];
|
|
9
|
-
execution: DispatchTurnContext;
|
|
10
|
-
onTurnDeliveryAccepted?: (messageId?: string) => void;
|
|
11
|
-
onTurnOutcome?: (result: DispatchTurnResult) => void;
|
|
12
|
-
shouldYield?: () => boolean;
|
|
13
|
-
skipBackfill?: boolean;
|
|
14
|
-
}) => Promise<void>;
|
|
15
|
-
/** Build the Slack provider adapter for agent-dispatched conversation turns. */
|
|
16
|
-
export declare function createSlackDispatchTurnRunner(options: {
|
|
17
|
-
getLocationConfiguration: (destination: DispatchRecord["destination"]) => DispatchTurnContext["locationConfiguration"];
|
|
18
|
-
getSlackAdapter: () => SlackAdapter;
|
|
19
|
-
executeSlackTurn: ExecuteSlackTurn;
|
|
20
|
-
}): (dispatch: DispatchRecord, hooks: {
|
|
21
|
-
ack: () => Promise<void>;
|
|
22
|
-
shouldYield?: () => boolean;
|
|
23
|
-
}) => Promise<DispatchTurnResult>;
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function normalizeSlackEmojiName(value: string): string | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Extract Slack's stable API error code from Web API errors. */
|
|
2
|
-
export declare function getSlackApiErrorCode(error: unknown): string | undefined;
|
|
3
|
-
/** Convert Slack Web API error details into the repository's trace attributes. */
|
|
4
|
-
export declare function getSlackErrorObservabilityAttributes(error: unknown): Record<string, string | number>;
|
|
5
|
-
/** Recover transient or ambiguous Slack failures, but stop on explicit rejection. */
|
|
6
|
-
export declare function isRetryableSlackPostError(error: unknown): boolean;
|
|
7
|
-
/** Report whether Slack rejected assistant title updates for stable auth reasons. */
|
|
8
|
-
export declare function isSlackTitlePermissionError(error: unknown): boolean;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { ReplyAttribution } from "@sentry/junior-plugin-api";
|
|
2
|
-
interface SlackMrkdwnTextObject {
|
|
3
|
-
text: string;
|
|
4
|
-
type: "mrkdwn";
|
|
5
|
-
}
|
|
6
|
-
interface SlackPlainTextObject {
|
|
7
|
-
text: string;
|
|
8
|
-
type: "plain_text";
|
|
9
|
-
}
|
|
10
|
-
/** Slack-flavored Markdown block — accepts a standard Markdown subset and Slack renders it natively. */
|
|
11
|
-
interface SlackMarkdownBlock {
|
|
12
|
-
text: string;
|
|
13
|
-
type: "markdown";
|
|
14
|
-
}
|
|
15
|
-
interface SlackSectionBlock {
|
|
16
|
-
text: SlackMrkdwnTextObject;
|
|
17
|
-
type: "section";
|
|
18
|
-
}
|
|
19
|
-
interface SlackContextBlock {
|
|
20
|
-
elements: Array<SlackMrkdwnTextObject | SlackPlainTextObject>;
|
|
21
|
-
type: "context";
|
|
22
|
-
}
|
|
23
|
-
export type SlackMessageBlock = SlackMarkdownBlock | SlackSectionBlock | SlackContextBlock;
|
|
24
|
-
interface SlackReplyFooterItem {
|
|
25
|
-
label: string;
|
|
26
|
-
url?: string;
|
|
27
|
-
value: string;
|
|
28
|
-
}
|
|
29
|
-
export interface SlackReplyFooter {
|
|
30
|
-
attribution?: ReplyAttribution;
|
|
31
|
-
items: SlackReplyFooterItem[];
|
|
32
|
-
}
|
|
33
|
-
/** Render compact reply attribution for the Slack footer. */
|
|
34
|
-
export declare function formatReplyAttribution(attribution: ReplyAttribution): string;
|
|
35
|
-
/**
|
|
36
|
-
* Build the compact conversation footer for visible Slack reply surfaces.
|
|
37
|
-
*
|
|
38
|
-
* Detailed turn metrics stay in the dashboard instead of Slack-visible copy.
|
|
39
|
-
*/
|
|
40
|
-
export declare function buildSlackReplyFooter(args: {
|
|
41
|
-
conversationId?: string;
|
|
42
|
-
replyAttribution?: ReplyAttribution;
|
|
43
|
-
}): SlackReplyFooter | undefined;
|
|
44
|
-
/** Build Slack blocks for a reply chunk using the Slack-flavored markdown block for the body. */
|
|
45
|
-
export declare function buildSlackReplyBlocks(text: string, footer: SlackReplyFooter | undefined): SlackMessageBlock[] | undefined;
|
|
46
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type SlackChannelId, type SlackUserId } from "@/chat/slack/ids";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
type RequiredSlackChannelIdParamResult = {
|
|
4
|
-
ok: true;
|
|
5
|
-
value: SlackChannelId;
|
|
6
|
-
} | {
|
|
7
|
-
ok: false;
|
|
8
|
-
error: string;
|
|
9
|
-
};
|
|
10
|
-
type RequiredSlackUserIdParamResult = {
|
|
11
|
-
ok: true;
|
|
12
|
-
value: SlackUserId;
|
|
13
|
-
} | {
|
|
14
|
-
ok: false;
|
|
15
|
-
error: string;
|
|
16
|
-
};
|
|
17
|
-
/** Define a model-facing Slack channel ID parameter. */
|
|
18
|
-
export declare function slackChannelIdParam(description: string): z.ZodString;
|
|
19
|
-
/** Define a model-facing Slack user ID parameter. */
|
|
20
|
-
export declare function slackUserIdParam(description: string): z.ZodString;
|
|
21
|
-
/** Parse a required tool input channel ID into a branded Slack channel ID. */
|
|
22
|
-
export declare function parseRequiredSlackChannelIdParam(field: string, value: unknown): RequiredSlackChannelIdParamResult;
|
|
23
|
-
/** Parse a required tool input user ID into a branded Slack user ID. */
|
|
24
|
-
export declare function parseRequiredSlackUserIdParam(field: string, value: unknown): RequiredSlackUserIdParamResult;
|
|
25
|
-
export {};
|
package/dist/chat/slack/ids.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
declare const slackChannelIdSchema: z.core.$ZodBranded<z.ZodString, "SlackChannelId", "out">;
|
|
3
|
-
declare const slackTeamIdSchema: z.core.$ZodBranded<z.ZodString, "SlackTeamId", "out">;
|
|
4
|
-
declare const slackUserIdSchema: z.core.$ZodBranded<z.ZodString, "SlackUserId", "out">;
|
|
5
|
-
export type SlackChannelId = z.output<typeof slackChannelIdSchema>;
|
|
6
|
-
export type SlackTeamId = z.output<typeof slackTeamIdSchema>;
|
|
7
|
-
export type SlackUserId = z.output<typeof slackUserIdSchema>;
|
|
8
|
-
/** Parse an exact Slack channel/conversation ID from untrusted input. */
|
|
9
|
-
export declare function parseSlackChannelId(value: unknown): SlackChannelId | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Parse a channel id from common tool/model reference forms.
|
|
12
|
-
*
|
|
13
|
-
* Accepts exact ids (`C123`), Slack mentions (`<#C123>` / `<#C123|name>`),
|
|
14
|
-
* and Junior slack references (`slack:C123`, `slack:C123:ts`). Plain channel
|
|
15
|
-
* names are not ids and are rejected here.
|
|
16
|
-
*/
|
|
17
|
-
export declare function parseSlackChannelReferenceId(value: unknown): SlackChannelId | undefined;
|
|
18
|
-
/** Parse a Slack workspace/team ID from untrusted metadata. */
|
|
19
|
-
export declare function parseSlackTeamId(value: unknown): SlackTeamId | undefined;
|
|
20
|
-
/** Parse a Slack user ID from untrusted metadata. */
|
|
21
|
-
export declare function parseSlackUserId(value: unknown): SlackUserId | undefined;
|
|
22
|
-
/** Return true when a value is exactly a Slack workspace/team id. */
|
|
23
|
-
export declare function isSlackTeamId(value: string): value is SlackTeamId;
|
|
24
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Parse a Slack workspace subdomain used in `https://{domain}.slack.com` URLs. */
|
|
2
|
-
export declare function parseSlackTeamDomain(value: unknown): string | undefined;
|
|
3
|
-
/**
|
|
4
|
-
* Build a direct Slack archive URL for a thread when the workspace domain is
|
|
5
|
-
* known. Omits a link rather than falling back to `app_redirect`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function buildSlackLocationUrl(args: {
|
|
8
|
-
channelId: string;
|
|
9
|
-
teamDomain: string;
|
|
10
|
-
threadTs: string;
|
|
11
|
-
}): string | undefined;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slack message content projection.
|
|
3
|
-
*
|
|
4
|
-
* This module is the typed entry point for agent-visible Slack text. Raw block
|
|
5
|
-
* and attachment details stay behind this boundary.
|
|
6
|
-
*/
|
|
7
|
-
import { type Message } from "chat";
|
|
8
|
-
/** Agent-visible content projected from a Slack message. */
|
|
9
|
-
export interface MessageContent {
|
|
10
|
-
attachmentText: string;
|
|
11
|
-
hasAttachments: boolean;
|
|
12
|
-
text: string;
|
|
13
|
-
topLevelText: string;
|
|
14
|
-
}
|
|
15
|
-
/** Replace top-level text while preserving the parsed attachment projection. */
|
|
16
|
-
export declare function replaceTopLevelText(content: Pick<MessageContent, "attachmentText">, text: string): string;
|
|
17
|
-
/** Parse the agent-visible content and attachment state of a Slack message. */
|
|
18
|
-
export declare function parseContent(message: Pick<Message, "attachments" | "formatted" | "raw" | "text">): MessageContent;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Message } from "chat";
|
|
2
|
-
import { type SlackMessageTs } from "@/chat/slack/timestamp";
|
|
3
|
-
/**
|
|
4
|
-
* Preserve the native Slack message timestamp when a synthetic message ID is
|
|
5
|
-
* used for routing or deduplication.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getMessageTimestamp(message: Pick<Message, "id" | "raw">): SlackMessageTs | undefined;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** Escape dynamic text for Slack mrkdwn without changing intended formatting. */
|
|
2
|
-
export declare function escapeSlackMrkdwnText(text: string): string;
|
|
3
|
-
/** Escape a URL for Slack explicit link syntax while preserving query semantics. */
|
|
4
|
-
export declare function escapeSlackLinkUrl(url: string): string;
|
|
5
|
-
/** Build a Slack explicit link from dynamic URL and label values. */
|
|
6
|
-
export declare function formatSlackLink(url: string, label: string): string;
|
|
7
|
-
/** Insert blank lines between content blocks so Slack renders them with visual separation. */
|
|
8
|
-
export declare function ensureBlockSpacing(text: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Normalize model-authored Slack markdown for delivery via `markdown_text`
|
|
11
|
-
* or `{ type: "markdown" }` blocks.
|
|
12
|
-
*
|
|
13
|
-
* Plugins may first rewrite ordinary Markdown. Core then applies Slack-only
|
|
14
|
-
* delivery shaping: bare URL wrapping and block spacing. Slack reply delivery
|
|
15
|
-
* owns chunking and continuation markers separately.
|
|
16
|
-
*/
|
|
17
|
-
export declare function normalizeSlackReplyMarkdown(text: string): string;
|
|
18
|
-
/** Normalize assistant status text before handing it to Slack. */
|
|
19
|
-
export declare function normalizeSlackStatusText(text: string): string;
|