dsh-edge 0.19.0 → 0.19.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.
Files changed (31) hide show
  1. package/THIRD_PARTY_NOTICES.md +1991 -1741
  2. package/dist/assets/index-5SrrfWpU.js +127 -0
  3. package/dist/assets/index-BPHePDI_.css +1 -0
  4. package/dist/index.html +3 -3
  5. package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +260 -20
  6. package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +12 -7
  7. package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +9 -20
  8. package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +90 -126
  9. package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +111 -50
  10. package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +14 -1
  11. package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +3 -3
  12. package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +216 -63
  13. package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +37 -23
  14. package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +4 -4
  15. package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +1 -1
  16. package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +7 -7
  17. package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1 -1
  18. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +10 -15
  19. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +9 -4
  20. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +183 -156
  21. package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +1 -1
  22. package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +6 -6
  23. package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +304 -54
  24. package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +1257 -218
  25. package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +1 -1
  26. package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +3 -2
  27. package/package.json +93 -93
  28. package/worker/direct/index.js +945 -891
  29. package/worker/isolated/index.js +809 -755
  30. package/dist/assets/index-Cq6ljTv2.css +0 -1
  31. package/dist/assets/index-Dy0OhsZ5.js +0 -127
@@ -4527,7 +4527,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4527
4527
  const _deepseek_ai_dsh_client_product_analytics_productAnalytics_report_result$schema = () => _deepseek_ai_dsh_client_product_analytics_productAnalytics_report_result$schema$value ??= _void();
4528
4528
  let _deepseek_ai_dsh_client_product_analytics_productAnalytics_watchPolicy_result$schema$value;
4529
4529
  const _deepseek_ai_dsh_client_product_analytics_productAnalytics_watchPolicy_result$schema = () => _deepseek_ai_dsh_client_product_analytics_productAnalytics_watchPolicy_result$schema$value ??= boolean();
4530
- const TYPERT_REMOTE$23 = {
4530
+ const TYPERT_REMOTE$24 = {
4531
4531
  package: "@deepseek-ai/dsh-client-product-analytics",
4532
4532
  descriptors: [
4533
4533
  {
@@ -4622,7 +4622,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4622
4622
  const _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_1$schema = () => _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_1$schema$value ??= string();
4623
4623
  let _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema$value;
4624
4624
  const _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema = () => _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema$value ??= string();
4625
- const TYPERT_REMOTE$22 = {
4625
+ const TYPERT_REMOTE$23 = {
4626
4626
  package: "@deepseek-ai/dsh-agent-preset-registry",
4627
4627
  descriptors: [
4628
4628
  {
@@ -4716,6 +4716,125 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4716
4716
  ]
4717
4717
  };
4718
4718
  //#endregion
4719
+ //#region ../../interaction/user-questions/lib/typert.remote-client.js
4720
+ let _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_0$schema$value;
4721
+ const _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_0$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_0$schema$value ??= intersection(string(), unknown());
4722
+ let _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_1$schema$value;
4723
+ const _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_1$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_1$schema$value ??= intersection(string(), unknown());
4724
+ let _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_2$schema$value;
4725
+ const _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_2$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_2$schema$value ??= object({ "answers": array(object({
4726
+ "id": string(),
4727
+ "selected": array(string()),
4728
+ "custom": string().optional()
4729
+ })) });
4730
+ let _deepseek_ai_dsh_user_questions_userQuestions_answer_result$schema$value;
4731
+ const _deepseek_ai_dsh_user_questions_userQuestions_answer_result$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_answer_result$schema$value ??= boolean();
4732
+ let _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_0$schema$value;
4733
+ const _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_0$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_0$schema$value ??= intersection(string(), unknown());
4734
+ let _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_1$schema$value;
4735
+ const _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_1$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_1$schema$value ??= intersection(string(), unknown());
4736
+ let _deepseek_ai_dsh_user_questions_userQuestions_attachWait_result$schema$value;
4737
+ const _deepseek_ai_dsh_user_questions_userQuestions_attachWait_result$schema = () => _deepseek_ai_dsh_user_questions_userQuestions_attachWait_result$schema$value ??= object({ "remainingMs": number() });
4738
+ const TYPERT_REMOTE$22 = {
4739
+ package: "@deepseek-ai/dsh-user-questions",
4740
+ descriptors: [{
4741
+ id: "@deepseek-ai/dsh-user-questions#userQuestions/answer",
4742
+ service: "userQuestions",
4743
+ namespace: "userQuestions",
4744
+ method: "answer",
4745
+ invocation: { kind: "direct" },
4746
+ scope: {
4747
+ context: "agent",
4748
+ wire: "agentId"
4749
+ },
4750
+ parameters: [
4751
+ {
4752
+ name: "agent",
4753
+ wire: "agentId",
4754
+ source: "lookup",
4755
+ lookup: "agent",
4756
+ codec: {
4757
+ mode: "strict",
4758
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4759
+ create: _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_0$schema
4760
+ }
4761
+ },
4762
+ {
4763
+ name: "callId",
4764
+ wire: "callId",
4765
+ source: "json",
4766
+ codec: {
4767
+ mode: "strict",
4768
+ typeSymbol: "@deepseek-ai/dsh-llm/brand#ToolCallId",
4769
+ create: _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_1$schema
4770
+ }
4771
+ },
4772
+ {
4773
+ name: "answer",
4774
+ wire: "answer",
4775
+ source: "json",
4776
+ codec: {
4777
+ mode: "strict",
4778
+ typeSymbol: "@deepseek-ai/dsh-user-questions/types#AskUserQuestionAnswer",
4779
+ create: _deepseek_ai_dsh_user_questions_userQuestions_answer_parameter_2$schema
4780
+ }
4781
+ }
4782
+ ],
4783
+ result: {
4784
+ mode: "strict",
4785
+ typeSymbol: "@deepseek-ai/dsh-user-questions#userQuestions/answer:result",
4786
+ create: _deepseek_ai_dsh_user_questions_userQuestions_answer_result$schema
4787
+ },
4788
+ sourceLocation: {
4789
+ "file": "packages/interaction/user-questions/src/index.ts",
4790
+ "line": 165,
4791
+ "column": 3
4792
+ }
4793
+ }, {
4794
+ id: "@deepseek-ai/dsh-user-questions#userQuestions/attachWait",
4795
+ service: "userQuestions",
4796
+ namespace: "userQuestions",
4797
+ method: "attachWait",
4798
+ mode: "stream",
4799
+ invocation: { kind: "direct" },
4800
+ scope: {
4801
+ context: "agent",
4802
+ wire: "agentId"
4803
+ },
4804
+ parameters: [{
4805
+ name: "agent",
4806
+ wire: "agentId",
4807
+ source: "lookup",
4808
+ lookup: "agent",
4809
+ codec: {
4810
+ mode: "strict",
4811
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4812
+ create: _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_0$schema
4813
+ }
4814
+ }, {
4815
+ name: "callId",
4816
+ wire: "callId",
4817
+ source: "json",
4818
+ codec: {
4819
+ mode: "strict",
4820
+ typeSymbol: "@deepseek-ai/dsh-llm/brand#ToolCallId",
4821
+ create: _deepseek_ai_dsh_user_questions_userQuestions_attachWait_parameter_1$schema
4822
+ }
4823
+ }],
4824
+ cancellation: { parameter: "signal" },
4825
+ result: {
4826
+ mode: "strict",
4827
+ typeSymbol: "@deepseek-ai/dsh-user-questions#userQuestions/attachWait:result",
4828
+ create: _deepseek_ai_dsh_user_questions_userQuestions_attachWait_result$schema
4829
+ },
4830
+ sourceLocation: {
4831
+ "file": "packages/interaction/user-questions/src/index.ts",
4832
+ "line": 216,
4833
+ "column": 10
4834
+ }
4835
+ }]
4836
+ };
4837
+ //#endregion
4719
4838
  //#region ../../interaction/commands/lib/typert.remote-client.js
4720
4839
  let _deepseek_ai_dsh_commands_commands_execute_parameter_0$schema$value;
4721
4840
  const _deepseek_ai_dsh_commands_commands_execute_parameter_0$schema = () => _deepseek_ai_dsh_commands_commands_execute_parameter_0$schema$value ??= intersection(string(), unknown());
@@ -7696,7 +7815,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7696
7815
  },
7697
7816
  sourceLocation: {
7698
7817
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7699
- "line": 389,
7818
+ "line": 392,
7700
7819
  "column": 3
7701
7820
  }
7702
7821
  },
@@ -7714,7 +7833,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7714
7833
  },
7715
7834
  sourceLocation: {
7716
7835
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7717
- "line": 530,
7836
+ "line": 534,
7718
7837
  "column": 3
7719
7838
  }
7720
7839
  },
@@ -7773,7 +7892,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7773
7892
  },
7774
7893
  sourceLocation: {
7775
7894
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7776
- "line": 746,
7895
+ "line": 750,
7777
7896
  "column": 9
7778
7897
  }
7779
7898
  },
@@ -7837,7 +7956,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7837
7956
  },
7838
7957
  sourceLocation: {
7839
7958
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7840
- "line": 723,
7959
+ "line": 727,
7841
7960
  "column": 9
7842
7961
  }
7843
7962
  },
@@ -7901,7 +8020,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7901
8020
  },
7902
8021
  sourceLocation: {
7903
8022
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7904
- "line": 689,
8023
+ "line": 693,
7905
8024
  "column": 9
7906
8025
  }
7907
8026
  },
@@ -7955,7 +8074,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7955
8074
  },
7956
8075
  sourceLocation: {
7957
8076
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7958
- "line": 516,
8077
+ "line": 520,
7959
8078
  "column": 3
7960
8079
  }
7961
8080
  },
@@ -7991,7 +8110,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7991
8110
  },
7992
8111
  sourceLocation: {
7993
8112
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
7994
- "line": 418,
8113
+ "line": 421,
7995
8114
  "column": 9
7996
8115
  }
7997
8116
  },
@@ -8075,7 +8194,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8075
8194
  },
8076
8195
  sourceLocation: {
8077
8196
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
8078
- "line": 330,
8197
+ "line": 333,
8079
8198
  "column": 9
8080
8199
  }
8081
8200
  },
@@ -8129,7 +8248,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8129
8248
  },
8130
8249
  sourceLocation: {
8131
8250
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
8132
- "line": 443,
8251
+ "line": 446,
8133
8252
  "column": 9
8134
8253
  }
8135
8254
  },
@@ -8170,7 +8289,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8170
8289
  },
8171
8290
  sourceLocation: {
8172
8291
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
8173
- "line": 485,
8292
+ "line": 488,
8174
8293
  "column": 9
8175
8294
  }
8176
8295
  },
@@ -8197,7 +8316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8197
8316
  },
8198
8317
  sourceLocation: {
8199
8318
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
8200
- "line": 503,
8319
+ "line": 506,
8201
8320
  "column": 3
8202
8321
  }
8203
8322
  },
@@ -8238,7 +8357,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8238
8357
  },
8239
8358
  sourceLocation: {
8240
8359
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
8241
- "line": 232,
8360
+ "line": 235,
8242
8361
  "column": 9
8243
8362
  }
8244
8363
  }
@@ -10115,7 +10234,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10115
10234
  "roundsStarted": number().readonly(),
10116
10235
  "createdAt": number().readonly(),
10117
10236
  "updatedAt": number().readonly()
10118
- })]).optional()
10237
+ })]).optional(),
10238
+ "userQuestions": object({
10239
+ "active": array(object({
10240
+ "callId": intersection(string(), unknown()).readonly(),
10241
+ "questions": array(object({
10242
+ "id": string(),
10243
+ "question": string(),
10244
+ "detail": string().optional(),
10245
+ "header": string().optional(),
10246
+ "options": array(object({
10247
+ "label": string(),
10248
+ "description": string().optional()
10249
+ })).optional(),
10250
+ "multiSelect": boolean().optional(),
10251
+ "intent": object({
10252
+ "kind": literal("plan-review"),
10253
+ "approve": string(),
10254
+ "callId": intersection(string(), unknown()).optional()
10255
+ }).optional()
10256
+ })).readonly(),
10257
+ "state": union([literal("open"), literal("continued")]).readonly()
10258
+ })).readonly(),
10259
+ "settled": array(object({
10260
+ "callId": intersection(string(), unknown()).readonly(),
10261
+ "answers": array(object({
10262
+ "id": string(),
10263
+ "selected": array(string()),
10264
+ "custom": string().optional()
10265
+ })).readonly()
10266
+ })).readonly()
10267
+ }).optional()
10119
10268
  }), record(string(), union([
10120
10269
  literal(null),
10121
10270
  string(),
@@ -10390,7 +10539,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10390
10539
  "roundsStarted": number().readonly(),
10391
10540
  "createdAt": number().readonly(),
10392
10541
  "updatedAt": number().readonly()
10393
- })]).optional()
10542
+ })]).optional(),
10543
+ "userQuestions": object({
10544
+ "active": array(object({
10545
+ "callId": intersection(string(), unknown()).readonly(),
10546
+ "questions": array(object({
10547
+ "id": string(),
10548
+ "question": string(),
10549
+ "detail": string().optional(),
10550
+ "header": string().optional(),
10551
+ "options": array(object({
10552
+ "label": string(),
10553
+ "description": string().optional()
10554
+ })).optional(),
10555
+ "multiSelect": boolean().optional(),
10556
+ "intent": object({
10557
+ "kind": literal("plan-review"),
10558
+ "approve": string(),
10559
+ "callId": intersection(string(), unknown()).optional()
10560
+ }).optional()
10561
+ })).readonly(),
10562
+ "state": union([literal("open"), literal("continued")]).readonly()
10563
+ })).readonly(),
10564
+ "settled": array(object({
10565
+ "callId": intersection(string(), unknown()).readonly(),
10566
+ "answers": array(object({
10567
+ "id": string(),
10568
+ "selected": array(string()),
10569
+ "custom": string().optional()
10570
+ })).readonly()
10571
+ })).readonly()
10572
+ }).optional()
10394
10573
  }), record(string(), union([
10395
10574
  literal(null),
10396
10575
  string(),
@@ -10611,7 +10790,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10611
10790
  "roundsStarted": number().readonly(),
10612
10791
  "createdAt": number().readonly(),
10613
10792
  "updatedAt": number().readonly()
10614
- })]).optional()
10793
+ })]).optional(),
10794
+ "userQuestions": object({
10795
+ "active": array(object({
10796
+ "callId": intersection(string(), unknown()).readonly(),
10797
+ "questions": array(object({
10798
+ "id": string(),
10799
+ "question": string(),
10800
+ "detail": string().optional(),
10801
+ "header": string().optional(),
10802
+ "options": array(object({
10803
+ "label": string(),
10804
+ "description": string().optional()
10805
+ })).optional(),
10806
+ "multiSelect": boolean().optional(),
10807
+ "intent": object({
10808
+ "kind": literal("plan-review"),
10809
+ "approve": string(),
10810
+ "callId": intersection(string(), unknown()).optional()
10811
+ }).optional()
10812
+ })).readonly(),
10813
+ "state": union([literal("open"), literal("continued")]).readonly()
10814
+ })).readonly(),
10815
+ "settled": array(object({
10816
+ "callId": intersection(string(), unknown()).readonly(),
10817
+ "answers": array(object({
10818
+ "id": string(),
10819
+ "selected": array(string()),
10820
+ "custom": string().optional()
10821
+ })).readonly()
10822
+ })).readonly()
10823
+ }).optional()
10615
10824
  }), record(string(), union([
10616
10825
  literal(null),
10617
10826
  string(),
@@ -10855,7 +11064,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10855
11064
  "roundsStarted": number().readonly(),
10856
11065
  "createdAt": number().readonly(),
10857
11066
  "updatedAt": number().readonly()
10858
- })]).optional()
11067
+ })]).optional(),
11068
+ "userQuestions": object({
11069
+ "active": array(object({
11070
+ "callId": intersection(string(), unknown()).readonly(),
11071
+ "questions": array(object({
11072
+ "id": string(),
11073
+ "question": string(),
11074
+ "detail": string().optional(),
11075
+ "header": string().optional(),
11076
+ "options": array(object({
11077
+ "label": string(),
11078
+ "description": string().optional()
11079
+ })).optional(),
11080
+ "multiSelect": boolean().optional(),
11081
+ "intent": object({
11082
+ "kind": literal("plan-review"),
11083
+ "approve": string(),
11084
+ "callId": intersection(string(), unknown()).optional()
11085
+ }).optional()
11086
+ })).readonly(),
11087
+ "state": union([literal("open"), literal("continued")]).readonly()
11088
+ })).readonly(),
11089
+ "settled": array(object({
11090
+ "callId": intersection(string(), unknown()).readonly(),
11091
+ "answers": array(object({
11092
+ "id": string(),
11093
+ "selected": array(string()),
11094
+ "custom": string().optional()
11095
+ })).readonly()
11096
+ })).readonly()
11097
+ }).optional()
10859
11098
  }), record(string(), union([
10860
11099
  literal(null),
10861
11100
  string(),
@@ -13271,8 +13510,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13271
13510
  const disposers = [];
13272
13511
  try {
13273
13512
  for (const contribution of [
13513
+ TYPERT_REMOTE$24,
13274
13514
  TYPERT_REMOTE$23,
13275
- TYPERT_REMOTE$22,
13276
13515
  TYPERT_REMOTE$21,
13277
13516
  TYPERT_REMOTE$19,
13278
13517
  TYPERT_REMOTE$20,
@@ -13294,7 +13533,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13294
13533
  TYPERT_REMOTE$2,
13295
13534
  TYPERT_REMOTE,
13296
13535
  TYPERT_REMOTE$1,
13297
- TYPERT_REMOTE$18
13536
+ TYPERT_REMOTE$18,
13537
+ TYPERT_REMOTE$22
13298
13538
  ]) disposers.push(await ctx.remote.$mount(contribution));
13299
13539
  } catch (error) {
13300
13540
  for (const dispose of disposers.reverse()) await dispose();
@@ -726,12 +726,12 @@ window.__ModuleLoader__.load({
726
726
  };
727
727
  }
728
728
  /**
729
- * Install document composition tracking and application dispatch after local handlers.
729
+ * Install document composition tracking, modal-cache invalidation, and dispatch after local handlers.
730
730
  * @param window - input window owned by the client plugin.
731
731
  * @param shortcuts - command registry for this window.
732
732
  * @param fixed - optional fixed-sequence consumer after local controls.
733
733
  * @param native - native input owns configurable bindings; DOM delivery only feeds fixed actions.
734
- * @returns disposer releasing every listener.
734
+ * @returns disposer releasing every listener, the modal observer, and cached nodes.
735
735
  */
736
736
  function installKeyboard(window, shortcuts, fixed, native = false) {
737
737
  const document = window.document;
@@ -742,16 +742,18 @@ window.__ModuleLoader__.load({
742
742
  fixed?.({ type: "reset" });
743
743
  };
744
744
  let deadKey = false;
745
+ let dialogs;
745
746
  const blur = () => {
746
747
  deadKey = false;
747
748
  reset();
748
749
  };
749
750
  const containsModal = (node) => node instanceof Element && (node.matches(_deepseek_ai_dsh_client_ui_primitives.modalSelector) || node.querySelector(_deepseek_ai_dsh_client_ui_primitives.modalSelector) !== null);
750
751
  const changedModals = (records) => {
752
+ if (records.length > 0) dialogs = void 0;
751
753
  if (records.some((record) => record.type === "attributes" ? record.oldValue === "dialog" || record.oldValue === "true" || containsModal(record.target) : [...record.addedNodes, ...record.removedNodes].some(containsModal))) reset();
752
754
  };
753
- const observer = fixed === void 0 ? void 0 : new MutationObserver(changedModals);
754
- observer?.observe(document.documentElement, {
755
+ const observer = new MutationObserver(changedModals);
756
+ observer.observe(document.documentElement, {
755
757
  childList: true,
756
758
  subtree: true,
757
759
  attributes: true,
@@ -761,7 +763,7 @@ window.__ModuleLoader__.load({
761
763
  const capture = () => {
762
764
  if (pending) reset();
763
765
  window.clearTimeout(pendingTimer);
764
- if (observer !== void 0) changedModals(observer.takeRecords());
766
+ changedModals(observer.takeRecords());
765
767
  pending = true;
766
768
  pendingTimer = window.setTimeout(() => {
767
769
  pending = false;
@@ -776,7 +778,9 @@ window.__ModuleLoader__.load({
776
778
  const target = event.composedPath().find((value) => value instanceof Element);
777
779
  const element = target instanceof Element ? target : document.activeElement;
778
780
  const region = element?.closest(".xterm") ? "terminal" : element?.closest("input, textarea, select, [contenteditable=\"true\"], [contenteditable=\"\"]") ? "editable" : "page";
779
- const top = [...document.querySelectorAll(_deepseek_ai_dsh_client_ui_primitives.modalSelector)].at(-1);
781
+ changedModals(observer.takeRecords());
782
+ dialogs ??= document.querySelectorAll(_deepseek_ai_dsh_client_ui_primitives.modalSelector);
783
+ const top = dialogs[dialogs.length - 1];
780
784
  const context = {
781
785
  region,
782
786
  modal: top === void 0 ? null : top.dataset.shortcutModal ?? "other",
@@ -823,7 +827,8 @@ window.__ModuleLoader__.load({
823
827
  return () => {
824
828
  pending = false;
825
829
  window.clearTimeout(pendingTimer);
826
- observer?.disconnect();
830
+ observer.disconnect();
831
+ dialogs = void 0;
827
832
  composition.dispose();
828
833
  document.removeEventListener("compositionstart", reset, true);
829
834
  document.removeEventListener("compositionend", reset, true);
@@ -293,9 +293,7 @@ window.__ModuleLoader__.load({
293
293
  brokenBadge: "Failed to load",
294
294
  switchRefused: "Could not switch to {name}: {reason}",
295
295
  close: "Close",
296
- creatorDraft: "Let the agent help me create a preset",
297
- enableDevToolsToSetDefault: "Turn on Coding Tools in General settings to choose a default",
298
- enableDevToolsToCreate: "Turn on Coding Tools in General settings to start Creator mode"
296
+ creatorDraft: "Let the agent help me create a preset"
299
297
  };
300
298
  /** Simplified Chinese copy. */
301
299
  const zh = {
@@ -321,9 +319,7 @@ window.__ModuleLoader__.load({
321
319
  brokenBadge: "加载失败",
322
320
  switchRefused: "无法切换到「{name}」:{reason}",
323
321
  close: "关闭",
324
- creatorDraft: "让 Agent 帮我创建预设模式",
325
- enableDevToolsToSetDefault: "请先在通用设置中开启代码工作工具,再设置默认值",
326
- enableDevToolsToCreate: "请先在通用设置中开启代码工作工具,再启动创造模式"
322
+ creatorDraft: "让 Agent 帮我创建预设模式"
327
323
  };
328
324
  //#endregion
329
325
  //#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetLabel.module.css.mjs
@@ -775,7 +771,7 @@ window.__ModuleLoader__.load({
775
771
  }
776
772
  //#endregion
777
773
  //#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSection.module.css.mjs
778
- const css = ".rtSEdW_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.rtSEdW_title{margin:0;font-size:18px;font-weight:600}.rtSEdW_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px}.rtSEdW_group{flex-direction:column;gap:10px;display:flex}.rtSEdW_group+.rtSEdW_group{margin-top:20px}.rtSEdW_groupHead{letter-spacing:.06em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;font-weight:600}.rtSEdW_cards{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rtSEdW_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;transition:border-color .16s,background .16s;display:flex}.rtSEdW_card:hover:not(.rtSEdW_cardActive):not(.rtSEdW_cardSelectionDisabled){background:var(--dsw-alias-interactive-bg-hover)}.rtSEdW_cardActive{background:var(--dsw-alias-bg-module-platform);border-color:var(--dsw-static-neutral-bluish-400)}.rtSEdW_cardSelectionDisabled{background:var(--dsw-alias-bg-module-platform)}.rtSEdW_cardSelectionDisabled .rtSEdW_cardMain{opacity:.48}.rtSEdW_cardBroken,.rtSEdW_cardBroken:hover{border-color:var(--dsw-alias-state-error-primary)}.rtSEdW_brokenBadge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.rtSEdW_brokenTip{z-index:1;border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-label-primary);width:max-content;max-width:100%;color:var(--dsw-alias-bg-layer-3);text-align:left;white-space:pre-line;overflow-wrap:anywhere;opacity:0;pointer-events:none;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5;transition:opacity .12s;position:absolute;top:calc(100% + 6px);left:0}.rtSEdW_brokenBadge:hover .rtSEdW_brokenTip,.rtSEdW_cardMain:focus-visible .rtSEdW_brokenTip{opacity:1}.rtSEdW_cardMain[aria-disabled=true]{cursor:default}.rtSEdW_cardBrokenReason{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.rtSEdW_cardMain{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--dsw-radius-xl) var(--dsw-radius-xl) 0 0;background:0 0;border:0;flex-direction:column;flex:1;gap:12px;padding:14px 16px 12px;display:flex}.rtSEdW_cardMain:disabled{cursor:default}.rtSEdW_cardMain:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.rtSEdW_cardHead{align-items:flex-start;gap:12px;display:flex;position:relative}.rtSEdW_cardIdentity{flex:1;align-items:center;gap:6px;min-width:0;display:flex}.rtSEdW_cardName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:15px;font-weight:600;line-height:1.4;overflow:hidden}.rtSEdW_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-block:auto;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.rtSEdW_cardId{max-width:35%;font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;font-size:11px;line-height:21px;overflow:hidden}.rtSEdW_cardFoot{border-top:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;padding:6px 10px;display:flex}.rtSEdW_cardHelp{align-items:center;gap:4px;margin-right:auto;display:flex}.rtSEdW_helpButton{min-height:28px;color:var(--dsw-alias-label-tertiary);padding:5px 6px;font-size:12px;font-weight:400}.rtSEdW_helpButton:hover,.rtSEdW_helpButton:focus-visible{color:var(--dsw-alias-label-primary)}.rtSEdW_iconButton{appearance:none;border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;padding:6px;display:inline-flex;position:relative}.rtSEdW_iconButton:hover{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.rtSEdW_iconButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.rtSEdW_iconButton:after{content:attr(data-tip);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3);white-space:nowrap;opacity:0;pointer-events:none;padding:3px 8px;font-size:11px;line-height:17px;transition:opacity .12s;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rtSEdW_iconButton:hover:after,.rtSEdW_iconButton:focus-visible:after{opacity:1}.rtSEdW_dialog{width:min(720px,100%)}.rtSEdW_viewerCode{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);max-height:min(60vh,560px);color:var(--dsw-alias-label-secondary);font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);white-space:pre;tab-size:2;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);margin:0;padding:12px;font-size:12.5px;line-height:1.5;overflow:auto}.rtSEdW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rtSEdW_creatorButton{box-sizing:border-box;border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);height:44px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;justify-content:center;align-self:stretch;align-items:center;gap:6px;font-size:14px;line-height:22px;display:flex}.rtSEdW_creatorButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.rtSEdW_creatorButton:disabled{opacity:.4;cursor:default}";
774
+ const css = ".rtSEdW_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.rtSEdW_title{margin:0;font-size:18px;font-weight:600}.rtSEdW_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px}.rtSEdW_group{flex-direction:column;gap:10px;display:flex}.rtSEdW_group+.rtSEdW_group{margin-top:20px}.rtSEdW_groupHead{letter-spacing:.06em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;font-weight:600}.rtSEdW_cards{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rtSEdW_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;transition:border-color .16s,background .16s;display:flex}.rtSEdW_card:hover:not(.rtSEdW_cardActive){background:var(--dsw-alias-interactive-bg-hover)}.rtSEdW_cardActive{background:var(--dsw-alias-bg-module-platform);border-color:var(--dsw-static-neutral-bluish-400)}.rtSEdW_cardBroken,.rtSEdW_cardBroken:hover{border-color:var(--dsw-alias-state-error-primary)}.rtSEdW_brokenBadge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.rtSEdW_brokenTip{z-index:1;border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-label-primary);width:max-content;max-width:100%;color:var(--dsw-alias-bg-layer-3);text-align:left;white-space:pre-line;overflow-wrap:anywhere;opacity:0;pointer-events:none;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5;transition:opacity .12s;position:absolute;top:calc(100% + 6px);left:0}.rtSEdW_brokenBadge:hover .rtSEdW_brokenTip,.rtSEdW_cardMain:focus-visible .rtSEdW_brokenTip{opacity:1}.rtSEdW_cardMain[aria-disabled=true]{cursor:default}.rtSEdW_cardBrokenReason{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.rtSEdW_cardMain{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--dsw-radius-xl) var(--dsw-radius-xl) 0 0;background:0 0;border:0;flex-direction:column;flex:1;gap:12px;padding:14px 16px 12px;display:flex}.rtSEdW_cardMain:disabled{cursor:default}.rtSEdW_cardMain:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.rtSEdW_cardHead{align-items:flex-start;gap:12px;display:flex;position:relative}.rtSEdW_cardIdentity{flex:1;align-items:center;gap:6px;min-width:0;display:flex}.rtSEdW_cardName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:15px;font-weight:600;line-height:1.4;overflow:hidden}.rtSEdW_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-block:auto;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.rtSEdW_cardId{max-width:35%;font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;font-size:11px;line-height:21px;overflow:hidden}.rtSEdW_cardFoot{border-top:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;padding:6px 10px;display:flex}.rtSEdW_cardHelp{align-items:center;gap:4px;margin-right:auto;display:flex}.rtSEdW_helpButton{min-height:28px;color:var(--dsw-alias-label-tertiary);padding:5px 6px;font-size:12px;font-weight:400}.rtSEdW_helpButton:hover,.rtSEdW_helpButton:focus-visible{color:var(--dsw-alias-label-primary)}.rtSEdW_iconButton{appearance:none;border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;padding:6px;display:inline-flex;position:relative}.rtSEdW_iconButton:hover{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.rtSEdW_iconButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.rtSEdW_iconButton:after{content:attr(data-tip);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3);white-space:nowrap;opacity:0;pointer-events:none;padding:3px 8px;font-size:11px;line-height:17px;transition:opacity .12s;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.rtSEdW_iconButton:hover:after,.rtSEdW_iconButton:focus-visible:after{opacity:1}.rtSEdW_dialog{width:min(720px,100%)}.rtSEdW_viewerCode{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);max-height:min(60vh,560px);color:var(--dsw-alias-label-secondary);font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);white-space:pre;tab-size:2;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);margin:0;padding:12px;font-size:12.5px;line-height:1.5;overflow:auto}.rtSEdW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rtSEdW_creatorButton{box-sizing:border-box;border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);height:44px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;justify-content:center;align-self:stretch;align-items:center;gap:6px;font-size:14px;line-height:22px;display:flex}.rtSEdW_creatorButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.rtSEdW_creatorButton:disabled{opacity:.4;cursor:default}";
779
775
  const tagId = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSection.module.css";
780
776
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
781
777
  const tag = document.createElement("style");
@@ -799,7 +795,6 @@ window.__ModuleLoader__.load({
799
795
  "cardIdentity": "rtSEdW_cardIdentity",
800
796
  "cardMain": "rtSEdW_cardMain",
801
797
  "cardName": "rtSEdW_cardName",
802
- "cardSelectionDisabled": "rtSEdW_cardSelectionDisabled",
803
798
  "cards": "rtSEdW_cards",
804
799
  "creatorButton": "rtSEdW_creatorButton",
805
800
  "dialog": "rtSEdW_dialog",
@@ -851,9 +846,8 @@ window.__ModuleLoader__.load({
851
846
  * @param props Settings actions, snapshot hooks and localized text.
852
847
  * @returns The preset settings section.
853
848
  */
854
- function AgentPresetSection({ useAgentPresetSection, load, view, closeView, makeDefault, startCreatorDraft, close: closeSettings, useDeveloperTools, t }) {
849
+ function AgentPresetSection({ useAgentPresetSection, load, view, closeView, makeDefault, startCreatorDraft, close: closeSettings, t }) {
855
850
  const state = useAgentPresetSection((value) => value);
856
- const developerTools = useDeveloperTools((enabled) => enabled);
857
851
  const [guide, setGuide] = (0, react.useState)(null);
858
852
  const viewTrigger = (0, react.useRef)(null);
859
853
  const closeViewOnUnmount = (0, react.useRef)(closeView);
@@ -877,8 +871,7 @@ window.__ModuleLoader__.load({
877
871
  const creatorButton = creator === void 0 ? null : (0, react_jsx_runtime.jsxs)("button", {
878
872
  type: "button",
879
873
  className: AgentPresetSection_module_css_default.creatorButton,
880
- disabled: !developerTools || state.saving,
881
- title: developerTools ? void 0 : t("enableDevToolsToCreate"),
874
+ disabled: state.saving,
882
875
  onClick: () => {
883
876
  creator();
884
877
  closeSettings();
@@ -917,20 +910,19 @@ window.__ModuleLoader__.load({
917
910
  children: rows.map((row) => {
918
911
  const display = presetDisplayText(row, t);
919
912
  const help = presetGuide(row.id, builtIn ? "system" : "user");
920
- const selectionAction = row.broken !== void 0 ? t("brokenBadge") : row.isDefault ? t("inUse") : t(developerTools ? "setDefault" : "enableDevToolsToSetDefault");
913
+ const selectionAction = row.broken !== void 0 ? t("brokenBadge") : t(row.isDefault ? "inUse" : "setDefault");
921
914
  return (0, react_jsx_runtime.jsxs)("li", {
922
915
  "data-agent-preset-id": row.id,
923
916
  className: [
924
917
  AgentPresetSection_module_css_default.card,
925
918
  row.broken === void 0 ? void 0 : AgentPresetSection_module_css_default.cardBroken,
926
- row.isDefault ? AgentPresetSection_module_css_default.cardActive : void 0,
927
- !developerTools && row.broken === void 0 && !row.isDefault ? AgentPresetSection_module_css_default.cardSelectionDisabled : void 0
919
+ row.isDefault ? AgentPresetSection_module_css_default.cardActive : void 0
928
920
  ].filter(Boolean).join(" "),
929
921
  children: [(0, react_jsx_runtime.jsxs)("button", {
930
922
  type: "button",
931
923
  className: AgentPresetSection_module_css_default.cardMain,
932
924
  "aria-pressed": row.isDefault,
933
- disabled: row.isDefault || row.broken === void 0 && (!developerTools || state.saving),
925
+ disabled: row.isDefault || row.broken === void 0 && state.saving,
934
926
  "aria-disabled": row.broken !== void 0,
935
927
  "aria-label": `${selectionAction}: ${display.name}`,
936
928
  title: selectionAction,
@@ -1681,10 +1673,7 @@ window.__ModuleLoader__.load({
1681
1673
  };
1682
1674
  };
1683
1675
  const sectionInjected = () => ({
1684
- hooks: {
1685
- agentPresetSection: section.store,
1686
- developerTools: ctx.configForms.developerTools.enabled
1687
- },
1676
+ hooks: { agentPresetSection: section.store },
1688
1677
  load: () => section.load(),
1689
1678
  view: (id) => section.view(id),
1690
1679
  closeView: () => {