@lemoncat7/dsh-partner 2.7.4 → 2.7.5

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/lib/client.js CHANGED
@@ -56,7 +56,7 @@ function observePluginWorkspace(pluginId, close) {
56
56
  // src/client.tsx
57
57
  var import_dsh_client_ui_primitives25 = require("@deepseek-ai/dsh-client-ui-primitives");
58
58
 
59
- // node_modules/qrcode.react/lib/esm/index.js
59
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/qrcode.react/lib/esm/index.js
60
60
  var import_react = __toESM(require("react"), 1);
61
61
  var __defProp2 = Object.defineProperty;
62
62
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -5789,7 +5789,7 @@ var import_dsh_client_ui_primitives9 = require("@deepseek-ai/dsh-client-ui-primi
5789
5789
  // src/pendant/markdown.tsx
5790
5790
  var import_react23 = __toESM(require("react"), 1);
5791
5791
 
5792
- // node_modules/mdast-util-to-string/lib/index.js
5792
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-to-string/lib/index.js
5793
5793
  var emptyOptions = {};
5794
5794
  function toString(value, options) {
5795
5795
  const settings = options || emptyOptions;
@@ -5826,7 +5826,7 @@ function node(value) {
5826
5826
  return Boolean(value && typeof value === "object");
5827
5827
  }
5828
5828
 
5829
- // node_modules/decode-named-character-reference/index.dom.js
5829
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/decode-named-character-reference/index.dom.js
5830
5830
  var element = document.createElement("i");
5831
5831
  function decodeNamedCharacterReference(value) {
5832
5832
  const characterReference2 = "&" + value + ";";
@@ -5838,7 +5838,7 @@ function decodeNamedCharacterReference(value) {
5838
5838
  return character === characterReference2 ? false : character;
5839
5839
  }
5840
5840
 
5841
- // node_modules/micromark-util-chunked/index.js
5841
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-chunked/index.js
5842
5842
  function splice(list2, start, remove, items) {
5843
5843
  const end = list2.length;
5844
5844
  let chunkStart = 0;
@@ -5872,7 +5872,7 @@ function push(list2, items) {
5872
5872
  return items;
5873
5873
  }
5874
5874
 
5875
- // node_modules/micromark-util-combine-extensions/index.js
5875
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-combine-extensions/index.js
5876
5876
  var hasOwnProperty = {}.hasOwnProperty;
5877
5877
  function combineExtensions(extensions) {
5878
5878
  const all2 = {};
@@ -5912,7 +5912,7 @@ function constructs(existing, list2) {
5912
5912
  splice(existing, 0, 0, before);
5913
5913
  }
5914
5914
 
5915
- // node_modules/micromark-util-decode-numeric-character-reference/index.js
5915
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-decode-numeric-character-reference/index.js
5916
5916
  function decodeNumericCharacterReference(value, base) {
5917
5917
  const code2 = Number.parseInt(value, base);
5918
5918
  if (
@@ -5930,12 +5930,12 @@ function decodeNumericCharacterReference(value, base) {
5930
5930
  return String.fromCodePoint(code2);
5931
5931
  }
5932
5932
 
5933
- // node_modules/micromark-util-normalize-identifier/index.js
5933
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-normalize-identifier/index.js
5934
5934
  function normalizeIdentifier(value) {
5935
5935
  return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
5936
5936
  }
5937
5937
 
5938
- // node_modules/micromark-util-character/index.js
5938
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-character/index.js
5939
5939
  var asciiAlpha = regexCheck(/[A-Za-z]/);
5940
5940
  var asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
5941
5941
  var asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
@@ -5967,7 +5967,7 @@ function regexCheck(regex) {
5967
5967
  }
5968
5968
  }
5969
5969
 
5970
- // node_modules/micromark-factory-space/index.js
5970
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-factory-space/index.js
5971
5971
  function factorySpace(effects, ok3, type, max) {
5972
5972
  const limit = max ? max - 1 : Infinity;
5973
5973
  let size2 = 0;
@@ -6012,7 +6012,7 @@ function factorySpaceMinMax(effects, ok3, nok, type, min, max) {
6012
6012
  }
6013
6013
  }
6014
6014
 
6015
- // node_modules/micromark/lib/initialize/content.js
6015
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/initialize/content.js
6016
6016
  var content = {
6017
6017
  tokenize: initializeContent
6018
6018
  };
@@ -6062,7 +6062,7 @@ function initializeContent(effects) {
6062
6062
  }
6063
6063
  }
6064
6064
 
6065
- // node_modules/micromark-util-edit-map/index.js
6065
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-edit-map/index.js
6066
6066
  var EditMap = class {
6067
6067
  /**
6068
6068
  * Create a new edit map.
@@ -6160,7 +6160,7 @@ function addImplementation(editMap, at, remove, add, before) {
6160
6160
  editMap.index.set(at, change);
6161
6161
  }
6162
6162
 
6163
- // node_modules/micromark/lib/initialize/document.js
6163
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/initialize/document.js
6164
6164
  var document2 = {
6165
6165
  tokenize: initializeDocument
6166
6166
  };
@@ -6354,7 +6354,7 @@ function tokenizeContainer(effects, ok3, nok) {
6354
6354
  return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok3, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
6355
6355
  }
6356
6356
 
6357
- // node_modules/micromark-util-classify-character/index.js
6357
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-classify-character/index.js
6358
6358
  function classifyCharacter(code2) {
6359
6359
  if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
6360
6360
  return 1;
@@ -6364,7 +6364,7 @@ function classifyCharacter(code2) {
6364
6364
  }
6365
6365
  }
6366
6366
 
6367
- // node_modules/micromark-util-resolve-all/index.js
6367
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-resolve-all/index.js
6368
6368
  function resolveAll(constructs2, events, context) {
6369
6369
  const called = [];
6370
6370
  let index2 = -1;
@@ -6378,7 +6378,7 @@ function resolveAll(constructs2, events, context) {
6378
6378
  return events;
6379
6379
  }
6380
6380
 
6381
- // node_modules/micromark-core-commonmark/lib/attention.js
6381
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/attention.js
6382
6382
  var attention = {
6383
6383
  name: "attention",
6384
6384
  resolveAll: resolveAllAttention,
@@ -6501,7 +6501,7 @@ function movePoint(point4, offset) {
6501
6501
  point4._bufferIndex += offset;
6502
6502
  }
6503
6503
 
6504
- // node_modules/micromark-core-commonmark/lib/autolink.js
6504
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/autolink.js
6505
6505
  var autolink = {
6506
6506
  name: "autolink",
6507
6507
  tokenize: tokenizeAutolink
@@ -6602,7 +6602,7 @@ function tokenizeAutolink(effects, ok3, nok) {
6602
6602
  }
6603
6603
  }
6604
6604
 
6605
- // node_modules/micromark-core-commonmark/lib/blank-line.js
6605
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/blank-line.js
6606
6606
  var blankLine = {
6607
6607
  partial: true,
6608
6608
  tokenize: tokenizeBlankLine
@@ -6617,7 +6617,7 @@ function tokenizeBlankLine(effects, ok3, nok) {
6617
6617
  }
6618
6618
  }
6619
6619
 
6620
- // node_modules/micromark-core-commonmark/lib/block-quote.js
6620
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/block-quote.js
6621
6621
  var blockQuote = {
6622
6622
  continuation: {
6623
6623
  tokenize: tokenizeBlockQuoteContinuation
@@ -6675,7 +6675,7 @@ function exit(effects) {
6675
6675
  effects.exit("blockQuote");
6676
6676
  }
6677
6677
 
6678
- // node_modules/micromark-core-commonmark/lib/character-escape.js
6678
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/character-escape.js
6679
6679
  var characterEscape = {
6680
6680
  name: "characterEscape",
6681
6681
  tokenize: tokenizeCharacterEscape
@@ -6701,7 +6701,7 @@ function tokenizeCharacterEscape(effects, ok3, nok) {
6701
6701
  }
6702
6702
  }
6703
6703
 
6704
- // node_modules/micromark-core-commonmark/lib/character-reference.js
6704
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/character-reference.js
6705
6705
  var characterReference = {
6706
6706
  name: "characterReference",
6707
6707
  tokenize: tokenizeCharacterReference
@@ -6766,7 +6766,7 @@ function tokenizeCharacterReference(effects, ok3, nok) {
6766
6766
  }
6767
6767
  }
6768
6768
 
6769
- // node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js
6769
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js
6770
6770
  var nonLazyContinuation = {
6771
6771
  partial: true,
6772
6772
  tokenize: tokenizeNonLazyContinuation
@@ -6788,7 +6788,7 @@ function tokenizeNonLazyContinuation(effects, ok3, nok) {
6788
6788
  }
6789
6789
  }
6790
6790
 
6791
- // node_modules/micromark-core-commonmark/lib/code-fenced.js
6791
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/code-fenced.js
6792
6792
  var codeFenced = {
6793
6793
  concrete: true,
6794
6794
  name: "codeFenced",
@@ -6951,7 +6951,7 @@ function tokenizeCodeFenced(effects, ok3, nok) {
6951
6951
  }
6952
6952
  }
6953
6953
 
6954
- // node_modules/micromark-core-commonmark/lib/code-indented.js
6954
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/code-indented.js
6955
6955
  var codeIndented = {
6956
6956
  name: "codeIndented",
6957
6957
  tokenize: tokenizeCodeIndented
@@ -7009,7 +7009,7 @@ function tokenizeFurtherStart(effects, ok3, nok) {
7009
7009
  }
7010
7010
  }
7011
7011
 
7012
- // node_modules/micromark-core-commonmark/lib/code-text.js
7012
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/code-text.js
7013
7013
  var codeText = {
7014
7014
  name: "codeText",
7015
7015
  previous,
@@ -7124,7 +7124,7 @@ function tokenizeCodeText(effects, ok3, nok) {
7124
7124
  }
7125
7125
  }
7126
7126
 
7127
- // node_modules/micromark-util-subtokenize/lib/splice-buffer.js
7127
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-subtokenize/lib/splice-buffer.js
7128
7128
  var SpliceBuffer = class {
7129
7129
  /**
7130
7130
  * @param {ReadonlyArray<T> | null | undefined} [initial]
@@ -7317,7 +7317,7 @@ function chunkedPush(list2, right) {
7317
7317
  }
7318
7318
  }
7319
7319
 
7320
- // node_modules/micromark-util-subtokenize/index.js
7320
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-subtokenize/index.js
7321
7321
  function subtokenize(eventsArray) {
7322
7322
  const jumps = {};
7323
7323
  let index2 = -1;
@@ -7470,7 +7470,7 @@ function subcontent(events, eventIndex) {
7470
7470
  return gaps;
7471
7471
  }
7472
7472
 
7473
- // node_modules/micromark-core-commonmark/lib/content.js
7473
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/content.js
7474
7474
  var content2 = {
7475
7475
  resolve: resolveContent,
7476
7476
  tokenize: tokenizeContent
@@ -7541,7 +7541,7 @@ function tokenizeContinuation(effects, ok3, nok) {
7541
7541
  }
7542
7542
  }
7543
7543
 
7544
- // node_modules/micromark-factory-destination/index.js
7544
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-factory-destination/index.js
7545
7545
  function factoryDestination(effects, ok3, nok, type, literalType, literalMarkerType, rawType, stringType, max) {
7546
7546
  const limit = max || Number.POSITIVE_INFINITY;
7547
7547
  let balance = 0;
@@ -7633,7 +7633,7 @@ function factoryDestination(effects, ok3, nok, type, literalType, literalMarkerT
7633
7633
  }
7634
7634
  }
7635
7635
 
7636
- // node_modules/micromark-factory-label/index.js
7636
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-factory-label/index.js
7637
7637
  function factoryLabel(effects, ok3, nok, type, markerType, stringType) {
7638
7638
  const self = this;
7639
7639
  let size2 = 0;
@@ -7694,7 +7694,7 @@ function factoryLabel(effects, ok3, nok, type, markerType, stringType) {
7694
7694
  }
7695
7695
  }
7696
7696
 
7697
- // node_modules/micromark-factory-title/index.js
7697
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-factory-title/index.js
7698
7698
  function factoryTitle(effects, ok3, nok, type, markerType, stringType) {
7699
7699
  let marker;
7700
7700
  return start;
@@ -7756,7 +7756,7 @@ function factoryTitle(effects, ok3, nok, type, markerType, stringType) {
7756
7756
  }
7757
7757
  }
7758
7758
 
7759
- // node_modules/micromark-factory-whitespace/index.js
7759
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-factory-whitespace/index.js
7760
7760
  function factoryWhitespace(effects, ok3) {
7761
7761
  let seen;
7762
7762
  return start;
@@ -7775,7 +7775,7 @@ function factoryWhitespace(effects, ok3) {
7775
7775
  }
7776
7776
  }
7777
7777
 
7778
- // node_modules/micromark-core-commonmark/lib/definition.js
7778
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/definition.js
7779
7779
  var definition = {
7780
7780
  name: "definition",
7781
7781
  tokenize: tokenizeDefinition
@@ -7861,7 +7861,7 @@ function tokenizeTitleBefore(effects, ok3, nok) {
7861
7861
  }
7862
7862
  }
7863
7863
 
7864
- // node_modules/micromark-core-commonmark/lib/hard-break-escape.js
7864
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
7865
7865
  var hardBreakEscape = {
7866
7866
  name: "hardBreakEscape",
7867
7867
  tokenize: tokenizeHardBreakEscape
@@ -7882,7 +7882,7 @@ function tokenizeHardBreakEscape(effects, ok3, nok) {
7882
7882
  }
7883
7883
  }
7884
7884
 
7885
- // node_modules/micromark-core-commonmark/lib/heading-atx.js
7885
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/heading-atx.js
7886
7886
  var headingAtx = {
7887
7887
  name: "headingAtx",
7888
7888
  resolve: resolveHeadingAtx,
@@ -7971,7 +7971,7 @@ function tokenizeHeadingAtx(effects, ok3, nok) {
7971
7971
  }
7972
7972
  }
7973
7973
 
7974
- // node_modules/micromark-util-html-tag-name/index.js
7974
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-html-tag-name/index.js
7975
7975
  var htmlBlockNames = [
7976
7976
  "address",
7977
7977
  "article",
@@ -8038,7 +8038,7 @@ var htmlBlockNames = [
8038
8038
  ];
8039
8039
  var htmlRawNames = ["pre", "script", "style", "textarea"];
8040
8040
 
8041
- // node_modules/micromark-core-commonmark/lib/html-flow.js
8041
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/html-flow.js
8042
8042
  var htmlFlow = {
8043
8043
  concrete: true,
8044
8044
  name: "htmlFlow",
@@ -8397,7 +8397,7 @@ function tokenizeBlankLineBefore(effects, ok3, nok) {
8397
8397
  }
8398
8398
  }
8399
8399
 
8400
- // node_modules/micromark-core-commonmark/lib/html-text.js
8400
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/html-text.js
8401
8401
  var htmlText = {
8402
8402
  name: "htmlText",
8403
8403
  tokenize: tokenizeHtmlText
@@ -8703,7 +8703,7 @@ function tokenizeHtmlText(effects, ok3, nok) {
8703
8703
  }
8704
8704
  }
8705
8705
 
8706
- // node_modules/micromark-core-commonmark/lib/label-end.js
8706
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/label-end.js
8707
8707
  var labelEnd = {
8708
8708
  name: "labelEnd",
8709
8709
  resolveAll: resolveAllLabelEnd,
@@ -8929,7 +8929,7 @@ function tokenizeReferenceCollapsed(effects, ok3, nok) {
8929
8929
  }
8930
8930
  }
8931
8931
 
8932
- // node_modules/micromark-core-commonmark/lib/label-start-image.js
8932
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/label-start-image.js
8933
8933
  var labelStartImage = {
8934
8934
  name: "labelStartImage",
8935
8935
  resolveAll: labelEnd.resolveAll,
@@ -8966,7 +8966,7 @@ function tokenizeLabelStartImage(effects, ok3, nok) {
8966
8966
  }
8967
8967
  }
8968
8968
 
8969
- // node_modules/micromark-core-commonmark/lib/label-start-link.js
8969
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/label-start-link.js
8970
8970
  var labelStartLink = {
8971
8971
  name: "labelStartLink",
8972
8972
  resolveAll: labelEnd.resolveAll,
@@ -8994,7 +8994,7 @@ function tokenizeLabelStartLink(effects, ok3, nok) {
8994
8994
  }
8995
8995
  }
8996
8996
 
8997
- // node_modules/micromark-core-commonmark/lib/line-ending.js
8997
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/line-ending.js
8998
8998
  var lineEnding = {
8999
8999
  name: "lineEnding",
9000
9000
  tokenize: tokenizeLineEnding
@@ -9009,7 +9009,7 @@ function tokenizeLineEnding(effects, ok3) {
9009
9009
  }
9010
9010
  }
9011
9011
 
9012
- // node_modules/micromark-core-commonmark/lib/thematic-break.js
9012
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/thematic-break.js
9013
9013
  var thematicBreak = {
9014
9014
  name: "thematicBreak",
9015
9015
  tokenize: tokenizeThematicBreak
@@ -9048,7 +9048,7 @@ function tokenizeThematicBreak(effects, ok3, nok) {
9048
9048
  }
9049
9049
  }
9050
9050
 
9051
- // node_modules/micromark-core-commonmark/lib/list.js
9051
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/list.js
9052
9052
  var list = {
9053
9053
  continuation: {
9054
9054
  tokenize: tokenizeListContinuation
@@ -9178,7 +9178,7 @@ function tokenizeListItemPrefixWhitespace(effects, ok3, nok) {
9178
9178
  }
9179
9179
  }
9180
9180
 
9181
- // node_modules/micromark-core-commonmark/lib/setext-underline.js
9181
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-core-commonmark/lib/setext-underline.js
9182
9182
  var setextUnderline = {
9183
9183
  name: "setextUnderline",
9184
9184
  resolveTo: resolveToSetextUnderline,
@@ -9272,7 +9272,7 @@ function tokenizeSetextUnderline(effects, ok3, nok) {
9272
9272
  }
9273
9273
  }
9274
9274
 
9275
- // node_modules/micromark/lib/initialize/flow.js
9275
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/initialize/flow.js
9276
9276
  var flow = {
9277
9277
  tokenize: initializeFlow
9278
9278
  };
@@ -9310,7 +9310,7 @@ function initializeFlow(effects) {
9310
9310
  }
9311
9311
  }
9312
9312
 
9313
- // node_modules/micromark/lib/initialize/text.js
9313
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/initialize/text.js
9314
9314
  var resolver = {
9315
9315
  resolveAll: createResolver()
9316
9316
  };
@@ -9452,7 +9452,7 @@ function resolveAllLineSuffixes(events, context) {
9452
9452
  return events;
9453
9453
  }
9454
9454
 
9455
- // node_modules/micromark/lib/constructs.js
9455
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/constructs.js
9456
9456
  var constructs_exports = {};
9457
9457
  __export(constructs_exports, {
9458
9458
  attentionMarkers: () => attentionMarkers,
@@ -9527,7 +9527,7 @@ var disable = {
9527
9527
  null: []
9528
9528
  };
9529
9529
 
9530
- // node_modules/micromark/lib/create-tokenizer.js
9530
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/create-tokenizer.js
9531
9531
  function createTokenizer(parser, initialize, from) {
9532
9532
  let point4 = {
9533
9533
  _bufferIndex: -1,
@@ -9853,7 +9853,7 @@ function serializeChunks(chunks, expandTabs) {
9853
9853
  return result.join("");
9854
9854
  }
9855
9855
 
9856
- // node_modules/micromark/lib/parse.js
9856
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/parse.js
9857
9857
  function parse(options) {
9858
9858
  const settings = options || {};
9859
9859
  const constructs2 = (
@@ -9879,14 +9879,14 @@ function parse(options) {
9879
9879
  }
9880
9880
  }
9881
9881
 
9882
- // node_modules/micromark/lib/postprocess.js
9882
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/postprocess.js
9883
9883
  function postprocess(events) {
9884
9884
  while (!subtokenize(events)) {
9885
9885
  }
9886
9886
  return events;
9887
9887
  }
9888
9888
 
9889
- // node_modules/micromark/lib/preprocess.js
9889
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark/lib/preprocess.js
9890
9890
  var search = /[\0\t\n\r]/g;
9891
9891
  function preprocess() {
9892
9892
  let column = 1;
@@ -9966,7 +9966,7 @@ function preprocess() {
9966
9966
  }
9967
9967
  }
9968
9968
 
9969
- // node_modules/micromark-util-decode-string/index.js
9969
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-util-decode-string/index.js
9970
9970
  var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
9971
9971
  function decodeString(value) {
9972
9972
  return value.replace(characterEscapeOrReference, decode);
@@ -9984,7 +9984,7 @@ function decode($0, $1, $2) {
9984
9984
  return decodeNamedCharacterReference($2) || $0;
9985
9985
  }
9986
9986
 
9987
- // node_modules/unist-util-stringify-position/lib/index.js
9987
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/unist-util-stringify-position/lib/index.js
9988
9988
  function stringifyPosition(value) {
9989
9989
  if (!value || typeof value !== "object") {
9990
9990
  return "";
@@ -10010,7 +10010,7 @@ function index(value) {
10010
10010
  return value && typeof value === "number" ? value : 1;
10011
10011
  }
10012
10012
 
10013
- // node_modules/mdast-util-from-markdown/lib/index.js
10013
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-from-markdown/lib/index.js
10014
10014
  var own = {}.hasOwnProperty;
10015
10015
  function fromMarkdown(value, encoding, options) {
10016
10016
  if (encoding && typeof encoding === "object") {
@@ -10719,7 +10719,7 @@ function defaultOnError(left, right) {
10719
10719
  }
10720
10720
  }
10721
10721
 
10722
- // node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
10722
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
10723
10723
  var wwwPrefix = {
10724
10724
  tokenize: tokenizeWwwPrefix,
10725
10725
  partial: true
@@ -11061,7 +11061,7 @@ function previousUnbalanced(events) {
11061
11061
  return result;
11062
11062
  }
11063
11063
 
11064
- // node_modules/micromark-extension-gfm-footnote/lib/syntax.js
11064
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-footnote/lib/syntax.js
11065
11065
  var indent = {
11066
11066
  tokenize: tokenizeIndent2,
11067
11067
  partial: true
@@ -11336,7 +11336,7 @@ function tokenizeIndent2(effects, ok3, nok) {
11336
11336
  }
11337
11337
  }
11338
11338
 
11339
- // node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
11339
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
11340
11340
  function gfmStrikethrough(options) {
11341
11341
  const options_ = options || {};
11342
11342
  let single = options_.singleTilde;
@@ -11430,7 +11430,7 @@ function gfmStrikethrough(options) {
11430
11430
  }
11431
11431
  }
11432
11432
 
11433
- // node_modules/micromark-extension-gfm-table/lib/edit-map.js
11433
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-table/lib/edit-map.js
11434
11434
  var EditMap2 = class {
11435
11435
  /**
11436
11436
  * Create a new edit map.
@@ -11516,7 +11516,7 @@ function addImplementation2(editMap, at, remove, add) {
11516
11516
  editMap.index.set(at, change);
11517
11517
  }
11518
11518
 
11519
- // node_modules/micromark-extension-gfm-table/lib/infer.js
11519
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-table/lib/infer.js
11520
11520
  function gfmTableAlign(events, index2) {
11521
11521
  let inDelimiterRow = false;
11522
11522
  const align = [];
@@ -11543,7 +11543,7 @@ function gfmTableAlign(events, index2) {
11543
11543
  return align;
11544
11544
  }
11545
11545
 
11546
- // node_modules/micromark-extension-gfm-table/lib/syntax.js
11546
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-table/lib/syntax.js
11547
11547
  function gfmTable() {
11548
11548
  return {
11549
11549
  flow: {
@@ -11934,7 +11934,7 @@ function getPoint(events, index2) {
11934
11934
  return event[1][side];
11935
11935
  }
11936
11936
 
11937
- // node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
11937
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
11938
11938
  var tasklistCheck = {
11939
11939
  name: "tasklistCheck",
11940
11940
  tokenize: tokenizeTasklistCheck
@@ -12008,7 +12008,7 @@ function spaceThenNonSpace(effects, ok3, nok) {
12008
12008
  }
12009
12009
  }
12010
12010
 
12011
- // node_modules/micromark-extension-gfm/index.js
12011
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/micromark-extension-gfm/index.js
12012
12012
  function gfm(options) {
12013
12013
  return combineExtensions([
12014
12014
  gfmAutolinkLiteral(),
@@ -12019,7 +12019,7 @@ function gfm(options) {
12019
12019
  ]);
12020
12020
  }
12021
12021
 
12022
- // node_modules/ccount/index.js
12022
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/ccount/index.js
12023
12023
  function ccount(value, character) {
12024
12024
  const source = String(value);
12025
12025
  if (typeof character !== "string") {
@@ -12034,11 +12034,11 @@ function ccount(value, character) {
12034
12034
  return count;
12035
12035
  }
12036
12036
 
12037
- // node_modules/devlop/lib/default.js
12037
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/devlop/lib/default.js
12038
12038
  function ok() {
12039
12039
  }
12040
12040
 
12041
- // node_modules/escape-string-regexp/index.js
12041
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/escape-string-regexp/index.js
12042
12042
  function escapeStringRegexp(string3) {
12043
12043
  if (typeof string3 !== "string") {
12044
12044
  throw new TypeError("Expected a string");
@@ -12046,7 +12046,7 @@ function escapeStringRegexp(string3) {
12046
12046
  return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
12047
12047
  }
12048
12048
 
12049
- // node_modules/unist-util-is/lib/index.js
12049
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/unist-util-is/lib/index.js
12050
12050
  var convert = (
12051
12051
  // Note: overloads in JSDoc can’t yet use different `@template`s.
12052
12052
  /**
@@ -12145,12 +12145,12 @@ function looksLikeANode(value) {
12145
12145
  return value !== null && typeof value === "object" && "type" in value;
12146
12146
  }
12147
12147
 
12148
- // node_modules/unist-util-visit-parents/lib/color.js
12148
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/unist-util-visit-parents/lib/color.js
12149
12149
  function color(d) {
12150
12150
  return d;
12151
12151
  }
12152
12152
 
12153
- // node_modules/unist-util-visit-parents/lib/index.js
12153
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/unist-util-visit-parents/lib/index.js
12154
12154
  var empty = [];
12155
12155
  var CONTINUE = true;
12156
12156
  var EXIT = false;
@@ -12227,7 +12227,7 @@ function toResult(value) {
12227
12227
  return value === null || value === void 0 ? empty : [value];
12228
12228
  }
12229
12229
 
12230
- // node_modules/mdast-util-find-and-replace/lib/index.js
12230
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-find-and-replace/lib/index.js
12231
12231
  function findAndReplace(tree, list2, options) {
12232
12232
  const settings = options || {};
12233
12233
  const ignored = convert(settings.ignore || []);
@@ -12332,7 +12332,7 @@ function toFunction(replace2) {
12332
12332
  };
12333
12333
  }
12334
12334
 
12335
- // node_modules/mdast-util-gfm-autolink-literal/lib/index.js
12335
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-gfm-autolink-literal/lib/index.js
12336
12336
  function gfmAutolinkLiteralFromMarkdown() {
12337
12337
  return {
12338
12338
  transforms: [transformGfmAutolinkLiterals],
@@ -12453,7 +12453,7 @@ function previous2(match, email) {
12453
12453
  (!email || code2 !== 47);
12454
12454
  }
12455
12455
 
12456
- // node_modules/mdast-util-gfm-footnote/lib/index.js
12456
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-gfm-footnote/lib/index.js
12457
12457
  footnoteReference.peek = footnoteReferencePeek;
12458
12458
  function enterFootnoteCallString() {
12459
12459
  this.buffer();
@@ -12527,7 +12527,7 @@ function gfmFootnoteFromMarkdown() {
12527
12527
  };
12528
12528
  }
12529
12529
 
12530
- // node_modules/mdast-util-gfm-strikethrough/lib/index.js
12530
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-gfm-strikethrough/lib/index.js
12531
12531
  handleDelete.attention = attentionDelete;
12532
12532
  handleDelete.peek = peekDelete;
12533
12533
  function gfmStrikethroughFromMarkdown() {
@@ -12564,7 +12564,7 @@ function peekDelete() {
12564
12564
  return "~";
12565
12565
  }
12566
12566
 
12567
- // node_modules/mdast-util-gfm-table/lib/index.js
12567
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-gfm-table/lib/index.js
12568
12568
  function gfmTableFromMarkdown() {
12569
12569
  return {
12570
12570
  enter: {
@@ -12624,7 +12624,7 @@ function replace($0, $1) {
12624
12624
  return $1 === "|" ? $1 : $0;
12625
12625
  }
12626
12626
 
12627
- // node_modules/mdast-util-gfm-task-list-item/lib/index.js
12627
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-gfm-task-list-item/lib/index.js
12628
12628
  function gfmTaskListItemFromMarkdown() {
12629
12629
  return {
12630
12630
  exit: {
@@ -12671,7 +12671,7 @@ function exitParagraphWithTaskListItem(token) {
12671
12671
  this.exit(token);
12672
12672
  }
12673
12673
 
12674
- // node_modules/mdast-util-gfm/lib/index.js
12674
+ // ../../home/moye/Online Document/dsh-plugins/dsh-partner/node_modules/mdast-util-gfm/lib/index.js
12675
12675
  function gfmFromMarkdown() {
12676
12676
  return [
12677
12677
  gfmAutolinkLiteralFromMarkdown(),
@@ -17447,7 +17447,18 @@ function HomePanel({ companion, snapshot, navigate, openSession, startSession, r
17447
17447
  ] });
17448
17448
  }
17449
17449
  function WeixinPanel({ companion, snapshot, onChanged }) {
17450
- const channel = snapshot.channels.find((item) => item.companionId === companion.id && (!item.platform || item.platform === "weixin"));
17450
+ const channels = snapshot.channels.filter((item) => item.companionId === companion.id && (!item.platform || item.platform === "weixin"));
17451
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
17452
+ channels.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: "dsh-partner-inline-error", role: "alert", children: [
17453
+ "\u53D1\u73B0 ",
17454
+ channels.length,
17455
+ " \u4E2A\u5386\u53F2\u5FAE\u4FE1\u6E20\u9053\u3002\u8BF7\u5148\u505C\u7528\u4E0D\u4F7F\u7528\u7684\u6E20\u9053\uFF0C\u518D\u5BF9\u9700\u8981\u4FDD\u7559\u7684\u6E20\u9053\u91CD\u65B0\u626B\u7801\uFF1B\u8054\u7CFB\u4EBA\u6388\u6743\u4E0D\u4F1A\u8DE8\u673A\u5668\u4EBA\u8FC1\u79FB\u3002"
17456
+ ] }),
17457
+ channels.length ? channels.map((channel) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WeixinChannelPanel, { companion, snapshot, onChanged, channel }, channel.id)) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WeixinChannelPanel, { companion, snapshot, onChanged })
17458
+ ] });
17459
+ }
17460
+ function WeixinChannelPanel({ companion, snapshot, onChanged, channel }) {
17461
+ const [confirmDelete, setConfirmDelete] = (0, import_react52.useState)(false);
17451
17462
  const [login, setLogin] = (0, import_react52.useState)();
17452
17463
  const [busy, setBusy] = (0, import_react52.useState)(false);
17453
17464
  const [error, setError] = (0, import_react52.useState)();
@@ -17491,7 +17502,7 @@ function WeixinPanel({ companion, snapshot, onChanged }) {
17491
17502
  setBusy(true);
17492
17503
  setError(void 0);
17493
17504
  try {
17494
- setLogin(await api("/weixin/login", { method: "POST", body: JSON.stringify({ companionId: companion.id }) }));
17505
+ setLogin(await api("/weixin/login", { method: "POST", body: JSON.stringify({ companionId: companion.id, channelId: channel?.id }) }));
17495
17506
  } catch (reason) {
17496
17507
  setError(errorMessage(reason));
17497
17508
  } finally {
@@ -17512,6 +17523,21 @@ function WeixinPanel({ companion, snapshot, onChanged }) {
17512
17523
  }
17513
17524
  };
17514
17525
  const pairings = channel ? snapshot.pairings.filter((item) => item.channelId === channel.id) : [];
17526
+ const remove = async () => {
17527
+ if (!channel || !confirmDelete) return;
17528
+ loginGeneration.current += 1;
17529
+ setLogin(void 0);
17530
+ setBusy(true);
17531
+ setError(void 0);
17532
+ try {
17533
+ await api(`/channels/${channel.id}`, { method: "DELETE" });
17534
+ await onChanged();
17535
+ } catch (reason) {
17536
+ setError(errorMessage(reason));
17537
+ } finally {
17538
+ setBusy(false);
17539
+ }
17540
+ };
17515
17541
  const actPairing = async (id, status) => {
17516
17542
  try {
17517
17543
  await api(`/pairings/${id}/status`, { method: "POST", body: JSON.stringify({ status }) });
@@ -17578,7 +17604,20 @@ function WeixinPanel({ companion, snapshot, onChanged }) {
17578
17604
  ] })
17579
17605
  ] }),
17580
17606
  channel.enabled && channel.runtimeStatus === "starting" && !channel.lastError && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "dsh-partner-weixin-help", role: "status", children: "\u767B\u5F55\u51ED\u636E\u5DF2\u4FDD\u5B58\uFF0C\u6B63\u5728\u7B49\u5F85\u5FAE\u4FE1\u63A5\u6536\u901A\u9053\u9996\u6B21\u54CD\u5E94\u3002\u957F\u8F6E\u8BE2\u53EF\u80FD\u9700\u8981\u51E0\u5341\u79D2\uFF1B\u5411\u673A\u5668\u4EBA\u53D1\u9001\u4E00\u6761\u6D88\u606F\u53EF\u5E2E\u52A9\u786E\u8BA4\u6536\u53D1\u662F\u5426\u6B63\u5E38\uFF0C\u65E0\u9700\u91CD\u590D\u626B\u7801\u3002" }),
17581
- channel.lastError && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "dsh-partner-inline-error", children: channel.lastError }),
17607
+ channel.lastError && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "dsh-partner-inline-error", role: "alert", children: channel.lastError }),
17608
+ confirmDelete ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { role: "group", "aria-label": "\u786E\u8BA4\u5220\u9664\u5FAE\u4FE1\u6E20\u9053", children: [
17609
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: "dsh-partner-inline-error", role: "alert", children: [
17610
+ "\u786E\u8BA4\u5220\u9664 ",
17611
+ channel.accountId,
17612
+ "\uFF1F\u5C06\u79FB\u9664\u8BE5\u6E20\u9053\u51ED\u636E\u3001\u8054\u7CFB\u4EBA\u914D\u5BF9\u548C\u6E20\u9053\u4F1A\u8BDD\u5173\u8054\uFF0C\u4E0D\u4F1A\u8FC1\u79FB\u6388\u6743\uFF0C\u4E14\u4E0D\u53EF\u64A4\u9500\u3002"
17613
+ ] }),
17614
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "dsh-partner-weixin-actions", children: [
17615
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("button", { type: "button", disabled: busy, onClick: () => setConfirmDelete(false), children: "\u53D6\u6D88" }),
17616
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("button", { type: "button", disabled: busy, onClick: () => {
17617
+ void remove();
17618
+ }, children: busy ? "\u6B63\u5728\u5220\u9664\u2026" : "\u786E\u8BA4\u5220\u9664" })
17619
+ ] })
17620
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "dsh-partner-weixin-actions", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("button", { type: "button", disabled: busy, onClick: () => setConfirmDelete(true), children: "\u5220\u9664\u6B64\u6E20\u9053" }) }),
17582
17621
  /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "dsh-partner-pairing-heading", children: [
17583
17622
  /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { children: [
17584
17623
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("small", { children: "ACCESS" }),