@sentry/junior 0.198.0 → 0.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-hooks-3E7O7ATZ.js → agent-hooks-GLHLHDA6.js} +11 -11
- package/dist/api/schema.d.ts +3157 -22
- package/dist/api/schema.js +1 -1
- package/dist/api.d.ts +27 -8
- package/dist/api.js +26 -25
- package/dist/app.d.ts +456 -16
- package/dist/app.js +3913 -3701
- package/dist/{catalog-runtime-QDUBRXEW.js → catalog-runtime-J2VOYYYV.js} +4 -4
- package/dist/{chunk-X2WFY3TM.js → chunk-23ITKUM3.js} +8 -8
- package/dist/{chunk-IZ4CIFJY.js → chunk-2B2KKIWT.js} +9 -9
- package/dist/{chunk-N3GQY63R.js → chunk-3ARYTHKB.js} +1 -1
- package/dist/{chunk-342FVAX5.js → chunk-46WKZ2SS.js} +1 -1
- package/dist/{chunk-LXPGGSYD.js → chunk-4YIE2TYI.js} +3 -3
- package/dist/{chunk-KVXHBJCH.js → chunk-5UMYAEOX.js} +1 -1
- package/dist/{chunk-OKQMTCHU.js → chunk-7667XKEG.js} +5 -5
- package/dist/{chunk-ZUEUBQWE.js → chunk-B63AKBOM.js} +3 -3
- package/dist/{chunk-2ACXVY6O.js → chunk-BO6MPZSQ.js} +1 -1
- package/dist/{chunk-VYGZPJSM.js → chunk-CIFTZ6A7.js} +4 -4
- package/dist/{chunk-SPEJV3TW.js → chunk-CYTCY25C.js} +3 -3
- package/dist/{chunk-4FHQ6CCO.js → chunk-CZFI77CX.js} +1 -1
- package/dist/{chunk-3J5Y4RWY.js → chunk-FAGRJZ4E.js} +1 -1
- package/dist/{chunk-QYSJWJLJ.js → chunk-GNHCHX6P.js} +4 -4
- package/dist/{chunk-7KXZRRMK.js → chunk-HDZEZ7OB.js} +1 -1
- package/dist/{chunk-G6XSYS3Q.js → chunk-I3HP6Z6Z.js} +4 -4
- package/dist/{chunk-CSGQWJIY.js → chunk-K3427KVO.js} +2 -2
- package/dist/{chunk-D3SLBCD4.js → chunk-MI5SP4SR.js} +2 -2
- package/dist/{chunk-LBN67OZR.js → chunk-MTM5IFCY.js} +1 -0
- package/dist/{chunk-CGNZXN7B.js → chunk-OJBDDF7X.js} +8 -8
- package/dist/{chunk-A6KKPVEA.js → chunk-P22PNLK7.js} +4 -4
- package/dist/{chunk-FU4OWKCL.js → chunk-P7QOUKYL.js} +2 -2
- package/dist/{chunk-CZC6ZEXR.js → chunk-PB74QQQS.js} +6 -6
- package/dist/{chunk-XNZAZ57D.js → chunk-PQWRTBQJ.js} +2 -2
- package/dist/{chunk-3TMKXW4H.js → chunk-PSFQC35H.js} +1 -1
- package/dist/{chunk-U67DBSNZ.js → chunk-PTT4LXUL.js} +7 -6
- package/dist/{chunk-EWPTEQXA.js → chunk-QF4E3RNM.js} +3 -3
- package/dist/{chunk-G2CT2D5U.js → chunk-RQJ4PBAI.js} +5 -5
- package/dist/{chunk-ZORFTPFN.js → chunk-RVM3TBKW.js} +28 -28
- package/dist/{chunk-EATO3SKS.js → chunk-SHWGNIZJ.js} +3 -3
- package/dist/{chunk-SCVIT6K4.js → chunk-SWA7F2IQ.js} +25 -24
- package/dist/{chunk-C3SNQB6B.js → chunk-TN3MRLBG.js} +21 -21
- package/dist/{chunk-CBHQOGFA.js → chunk-TT2FUK6X.js} +1 -1
- package/dist/{chunk-BFIFTKUS.js → chunk-VL4SXCWF.js} +3 -3
- package/dist/{chunk-NVDUM2CM.js → chunk-VXG62JVC.js} +1 -1
- package/dist/{chunk-T5KV6DUY.js → chunk-WQ7RAWIY.js} +1 -1
- package/dist/{chunk-N6LJYW7V.js → chunk-WR4GQARR.js} +1 -1
- package/dist/{chunk-4UW7BEJZ.js → chunk-YTXEKSV6.js} +6 -6
- package/dist/{chunk-F3XUS2T5.js → chunk-ZOUAXRCD.js} +5 -5
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-OSPYS4WA.js → db-2K4NSLLX.js} +6 -6
- package/dist/instrumentation.d.ts +3 -1
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.d.ts +14 -7
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-VG736DHZ.js → oauth-callback-server-ECRF67PN.js} +29 -29
- package/dist/{runner-3GKIVG6A.js → runner-WCRHEM6N.js} +21 -21
- package/dist/{skills-FKMV7HTX.js → skills-HGNNRMPX.js} +5 -5
- package/dist/spawn-IZ5SV7OV.js +42 -0
- package/dist/task-runner-GG6KD2PL.js +36 -0
- package/dist/{validation-4XYG33GY.js → validation-EKFIUZ4Y.js} +5 -5
- package/dist/vercel.d.ts +4 -2
- package/dist/version.d.ts +3 -1
- package/dist/version.js +1 -1
- package/dist/{work-TJAL6PV3.js → work-LFTVZJUQ.js} +21 -21
- package/dist/{worker-3OYUEME2.js → worker-5GGUQCE3.js} +10 -10
- package/package.json +5 -5
- package/dist/api/acp/auth.d.ts +0 -46
- package/dist/api/acp/authorization-page.d.ts +0 -11
- package/dist/api/acp/conversations.d.ts +0 -70
- package/dist/api/acp/errors.d.ts +0 -6
- package/dist/api/acp/route.d.ts +0 -16
- package/dist/api/acp/schema.d.ts +0 -115
- package/dist/api/acp/sleep.d.ts +0 -2
- package/dist/api/acp/state.d.ts +0 -22
- package/dist/api/acp/transport.d.ts +0 -113
- package/dist/api/activity.d.ts +0 -24
- package/dist/api/code/overview.d.ts +0 -98
- package/dist/api/code/routes.d.ts +0 -4
- package/dist/api/conversations/access.d.ts +0 -10
- package/dist/api/conversations/aggregate.d.ts +0 -31
- package/dist/api/conversations/archive.d.ts +0 -6
- package/dist/api/conversations/attachments.d.ts +0 -32
- package/dist/api/conversations/auxiliary-costs.d.ts +0 -6
- package/dist/api/conversations/cancel-pending-messages.d.ts +0 -4
- package/dist/api/conversations/create.d.ts +0 -6
- package/dist/api/conversations/cursor.d.ts +0 -17
- package/dist/api/conversations/detail.d.ts +0 -7
- package/dist/api/conversations/event-list.d.ts +0 -7
- package/dist/api/conversations/event-page.d.ts +0 -18
- package/dist/api/conversations/events.d.ts +0 -18
- package/dist/api/conversations/list.d.ts +0 -145
- package/dist/api/conversations/membership.d.ts +0 -30
- package/dist/api/conversations/pending-messages.d.ts +0 -15
- package/dist/api/conversations/priority.d.ts +0 -22
- package/dist/api/conversations/projection.d.ts +0 -21
- package/dist/api/conversations/reporting.d.ts +0 -48
- package/dist/api/conversations/routes.d.ts +0 -7
- package/dist/api/conversations/shared.d.ts +0 -5
- package/dist/api/conversations/stats.d.ts +0 -3
- package/dist/api/conversations/stats.query.d.ts +0 -3
- package/dist/api/conversations/usage.d.ts +0 -9
- package/dist/api/conversations/user-message-activity.d.ts +0 -3
- package/dist/api/http.d.ts +0 -8
- package/dist/api/locations/detail.d.ts +0 -134
- package/dist/api/locations/list.d.ts +0 -47
- package/dist/api/locations/query.d.ts +0 -8
- package/dist/api/locations/routes.d.ts +0 -4
- package/dist/api/people/code.d.ts +0 -34
- package/dist/api/people/list.d.ts +0 -3
- package/dist/api/people/list.query.d.ts +0 -3
- package/dist/api/people/plugin-reports.d.ts +0 -7
- package/dist/api/people/profile.d.ts +0 -6
- package/dist/api/people/profile.query.d.ts +0 -6
- package/dist/api/people/routes.d.ts +0 -4
- package/dist/api/people/shared.d.ts +0 -1375
- package/dist/api/people/spend.d.ts +0 -3
- package/dist/api/people/spend.query.d.ts +0 -3
- package/dist/api/personal-tokens/routes.d.ts +0 -4
- package/dist/api/reporting-window.d.ts +0 -78
- package/dist/api/route.d.ts +0 -15
- package/dist/api/schema/code.d.ts +0 -147
- package/dist/api/schema/common.d.ts +0 -6
- package/dist/api/schema/conversation.d.ts +0 -1604
- package/dist/api/schema/location.d.ts +0 -270
- package/dist/api/schema/person.d.ts +0 -362
- package/dist/api/schema/personal-token.d.ts +0 -38
- package/dist/api/schema/stats.d.ts +0 -22
- package/dist/api/schema/task.d.ts +0 -423
- package/dist/api/schema/workspace.d.ts +0 -69
- package/dist/api/stats.d.ts +0 -3
- package/dist/api/tasks/routes.d.ts +0 -4
- package/dist/api/user-pages/routes.d.ts +0 -4
- package/dist/api/validation.d.ts +0 -7
- package/dist/api/viewer.d.ts +0 -3
- package/dist/api/workspaces/routes.d.ts +0 -4
- package/dist/build/copy-build-content.d.ts +0 -6
- package/dist/build/glob-to-regex.d.ts +0 -2
- package/dist/build/rolldown-workarounds.d.ts +0 -14
- package/dist/build/virtual-config.d.ts +0 -25
- package/dist/chat/actor.d.ts +0 -83
- package/dist/chat/agent/action-confirmation-retry.d.ts +0 -6
- package/dist/chat/agent/handoff.d.ts +0 -73
- package/dist/chat/agent/index.d.ts +0 -22
- package/dist/chat/agent/prompt.d.ts +0 -86
- package/dist/chat/agent/repository-context.d.ts +0 -21
- package/dist/chat/agent/resume.d.ts +0 -60
- package/dist/chat/agent/retry-usage.d.ts +0 -8
- package/dist/chat/agent/sandbox.d.ts +0 -55
- package/dist/chat/agent/skills.d.ts +0 -17
- package/dist/chat/agent/tools.d.ts +0 -91
- package/dist/chat/agent/types.d.ts +0 -224
- package/dist/chat/agent-dispatch/context.d.ts +0 -43
- package/dist/chat/agent-dispatch/heartbeat.d.ts +0 -27
- package/dist/chat/agent-dispatch/store.d.ts +0 -42
- package/dist/chat/agent-dispatch/types.d.ts +0 -60
- package/dist/chat/agent-dispatch/validation.d.ts +0 -5
- package/dist/chat/agent-dispatch/work.d.ts +0 -49
- package/dist/chat/agent-invocations/errors.d.ts +0 -8
- package/dist/chat/agent-invocations/spawn.d.ts +0 -12
- package/dist/chat/agent-invocations/store.d.ts +0 -46
- package/dist/chat/agent-invocations/types.d.ts +0 -505
- package/dist/chat/agent-invocations/work.d.ts +0 -29
- package/dist/chat/app/conversation-work.d.ts +0 -37
- package/dist/chat/app/factory.d.ts +0 -23
- package/dist/chat/app/production.d.ts +0 -24
- package/dist/chat/app/services.d.ts +0 -25
- package/dist/chat/artifacts/store.d.ts +0 -42
- package/dist/chat/attachments/storage.d.ts +0 -14
- package/dist/chat/attachments/store.d.ts +0 -68
- package/dist/chat/attachments/vercel.d.ts +0 -3
- package/dist/chat/capabilities/factory.d.ts +0 -11
- package/dist/chat/capabilities/jr-rpc-command.d.ts +0 -26
- package/dist/chat/capabilities/router.d.ts +0 -20
- package/dist/chat/code/publisher.d.ts +0 -3
- package/dist/chat/code/store.d.ts +0 -9
- package/dist/chat/coerce.d.ts +0 -6
- package/dist/chat/config.d.ts +0 -100
- package/dist/chat/configuration/defaults.d.ts +0 -4
- package/dist/chat/configuration/service.d.ts +0 -5
- package/dist/chat/configuration/sql.d.ts +0 -9
- package/dist/chat/configuration/types.d.ts +0 -41
- package/dist/chat/configuration/validation.d.ts +0 -2
- package/dist/chat/conversation-privacy.d.ts +0 -39
- package/dist/chat/conversations/destination-visibility.d.ts +0 -7
- package/dist/chat/conversations/destination.d.ts +0 -12
- package/dist/chat/conversations/history.d.ts +0 -1157
- package/dist/chat/conversations/location.d.ts +0 -5
- package/dist/chat/conversations/message-projection.d.ts +0 -4
- package/dist/chat/conversations/message-search.d.ts +0 -38
- package/dist/chat/conversations/message-summaries.d.ts +0 -9
- package/dist/chat/conversations/messages.d.ts +0 -32
- package/dist/chat/conversations/projection.d.ts +0 -199
- package/dist/chat/conversations/provenance.d.ts +0 -50
- package/dist/chat/conversations/retention.d.ts +0 -40
- package/dist/chat/conversations/sql/actor-identity.d.ts +0 -19
- package/dist/chat/conversations/sql/bindings.d.ts +0 -13
- package/dist/chat/conversations/sql/conversation-row.d.ts +0 -17
- package/dist/chat/conversations/sql/event-actor.d.ts +0 -14
- package/dist/chat/conversations/sql/event-lock.d.ts +0 -3
- package/dist/chat/conversations/sql/history.d.ts +0 -4
- package/dist/chat/conversations/sql/location.d.ts +0 -18
- package/dist/chat/conversations/sql/message-search.d.ts +0 -4
- package/dist/chat/conversations/sql/participants.d.ts +0 -18
- package/dist/chat/conversations/sql/privacy.d.ts +0 -15
- package/dist/chat/conversations/sql/purge.d.ts +0 -45
- package/dist/chat/conversations/sql/store.d.ts +0 -77
- package/dist/chat/conversations/stop.d.ts +0 -12
- package/dist/chat/conversations/store.d.ts +0 -151
- package/dist/chat/conversations/structured-events.d.ts +0 -42
- package/dist/chat/conversations/tool-source.d.ts +0 -5
- package/dist/chat/conversations/turn-lifecycle.d.ts +0 -44
- package/dist/chat/conversations/web-authorization.d.ts +0 -24
- package/dist/chat/conversations/web-input.d.ts +0 -98
- package/dist/chat/conversations/web-mailbox.d.ts +0 -12
- package/dist/chat/credentials/broker.d.ts +0 -23
- package/dist/chat/credentials/context.d.ts +0 -121
- package/dist/chat/credentials/header-transforms.d.ts +0 -3
- package/dist/chat/credentials/oauth-scope.d.ts +0 -4
- package/dist/chat/credentials/state-adapter-token-store.d.ts +0 -11
- package/dist/chat/credentials/subject.d.ts +0 -49
- package/dist/chat/credentials/unlink-provider.d.ts +0 -3
- package/dist/chat/credentials/user-token-store.d.ts +0 -24
- package/dist/chat/current-instruction.d.ts +0 -8
- package/dist/chat/db.d.ts +0 -16
- package/dist/chat/destination.d.ts +0 -14
- package/dist/chat/discovery.d.ts +0 -49
- package/dist/chat/egress/credentialed.d.ts +0 -57
- package/dist/chat/egress/plugin.d.ts +0 -24
- package/dist/chat/event-tasks/ingest.d.ts +0 -9
- package/dist/chat/event-tasks/store.d.ts +0 -41
- package/dist/chat/event-tasks/tool-support.d.ts +0 -158
- package/dist/chat/event-tasks/types.d.ts +0 -51
- package/dist/chat/experimental.d.ts +0 -16
- package/dist/chat/identities/identity.d.ts +0 -18
- package/dist/chat/identities/sql.d.ts +0 -12
- package/dist/chat/ingress/bot-mention.d.ts +0 -13
- package/dist/chat/ingress/junior-chat.d.ts +0 -26
- package/dist/chat/ingress/message-changed.d.ts +0 -52
- package/dist/chat/ingress/message-router.d.ts +0 -12
- package/dist/chat/ingress/slack-webhook.d.ts +0 -21
- package/dist/chat/ingress/slash-command.d.ts +0 -3
- package/dist/chat/ingress/workspace-membership.d.ts +0 -9
- package/dist/chat/interruption-marker.d.ts +0 -2
- package/dist/chat/local/credential-sync.d.ts +0 -5
- package/dist/chat/local/oauth-relay.d.ts +0 -4
- package/dist/chat/log-context.d.ts +0 -40
- package/dist/chat/logging.d.ts +0 -122
- package/dist/chat/mcp/auth-store.d.ts +0 -43
- package/dist/chat/mcp/client.d.ts +0 -40
- package/dist/chat/mcp/errors.d.ts +0 -32
- package/dist/chat/mcp/oauth-provider.d.ts +0 -30
- package/dist/chat/mcp/oauth.d.ts +0 -21
- package/dist/chat/mcp/tool-manager.d.ts +0 -95
- package/dist/chat/mcp/tool-name.d.ts +0 -2
- package/dist/chat/model-profile.d.ts +0 -34
- package/dist/chat/no-reply.d.ts +0 -6
- package/dist/chat/oauth-authorization.d.ts +0 -17
- package/dist/chat/oauth-flow.d.ts +0 -60
- package/dist/chat/oauth-response.d.ts +0 -21
- package/dist/chat/optional-string.d.ts +0 -5
- package/dist/chat/pi/client.d.ts +0 -62
- package/dist/chat/pi/conversation-events.d.ts +0 -38
- package/dist/chat/pi/gateway-auth.d.ts +0 -16
- package/dist/chat/pi/messages.d.ts +0 -19
- package/dist/chat/pi/sdk.d.ts +0 -7
- package/dist/chat/pi/sql-model-usage.d.ts +0 -13
- package/dist/chat/pi/traced-stream.d.ts +0 -13
- package/dist/chat/pi/transcript.d.ts +0 -52
- package/dist/chat/plugins/agent-hooks.d.ts +0 -89
- package/dist/chat/plugins/annotations.d.ts +0 -11
- package/dist/chat/plugins/auth/api-headers-broker.d.ts +0 -6
- package/dist/chat/plugins/auth/auth-token-placeholder.d.ts +0 -3
- package/dist/chat/plugins/auth/oauth-bearer-broker.d.ts +0 -6
- package/dist/chat/plugins/auth/oauth-request.d.ts +0 -26
- package/dist/chat/plugins/catalog-runtime.d.ts +0 -1
- package/dist/chat/plugins/command-env.d.ts +0 -3
- package/dist/chat/plugins/conversation-event-stats.d.ts +0 -3
- package/dist/chat/plugins/conversation-events.d.ts +0 -15
- package/dist/chat/plugins/conversation-sidebar.d.ts +0 -3
- package/dist/chat/plugins/credential-hooks.d.ts +0 -51
- package/dist/chat/plugins/inline-manifest-source.d.ts +0 -5
- package/dist/chat/plugins/logging.d.ts +0 -3
- package/dist/chat/plugins/manifest.d.ts +0 -5
- package/dist/chat/plugins/model.d.ts +0 -9
- package/dist/chat/plugins/package-discovery.d.ts +0 -20
- package/dist/chat/plugins/prompt.d.ts +0 -14
- package/dist/chat/plugins/registry.d.ts +0 -27
- package/dist/chat/plugins/state.d.ts +0 -4
- package/dist/chat/plugins/task-queue.d.ts +0 -42
- package/dist/chat/plugins/task-runner.d.ts +0 -12
- package/dist/chat/plugins/types.d.ts +0 -126
- package/dist/chat/plugins/unfinished-work.d.ts +0 -13
- package/dist/chat/plugins/user-pages.d.ts +0 -16
- package/dist/chat/plugins/validation.d.ts +0 -5
- package/dist/chat/plugins/viewer.d.ts +0 -24
- package/dist/chat/prompt.d.ts +0 -44
- package/dist/chat/providers/slack/input.d.ts +0 -32
- package/dist/chat/providers/slack/processing-reaction.d.ts +0 -21
- package/dist/chat/providers/slack/resume.d.ts +0 -73
- package/dist/chat/providers/slack/runtime.d.ts +0 -114
- package/dist/chat/providers/slack/system-turn.d.ts +0 -13
- package/dist/chat/providers/slack/turn.d.ts +0 -59
- package/dist/chat/queue/callback.d.ts +0 -26
- package/dist/chat/queue/sign.d.ts +0 -30
- package/dist/chat/reasoning-level.d.ts +0 -4
- package/dist/chat/repository-instructions.d.ts +0 -55
- package/dist/chat/resource-events/actor.d.ts +0 -36
- package/dist/chat/resource-events/app-publisher.d.ts +0 -18
- package/dist/chat/resource-events/catalog.d.ts +0 -52
- package/dist/chat/resource-events/ingest.d.ts +0 -10
- package/dist/chat/resource-events/notification.d.ts +0 -54
- package/dist/chat/resource-events/runtime-catalog.d.ts +0 -8
- package/dist/chat/resource-events/store.d.ts +0 -92
- package/dist/chat/resource-events/tool-support.d.ts +0 -9
- package/dist/chat/resource-events/workspace.d.ts +0 -8
- package/dist/chat/runtime/agent-run-outcome.d.ts +0 -29
- package/dist/chat/runtime/agent-runner.d.ts +0 -18
- package/dist/chat/runtime/auth-pause-state.d.ts +0 -11
- package/dist/chat/runtime/conversation-message.d.ts +0 -10
- package/dist/chat/runtime/delivered-turn-state.d.ts +0 -12
- package/dist/chat/runtime/dev-agent-trace.d.ts +0 -1
- package/dist/chat/runtime/report-progress.d.ts +0 -6
- package/dist/chat/runtime/request-deadline.d.ts +0 -8
- package/dist/chat/runtime/thread-context.d.ts +0 -29
- package/dist/chat/runtime/thread-state.d.ts +0 -25
- package/dist/chat/runtime/turn-execution.d.ts +0 -35
- package/dist/chat/runtime/turn-input.d.ts +0 -34
- package/dist/chat/runtime/turn-preparation.d.ts +0 -30
- package/dist/chat/runtime/turn-user-message.d.ts +0 -13
- package/dist/chat/runtime/turn.d.ts +0 -77
- package/dist/chat/sandbox/command-result.d.ts +0 -74
- package/dist/chat/sandbox/credentials.d.ts +0 -11
- package/dist/chat/sandbox/docker.d.ts +0 -17
- package/dist/chat/sandbox/egress/credentials.d.ts +0 -61
- package/dist/chat/sandbox/egress/oidc.d.ts +0 -3
- package/dist/chat/sandbox/egress/policy.d.ts +0 -32
- package/dist/chat/sandbox/egress/proxy.d.ts +0 -35
- package/dist/chat/sandbox/egress/schemas.d.ts +0 -187
- package/dist/chat/sandbox/egress/session.d.ts +0 -59
- package/dist/chat/sandbox/egress/signals.d.ts +0 -9
- package/dist/chat/sandbox/egress/tracing.d.ts +0 -7
- package/dist/chat/sandbox/errors.d.ts +0 -18
- package/dist/chat/sandbox/http-error-details.d.ts +0 -18
- package/dist/chat/sandbox/noninteractive-command.d.ts +0 -21
- package/dist/chat/sandbox/paths.d.ts +0 -8
- package/dist/chat/sandbox/prepare-workspace.d.ts +0 -35
- package/dist/chat/sandbox/ref.d.ts +0 -6
- package/dist/chat/sandbox/resources.d.ts +0 -15
- package/dist/chat/sandbox/runtime-dependencies.d.ts +0 -3
- package/dist/chat/sandbox/sandbox.d.ts +0 -45
- package/dist/chat/sandbox/session.d.ts +0 -50
- package/dist/chat/sandbox/skill-sandbox.d.ts +0 -42
- package/dist/chat/sandbox/skill-sync.d.ts +0 -16
- package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/events.d.ts +0 -30
- package/dist/chat/sandbox/snapshot/install.d.ts +0 -6
- package/dist/chat/sandbox/snapshot/job-callback.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/job-queue.d.ts +0 -26
- package/dist/chat/sandbox/snapshot/job-runner.d.ts +0 -11
- package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +0 -11
- package/dist/chat/sandbox/snapshot/profile.d.ts +0 -15
- package/dist/chat/sandbox/snapshot/resolve.d.ts +0 -43
- package/dist/chat/sandbox/snapshot/runtime.d.ts +0 -2
- package/dist/chat/sandbox/snapshot/span.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/store.d.ts +0 -31
- package/dist/chat/sandbox/snapshot/workspace.d.ts +0 -23
- package/dist/chat/sandbox/workspace.d.ts +0 -72
- package/dist/chat/scheduled-tasks/cadence.d.ts +0 -27
- package/dist/chat/scheduled-tasks/heartbeat.d.ts +0 -6
- package/dist/chat/scheduled-tasks/identity.d.ts +0 -6
- package/dist/chat/scheduled-tasks/personal.d.ts +0 -23
- package/dist/chat/scheduled-tasks/runs.d.ts +0 -49
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +0 -61
- package/dist/chat/scheduled-tasks/tasks.d.ts +0 -27
- package/dist/chat/scheduled-tasks/telemetry.d.ts +0 -7
- package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -231
- package/dist/chat/scheduled-tasks/tools/create.d.ts +0 -95
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +0 -70
- package/dist/chat/scheduled-tasks/tools/list.d.ts +0 -71
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +0 -70
- package/dist/chat/scheduled-tasks/tools/update.d.ts +0 -97
- package/dist/chat/scheduled-tasks/tools.d.ts +0 -6
- package/dist/chat/scheduled-tasks/types.d.ts +0 -135
- package/dist/chat/sentry-links.d.ts +0 -6
- package/dist/chat/sentry-payload-filter.d.ts +0 -14
- package/dist/chat/sentry.d.ts +0 -3
- package/dist/chat/services/assistant-reply.d.ts +0 -16
- package/dist/chat/services/auth-pause-response.d.ts +0 -2
- package/dist/chat/services/auth-pause.d.ts +0 -24
- package/dist/chat/services/automated-turn-limit.d.ts +0 -89
- package/dist/chat/services/context-budget.d.ts +0 -19
- package/dist/chat/services/context-compaction-marker.d.ts +0 -8
- package/dist/chat/services/context-compaction.d.ts +0 -78
- package/dist/chat/services/conversation-memory.d.ts +0 -53
- package/dist/chat/services/conversation-title.d.ts +0 -20
- package/dist/chat/services/empty-output-continuation.d.ts +0 -20
- package/dist/chat/services/guardian-action-policy.d.ts +0 -12
- package/dist/chat/services/guardian-action-review.d.ts +0 -9
- package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -42
- package/dist/chat/services/message-actor-identity.d.ts +0 -16
- package/dist/chat/services/pending-auth.d.ts +0 -44
- package/dist/chat/services/persist-retry.d.ts +0 -2
- package/dist/chat/services/plugin-auth-orchestration.d.ts +0 -56
- package/dist/chat/services/provider-default-config.d.ts +0 -9
- package/dist/chat/services/provider-error.d.ts +0 -42
- package/dist/chat/services/provider-retry.d.ts +0 -13
- package/dist/chat/services/short-title.d.ts +0 -25
- package/dist/chat/services/subscribed-decision.d.ts +0 -75
- package/dist/chat/services/subscribed-reply-policy.d.ts +0 -13
- package/dist/chat/services/subscribed-reply-router-policy.d.ts +0 -12
- package/dist/chat/services/turn-failure-response.d.ts +0 -24
- package/dist/chat/services/turn-limit.d.ts +0 -16
- package/dist/chat/services/turn-result.d.ts +0 -42
- package/dist/chat/services/turn-router.d.ts +0 -59
- package/dist/chat/services/turn-session-routing.d.ts +0 -35
- package/dist/chat/skills.d.ts +0 -47
- package/dist/chat/slack/action-token.d.ts +0 -6
- package/dist/chat/slack/adapter-context.d.ts +0 -25
- package/dist/chat/slack/adapter.d.ts +0 -9
- package/dist/chat/slack/app-home.d.ts +0 -11
- package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -12
- package/dist/chat/slack/assistant-thread/status-render.d.ts +0 -28
- package/dist/chat/slack/assistant-thread/status-scheduler.d.ts +0 -24
- package/dist/chat/slack/assistant-thread/status-send.d.ts +0 -31
- package/dist/chat/slack/assistant-thread/status.d.ts +0 -36
- package/dist/chat/slack/assistant-thread/title.d.ts +0 -16
- package/dist/chat/slack/attachment-fetchers.d.ts +0 -11
- package/dist/chat/slack/automated-turn-limit-notice.d.ts +0 -16
- package/dist/chat/slack/canvas-references.d.ts +0 -2
- package/dist/chat/slack/channel.d.ts +0 -65
- package/dist/chat/slack/client.d.ts +0 -87
- package/dist/chat/slack/context.d.ts +0 -21
- package/dist/chat/slack/conversation-context.d.ts +0 -40
- package/dist/chat/slack/dashboard-link.d.ts +0 -11
- package/dist/chat/slack/dispatch-turn.d.ts +0 -24
- package/dist/chat/slack/emoji.d.ts +0 -1
- package/dist/chat/slack/errors.d.ts +0 -8
- package/dist/chat/slack/footer.d.ts +0 -46
- package/dist/chat/slack/id-param.d.ts +0 -25
- package/dist/chat/slack/ids.d.ts +0 -24
- package/dist/chat/slack/location-url.d.ts +0 -11
- package/dist/chat/slack/message/attachments.d.ts +0 -2
- package/dist/chat/slack/message/blocks.d.ts +0 -2
- package/dist/chat/slack/message/content.d.ts +0 -18
- package/dist/chat/slack/message/identity.d.ts +0 -7
- package/dist/chat/slack/message-control.d.ts +0 -2
- package/dist/chat/slack/mrkdwn.d.ts +0 -19
- package/dist/chat/slack/oauth-authorization-message.d.ts +0 -3
- package/dist/chat/slack/outbound.d.ts +0 -79
- package/dist/chat/slack/output.d.ts +0 -54
- package/dist/chat/slack/reply.d.ts +0 -19
- package/dist/chat/slack/status-format.d.ts +0 -2
- package/dist/chat/slack/team-domain.d.ts +0 -4
- package/dist/chat/slack/timestamp-param.d.ts +0 -23
- package/dist/chat/slack/timestamp.d.ts +0 -6
- package/dist/chat/slack/tool-support/canvas/api.d.ts +0 -38
- package/dist/chat/slack/tool-support/canvas/context.d.ts +0 -11
- package/dist/chat/slack/tool-support/canvas/markdown.d.ts +0 -9
- package/dist/chat/slack/tool-support/channel-access.d.ts +0 -42
- package/dist/chat/slack/tool-support/channel-capabilities.d.ts +0 -13
- package/dist/chat/slack/tool-support/channel-target.d.ts +0 -28
- package/dist/chat/slack/tool-support/context.d.ts +0 -15
- package/dist/chat/slack/tool-support/list/api.d.ts +0 -50
- package/dist/chat/slack/tool-support/list/params.d.ts +0 -5
- package/dist/chat/slack/tool-support/slack-message-url.d.ts +0 -18
- package/dist/chat/slack/tools/canvas/create.d.ts +0 -30
- package/dist/chat/slack/tools/canvas/edit.d.ts +0 -48
- package/dist/chat/slack/tools/canvas/read.d.ts +0 -51
- package/dist/chat/slack/tools/canvas/write.d.ts +0 -29
- package/dist/chat/slack/tools/channel-join.d.ts +0 -28
- package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -34
- package/dist/chat/slack/tools/conversation-message-search.d.ts +0 -67
- package/dist/chat/slack/tools/list/add-items.d.ts +0 -31
- package/dist/chat/slack/tools/list/create.d.ts +0 -28
- package/dist/chat/slack/tools/list/get-items.d.ts +0 -28
- package/dist/chat/slack/tools/list/update-item.d.ts +0 -36
- package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -29
- package/dist/chat/slack/tools/public-search.d.ts +0 -121
- package/dist/chat/slack/tools/send-files.d.ts +0 -53
- package/dist/chat/slack/tools/thread-read.d.ts +0 -32
- package/dist/chat/slack/user.d.ts +0 -11
- package/dist/chat/slack/users.d.ts +0 -40
- package/dist/chat/slack/vision-cache.d.ts +0 -5
- package/dist/chat/slack/vision-context.d.ts +0 -63
- package/dist/chat/slack/workspace-context.d.ts +0 -4
- package/dist/chat/sleep.d.ts +0 -2
- package/dist/chat/source.d.ts +0 -16
- package/dist/chat/state/adapter.d.ts +0 -10
- package/dist/chat/state/conversation.d.ts +0 -80
- package/dist/chat/state/locks.d.ts +0 -35
- package/dist/chat/state/ttl.d.ts +0 -2
- package/dist/chat/state/turn-id.d.ts +0 -4
- package/dist/chat/task-execution/assistant-message.d.ts +0 -32
- package/dist/chat/task-execution/checkpoint.d.ts +0 -86
- package/dist/chat/task-execution/conversation-turn.d.ts +0 -8
- package/dist/chat/task-execution/heartbeat.d.ts +0 -13
- package/dist/chat/task-execution/mailbox-input.d.ts +0 -3
- package/dist/chat/task-execution/mailbox-turn.d.ts +0 -52
- package/dist/chat/task-execution/paused-turn.d.ts +0 -27
- package/dist/chat/task-execution/queue-signing.d.ts +0 -17
- package/dist/chat/task-execution/queue.d.ts +0 -33
- package/dist/chat/task-execution/slack-work.d.ts +0 -274
- package/dist/chat/task-execution/state.d.ts +0 -410
- package/dist/chat/task-execution/store.d.ts +0 -248
- package/dist/chat/task-execution/turn-cursor-keys.d.ts +0 -6
- package/dist/chat/task-execution/turn-cursor.d.ts +0 -165
- package/dist/chat/task-execution/turn-wake.d.ts +0 -41
- package/dist/chat/task-execution/vercel-callback.d.ts +0 -27
- package/dist/chat/task-execution/vercel-queue.d.ts +0 -19
- package/dist/chat/task-execution/worker.d.ts +0 -42
- package/dist/chat/task-input.d.ts +0 -22
- package/dist/chat/tasks/execution-stats.d.ts +0 -105
- package/dist/chat/tasks/read.d.ts +0 -22
- package/dist/chat/tool-exposure.d.ts +0 -10
- package/dist/chat/tool-support/action-review-evidence.d.ts +0 -4
- package/dist/chat/tool-support/action-review-history.d.ts +0 -117
- package/dist/chat/tool-support/action-review.d.ts +0 -143
- package/dist/chat/tool-support/catalog-tool-call.d.ts +0 -10
- package/dist/chat/tool-support/normalize-result.d.ts +0 -9
- package/dist/chat/tool-support/pi-tool-adapter.d.ts +0 -13
- package/dist/chat/tool-support/private-trace-result.d.ts +0 -4
- package/dist/chat/tool-support/skill/mcp-tool-summary.d.ts +0 -20
- package/dist/chat/tool-support/structured-result.d.ts +0 -44
- package/dist/chat/tool-support/text-range-result.d.ts +0 -37
- package/dist/chat/tool-support/timed-out-tool-result.d.ts +0 -11
- package/dist/chat/tool-support/tool-execution-report.d.ts +0 -8
- package/dist/chat/tool-support/zod-tool.d.ts +0 -46
- package/dist/chat/tools/create-event-task.d.ts +0 -71
- package/dist/chat/tools/definition.d.ts +0 -122
- package/dist/chat/tools/delete-event-task.d.ts +0 -61
- package/dist/chat/tools/event-tasks.d.ts +0 -5
- package/dist/chat/tools/execute-tool.d.ts +0 -11
- package/dist/chat/tools/execution/build-sandbox-input.d.ts +0 -2
- package/dist/chat/tools/execution/tool-error-handler.d.ts +0 -4
- package/dist/chat/tools/execution/tool-input-error.d.ts +0 -6
- package/dist/chat/tools/handoff/tool.d.ts +0 -31
- package/dist/chat/tools/idempotency.d.ts +0 -1
- package/dist/chat/tools/index.d.ts +0 -11
- package/dist/chat/tools/list-event-tasks.d.ts +0 -59
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -46
- package/dist/chat/tools/publish-image.d.ts +0 -44
- package/dist/chat/tools/resource-events.d.ts +0 -5
- package/dist/chat/tools/runtime/report-progress.d.ts +0 -27
- package/dist/chat/tools/runtime/spawn-agent.d.ts +0 -33
- package/dist/chat/tools/sandbox/bash.d.ts +0 -11
- package/dist/chat/tools/sandbox/edit-file.d.ts +0 -43
- package/dist/chat/tools/sandbox/file-uploads.d.ts +0 -52
- package/dist/chat/tools/sandbox/file-utils.d.ts +0 -64
- package/dist/chat/tools/sandbox/find-files.d.ts +0 -33
- package/dist/chat/tools/sandbox/generated-artifacts.d.ts +0 -16
- package/dist/chat/tools/sandbox/grep.d.ts +0 -51
- package/dist/chat/tools/sandbox/list-dir.d.ts +0 -35
- package/dist/chat/tools/sandbox/read-file.d.ts +0 -12
- package/dist/chat/tools/sandbox/text-edits.d.ts +0 -29
- package/dist/chat/tools/sandbox/view-image.d.ts +0 -11
- package/dist/chat/tools/sandbox/write-file.d.ts +0 -10
- package/dist/chat/tools/scheduled-tasks.d.ts +0 -4
- package/dist/chat/tools/search-conversation-events.d.ts +0 -56
- package/dist/chat/tools/search-resource-event-types.d.ts +0 -56
- package/dist/chat/tools/search-tools.d.ts +0 -71
- package/dist/chat/tools/skill/call-mcp-tool.d.ts +0 -16
- package/dist/chat/tools/skill/load-skill.d.ts +0 -39
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -81
- package/dist/chat/tools/stop-watching-resources.d.ts +0 -30
- package/dist/chat/tools/system-time.d.ts +0 -42
- package/dist/chat/tools/types.d.ts +0 -129
- package/dist/chat/tools/unpublish-image.d.ts +0 -35
- package/dist/chat/tools/update-event-task.d.ts +0 -71
- package/dist/chat/tools/user-lookup.d.ts +0 -29
- package/dist/chat/tools/watch-resource-events.d.ts +0 -64
- package/dist/chat/tools/web/constants.d.ts +0 -6
- package/dist/chat/tools/web/fetch-content.d.ts +0 -28
- package/dist/chat/tools/web/fetch-tool.d.ts +0 -31
- package/dist/chat/tools/web/image-generate.d.ts +0 -51
- package/dist/chat/tools/web/network.d.ts +0 -6
- package/dist/chat/tools/web/search.d.ts +0 -28
- package/dist/chat/turn-context-tag.d.ts +0 -6
- package/dist/chat/usage.d.ts +0 -42
- package/dist/chat/vercel-queue-client.d.ts +0 -3
- package/dist/chat/workspaces/checkout-path.d.ts +0 -4
- package/dist/chat/workspaces/store.d.ts +0 -35
- package/dist/chat/workspaces/tools.d.ts +0 -4
- package/dist/chat/workspaces/types.d.ts +0 -36
- package/dist/chat/workspaces/validation.d.ts +0 -20
- package/dist/chat/xml.d.ts +0 -3
- package/dist/db/db.d.ts +0 -27
- package/dist/db/executor.d.ts +0 -8
- package/dist/db/neon.d.ts +0 -8
- package/dist/db/postgres-json.d.ts +0 -5
- package/dist/db/postgres.d.ts +0 -7
- package/dist/db/schema/agent-invocations.d.ts +0 -592
- package/dist/db/schema/api-tokens.d.ts +0 -160
- package/dist/db/schema/artifacts.d.ts +0 -178
- package/dist/db/schema/attachments.d.ts +0 -178
- package/dist/db/schema/code.d.ts +0 -367
- package/dist/db/schema/conversation-annotations.d.ts +0 -142
- package/dist/db/schema/conversation-bindings.d.ts +0 -110
- package/dist/db/schema/conversation-events.d.ts +0 -170
- package/dist/db/schema/conversation-participants.d.ts +0 -80
- package/dist/db/schema/conversations.d.ts +0 -1341
- package/dist/db/schema/destinations.d.ts +0 -209
- package/dist/db/schema/event-tasks.d.ts +0 -150
- package/dist/db/schema/identities.d.ts +0 -265
- package/dist/db/schema/location-configurations.d.ts +0 -127
- package/dist/db/schema/scheduled-tasks.d.ts +0 -298
- package/dist/db/schema/snapshots.d.ts +0 -271
- package/dist/db/schema/stats.d.ts +0 -97
- package/dist/db/schema/task-executions.d.ts +0 -131
- package/dist/db/schema/timestamps.d.ts +0 -1
- package/dist/db/schema/users.d.ts +0 -109
- package/dist/db/schema/workspaces.d.ts +0 -152
- package/dist/db/schema.d.ts +0 -4436
- package/dist/deployment.d.ts +0 -12
- package/dist/handlers/artifacts.d.ts +0 -8
- package/dist/handlers/health.d.ts +0 -7
- package/dist/handlers/heartbeat.d.ts +0 -7
- package/dist/handlers/mcp-oauth-callback.d.ts +0 -10
- package/dist/handlers/oauth-callback.d.ts +0 -10
- package/dist/handlers/oauth-html.d.ts +0 -4
- package/dist/handlers/retention.d.ts +0 -9
- package/dist/handlers/sandbox-egress-proxy.d.ts +0 -11
- package/dist/handlers/sandbox-egress-route.d.ts +0 -4
- package/dist/handlers/sandbox-egress-signals.d.ts +0 -4
- package/dist/handlers/slack-webhook.d.ts +0 -4
- package/dist/handlers/types.d.ts +0 -2
- package/dist/handlers/webhooks.d.ts +0 -12
- package/dist/package-resolution.d.ts +0 -13
- package/dist/personal-tokens/store.d.ts +0 -27
- package/dist/plugin-module.d.ts +0 -21
- package/dist/plugins.d.ts +0 -26
- package/dist/reporting-schema.d.ts +0 -194
- package/dist/reporting.d.ts +0 -12
- package/dist/spawn-5YR3E42B.js +0 -42
- package/dist/stats.d.ts +0 -18
- package/dist/task-runner-GR2WZNCW.js +0 -36
- package/dist/usage-schema.d.ts +0 -25
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { SandboxSession } from "@/chat/sandbox/workspace";
|
|
2
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
3
|
-
interface PrepareWorkspaceParams {
|
|
4
|
-
sandbox: SandboxSession;
|
|
5
|
-
workspace: Workspace;
|
|
6
|
-
signal?: AbortSignal;
|
|
7
|
-
applyNetworkPolicy(sandbox: SandboxSession): Promise<unknown>;
|
|
8
|
-
prepareRepositories?(sandbox: SandboxSession, workspace: Workspace, signal?: AbortSignal): Promise<void>;
|
|
9
|
-
removeCredentialRoute: boolean;
|
|
10
|
-
}
|
|
11
|
-
/** Prepare repositories before a Workspace setup script starts. */
|
|
12
|
-
export declare function prepareWorkspaceRepositories(params: PrepareWorkspaceParams): Promise<void>;
|
|
13
|
-
/** Build the command for one Workspace setup script. */
|
|
14
|
-
export declare function workspaceSetupCommand(workspace: Workspace): {
|
|
15
|
-
cmd: string;
|
|
16
|
-
args: string[];
|
|
17
|
-
cwd: string;
|
|
18
|
-
env: {
|
|
19
|
-
JUNIOR_REPOS_ROOT: string;
|
|
20
|
-
JUNIOR_WORKSPACE_ROOT: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
/** Build a restart-safe command for one Workspace snapshot setup script. */
|
|
24
|
-
export declare function workspaceSnapshotSetupCommand(workspace: Workspace, buildId: string): {
|
|
25
|
-
cmd: string;
|
|
26
|
-
args: string[];
|
|
27
|
-
cwd: string;
|
|
28
|
-
env: {
|
|
29
|
-
JUNIOR_REPOS_ROOT: string;
|
|
30
|
-
JUNIOR_WORKSPACE_ROOT: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
/** Prepare repositories and setup state before a Workspace snapshot is captured. */
|
|
34
|
-
export declare function prepareWorkspaceSnapshot(params: PrepareWorkspaceParams): Promise<void>;
|
|
35
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface SandboxResourceConfig {
|
|
2
|
-
vcpus?: number;
|
|
3
|
-
}
|
|
4
|
-
/** Return the app-level sandbox sizing override. */
|
|
5
|
-
export declare function getSandboxResourceConfig(): {
|
|
6
|
-
vcpus: number;
|
|
7
|
-
} | undefined;
|
|
8
|
-
/** Replace app-level sandbox sizing and return the previous setting. */
|
|
9
|
-
export declare function setSandboxResourceConfig(config?: SandboxResourceConfig): {
|
|
10
|
-
vcpus: number;
|
|
11
|
-
} | undefined;
|
|
12
|
-
/** Resolve app-level sandbox sizing, falling back to the legacy environment setting. */
|
|
13
|
-
export declare function getSandboxResources(): {
|
|
14
|
-
vcpus: number;
|
|
15
|
-
} | undefined;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type LogContext, type SetSpanAttributes } from "@/chat/logging";
|
|
2
|
-
import type { SandboxEgressSignalTransport } from "@/chat/sandbox/egress/signals";
|
|
3
|
-
import type { SandboxEgressTracePropagationConfig } from "@/chat/sandbox/egress/tracing";
|
|
4
|
-
import type { CredentialContext } from "@/chat/credentials/context";
|
|
5
|
-
import { type RepositoryInstructions } from "@/chat/repository-instructions";
|
|
6
|
-
import type { SandboxRef } from "@/chat/sandbox/ref";
|
|
7
|
-
import { type SandboxWorkspace } from "@/chat/sandbox/workspace";
|
|
8
|
-
import type { SkillMetadata } from "@/chat/skills";
|
|
9
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
10
|
-
export interface SandboxToolCall {
|
|
11
|
-
toolName: string;
|
|
12
|
-
input: unknown;
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
/** Add safe sandbox measurements to the caller-owned tool span. */
|
|
15
|
-
setToolCallSpanAttributes?: SetSpanAttributes;
|
|
16
|
-
}
|
|
17
|
-
export interface SandboxTools {
|
|
18
|
-
supports(toolName: string): boolean;
|
|
19
|
-
execute(params: SandboxToolCall): Promise<unknown>;
|
|
20
|
-
}
|
|
21
|
-
export interface SandboxAccess {
|
|
22
|
-
/** Resolve AGENTS.md instructions for each repository directory in the Workspace. */
|
|
23
|
-
captureRepositoryInstructions(): Promise<RepositoryInstructions | undefined>;
|
|
24
|
-
readonly tools: SandboxTools;
|
|
25
|
-
readonly workspace: SandboxWorkspace;
|
|
26
|
-
sandboxRef(): SandboxRef | undefined;
|
|
27
|
-
switchWorkspace(workspace: Workspace, signal?: AbortSignal): Promise<void>;
|
|
28
|
-
close(): void;
|
|
29
|
-
}
|
|
30
|
-
export interface SandboxOptions {
|
|
31
|
-
sandboxRef?: SandboxRef;
|
|
32
|
-
workspace?: Workspace;
|
|
33
|
-
skills: SkillMetadata[];
|
|
34
|
-
referenceFiles: string[];
|
|
35
|
-
timeoutMs?: number;
|
|
36
|
-
traceContext?: LogContext;
|
|
37
|
-
tracePropagation?: SandboxEgressTracePropagationConfig;
|
|
38
|
-
credentialEgress?: CredentialContext;
|
|
39
|
-
egressSignals?: SandboxEgressSignalTransport;
|
|
40
|
-
prepare?: (workspace: SandboxWorkspace) => void | Promise<void>;
|
|
41
|
-
prepareWorkspace?: (workspace: SandboxWorkspace, recipe: Workspace, signal?: AbortSignal) => Promise<void>;
|
|
42
|
-
onSandboxRefChanged?: (sandboxRef: SandboxRef) => void | Promise<void>;
|
|
43
|
-
}
|
|
44
|
-
/** Create lazy run-scoped access to a conversation's durable sandbox. */
|
|
45
|
-
export declare function createSandbox(options: SandboxOptions): SandboxAccess;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { type NetworkPolicy } from "@vercel/sandbox";
|
|
2
|
-
import { type LogContext, type TracePropagationHeaders } from "@/chat/logging";
|
|
3
|
-
import { type SandboxFileSystem, type SandboxSession } from "@/chat/sandbox/workspace";
|
|
4
|
-
import type { SkillMetadata } from "@/chat/skills";
|
|
5
|
-
import type { SandboxRef } from "@/chat/sandbox/ref";
|
|
6
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
7
|
-
interface SandboxToolExecutors {
|
|
8
|
-
sessionId: string;
|
|
9
|
-
bash: (input: {
|
|
10
|
-
command: string;
|
|
11
|
-
cwd?: string;
|
|
12
|
-
env?: Record<string, string>;
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
timeoutMs?: number;
|
|
15
|
-
}) => Promise<{
|
|
16
|
-
stdout: string;
|
|
17
|
-
stderr: string;
|
|
18
|
-
exitCode: number;
|
|
19
|
-
stdoutTruncated: boolean;
|
|
20
|
-
stderrTruncated: boolean;
|
|
21
|
-
aborted?: boolean;
|
|
22
|
-
timedOut?: boolean;
|
|
23
|
-
}>;
|
|
24
|
-
fs: SandboxFileSystem;
|
|
25
|
-
runCommand: SandboxSession["runCommand"];
|
|
26
|
-
}
|
|
27
|
-
interface SandboxRuntime {
|
|
28
|
-
sandboxRef(): SandboxRef | undefined;
|
|
29
|
-
switchWorkspace(workspace: Workspace, signal?: AbortSignal): Promise<void>;
|
|
30
|
-
acquire(signal?: AbortSignal): Promise<SandboxSession>;
|
|
31
|
-
tools(signal?: AbortSignal): Promise<SandboxToolExecutors>;
|
|
32
|
-
refreshNetworkPolicy(traceHeaders?: TracePropagationHeaders): Promise<void>;
|
|
33
|
-
close(): void;
|
|
34
|
-
}
|
|
35
|
-
interface SandboxRuntimeOptions {
|
|
36
|
-
sandboxRef?: SandboxRef;
|
|
37
|
-
workspace?: Workspace;
|
|
38
|
-
skills: SkillMetadata[];
|
|
39
|
-
referenceFiles: string[];
|
|
40
|
-
timeoutMs?: number;
|
|
41
|
-
traceContext?: LogContext;
|
|
42
|
-
commandEnv?: () => Promise<Record<string, string>>;
|
|
43
|
-
createNetworkPolicy?: (egressId: string, traceHeaders?: TracePropagationHeaders) => NetworkPolicy | undefined;
|
|
44
|
-
onSandboxPrepare?: (sandbox: SandboxSession) => void | Promise<void>;
|
|
45
|
-
onWorkspacePrepare?: (sandbox: SandboxSession, workspace: Workspace, signal?: AbortSignal) => Promise<void>;
|
|
46
|
-
onSandboxRefChanged?: (sandboxRef: SandboxRef) => void | Promise<void>;
|
|
47
|
-
}
|
|
48
|
-
/** Own sandbox acquisition, preparation, and session-scoped tool caching. */
|
|
49
|
-
export declare function createSandboxRuntime(options: SandboxRuntimeOptions): SandboxRuntime;
|
|
50
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type Skill, type SkillMetadata } from "@/chat/skills";
|
|
2
|
-
export interface SkillSandboxFileEntry {
|
|
3
|
-
path: string;
|
|
4
|
-
type: "file" | "directory";
|
|
5
|
-
}
|
|
6
|
-
export interface SkillSandboxListFilesResult {
|
|
7
|
-
skillName: string;
|
|
8
|
-
directory: string;
|
|
9
|
-
entries: SkillSandboxFileEntry[];
|
|
10
|
-
truncated: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface SkillSandboxReadFileResult {
|
|
13
|
-
skillName: string;
|
|
14
|
-
path: string;
|
|
15
|
-
content: string;
|
|
16
|
-
truncated: boolean;
|
|
17
|
-
}
|
|
18
|
-
/** Sandboxed file access scoped to the active skill's directory — prevents path traversal. */
|
|
19
|
-
export declare class SkillSandbox {
|
|
20
|
-
private readonly availableSkills;
|
|
21
|
-
private readonly availableByName;
|
|
22
|
-
private readonly loadedSkills;
|
|
23
|
-
private activeSkillName;
|
|
24
|
-
constructor(availableSkills: SkillMetadata[], preloadedSkills?: Skill[]);
|
|
25
|
-
getAvailableSkills(): SkillMetadata[];
|
|
26
|
-
getLoadedSkillNames(): string[];
|
|
27
|
-
getActiveSkill(): Skill | null;
|
|
28
|
-
loadSkill(skillName: string): Promise<Skill | null>;
|
|
29
|
-
filterToolNames(toolNames: string[]): string[] | null;
|
|
30
|
-
listFiles(params: {
|
|
31
|
-
skillName?: string;
|
|
32
|
-
directory?: string;
|
|
33
|
-
recursive?: boolean;
|
|
34
|
-
maxEntries?: number;
|
|
35
|
-
}): Promise<SkillSandboxListFilesResult>;
|
|
36
|
-
readFile(params: {
|
|
37
|
-
skillName?: string;
|
|
38
|
-
filePath: string;
|
|
39
|
-
maxChars?: number;
|
|
40
|
-
}): Promise<SkillSandboxReadFileResult>;
|
|
41
|
-
private requireSkill;
|
|
42
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SandboxSession } from "@/chat/sandbox/workspace";
|
|
2
|
-
import type { SkillMetadata } from "@/chat/skills";
|
|
3
|
-
/** Resolve a virtual sandbox skill path back to the host filesystem when no sandbox exists yet. */
|
|
4
|
-
export declare function resolveHostSkillPath(availableSkills: SkillMetadata[], sandboxPath: string): string | null;
|
|
5
|
-
/** Resolve a virtual sandbox data path back to the host filesystem when no sandbox exists yet. */
|
|
6
|
-
export declare function resolveHostDataPath(referenceFiles: string[], sandboxPath: string): string | null;
|
|
7
|
-
/** Detect missing host-backed skill files so reads can fall back to the sandbox copy. */
|
|
8
|
-
export declare function isHostFileMissingError(error: unknown): boolean;
|
|
9
|
-
/** Copy the current skill set and reference files into a sandbox. */
|
|
10
|
-
export declare function syncSkillsToSandbox(params: {
|
|
11
|
-
sandbox: Pick<SandboxSession, "mkDir" | "writeFiles">;
|
|
12
|
-
skills: SkillMetadata[];
|
|
13
|
-
referenceFiles?: string[];
|
|
14
|
-
withSpan: <T>(name: string, op: string, attributes: Record<string, unknown>, callback: () => Promise<T>) => Promise<T>;
|
|
15
|
-
workspaceRoot?: string;
|
|
16
|
-
}): Promise<void>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Sandbox } from "@vercel/sandbox";
|
|
2
|
-
/** Resume the named Sandbox that owns one Workspace snapshot build. */
|
|
3
|
-
export declare function getWorkspaceSnapshotBuilder(name: string, signal?: AbortSignal): Promise<Sandbox>;
|
|
4
|
-
/** Permanently delete named Workspace snapshot builders without resuming them. */
|
|
5
|
-
export declare function deleteWorkspaceSnapshotBuilders(names: Iterable<string>): Promise<void>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { PluginResourceEvents, ResourceEvent, SubscribableResource } from "@sentry/junior-plugin-api";
|
|
2
|
-
export declare const WORKSPACE_SNAPSHOT_NAMESPACE = "junior";
|
|
3
|
-
export declare const WORKSPACE_SNAPSHOT_RESOURCE_TYPE = "workspace_snapshot";
|
|
4
|
-
export declare const WORKSPACE_SNAPSHOT_READY_EVENT = "workspace_snapshot.ready";
|
|
5
|
-
export declare const WORKSPACE_SNAPSHOT_FAILED_EVENT = "workspace_snapshot.failed";
|
|
6
|
-
/**
|
|
7
|
-
* Core catalog entry for Workspace snapshot ready and failed events.
|
|
8
|
-
*
|
|
9
|
-
* Uses the same registration shape as plugins so search, guidance, and tool
|
|
10
|
-
* schemas treat these events like any other resource type.
|
|
11
|
-
*/
|
|
12
|
-
export declare function workspaceSnapshotResourceEvents(): PluginResourceEvents;
|
|
13
|
-
/** Describe the events that report when a snapshot build ends. */
|
|
14
|
-
export declare function workspaceSnapshotWatch(input: {
|
|
15
|
-
workspaceId: string;
|
|
16
|
-
workspaceName: string;
|
|
17
|
-
}): SubscribableResource;
|
|
18
|
-
type WorkspaceSnapshotResult = {
|
|
19
|
-
workspaceId: string;
|
|
20
|
-
resultId: string;
|
|
21
|
-
occurredAtMs?: number;
|
|
22
|
-
} & ({
|
|
23
|
-
status: "ready";
|
|
24
|
-
} | {
|
|
25
|
-
status: "failed";
|
|
26
|
-
error?: string | null;
|
|
27
|
-
});
|
|
28
|
-
/** Report that a Workspace snapshot build is ready or failed. */
|
|
29
|
-
export declare function workspaceSnapshotFinishedEvent(input: WorkspaceSnapshotResult): ResourceEvent;
|
|
30
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PluginRuntimeDependency, PluginRuntimePostinstallCommand } from "@/chat/plugins/types";
|
|
2
|
-
import type { SandboxSession } from "@/chat/sandbox/workspace";
|
|
3
|
-
/** Install declared system and npm dependencies into a snapshot sandbox. */
|
|
4
|
-
export declare function dependencies(sandbox: SandboxSession, values: PluginRuntimeDependency[], signal?: AbortSignal, timeoutMs?: number): Promise<void>;
|
|
5
|
-
/** Run declared postinstall commands after dependency binaries are available. */
|
|
6
|
-
export declare function postinstall(sandbox: SandboxSession, commands: PluginRuntimePostinstallCommand[], signal?: AbortSignal, timeoutMs?: number): Promise<void>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const WORKSPACE_SNAPSHOT_JOB_DEV_CONSUMER_GROUP = "junior_workspace_snapshots_dev";
|
|
2
|
-
/** Create the HTTP route for snapshot build messages. */
|
|
3
|
-
export declare function createVercelWorkspaceSnapshotJobCallback(): (request: Request) => Promise<Response>;
|
|
4
|
-
/** Receive snapshot build messages during local development. */
|
|
5
|
-
export declare function registerVercelWorkspaceSnapshotJobDevConsumer(): (() => void) | undefined;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC = "junior_workspace_snapshots";
|
|
3
|
-
declare const workspaceSnapshotJobMessageSchema: z.ZodObject<{
|
|
4
|
-
workspaceId: z.ZodString;
|
|
5
|
-
profileHash: z.ZodString;
|
|
6
|
-
}, z.core.$strict>;
|
|
7
|
-
export type WorkspaceSnapshotJobMessage = z.output<typeof workspaceSnapshotJobMessageSchema>;
|
|
8
|
-
/** Sign a Workspace snapshot job for tests and local checks. */
|
|
9
|
-
export declare function signWorkspaceSnapshotJobMessage(message: WorkspaceSnapshotJobMessage, nowMs?: number): {
|
|
10
|
-
workspaceId: string;
|
|
11
|
-
profileHash: string;
|
|
12
|
-
} & {
|
|
13
|
-
signature: string;
|
|
14
|
-
signatureVersion: "v1";
|
|
15
|
-
signedAtMs: number;
|
|
16
|
-
};
|
|
17
|
-
/** Check that a recent queue message came from Junior. */
|
|
18
|
-
export declare function verifyWorkspaceSnapshotJobMessage(value: unknown, nowMs?: number): import("@/chat/queue/sign").QueueVerifyResult<{
|
|
19
|
-
workspaceId: string;
|
|
20
|
-
profileHash: string;
|
|
21
|
-
}>;
|
|
22
|
-
/** Send a job unless the same Workspace build already has one. */
|
|
23
|
-
export declare function sendWorkspaceSnapshotJob(message: WorkspaceSnapshotJobMessage): Promise<void>;
|
|
24
|
-
/** Send the next job for a Workspace build that is still running. */
|
|
25
|
-
export declare function sendNextWorkspaceSnapshotJob(message: WorkspaceSnapshotJobMessage): Promise<void>;
|
|
26
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
2
|
-
import { type WorkspaceSnapshotJobMessage } from "./job-queue";
|
|
3
|
-
/** Run a snapshot build and send another job if it needs more time. */
|
|
4
|
-
export declare function processWorkspaceSnapshotJob(message: WorkspaceSnapshotJobMessage, options?: {
|
|
5
|
-
signal?: AbortSignal;
|
|
6
|
-
}): Promise<void>;
|
|
7
|
-
/** Start a snapshot build when no ready snapshot exists. */
|
|
8
|
-
export declare function ensureWorkspaceSnapshotBuild(input: {
|
|
9
|
-
workspace: Workspace;
|
|
10
|
-
sendAgain?: boolean;
|
|
11
|
-
}): Promise<"ready" | "building">;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Report that a Workspace snapshot is not ready to use. */
|
|
2
|
-
export declare class WorkspaceSnapshotNotReadyError extends Error {
|
|
3
|
-
readonly workspaceName: string;
|
|
4
|
-
constructor(workspaceName: string);
|
|
5
|
-
}
|
|
6
|
-
/** Return WorkspaceSnapshotNotReadyError from this error or its causes. */
|
|
7
|
-
export declare function getWorkspaceSnapshotNotReadyError(error: unknown): WorkspaceSnapshotNotReadyError | undefined;
|
|
8
|
-
/** True when this error or a cause is WorkspaceSnapshotNotReadyError. */
|
|
9
|
-
export declare function isWorkspaceSnapshotNotReadyError(error: unknown): boolean;
|
|
10
|
-
/** User message when a Workspace sandbox is still preparing. */
|
|
11
|
-
export declare function workspaceSnapshotNotReadyUserMessage(error: WorkspaceSnapshotNotReadyError): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
2
|
-
import type { PluginRuntimeDependency, PluginRuntimePostinstallCommand } from "@/chat/plugins/types";
|
|
3
|
-
export type Profile = {
|
|
4
|
-
hash: string;
|
|
5
|
-
dependencyCount: number;
|
|
6
|
-
floating: boolean;
|
|
7
|
-
dependencies: PluginRuntimeDependency[];
|
|
8
|
-
postinstall: PluginRuntimePostinstallCommand[];
|
|
9
|
-
};
|
|
10
|
-
/** Build the complete profile that selects one reusable sandbox snapshot. */
|
|
11
|
-
export declare function create(runtime: string, workspace?: Workspace): Profile | null;
|
|
12
|
-
/** Return the current dependency profile hash without building its snapshot. */
|
|
13
|
-
export declare function hash(runtime: string, workspace?: Workspace): string | undefined;
|
|
14
|
-
/** Decide whether a cached snapshot has outlived a floating profile. */
|
|
15
|
-
export declare function isStale(profile: Profile, createdAtMs: number): boolean;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type SandboxSession } from "@/chat/sandbox/workspace";
|
|
3
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
4
|
-
declare const cachedSnapshotSchema: z.ZodObject<{
|
|
5
|
-
profileHash: z.ZodString;
|
|
6
|
-
snapshotId: z.ZodString;
|
|
7
|
-
runtime: z.ZodString;
|
|
8
|
-
createdAtMs: z.ZodNumber;
|
|
9
|
-
dependencyCount: z.ZodNumber;
|
|
10
|
-
buildDurationMs: z.ZodNumber;
|
|
11
|
-
}, z.core.$strict>;
|
|
12
|
-
type CachedSnapshot = z.output<typeof cachedSnapshotSchema>;
|
|
13
|
-
export type ResolveOutcome = "no_profile" | "cache_hit" | "cache_hit_after_lock_wait" | "rebuilt" | "forced_rebuild";
|
|
14
|
-
export type RebuildReason = "cache_miss" | "floating_stale" | "force_rebuild" | "snapshot_missing";
|
|
15
|
-
/** Result of resolving the reusable snapshot for one dependency profile. */
|
|
16
|
-
export interface Snapshot {
|
|
17
|
-
snapshotId?: string;
|
|
18
|
-
profileHash?: string;
|
|
19
|
-
dependencyCount: number;
|
|
20
|
-
cacheHit: boolean;
|
|
21
|
-
resolveOutcome: ResolveOutcome;
|
|
22
|
-
rebuildReason?: RebuildReason;
|
|
23
|
-
/** Present when the Redis registry has a concrete snapshot entry. */
|
|
24
|
-
createdAtMs?: number;
|
|
25
|
-
buildDurationMs?: number;
|
|
26
|
-
}
|
|
27
|
-
export type ProgressPhase = "resolve_start" | "cache_hit" | "waiting_for_lock" | "building_snapshot" | "build_complete";
|
|
28
|
-
/** Read one cached snapshot pointer; only a missing key is a cache miss. */
|
|
29
|
-
export declare function getCachedSnapshot(profileHash: string): Promise<CachedSnapshot | null>;
|
|
30
|
-
/** Resolve or build the reusable snapshot for the current dependency profile. */
|
|
31
|
-
export declare function resolve(params: {
|
|
32
|
-
runtime: string;
|
|
33
|
-
timeoutMs: number;
|
|
34
|
-
forceRebuild?: boolean;
|
|
35
|
-
staleSnapshotId?: string;
|
|
36
|
-
onProgress?: (phase: ProgressPhase) => void | Promise<void>;
|
|
37
|
-
signal?: AbortSignal;
|
|
38
|
-
workspace?: Workspace;
|
|
39
|
-
prepareWorkspace?: (sandbox: SandboxSession) => Promise<void>;
|
|
40
|
-
}): Promise<Snapshot>;
|
|
41
|
-
/** Identify provider errors that mean a referenced snapshot no longer exists. */
|
|
42
|
-
export declare function isMissingError(error: unknown): boolean;
|
|
43
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Snapshot } from "@/chat/sandbox/snapshot/resolve";
|
|
2
|
-
/** Record the reusable snapshot selected for a new Sandbox. */
|
|
3
|
-
export declare function setSnapshotSpanAttributes(snapshot: Snapshot): void;
|
|
4
|
-
/** Record one stage of dependency snapshot resolution or creation. */
|
|
5
|
-
export declare function trace<T>(name: string, op: string, attributes: Record<string, unknown>, callback: () => Promise<T>): Promise<T>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { JuniorDatabase } from "@/db/db";
|
|
2
|
-
import type { Workspace, WorkspaceSnapshot, WorkspaceSnapshotBuild } from "@/chat/workspaces/types";
|
|
3
|
-
/** Current ready artifact and build state for one Workspace profile. */
|
|
4
|
-
export interface WorkspaceSnapshots {
|
|
5
|
-
ready: WorkspaceSnapshot | null;
|
|
6
|
-
build: WorkspaceSnapshotBuild | null;
|
|
7
|
-
}
|
|
8
|
-
/** Result of replacing the ready snapshot for one Workspace profile. */
|
|
9
|
-
export interface WorkspaceSnapshotWriteResult {
|
|
10
|
-
written: boolean;
|
|
11
|
-
replacedBuilderNames: string[];
|
|
12
|
-
}
|
|
13
|
-
/** Load bounded ready and build views for one Workspace profile hash. */
|
|
14
|
-
export declare function loadSnapshotsForProfile(db: JuniorDatabase, workspaceId: string, profileHash: string): Promise<WorkspaceSnapshots>;
|
|
15
|
-
/** Drop every snapshot row before its Workspace is deleted. */
|
|
16
|
-
export declare function clearWorkspaceSnapshots(db: JuniorDatabase, workspaceId: string): Promise<string[]>;
|
|
17
|
-
/** Drop one ready snapshot and return the name of its provider owner. */
|
|
18
|
-
export declare function invalidateReadySnapshot(params: {
|
|
19
|
-
workspaceId: string;
|
|
20
|
-
profileHash: string;
|
|
21
|
-
snapshotId: string;
|
|
22
|
-
}): Promise<string | null>;
|
|
23
|
-
/** Complete one owned build and report provider owners that it replaced. */
|
|
24
|
-
export declare function setWorkspaceSnapshot(workspaceId: string, snapshot: WorkspaceSnapshot, options: {
|
|
25
|
-
buildId: string;
|
|
26
|
-
}): Promise<WorkspaceSnapshotWriteResult>;
|
|
27
|
-
/** Update an owned build row. Initial creation locks and verifies its Workspace. */
|
|
28
|
-
export declare function setWorkspaceSnapshotBuild(workspaceId: string, build: WorkspaceSnapshotBuild, options?: {
|
|
29
|
-
insertIfMissing?: boolean;
|
|
30
|
-
expectedRecipe?: Pick<Workspace, "setupScript" | "repos">;
|
|
31
|
-
}): Promise<boolean>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Snapshot } from "@/chat/sandbox/snapshot/resolve";
|
|
2
|
-
import { type SandboxSession } from "@/chat/sandbox/workspace";
|
|
3
|
-
import type { Workspace } from "@/chat/workspaces/types";
|
|
4
|
-
/** Return the ready snapshot or report that the Workspace must build one. */
|
|
5
|
-
export declare function requireReadyWorkspaceSnapshot(params: {
|
|
6
|
-
workspace: Workspace;
|
|
7
|
-
runtime: string;
|
|
8
|
-
staleSnapshotId?: string;
|
|
9
|
-
}): Promise<Snapshot>;
|
|
10
|
-
/**
|
|
11
|
-
* Continue a Workspace snapshot build from its saved state.
|
|
12
|
-
* The full build can run for up to one hour.
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveWorkspaceSnapshot(params: {
|
|
15
|
-
workspace: Workspace;
|
|
16
|
-
runtime: string;
|
|
17
|
-
staleSnapshotId?: string;
|
|
18
|
-
signal?: AbortSignal;
|
|
19
|
-
shouldStop?: () => boolean;
|
|
20
|
-
applyNetworkPolicy(sandbox: SandboxSession): Promise<unknown>;
|
|
21
|
-
prepareRepositories?(sandbox: SandboxSession, workspace: Workspace, signal?: AbortSignal): Promise<void>;
|
|
22
|
-
removeCredentialRoute: boolean;
|
|
23
|
-
}): Promise<Snapshot>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { type NetworkPolicy, type Sandbox as VercelSandbox } from "@vercel/sandbox";
|
|
2
|
-
export interface SandboxCommandResult {
|
|
3
|
-
exitCode: number;
|
|
4
|
-
stderr: string;
|
|
5
|
-
stdout: string;
|
|
6
|
-
}
|
|
7
|
-
export interface SandboxCommandInput {
|
|
8
|
-
args?: string[];
|
|
9
|
-
cmd: string;
|
|
10
|
-
cwd?: string;
|
|
11
|
-
env?: Record<string, string>;
|
|
12
|
-
signal?: AbortSignal;
|
|
13
|
-
sudo?: boolean;
|
|
14
|
-
timeoutMs?: number;
|
|
15
|
-
}
|
|
16
|
-
export interface SandboxFileStat {
|
|
17
|
-
isDirectory(): boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface SandboxFileSystem {
|
|
20
|
-
readFile(filePath: string, options: {
|
|
21
|
-
encoding: BufferEncoding;
|
|
22
|
-
signal?: AbortSignal;
|
|
23
|
-
}): Promise<string>;
|
|
24
|
-
writeFile(filePath: string, content: string, options?: {
|
|
25
|
-
encoding?: BufferEncoding;
|
|
26
|
-
signal?: AbortSignal;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
readdir(filePath: string, options?: {
|
|
29
|
-
signal?: AbortSignal;
|
|
30
|
-
}): Promise<string[]>;
|
|
31
|
-
stat(filePath: string, options?: {
|
|
32
|
-
signal?: AbortSignal;
|
|
33
|
-
}): Promise<SandboxFileStat>;
|
|
34
|
-
}
|
|
35
|
-
/** Bind one tool call's cancellation to every sandbox filesystem operation. */
|
|
36
|
-
export declare function bindSandboxFileSystem(fs: SandboxFileSystem, signal?: AbortSignal): SandboxFileSystem;
|
|
37
|
-
export interface SandboxWorkspace {
|
|
38
|
-
readFileToBuffer(input: {
|
|
39
|
-
cwd?: string;
|
|
40
|
-
path: string;
|
|
41
|
-
}): Promise<Buffer | null | undefined>;
|
|
42
|
-
runCommand(input: SandboxCommandInput): Promise<SandboxCommandResult>;
|
|
43
|
-
writeFiles(files: Array<{
|
|
44
|
-
content: string | Uint8Array;
|
|
45
|
-
mode?: number;
|
|
46
|
-
path: string;
|
|
47
|
-
}>): Promise<void>;
|
|
48
|
-
}
|
|
49
|
-
export interface SandboxSession extends SandboxWorkspace {
|
|
50
|
-
readonly sandboxId: string;
|
|
51
|
-
readonly sessionId: string;
|
|
52
|
-
readonly fs: SandboxFileSystem;
|
|
53
|
-
extendTimeout(duration: number): Promise<void>;
|
|
54
|
-
mkDir(path: string): Promise<void>;
|
|
55
|
-
snapshot(options?: {
|
|
56
|
-
signal?: AbortSignal;
|
|
57
|
-
}): Promise<{
|
|
58
|
-
snapshotId: string;
|
|
59
|
-
}>;
|
|
60
|
-
stop(): Promise<unknown>;
|
|
61
|
-
update(params: {
|
|
62
|
-
networkPolicy?: NetworkPolicy;
|
|
63
|
-
}): Promise<void>;
|
|
64
|
-
}
|
|
65
|
-
/** Pin Junior's sandbox contract to one Vercel session without SDK replay. */
|
|
66
|
-
export declare function createSandboxSession(sandbox: VercelSandbox, options?: {
|
|
67
|
-
onUnavailable?: (sessionId: string) => void;
|
|
68
|
-
}): SandboxSession;
|
|
69
|
-
/** Best-effort stop; ignore secondary stop failures during cleanup. */
|
|
70
|
-
export declare function stopSession(session: {
|
|
71
|
-
stop: () => Promise<unknown>;
|
|
72
|
-
} | null | undefined): Promise<void>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** Calendar arithmetic for core-owned scheduled tasks. */
|
|
2
|
-
import type { ScheduledLocalTime, ScheduledTask, ScheduledTaskRecurrence } from "./types";
|
|
3
|
-
export interface ZonedDateTimeParts {
|
|
4
|
-
day: number;
|
|
5
|
-
hour: number;
|
|
6
|
-
minute: number;
|
|
7
|
-
month: number;
|
|
8
|
-
second: number;
|
|
9
|
-
weekday: number;
|
|
10
|
-
year: number;
|
|
11
|
-
}
|
|
12
|
-
/** Resolve a UTC timestamp into calendar parts for a named time zone. */
|
|
13
|
-
export declare function getZonedDateTimeParts(timestampMs: number, timezone: string): ZonedDateTimeParts;
|
|
14
|
-
/** Resolve local time, rejecting DST gaps and choosing the earlier instant in a fold. */
|
|
15
|
-
export declare function resolveLocalScheduleAtMs(args: {
|
|
16
|
-
date: string;
|
|
17
|
-
time: ScheduledLocalTime;
|
|
18
|
-
timezone: string;
|
|
19
|
-
}): number | undefined;
|
|
20
|
-
/** Compute the first recurring calendar occurrence strictly after a timestamp. */
|
|
21
|
-
export declare function getFirstRunAtMs(args: {
|
|
22
|
-
afterMs: number;
|
|
23
|
-
recurrence: ScheduledTaskRecurrence;
|
|
24
|
-
timezone: string;
|
|
25
|
-
}): number | undefined;
|
|
26
|
-
/** Return the next fire time after a completed run, when the task recurs. */
|
|
27
|
-
export declare function getNextRunAtMs(task: ScheduledTask, scheduledForMs: number, afterMs?: number): number | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
2
|
-
/** Reconcile completed dispatches and enqueue a bounded batch of due tasks. */
|
|
3
|
-
export declare function runScheduledTaskHeartbeat(args: {
|
|
4
|
-
conversationWorkQueue: ConversationWorkQueue;
|
|
5
|
-
nowMs: number;
|
|
6
|
-
}): Promise<number>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Presentation helpers for persisted scheduled-task creators. */
|
|
2
|
-
import type { ScheduledTaskPrincipal } from "./types";
|
|
3
|
-
/** Keep scheduler creator metadata from promoting Slack IDs into display names. */
|
|
4
|
-
export declare function sanitizeScheduledTaskPrincipal(principal: ScheduledTaskPrincipal): ScheduledTaskPrincipal;
|
|
5
|
-
/** Render scheduler creator metadata without inventing human profile fields. */
|
|
6
|
-
export declare function scheduledTaskPrincipalLabel(principal: ScheduledTaskPrincipal): string;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** Viewer-scoped scheduled-task queries and mutations. */
|
|
2
|
-
import type { User } from "@sentry/junior-plugin-api";
|
|
3
|
-
import type { JuniorDatabase } from "@/db/db";
|
|
4
|
-
import type { ScheduledTask } from "./types";
|
|
5
|
-
export interface ViewerScheduledTaskPage {
|
|
6
|
-
nextCursor?: string;
|
|
7
|
-
tasks: ScheduledTask[];
|
|
8
|
-
}
|
|
9
|
-
export interface ViewerScheduledTaskPageInput {
|
|
10
|
-
cursor?: string;
|
|
11
|
-
limit: number;
|
|
12
|
-
query?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class InvalidScheduledTaskCursorError extends Error {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
|
-
export declare class PersonalScheduledTaskNotFoundError extends Error {
|
|
18
|
-
constructor();
|
|
19
|
-
}
|
|
20
|
-
/** Delete one scheduled task created by the viewer. */
|
|
21
|
-
export declare function deleteViewerScheduledTask(db: JuniorDatabase, user: User, id: string, nowMs?: number): Promise<void>;
|
|
22
|
-
/** List scheduled tasks created by the viewer with a stable SQL cursor. */
|
|
23
|
-
export declare function listViewerScheduledTasks(db: JuniorDatabase, user: User, input: ViewerScheduledTaskPageInput): Promise<ViewerScheduledTaskPage>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { JuniorDatabase } from "@/db/db";
|
|
2
|
-
import { type ScheduledRun } from "./types";
|
|
3
|
-
/** List incomplete runs for retained scheduled tasks. */
|
|
4
|
-
export declare function listIncompleteScheduledRuns(db: JuniorDatabase): Promise<ScheduledRun[]>;
|
|
5
|
-
/** Claim one due scheduler run under the deployed global claim lock. */
|
|
6
|
-
export declare function claimDueScheduledRun(db: JuniorDatabase, args: {
|
|
7
|
-
nowMs: number;
|
|
8
|
-
}): Promise<ScheduledRun | undefined>;
|
|
9
|
-
/** Mark a pending run dispatched only for the active claim. */
|
|
10
|
-
export declare function markScheduledRunDispatched(db: JuniorDatabase, args: {
|
|
11
|
-
claimedAtMs: number;
|
|
12
|
-
dispatchId: string;
|
|
13
|
-
nowMs: number;
|
|
14
|
-
runId: string;
|
|
15
|
-
}): Promise<ScheduledRun | undefined>;
|
|
16
|
-
/** Complete a run only for its active start timestamp. */
|
|
17
|
-
export declare function markScheduledRunCompleted(db: JuniorDatabase, args: {
|
|
18
|
-
completedAtMs: number;
|
|
19
|
-
resultMessageTs?: string;
|
|
20
|
-
runId: string;
|
|
21
|
-
startedAtMs: number;
|
|
22
|
-
}): Promise<ScheduledRun | undefined>;
|
|
23
|
-
/** Fail a claimed or running run only for its active transition guard. */
|
|
24
|
-
export declare function markScheduledRunFailed(db: JuniorDatabase, args: {
|
|
25
|
-
completedAtMs: number;
|
|
26
|
-
errorMessage: string;
|
|
27
|
-
startedAtMs?: number;
|
|
28
|
-
runId: string;
|
|
29
|
-
}): Promise<ScheduledRun | undefined>;
|
|
30
|
-
/** Block a claimed or running run only for its active transition guard. */
|
|
31
|
-
export declare function markScheduledRunBlocked(db: JuniorDatabase, args: {
|
|
32
|
-
completedAtMs: number;
|
|
33
|
-
errorMessage: string;
|
|
34
|
-
runId: string;
|
|
35
|
-
startedAtMs?: number;
|
|
36
|
-
}): Promise<ScheduledRun | undefined>;
|
|
37
|
-
/** Skip a pending run only before dispatch begins. */
|
|
38
|
-
export declare function markScheduledRunSkipped(db: JuniorDatabase, args: {
|
|
39
|
-
completedAtMs: number;
|
|
40
|
-
errorMessage: string;
|
|
41
|
-
runId: string;
|
|
42
|
-
}): Promise<ScheduledRun | undefined>;
|
|
43
|
-
/** Advance a scheduled task after a terminal run under its task lock. */
|
|
44
|
-
export declare function advanceScheduledTaskAfterRun(db: JuniorDatabase, args: {
|
|
45
|
-
errorMessage?: string;
|
|
46
|
-
nowMs: number;
|
|
47
|
-
run: ScheduledRun;
|
|
48
|
-
status: "blocked" | "completed" | "failed";
|
|
49
|
-
}): Promise<void>;
|