safeword 0.2.0 → 0.2.2

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-W66Z3C5H.js";
4
4
  import {
5
5
  VERSION
6
- } from "./chunk-WWQ4YRZN.js";
6
+ } from "./chunk-V5G6BGOK.js";
7
7
  import {
8
8
  exists,
9
9
  header,
@@ -126,4 +126,4 @@ Upgrade available for project config`);
126
126
  export {
127
127
  check
128
128
  };
129
- //# sourceMappingURL=check-FHNTC46G.js.map
129
+ //# sourceMappingURL=check-M73LGONJ.js.map
@@ -0,0 +1,26 @@
1
+ // src/version.ts
2
+ import { createRequire } from "module";
3
+ import { fileURLToPath } from "url";
4
+ import { dirname, join } from "path";
5
+ function getVersion() {
6
+ try {
7
+ const require2 = createRequire(import.meta.url);
8
+ const pkg = require2("../package.json");
9
+ return pkg.version;
10
+ } catch {
11
+ try {
12
+ const __dirname = dirname(fileURLToPath(import.meta.url));
13
+ const require2 = createRequire(join(__dirname, "index.js"));
14
+ const pkg = require2("../package.json");
15
+ return pkg.version;
16
+ } catch {
17
+ return "0.0.0";
18
+ }
19
+ }
20
+ }
21
+ var VERSION = getVersion();
22
+
23
+ export {
24
+ VERSION
25
+ };
26
+ //# sourceMappingURL=chunk-V5G6BGOK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["import { createRequire } from 'node:module';\nimport { fileURLToPath } from 'node:url';\nimport { dirname, join } from 'node:path';\n\n// Read version from package.json at runtime to avoid sync issues\nfunction getVersion(): string {\n try {\n // Use createRequire for JSON import in ESM\n const require = createRequire(import.meta.url);\n const pkg = require('../package.json') as { version: string };\n return pkg.version;\n } catch {\n // Fallback for when running from dist (package.json is one level up)\n try {\n const __dirname = dirname(fileURLToPath(import.meta.url));\n const require = createRequire(join(__dirname, 'index.js'));\n const pkg = require('../package.json') as { version: string };\n return pkg.version;\n } catch {\n return '0.0.0';\n }\n }\n}\n\nexport const VERSION = getVersion();\n"],"mappings":";AAAA,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,SAAS,YAAY;AAG9B,SAAS,aAAqB;AAC5B,MAAI;AAEF,UAAMA,WAAU,cAAc,YAAY,GAAG;AAC7C,UAAM,MAAMA,SAAQ,iBAAiB;AACrC,WAAO,IAAI;AAAA,EACb,QAAQ;AAEN,QAAI;AACF,YAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,YAAMA,WAAU,cAAc,KAAK,WAAW,UAAU,CAAC;AACzD,YAAM,MAAMA,SAAQ,iBAAiB;AACrC,aAAO,IAAI;AAAA,IACb,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEO,IAAM,UAAU,WAAW;","names":["require"]}
package/dist/cli.js CHANGED
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-WWQ4YRZN.js";
4
+ } from "./chunk-V5G6BGOK.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import { Command } from "commander";
8
8
  var program = new Command();
9
9
  program.name("safeword").description("CLI for setting up and managing safeword development environments").version(VERSION);
10
10
  program.command("setup").description("Set up safeword in the current project").option("-y, --yes", "Accept all defaults (non-interactive mode)").action(async (options) => {
11
- const { setup } = await import("./setup-ANC3NUOC.js");
11
+ const { setup } = await import("./setup-MKVVQTVA.js");
12
12
  await setup(options);
13
13
  });
14
14
  program.command("check").description("Check project health and versions").option("--offline", "Skip remote version check").action(async (options) => {
15
- const { check } = await import("./check-FHNTC46G.js");
15
+ const { check } = await import("./check-M73LGONJ.js");
16
16
  await check(options);
17
17
  });
18
18
  program.command("upgrade").description("Upgrade safeword configuration to latest version").action(async () => {
19
- const { upgrade } = await import("./upgrade-3KVLLNDF.js");
19
+ const { upgrade } = await import("./upgrade-FQOL6AF5.js");
20
20
  await upgrade();
21
21
  });
22
22
  program.command("diff").description("Preview changes that would be made by upgrade").option("-v, --verbose", "Show full diff output").action(async (options) => {
23
- const { diff } = await import("./diff-SPJ7BJBG.js");
23
+ const { diff } = await import("./diff-FSFDCBL5.js");
24
24
  await diff(options);
25
25
  });
26
26
  program.command("reset").description("Remove safeword configuration from project").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-WWQ4YRZN.js";
3
+ } from "./chunk-V5G6BGOK.js";
4
4
  import {
5
5
  error,
6
6
  exists,
@@ -163,4 +163,4 @@ ${file.path}: (new file)`);
163
163
  export {
164
164
  diff
165
165
  };
166
- //# sourceMappingURL=diff-SPJ7BJBG.js.map
166
+ //# sourceMappingURL=diff-FSFDCBL5.js.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const VERSION = "0.1.0";
1
+ declare const VERSION: string;
2
2
 
3
3
  interface ProjectType {
4
4
  typescript: boolean;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-WWQ4YRZN.js";
3
+ } from "./chunk-V5G6BGOK.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-WWQ4YRZN.js";
3
+ } from "./chunk-V5G6BGOK.js";
4
4
  import {
5
5
  PRETTIERRC,
6
6
  SETTINGS_HOOKS,
@@ -263,4 +263,4 @@ Safeword ${VERSION} installed successfully!`);
263
263
  export {
264
264
  setup
265
265
  };
266
- //# sourceMappingURL=setup-ANC3NUOC.js.map
266
+ //# sourceMappingURL=setup-MKVVQTVA.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-W66Z3C5H.js";
4
4
  import {
5
5
  VERSION
6
- } from "./chunk-WWQ4YRZN.js";
6
+ } from "./chunk-V5G6BGOK.js";
7
7
  import {
8
8
  SETTINGS_HOOKS,
9
9
  ensureAgentsMdLink,
@@ -131,4 +131,4 @@ Safeword upgraded to v${VERSION}`);
131
131
  export {
132
132
  upgrade
133
133
  };
134
- //# sourceMappingURL=upgrade-3KVLLNDF.js.map
134
+ //# sourceMappingURL=upgrade-FQOL6AF5.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safeword",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "CLI for setting up and managing safeword development environments",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +0,0 @@
1
- // src/version.ts
2
- var VERSION = "0.1.0";
3
-
4
- export {
5
- VERSION
6
- };
7
- //# sourceMappingURL=chunk-WWQ4YRZN.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/version.ts"],"sourcesContent":["// Version is read from package.json at build time\n// This will be replaced by tsup or read dynamically\nexport const VERSION = '0.1.0';\n"],"mappings":";AAEO,IAAM,UAAU;","names":[]}