@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,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pi adapter for Junior conversation events.
|
|
3
|
-
*
|
|
4
|
-
* Conversation storage owns the ordered event log. This module turns its
|
|
5
|
-
* stored messages into the active Pi context.
|
|
6
|
-
*/
|
|
7
|
-
import type { ModelProfile } from "@/chat/model-profile";
|
|
8
|
-
import type { ConversationEvent, AgentHistoryItem } from "@/chat/conversations/history";
|
|
9
|
-
import { type PiMessage } from "@/chat/pi/messages";
|
|
10
|
-
import { type ConversationMessageProvenance } from "@/chat/conversations/provenance";
|
|
11
|
-
/** Pi context projected from one Junior model-history version. */
|
|
12
|
-
export interface PiConversationProjection {
|
|
13
|
-
messages: PiMessage[];
|
|
14
|
-
provenance: ConversationMessageProvenance[];
|
|
15
|
-
modelProfile: ModelProfile;
|
|
16
|
-
replacementSeq: number | undefined;
|
|
17
|
-
}
|
|
18
|
-
/** Pi context with the source event sequence for every projected message. */
|
|
19
|
-
export interface PiConversationEventProjection extends PiConversationProjection {
|
|
20
|
-
seqs: number[];
|
|
21
|
-
}
|
|
22
|
-
/** Translate one Pi message into Junior's native durable history item. */
|
|
23
|
-
export declare function historyItemFromPiMessage(message: PiMessage, provenance: ConversationMessageProvenance): AgentHistoryItem;
|
|
24
|
-
/** Translate one Junior-native history item into the Pi message it represents. */
|
|
25
|
-
export declare function piMessageFromHistoryItem(data: AgentHistoryItem): PiMessage;
|
|
26
|
-
/**
|
|
27
|
-
* Project ordered Junior events into Pi context.
|
|
28
|
-
*
|
|
29
|
-
* Compaction and handoff start with replacement history. Later native history
|
|
30
|
-
* events append after it.
|
|
31
|
-
*
|
|
32
|
-
* Host-only events are filtered, completed authorization becomes a synthetic
|
|
33
|
-
* observation, and `maxSeq` reproduces an exact committed boundary.
|
|
34
|
-
*/
|
|
35
|
-
export declare function projectConversationEvents(events: ConversationEvent[], options: {
|
|
36
|
-
defaultProfile: ModelProfile;
|
|
37
|
-
maxSeq?: number;
|
|
38
|
-
}): PiConversationEventProjection;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type GatewayCredential = {
|
|
2
|
-
mode: "oidc" | "api_key";
|
|
3
|
-
token: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const MISSING_GATEWAY_CREDENTIALS_ERROR = "Missing AI gateway credentials (enable Vercel OIDC or set AI_GATEWAY_API_KEY)";
|
|
6
|
-
/**
|
|
7
|
-
* Resolve the preferred AI Gateway bearer credential.
|
|
8
|
-
*
|
|
9
|
-
* Order:
|
|
10
|
-
* 1. Vercel OIDC via `@vercel/oidc` (request header `x-vercel-oidc-token`,
|
|
11
|
-
* then `VERCEL_OIDC_TOKEN`, with local refresh when needed)
|
|
12
|
-
* 2. Explicit `AI_GATEWAY_API_KEY` / pi-ai env mapping for vercel-ai-gateway
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveGatewayCredential(): Promise<GatewayCredential | undefined>;
|
|
15
|
-
/** Resolve the bearer token string for Authorization headers and Pi getApiKey. */
|
|
16
|
-
export declare function getGatewayApiKey(): Promise<string | undefined>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Permissive schema for durable Pi SDK messages whose content shape may evolve. */
|
|
3
|
-
export declare const piMessageSchema: z.ZodPipe<z.ZodObject<{
|
|
4
|
-
role: z.ZodString;
|
|
5
|
-
}, z.core.$loose>, z.ZodTransform<import("@earendil-works/pi-ai").AssistantMessage | import("@earendil-works/pi-ai").UserMessage | import("@earendil-works/pi-ai").ToolResultMessage<any> | import("@earendil-works/pi-agent-core").CustomMessage<unknown> | import("@earendil-works/pi-agent-core").BashExecutionMessage | import("@earendil-works/pi-agent-core").BranchSummaryMessage | import("@earendil-works/pi-agent-core").CompactionSummaryMessage, {
|
|
6
|
-
[x: string]: unknown;
|
|
7
|
-
role: string;
|
|
8
|
-
}>>;
|
|
9
|
-
/** Durable Pi transcript message stored across turns. */
|
|
10
|
-
export type PiMessage = z.output<typeof piMessageSchema>;
|
|
11
|
-
/** Reporting transcript entries only render messages with structured content parts. */
|
|
12
|
-
export declare const piContentMessageSchema: z.ZodPipe<z.ZodObject<{
|
|
13
|
-
content: z.ZodArray<z.ZodUnknown>;
|
|
14
|
-
role: z.ZodString;
|
|
15
|
-
}, z.core.$loose>, z.ZodTransform<import("@earendil-works/pi-ai").AssistantMessage | import("@earendil-works/pi-ai").UserMessage | import("@earendil-works/pi-ai").ToolResultMessage<any> | import("@earendil-works/pi-agent-core").CustomMessage<unknown> | import("@earendil-works/pi-agent-core").BashExecutionMessage | import("@earendil-works/pi-agent-core").BranchSummaryMessage | import("@earendil-works/pi-agent-core").CompactionSummaryMessage, {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
content: unknown[];
|
|
18
|
-
role: string;
|
|
19
|
-
}>>;
|
package/dist/chat/pi/sdk.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local Pi SDK boundary. All Pi package imports used by chat/pi/client.ts
|
|
3
|
-
* are re-exported here so tests can mock a single Junior-owned path instead
|
|
4
|
-
* of Pi's internal subpath layout, which changes across SDK versions.
|
|
5
|
-
*/
|
|
6
|
-
export { calculateCost, completeSimple, getEnvApiKey, getModel, getModels, isRetryableAssistantError, registerApiProvider, type Message, type Model, type ThinkingLevel, } from "@earendil-works/pi-ai/compat";
|
|
7
|
-
export { stream as streamAnthropic, streamSimple as streamSimpleAnthropic, } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { JuniorSqlDatabase } from "@/db/db";
|
|
2
|
-
import { type AgentTurnUsage } from "@/chat/usage";
|
|
3
|
-
/**
|
|
4
|
-
* Aggregate real assistant calls by provider/model in SQL. Replayed history is
|
|
5
|
-
* not another call; its tokens appear in the next call's input usage.
|
|
6
|
-
*/
|
|
7
|
-
export declare function readConversationModelUsageFromSql(executor: JuniorSqlDatabase, options: {
|
|
8
|
-
conversationId: string;
|
|
9
|
-
includeDescendants?: boolean;
|
|
10
|
-
}): Promise<Array<{
|
|
11
|
-
modelId: string;
|
|
12
|
-
usage: AgentTurnUsage;
|
|
13
|
-
}>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { StreamFn } from "@earendil-works/pi-agent-core";
|
|
2
|
-
import { type ConversationPrivacy } from "@/chat/conversation-privacy";
|
|
3
|
-
/**
|
|
4
|
-
* Wraps pi-ai's `streamSimple` so each LLM call inside a pi-agent-core agent
|
|
5
|
-
* loop produces its own `gen_ai.chat` Sentry span. The returned function is
|
|
6
|
-
* passed to `new Agent({ streamFn: ... })` and runs once per loop iteration.
|
|
7
|
-
*
|
|
8
|
-
* The base argument exists so tests can inject a stub stream function.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createTracedStreamFn(baseOrOptions?: StreamFn | {
|
|
11
|
-
conversationPrivacy?: ConversationPrivacy;
|
|
12
|
-
base?: StreamFn;
|
|
13
|
-
}): StreamFn;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pi transcript utilities.
|
|
3
|
-
*
|
|
4
|
-
* Shape predicates and durable-history manipulation for raw Pi messages,
|
|
5
|
-
* shared by the agent executor and the services that persist, trim, or
|
|
6
|
-
* summarize transcripts. The utilities here strip stale
|
|
7
|
-
* `<runtime-turn-context>` bootstrap blocks before history is reused or
|
|
8
|
-
* replaced; an active completed projection may retain its current bootstrap.
|
|
9
|
-
*/
|
|
10
|
-
import type { AssistantMessage, ToolResultMessage } from "@earendil-works/pi-ai";
|
|
11
|
-
import type { PiMessage } from "@/chat/pi/messages";
|
|
12
|
-
/** Type guard for Pi SDK assistant messages. */
|
|
13
|
-
export declare function isAssistantMessage(value: unknown): value is AssistantMessage;
|
|
14
|
-
/** Type guard for Pi SDK tool result messages. */
|
|
15
|
-
export declare function isToolResultMessage(value: unknown): value is ToolResultMessage<any>;
|
|
16
|
-
/** Check whether a tool result carries an error flag. */
|
|
17
|
-
export declare function isToolResultError(result: unknown): boolean;
|
|
18
|
-
/** Extract the tool name from a raw tool result message. */
|
|
19
|
-
export declare function normalizeToolNameFromResult(result: unknown): string | undefined;
|
|
20
|
-
/** Extract role string from a raw Pi message. */
|
|
21
|
-
export declare function getPiMessageRole(value: unknown): string | undefined;
|
|
22
|
-
/** Return whether Pi can continue directly from the current history tail. */
|
|
23
|
-
export declare function isContinuablePiBoundary(messages: readonly PiMessage[]): boolean;
|
|
24
|
-
/** Concatenate text content parts from an assistant message. */
|
|
25
|
-
export declare function extractAssistantText(message: AssistantMessage): string;
|
|
26
|
-
/** Return assistant messages that belong to the terminal post-tool reply phase. */
|
|
27
|
-
export declare function getTerminalAssistantMessages(messages: readonly unknown[]): AssistantMessage[];
|
|
28
|
-
/** Remove trailing assistant messages before committing a resumable boundary. */
|
|
29
|
-
export declare function trimTrailingAssistantMessages(messages: PiMessage[]): PiMessage[];
|
|
30
|
-
/** Return whether Pi history already carries session bootstrap context. */
|
|
31
|
-
export declare function hasRuntimeTurnContext(messages: PiMessage[]): boolean;
|
|
32
|
-
/** Keep only volatile bootstrap messages needed by an in-turn context replacement. */
|
|
33
|
-
export declare function retainRuntimeTurnContext(messages: PiMessage[]): PiMessage[];
|
|
34
|
-
/**
|
|
35
|
-
* Reduce a runtime user-turn prompt to only the current turn's instruction.
|
|
36
|
-
*
|
|
37
|
-
* Live user prompts embed prior-thread context as `<thread-context
|
|
38
|
-
* authority="evidence-only">` (or legacy transcript/background blocks) beside
|
|
39
|
-
* the `<current-instruction>` block. Those blocks hold other participants'
|
|
40
|
-
* verbatim messages, so completed-run projections consumed by plugins must
|
|
41
|
-
* expose only the instruction authored by this turn's actor — otherwise
|
|
42
|
-
* per-entry provenance can be defeated by reading another user's text out of an
|
|
43
|
-
* instruction-authority entry. Prior thread context is projected separately as
|
|
44
|
-
* per-author context-authority entries, so dropping it here is non-lossy for
|
|
45
|
-
* plugins. This is projection-only; it never touches what the model sees during
|
|
46
|
-
* a live run.
|
|
47
|
-
*/
|
|
48
|
-
export declare function instructionTextForProjection(text: string): string;
|
|
49
|
-
/** Return the projected instruction text carried by one user message. */
|
|
50
|
-
export declare function getUserMessageInstructionText(message: PiMessage): string;
|
|
51
|
-
/** Remove volatile runtime context before reusing messages as history. */
|
|
52
|
-
export declare function stripRuntimeTurnContext(messages: PiMessage[]): PiMessage[];
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { PluginRoute, PluginSandbox, PluginOperationalReport, PluginRouteApp, Platform, ResourceEvent, SlackConversationLink, PluginRegistration, User } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { PluginPromptContributionContext } from "@/chat/plugins/prompt";
|
|
3
|
-
import type { AnyToolDefinition } from "@/chat/tools/definition";
|
|
4
|
-
import type { ToolRuntimeContext } from "@/chat/tools/types";
|
|
5
|
-
import type { SandboxWorkspace } from "@/chat/sandbox/workspace";
|
|
6
|
-
import type { Actor } from "@/chat/actor";
|
|
7
|
-
/** Signal that a plugin intentionally denied a tool execution. */
|
|
8
|
-
export declare class PluginHookDeniedError extends Error {
|
|
9
|
-
constructor(message: string);
|
|
10
|
-
}
|
|
11
|
-
export interface ToolHookInput {
|
|
12
|
-
input: Record<string, unknown>;
|
|
13
|
-
name: string;
|
|
14
|
-
}
|
|
15
|
-
export interface ToolHookResult {
|
|
16
|
-
/** Hook-injected environment values applied only during execution. */
|
|
17
|
-
env: Record<string, string>;
|
|
18
|
-
/** Hook-adjusted semantic tool input, including any schema-defined `env`. */
|
|
19
|
-
input: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
export interface PluginRouteRegistration extends PluginRoute {
|
|
22
|
-
pluginName: string;
|
|
23
|
-
}
|
|
24
|
-
export interface PluginApiRouteRegistration {
|
|
25
|
-
app: PluginRouteApp;
|
|
26
|
-
pluginName: string;
|
|
27
|
-
}
|
|
28
|
-
export interface AfterMcpToolHookInput {
|
|
29
|
-
arguments: Record<string, unknown>;
|
|
30
|
-
conversationId?: string;
|
|
31
|
-
provider: string;
|
|
32
|
-
structuredContent?: unknown;
|
|
33
|
-
toolName: string;
|
|
34
|
-
}
|
|
35
|
-
export interface PluginHookRunner {
|
|
36
|
-
afterMcpTool(input: AfterMcpToolHookInput): Promise<void>;
|
|
37
|
-
beforeToolExecute(input: ToolHookInput): Promise<ToolHookResult>;
|
|
38
|
-
prepareSandbox(workspace: SandboxWorkspace): Promise<void>;
|
|
39
|
-
prepareWorkspace(workspace: SandboxWorkspace, repos: Array<{
|
|
40
|
-
provider: string;
|
|
41
|
-
repo: string;
|
|
42
|
-
}>, signal?: AbortSignal): Promise<void>;
|
|
43
|
-
}
|
|
44
|
-
/** Validate plugin identity before it can affect process-wide hooks. */
|
|
45
|
-
export declare function validatePlugins(plugins: PluginRegistration[]): void;
|
|
46
|
-
/** Replace runtime hook plugins and return the previous list for rollback. */
|
|
47
|
-
export declare function setPlugins(nextPlugins: PluginRegistration[]): PluginRegistration[];
|
|
48
|
-
/** Return the current runtime hook plugins without exposing mutable state. */
|
|
49
|
-
export declare function getPlugins(): PluginRegistration[];
|
|
50
|
-
/** Apply plugin Markdown rewrites before destination delivery formatting. */
|
|
51
|
-
export declare function applyPluginFormatMarkdown(text: string): string;
|
|
52
|
-
/** Collect stable plugin prompt contributions for the static system prompt. */
|
|
53
|
-
export declare function getPluginSystemPromptContributions(platform: Platform): Promise<PluginPromptContributionContext[]>;
|
|
54
|
-
/** Collect request-scoped plugin prompt contributions. */
|
|
55
|
-
export declare function getPluginUserPromptContributions(args: {
|
|
56
|
-
context: Pick<ToolRuntimeContext, "conversationId" | "locationId" | "destination" | "actor" | "resolveActorIdentity" | "source" | "userText">;
|
|
57
|
-
turnId?: string;
|
|
58
|
-
}): Promise<PluginPromptContributionContext[]>;
|
|
59
|
-
/** Collect turn-scoped tools exposed by plugins. */
|
|
60
|
-
export declare function getPluginTools(context: ToolRuntimeContext, sandbox?: PluginSandbox): Record<string, AnyToolDefinition>;
|
|
61
|
-
/** Collect route handlers exposed by plugins for app-level mounting. */
|
|
62
|
-
export declare function getPluginRoutes(options: {
|
|
63
|
-
resourceEvents: {
|
|
64
|
-
neededMatchKeys?(input: {
|
|
65
|
-
eventTypes: string[];
|
|
66
|
-
identifiers: string[];
|
|
67
|
-
namespace: string;
|
|
68
|
-
}): Promise<string[]>;
|
|
69
|
-
publish(event: ResourceEvent): Promise<void>;
|
|
70
|
-
};
|
|
71
|
-
}): PluginRouteRegistration[];
|
|
72
|
-
/** Collect authenticated product API route apps exposed by plugins. */
|
|
73
|
-
export declare function getPluginApiRoutes(): PluginApiRouteRegistration[];
|
|
74
|
-
/** Resolve the first plugin conversation URL for finalized Slack footers. */
|
|
75
|
-
export declare function getPluginSlackConversationLink(conversationId: string): SlackConversationLink | undefined;
|
|
76
|
-
/** Collect read-only operational summaries exposed by plugins. */
|
|
77
|
-
export declare function getPluginOperationalReports(nowMs: number): Promise<PluginOperationalReport[]>;
|
|
78
|
-
/** Collect person-scoped plugin reports for one profile subject. */
|
|
79
|
-
export declare function getPluginProfileReports(args: {
|
|
80
|
-
nowMs: number;
|
|
81
|
-
subject: User;
|
|
82
|
-
viewer: User;
|
|
83
|
-
}): Promise<PluginOperationalReport[]>;
|
|
84
|
-
/** Create one runner over runtime hook plugins registered by the app. */
|
|
85
|
-
export declare function createPluginHookRunner(input?: {
|
|
86
|
-
actor?: Actor;
|
|
87
|
-
/** Live getter for the run's committed instruction actors; see `multi-actor-runs.md`. */
|
|
88
|
-
actors?: () => Actor[];
|
|
89
|
-
}): PluginHookRunner;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ConversationAnnotation, type PluginAnnotations } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { JuniorDatabase } from "@/db/db";
|
|
3
|
-
export declare function createPluginAnnotations(args: {
|
|
4
|
-
conversationId: string;
|
|
5
|
-
db: JuniorDatabase;
|
|
6
|
-
plugin: string;
|
|
7
|
-
}): PluginAnnotations;
|
|
8
|
-
/** Load stored annotations for one conversation, newest update first. */
|
|
9
|
-
export declare function listConversationAnnotations(db: JuniorDatabase, conversationId: string): Promise<ConversationAnnotation[]>;
|
|
10
|
-
/** Load stored annotations for a bounded set of conversations. */
|
|
11
|
-
export declare function listConversationAnnotationsById(db: JuniorDatabase, conversationIds: readonly string[]): Promise<Map<string, ConversationAnnotation[]>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CredentialBroker, CredentialHeaderTransform } from "@/chat/credentials/broker";
|
|
2
|
-
import type { PluginManifest } from "@/chat/plugins/types";
|
|
3
|
-
/** Resolve plugin-level API headers into sandbox header transforms. */
|
|
4
|
-
export declare function resolveApiHeaderTransforms(manifest: PluginManifest): CredentialHeaderTransform[];
|
|
5
|
-
/** Issue host-managed API header transforms backed by deployment env vars. */
|
|
6
|
-
export declare function createApiHeadersBroker(manifest: PluginManifest): CredentialBroker;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CredentialBroker } from "@/chat/credentials/broker";
|
|
2
|
-
import type { UserTokenStore } from "@/chat/credentials/user-token-store";
|
|
3
|
-
import type { OAuthBearerCredentials, PluginManifest } from "../types";
|
|
4
|
-
export declare function createOAuthBearerBroker(manifest: PluginManifest, credentials: OAuthBearerCredentials, deps: {
|
|
5
|
-
userTokenStore: UserTokenStore;
|
|
6
|
-
}): CredentialBroker;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
type OAuthTokenRequestInput = {
|
|
3
|
-
clientId: string;
|
|
4
|
-
clientSecret: string;
|
|
5
|
-
payload: Record<string, string>;
|
|
6
|
-
tokenAuthMethod?: "body" | "basic";
|
|
7
|
-
tokenExtraHeaders?: Record<string, string>;
|
|
8
|
-
};
|
|
9
|
-
declare const parsedOAuthTokenResponseSchema: z.ZodObject<{
|
|
10
|
-
accessToken: z.ZodString;
|
|
11
|
-
refreshToken: z.ZodString;
|
|
12
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
refreshTokenExpiresAt: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
15
|
-
}, z.core.$strict>;
|
|
16
|
-
export type OAuthTokenResponse = z.output<typeof parsedOAuthTokenResponseSchema>;
|
|
17
|
-
export declare function buildOAuthTokenRequest(input: OAuthTokenRequestInput): {
|
|
18
|
-
headers: Record<string, string>;
|
|
19
|
-
body: BodyInit;
|
|
20
|
-
};
|
|
21
|
-
/** Parse provider tokens, retaining the request token when a refresh response omits rotation. */
|
|
22
|
-
export declare function parseOAuthTokenResponse(data: unknown, requestedScope?: string, options?: {
|
|
23
|
-
treatEmptyScopeAsUnreported?: boolean;
|
|
24
|
-
refreshToken?: string;
|
|
25
|
-
}): OAuthTokenResponse;
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pluginCatalogRuntime: import("@/chat/plugins/registry").PluginCatalogRuntime;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { PluginConversationEventStats, PluginRegistration } from "@sentry/junior-plugin-api";
|
|
2
|
-
/** Create aggregate event-cost reads bound to one plugin's registered namespace. */
|
|
3
|
-
export declare function createPluginConversationEventStats(plugin: PluginRegistration, now?: () => number): PluginConversationEventStats;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ConversationEventPresentation, PluginConversationEvents, PluginRegistration } from "@sentry/junior-plugin-api";
|
|
2
|
-
/** Create a conversation-bound writer for one plugin operation. */
|
|
3
|
-
export declare function createPluginConversationEvents(args: {
|
|
4
|
-
conversationId: string;
|
|
5
|
-
operationId: string;
|
|
6
|
-
plugin: PluginRegistration;
|
|
7
|
-
turnId: string;
|
|
8
|
-
}): PluginConversationEvents;
|
|
9
|
-
/** Render a stored plugin event through its currently registered definition. */
|
|
10
|
-
export declare function renderPluginConversationEvent(args: {
|
|
11
|
-
content: Record<string, unknown>;
|
|
12
|
-
name: string;
|
|
13
|
-
namespace: string;
|
|
14
|
-
version: number;
|
|
15
|
-
}): ConversationEventPresentation | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type ConversationAnnotation, type ConversationSidebarAnnotation } from "@sentry/junior-plugin-api";
|
|
2
|
-
/** Return plugin-selected sidebar annotations for candidate conversations. */
|
|
3
|
-
export declare function listConversationSidebarAnnotations(conversationIds: string[], annotationsByConversation: Map<string, ConversationAnnotation[]>): Promise<Record<string, ConversationSidebarAnnotation[]>>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type PluginCredentialActor, type PluginCredentialResult, type PluginGrant, type PluginProviderAccount } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { StoredTokens, UserTokenStore } from "@/chat/credentials/user-token-store";
|
|
3
|
-
export interface EgressGrantInput {
|
|
4
|
-
bodyText?: string;
|
|
5
|
-
method: string;
|
|
6
|
-
operation?: string;
|
|
7
|
-
provider: string;
|
|
8
|
-
upstreamUrl: URL;
|
|
9
|
-
}
|
|
10
|
-
/** Ask a plugin which grant an outbound request needs. */
|
|
11
|
-
export declare function selectPluginGrant(input: EgressGrantInput): Promise<PluginGrant | undefined>;
|
|
12
|
-
export interface EgressResponseInput {
|
|
13
|
-
grant: PluginGrant;
|
|
14
|
-
method: string;
|
|
15
|
-
operation?: string;
|
|
16
|
-
provider: string;
|
|
17
|
-
response: {
|
|
18
|
-
headers: Headers;
|
|
19
|
-
readText(maxBytes: number): Promise<string | undefined>;
|
|
20
|
-
status: number;
|
|
21
|
-
};
|
|
22
|
-
upstreamUrl: URL;
|
|
23
|
-
}
|
|
24
|
-
export interface EgressResponseEffects {
|
|
25
|
-
permissionDenied?: {
|
|
26
|
-
message: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/** Let the owning plugin inspect an upstream response without changing pass-through behavior. */
|
|
30
|
-
export declare function onPluginEgressResponse(input: EgressResponseInput): Promise<EgressResponseEffects>;
|
|
31
|
-
/** Return whether a plugin owns credential issuance for egress. */
|
|
32
|
-
export declare function hasEgressCredentialHooks(provider: string): boolean;
|
|
33
|
-
export interface IssueCredentialInput {
|
|
34
|
-
actor: PluginCredentialActor;
|
|
35
|
-
credentialSubject?: {
|
|
36
|
-
type: "user";
|
|
37
|
-
userId: string;
|
|
38
|
-
};
|
|
39
|
-
grant: PluginGrant;
|
|
40
|
-
provider: string;
|
|
41
|
-
userTokenStore: UserTokenStore;
|
|
42
|
-
}
|
|
43
|
-
/** Return providers that can verify an OAuth account for identity storage. */
|
|
44
|
-
export declare function getOAuthAccountProviders(): string[];
|
|
45
|
-
/** Ask a plugin which provider account belongs to an OAuth token. */
|
|
46
|
-
export declare function resolvePluginOAuthAccount(input: {
|
|
47
|
-
provider: string;
|
|
48
|
-
tokens: StoredTokens;
|
|
49
|
-
}): Promise<PluginProviderAccount | undefined>;
|
|
50
|
-
/** Ask a plugin to issue headers or describe why the selected grant is unavailable. */
|
|
51
|
-
export declare function issuePluginCredential(input: IssueCredentialInput): Promise<PluginCredentialResult>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PluginManifest } from "./types";
|
|
2
|
-
type ManifestSource = Record<string, unknown>;
|
|
3
|
-
/** Convert inline JavaScript plugin manifests to the canonical source shape. */
|
|
4
|
-
export declare function inlineManifestSource(manifest: PluginManifest): ManifestSource;
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PluginCatalogConfig, PluginManifest } from "./types";
|
|
2
|
-
/** Parse one plugin.yaml manifest after applying install-level plugin config. */
|
|
3
|
-
export declare function parsePluginManifest(raw: string, dir: string, config?: PluginCatalogConfig): PluginManifest;
|
|
4
|
-
/** Parse one inline JavaScript manifest through the same effective manifest pipeline as plugin.yaml. */
|
|
5
|
-
export declare function parseInlinePluginManifest(manifest: PluginManifest, dir: string, config?: PluginCatalogConfig): PluginManifest;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginEmbedder, PluginModel, PluginModelConfig } from "@sentry/junior-plugin-api";
|
|
2
|
-
/** Create the host-owned structured model capability exposed to plugins. */
|
|
3
|
-
export declare function createPluginModel(pluginName: string, options?: PluginModelConfig, runtime?: {
|
|
4
|
-
signal?: AbortSignal;
|
|
5
|
-
}): PluginModel;
|
|
6
|
-
/** Create the host-owned embedding capability exposed to prompt hooks. */
|
|
7
|
-
export declare function createPluginEmbedder(pluginName: string, runtime?: {
|
|
8
|
-
signal?: AbortSignal;
|
|
9
|
-
}): PluginEmbedder;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface InstalledPluginPackageContent {
|
|
2
|
-
packageNames: string[];
|
|
3
|
-
packages: {
|
|
4
|
-
dir: string;
|
|
5
|
-
hasMigrationsDir: boolean;
|
|
6
|
-
hasSkillsDir: boolean;
|
|
7
|
-
packageName: string;
|
|
8
|
-
}[];
|
|
9
|
-
manifestRoots: string[];
|
|
10
|
-
skillRoots: string[];
|
|
11
|
-
tracingIncludes: string[];
|
|
12
|
-
}
|
|
13
|
-
/** Normalize and validate configured plugin package names. */
|
|
14
|
-
export declare function normalizePluginPackageNames(packageNames: unknown): string[];
|
|
15
|
-
export interface DiscoverInstalledPluginPackageContentOptions {
|
|
16
|
-
nodeModulesDirs?: string[];
|
|
17
|
-
packageNames?: unknown;
|
|
18
|
-
}
|
|
19
|
-
/** Discover plugin package content from explicitly declared package names. */
|
|
20
|
-
export declare function discoverInstalledPluginPackageContent(cwd?: string, options?: DiscoverInstalledPluginPackageContentOptions): InstalledPluginPackageContent;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** Validated plugin context retained for the current turn. */
|
|
2
|
-
export interface PluginTurnContext {
|
|
3
|
-
content: Record<string, unknown>;
|
|
4
|
-
kind: string;
|
|
5
|
-
loadedAtMs: number;
|
|
6
|
-
pluginName: string;
|
|
7
|
-
version: number;
|
|
8
|
-
}
|
|
9
|
-
export interface PluginPromptContributionContext {
|
|
10
|
-
context?: PluginTurnContext;
|
|
11
|
-
id: string;
|
|
12
|
-
pluginName: string;
|
|
13
|
-
text: string;
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { CredentialBroker } from "@/chat/credentials/broker";
|
|
2
|
-
import { type InstalledPluginPackageContent } from "./package-discovery";
|
|
3
|
-
import type { InlinePluginManifestDefinition, PluginBrokerDeps, PluginCatalogConfig, PluginDefinition, OAuthProviderConfig, PluginRuntimeDependency, PluginRuntimePostinstallCommand } from "./types";
|
|
4
|
-
export interface PluginCatalogRuntime {
|
|
5
|
-
createBroker(provider: string, deps: PluginBrokerDeps): CredentialBroker;
|
|
6
|
-
getDefinition(provider: string): PluginDefinition | undefined;
|
|
7
|
-
getDisplayName(provider: string): string | undefined;
|
|
8
|
-
getForSkillPath(skillPath: string): PluginDefinition | undefined;
|
|
9
|
-
getMcpProviders(): PluginDefinition[];
|
|
10
|
-
getMigrationRoots(): {
|
|
11
|
-
dir: string;
|
|
12
|
-
pluginName: string;
|
|
13
|
-
}[];
|
|
14
|
-
getOAuthConfig(provider: string): OAuthProviderConfig | undefined;
|
|
15
|
-
getPackageContent(): InstalledPluginPackageContent;
|
|
16
|
-
getProviders(): PluginDefinition[];
|
|
17
|
-
getRuntimeDependencies(): PluginRuntimeDependency[];
|
|
18
|
-
getRuntimePostinstall(): PluginRuntimePostinstallCommand[];
|
|
19
|
-
getSignature(): string;
|
|
20
|
-
getSkillRoots(): string[];
|
|
21
|
-
isConfigKey(key: string): boolean;
|
|
22
|
-
isProvider(provider: string): boolean;
|
|
23
|
-
parseConfiguredInlineManifest(manifest: InlinePluginManifestDefinition["manifest"], dir: string): PluginDefinition["manifest"];
|
|
24
|
-
setConfig(config: PluginCatalogConfig | undefined): PluginCatalogConfig | undefined;
|
|
25
|
-
}
|
|
26
|
-
/** Create an isolated plugin catalog runtime for explicit app wiring. */
|
|
27
|
-
export declare function createPluginCatalogRuntime(): PluginCatalogRuntime;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Deploy topic name. Keep stable for Vercel queue wiring. */
|
|
3
|
-
export declare const PLUGIN_TASK_QUEUE_TOPIC = "junior_plugin_tasks";
|
|
4
|
-
export declare const pluginTaskParamsSchema: z.ZodObject<{
|
|
5
|
-
conversationId: z.ZodString;
|
|
6
|
-
sessionId: z.ZodString;
|
|
7
|
-
}, z.core.$strict>;
|
|
8
|
-
export type PluginTaskParams = z.output<typeof pluginTaskParamsSchema>;
|
|
9
|
-
export declare const pluginTaskQueueMessageSchema: z.ZodObject<{
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
params: z.ZodObject<{
|
|
12
|
-
conversationId: z.ZodString;
|
|
13
|
-
sessionId: z.ZodString;
|
|
14
|
-
}, z.core.$strict>;
|
|
15
|
-
plugin: z.ZodString;
|
|
16
|
-
}, z.core.$strict>;
|
|
17
|
-
export type PluginTaskQueueMessage = z.output<typeof pluginTaskQueueMessageSchema>;
|
|
18
|
-
/** Build the stable id used for delivery dedupe and tracing. */
|
|
19
|
-
export declare function pluginTaskId(args: {
|
|
20
|
-
name: string;
|
|
21
|
-
params: PluginTaskParams;
|
|
22
|
-
plugin: string;
|
|
23
|
-
}): string;
|
|
24
|
-
/** Sign a plugin task message for tests and local checks. */
|
|
25
|
-
export declare function signPluginTaskQueueMessage(message: PluginTaskQueueMessage, nowMs?: number): {
|
|
26
|
-
name: string;
|
|
27
|
-
params: {
|
|
28
|
-
conversationId: string;
|
|
29
|
-
sessionId: string;
|
|
30
|
-
};
|
|
31
|
-
plugin: string;
|
|
32
|
-
} & {
|
|
33
|
-
signature: string;
|
|
34
|
-
signatureVersion: "v1";
|
|
35
|
-
signedAtMs: number;
|
|
36
|
-
};
|
|
37
|
-
/** Send one plugin task through the shared signed delivery path. */
|
|
38
|
-
export declare function sendVercelPluginTask(message: PluginTaskQueueMessage): Promise<void>;
|
|
39
|
-
/** Create the HTTP callback for plugin tasks. */
|
|
40
|
-
export declare function createVercelPluginTaskCallback(): (request: Request) => Promise<Response>;
|
|
41
|
-
/** Register the local-dev consumer for plugin tasks. */
|
|
42
|
-
export declare function registerVercelPluginTaskDevConsumer(): (() => void) | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type PluginTaskParams, type PluginTaskQueueMessage } from "./task-queue";
|
|
2
|
-
export interface ScheduleSessionCompletedPluginTasksOptions {
|
|
3
|
-
send?: (message: PluginTaskQueueMessage) => Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
interface ProcessPluginTaskOptions {
|
|
6
|
-
signal?: AbortSignal;
|
|
7
|
-
}
|
|
8
|
-
/** Schedule all plugin tasks interested in a completed agent-run session. */
|
|
9
|
-
export declare function scheduleSessionCompletedPluginTasks(params: PluginTaskParams, options?: ScheduleSessionCompletedPluginTasksOptions): Promise<void>;
|
|
10
|
-
/** Execute one parsed plugin task request. */
|
|
11
|
-
export declare function processPluginTask(message: PluginTaskQueueMessage, options?: ProcessPluginTaskOptions): Promise<void>;
|
|
12
|
-
export {};
|