claude-scope 0.1.9 → 0.2.0

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.
@@ -1,4 +1,29 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ main: () => main
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
2
27
 
3
28
  // src/core/widget-registry.ts
4
29
  var WidgetRegistry = class {
@@ -178,9 +203,9 @@ function createWidgetMetadata(name, description, version = "1.0.0", author = "cl
178
203
  }
179
204
 
180
205
  // src/providers/git-provider.ts
181
- import { execFile } from "node:child_process";
182
- import { promisify } from "node:util";
183
- var execFileAsync = promisify(execFile);
206
+ var import_node_child_process = require("node:child_process");
207
+ var import_node_util = require("node:util");
208
+ var execFileAsync = (0, import_node_util.promisify)(import_node_child_process.execFile);
184
209
  var NativeGit = class {
185
210
  cwd;
186
211
  constructor(cwd) {
@@ -733,6 +758,7 @@ main().then((output) => {
733
758
  }).catch(() => {
734
759
  process.exit(0);
735
760
  });
736
- export {
761
+ // Annotate the CommonJS export names for ESM import in node:
762
+ 0 && (module.exports = {
737
763
  main
738
- };
764
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-scope",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "Claude Code plugin for session status and analytics",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,10 +12,10 @@
12
12
  }
13
13
  },
14
14
  "bin": {
15
- "claude-scope": "dist/claude-scope.js"
15
+ "claude-scope": "dist/claude-scope.cjs"
16
16
  },
17
17
  "files": [
18
- "dist/claude-scope.js",
18
+ "dist/claude-scope.cjs",
19
19
  "README.md",
20
20
  "LICENSE.md"
21
21
  ],
@@ -23,7 +23,7 @@
23
23
  "prepack": "npm run build",
24
24
  "build": "npm run build:tsc && npm run build:bundle",
25
25
  "build:tsc": "tsc",
26
- "build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/claude-scope-bundle.js && chmod +x dist/claude-scope-bundle.js && sh -c 'mv dist/claude-scope-bundle.js dist/claude-scope.js'",
26
+ "build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/claude-scope.cjs && chmod +x dist/claude-scope.cjs",
27
27
  "prebuild:bundle": "npm run build:tsc",
28
28
  "test": "tsx --test tests/e2e/stdin-flow.test.ts tests/integration/cli-flow.integration.test.ts tests/integration/five-widgets.integration.test.ts tests/unit/cli.test.ts tests/unit/types.test.ts tests/unit/core/*.test.ts tests/unit/data/*.test.ts tests/unit/utils/*.test.ts tests/unit/widgets/*.test.ts",
29
29
  "test:unit": "tsx --test tests/unit/cli.test.ts tests/unit/types.test.ts tests/unit/core/*.test.ts tests/unit/data/*.test.ts tests/unit/utils/*.test.ts tests/unit/widgets/*.test.ts",