@bagdock/cli 0.9.0 → 0.9.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/bagdock.js +14 -1
  2. package/package.json +1 -1
package/dist/bagdock.js CHANGED
@@ -5165,6 +5165,11 @@ var init_logs = __esm(() => {
5165
5165
  init_output();
5166
5166
  });
5167
5167
 
5168
+ // bin/bagdock.ts
5169
+ import { readFileSync as readFileSync5 } from "node:fs";
5170
+ import { dirname as dirname2, join as join8 } from "node:path";
5171
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
5172
+
5168
5173
  // node_modules/commander/esm.mjs
5169
5174
  var import__ = __toESM(require_commander(), 1);
5170
5175
  var {
@@ -5496,8 +5501,16 @@ function toPascalCase(s) {
5496
5501
  // bin/bagdock.ts
5497
5502
  init_output();
5498
5503
  init_config();
5504
+ var pkgVersion = (() => {
5505
+ try {
5506
+ const here = dirname2(fileURLToPath3(import.meta.url));
5507
+ return JSON.parse(readFileSync5(join8(here, "..", "package.json"), "utf8")).version;
5508
+ } catch {
5509
+ return "0.0.0";
5510
+ }
5511
+ })();
5499
5512
  var program2 = new Command;
5500
- program2.name("bagdock").description("Bagdock developer CLI — built for humans, AI agents, and CI/CD pipelines").version("0.6.0").option("--json", "Force JSON output (auto-enabled in non-TTY)").option("-q, --quiet", "Suppress status messages (implies --json)").option("--api-key <key>", "API key to use for this invocation").option("-p, --profile <name>", "Profile to use (overrides BAGDOCK_PROFILE)").option("--env <environment>", "Override environment for this invocation (live, test)").option("--ngrok", "Use API URLs from .env.local (for ngrok tunnels)").hook("preAction", (_thisCommand, actionCommand) => {
5513
+ program2.name("bagdock").description("Bagdock developer CLI — built for humans, AI agents, and CI/CD pipelines").version(pkgVersion).option("--json", "Force JSON output (auto-enabled in non-TTY)").option("-q, --quiet", "Suppress status messages (implies --json)").option("--api-key <key>", "API key to use for this invocation").option("-p, --profile <name>", "Profile to use (overrides BAGDOCK_PROFILE)").option("--env <environment>", "Override environment for this invocation (live, test)").option("--ngrok", "Use API URLs from .env.local (for ngrok tunnels)").hook("preAction", (_thisCommand, actionCommand) => {
5501
5514
  const opts = program2.opts();
5502
5515
  setOutputMode({ json: opts.json, quiet: opts.quiet });
5503
5516
  if (opts.ngrok)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bagdock/cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Bagdock developer CLI — build, test, and deploy apps and edges on the Bagdock platform",
5
5
  "keywords": [
6
6
  "bagdock",