@agentteams/cli 0.1.56-dev.217 → 0.1.56-dev.218

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.
@@ -0,0 +1,115 @@
1
+ import { defineConfig, globalIgnores } from "eslint/config";
2
+ import js from "@eslint/js";
3
+ import tseslint from "typescript-eslint";
4
+
5
+ const nodeGlobals = {
6
+ process: "readonly",
7
+ console: "readonly",
8
+ Buffer: "readonly",
9
+ __dirname: "readonly",
10
+ __filename: "readonly",
11
+ global: "readonly",
12
+ globalThis: "readonly",
13
+ URL: "readonly",
14
+ URLSearchParams: "readonly",
15
+ setTimeout: "readonly",
16
+ clearTimeout: "readonly",
17
+ setInterval: "readonly",
18
+ clearInterval: "readonly",
19
+ setImmediate: "readonly",
20
+ queueMicrotask: "readonly",
21
+ fetch: "readonly",
22
+ TextEncoder: "readonly",
23
+ TextDecoder: "readonly",
24
+ AbortController: "readonly",
25
+ AbortSignal: "readonly",
26
+ Request: "readonly",
27
+ RequestInit: "readonly",
28
+ Response: "readonly",
29
+ Headers: "readonly",
30
+ FormData: "readonly",
31
+ ReadableStream: "readonly",
32
+ WritableStream: "readonly",
33
+ TransformStream: "readonly",
34
+ Blob: "readonly",
35
+ File: "readonly",
36
+ crypto: "readonly",
37
+ performance: "readonly",
38
+ btoa: "readonly",
39
+ atob: "readonly",
40
+ structuredClone: "readonly"
41
+ };
42
+
43
+ const jestGlobals = {
44
+ describe: "readonly",
45
+ it: "readonly",
46
+ test: "readonly",
47
+ expect: "readonly",
48
+ beforeAll: "readonly",
49
+ beforeEach: "readonly",
50
+ afterAll: "readonly",
51
+ afterEach: "readonly",
52
+ jest: "readonly"
53
+ };
54
+
55
+ const ruleOverrides = {
56
+ "no-redeclare": "off",
57
+ "@typescript-eslint/no-redeclare": "off",
58
+ "no-regex-spaces": "off",
59
+ "no-useless-escape": "off",
60
+ "no-unused-vars": "off",
61
+ "@typescript-eslint/no-unused-vars": [
62
+ "warn",
63
+ {
64
+ argsIgnorePattern: "^_",
65
+ varsIgnorePattern: "^_",
66
+ caughtErrorsIgnorePattern: "^_"
67
+ }
68
+ ],
69
+ "@typescript-eslint/no-explicit-any": "warn",
70
+ "@typescript-eslint/no-empty-function": "off",
71
+ "@typescript-eslint/ban-ts-comment": "warn",
72
+ "no-empty": "off"
73
+ };
74
+
75
+ export default defineConfig([
76
+ js.configs.recommended,
77
+ ...tseslint.configs.recommended,
78
+ {
79
+ files: ["src/**/*.ts"],
80
+ plugins: {
81
+ "@typescript-eslint": tseslint.plugin
82
+ },
83
+ languageOptions: {
84
+ parser: tseslint.parser,
85
+ parserOptions: {
86
+ projectService: false,
87
+ project: ["./tsconfig.json"],
88
+ tsconfigRootDir: import.meta.dirname
89
+ },
90
+ globals: nodeGlobals
91
+ },
92
+ rules: ruleOverrides
93
+ },
94
+ {
95
+ files: ["test/**/*.ts"],
96
+ plugins: {
97
+ "@typescript-eslint": tseslint.plugin
98
+ },
99
+ languageOptions: {
100
+ parser: tseslint.parser,
101
+ parserOptions: {
102
+ projectService: false,
103
+ project: ["./tsconfig.test.json"],
104
+ tsconfigRootDir: import.meta.dirname
105
+ },
106
+ globals: { ...nodeGlobals, ...jestGlobals }
107
+ },
108
+ rules: ruleOverrides
109
+ },
110
+ globalIgnores([
111
+ "dist/**",
112
+ "node_modules/**",
113
+ "coverage/**"
114
+ ])
115
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentteams/cli",
3
- "version": "0.1.56-dev.217",
3
+ "version": "0.1.56-dev.218",
4
4
  "description": "CLI tool for AgentTeams API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,6 +15,7 @@
15
15
  "typecheck": "tsc --noEmit",
16
16
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
17
17
  "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
18
+ "lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
18
19
  "prepublishOnly": "npm run build"
19
20
  },
20
21
  "keywords": [
@@ -46,10 +47,13 @@
46
47
  "ora": "^9.4.0"
47
48
  },
48
49
  "devDependencies": {
50
+ "@eslint/js": "^9.39.4",
49
51
  "@types/jest": "^29.5.14",
50
52
  "@types/node": "^25.9.1",
53
+ "eslint": "^9.39.4",
51
54
  "jest": "^29.7.0",
52
55
  "ts-jest": "^29.4.11",
53
- "typescript": "^6.0.3"
56
+ "typescript": "^6.0.3",
57
+ "typescript-eslint": "^8.61.0"
54
58
  }
55
59
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": ".",
5
+ "noEmit": true,
6
+ "types": ["node", "jest"]
7
+ },
8
+ "include": ["src/**/*", "test/**/*"],
9
+ "exclude": ["node_modules", "dist"]
10
+ }