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.
@@ -15,7 +15,7 @@ const execAsync = promisify(exec)
15
15
 
16
16
  const scrapeToolDef = {
17
17
  id: 'community-intelligence-scrape',
18
- name: 'Scrape Community Posts',
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: 'Query Community Corpus',
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: 'Community Corpus Status',
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: 'Export Community Posts',
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(async api => {
115
- api.registerTool(scrapeToolDef, { execute: F.buildExecutor('scrape') })
116
- api.registerTool(queryToolDef, { execute: F.buildExecutor('query') })
117
- api.registerTool(statusToolDef, { execute: F.buildExecutor('status') })
118
- api.registerTool(exportToolDef, { execute: F.buildExecutor('export') })
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
  })
@@ -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.11",
5
+ "version": "0.1.13",
6
6
  "contracts": {
7
7
  "tools": [
8
8
  "community-intelligence-scrape",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-community-intelligence",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Community intelligence scraper for construction industry market research",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",