@junctionpanel/server 0.1.98 → 0.1.100

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.
@@ -24,20 +24,20 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
24
24
  systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  mcpServers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- extra?: Record<string, any> | null | undefined;
28
- systemPrompt?: string | null | undefined;
29
27
  modeId?: string | null | undefined;
30
28
  model?: string | null | undefined;
31
29
  thinkingOptionId?: string | null | undefined;
32
30
  title?: string | null | undefined;
33
- mcpServers?: Record<string, any> | null | undefined;
34
- }, {
35
31
  extra?: Record<string, any> | null | undefined;
36
32
  systemPrompt?: string | null | undefined;
33
+ mcpServers?: Record<string, any> | null | undefined;
34
+ }, {
37
35
  modeId?: string | null | undefined;
38
36
  model?: string | null | undefined;
39
37
  thinkingOptionId?: string | null | undefined;
40
38
  title?: string | null | undefined;
39
+ extra?: Record<string, any> | null | undefined;
40
+ systemPrompt?: string | null | undefined;
41
41
  mcpServers?: Record<string, any> | null | undefined;
42
42
  }>>>;
43
43
  runtimeInfo: z.ZodOptional<z.ZodObject<{
@@ -50,17 +50,17 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  provider: string;
52
52
  sessionId: string | null;
53
- extra?: Record<string, unknown> | undefined;
54
53
  modeId?: string | null | undefined;
55
54
  model?: string | null | undefined;
56
55
  thinkingOptionId?: string | null | undefined;
56
+ extra?: Record<string, unknown> | undefined;
57
57
  }, {
58
58
  provider: string;
59
59
  sessionId: string | null;
60
- extra?: Record<string, unknown> | undefined;
61
60
  modeId?: string | null | undefined;
62
61
  model?: string | null | undefined;
63
62
  thinkingOptionId?: string | null | undefined;
63
+ extra?: Record<string, unknown> | undefined;
64
64
  }>>;
65
65
  persistence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
66
  provider: z.ZodString;
@@ -70,13 +70,13 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  provider: string;
72
72
  sessionId: string;
73
- nativeHandle?: any;
74
73
  metadata?: Record<string, any> | undefined;
74
+ nativeHandle?: any;
75
75
  }, {
76
76
  provider: string;
77
77
  sessionId: string;
78
- nativeHandle?: any;
79
78
  metadata?: Record<string, any> | undefined;
79
+ nativeHandle?: any;
80
80
  }>>>;
81
81
  requiresAttention: z.ZodOptional<z.ZodBoolean>;
82
82
  attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["finished", "error", "permission"]>>>;
@@ -87,12 +87,12 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
87
87
  timestamp: z.ZodString;
88
88
  item: z.ZodType<import("./agent-sdk-types.js").AgentTimelineItem, z.ZodTypeDef, unknown>;
89
89
  }, "strip", z.ZodTypeAny, {
90
- seq: number;
91
90
  timestamp: string;
92
91
  item: import("./agent-sdk-types.js").AgentTimelineItem;
93
- }, {
94
92
  seq: number;
93
+ }, {
95
94
  timestamp: string;
95
+ seq: number;
96
96
  item?: unknown;
97
97
  }>, "many">>;
98
98
  timelineEpoch: z.ZodOptional<z.ZodString>;
@@ -127,8 +127,8 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
127
127
  }, "strip", z.ZodTypeAny, {
128
128
  number: number;
129
129
  state: string;
130
- title: string;
131
130
  url: string;
131
+ title: string;
132
132
  baseRefName: string;
133
133
  headRefName: string;
134
134
  isMerged: boolean;
@@ -141,8 +141,8 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
141
141
  }, {
142
142
  number: number;
143
143
  state: string;
144
- title: string;
145
144
  url: string;
145
+ title: string;
146
146
  baseRefName: string;
147
147
  headRefName: string;
148
148
  isMerged: boolean;
@@ -154,10 +154,10 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
154
154
  hasNonRequiredFailingChecks?: boolean | null | undefined;
155
155
  }>>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
- repoRoot: string;
158
- archivedAt: string;
159
- baseBranch: string;
160
157
  branchName: string;
158
+ baseBranch: string;
159
+ archivedAt: string;
160
+ repoRoot: string;
161
161
  worktreeSlug: string;
162
162
  originalCwd: string;
163
163
  cleanupState: "active" | "deleted";
@@ -167,8 +167,8 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
167
167
  pullRequest?: {
168
168
  number: number;
169
169
  state: string;
170
- title: string;
171
170
  url: string;
171
+ title: string;
172
172
  baseRefName: string;
173
173
  headRefName: string;
174
174
  isMerged: boolean;
@@ -180,10 +180,10 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
180
180
  hasNonRequiredFailingChecks?: boolean | null | undefined;
181
181
  } | null | undefined;
182
182
  }, {
183
- repoRoot: string;
184
- archivedAt: string;
185
- baseBranch: string;
186
183
  branchName: string;
184
+ baseBranch: string;
185
+ archivedAt: string;
186
+ repoRoot: string;
187
187
  worktreeSlug: string;
188
188
  originalCwd: string;
189
189
  baseBranchSource?: "local" | "remote" | undefined;
@@ -193,8 +193,8 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
193
193
  pullRequest?: {
194
194
  number: number;
195
195
  state: string;
196
- title: string;
197
196
  url: string;
197
+ title: string;
198
198
  baseRefName: string;
199
199
  headRefName: string;
200
200
  isMerged: boolean;
@@ -209,57 +209,39 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
209
209
  }, "strip", z.ZodTypeAny, {
210
210
  id: string;
211
211
  provider: string;
212
- cwd: string;
213
212
  createdAt: string;
214
- parentAgentId: string | null;
215
213
  updatedAt: string;
214
+ cwd: string;
215
+ parentAgentId: string | null;
216
216
  labels: Record<string, string>;
217
217
  lastStatus: "initializing" | "idle" | "running" | "error" | "closed";
218
+ lastActivityAt?: string | undefined;
218
219
  title?: string | null | undefined;
219
- internal?: boolean | undefined;
220
- config?: {
221
- extra?: Record<string, any> | null | undefined;
222
- systemPrompt?: string | null | undefined;
223
- modeId?: string | null | undefined;
224
- model?: string | null | undefined;
225
- thinkingOptionId?: string | null | undefined;
226
- title?: string | null | undefined;
227
- mcpServers?: Record<string, any> | null | undefined;
220
+ lastUserMessageAt?: string | null | undefined;
221
+ pendingPermissions?: import("./agent-sdk-types.js").AgentPermissionRequest[] | undefined;
222
+ persistence?: {
223
+ provider: string;
224
+ sessionId: string;
225
+ metadata?: Record<string, any> | undefined;
226
+ nativeHandle?: any;
228
227
  } | null | undefined;
229
228
  runtimeInfo?: {
230
229
  provider: string;
231
230
  sessionId: string | null;
232
- extra?: Record<string, unknown> | undefined;
233
231
  modeId?: string | null | undefined;
234
232
  model?: string | null | undefined;
235
233
  thinkingOptionId?: string | null | undefined;
234
+ extra?: Record<string, unknown> | undefined;
236
235
  } | undefined;
237
- pendingPermissions?: import("./agent-sdk-types.js").AgentPermissionRequest[] | undefined;
238
- timelineRows?: {
239
- seq: number;
240
- timestamp: string;
241
- item: import("./agent-sdk-types.js").AgentTimelineItem;
242
- }[] | undefined;
243
- timelineEpoch?: string | undefined;
244
- timelineNextSeq?: number | undefined;
245
- persistence?: {
246
- provider: string;
247
- sessionId: string;
248
- nativeHandle?: any;
249
- metadata?: Record<string, any> | undefined;
250
- } | null | undefined;
251
- lastUserMessageAt?: string | null | undefined;
252
- lastActivityAt?: string | undefined;
253
- lastModeId?: string | null | undefined;
254
236
  requiresAttention?: boolean | undefined;
255
237
  attentionReason?: "error" | "finished" | "permission" | null | undefined;
256
238
  attentionTimestamp?: string | null | undefined;
257
239
  archivedAt?: string | null | undefined;
258
240
  archivedWorktree?: {
259
- repoRoot: string;
260
- archivedAt: string;
261
- baseBranch: string;
262
241
  branchName: string;
242
+ baseBranch: string;
243
+ archivedAt: string;
244
+ repoRoot: string;
263
245
  worktreeSlug: string;
264
246
  originalCwd: string;
265
247
  cleanupState: "active" | "deleted";
@@ -269,8 +251,8 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
269
251
  pullRequest?: {
270
252
  number: number;
271
253
  state: string;
272
- title: string;
273
254
  url: string;
255
+ title: string;
274
256
  baseRefName: string;
275
257
  headRefName: string;
276
258
  isMerged: boolean;
@@ -282,60 +264,59 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
282
264
  hasNonRequiredFailingChecks?: boolean | null | undefined;
283
265
  } | null | undefined;
284
266
  } | null | undefined;
285
- }, {
286
- id: string;
287
- provider: string;
288
- cwd: string;
289
- createdAt: string;
290
- updatedAt: string;
291
- title?: string | null | undefined;
292
- internal?: boolean | undefined;
293
- parentAgentId?: string | null | undefined;
294
267
  config?: {
295
- extra?: Record<string, any> | null | undefined;
296
- systemPrompt?: string | null | undefined;
297
268
  modeId?: string | null | undefined;
298
269
  model?: string | null | undefined;
299
270
  thinkingOptionId?: string | null | undefined;
300
271
  title?: string | null | undefined;
272
+ extra?: Record<string, any> | null | undefined;
273
+ systemPrompt?: string | null | undefined;
301
274
  mcpServers?: Record<string, any> | null | undefined;
302
275
  } | null | undefined;
303
- runtimeInfo?: {
304
- provider: string;
305
- sessionId: string | null;
306
- extra?: Record<string, unknown> | undefined;
307
- modeId?: string | null | undefined;
308
- model?: string | null | undefined;
309
- thinkingOptionId?: string | null | undefined;
310
- } | undefined;
311
- pendingPermissions?: import("./agent-sdk-types.js").AgentPermissionRequest[] | undefined;
276
+ internal?: boolean | undefined;
312
277
  timelineRows?: {
313
- seq: number;
314
278
  timestamp: string;
315
- item?: unknown;
279
+ item: import("./agent-sdk-types.js").AgentTimelineItem;
280
+ seq: number;
316
281
  }[] | undefined;
317
282
  timelineEpoch?: string | undefined;
318
283
  timelineNextSeq?: number | undefined;
284
+ lastModeId?: string | null | undefined;
285
+ }, {
286
+ id: string;
287
+ provider: string;
288
+ createdAt: string;
289
+ updatedAt: string;
290
+ cwd: string;
291
+ parentAgentId?: string | null | undefined;
292
+ lastActivityAt?: string | undefined;
293
+ title?: string | null | undefined;
294
+ lastUserMessageAt?: string | null | undefined;
295
+ pendingPermissions?: import("./agent-sdk-types.js").AgentPermissionRequest[] | undefined;
319
296
  persistence?: {
320
297
  provider: string;
321
298
  sessionId: string;
322
- nativeHandle?: any;
323
299
  metadata?: Record<string, any> | undefined;
300
+ nativeHandle?: any;
324
301
  } | null | undefined;
325
- lastUserMessageAt?: string | null | undefined;
302
+ runtimeInfo?: {
303
+ provider: string;
304
+ sessionId: string | null;
305
+ modeId?: string | null | undefined;
306
+ model?: string | null | undefined;
307
+ thinkingOptionId?: string | null | undefined;
308
+ extra?: Record<string, unknown> | undefined;
309
+ } | undefined;
326
310
  labels?: Record<string, string> | undefined;
327
- lastActivityAt?: string | undefined;
328
- lastStatus?: "initializing" | "idle" | "running" | "error" | "closed" | undefined;
329
- lastModeId?: string | null | undefined;
330
311
  requiresAttention?: boolean | undefined;
331
312
  attentionReason?: "error" | "finished" | "permission" | null | undefined;
332
313
  attentionTimestamp?: string | null | undefined;
333
314
  archivedAt?: string | null | undefined;
334
315
  archivedWorktree?: {
335
- repoRoot: string;
336
- archivedAt: string;
337
- baseBranch: string;
338
316
  branchName: string;
317
+ baseBranch: string;
318
+ archivedAt: string;
319
+ repoRoot: string;
339
320
  worktreeSlug: string;
340
321
  originalCwd: string;
341
322
  baseBranchSource?: "local" | "remote" | undefined;
@@ -345,8 +326,8 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
345
326
  pullRequest?: {
346
327
  number: number;
347
328
  state: string;
348
- title: string;
349
329
  url: string;
330
+ title: string;
350
331
  baseRefName: string;
351
332
  headRefName: string;
352
333
  isMerged: boolean;
@@ -358,6 +339,25 @@ declare const STORED_AGENT_SCHEMA: z.ZodObject<{
358
339
  hasNonRequiredFailingChecks?: boolean | null | undefined;
359
340
  } | null | undefined;
360
341
  } | null | undefined;
342
+ config?: {
343
+ modeId?: string | null | undefined;
344
+ model?: string | null | undefined;
345
+ thinkingOptionId?: string | null | undefined;
346
+ title?: string | null | undefined;
347
+ extra?: Record<string, any> | null | undefined;
348
+ systemPrompt?: string | null | undefined;
349
+ mcpServers?: Record<string, any> | null | undefined;
350
+ } | null | undefined;
351
+ internal?: boolean | undefined;
352
+ timelineRows?: {
353
+ timestamp: string;
354
+ seq: number;
355
+ item?: unknown;
356
+ }[] | undefined;
357
+ timelineEpoch?: string | undefined;
358
+ timelineNextSeq?: number | undefined;
359
+ lastStatus?: "initializing" | "idle" | "running" | "error" | "closed" | undefined;
360
+ lastModeId?: string | null | undefined;
361
361
  }>;
362
362
  export type SerializableAgentConfig = Pick<AgentSessionConfig, "title" | "modeId" | "model" | "thinkingOptionId" | "extra" | "systemPrompt" | "mcpServers">;
363
363
  export type StoredAgentRecord = z.infer<typeof STORED_AGENT_SCHEMA>;
@@ -1 +1 @@
1
- {"version":3,"file":"claude-agent.d.ts","sourceRoot":"","sources":["../../../../../src/server/agent/providers/claude-agent.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,eAAe,EAQpB,KAAK,UAAU,EAKhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAYnC,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EAGX,oBAAoB,EAKpB,sBAAsB,EAItB,YAAY,EACZ,kBAAkB,EAGlB,iBAAiB,EAGjB,iBAAiB,EACjB,0BAA0B,EAE1B,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,8BAA8B,CAAC;AAuCtC,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AA6BF,KAAK,oCAAoC,GAAG;IAC1C,cAAc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C,CAA0B;gBAE/C,OAAO,EAAE,wBAAwB;IAMvC,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;IAahE,aAAa,CACjB,MAAM,EAAE,sBAAsB,EAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GACtC,OAAO,CAAC,YAAY,CAAC;IAoBlB,UAAU,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;YAIhE,mBAAmB;YAYnB,uBAAuB;IA+B/B,mBAAmB,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC;IAuB9F,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IASrC,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,wBAAwB;CAgBjC;AAqjGD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,GAAG,EACV,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,GACzE,iBAAiB,EAAE,CA+FrB;AA0LD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI,CAsBjE"}
@@ -631,7 +631,10 @@ function resolveClaudePermissionDecision(input) {
631
631
  if (input.kind !== "tool") {
632
632
  return "prompt";
633
633
  }
634
- const effectiveMode = input.currentMode;
634
+ const effectiveMode = input.currentMode === "plan" &&
635
+ input.lastNonPlanMode === "bypassPermissions"
636
+ ? "bypassPermissions"
637
+ : input.currentMode;
635
638
  if (effectiveMode === "bypassPermissions") {
636
639
  return "allow_silent";
637
640
  }