@duskmoon-dev/components 0.5.5 → 0.5.7

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.
@@ -0,0 +1,742 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "scope": {
4
+ "contextKey": "repo:示例/alpha",
5
+ "conversationId": "conversation-中文-1"
6
+ },
7
+ "documents": {
8
+ "mixed": {
9
+ "schemaVersion": 1,
10
+ "content": [
11
+ {
12
+ "type": "text",
13
+ "text": "请检查 **这份文件** 🌓 "
14
+ },
15
+ {
16
+ "type": "reference",
17
+ "nodeId": "ref-occurrence-1",
18
+ "providerId": "files",
19
+ "refId": "src/你好.ts",
20
+ "label": "你好.ts",
21
+ "plainText": "@src/你好.ts"
22
+ },
23
+ {
24
+ "type": "text",
25
+ "text": " 和 "
26
+ },
27
+ {
28
+ "type": "reference",
29
+ "nodeId": "ref-occurrence-2",
30
+ "providerId": "files",
31
+ "refId": "src/你好.ts",
32
+ "label": "再次引用",
33
+ "plainText": "@src/你好.ts"
34
+ },
35
+ {
36
+ "type": "quote",
37
+ "nodeId": "quote-occurrence-1",
38
+ "text": "第一行\n第二行",
39
+ "source": {
40
+ "providerId": "messages",
41
+ "messageId": "message-原文",
42
+ "conversationId": "conversation-中文-1",
43
+ "label": "Alice · 原文"
44
+ }
45
+ },
46
+ {
47
+ "type": "text",
48
+ "text": "然后查看 "
49
+ },
50
+ {
51
+ "type": "reference",
52
+ "nodeId": "ref-occurrence-3",
53
+ "providerId": "missing-provider",
54
+ "refId": "opaque:失联",
55
+ "label": "保留的引用",
56
+ "plainText": "@保留的引用"
57
+ },
58
+ {
59
+ "type": "quote",
60
+ "nodeId": "quote-occurrence-2",
61
+ "text": "后续引文",
62
+ "source": {
63
+ "label": "Bob"
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ "claimedCommand": {
69
+ "schemaVersion": 1,
70
+ "content": [
71
+ {
72
+ "type": "text",
73
+ "text": "/reload-tools"
74
+ }
75
+ ],
76
+ "command": {
77
+ "providerId": "commands",
78
+ "commandId": "reload-tools"
79
+ }
80
+ },
81
+ "emptyCommandArguments": {
82
+ "schemaVersion": 1,
83
+ "content": [
84
+ {
85
+ "type": "text",
86
+ "text": "/reload-tools"
87
+ }
88
+ ],
89
+ "command": {
90
+ "providerId": "commands",
91
+ "commandId": "reload-tools"
92
+ }
93
+ }
94
+ },
95
+ "missingProviderIds": ["missing-provider"],
96
+ "exports": {
97
+ "mixed": "请检查 **这份文件** 🌓 @src/你好.ts 和 @src/你好.ts\n> 第一行\n> 第二行\n> — Alice · 原文\n然后查看 @保留的引用\n> 后续引文\n> — Bob",
98
+ "claimedCommand": "/reload-tools"
99
+ },
100
+ "drafts": {
101
+ "legacy": "旧草稿 👋\n第二行",
102
+ "semantic": {
103
+ "draftVersion": 1,
104
+ "scope": {
105
+ "contextKey": "repo:示例/alpha",
106
+ "conversationId": "conversation-中文-1"
107
+ },
108
+ "draftKey": "draft-1",
109
+ "revision": 7,
110
+ "document": {
111
+ "schemaVersion": 1,
112
+ "content": [
113
+ {
114
+ "type": "text",
115
+ "text": "请检查 **这份文件** 🌓 "
116
+ },
117
+ {
118
+ "type": "reference",
119
+ "nodeId": "ref-occurrence-1",
120
+ "providerId": "files",
121
+ "refId": "src/你好.ts",
122
+ "label": "你好.ts",
123
+ "plainText": "@src/你好.ts"
124
+ },
125
+ {
126
+ "type": "text",
127
+ "text": " 和 "
128
+ },
129
+ {
130
+ "type": "reference",
131
+ "nodeId": "ref-occurrence-2",
132
+ "providerId": "files",
133
+ "refId": "src/你好.ts",
134
+ "label": "再次引用",
135
+ "plainText": "@src/你好.ts"
136
+ },
137
+ {
138
+ "type": "quote",
139
+ "nodeId": "quote-occurrence-1",
140
+ "text": "第一行\n第二行",
141
+ "source": {
142
+ "providerId": "messages",
143
+ "messageId": "message-原文",
144
+ "conversationId": "conversation-中文-1",
145
+ "label": "Alice · 原文"
146
+ }
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "然后查看 "
151
+ },
152
+ {
153
+ "type": "reference",
154
+ "nodeId": "ref-occurrence-3",
155
+ "providerId": "missing-provider",
156
+ "refId": "opaque:失联",
157
+ "label": "保留的引用",
158
+ "plainText": "@保留的引用"
159
+ },
160
+ {
161
+ "type": "quote",
162
+ "nodeId": "quote-occurrence-2",
163
+ "text": "后续引文",
164
+ "source": {
165
+ "label": "Bob"
166
+ }
167
+ }
168
+ ]
169
+ },
170
+ "attachments": [
171
+ {
172
+ "entryId": "attachment-occurrence-1",
173
+ "metadata": {
174
+ "name": "照片🌙.png",
175
+ "mediaType": "image/png",
176
+ "size": 1024,
177
+ "lastModified": 1730000000000
178
+ },
179
+ "status": "reattach"
180
+ },
181
+ {
182
+ "entryId": "attachment-occurrence-2",
183
+ "metadata": {
184
+ "name": "照片🌙.png",
185
+ "mediaType": "image/png",
186
+ "size": 1024,
187
+ "lastModified": 1730000000000
188
+ },
189
+ "status": "ready",
190
+ "handle": {
191
+ "providerId": "uploads",
192
+ "reference": {
193
+ "uploadId": "upload-中文-1",
194
+ "receipt": "opaque-approved-reference"
195
+ }
196
+ }
197
+ }
198
+ ]
199
+ },
200
+ "unsupported": {
201
+ "draftVersion": 2,
202
+ "payload": {
203
+ "preserve": "不可丢弃"
204
+ }
205
+ }
206
+ },
207
+ "submissions": {
208
+ "send": {
209
+ "protocolVersion": 1,
210
+ "clientSubmissionId": "prompt-send",
211
+ "scope": {
212
+ "contextKey": "repo:示例/alpha",
213
+ "conversationId": "conversation-中文-1"
214
+ },
215
+ "draftKey": "draft-1",
216
+ "draftRevision": 7,
217
+ "operation": "prompt",
218
+ "document": {
219
+ "schemaVersion": 1,
220
+ "content": [
221
+ {
222
+ "type": "text",
223
+ "text": "请检查 **这份文件** 🌓 "
224
+ },
225
+ {
226
+ "type": "reference",
227
+ "nodeId": "ref-occurrence-1",
228
+ "providerId": "files",
229
+ "refId": "src/你好.ts",
230
+ "label": "你好.ts",
231
+ "plainText": "@src/你好.ts"
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": " 和 "
236
+ },
237
+ {
238
+ "type": "reference",
239
+ "nodeId": "ref-occurrence-2",
240
+ "providerId": "files",
241
+ "refId": "src/你好.ts",
242
+ "label": "再次引用",
243
+ "plainText": "@src/你好.ts"
244
+ },
245
+ {
246
+ "type": "quote",
247
+ "nodeId": "quote-occurrence-1",
248
+ "text": "第一行\n第二行",
249
+ "source": {
250
+ "providerId": "messages",
251
+ "messageId": "message-原文",
252
+ "conversationId": "conversation-中文-1",
253
+ "label": "Alice · 原文"
254
+ }
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "然后查看 "
259
+ },
260
+ {
261
+ "type": "reference",
262
+ "nodeId": "ref-occurrence-3",
263
+ "providerId": "missing-provider",
264
+ "refId": "opaque:失联",
265
+ "label": "保留的引用",
266
+ "plainText": "@保留的引用"
267
+ },
268
+ {
269
+ "type": "quote",
270
+ "nodeId": "quote-occurrence-2",
271
+ "text": "后续引文",
272
+ "source": {
273
+ "label": "Bob"
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ "attachments": [
279
+ {
280
+ "entryId": "attachment-occurrence-2",
281
+ "metadata": {
282
+ "name": "照片🌙.png",
283
+ "mediaType": "image/png",
284
+ "size": 1024,
285
+ "lastModified": 1730000000000
286
+ },
287
+ "handle": {
288
+ "providerId": "uploads",
289
+ "reference": {
290
+ "uploadId": "upload-中文-1",
291
+ "receipt": "opaque-approved-reference"
292
+ }
293
+ }
294
+ }
295
+ ],
296
+ "options": {
297
+ "model": "host-model"
298
+ },
299
+ "intent": "send"
300
+ },
301
+ "followUp": {
302
+ "protocolVersion": 1,
303
+ "clientSubmissionId": "prompt-follow-up",
304
+ "scope": {
305
+ "contextKey": "repo:示例/alpha",
306
+ "conversationId": "conversation-中文-1"
307
+ },
308
+ "draftKey": "draft-1",
309
+ "draftRevision": 7,
310
+ "operation": "prompt",
311
+ "document": {
312
+ "schemaVersion": 1,
313
+ "content": [
314
+ {
315
+ "type": "text",
316
+ "text": "请检查 **这份文件** 🌓 "
317
+ },
318
+ {
319
+ "type": "reference",
320
+ "nodeId": "ref-occurrence-1",
321
+ "providerId": "files",
322
+ "refId": "src/你好.ts",
323
+ "label": "你好.ts",
324
+ "plainText": "@src/你好.ts"
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": " 和 "
329
+ },
330
+ {
331
+ "type": "reference",
332
+ "nodeId": "ref-occurrence-2",
333
+ "providerId": "files",
334
+ "refId": "src/你好.ts",
335
+ "label": "再次引用",
336
+ "plainText": "@src/你好.ts"
337
+ },
338
+ {
339
+ "type": "quote",
340
+ "nodeId": "quote-occurrence-1",
341
+ "text": "第一行\n第二行",
342
+ "source": {
343
+ "providerId": "messages",
344
+ "messageId": "message-原文",
345
+ "conversationId": "conversation-中文-1",
346
+ "label": "Alice · 原文"
347
+ }
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "然后查看 "
352
+ },
353
+ {
354
+ "type": "reference",
355
+ "nodeId": "ref-occurrence-3",
356
+ "providerId": "missing-provider",
357
+ "refId": "opaque:失联",
358
+ "label": "保留的引用",
359
+ "plainText": "@保留的引用"
360
+ },
361
+ {
362
+ "type": "quote",
363
+ "nodeId": "quote-occurrence-2",
364
+ "text": "后续引文",
365
+ "source": {
366
+ "label": "Bob"
367
+ }
368
+ }
369
+ ]
370
+ },
371
+ "attachments": [
372
+ {
373
+ "entryId": "attachment-occurrence-2",
374
+ "metadata": {
375
+ "name": "照片🌙.png",
376
+ "mediaType": "image/png",
377
+ "size": 1024,
378
+ "lastModified": 1730000000000
379
+ },
380
+ "handle": {
381
+ "providerId": "uploads",
382
+ "reference": {
383
+ "uploadId": "upload-中文-1",
384
+ "receipt": "opaque-approved-reference"
385
+ }
386
+ }
387
+ }
388
+ ],
389
+ "options": {
390
+ "model": "host-model"
391
+ },
392
+ "intent": "follow_up"
393
+ },
394
+ "steer": {
395
+ "protocolVersion": 1,
396
+ "clientSubmissionId": "prompt-steer",
397
+ "scope": {
398
+ "contextKey": "repo:示例/alpha",
399
+ "conversationId": "conversation-中文-1"
400
+ },
401
+ "draftKey": "draft-1",
402
+ "draftRevision": 7,
403
+ "operation": "prompt",
404
+ "document": {
405
+ "schemaVersion": 1,
406
+ "content": [
407
+ {
408
+ "type": "text",
409
+ "text": "请检查 **这份文件** 🌓 "
410
+ },
411
+ {
412
+ "type": "reference",
413
+ "nodeId": "ref-occurrence-1",
414
+ "providerId": "files",
415
+ "refId": "src/你好.ts",
416
+ "label": "你好.ts",
417
+ "plainText": "@src/你好.ts"
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": " 和 "
422
+ },
423
+ {
424
+ "type": "reference",
425
+ "nodeId": "ref-occurrence-2",
426
+ "providerId": "files",
427
+ "refId": "src/你好.ts",
428
+ "label": "再次引用",
429
+ "plainText": "@src/你好.ts"
430
+ },
431
+ {
432
+ "type": "quote",
433
+ "nodeId": "quote-occurrence-1",
434
+ "text": "第一行\n第二行",
435
+ "source": {
436
+ "providerId": "messages",
437
+ "messageId": "message-原文",
438
+ "conversationId": "conversation-中文-1",
439
+ "label": "Alice · 原文"
440
+ }
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "然后查看 "
445
+ },
446
+ {
447
+ "type": "reference",
448
+ "nodeId": "ref-occurrence-3",
449
+ "providerId": "missing-provider",
450
+ "refId": "opaque:失联",
451
+ "label": "保留的引用",
452
+ "plainText": "@保留的引用"
453
+ },
454
+ {
455
+ "type": "quote",
456
+ "nodeId": "quote-occurrence-2",
457
+ "text": "后续引文",
458
+ "source": {
459
+ "label": "Bob"
460
+ }
461
+ }
462
+ ]
463
+ },
464
+ "attachments": [
465
+ {
466
+ "entryId": "attachment-occurrence-2",
467
+ "metadata": {
468
+ "name": "照片🌙.png",
469
+ "mediaType": "image/png",
470
+ "size": 1024,
471
+ "lastModified": 1730000000000
472
+ },
473
+ "handle": {
474
+ "providerId": "uploads",
475
+ "reference": {
476
+ "uploadId": "upload-中文-1",
477
+ "receipt": "opaque-approved-reference"
478
+ }
479
+ }
480
+ }
481
+ ],
482
+ "options": {
483
+ "model": "host-model"
484
+ },
485
+ "intent": "steer",
486
+ "targetTurnId": "turn-active-1"
487
+ },
488
+ "command": {
489
+ "protocolVersion": 1,
490
+ "clientSubmissionId": "command-accepted",
491
+ "scope": {
492
+ "contextKey": "repo:示例/alpha",
493
+ "conversationId": "conversation-中文-1"
494
+ },
495
+ "draftKey": "draft-1",
496
+ "draftRevision": 7,
497
+ "operation": "command",
498
+ "document": {
499
+ "schemaVersion": 1,
500
+ "content": [
501
+ {
502
+ "type": "text",
503
+ "text": "/reload-tools"
504
+ }
505
+ ],
506
+ "command": {
507
+ "providerId": "commands",
508
+ "commandId": "reload-tools"
509
+ }
510
+ },
511
+ "attachments": [],
512
+ "options": {
513
+ "model": "host-model"
514
+ }
515
+ }
516
+ },
517
+ "receipts": [
518
+ {
519
+ "protocolVersion": 1,
520
+ "clientSubmissionId": "prompt-accepted",
521
+ "scope": {
522
+ "contextKey": "repo:示例/alpha",
523
+ "conversationId": "conversation-中文-1"
524
+ },
525
+ "operation": "prompt",
526
+ "outcome": "accepted",
527
+ "delivery": "follow_up",
528
+ "persistence": "volatile",
529
+ "messageId": "message-1",
530
+ "queueItemId": "queue-1",
531
+ "queueRevision": 9
532
+ },
533
+ {
534
+ "protocolVersion": 1,
535
+ "clientSubmissionId": "prompt-rejected",
536
+ "scope": {
537
+ "contextKey": "repo:示例/alpha",
538
+ "conversationId": "conversation-中文-1"
539
+ },
540
+ "operation": "prompt",
541
+ "outcome": "rejected",
542
+ "error": {
543
+ "code": "policy_denied",
544
+ "message": "请求被拒绝"
545
+ }
546
+ },
547
+ {
548
+ "protocolVersion": 1,
549
+ "clientSubmissionId": "prompt-unknown",
550
+ "scope": {
551
+ "contextKey": "repo:示例/alpha",
552
+ "conversationId": "conversation-中文-1"
553
+ },
554
+ "operation": "prompt",
555
+ "outcome": "unknown",
556
+ "error": {
557
+ "code": "transport_uncertain",
558
+ "message": "Reply lost after transmission; do not replay"
559
+ }
560
+ },
561
+ {
562
+ "protocolVersion": 1,
563
+ "clientSubmissionId": "command-accepted",
564
+ "scope": {
565
+ "contextKey": "repo:示例/alpha",
566
+ "conversationId": "conversation-中文-1"
567
+ },
568
+ "operation": "command",
569
+ "outcome": "accepted",
570
+ "result": {
571
+ "action": "reload-tools",
572
+ "reloaded": 3
573
+ }
574
+ },
575
+ {
576
+ "protocolVersion": 1,
577
+ "clientSubmissionId": "command-rejected",
578
+ "scope": {
579
+ "contextKey": "repo:示例/alpha",
580
+ "conversationId": "conversation-中文-1"
581
+ },
582
+ "operation": "command",
583
+ "outcome": "rejected",
584
+ "error": {
585
+ "code": "policy_denied",
586
+ "message": "请求被拒绝"
587
+ }
588
+ },
589
+ {
590
+ "protocolVersion": 1,
591
+ "clientSubmissionId": "command-unknown",
592
+ "scope": {
593
+ "contextKey": "repo:示例/alpha",
594
+ "conversationId": "conversation-中文-1"
595
+ },
596
+ "operation": "command",
597
+ "outcome": "unknown",
598
+ "error": {
599
+ "code": "transport_uncertain",
600
+ "message": "Reply lost after transmission; do not replay"
601
+ }
602
+ }
603
+ ],
604
+ "capabilities": {
605
+ "protocolVersion": 1,
606
+ "documentVersions": [1],
607
+ "intents": ["send", "follow_up", "steer"],
608
+ "commands": true,
609
+ "attachments": true,
610
+ "queue": {
611
+ "edit": "text",
612
+ "remove": true,
613
+ "promote": true
614
+ },
615
+ "durableRecovery": false
616
+ },
617
+ "providers": {
618
+ "request": {
619
+ "requestId": "query-1",
620
+ "providerId": "files",
621
+ "scope": {
622
+ "contextKey": "repo:示例/alpha",
623
+ "conversationId": "conversation-中文-1"
624
+ },
625
+ "instanceGeneration": 3,
626
+ "documentRevision": 7,
627
+ "query": "你好",
628
+ "trigger": {
629
+ "text": "@",
630
+ "nodeIndex": 0,
631
+ "start": 0,
632
+ "end": 3,
633
+ "caret": 3
634
+ }
635
+ },
636
+ "candidates": [
637
+ {
638
+ "id": "file:你好.ts",
639
+ "label": "你好.ts",
640
+ "action": {
641
+ "type": "insert",
642
+ "content": [
643
+ {
644
+ "type": "reference",
645
+ "nodeId": "ref-occurrence-1",
646
+ "providerId": "files",
647
+ "refId": "src/你好.ts",
648
+ "label": "你好.ts",
649
+ "plainText": "@src/你好.ts"
650
+ }
651
+ ]
652
+ }
653
+ },
654
+ {
655
+ "id": "directory:src",
656
+ "label": "src/",
657
+ "action": {
658
+ "type": "drill",
659
+ "refId": "src/"
660
+ }
661
+ },
662
+ {
663
+ "id": "command:reload-tools",
664
+ "label": "Reload tools",
665
+ "action": {
666
+ "type": "invoke",
667
+ "command": {
668
+ "providerId": "commands",
669
+ "commandId": "reload-tools"
670
+ }
671
+ }
672
+ }
673
+ ]
674
+ },
675
+ "queue": {
676
+ "initial": {
677
+ "protocolVersion": 1,
678
+ "scope": {
679
+ "contextKey": "repo:示例/alpha",
680
+ "conversationId": "conversation-中文-1"
681
+ },
682
+ "revision": 8,
683
+ "items": [
684
+ {
685
+ "id": "queue-1",
686
+ "document": {
687
+ "schemaVersion": 1,
688
+ "content": [
689
+ {
690
+ "type": "text",
691
+ "text": "等待处理"
692
+ }
693
+ ]
694
+ },
695
+ "attachments": [],
696
+ "capabilities": {
697
+ "edit": "text",
698
+ "remove": true,
699
+ "promote": true
700
+ }
701
+ }
702
+ ]
703
+ },
704
+ "authoritative": {
705
+ "protocolVersion": 1,
706
+ "scope": {
707
+ "contextKey": "repo:示例/alpha",
708
+ "conversationId": "conversation-中文-1"
709
+ },
710
+ "revision": 9,
711
+ "items": []
712
+ },
713
+ "staleMutation": {
714
+ "requestId": "queue-request-1",
715
+ "scope": {
716
+ "contextKey": "repo:示例/alpha",
717
+ "conversationId": "conversation-中文-1"
718
+ },
719
+ "itemId": "queue-1",
720
+ "expectedRevision": 7,
721
+ "operation": "promote",
722
+ "targetTurnId": "turn-active-1"
723
+ },
724
+ "staleResult": {
725
+ "requestId": "queue-request-1",
726
+ "outcome": "rejected",
727
+ "error": {
728
+ "code": "stale_revision",
729
+ "message": "Queue changed; use the authoritative projection"
730
+ },
731
+ "projection": {
732
+ "protocolVersion": 1,
733
+ "scope": {
734
+ "contextKey": "repo:示例/alpha",
735
+ "conversationId": "conversation-中文-1"
736
+ },
737
+ "revision": 9,
738
+ "items": []
739
+ }
740
+ }
741
+ }
742
+ }