@sentry/junior 0.166.0 → 0.167.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.
Files changed (59) hide show
  1. package/dist/{agent-hooks-ZIPK2HUF.js → agent-hooks-KEHBR4DB.js} +9 -9
  2. package/dist/api/schema/workspace.d.ts +14 -0
  3. package/dist/api/schema.d.ts +2 -2
  4. package/dist/api/schema.js +3 -1
  5. package/dist/api.js +51 -27
  6. package/dist/app.js +34 -35
  7. package/dist/{catalog-runtime-GEZAHBUP.js → catalog-runtime-7QFMBU2Q.js} +5 -5
  8. package/dist/{chunk-OCOGPNHA.js → chunk-2MPO25ZZ.js} +1 -1
  9. package/dist/{chunk-DTQAMME2.js → chunk-2RSPCWAV.js} +5 -5
  10. package/dist/{chunk-WX42YNDQ.js → chunk-4KRDL4ZD.js} +5 -5
  11. package/dist/{chunk-2KV4BAAN.js → chunk-5IR2ABRO.js} +12 -12
  12. package/dist/{chunk-Q2IPCX7J.js → chunk-5LZVDKQJ.js} +270 -7
  13. package/dist/{chunk-CDBTQQQ4.js → chunk-6SJN7JZ3.js} +1 -1
  14. package/dist/{chunk-C3USHSIJ.js → chunk-BGRLZPMI.js} +1 -1
  15. package/dist/{chunk-SLWGX3G5.js → chunk-CC4EYBUO.js} +35 -35
  16. package/dist/{chunk-U2UCDSDF.js → chunk-CU7YQNZ3.js} +4 -4
  17. package/dist/{chunk-P6UQMGM2.js → chunk-EWAG7BNE.js} +1 -1
  18. package/dist/{chunk-FFE3BMAT.js → chunk-GC3AKBNP.js} +7 -7
  19. package/dist/{chunk-YTIKGCPC.js → chunk-GIGUXRMY.js} +1 -1
  20. package/dist/{chunk-OYN45QUQ.js → chunk-HIB3XTKR.js} +6 -6
  21. package/dist/{chunk-2ZKFLHVP.js → chunk-IHSPBOWG.js} +6 -6
  22. package/dist/{chunk-ZKJO4K6M.js → chunk-KE5ETKIR.js} +4 -4
  23. package/dist/{chunk-22RO7IDD.js → chunk-KSQIE2R4.js} +4 -4
  24. package/dist/{chunk-VNPG55CU.js → chunk-L63FA77C.js} +1 -1
  25. package/dist/{chunk-AEKBVJMV.js → chunk-MKDIEH3C.js} +2 -2
  26. package/dist/{chunk-43KLUCAM.js → chunk-MV4LDMRG.js} +17 -17
  27. package/dist/{chunk-3EZ5V7XQ.js → chunk-O5J556I2.js} +9 -9
  28. package/dist/{chunk-JDTCQDRU.js → chunk-PMULUKHL.js} +3 -3
  29. package/dist/{chunk-FEYQVP64.js → chunk-PRV74X7E.js} +5 -5
  30. package/dist/{chunk-ABNRESX6.js → chunk-TZHLY42G.js} +1 -1
  31. package/dist/{chunk-BKP3PVKR.js → chunk-UFTE42ZF.js} +1 -1
  32. package/dist/{chunk-4CMORAHL.js → chunk-UTMP45YM.js} +11 -1
  33. package/dist/{chunk-JUFZR2LD.js → chunk-V7GGA4LW.js} +1 -1
  34. package/dist/{chunk-EKBVHDZO.js → chunk-W72TSO24.js} +1 -1
  35. package/dist/{chunk-LGSGPWYH.js → chunk-WD7PVGMA.js} +1 -1
  36. package/dist/{chunk-4MDEQNSW.js → chunk-WHMDWHZX.js} +5 -5
  37. package/dist/{chunk-MDW5YPXW.js → chunk-WRBQL2AW.js} +2 -2
  38. package/dist/{chunk-KQ5YZGDV.js → chunk-WZGOP5BZ.js} +1 -1
  39. package/dist/{chunk-65SNO3WK.js → chunk-YVW44V5Y.js} +1 -1
  40. package/dist/cli/chat.js +29 -30
  41. package/dist/cli/check.js +6 -6
  42. package/dist/cli/plugins.js +12 -12
  43. package/dist/cli/snapshot-create.js +10 -12
  44. package/dist/cli/upgrade.js +7 -7
  45. package/dist/{db-TGZBS2CP.js → db-H25MZO65.js} +7 -7
  46. package/dist/instrumentation.js +4 -4
  47. package/dist/nitro.js +2 -2
  48. package/dist/{oauth-callback-server-Z54WUF5H.js → oauth-callback-server-BX334MQ6.js} +22 -22
  49. package/dist/{runner-PVFHKKK6.js → runner-GRWCCCKP.js} +12 -12
  50. package/dist/{skills-BYRH3QWD.js → skills-TG76W7TS.js} +6 -6
  51. package/dist/spawn-4YBTXAR2.js +37 -0
  52. package/dist/{validation-VZIE4RHA.js → validation-JY6EXXR3.js} +6 -6
  53. package/dist/version.js +1 -1
  54. package/dist/{work-JTHAOPDQ.js → work-53J6P32F.js} +17 -17
  55. package/dist/worker-WLLGEEQS.js +24 -0
  56. package/package.json +4 -4
  57. package/dist/chunk-4DARCEZH.js +0 -274
  58. package/dist/spawn-RIPWK7EP.js +0 -37
  59. package/dist/worker-APEVP56Y.js +0 -24
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.166.0",
4
+ version: "0.167.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
@@ -5,19 +5,19 @@ import {
5
5
  isDmChannel,
6
6
  normalizeSlackConversationId,
7
7
  withSlackRetries
8
- } from "./chunk-WX42YNDQ.js";
8
+ } from "./chunk-4KRDL4ZD.js";
9
9
  import {
10
10
  parseDestination
11
- } from "./chunk-JDTCQDRU.js";
11
+ } from "./chunk-PMULUKHL.js";
12
12
  import {
13
13
  getStateAdapter
14
- } from "./chunk-EKBVHDZO.js";
14
+ } from "./chunk-W72TSO24.js";
15
15
  import {
16
16
  normalizeSlackEmojiName
17
- } from "./chunk-AEKBVJMV.js";
17
+ } from "./chunk-MKDIEH3C.js";
18
18
  import {
19
19
  pluginCatalogRuntime
20
- } from "./chunk-VNPG55CU.js";
20
+ } from "./chunk-L63FA77C.js";
21
21
  import {
22
22
  parseSlackMessageTs,
23
23
  parseSlackUserId
@@ -26,7 +26,7 @@ import {
26
26
  isRecord,
27
27
  logInfo,
28
28
  logWarn
29
- } from "./chunk-JUFZR2LD.js";
29
+ } from "./chunk-V7GGA4LW.js";
30
30
 
31
31
  // src/chat/slack/outbound.ts
32
32
  var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  appendAndEnqueueInboundMessage
3
- } from "./chunk-ZKJO4K6M.js";
3
+ } from "./chunk-KE5ETKIR.js";
4
4
  import {
5
5
  ConversationTurnLifecycleService,
6
6
  getPersistedSandboxState,
7
7
  getPersistedThreadState,
8
8
  persistThreadStateById
9
- } from "./chunk-DTQAMME2.js";
9
+ } from "./chunk-2RSPCWAV.js";
10
10
  import {
11
11
  AgentInvocationBusyError,
12
12
  AgentInvocationLimitError,
@@ -15,7 +15,7 @@ import {
15
15
  agentBindingSchema,
16
16
  agentInvocationSchema,
17
17
  createAgentInvocationSchema
18
- } from "./chunk-FEYQVP64.js";
18
+ } from "./chunk-PRV74X7E.js";
19
19
  import {
20
20
  TurnInputCommitLostError,
21
21
  failTurnRecord,
@@ -26,16 +26,16 @@ import {
26
26
  isTurnInputCommitLostError,
27
27
  openConversationProjection,
28
28
  saveTurnCheckpoint
29
- } from "./chunk-22RO7IDD.js";
29
+ } from "./chunk-KSQIE2R4.js";
30
30
  import {
31
31
  getConversationEventStore,
32
32
  getConversationStore,
33
33
  getSqlExecutor
34
- } from "./chunk-JDTCQDRU.js";
34
+ } from "./chunk-PMULUKHL.js";
35
35
  import {
36
36
  juniorAgentBindings,
37
37
  juniorAgentInvocations
38
- } from "./chunk-65SNO3WK.js";
38
+ } from "./chunk-YVW44V5Y.js";
39
39
 
40
40
  // src/chat/agent-invocations/work.ts
41
41
  import { z } from "zod";
@@ -8,14 +8,14 @@ import {
8
8
  getConversationStore,
9
9
  parseDestination,
10
10
  sameDestination
11
- } from "./chunk-JDTCQDRU.js";
11
+ } from "./chunk-PMULUKHL.js";
12
12
  import {
13
13
  getDefaultRedisStateAdapterFor,
14
14
  getStateAdapter
15
- } from "./chunk-EKBVHDZO.js";
15
+ } from "./chunk-W72TSO24.js";
16
16
  import {
17
17
  getChatConfig
18
- } from "./chunk-AEKBVJMV.js";
18
+ } from "./chunk-MKDIEH3C.js";
19
19
  import {
20
20
  parseStoredSlackActor
21
21
  } from "./chunk-V7YE4WCP.js";
@@ -23,7 +23,7 @@ import {
23
23
  isRecord,
24
24
  toOptionalNumber,
25
25
  toOptionalString
26
- } from "./chunk-JUFZR2LD.js";
26
+ } from "./chunk-V7GGA4LW.js";
27
27
 
28
28
  // src/chat/task-execution/state.ts
29
29
  import { randomUUID } from "crypto";
@@ -13,7 +13,7 @@ import {
13
13
  instructionProvenanceFor,
14
14
  sanitizePostgresJson,
15
15
  withConversationEventLock
16
- } from "./chunk-JDTCQDRU.js";
16
+ } from "./chunk-PMULUKHL.js";
17
17
  import {
18
18
  SANDBOX_REPOS_ROOT,
19
19
  SANDBOX_WORKSPACE_ROOT,
@@ -24,14 +24,14 @@ import {
24
24
  fenceLock,
25
25
  getStateAdapter,
26
26
  withLock
27
- } from "./chunk-EKBVHDZO.js";
27
+ } from "./chunk-W72TSO24.js";
28
28
  import {
29
29
  botConfig,
30
30
  completeText,
31
31
  escapeXml,
32
32
  resolveGatewayModel,
33
33
  unwrapCurrentInstruction
34
- } from "./chunk-AEKBVJMV.js";
34
+ } from "./chunk-MKDIEH3C.js";
35
35
  import {
36
36
  parseSlackMessageTs,
37
37
  toStoredSlackActor
@@ -41,7 +41,7 @@ import {
41
41
  logException,
42
42
  logWarn,
43
43
  setSpanAttributes
44
- } from "./chunk-JUFZR2LD.js";
44
+ } from "./chunk-V7GGA4LW.js";
45
45
 
46
46
  // src/chat/turn-context-tag.ts
47
47
  var TURN_CONTEXT_TAG = "runtime-turn-context";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createPluginCatalogRuntime
3
- } from "./chunk-P6UQMGM2.js";
3
+ } from "./chunk-EWAG7BNE.js";
4
4
 
5
5
  // src/chat/plugins/catalog-runtime.ts
6
6
  var pluginCatalogRuntime = createPluginCatalogRuntime();
@@ -3,7 +3,7 @@ import {
3
3
  toCanonicalInputMessage,
4
4
  toCanonicalOutputMessage,
5
5
  toGenAiMessagesTraceAttributes
6
- } from "./chunk-KQ5YZGDV.js";
6
+ } from "./chunk-WZGOP5BZ.js";
7
7
  import {
8
8
  extractGenAiUsageAttributes,
9
9
  logException,
@@ -11,7 +11,7 @@ import {
11
11
  normalizeGenAiFinishReason,
12
12
  serializeGenAiAttribute,
13
13
  withSpan
14
- } from "./chunk-JUFZR2LD.js";
14
+ } from "./chunk-V7GGA4LW.js";
15
15
 
16
16
  // src/chat/services/provider-error.ts
17
17
  var ProviderError = class extends Error {
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-FA6POGLH.js";
4
4
  import {
5
5
  getTurnRequestDeadline
6
- } from "./chunk-CDBTQQQ4.js";
6
+ } from "./chunk-6SJN7JZ3.js";
7
7
  import {
8
8
  buildSentryConversationUrl,
9
9
  deleteWebAuthorization
10
- } from "./chunk-OCOGPNHA.js";
10
+ } from "./chunk-2MPO25ZZ.js";
11
11
  import {
12
12
  ensureConversationWake,
13
13
  requestConversationWork
14
- } from "./chunk-ZKJO4K6M.js";
14
+ } from "./chunk-KE5ETKIR.js";
15
15
  import {
16
16
  buildDeliveredTurnStatePatch,
17
17
  finalizeFailedTurnReplyWithEvent,
@@ -24,7 +24,7 @@ import {
24
24
  requireTurnFailureEventId,
25
25
  resolveTurnSessionRouting,
26
26
  scheduleSessionCompletedPluginTasks
27
- } from "./chunk-3EZ5V7XQ.js";
27
+ } from "./chunk-O5J556I2.js";
28
28
  import {
29
29
  ConversationTurnLifecycleService,
30
30
  coerceThreadConversationState,
@@ -33,7 +33,7 @@ import {
33
33
  getPersistedSandboxState,
34
34
  getPersistedThreadState,
35
35
  persistThreadStateById
36
- } from "./chunk-DTQAMME2.js";
36
+ } from "./chunk-2RSPCWAV.js";
37
37
  import {
38
38
  getVercelConversationWorkQueue
39
39
  } from "./chunk-WR76IVA5.js";
@@ -47,7 +47,7 @@ import {
47
47
  lookupSlackUserProfile,
48
48
  resolvePluginOAuthAccount,
49
49
  runAgentWithTimeout
50
- } from "./chunk-FFE3BMAT.js";
50
+ } from "./chunk-GC3AKBNP.js";
51
51
  import {
52
52
  RetryableDeliveryError
53
53
  } from "./chunk-RF6J3DIO.js";
@@ -63,13 +63,13 @@ import {
63
63
  removeReactionFromMessage,
64
64
  resolveBaseUrl,
65
65
  truncateStatusText
66
- } from "./chunk-OYN45QUQ.js";
66
+ } from "./chunk-HIB3XTKR.js";
67
67
  import {
68
68
  parseSlackThreadId,
69
69
  readSlackRawMessageContext,
70
70
  resolveSlackChannelIdFromMessage,
71
71
  resolveSlackChannelIdFromThreadId
72
- } from "./chunk-ABNRESX6.js";
72
+ } from "./chunk-TZHLY42G.js";
73
73
  import {
74
74
  CooperativeTurnYieldError,
75
75
  TurnSliceLimitExceededError,
@@ -96,7 +96,7 @@ import {
96
96
  recordTurnSummary,
97
97
  saveTurnCheckpoint,
98
98
  turnHasReply
99
- } from "./chunk-22RO7IDD.js";
99
+ } from "./chunk-KSQIE2R4.js";
100
100
  import {
101
101
  SlackActionError,
102
102
  getDashboardConversationLink,
@@ -105,18 +105,18 @@ import {
105
105
  getSlackClient,
106
106
  isDmChannel,
107
107
  normalizeSlackConversationId
108
- } from "./chunk-WX42YNDQ.js";
108
+ } from "./chunk-4KRDL4ZD.js";
109
109
  import {
110
110
  getConversationEventStore,
111
111
  getSqlExecutor,
112
112
  requireSlackDestination,
113
113
  upsertIdentity,
114
114
  upsertLinkedIdentity
115
- } from "./chunk-JDTCQDRU.js";
115
+ } from "./chunk-PMULUKHL.js";
116
116
  import {
117
117
  acquireActiveLock,
118
118
  getStateAdapter
119
- } from "./chunk-EKBVHDZO.js";
119
+ } from "./chunk-W72TSO24.js";
120
120
  import {
121
121
  botConfig,
122
122
  escapeXml,
@@ -124,18 +124,18 @@ import {
124
124
  getRuntimeMetadata,
125
125
  normalizeSlackEmojiName,
126
126
  standardModelId
127
- } from "./chunk-AEKBVJMV.js";
127
+ } from "./chunk-MKDIEH3C.js";
128
128
  import {
129
129
  discoverSkills
130
- } from "./chunk-MDW5YPXW.js";
130
+ } from "./chunk-WRBQL2AW.js";
131
131
  import {
132
132
  pluginCatalogRuntime
133
- } from "./chunk-VNPG55CU.js";
133
+ } from "./chunk-L63FA77C.js";
134
134
  import {
135
135
  buildOAuthTokenRequest,
136
136
  hasRequiredOAuthScope,
137
137
  parseOAuthTokenResponse
138
- } from "./chunk-P6UQMGM2.js";
138
+ } from "./chunk-EWAG7BNE.js";
139
139
  import {
140
140
  createSlackResumeActor,
141
141
  isUserActor,
@@ -151,7 +151,7 @@ import {
151
151
  setTags,
152
152
  toOptionalString,
153
153
  withLogContext
154
- } from "./chunk-JUFZR2LD.js";
154
+ } from "./chunk-V7GGA4LW.js";
155
155
  import {
156
156
  homeDir
157
157
  } from "./chunk-H4HBKISO.js";
@@ -2,7 +2,7 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-DTQAMME2.js";
5
+ } from "./chunk-2RSPCWAV.js";
6
6
  import {
7
7
  pluginTaskId,
8
8
  pluginTaskParamsSchema,
@@ -22,7 +22,7 @@ import {
22
22
  markTurnCompleted,
23
23
  normalizeToolNameFromResult,
24
24
  stripRuntimeTurnContext
25
- } from "./chunk-22RO7IDD.js";
25
+ } from "./chunk-KSQIE2R4.js";
26
26
  import {
27
27
  JUNIOR_THREAD_STATE_TTL_MS
28
28
  } from "./chunk-3Y47VMHV.js";
@@ -33,25 +33,25 @@ import {
33
33
  createPluginModel,
34
34
  createPluginState,
35
35
  getPlugins
36
- } from "./chunk-WX42YNDQ.js";
36
+ } from "./chunk-4KRDL4ZD.js";
37
37
  import {
38
38
  getConversationStore,
39
39
  getDb,
40
40
  sameActorIdentity
41
- } from "./chunk-JDTCQDRU.js";
41
+ } from "./chunk-PMULUKHL.js";
42
42
  import {
43
43
  juniorConversations,
44
44
  juniorTaskExecutions
45
- } from "./chunk-65SNO3WK.js";
45
+ } from "./chunk-YVW44V5Y.js";
46
46
  import {
47
47
  getStateAdapter
48
- } from "./chunk-EKBVHDZO.js";
48
+ } from "./chunk-W72TSO24.js";
49
49
  import {
50
50
  ProviderError,
51
51
  findProviderError,
52
52
  getProviderErrorAttributes,
53
53
  getProviderErrorUserMessage
54
- } from "./chunk-AEKBVJMV.js";
54
+ } from "./chunk-MKDIEH3C.js";
55
55
  import {
56
56
  credentialSubjectSchema
57
57
  } from "./chunk-BDUENQD3.js";
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  buildTurnFailureResponse,
63
63
  logWarn
64
- } from "./chunk-JUFZR2LD.js";
64
+ } from "./chunk-V7GGA4LW.js";
65
65
 
66
66
  // src/chat/runtime/delivered-turn-state.ts
67
67
  function buildDeliveredTurnStatePatch(args) {
@@ -87,7 +87,7 @@ import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
87
87
 
88
88
  // src/chat/services/turn-session-routing.ts
89
89
  async function resolveTurnSessionRouting(args) {
90
- const conversationStore = args.conversationStore ?? (await import("./db-TGZBS2CP.js")).getConversationStore();
90
+ const conversationStore = args.conversationStore ?? (await import("./db-H25MZO65.js")).getConversationStore();
91
91
  const conversation = await conversationStore.get({
92
92
  conversationId: args.conversationId
93
93
  });
@@ -7,12 +7,12 @@ import {
7
7
  juniorConversations,
8
8
  juniorIdentities,
9
9
  juniorUsers
10
- } from "./chunk-65SNO3WK.js";
10
+ } from "./chunk-YVW44V5Y.js";
11
11
  import {
12
12
  TURN_REASONING_LEVELS,
13
13
  getChatConfig,
14
14
  modelProfileSchema
15
- } from "./chunk-AEKBVJMV.js";
15
+ } from "./chunk-MKDIEH3C.js";
16
16
  import {
17
17
  juniorDestinations
18
18
  } from "./chunk-VFUK3X5B.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-V7YE4WCP.js";
24
24
  import {
25
25
  normalizeIdentityEmail
26
- } from "./chunk-JUFZR2LD.js";
26
+ } from "./chunk-V7GGA4LW.js";
27
27
 
28
28
  // src/chat/conversations/sql/store.ts
29
29
  import { randomUUID as randomUUID2 } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  formatProviderLabel,
6
6
  startOAuthFlow
7
- } from "./chunk-OYN45QUQ.js";
7
+ } from "./chunk-HIB3XTKR.js";
8
8
  import {
9
9
  parseSandboxEgressAuthRequiredSignal
10
10
  } from "./chunk-7MA4HV4W.js";
@@ -12,16 +12,16 @@ import {
12
12
  abandonReplacedPendingAuth,
13
13
  canReusePendingAuthLink,
14
14
  recordAuthorizationRequested
15
- } from "./chunk-22RO7IDD.js";
15
+ } from "./chunk-KSQIE2R4.js";
16
16
  import {
17
17
  AGENT_INVOCATION_MAILBOX_STATUSES
18
- } from "./chunk-65SNO3WK.js";
18
+ } from "./chunk-YVW44V5Y.js";
19
19
  import {
20
20
  TURN_REASONING_LEVELS
21
- } from "./chunk-AEKBVJMV.js";
21
+ } from "./chunk-MKDIEH3C.js";
22
22
  import {
23
23
  pluginCatalogRuntime
24
- } from "./chunk-VNPG55CU.js";
24
+ } from "./chunk-L63FA77C.js";
25
25
  import {
26
26
  credentialContextSchema
27
27
  } from "./chunk-BDUENQD3.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-V7YE4WCP.js";
6
6
  import {
7
7
  toOptionalString
8
- } from "./chunk-JUFZR2LD.js";
8
+ } from "./chunk-V7GGA4LW.js";
9
9
 
10
10
  // src/chat/slack/context.ts
11
11
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JUNIOR_VERSION
3
- } from "./chunk-YTIKGCPC.js";
3
+ } from "./chunk-GIGUXRMY.js";
4
4
 
5
5
  // src/deployment.ts
6
6
  var JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";
@@ -733,6 +733,12 @@ var workspaceSnapshotSchema = z7.object({
733
733
  generatedAt: z7.iso.datetime(),
734
734
  buildDurationMs: z7.number().int().nonnegative()
735
735
  }).strict();
736
+ var baselineSnapshotSchema = z7.object({
737
+ id: z7.string(),
738
+ generatedAt: z7.iso.datetime(),
739
+ buildDurationMs: z7.number().int().nonnegative(),
740
+ dependencyCount: z7.number().int().nonnegative()
741
+ }).strict();
736
742
  var workspaceSchema = z7.object({
737
743
  id: z7.string().uuid(),
738
744
  name: z7.string(),
@@ -740,7 +746,10 @@ var workspaceSchema = z7.object({
740
746
  repos: z7.array(workspaceRepoSchema),
741
747
  snapshot: workspaceSnapshotSchema.nullable()
742
748
  }).strict();
743
- var workspaceListSchema = z7.object({ workspaces: z7.array(workspaceSchema) }).strict();
749
+ var workspaceListSchema = z7.object({
750
+ baselineSnapshot: baselineSnapshotSchema.nullable(),
751
+ workspaces: z7.array(workspaceSchema)
752
+ }).strict();
744
753
  var workspaceBodySchema = z7.object({
745
754
  name: z7.string(),
746
755
  setupScript: z7.string().optional(),
@@ -908,6 +917,7 @@ export {
908
917
  taskRunSchema,
909
918
  taskRunListSchema,
910
919
  workspaceRepoSchema,
920
+ baselineSnapshotSchema,
911
921
  workspaceSchema,
912
922
  workspaceListSchema,
913
923
  workspaceBodySchema,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6GWA276C.js";
10
10
  import {
11
11
  getDeploymentTelemetryAttributes
12
- } from "./chunk-BKP3PVKR.js";
12
+ } from "./chunk-UFTE42ZF.js";
13
13
 
14
14
  // src/chat/logging.ts
15
15
  import path from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getChatConfig
3
- } from "./chunk-AEKBVJMV.js";
3
+ } from "./chunk-MKDIEH3C.js";
4
4
 
5
5
  // src/chat/state/adapter.ts
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-VNPG55CU.js";
3
+ } from "./chunk-L63FA77C.js";
4
4
 
5
5
  // src/chat/plugins/validation.ts
6
6
  import { isDeepStrictEqual } from "util";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ToolInputError
3
- } from "./chunk-22RO7IDD.js";
3
+ } from "./chunk-KSQIE2R4.js";
4
4
  import {
5
5
  canRouteResourceEvents,
6
6
  getPlugins
7
- } from "./chunk-WX42YNDQ.js";
7
+ } from "./chunk-4KRDL4ZD.js";
8
8
  import {
9
9
  getDb
10
- } from "./chunk-JDTCQDRU.js";
10
+ } from "./chunk-PMULUKHL.js";
11
11
  import {
12
12
  juniorAttachments,
13
13
  juniorConversations,
@@ -15,13 +15,13 @@ import {
15
15
  juniorSchedulerRuns,
16
16
  juniorSchedulerTasks,
17
17
  juniorStats
18
- } from "./chunk-65SNO3WK.js";
18
+ } from "./chunk-YVW44V5Y.js";
19
19
  import {
20
20
  juniorDestinations
21
21
  } from "./chunk-VFUK3X5B.js";
22
22
  import {
23
23
  logInfo
24
- } from "./chunk-JUFZR2LD.js";
24
+ } from "./chunk-V7GGA4LW.js";
25
25
 
26
26
  // src/chat/sandbox/snapshot/runtime.ts
27
27
  var SANDBOX_RUNTIME = "node22";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-VNPG55CU.js";
3
+ } from "./chunk-L63FA77C.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-JUFZR2LD.js";
6
+ } from "./chunk-V7GGA4LW.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-H4HBKISO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logWarn
3
- } from "./chunk-JUFZR2LD.js";
3
+ } from "./chunk-V7GGA4LW.js";
4
4
 
5
5
  // src/chat/conversation-privacy.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SQL_STATEMENT_TIMEOUT_MS
3
- } from "./chunk-AEKBVJMV.js";
3
+ } from "./chunk-MKDIEH3C.js";
4
4
  import {
5
5
  juniorDestinations,
6
6
  timestamptz
package/dist/cli/chat.js CHANGED
@@ -1,45 +1,44 @@
1
1
  import {
2
2
  executeAgentRun
3
- } from "../chunk-SLWGX3G5.js";
4
- import "../chunk-FEYQVP64.js";
3
+ } from "../chunk-CC4EYBUO.js";
4
+ import "../chunk-PRV74X7E.js";
5
5
  import "../chunk-DIB4GX3G.js";
6
6
  import {
7
7
  createAgentRunner
8
- } from "../chunk-FFE3BMAT.js";
8
+ } from "../chunk-GC3AKBNP.js";
9
9
  import "../chunk-RF6J3DIO.js";
10
- import "../chunk-OYN45QUQ.js";
10
+ import "../chunk-HIB3XTKR.js";
11
11
  import "../chunk-7MA4HV4W.js";
12
12
  import "../chunk-VRS6WDK5.js";
13
- import "../chunk-Q2IPCX7J.js";
14
- import "../chunk-4MDEQNSW.js";
15
- import "../chunk-ABNRESX6.js";
16
- import "../chunk-22RO7IDD.js";
13
+ import "../chunk-WHMDWHZX.js";
14
+ import "../chunk-TZHLY42G.js";
15
+ import "../chunk-KSQIE2R4.js";
17
16
  import "../chunk-3Y47VMHV.js";
18
- import "../chunk-4DARCEZH.js";
17
+ import "../chunk-5LZVDKQJ.js";
19
18
  import "../chunk-PDO5BLNM.js";
20
19
  import "../chunk-UIE3R5XU.js";
21
20
  import {
22
21
  loadAppPluginSet
23
22
  } from "../chunk-Y2CM7HXH.js";
24
- import "../chunk-WX42YNDQ.js";
25
- import "../chunk-JDTCQDRU.js";
26
- import "../chunk-65SNO3WK.js";
23
+ import "../chunk-4KRDL4ZD.js";
24
+ import "../chunk-PMULUKHL.js";
25
+ import "../chunk-YVW44V5Y.js";
27
26
  import "../chunk-BVREIWBD.js";
28
- import "../chunk-EKBVHDZO.js";
29
- import "../chunk-AEKBVJMV.js";
27
+ import "../chunk-W72TSO24.js";
28
+ import "../chunk-MKDIEH3C.js";
30
29
  import "../chunk-VFUK3X5B.js";
31
- import "../chunk-KQ5YZGDV.js";
32
- import "../chunk-MDW5YPXW.js";
33
- import "../chunk-VNPG55CU.js";
34
- import "../chunk-P6UQMGM2.js";
30
+ import "../chunk-WZGOP5BZ.js";
31
+ import "../chunk-WRBQL2AW.js";
32
+ import "../chunk-L63FA77C.js";
33
+ import "../chunk-EWAG7BNE.js";
35
34
  import "../chunk-BDUENQD3.js";
36
35
  import "../chunk-V7YE4WCP.js";
37
- import "../chunk-JUFZR2LD.js";
36
+ import "../chunk-V7GGA4LW.js";
38
37
  import "../chunk-6GWA276C.js";
39
38
  import "../chunk-OOUNJNMR.js";
40
39
  import "../chunk-H4HBKISO.js";
41
- import "../chunk-BKP3PVKR.js";
42
- import "../chunk-YTIKGCPC.js";
40
+ import "../chunk-UFTE42ZF.js";
41
+ import "../chunk-GIGUXRMY.js";
43
42
  import "../chunk-MLKGABMK.js";
44
43
 
45
44
  // src/cli/chat.ts
@@ -162,10 +161,10 @@ async function configureLocalChatPlugins(pluginSet) {
162
161
  databaseModule
163
162
  ] = await Promise.all([
164
163
  import("../plugins-HW4VWW6G.js"),
165
- import("../agent-hooks-ZIPK2HUF.js"),
166
- import("../catalog-runtime-GEZAHBUP.js"),
167
- import("../validation-VZIE4RHA.js"),
168
- import("../db-TGZBS2CP.js")
164
+ import("../agent-hooks-KEHBR4DB.js"),
165
+ import("../catalog-runtime-7QFMBU2Q.js"),
166
+ import("../validation-JY6EXXR3.js"),
167
+ import("../db-H25MZO65.js")
169
168
  ]);
170
169
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
171
170
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -231,14 +230,14 @@ async function prepareLocalChatRun(io, pluginSet) {
231
230
  await configureLocalChatPlugins(pluginSet);
232
231
  const { setExperimentalFeatures } = await import("../experimental-XVDOSRBS.js");
233
232
  setExperimentalFeatures({ subagents: true });
234
- const { runLocalAgentTurn } = await import("../runner-PVFHKKK6.js");
235
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-Z54WUF5H.js");
233
+ const { runLocalAgentTurn } = await import("../runner-GRWCCCKP.js");
234
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BX334MQ6.js");
236
235
  const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
237
236
  const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-U3ZX7C5W.js");
238
- const { bindSpawnAgent } = await import("../spawn-RIPWK7EP.js");
239
- const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-JTHAOPDQ.js");
237
+ const { bindSpawnAgent } = await import("../spawn-4YBTXAR2.js");
238
+ const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-53J6P32F.js");
240
239
  const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
241
- const { processConversationWork } = await import("../worker-APEVP56Y.js");
240
+ const { processConversationWork } = await import("../worker-WLLGEEQS.js");
242
241
  let agentRunner;
243
242
  const localConversationWork = createLocalConversationWork(async (message) => {
244
243
  if (!agentRunner) {