@packmind/cli 0.6.0 → 0.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@packmind/cli",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "A command-line interface for Packmind linting and code quality checks",
5
5
  "private": false,
6
6
  "bin": {
@@ -35,13 +35,14 @@
35
35
  "packmind-cli": "ts-node --project tsconfig.app.json src/main.ts"
36
36
  },
37
37
  "dependencies": {
38
+ "@types/inquirer": "^9.0.9",
38
39
  "@types/winston": "2.4.4",
39
40
  "bullmq": "5.63.0",
40
- "chalk": "5.6.2",
41
- "cmd-ts": "0.14.3",
42
41
  "dotenv": "16.4.7",
43
42
  "express": "5.1.0",
43
+ "inquirer": "^13.0.2",
44
44
  "minimatch": "9.0.3",
45
+ "open": "11.0.0",
45
46
  "uuid": "11.1.0",
46
47
  "web-tree-sitter": "0.25.10",
47
48
  "winston": "3.18.3"
@@ -1,19 +1,26 @@
1
1
  // Stub module for @infisical/sdk
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for @nestjs/common
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for @types/nodemailer
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for ioredis
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for nodemailer
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for openai
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for reflect-metadata
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for rxjs
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;
@@ -1,19 +1,26 @@
1
1
  // Stub module for typeorm
2
2
  // This module is not actually used by the CLI but is imported by shared dependencies
3
3
 
4
- const stub = function(...args) {
5
- return new Proxy({}, {
6
- get: (target, prop) => {
4
+ // Create a chainable stub that works for both property access and function calls
5
+ const createStub = () => {
6
+ const handler = {
7
+ get(target, prop) {
8
+ // Avoid thenable detection
7
9
  if (prop === 'then' || prop === 'catch') {
8
10
  return undefined;
9
11
  }
10
- return stub;
12
+ // Return a new stub for any property access
13
+ return createStub();
11
14
  },
12
- apply: () => stub,
13
- });
15
+ apply() {
16
+ // When called as a function, return a stub
17
+ return createStub();
18
+ },
19
+ };
20
+ // Wrap a function in a Proxy so it can be called and have properties accessed
21
+ return new Proxy(function() {}, handler);
14
22
  };
15
23
 
16
- // Provide both CommonJS and ES module exports
17
- stub.default = stub;
24
+ const stub = createStub();
18
25
  module.exports = stub;
19
26
  module.exports.default = stub;