dsh-plugin-compat-check 0.1.5 → 0.1.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.
Files changed (46) hide show
  1. package/README.md +17 -28
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/index.js +1295 -550
  4. package/kernel/lib/api-semantics.mjs +223 -0
  5. package/kernel/lib/author-ci-budget.mjs +25 -0
  6. package/kernel/lib/author-ci-output.mjs +22 -0
  7. package/kernel/lib/author-ci-policy.mjs +6 -1
  8. package/kernel/lib/baseline.mjs +109 -38
  9. package/kernel/lib/catalog.mjs +11 -3
  10. package/kernel/lib/contracts.mjs +16 -1
  11. package/kernel/lib/execution-environment.mjs +52 -0
  12. package/kernel/lib/extract.mjs +57 -13
  13. package/kernel/lib/finding-guidance.mjs +6 -0
  14. package/kernel/lib/finding-review-store.mjs +11 -23
  15. package/kernel/lib/issue-report.mjs +2 -1
  16. package/kernel/lib/patch-mounts.mjs +232 -0
  17. package/kernel/lib/report-identity-worker.mjs +47 -26
  18. package/kernel/lib/report-identity.mjs +4 -3
  19. package/kernel/lib/report-service.mjs +118 -38
  20. package/kernel/lib/report.mjs +13 -17
  21. package/kernel/lib/source-analysis.mjs +258 -42
  22. package/kernel/lib/source-graph.mjs +353 -75
  23. package/kernel/lib/state-lock.mjs +206 -0
  24. package/kernel/lib/state-store.mjs +41 -30
  25. package/kernel/lib/static-input.mjs +111 -0
  26. package/kernel/lib/syntax.mjs +242 -20
  27. package/kernel/lib/upgrade-contract.mjs +1 -0
  28. package/kernel/lib/upgrade-input.mjs +9 -4
  29. package/kernel/lib/upgrade-preview.mjs +11 -15
  30. package/kernel/lib/upgrade-worker.mjs +10 -1
  31. package/kernel/lib/verdict.mjs +28 -5
  32. package/kernel/lib/version.mjs +2 -34
  33. package/kernel/lib/worker-analysis.mjs +74 -3
  34. package/kernel/rules/README.md +30 -208
  35. package/kernel/rules/dsh-0.2.1-rc.3-review.json +63 -0
  36. package/kernel/rules/dsh-api-catalog-0.2.1-rc.3.json +743 -0
  37. package/kernel/rules/severity.json +77 -0
  38. package/lib/client.js +4668 -3423
  39. package/lib/finding-guidance.js +6 -0
  40. package/lib/local-request.js +44 -0
  41. package/lib/report-contract.js +16 -1
  42. package/lib/upgrade-contract.js +1 -0
  43. package/package.json +10 -5
  44. package/scripts/prepublish-check.mjs +1 -22
  45. package/scripts/stage-contract.mjs +7 -0
  46. package/skill/SKILL.md +13 -12
@@ -0,0 +1,743 @@
1
+ {
2
+ "_note": "从 DSH 桌面端 app.asar 内**官方生成**的 API 目录解析出的服务与方法清单。host = Node 宿主侧;client = 浏览器客户端侧。它随 DSH 版本变化 —— 换版本后必须重新生成。⚠️ 注意:目录 ≠ 运行时 API 面。抽象服务(如 host.jobs)在目录里**一个方法都不声明**,但运行时实现有方法;方法级判定必须优先用运行时面(探针),拿目录当运行时面会海量误报。",
3
+ "_source": {
4
+ "host": "dsh/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js",
5
+ "client": "dsh/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js"
6
+ },
7
+ "_asar": "/Applications/DeepSeek Harness.app/Contents/Resources/app.asar",
8
+ "_dshVersion": "0.2.1-rc.3",
9
+ "_sourceSha256": {
10
+ "host": "32b4164d2f159f7b1e02337902c721eb69898efafb21a256a0ba3c524a4bd348",
11
+ "client": "387806c9ec56b200df8cdebe9140f8ef3aa79f88ffb7b04f2a63aea37fb9d074"
12
+ },
13
+ "host": {
14
+ "agentDefaultModel": {
15
+ "methods": [
16
+ "currentSelection",
17
+ "saveSelection"
18
+ ]
19
+ },
20
+ "agentLoop": {
21
+ "methods": [
22
+ "create",
23
+ "createAgent",
24
+ "resume"
25
+ ]
26
+ },
27
+ "agentPresets": {
28
+ "methods": [
29
+ "acquireScope",
30
+ "composeFrom",
31
+ "composedPreset",
32
+ "compositionInventory",
33
+ "inspectCompositions",
34
+ "list",
35
+ "mount",
36
+ "recompose",
37
+ "register",
38
+ "resolve"
39
+ ]
40
+ },
41
+ "agentTeams": {
42
+ "methods": [
43
+ "createTask",
44
+ "getTask",
45
+ "interrupt",
46
+ "listMembers",
47
+ "listTasks",
48
+ "membership",
49
+ "sendMessage",
50
+ "spawnTeammate",
51
+ "tryMembership",
52
+ "updateTask",
53
+ "waitForChange"
54
+ ]
55
+ },
56
+ "agents": {
57
+ "methods": [
58
+ "announce",
59
+ "create",
60
+ "currentInitiator",
61
+ "enter",
62
+ "get",
63
+ "isOwnedBy",
64
+ "list",
65
+ "register",
66
+ "requireInitiator",
67
+ "resume",
68
+ "roots",
69
+ "setFactory"
70
+ ]
71
+ },
72
+ "approval": {
73
+ "methods": [
74
+ "overrideOf",
75
+ "request",
76
+ "setPolicy"
77
+ ]
78
+ },
79
+ "attachments": {
80
+ "methods": [
81
+ "admitEncodedFile",
82
+ "admitPromptContent",
83
+ "fileHostPath",
84
+ "imageHostPath",
85
+ "isAttachmentError",
86
+ "readImageRequest",
87
+ "saveFile",
88
+ "saveFileStream",
89
+ "saveImages"
90
+ ]
91
+ },
92
+ "authorization": {
93
+ "methods": [
94
+ "begin",
95
+ "cancel",
96
+ "describe",
97
+ "list",
98
+ "registerFlow"
99
+ ]
100
+ },
101
+ "browserUse": {
102
+ "methods": [
103
+ "register"
104
+ ]
105
+ },
106
+ "claudeCodeMods": {
107
+ "methods": [
108
+ "add"
109
+ ]
110
+ },
111
+ "clientModules": {
112
+ "methods": [
113
+ "artifactBaseline",
114
+ "clientPath",
115
+ "fetchBundle",
116
+ "graph",
117
+ "onGraphChanged",
118
+ "onRebuilt",
119
+ "rebuilt"
120
+ ]
121
+ },
122
+ "commands": {
123
+ "methods": [
124
+ "find",
125
+ "register",
126
+ "registerFileReceiptResolver"
127
+ ]
128
+ },
129
+ "compaction": {
130
+ "methods": []
131
+ },
132
+ "computerUse": {
133
+ "methods": [
134
+ "register"
135
+ ]
136
+ },
137
+ "configEditor": {
138
+ "methods": [
139
+ "configuration",
140
+ "edit",
141
+ "entries"
142
+ ]
143
+ },
144
+ "connection": {
145
+ "methods": [
146
+ "admit",
147
+ "admitConnection",
148
+ "authenticatedUrl",
149
+ "authorizeIndex",
150
+ "createPeer",
151
+ "createSharedFetchHandler",
152
+ "requestRejection"
153
+ ]
154
+ },
155
+ "cotTranslation": {
156
+ "methods": []
157
+ },
158
+ "credentials": {
159
+ "methods": []
160
+ },
161
+ "credentialsController": {
162
+ "methods": []
163
+ },
164
+ "deepseekAccount": {
165
+ "methods": []
166
+ },
167
+ "deepseekLlmApiExtensions": {
168
+ "methods": [
169
+ "prepare"
170
+ ]
171
+ },
172
+ "directoryPicker": {
173
+ "methods": []
174
+ },
175
+ "directoryPickerController": {
176
+ "methods": []
177
+ },
178
+ "fileReferences": {
179
+ "methods": []
180
+ },
181
+ "fileUploads": {
182
+ "methods": [
183
+ "bindPrompt",
184
+ "registerAgentResolver",
185
+ "resolve",
186
+ "retirePrompt",
187
+ "uploadStream"
188
+ ]
189
+ },
190
+ "fs": {
191
+ "methods": [
192
+ "processPathFromHostPath",
193
+ "watch"
194
+ ]
195
+ },
196
+ "goals": {
197
+ "methods": [
198
+ "block",
199
+ "create",
200
+ "disarm"
201
+ ]
202
+ },
203
+ "hmr": {
204
+ "methods": [
205
+ "getLinked",
206
+ "reconcileProfile",
207
+ "watchConfig"
208
+ ]
209
+ },
210
+ "inspector": {
211
+ "methods": [
212
+ "publish"
213
+ ]
214
+ },
215
+ "jobController": {
216
+ "methods": []
217
+ },
218
+ "jobs": {
219
+ "methods": []
220
+ },
221
+ "llm": {
222
+ "methods": [
223
+ "discoverModels",
224
+ "fileRequestText",
225
+ "imageRequestPricing",
226
+ "imageRequestTarget",
227
+ "listModels",
228
+ "prepareCall",
229
+ "providerRetryPolicy",
230
+ "registerAdapter",
231
+ "registerConfigurableProviders",
232
+ "registerModelDiscovery",
233
+ "resolveCallConfig",
234
+ "resolveModelInfo",
235
+ "stream"
236
+ ]
237
+ },
238
+ "lsp": {
239
+ "methods": [
240
+ "query",
241
+ "registerProvider"
242
+ ]
243
+ },
244
+ "mcpResources": {
245
+ "methods": [
246
+ "register"
247
+ ]
248
+ },
249
+ "messageFeedback": {
250
+ "methods": []
251
+ },
252
+ "officeToPdf": {
253
+ "methods": [
254
+ "convert"
255
+ ]
256
+ },
257
+ "otel": {
258
+ "methods": [
259
+ "createEventReporter",
260
+ "createSessionLogReporter"
261
+ ]
262
+ },
263
+ "permissionPresets": {
264
+ "methods": [
265
+ "current",
266
+ "optionOf",
267
+ "registerAuto",
268
+ "resolve",
269
+ "set"
270
+ ]
271
+ },
272
+ "planMode": {
273
+ "methods": [
274
+ "get",
275
+ "set"
276
+ ]
277
+ },
278
+ "pluginManager": {
279
+ "methods": []
280
+ },
281
+ "pluginMarket": {
282
+ "methods": [
283
+ "entry"
284
+ ]
285
+ },
286
+ "pluginRegistryProbe": {
287
+ "methods": []
288
+ },
289
+ "productAnalytics": {
290
+ "methods": []
291
+ },
292
+ "productTelemetry": {
293
+ "methods": [
294
+ "emit"
295
+ ]
296
+ },
297
+ "profileContext": {
298
+ "methods": []
299
+ },
300
+ "ptcRuntime": {
301
+ "methods": [
302
+ "release"
303
+ ]
304
+ },
305
+ "remoteAccess": {
306
+ "methods": [
307
+ "allows",
308
+ "decide",
309
+ "invalidate",
310
+ "snapshotFor"
311
+ ]
312
+ },
313
+ "sandbox": {
314
+ "methods": []
315
+ },
316
+ "sandboxPolicy": {
317
+ "methods": [
318
+ "overrideOf",
319
+ "resolve"
320
+ ]
321
+ },
322
+ "schedule": {
323
+ "methods": [
324
+ "create"
325
+ ]
326
+ },
327
+ "sessionController": {
328
+ "methods": [
329
+ "inspect",
330
+ "resolveAgent",
331
+ "workspaceDesktop"
332
+ ]
333
+ },
334
+ "sessionFeedback": {
335
+ "methods": []
336
+ },
337
+ "sessionFileReferences": {
338
+ "methods": []
339
+ },
340
+ "sessionPersistence": {
341
+ "methods": []
342
+ },
343
+ "sessionProjectionCache": {
344
+ "methods": [
345
+ "cachedPredecessorTitle",
346
+ "cachedSnapshot",
347
+ "coldSnapshot",
348
+ "hydratePrepared",
349
+ "write"
350
+ ]
351
+ },
352
+ "sessionProjections": {
353
+ "methods": [
354
+ "cachedSnapshot",
355
+ "checkpoint",
356
+ "hydrate",
357
+ "onChanged",
358
+ "restore",
359
+ "restoreFloor",
360
+ "snapshot",
361
+ "viewCheckpoint"
362
+ ]
363
+ },
364
+ "sessionQuery": {
365
+ "methods": [
366
+ "filterEvents",
367
+ "filterSessions",
368
+ "listEvents",
369
+ "listSessions",
370
+ "observeSession",
371
+ "readEvent",
372
+ "readSession",
373
+ "readSurface",
374
+ "readTitle",
375
+ "readTitleSnapshot",
376
+ "readTitleSnapshots",
377
+ "traceEvent",
378
+ "traceSession"
379
+ ]
380
+ },
381
+ "sessionReferenceResolver": {
382
+ "methods": [
383
+ "listCandidates",
384
+ "prepare"
385
+ ]
386
+ },
387
+ "sessionSkillCatalog": {
388
+ "methods": []
389
+ },
390
+ "sessionTelemetry": {
391
+ "methods": []
392
+ },
393
+ "sessionTitle": {
394
+ "methods": [
395
+ "get",
396
+ "refresh",
397
+ "register",
398
+ "rename"
399
+ ]
400
+ },
401
+ "sessions": {
402
+ "methods": [
403
+ "announce",
404
+ "create",
405
+ "enter",
406
+ "flush",
407
+ "fork",
408
+ "get",
409
+ "list",
410
+ "prepare",
411
+ "registerMessageProjection"
412
+ ]
413
+ },
414
+ "settings": {
415
+ "methods": [
416
+ "configure",
417
+ "describe",
418
+ "mutate",
419
+ "prepareDocument",
420
+ "replace",
421
+ "update"
422
+ ]
423
+ },
424
+ "settingsController": {
425
+ "methods": []
426
+ },
427
+ "shell": {
428
+ "methods": []
429
+ },
430
+ "shellEnv": {
431
+ "methods": [
432
+ "collect",
433
+ "list",
434
+ "register"
435
+ ]
436
+ },
437
+ "skills": {
438
+ "methods": [
439
+ "get",
440
+ "list",
441
+ "register",
442
+ "registerProvider",
443
+ "snapshot"
444
+ ]
445
+ },
446
+ "speechController": {
447
+ "methods": []
448
+ },
449
+ "speechToText": {
450
+ "methods": [
451
+ "cancelPreparation",
452
+ "configure",
453
+ "listProviders",
454
+ "prepare",
455
+ "register",
456
+ "resolve",
457
+ "snapshot",
458
+ "transcribe"
459
+ ]
460
+ },
461
+ "spillStore": {
462
+ "methods": []
463
+ },
464
+ "ssh": {
465
+ "methods": [
466
+ "connectStream",
467
+ "dispose"
468
+ ]
469
+ },
470
+ "storage": {
471
+ "methods": []
472
+ },
473
+ "storageDomain": {
474
+ "methods": [
475
+ "closeAll",
476
+ "get"
477
+ ]
478
+ },
479
+ "subagentModelSelection": {
480
+ "methods": [
481
+ "current"
482
+ ]
483
+ },
484
+ "subagents": {
485
+ "methods": [
486
+ "drainChildren",
487
+ "drainDescendants",
488
+ "getProvider",
489
+ "interrupt",
490
+ "list",
491
+ "listChildren",
492
+ "listDescendants",
493
+ "registerProvider",
494
+ "resolveMaxDepth",
495
+ "sendMessage",
496
+ "startActivation",
497
+ "waitForChildren"
498
+ ]
499
+ },
500
+ "subprocess": {
501
+ "methods": []
502
+ },
503
+ "systemPrompt": {
504
+ "methods": [
505
+ "assemble",
506
+ "context",
507
+ "getContextOrder",
508
+ "getSectionOrder",
509
+ "refreshContext",
510
+ "section",
511
+ "suppressRuntimeContext",
512
+ "tools",
513
+ "variable"
514
+ ]
515
+ },
516
+ "terminalController": {
517
+ "methods": []
518
+ },
519
+ "terminals": {
520
+ "methods": [
521
+ "hasOwnerActivity",
522
+ "kill",
523
+ "list",
524
+ "listBackends",
525
+ "read",
526
+ "registerBackend",
527
+ "signal",
528
+ "spawn",
529
+ "startSend"
530
+ ]
531
+ },
532
+ "timer": {
533
+ "methods": [
534
+ "interval",
535
+ "timeout"
536
+ ]
537
+ },
538
+ "tokenMeter": {
539
+ "methods": [
540
+ "estimateMessage",
541
+ "measure"
542
+ ]
543
+ },
544
+ "toolResultPruner": {
545
+ "methods": [
546
+ "measureContent",
547
+ "pruneContent",
548
+ "pruneSession"
549
+ ]
550
+ },
551
+ "tools": {
552
+ "methods": [
553
+ "execute",
554
+ "executionMode",
555
+ "get",
556
+ "guard",
557
+ "presentAs",
558
+ "register",
559
+ "restrict",
560
+ "schemas"
561
+ ]
562
+ },
563
+ "translator": {
564
+ "methods": [
565
+ "availableProviders",
566
+ "resolve",
567
+ "translate"
568
+ ]
569
+ },
570
+ "typert": {
571
+ "methods": [
572
+ "get",
573
+ "getPackage",
574
+ "list",
575
+ "listPackages",
576
+ "register",
577
+ "resolve",
578
+ "toJSONSchema"
579
+ ]
580
+ },
581
+ "typertGateway": {
582
+ "methods": [
583
+ "hasLiveClient",
584
+ "invoke",
585
+ "registerRemoteEvents",
586
+ "stream"
587
+ ]
588
+ },
589
+ "userQuestions": {
590
+ "methods": [
591
+ "ask",
592
+ "askTimed"
593
+ ]
594
+ },
595
+ "web": {
596
+ "methods": [
597
+ "fetch",
598
+ "registerFetchProvider",
599
+ "registerSearchProvider",
600
+ "search"
601
+ ]
602
+ },
603
+ "webApp": {
604
+ "methods": [
605
+ "getAdvertisedUrl"
606
+ ]
607
+ },
608
+ "webServer": {
609
+ "methods": [
610
+ "applyIndexTaps",
611
+ "collectIndexInjections",
612
+ "getOrigin",
613
+ "register",
614
+ "registerFallback",
615
+ "registerUpgrade",
616
+ "renderIndex",
617
+ "tapIndex"
618
+ ]
619
+ },
620
+ "webhookRuntime": {
621
+ "methods": []
622
+ },
623
+ "workflowEngine": {
624
+ "methods": []
625
+ },
626
+ "workingDirectory": {
627
+ "methods": [
628
+ "ensure",
629
+ "get",
630
+ "set"
631
+ ]
632
+ },
633
+ "workspaceChanges": {
634
+ "methods": [
635
+ "diff",
636
+ "summary"
637
+ ]
638
+ },
639
+ "workspaceController": {
640
+ "methods": []
641
+ },
642
+ "workspaceFiles": {
643
+ "methods": []
644
+ },
645
+ "workspaceRegistry": {
646
+ "methods": [
647
+ "archiveSession",
648
+ "create",
649
+ "delete",
650
+ "get",
651
+ "initializeDefault",
652
+ "insertBefore",
653
+ "list",
654
+ "pinSession",
655
+ "resolveByPath",
656
+ "unarchiveSession",
657
+ "unpinSession"
658
+ ]
659
+ },
660
+ "worktrees": {
661
+ "methods": [
662
+ "create"
663
+ ]
664
+ }
665
+ },
666
+ "client": {
667
+ "layout": {
668
+ "methods": [
669
+ "beginNavigation",
670
+ "closeRightbar",
671
+ "openRightbar",
672
+ "selectPanel",
673
+ "toggleSidebar"
674
+ ]
675
+ },
676
+ "locale": {
677
+ "methods": [
678
+ "addLanguage",
679
+ "bind",
680
+ "getLocale",
681
+ "getSnapshot",
682
+ "register",
683
+ "setLocale",
684
+ "subscribe"
685
+ ]
686
+ },
687
+ "sessions": {
688
+ "methods": [
689
+ "binding",
690
+ "fork",
691
+ "refreshProjections",
692
+ "retain",
693
+ "retainInfo",
694
+ "scope",
695
+ "search"
696
+ ]
697
+ },
698
+ "slots": {
699
+ "methods": [
700
+ "inject"
701
+ ]
702
+ },
703
+ "theme": {
704
+ "methods": [
705
+ "getTheme",
706
+ "overrideTokens",
707
+ "register",
708
+ "setFontSize",
709
+ "setTheme"
710
+ ]
711
+ },
712
+ "timer": {
713
+ "methods": [
714
+ "interval",
715
+ "timeout"
716
+ ]
717
+ },
718
+ "uiWorkspace": {
719
+ "methods": [
720
+ "archiveSession",
721
+ "connectWorkspace",
722
+ "createDirectory",
723
+ "forkSession",
724
+ "listDirectory",
725
+ "openSession",
726
+ "openWorkspace",
727
+ "pickDirectory",
728
+ "startSession",
729
+ "unarchiveSession"
730
+ ]
731
+ },
732
+ "workspaces": {
733
+ "methods": [
734
+ "archiveSession",
735
+ "create",
736
+ "delete",
737
+ "insertSessionBefore",
738
+ "rename",
739
+ "unarchiveSession"
740
+ ]
741
+ }
742
+ }
743
+ }