@sentry/junior 0.178.0 → 0.180.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-PBT4NNBV.js → agent-hooks-DKDDRKZA.js} +16 -18
- package/dist/api/schema.js +0 -1
- package/dist/api.js +401 -366
- package/dist/app.d.ts +4 -0
- package/dist/app.js +783 -1367
- package/dist/catalog-runtime-WXKGUF3W.js +14 -0
- package/dist/chat/agent/sandbox.d.ts +0 -2
- package/dist/chat/api-turns/routing.d.ts +4 -0
- package/dist/chat/api-turns/work.d.ts +5 -0
- package/dist/chat/config.d.ts +5 -2
- package/dist/chat/configuration/defaults.d.ts +1 -1
- package/dist/chat/conversations/projection.d.ts +6 -4
- package/dist/chat/ingress/message-router.d.ts +3 -0
- package/dist/chat/model-profile.d.ts +8 -10
- package/dist/chat/pi/conversation-events.d.ts +3 -2
- package/dist/chat/plugins/task-queue.d.ts +40 -3
- package/dist/chat/plugins/task-runner.d.ts +1 -1
- package/dist/chat/queue/callback.d.ts +26 -0
- package/dist/chat/queue/sign.d.ts +30 -0
- package/dist/chat/sandbox/sandbox.d.ts +0 -2
- package/dist/chat/sandbox/session.d.ts +0 -2
- package/dist/chat/sandbox/skill-sync.d.ts +1 -1
- package/dist/chat/sandbox/snapshot/events.d.ts +23 -0
- package/dist/chat/sandbox/snapshot/job-callback.d.ts +5 -0
- package/dist/chat/sandbox/snapshot/job-queue.d.ts +26 -0
- package/dist/chat/sandbox/snapshot/job-runner.d.ts +11 -0
- package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +6 -0
- package/dist/chat/sandbox/snapshot/workspace.d.ts +9 -3
- package/dist/chat/scheduled-tasks/personal.d.ts +5 -8
- package/dist/chat/scheduled-tasks/runs.d.ts +49 -0
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +1 -1
- package/dist/chat/scheduled-tasks/tasks.d.ts +27 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -4
- package/dist/chat/scheduled-tasks/tools/create.d.ts +1 -1
- package/dist/chat/scheduled-tasks/tools/update.d.ts +1 -1
- package/dist/chat/scheduled-tasks/types.d.ts +127 -78
- package/dist/chat/services/turn-router.d.ts +4 -3
- package/dist/chat/task-execution/queue-signing.d.ts +10 -21
- package/dist/chat/task-execution/state.d.ts +48 -0
- package/dist/chat/task-execution/store.d.ts +28 -2
- package/dist/chat/task-execution/worker.d.ts +4 -1
- package/dist/chat/tools/handoff/tool.d.ts +1 -1
- package/dist/{chunk-534BO42N.js → chunk-2AYEVN7K.js} +8 -8
- package/dist/{chunk-D3UJTX4U.js → chunk-2YIRH4E3.js} +46 -46
- package/dist/{chunk-4K6VNP3S.js → chunk-3ILJBWP7.js} +35 -227
- package/dist/{chunk-FQ6BMP5P.js → chunk-5PUMIMNQ.js} +2724 -1257
- package/dist/{chunk-G3CQEUHI.js → chunk-5TUR4M3M.js} +8 -61
- package/dist/{chunk-6ZWRNC4D.js → chunk-6Y5B5PEX.js} +1 -1
- package/dist/{chunk-KEQAA42D.js → chunk-6YCEWOLO.js} +4 -4
- package/dist/chunk-7H2VZTWN.js +103 -0
- package/dist/{chunk-22T3HB44.js → chunk-CCDXTDSY.js} +8 -8
- package/dist/{chunk-CGA4ERJ5.js → chunk-CEMMLV5L.js} +1 -1
- package/dist/chunk-CK6EINVZ.js +1181 -0
- package/dist/{chunk-FIANEE7Z.js → chunk-CM5HNV2W.js} +6 -6
- package/dist/{chunk-PRDKO3QB.js → chunk-CP73FKME.js} +144 -218
- package/dist/{chunk-XWUJWHFD.js → chunk-DHLOGWYH.js} +36 -36
- package/dist/chunk-DKIJ2RP5.js +68 -0
- package/dist/{chunk-ABLODWPO.js → chunk-DRHEGXTZ.js} +1 -1
- package/dist/{chunk-OOUNJNMR.js → chunk-DWPN6SCH.js} +1 -1
- package/dist/chunk-EWHP2IRG.js +209 -0
- package/dist/{chunk-ZCHHVTMF.js → chunk-FGC3PHNH.js} +3 -3
- package/dist/{chunk-H6ZXBFGX.js → chunk-GA5NS74S.js} +1 -1
- package/dist/{chunk-BFLMRTPD.js → chunk-GPXAHUQH.js} +84 -274
- package/dist/chunk-GUKXEPMX.js +218 -0
- package/dist/{chunk-3ZZEPLLB.js → chunk-I6IFTAPF.js} +108 -76
- package/dist/{chunk-RGXOLPWO.js → chunk-IANUX7HX.js} +5 -5
- package/dist/{chunk-UMG7M32G.js → chunk-KCL6AWYW.js} +74 -68
- package/dist/{chunk-BUGO42R6.js → chunk-L7LTGN4Z.js} +129 -31
- package/dist/{chunk-QCCLDJHB.js → chunk-LGVQLNLS.js} +42 -41
- package/dist/chunk-M3QYTBQ6.js +55 -0
- package/dist/{chunk-AVRWMQ4U.js → chunk-MXEUIGHO.js} +2 -2
- package/dist/{chunk-M63DETLL.js → chunk-N7TMSOZH.js} +6 -6
- package/dist/{chunk-JVXZ3WDH.js → chunk-O4QYZTDK.js} +33 -32
- package/dist/chunk-PEQXYSSE.js +45 -0
- package/dist/{chunk-OGRD5PFM.js → chunk-QSO7B5JO.js} +1 -1
- package/dist/{chunk-UGWBJAGN.js → chunk-RAZG3YHC.js} +100 -79
- package/dist/{chunk-XCNS3CXE.js → chunk-S7YRTOSQ.js} +69 -73
- package/dist/{chunk-LAOP4EPL.js → chunk-SDBKZ5LV.js} +108 -5
- package/dist/{chunk-RE4XWXBV.js → chunk-TC5DE5KJ.js} +22 -18
- package/dist/{chunk-H4HBKISO.js → chunk-TXKUKMVO.js} +1 -1
- package/dist/chunk-U5EUCUBH.js +164 -0
- package/dist/{chunk-BHHWCNXI.js → chunk-VG722ONZ.js} +18 -16
- package/dist/{chunk-U3UDPGZG.js → chunk-VGPPWWHF.js} +16 -16
- package/dist/{chunk-AQHSXA3J.js → chunk-WVAMRKYG.js} +9 -54
- package/dist/chunk-X6GDDWQH.js +60 -0
- package/dist/{chunk-6OYVH66J.js → chunk-ZE2KOV3G.js} +1 -1
- package/dist/{chunk-IQRPDKPJ.js → chunk-ZM7ZURJS.js} +4 -3
- package/dist/cli/chat.js +47 -43
- package/dist/cli/check.js +13 -15
- package/dist/cli/env.js +0 -1
- package/dist/cli/init.js +0 -1
- package/dist/cli/main.js +2 -3
- package/dist/cli/plugins.js +18 -20
- package/dist/cli/run.js +0 -1
- package/dist/cli/snapshot-create.js +14 -16
- package/dist/cli/upgrade.js +16 -18
- package/dist/{conversation-work-KATFHLG3.js → conversation-work-VIOQ5ZF3.js} +0 -2
- package/dist/db/schema/scheduled-tasks.d.ts +29 -5
- package/dist/db/schema.d.ts +28 -4
- package/dist/{db-QVYOWATH.js → db-6SBHIAJK.js} +8 -10
- package/dist/deployment.d.ts +1 -0
- package/dist/{discovery-GUFTFBTL.js → discovery-DWVDM7UK.js} +1 -2
- package/dist/{experimental-XVDOSRBS.js → experimental-SIJSRDJD.js} +0 -1
- package/dist/instrumentation.js +7 -9
- package/dist/nitro.js +39 -13
- package/dist/{oauth-callback-server-PLPAFXO6.js → oauth-callback-server-WSDQPZZS.js} +34 -32
- package/dist/{oauth-relay-3ZU72UGL.js → oauth-relay-5XPVRPYB.js} +0 -1
- package/dist/{plugins-HW4VWW6G.js → plugins-YTYJMMJF.js} +1 -2
- package/dist/{runner-AGNEIOZS.js → runner-GWTSWESR.js} +39 -33
- package/dist/{sandbox-egress-signals-DXOOBSBI.js → sandbox-egress-signals-FIL7EGPR.js} +5 -6
- package/dist/{sentry-JMWTS32N.js → sentry-MB3NL3IR.js} +1 -2
- package/dist/skills-F32BPFYW.js +27 -0
- package/dist/spawn-X5BPP5OE.js +37 -0
- package/dist/task-runner-2FPBV5PP.js +32 -0
- package/dist/validation-62WO524A.js +17 -0
- package/dist/vercel.js +0 -1
- package/dist/version.js +1 -2
- package/dist/work-3C3CMZ24.js +45 -0
- package/dist/worker-MFAI6ZEK.js +22 -0
- package/package.json +7 -6
- package/dist/catalog-runtime-M7QGKPFZ.js +0 -16
- package/dist/chat/plugins/task-callback.d.ts +0 -5
- package/dist/chat/plugins/task-message.d.ts +0 -23
- package/dist/chat/plugins/task-signing.d.ts +0 -31
- package/dist/chat/sandbox/snapshot/waiting-error.d.ts +0 -15
- package/dist/chat/scheduled-tasks/store.d.ts +0 -78
- package/dist/chat/services/workspace-snapshot-wait.d.ts +0 -27
- package/dist/chunk-5I6ORJUY.js +0 -127
- package/dist/chunk-6GWA276C.js +0 -72
- package/dist/chunk-AGJ4OQ2V.js +0 -51
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/chunk-RGV6KHDM.js +0 -1944
- package/dist/chunk-WR76IVA5.js +0 -130
- package/dist/skills-U5KQ66EM.js +0 -29
- package/dist/spawn-ZRYYZP2B.js +0 -37
- package/dist/validation-QE4U45KS.js +0 -19
- package/dist/work-ATAXAHJJ.js +0 -45
- package/dist/worker-LIL5AOER.js +0 -24
|
@@ -4,8 +4,7 @@ import {
|
|
|
4
4
|
pluginCatalogConfigFromPluginSet,
|
|
5
5
|
pluginCliRegistrationsFromPluginSet,
|
|
6
6
|
pluginRuntimeRegistrationsFromPluginSet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-MLKGABMK.js";
|
|
7
|
+
} from "./chunk-CM5HNV2W.js";
|
|
9
8
|
export {
|
|
10
9
|
defineJuniorPlugins,
|
|
11
10
|
pluginCatalogConfigFromEnv,
|
|
@@ -1,69 +1,75 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDeliveredTurnStatePatch,
|
|
3
3
|
completeAuthPauseTurn,
|
|
4
|
-
finalizeFailedTurnReplyWithEvent
|
|
4
|
+
finalizeFailedTurnReplyWithEvent
|
|
5
|
+
} from "./chunk-EWHP2IRG.js";
|
|
6
|
+
import {
|
|
5
7
|
processPluginTask,
|
|
6
8
|
scheduleSessionCompletedPluginTasks
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3ILJBWP7.js";
|
|
10
|
+
import {
|
|
11
|
+
ConversationTurnLifecycleService
|
|
12
|
+
} from "./chunk-M3QYTBQ6.js";
|
|
8
13
|
import {
|
|
9
|
-
ConversationTurnLifecycleService,
|
|
10
14
|
coerceThreadConversationState,
|
|
11
15
|
getPersistedSandboxState,
|
|
12
16
|
getPersistedThreadState,
|
|
13
17
|
persistThreadStateById
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-5TUR4M3M.js";
|
|
19
|
+
import "./chunk-U5EUCUBH.js";
|
|
16
20
|
import {
|
|
17
21
|
authorizationId
|
|
18
22
|
} from "./chunk-DIB4GX3G.js";
|
|
23
|
+
import {
|
|
24
|
+
getAssistantReplyText,
|
|
25
|
+
markTurnFailed,
|
|
26
|
+
startActiveTurn
|
|
27
|
+
} from "./chunk-GUKXEPMX.js";
|
|
19
28
|
import {
|
|
20
29
|
buildConversationContext,
|
|
21
30
|
commitAcceptedReply,
|
|
22
|
-
getAssistantReplyText,
|
|
23
31
|
hydrateConversationMessages,
|
|
24
32
|
loadProjection,
|
|
25
33
|
markConversationMessage,
|
|
26
|
-
markTurnFailed,
|
|
27
34
|
normalizeConversationText,
|
|
28
35
|
persistConversationMessages,
|
|
29
36
|
persistWithRetry,
|
|
30
37
|
recordAuthorizationCompleted,
|
|
31
38
|
recordDeliveredAssistantMessage,
|
|
32
39
|
saveTurnCheckpoint,
|
|
33
|
-
startActiveTurn,
|
|
34
40
|
stripRuntimeTurnContext,
|
|
35
41
|
upsertConversationMessage
|
|
36
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GPXAHUQH.js";
|
|
37
43
|
import "./chunk-PDO5BLNM.js";
|
|
38
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-7H2VZTWN.js";
|
|
45
|
+
import "./chunk-ZE2KOV3G.js";
|
|
46
|
+
import "./chunk-DHLOGWYH.js";
|
|
39
47
|
import "./chunk-3Y47VMHV.js";
|
|
40
48
|
import {
|
|
41
49
|
getConversationEventStore,
|
|
42
50
|
getConversationStore
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-3ZZEPLLB.js";
|
|
51
|
+
} from "./chunk-S7YRTOSQ.js";
|
|
52
|
+
import "./chunk-FGC3PHNH.js";
|
|
53
|
+
import "./chunk-WVAMRKYG.js";
|
|
54
|
+
import "./chunk-GA5NS74S.js";
|
|
48
55
|
import "./chunk-VFUK3X5B.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-I6IFTAPF.js";
|
|
57
|
+
import "./chunk-6YCEWOLO.js";
|
|
58
|
+
import "./chunk-DRHEGXTZ.js";
|
|
59
|
+
import "./chunk-2YIRH4E3.js";
|
|
52
60
|
import {
|
|
53
61
|
credentialContextForActor
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-CEMMLV5L.js";
|
|
63
|
+
import "./chunk-N7TMSOZH.js";
|
|
64
|
+
import "./chunk-DWPN6SCH.js";
|
|
65
|
+
import "./chunk-TXKUKMVO.js";
|
|
56
66
|
import {
|
|
57
67
|
logException,
|
|
58
68
|
setTags,
|
|
59
69
|
withLogContext
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-H4HBKISO.js";
|
|
64
|
-
import "./chunk-AGJ4OQ2V.js";
|
|
65
|
-
import "./chunk-IQRPDKPJ.js";
|
|
66
|
-
import "./chunk-MLKGABMK.js";
|
|
70
|
+
} from "./chunk-RAZG3YHC.js";
|
|
71
|
+
import "./chunk-PEQXYSSE.js";
|
|
72
|
+
import "./chunk-ZM7ZURJS.js";
|
|
67
73
|
|
|
68
74
|
// src/chat/local/runner.ts
|
|
69
75
|
import { randomUUID } from "crypto";
|
|
@@ -97,7 +103,7 @@ function localRunId() {
|
|
|
97
103
|
function captureLocalBoundaryFailure(args) {
|
|
98
104
|
setTags({
|
|
99
105
|
conversationId: args.conversationId,
|
|
100
|
-
...args.runId ? { runId: args.runId } :
|
|
106
|
+
...args.runId ? { runId: args.runId } : void 0
|
|
101
107
|
});
|
|
102
108
|
const eventId = args.capture(
|
|
103
109
|
args.error,
|
|
@@ -265,7 +271,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
265
271
|
source,
|
|
266
272
|
surface: "internal",
|
|
267
273
|
authorization,
|
|
268
|
-
...deps.authorization ?
|
|
274
|
+
...deps.authorization ? void 0 : { disabledFeatures: ["interactive-auth"] },
|
|
269
275
|
environment: {
|
|
270
276
|
sandboxEgressSignals: deps.sandboxEgressSignals
|
|
271
277
|
},
|
|
@@ -392,7 +398,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
392
398
|
await lifecycle.fail({
|
|
393
399
|
conversationId: input.conversationId,
|
|
394
400
|
createdAtMs: Date.now(),
|
|
395
|
-
...persistenceEventId ? { eventId: persistenceEventId } :
|
|
401
|
+
...persistenceEventId ? { eventId: persistenceEventId } : void 0,
|
|
396
402
|
failureCode: "persistence_failed",
|
|
397
403
|
turnId
|
|
398
404
|
});
|
|
@@ -404,7 +410,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
404
410
|
await lifecycle.fail({
|
|
405
411
|
conversationId: input.conversationId,
|
|
406
412
|
createdAtMs: Date.now(),
|
|
407
|
-
...failureEventId ? { eventId: failureEventId } :
|
|
413
|
+
...failureEventId ? { eventId: failureEventId } : void 0,
|
|
408
414
|
failureCode,
|
|
409
415
|
turnId
|
|
410
416
|
});
|
|
@@ -442,7 +448,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
442
448
|
await lifecycle.fail({
|
|
443
449
|
conversationId: input.conversationId,
|
|
444
450
|
createdAtMs: Date.now(),
|
|
445
|
-
...persistenceEventId ? { eventId: persistenceEventId } :
|
|
451
|
+
...persistenceEventId ? { eventId: persistenceEventId } : void 0,
|
|
446
452
|
failureCode: "persistence_failed",
|
|
447
453
|
turnId
|
|
448
454
|
});
|
|
@@ -459,7 +465,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
459
465
|
await lifecycle.fail({
|
|
460
466
|
conversationId: input.conversationId,
|
|
461
467
|
createdAtMs: Date.now(),
|
|
462
|
-
...modelFailureEventId ? { eventId: modelFailureEventId } :
|
|
468
|
+
...modelFailureEventId ? { eventId: modelFailureEventId } : void 0,
|
|
463
469
|
failureCode: "model_execution_failed",
|
|
464
470
|
turnId
|
|
465
471
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sandboxEgressSignalsResponseSchema
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-MLKGABMK.js";
|
|
3
|
+
} from "./chunk-6Y5B5PEX.js";
|
|
4
|
+
import "./chunk-CEMMLV5L.js";
|
|
5
|
+
import "./chunk-N7TMSOZH.js";
|
|
7
6
|
|
|
8
7
|
// src/chat/local/sandbox-egress-signals.ts
|
|
9
8
|
var SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
@@ -63,8 +62,8 @@ function createLocalSandboxEgressSignalTransport(baseUrl) {
|
|
|
63
62
|
const authRequired = value.data.auth_required;
|
|
64
63
|
const permissionDenied = value.data.permission_denied;
|
|
65
64
|
return {
|
|
66
|
-
...authRequired ? { authRequired } :
|
|
67
|
-
...permissionDenied ? { permissionDenied } :
|
|
65
|
+
...authRequired ? { authRequired } : void 0,
|
|
66
|
+
...permissionDenied ? { permissionDenied } : void 0
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
69
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
discoverSkills,
|
|
3
|
+
findSkillByName,
|
|
4
|
+
loadSkillsByName,
|
|
5
|
+
parseSkillFile,
|
|
6
|
+
parseSkillInvocation,
|
|
7
|
+
resetSkillDiscoveryCache,
|
|
8
|
+
stripFrontmatter
|
|
9
|
+
} from "./chunk-VGPPWWHF.js";
|
|
10
|
+
import "./chunk-DRHEGXTZ.js";
|
|
11
|
+
import "./chunk-2YIRH4E3.js";
|
|
12
|
+
import "./chunk-CEMMLV5L.js";
|
|
13
|
+
import "./chunk-N7TMSOZH.js";
|
|
14
|
+
import "./chunk-DWPN6SCH.js";
|
|
15
|
+
import "./chunk-TXKUKMVO.js";
|
|
16
|
+
import "./chunk-RAZG3YHC.js";
|
|
17
|
+
import "./chunk-PEQXYSSE.js";
|
|
18
|
+
import "./chunk-ZM7ZURJS.js";
|
|
19
|
+
export {
|
|
20
|
+
discoverSkills,
|
|
21
|
+
findSkillByName,
|
|
22
|
+
loadSkillsByName,
|
|
23
|
+
parseSkillFile,
|
|
24
|
+
parseSkillInvocation,
|
|
25
|
+
resetSkillDiscoveryCache,
|
|
26
|
+
stripFrontmatter
|
|
27
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bindSpawnAgent
|
|
3
|
+
} from "./chunk-IANUX7HX.js";
|
|
4
|
+
import "./chunk-TC5DE5KJ.js";
|
|
5
|
+
import "./chunk-M3QYTBQ6.js";
|
|
6
|
+
import "./chunk-5TUR4M3M.js";
|
|
7
|
+
import "./chunk-VG722ONZ.js";
|
|
8
|
+
import "./chunk-6Y5B5PEX.js";
|
|
9
|
+
import "./chunk-DIB4GX3G.js";
|
|
10
|
+
import "./chunk-RF6J3DIO.js";
|
|
11
|
+
import "./chunk-O4QYZTDK.js";
|
|
12
|
+
import "./chunk-L7LTGN4Z.js";
|
|
13
|
+
import "./chunk-GUKXEPMX.js";
|
|
14
|
+
import "./chunk-GPXAHUQH.js";
|
|
15
|
+
import "./chunk-PDO5BLNM.js";
|
|
16
|
+
import "./chunk-JAL3CH4G.js";
|
|
17
|
+
import "./chunk-DHLOGWYH.js";
|
|
18
|
+
import "./chunk-3Y47VMHV.js";
|
|
19
|
+
import "./chunk-S7YRTOSQ.js";
|
|
20
|
+
import "./chunk-FGC3PHNH.js";
|
|
21
|
+
import "./chunk-WVAMRKYG.js";
|
|
22
|
+
import "./chunk-GA5NS74S.js";
|
|
23
|
+
import "./chunk-VFUK3X5B.js";
|
|
24
|
+
import "./chunk-I6IFTAPF.js";
|
|
25
|
+
import "./chunk-6YCEWOLO.js";
|
|
26
|
+
import "./chunk-DRHEGXTZ.js";
|
|
27
|
+
import "./chunk-2YIRH4E3.js";
|
|
28
|
+
import "./chunk-CEMMLV5L.js";
|
|
29
|
+
import "./chunk-N7TMSOZH.js";
|
|
30
|
+
import "./chunk-DWPN6SCH.js";
|
|
31
|
+
import "./chunk-TXKUKMVO.js";
|
|
32
|
+
import "./chunk-RAZG3YHC.js";
|
|
33
|
+
import "./chunk-PEQXYSSE.js";
|
|
34
|
+
import "./chunk-ZM7ZURJS.js";
|
|
35
|
+
export {
|
|
36
|
+
bindSpawnAgent
|
|
37
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
processPluginTask,
|
|
3
|
+
scheduleSessionCompletedPluginTasks
|
|
4
|
+
} from "./chunk-3ILJBWP7.js";
|
|
5
|
+
import "./chunk-5TUR4M3M.js";
|
|
6
|
+
import "./chunk-U5EUCUBH.js";
|
|
7
|
+
import "./chunk-GPXAHUQH.js";
|
|
8
|
+
import "./chunk-PDO5BLNM.js";
|
|
9
|
+
import "./chunk-7H2VZTWN.js";
|
|
10
|
+
import "./chunk-ZE2KOV3G.js";
|
|
11
|
+
import "./chunk-DHLOGWYH.js";
|
|
12
|
+
import "./chunk-3Y47VMHV.js";
|
|
13
|
+
import "./chunk-S7YRTOSQ.js";
|
|
14
|
+
import "./chunk-FGC3PHNH.js";
|
|
15
|
+
import "./chunk-WVAMRKYG.js";
|
|
16
|
+
import "./chunk-GA5NS74S.js";
|
|
17
|
+
import "./chunk-VFUK3X5B.js";
|
|
18
|
+
import "./chunk-I6IFTAPF.js";
|
|
19
|
+
import "./chunk-6YCEWOLO.js";
|
|
20
|
+
import "./chunk-DRHEGXTZ.js";
|
|
21
|
+
import "./chunk-2YIRH4E3.js";
|
|
22
|
+
import "./chunk-CEMMLV5L.js";
|
|
23
|
+
import "./chunk-N7TMSOZH.js";
|
|
24
|
+
import "./chunk-DWPN6SCH.js";
|
|
25
|
+
import "./chunk-TXKUKMVO.js";
|
|
26
|
+
import "./chunk-RAZG3YHC.js";
|
|
27
|
+
import "./chunk-PEQXYSSE.js";
|
|
28
|
+
import "./chunk-ZM7ZURJS.js";
|
|
29
|
+
export {
|
|
30
|
+
processPluginTask,
|
|
31
|
+
scheduleSessionCompletedPluginTasks
|
|
32
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validatePluginEgressCredentialHooks,
|
|
3
|
+
validatePluginRegistrations
|
|
4
|
+
} from "./chunk-QSO7B5JO.js";
|
|
5
|
+
import "./chunk-DRHEGXTZ.js";
|
|
6
|
+
import "./chunk-2YIRH4E3.js";
|
|
7
|
+
import "./chunk-CEMMLV5L.js";
|
|
8
|
+
import "./chunk-N7TMSOZH.js";
|
|
9
|
+
import "./chunk-DWPN6SCH.js";
|
|
10
|
+
import "./chunk-TXKUKMVO.js";
|
|
11
|
+
import "./chunk-RAZG3YHC.js";
|
|
12
|
+
import "./chunk-PEQXYSSE.js";
|
|
13
|
+
import "./chunk-ZM7ZURJS.js";
|
|
14
|
+
export {
|
|
15
|
+
validatePluginEgressCredentialHooks,
|
|
16
|
+
validatePluginRegistrations
|
|
17
|
+
};
|
package/dist/vercel.js
CHANGED
package/dist/version.js
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildAgentInvocationInboundMessage,
|
|
3
|
+
createAgentInvocationWorker,
|
|
4
|
+
createAndEnqueueAgentInvocation,
|
|
5
|
+
enqueueAgentInvocation,
|
|
6
|
+
resolveAgentInvocationId,
|
|
7
|
+
routeAgentInvocationWork
|
|
8
|
+
} from "./chunk-TC5DE5KJ.js";
|
|
9
|
+
import "./chunk-M3QYTBQ6.js";
|
|
10
|
+
import "./chunk-5TUR4M3M.js";
|
|
11
|
+
import "./chunk-VG722ONZ.js";
|
|
12
|
+
import "./chunk-6Y5B5PEX.js";
|
|
13
|
+
import "./chunk-DIB4GX3G.js";
|
|
14
|
+
import "./chunk-O4QYZTDK.js";
|
|
15
|
+
import "./chunk-L7LTGN4Z.js";
|
|
16
|
+
import "./chunk-GUKXEPMX.js";
|
|
17
|
+
import "./chunk-GPXAHUQH.js";
|
|
18
|
+
import "./chunk-PDO5BLNM.js";
|
|
19
|
+
import "./chunk-JAL3CH4G.js";
|
|
20
|
+
import "./chunk-DHLOGWYH.js";
|
|
21
|
+
import "./chunk-3Y47VMHV.js";
|
|
22
|
+
import "./chunk-S7YRTOSQ.js";
|
|
23
|
+
import "./chunk-FGC3PHNH.js";
|
|
24
|
+
import "./chunk-WVAMRKYG.js";
|
|
25
|
+
import "./chunk-GA5NS74S.js";
|
|
26
|
+
import "./chunk-VFUK3X5B.js";
|
|
27
|
+
import "./chunk-I6IFTAPF.js";
|
|
28
|
+
import "./chunk-6YCEWOLO.js";
|
|
29
|
+
import "./chunk-DRHEGXTZ.js";
|
|
30
|
+
import "./chunk-2YIRH4E3.js";
|
|
31
|
+
import "./chunk-CEMMLV5L.js";
|
|
32
|
+
import "./chunk-N7TMSOZH.js";
|
|
33
|
+
import "./chunk-DWPN6SCH.js";
|
|
34
|
+
import "./chunk-TXKUKMVO.js";
|
|
35
|
+
import "./chunk-RAZG3YHC.js";
|
|
36
|
+
import "./chunk-PEQXYSSE.js";
|
|
37
|
+
import "./chunk-ZM7ZURJS.js";
|
|
38
|
+
export {
|
|
39
|
+
buildAgentInvocationInboundMessage,
|
|
40
|
+
createAgentInvocationWorker,
|
|
41
|
+
createAndEnqueueAgentInvocation,
|
|
42
|
+
enqueueAgentInvocation,
|
|
43
|
+
resolveAgentInvocationId,
|
|
44
|
+
routeAgentInvocationWork
|
|
45
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
3
|
+
processConversationWork
|
|
4
|
+
} from "./chunk-SDBKZ5LV.js";
|
|
5
|
+
import "./chunk-L7LTGN4Z.js";
|
|
6
|
+
import "./chunk-JAL3CH4G.js";
|
|
7
|
+
import "./chunk-ZE2KOV3G.js";
|
|
8
|
+
import "./chunk-3Y47VMHV.js";
|
|
9
|
+
import "./chunk-S7YRTOSQ.js";
|
|
10
|
+
import "./chunk-FGC3PHNH.js";
|
|
11
|
+
import "./chunk-GA5NS74S.js";
|
|
12
|
+
import "./chunk-VFUK3X5B.js";
|
|
13
|
+
import "./chunk-I6IFTAPF.js";
|
|
14
|
+
import "./chunk-6YCEWOLO.js";
|
|
15
|
+
import "./chunk-N7TMSOZH.js";
|
|
16
|
+
import "./chunk-RAZG3YHC.js";
|
|
17
|
+
import "./chunk-PEQXYSSE.js";
|
|
18
|
+
import "./chunk-ZM7ZURJS.js";
|
|
19
|
+
export {
|
|
20
|
+
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
21
|
+
processConversationWork
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.180.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -85,12 +85,13 @@
|
|
|
85
85
|
"pg": "^8.16.3",
|
|
86
86
|
"yaml": "^2.9.0",
|
|
87
87
|
"zod": "^4.4.3",
|
|
88
|
-
"@sentry/junior-plugin-api": "0.
|
|
88
|
+
"@sentry/junior-plugin-api": "0.180.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@hono/node-server": "1.19.14",
|
|
92
91
|
"@emnapi/core": "^1.10.0",
|
|
93
92
|
"@emnapi/runtime": "^1.10.0",
|
|
93
|
+
"@hono/node-server": "1.19.14",
|
|
94
|
+
"@oxlint/plugins": "1.79.0",
|
|
94
95
|
"@types/node": "^25.9.1",
|
|
95
96
|
"@types/pg": "^8.15.6",
|
|
96
97
|
"@vitest/coverage-v8": "4.1.7",
|
|
@@ -98,13 +99,13 @@
|
|
|
98
99
|
"drizzle-kit": "^0.31.8",
|
|
99
100
|
"msw": "^2.14.6",
|
|
100
101
|
"nitro": "3.0.260522-beta",
|
|
101
|
-
"oxlint": "^1.
|
|
102
|
+
"oxlint": "^1.79.0",
|
|
102
103
|
"tsup": "^8.5.1",
|
|
103
104
|
"typescript": "^6.0.3",
|
|
104
105
|
"vercel": "^54.4.0",
|
|
105
106
|
"vitest": "^4.1.7",
|
|
106
|
-
"@sentry/junior-github": "0.
|
|
107
|
-
"@sentry/junior-memory": "0.
|
|
107
|
+
"@sentry/junior-github": "0.180.0",
|
|
108
|
+
"@sentry/junior-memory": "0.180.0",
|
|
108
109
|
"@sentry/junior-testing": "0.0.0"
|
|
109
110
|
},
|
|
110
111
|
"scripts": {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-ABLODWPO.js";
|
|
4
|
-
import "./chunk-D3UJTX4U.js";
|
|
5
|
-
import "./chunk-CGA4ERJ5.js";
|
|
6
|
-
import "./chunk-M63DETLL.js";
|
|
7
|
-
import "./chunk-UGWBJAGN.js";
|
|
8
|
-
import "./chunk-6GWA276C.js";
|
|
9
|
-
import "./chunk-OOUNJNMR.js";
|
|
10
|
-
import "./chunk-H4HBKISO.js";
|
|
11
|
-
import "./chunk-AGJ4OQ2V.js";
|
|
12
|
-
import "./chunk-IQRPDKPJ.js";
|
|
13
|
-
import "./chunk-MLKGABMK.js";
|
|
14
|
-
export {
|
|
15
|
-
pluginCatalogRuntime
|
|
16
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const PLUGIN_TASK_DEV_CONSUMER_GROUP = "junior_plugin_tasks_dev";
|
|
2
|
-
/** Create the Vercel Queue push callback for plugin background tasks. */
|
|
3
|
-
export declare function createVercelPluginTaskCallback(): (request: Request) => Promise<Response>;
|
|
4
|
-
/** Register the Vercel Queue local-dev consumer for plugin background tasks. */
|
|
5
|
-
export declare function registerVercelPluginTaskDevConsumer(): (() => void) | undefined;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const pluginTaskParamsSchema: z.ZodObject<{
|
|
3
|
-
conversationId: z.ZodString;
|
|
4
|
-
sessionId: z.ZodString;
|
|
5
|
-
}, z.core.$strict>;
|
|
6
|
-
export type PluginTaskParams = z.output<typeof pluginTaskParamsSchema>;
|
|
7
|
-
export declare const pluginTaskQueueMessageSchema: z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
params: z.ZodObject<{
|
|
10
|
-
conversationId: z.ZodString;
|
|
11
|
-
sessionId: z.ZodString;
|
|
12
|
-
}, z.core.$strict>;
|
|
13
|
-
plugin: z.ZodString;
|
|
14
|
-
}, z.core.$strict>;
|
|
15
|
-
export type PluginTaskQueueMessage = z.output<typeof pluginTaskQueueMessageSchema>;
|
|
16
|
-
/** Build the stable task id used for queue idempotency and tracing. */
|
|
17
|
-
export declare function pluginTaskId(args: {
|
|
18
|
-
name: string;
|
|
19
|
-
params: PluginTaskParams;
|
|
20
|
-
plugin: string;
|
|
21
|
-
}): string;
|
|
22
|
-
/** Parse the bounded queue payload accepted by the plugin task callback. */
|
|
23
|
-
export declare function parsePluginTaskQueueMessage(value: unknown): PluginTaskQueueMessage | undefined;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type PluginTaskQueueMessage } from "./task-message";
|
|
3
|
-
export declare const PLUGIN_TASK_QUEUE_SIGNATURE_MAX_SKEW_MS: number;
|
|
4
|
-
export type PluginTaskQueueRejectReason = "expired" | "malformed" | "signature_mismatch";
|
|
5
|
-
type VerificationResult = {
|
|
6
|
-
message: PluginTaskQueueMessage;
|
|
7
|
-
status: "verified";
|
|
8
|
-
} | {
|
|
9
|
-
reason: PluginTaskQueueRejectReason;
|
|
10
|
-
status: "rejected";
|
|
11
|
-
} | {
|
|
12
|
-
reason: "invalid_clock" | "missing_secret";
|
|
13
|
-
status: "unavailable";
|
|
14
|
-
};
|
|
15
|
-
declare const signedPluginTaskQueueMessageSchema: z.ZodObject<{
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
params: z.ZodObject<{
|
|
18
|
-
conversationId: z.ZodString;
|
|
19
|
-
sessionId: z.ZodString;
|
|
20
|
-
}, z.core.$strict>;
|
|
21
|
-
plugin: z.ZodString;
|
|
22
|
-
signature: z.ZodString;
|
|
23
|
-
signatureVersion: z.ZodLiteral<"v1">;
|
|
24
|
-
signedAtMs: z.ZodNumber;
|
|
25
|
-
}, z.core.$strict>;
|
|
26
|
-
type SignedPluginTaskQueueMessage = z.output<typeof signedPluginTaskQueueMessageSchema>;
|
|
27
|
-
/** Sign a plugin task payload before it crosses the public queue callback. */
|
|
28
|
-
export declare function signPluginTaskQueueMessage(message: PluginTaskQueueMessage, nowMs?: number): SignedPluginTaskQueueMessage;
|
|
29
|
-
/** Verify a plugin task payload from the public queue callback route. */
|
|
30
|
-
export declare function verifyPluginTaskQueueMessage(value: unknown, nowMs?: number): VerificationResult;
|
|
31
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Soft deadline hit while a Workspace snapshot is still building.
|
|
3
|
-
* The tool returns timed_out so the host can yield at a tool-result boundary.
|
|
4
|
-
*/
|
|
5
|
-
export declare class WorkspaceSnapshotWaitingError extends Error {
|
|
6
|
-
readonly code = "workspace_snapshot_waiting";
|
|
7
|
-
readonly workspaceName: string;
|
|
8
|
-
constructor(workspaceName: string);
|
|
9
|
-
}
|
|
10
|
-
/** True when a structured tool result is a soft Workspace snapshot wait. */
|
|
11
|
-
export declare function isWorkspaceSnapshotWaitingResult(details: unknown): boolean;
|
|
12
|
-
/** Workspace name from a soft-wait tool result, if present. */
|
|
13
|
-
export declare function workspaceNameFromWaitingResult(details: unknown): string | undefined;
|
|
14
|
-
/** True when an error chain contains the Workspace snapshot wait signal. */
|
|
15
|
-
export declare function isWorkspaceSnapshotWaitingError(error: unknown): error is WorkspaceSnapshotWaitingError;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { type PluginReadState, type PluginState } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { PgDatabase } from "drizzle-orm/pg-core";
|
|
3
|
-
import type { PgQueryResultHKT } from "drizzle-orm/pg-core/session";
|
|
4
|
-
import * as schedulerSqlSchema from "@/db/schema/scheduled-tasks";
|
|
5
|
-
import { type ScheduledRun, type ScheduledTask } from "./types";
|
|
6
|
-
export type SchedulerDb = PgDatabase<PgQueryResultHKT, typeof schedulerSqlSchema>;
|
|
7
|
-
export interface SchedulerStore {
|
|
8
|
-
claimDueRun(args: {
|
|
9
|
-
nowMs: number;
|
|
10
|
-
}): Promise<ScheduledRun | undefined>;
|
|
11
|
-
createTask(task: ScheduledTask): Promise<ScheduledTask>;
|
|
12
|
-
getRun(runId: string): Promise<ScheduledRun | undefined>;
|
|
13
|
-
getTask(taskId: string): Promise<ScheduledTask | undefined>;
|
|
14
|
-
listIncompleteRuns(): Promise<ScheduledRun[]>;
|
|
15
|
-
listIncompleteRunsForTasks(tasks: ScheduledTask[]): Promise<ScheduledRun[]>;
|
|
16
|
-
listTasks(): Promise<ScheduledTask[]>;
|
|
17
|
-
listTasksCreatedBy(input: ListTasksCreatedByInput): Promise<ScheduledTask[]>;
|
|
18
|
-
listTasksForTeam(teamId: string): Promise<ScheduledTask[]>;
|
|
19
|
-
markRunBlocked(args: {
|
|
20
|
-
completedAtMs: number;
|
|
21
|
-
errorMessage: string;
|
|
22
|
-
runId: string;
|
|
23
|
-
startedAtMs?: number;
|
|
24
|
-
}): Promise<ScheduledRun | undefined>;
|
|
25
|
-
markRunCompleted(args: {
|
|
26
|
-
completedAtMs: number;
|
|
27
|
-
resultMessageTs?: string;
|
|
28
|
-
runId: string;
|
|
29
|
-
startedAtMs: number;
|
|
30
|
-
}): Promise<ScheduledRun | undefined>;
|
|
31
|
-
markRunFailed(args: {
|
|
32
|
-
completedAtMs: number;
|
|
33
|
-
errorMessage: string;
|
|
34
|
-
startedAtMs?: number;
|
|
35
|
-
runId: string;
|
|
36
|
-
}): Promise<ScheduledRun | undefined>;
|
|
37
|
-
markRunSkipped(args: {
|
|
38
|
-
completedAtMs: number;
|
|
39
|
-
errorMessage: string;
|
|
40
|
-
runId: string;
|
|
41
|
-
}): Promise<ScheduledRun | undefined>;
|
|
42
|
-
markRunDispatched(args: {
|
|
43
|
-
claimedAtMs: number;
|
|
44
|
-
dispatchId: string;
|
|
45
|
-
nowMs: number;
|
|
46
|
-
runId: string;
|
|
47
|
-
}): Promise<ScheduledRun | undefined>;
|
|
48
|
-
saveTask(task: ScheduledTask): Promise<void>;
|
|
49
|
-
updateTaskAfterRun(args: {
|
|
50
|
-
errorMessage?: string;
|
|
51
|
-
nowMs: number;
|
|
52
|
-
run: ScheduledRun;
|
|
53
|
-
status: "blocked" | "completed" | "failed";
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
export interface ListTasksCreatedByInput {
|
|
57
|
-
before?: {
|
|
58
|
-
createdAtMs: number;
|
|
59
|
-
id: string;
|
|
60
|
-
};
|
|
61
|
-
identityIds: string[];
|
|
62
|
-
limit: number;
|
|
63
|
-
query?: string;
|
|
64
|
-
}
|
|
65
|
-
export interface SchedulerOperationalStore {
|
|
66
|
-
listIncompleteRunsForTasks(tasks: ScheduledTask[]): Promise<ScheduledRun[]>;
|
|
67
|
-
listTasks(): Promise<ScheduledTask[]>;
|
|
68
|
-
}
|
|
69
|
-
/** Create a scheduler store backed by this plugin's durable state namespace. */
|
|
70
|
-
export declare function createSchedulerStore(state: PluginState): SchedulerStore;
|
|
71
|
-
/** Create a read-only scheduler store for operational reporting. */
|
|
72
|
-
export declare function createSchedulerOperationalStore(state: PluginReadState): SchedulerOperationalStore;
|
|
73
|
-
/** List scheduled tasks whose current Slack destination is public. */
|
|
74
|
-
export declare function listPublicScheduledTasksForTeams(db: SchedulerDb, teamIds: string[], limit: number): Promise<ScheduledTask[]>;
|
|
75
|
-
/** Create a scheduler store backed by the plugin SQL database. */
|
|
76
|
-
export declare function createSchedulerSqlStore(db: SchedulerDb): SchedulerStore;
|
|
77
|
-
/** Create a read-only scheduler operational store backed by SQL. */
|
|
78
|
-
export declare function createSchedulerOperationalSqlStore(db: SchedulerDb): SchedulerOperationalStore;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { AgentTool } from "@earendil-works/pi-agent-core";
|
|
2
|
-
import type { PiMessage } from "@/chat/pi/messages";
|
|
3
|
-
/** Pending soft wait for a Workspace snapshot from the latest tool result. */
|
|
4
|
-
export declare function pendingWorkspaceSnapshotWait(messages: readonly PiMessage[]): {
|
|
5
|
-
name: string;
|
|
6
|
-
} | null;
|
|
7
|
-
/**
|
|
8
|
-
* Continue a soft Workspace snapshot wait without another model turn.
|
|
9
|
-
* Re-invokes switchWorkspace and appends the complete Pi tool boundary.
|
|
10
|
-
*/
|
|
11
|
-
export declare function continueWorkspaceSnapshotWait(args: {
|
|
12
|
-
messages: PiMessage[];
|
|
13
|
-
tools: AgentTool[];
|
|
14
|
-
signal?: AbortSignal;
|
|
15
|
-
}): Promise<{
|
|
16
|
-
kind: "none";
|
|
17
|
-
} | {
|
|
18
|
-
kind: "waiting";
|
|
19
|
-
messages: PiMessage[];
|
|
20
|
-
} | {
|
|
21
|
-
kind: "ready";
|
|
22
|
-
messages: PiMessage[];
|
|
23
|
-
} | {
|
|
24
|
-
kind: "failed";
|
|
25
|
-
error: unknown;
|
|
26
|
-
messages: PiMessage[];
|
|
27
|
-
}>;
|