cli-community-intelligence 0.1.21 → 0.1.22

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/dist/cli.js CHANGED
@@ -6502,9 +6502,9 @@ Stored ${inserted} new posts (${posts.length - inserted} duplicates skipped)`);
6502
6502
  buildRevisitOptions,
6503
6503
  handleRevisit
6504
6504
  ).command("query", "Search the corpus", buildFilterOptions, handleQuery).command("export", "Export matching posts as JSON to stdout", buildFilterOptions, handleExport).command(
6505
- "sql <sql>",
6505
+ "sql",
6506
6506
  "Run a read-only SQL query against the corpus",
6507
- (y) => y.positional("sql", { describe: "SQL query to execute", type: "string" }),
6507
+ (y) => y.option("sql", { describe: "SQL query to execute", type: "string", demandOption: true }),
6508
6508
  handleSql
6509
6509
  ).demandCommand(1, "Please specify a command").help().alias("help", "h").version().alias("version", "v").strict().parse();
6510
6510
  } catch (error) {
@@ -23,7 +23,7 @@ const T = {
23
23
  toArgs: params =>
24
24
  Object.entries(params)
25
25
  .filter(([, v]) => v !== undefined && v !== '')
26
- .map(([k, v]) => (v === true ? `--${k}` : `--${k} ${v}`))
26
+ .map(([k, v]) => (v === true ? `--${k}` : `--${k} '${String(v).replace(/'/g, "'\\''")}'`))
27
27
  .join(' '),
28
28
  }
29
29
 
@@ -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.21",
5
+ "version": "0.1.22",
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.21",
3
+ "version": "0.1.22",
4
4
  "description": "Community intelligence scraper for construction industry market research",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",