@picahq/cli 0.3.0 → 1.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { createRequire } from "module";
4
5
  import { Command } from "commander";
5
6
 
6
7
  // src/commands/init.ts
@@ -1398,8 +1399,10 @@ function formatResponse(data, indent = 2) {
1398
1399
  }
1399
1400
 
1400
1401
  // src/index.ts
1402
+ var require2 = createRequire(import.meta.url);
1403
+ var { version } = require2("../package.json");
1401
1404
  var program = new Command();
1402
- program.name("pica").description("CLI for managing Pica integrations").version("0.1.0");
1405
+ program.name("pica").description("CLI for managing Pica").version(version);
1403
1406
  program.command("init").description("Set up Pica and install MCP to your AI agents").option("-y, --yes", "Skip confirmations").option("-g, --global", "Install MCP globally (available in all projects)").option("-p, --project", "Install MCP for this project only (creates .mcp.json)").action(async (options) => {
1404
1407
  await initCommand(options);
1405
1408
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picahq/cli",
3
- "version": "0.3.0",
3
+ "version": "1.3.0",
4
4
  "description": "CLI for managing Pica",
5
5
  "type": "module",
6
6
  "files": [