@gt-fe/eap-cli 0.2.11 → 0.2.13

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 (75) hide show
  1. package/README.md +304 -304
  2. package/dist/static/playground/index.html +131 -131
  3. package/dist/static/playground/playground.css +209 -209
  4. package/dist/static/playground/playground.js +151 -151
  5. package/dist/static/playground-app/index.html +11 -11
  6. package/dist/templates/README.md +51 -51
  7. package/dist/templates/agent-api-orchestration/.env +16 -16
  8. package/dist/templates/agent-api-orchestration/README.md +326 -326
  9. package/dist/templates/agent-api-orchestration/agent.manifest.json +19 -19
  10. package/dist/templates/agent-api-orchestration/eap.config.json +1 -1
  11. package/dist/templates/agent-api-orchestration/eap.lock.yaml +5 -5
  12. package/dist/templates/agent-api-orchestration/gitignore +3 -3
  13. package/dist/templates/agent-api-orchestration/graph.json +35 -35
  14. package/dist/templates/agent-api-orchestration/package.json +2 -2
  15. package/dist/templates/agent-api-orchestration/scripts/api-test.mjs +443 -443
  16. package/dist/templates/agent-api-orchestration/scripts/build-runtime.mjs +26 -26
  17. package/dist/templates/agent-api-orchestration/scripts/validate.mjs +12 -12
  18. package/dist/templates/agent-api-orchestration/src/embedded-agent.ts +91 -91
  19. package/dist/templates/agent-api-orchestration/src/http/app.ts +58 -58
  20. package/dist/templates/agent-api-orchestration/src/http/config.ts +34 -34
  21. package/dist/templates/agent-api-orchestration/src/http/errors.ts +63 -63
  22. package/dist/templates/agent-api-orchestration/src/http/index.ts +4 -4
  23. package/dist/templates/agent-api-orchestration/src/http/middleware/cors.ts +17 -17
  24. package/dist/templates/agent-api-orchestration/src/http/routes/agent.ts +33 -33
  25. package/dist/templates/agent-api-orchestration/src/http/routes/health.ts +15 -15
  26. package/dist/templates/agent-api-orchestration/src/http/routes/invocations.ts +29 -29
  27. package/dist/templates/agent-api-orchestration/src/http/routes/sessions.ts +70 -70
  28. package/dist/templates/agent-api-orchestration/src/http/services/agent-service.ts +60 -60
  29. package/dist/templates/agent-api-orchestration/src/http/services/resource-service.ts +95 -95
  30. package/dist/templates/agent-api-orchestration/src/http/shared/request.ts +82 -82
  31. package/dist/templates/agent-api-orchestration/src/http/shared/sse.ts +32 -32
  32. package/dist/templates/agent-api-orchestration/src/http/types.ts +39 -39
  33. package/dist/templates/agent-api-orchestration/src/index.ts +91 -91
  34. package/dist/templates/agent-api-orchestration/src/platform-user.ts +36 -36
  35. package/dist/templates/agent-api-orchestration/src/project-config.ts +45 -45
  36. package/dist/templates/agent-api-orchestration/tsconfig.json +15 -15
  37. package/dist/templates/dag-workflow/README.md +102 -102
  38. package/dist/templates/dag-workflow/agent.manifest.json +19 -19
  39. package/dist/templates/dag-workflow/eap.config.json +1 -1
  40. package/dist/templates/dag-workflow/eap.lock.yaml +5 -5
  41. package/dist/templates/dag-workflow/gitignore +51 -51
  42. package/dist/templates/dag-workflow/graph.json +51 -51
  43. package/dist/templates/dag-workflow/package.json +10 -10
  44. package/dist/templates/dag-workflow/skills/README.md +116 -116
  45. package/dist/templates/plan-and-execute/README.md +109 -109
  46. package/dist/templates/plan-and-execute/agent.manifest.json +19 -19
  47. package/dist/templates/plan-and-execute/eap.config.json +1 -1
  48. package/dist/templates/plan-and-execute/eap.lock.yaml +5 -5
  49. package/dist/templates/plan-and-execute/gitignore +51 -51
  50. package/dist/templates/plan-and-execute/graph.json +49 -49
  51. package/dist/templates/plan-and-execute/package.json +10 -10
  52. package/dist/templates/plan-and-execute/skills/README.md +120 -120
  53. package/dist/templates/plan-and-execute/tools/echo-tool/src/index.js +17 -17
  54. package/dist/templates/plan-and-execute/tools/echo-tool/toolset.manifest.json +55 -55
  55. package/dist/templates/simple-flow/README.md +87 -87
  56. package/dist/templates/simple-flow/agent.manifest.json +19 -19
  57. package/dist/templates/simple-flow/eap.config.json +1 -1
  58. package/dist/templates/simple-flow/eap.lock.yaml +5 -5
  59. package/dist/templates/simple-flow/gitignore +51 -51
  60. package/dist/templates/simple-flow/graph.json +32 -32
  61. package/dist/templates/simple-flow/package.json +10 -10
  62. package/dist/templates/simple-flow/skills/README.md +113 -113
  63. package/dist/templates/single-agent-with-tools/README.md +138 -138
  64. package/dist/templates/single-agent-with-tools/agent.manifest.json +19 -19
  65. package/dist/templates/single-agent-with-tools/eap.config.json +1 -1
  66. package/dist/templates/single-agent-with-tools/eap.lock.yaml +5 -5
  67. package/dist/templates/single-agent-with-tools/gitignore +51 -51
  68. package/dist/templates/single-agent-with-tools/graph.json +41 -41
  69. package/dist/templates/single-agent-with-tools/package.json +10 -10
  70. package/dist/templates/single-agent-with-tools/skills/README.md +119 -119
  71. package/dist/templates/single-agent-with-tools/tools/echo-tool/src/index.js +17 -17
  72. package/dist/templates/single-agent-with-tools/tools/echo-tool/toolset.manifest.json +55 -55
  73. package/dist/templates/single-agent-with-tools/tools/http-weather/toolset.manifest.json +73 -73
  74. package/dist/templates/single-agent-with-tools/tools/web-search/toolset.manifest.json +41 -41
  75. package/package.json +3 -3
@@ -1,19 +1,19 @@
1
- {
2
- "code": "my-agent",
3
- "name": "my-agent",
4
- "version": "1.0.0",
5
- "description": "通过 Agent API 编排 Runtime 行为",
6
- "toolRefs": [],
7
- "skillRefs": [],
8
- "prompts": {
9
- "system": "你是一个严谨的中文助手。"
10
- },
11
- "models": {
12
- "default": "DeepSeek-V4-Pro",
13
- "allowed": ["DeepSeek-V4-Pro", "DeepSeek-V4-Flash"]
14
- },
15
- "metadata": {
16
- "owner": "agent-api-orchestration-template",
17
- "tags": ["agent-api", "orchestration", "embedded-runtime"]
18
- }
19
- }
1
+ {
2
+ "code": "my-agent",
3
+ "name": "my-agent",
4
+ "version": "1.0.0",
5
+ "description": "通过 Agent API 编排 Runtime 行为",
6
+ "toolRefs": [],
7
+ "skillRefs": [],
8
+ "prompts": {
9
+ "system": "你是一个严谨的中文助手。"
10
+ },
11
+ "models": {
12
+ "default": "DeepSeek-V4-Pro",
13
+ "allowed": ["DeepSeek-V4-Pro", "DeepSeek-V4-Flash"]
14
+ },
15
+ "metadata": {
16
+ "owner": "agent-api-orchestration-template",
17
+ "tags": ["agent-api", "orchestration", "embedded-runtime"]
18
+ }
19
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.11",
2
+ "version": "0.2.13",
3
3
  "localToolDirectories": [
4
4
  "./tools"
5
5
  ],
@@ -1,5 +1,5 @@
1
- lockfileVersion: 2
2
- resources:
3
- tools: []
4
- skills: []
5
- subagents: []
1
+ lockfileVersion: 2
2
+ resources:
3
+ tools: []
4
+ skills: []
5
+ subagents: []
@@ -1,3 +1,3 @@
1
- node_modules/
2
- dist/
3
- .eap/
1
+ node_modules/
2
+ dist/
3
+ .eap/
@@ -1,35 +1,35 @@
1
- {
2
- "description": "用于演示 Agent API 编排的最小模型流程(含 RAG 多源检索)。",
3
- "state": {
4
- "userRequest": "string",
5
- "response": "string"
6
- },
7
- "nodes": [
8
- {
9
- "id": "rag",
10
- "type": "rag",
11
- "config": {
12
- "maxIterations": 5
13
- }
14
- },
15
- {
16
- "id": "respond",
17
- "type": "llm",
18
- "config": {
19
- "disableTools": true,
20
- "systemPrompt": "你是企业知识与数据问答助手,请根据用户的问题直接回答。"
21
- }
22
- }
23
- ],
24
- "edges": [
25
- { "from": "__start__", "to": "rag" },
26
- { "from": "rag", "to": "respond" },
27
- { "from": "respond", "to": "__end__" }
28
- ],
29
- "entryPoint": "rag",
30
- "finishPoints": ["__end__"],
31
- "config": {
32
- "maxRetries": 3,
33
- "checkpointStore": "memory"
34
- }
35
- }
1
+ {
2
+ "description": "用于演示 Agent API 编排的最小模型流程(含 RAG 多源检索)。",
3
+ "state": {
4
+ "userRequest": "string",
5
+ "response": "string"
6
+ },
7
+ "nodes": [
8
+ {
9
+ "id": "rag",
10
+ "type": "rag",
11
+ "config": {
12
+ "maxIterations": 5
13
+ }
14
+ },
15
+ {
16
+ "id": "respond",
17
+ "type": "llm",
18
+ "config": {
19
+ "disableTools": true,
20
+ "systemPrompt": "你是企业知识与数据问答助手,请根据用户的问题直接回答。"
21
+ }
22
+ }
23
+ ],
24
+ "edges": [
25
+ { "from": "__start__", "to": "rag" },
26
+ { "from": "rag", "to": "respond" },
27
+ { "from": "respond", "to": "__end__" }
28
+ ],
29
+ "entryPoint": "rag",
30
+ "finishPoints": ["__end__"],
31
+ "config": {
32
+ "maxRetries": 3,
33
+ "checkpointStore": "memory"
34
+ }
35
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-api-orchestration",
3
- "description": "面向前端智能体页面的 Agent API 服务模板",
3
+ "description": "\u9762\u5411\u524d\u7aef\u667a\u80fd\u4f53\u9875\u9762\u7684 Agent API \u670d\u52a1\u6a21\u677f",
4
4
  "version": "1.0.0",
5
5
  "private": true,
6
6
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "type-check": "tsc --noEmit"
15
15
  },
16
16
  "dependencies": {
17
- "@gt-fe/eap-sdk": "^0.2.11",
17
+ "@gt-fe/eap-sdk": "^0.2.13",
18
18
  "dotenv": "^17.2.2",
19
19
  "express": "^4.21.2"
20
20
  },