@sentry/junior 0.198.0 → 0.200.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-6LGY2MBH.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-CIO3ERVQ.js} +4 -4
- package/dist/{chunk-X2WFY3TM.js → chunk-22Y5SBDM.js} +8 -8
- package/dist/{chunk-KVXHBJCH.js → chunk-3WUBDFFL.js} +1 -1
- package/dist/{chunk-N6LJYW7V.js → chunk-4Q5IR5GA.js} +1 -1
- package/dist/{chunk-342FVAX5.js → chunk-5JDNDQHL.js} +1 -1
- package/dist/{chunk-7KXZRRMK.js → chunk-5Q6KP6LH.js} +1 -1
- package/dist/{chunk-3J5Y4RWY.js → chunk-5VRPXF4T.js} +1 -1
- package/dist/{chunk-N3GQY63R.js → chunk-752M26LC.js} +1 -1
- package/dist/{chunk-3TMKXW4H.js → chunk-7DO36XLF.js} +1 -1
- package/dist/{chunk-ZORFTPFN.js → chunk-ADNSL3MX.js} +28 -28
- package/dist/{chunk-EWPTEQXA.js → chunk-AV552V2K.js} +3 -3
- package/dist/{chunk-IZ4CIFJY.js → chunk-EOOWKTQC.js} +9 -9
- package/dist/{chunk-EATO3SKS.js → chunk-GFXDMDHR.js} +3 -3
- package/dist/{chunk-QYSJWJLJ.js → chunk-IAZBUDVU.js} +4 -4
- package/dist/{chunk-U67DBSNZ.js → chunk-JLUCKXGI.js} +7 -6
- package/dist/{chunk-SPEJV3TW.js → chunk-JMRHEW6B.js} +3 -3
- package/dist/{chunk-2ACXVY6O.js → chunk-K2QYWZ7F.js} +1 -1
- package/dist/{chunk-CSGQWJIY.js → chunk-LICM66W2.js} +2 -2
- package/dist/{chunk-CGNZXN7B.js → chunk-LUITHZZL.js} +8 -8
- package/dist/{chunk-VYGZPJSM.js → chunk-M7BHRB3G.js} +4 -4
- package/dist/{chunk-LBN67OZR.js → chunk-MTM5IFCY.js} +1 -0
- package/dist/{chunk-4UW7BEJZ.js → chunk-N5VHBUXF.js} +7 -7
- package/dist/{chunk-F3XUS2T5.js → chunk-ODSGDVHT.js} +5 -5
- package/dist/{chunk-ZUEUBQWE.js → chunk-OIILBD56.js} +3 -3
- package/dist/{chunk-XNZAZ57D.js → chunk-OTTKTTVI.js} +2 -2
- package/dist/{chunk-BFIFTKUS.js → chunk-OVHO76WN.js} +3 -3
- package/dist/{chunk-CZC6ZEXR.js → chunk-PIHLVU7T.js} +6 -6
- package/dist/{chunk-T5KV6DUY.js → chunk-PMSENMWY.js} +1 -1
- package/dist/{chunk-G6XSYS3Q.js → chunk-PSQ4SWI3.js} +4 -4
- package/dist/{chunk-FU4OWKCL.js → chunk-RDWWCDA4.js} +2 -2
- package/dist/{chunk-NVDUM2CM.js → chunk-RG74Q34N.js} +1 -1
- package/dist/{chunk-4FHQ6CCO.js → chunk-SY2RQ77O.js} +1 -1
- package/dist/{chunk-D3SLBCD4.js → chunk-T6263C3N.js} +2 -2
- package/dist/{chunk-CBHQOGFA.js → chunk-TF5TXGRD.js} +1 -1
- package/dist/{chunk-A6KKPVEA.js → chunk-UR43NMUR.js} +4 -4
- package/dist/{chunk-C3SNQB6B.js → chunk-V2VL335Y.js} +21 -21
- package/dist/{chunk-OKQMTCHU.js → chunk-VLBLCJXK.js} +5 -5
- package/dist/{chunk-SCVIT6K4.js → chunk-X2Q4H6JQ.js} +25 -24
- package/dist/{chunk-LXPGGSYD.js → chunk-YVP6QNBZ.js} +3 -3
- package/dist/{chunk-G2CT2D5U.js → chunk-ZPLAAHVP.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-SCTYCGQ5.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-QXKBXP5M.js} +29 -29
- package/dist/{runner-3GKIVG6A.js → runner-Z3EQSZ23.js} +21 -21
- package/dist/{skills-FKMV7HTX.js → skills-CGEPG74A.js} +5 -5
- package/dist/spawn-WBEM46BW.js +42 -0
- package/dist/task-runner-2X5MUSHN.js +36 -0
- package/dist/{validation-4XYG33GY.js → validation-YLALMVMB.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-N6PUG4MY.js} +21 -21
- package/dist/{worker-3OYUEME2.js → worker-M7464FAO.js} +10 -10
- package/package.json +6 -6
- 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,55 +0,0 @@
|
|
|
1
|
-
import type { PiMessage } from "@/chat/pi/messages";
|
|
2
|
-
import type { SandboxFileSystem } from "@/chat/sandbox/workspace";
|
|
3
|
-
export declare const AGENTS_REPLACEMENT_NOTICE = "These AGENTS.md instructions replace all previously provided AGENTS.md instructions.";
|
|
4
|
-
export declare const AGENTS_REMOVAL_NOTICE = "The previously provided AGENTS.md instructions no longer apply.";
|
|
5
|
-
/** Effective AGENTS.md instructions plus host-only discovery provenance. */
|
|
6
|
-
export interface RepositoryInstructions {
|
|
7
|
-
/** Selected directory when instructions come from one repository tree. */
|
|
8
|
-
directory?: string;
|
|
9
|
-
fingerprint: string;
|
|
10
|
-
sources: Array<{
|
|
11
|
-
content: string;
|
|
12
|
-
path: string;
|
|
13
|
-
}>;
|
|
14
|
-
text: string;
|
|
15
|
-
}
|
|
16
|
-
/** Latest model-visible AGENTS.md state parsed from trusted runtime context. */
|
|
17
|
-
export type VisibleAgentsInstructions = {
|
|
18
|
-
active: false;
|
|
19
|
-
} | {
|
|
20
|
-
active: true;
|
|
21
|
-
directory?: string;
|
|
22
|
-
text: string;
|
|
23
|
-
};
|
|
24
|
-
/** Return Git worktrees under repos/, sorted for stable instruction capture. */
|
|
25
|
-
export declare function listRepositoryDirectories(fs: SandboxFileSystem): Promise<string[]>;
|
|
26
|
-
/** Return the only Git worktree under repos/, without guessing when ambiguous. */
|
|
27
|
-
export declare function findSingleRepositoryDirectory(fs: SandboxFileSystem): Promise<string | undefined>;
|
|
28
|
-
/** Resolve the effective root-to-cwd AGENTS.md bundle for one selected directory. */
|
|
29
|
-
export declare function resolveRepositoryInstructions(args: {
|
|
30
|
-
cwd: string;
|
|
31
|
-
fs: SandboxFileSystem;
|
|
32
|
-
maxBytes?: number;
|
|
33
|
-
}): Promise<RepositoryInstructions | undefined>;
|
|
34
|
-
/** Combine AGENTS.md bundles from one or more repository directories. */
|
|
35
|
-
export declare function mergeRepositoryInstructions(bundles: RepositoryInstructions[]): RepositoryInstructions | undefined;
|
|
36
|
-
/** Resolve AGENTS.md instructions for each selected repository directory. */
|
|
37
|
-
export declare function resolveRepositoryInstructionsForDirectories(args: {
|
|
38
|
-
directories: string[];
|
|
39
|
-
fs: SandboxFileSystem;
|
|
40
|
-
}): Promise<RepositoryInstructions | undefined>;
|
|
41
|
-
/** Render repository instructions with Codex's exact model-visible wrapper. */
|
|
42
|
-
export declare function renderAgentsInstructions(args: {
|
|
43
|
-
directory?: string;
|
|
44
|
-
text: string;
|
|
45
|
-
}): string;
|
|
46
|
-
/** Build one user-role repository-instructions context message. */
|
|
47
|
-
export declare function buildAgentsInstructionsMessage(args: {
|
|
48
|
-
directory?: string;
|
|
49
|
-
text: string;
|
|
50
|
-
timestamp?: number;
|
|
51
|
-
}): PiMessage;
|
|
52
|
-
/** Read the latest effective AGENTS.md state from model-visible history. */
|
|
53
|
-
export declare function findVisibleAgentsInstructions(messages: PiMessage[]): VisibleAgentsInstructions | undefined;
|
|
54
|
-
/** Whether one message is a generated AGENTS.md context update. */
|
|
55
|
-
export declare function isAgentsInstructionsMessage(message: PiMessage): boolean;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* System author ID stamped on resource-event mailbox messages.
|
|
3
|
-
*
|
|
4
|
-
* Keep this stable so conversation history can recognize the same system input
|
|
5
|
-
* for resource-event Turns.
|
|
6
|
-
*
|
|
7
|
-
* TODO(dcramer): Delete this ID after resumes read resource-event Source.kind
|
|
8
|
-
* from the Turn checkpoint instead of Message author data.
|
|
9
|
-
*/
|
|
10
|
-
export declare const RESOURCE_EVENT_AUTHOR_ID = "UJRNEVENT";
|
|
11
|
-
/** System Message author for resource-event input. */
|
|
12
|
-
export declare const RESOURCE_EVENT_MESSAGE_AUTHOR: {
|
|
13
|
-
readonly fullName: "Junior event";
|
|
14
|
-
readonly isBot: true;
|
|
15
|
-
readonly userId: "UJRNEVENT";
|
|
16
|
-
readonly userName: "junior-event";
|
|
17
|
-
};
|
|
18
|
-
/** System execution actor for every resource-event turn. */
|
|
19
|
-
export declare const RESOURCE_EVENT_SYSTEM_ACTOR: {
|
|
20
|
-
readonly platform: "system";
|
|
21
|
-
readonly name: "resource-event";
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Whether a saved Message started a resource-event Turn.
|
|
25
|
-
*
|
|
26
|
-
* TODO(dcramer): Delete this marker check after deployed Turn cursors all store
|
|
27
|
-
* Source and Actor. `eventType` only supports saved synthetic Slack input.
|
|
28
|
-
*/
|
|
29
|
-
export declare function isResourceEventConversationMessage(message: {
|
|
30
|
-
author?: {
|
|
31
|
-
userId?: string;
|
|
32
|
-
};
|
|
33
|
-
meta?: {
|
|
34
|
-
eventType?: string;
|
|
35
|
-
};
|
|
36
|
-
}): boolean;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ResourceEvent } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { StateAdapter } from "chat";
|
|
3
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
4
|
-
export type ResourceEventAppPublisher = {
|
|
5
|
-
neededMatchKeys(input: {
|
|
6
|
-
eventTypes: string[];
|
|
7
|
-
identifiers: string[];
|
|
8
|
-
namespace: string;
|
|
9
|
-
}): Promise<string[]>;
|
|
10
|
-
publish(event: ResourceEvent): Promise<void>;
|
|
11
|
-
};
|
|
12
|
-
/** Build the core resource-event publisher used by plugin routes. */
|
|
13
|
-
export declare function createResourceEventAppPublisher(args: {
|
|
14
|
-
conversationWork: () => {
|
|
15
|
-
queue?: ConversationWorkQueue;
|
|
16
|
-
state?: StateAdapter;
|
|
17
|
-
};
|
|
18
|
-
}): ResourceEventAppPublisher;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { type PluginResourceEvents, type ResourceEventMatch, type ResourceEventMatchFields } from "@sentry/junior-plugin-api";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
type ResourceEventRegistration = Pick<PluginResourceEvents, "resourceTypes" | "normalizeIdentifier">;
|
|
4
|
-
export type ResourceEventCatalog = Readonly<Record<string, ResourceEventRegistration>>;
|
|
5
|
-
/** Core-owned resource-event namespace. Not a plugin publisher. */
|
|
6
|
-
export declare const CORE_RESOURCE_EVENT_NAMESPACE = "junior";
|
|
7
|
-
/** True when the catalog has any enabled registration. */
|
|
8
|
-
export declare function hasResourceEventCatalogEntries(catalog: ResourceEventCatalog): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* True when at least one plugin namespace is enabled.
|
|
11
|
-
*
|
|
12
|
-
* Core Workspace snapshot events stay in the catalog for search and temporary
|
|
13
|
-
* watches. Durable event tasks still require a plugin publisher.
|
|
14
|
-
*/
|
|
15
|
-
export declare function hasPluginResourceEventCatalogEntries(catalog: ResourceEventCatalog): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Catalog entries that durable event tasks may select.
|
|
18
|
-
*
|
|
19
|
-
* Core Workspace snapshot events only wake temporary watches. Snapshot finish
|
|
20
|
-
* does not run event-task ingest, so those namespaces stay out of create/update
|
|
21
|
-
* schemas and trigger availability.
|
|
22
|
-
*/
|
|
23
|
-
export declare function pluginResourceEventCatalog(catalog: ResourceEventCatalog): ResourceEventCatalog;
|
|
24
|
-
/** Build the model-facing namespace enum from enabled resource event plugins. */
|
|
25
|
-
export declare function eventNamespaceSchema(catalog: ResourceEventCatalog): z.ZodString | z.ZodEnum<{
|
|
26
|
-
[x: string]: string;
|
|
27
|
-
}>;
|
|
28
|
-
/** Build the model-facing event enum from enabled plugin registrations. */
|
|
29
|
-
export declare function registeredEventTypeSchema(catalog: ResourceEventCatalog): z.ZodString | z.ZodEnum<{
|
|
30
|
-
[x: string]: string;
|
|
31
|
-
}>;
|
|
32
|
-
/** Build the model-facing resource type enum from enabled plugin registrations. */
|
|
33
|
-
export declare function registeredResourceTypeSchema(catalog: ResourceEventCatalog): z.ZodString | z.ZodEnum<{
|
|
34
|
-
[x: string]: string;
|
|
35
|
-
}>;
|
|
36
|
-
/** Return whether one enabled plugin declared an event type. */
|
|
37
|
-
export declare function pluginSupportsEvent(catalog: ResourceEventCatalog, namespace: string, resourceType: string, eventType: string): boolean;
|
|
38
|
-
/** Return app guidance for one registered resource type and event type. */
|
|
39
|
-
export declare function resourceEventGuidance(catalog: ResourceEventCatalog, namespace: string, resourceType: string, eventType: string): string | undefined;
|
|
40
|
-
/** Return declared match keys for one registered resource type. */
|
|
41
|
-
export declare function resourceEventMatchFields(catalog: ResourceEventCatalog, namespace: string, resourceType: string): ResourceEventMatchFields | undefined;
|
|
42
|
-
/** Build the match object the tools accept for one resource type. */
|
|
43
|
-
export declare function registeredResourceEventMatchSchema(): z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
44
|
-
/** Reject match keys the resource type does not list. */
|
|
45
|
-
export declare function requireSupportedResourceEventMatch(catalog: ResourceEventCatalog, input: {
|
|
46
|
-
match?: ResourceEventMatch;
|
|
47
|
-
namespace: string;
|
|
48
|
-
resourceType: string;
|
|
49
|
-
}): ResourceEventMatch | undefined;
|
|
50
|
-
/** Normalize one selector with the convention declared by its plugin. */
|
|
51
|
-
export declare function normalizeEventIdentifier(catalog: ResourceEventCatalog, namespace: string, identifier: string): string;
|
|
52
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
3
|
-
/** Match a normalized resource event and enqueue notifications into conversations. */
|
|
4
|
-
export declare function ingestResourceEvent(input: unknown, options: {
|
|
5
|
-
nowMs?: number;
|
|
6
|
-
queue: ConversationWorkQueue;
|
|
7
|
-
state?: StateAdapter;
|
|
8
|
-
}): Promise<{
|
|
9
|
-
enqueued: number;
|
|
10
|
-
}>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
2
|
-
import { appendAndEnqueueInboundMessage, type AppendAndEnqueueInboundMessageResult, type InboundMessage } from "@/chat/task-execution/store";
|
|
3
|
-
import type { ResourceEventSubscription } from "@/chat/resource-events/store";
|
|
4
|
-
export interface ResourceEventNotification {
|
|
5
|
-
eventKey: string;
|
|
6
|
-
eventType: string;
|
|
7
|
-
occurredAtMs: number;
|
|
8
|
-
namespace: string;
|
|
9
|
-
identifier: string;
|
|
10
|
-
terminal?: boolean;
|
|
11
|
-
trustedSummary: string;
|
|
12
|
-
data?: Record<string, unknown>;
|
|
13
|
-
untrustedText?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Render the runtime-owned conversation message for a subscribed event.
|
|
17
|
-
*
|
|
18
|
-
* Keep this short: facts the model cannot reconstruct, plus a one-line handling
|
|
19
|
-
* contract. Stable delivery rules live in runtime and docs, not this prompt.
|
|
20
|
-
*/
|
|
21
|
-
export declare function renderResourceEventNotificationText(subscription: Pick<ResourceEventSubscription, "intent" | "label" | "resourceType">, event: Pick<ResourceEventNotification, "namespace" | "eventType" | "trustedSummary" | "data" | "untrustedText">): string;
|
|
22
|
-
/** Resource-event metadata stored on plain mailbox input. */
|
|
23
|
-
export type ResourceEventMailboxMetadata = {
|
|
24
|
-
kind: "resource_event";
|
|
25
|
-
resourceEvent: {
|
|
26
|
-
eventKey: string;
|
|
27
|
-
eventType: string;
|
|
28
|
-
namespace: string;
|
|
29
|
-
identifier: string;
|
|
30
|
-
subscriptionId: string;
|
|
31
|
-
};
|
|
32
|
-
} & Record<string, unknown>;
|
|
33
|
-
/** Whether mailbox metadata is a plain resource-event wake. */
|
|
34
|
-
export declare function isResourceEventMailboxMetadata(value: unknown): value is ResourceEventMailboxMetadata;
|
|
35
|
-
/** Build plain conversation mailbox input for one matched watch. */
|
|
36
|
-
export declare function createResourceEventInboundMessage(input: {
|
|
37
|
-
event: ResourceEventNotification;
|
|
38
|
-
subscription: Pick<ResourceEventSubscription, "conversationId" | "id">;
|
|
39
|
-
text: string;
|
|
40
|
-
receivedAtMs?: number;
|
|
41
|
-
}): InboundMessage;
|
|
42
|
-
/**
|
|
43
|
-
* Enqueue a resource event as normal conversation mailbox input.
|
|
44
|
-
*
|
|
45
|
-
* The watch only names the conversation. Destination stays on the conversation
|
|
46
|
-
* and is applied when the worker runs. After too many automated Turns with no
|
|
47
|
-
* user Turn, later wakes stay quiet until a user message clears the pause.
|
|
48
|
-
*/
|
|
49
|
-
export declare function enqueueResourceEventNotification(args: {
|
|
50
|
-
event: ResourceEventNotification;
|
|
51
|
-
queue: ConversationWorkQueue;
|
|
52
|
-
subscription: ResourceEventSubscription;
|
|
53
|
-
state?: Parameters<typeof appendAndEnqueueInboundMessage>[0]["state"];
|
|
54
|
-
}): Promise<AppendAndEnqueueInboundMessageResult>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ResourceEventCatalog } from "@/chat/resource-events/catalog";
|
|
2
|
-
/**
|
|
3
|
-
* Enabled resource-event registrations for search, guidance, and tool schemas.
|
|
4
|
-
*
|
|
5
|
-
* Includes core Workspace snapshot events under the `junior` namespace, plus
|
|
6
|
-
* every enabled plugin registration. Plugins may not use the `junior` namespace.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getResourceEventCatalog(): ResourceEventCatalog;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import { type ResourceEventData, type ResourceEventMatch } from "@sentry/junior-plugin-api";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
declare const subscriptionSchema: z.ZodObject<{
|
|
5
|
-
conversationId: z.ZodString;
|
|
6
|
-
createdAtMs: z.ZodNumber;
|
|
7
|
-
events: z.ZodArray<z.ZodString>;
|
|
8
|
-
expiresAtMs: z.ZodNumber;
|
|
9
|
-
id: z.ZodString;
|
|
10
|
-
intent: z.ZodString;
|
|
11
|
-
label: z.ZodString;
|
|
12
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
|
|
13
|
-
namespace: z.ZodString;
|
|
14
|
-
identifier: z.ZodString;
|
|
15
|
-
resourceType: z.ZodString;
|
|
16
|
-
status: z.ZodEnum<{
|
|
17
|
-
completed: "completed";
|
|
18
|
-
cancelled: "cancelled";
|
|
19
|
-
active: "active";
|
|
20
|
-
}>;
|
|
21
|
-
updatedAtMs: z.ZodNumber;
|
|
22
|
-
}, z.core.$strict>;
|
|
23
|
-
export type ResourceEventSubscription = z.output<typeof subscriptionSchema>;
|
|
24
|
-
export interface CreateResourceEventSubscriptionInput {
|
|
25
|
-
conversationId: string;
|
|
26
|
-
events: string[];
|
|
27
|
-
expiresAtMs: number;
|
|
28
|
-
intent: string;
|
|
29
|
-
label: string;
|
|
30
|
-
match?: ResourceEventMatch;
|
|
31
|
-
namespace: string;
|
|
32
|
-
identifier: string;
|
|
33
|
-
resourceType: string;
|
|
34
|
-
}
|
|
35
|
-
/** Create or replace the active subscription for one conversation/resource/event set. */
|
|
36
|
-
export declare function createResourceEventSubscription(input: CreateResourceEventSubscriptionInput, options?: {
|
|
37
|
-
nowMs?: number;
|
|
38
|
-
state?: StateAdapter;
|
|
39
|
-
}): Promise<ResourceEventSubscription>;
|
|
40
|
-
/** List active subscriptions bound to one conversation. */
|
|
41
|
-
export declare function listResourceEventSubscriptions(input: {
|
|
42
|
-
conversationId: string;
|
|
43
|
-
nowMs?: number;
|
|
44
|
-
state?: StateAdapter;
|
|
45
|
-
}): Promise<ResourceEventSubscription[]>;
|
|
46
|
-
/** Cancel a current-conversation subscription and remove it from match indexes. */
|
|
47
|
-
export declare function cancelResourceEventSubscription(input: {
|
|
48
|
-
conversationId: string;
|
|
49
|
-
id: string;
|
|
50
|
-
nowMs?: number;
|
|
51
|
-
state?: StateAdapter;
|
|
52
|
-
}): Promise<ResourceEventSubscription | undefined>;
|
|
53
|
-
/** Cancel every active resource event subscription bound to one conversation. */
|
|
54
|
-
export declare function cancelSubscriptions(input: {
|
|
55
|
-
conversationId: string;
|
|
56
|
-
nowMs?: number;
|
|
57
|
-
state?: StateAdapter;
|
|
58
|
-
}): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Collect match keys from active watches for these identifiers and event types.
|
|
61
|
-
* Does not evaluate match values — only reports keys that filters use.
|
|
62
|
-
*/
|
|
63
|
-
export declare function collectResourceEventMatchKeys(input: {
|
|
64
|
-
eventTypes: string[];
|
|
65
|
-
identifiers: string[];
|
|
66
|
-
namespace: string;
|
|
67
|
-
nowMs?: number;
|
|
68
|
-
state?: StateAdapter;
|
|
69
|
-
}): Promise<string[]>;
|
|
70
|
-
/** Find active subscriptions interested in a normalized resource event. */
|
|
71
|
-
export declare function findMatchingResourceEventSubscriptions(input: {
|
|
72
|
-
data?: ResourceEventData;
|
|
73
|
-
eventType: string;
|
|
74
|
-
nowMs?: number;
|
|
75
|
-
namespace: string;
|
|
76
|
-
identifier: string;
|
|
77
|
-
state?: StateAdapter;
|
|
78
|
-
}): Promise<ResourceEventSubscription[]>;
|
|
79
|
-
/** Recheck and deliver a matched subscription while holding its status lock. */
|
|
80
|
-
export declare function deliverResourceEventSubscription(input: {
|
|
81
|
-
data?: ResourceEventData;
|
|
82
|
-
deliver: (subscription: ResourceEventSubscription) => Promise<boolean>;
|
|
83
|
-
eventType: string;
|
|
84
|
-
nowMs?: number;
|
|
85
|
-
namespace: string;
|
|
86
|
-
identifier: string;
|
|
87
|
-
state?: StateAdapter;
|
|
88
|
-
subscription: ResourceEventSubscription;
|
|
89
|
-
terminal?: boolean;
|
|
90
|
-
waitDeadlineMs?: number;
|
|
91
|
-
}): Promise<boolean>;
|
|
92
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Default lifetime for temporary resource subscriptions. */
|
|
2
|
-
export declare const RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS: number;
|
|
3
|
-
/** Hard upper bound for temporary resource subscriptions. */
|
|
4
|
-
export declare const RESOURCE_SUBSCRIPTION_MAX_TTL_MS: number;
|
|
5
|
-
export declare const STOP_WATCHING_TOOL_NAME = "stopWatchingResources";
|
|
6
|
-
export declare const RESOURCE_WATCH_TOOL_SOURCE: {
|
|
7
|
-
id: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolve the single-bot Slack team id for event-task indexing.
|
|
3
|
-
*
|
|
4
|
-
* Resource watches do not use this. Event tasks still key by destination team
|
|
5
|
-
* until that store is conversation-owned. Resource-event delivery itself is
|
|
6
|
-
* not gated on Slack.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createResourceEventTeamIdResolver(): () => Promise<string | undefined>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { AgentRunResult } from "@/chat/services/turn-result";
|
|
2
|
-
import type { AgentTurnUsage } from "@/chat/usage";
|
|
3
|
-
/**
|
|
4
|
-
* How an agent run ended. `completed` carries the terminal result (success or
|
|
5
|
-
* failure — `result.diagnostics` distinguishes them). `suspended` means the run
|
|
6
|
-
* persisted an paused session record and stopped at a safe boundary;
|
|
7
|
-
* the caller resumes it by scheduling a continuation against `resumeVersion`,
|
|
8
|
-
* the session record's optimistic-concurrency version. `awaiting_auth` means
|
|
9
|
-
* the run parked for user authorization.
|
|
10
|
-
*/
|
|
11
|
-
/** Why a run parked at a safe boundary and may continue. */
|
|
12
|
-
export type AgentSuspensionReason = "timeout" | "yield" | "retry";
|
|
13
|
-
export type AgentRunOutcome = {
|
|
14
|
-
status: "completed";
|
|
15
|
-
result: AgentRunResult;
|
|
16
|
-
} | {
|
|
17
|
-
status: "suspended";
|
|
18
|
-
/** Why this slice stopped. Callers use this to choose wake vs yield. */
|
|
19
|
-
reason: AgentSuspensionReason;
|
|
20
|
-
resumeVersion: number;
|
|
21
|
-
usage?: AgentTurnUsage;
|
|
22
|
-
} | {
|
|
23
|
-
status: "awaiting_auth";
|
|
24
|
-
providerDisplayName: string;
|
|
25
|
-
requestText?: string;
|
|
26
|
-
usage?: AgentTurnUsage;
|
|
27
|
-
};
|
|
28
|
-
/** Wrap a terminal result (successful or failed per its diagnostics) as an outcome. */
|
|
29
|
-
export declare function completedAgentRun(result: AgentRunResult): AgentRunOutcome;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { StreamFn } from "@earendil-works/pi-agent-core";
|
|
2
|
-
import { type AgentRun, type SpawnAgent } from "@/chat/agent/types";
|
|
3
|
-
import type { AgentRunOutcome } from "@/chat/runtime/agent-run-outcome";
|
|
4
|
-
import type { SandboxEgressTracePropagationConfig } from "@/chat/sandbox/egress/tracing";
|
|
5
|
-
import type { AttachmentStorage } from "@/chat/attachments/storage";
|
|
6
|
-
/** Run one agent-run slice behind runtime-owned orchestration boundaries. */
|
|
7
|
-
export interface AgentRunner {
|
|
8
|
-
run(run: AgentRun): Promise<AgentRunOutcome>;
|
|
9
|
-
}
|
|
10
|
-
/** Compose the agent executor with stable host dependencies. */
|
|
11
|
-
export declare function createAgentRunner(execute: (run: AgentRun, streamFn?: StreamFn) => Promise<AgentRunOutcome>, options?: {
|
|
12
|
-
attachmentStorage?: AttachmentStorage;
|
|
13
|
-
bindSpawnAgent?: (run: AgentRun) => SpawnAgent | undefined;
|
|
14
|
-
streamFn?: StreamFn;
|
|
15
|
-
tracePropagation?: SandboxEgressTracePropagationConfig;
|
|
16
|
-
}): AgentRunner;
|
|
17
|
-
/** Abort a timed-out agent run and wait briefly for its work to settle. */
|
|
18
|
-
export declare function runAgentWithTimeout(agentRunner: AgentRunner, run: AgentRun, timeoutMs: number | undefined): Promise<AgentRunOutcome>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ThreadConversationState } from "@/chat/state/conversation";
|
|
2
|
-
/** Mark an auth-paused turn complete after private authorization link delivery. */
|
|
3
|
-
export declare function completeAuthPauseTurn(args: {
|
|
4
|
-
conversation: ThreadConversationState;
|
|
5
|
-
sessionId: string;
|
|
6
|
-
}): void;
|
|
7
|
-
/** Reload thread state, mark the auth pause as parked, and persist it. */
|
|
8
|
-
export declare function persistAuthPauseTurnState(args: {
|
|
9
|
-
sessionId: string;
|
|
10
|
-
threadStateId: string;
|
|
11
|
-
}): Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Message } from "chat";
|
|
2
|
-
import type { ConversationMessage } from "@/chat/state/conversation";
|
|
3
|
-
interface ConversationMessageInput {
|
|
4
|
-
entry: Message;
|
|
5
|
-
explicitMention?: boolean;
|
|
6
|
-
text: string;
|
|
7
|
-
}
|
|
8
|
-
/** Preserve an SDK message and its Slack metadata in durable conversation memory. */
|
|
9
|
-
export declare function toConversationMessage(args: ConversationMessageInput): ConversationMessage;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AgentRunResult } from "@/chat/services/turn-result";
|
|
2
|
-
import type { ThreadConversationState } from "@/chat/state/conversation";
|
|
3
|
-
import type { ThreadStatePatch } from "@/chat/runtime/thread-state";
|
|
4
|
-
/** Build state after destination delivery or intentional no-reply completion. */
|
|
5
|
-
export declare function buildDeliveredTurnStatePatch(args: {
|
|
6
|
-
conversation: ThreadConversationState;
|
|
7
|
-
reply: AgentRunResult;
|
|
8
|
-
sessionId: string;
|
|
9
|
-
userMessageId?: string;
|
|
10
|
-
}): ThreadStatePatch & {
|
|
11
|
-
conversation: ThreadConversationState;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function shouldEmitDevAgentTrace(): boolean;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PiMessage } from "@/chat/pi/messages";
|
|
2
|
-
import type { AssistantStatusSpec } from "@/chat/slack/assistant-thread/status-render";
|
|
3
|
-
/** Convert a `reportProgress` tool payload into assistant status text. */
|
|
4
|
-
export declare function buildReportedProgressStatus(input: unknown): AssistantStatusSpec | undefined;
|
|
5
|
-
/** Recover the latest explicit progress update from a resumable Pi transcript. */
|
|
6
|
-
export declare function latestReportedProgress(messages: readonly PiMessage[]): AssistantStatusSpec | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface TurnRequestDeadline {
|
|
2
|
-
deadlineAtMs: number;
|
|
3
|
-
startedAtMs: number;
|
|
4
|
-
}
|
|
5
|
-
/** Return the host request deadline inherited by the current async turn. */
|
|
6
|
-
export declare function getTurnRequestDeadline(): TurnRequestDeadline | undefined;
|
|
7
|
-
/** Run work with one host request deadline shared by nested queued turns. */
|
|
8
|
-
export declare function runWithTurnRequestDeadline<T>(callback: () => T, startedAtMs?: number): T;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Message, Thread } from "chat";
|
|
2
|
-
import { type SlackMessageTs } from "@/chat/slack/timestamp";
|
|
3
|
-
interface StripLeadingBotMentionOptions {
|
|
4
|
-
botUserId?: string;
|
|
5
|
-
stripLeadingSlackMentionToken?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function stripLeadingBotMention(text: string, options?: StripLeadingBotMentionOptions): string;
|
|
8
|
-
export declare function getThreadId(thread: Thread, _message: Message): string | undefined;
|
|
9
|
-
export declare function getRunId(thread: Thread, message: Message): string | undefined;
|
|
10
|
-
export declare function getChannelId(thread: Thread, message: Message): string | undefined;
|
|
11
|
-
export declare function getThreadTs(threadId: string | undefined): string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Resolve Slack assistant-thread API context for the current turn.
|
|
14
|
-
*
|
|
15
|
-
* Slack assistant-thread methods must use the live inbound thread context
|
|
16
|
-
* Slack provided on the current message. Slack's assistant utilities build
|
|
17
|
-
* `setStatus`/`setTitle` from `message.channel` plus `message.thread_ts ?? message.ts`
|
|
18
|
-
* for non-DM message events, while `message.im` still requires an explicit
|
|
19
|
-
* `thread_ts`. Do not synthesize assistant-thread roots from persisted state.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getAssistantThreadContext(message: Message): {
|
|
22
|
-
channelId: string;
|
|
23
|
-
threadTs: string;
|
|
24
|
-
} | undefined;
|
|
25
|
-
/** Resolve the native Slack timestamp for a message that can target Slack APIs. */
|
|
26
|
-
export declare function getMessageTs(message: Message): SlackMessageTs | undefined;
|
|
27
|
-
/** Resolve the Slack workspace/team id from the raw inbound message payload. */
|
|
28
|
-
export declare function getTeamId(message: Message): string | undefined;
|
|
29
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Thread } from "chat";
|
|
2
|
-
import type { Destination } from "@sentry/junior-plugin-api";
|
|
3
|
-
import type { LocationConfigurationService } from "@/chat/configuration/types";
|
|
4
|
-
import type { ThreadConversationState } from "@/chat/state/conversation";
|
|
5
|
-
import type { SandboxRef } from "@/chat/sandbox/ref";
|
|
6
|
-
export interface ThreadStatePatch {
|
|
7
|
-
conversation?: ThreadConversationState;
|
|
8
|
-
sandboxRef?: SandboxRef | null;
|
|
9
|
-
}
|
|
10
|
-
/** Extract persisted sandbox metadata from thread state payload. */
|
|
11
|
-
export declare function getPersistedSandboxState(state: Record<string, unknown>): SandboxRef | undefined;
|
|
12
|
-
/** Persist a thread-state patch for a Chat thread handle. */
|
|
13
|
-
export declare function persistThreadState(thread: Thread, patch: ThreadStatePatch): Promise<void>;
|
|
14
|
-
/** Persist only the Redis-backed runtime scratch in a thread-state patch. */
|
|
15
|
-
export declare function persistThreadRuntimeState(thread: Thread, patch: ThreadStatePatch): Promise<void>;
|
|
16
|
-
/** Load the persisted state payload for a thread without requiring a Chat singleton. */
|
|
17
|
-
export declare function getPersistedThreadState(threadId: string): Promise<Record<string, unknown>>;
|
|
18
|
-
/** Persist a thread-state patch by thread id without constructing a Chat thread. */
|
|
19
|
-
export declare function persistThreadStateById(threadId: string, patch: ThreadStatePatch): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Resolve durable location configuration.
|
|
22
|
-
*
|
|
23
|
-
* Slack still reads the old channel-id Redis bag once during cutover.
|
|
24
|
-
*/
|
|
25
|
-
export declare function getLocationConfigurationService(destination: Destination): LocationConfigurationService;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { AgentRun } from "@/chat/agent/types";
|
|
2
|
-
import type { CompleteConversationTurnInput, FailConversationTurnInput } from "@/chat/conversations/turn-lifecycle";
|
|
3
|
-
import type { AgentRunOutcome } from "@/chat/runtime/agent-run-outcome";
|
|
4
|
-
import { type AgentRunner } from "@/chat/runtime/agent-runner";
|
|
5
|
-
import type { AgentRunResult } from "@/chat/services/turn-result";
|
|
6
|
-
type SavedTurnResult = {
|
|
7
|
-
finishedAtMs?: number;
|
|
8
|
-
outcome: CompleteConversationTurnInput["outcome"];
|
|
9
|
-
} | {
|
|
10
|
-
eventId?: string;
|
|
11
|
-
finishedAtMs?: number;
|
|
12
|
-
failureCode: FailConversationTurnInput["failureCode"];
|
|
13
|
-
failureReason?: FailConversationTurnInput["failureReason"];
|
|
14
|
-
outcome: "failed";
|
|
15
|
-
};
|
|
16
|
-
type TurnExecutionOutcome = Exclude<AgentRunOutcome, {
|
|
17
|
-
status: "completed";
|
|
18
|
-
}> | {
|
|
19
|
-
status: "completed";
|
|
20
|
-
};
|
|
21
|
-
/** An error thrown while the agent advances a Run. */
|
|
22
|
-
export declare class AgentRunError extends Error {
|
|
23
|
-
constructor(cause: unknown);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Run the agent and finish the Turn after the caller saves its result.
|
|
27
|
-
*
|
|
28
|
-
* A paused Run, or a Run waiting for authorization, leaves the Turn open. A
|
|
29
|
-
* save error also leaves the Turn open so the worker can retry or recover it.
|
|
30
|
-
* A timeout aborts the Run before this function reports the failure.
|
|
31
|
-
*/
|
|
32
|
-
export declare function executeTurn(agentRunner: AgentRunner, run: AgentRun, saveResult: (result: AgentRunResult) => Promise<SavedTurnResult>, timeoutMs?: number): Promise<TurnExecutionOutcome>;
|
|
33
|
-
/** Run the agent and finish a Turn after its caller saves the result. */
|
|
34
|
-
export type ExecuteTurn = (run: AgentRun, saveResult: (result: AgentRunResult) => Promise<SavedTurnResult>, timeoutMs?: number) => Promise<TurnExecutionOutcome>;
|
|
35
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Message, Thread } from "chat";
|
|
2
|
-
import type { Destination } from "@sentry/junior-plugin-api";
|
|
3
|
-
import type { LocationConfigurationService } from "@/chat/configuration/types";
|
|
4
|
-
export interface TurnContext {
|
|
5
|
-
channelId?: string;
|
|
6
|
-
actorId?: string;
|
|
7
|
-
threadId?: string;
|
|
8
|
-
runId?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface TurnMessageText {
|
|
11
|
-
rawText: string;
|
|
12
|
-
userText: string;
|
|
13
|
-
}
|
|
14
|
-
export interface TurnToolInvocation {
|
|
15
|
-
params: Record<string, unknown>;
|
|
16
|
-
toolName: string;
|
|
17
|
-
}
|
|
18
|
-
export interface QueuedTurnMessage extends TurnMessageText {
|
|
19
|
-
explicitMention: boolean;
|
|
20
|
-
message: Message;
|
|
21
|
-
}
|
|
22
|
-
export interface PrepareTurnStateInput {
|
|
23
|
-
destination: Destination;
|
|
24
|
-
locationConfiguration?: LocationConfigurationService;
|
|
25
|
-
context: TurnContext;
|
|
26
|
-
explicitMention: boolean;
|
|
27
|
-
message: Message;
|
|
28
|
-
queuedMessages?: QueuedTurnMessage[];
|
|
29
|
-
skipBackfill?: boolean;
|
|
30
|
-
text: TurnMessageText;
|
|
31
|
-
thread: Thread;
|
|
32
|
-
}
|
|
33
|
-
/** Preserve skipped Slack messages as turn input without duplicating stored state. */
|
|
34
|
-
export declare function combineTurnText(queuedMessages: readonly TurnMessageText[], latestText: TurnMessageText): TurnMessageText;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Turn state preparation.
|
|
3
|
-
*
|
|
4
|
-
* This module turns durable chat thread state plus the current Slack message
|
|
5
|
-
* into the state needed before agent execution. It owns conversation backfill,
|
|
6
|
-
* memory/context rendering, vision hydration, and configuration; it should not execute the agent or post replies.
|
|
7
|
-
*/
|
|
8
|
-
import type { Message } from "chat";
|
|
9
|
-
import type { ThreadConversationState } from "@/chat/state/conversation";
|
|
10
|
-
import type { SandboxRef } from "@/chat/sandbox/ref";
|
|
11
|
-
import type { LocationConfigurationService } from "@/chat/configuration/types";
|
|
12
|
-
import type { PrepareTurnStateInput, TurnContext } from "@/chat/runtime/turn-input";
|
|
13
|
-
export interface PreparedTurnState {
|
|
14
|
-
configuration?: Record<string, unknown>;
|
|
15
|
-
locationConfiguration?: LocationConfigurationService;
|
|
16
|
-
conversation: ThreadConversationState;
|
|
17
|
-
conversationContext?: string;
|
|
18
|
-
sandboxRef?: SandboxRef;
|
|
19
|
-
userMessageAlreadyReplied?: boolean;
|
|
20
|
-
userMessageId?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface PrepareTurnStateDeps {
|
|
23
|
-
compactConversationIfNeeded: (conversation: ThreadConversationState, context: TurnContext) => Promise<void>;
|
|
24
|
-
hydrateConversationVisionContext: (conversation: ThreadConversationState, context: TurnContext & {
|
|
25
|
-
threadTs?: string;
|
|
26
|
-
}) => Promise<void>;
|
|
27
|
-
resolveBackfillMessageActors: (messages: Message[], destination: PrepareTurnStateInput["destination"]) => Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
/** Build the turn-state preparer from injected conversation services. */
|
|
30
|
-
export declare function createPrepareTurnState(deps: PrepareTurnStateDeps): (args: PrepareTurnStateInput) => Promise<PreparedTurnState>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ConversationMessage, ThreadConversationState } from "@/chat/state/conversation";
|
|
2
|
-
import { type SlackMessageTs } from "@/chat/slack/timestamp";
|
|
3
|
-
/** Return the user message for a persisted turn/session, if one exists. */
|
|
4
|
-
export declare function getTurnUserMessage(conversation: ThreadConversationState, sessionId: string): ConversationMessage | undefined;
|
|
5
|
-
/** Return the persisted user-message id for a turn/session, if one exists. */
|
|
6
|
-
export declare function getTurnUserMessageId(conversation: ThreadConversationState, sessionId: string): string | undefined;
|
|
7
|
-
/** Return the Slack timestamp for the user message that a resumed turn acts on. */
|
|
8
|
-
export declare function getTurnUserSlackMessageTs(message: ConversationMessage | undefined): SlackMessageTs | undefined;
|
|
9
|
-
/** Rebuild attachment context for a resumed turn from the persisted user message. */
|
|
10
|
-
export declare function getTurnUserReplyAttachmentContext(message: ConversationMessage | undefined): {
|
|
11
|
-
inboundAttachmentCount?: number;
|
|
12
|
-
omittedImageAttachmentCount?: number;
|
|
13
|
-
};
|