@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,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Owns model-facing schedule intent and materializes it against the trusted
|
|
3
|
-
* server clock into the canonical schedule persisted by core.
|
|
4
|
-
*/
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import type { ScheduledTaskSchedule } from "./types";
|
|
7
|
-
export declare const scheduleIntentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
-
kind: z.ZodLiteral<"one_off">;
|
|
9
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
timing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
-
type: z.ZodLiteral<"after">;
|
|
12
|
-
value: z.ZodNumber;
|
|
13
|
-
unit: z.ZodEnum<{
|
|
14
|
-
hour: "hour";
|
|
15
|
-
minute: "minute";
|
|
16
|
-
day: "day";
|
|
17
|
-
second: "second";
|
|
18
|
-
week: "week";
|
|
19
|
-
}>;
|
|
20
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
-
type: z.ZodLiteral<"at">;
|
|
22
|
-
date: z.ZodString;
|
|
23
|
-
time: z.ZodString;
|
|
24
|
-
}, z.core.$strict>], "type">;
|
|
25
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
26
|
-
kind: z.ZodLiteral<"recurring">;
|
|
27
|
-
frequency: z.ZodEnum<{
|
|
28
|
-
daily: "daily";
|
|
29
|
-
weekly: "weekly";
|
|
30
|
-
monthly: "monthly";
|
|
31
|
-
yearly: "yearly";
|
|
32
|
-
}>;
|
|
33
|
-
interval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
-
time: z.ZodString;
|
|
35
|
-
weekdays: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
36
|
-
sunday: "sunday";
|
|
37
|
-
monday: "monday";
|
|
38
|
-
tuesday: "tuesday";
|
|
39
|
-
wednesday: "wednesday";
|
|
40
|
-
thursday: "thursday";
|
|
41
|
-
friday: "friday";
|
|
42
|
-
saturday: "saturday";
|
|
43
|
-
}>>>>;
|
|
44
|
-
day_of_month: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
month: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
-
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$strict>]>;
|
|
49
|
-
export type ScheduleIntent = z.infer<typeof scheduleIntentSchema>;
|
|
50
|
-
export interface CompiledScheduleIntent {
|
|
51
|
-
nextRunAtMs: number;
|
|
52
|
-
schedule: ScheduledTaskSchedule;
|
|
53
|
-
}
|
|
54
|
-
export declare class ScheduleIntentError extends Error {
|
|
55
|
-
}
|
|
56
|
-
/** Materialize model-interpreted schedule intent against the trusted server clock. */
|
|
57
|
-
export declare function compileScheduleIntent(args: {
|
|
58
|
-
defaultTimezone: string;
|
|
59
|
-
intent: ScheduleIntent;
|
|
60
|
-
nowMs: number;
|
|
61
|
-
}): CompiledScheduleIntent;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { JuniorDatabase } from "@/db/db";
|
|
2
|
-
import { juniorSchedulerTasks } from "@/db/schema/scheduled-tasks";
|
|
3
|
-
import { type ScheduledTask } from "./types";
|
|
4
|
-
type ScheduledTaskRow = Pick<typeof juniorSchedulerTasks.$inferSelect, "creatorIdentityId" | "record" | "title">;
|
|
5
|
-
/** Decode a retained scheduler task row and reject invalid routing context. */
|
|
6
|
-
export declare function parseScheduledTaskRow(row: ScheduledTaskRow): ScheduledTask | undefined;
|
|
7
|
-
/** Keep scan paths from returning current or legacy tombstones. */
|
|
8
|
-
export declare function isListedScheduledTask(task: ScheduledTask | undefined): task is ScheduledTask;
|
|
9
|
-
/** Build the stable run id for one task occurrence. */
|
|
10
|
-
export declare function scheduledRunId(taskId: string, scheduledForMs: number): string;
|
|
11
|
-
/** Acquire the deployed advisory lock for one scheduled task. */
|
|
12
|
-
export declare function withScheduledTaskLock<T>(db: JuniorDatabase, taskId: string, callback: (db: JuniorDatabase) => Promise<T>): Promise<T>;
|
|
13
|
-
/** Read and decode one scheduled task. */
|
|
14
|
-
export declare function readScheduledTask(db: JuniorDatabase, taskId: string): Promise<ScheduledTask | undefined>;
|
|
15
|
-
/** List decoded scheduled tasks in stable creation order. */
|
|
16
|
-
export declare function listScheduledTasks(db: JuniorDatabase): Promise<ScheduledTask[]>;
|
|
17
|
-
/** List decoded scheduled tasks for one team in stable creation order. */
|
|
18
|
-
export declare function listScheduledTasksForTeam(db: JuniorDatabase, teamId: string): Promise<ScheduledTask[]>;
|
|
19
|
-
/** Create a scheduled task once under its retry-stable task lock. */
|
|
20
|
-
export declare function createScheduledTask(db: JuniorDatabase, task: ScheduledTask): Promise<ScheduledTask>;
|
|
21
|
-
/** Save a scheduled task and clear its blocked occurrence on reactivation. */
|
|
22
|
-
export declare function saveScheduledTask(db: JuniorDatabase, task: ScheduledTask): Promise<ScheduledTask>;
|
|
23
|
-
/** Save a scheduled task inside a task lock already held by the caller. */
|
|
24
|
-
export declare function saveScheduledTaskInLock(db: JuniorDatabase, task: ScheduledTask, current: ScheduledTask | undefined): Promise<void>;
|
|
25
|
-
/** List scheduled tasks whose current Slack destination is public. */
|
|
26
|
-
export declare function listPublicScheduledTasksForTeams(db: JuniorDatabase, teamIds: string[], limit: number): Promise<ScheduledTask[]>;
|
|
27
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ScheduledRun, ScheduledTask } from "./types";
|
|
2
|
-
/** Correlation attributes shared by scheduled-task create and run events. */
|
|
3
|
-
export declare function scheduledTaskAttributes(task: Pick<ScheduledTask, "id" | "conversationAccess" | "credentialMode" | "destination" | "nextRunAtMs" | "schedule" | "status">, extras?: Record<string, unknown>): Record<string, unknown>;
|
|
4
|
-
/** Correlation attributes for one scheduled-task run transition. */
|
|
5
|
-
export declare function scheduledTaskRunAttributes(task: Pick<ScheduledTask, "id" | "conversationAccess" | "credentialMode" | "destination" | "nextRunAtMs" | "schedule" | "status">, run: Pick<ScheduledRun, "id" | "dispatchId" | "scheduledForMs" | "resultMessageTs" | "status">, extras?: Record<string, unknown>): Record<string, unknown>;
|
|
6
|
-
/** Emit the lifecycle event for one skipped scheduled-task run. */
|
|
7
|
-
export declare function logScheduledTaskRunSkipped(task: Pick<ScheduledTask, "id" | "conversationAccess" | "credentialMode" | "destination" | "nextRunAtMs" | "schedule" | "status">, run: Pick<ScheduledRun, "id" | "dispatchId" | "scheduledForMs" | "resultMessageTs" | "status">, extras?: Record<string, unknown>): void;
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { type Identity, type SlackDestination, type SlackActor, type SlackSource, type User } from "@sentry/junior-plugin-api";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import type { ScheduledTask, ScheduledTaskConversationAccess, ScheduledTaskPrincipal, ScheduledTaskStatus } from "./types";
|
|
4
|
-
export interface SchedulerToolContext {
|
|
5
|
-
actor?: SlackActor;
|
|
6
|
-
now?: () => number;
|
|
7
|
-
source?: SlackSource;
|
|
8
|
-
users: {
|
|
9
|
-
resolveActor(): Promise<{
|
|
10
|
-
identity: Identity;
|
|
11
|
-
user?: User;
|
|
12
|
-
} | undefined>;
|
|
13
|
-
};
|
|
14
|
-
userText?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const MAX_LISTED_TASKS = 50;
|
|
17
|
-
declare const compactTaskResultSchema: z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
status: z.ZodEnum<{
|
|
20
|
-
completed: "completed";
|
|
21
|
-
blocked: "blocked";
|
|
22
|
-
active: "active";
|
|
23
|
-
deleted: "deleted";
|
|
24
|
-
}>;
|
|
25
|
-
task: z.ZodString;
|
|
26
|
-
schedule: z.ZodString;
|
|
27
|
-
timezone: z.ZodString;
|
|
28
|
-
recurrence: z.ZodNullable<z.ZodUnknown>;
|
|
29
|
-
next_run_at: z.ZodNullable<z.ZodString>;
|
|
30
|
-
destination: z.ZodObject<{
|
|
31
|
-
platform: z.ZodLiteral<"slack">;
|
|
32
|
-
team_id: z.ZodString;
|
|
33
|
-
channel_id: z.ZodString;
|
|
34
|
-
}, z.core.$strict>;
|
|
35
|
-
conversation_access: z.ZodObject<{
|
|
36
|
-
audience: z.ZodEnum<{
|
|
37
|
-
direct: "direct";
|
|
38
|
-
channel: "channel";
|
|
39
|
-
group: "group";
|
|
40
|
-
}>;
|
|
41
|
-
visibility: z.ZodEnum<{
|
|
42
|
-
private: "private";
|
|
43
|
-
public: "public";
|
|
44
|
-
}>;
|
|
45
|
-
}, z.core.$strict>;
|
|
46
|
-
credential_mode: z.ZodEnum<{
|
|
47
|
-
system: "system";
|
|
48
|
-
creator: "creator";
|
|
49
|
-
}>;
|
|
50
|
-
dashboard_url: z.ZodNullable<z.ZodString>;
|
|
51
|
-
last_run_at: z.ZodNullable<z.ZodString>;
|
|
52
|
-
run_now_at: z.ZodNullable<z.ZodString>;
|
|
53
|
-
}, z.core.$strict>;
|
|
54
|
-
export declare const scheduleTaskToolResultSchema: z.ZodObject<{
|
|
55
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
-
continuation: z.ZodOptional<z.ZodObject<{
|
|
58
|
-
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
59
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, z.core.$strict>>;
|
|
61
|
-
target: z.ZodString;
|
|
62
|
-
task: z.ZodObject<{
|
|
63
|
-
id: z.ZodString;
|
|
64
|
-
status: z.ZodEnum<{
|
|
65
|
-
completed: "completed";
|
|
66
|
-
blocked: "blocked";
|
|
67
|
-
active: "active";
|
|
68
|
-
deleted: "deleted";
|
|
69
|
-
}>;
|
|
70
|
-
task: z.ZodString;
|
|
71
|
-
schedule: z.ZodString;
|
|
72
|
-
timezone: z.ZodString;
|
|
73
|
-
recurrence: z.ZodNullable<z.ZodUnknown>;
|
|
74
|
-
next_run_at: z.ZodNullable<z.ZodString>;
|
|
75
|
-
destination: z.ZodObject<{
|
|
76
|
-
platform: z.ZodLiteral<"slack">;
|
|
77
|
-
team_id: z.ZodString;
|
|
78
|
-
channel_id: z.ZodString;
|
|
79
|
-
}, z.core.$strict>;
|
|
80
|
-
conversation_access: z.ZodObject<{
|
|
81
|
-
audience: z.ZodEnum<{
|
|
82
|
-
direct: "direct";
|
|
83
|
-
channel: "channel";
|
|
84
|
-
group: "group";
|
|
85
|
-
}>;
|
|
86
|
-
visibility: z.ZodEnum<{
|
|
87
|
-
private: "private";
|
|
88
|
-
public: "public";
|
|
89
|
-
}>;
|
|
90
|
-
}, z.core.$strict>;
|
|
91
|
-
credential_mode: z.ZodEnum<{
|
|
92
|
-
system: "system";
|
|
93
|
-
creator: "creator";
|
|
94
|
-
}>;
|
|
95
|
-
dashboard_url: z.ZodNullable<z.ZodString>;
|
|
96
|
-
last_run_at: z.ZodNullable<z.ZodString>;
|
|
97
|
-
run_now_at: z.ZodNullable<z.ZodString>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
}, z.core.$strict>;
|
|
100
|
-
export declare const scheduleListToolResultSchema: z.ZodObject<{
|
|
101
|
-
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
continuation: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
104
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
105
|
-
}, z.core.$strict>>;
|
|
106
|
-
target: z.ZodString;
|
|
107
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
108
|
-
id: z.ZodString;
|
|
109
|
-
status: z.ZodEnum<{
|
|
110
|
-
completed: "completed";
|
|
111
|
-
blocked: "blocked";
|
|
112
|
-
active: "active";
|
|
113
|
-
deleted: "deleted";
|
|
114
|
-
}>;
|
|
115
|
-
task: z.ZodString;
|
|
116
|
-
schedule: z.ZodString;
|
|
117
|
-
timezone: z.ZodString;
|
|
118
|
-
recurrence: z.ZodNullable<z.ZodUnknown>;
|
|
119
|
-
next_run_at: z.ZodNullable<z.ZodString>;
|
|
120
|
-
destination: z.ZodObject<{
|
|
121
|
-
platform: z.ZodLiteral<"slack">;
|
|
122
|
-
team_id: z.ZodString;
|
|
123
|
-
channel_id: z.ZodString;
|
|
124
|
-
}, z.core.$strict>;
|
|
125
|
-
conversation_access: z.ZodObject<{
|
|
126
|
-
audience: z.ZodEnum<{
|
|
127
|
-
direct: "direct";
|
|
128
|
-
channel: "channel";
|
|
129
|
-
group: "group";
|
|
130
|
-
}>;
|
|
131
|
-
visibility: z.ZodEnum<{
|
|
132
|
-
private: "private";
|
|
133
|
-
public: "public";
|
|
134
|
-
}>;
|
|
135
|
-
}, z.core.$strict>;
|
|
136
|
-
credential_mode: z.ZodEnum<{
|
|
137
|
-
system: "system";
|
|
138
|
-
creator: "creator";
|
|
139
|
-
}>;
|
|
140
|
-
dashboard_url: z.ZodNullable<z.ZodString>;
|
|
141
|
-
last_run_at: z.ZodNullable<z.ZodString>;
|
|
142
|
-
run_now_at: z.ZodNullable<z.ZodString>;
|
|
143
|
-
}, z.core.$strict>>;
|
|
144
|
-
truncated: z.ZodBoolean;
|
|
145
|
-
}, z.core.$strict>;
|
|
146
|
-
export type CompactTaskResult = z.output<typeof compactTaskResultSchema>;
|
|
147
|
-
/** Normalize scheduled-task validation failures into the core tool contract. */
|
|
148
|
-
export declare function throwToolInputError(error: string): never;
|
|
149
|
-
/** Require scheduler mutations to stay scoped to the active Slack conversation. */
|
|
150
|
-
export declare function requireActiveConversation(context: SchedulerToolContext): SlackDestination;
|
|
151
|
-
/** Require a concrete Slack actor before creating scheduler ownership state. */
|
|
152
|
-
export declare function requireActor(context: SchedulerToolContext, destination: SlackDestination): ScheduledTaskPrincipal;
|
|
153
|
-
/** Preserve the active destination's ingress-confirmed access classification. */
|
|
154
|
-
export declare function getConversationAccess(destination: SlackDestination, source: SlackSource | undefined): ScheduledTaskConversationAccess;
|
|
155
|
-
/** Keep scheduler management operations bound to the task's current Slack destination. */
|
|
156
|
-
export declare function sameDestination(task: ScheduledTask, destination: SlackDestination): boolean;
|
|
157
|
-
/** Look up a mutable task only after enforcing active-conversation ownership. */
|
|
158
|
-
export declare function getWritableTask(args: {
|
|
159
|
-
context: SchedulerToolContext;
|
|
160
|
-
taskId: string;
|
|
161
|
-
}): Promise<ScheduledTask>;
|
|
162
|
-
/** Project scheduled task state into the stable model-facing result shape. */
|
|
163
|
-
export declare function compactTask(task: ScheduledTask): CompactTaskResult;
|
|
164
|
-
/** Build the structured result shared by single-task scheduler tools. */
|
|
165
|
-
export declare function scheduleTaskToolResult(target: string, task: CompactTaskResult): {
|
|
166
|
-
readonly target: string;
|
|
167
|
-
readonly task: {
|
|
168
|
-
id: string;
|
|
169
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
170
|
-
task: string;
|
|
171
|
-
schedule: string;
|
|
172
|
-
timezone: string;
|
|
173
|
-
recurrence: unknown;
|
|
174
|
-
next_run_at: string | null;
|
|
175
|
-
destination: {
|
|
176
|
-
platform: "slack";
|
|
177
|
-
team_id: string;
|
|
178
|
-
channel_id: string;
|
|
179
|
-
};
|
|
180
|
-
conversation_access: {
|
|
181
|
-
audience: "direct" | "channel" | "group";
|
|
182
|
-
visibility: "private" | "public";
|
|
183
|
-
};
|
|
184
|
-
credential_mode: "system" | "creator";
|
|
185
|
-
dashboard_url: string | null;
|
|
186
|
-
last_run_at: string | null;
|
|
187
|
-
run_now_at: string | null;
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
/** Build the structured result for listing scheduler tools. */
|
|
191
|
-
export declare function scheduleListToolResult(args: {
|
|
192
|
-
target: string;
|
|
193
|
-
tasks: CompactTaskResult[];
|
|
194
|
-
truncated: boolean;
|
|
195
|
-
}): {
|
|
196
|
-
readonly target: string;
|
|
197
|
-
readonly tasks: {
|
|
198
|
-
id: string;
|
|
199
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
200
|
-
task: string;
|
|
201
|
-
schedule: string;
|
|
202
|
-
timezone: string;
|
|
203
|
-
recurrence: unknown;
|
|
204
|
-
next_run_at: string | null;
|
|
205
|
-
destination: {
|
|
206
|
-
platform: "slack";
|
|
207
|
-
team_id: string;
|
|
208
|
-
channel_id: string;
|
|
209
|
-
};
|
|
210
|
-
conversation_access: {
|
|
211
|
-
audience: "direct" | "channel" | "group";
|
|
212
|
-
visibility: "private" | "public";
|
|
213
|
-
};
|
|
214
|
-
credential_mode: "system" | "creator";
|
|
215
|
-
dashboard_url: string | null;
|
|
216
|
-
last_run_at: string | null;
|
|
217
|
-
run_now_at: string | null;
|
|
218
|
-
}[];
|
|
219
|
-
readonly truncated: boolean;
|
|
220
|
-
};
|
|
221
|
-
/** Build a retry-stable scheduler id scoped to the creating actor and destination. */
|
|
222
|
-
export declare function buildTaskId(args: {
|
|
223
|
-
actor: ScheduledTaskPrincipal;
|
|
224
|
-
destination: SlackDestination;
|
|
225
|
-
toolCallId: string | undefined;
|
|
226
|
-
}): string;
|
|
227
|
-
/** Accept only persisted scheduler statuses from model-facing update input. */
|
|
228
|
-
export declare function normalizeStatus(value: string | undefined): ScheduledTaskStatus | undefined;
|
|
229
|
-
/** Centralize scheduler timezone defaulting for all concrete tool entry points. */
|
|
230
|
-
export declare function getDefaultScheduleTimezone(): string;
|
|
231
|
-
export {};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { type SchedulerToolContext } from "../tool-support";
|
|
2
|
-
/** Create a tool that stores a scheduled task for the active Slack context. */
|
|
3
|
-
export declare function createSlackScheduleCreateTaskTool(context: SchedulerToolContext): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
-
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
5
|
-
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
6
|
-
prepareArguments(args: unknown): {
|
|
7
|
-
task: string;
|
|
8
|
-
schedule: {
|
|
9
|
-
kind: "recurring";
|
|
10
|
-
frequency: "daily" | "weekly" | "monthly" | "yearly";
|
|
11
|
-
time: string;
|
|
12
|
-
interval?: number | null | undefined;
|
|
13
|
-
weekdays?: ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[] | null | undefined;
|
|
14
|
-
day_of_month?: number | null | undefined;
|
|
15
|
-
month?: number | null | undefined;
|
|
16
|
-
start_date?: string | null | undefined;
|
|
17
|
-
timezone?: string | null | undefined;
|
|
18
|
-
} | {
|
|
19
|
-
kind: "one_off";
|
|
20
|
-
timing: {
|
|
21
|
-
type: "after";
|
|
22
|
-
value: number;
|
|
23
|
-
unit: "hour" | "minute" | "day" | "second" | "week";
|
|
24
|
-
} | {
|
|
25
|
-
type: "at";
|
|
26
|
-
date: string;
|
|
27
|
-
time: string;
|
|
28
|
-
};
|
|
29
|
-
timezone?: string | null | undefined;
|
|
30
|
-
};
|
|
31
|
-
title?: string | null | undefined;
|
|
32
|
-
credential_mode?: "system" | "creator" | null | undefined;
|
|
33
|
-
};
|
|
34
|
-
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
35
|
-
target: string;
|
|
36
|
-
task: {
|
|
37
|
-
id: string;
|
|
38
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
39
|
-
task: string;
|
|
40
|
-
schedule: string;
|
|
41
|
-
timezone: string;
|
|
42
|
-
recurrence: unknown;
|
|
43
|
-
next_run_at: string | null;
|
|
44
|
-
destination: {
|
|
45
|
-
platform: "slack";
|
|
46
|
-
team_id: string;
|
|
47
|
-
channel_id: string;
|
|
48
|
-
};
|
|
49
|
-
conversation_access: {
|
|
50
|
-
audience: "direct" | "channel" | "group";
|
|
51
|
-
visibility: "private" | "public";
|
|
52
|
-
};
|
|
53
|
-
credential_mode: "system" | "creator";
|
|
54
|
-
dashboard_url: string | null;
|
|
55
|
-
last_run_at: string | null;
|
|
56
|
-
run_now_at: string | null;
|
|
57
|
-
};
|
|
58
|
-
truncated?: boolean | undefined;
|
|
59
|
-
timed_out?: boolean | undefined;
|
|
60
|
-
continuation?: {
|
|
61
|
-
arguments: Record<string, unknown>;
|
|
62
|
-
reason?: string | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
} | Promise<{
|
|
65
|
-
target: string;
|
|
66
|
-
task: {
|
|
67
|
-
id: string;
|
|
68
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
69
|
-
task: string;
|
|
70
|
-
schedule: string;
|
|
71
|
-
timezone: string;
|
|
72
|
-
recurrence: unknown;
|
|
73
|
-
next_run_at: string | null;
|
|
74
|
-
destination: {
|
|
75
|
-
platform: "slack";
|
|
76
|
-
team_id: string;
|
|
77
|
-
channel_id: string;
|
|
78
|
-
};
|
|
79
|
-
conversation_access: {
|
|
80
|
-
audience: "direct" | "channel" | "group";
|
|
81
|
-
visibility: "private" | "public";
|
|
82
|
-
};
|
|
83
|
-
credential_mode: "system" | "creator";
|
|
84
|
-
dashboard_url: string | null;
|
|
85
|
-
last_run_at: string | null;
|
|
86
|
-
run_now_at: string | null;
|
|
87
|
-
};
|
|
88
|
-
truncated?: boolean | undefined;
|
|
89
|
-
timed_out?: boolean | undefined;
|
|
90
|
-
continuation?: {
|
|
91
|
-
arguments: Record<string, unknown>;
|
|
92
|
-
reason?: string | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
}>) | undefined;
|
|
95
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type SchedulerToolContext } from "../tool-support";
|
|
2
|
-
/** Create a tool that removes a scheduled task from the active Slack conversation. */
|
|
3
|
-
export declare function createSlackScheduleDeleteTaskTool(context: SchedulerToolContext): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
-
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
5
|
-
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
6
|
-
prepareArguments(args: unknown): {
|
|
7
|
-
task_id: string;
|
|
8
|
-
};
|
|
9
|
-
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
10
|
-
target: string;
|
|
11
|
-
task: {
|
|
12
|
-
id: string;
|
|
13
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
14
|
-
task: string;
|
|
15
|
-
schedule: string;
|
|
16
|
-
timezone: string;
|
|
17
|
-
recurrence: unknown;
|
|
18
|
-
next_run_at: string | null;
|
|
19
|
-
destination: {
|
|
20
|
-
platform: "slack";
|
|
21
|
-
team_id: string;
|
|
22
|
-
channel_id: string;
|
|
23
|
-
};
|
|
24
|
-
conversation_access: {
|
|
25
|
-
audience: "direct" | "channel" | "group";
|
|
26
|
-
visibility: "private" | "public";
|
|
27
|
-
};
|
|
28
|
-
credential_mode: "system" | "creator";
|
|
29
|
-
dashboard_url: string | null;
|
|
30
|
-
last_run_at: string | null;
|
|
31
|
-
run_now_at: string | null;
|
|
32
|
-
};
|
|
33
|
-
truncated?: boolean | undefined;
|
|
34
|
-
timed_out?: boolean | undefined;
|
|
35
|
-
continuation?: {
|
|
36
|
-
arguments: Record<string, unknown>;
|
|
37
|
-
reason?: string | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
} | Promise<{
|
|
40
|
-
target: string;
|
|
41
|
-
task: {
|
|
42
|
-
id: string;
|
|
43
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
44
|
-
task: string;
|
|
45
|
-
schedule: string;
|
|
46
|
-
timezone: string;
|
|
47
|
-
recurrence: unknown;
|
|
48
|
-
next_run_at: string | null;
|
|
49
|
-
destination: {
|
|
50
|
-
platform: "slack";
|
|
51
|
-
team_id: string;
|
|
52
|
-
channel_id: string;
|
|
53
|
-
};
|
|
54
|
-
conversation_access: {
|
|
55
|
-
audience: "direct" | "channel" | "group";
|
|
56
|
-
visibility: "private" | "public";
|
|
57
|
-
};
|
|
58
|
-
credential_mode: "system" | "creator";
|
|
59
|
-
dashboard_url: string | null;
|
|
60
|
-
last_run_at: string | null;
|
|
61
|
-
run_now_at: string | null;
|
|
62
|
-
};
|
|
63
|
-
truncated?: boolean | undefined;
|
|
64
|
-
timed_out?: boolean | undefined;
|
|
65
|
-
continuation?: {
|
|
66
|
-
arguments: Record<string, unknown>;
|
|
67
|
-
reason?: string | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
}>) | undefined;
|
|
70
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { type SchedulerToolContext } from "../tool-support";
|
|
2
|
-
/** Create a tool that lists scheduled tasks for the active conversation or the requester. */
|
|
3
|
-
export declare function createSlackScheduleListTasksTool(context: SchedulerToolContext): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
-
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
5
|
-
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
6
|
-
prepareArguments(args: unknown): {
|
|
7
|
-
channel_id?: string | null | undefined;
|
|
8
|
-
query?: string | null | undefined;
|
|
9
|
-
};
|
|
10
|
-
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
11
|
-
target: string;
|
|
12
|
-
tasks: {
|
|
13
|
-
id: string;
|
|
14
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
15
|
-
task: string;
|
|
16
|
-
schedule: string;
|
|
17
|
-
timezone: string;
|
|
18
|
-
recurrence: unknown;
|
|
19
|
-
next_run_at: string | null;
|
|
20
|
-
destination: {
|
|
21
|
-
platform: "slack";
|
|
22
|
-
team_id: string;
|
|
23
|
-
channel_id: string;
|
|
24
|
-
};
|
|
25
|
-
conversation_access: {
|
|
26
|
-
audience: "direct" | "channel" | "group";
|
|
27
|
-
visibility: "private" | "public";
|
|
28
|
-
};
|
|
29
|
-
credential_mode: "system" | "creator";
|
|
30
|
-
dashboard_url: string | null;
|
|
31
|
-
last_run_at: string | null;
|
|
32
|
-
run_now_at: string | null;
|
|
33
|
-
}[];
|
|
34
|
-
truncated: boolean;
|
|
35
|
-
timed_out?: boolean | undefined;
|
|
36
|
-
continuation?: {
|
|
37
|
-
arguments: Record<string, unknown>;
|
|
38
|
-
reason?: string | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
} | Promise<{
|
|
41
|
-
target: string;
|
|
42
|
-
tasks: {
|
|
43
|
-
id: string;
|
|
44
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
45
|
-
task: string;
|
|
46
|
-
schedule: string;
|
|
47
|
-
timezone: string;
|
|
48
|
-
recurrence: unknown;
|
|
49
|
-
next_run_at: string | null;
|
|
50
|
-
destination: {
|
|
51
|
-
platform: "slack";
|
|
52
|
-
team_id: string;
|
|
53
|
-
channel_id: string;
|
|
54
|
-
};
|
|
55
|
-
conversation_access: {
|
|
56
|
-
audience: "direct" | "channel" | "group";
|
|
57
|
-
visibility: "private" | "public";
|
|
58
|
-
};
|
|
59
|
-
credential_mode: "system" | "creator";
|
|
60
|
-
dashboard_url: string | null;
|
|
61
|
-
last_run_at: string | null;
|
|
62
|
-
run_now_at: string | null;
|
|
63
|
-
}[];
|
|
64
|
-
truncated: boolean;
|
|
65
|
-
timed_out?: boolean | undefined;
|
|
66
|
-
continuation?: {
|
|
67
|
-
arguments: Record<string, unknown>;
|
|
68
|
-
reason?: string | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
}>) | undefined;
|
|
71
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type SchedulerToolContext } from "../tool-support";
|
|
2
|
-
/** Create a tool that marks an existing scheduled task due immediately. */
|
|
3
|
-
export declare function createSlackScheduleRunTaskNowTool(context: SchedulerToolContext): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
-
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
5
|
-
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
6
|
-
prepareArguments(args: unknown): {
|
|
7
|
-
task_id: string;
|
|
8
|
-
};
|
|
9
|
-
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
10
|
-
target: string;
|
|
11
|
-
task: {
|
|
12
|
-
id: string;
|
|
13
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
14
|
-
task: string;
|
|
15
|
-
schedule: string;
|
|
16
|
-
timezone: string;
|
|
17
|
-
recurrence: unknown;
|
|
18
|
-
next_run_at: string | null;
|
|
19
|
-
destination: {
|
|
20
|
-
platform: "slack";
|
|
21
|
-
team_id: string;
|
|
22
|
-
channel_id: string;
|
|
23
|
-
};
|
|
24
|
-
conversation_access: {
|
|
25
|
-
audience: "direct" | "channel" | "group";
|
|
26
|
-
visibility: "private" | "public";
|
|
27
|
-
};
|
|
28
|
-
credential_mode: "system" | "creator";
|
|
29
|
-
dashboard_url: string | null;
|
|
30
|
-
last_run_at: string | null;
|
|
31
|
-
run_now_at: string | null;
|
|
32
|
-
};
|
|
33
|
-
truncated?: boolean | undefined;
|
|
34
|
-
timed_out?: boolean | undefined;
|
|
35
|
-
continuation?: {
|
|
36
|
-
arguments: Record<string, unknown>;
|
|
37
|
-
reason?: string | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
} | Promise<{
|
|
40
|
-
target: string;
|
|
41
|
-
task: {
|
|
42
|
-
id: string;
|
|
43
|
-
status: "completed" | "blocked" | "active" | "deleted";
|
|
44
|
-
task: string;
|
|
45
|
-
schedule: string;
|
|
46
|
-
timezone: string;
|
|
47
|
-
recurrence: unknown;
|
|
48
|
-
next_run_at: string | null;
|
|
49
|
-
destination: {
|
|
50
|
-
platform: "slack";
|
|
51
|
-
team_id: string;
|
|
52
|
-
channel_id: string;
|
|
53
|
-
};
|
|
54
|
-
conversation_access: {
|
|
55
|
-
audience: "direct" | "channel" | "group";
|
|
56
|
-
visibility: "private" | "public";
|
|
57
|
-
};
|
|
58
|
-
credential_mode: "system" | "creator";
|
|
59
|
-
dashboard_url: string | null;
|
|
60
|
-
last_run_at: string | null;
|
|
61
|
-
run_now_at: string | null;
|
|
62
|
-
};
|
|
63
|
-
truncated?: boolean | undefined;
|
|
64
|
-
timed_out?: boolean | undefined;
|
|
65
|
-
continuation?: {
|
|
66
|
-
arguments: Record<string, unknown>;
|
|
67
|
-
reason?: string | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
}>) | undefined;
|
|
70
|
-
};
|