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.
- package/dist/index.js +4 -1
- 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
|
|
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);
|