@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.
Files changed (120) hide show
  1. package/.prettierignore +4 -0
  2. package/.prettierrc.json +6 -0
  3. package/README.md +7 -7
  4. package/dist/api/coaction.d.ts.map +1 -1
  5. package/dist/api/coaction.js +3 -9
  6. package/dist/api/coaction.js.map +1 -1
  7. package/dist/api/codeReview.d.ts.map +1 -1
  8. package/dist/api/codeReview.js +1 -3
  9. package/dist/api/codeReview.js.map +1 -1
  10. package/dist/api/comment.d.ts.map +1 -1
  11. package/dist/api/comment.js +1 -3
  12. package/dist/api/comment.js.map +1 -1
  13. package/dist/api/document.d.ts.map +1 -1
  14. package/dist/api/document.js +8 -4
  15. package/dist/api/document.js.map +1 -1
  16. package/dist/api/feedback.d.ts +1 -1
  17. package/dist/api/feedback.js +1 -1
  18. package/dist/api/linear.d.ts.map +1 -1
  19. package/dist/api/linear.js.map +1 -1
  20. package/dist/api/member.d.ts +1 -1
  21. package/dist/api/plan.d.ts.map +1 -1
  22. package/dist/api/plan.js +1 -3
  23. package/dist/api/plan.js.map +1 -1
  24. package/dist/api/postmortem.d.ts.map +1 -1
  25. package/dist/api/postmortem.js +1 -3
  26. package/dist/api/postmortem.js.map +1 -1
  27. package/dist/api/report.d.ts.map +1 -1
  28. package/dist/api/report.js +1 -3
  29. package/dist/api/report.js.map +1 -1
  30. package/dist/commands/agentConfig.d.ts.map +1 -1
  31. package/dist/commands/agentConfig.js +9 -3
  32. package/dist/commands/agentConfig.js.map +1 -1
  33. package/dist/commands/agentConfigCommand.d.ts.map +1 -1
  34. package/dist/commands/agentConfigCommand.js.map +1 -1
  35. package/dist/commands/attachment.d.ts.map +1 -1
  36. package/dist/commands/attachment.js +31 -31
  37. package/dist/commands/attachment.js.map +1 -1
  38. package/dist/commands/coaction.d.ts.map +1 -1
  39. package/dist/commands/coaction.js +11 -9
  40. package/dist/commands/coaction.js.map +1 -1
  41. package/dist/commands/codeReview.d.ts.map +1 -1
  42. package/dist/commands/codeReview.js +5 -2
  43. package/dist/commands/codeReview.js.map +1 -1
  44. package/dist/commands/convention.d.ts +2 -2
  45. package/dist/commands/convention.d.ts.map +1 -1
  46. package/dist/commands/convention.js +108 -113
  47. package/dist/commands/convention.js.map +1 -1
  48. package/dist/commands/conventionRouter.d.ts.map +1 -1
  49. package/dist/commands/conventionRouter.js.map +1 -1
  50. package/dist/commands/dependency.d.ts.map +1 -1
  51. package/dist/commands/dependency.js +3 -1
  52. package/dist/commands/dependency.js.map +1 -1
  53. package/dist/commands/dependencyCommand.d.ts.map +1 -1
  54. package/dist/commands/dependencyCommand.js.map +1 -1
  55. package/dist/commands/document.d.ts.map +1 -1
  56. package/dist/commands/document.js +79 -83
  57. package/dist/commands/document.js.map +1 -1
  58. package/dist/commands/feedback.js +13 -13
  59. package/dist/commands/index.d.ts.map +1 -1
  60. package/dist/commands/index.js +13 -14
  61. package/dist/commands/index.js.map +1 -1
  62. package/dist/commands/init.d.ts.map +1 -1
  63. package/dist/commands/init.js +7 -8
  64. package/dist/commands/init.js.map +1 -1
  65. package/dist/commands/linear.d.ts.map +1 -1
  66. package/dist/commands/linear.js +1 -1
  67. package/dist/commands/linear.js.map +1 -1
  68. package/dist/commands/plan.d.ts.map +1 -1
  69. package/dist/commands/plan.js +46 -36
  70. package/dist/commands/plan.js.map +1 -1
  71. package/dist/commands/postmortem.d.ts.map +1 -1
  72. package/dist/commands/postmortem.js +6 -4
  73. package/dist/commands/postmortem.js.map +1 -1
  74. package/dist/commands/report.d.ts.map +1 -1
  75. package/dist/commands/report.js +5 -3
  76. package/dist/commands/report.js.map +1 -1
  77. package/dist/commands/search.d.ts.map +1 -1
  78. package/dist/commands/search.js.map +1 -1
  79. package/dist/index.js +5 -4
  80. package/dist/index.js.map +1 -1
  81. package/dist/types/index.d.ts +1 -1
  82. package/dist/utils/atomicWrite.d.ts.map +1 -1
  83. package/dist/utils/atomicWrite.js +2 -2
  84. package/dist/utils/atomicWrite.js.map +1 -1
  85. package/dist/utils/authServer.d.ts.map +1 -1
  86. package/dist/utils/authServer.js +2 -5
  87. package/dist/utils/authServer.js.map +1 -1
  88. package/dist/utils/config.d.ts +1 -1
  89. package/dist/utils/config.d.ts.map +1 -1
  90. package/dist/utils/config.js +9 -15
  91. package/dist/utils/config.js.map +1 -1
  92. package/dist/utils/git.d.ts.map +1 -1
  93. package/dist/utils/git.js +1 -3
  94. package/dist/utils/git.js.map +1 -1
  95. package/dist/utils/httpClient.d.ts +1 -1
  96. package/dist/utils/httpClient.d.ts.map +1 -1
  97. package/dist/utils/httpClient.js +7 -7
  98. package/dist/utils/httpClient.js.map +1 -1
  99. package/dist/utils/initOutput.d.ts.map +1 -1
  100. package/dist/utils/initOutput.js.map +1 -1
  101. package/dist/utils/outputPolicy.d.ts.map +1 -1
  102. package/dist/utils/outputPolicy.js +1 -3
  103. package/dist/utils/outputPolicy.js.map +1 -1
  104. package/dist/utils/parsers.d.ts +7 -1
  105. package/dist/utils/parsers.d.ts.map +1 -1
  106. package/dist/utils/parsers.js +18 -11
  107. package/dist/utils/parsers.js.map +1 -1
  108. package/dist/utils/planFormat.d.ts.map +1 -1
  109. package/dist/utils/planFormat.js +1 -1
  110. package/dist/utils/planFormat.js.map +1 -1
  111. package/dist/utils/planPreviewHtmlSafety.d.ts.map +1 -1
  112. package/dist/utils/planPreviewHtmlSafety.js +15 -15
  113. package/dist/utils/planPreviewHtmlSafety.js.map +1 -1
  114. package/dist/utils/spinner.d.ts.map +1 -1
  115. package/dist/utils/spinner.js.map +1 -1
  116. package/dist/utils/updateCheck.d.ts.map +1 -1
  117. package/dist/utils/updateCheck.js +11 -3
  118. package/dist/utils/updateCheck.js.map +1 -1
  119. package/eslint.config.mjs +75 -79
  120. package/package.json +4 -1
package/eslint.config.mjs CHANGED
@@ -1,115 +1,111 @@
1
- import { defineConfig, globalIgnores } from "eslint/config";
2
- import js from "@eslint/js";
3
- import tseslint from "typescript-eslint";
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: "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"
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: "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"
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
- "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",
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
- "@typescript-eslint/no-explicit-any": "warn",
70
- "@typescript-eslint/no-empty-function": "off",
71
- "@typescript-eslint/ban-ts-comment": "warn",
72
- "no-empty": "off"
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: ["src/**/*.ts"],
79
+ files: ['src/**/*.ts'],
80
80
  plugins: {
81
- "@typescript-eslint": tseslint.plugin
81
+ '@typescript-eslint': tseslint.plugin,
82
82
  },
83
83
  languageOptions: {
84
84
  parser: tseslint.parser,
85
85
  parserOptions: {
86
86
  projectService: false,
87
- project: ["./tsconfig.json"],
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: ["test/**/*.ts"],
95
+ files: ['test/**/*.ts'],
96
96
  plugins: {
97
- "@typescript-eslint": tseslint.plugin
97
+ '@typescript-eslint': tseslint.plugin,
98
98
  },
99
99
  languageOptions: {
100
100
  parser: tseslint.parser,
101
101
  parserOptions: {
102
102
  projectService: false,
103
- project: ["./tsconfig.test.json"],
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.218",
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"