@tulcn/tshare 0.0.0-stage → 0.1.3
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 +77 -2
- package/dist/application.js +19 -0
- package/dist/authorization.js +2 -0
- package/dist/config.js +9 -0
- package/dist/core/input.js +22 -0
- package/dist/core/operations.js +47 -0
- package/dist/core/service-client.js +34 -0
- package/dist/core/service-results.js +42 -0
- package/dist/core/types.js +1 -0
- package/dist/features.js +6 -0
- package/dist/main.js +5 -0
- package/dist/modules/share.js +177 -0
- package/dist/service-config.js +9 -0
- package/dist/services/http.js +3 -0
- package/dist/services/share.js +7 -0
- package/dist/skill.js +2 -0
- package/package.json +25 -3
- package/scripts/install.mjs +17 -0
- package/skills/SKILL.md +103 -0
- package/skills/bundle.json +7 -0
- package/skills/commands.md +889 -0
- package/skills/features.md +16 -0
|
@@ -0,0 +1,889 @@
|
|
|
1
|
+
### tshare login
|
|
2
|
+
|
|
3
|
+
Sign in using a browser and authorize this CLI
|
|
4
|
+
|
|
5
|
+
Effects: local; Preview: false.
|
|
6
|
+
|
|
7
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
8
|
+
|
|
9
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
10
|
+
|
|
11
|
+
- --timeout-ms (string): Total deadline in ms (1-3600000), including approval waits; keyboard inactivity does not end authorization; default "660000"
|
|
12
|
+
|
|
13
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
14
|
+
|
|
15
|
+
- --version (boolean): Show version
|
|
16
|
+
|
|
17
|
+
- --schema (boolean): Show command, input and result schemas
|
|
18
|
+
|
|
19
|
+
- --device-login (boolean): Allow device authorization in non-interactive mode; returns the link at once and waits for approval in the background; default false
|
|
20
|
+
|
|
21
|
+
- --wait (boolean): With --device-login in non-interactive mode, wait for approval in the foreground instead of returning the link at once; default false
|
|
22
|
+
|
|
23
|
+
- --browser (boolean): Open the authorization page in the default browser; use --no-browser to open the URL on another device; default true
|
|
24
|
+
|
|
25
|
+
Result schema:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"account": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"status": {
|
|
35
|
+
"const": "pending"
|
|
36
|
+
},
|
|
37
|
+
"authorizationUrl": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"userCode": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"browserOpened": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "This command opened the authorization page in the system browser"
|
|
46
|
+
},
|
|
47
|
+
"log": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Log of the background process that waits for approval"
|
|
50
|
+
},
|
|
51
|
+
"next": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "What to do next while authorization is pending"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**pwsh / bash**
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
tshare login
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**pwsh / bash**
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
tshare login --device-login --json --non-interactive
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### tshare status
|
|
72
|
+
|
|
73
|
+
Show this CLI authorization status and current account
|
|
74
|
+
|
|
75
|
+
Effects: none; Preview: false.
|
|
76
|
+
|
|
77
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
78
|
+
|
|
79
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
80
|
+
|
|
81
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "175000"
|
|
82
|
+
|
|
83
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
84
|
+
|
|
85
|
+
- --version (boolean): Show version
|
|
86
|
+
|
|
87
|
+
- --schema (boolean): Show command, input and result schemas
|
|
88
|
+
|
|
89
|
+
- --wait-seconds (string): Wait up to this many seconds (0-170) for a pending browser approval; returns as soon as it is approved; default "0"
|
|
90
|
+
|
|
91
|
+
Result schema:
|
|
92
|
+
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"authorized": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"description": "Local session exists within its refresh lifetime; server status has not been checked"
|
|
100
|
+
},
|
|
101
|
+
"account": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Backend account ID; defaults to token sub, which may differ from the login name"
|
|
104
|
+
},
|
|
105
|
+
"loginName": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Backend login name from token name; omitted when unavailable"
|
|
108
|
+
},
|
|
109
|
+
"clientId": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "CLI client ID, separate from account identity"
|
|
112
|
+
},
|
|
113
|
+
"displayName": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "Backend display name; omitted when unavailable"
|
|
116
|
+
},
|
|
117
|
+
"accessExpiresAt": {
|
|
118
|
+
"type": "number"
|
|
119
|
+
},
|
|
120
|
+
"refreshExpiresAt": {
|
|
121
|
+
"type": "number"
|
|
122
|
+
},
|
|
123
|
+
"next": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "What to do when the approval did not arrive in time"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"required": [
|
|
129
|
+
"authorized"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**pwsh / bash**
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
tshare status --json --non-interactive
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**pwsh / bash**
|
|
141
|
+
|
|
142
|
+
```sh
|
|
143
|
+
tshare status --wait-seconds 170 --json --non-interactive
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### tshare logout
|
|
147
|
+
|
|
148
|
+
Revoke this CLI grant and delete local tokens; other devices and CLIs are unaffected
|
|
149
|
+
|
|
150
|
+
Effects: remote; Preview: false.
|
|
151
|
+
|
|
152
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
153
|
+
|
|
154
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
155
|
+
|
|
156
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
157
|
+
|
|
158
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
159
|
+
|
|
160
|
+
- --version (boolean): Show version
|
|
161
|
+
|
|
162
|
+
- --schema (boolean): Show command, input and result schemas
|
|
163
|
+
|
|
164
|
+
Result schema:
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"loggedOut": {
|
|
171
|
+
"const": true
|
|
172
|
+
},
|
|
173
|
+
"clientId": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"impact": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"revocation": {
|
|
180
|
+
"enum": [
|
|
181
|
+
"revoked",
|
|
182
|
+
"failed",
|
|
183
|
+
"not-needed"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"warning": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"revocationError": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"required": [
|
|
192
|
+
"code",
|
|
193
|
+
"message",
|
|
194
|
+
"retryable",
|
|
195
|
+
"next"
|
|
196
|
+
],
|
|
197
|
+
"properties": {
|
|
198
|
+
"code": {
|
|
199
|
+
"enum": [
|
|
200
|
+
"INVALID_INPUT",
|
|
201
|
+
"AUTH_REQUIRED",
|
|
202
|
+
"AUTH_EXPIRED",
|
|
203
|
+
"ACCESS_DENIED",
|
|
204
|
+
"UNAVAILABLE",
|
|
205
|
+
"CONFLICT",
|
|
206
|
+
"IO_ERROR",
|
|
207
|
+
"CANCELLED",
|
|
208
|
+
"TIMEOUT",
|
|
209
|
+
"CONFIGURATION",
|
|
210
|
+
"INCOMPATIBLE",
|
|
211
|
+
"INIT_INCOMPLETE",
|
|
212
|
+
"INTERNAL"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"message": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"retryable": {
|
|
219
|
+
"type": "boolean"
|
|
220
|
+
},
|
|
221
|
+
"next": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"details": {}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": [
|
|
229
|
+
"loggedOut",
|
|
230
|
+
"clientId",
|
|
231
|
+
"impact"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**pwsh / bash**
|
|
237
|
+
|
|
238
|
+
```sh
|
|
239
|
+
tshare logout --json --non-interactive
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### tshare config service
|
|
243
|
+
|
|
244
|
+
Show the platform gateway URL for this CLI and authorization environment
|
|
245
|
+
|
|
246
|
+
Effects: none; Preview: false.
|
|
247
|
+
|
|
248
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
249
|
+
|
|
250
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
251
|
+
|
|
252
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
253
|
+
|
|
254
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
255
|
+
|
|
256
|
+
- --version (boolean): Show version
|
|
257
|
+
|
|
258
|
+
- --schema (boolean): Show command, input and result schemas
|
|
259
|
+
|
|
260
|
+
Result schema:
|
|
261
|
+
|
|
262
|
+
```json
|
|
263
|
+
{
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"serviceUrl": {
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
"clientId": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": [
|
|
274
|
+
"serviceUrl",
|
|
275
|
+
"clientId"
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
**pwsh / bash**
|
|
281
|
+
|
|
282
|
+
```sh
|
|
283
|
+
tshare config service
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### tshare install skill
|
|
287
|
+
|
|
288
|
+
Install the bundled Skill for this version; synchronize registered directories on upgrade or rollback
|
|
289
|
+
|
|
290
|
+
Effects: local; Preview: false.
|
|
291
|
+
|
|
292
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
293
|
+
|
|
294
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
295
|
+
|
|
296
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
297
|
+
|
|
298
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
299
|
+
|
|
300
|
+
- --version (boolean): Show version
|
|
301
|
+
|
|
302
|
+
- --schema (boolean): Show command, input and result schemas
|
|
303
|
+
|
|
304
|
+
- --skills-dir (string): Skills root; overrides LXZ_SKILLS_DIR. First install targets ~/.agents/skills and ~/.linkwise/skills (Linkwise)
|
|
305
|
+
|
|
306
|
+
- --skill-conflict (string): Local changes: error keeps them; replace overwrites files managed by this CLI; default "error"; choices ["error","replace"]
|
|
307
|
+
|
|
308
|
+
Result schema:
|
|
309
|
+
|
|
310
|
+
```json
|
|
311
|
+
{
|
|
312
|
+
"type": "object",
|
|
313
|
+
"required": [
|
|
314
|
+
"installed"
|
|
315
|
+
],
|
|
316
|
+
"properties": {
|
|
317
|
+
"installed": {
|
|
318
|
+
"type": "array",
|
|
319
|
+
"items": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"required": [
|
|
322
|
+
"directory",
|
|
323
|
+
"version",
|
|
324
|
+
"action"
|
|
325
|
+
],
|
|
326
|
+
"properties": {
|
|
327
|
+
"directory": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
"version": {
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
"action": {
|
|
334
|
+
"enum": [
|
|
335
|
+
"installed",
|
|
336
|
+
"updated",
|
|
337
|
+
"unchanged"
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**pwsh / bash**
|
|
348
|
+
|
|
349
|
+
```sh
|
|
350
|
+
tshare install skill
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
**pwsh / bash**
|
|
354
|
+
|
|
355
|
+
```sh
|
|
356
|
+
tshare install skill --skills-dir ./ceshi123/skills --json --non-interactive
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### tshare init
|
|
360
|
+
|
|
361
|
+
Authorize and install the Agent Skill for first use
|
|
362
|
+
|
|
363
|
+
Effects: local; Preview: false.
|
|
364
|
+
|
|
365
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
366
|
+
|
|
367
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
368
|
+
|
|
369
|
+
- --timeout-ms (string): Total deadline in ms (1-3600000), including approval waits; keyboard inactivity does not end authorization; default "660000"
|
|
370
|
+
|
|
371
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
372
|
+
|
|
373
|
+
- --version (boolean): Show version
|
|
374
|
+
|
|
375
|
+
- --schema (boolean): Show command, input and result schemas
|
|
376
|
+
|
|
377
|
+
- --device-login (boolean): Allow device authorization in non-interactive mode; returns the link at once and waits for approval in the background; default false
|
|
378
|
+
|
|
379
|
+
- --wait (boolean): With --device-login in non-interactive mode, wait for approval in the foreground instead of returning the link at once; default false
|
|
380
|
+
|
|
381
|
+
- --browser (boolean): Open the authorization page in the default browser; use --no-browser to open the URL on another device; default true
|
|
382
|
+
|
|
383
|
+
- --skills-dir (string): Skills root; overrides LXZ_SKILLS_DIR. Default: registered roots, or ~/.agents/skills and ~/.linkwise/skills (Linkwise)
|
|
384
|
+
|
|
385
|
+
- --skill-conflict (string): Local Skill changes: error keeps them; replace overwrites managed files; default "error"; choices ["error","replace"]
|
|
386
|
+
|
|
387
|
+
Result schema:
|
|
388
|
+
|
|
389
|
+
```json
|
|
390
|
+
{
|
|
391
|
+
"type": "object",
|
|
392
|
+
"required": [
|
|
393
|
+
"identity",
|
|
394
|
+
"service",
|
|
395
|
+
"skill",
|
|
396
|
+
"ready"
|
|
397
|
+
],
|
|
398
|
+
"properties": {
|
|
399
|
+
"identity": {
|
|
400
|
+
"type": "object",
|
|
401
|
+
"required": [
|
|
402
|
+
"status"
|
|
403
|
+
],
|
|
404
|
+
"properties": {
|
|
405
|
+
"status": {
|
|
406
|
+
"enum": [
|
|
407
|
+
"ready",
|
|
408
|
+
"failed",
|
|
409
|
+
"blocked",
|
|
410
|
+
"pending"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
"account": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"target": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"reason": {
|
|
420
|
+
"type": "string"
|
|
421
|
+
},
|
|
422
|
+
"error": {
|
|
423
|
+
"type": "object",
|
|
424
|
+
"required": [
|
|
425
|
+
"code",
|
|
426
|
+
"message",
|
|
427
|
+
"retryable",
|
|
428
|
+
"next"
|
|
429
|
+
],
|
|
430
|
+
"properties": {
|
|
431
|
+
"code": {
|
|
432
|
+
"enum": [
|
|
433
|
+
"INVALID_INPUT",
|
|
434
|
+
"AUTH_REQUIRED",
|
|
435
|
+
"AUTH_EXPIRED",
|
|
436
|
+
"ACCESS_DENIED",
|
|
437
|
+
"UNAVAILABLE",
|
|
438
|
+
"CONFLICT",
|
|
439
|
+
"IO_ERROR",
|
|
440
|
+
"CANCELLED",
|
|
441
|
+
"TIMEOUT",
|
|
442
|
+
"CONFIGURATION",
|
|
443
|
+
"INCOMPATIBLE",
|
|
444
|
+
"INIT_INCOMPLETE",
|
|
445
|
+
"INTERNAL"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"message": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
"retryable": {
|
|
452
|
+
"type": "boolean"
|
|
453
|
+
},
|
|
454
|
+
"next": {
|
|
455
|
+
"type": "string"
|
|
456
|
+
},
|
|
457
|
+
"details": {}
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"authorizationUrl": {
|
|
461
|
+
"type": "string"
|
|
462
|
+
},
|
|
463
|
+
"userCode": {
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
"browserOpened": {
|
|
467
|
+
"type": "boolean",
|
|
468
|
+
"description": "This command opened the authorization page in the system browser"
|
|
469
|
+
},
|
|
470
|
+
"log": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"description": "Log of the background process that waits for approval"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"service": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"required": [
|
|
479
|
+
"status"
|
|
480
|
+
],
|
|
481
|
+
"properties": {
|
|
482
|
+
"status": {
|
|
483
|
+
"enum": [
|
|
484
|
+
"ready",
|
|
485
|
+
"failed",
|
|
486
|
+
"blocked",
|
|
487
|
+
"pending"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
"account": {
|
|
491
|
+
"type": "string"
|
|
492
|
+
},
|
|
493
|
+
"target": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
},
|
|
496
|
+
"reason": {
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
499
|
+
"error": {
|
|
500
|
+
"type": "object",
|
|
501
|
+
"required": [
|
|
502
|
+
"code",
|
|
503
|
+
"message",
|
|
504
|
+
"retryable",
|
|
505
|
+
"next"
|
|
506
|
+
],
|
|
507
|
+
"properties": {
|
|
508
|
+
"code": {
|
|
509
|
+
"enum": [
|
|
510
|
+
"INVALID_INPUT",
|
|
511
|
+
"AUTH_REQUIRED",
|
|
512
|
+
"AUTH_EXPIRED",
|
|
513
|
+
"ACCESS_DENIED",
|
|
514
|
+
"UNAVAILABLE",
|
|
515
|
+
"CONFLICT",
|
|
516
|
+
"IO_ERROR",
|
|
517
|
+
"CANCELLED",
|
|
518
|
+
"TIMEOUT",
|
|
519
|
+
"CONFIGURATION",
|
|
520
|
+
"INCOMPATIBLE",
|
|
521
|
+
"INIT_INCOMPLETE",
|
|
522
|
+
"INTERNAL"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
"message": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
},
|
|
528
|
+
"retryable": {
|
|
529
|
+
"type": "boolean"
|
|
530
|
+
},
|
|
531
|
+
"next": {
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
"details": {}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"ready": {
|
|
540
|
+
"type": "boolean"
|
|
541
|
+
},
|
|
542
|
+
"next": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"description": "What to do next while authorization is pending"
|
|
545
|
+
},
|
|
546
|
+
"skill": {
|
|
547
|
+
"type": "object",
|
|
548
|
+
"required": [
|
|
549
|
+
"status"
|
|
550
|
+
],
|
|
551
|
+
"properties": {
|
|
552
|
+
"status": {
|
|
553
|
+
"enum": [
|
|
554
|
+
"ready",
|
|
555
|
+
"failed",
|
|
556
|
+
"blocked",
|
|
557
|
+
"pending"
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
"account": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"target": {
|
|
564
|
+
"type": "string"
|
|
565
|
+
},
|
|
566
|
+
"reason": {
|
|
567
|
+
"type": "string"
|
|
568
|
+
},
|
|
569
|
+
"error": {
|
|
570
|
+
"type": "object",
|
|
571
|
+
"required": [
|
|
572
|
+
"code",
|
|
573
|
+
"message",
|
|
574
|
+
"retryable",
|
|
575
|
+
"next"
|
|
576
|
+
],
|
|
577
|
+
"properties": {
|
|
578
|
+
"code": {
|
|
579
|
+
"enum": [
|
|
580
|
+
"INVALID_INPUT",
|
|
581
|
+
"AUTH_REQUIRED",
|
|
582
|
+
"AUTH_EXPIRED",
|
|
583
|
+
"ACCESS_DENIED",
|
|
584
|
+
"UNAVAILABLE",
|
|
585
|
+
"CONFLICT",
|
|
586
|
+
"IO_ERROR",
|
|
587
|
+
"CANCELLED",
|
|
588
|
+
"TIMEOUT",
|
|
589
|
+
"CONFIGURATION",
|
|
590
|
+
"INCOMPATIBLE",
|
|
591
|
+
"INIT_INCOMPLETE",
|
|
592
|
+
"INTERNAL"
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
"message": {
|
|
596
|
+
"type": "string"
|
|
597
|
+
},
|
|
598
|
+
"retryable": {
|
|
599
|
+
"type": "boolean"
|
|
600
|
+
},
|
|
601
|
+
"next": {
|
|
602
|
+
"type": "string"
|
|
603
|
+
},
|
|
604
|
+
"details": {}
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"directory": {
|
|
608
|
+
"type": "string"
|
|
609
|
+
},
|
|
610
|
+
"version": {
|
|
611
|
+
"type": "string"
|
|
612
|
+
},
|
|
613
|
+
"action": {
|
|
614
|
+
"enum": [
|
|
615
|
+
"installed",
|
|
616
|
+
"updated",
|
|
617
|
+
"unchanged"
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
"incompatible": {
|
|
621
|
+
"type": "boolean"
|
|
622
|
+
},
|
|
623
|
+
"changes": {
|
|
624
|
+
"type": "array",
|
|
625
|
+
"items": {
|
|
626
|
+
"type": "object",
|
|
627
|
+
"properties": {
|
|
628
|
+
"file": {
|
|
629
|
+
"type": "string"
|
|
630
|
+
},
|
|
631
|
+
"change": {
|
|
632
|
+
"enum": [
|
|
633
|
+
"add",
|
|
634
|
+
"update",
|
|
635
|
+
"remove"
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"required": [
|
|
640
|
+
"file",
|
|
641
|
+
"change"
|
|
642
|
+
]
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"installed": {
|
|
646
|
+
"type": "array",
|
|
647
|
+
"items": {
|
|
648
|
+
"type": "object",
|
|
649
|
+
"properties": {
|
|
650
|
+
"directory": {
|
|
651
|
+
"type": "string"
|
|
652
|
+
},
|
|
653
|
+
"version": {
|
|
654
|
+
"type": "string"
|
|
655
|
+
},
|
|
656
|
+
"action": {
|
|
657
|
+
"enum": [
|
|
658
|
+
"installed",
|
|
659
|
+
"updated",
|
|
660
|
+
"unchanged"
|
|
661
|
+
]
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"required": [
|
|
665
|
+
"directory",
|
|
666
|
+
"version",
|
|
667
|
+
"action"
|
|
668
|
+
]
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
**pwsh / bash**
|
|
678
|
+
|
|
679
|
+
```sh
|
|
680
|
+
tshare init
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
### tshare share
|
|
684
|
+
|
|
685
|
+
Upload a local HTML file and create a public link that expires
|
|
686
|
+
|
|
687
|
+
Effects: remote; Preview: true.
|
|
688
|
+
|
|
689
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
690
|
+
|
|
691
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
692
|
+
|
|
693
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
694
|
+
|
|
695
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
696
|
+
|
|
697
|
+
- --version (boolean): Show version
|
|
698
|
+
|
|
699
|
+
- --schema (boolean): Show command, input and result schemas
|
|
700
|
+
|
|
701
|
+
- --file (string): Local .html or .htm file to share
|
|
702
|
+
|
|
703
|
+
- --hours (string): Hours the link stays valid (1-72); default 24; default "24"
|
|
704
|
+
|
|
705
|
+
- --title (string): Title shown in the generated message; defaults to the HTML <title>, then the file name
|
|
706
|
+
|
|
707
|
+
- --dry-run (boolean): Preview the operation without making changes; default false
|
|
708
|
+
|
|
709
|
+
- --confirm (boolean): Confirm this operation; business permissions are still required; default false
|
|
710
|
+
|
|
711
|
+
Result schema:
|
|
712
|
+
|
|
713
|
+
```json
|
|
714
|
+
{
|
|
715
|
+
"type": "object",
|
|
716
|
+
"required": [
|
|
717
|
+
"preview",
|
|
718
|
+
"summary"
|
|
719
|
+
],
|
|
720
|
+
"properties": {
|
|
721
|
+
"preview": {
|
|
722
|
+
"type": "boolean"
|
|
723
|
+
},
|
|
724
|
+
"summary": {
|
|
725
|
+
"type": "object"
|
|
726
|
+
},
|
|
727
|
+
"result": {}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
```
|
|
731
|
+
|
|
732
|
+
**pwsh / bash**
|
|
733
|
+
|
|
734
|
+
```sh
|
|
735
|
+
tshare share --file ./report.html --dry-run
|
|
736
|
+
```
|
|
737
|
+
|
|
738
|
+
**pwsh / bash**
|
|
739
|
+
|
|
740
|
+
```sh
|
|
741
|
+
tshare share --file ./report.html --hours 48 --title Weekly-report --confirm
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
### tshare renew
|
|
745
|
+
|
|
746
|
+
Create a new link for a shared file, within 72 hours of its upload
|
|
747
|
+
|
|
748
|
+
Effects: remote; Preview: true.
|
|
749
|
+
|
|
750
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
751
|
+
|
|
752
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
753
|
+
|
|
754
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
755
|
+
|
|
756
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
757
|
+
|
|
758
|
+
- --version (boolean): Show version
|
|
759
|
+
|
|
760
|
+
- --schema (boolean): Show command, input and result schemas
|
|
761
|
+
|
|
762
|
+
- --id (string): Share ID returned by share or list
|
|
763
|
+
|
|
764
|
+
- --hours (string): Hours the link stays valid (1-72); default 24; default "24"
|
|
765
|
+
|
|
766
|
+
- --dry-run (boolean): Preview the operation without making changes; default false
|
|
767
|
+
|
|
768
|
+
- --confirm (boolean): Confirm this operation; business permissions are still required; default false
|
|
769
|
+
|
|
770
|
+
Result schema:
|
|
771
|
+
|
|
772
|
+
```json
|
|
773
|
+
{
|
|
774
|
+
"type": "object",
|
|
775
|
+
"required": [
|
|
776
|
+
"preview",
|
|
777
|
+
"summary"
|
|
778
|
+
],
|
|
779
|
+
"properties": {
|
|
780
|
+
"preview": {
|
|
781
|
+
"type": "boolean"
|
|
782
|
+
},
|
|
783
|
+
"summary": {
|
|
784
|
+
"type": "object"
|
|
785
|
+
},
|
|
786
|
+
"result": {}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
**pwsh / bash**
|
|
792
|
+
|
|
793
|
+
```sh
|
|
794
|
+
tshare renew --id <id> --hours 48 --confirm
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
### tshare revoke
|
|
798
|
+
|
|
799
|
+
Delete a shared file so all of its links stop working
|
|
800
|
+
|
|
801
|
+
Effects: remote; Preview: true.
|
|
802
|
+
|
|
803
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
804
|
+
|
|
805
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
806
|
+
|
|
807
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
808
|
+
|
|
809
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
810
|
+
|
|
811
|
+
- --version (boolean): Show version
|
|
812
|
+
|
|
813
|
+
- --schema (boolean): Show command, input and result schemas
|
|
814
|
+
|
|
815
|
+
- --id (string): Share ID returned by share or list
|
|
816
|
+
|
|
817
|
+
- --dry-run (boolean): Preview the operation without making changes; default false
|
|
818
|
+
|
|
819
|
+
- --confirm (boolean): Confirm this operation; business permissions are still required; default false
|
|
820
|
+
|
|
821
|
+
Result schema:
|
|
822
|
+
|
|
823
|
+
```json
|
|
824
|
+
{
|
|
825
|
+
"type": "object",
|
|
826
|
+
"required": [
|
|
827
|
+
"preview",
|
|
828
|
+
"summary"
|
|
829
|
+
],
|
|
830
|
+
"properties": {
|
|
831
|
+
"preview": {
|
|
832
|
+
"type": "boolean"
|
|
833
|
+
},
|
|
834
|
+
"summary": {
|
|
835
|
+
"type": "object"
|
|
836
|
+
},
|
|
837
|
+
"result": {}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
```
|
|
841
|
+
|
|
842
|
+
**pwsh / bash**
|
|
843
|
+
|
|
844
|
+
```sh
|
|
845
|
+
tshare revoke --id <id> --confirm
|
|
846
|
+
```
|
|
847
|
+
|
|
848
|
+
### tshare list
|
|
849
|
+
|
|
850
|
+
List your shared files that can still get links
|
|
851
|
+
|
|
852
|
+
Effects: none; Preview: false.
|
|
853
|
+
|
|
854
|
+
- --json (boolean): Return a JSON receipt instead of compact rows; use for programmatic parsing; default false
|
|
855
|
+
|
|
856
|
+
- --non-interactive (boolean): Use command parameters without interactive prompts; default false
|
|
857
|
+
|
|
858
|
+
- --timeout-ms (string): Non-interactive deadline in ms (1-3600000); interactive prompts exit after 60 seconds without input; default "120000"
|
|
859
|
+
|
|
860
|
+
- --help (boolean): Show help for this command or group; same as -h
|
|
861
|
+
|
|
862
|
+
- --version (boolean): Show version
|
|
863
|
+
|
|
864
|
+
- --schema (boolean): Show command, input and result schemas
|
|
865
|
+
|
|
866
|
+
Result schema:
|
|
867
|
+
|
|
868
|
+
```json
|
|
869
|
+
{
|
|
870
|
+
"type": "object",
|
|
871
|
+
"required": [
|
|
872
|
+
"items"
|
|
873
|
+
],
|
|
874
|
+
"properties": {
|
|
875
|
+
"items": {
|
|
876
|
+
"type": "array",
|
|
877
|
+
"items": {
|
|
878
|
+
"type": "object"
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
**pwsh / bash**
|
|
886
|
+
|
|
887
|
+
```sh
|
|
888
|
+
tshare list
|
|
889
|
+
```
|