chirpie 1.0.0 → 1.0.1

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
@@ -2,6 +2,7 @@
2
2
 
3
3
  // src/index.ts
4
4
  import { Command as Command9 } from "commander";
5
+ import { createRequire } from "module";
5
6
 
6
7
  // src/commands/auth.ts
7
8
  import { Command } from "commander";
@@ -398,7 +399,9 @@ keysCommand.command("revoke <id>").description("Revoke an API key").action(async
398
399
  });
399
400
 
400
401
  // src/index.ts
401
- var program = new Command9().name("chirpie").description("Chirpie \u2014 the social media layer for AI agents").version("0.1.0");
402
+ var require2 = createRequire(import.meta.url);
403
+ var { version } = require2("../package.json");
404
+ var program = new Command9().name("chirpie").description("Chirpie \u2014 the social media layer for AI agents").version(version);
402
405
  program.addCommand(loginCommand);
403
406
  program.addCommand(logoutCommand);
404
407
  program.addCommand(authCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chirpie",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Chirpie CLI — post to social media from the command line",
5
5
  "repository": {
6
6
  "type": "git",