@agentteams/cli 0.1.56-dev.218 → 0.1.56-dev.221
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/.prettierignore +4 -0
- package/.prettierrc.json +6 -0
- package/README.md +7 -7
- package/dist/api/coaction.d.ts.map +1 -1
- package/dist/api/coaction.js +3 -9
- package/dist/api/coaction.js.map +1 -1
- package/dist/api/codeReview.d.ts.map +1 -1
- package/dist/api/codeReview.js +1 -3
- package/dist/api/codeReview.js.map +1 -1
- package/dist/api/comment.d.ts.map +1 -1
- package/dist/api/comment.js +1 -3
- package/dist/api/comment.js.map +1 -1
- package/dist/api/document.d.ts.map +1 -1
- package/dist/api/document.js +8 -4
- package/dist/api/document.js.map +1 -1
- package/dist/api/feedback.d.ts +1 -1
- package/dist/api/feedback.js +1 -1
- package/dist/api/linear.d.ts.map +1 -1
- package/dist/api/linear.js.map +1 -1
- package/dist/api/member.d.ts +1 -1
- package/dist/api/plan.d.ts.map +1 -1
- package/dist/api/plan.js +1 -3
- package/dist/api/plan.js.map +1 -1
- package/dist/api/postmortem.d.ts.map +1 -1
- package/dist/api/postmortem.js +1 -3
- package/dist/api/postmortem.js.map +1 -1
- package/dist/api/report.d.ts.map +1 -1
- package/dist/api/report.js +1 -3
- package/dist/api/report.js.map +1 -1
- package/dist/commands/agentConfig.d.ts.map +1 -1
- package/dist/commands/agentConfig.js +9 -3
- package/dist/commands/agentConfig.js.map +1 -1
- package/dist/commands/agentConfigCommand.d.ts.map +1 -1
- package/dist/commands/agentConfigCommand.js.map +1 -1
- package/dist/commands/attachment.d.ts.map +1 -1
- package/dist/commands/attachment.js +31 -31
- package/dist/commands/attachment.js.map +1 -1
- package/dist/commands/coaction.d.ts.map +1 -1
- package/dist/commands/coaction.js +11 -9
- package/dist/commands/coaction.js.map +1 -1
- package/dist/commands/codeReview.d.ts.map +1 -1
- package/dist/commands/codeReview.js +5 -2
- package/dist/commands/codeReview.js.map +1 -1
- package/dist/commands/convention.d.ts +2 -2
- package/dist/commands/convention.d.ts.map +1 -1
- package/dist/commands/convention.js +108 -113
- package/dist/commands/convention.js.map +1 -1
- package/dist/commands/conventionRouter.d.ts.map +1 -1
- package/dist/commands/conventionRouter.js.map +1 -1
- package/dist/commands/dependency.d.ts.map +1 -1
- package/dist/commands/dependency.js +3 -1
- package/dist/commands/dependency.js.map +1 -1
- package/dist/commands/dependencyCommand.d.ts.map +1 -1
- package/dist/commands/dependencyCommand.js.map +1 -1
- package/dist/commands/document.d.ts.map +1 -1
- package/dist/commands/document.js +79 -83
- package/dist/commands/document.js.map +1 -1
- package/dist/commands/feedback.js +13 -13
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +13 -14
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +7 -8
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/linear.d.ts.map +1 -1
- package/dist/commands/linear.js +1 -1
- package/dist/commands/linear.js.map +1 -1
- package/dist/commands/plan.d.ts.map +1 -1
- package/dist/commands/plan.js +46 -36
- package/dist/commands/plan.js.map +1 -1
- package/dist/commands/postmortem.d.ts.map +1 -1
- package/dist/commands/postmortem.js +6 -4
- package/dist/commands/postmortem.js.map +1 -1
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +5 -3
- package/dist/commands/report.js.map +1 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/atomicWrite.d.ts.map +1 -1
- package/dist/utils/atomicWrite.js +2 -2
- package/dist/utils/atomicWrite.js.map +1 -1
- package/dist/utils/authServer.d.ts.map +1 -1
- package/dist/utils/authServer.js +2 -5
- package/dist/utils/authServer.js.map +1 -1
- package/dist/utils/config.d.ts +1 -1
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +9 -15
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +1 -3
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/httpClient.d.ts +1 -1
- package/dist/utils/httpClient.d.ts.map +1 -1
- package/dist/utils/httpClient.js +7 -7
- package/dist/utils/httpClient.js.map +1 -1
- package/dist/utils/initOutput.d.ts.map +1 -1
- package/dist/utils/initOutput.js.map +1 -1
- package/dist/utils/outputPolicy.d.ts.map +1 -1
- package/dist/utils/outputPolicy.js +1 -3
- package/dist/utils/outputPolicy.js.map +1 -1
- package/dist/utils/parsers.d.ts +7 -1
- package/dist/utils/parsers.d.ts.map +1 -1
- package/dist/utils/parsers.js +18 -11
- package/dist/utils/parsers.js.map +1 -1
- package/dist/utils/planFormat.d.ts.map +1 -1
- package/dist/utils/planFormat.js +1 -1
- package/dist/utils/planFormat.js.map +1 -1
- package/dist/utils/planPreviewHtmlSafety.d.ts.map +1 -1
- package/dist/utils/planPreviewHtmlSafety.js +15 -15
- package/dist/utils/planPreviewHtmlSafety.js.map +1 -1
- package/dist/utils/spinner.d.ts.map +1 -1
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/updateCheck.d.ts.map +1 -1
- package/dist/utils/updateCheck.js +11 -3
- package/dist/utils/updateCheck.js.map +1 -1
- package/eslint.config.mjs +75 -79
- package/package.json +4 -1
package/eslint.config.mjs
CHANGED
|
@@ -1,115 +1,111 @@
|
|
|
1
|
-
import { defineConfig, globalIgnores } from
|
|
2
|
-
import js from
|
|
3
|
-
import tseslint from
|
|
1
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
2
|
+
import js from '@eslint/js';
|
|
3
|
+
import tseslint from 'typescript-eslint';
|
|
4
4
|
|
|
5
5
|
const nodeGlobals = {
|
|
6
|
-
process:
|
|
7
|
-
console:
|
|
8
|
-
Buffer:
|
|
9
|
-
__dirname:
|
|
10
|
-
__filename:
|
|
11
|
-
global:
|
|
12
|
-
globalThis:
|
|
13
|
-
URL:
|
|
14
|
-
URLSearchParams:
|
|
15
|
-
setTimeout:
|
|
16
|
-
clearTimeout:
|
|
17
|
-
setInterval:
|
|
18
|
-
clearInterval:
|
|
19
|
-
setImmediate:
|
|
20
|
-
queueMicrotask:
|
|
21
|
-
fetch:
|
|
22
|
-
TextEncoder:
|
|
23
|
-
TextDecoder:
|
|
24
|
-
AbortController:
|
|
25
|
-
AbortSignal:
|
|
26
|
-
Request:
|
|
27
|
-
RequestInit:
|
|
28
|
-
Response:
|
|
29
|
-
Headers:
|
|
30
|
-
FormData:
|
|
31
|
-
ReadableStream:
|
|
32
|
-
WritableStream:
|
|
33
|
-
TransformStream:
|
|
34
|
-
Blob:
|
|
35
|
-
File:
|
|
36
|
-
crypto:
|
|
37
|
-
performance:
|
|
38
|
-
btoa:
|
|
39
|
-
atob:
|
|
40
|
-
structuredClone:
|
|
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
41
|
};
|
|
42
42
|
|
|
43
43
|
const jestGlobals = {
|
|
44
|
-
describe:
|
|
45
|
-
it:
|
|
46
|
-
test:
|
|
47
|
-
expect:
|
|
48
|
-
beforeAll:
|
|
49
|
-
beforeEach:
|
|
50
|
-
afterAll:
|
|
51
|
-
afterEach:
|
|
52
|
-
jest:
|
|
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
53
|
};
|
|
54
54
|
|
|
55
55
|
const ruleOverrides = {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
63
|
{
|
|
64
|
-
argsIgnorePattern:
|
|
65
|
-
varsIgnorePattern:
|
|
66
|
-
caughtErrorsIgnorePattern:
|
|
67
|
-
}
|
|
64
|
+
argsIgnorePattern: '^_',
|
|
65
|
+
varsIgnorePattern: '^_',
|
|
66
|
+
caughtErrorsIgnorePattern: '^_',
|
|
67
|
+
},
|
|
68
68
|
],
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
73
|
};
|
|
74
74
|
|
|
75
75
|
export default defineConfig([
|
|
76
76
|
js.configs.recommended,
|
|
77
77
|
...tseslint.configs.recommended,
|
|
78
78
|
{
|
|
79
|
-
files: [
|
|
79
|
+
files: ['src/**/*.ts'],
|
|
80
80
|
plugins: {
|
|
81
|
-
|
|
81
|
+
'@typescript-eslint': tseslint.plugin,
|
|
82
82
|
},
|
|
83
83
|
languageOptions: {
|
|
84
84
|
parser: tseslint.parser,
|
|
85
85
|
parserOptions: {
|
|
86
86
|
projectService: false,
|
|
87
|
-
project: [
|
|
88
|
-
tsconfigRootDir: import.meta.dirname
|
|
87
|
+
project: ['./tsconfig.json'],
|
|
88
|
+
tsconfigRootDir: import.meta.dirname,
|
|
89
89
|
},
|
|
90
|
-
globals: nodeGlobals
|
|
90
|
+
globals: nodeGlobals,
|
|
91
91
|
},
|
|
92
|
-
rules: ruleOverrides
|
|
92
|
+
rules: ruleOverrides,
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
files: [
|
|
95
|
+
files: ['test/**/*.ts'],
|
|
96
96
|
plugins: {
|
|
97
|
-
|
|
97
|
+
'@typescript-eslint': tseslint.plugin,
|
|
98
98
|
},
|
|
99
99
|
languageOptions: {
|
|
100
100
|
parser: tseslint.parser,
|
|
101
101
|
parserOptions: {
|
|
102
102
|
projectService: false,
|
|
103
|
-
project: [
|
|
104
|
-
tsconfigRootDir: import.meta.dirname
|
|
103
|
+
project: ['./tsconfig.test.json'],
|
|
104
|
+
tsconfigRootDir: import.meta.dirname,
|
|
105
105
|
},
|
|
106
|
-
globals: { ...nodeGlobals, ...jestGlobals }
|
|
106
|
+
globals: { ...nodeGlobals, ...jestGlobals },
|
|
107
107
|
},
|
|
108
|
-
rules: ruleOverrides
|
|
108
|
+
rules: ruleOverrides,
|
|
109
109
|
},
|
|
110
|
-
globalIgnores([
|
|
111
|
-
"dist/**",
|
|
112
|
-
"node_modules/**",
|
|
113
|
-
"coverage/**"
|
|
114
|
-
])
|
|
110
|
+
globalIgnores(['dist/**', 'node_modules/**', 'coverage/**']),
|
|
115
111
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentteams/cli",
|
|
3
|
-
"version": "0.1.56-dev.
|
|
3
|
+
"version": "0.1.56-dev.221",
|
|
4
4
|
"description": "CLI tool for AgentTeams API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,6 +16,8 @@
|
|
|
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
18
|
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
|
|
19
|
+
"format": "prettier --write .",
|
|
20
|
+
"format:check": "prettier --check .",
|
|
19
21
|
"prepublishOnly": "npm run build"
|
|
20
22
|
},
|
|
21
23
|
"keywords": [
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
"@types/node": "^25.9.1",
|
|
53
55
|
"eslint": "^9.39.4",
|
|
54
56
|
"jest": "^29.7.0",
|
|
57
|
+
"prettier": "^3.8.4",
|
|
55
58
|
"ts-jest": "^29.4.11",
|
|
56
59
|
"typescript": "^6.0.3",
|
|
57
60
|
"typescript-eslint": "^8.61.0"
|