skillwatch 0.1.1 → 0.1.3

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/checker.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { execFileSync } from "node:child_process";
2
3
  import { createHash } from "node:crypto";
3
4
  import { existsSync } from "node:fs";
package/dist/cli.js CHANGED
@@ -1,12 +1,13 @@
1
+ #!/usr/bin/env node
1
2
  import { execFileSync } from "node:child_process";
2
- import { existsSync } from "node:fs";
3
+ import { existsSync, realpathSync } from "node:fs";
3
4
  import { copyFile, mkdir, rm, writeFile } from "node:fs/promises";
4
5
  import { homedir } from "node:os";
5
6
  import { dirname, join, resolve } from "node:path";
6
7
  import { fileURLToPath } from "node:url";
7
8
  //#region src/cli.ts
8
9
  const PACKAGE_NAME = "skillwatch";
9
- const PACKAGE_VERSION = "0.1.1";
10
+ const PACKAGE_VERSION = "0.1.3";
10
11
  const ENTRYPOINT_PATH = fileURLToPath(import.meta.url);
11
12
  const CHECKER_SOURCE_PATH = join(dirname(ENTRYPOINT_PATH), "checker.js");
12
13
  const COMMAND_NAME = PACKAGE_NAME.split("/").at(-1) ?? "skillwatch";
@@ -233,7 +234,7 @@ const main = async () => {
233
234
  };
234
235
  const isExecutedDirectly = () => {
235
236
  const [, entryArg] = process.argv;
236
- return entryArg !== void 0 && resolve(entryArg) === ENTRYPOINT_PATH;
237
+ return entryArg !== void 0 && realpathSync(resolve(entryArg)) === ENTRYPOINT_PATH;
237
238
  };
238
239
  if (isExecutedDirectly()) try {
239
240
  await main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwatch",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Daily macOS notifications when installed GitHub-backed skills have updates.",
5
5
  "keywords": [
6
6
  "agent-skills",