@songtonyli/dsh-cli 0.1.95 → 0.1.96

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 (50) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +1 -0
  4. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
  5. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  6. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +0 -4
  7. package/node_modules/@deepseek-ai/dsh-session-continuation/README.i18n.yaml +15 -6
  8. package/node_modules/@deepseek-ai/dsh-session-continuation/README.md +10 -2
  9. package/node_modules/@deepseek-ai/dsh-session-continuation/README.zh.md +11 -3
  10. package/node_modules/@deepseek-ai/dsh-session-continuation/lib/index.js +4 -1
  11. package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/index.js +5 -2
  12. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +8 -8
  13. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +6 -2
  14. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +6 -2
  15. package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +0 -5
  16. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +18 -4
  17. package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +41 -1
  18. package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +15 -1
  19. package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +44 -1
  20. package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +7 -1
  21. package/node_modules/@swc/helpers/cjs/_ts_param.cjs +7 -1
  22. package/node_modules/@swc/helpers/cjs/_ts_rewrite_relative_import_extension.cjs +10 -1
  23. package/node_modules/@swc/helpers/cjs/_ts_values.cjs +19 -1
  24. package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +1 -1
  25. package/node_modules/@swc/helpers/cjs/index.cjs +0 -4
  26. package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +41 -1
  27. package/node_modules/@swc/helpers/esm/_ts_decorate.js +15 -1
  28. package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +44 -1
  29. package/node_modules/@swc/helpers/esm/_ts_metadata.js +7 -1
  30. package/node_modules/@swc/helpers/esm/_ts_param.js +7 -1
  31. package/node_modules/@swc/helpers/esm/_ts_rewrite_relative_import_extension.js +10 -1
  32. package/node_modules/@swc/helpers/esm/_ts_values.js +19 -1
  33. package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +1 -1
  34. package/node_modules/@swc/helpers/esm/index.js +0 -1
  35. package/node_modules/@swc/helpers/package.json +2 -11
  36. package/node_modules/@swc/helpers/scripts/ast_grep.js +5 -25
  37. package/node_modules/@swc/helpers/scripts/build.js +2 -1
  38. package/node_modules/turndown/dist/turndown.js +18 -15
  39. package/node_modules/turndown/lib/turndown.browser.cjs.js +18 -15
  40. package/node_modules/turndown/lib/turndown.browser.es.js +18 -15
  41. package/node_modules/turndown/lib/turndown.browser.umd.js +18 -15
  42. package/node_modules/turndown/lib/turndown.cjs.js +18 -15
  43. package/node_modules/turndown/lib/turndown.es.js +18 -15
  44. package/node_modules/turndown/lib/turndown.umd.js +18 -15
  45. package/node_modules/turndown/package.json +4 -3
  46. package/package.json +3 -3
  47. package/node_modules/@swc/helpers/_/_jsx/package.json +0 -4
  48. package/node_modules/@swc/helpers/cjs/_jsx.cjs +0 -28
  49. package/node_modules/@swc/helpers/esm/_jsx.js +0 -26
  50. package/node_modules/@swc/helpers/src/_jsx.mjs +0 -1
@@ -690,8 +690,8 @@ TurndownService.prototype = {
690
690
  * Reduces a DOM node down to its Markdown string equivalent
691
691
  * @private
692
692
  * @param {HTMLElement} parentNode The node to convert
693
- * @returns A Markdown representation of the node
694
- * @type String
693
+ * @returns Accumulator with Markdown representation parts of the node
694
+ * @type Array
695
695
  */
696
696
 
697
697
  function process(parentNode) {
@@ -704,14 +704,15 @@ function process(parentNode) {
704
704
  } else if (node.nodeType === 1) {
705
705
  replacement = replacementForNode.call(self, node);
706
706
  }
707
- return join(output, replacement);
708
- }, '');
707
+ join(output, replacement);
708
+ return output;
709
+ }, []);
709
710
  }
710
711
 
711
712
  /**
712
713
  * Appends strings as each rule requires and trims the output
713
714
  * @private
714
- * @param {String} output The conversion output
715
+ * @param {Array} output The conversion output accumulator
715
716
  * @returns A trimmed version of the ouput
716
717
  * @type String
717
718
  */
@@ -720,10 +721,10 @@ function postProcess(output) {
720
721
  var self = this;
721
722
  this.rules.forEach(function (rule) {
722
723
  if (typeof rule.append === 'function') {
723
- output = join(output, rule.append(self.options));
724
+ join(output, rule.append(self.options));
724
725
  }
725
726
  });
726
- return output.replace(/^[\t\r\n]+/, '').replace(/[\t\r\n\s]+$/, '');
727
+ return output.join('').replace(/^[\t\r\n]+/, '').replace(/[\t\r\n\s]+$/, '');
727
728
  }
728
729
 
729
730
  /**
@@ -736,27 +737,29 @@ function postProcess(output) {
736
737
 
737
738
  function replacementForNode(node) {
738
739
  var rule = this.rules.forNode(node);
739
- var content = process.call(this, node);
740
+ var content = process.call(this, node).join('');
740
741
  var whitespace = node.flankingWhitespace;
741
742
  if (whitespace.leading || whitespace.trailing) content = content.trim();
742
743
  return whitespace.leading + rule.replacement(content, node, this.options) + whitespace.trailing;
743
744
  }
744
745
 
745
746
  /**
746
- * Joins replacement to the current output with appropriate number of new lines
747
+ * Joins replacement with the current output accumulator using the appropriate number of new lines
748
+ * (makes sure the only trailing whitespace will be in the last array element)
747
749
  * @private
748
- * @param {String} output The current conversion output
750
+ * @param {String} output The current conversion output accumulator
749
751
  * @param {String} replacement The string to append to the output
750
- * @returns Joined output
751
- * @type String
752
752
  */
753
753
 
754
754
  function join(output, replacement) {
755
- var s1 = trimTrailingNewlines(output);
755
+ var tail = output.pop() || '';
756
+ var s1 = trimTrailingNewlines(tail);
756
757
  var s2 = trimLeadingNewlines(replacement);
757
- var nls = Math.max(output.length - s1.length, replacement.length - s2.length);
758
+ var nls = Math.max(tail.length - s1.length, replacement.length - s2.length);
758
759
  var separator = '\n\n'.substring(0, nls);
759
- return s1 + separator + s2;
760
+ if (s1) output.push(s1);
761
+ if (separator) output.push(separator);
762
+ if (s2) output.push(s2);
760
763
  }
761
764
 
762
765
  /**
@@ -688,8 +688,8 @@ TurndownService.prototype = {
688
688
  * Reduces a DOM node down to its Markdown string equivalent
689
689
  * @private
690
690
  * @param {HTMLElement} parentNode The node to convert
691
- * @returns A Markdown representation of the node
692
- * @type String
691
+ * @returns Accumulator with Markdown representation parts of the node
692
+ * @type Array
693
693
  */
694
694
 
695
695
  function process(parentNode) {
@@ -702,14 +702,15 @@ function process(parentNode) {
702
702
  } else if (node.nodeType === 1) {
703
703
  replacement = replacementForNode.call(self, node);
704
704
  }
705
- return join(output, replacement);
706
- }, '');
705
+ join(output, replacement);
706
+ return output;
707
+ }, []);
707
708
  }
708
709
 
709
710
  /**
710
711
  * Appends strings as each rule requires and trims the output
711
712
  * @private
712
- * @param {String} output The conversion output
713
+ * @param {Array} output The conversion output accumulator
713
714
  * @returns A trimmed version of the ouput
714
715
  * @type String
715
716
  */
@@ -718,10 +719,10 @@ function postProcess(output) {
718
719
  var self = this;
719
720
  this.rules.forEach(function (rule) {
720
721
  if (typeof rule.append === 'function') {
721
- output = join(output, rule.append(self.options));
722
+ join(output, rule.append(self.options));
722
723
  }
723
724
  });
724
- return output.replace(/^[\t\r\n]+/, '').replace(/[\t\r\n\s]+$/, '');
725
+ return output.join('').replace(/^[\t\r\n]+/, '').replace(/[\t\r\n\s]+$/, '');
725
726
  }
726
727
 
727
728
  /**
@@ -734,27 +735,29 @@ function postProcess(output) {
734
735
 
735
736
  function replacementForNode(node) {
736
737
  var rule = this.rules.forNode(node);
737
- var content = process.call(this, node);
738
+ var content = process.call(this, node).join('');
738
739
  var whitespace = node.flankingWhitespace;
739
740
  if (whitespace.leading || whitespace.trailing) content = content.trim();
740
741
  return whitespace.leading + rule.replacement(content, node, this.options) + whitespace.trailing;
741
742
  }
742
743
 
743
744
  /**
744
- * Joins replacement to the current output with appropriate number of new lines
745
+ * Joins replacement with the current output accumulator using the appropriate number of new lines
746
+ * (makes sure the only trailing whitespace will be in the last array element)
745
747
  * @private
746
- * @param {String} output The current conversion output
748
+ * @param {String} output The current conversion output accumulator
747
749
  * @param {String} replacement The string to append to the output
748
- * @returns Joined output
749
- * @type String
750
750
  */
751
751
 
752
752
  function join(output, replacement) {
753
- var s1 = trimTrailingNewlines(output);
753
+ var tail = output.pop() || '';
754
+ var s1 = trimTrailingNewlines(tail);
754
755
  var s2 = trimLeadingNewlines(replacement);
755
- var nls = Math.max(output.length - s1.length, replacement.length - s2.length);
756
+ var nls = Math.max(tail.length - s1.length, replacement.length - s2.length);
756
757
  var separator = '\n\n'.substring(0, nls);
757
- return s1 + separator + s2;
758
+ if (s1) output.push(s1);
759
+ if (separator) output.push(separator);
760
+ if (s2) output.push(s2);
758
761
  }
759
762
 
760
763
  /**
@@ -694,8 +694,8 @@
694
694
  * Reduces a DOM node down to its Markdown string equivalent
695
695
  * @private
696
696
  * @param {HTMLElement} parentNode The node to convert
697
- * @returns A Markdown representation of the node
698
- * @type String
697
+ * @returns Accumulator with Markdown representation parts of the node
698
+ * @type Array
699
699
  */
700
700
 
701
701
  function process(parentNode) {
@@ -708,14 +708,15 @@
708
708
  } else if (node.nodeType === 1) {
709
709
  replacement = replacementForNode.call(self, node);
710
710
  }
711
- return join(output, replacement);
712
- }, '');
711
+ join(output, replacement);
712
+ return output;
713
+ }, []);
713
714
  }
714
715
 
715
716
  /**
716
717
  * Appends strings as each rule requires and trims the output
717
718
  * @private
718
- * @param {String} output The conversion output
719
+ * @param {Array} output The conversion output accumulator
719
720
  * @returns A trimmed version of the ouput
720
721
  * @type String
721
722
  */
@@ -724,10 +725,10 @@
724
725
  var self = this;
725
726
  this.rules.forEach(function (rule) {
726
727
  if (typeof rule.append === 'function') {
727
- output = join(output, rule.append(self.options));
728
+ join(output, rule.append(self.options));
728
729
  }
729
730
  });
730
- return output.replace(/^[\t\r\n]+/, '').replace(/[\t\r\n\s]+$/, '');
731
+ return output.join('').replace(/^[\t\r\n]+/, '').replace(/[\t\r\n\s]+$/, '');
731
732
  }
732
733
 
733
734
  /**
@@ -740,27 +741,29 @@
740
741
 
741
742
  function replacementForNode(node) {
742
743
  var rule = this.rules.forNode(node);
743
- var content = process.call(this, node);
744
+ var content = process.call(this, node).join('');
744
745
  var whitespace = node.flankingWhitespace;
745
746
  if (whitespace.leading || whitespace.trailing) content = content.trim();
746
747
  return whitespace.leading + rule.replacement(content, node, this.options) + whitespace.trailing;
747
748
  }
748
749
 
749
750
  /**
750
- * Joins replacement to the current output with appropriate number of new lines
751
+ * Joins replacement with the current output accumulator using the appropriate number of new lines
752
+ * (makes sure the only trailing whitespace will be in the last array element)
751
753
  * @private
752
- * @param {String} output The current conversion output
754
+ * @param {String} output The current conversion output accumulator
753
755
  * @param {String} replacement The string to append to the output
754
- * @returns Joined output
755
- * @type String
756
756
  */
757
757
 
758
758
  function join(output, replacement) {
759
- var s1 = trimTrailingNewlines(output);
759
+ var tail = output.pop() || '';
760
+ var s1 = trimTrailingNewlines(tail);
760
761
  var s2 = trimLeadingNewlines(replacement);
761
- var nls = Math.max(output.length - s1.length, replacement.length - s2.length);
762
+ var nls = Math.max(tail.length - s1.length, replacement.length - s2.length);
762
763
  var separator = '\n\n'.substring(0, nls);
763
- return s1 + separator + s2;
764
+ if (s1) output.push(s1);
765
+ if (separator) output.push(separator);
766
+ if (s2) output.push(s2);
764
767
  }
765
768
 
766
769
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "turndown",
3
3
  "description": "A library that converts HTML to Markdown",
4
- "version": "7.2.4",
4
+ "version": "7.2.5",
5
5
  "author": "Dom Christie",
6
6
  "main": "lib/turndown.cjs.js",
7
7
  "module": "lib/turndown.es.js",
@@ -23,10 +23,11 @@
23
23
  "@rollup/plugin-commonjs": "^29.0.0",
24
24
  "@rollup/plugin-node-resolve": "^16.0.3",
25
25
  "@rollup/plugin-replace": "^6.0.3",
26
- "rewire": "^6.0.0",
26
+ "rewire": "^9.0.1",
27
27
  "rollup": "^4.59.0",
28
28
  "standard": "^17.0.0",
29
- "turndown-attendant": "0.0.3"
29
+ "turndown-attendant": "0.0.3",
30
+ "turndown-baseline": "npm:turndown@7.2.4"
30
31
  },
31
32
  "engines": {
32
33
  "node": ">=18",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@songtonyli/dsh-cli",
3
- "version": "0.1.95",
3
+ "version": "0.1.96",
4
4
  "description": "The dsh terminal agent: an interactive TUI over the DeepSeek Harness, with its whole Node runtime bundled in one install.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -430,7 +430,7 @@
430
430
  "@smithy/types": "4.19.0",
431
431
  "@stablelib/base64": "1.0.1",
432
432
  "@standard-schema/spec": "1.1.0",
433
- "@swc/helpers": "0.5.23",
433
+ "@swc/helpers": "0.5.24",
434
434
  "@types/hast": "3.0.5",
435
435
  "@types/http-cache-semantics": "4.2.0",
436
436
  "@types/mdast": "4.0.4",
@@ -621,7 +621,7 @@
621
621
  "trim-lines": "3.0.1",
622
622
  "ts-algebra": "2.0.0",
623
623
  "tslib": "2.9.1",
624
- "turndown": "7.2.4",
624
+ "turndown": "7.2.5",
625
625
  "type-fest": "4.41.0",
626
626
  "undici": "8.11.2",
627
627
  "undici-types": "8.9.0",
@@ -1,4 +0,0 @@
1
- {
2
- "main": "../../cjs/_jsx.cjs",
3
- "module": "../../esm/_jsx.js"
4
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- var REACT_ELEMENT_TYPE;
4
- function _jsx(type, props, key, children) {
5
- if (!REACT_ELEMENT_TYPE) {
6
- REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7;
7
- }
8
-
9
- var defaultProps = type && type.defaultProps;
10
- var childrenLength = arguments.length - 3;
11
-
12
- if (!props && childrenLength !== 0) props = { children: void 0 };
13
- if (props && defaultProps) {
14
- for (var propName in defaultProps) {
15
- if (props[propName] === void 0) props[propName] = defaultProps[propName];
16
- else if (!props) props = defaultProps || {};
17
- }
18
- }
19
- if (childrenLength === 1) props.children = children;
20
- else if (childrenLength > 1) {
21
- var childArray = new Array(childrenLength);
22
- for (var i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
23
- props.children = childArray;
24
- }
25
-
26
- return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : "" + key, ref: null, props: props, _owner: null };
27
- }
28
- exports._ = _jsx;
@@ -1,26 +0,0 @@
1
- var REACT_ELEMENT_TYPE;
2
- function _jsx(type, props, key, children) {
3
- if (!REACT_ELEMENT_TYPE) {
4
- REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7;
5
- }
6
-
7
- var defaultProps = type && type.defaultProps;
8
- var childrenLength = arguments.length - 3;
9
-
10
- if (!props && childrenLength !== 0) props = { children: void 0 };
11
- if (props && defaultProps) {
12
- for (var propName in defaultProps) {
13
- if (props[propName] === void 0) props[propName] = defaultProps[propName];
14
- else if (!props) props = defaultProps || {};
15
- }
16
- }
17
- if (childrenLength === 1) props.children = children;
18
- else if (childrenLength > 1) {
19
- var childArray = new Array(childrenLength);
20
- for (var i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
21
- props.children = childArray;
22
- }
23
-
24
- return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : "" + key, ref: null, props: props, _owner: null };
25
- }
26
- export { _jsx as _ };
@@ -1 +0,0 @@
1
- export { _ as default } from "../esm/_jsx.js";