@qqbrowser/openclaw-qbot 0.10.10 → 0.10.11

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 (60) hide show
  1. package/dist/build-info.json +3 -3
  2. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  3. package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
  4. package/node_modules/@smithy/config-resolver/package.json +3 -2
  5. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +12 -0
  6. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +37 -36
  7. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +39 -37
  8. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +37 -36
  9. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +12 -0
  10. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +4 -2
  11. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +5 -2
  12. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +4 -2
  13. package/node_modules/@smithy/core/dist-es/submodules/serde/uuid/v4.js +30 -29
  14. package/node_modules/@smithy/core/package.json +1 -1
  15. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  16. package/node_modules/@smithy/eventstream-codec/package.json +3 -2
  17. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -2
  18. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -2
  19. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -2
  20. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  21. package/node_modules/@smithy/hash-node/package.json +3 -2
  22. package/node_modules/@smithy/invalid-dependency/package.json +3 -2
  23. package/node_modules/@smithy/middleware-content-length/package.json +3 -2
  24. package/node_modules/@smithy/middleware-endpoint/package.json +3 -2
  25. package/node_modules/@smithy/middleware-retry/package.json +3 -2
  26. package/node_modules/@smithy/middleware-serde/package.json +3 -2
  27. package/node_modules/@smithy/middleware-stack/package.json +3 -2
  28. package/node_modules/@smithy/node-config-provider/package.json +3 -2
  29. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  30. package/node_modules/@smithy/property-provider/package.json +3 -2
  31. package/node_modules/@smithy/protocol-http/package.json +3 -2
  32. package/node_modules/@smithy/querystring-builder/package.json +3 -2
  33. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -2
  34. package/node_modules/@smithy/signature-v4/package.json +2 -2
  35. package/node_modules/@smithy/smithy-client/package.json +3 -2
  36. package/node_modules/@smithy/url-parser/package.json +3 -2
  37. package/node_modules/@smithy/util-base64/package.json +3 -2
  38. package/node_modules/@smithy/util-body-length-browser/package.json +3 -2
  39. package/node_modules/@smithy/util-body-length-node/package.json +3 -2
  40. package/node_modules/@smithy/util-config-provider/package.json +3 -2
  41. package/node_modules/@smithy/util-defaults-mode-browser/package.json +3 -2
  42. package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -2
  43. package/node_modules/@smithy/util-endpoints/package.json +3 -2
  44. package/node_modules/@smithy/util-hex-encoding/package.json +3 -2
  45. package/node_modules/@smithy/util-middleware/package.json +3 -2
  46. package/node_modules/@smithy/util-retry/package.json +3 -2
  47. package/node_modules/@smithy/util-stream/package.json +3 -2
  48. package/node_modules/@smithy/util-utf8/package.json +3 -2
  49. package/node_modules/yaml/browser/dist/compose/composer.js +4 -2
  50. package/node_modules/yaml/browser/dist/parse/lexer.js +28 -24
  51. package/node_modules/yaml/browser/dist/parse/parser.js +12 -4
  52. package/node_modules/yaml/dist/compose/composer.js +4 -2
  53. package/node_modules/yaml/dist/parse/lexer.js +28 -24
  54. package/node_modules/yaml/dist/parse/parser.js +12 -4
  55. package/node_modules/yaml/package.json +1 -1
  56. package/package.json +1 -1
  57. package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +0 -2
  58. package/node_modules/@smithy/core/dist-es/submodules/serde/uuid/randomUUID.js +0 -3
  59. package/skills/news-summary/SKILL.md +0 -111
  60. package/skills/news-summary/_meta.json +0 -6
@@ -310,7 +310,7 @@ class Lexer {
310
310
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
311
311
  this.indentNext = this.indentValue + 1;
312
312
  this.indentValue += n;
313
- return yield* this.parseBlockStart();
313
+ return 'block-start';
314
314
  }
315
315
  return 'doc';
316
316
  }
@@ -631,32 +631,36 @@ class Lexer {
631
631
  return 0;
632
632
  }
633
633
  *pushIndicators() {
634
- switch (this.charAt(0)) {
635
- case '!':
636
- return ((yield* this.pushTag()) +
637
- (yield* this.pushSpaces(true)) +
638
- (yield* this.pushIndicators()));
639
- case '&':
640
- return ((yield* this.pushUntil(isNotAnchorChar)) +
641
- (yield* this.pushSpaces(true)) +
642
- (yield* this.pushIndicators()));
643
- case '-': // this is an error
644
- case '?': // this is an error outside flow collections
645
- case ':': {
646
- const inFlow = this.flowLevel > 0;
647
- const ch1 = this.charAt(1);
648
- if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
649
- if (!inFlow)
650
- this.indentNext = this.indentValue + 1;
651
- else if (this.flowKey)
652
- this.flowKey = false;
653
- return ((yield* this.pushCount(1)) +
654
- (yield* this.pushSpaces(true)) +
655
- (yield* this.pushIndicators()));
634
+ let n = 0;
635
+ loop: while (true) {
636
+ switch (this.charAt(0)) {
637
+ case '!':
638
+ n += yield* this.pushTag();
639
+ n += yield* this.pushSpaces(true);
640
+ continue loop;
641
+ case '&':
642
+ n += yield* this.pushUntil(isNotAnchorChar);
643
+ n += yield* this.pushSpaces(true);
644
+ continue loop;
645
+ case '-': // this is an error
646
+ case '?': // this is an error outside flow collections
647
+ case ':': {
648
+ const inFlow = this.flowLevel > 0;
649
+ const ch1 = this.charAt(1);
650
+ if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
651
+ if (!inFlow)
652
+ this.indentNext = this.indentValue + 1;
653
+ else if (this.flowKey)
654
+ this.flowKey = false;
655
+ n += yield* this.pushCount(1);
656
+ n += yield* this.pushSpaces(true);
657
+ continue loop;
658
+ }
656
659
  }
657
660
  }
661
+ break loop;
658
662
  }
659
- return 0;
663
+ return n;
660
664
  }
661
665
  *pushTag() {
662
666
  if (this.charAt(1) === '<') {
@@ -67,6 +67,14 @@ function getFirstKeyStartProps(prev) {
67
67
  }
68
68
  return prev.splice(i, prev.length);
69
69
  }
70
+ function arrayPushArray(target, source) {
71
+ // May exhaust call stack with large `source` array
72
+ if (source.length < 1e5)
73
+ Array.prototype.push.apply(target, source);
74
+ else
75
+ for (let i = 0; i < source.length; ++i)
76
+ target.push(source[i]);
77
+ }
70
78
  function fixFlowSeqItems(fc) {
71
79
  if (fc.start.type === 'flow-seq-start') {
72
80
  for (const it of fc.items) {
@@ -79,12 +87,12 @@ function fixFlowSeqItems(fc) {
79
87
  delete it.key;
80
88
  if (isFlowToken(it.value)) {
81
89
  if (it.value.end)
82
- Array.prototype.push.apply(it.value.end, it.sep);
90
+ arrayPushArray(it.value.end, it.sep);
83
91
  else
84
92
  it.value.end = it.sep;
85
93
  }
86
94
  else
87
- Array.prototype.push.apply(it.start, it.sep);
95
+ arrayPushArray(it.start, it.sep);
88
96
  delete it.sep;
89
97
  }
90
98
  }
@@ -502,7 +510,7 @@ class Parser {
502
510
  const prev = map.items[map.items.length - 2];
503
511
  const end = prev?.value?.end;
504
512
  if (Array.isArray(end)) {
505
- Array.prototype.push.apply(end, it.start);
513
+ arrayPushArray(end, it.start);
506
514
  end.push(this.sourceToken);
507
515
  map.items.pop();
508
516
  return;
@@ -717,7 +725,7 @@ class Parser {
717
725
  const prev = seq.items[seq.items.length - 2];
718
726
  const end = prev?.value?.end;
719
727
  if (Array.isArray(end)) {
720
- Array.prototype.push.apply(end, it.start);
728
+ arrayPushArray(end, it.start);
721
729
  end.push(this.sourceToken);
722
730
  seq.items.pop();
723
731
  return;
@@ -97,8 +97,10 @@ class Composer {
97
97
  }
98
98
  }
99
99
  if (afterDoc) {
100
- Array.prototype.push.apply(doc.errors, this.errors);
101
- Array.prototype.push.apply(doc.warnings, this.warnings);
100
+ for (let i = 0; i < this.errors.length; ++i)
101
+ doc.errors.push(this.errors[i]);
102
+ for (let i = 0; i < this.warnings.length; ++i)
103
+ doc.warnings.push(this.warnings[i]);
102
104
  }
103
105
  else {
104
106
  doc.errors = this.errors;
@@ -312,7 +312,7 @@ class Lexer {
312
312
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
313
313
  this.indentNext = this.indentValue + 1;
314
314
  this.indentValue += n;
315
- return yield* this.parseBlockStart();
315
+ return 'block-start';
316
316
  }
317
317
  return 'doc';
318
318
  }
@@ -633,32 +633,36 @@ class Lexer {
633
633
  return 0;
634
634
  }
635
635
  *pushIndicators() {
636
- switch (this.charAt(0)) {
637
- case '!':
638
- return ((yield* this.pushTag()) +
639
- (yield* this.pushSpaces(true)) +
640
- (yield* this.pushIndicators()));
641
- case '&':
642
- return ((yield* this.pushUntil(isNotAnchorChar)) +
643
- (yield* this.pushSpaces(true)) +
644
- (yield* this.pushIndicators()));
645
- case '-': // this is an error
646
- case '?': // this is an error outside flow collections
647
- case ':': {
648
- const inFlow = this.flowLevel > 0;
649
- const ch1 = this.charAt(1);
650
- if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
651
- if (!inFlow)
652
- this.indentNext = this.indentValue + 1;
653
- else if (this.flowKey)
654
- this.flowKey = false;
655
- return ((yield* this.pushCount(1)) +
656
- (yield* this.pushSpaces(true)) +
657
- (yield* this.pushIndicators()));
636
+ let n = 0;
637
+ loop: while (true) {
638
+ switch (this.charAt(0)) {
639
+ case '!':
640
+ n += yield* this.pushTag();
641
+ n += yield* this.pushSpaces(true);
642
+ continue loop;
643
+ case '&':
644
+ n += yield* this.pushUntil(isNotAnchorChar);
645
+ n += yield* this.pushSpaces(true);
646
+ continue loop;
647
+ case '-': // this is an error
648
+ case '?': // this is an error outside flow collections
649
+ case ':': {
650
+ const inFlow = this.flowLevel > 0;
651
+ const ch1 = this.charAt(1);
652
+ if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
653
+ if (!inFlow)
654
+ this.indentNext = this.indentValue + 1;
655
+ else if (this.flowKey)
656
+ this.flowKey = false;
657
+ n += yield* this.pushCount(1);
658
+ n += yield* this.pushSpaces(true);
659
+ continue loop;
660
+ }
658
661
  }
659
662
  }
663
+ break loop;
660
664
  }
661
- return 0;
665
+ return n;
662
666
  }
663
667
  *pushTag() {
664
668
  if (this.charAt(1) === '<') {
@@ -70,6 +70,14 @@ function getFirstKeyStartProps(prev) {
70
70
  }
71
71
  return prev.splice(i, prev.length);
72
72
  }
73
+ function arrayPushArray(target, source) {
74
+ // May exhaust call stack with large `source` array
75
+ if (source.length < 1e5)
76
+ Array.prototype.push.apply(target, source);
77
+ else
78
+ for (let i = 0; i < source.length; ++i)
79
+ target.push(source[i]);
80
+ }
73
81
  function fixFlowSeqItems(fc) {
74
82
  if (fc.start.type === 'flow-seq-start') {
75
83
  for (const it of fc.items) {
@@ -82,12 +90,12 @@ function fixFlowSeqItems(fc) {
82
90
  delete it.key;
83
91
  if (isFlowToken(it.value)) {
84
92
  if (it.value.end)
85
- Array.prototype.push.apply(it.value.end, it.sep);
93
+ arrayPushArray(it.value.end, it.sep);
86
94
  else
87
95
  it.value.end = it.sep;
88
96
  }
89
97
  else
90
- Array.prototype.push.apply(it.start, it.sep);
98
+ arrayPushArray(it.start, it.sep);
91
99
  delete it.sep;
92
100
  }
93
101
  }
@@ -507,7 +515,7 @@ class Parser {
507
515
  const prev = map.items[map.items.length - 2];
508
516
  const end = prev?.value?.end;
509
517
  if (Array.isArray(end)) {
510
- Array.prototype.push.apply(end, it.start);
518
+ arrayPushArray(end, it.start);
511
519
  end.push(this.sourceToken);
512
520
  map.items.pop();
513
521
  return;
@@ -722,7 +730,7 @@ class Parser {
722
730
  const prev = seq.items[seq.items.length - 2];
723
731
  const end = prev?.value?.end;
724
732
  if (Array.isArray(end)) {
725
- Array.prototype.push.apply(end, it.start);
733
+ arrayPushArray(end, it.start);
726
734
  end.push(this.sourceToken);
727
735
  seq.items.pop();
728
736
  return;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "2.8.4",
3
+ "version": "2.9.0",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "funding": "https://github.com/sponsors/eemeli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qqbrowser/openclaw-qbot",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "Multi-channel AI gateway with extensible messaging integrations",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/openclaw/openclaw#readme",
@@ -1,2 +0,0 @@
1
- import { v4 as generateIdempotencyToken } from "./uuid/v4";
2
- export { generateIdempotencyToken };
@@ -1,3 +0,0 @@
1
- export const randomUUID = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
2
- ? crypto.randomUUID.bind(crypto)
3
- : undefined;
@@ -1,111 +0,0 @@
1
- ---
2
- name: news-summary
3
- description: This skill should be used when the user asks for news updates, daily briefings, or what's happening in the world. Fetches news from trusted international RSS feeds and can create voice summaries.
4
- ---
5
-
6
- # News Summary
7
-
8
- ## Overview
9
-
10
- Fetch and summarize news from trusted international sources via RSS feeds.
11
-
12
- ## RSS Feeds
13
-
14
- ### BBC (Primary)
15
-
16
- ```bash
17
- # World news
18
- curl -s "https://feeds.bbci.co.uk/news/world/rss.xml"
19
-
20
- # Top stories
21
- curl -s "https://feeds.bbci.co.uk/news/rss.xml"
22
-
23
- # Business
24
- curl -s "https://feeds.bbci.co.uk/news/business/rss.xml"
25
-
26
- # Technology
27
- curl -s "https://feeds.bbci.co.uk/news/technology/rss.xml"
28
- ```
29
-
30
- ### Reuters
31
-
32
- ```bash
33
- # World news
34
- curl -s "https://www.reutersagency.com/feed/?best-regions=world&post_type=best"
35
- ```
36
-
37
- ### NPR (US perspective)
38
-
39
- ```bash
40
- curl -s "https://feeds.npr.org/1001/rss.xml"
41
- ```
42
-
43
- ### Al Jazeera (Global South perspective)
44
-
45
- ```bash
46
- curl -s "https://www.aljazeera.com/xml/rss/all.xml"
47
- ```
48
-
49
- ## Parse RSS
50
-
51
- Extract titles and descriptions:
52
-
53
- ```bash
54
- curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
55
- grep -E "<title>|<description>" | \
56
- sed 's/<[^>]*>//g' | \
57
- sed 's/^[ \t]*//' | \
58
- head -30
59
- ```
60
-
61
- ## Workflow
62
-
63
- ### Text summary
64
-
65
- 1. Fetch BBC world headlines
66
- 2. Optionally supplement with Reuters/NPR
67
- 3. Summarize key stories
68
- 4. Group by region or topic
69
-
70
- ### Voice summary
71
-
72
- 1. Create text summary
73
- 2. Generate voice with OpenAI TTS
74
- 3. Send as audio message
75
-
76
- ```bash
77
- curl -s https://api.openai.com/v1/audio/speech \
78
- -H "Authorization: Bearer $OPENAI_API_KEY" \
79
- -H "Content-Type: application/json" \
80
- -d '{
81
- "model": "tts-1-hd",
82
- "input": "<news summary text>",
83
- "voice": "onyx",
84
- "speed": 0.95
85
- }' \
86
- --output /tmp/news.mp3
87
- ```
88
-
89
- ## Example Output Format
90
-
91
- ```
92
- 📰 News Summary [date]
93
-
94
- 🌍 WORLD
95
- - [headline 1]
96
- - [headline 2]
97
-
98
- 💼 BUSINESS
99
- - [headline 1]
100
-
101
- 💻 TECH
102
- - [headline 1]
103
- ```
104
-
105
- ## Best Practices
106
-
107
- - Keep summaries concise (5-8 top stories)
108
- - Prioritize breaking news and major events
109
- - For voice: ~2 minutes max
110
- - Balance perspectives (Western + Global South)
111
- - Cite source if asked
@@ -1,6 +0,0 @@
1
- {
2
- "ownerId": "kn72thdm1qe7rrz0vn4vqq3a297ymazh",
3
- "slug": "news-summary",
4
- "version": "1.0.1",
5
- "publishedAt": 1767689990078
6
- }