linkshell-cli 0.5.38 → 0.5.39
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/cli/src/runtime/acp/agent-process-discovery.d.ts +1 -1
- package/dist/cli/src/runtime/acp/agent-process-discovery.js +8 -1
- package/dist/cli/src/runtime/acp/agent-process-discovery.js.map +1 -1
- package/dist/cli/src/runtime/acp/agent-workspace.d.ts +137 -0
- package/dist/cli/src/runtime/acp/agent-workspace.js +461 -64
- package/dist/cli/src/runtime/acp/agent-workspace.js.map +1 -1
- package/dist/cli/src/runtime/acp/provider-resolver.js +9 -0
- package/dist/cli/src/runtime/acp/provider-resolver.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/shared-protocol/src/index.d.ts +164 -8
- package/dist/shared-protocol/src/index.js +6 -0
- package/dist/shared-protocol/src/index.js.map +1 -1
- package/package.json +3 -3
- package/src/runtime/acp/agent-process-discovery.ts +6 -1
- package/src/runtime/acp/agent-workspace.ts +405 -18
- package/src/runtime/acp/provider-resolver.ts +10 -0
- package/web/assets/{FileBrowser-Db2LlqTw.js → FileBrowser-DtVanRUn.js} +1 -1
- package/web/assets/{PortPreview-Cobi7sn0.js → PortPreview-DC2-UmHo.js} +1 -1
- package/web/assets/{TerminalPanel-_Wve-C8s.js → TerminalPanel-D4gHM4Ta.js} +1 -1
- package/web/assets/{UsageDashboard-DmXct3sk.js → UsageDashboard-ZnvuvqWc.js} +1 -1
- package/web/assets/index-DKdJgZ9D.js +36 -0
- package/web/index.html +1 -1
- package/web/assets/index-pnfD2xom.js +0 -35
|
@@ -102,8 +102,8 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
|
|
|
102
102
|
role: "host" | "client";
|
|
103
103
|
provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
|
|
104
104
|
hostname?: string | undefined;
|
|
105
|
-
cwd?: string | undefined;
|
|
106
105
|
protocolVersion?: number | undefined;
|
|
106
|
+
cwd?: string | undefined;
|
|
107
107
|
machineId?: string | undefined;
|
|
108
108
|
platform?: string | undefined;
|
|
109
109
|
projectName?: string | undefined;
|
|
@@ -112,8 +112,8 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
|
|
|
112
112
|
role: "host" | "client";
|
|
113
113
|
provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
|
|
114
114
|
hostname?: string | undefined;
|
|
115
|
-
cwd?: string | undefined;
|
|
116
115
|
protocolVersion?: number | undefined;
|
|
116
|
+
cwd?: string | undefined;
|
|
117
117
|
machineId?: string | undefined;
|
|
118
118
|
platform?: string | undefined;
|
|
119
119
|
projectName?: string | undefined;
|
|
@@ -2080,7 +2080,6 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2080
2080
|
context?: string | undefined;
|
|
2081
2081
|
}[];
|
|
2082
2082
|
error?: string | undefined;
|
|
2083
|
-
agentSessionId?: string | undefined;
|
|
2084
2083
|
capabilities?: {
|
|
2085
2084
|
enabled: boolean;
|
|
2086
2085
|
supportsImages: boolean;
|
|
@@ -2139,10 +2138,10 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2139
2138
|
}[] | undefined;
|
|
2140
2139
|
}[] | undefined;
|
|
2141
2140
|
} | undefined;
|
|
2141
|
+
agentSessionId?: string | undefined;
|
|
2142
2142
|
}, {
|
|
2143
2143
|
status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
|
|
2144
2144
|
error?: string | undefined;
|
|
2145
|
-
agentSessionId?: string | undefined;
|
|
2146
2145
|
capabilities?: {
|
|
2147
2146
|
enabled: boolean;
|
|
2148
2147
|
provider?: string | undefined;
|
|
@@ -2201,6 +2200,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2201
2200
|
supportsSessionLoad?: boolean | undefined;
|
|
2202
2201
|
supportsAudio?: boolean | undefined;
|
|
2203
2202
|
} | undefined;
|
|
2203
|
+
agentSessionId?: string | undefined;
|
|
2204
2204
|
messages?: {
|
|
2205
2205
|
id: string;
|
|
2206
2206
|
role: "user" | "assistant" | "system";
|
|
@@ -3119,11 +3119,17 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3119
3119
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
3120
3120
|
provider: z.ZodDefault<z.ZodString>;
|
|
3121
3121
|
cwd: z.ZodString;
|
|
3122
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
3123
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3124
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
3125
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3122
3126
|
title: z.ZodOptional<z.ZodString>;
|
|
3123
3127
|
model: z.ZodOptional<z.ZodString>;
|
|
3124
3128
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
3125
3129
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
3126
3130
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
3131
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
3132
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
3127
3133
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
3128
3134
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
3129
3135
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -3162,6 +3168,7 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3162
3168
|
cwd: string;
|
|
3163
3169
|
id: string;
|
|
3164
3170
|
createdAt: number;
|
|
3171
|
+
control: "owned" | "attached";
|
|
3165
3172
|
archived: boolean;
|
|
3166
3173
|
lastActivityAt: number;
|
|
3167
3174
|
model?: string | undefined;
|
|
@@ -3170,6 +3177,8 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3170
3177
|
agentSessionId?: string | undefined;
|
|
3171
3178
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
3172
3179
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
3180
|
+
workspaceRoots?: string[] | undefined;
|
|
3181
|
+
group?: string | undefined;
|
|
3173
3182
|
lastMessagePreview?: string | undefined;
|
|
3174
3183
|
usage?: {
|
|
3175
3184
|
inputTokens?: number | undefined;
|
|
@@ -3193,6 +3202,9 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3193
3202
|
agentSessionId?: string | undefined;
|
|
3194
3203
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
3195
3204
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
3205
|
+
workspaceRoots?: string[] | undefined;
|
|
3206
|
+
group?: string | undefined;
|
|
3207
|
+
control?: "owned" | "attached" | undefined;
|
|
3196
3208
|
archived?: boolean | undefined;
|
|
3197
3209
|
lastMessagePreview?: string | undefined;
|
|
3198
3210
|
usage?: {
|
|
@@ -3561,11 +3573,17 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3561
3573
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
3562
3574
|
provider: z.ZodDefault<z.ZodString>;
|
|
3563
3575
|
cwd: z.ZodString;
|
|
3576
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
3577
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3578
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
3579
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3564
3580
|
title: z.ZodOptional<z.ZodString>;
|
|
3565
3581
|
model: z.ZodOptional<z.ZodString>;
|
|
3566
3582
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
3567
3583
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
3568
3584
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
3585
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
3586
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
3569
3587
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
3570
3588
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
3571
3589
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -3604,6 +3622,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3604
3622
|
cwd: string;
|
|
3605
3623
|
id: string;
|
|
3606
3624
|
createdAt: number;
|
|
3625
|
+
control: "owned" | "attached";
|
|
3607
3626
|
archived: boolean;
|
|
3608
3627
|
lastActivityAt: number;
|
|
3609
3628
|
model?: string | undefined;
|
|
@@ -3612,6 +3631,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3612
3631
|
agentSessionId?: string | undefined;
|
|
3613
3632
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
3614
3633
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
3634
|
+
workspaceRoots?: string[] | undefined;
|
|
3635
|
+
group?: string | undefined;
|
|
3615
3636
|
lastMessagePreview?: string | undefined;
|
|
3616
3637
|
usage?: {
|
|
3617
3638
|
inputTokens?: number | undefined;
|
|
@@ -3635,6 +3656,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3635
3656
|
agentSessionId?: string | undefined;
|
|
3636
3657
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
3637
3658
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
3659
|
+
workspaceRoots?: string[] | undefined;
|
|
3660
|
+
group?: string | undefined;
|
|
3661
|
+
control?: "owned" | "attached" | undefined;
|
|
3638
3662
|
archived?: boolean | undefined;
|
|
3639
3663
|
lastMessagePreview?: string | undefined;
|
|
3640
3664
|
usage?: {
|
|
@@ -4182,6 +4206,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4182
4206
|
cwd: string;
|
|
4183
4207
|
id: string;
|
|
4184
4208
|
createdAt: number;
|
|
4209
|
+
control: "owned" | "attached";
|
|
4185
4210
|
archived: boolean;
|
|
4186
4211
|
lastActivityAt: number;
|
|
4187
4212
|
model?: string | undefined;
|
|
@@ -4190,6 +4215,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4190
4215
|
agentSessionId?: string | undefined;
|
|
4191
4216
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4192
4217
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4218
|
+
workspaceRoots?: string[] | undefined;
|
|
4219
|
+
group?: string | undefined;
|
|
4193
4220
|
lastMessagePreview?: string | undefined;
|
|
4194
4221
|
usage?: {
|
|
4195
4222
|
inputTokens?: number | undefined;
|
|
@@ -4317,6 +4344,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4317
4344
|
agentSessionId?: string | undefined;
|
|
4318
4345
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4319
4346
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4347
|
+
workspaceRoots?: string[] | undefined;
|
|
4348
|
+
group?: string | undefined;
|
|
4349
|
+
control?: "owned" | "attached" | undefined;
|
|
4320
4350
|
archived?: boolean | undefined;
|
|
4321
4351
|
lastMessagePreview?: string | undefined;
|
|
4322
4352
|
usage?: {
|
|
@@ -4445,11 +4475,17 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4445
4475
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
4446
4476
|
provider: z.ZodDefault<z.ZodString>;
|
|
4447
4477
|
cwd: z.ZodString;
|
|
4478
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
4479
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4480
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
4481
|
+
group: z.ZodOptional<z.ZodString>;
|
|
4448
4482
|
title: z.ZodOptional<z.ZodString>;
|
|
4449
4483
|
model: z.ZodOptional<z.ZodString>;
|
|
4450
4484
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
4451
4485
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
4452
4486
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
4487
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
4488
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
4453
4489
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
4454
4490
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
4455
4491
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -4488,6 +4524,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4488
4524
|
cwd: string;
|
|
4489
4525
|
id: string;
|
|
4490
4526
|
createdAt: number;
|
|
4527
|
+
control: "owned" | "attached";
|
|
4491
4528
|
archived: boolean;
|
|
4492
4529
|
lastActivityAt: number;
|
|
4493
4530
|
model?: string | undefined;
|
|
@@ -4496,6 +4533,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4496
4533
|
agentSessionId?: string | undefined;
|
|
4497
4534
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4498
4535
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4536
|
+
workspaceRoots?: string[] | undefined;
|
|
4537
|
+
group?: string | undefined;
|
|
4499
4538
|
lastMessagePreview?: string | undefined;
|
|
4500
4539
|
usage?: {
|
|
4501
4540
|
inputTokens?: number | undefined;
|
|
@@ -4519,6 +4558,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4519
4558
|
agentSessionId?: string | undefined;
|
|
4520
4559
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4521
4560
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4561
|
+
workspaceRoots?: string[] | undefined;
|
|
4562
|
+
group?: string | undefined;
|
|
4563
|
+
control?: "owned" | "attached" | undefined;
|
|
4522
4564
|
archived?: boolean | undefined;
|
|
4523
4565
|
lastMessagePreview?: string | undefined;
|
|
4524
4566
|
usage?: {
|
|
@@ -4538,6 +4580,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4538
4580
|
cwd: string;
|
|
4539
4581
|
id: string;
|
|
4540
4582
|
createdAt: number;
|
|
4583
|
+
control: "owned" | "attached";
|
|
4541
4584
|
archived: boolean;
|
|
4542
4585
|
lastActivityAt: number;
|
|
4543
4586
|
model?: string | undefined;
|
|
@@ -4546,6 +4589,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4546
4589
|
agentSessionId?: string | undefined;
|
|
4547
4590
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4548
4591
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4592
|
+
workspaceRoots?: string[] | undefined;
|
|
4593
|
+
group?: string | undefined;
|
|
4549
4594
|
lastMessagePreview?: string | undefined;
|
|
4550
4595
|
usage?: {
|
|
4551
4596
|
inputTokens?: number | undefined;
|
|
@@ -4571,6 +4616,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4571
4616
|
agentSessionId?: string | undefined;
|
|
4572
4617
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4573
4618
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4619
|
+
workspaceRoots?: string[] | undefined;
|
|
4620
|
+
group?: string | undefined;
|
|
4621
|
+
control?: "owned" | "attached" | undefined;
|
|
4574
4622
|
archived?: boolean | undefined;
|
|
4575
4623
|
lastMessagePreview?: string | undefined;
|
|
4576
4624
|
usage?: {
|
|
@@ -4708,11 +4756,17 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4708
4756
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
4709
4757
|
provider: z.ZodDefault<z.ZodString>;
|
|
4710
4758
|
cwd: z.ZodString;
|
|
4759
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
4760
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4761
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
4762
|
+
group: z.ZodOptional<z.ZodString>;
|
|
4711
4763
|
title: z.ZodOptional<z.ZodString>;
|
|
4712
4764
|
model: z.ZodOptional<z.ZodString>;
|
|
4713
4765
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
4714
4766
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
4715
4767
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
4768
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
4769
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
4716
4770
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
4717
4771
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
4718
4772
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -4751,6 +4805,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4751
4805
|
cwd: string;
|
|
4752
4806
|
id: string;
|
|
4753
4807
|
createdAt: number;
|
|
4808
|
+
control: "owned" | "attached";
|
|
4754
4809
|
archived: boolean;
|
|
4755
4810
|
lastActivityAt: number;
|
|
4756
4811
|
model?: string | undefined;
|
|
@@ -4759,6 +4814,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4759
4814
|
agentSessionId?: string | undefined;
|
|
4760
4815
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4761
4816
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4817
|
+
workspaceRoots?: string[] | undefined;
|
|
4818
|
+
group?: string | undefined;
|
|
4762
4819
|
lastMessagePreview?: string | undefined;
|
|
4763
4820
|
usage?: {
|
|
4764
4821
|
inputTokens?: number | undefined;
|
|
@@ -4782,6 +4839,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4782
4839
|
agentSessionId?: string | undefined;
|
|
4783
4840
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
4784
4841
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
4842
|
+
workspaceRoots?: string[] | undefined;
|
|
4843
|
+
group?: string | undefined;
|
|
4844
|
+
control?: "owned" | "attached" | undefined;
|
|
4785
4845
|
archived?: boolean | undefined;
|
|
4786
4846
|
lastMessagePreview?: string | undefined;
|
|
4787
4847
|
usage?: {
|
|
@@ -5431,6 +5491,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5431
5491
|
cwd: string;
|
|
5432
5492
|
id: string;
|
|
5433
5493
|
createdAt: number;
|
|
5494
|
+
control: "owned" | "attached";
|
|
5434
5495
|
archived: boolean;
|
|
5435
5496
|
lastActivityAt: number;
|
|
5436
5497
|
model?: string | undefined;
|
|
@@ -5439,6 +5500,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5439
5500
|
agentSessionId?: string | undefined;
|
|
5440
5501
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
5441
5502
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
5503
|
+
workspaceRoots?: string[] | undefined;
|
|
5504
|
+
group?: string | undefined;
|
|
5442
5505
|
lastMessagePreview?: string | undefined;
|
|
5443
5506
|
usage?: {
|
|
5444
5507
|
inputTokens?: number | undefined;
|
|
@@ -5568,6 +5631,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5568
5631
|
agentSessionId?: string | undefined;
|
|
5569
5632
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
5570
5633
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
5634
|
+
workspaceRoots?: string[] | undefined;
|
|
5635
|
+
group?: string | undefined;
|
|
5636
|
+
control?: "owned" | "attached" | undefined;
|
|
5571
5637
|
archived?: boolean | undefined;
|
|
5572
5638
|
lastMessagePreview?: string | undefined;
|
|
5573
5639
|
usage?: {
|
|
@@ -5589,11 +5655,17 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5589
5655
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
5590
5656
|
provider: z.ZodDefault<z.ZodString>;
|
|
5591
5657
|
cwd: z.ZodString;
|
|
5658
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
5659
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5660
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
5661
|
+
group: z.ZodOptional<z.ZodString>;
|
|
5592
5662
|
title: z.ZodOptional<z.ZodString>;
|
|
5593
5663
|
model: z.ZodOptional<z.ZodString>;
|
|
5594
5664
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
5595
5665
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
5596
5666
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
5667
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
5668
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
5597
5669
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
5598
5670
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
5599
5671
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -5632,6 +5704,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5632
5704
|
cwd: string;
|
|
5633
5705
|
id: string;
|
|
5634
5706
|
createdAt: number;
|
|
5707
|
+
control: "owned" | "attached";
|
|
5635
5708
|
archived: boolean;
|
|
5636
5709
|
lastActivityAt: number;
|
|
5637
5710
|
model?: string | undefined;
|
|
@@ -5640,6 +5713,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5640
5713
|
agentSessionId?: string | undefined;
|
|
5641
5714
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
5642
5715
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
5716
|
+
workspaceRoots?: string[] | undefined;
|
|
5717
|
+
group?: string | undefined;
|
|
5643
5718
|
lastMessagePreview?: string | undefined;
|
|
5644
5719
|
usage?: {
|
|
5645
5720
|
inputTokens?: number | undefined;
|
|
@@ -5663,6 +5738,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5663
5738
|
agentSessionId?: string | undefined;
|
|
5664
5739
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
5665
5740
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
5741
|
+
workspaceRoots?: string[] | undefined;
|
|
5742
|
+
group?: string | undefined;
|
|
5743
|
+
control?: "owned" | "attached" | undefined;
|
|
5666
5744
|
archived?: boolean | undefined;
|
|
5667
5745
|
lastMessagePreview?: string | undefined;
|
|
5668
5746
|
usage?: {
|
|
@@ -6923,6 +7001,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6923
7001
|
cwd: string;
|
|
6924
7002
|
id: string;
|
|
6925
7003
|
createdAt: number;
|
|
7004
|
+
control: "owned" | "attached";
|
|
6926
7005
|
archived: boolean;
|
|
6927
7006
|
lastActivityAt: number;
|
|
6928
7007
|
model?: string | undefined;
|
|
@@ -6931,6 +7010,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6931
7010
|
agentSessionId?: string | undefined;
|
|
6932
7011
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
6933
7012
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
7013
|
+
workspaceRoots?: string[] | undefined;
|
|
7014
|
+
group?: string | undefined;
|
|
6934
7015
|
lastMessagePreview?: string | undefined;
|
|
6935
7016
|
usage?: {
|
|
6936
7017
|
inputTokens?: number | undefined;
|
|
@@ -7155,6 +7236,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
7155
7236
|
agentSessionId?: string | undefined;
|
|
7156
7237
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
7157
7238
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
7239
|
+
workspaceRoots?: string[] | undefined;
|
|
7240
|
+
group?: string | undefined;
|
|
7241
|
+
control?: "owned" | "attached" | undefined;
|
|
7158
7242
|
archived?: boolean | undefined;
|
|
7159
7243
|
lastMessagePreview?: string | undefined;
|
|
7160
7244
|
usage?: {
|
|
@@ -9176,8 +9260,8 @@ export declare const protocolMessageSchemas: {
|
|
|
9176
9260
|
role: "host" | "client";
|
|
9177
9261
|
provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
|
|
9178
9262
|
hostname?: string | undefined;
|
|
9179
|
-
cwd?: string | undefined;
|
|
9180
9263
|
protocolVersion?: number | undefined;
|
|
9264
|
+
cwd?: string | undefined;
|
|
9181
9265
|
machineId?: string | undefined;
|
|
9182
9266
|
platform?: string | undefined;
|
|
9183
9267
|
projectName?: string | undefined;
|
|
@@ -9186,8 +9270,8 @@ export declare const protocolMessageSchemas: {
|
|
|
9186
9270
|
role: "host" | "client";
|
|
9187
9271
|
provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
|
|
9188
9272
|
hostname?: string | undefined;
|
|
9189
|
-
cwd?: string | undefined;
|
|
9190
9273
|
protocolVersion?: number | undefined;
|
|
9274
|
+
cwd?: string | undefined;
|
|
9191
9275
|
machineId?: string | undefined;
|
|
9192
9276
|
platform?: string | undefined;
|
|
9193
9277
|
projectName?: string | undefined;
|
|
@@ -10865,7 +10949,6 @@ export declare const protocolMessageSchemas: {
|
|
|
10865
10949
|
context?: string | undefined;
|
|
10866
10950
|
}[];
|
|
10867
10951
|
error?: string | undefined;
|
|
10868
|
-
agentSessionId?: string | undefined;
|
|
10869
10952
|
capabilities?: {
|
|
10870
10953
|
enabled: boolean;
|
|
10871
10954
|
supportsImages: boolean;
|
|
@@ -10924,10 +11007,10 @@ export declare const protocolMessageSchemas: {
|
|
|
10924
11007
|
}[] | undefined;
|
|
10925
11008
|
}[] | undefined;
|
|
10926
11009
|
} | undefined;
|
|
11010
|
+
agentSessionId?: string | undefined;
|
|
10927
11011
|
}, {
|
|
10928
11012
|
status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
|
|
10929
11013
|
error?: string | undefined;
|
|
10930
|
-
agentSessionId?: string | undefined;
|
|
10931
11014
|
capabilities?: {
|
|
10932
11015
|
enabled: boolean;
|
|
10933
11016
|
provider?: string | undefined;
|
|
@@ -10986,6 +11069,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10986
11069
|
supportsSessionLoad?: boolean | undefined;
|
|
10987
11070
|
supportsAudio?: boolean | undefined;
|
|
10988
11071
|
} | undefined;
|
|
11072
|
+
agentSessionId?: string | undefined;
|
|
10989
11073
|
messages?: {
|
|
10990
11074
|
id: string;
|
|
10991
11075
|
role: "user" | "assistant" | "system";
|
|
@@ -11369,11 +11453,17 @@ export declare const protocolMessageSchemas: {
|
|
|
11369
11453
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
11370
11454
|
provider: z.ZodDefault<z.ZodString>;
|
|
11371
11455
|
cwd: z.ZodString;
|
|
11456
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
11457
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11458
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
11459
|
+
group: z.ZodOptional<z.ZodString>;
|
|
11372
11460
|
title: z.ZodOptional<z.ZodString>;
|
|
11373
11461
|
model: z.ZodOptional<z.ZodString>;
|
|
11374
11462
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
11375
11463
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
11376
11464
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
11465
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
11466
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
11377
11467
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
11378
11468
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
11379
11469
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -11412,6 +11502,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11412
11502
|
cwd: string;
|
|
11413
11503
|
id: string;
|
|
11414
11504
|
createdAt: number;
|
|
11505
|
+
control: "owned" | "attached";
|
|
11415
11506
|
archived: boolean;
|
|
11416
11507
|
lastActivityAt: number;
|
|
11417
11508
|
model?: string | undefined;
|
|
@@ -11420,6 +11511,8 @@ export declare const protocolMessageSchemas: {
|
|
|
11420
11511
|
agentSessionId?: string | undefined;
|
|
11421
11512
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
11422
11513
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
11514
|
+
workspaceRoots?: string[] | undefined;
|
|
11515
|
+
group?: string | undefined;
|
|
11423
11516
|
lastMessagePreview?: string | undefined;
|
|
11424
11517
|
usage?: {
|
|
11425
11518
|
inputTokens?: number | undefined;
|
|
@@ -11443,6 +11536,9 @@ export declare const protocolMessageSchemas: {
|
|
|
11443
11536
|
agentSessionId?: string | undefined;
|
|
11444
11537
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
11445
11538
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
11539
|
+
workspaceRoots?: string[] | undefined;
|
|
11540
|
+
group?: string | undefined;
|
|
11541
|
+
control?: "owned" | "attached" | undefined;
|
|
11446
11542
|
archived?: boolean | undefined;
|
|
11447
11543
|
lastMessagePreview?: string | undefined;
|
|
11448
11544
|
usage?: {
|
|
@@ -11990,6 +12086,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11990
12086
|
cwd: string;
|
|
11991
12087
|
id: string;
|
|
11992
12088
|
createdAt: number;
|
|
12089
|
+
control: "owned" | "attached";
|
|
11993
12090
|
archived: boolean;
|
|
11994
12091
|
lastActivityAt: number;
|
|
11995
12092
|
model?: string | undefined;
|
|
@@ -11998,6 +12095,8 @@ export declare const protocolMessageSchemas: {
|
|
|
11998
12095
|
agentSessionId?: string | undefined;
|
|
11999
12096
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12000
12097
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12098
|
+
workspaceRoots?: string[] | undefined;
|
|
12099
|
+
group?: string | undefined;
|
|
12001
12100
|
lastMessagePreview?: string | undefined;
|
|
12002
12101
|
usage?: {
|
|
12003
12102
|
inputTokens?: number | undefined;
|
|
@@ -12125,6 +12224,9 @@ export declare const protocolMessageSchemas: {
|
|
|
12125
12224
|
agentSessionId?: string | undefined;
|
|
12126
12225
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12127
12226
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12227
|
+
workspaceRoots?: string[] | undefined;
|
|
12228
|
+
group?: string | undefined;
|
|
12229
|
+
control?: "owned" | "attached" | undefined;
|
|
12128
12230
|
archived?: boolean | undefined;
|
|
12129
12231
|
lastMessagePreview?: string | undefined;
|
|
12130
12232
|
usage?: {
|
|
@@ -12253,11 +12355,17 @@ export declare const protocolMessageSchemas: {
|
|
|
12253
12355
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
12254
12356
|
provider: z.ZodDefault<z.ZodString>;
|
|
12255
12357
|
cwd: z.ZodString;
|
|
12358
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
12359
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12360
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
12361
|
+
group: z.ZodOptional<z.ZodString>;
|
|
12256
12362
|
title: z.ZodOptional<z.ZodString>;
|
|
12257
12363
|
model: z.ZodOptional<z.ZodString>;
|
|
12258
12364
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
12259
12365
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
12260
12366
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
12367
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
12368
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
12261
12369
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
12262
12370
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
12263
12371
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -12296,6 +12404,7 @@ export declare const protocolMessageSchemas: {
|
|
|
12296
12404
|
cwd: string;
|
|
12297
12405
|
id: string;
|
|
12298
12406
|
createdAt: number;
|
|
12407
|
+
control: "owned" | "attached";
|
|
12299
12408
|
archived: boolean;
|
|
12300
12409
|
lastActivityAt: number;
|
|
12301
12410
|
model?: string | undefined;
|
|
@@ -12304,6 +12413,8 @@ export declare const protocolMessageSchemas: {
|
|
|
12304
12413
|
agentSessionId?: string | undefined;
|
|
12305
12414
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12306
12415
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12416
|
+
workspaceRoots?: string[] | undefined;
|
|
12417
|
+
group?: string | undefined;
|
|
12307
12418
|
lastMessagePreview?: string | undefined;
|
|
12308
12419
|
usage?: {
|
|
12309
12420
|
inputTokens?: number | undefined;
|
|
@@ -12327,6 +12438,9 @@ export declare const protocolMessageSchemas: {
|
|
|
12327
12438
|
agentSessionId?: string | undefined;
|
|
12328
12439
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12329
12440
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12441
|
+
workspaceRoots?: string[] | undefined;
|
|
12442
|
+
group?: string | undefined;
|
|
12443
|
+
control?: "owned" | "attached" | undefined;
|
|
12330
12444
|
archived?: boolean | undefined;
|
|
12331
12445
|
lastMessagePreview?: string | undefined;
|
|
12332
12446
|
usage?: {
|
|
@@ -12346,6 +12460,7 @@ export declare const protocolMessageSchemas: {
|
|
|
12346
12460
|
cwd: string;
|
|
12347
12461
|
id: string;
|
|
12348
12462
|
createdAt: number;
|
|
12463
|
+
control: "owned" | "attached";
|
|
12349
12464
|
archived: boolean;
|
|
12350
12465
|
lastActivityAt: number;
|
|
12351
12466
|
model?: string | undefined;
|
|
@@ -12354,6 +12469,8 @@ export declare const protocolMessageSchemas: {
|
|
|
12354
12469
|
agentSessionId?: string | undefined;
|
|
12355
12470
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12356
12471
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12472
|
+
workspaceRoots?: string[] | undefined;
|
|
12473
|
+
group?: string | undefined;
|
|
12357
12474
|
lastMessagePreview?: string | undefined;
|
|
12358
12475
|
usage?: {
|
|
12359
12476
|
inputTokens?: number | undefined;
|
|
@@ -12379,6 +12496,9 @@ export declare const protocolMessageSchemas: {
|
|
|
12379
12496
|
agentSessionId?: string | undefined;
|
|
12380
12497
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12381
12498
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12499
|
+
workspaceRoots?: string[] | undefined;
|
|
12500
|
+
group?: string | undefined;
|
|
12501
|
+
control?: "owned" | "attached" | undefined;
|
|
12382
12502
|
archived?: boolean | undefined;
|
|
12383
12503
|
lastMessagePreview?: string | undefined;
|
|
12384
12504
|
usage?: {
|
|
@@ -13327,11 +13447,17 @@ export declare const protocolMessageSchemas: {
|
|
|
13327
13447
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
13328
13448
|
provider: z.ZodDefault<z.ZodString>;
|
|
13329
13449
|
cwd: z.ZodString;
|
|
13450
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
13451
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13452
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
13453
|
+
group: z.ZodOptional<z.ZodString>;
|
|
13330
13454
|
title: z.ZodOptional<z.ZodString>;
|
|
13331
13455
|
model: z.ZodOptional<z.ZodString>;
|
|
13332
13456
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
13333
13457
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
13334
13458
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
13459
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
13460
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
13335
13461
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
13336
13462
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
13337
13463
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -13370,6 +13496,7 @@ export declare const protocolMessageSchemas: {
|
|
|
13370
13496
|
cwd: string;
|
|
13371
13497
|
id: string;
|
|
13372
13498
|
createdAt: number;
|
|
13499
|
+
control: "owned" | "attached";
|
|
13373
13500
|
archived: boolean;
|
|
13374
13501
|
lastActivityAt: number;
|
|
13375
13502
|
model?: string | undefined;
|
|
@@ -13378,6 +13505,8 @@ export declare const protocolMessageSchemas: {
|
|
|
13378
13505
|
agentSessionId?: string | undefined;
|
|
13379
13506
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
13380
13507
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
13508
|
+
workspaceRoots?: string[] | undefined;
|
|
13509
|
+
group?: string | undefined;
|
|
13381
13510
|
lastMessagePreview?: string | undefined;
|
|
13382
13511
|
usage?: {
|
|
13383
13512
|
inputTokens?: number | undefined;
|
|
@@ -13401,6 +13530,9 @@ export declare const protocolMessageSchemas: {
|
|
|
13401
13530
|
agentSessionId?: string | undefined;
|
|
13402
13531
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
13403
13532
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
13533
|
+
workspaceRoots?: string[] | undefined;
|
|
13534
|
+
group?: string | undefined;
|
|
13535
|
+
control?: "owned" | "attached" | undefined;
|
|
13404
13536
|
archived?: boolean | undefined;
|
|
13405
13537
|
lastMessagePreview?: string | undefined;
|
|
13406
13538
|
usage?: {
|
|
@@ -14050,6 +14182,7 @@ export declare const protocolMessageSchemas: {
|
|
|
14050
14182
|
cwd: string;
|
|
14051
14183
|
id: string;
|
|
14052
14184
|
createdAt: number;
|
|
14185
|
+
control: "owned" | "attached";
|
|
14053
14186
|
archived: boolean;
|
|
14054
14187
|
lastActivityAt: number;
|
|
14055
14188
|
model?: string | undefined;
|
|
@@ -14058,6 +14191,8 @@ export declare const protocolMessageSchemas: {
|
|
|
14058
14191
|
agentSessionId?: string | undefined;
|
|
14059
14192
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
14060
14193
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
14194
|
+
workspaceRoots?: string[] | undefined;
|
|
14195
|
+
group?: string | undefined;
|
|
14061
14196
|
lastMessagePreview?: string | undefined;
|
|
14062
14197
|
usage?: {
|
|
14063
14198
|
inputTokens?: number | undefined;
|
|
@@ -14187,6 +14322,9 @@ export declare const protocolMessageSchemas: {
|
|
|
14187
14322
|
agentSessionId?: string | undefined;
|
|
14188
14323
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
14189
14324
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
14325
|
+
workspaceRoots?: string[] | undefined;
|
|
14326
|
+
group?: string | undefined;
|
|
14327
|
+
control?: "owned" | "attached" | undefined;
|
|
14190
14328
|
archived?: boolean | undefined;
|
|
14191
14329
|
lastMessagePreview?: string | undefined;
|
|
14192
14330
|
usage?: {
|
|
@@ -14208,11 +14346,17 @@ export declare const protocolMessageSchemas: {
|
|
|
14208
14346
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
14209
14347
|
provider: z.ZodDefault<z.ZodString>;
|
|
14210
14348
|
cwd: z.ZodString;
|
|
14349
|
+
/** Codex multi-repo workspace; a session is not owned by a single folder. */
|
|
14350
|
+
workspaceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14351
|
+
/** Claude (and similar) project/group label when not 1:1 with cwd. */
|
|
14352
|
+
group: z.ZodOptional<z.ZodString>;
|
|
14211
14353
|
title: z.ZodOptional<z.ZodString>;
|
|
14212
14354
|
model: z.ZodOptional<z.ZodString>;
|
|
14213
14355
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
14214
14356
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
14215
14357
|
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
14358
|
+
/** owned = LinkShell runtime (full control). attached = same on-disk session, read-only. */
|
|
14359
|
+
control: z.ZodDefault<z.ZodEnum<["owned", "attached"]>>;
|
|
14216
14360
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
14217
14361
|
archived: z.ZodDefault<z.ZodBoolean>;
|
|
14218
14362
|
lastMessagePreview: z.ZodOptional<z.ZodString>;
|
|
@@ -14251,6 +14395,7 @@ export declare const protocolMessageSchemas: {
|
|
|
14251
14395
|
cwd: string;
|
|
14252
14396
|
id: string;
|
|
14253
14397
|
createdAt: number;
|
|
14398
|
+
control: "owned" | "attached";
|
|
14254
14399
|
archived: boolean;
|
|
14255
14400
|
lastActivityAt: number;
|
|
14256
14401
|
model?: string | undefined;
|
|
@@ -14259,6 +14404,8 @@ export declare const protocolMessageSchemas: {
|
|
|
14259
14404
|
agentSessionId?: string | undefined;
|
|
14260
14405
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
14261
14406
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
14407
|
+
workspaceRoots?: string[] | undefined;
|
|
14408
|
+
group?: string | undefined;
|
|
14262
14409
|
lastMessagePreview?: string | undefined;
|
|
14263
14410
|
usage?: {
|
|
14264
14411
|
inputTokens?: number | undefined;
|
|
@@ -14282,6 +14429,9 @@ export declare const protocolMessageSchemas: {
|
|
|
14282
14429
|
agentSessionId?: string | undefined;
|
|
14283
14430
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
14284
14431
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
14432
|
+
workspaceRoots?: string[] | undefined;
|
|
14433
|
+
group?: string | undefined;
|
|
14434
|
+
control?: "owned" | "attached" | undefined;
|
|
14285
14435
|
archived?: boolean | undefined;
|
|
14286
14436
|
lastMessagePreview?: string | undefined;
|
|
14287
14437
|
usage?: {
|
|
@@ -15542,6 +15692,7 @@ export declare const protocolMessageSchemas: {
|
|
|
15542
15692
|
cwd: string;
|
|
15543
15693
|
id: string;
|
|
15544
15694
|
createdAt: number;
|
|
15695
|
+
control: "owned" | "attached";
|
|
15545
15696
|
archived: boolean;
|
|
15546
15697
|
lastActivityAt: number;
|
|
15547
15698
|
model?: string | undefined;
|
|
@@ -15550,6 +15701,8 @@ export declare const protocolMessageSchemas: {
|
|
|
15550
15701
|
agentSessionId?: string | undefined;
|
|
15551
15702
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
15552
15703
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
15704
|
+
workspaceRoots?: string[] | undefined;
|
|
15705
|
+
group?: string | undefined;
|
|
15553
15706
|
lastMessagePreview?: string | undefined;
|
|
15554
15707
|
usage?: {
|
|
15555
15708
|
inputTokens?: number | undefined;
|
|
@@ -15774,6 +15927,9 @@ export declare const protocolMessageSchemas: {
|
|
|
15774
15927
|
agentSessionId?: string | undefined;
|
|
15775
15928
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
15776
15929
|
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
15930
|
+
workspaceRoots?: string[] | undefined;
|
|
15931
|
+
group?: string | undefined;
|
|
15932
|
+
control?: "owned" | "attached" | undefined;
|
|
15777
15933
|
archived?: boolean | undefined;
|
|
15778
15934
|
lastMessagePreview?: string | undefined;
|
|
15779
15935
|
usage?: {
|