cli-community-intelligence 0.1.10 → 0.1.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.
@@ -2,7 +2,10 @@
2
2
  // ABOUTME: Registers community-intelligence CLI commands as OpenClaw tools
3
3
 
4
4
  import { definePluginEntry } from 'openclaw/plugin-sdk/plugin-entry'
5
- import { runCommand } from 'openclaw/plugin-sdk/run-command'
5
+ import { exec } from 'child_process'
6
+ import { promisify } from 'util'
7
+
8
+ const execAsync = promisify(exec)
6
9
 
7
10
  // ---------------------------------------------------------------------------------------------------------------------
8
11
  //
@@ -94,8 +97,8 @@ const F = {
94
97
  const args = T.toArgs(params)
95
98
  const cmd = `community-intelligence ${subcommand} ${args}`.trim()
96
99
  try {
97
- const result = await runCommand(cmd)
98
- return { success: true, stdout: result.stdout, stderr: result.stderr }
100
+ const { stdout, stderr } = await execAsync(cmd)
101
+ return { success: true, stdout, stderr }
99
102
  } catch (error) {
100
103
  return { success: false, error: String(error) }
101
104
  }
@@ -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.10",
5
+ "version": "0.1.11",
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.10",
3
+ "version": "0.1.11",
4
4
  "description": "Community intelligence scraper for construction industry market research",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",