cli-community-intelligence 0.1.11 → 0.1.13
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/openclaw-extension.js +13 -9
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/openclaw-extension.js
CHANGED
|
@@ -15,7 +15,7 @@ const execAsync = promisify(exec)
|
|
|
15
15
|
|
|
16
16
|
const scrapeToolDef = {
|
|
17
17
|
id: 'community-intelligence-scrape',
|
|
18
|
-
name: '
|
|
18
|
+
name: 'community-intelligence-scrape',
|
|
19
19
|
description:
|
|
20
20
|
'Scrape posts and comments from online communities (Reddit, YouTube). ' +
|
|
21
21
|
'Use --subreddits for Reddit, --query or --channels for YouTube. ' +
|
|
@@ -36,7 +36,7 @@ const scrapeToolDef = {
|
|
|
36
36
|
|
|
37
37
|
const queryToolDef = {
|
|
38
38
|
id: 'community-intelligence-query',
|
|
39
|
-
name: '
|
|
39
|
+
name: 'community-intelligence-query',
|
|
40
40
|
description:
|
|
41
41
|
'Search the scraped community posts corpus. Filter by source, channel, text, author, date range, or score.',
|
|
42
42
|
parameters: {
|
|
@@ -56,14 +56,14 @@ const queryToolDef = {
|
|
|
56
56
|
|
|
57
57
|
const statusToolDef = {
|
|
58
58
|
id: 'community-intelligence-status',
|
|
59
|
-
name: '
|
|
59
|
+
name: 'community-intelligence-status',
|
|
60
60
|
description: 'Show summary statistics for the scraped community intelligence corpus.',
|
|
61
61
|
parameters: { type: 'object', properties: {} },
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
const exportToolDef = {
|
|
65
65
|
id: 'community-intelligence-export',
|
|
66
|
-
name: '
|
|
66
|
+
name: 'community-intelligence-export',
|
|
67
67
|
description: 'Export matching posts as JSON. Same filters as query.',
|
|
68
68
|
parameters: queryToolDef.parameters,
|
|
69
69
|
}
|
|
@@ -111,9 +111,13 @@ const F = {
|
|
|
111
111
|
//
|
|
112
112
|
// ---------------------------------------------------------------------------------------------------------------------
|
|
113
113
|
|
|
114
|
-
export default definePluginEntry(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
api
|
|
118
|
-
|
|
114
|
+
export default definePluginEntry({
|
|
115
|
+
id: 'cli-community-intelligence',
|
|
116
|
+
name: 'Community Intelligence',
|
|
117
|
+
register(api) {
|
|
118
|
+
api.registerTool(scrapeToolDef, { execute: F.buildExecutor('scrape') })
|
|
119
|
+
api.registerTool(queryToolDef, { execute: F.buildExecutor('query') })
|
|
120
|
+
api.registerTool(statusToolDef, { execute: F.buildExecutor('status') })
|
|
121
|
+
api.registerTool(exportToolDef, { execute: F.buildExecutor('export') })
|
|
122
|
+
},
|
|
119
123
|
})
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "cli-community-intelligence",
|
|
3
3
|
"name": "Community Intelligence",
|
|
4
4
|
"description": "Scrape and query posts from online communities (Reddit, YouTube)",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.13",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"community-intelligence-scrape",
|