intention-coding 0.3.5 → 0.3.6

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs +6458 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/server/index.d.ts +2 -0
  5. package/dist/services/bug-fix-agent/index.d.ts +10 -24
  6. package/dist/services/change-summarizer/index.d.ts +10 -24
  7. package/dist/services/code-generator/index.d.ts +18 -24
  8. package/dist/services/image-analysis/index.d.ts +36 -56
  9. package/dist/services/image-converter/index.d.ts +24 -38
  10. package/dist/services/integrated-generator/index.d.ts +28 -66
  11. package/dist/services/pdf2md/index.d.ts +4 -48
  12. package/dist/services/project-template/index.d.ts +2 -18
  13. package/dist/services/requirement-analyzer/index.d.ts +22 -80
  14. package/dist/services/world2md/index.d.ts +14 -50
  15. package/dist/types/index.d.ts +8 -0
  16. package/package.json +46 -28
  17. package/dist/cli/analyze-image.d.ts +0 -2
  18. package/dist/index.js +0 -11527
  19. package/dist/services/api-test/add-tasks-to-plan.d.ts +0 -97
  20. package/dist/services/api-test/api-test.d.ts +0 -86
  21. package/dist/services/api-test/batch-update-task-summaries.d.ts +0 -61
  22. package/dist/services/api-test/execute-test-plan.d.ts +0 -21
  23. package/dist/services/api-test/export-test-results.d.ts +0 -21
  24. package/dist/services/api-test/get-test-plans.d.ts +0 -21
  25. package/dist/services/api-test/index.d.ts +0 -285
  26. package/dist/services/api-test/test-plan.d.ts +0 -119
  27. package/dist/services/api-test/update-task.d.ts +0 -147
  28. package/dist/services/claude-code/index.d.ts +0 -200
  29. package/dist/utils/requirements-utils.d.ts +0 -38
  30. package/dist/utils/storage.d.ts +0 -14
  31. /package/dist/{config.d.ts → utils/config.d.ts} +0 -0
@@ -1,51 +1,22 @@
1
1
  import { z } from "zod";
2
2
  import { RequirementAnalysisError } from "./core/types";
3
- declare const RequirementAnalyzerParamsSchema: z.ZodEffects<z.ZodObject<{
4
- input_type: z.ZodEnum<["text", "md_file"]>;
3
+ declare const RequirementAnalyzerParamsSchema: z.ZodObject<{
4
+ input_type: z.ZodEnum<{
5
+ text: "text";
6
+ md_file: "md_file";
7
+ }>;
5
8
  content: z.ZodOptional<z.ZodString>;
6
9
  md_file_path: z.ZodOptional<z.ZodString>;
7
10
  feature_name: z.ZodString;
8
11
  custom_prompt: z.ZodOptional<z.ZodString>;
9
- analysis_depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>;
12
+ analysis_depth: z.ZodDefault<z.ZodEnum<{
13
+ basic: "basic";
14
+ detailed: "detailed";
15
+ comprehensive: "comprehensive";
16
+ }>>;
10
17
  use_streaming: z.ZodDefault<z.ZodBoolean>;
11
18
  chunk_size: z.ZodDefault<z.ZodNumber>;
12
- }, "strip", z.ZodTypeAny, {
13
- chunk_size: number;
14
- input_type: "text" | "md_file";
15
- feature_name: string;
16
- analysis_depth: "basic" | "detailed" | "comprehensive";
17
- use_streaming: boolean;
18
- content?: string | undefined;
19
- md_file_path?: string | undefined;
20
- custom_prompt?: string | undefined;
21
- }, {
22
- input_type: "text" | "md_file";
23
- feature_name: string;
24
- chunk_size?: number | undefined;
25
- content?: string | undefined;
26
- md_file_path?: string | undefined;
27
- custom_prompt?: string | undefined;
28
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
29
- use_streaming?: boolean | undefined;
30
- }>, {
31
- chunk_size: number;
32
- input_type: "text" | "md_file";
33
- feature_name: string;
34
- analysis_depth: "basic" | "detailed" | "comprehensive";
35
- use_streaming: boolean;
36
- content?: string | undefined;
37
- md_file_path?: string | undefined;
38
- custom_prompt?: string | undefined;
39
- }, {
40
- input_type: "text" | "md_file";
41
- feature_name: string;
42
- chunk_size?: number | undefined;
43
- content?: string | undefined;
44
- md_file_path?: string | undefined;
45
- custom_prompt?: string | undefined;
46
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
47
- use_streaming?: boolean | undefined;
48
- }>;
19
+ }, z.core.$strip>;
49
20
  export type RequirementAnalyzerParams = z.infer<typeof RequirementAnalyzerParamsSchema>;
50
21
  /**
51
22
  * 需求分析智能体工具
@@ -53,52 +24,23 @@ export type RequirementAnalyzerParams = z.infer<typeof RequirementAnalyzerParams
53
24
  export declare const requirementAnalyzerTool: {
54
25
  name: string;
55
26
  description: string;
56
- parameters: z.ZodEffects<z.ZodObject<{
57
- input_type: z.ZodEnum<["text", "md_file"]>;
27
+ parameters: z.ZodObject<{
28
+ input_type: z.ZodEnum<{
29
+ text: "text";
30
+ md_file: "md_file";
31
+ }>;
58
32
  content: z.ZodOptional<z.ZodString>;
59
33
  md_file_path: z.ZodOptional<z.ZodString>;
60
34
  feature_name: z.ZodString;
61
35
  custom_prompt: z.ZodOptional<z.ZodString>;
62
- analysis_depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>;
36
+ analysis_depth: z.ZodDefault<z.ZodEnum<{
37
+ basic: "basic";
38
+ detailed: "detailed";
39
+ comprehensive: "comprehensive";
40
+ }>>;
63
41
  use_streaming: z.ZodDefault<z.ZodBoolean>;
64
42
  chunk_size: z.ZodDefault<z.ZodNumber>;
65
- }, "strip", z.ZodTypeAny, {
66
- chunk_size: number;
67
- input_type: "text" | "md_file";
68
- feature_name: string;
69
- analysis_depth: "basic" | "detailed" | "comprehensive";
70
- use_streaming: boolean;
71
- content?: string | undefined;
72
- md_file_path?: string | undefined;
73
- custom_prompt?: string | undefined;
74
- }, {
75
- input_type: "text" | "md_file";
76
- feature_name: string;
77
- chunk_size?: number | undefined;
78
- content?: string | undefined;
79
- md_file_path?: string | undefined;
80
- custom_prompt?: string | undefined;
81
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
82
- use_streaming?: boolean | undefined;
83
- }>, {
84
- chunk_size: number;
85
- input_type: "text" | "md_file";
86
- feature_name: string;
87
- analysis_depth: "basic" | "detailed" | "comprehensive";
88
- use_streaming: boolean;
89
- content?: string | undefined;
90
- md_file_path?: string | undefined;
91
- custom_prompt?: string | undefined;
92
- }, {
93
- input_type: "text" | "md_file";
94
- feature_name: string;
95
- chunk_size?: number | undefined;
96
- content?: string | undefined;
97
- md_file_path?: string | undefined;
98
- custom_prompt?: string | undefined;
99
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
100
- use_streaming?: boolean | undefined;
101
- }>;
43
+ }, z.core.$strip>;
102
44
  execute: (args: RequirementAnalyzerParams) => Promise<string>;
103
45
  /**
104
46
  * 格式化错误消息
@@ -3,32 +3,14 @@ export declare const Word2MdParams: z.ZodObject<{
3
3
  file_path: z.ZodString;
4
4
  options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
5
5
  skip_images: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6
- table_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["simple", "grid", "pipe"]>>>;
6
+ table_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7
+ pipe: "pipe";
8
+ simple: "simple";
9
+ grid: "grid";
10
+ }>>>;
7
11
  strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
- }, "strip", z.ZodTypeAny, {
9
- skip_images: boolean;
10
- table_style: "pipe" | "simple" | "grid";
11
- strict_mode: boolean;
12
- }, {
13
- skip_images?: boolean | undefined;
14
- table_style?: "pipe" | "simple" | "grid" | undefined;
15
- strict_mode?: boolean | undefined;
16
- }>>>;
17
- }, "strip", z.ZodTypeAny, {
18
- options: {
19
- skip_images: boolean;
20
- table_style: "pipe" | "simple" | "grid";
21
- strict_mode: boolean;
22
- };
23
- file_path: string;
24
- }, {
25
- file_path: string;
26
- options?: {
27
- skip_images?: boolean | undefined;
28
- table_style?: "pipe" | "simple" | "grid" | undefined;
29
- strict_mode?: boolean | undefined;
30
- } | undefined;
31
- }>;
12
+ }, z.core.$strip>>>;
13
+ }, z.core.$strip>;
32
14
  export interface Word2MdParams {
33
15
  file_path: string;
34
16
  }
@@ -39,31 +21,13 @@ export declare const word2mdTool: {
39
21
  file_path: z.ZodString;
40
22
  options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
41
23
  skip_images: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
42
- table_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["simple", "grid", "pipe"]>>>;
24
+ table_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
25
+ pipe: "pipe";
26
+ simple: "simple";
27
+ grid: "grid";
28
+ }>>>;
43
29
  strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
44
- }, "strip", z.ZodTypeAny, {
45
- skip_images: boolean;
46
- table_style: "pipe" | "simple" | "grid";
47
- strict_mode: boolean;
48
- }, {
49
- skip_images?: boolean | undefined;
50
- table_style?: "pipe" | "simple" | "grid" | undefined;
51
- strict_mode?: boolean | undefined;
52
- }>>>;
53
- }, "strip", z.ZodTypeAny, {
54
- options: {
55
- skip_images: boolean;
56
- table_style: "pipe" | "simple" | "grid";
57
- strict_mode: boolean;
58
- };
59
- file_path: string;
60
- }, {
61
- file_path: string;
62
- options?: {
63
- skip_images?: boolean | undefined;
64
- table_style?: "pipe" | "simple" | "grid" | undefined;
65
- strict_mode?: boolean | undefined;
66
- } | undefined;
67
- }>;
30
+ }, z.core.$strip>>>;
31
+ }, z.core.$strip>;
68
32
  execute: (args: Word2MdParams) => Promise<string>;
69
33
  };
@@ -0,0 +1,8 @@
1
+ export interface ITools {
2
+ [key: string]: {
3
+ name: string;
4
+ description: string;
5
+ parameters: any;
6
+ execute: (args: any) => Promise<any>;
7
+ };
8
+ }
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "intention-coding",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "软件工程化的需求分析,功能设计,代码编写,测试运行和发布部署",
5
5
  "type": "module",
6
- "exports": {
7
- ".": {
8
- "types": "./dist/index.d.ts",
9
- "import": "./dist/index.js",
10
- "require": "./dist/index.cjs"
11
- }
12
- },
13
- "bin": "./dist/index.js",
6
+ "packageManager": "pnpm@10.11.0",
7
+ "bin": "./dist/index.cjs",
14
8
  "main": "./dist/index.cjs",
15
- "module": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
9
+ "module": "./dist/index.cjs",
17
10
  "files": [
18
- "dist"
11
+ "dist/**/*",
12
+ "README.md"
13
+ ],
14
+ "keywords": [
15
+ "mcp"
19
16
  ],
17
+ "author": {
18
+ "name": "aico",
19
+ "email": "weiyunpeng@aico.com"
20
+ },
20
21
  "scripts": {
21
22
  "build": "rslib build",
22
23
  "dev": "rslib build --watch",
@@ -28,24 +29,12 @@
28
29
  "prepublish": "npm run build"
29
30
  },
30
31
  "engines": {
31
- "node": ">=16.20.2"
32
- },
33
- "devDependencies": {
34
- "@rslib/core": "^0.10.0",
35
- "@types/better-sqlite3": "^7.6.13",
36
- "@types/node": "^18.0.0",
37
- "@types/pdf-parse": "^1.1.5",
38
- "@types/uuid": "^10.0.0",
39
- "dotenv": "16.4.5",
40
- "tsx": "^4.20.3",
41
- "typescript": "^5.8.3",
42
- "vitest": "3.2.3",
43
- "zod": "3.25.64"
32
+ "node": ">=16.2.0"
44
33
  },
45
34
  "dependencies": {
35
+ "@modelcontextprotocol/sdk": "^1.17.3",
46
36
  "aico-pack": "2.1.0",
47
37
  "axios": "^1.10.0",
48
- "fastmcp": "^3.14.0",
49
38
  "html-to-md": "^0.8.8",
50
39
  "jimp": "^1.6.0",
51
40
  "lru-cache": "^11.1.0",
@@ -55,7 +44,36 @@
55
44
  "uuid": "^11.1.0",
56
45
  "winston": "^3.17.0",
57
46
  "winston-daily-rotate-file": "^5.0.0",
58
- "xlsx": "^0.18.5"
47
+ "xlsx": "^0.18.5",
48
+ "zod": "^4.0.10"
59
49
  },
60
- "license": "MIT"
50
+ "devDependencies": {
51
+ "@antfu/eslint-config": "^4.13.0",
52
+ "@esbuild-plugins/tsconfig-paths": "^0.1.2",
53
+ "@eslint-react/eslint-plugin": "^1.49.0",
54
+ "@eslint/js": "^9.26.0",
55
+ "@rslib/core": "^0.10.0",
56
+ "@types/better-sqlite3": "^7.6.13",
57
+ "@types/express": "^5.0.1",
58
+ "@types/js-yaml": "^4.0.9",
59
+ "@types/lodash": "^4.17.16",
60
+ "@types/node": "^24.0.0",
61
+ "@types/pdf-parse": "^1.1.5",
62
+ "@types/uuid": "^10.0.0",
63
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
64
+ "@typescript-eslint/parser": "^8.32.1",
65
+ "chalk": "^5.4.1",
66
+ "dotenv": "16.4.5",
67
+ "effect": "^3.14.21",
68
+ "eslint": "^9.26.0",
69
+ "minimist": "^1.2.8",
70
+ "nodemon": "^3.0.0",
71
+ "npm-run-all": "^4.1.5",
72
+ "tsup": "^8.5.0",
73
+ "tsx": "^4.19.4",
74
+ "typescript": "^5.8.3",
75
+ "typescript-eslint": "^8.32.1",
76
+ "vitest": "3.2.3",
77
+ "zod": "3.25.64"
78
+ }
61
79
  }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};