@yosai/cli 0.2.1-test.0 → 0.2.1-test.10

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.
Files changed (39) hide show
  1. package/README.md +11 -9
  2. package/dist/cli.js +4 -2
  3. package/dist/commands/doctor.js +17 -11
  4. package/dist/commands/login.js +11 -10
  5. package/dist/commands/ping.js +7 -5
  6. package/dist/commands/update.js +52 -19
  7. package/dist/commands/version.js +9 -7
  8. package/dist/config.js +15 -11
  9. package/dist/domain-commands.js +13 -4
  10. package/dist/domain-executor.js +3 -0
  11. package/dist/endpoints.js +33 -1
  12. package/dist/errors.js +6 -0
  13. package/dist/npm-meta.js +88 -11
  14. package/dist/openapis-client.js +28 -5
  15. package/dist/skill-sync.js +2 -2
  16. package/dist/skills/yos/SKILL.md +23 -14
  17. package/dist/skills/yos-doc/SKILL.md +221 -0
  18. package/dist/skills/yos-doc/references/AGENT_SCHEMA.doc.md +69 -0
  19. package/dist/skills/yos-doc/references/DOC_DATA_API.md +624 -0
  20. package/dist/skills/yos-doc/references/doc-draft.template.json +721 -0
  21. package/dist/skills/yos-doc/references/few-shot.draft.json +195 -0
  22. package/dist/skills/yos-doc/scripts/validate-runtime-doc.mjs +370 -0
  23. package/dist/skills/yos-doc/scripts/yos-doc.mjs +157 -0
  24. package/dist/skills/yos-install/SKILL.md +48 -21
  25. package/dist/skills/{yos-kb → yos-knowledge}/SKILL.md +21 -8
  26. package/dist/skills/yos-retrieval/SKILL.md +1 -1
  27. package/dist/skills/yos-shared/SKILL.md +24 -15
  28. package/dist/skills/yos-sheet/SKILL.md +233 -0
  29. package/dist/skills/yos-sheet/references/AGENT_SCHEMA.sheet.md +105 -0
  30. package/dist/skills/yos-sheet/references/SHEET_DATA_API.md +356 -0
  31. package/dist/skills/yos-sheet/references/few-shot.workbook.json +50 -0
  32. package/dist/skills/yos-sheet/references/sheet-workbook.template.json +147 -0
  33. package/dist/skills/yos-sheet/scripts/validate-runtime-sheet.mjs +404 -0
  34. package/dist/skills/yos-sheet/scripts/yos-sheet.mjs +157 -0
  35. package/dist/skills/yos-support/SKILL.md +1 -1
  36. package/dist/skills/yos-transcript/SKILL.md +1 -1
  37. package/dist/update-check-worker.js +35 -0
  38. package/dist/update-notice.js +86 -0
  39. package/package.json +4 -2
@@ -0,0 +1,721 @@
1
+ {
2
+ "title": "示例文档(全量类型覆盖)",
3
+ "attachments": [
4
+ {
5
+ "id": "00000000-0000-4000-8000-0000000000a1",
6
+ "name": "附件示例.txt",
7
+ "size": 128,
8
+ "mime": "text/plain",
9
+ "mediaId": "00000000-0000-4000-8000-0000000000a2",
10
+ "src": "https://cdn.example.com/demo/attachment-sample.txt",
11
+ "createdAt": 1724000000000
12
+ }
13
+ ],
14
+ "content": {
15
+ "type": "doc",
16
+ "content": [
17
+ {
18
+ "type": "heading",
19
+ "attrs": {
20
+ "level": 2,
21
+ "indent": 0,
22
+ "textAlign": "center",
23
+ "collapsed": false
24
+ },
25
+ "content": [
26
+ {
27
+ "type": "text",
28
+ "text": "二级标题"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "type": "paragraph",
34
+ "attrs": {
35
+ "indent": 0,
36
+ "textAlign": null
37
+ },
38
+ "content": [
39
+ {
40
+ "type": "text",
41
+ "marks": [{ "type": "bold" }],
42
+ "text": "粗体"
43
+ },
44
+ {
45
+ "type": "text",
46
+ "text": " "
47
+ },
48
+ {
49
+ "type": "text",
50
+ "marks": [{ "type": "italic" }],
51
+ "text": "斜体"
52
+ },
53
+ {
54
+ "type": "text",
55
+ "text": " "
56
+ },
57
+ {
58
+ "type": "text",
59
+ "marks": [{ "type": "strike" }],
60
+ "text": "删除线"
61
+ },
62
+ {
63
+ "type": "text",
64
+ "text": " "
65
+ },
66
+ {
67
+ "type": "text",
68
+ "marks": [{ "type": "underline" }],
69
+ "text": "下划线"
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": " "
74
+ },
75
+ {
76
+ "type": "text",
77
+ "marks": [{ "type": "code" }],
78
+ "text": "行内代码"
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": " "
83
+ },
84
+ {
85
+ "type": "text",
86
+ "marks": [
87
+ {
88
+ "type": "textStyle",
89
+ "attrs": {
90
+ "color": "#3370ff"
91
+ }
92
+ }
93
+ ],
94
+ "text": "字色"
95
+ },
96
+ {
97
+ "type": "text",
98
+ "text": " "
99
+ },
100
+ {
101
+ "type": "text",
102
+ "marks": [
103
+ {
104
+ "type": "highlight",
105
+ "attrs": {
106
+ "color": "#faf1d1"
107
+ }
108
+ }
109
+ ],
110
+ "text": "高亮"
111
+ },
112
+ {
113
+ "type": "text",
114
+ "text": " "
115
+ },
116
+ {
117
+ "type": "text",
118
+ "marks": [
119
+ {
120
+ "type": "glossaryTerm",
121
+ "attrs": {
122
+ "termId": "00000000-0000-4000-8000-0000000000aa"
123
+ }
124
+ }
125
+ ],
126
+ "text": "词条"
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": " "
131
+ },
132
+ {
133
+ "type": "text",
134
+ "marks": [
135
+ {
136
+ "type": "link",
137
+ "attrs": {
138
+ "href": "https://example.com",
139
+ "target": "_blank",
140
+ "rel": "noopener noreferrer nofollow",
141
+ "class": "yos-docs-editor-link",
142
+ "title": null
143
+ }
144
+ }
145
+ ],
146
+ "text": "链接"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "type": "paragraph",
152
+ "attrs": {
153
+ "indent": 0,
154
+ "textAlign": "right"
155
+ },
156
+ "content": [
157
+ {
158
+ "type": "text",
159
+ "text": "第一行"
160
+ },
161
+ {
162
+ "type": "hardBreak"
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "第二行(hardBreak)"
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "type": "blockquote",
172
+ "content": [
173
+ {
174
+ "type": "paragraph",
175
+ "attrs": {
176
+ "indent": 0,
177
+ "textAlign": null
178
+ },
179
+ "content": [
180
+ {
181
+ "type": "text",
182
+ "text": "引用块内容"
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "type": "bulletList",
190
+ "content": [
191
+ {
192
+ "type": "listItem",
193
+ "attrs": {
194
+ "collapsed": true
195
+ },
196
+ "content": [
197
+ {
198
+ "type": "paragraph",
199
+ "attrs": {
200
+ "indent": 0,
201
+ "textAlign": null
202
+ },
203
+ "content": [
204
+ {
205
+ "type": "text",
206
+ "text": "无序一级"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "type": "bulletList",
212
+ "content": [
213
+ {
214
+ "type": "listItem",
215
+ "attrs": {
216
+ "collapsed": false
217
+ },
218
+ "content": [
219
+ {
220
+ "type": "paragraph",
221
+ "attrs": {
222
+ "indent": 0,
223
+ "textAlign": null
224
+ },
225
+ "content": [
226
+ {
227
+ "type": "text",
228
+ "text": "无序二级嵌套"
229
+ }
230
+ ]
231
+ }
232
+ ]
233
+ }
234
+ ]
235
+ }
236
+ ]
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "type": "orderedList",
242
+ "attrs": {
243
+ "start": 3,
244
+ "type": "a"
245
+ },
246
+ "content": [
247
+ {
248
+ "type": "listItem",
249
+ "attrs": {
250
+ "collapsed": false
251
+ },
252
+ "content": [
253
+ {
254
+ "type": "paragraph",
255
+ "attrs": {
256
+ "indent": 0,
257
+ "textAlign": null
258
+ },
259
+ "content": [
260
+ {
261
+ "type": "text",
262
+ "text": "字母序且从 start=3 起(c)"
263
+ }
264
+ ]
265
+ }
266
+ ]
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "type": "orderedList",
272
+ "attrs": {
273
+ "start": 1,
274
+ "type": null
275
+ },
276
+ "content": [
277
+ {
278
+ "type": "listItem",
279
+ "attrs": {
280
+ "collapsed": false
281
+ },
282
+ "content": [
283
+ {
284
+ "type": "heading",
285
+ "attrs": {
286
+ "level": 3,
287
+ "indent": 0,
288
+ "textAlign": null,
289
+ "collapsed": false
290
+ },
291
+ "content": [
292
+ {
293
+ "type": "text",
294
+ "text": "有序列表内的标题项"
295
+ }
296
+ ]
297
+ }
298
+ ]
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ "type": "taskList",
304
+ "content": [
305
+ {
306
+ "type": "taskItem",
307
+ "attrs": {
308
+ "checked": false
309
+ },
310
+ "content": [
311
+ {
312
+ "type": "paragraph",
313
+ "attrs": {
314
+ "indent": 0,
315
+ "textAlign": null
316
+ },
317
+ "content": [
318
+ {
319
+ "type": "text",
320
+ "text": "未完成待办"
321
+ }
322
+ ]
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "type": "taskItem",
328
+ "attrs": {
329
+ "checked": true
330
+ },
331
+ "content": [
332
+ {
333
+ "type": "paragraph",
334
+ "attrs": {
335
+ "indent": 0,
336
+ "textAlign": null
337
+ },
338
+ "content": [
339
+ {
340
+ "type": "text",
341
+ "text": "已完成待办"
342
+ }
343
+ ]
344
+ }
345
+ ]
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "type": "codeBlock",
351
+ "attrs": {
352
+ "language": "javascript",
353
+ "wrap": false,
354
+ "caption": "代码块",
355
+ "collapsed": false,
356
+ "regionFolds": [1]
357
+ },
358
+ "content": [
359
+ {
360
+ "type": "text",
361
+ "text": "function demo() {\n console.log(1)\n}"
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "type": "callout",
367
+ "attrs": {
368
+ "emoji": "💡",
369
+ "backgroundColor": null,
370
+ "borderColor": null
371
+ },
372
+ "content": [
373
+ {
374
+ "type": "paragraph",
375
+ "attrs": {
376
+ "indent": 0,
377
+ "textAlign": null
378
+ },
379
+ "content": [
380
+ {
381
+ "type": "text",
382
+ "text": "高亮提示"
383
+ }
384
+ ]
385
+ }
386
+ ]
387
+ },
388
+ {
389
+ "type": "table",
390
+ "content": [
391
+ {
392
+ "type": "tableRow",
393
+ "attrs": {
394
+ "height": null
395
+ },
396
+ "content": [
397
+ {
398
+ "type": "tableHeader",
399
+ "attrs": {
400
+ "colspan": 1,
401
+ "rowspan": 1,
402
+ "colwidth": [160],
403
+ "align": null,
404
+ "backgroundColor": null
405
+ },
406
+ "content": [
407
+ {
408
+ "type": "paragraph",
409
+ "attrs": {
410
+ "indent": 0,
411
+ "textAlign": null
412
+ },
413
+ "content": [
414
+ {
415
+ "type": "text",
416
+ "text": "列A"
417
+ }
418
+ ]
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "type": "tableHeader",
424
+ "attrs": {
425
+ "colspan": 2,
426
+ "rowspan": 1,
427
+ "colwidth": [160, 160],
428
+ "align": "center",
429
+ "backgroundColor": "#e1eafe"
430
+ },
431
+ "content": [
432
+ {
433
+ "type": "paragraph",
434
+ "attrs": {
435
+ "indent": 0,
436
+ "textAlign": null
437
+ },
438
+ "content": [
439
+ {
440
+ "type": "text",
441
+ "text": "合并表头 B+C"
442
+ }
443
+ ]
444
+ }
445
+ ]
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "type": "tableRow",
451
+ "attrs": {
452
+ "height": 48
453
+ },
454
+ "content": [
455
+ {
456
+ "type": "tableCell",
457
+ "attrs": {
458
+ "colspan": 1,
459
+ "rowspan": 2,
460
+ "colwidth": [160],
461
+ "align": null,
462
+ "backgroundColor": "#f8e6a0"
463
+ },
464
+ "content": [
465
+ {
466
+ "type": "paragraph",
467
+ "attrs": {
468
+ "indent": 0,
469
+ "textAlign": null
470
+ },
471
+ "content": [
472
+ {
473
+ "type": "text",
474
+ "text": "跨两行"
475
+ }
476
+ ]
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "type": "tableCell",
482
+ "attrs": {
483
+ "colspan": 1,
484
+ "rowspan": 1,
485
+ "colwidth": [160],
486
+ "align": null,
487
+ "backgroundColor": null
488
+ },
489
+ "content": [
490
+ {
491
+ "type": "paragraph",
492
+ "attrs": {
493
+ "indent": 0,
494
+ "textAlign": null
495
+ },
496
+ "content": [
497
+ {
498
+ "type": "text",
499
+ "text": "B1"
500
+ }
501
+ ]
502
+ }
503
+ ]
504
+ },
505
+ {
506
+ "type": "tableCell",
507
+ "attrs": {
508
+ "colspan": 1,
509
+ "rowspan": 1,
510
+ "colwidth": [160],
511
+ "align": "right",
512
+ "backgroundColor": null
513
+ },
514
+ "content": [
515
+ {
516
+ "type": "paragraph",
517
+ "attrs": {
518
+ "indent": 0,
519
+ "textAlign": null
520
+ },
521
+ "content": [
522
+ {
523
+ "type": "text",
524
+ "text": "C1"
525
+ }
526
+ ]
527
+ }
528
+ ]
529
+ }
530
+ ]
531
+ },
532
+ {
533
+ "type": "tableRow",
534
+ "attrs": {
535
+ "height": null
536
+ },
537
+ "content": [
538
+ {
539
+ "type": "tableCell",
540
+ "attrs": {
541
+ "colspan": 1,
542
+ "rowspan": 1,
543
+ "colwidth": [160],
544
+ "align": null,
545
+ "backgroundColor": null
546
+ },
547
+ "content": [
548
+ {
549
+ "type": "paragraph",
550
+ "attrs": {
551
+ "indent": 0,
552
+ "textAlign": null
553
+ },
554
+ "content": [
555
+ {
556
+ "type": "text",
557
+ "text": "B2"
558
+ }
559
+ ]
560
+ }
561
+ ]
562
+ },
563
+ {
564
+ "type": "tableCell",
565
+ "attrs": {
566
+ "colspan": 1,
567
+ "rowspan": 1,
568
+ "colwidth": [160],
569
+ "align": null,
570
+ "backgroundColor": null
571
+ },
572
+ "content": [
573
+ {
574
+ "type": "paragraph",
575
+ "attrs": {
576
+ "indent": 0,
577
+ "textAlign": null
578
+ }
579
+ }
580
+ ]
581
+ }
582
+ ]
583
+ }
584
+ ]
585
+ },
586
+ {
587
+ "type": "columnBlock",
588
+ "attrs": {
589
+ "widths": [50, 50]
590
+ },
591
+ "content": [
592
+ {
593
+ "type": "column",
594
+ "content": [
595
+ {
596
+ "type": "paragraph",
597
+ "attrs": {
598
+ "indent": 0,
599
+ "textAlign": null
600
+ },
601
+ "content": [
602
+ {
603
+ "type": "text",
604
+ "text": "左栏"
605
+ }
606
+ ]
607
+ }
608
+ ]
609
+ },
610
+ {
611
+ "type": "column",
612
+ "content": [
613
+ {
614
+ "type": "paragraph",
615
+ "attrs": {
616
+ "indent": 0,
617
+ "textAlign": null
618
+ },
619
+ "content": [
620
+ {
621
+ "type": "text",
622
+ "text": "右栏"
623
+ }
624
+ ]
625
+ }
626
+ ]
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "type": "image",
632
+ "attrs": {
633
+ "src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
634
+ "mediaId": "00000000-0000-4000-8000-000000000004",
635
+ "alt": "demo.png",
636
+ "title": "图片标题",
637
+ "width": 320,
638
+ "height": null,
639
+ "align": "left",
640
+ "caption": "图注示例",
641
+ "originalSrc": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
642
+ }
643
+ },
644
+ {
645
+ "type": "video",
646
+ "attrs": {
647
+ "src": "",
648
+ "mediaId": "00000000-0000-4000-8000-000000000001",
649
+ "filename": "demo.mp4",
650
+ "mime": "video/mp4",
651
+ "align": "center",
652
+ "caption": "视频图注",
653
+ "width": 740
654
+ }
655
+ },
656
+ {
657
+ "type": "audio",
658
+ "attrs": {
659
+ "src": "",
660
+ "mediaId": "00000000-0000-4000-8000-000000000002",
661
+ "filename": "demo.wav",
662
+ "mime": "audio/wav",
663
+ "align": "left",
664
+ "caption": "音频图注",
665
+ "duration": 12.5,
666
+ "width": 480
667
+ }
668
+ },
669
+ {
670
+ "type": "file",
671
+ "attrs": {
672
+ "src": "https://cdn.example.com/demo/demo.pdf",
673
+ "mediaId": "00000000-0000-4000-8000-000000000003",
674
+ "filename": "demo.pdf",
675
+ "mime": "application/pdf",
676
+ "size": 1024,
677
+ "displayMode": "card"
678
+ }
679
+ },
680
+ {
681
+ "type": "file",
682
+ "attrs": {
683
+ "src": "https://cdn.example.com/demo/readme.md",
684
+ "mediaId": "00000000-0000-4000-8000-000000000005",
685
+ "filename": "readme.md",
686
+ "mime": "text/markdown",
687
+ "size": 256,
688
+ "displayMode": "text"
689
+ }
690
+ },
691
+ {
692
+ "type": "file",
693
+ "attrs": {
694
+ "src": "https://cdn.example.com/demo/sheet.xlsx",
695
+ "mediaId": "00000000-0000-4000-8000-000000000006",
696
+ "filename": "sheet.xlsx",
697
+ "mime": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
698
+ "size": 2048,
699
+ "displayMode": "preview"
700
+ }
701
+ },
702
+ {
703
+ "type": "mindmap",
704
+ "attrs": {
705
+ "mapData": "{\"nodeData\":{\"id\":\"me-root\",\"topic\":\"中心主题\",\"children\":[{\"id\":\"me-1\",\"topic\":\"分支一\",\"children\":[{\"id\":\"me-1-1\",\"topic\":\"要点\"}]},{\"id\":\"me-2\",\"topic\":\"分支二\"}]},\"direction\":2}",
706
+ "outline": ""
707
+ }
708
+ },
709
+ {
710
+ "type": "flowchart",
711
+ "attrs": {
712
+ "graphData": "{\"nodes\":[{\"id\":\"fc-start\",\"type\":\"ellipse\",\"x\":280,\"y\":60,\"text\":\"开始\",\"properties\":{\"nodeKind\":\"start\",\"width\":100,\"height\":48,\"style\":{\"fill\":\"#f0ecff\",\"stroke\":\"#7b61ff\"}}},{\"id\":\"fc-step\",\"type\":\"rect\",\"x\":280,\"y\":160,\"text\":\"处理步骤\",\"properties\":{\"nodeKind\":\"process\",\"width\":120,\"height\":56,\"style\":{\"fill\":\"#e8f3ff\",\"stroke\":\"#3370ff\"}}},{\"id\":\"fc-decide\",\"type\":\"diamond\",\"x\":280,\"y\":280,\"text\":\"是否通过?\",\"properties\":{\"nodeKind\":\"decision\",\"rx\":50,\"ry\":50,\"style\":{\"fill\":\"#fff5e8\",\"stroke\":\"#de7802\"}}},{\"id\":\"fc-yes\",\"type\":\"rect\",\"x\":120,\"y\":400,\"text\":\"通过分支\",\"properties\":{\"nodeKind\":\"process\",\"width\":120,\"height\":56,\"style\":{\"fill\":\"#e8f3ff\",\"stroke\":\"#3370ff\"}}},{\"id\":\"fc-no\",\"type\":\"rect\",\"x\":440,\"y\":400,\"text\":\"驳回分支\",\"properties\":{\"nodeKind\":\"process\",\"width\":120,\"height\":56,\"style\":{\"fill\":\"#e8f3ff\",\"stroke\":\"#3370ff\"}}},{\"id\":\"fc-end\",\"type\":\"ellipse\",\"x\":280,\"y\":520,\"text\":\"结束\",\"properties\":{\"nodeKind\":\"start\",\"width\":100,\"height\":48,\"style\":{\"fill\":\"#f0ecff\",\"stroke\":\"#7b61ff\"}}}],\"edges\":[{\"id\":\"e-9y3w178smc9s\",\"type\":\"polyline\",\"sourceNodeId\":\"fc-start\",\"targetNodeId\":\"fc-step\"},{\"id\":\"e-v8x16j42mc9s\",\"type\":\"polyline\",\"sourceNodeId\":\"fc-step\",\"targetNodeId\":\"fc-decide\"},{\"id\":\"e-dxi6nsh4mc9s\",\"type\":\"polyline\",\"sourceNodeId\":\"fc-decide\",\"targetNodeId\":\"fc-yes\",\"text\":\"Yes\"},{\"id\":\"e-0oy9tgeymc9s\",\"type\":\"polyline\",\"sourceNodeId\":\"fc-decide\",\"targetNodeId\":\"fc-no\",\"text\":\"No\"},{\"id\":\"e-rxuu0jglmc9s\",\"type\":\"polyline\",\"sourceNodeId\":\"fc-yes\",\"targetNodeId\":\"fc-end\"},{\"id\":\"e-439m1eatmc9s\",\"type\":\"polyline\",\"sourceNodeId\":\"fc-no\",\"targetNodeId\":\"fc-end\"}]}",
713
+ "themeId": "feishu"
714
+ }
715
+ },
716
+ {
717
+ "type": "horizontalRule"
718
+ }
719
+ ]
720
+ }
721
+ }