@genspark/cli 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/aidrive-contract.generated.d.ts +3 -0
- package/dist/commands/aidrive-contract.generated.d.ts.map +1 -0
- package/dist/commands/aidrive-contract.generated.js +555 -0
- package/dist/commands/aidrive-contract.generated.js.map +1 -0
- package/dist/commands/aidrive-operands.d.ts +2 -0
- package/dist/commands/aidrive-operands.d.ts.map +1 -1
- package/dist/commands/aidrive-operands.js +22 -26
- package/dist/commands/aidrive-operands.js.map +1 -1
- package/dist/commands/aidrive-upload.js +2 -1
- package/dist/commands/aidrive-upload.js.map +1 -1
- package/dist/commands/sb-box-session.d.ts +128 -0
- package/dist/commands/sb-box-session.d.ts.map +1 -0
- package/dist/commands/sb-box-session.js +463 -0
- package/dist/commands/sb-box-session.js.map +1 -0
- package/dist/config.d.ts +42 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +43 -1
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +192 -51
- package/dist/index.js.map +1 -1
- package/dist/object-args.d.ts +4 -0
- package/dist/object-args.d.ts.map +1 -0
- package/dist/object-args.js +34 -0
- package/dist/object-args.js.map +1 -0
- package/dist/serviceActions.d.ts +2 -0
- package/dist/serviceActions.d.ts.map +1 -1
- package/dist/serviceActions.js +13 -1
- package/dist/serviceActions.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/docs/skills.md +10 -9
- package/package.json +1 -1
- package/skills/gsk-aidrive/SKILL.md +104 -16
- package/skills/gsk-audio-transcribe/SKILL.md +5 -2
- package/skills/gsk-calendar-source/SKILL.md +44 -0
- package/skills/gsk-connector/SKILL.md +23 -9
- package/skills/gsk-create-task/SKILL.md +1 -1
- package/skills/gsk-genteam/SKILL.md +3 -1
- package/skills/gsk-github/SKILL.md +4 -3
- package/skills/gsk-gmail/SKILL.md +1 -1
- package/skills/gsk-google-drive/SKILL.md +6 -5
- package/skills/gsk-google-sheets/SKILL.md +1 -1
- package/skills/gsk-image-generation/SKILL.md +2 -1
- package/skills/gsk-meeting/SKILL.md +1 -1
- package/skills/gsk-notion/SKILL.md +2 -2
- package/skills/gsk-onedrive/SKILL.md +6 -4
- package/skills/gsk-outlook-calendar/SKILL.md +1 -1
- package/skills/gsk-outlook-email/SKILL.md +1 -1
- package/skills/gsk-sb-brain/SKILL.md +32 -21
- package/skills/gsk-second-brain/SKILL.md +44 -16
- package/skills/gsk-shared/SKILL.md +7 -1
- package/skills/gsk-sharepoint/SKILL.md +5 -4
- package/skills/gsk-video-generation/SKILL.md +6 -2
package/README.md
CHANGED
|
@@ -908,7 +908,7 @@ gsk google_contacts search --query "John"
|
|
|
908
908
|
|
|
909
909
|
#### github
|
|
910
910
|
|
|
911
|
-
GitHub
|
|
911
|
+
GitHub: read repos, commits, pull requests, contributors, user activity; search, create, update and comment on issues or PRs. Cannot open, merge or review pull requests.
|
|
912
912
|
|
|
913
913
|
```bash
|
|
914
914
|
gsk github list_repos
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aidrive-contract.generated.d.ts","sourceRoot":"","sources":["../../src/commands/aidrive-contract.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAyiBxD,CAAA"}
|
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
export const DRIVE_ACTIONS = {
|
|
2
|
+
"create": {
|
|
3
|
+
"description": "Create an SB Workspace with its own Drive; requires workspace=sb_workspace.",
|
|
4
|
+
"parameters": [
|
|
5
|
+
"workspace",
|
|
6
|
+
"name",
|
|
7
|
+
"description",
|
|
8
|
+
"request_id"
|
|
9
|
+
],
|
|
10
|
+
"required": [
|
|
11
|
+
"name"
|
|
12
|
+
],
|
|
13
|
+
"operands": [
|
|
14
|
+
"name"
|
|
15
|
+
],
|
|
16
|
+
"aliases": [],
|
|
17
|
+
"example": "gsk drive create --workspace --name \"Research\""
|
|
18
|
+
},
|
|
19
|
+
"ls": {
|
|
20
|
+
"description": "List a directory, or discover shared sources when no source is selected.",
|
|
21
|
+
"parameters": [
|
|
22
|
+
"workspace",
|
|
23
|
+
"source",
|
|
24
|
+
"share",
|
|
25
|
+
"path",
|
|
26
|
+
"id",
|
|
27
|
+
"owner",
|
|
28
|
+
"url",
|
|
29
|
+
"filter_type",
|
|
30
|
+
"file_type"
|
|
31
|
+
],
|
|
32
|
+
"required": [],
|
|
33
|
+
"operands": [
|
|
34
|
+
"path"
|
|
35
|
+
],
|
|
36
|
+
"aliases": [
|
|
37
|
+
"list"
|
|
38
|
+
],
|
|
39
|
+
"example": "gsk drive ls /Reports"
|
|
40
|
+
},
|
|
41
|
+
"find": {
|
|
42
|
+
"description": "Find files by name keyword; scope selects mine, shared or all.",
|
|
43
|
+
"parameters": [
|
|
44
|
+
"workspace",
|
|
45
|
+
"source",
|
|
46
|
+
"share",
|
|
47
|
+
"path",
|
|
48
|
+
"id",
|
|
49
|
+
"owner",
|
|
50
|
+
"url",
|
|
51
|
+
"query",
|
|
52
|
+
"scope",
|
|
53
|
+
"file_type"
|
|
54
|
+
],
|
|
55
|
+
"required": [
|
|
56
|
+
"query"
|
|
57
|
+
],
|
|
58
|
+
"operands": [
|
|
59
|
+
"query",
|
|
60
|
+
"path"
|
|
61
|
+
],
|
|
62
|
+
"aliases": [],
|
|
63
|
+
"example": "gsk drive find --query budget --path /Reports"
|
|
64
|
+
},
|
|
65
|
+
"mkdir": {
|
|
66
|
+
"description": "Create a directory in the selected Drive.",
|
|
67
|
+
"parameters": [
|
|
68
|
+
"workspace",
|
|
69
|
+
"source",
|
|
70
|
+
"share",
|
|
71
|
+
"path",
|
|
72
|
+
"id",
|
|
73
|
+
"owner",
|
|
74
|
+
"url"
|
|
75
|
+
],
|
|
76
|
+
"required": [],
|
|
77
|
+
"operands": [
|
|
78
|
+
"path"
|
|
79
|
+
],
|
|
80
|
+
"aliases": [],
|
|
81
|
+
"example": "gsk drive mkdir /Reports"
|
|
82
|
+
},
|
|
83
|
+
"rm": {
|
|
84
|
+
"description": "Move the selected entry to recoverable trash; removing a shortcut preserves its source. With workspace=sb_workspace and only source, delete the entire Workspace (owner only).",
|
|
85
|
+
"parameters": [
|
|
86
|
+
"workspace",
|
|
87
|
+
"source",
|
|
88
|
+
"share",
|
|
89
|
+
"path",
|
|
90
|
+
"id",
|
|
91
|
+
"owner",
|
|
92
|
+
"url"
|
|
93
|
+
],
|
|
94
|
+
"required": [],
|
|
95
|
+
"operands": [
|
|
96
|
+
"path"
|
|
97
|
+
],
|
|
98
|
+
"aliases": [
|
|
99
|
+
"delete",
|
|
100
|
+
"remove"
|
|
101
|
+
],
|
|
102
|
+
"example": "gsk drive rm /Reports/old.pdf"
|
|
103
|
+
},
|
|
104
|
+
"move": {
|
|
105
|
+
"description": "Move or rename within one Drive source; never overwrite an existing file.",
|
|
106
|
+
"parameters": [
|
|
107
|
+
"workspace",
|
|
108
|
+
"source",
|
|
109
|
+
"share",
|
|
110
|
+
"path",
|
|
111
|
+
"id",
|
|
112
|
+
"owner",
|
|
113
|
+
"url",
|
|
114
|
+
"target_path"
|
|
115
|
+
],
|
|
116
|
+
"required": [
|
|
117
|
+
"target_path"
|
|
118
|
+
],
|
|
119
|
+
"operands": [
|
|
120
|
+
"path",
|
|
121
|
+
"target_path"
|
|
122
|
+
],
|
|
123
|
+
"aliases": [
|
|
124
|
+
"mv"
|
|
125
|
+
],
|
|
126
|
+
"example": "gsk drive move /Reports/a.pdf /Archive"
|
|
127
|
+
},
|
|
128
|
+
"get_readable_url": {
|
|
129
|
+
"description": "Get temporary file bytes URL and the separate document URL for people.",
|
|
130
|
+
"parameters": [
|
|
131
|
+
"workspace",
|
|
132
|
+
"source",
|
|
133
|
+
"share",
|
|
134
|
+
"path",
|
|
135
|
+
"id",
|
|
136
|
+
"owner",
|
|
137
|
+
"url"
|
|
138
|
+
],
|
|
139
|
+
"required": [],
|
|
140
|
+
"operands": [
|
|
141
|
+
"path"
|
|
142
|
+
],
|
|
143
|
+
"aliases": [],
|
|
144
|
+
"example": "gsk drive get_readable_url /Reports/a.pdf"
|
|
145
|
+
},
|
|
146
|
+
"download": {
|
|
147
|
+
"description": "Download a Drive file to this machine; external URL imports use download_file.",
|
|
148
|
+
"parameters": [
|
|
149
|
+
"workspace",
|
|
150
|
+
"source",
|
|
151
|
+
"share",
|
|
152
|
+
"path",
|
|
153
|
+
"id",
|
|
154
|
+
"owner",
|
|
155
|
+
"url"
|
|
156
|
+
],
|
|
157
|
+
"required": [],
|
|
158
|
+
"operands": [],
|
|
159
|
+
"aliases": [],
|
|
160
|
+
"example": "gsk drive download /Reports/a.pdf ./a.pdf"
|
|
161
|
+
},
|
|
162
|
+
"download_video": {
|
|
163
|
+
"description": "Import an internet video into Drive (YouTube is billed by delivered size).",
|
|
164
|
+
"parameters": [
|
|
165
|
+
"video_url",
|
|
166
|
+
"target_folder",
|
|
167
|
+
"video_time_range"
|
|
168
|
+
],
|
|
169
|
+
"required": [
|
|
170
|
+
"video_url"
|
|
171
|
+
],
|
|
172
|
+
"operands": [
|
|
173
|
+
"video_url",
|
|
174
|
+
"target_folder"
|
|
175
|
+
],
|
|
176
|
+
"aliases": [],
|
|
177
|
+
"example": "gsk drive download_video 'https://youtu.be/VIDEO' /Videos"
|
|
178
|
+
},
|
|
179
|
+
"download_audio": {
|
|
180
|
+
"description": "Import internet audio into Drive (YouTube is billed by delivered size).",
|
|
181
|
+
"parameters": [
|
|
182
|
+
"audio_url",
|
|
183
|
+
"video_url",
|
|
184
|
+
"target_folder"
|
|
185
|
+
],
|
|
186
|
+
"required": [],
|
|
187
|
+
"operands": [
|
|
188
|
+
"audio_url",
|
|
189
|
+
"target_folder"
|
|
190
|
+
],
|
|
191
|
+
"aliases": [],
|
|
192
|
+
"example": "gsk drive download_audio 'https://example.com/audio.mp3' /Audio"
|
|
193
|
+
},
|
|
194
|
+
"download_file": {
|
|
195
|
+
"description": "Import an external file URL into Drive; local downloads use download.",
|
|
196
|
+
"parameters": [
|
|
197
|
+
"file_url",
|
|
198
|
+
"target_folder",
|
|
199
|
+
"file_name"
|
|
200
|
+
],
|
|
201
|
+
"required": [
|
|
202
|
+
"file_url"
|
|
203
|
+
],
|
|
204
|
+
"operands": [
|
|
205
|
+
"file_url",
|
|
206
|
+
"target_folder"
|
|
207
|
+
],
|
|
208
|
+
"aliases": [],
|
|
209
|
+
"example": "gsk drive download_file 'https://example.com/a.pdf' /Reports"
|
|
210
|
+
},
|
|
211
|
+
"compress": {
|
|
212
|
+
"description": "Create an archive from a Drive folder.",
|
|
213
|
+
"parameters": [
|
|
214
|
+
"workspace",
|
|
215
|
+
"source",
|
|
216
|
+
"share",
|
|
217
|
+
"path",
|
|
218
|
+
"id",
|
|
219
|
+
"owner",
|
|
220
|
+
"url"
|
|
221
|
+
],
|
|
222
|
+
"required": [],
|
|
223
|
+
"operands": [
|
|
224
|
+
"path"
|
|
225
|
+
],
|
|
226
|
+
"aliases": [],
|
|
227
|
+
"example": "gsk drive compress /Reports"
|
|
228
|
+
},
|
|
229
|
+
"decompress": {
|
|
230
|
+
"description": "Extract an archive in Drive.",
|
|
231
|
+
"parameters": [
|
|
232
|
+
"workspace",
|
|
233
|
+
"source",
|
|
234
|
+
"share",
|
|
235
|
+
"path",
|
|
236
|
+
"id",
|
|
237
|
+
"owner",
|
|
238
|
+
"url"
|
|
239
|
+
],
|
|
240
|
+
"required": [],
|
|
241
|
+
"operands": [
|
|
242
|
+
"path"
|
|
243
|
+
],
|
|
244
|
+
"aliases": [],
|
|
245
|
+
"example": "gsk drive decompress /Reports.zip"
|
|
246
|
+
},
|
|
247
|
+
"share": {
|
|
248
|
+
"description": "Grant access to an entry; recipient and general-access forms use existing sharing rules.",
|
|
249
|
+
"parameters": [
|
|
250
|
+
"workspace",
|
|
251
|
+
"source",
|
|
252
|
+
"share",
|
|
253
|
+
"path",
|
|
254
|
+
"id",
|
|
255
|
+
"owner",
|
|
256
|
+
"url",
|
|
257
|
+
"to",
|
|
258
|
+
"permission",
|
|
259
|
+
"general_access",
|
|
260
|
+
"organization_id",
|
|
261
|
+
"expires_at",
|
|
262
|
+
"post_card"
|
|
263
|
+
],
|
|
264
|
+
"required": [],
|
|
265
|
+
"operands": [
|
|
266
|
+
"path"
|
|
267
|
+
],
|
|
268
|
+
"aliases": [],
|
|
269
|
+
"example": "gsk drive share /Reports/a.pdf --to colleague@example.com"
|
|
270
|
+
},
|
|
271
|
+
"unshare": {
|
|
272
|
+
"description": "Revoke an entry's recipient or general access.",
|
|
273
|
+
"parameters": [
|
|
274
|
+
"workspace",
|
|
275
|
+
"source",
|
|
276
|
+
"share",
|
|
277
|
+
"path",
|
|
278
|
+
"id",
|
|
279
|
+
"owner",
|
|
280
|
+
"url",
|
|
281
|
+
"to",
|
|
282
|
+
"permission",
|
|
283
|
+
"general_access",
|
|
284
|
+
"organization_id",
|
|
285
|
+
"expires_at",
|
|
286
|
+
"post_card"
|
|
287
|
+
],
|
|
288
|
+
"required": [],
|
|
289
|
+
"operands": [
|
|
290
|
+
"path"
|
|
291
|
+
],
|
|
292
|
+
"aliases": [],
|
|
293
|
+
"example": "gsk drive unshare /Reports/a.pdf --to colleague@example.com"
|
|
294
|
+
},
|
|
295
|
+
"access": {
|
|
296
|
+
"description": "Inspect who can open the selected entry.",
|
|
297
|
+
"parameters": [
|
|
298
|
+
"workspace",
|
|
299
|
+
"source",
|
|
300
|
+
"share",
|
|
301
|
+
"path",
|
|
302
|
+
"id",
|
|
303
|
+
"owner",
|
|
304
|
+
"url"
|
|
305
|
+
],
|
|
306
|
+
"required": [],
|
|
307
|
+
"operands": [
|
|
308
|
+
"path"
|
|
309
|
+
],
|
|
310
|
+
"aliases": [],
|
|
311
|
+
"example": "gsk drive access /Reports/a.pdf"
|
|
312
|
+
},
|
|
313
|
+
"link": {
|
|
314
|
+
"description": "Place a shortcut in a managed Drive. For an SB Workspace, use path for an original My Drive/Team Drive entry or ref for a Genspark project, meeting, or AgentBase resource.",
|
|
315
|
+
"parameters": [
|
|
316
|
+
"workspace",
|
|
317
|
+
"source",
|
|
318
|
+
"share",
|
|
319
|
+
"path",
|
|
320
|
+
"id",
|
|
321
|
+
"owner",
|
|
322
|
+
"url",
|
|
323
|
+
"target_path",
|
|
324
|
+
"link_name",
|
|
325
|
+
"permission",
|
|
326
|
+
"ref",
|
|
327
|
+
"request_id"
|
|
328
|
+
],
|
|
329
|
+
"required": [],
|
|
330
|
+
"operands": [
|
|
331
|
+
"path",
|
|
332
|
+
"target_path"
|
|
333
|
+
],
|
|
334
|
+
"aliases": [],
|
|
335
|
+
"example": "gsk drive link /Reports/a.pdf --workspace shared_drive --source SOURCE_ID"
|
|
336
|
+
},
|
|
337
|
+
"unlink": {
|
|
338
|
+
"description": "Remove the selected shortcut and its grant without deleting source bytes.",
|
|
339
|
+
"parameters": [
|
|
340
|
+
"workspace",
|
|
341
|
+
"source",
|
|
342
|
+
"share",
|
|
343
|
+
"path",
|
|
344
|
+
"id",
|
|
345
|
+
"owner",
|
|
346
|
+
"url"
|
|
347
|
+
],
|
|
348
|
+
"required": [],
|
|
349
|
+
"operands": [
|
|
350
|
+
"path"
|
|
351
|
+
],
|
|
352
|
+
"aliases": [],
|
|
353
|
+
"example": "gsk drive unlink --workspace shared_drive --source SOURCE_ID --path /a.pdf"
|
|
354
|
+
},
|
|
355
|
+
"upload": {
|
|
356
|
+
"description": "Upload a local file or inline content into Drive; local and inline conflict policies differ.",
|
|
357
|
+
"parameters": [
|
|
358
|
+
"workspace",
|
|
359
|
+
"source",
|
|
360
|
+
"share",
|
|
361
|
+
"path",
|
|
362
|
+
"id",
|
|
363
|
+
"owner",
|
|
364
|
+
"url",
|
|
365
|
+
"upload_path",
|
|
366
|
+
"file_content",
|
|
367
|
+
"content_type",
|
|
368
|
+
"overwrite",
|
|
369
|
+
"confirmed",
|
|
370
|
+
"to",
|
|
371
|
+
"permission",
|
|
372
|
+
"general_access",
|
|
373
|
+
"organization_id",
|
|
374
|
+
"expires_at",
|
|
375
|
+
"post_card"
|
|
376
|
+
],
|
|
377
|
+
"required": [],
|
|
378
|
+
"operands": [],
|
|
379
|
+
"aliases": [],
|
|
380
|
+
"example": "gsk drive upload --local_file ./a.pdf --upload_path /Reports/a.pdf"
|
|
381
|
+
},
|
|
382
|
+
"list_trash": {
|
|
383
|
+
"description": "List recoverable entries in My Drive trash.",
|
|
384
|
+
"parameters": [
|
|
385
|
+
"workspace"
|
|
386
|
+
],
|
|
387
|
+
"required": [],
|
|
388
|
+
"operands": [],
|
|
389
|
+
"aliases": [],
|
|
390
|
+
"example": "gsk drive list_trash"
|
|
391
|
+
},
|
|
392
|
+
"restore": {
|
|
393
|
+
"description": "Restore a trash entry by its stable entry_id, optionally into another folder.",
|
|
394
|
+
"parameters": [
|
|
395
|
+
"workspace",
|
|
396
|
+
"entry_id",
|
|
397
|
+
"target_path"
|
|
398
|
+
],
|
|
399
|
+
"required": [
|
|
400
|
+
"entry_id"
|
|
401
|
+
],
|
|
402
|
+
"operands": [
|
|
403
|
+
"entry_id",
|
|
404
|
+
"target_path"
|
|
405
|
+
],
|
|
406
|
+
"aliases": [],
|
|
407
|
+
"example": "gsk drive restore ENTRY_ID /Reports"
|
|
408
|
+
},
|
|
409
|
+
"tree": {
|
|
410
|
+
"description": "Browse bounded directory structure; continue with the returned cursor.",
|
|
411
|
+
"parameters": [
|
|
412
|
+
"workspace",
|
|
413
|
+
"source",
|
|
414
|
+
"share",
|
|
415
|
+
"path",
|
|
416
|
+
"id",
|
|
417
|
+
"owner",
|
|
418
|
+
"url",
|
|
419
|
+
"depth",
|
|
420
|
+
"limit",
|
|
421
|
+
"byte_limit",
|
|
422
|
+
"cursor"
|
|
423
|
+
],
|
|
424
|
+
"required": [],
|
|
425
|
+
"operands": [
|
|
426
|
+
"path"
|
|
427
|
+
],
|
|
428
|
+
"aliases": [],
|
|
429
|
+
"example": "gsk drive tree /Reports"
|
|
430
|
+
},
|
|
431
|
+
"search": {
|
|
432
|
+
"description": "Search names and indexed content; continue with the returned cursor.",
|
|
433
|
+
"parameters": [
|
|
434
|
+
"workspace",
|
|
435
|
+
"source",
|
|
436
|
+
"share",
|
|
437
|
+
"path",
|
|
438
|
+
"id",
|
|
439
|
+
"owner",
|
|
440
|
+
"url",
|
|
441
|
+
"query",
|
|
442
|
+
"queries",
|
|
443
|
+
"include_passages",
|
|
444
|
+
"query_scope",
|
|
445
|
+
"search_mode",
|
|
446
|
+
"limit",
|
|
447
|
+
"byte_limit",
|
|
448
|
+
"cursor"
|
|
449
|
+
],
|
|
450
|
+
"required": [],
|
|
451
|
+
"operands": [
|
|
452
|
+
"query",
|
|
453
|
+
"path"
|
|
454
|
+
],
|
|
455
|
+
"aliases": [],
|
|
456
|
+
"example": "gsk drive search budget /Reports"
|
|
457
|
+
},
|
|
458
|
+
"read": {
|
|
459
|
+
"description": "Read persisted extracted text by locator, batch ids, or a returned read cursor.",
|
|
460
|
+
"parameters": [
|
|
461
|
+
"workspace",
|
|
462
|
+
"source",
|
|
463
|
+
"share",
|
|
464
|
+
"path",
|
|
465
|
+
"id",
|
|
466
|
+
"owner",
|
|
467
|
+
"url",
|
|
468
|
+
"query",
|
|
469
|
+
"char_limit",
|
|
470
|
+
"wait_seconds",
|
|
471
|
+
"source_version",
|
|
472
|
+
"entry_id",
|
|
473
|
+
"ids",
|
|
474
|
+
"offset",
|
|
475
|
+
"cursor"
|
|
476
|
+
],
|
|
477
|
+
"required": [],
|
|
478
|
+
"operands": [
|
|
479
|
+
"path"
|
|
480
|
+
],
|
|
481
|
+
"aliases": [],
|
|
482
|
+
"example": "gsk drive read /Reports/a.txt"
|
|
483
|
+
},
|
|
484
|
+
"overview": {
|
|
485
|
+
"description": "Read cached summaries; missing summaries prepare asynchronously without blocking reads.",
|
|
486
|
+
"parameters": [
|
|
487
|
+
"workspace",
|
|
488
|
+
"source",
|
|
489
|
+
"share",
|
|
490
|
+
"path",
|
|
491
|
+
"id",
|
|
492
|
+
"owner",
|
|
493
|
+
"url",
|
|
494
|
+
"entry_id",
|
|
495
|
+
"ids",
|
|
496
|
+
"generate"
|
|
497
|
+
],
|
|
498
|
+
"required": [],
|
|
499
|
+
"operands": [
|
|
500
|
+
"path"
|
|
501
|
+
],
|
|
502
|
+
"aliases": [],
|
|
503
|
+
"example": "gsk drive overview /Reports"
|
|
504
|
+
},
|
|
505
|
+
"copy": {
|
|
506
|
+
"description": "Copy entries into a writable Drive, or inspect/continue an existing job with job_id.",
|
|
507
|
+
"parameters": [
|
|
508
|
+
"workspace",
|
|
509
|
+
"source",
|
|
510
|
+
"share",
|
|
511
|
+
"path",
|
|
512
|
+
"id",
|
|
513
|
+
"owner",
|
|
514
|
+
"url",
|
|
515
|
+
"ids",
|
|
516
|
+
"target_path",
|
|
517
|
+
"target_source",
|
|
518
|
+
"job_id",
|
|
519
|
+
"retry"
|
|
520
|
+
],
|
|
521
|
+
"required": [],
|
|
522
|
+
"operands": [
|
|
523
|
+
"path",
|
|
524
|
+
"target_path"
|
|
525
|
+
],
|
|
526
|
+
"aliases": [],
|
|
527
|
+
"example": "gsk drive copy /Reports/a.pdf /Archive"
|
|
528
|
+
},
|
|
529
|
+
"grep": {
|
|
530
|
+
"description": "Find literal phrases in one file; continue with the returned cursor.",
|
|
531
|
+
"parameters": [
|
|
532
|
+
"workspace",
|
|
533
|
+
"source",
|
|
534
|
+
"share",
|
|
535
|
+
"path",
|
|
536
|
+
"id",
|
|
537
|
+
"owner",
|
|
538
|
+
"url",
|
|
539
|
+
"query",
|
|
540
|
+
"char_limit",
|
|
541
|
+
"wait_seconds",
|
|
542
|
+
"source_version",
|
|
543
|
+
"entry_id",
|
|
544
|
+
"queries",
|
|
545
|
+
"limit",
|
|
546
|
+
"byte_limit",
|
|
547
|
+
"cursor"
|
|
548
|
+
],
|
|
549
|
+
"required": [],
|
|
550
|
+
"operands": [],
|
|
551
|
+
"aliases": [],
|
|
552
|
+
"example": "gsk drive grep --path /Reports/a.txt --query 'net income'"
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
//# sourceMappingURL=aidrive-contract.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aidrive-contract.generated.js","sourceRoot":"","sources":["../../src/commands/aidrive-contract.generated.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,aAAa,GAAmC;IAC3D,QAAQ,EAAE;QACR,aAAa,EAAE,6EAA6E;QAC5F,YAAY,EAAE;YACZ,WAAW;YACX,MAAM;YACN,aAAa;YACb,YAAY;SACb;QACD,UAAU,EAAE;YACV,MAAM;SACP;QACD,UAAU,EAAE;YACV,MAAM;SACP;QACD,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,kDAAkD;KAC9D;IACD,IAAI,EAAE;QACJ,aAAa,EAAE,0EAA0E;QACzF,YAAY,EAAE;YACZ,WAAW;YACX,QAAQ;YACR,OAAO;YACP,MAAM;YACN,IAAI;YACJ,OAAO;YACP,KAAK;YACL,aAAa;YACb,WAAW;SACZ;QACD,UAAU,EAAE,EAAE;QACd,UAAU,EAAE;YACV,MAAM;SACP;QACD,SAAS,EAAE;YACT,MAAM;SACP;QACD,SAAS,EAAE,uBAAuB;KACnC;IACD,MAAM,EAAE;QACN,aAAa,EAAE,gEAAgE;QAC/E,YAAY,EAAE;YACZ,WAAW;YACX,QAAQ;YACR,OAAO;YACP,MAAM;YACN,IAAI;YACJ,OAAO;YACP,KAAK;YACL,OAAO;YACP,OAAO;YACP,WAAW;SACZ;QACD,UAAU,EAAE;YACV,OAAO;SACR;QACD,UAAU,EAAE;YACV,OAAO;YACP,MAAM;SACP;QACD,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,+CAA+C;KAC3D;IACD,OAAO,EAAE;QACP,aAAa,EAAE,2CAA2C;QAC1D,YAAY,EAAE;YACZ,WAAW;YACX,QAAQ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,OAAO;YACP,KAAK;YACL,KAAK;YACL,aAAa;YACb,eAAe;YACf,QAAQ;YACR,OAAO;SACR;QACD,UAAU,EAAE,EAAE;QACd,UAAU,EAAE;YACV,MAAM;YACN,aAAa;SACd;QACD,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,wCAAwC;KACpD;IACD,MAAM,EAAE;QACN,aAAa,EAAE,sEAAsE;QACrF,YAAY,EAAE;YACZ,WAAW;YACX,QAAQ;YACR,OAAO;YACP,MAAM;YACN,IAAI;YACJ,OAAO;YACP,KAAK;YACL,OAAO;YACP,YAAY;YACZ,cAAc;YACd,gBAAgB;YAChB,UAAU;YACV,SAAS;YACT,OAAO;YACP,YAAY;YACZ,QAAQ;SACT;QACD,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,2DAA2D;KACvE;CACF,CAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare function canonicalDriveAction(value: string): string;
|
|
2
|
+
export declare function driveArgumentError(action: string, args: Record<string, unknown>): string | undefined;
|
|
1
3
|
/**
|
|
2
4
|
* A drive path as the server reads it: `aidrive:///a/b` (how attachments
|
|
3
5
|
* arrive, in any case), the sandbox mount `/mnt/aidrive/a/b` and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aidrive-operands.d.ts","sourceRoot":"","sources":["../../src/commands/aidrive-operands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aidrive-operands.d.ts","sourceRoot":"","sources":["../../src/commands/aidrive-operands.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,GAAG,SAAS,CAUpB;AAuBD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CASvD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAIlE;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAwFpD"}
|
|
@@ -3,31 +3,23 @@
|
|
|
3
3
|
* `gsk drive ls /Reports`, `gsk drive move /q3.pdf /Archive`. Upload and
|
|
4
4
|
* download read their operands in their own lanes.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
restore: ['entry_id', 'target_path'],
|
|
24
|
-
find: ['query', 'path'],
|
|
25
|
-
search: ['query', 'path'],
|
|
26
|
-
download_file: ['file_url', 'target_folder'],
|
|
27
|
-
download_audio: ['audio_url', 'target_folder'],
|
|
28
|
-
download_video: ['video_url', 'target_folder'],
|
|
29
|
-
list_trash: [],
|
|
30
|
-
};
|
|
6
|
+
import { DRIVE_ACTIONS } from './aidrive-contract.generated.js';
|
|
7
|
+
export function canonicalDriveAction(value) {
|
|
8
|
+
const name = value.trim();
|
|
9
|
+
return Object.entries(DRIVE_ACTIONS).find(([, spec]) => spec.aliases?.includes(name))?.[0] ?? name;
|
|
10
|
+
}
|
|
11
|
+
export function driveArgumentError(action, args) {
|
|
12
|
+
const spec = Object.hasOwn(DRIVE_ACTIONS, action) ? DRIVE_ACTIONS[action] : undefined;
|
|
13
|
+
if (!spec)
|
|
14
|
+
return undefined; // A newer server can introduce operations this client does not know.
|
|
15
|
+
for (const name of spec.required) {
|
|
16
|
+
const value = args[name];
|
|
17
|
+
if (value === undefined || value === null || (typeof value === 'string' && !value.trim())) {
|
|
18
|
+
return `Missing required parameter: ${name} for ${action} action. Example: ${spec.example}`;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
31
23
|
/** Actions whose first operand is the entry acted on: `--id`/`--ids`/`--url`
|
|
32
24
|
* name that entry, so the operand left is the target. Elsewhere a path
|
|
33
25
|
* beside a folder id is relative to that folder. */
|
|
@@ -104,7 +96,11 @@ export function aidriveOperandArgs(action, operands, args) {
|
|
|
104
96
|
'--ids or name the destination with --target_path. Nothing was sent.',
|
|
105
97
|
};
|
|
106
98
|
}
|
|
107
|
-
|
|
99
|
+
action = canonicalDriveAction(action);
|
|
100
|
+
// These operations have separate parsers for local filesystem operands.
|
|
101
|
+
if (action === 'upload' || action === 'download')
|
|
102
|
+
return { filled: {} };
|
|
103
|
+
const parameters = Object.hasOwn(DRIVE_ACTIONS, action) ? DRIVE_ACTIONS[action].operands : undefined;
|
|
108
104
|
const searching = action === 'find' || action === 'search';
|
|
109
105
|
const typed = searching
|
|
110
106
|
? operands.filter(operand => operand.length > 0)
|