linkshell-cli 0.8.0 → 0.8.2
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/commands/doctor.js +7 -0
- package/dist/cli/src/commands/doctor.js.map +1 -1
- package/dist/cli/src/commands/host.js +4 -0
- package/dist/cli/src/commands/host.js.map +1 -1
- package/dist/cli/src/commands/screen.d.ts +16 -0
- package/dist/cli/src/commands/screen.js +135 -0
- package/dist/cli/src/commands/screen.js.map +1 -0
- package/dist/cli/src/index.js +18 -1
- package/dist/cli/src/index.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/host/src/drivers/claude/transcript.d.ts +23 -23
- package/dist/host/src/fs.d.ts +3 -3
- package/dist/host/src/input-helper.js +504 -148
- package/dist/host/src/input-helper.js.map +1 -1
- package/dist/host/src/input.d.ts +80 -6
- package/dist/host/src/input.js +371 -35
- package/dist/host/src/input.js.map +1 -1
- package/dist/host/src/rpc/server.js +1 -0
- package/dist/host/src/rpc/server.js.map +1 -1
- package/dist/host/src/screen-pacer.d.ts +62 -0
- package/dist/host/src/screen-pacer.js +143 -0
- package/dist/host/src/screen-pacer.js.map +1 -0
- package/dist/host/src/screen-viewer.js +38 -7
- package/dist/host/src/screen-viewer.js.map +1 -1
- package/dist/host/src/screen.d.ts +27 -21
- package/dist/host/src/screen.js +203 -39
- package/dist/host/src/screen.js.map +1 -1
- package/dist/host/src/terminals.d.ts +1 -1
- package/dist/wire/src/rpc.d.ts +815 -774
- package/dist/wire/src/rpc.js +21 -0
- package/dist/wire/src/rpc.js.map +1 -1
- package/package.json +3 -3
- package/src/commands/doctor.ts +7 -0
- package/src/commands/host.ts +5 -0
- package/src/commands/screen.ts +143 -0
- package/src/index.ts +19 -1
|
@@ -33,6 +33,7 @@ export declare function transcriptLine(raw: string, options?: {
|
|
|
33
33
|
/** Parses a whole transcript file. */
|
|
34
34
|
/** When each transcript update happened, for history import. */
|
|
35
35
|
export declare const transcriptTimes: WeakMap<{
|
|
36
|
+
sessionUpdate: "user_message_chunk";
|
|
36
37
|
content: {
|
|
37
38
|
type: "text";
|
|
38
39
|
text: string;
|
|
@@ -42,14 +43,15 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
42
43
|
data?: string | undefined;
|
|
43
44
|
uri?: string | undefined;
|
|
44
45
|
} | {
|
|
45
|
-
type: "resource_link";
|
|
46
46
|
name: string;
|
|
47
|
+
type: "resource_link";
|
|
47
48
|
uri: string;
|
|
48
49
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
49
50
|
};
|
|
50
|
-
sessionUpdate: "user_message_chunk";
|
|
51
51
|
messageId?: string | undefined;
|
|
52
52
|
} | {
|
|
53
|
+
sessionUpdate: "agent_message_chunk";
|
|
54
|
+
messageId: string;
|
|
53
55
|
content: {
|
|
54
56
|
type: "text";
|
|
55
57
|
text: string;
|
|
@@ -59,15 +61,15 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
59
61
|
data?: string | undefined;
|
|
60
62
|
uri?: string | undefined;
|
|
61
63
|
} | {
|
|
62
|
-
type: "resource_link";
|
|
63
64
|
name: string;
|
|
65
|
+
type: "resource_link";
|
|
64
66
|
uri: string;
|
|
65
67
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
66
68
|
};
|
|
67
|
-
sessionUpdate: "agent_message_chunk";
|
|
68
|
-
messageId: string;
|
|
69
69
|
parentToolCallId?: string | undefined;
|
|
70
70
|
} | {
|
|
71
|
+
sessionUpdate: "agent_thought_chunk";
|
|
72
|
+
messageId: string;
|
|
71
73
|
content: {
|
|
72
74
|
type: "text";
|
|
73
75
|
text: string;
|
|
@@ -77,18 +79,16 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
77
79
|
data?: string | undefined;
|
|
78
80
|
uri?: string | undefined;
|
|
79
81
|
} | {
|
|
80
|
-
type: "resource_link";
|
|
81
82
|
name: string;
|
|
83
|
+
type: "resource_link";
|
|
82
84
|
uri: string;
|
|
83
85
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
84
86
|
};
|
|
85
|
-
sessionUpdate: "agent_thought_chunk";
|
|
86
|
-
messageId: string;
|
|
87
87
|
parentToolCallId?: string | undefined;
|
|
88
88
|
} | {
|
|
89
|
-
status: "
|
|
90
|
-
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
89
|
+
status: "pending" | "in_progress" | "completed" | "failed";
|
|
91
90
|
title: string;
|
|
91
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
92
92
|
toolCallId: string;
|
|
93
93
|
sessionUpdate: "tool_call";
|
|
94
94
|
detail?: {
|
|
@@ -98,12 +98,12 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
98
98
|
} | {
|
|
99
99
|
type: "subagent";
|
|
100
100
|
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
101
|
+
model?: string | undefined;
|
|
101
102
|
task?: string | undefined;
|
|
102
103
|
agentType?: string | undefined;
|
|
103
|
-
model?: string | undefined;
|
|
104
104
|
} | {
|
|
105
|
-
type: "skill";
|
|
106
105
|
name: string;
|
|
106
|
+
type: "skill";
|
|
107
107
|
description?: string | undefined;
|
|
108
108
|
} | {
|
|
109
109
|
type: "web_search";
|
|
@@ -132,8 +132,8 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
132
132
|
data?: string | undefined;
|
|
133
133
|
uri?: string | undefined;
|
|
134
134
|
} | {
|
|
135
|
-
type: "resource_link";
|
|
136
135
|
name: string;
|
|
136
|
+
type: "resource_link";
|
|
137
137
|
uri: string;
|
|
138
138
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
139
139
|
};
|
|
@@ -161,8 +161,6 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
161
161
|
} | {
|
|
162
162
|
toolCallId: string;
|
|
163
163
|
sessionUpdate: "tool_call_update";
|
|
164
|
-
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
165
|
-
title?: string | undefined;
|
|
166
164
|
detail?: {
|
|
167
165
|
type: "mcp";
|
|
168
166
|
tool: string;
|
|
@@ -170,12 +168,12 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
170
168
|
} | {
|
|
171
169
|
type: "subagent";
|
|
172
170
|
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
171
|
+
model?: string | undefined;
|
|
173
172
|
task?: string | undefined;
|
|
174
173
|
agentType?: string | undefined;
|
|
175
|
-
model?: string | undefined;
|
|
176
174
|
} | {
|
|
177
|
-
type: "skill";
|
|
178
175
|
name: string;
|
|
176
|
+
type: "skill";
|
|
179
177
|
description?: string | undefined;
|
|
180
178
|
} | {
|
|
181
179
|
type: "web_search";
|
|
@@ -193,6 +191,8 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
193
191
|
text: string;
|
|
194
192
|
more?: number | undefined;
|
|
195
193
|
} | undefined;
|
|
194
|
+
status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
|
|
195
|
+
title?: string | undefined;
|
|
196
196
|
content?: ({
|
|
197
197
|
type: "content";
|
|
198
198
|
content: {
|
|
@@ -204,8 +204,8 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
204
204
|
data?: string | undefined;
|
|
205
205
|
uri?: string | undefined;
|
|
206
206
|
} | {
|
|
207
|
-
type: "resource_link";
|
|
208
207
|
name: string;
|
|
208
|
+
type: "resource_link";
|
|
209
209
|
uri: string;
|
|
210
210
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
211
211
|
};
|
|
@@ -259,14 +259,14 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
259
259
|
parentToolCallId?: string | undefined;
|
|
260
260
|
} | {
|
|
261
261
|
options: {
|
|
262
|
+
name: string;
|
|
262
263
|
values: {
|
|
263
|
-
value: string;
|
|
264
264
|
name: string;
|
|
265
|
+
value: string;
|
|
265
266
|
description?: string | undefined;
|
|
266
267
|
}[];
|
|
267
268
|
id: string;
|
|
268
|
-
|
|
269
|
-
category: "other" | "model" | "mode" | "effort";
|
|
269
|
+
category: "model" | "other" | "mode" | "effort";
|
|
270
270
|
current: string;
|
|
271
271
|
}[];
|
|
272
272
|
sessionUpdate: "ls_config";
|
|
@@ -283,15 +283,15 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
283
283
|
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
284
284
|
} | {
|
|
285
285
|
options: {
|
|
286
|
-
optionId: string;
|
|
287
286
|
name: string;
|
|
288
287
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
288
|
+
optionId: string;
|
|
289
289
|
}[];
|
|
290
290
|
title: string;
|
|
291
291
|
requestId: string;
|
|
292
292
|
sessionUpdate: "ls_permission";
|
|
293
|
-
toolCallId?: string | undefined;
|
|
294
293
|
detail?: string | undefined;
|
|
294
|
+
toolCallId?: string | undefined;
|
|
295
295
|
questions?: {
|
|
296
296
|
id: string;
|
|
297
297
|
kind: "text" | "choice" | "choices";
|
package/dist/host/src/fs.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export declare function listDirectory(input: {
|
|
|
4
4
|
files?: boolean;
|
|
5
5
|
}): Promise<{
|
|
6
6
|
entries: {
|
|
7
|
-
path: string;
|
|
8
7
|
name: string;
|
|
8
|
+
path: string;
|
|
9
9
|
file?: boolean | undefined;
|
|
10
10
|
project?: boolean | undefined;
|
|
11
11
|
size?: number | undefined;
|
|
@@ -15,8 +15,8 @@ export declare function listDirectory(input: {
|
|
|
15
15
|
home: string;
|
|
16
16
|
} | {
|
|
17
17
|
entries: {
|
|
18
|
-
path: string;
|
|
19
18
|
name: string;
|
|
19
|
+
path: string;
|
|
20
20
|
file?: boolean | undefined;
|
|
21
21
|
project?: boolean | undefined;
|
|
22
22
|
size?: number | undefined;
|
|
@@ -35,8 +35,8 @@ export declare function searchDirectories(input: {
|
|
|
35
35
|
limit: number;
|
|
36
36
|
}, budgetMs?: number): Promise<{
|
|
37
37
|
entries: {
|
|
38
|
-
path: string;
|
|
39
38
|
name: string;
|
|
39
|
+
path: string;
|
|
40
40
|
file?: boolean | undefined;
|
|
41
41
|
project?: boolean | undefined;
|
|
42
42
|
size?: number | undefined;
|