@junctionpanel/server 0.1.48 → 0.1.50

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.
@@ -0,0 +1,6 @@
1
+ import type { AgentStreamEvent, AgentTimelineItem, ToolCallDetail } from "./agent/agent-sdk-types.js";
2
+ export type TimelineDetailMode = "preview" | "full";
3
+ export declare function sanitizeToolCallDetailForTransport(detail: ToolCallDetail, mode: TimelineDetailMode): ToolCallDetail;
4
+ export declare function sanitizeTimelineItemForTransport(item: AgentTimelineItem, mode: TimelineDetailMode): AgentTimelineItem;
5
+ export declare function sanitizeAgentStreamEventForTransport(event: AgentStreamEvent, mode: TimelineDetailMode): AgentStreamEvent;
6
+ //# sourceMappingURL=tool-call-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-call-preview.d.ts","sourceRoot":"","sources":["../../../src/server/tool-call-preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEtG,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,MAAM,CAAC;AA6EpD,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,kBAAkB,GACvB,cAAc,CAwGhB;AAED,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,GACvB,iBAAiB,CASnB;AAED,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,kBAAkB,GACvB,gBAAgB,CAYlB"}
@@ -0,0 +1,174 @@
1
+ const SHELL_OUTPUT_PREVIEW_MAX_CHARS = 32000;
2
+ const TOOL_TEXT_PREVIEW_MAX_CHARS = 12000;
3
+ function buildTruncatedMarker(truncatedCount) {
4
+ return `\n...[truncated ${truncatedCount} chars]`;
5
+ }
6
+ function truncateHeadText(value, maxChars) {
7
+ if (typeof value !== "string" || value.length <= maxChars) {
8
+ return { text: value, truncated: false };
9
+ }
10
+ const truncatedCount = value.length - maxChars;
11
+ return {
12
+ text: `${value.slice(0, maxChars)}${buildTruncatedMarker(truncatedCount)}`,
13
+ truncated: true,
14
+ };
15
+ }
16
+ function sanitizeUnknownValueForPreview(value) {
17
+ if (typeof value === "string") {
18
+ const preview = truncateHeadText(value, TOOL_TEXT_PREVIEW_MAX_CHARS);
19
+ return { value: preview.text ?? "", truncated: preview.truncated };
20
+ }
21
+ if (value == null) {
22
+ return { value, truncated: false };
23
+ }
24
+ try {
25
+ const serialized = JSON.stringify(value, null, 2);
26
+ if (typeof serialized !== "string") {
27
+ return { value, truncated: false };
28
+ }
29
+ const preview = truncateHeadText(serialized, TOOL_TEXT_PREVIEW_MAX_CHARS);
30
+ return preview.truncated
31
+ ? { value: preview.text ?? "", truncated: true }
32
+ : { value, truncated: false };
33
+ }
34
+ catch {
35
+ const fallback = String(value);
36
+ const preview = truncateHeadText(fallback, TOOL_TEXT_PREVIEW_MAX_CHARS);
37
+ return preview.truncated
38
+ ? { value: preview.text ?? "", truncated: true }
39
+ : { value, truncated: false };
40
+ }
41
+ }
42
+ /**
43
+ * Keep more head than tail for shell output so the preview preserves the command context
44
+ * while still retaining the most recent lines; the truncation marker reduces the budget
45
+ * before the remaining chars are split 60/40 between head and tail.
46
+ */
47
+ function truncateHeadTailText(value, maxChars) {
48
+ if (typeof value !== "string" || value.length <= maxChars) {
49
+ return { text: value, truncated: false };
50
+ }
51
+ const marker = buildTruncatedMarker(value.length - maxChars);
52
+ const remaining = Math.max(0, maxChars - marker.length);
53
+ const headLength = Math.ceil(remaining * 0.6);
54
+ const tailLength = Math.max(0, remaining - headLength);
55
+ return {
56
+ text: `${value.slice(0, headLength)}${marker}${tailLength > 0 ? value.slice(-tailLength) : ""}`,
57
+ truncated: true,
58
+ };
59
+ }
60
+ export function sanitizeToolCallDetailForTransport(detail, mode) {
61
+ if (mode === "full") {
62
+ return detail;
63
+ }
64
+ switch (detail.type) {
65
+ case "shell": {
66
+ const preview = truncateHeadTailText(detail.output, SHELL_OUTPUT_PREVIEW_MAX_CHARS);
67
+ return preview.truncated
68
+ ? {
69
+ ...detail,
70
+ output: preview.text,
71
+ truncated: true,
72
+ }
73
+ : detail;
74
+ }
75
+ case "read": {
76
+ const preview = truncateHeadText(detail.content, TOOL_TEXT_PREVIEW_MAX_CHARS);
77
+ return preview.truncated
78
+ ? {
79
+ ...detail,
80
+ content: preview.text,
81
+ truncated: true,
82
+ }
83
+ : detail;
84
+ }
85
+ case "write": {
86
+ const preview = truncateHeadText(detail.content, TOOL_TEXT_PREVIEW_MAX_CHARS);
87
+ return preview.truncated
88
+ ? {
89
+ ...detail,
90
+ content: preview.text,
91
+ truncated: true,
92
+ }
93
+ : detail;
94
+ }
95
+ case "edit": {
96
+ const oldString = truncateHeadText(detail.oldString, TOOL_TEXT_PREVIEW_MAX_CHARS);
97
+ const newString = truncateHeadText(detail.newString, TOOL_TEXT_PREVIEW_MAX_CHARS);
98
+ const unifiedDiff = truncateHeadText(detail.unifiedDiff, TOOL_TEXT_PREVIEW_MAX_CHARS);
99
+ const truncated = oldString.truncated || newString.truncated || unifiedDiff.truncated;
100
+ return truncated
101
+ ? {
102
+ ...detail,
103
+ oldString: oldString.text,
104
+ newString: newString.text,
105
+ unifiedDiff: unifiedDiff.text,
106
+ truncated: true,
107
+ }
108
+ : detail;
109
+ }
110
+ case "worktree_setup": {
111
+ const preview = truncateHeadText(detail.log, TOOL_TEXT_PREVIEW_MAX_CHARS);
112
+ return preview.truncated
113
+ ? {
114
+ ...detail,
115
+ log: preview.text ?? "",
116
+ truncated: true,
117
+ }
118
+ : detail;
119
+ }
120
+ case "sub_agent": {
121
+ const preview = truncateHeadText(detail.log, TOOL_TEXT_PREVIEW_MAX_CHARS);
122
+ return preview.truncated
123
+ ? {
124
+ ...detail,
125
+ log: preview.text ?? "",
126
+ truncated: true,
127
+ }
128
+ : detail;
129
+ }
130
+ case "plain_text": {
131
+ const preview = truncateHeadText(detail.text, TOOL_TEXT_PREVIEW_MAX_CHARS);
132
+ return preview.truncated
133
+ ? {
134
+ ...detail,
135
+ text: preview.text,
136
+ truncated: true,
137
+ }
138
+ : detail;
139
+ }
140
+ case "unknown": {
141
+ const input = sanitizeUnknownValueForPreview(detail.input);
142
+ const output = sanitizeUnknownValueForPreview(detail.output);
143
+ return input.truncated || output.truncated
144
+ ? {
145
+ ...detail,
146
+ input: input.value,
147
+ output: output.value,
148
+ truncated: true,
149
+ }
150
+ : detail;
151
+ }
152
+ default:
153
+ return detail;
154
+ }
155
+ }
156
+ export function sanitizeTimelineItemForTransport(item, mode) {
157
+ if (mode === "full" || item.type !== "tool_call") {
158
+ return item;
159
+ }
160
+ return {
161
+ ...item,
162
+ detail: sanitizeToolCallDetailForTransport(item.detail, mode),
163
+ };
164
+ }
165
+ export function sanitizeAgentStreamEventForTransport(event, mode) {
166
+ if (mode === "full" || event.type !== "timeline" || event.item.type !== "tool_call") {
167
+ return event;
168
+ }
169
+ return {
170
+ ...event,
171
+ item: sanitizeTimelineItemForTransport(event.item, mode),
172
+ };
173
+ }
174
+ //# sourceMappingURL=tool-call-preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-call-preview.js","sourceRoot":"","sources":["../../../src/server/tool-call-preview.ts"],"names":[],"mappings":"AAIA,MAAM,8BAA8B,GAAG,KAAM,CAAC;AAC9C,MAAM,2BAA2B,GAAG,KAAM,CAAC;AAE3C,SAAS,oBAAoB,CAAC,cAAsB;IAClD,OAAO,mBAAmB,cAAc,SAAS,CAAC;AACpD,CAAC;AAED,SAAS,gBAAgB,CACvB,KAAyB,EACzB,QAAgB;IAEhB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC1D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC3C,CAAC;IACD,MAAM,cAA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CAAC,CAAC,CAAC;YACf,MAAM,KAAK,GAAG,8BAA8B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC3D,MAAM,MAAM,GAAG,8BAA8B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC7D,OAAO,KAAK,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS;gBACxC,CAAC,CAAC;oBACE,GAAG,MAAM;oBACT,KAAK,EAAE,KAAK,CAAC,KAAK;oBAClB,MAAM,EAAE,MAAM,CAAC,KAAK;oBACpB,SAAS,EAAE,IAAI;iBAChB;gBACH,CAAC,CAAC,MAAM,CAAC;QACb,CAAC;QAED;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,IAAuB,EACvB,IAAwB;IAExB,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,GAAG,IAAI;QACP,MAAM,EAAE,kCAAkC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;KAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,KAAuB,EACvB,IAAwB;IAExB,IAAI,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO;QACL,GAAG,KAAK;QACR,IAAI,EAAE,gCAAgC,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAGtD;KACF,CAAC;AACJ,CAAC"}
@@ -1237,6 +1237,7 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1237
1237
  }>>;
1238
1238
  limit: z.ZodOptional<z.ZodNumber>;
1239
1239
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
1240
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
1240
1241
  }, "strip", z.ZodTypeAny, {
1241
1242
  agentId: string;
1242
1243
  type: "fetch_agent_timeline_request";
@@ -1248,6 +1249,7 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1248
1249
  epoch: string;
1249
1250
  } | undefined;
1250
1251
  projection?: "projected" | "canonical" | undefined;
1252
+ detailMode?: "preview" | "full" | undefined;
1251
1253
  }, {
1252
1254
  agentId: string;
1253
1255
  type: "fetch_agent_timeline_request";
@@ -1259,6 +1261,7 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1259
1261
  epoch: string;
1260
1262
  } | undefined;
1261
1263
  projection?: "projected" | "canonical" | undefined;
1264
+ detailMode?: "preview" | "full" | undefined;
1262
1265
  }>;
1263
1266
  export declare const SetAgentModeRequestMessageSchema: z.ZodObject<{
1264
1267
  type: z.ZodLiteral<"set_agent_mode_request">;
@@ -3256,6 +3259,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3256
3259
  }>>;
3257
3260
  limit: z.ZodOptional<z.ZodNumber>;
3258
3261
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
3262
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
3259
3263
  }, "strip", z.ZodTypeAny, {
3260
3264
  agentId: string;
3261
3265
  type: "fetch_agent_timeline_request";
@@ -3267,6 +3271,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3267
3271
  epoch: string;
3268
3272
  } | undefined;
3269
3273
  projection?: "projected" | "canonical" | undefined;
3274
+ detailMode?: "preview" | "full" | undefined;
3270
3275
  }, {
3271
3276
  agentId: string;
3272
3277
  type: "fetch_agent_timeline_request";
@@ -3278,6 +3283,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3278
3283
  epoch: string;
3279
3284
  } | undefined;
3280
3285
  projection?: "projected" | "canonical" | undefined;
3286
+ detailMode?: "preview" | "full" | undefined;
3281
3287
  }>, z.ZodObject<{
3282
3288
  type: z.ZodLiteral<"set_agent_mode_request">;
3283
3289
  agentId: z.ZodString;
@@ -11462,15 +11468,15 @@ export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11462
11468
  requestId: z.ZodString;
11463
11469
  }, "strip", z.ZodTypeAny, {
11464
11470
  error: string | null;
11465
- content: string;
11466
11471
  truncated: boolean;
11472
+ content: string;
11467
11473
  requestId: string;
11468
11474
  logPath: string | null;
11469
11475
  lineCount: number;
11470
11476
  }, {
11471
11477
  error: string | null;
11472
- content: string;
11473
11478
  truncated: boolean;
11479
+ content: string;
11474
11480
  requestId: string;
11475
11481
  logPath: string | null;
11476
11482
  lineCount: number;
@@ -11479,8 +11485,8 @@ export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11479
11485
  type: "get_daemon_log_tail_response";
11480
11486
  payload: {
11481
11487
  error: string | null;
11482
- content: string;
11483
11488
  truncated: boolean;
11489
+ content: string;
11484
11490
  requestId: string;
11485
11491
  logPath: string | null;
11486
11492
  lineCount: number;
@@ -11489,8 +11495,8 @@ export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11489
11495
  type: "get_daemon_log_tail_response";
11490
11496
  payload: {
11491
11497
  error: string | null;
11492
- content: string;
11493
11498
  truncated: boolean;
11499
+ content: string;
11494
11500
  requestId: string;
11495
11501
  logPath: string | null;
11496
11502
  lineCount: number;
@@ -18659,15 +18665,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18659
18665
  requestId: z.ZodString;
18660
18666
  }, "strip", z.ZodTypeAny, {
18661
18667
  error: string | null;
18662
- content: string;
18663
18668
  truncated: boolean;
18669
+ content: string;
18664
18670
  requestId: string;
18665
18671
  logPath: string | null;
18666
18672
  lineCount: number;
18667
18673
  }, {
18668
18674
  error: string | null;
18669
- content: string;
18670
18675
  truncated: boolean;
18676
+ content: string;
18671
18677
  requestId: string;
18672
18678
  logPath: string | null;
18673
18679
  lineCount: number;
@@ -18676,8 +18682,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18676
18682
  type: "get_daemon_log_tail_response";
18677
18683
  payload: {
18678
18684
  error: string | null;
18679
- content: string;
18680
18685
  truncated: boolean;
18686
+ content: string;
18681
18687
  requestId: string;
18682
18688
  logPath: string | null;
18683
18689
  lineCount: number;
@@ -18686,8 +18692,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18686
18692
  type: "get_daemon_log_tail_response";
18687
18693
  payload: {
18688
18694
  error: string | null;
18689
- content: string;
18690
18695
  truncated: boolean;
18696
+ content: string;
18691
18697
  requestId: string;
18692
18698
  logPath: string | null;
18693
18699
  lineCount: number;
@@ -20807,6 +20813,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20807
20813
  }>>;
20808
20814
  limit: z.ZodOptional<z.ZodNumber>;
20809
20815
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
20816
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
20810
20817
  }, "strip", z.ZodTypeAny, {
20811
20818
  agentId: string;
20812
20819
  type: "fetch_agent_timeline_request";
@@ -20818,6 +20825,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20818
20825
  epoch: string;
20819
20826
  } | undefined;
20820
20827
  projection?: "projected" | "canonical" | undefined;
20828
+ detailMode?: "preview" | "full" | undefined;
20821
20829
  }, {
20822
20830
  agentId: string;
20823
20831
  type: "fetch_agent_timeline_request";
@@ -20829,6 +20837,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20829
20837
  epoch: string;
20830
20838
  } | undefined;
20831
20839
  projection?: "projected" | "canonical" | undefined;
20840
+ detailMode?: "preview" | "full" | undefined;
20832
20841
  }>, z.ZodObject<{
20833
20842
  type: z.ZodLiteral<"set_agent_mode_request">;
20834
20843
  agentId: z.ZodString;
@@ -21921,6 +21930,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21921
21930
  epoch: string;
21922
21931
  } | undefined;
21923
21932
  projection?: "projected" | "canonical" | undefined;
21933
+ detailMode?: "preview" | "full" | undefined;
21924
21934
  } | {
21925
21935
  agentId: string;
21926
21936
  modeId: string;
@@ -22406,6 +22416,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22406
22416
  epoch: string;
22407
22417
  } | undefined;
22408
22418
  projection?: "projected" | "canonical" | undefined;
22419
+ detailMode?: "preview" | "full" | undefined;
22409
22420
  } | {
22410
22421
  agentId: string;
22411
22422
  modeId: string;
@@ -28806,15 +28817,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28806
28817
  requestId: z.ZodString;
28807
28818
  }, "strip", z.ZodTypeAny, {
28808
28819
  error: string | null;
28809
- content: string;
28810
28820
  truncated: boolean;
28821
+ content: string;
28811
28822
  requestId: string;
28812
28823
  logPath: string | null;
28813
28824
  lineCount: number;
28814
28825
  }, {
28815
28826
  error: string | null;
28816
- content: string;
28817
28827
  truncated: boolean;
28828
+ content: string;
28818
28829
  requestId: string;
28819
28830
  logPath: string | null;
28820
28831
  lineCount: number;
@@ -28823,8 +28834,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28823
28834
  type: "get_daemon_log_tail_response";
28824
28835
  payload: {
28825
28836
  error: string | null;
28826
- content: string;
28827
28837
  truncated: boolean;
28838
+ content: string;
28828
28839
  requestId: string;
28829
28840
  logPath: string | null;
28830
28841
  lineCount: number;
@@ -28833,8 +28844,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28833
28844
  type: "get_daemon_log_tail_response";
28834
28845
  payload: {
28835
28846
  error: string | null;
28836
- content: string;
28837
28847
  truncated: boolean;
28848
+ content: string;
28838
28849
  requestId: string;
28839
28850
  logPath: string | null;
28840
28851
  lineCount: number;
@@ -30889,8 +30900,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30889
30900
  type: "get_daemon_log_tail_response";
30890
30901
  payload: {
30891
30902
  error: string | null;
30892
- content: string;
30893
30903
  truncated: boolean;
30904
+ content: string;
30894
30905
  requestId: string;
30895
30906
  logPath: string | null;
30896
30907
  lineCount: number;
@@ -32080,8 +32091,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
32080
32091
  type: "get_daemon_log_tail_response";
32081
32092
  payload: {
32082
32093
  error: string | null;
32083
- content: string;
32084
32094
  truncated: boolean;
32095
+ content: string;
32085
32096
  requestId: string;
32086
32097
  logPath: string | null;
32087
32098
  lineCount: number;
@@ -33171,6 +33182,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33171
33182
  }>>;
33172
33183
  limit: z.ZodOptional<z.ZodNumber>;
33173
33184
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
33185
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
33174
33186
  }, "strip", z.ZodTypeAny, {
33175
33187
  agentId: string;
33176
33188
  type: "fetch_agent_timeline_request";
@@ -33182,6 +33194,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33182
33194
  epoch: string;
33183
33195
  } | undefined;
33184
33196
  projection?: "projected" | "canonical" | undefined;
33197
+ detailMode?: "preview" | "full" | undefined;
33185
33198
  }, {
33186
33199
  agentId: string;
33187
33200
  type: "fetch_agent_timeline_request";
@@ -33193,6 +33206,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33193
33206
  epoch: string;
33194
33207
  } | undefined;
33195
33208
  projection?: "projected" | "canonical" | undefined;
33209
+ detailMode?: "preview" | "full" | undefined;
33196
33210
  }>, z.ZodObject<{
33197
33211
  type: z.ZodLiteral<"set_agent_mode_request">;
33198
33212
  agentId: z.ZodString;
@@ -34285,6 +34299,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34285
34299
  epoch: string;
34286
34300
  } | undefined;
34287
34301
  projection?: "projected" | "canonical" | undefined;
34302
+ detailMode?: "preview" | "full" | undefined;
34288
34303
  } | {
34289
34304
  agentId: string;
34290
34305
  modeId: string;
@@ -34770,6 +34785,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34770
34785
  epoch: string;
34771
34786
  } | undefined;
34772
34787
  projection?: "projected" | "canonical" | undefined;
34788
+ detailMode?: "preview" | "full" | undefined;
34773
34789
  } | {
34774
34790
  agentId: string;
34775
34791
  modeId: string;
@@ -41197,15 +41213,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41197
41213
  requestId: z.ZodString;
41198
41214
  }, "strip", z.ZodTypeAny, {
41199
41215
  error: string | null;
41200
- content: string;
41201
41216
  truncated: boolean;
41217
+ content: string;
41202
41218
  requestId: string;
41203
41219
  logPath: string | null;
41204
41220
  lineCount: number;
41205
41221
  }, {
41206
41222
  error: string | null;
41207
- content: string;
41208
41223
  truncated: boolean;
41224
+ content: string;
41209
41225
  requestId: string;
41210
41226
  logPath: string | null;
41211
41227
  lineCount: number;
@@ -41214,8 +41230,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41214
41230
  type: "get_daemon_log_tail_response";
41215
41231
  payload: {
41216
41232
  error: string | null;
41217
- content: string;
41218
41233
  truncated: boolean;
41234
+ content: string;
41219
41235
  requestId: string;
41220
41236
  logPath: string | null;
41221
41237
  lineCount: number;
@@ -41224,8 +41240,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41224
41240
  type: "get_daemon_log_tail_response";
41225
41241
  payload: {
41226
41242
  error: string | null;
41227
- content: string;
41228
41243
  truncated: boolean;
41244
+ content: string;
41229
41245
  requestId: string;
41230
41246
  logPath: string | null;
41231
41247
  lineCount: number;
@@ -43280,8 +43296,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
43280
43296
  type: "get_daemon_log_tail_response";
43281
43297
  payload: {
43282
43298
  error: string | null;
43283
- content: string;
43284
43299
  truncated: boolean;
43300
+ content: string;
43285
43301
  requestId: string;
43286
43302
  logPath: string | null;
43287
43303
  lineCount: number;
@@ -44471,8 +44487,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
44471
44487
  type: "get_daemon_log_tail_response";
44472
44488
  payload: {
44473
44489
  error: string | null;
44474
- content: string;
44475
44490
  truncated: boolean;
44491
+ content: string;
44476
44492
  requestId: string;
44477
44493
  logPath: string | null;
44478
44494
  lineCount: number;