@pollinations/cli 0.1.64 → 0.1.65

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/index.js CHANGED
@@ -14,7 +14,7 @@ var init_package = __esm({
14
14
  "package.json"() {
15
15
  package_default = {
16
16
  name: "@pollinations/cli",
17
- version: "0.1.64",
17
+ version: "0.1.65",
18
18
  description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
19
19
  type: "module",
20
20
  bin: {
@@ -3271,8 +3271,8 @@ var hermes = {
3271
3271
  };
3272
3272
 
3273
3273
  // src/harnesses/openclaw.ts
3274
- import { spawnSync as spawnSync3 } from "child_process";
3275
3274
  import { join as join9 } from "path";
3275
+ import spawn3 from "cross-spawn";
3276
3276
  import JSON5 from "json5";
3277
3277
  init_config();
3278
3278
  var ID6 = "openclaw";
@@ -3400,7 +3400,7 @@ var disableOpenClaw = (ctx) => {
3400
3400
  var openclawInstalled = (ctx) => commandExists("openclaw", ctx.env);
3401
3401
  var initializeOpenClaw = (ctx) => {
3402
3402
  if (readTextIfExists(configPath2(ctx)) !== null) return;
3403
- const setup = spawnSync3("openclaw", ["setup", "--baseline"], {
3403
+ const setup = spawn3.sync("openclaw", ["setup", "--baseline"], {
3404
3404
  env: ctx.env,
3405
3405
  stdio: "ignore"
3406
3406
  });
@@ -4368,8 +4368,8 @@ var resolveServers = (catalog, requested) => {
4368
4368
  };
4369
4369
 
4370
4370
  // src/mcp/clients.ts
4371
- import { spawnSync as spawnSync4 } from "child_process";
4372
4371
  import { join as join14 } from "path";
4372
+ import spawn4 from "cross-spawn";
4373
4373
  import { isMap as isMap3, parseDocument as parseDocument3 } from "yaml";
4374
4374
  init_config();
4375
4375
 
@@ -4767,7 +4767,7 @@ var jsonClients = [
4767
4767
  }
4768
4768
  }),
4769
4769
  preflight: (ctx) => {
4770
- const result9 = spawnSync4("pi", ["--version"], {
4770
+ const result9 = spawn4.sync("pi", ["--version"], {
4771
4771
  env: ctx.env,
4772
4772
  encoding: "utf8",
4773
4773
  timeout: 5e3
@@ -4782,7 +4782,7 @@ var jsonClients = [
4782
4782
  }
4783
4783
  ];
4784
4784
  var run = (command, args) => {
4785
- const result9 = spawnSync4(command, args, {
4785
+ const result9 = spawn4.sync(command, args, {
4786
4786
  stdio: ["ignore", "pipe", "pipe"],
4787
4787
  encoding: "utf-8"
4788
4788
  });
@@ -6465,7 +6465,7 @@ var sitesCommand = new Command23("sites").description("Host static sites at <nam
6465
6465
 
6466
6466
  // src/commands/update.ts
6467
6467
  init_output();
6468
- import { execSync, spawnSync as spawnSync5 } from "child_process";
6468
+ import { execSync, spawnSync as spawnSync3 } from "child_process";
6469
6469
  import { existsSync as existsSync4, readFileSync as readFileSync9 } from "fs";
6470
6470
  import { dirname as dirname4, join as join17, resolve as resolve4, sep as sep2 } from "path";
6471
6471
  import { fileURLToPath } from "url";
@@ -6546,7 +6546,7 @@ var updateCommand = new Command24("update").description(
6546
6546
  printInfo(
6547
6547
  `Updating ${PACKAGE_NAME} ${currentVersion} \u2192 ${latest}...`
6548
6548
  );
6549
- const install = spawnSync5(
6549
+ const install = spawnSync3(
6550
6550
  "npm",
6551
6551
  ["install", "-g", `${PACKAGE_NAME}@latest`],
6552
6552
  {