crewx 0.3.0 → 0.4.0-dev.1

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 (233) hide show
  1. package/bin/crewx.js +6 -0
  2. package/package.json +9 -107
  3. package/LICENSE +0 -201
  4. package/README.md +0 -234
  5. package/crewx.yaml +0 -2069
  6. package/dist/agent.types.d.ts +0 -117
  7. package/dist/agent.types.js +0 -16
  8. package/dist/agent.types.js.map +0 -1
  9. package/dist/ai-provider.service.d.ts +0 -36
  10. package/dist/ai-provider.service.js +0 -191
  11. package/dist/ai-provider.service.js.map +0 -1
  12. package/dist/ai.service.d.ts +0 -57
  13. package/dist/ai.service.js +0 -629
  14. package/dist/ai.service.js.map +0 -1
  15. package/dist/app.module.d.ts +0 -5
  16. package/dist/app.module.js +0 -103
  17. package/dist/app.module.js.map +0 -1
  18. package/dist/cli/agent.handler.d.ts +0 -2
  19. package/dist/cli/agent.handler.js +0 -140
  20. package/dist/cli/agent.handler.js.map +0 -1
  21. package/dist/cli/chat.handler.d.ts +0 -19
  22. package/dist/cli/chat.handler.js +0 -431
  23. package/dist/cli/chat.handler.js.map +0 -1
  24. package/dist/cli/cli.handler.d.ts +0 -4
  25. package/dist/cli/cli.handler.js +0 -97
  26. package/dist/cli/cli.handler.js.map +0 -1
  27. package/dist/cli/doctor.handler.d.ts +0 -36
  28. package/dist/cli/doctor.handler.js +0 -382
  29. package/dist/cli/doctor.handler.js.map +0 -1
  30. package/dist/cli/execute.handler.d.ts +0 -2
  31. package/dist/cli/execute.handler.js +0 -319
  32. package/dist/cli/execute.handler.js.map +0 -1
  33. package/dist/cli/help.handler.d.ts +0 -2
  34. package/dist/cli/help.handler.js +0 -10
  35. package/dist/cli/help.handler.js.map +0 -1
  36. package/dist/cli/init.handler.d.ts +0 -26
  37. package/dist/cli/init.handler.js +0 -450
  38. package/dist/cli/init.handler.js.map +0 -1
  39. package/dist/cli/mcp.handler.d.ts +0 -3
  40. package/dist/cli/mcp.handler.js +0 -121
  41. package/dist/cli/mcp.handler.js.map +0 -1
  42. package/dist/cli/query.handler.d.ts +0 -2
  43. package/dist/cli/query.handler.js +0 -380
  44. package/dist/cli/query.handler.js.map +0 -1
  45. package/dist/cli/templates.handler.d.ts +0 -2
  46. package/dist/cli/templates.handler.js +0 -100
  47. package/dist/cli/templates.handler.js.map +0 -1
  48. package/dist/cli-options.d.ts +0 -29
  49. package/dist/cli-options.js +0 -234
  50. package/dist/cli-options.js.map +0 -1
  51. package/dist/config/timeout.config.d.ts +0 -14
  52. package/dist/config/timeout.config.js +0 -34
  53. package/dist/config/timeout.config.js.map +0 -1
  54. package/dist/constants.d.ts +0 -4
  55. package/dist/constants.js +0 -8
  56. package/dist/constants.js.map +0 -1
  57. package/dist/conversation/base-conversation-history.provider.d.ts +0 -12
  58. package/dist/conversation/base-conversation-history.provider.js +0 -45
  59. package/dist/conversation/base-conversation-history.provider.js.map +0 -1
  60. package/dist/conversation/cli-conversation-history.provider.d.ts +0 -16
  61. package/dist/conversation/cli-conversation-history.provider.js +0 -111
  62. package/dist/conversation/cli-conversation-history.provider.js.map +0 -1
  63. package/dist/conversation/conversation-config.d.ts +0 -9
  64. package/dist/conversation/conversation-config.js +0 -25
  65. package/dist/conversation/conversation-config.js.map +0 -1
  66. package/dist/conversation/conversation-history.interface.d.ts +0 -25
  67. package/dist/conversation/conversation-history.interface.js +0 -3
  68. package/dist/conversation/conversation-history.interface.js.map +0 -1
  69. package/dist/conversation/conversation-provider.factory.d.ts +0 -10
  70. package/dist/conversation/conversation-provider.factory.js +0 -50
  71. package/dist/conversation/conversation-provider.factory.js.map +0 -1
  72. package/dist/conversation/conversation-storage.service.d.ts +0 -16
  73. package/dist/conversation/conversation-storage.service.js +0 -220
  74. package/dist/conversation/conversation-storage.service.js.map +0 -1
  75. package/dist/conversation/index.d.ts +0 -7
  76. package/dist/conversation/index.js +0 -24
  77. package/dist/conversation/index.js.map +0 -1
  78. package/dist/conversation/slack-conversation-history.provider.d.ts +0 -28
  79. package/dist/conversation/slack-conversation-history.provider.js +0 -278
  80. package/dist/conversation/slack-conversation-history.provider.js.map +0 -1
  81. package/dist/crewx.tool.d.ts +0 -332
  82. package/dist/crewx.tool.js +0 -1463
  83. package/dist/crewx.tool.js.map +0 -1
  84. package/dist/guards/bearer-auth.guard.d.ts +0 -7
  85. package/dist/guards/bearer-auth.guard.js +0 -44
  86. package/dist/guards/bearer-auth.guard.js.map +0 -1
  87. package/dist/health.controller.d.ts +0 -6
  88. package/dist/health.controller.js +0 -32
  89. package/dist/health.controller.js.map +0 -1
  90. package/dist/knowledge/DocumentManager.d.ts +0 -4
  91. package/dist/knowledge/DocumentManager.js +0 -119
  92. package/dist/knowledge/DocumentManager.js.map +0 -1
  93. package/dist/main.d.ts +0 -1
  94. package/dist/main.js +0 -268
  95. package/dist/main.js.map +0 -1
  96. package/dist/mcp.controller.d.ts +0 -8
  97. package/dist/mcp.controller.js +0 -62
  98. package/dist/mcp.controller.js.map +0 -1
  99. package/dist/project.service.d.ts +0 -44
  100. package/dist/project.service.js +0 -299
  101. package/dist/project.service.js.map +0 -1
  102. package/dist/providers/ai-provider.interface.d.ts +0 -50
  103. package/dist/providers/ai-provider.interface.js +0 -23
  104. package/dist/providers/ai-provider.interface.js.map +0 -1
  105. package/dist/providers/base-ai.provider.d.ts +0 -50
  106. package/dist/providers/base-ai.provider.js +0 -624
  107. package/dist/providers/base-ai.provider.js.map +0 -1
  108. package/dist/providers/claude.provider.d.ts +0 -25
  109. package/dist/providers/claude.provider.js +0 -362
  110. package/dist/providers/claude.provider.js.map +0 -1
  111. package/dist/providers/codex.provider.d.ts +0 -17
  112. package/dist/providers/codex.provider.js +0 -99
  113. package/dist/providers/codex.provider.js.map +0 -1
  114. package/dist/providers/copilot.provider.d.ts +0 -25
  115. package/dist/providers/copilot.provider.js +0 -266
  116. package/dist/providers/copilot.provider.js.map +0 -1
  117. package/dist/providers/dynamic-provider.factory.d.ts +0 -55
  118. package/dist/providers/dynamic-provider.factory.js +0 -587
  119. package/dist/providers/dynamic-provider.factory.js.map +0 -1
  120. package/dist/providers/gemini.provider.d.ts +0 -22
  121. package/dist/providers/gemini.provider.js +0 -147
  122. package/dist/providers/gemini.provider.js.map +0 -1
  123. package/dist/services/agent-loader.service.d.ts +0 -29
  124. package/dist/services/agent-loader.service.js +0 -370
  125. package/dist/services/agent-loader.service.js.map +0 -1
  126. package/dist/services/auth.service.d.ts +0 -9
  127. package/dist/services/auth.service.js +0 -47
  128. package/dist/services/auth.service.js.map +0 -1
  129. package/dist/services/config-validator.service.d.ts +0 -28
  130. package/dist/services/config-validator.service.js +0 -467
  131. package/dist/services/config-validator.service.js.map +0 -1
  132. package/dist/services/config.service.d.ts +0 -45
  133. package/dist/services/config.service.js +0 -180
  134. package/dist/services/config.service.js.map +0 -1
  135. package/dist/services/context-enhancement.service.d.ts +0 -13
  136. package/dist/services/context-enhancement.service.js +0 -169
  137. package/dist/services/context-enhancement.service.js.map +0 -1
  138. package/dist/services/document-loader.service.d.ts +0 -16
  139. package/dist/services/document-loader.service.js +0 -137
  140. package/dist/services/document-loader.service.js.map +0 -1
  141. package/dist/services/help.service.d.ts +0 -5
  142. package/dist/services/help.service.js +0 -117
  143. package/dist/services/help.service.js.map +0 -1
  144. package/dist/services/intelligent-compression.service.d.ts +0 -20
  145. package/dist/services/intelligent-compression.service.js +0 -179
  146. package/dist/services/intelligent-compression.service.js.map +0 -1
  147. package/dist/services/mcp-client.service.d.ts +0 -26
  148. package/dist/services/mcp-client.service.js +0 -81
  149. package/dist/services/mcp-client.service.js.map +0 -1
  150. package/dist/services/parallel-processing.service.d.ts +0 -108
  151. package/dist/services/parallel-processing.service.js +0 -268
  152. package/dist/services/parallel-processing.service.js.map +0 -1
  153. package/dist/services/remote-agent.service.d.ts +0 -49
  154. package/dist/services/remote-agent.service.js +0 -215
  155. package/dist/services/remote-agent.service.js.map +0 -1
  156. package/dist/services/result-formatter.service.d.ts +0 -27
  157. package/dist/services/result-formatter.service.js +0 -126
  158. package/dist/services/result-formatter.service.js.map +0 -1
  159. package/dist/services/task-management.service.d.ts +0 -63
  160. package/dist/services/task-management.service.js +0 -272
  161. package/dist/services/task-management.service.js.map +0 -1
  162. package/dist/services/template.service.d.ts +0 -36
  163. package/dist/services/template.service.js +0 -195
  164. package/dist/services/template.service.js.map +0 -1
  165. package/dist/services/tool-call.service.d.ts +0 -53
  166. package/dist/services/tool-call.service.js +0 -1061
  167. package/dist/services/tool-call.service.js.map +0 -1
  168. package/dist/slack/formatters/message.formatter.d.ts +0 -25
  169. package/dist/slack/formatters/message.formatter.js +0 -246
  170. package/dist/slack/formatters/message.formatter.js.map +0 -1
  171. package/dist/slack/slack-bot.d.ts +0 -24
  172. package/dist/slack/slack-bot.js +0 -467
  173. package/dist/slack/slack-bot.js.map +0 -1
  174. package/dist/stderr.logger.d.ts +0 -8
  175. package/dist/stderr.logger.js +0 -26
  176. package/dist/stderr.logger.js.map +0 -1
  177. package/dist/tsconfig.tsbuildinfo +0 -1
  178. package/dist/utils/config-utils.d.ts +0 -15
  179. package/dist/utils/config-utils.js +0 -69
  180. package/dist/utils/config-utils.js.map +0 -1
  181. package/dist/utils/error-utils.d.ts +0 -3
  182. package/dist/utils/error-utils.js +0 -27
  183. package/dist/utils/error-utils.js.map +0 -1
  184. package/dist/utils/math-utils.d.ts +0 -3
  185. package/dist/utils/math-utils.js +0 -10
  186. package/dist/utils/math-utils.js.map +0 -1
  187. package/dist/utils/mcp-installer.d.ts +0 -20
  188. package/dist/utils/mcp-installer.js +0 -199
  189. package/dist/utils/mcp-installer.js.map +0 -1
  190. package/dist/utils/mention-parser.d.ts +0 -18
  191. package/dist/utils/mention-parser.js +0 -136
  192. package/dist/utils/mention-parser.js.map +0 -1
  193. package/dist/utils/simple-security.d.ts +0 -3
  194. package/dist/utils/simple-security.js +0 -20
  195. package/dist/utils/simple-security.js.map +0 -1
  196. package/dist/utils/stdin-utils.d.ts +0 -27
  197. package/dist/utils/stdin-utils.js +0 -130
  198. package/dist/utils/stdin-utils.js.map +0 -1
  199. package/dist/utils/string-utils.d.ts +0 -1
  200. package/dist/utils/string-utils.js +0 -10
  201. package/dist/utils/string-utils.js.map +0 -1
  202. package/dist/utils/template-processor.d.ts +0 -32
  203. package/dist/utils/template-processor.js +0 -202
  204. package/dist/utils/template-processor.js.map +0 -1
  205. package/dist/version.d.ts +0 -1
  206. package/dist/version.js +0 -17
  207. package/dist/version.js.map +0 -1
  208. package/docs/CLA.md +0 -88
  209. package/docs/agent-configuration.md +0 -364
  210. package/docs/agent-registry-strategy.md +0 -348
  211. package/docs/branding-decision-crewx.md +0 -395
  212. package/docs/claude-code-docker-guide.md +0 -264
  213. package/docs/cli-guide.md +0 -439
  214. package/docs/development.md +0 -595
  215. package/docs/diagram1.svg +0 -1
  216. package/docs/guides/agent-best-practices.md +0 -97
  217. package/docs/guides/bug-management.md +0 -600
  218. package/docs/guides/git-bug-reference.md +0 -366
  219. package/docs/mcp-integration.md +0 -187
  220. package/docs/process/development-workflow.md +0 -84
  221. package/docs/remote-agents.md +0 -555
  222. package/docs/roadmap.md +0 -528
  223. package/docs/rules/branch-protection.md +0 -40
  224. package/docs/standards/rc-versioning.md +0 -60
  225. package/docs/standards/report-structure.md +0 -67
  226. package/docs/template-variables.md +0 -382
  227. package/docs/templates.md +0 -517
  228. package/docs/tools.md +0 -583
  229. package/docs/troubleshooting.md +0 -611
  230. package/templates/agents/default.yaml +0 -938
  231. package/templates/agents/minimal.yaml +0 -25
  232. package/templates/documents/crewcode-manual.md +0 -292
  233. package/templates/versions.json +0 -19
package/bin/crewx.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Thin wrapper that forwards execution to the scoped CrewX CLI package.
5
+ */
6
+ require('@sowonai/crewx-cli');
package/package.json CHANGED
@@ -1,117 +1,19 @@
1
1
  {
2
2
  "name": "crewx",
3
- "version": "0.3.0",
4
- "license": "Apache-2.0",
5
- "description": "Bring Your Own AI(BYOA) team in Slack/IDE(MCP) with your existing subscriptions",
6
- "main": "dist/main.js",
7
- "module": "dist/main.js",
3
+ "version": "0.4.0-dev.1",
4
+ "license": "MIT",
5
+ "description": "SowonAI CrewX CLI - Bring Your Own AI(BYOA) team in Slack/IDE(MCP) with your existing subscriptions",
6
+ "private": false,
8
7
  "bin": {
9
- "crewx": "dist/main.js"
10
- },
11
- "exports": {
12
- ".": {
13
- "import": "./dist/main.js",
14
- "require": "./dist/main.js"
15
- }
8
+ "crewx": "bin/crewx.js"
16
9
  },
17
10
  "files": [
18
- "dist",
19
- "README.md",
20
- "crewx.yaml",
21
- "docs",
22
- "templates"
11
+ "bin"
23
12
  ],
24
- "repository": {
25
- "type": "git",
26
- "url": "https://github.com/sowonlabs/crewx"
27
- },
28
- "homepage": "https://github.com/sowonlabs/crewx",
29
- "bugs": {
30
- "url": "https://github.com/sowonlabs/crewx/issues"
13
+ "dependencies": {
14
+ "@sowonai/crewx-cli": "^0.4.0-dev.1"
31
15
  },
32
- "author": "SowonLabs",
33
16
  "publishConfig": {
34
17
  "access": "public"
35
- },
36
- "scripts": {
37
- "build": "nest build",
38
- "postbuild": "node -e \"const fs = require('fs'); let content = fs.readFileSync('dist/main.js', 'utf8'); const lines = content.split('\\n'); if (lines[0] === '#!/usr/bin/env node' && lines[1] === '#!/usr/bin/env node') { lines.shift(); content = lines.join('\\n'); fs.writeFileSync('dist/main.js', content); console.log('✅ Removed duplicate shebang'); } else if (!content.startsWith('#!/usr/bin/env node')) { fs.writeFileSync('dist/main.js', '#!/usr/bin/env node\\n' + content); console.log('✅ Added shebang to dist/main.js'); } else { console.log('✅ Shebang already present'); } fs.chmodSync('dist/main.js', 0o755); console.log('✅ Execute permission set');\"",
39
- "postinstall": "node -e \"const fs = require('fs'); const path = require('path'); const binPath = path.join(__dirname, 'dist', 'main.js'); try { if (fs.existsSync(binPath)) { fs.chmodSync(binPath, 0o755); console.log('✅ Execute permission set for crewx binary'); } } catch (err) { /* Silently ignore permission errors */ }\"",
40
- "build:install": "npm run build && npm install -g .",
41
- "start": "node dist/main.js",
42
- "start:mcp": "node dist/main.js mcp",
43
- "start:slack": "caffeinate -i dotenv -e .env.slack -- node dist/main.js slack --log --agent crewx_glm_dev",
44
- "dev": "dotenv -e .env.test -- nest start --watch -- --log",
45
- "dev:install": "ts-node src/main.ts --install --log",
46
- "debug": "dotenv -e .env.test -- nest start --debug --watch -- --log --protocol HTTP",
47
- "inspector": "npx @modelcontextprotocol/inspector --config inspector.config.json --server crewx",
48
- "test": "vitest run",
49
- "test:watch": "vitest",
50
- "test:ui": "vitest --ui",
51
- "cli": "npm run build && node dist/main.js",
52
- "cli:help": "npm run build && node dist/main.js",
53
- "cli:init": "npm run build && node dist/main.js init",
54
- "cli:doctor": "npm run build && node dist/main.js doctor",
55
- "cli:query": "npm run build && node dist/main.js query",
56
- "cli:execute": "npm run build && node dist/main.js execute",
57
- "mcp": "npm run build && node dist/main.js mcp",
58
- "mcp:log": "npm run build && node dist/main.js mcp --log",
59
- "prepack": "npm run build"
60
- },
61
- "dependencies": {
62
- "@modelcontextprotocol/sdk": "^1.0.0",
63
- "@nestjs/common": "^11.0.0",
64
- "@nestjs/core": "^11.0.0",
65
- "@nestjs/platform-express": "^11.0.0",
66
- "@slack/bolt": "^4.4.0",
67
- "@slack/web-api": "^7.10.0",
68
- "@sowonai/nestjs-mcp-adapter": "^0.1.3",
69
- "@types/js-yaml": "^4.0.9",
70
- "@types/mdast": "^4.0.4",
71
- "@types/unist": "^3.0.3",
72
- "ajv": "^8.17.1",
73
- "ajv-formats": "^3.0.1",
74
- "chalk": "^4.1.2",
75
- "execa": "^8.0.1",
76
- "fast-glob": "^3.3.0",
77
- "handlebars": "^4.7.8",
78
- "ignore": "^5.2.0",
79
- "js-yaml": "^4.1.0",
80
- "md-to-slack": "^1.0.0",
81
- "reflect-metadata": "^0.1.13",
82
- "remark-parse": "^11.0.0",
83
- "remark-stringify": "^11.0.0",
84
- "rxjs": "^7.8.0",
85
- "unified": "^11.0.5",
86
- "unist-util-visit": "^5.0.0",
87
- "yargs": "^17.7.0",
88
- "zod": "^3.22.0"
89
- },
90
- "devDependencies": {
91
- "@nestjs/cli": "^11.0.0",
92
- "@nestjs/schematics": "^11.0.0",
93
- "@nestjs/testing": "^11.0.0",
94
- "@types/ajv": "^0.0.5",
95
- "@types/express": "^5.0.3",
96
- "@types/node": "^20.19.19",
97
- "@types/yargs": "^17.0.0",
98
- "@vitest/ui": "^1.0.0",
99
- "dotenv-cli": "^6.0.0",
100
- "ts-loader": "^9.0.0",
101
- "ts-node": "^10.0.0",
102
- "tsconfig-paths": "^4.2.0",
103
- "typescript": "^5.0.0",
104
- "vitest": "^1.0.0"
105
- },
106
- "keywords": [
107
- "crewx",
108
- "claude",
109
- "gemini",
110
- "copilot",
111
- "mcp",
112
- "ai",
113
- "model-context-protocol",
114
- "multi-agent",
115
- "ai-collaboration"
116
- ]
18
+ }
117
19
  }
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2025 SowonLabs
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
package/README.md DELETED
@@ -1,234 +0,0 @@
1
- # CrewX
2
-
3
- > Bring Your Own AI(BYOA) team in Slack/IDE(MCP) with your existing subscriptions
4
-
5
- Transform Claude, Gemini, Codex and Copilot into a collaborative development team. No extra costs—just your existing AI subscriptions working together.
6
-
7
- ![CrewX usage overview](docs/diagram1.svg)
8
-
9
- ## Why CrewX?
10
-
11
- ### **Slack Team Collaboration** - Your AI Team in Slack
12
- Bring AI agents directly into your team's workspace:
13
- - **Team-wide AI access** - Everyone benefits from AI expertise in Slack channels
14
- - **Thread-based context** - Maintains conversation history automatically
15
- - **Multi-agent collaboration** - `@claude`, `@gemini`, `@copilot` work together in real-time
16
- - **Natural integration** - Works like chatting with team members
17
- - **Shared knowledge** - Team learns from AI interactions, not isolated sessions
18
-
19
- ### **Remote Agents** - Distributed AI Teams
20
- Connect and orchestrate CrewX instances across projects and servers:
21
- - **Cross-project experts** - Frontend dev asks backend team's API specialist agent
22
- - **Team collaboration** - Each team builds their own agents, entire org can use them
23
- - **Expert knowledge sharing** - Ask senior's code review agent, security team's audit agent anytime
24
- - **Separate but connected** - Each project keeps its own context, collaborate when needed
25
-
26
- ```yaml
27
- # Access another project's specialized agents
28
- providers:
29
- - id: backend_project
30
- type: remote
31
- location: "file:///workspace/backend-api/crewx.yaml"
32
- external_agent_id: "api_expert"
33
-
34
- # Use their expertise in your project
35
- crewx query "@api_expert design user authentication API"
36
- crewx execute "@api_expert implement OAuth flow"
37
- ```
38
-
39
- ### **Plugin Provider System** - Universal AI Integration
40
- Transform any CLI tool or AI service into an agent:
41
- - **Bring Your Own AI** - OpenAI, Anthropic, Ollama, LiteLLM, or any AI service
42
- - **Bring Your Own Tools** - jq, curl, ffmpeg, or any CLI tool becomes an agent
43
- - **Bring Your Own Framework** - Integrate LangChain, CrewAI, AutoGPT seamlessly
44
- - **No coding required** - Simple YAML configuration
45
- - **Mix and match** - Combine different AI services in one workflow
46
-
47
- ```yaml
48
- # Example: Add any AI service as a plugin
49
- providers:
50
- - id: ollama
51
- type: plugin
52
- cli_command: ollama
53
- default_model: "llama3"
54
- query_args: ["run", "{model}"]
55
- prompt_in_args: false
56
-
57
- agents:
58
- - id: "local_llama"
59
- provider: "plugin/ollama"
60
- ```
61
-
62
- ### Other Benefits
63
- - **No additional costs** - Use existing Claude Pro, Gemini, Codex or GitHub Copilot subscriptions
64
- - **Multi-agent collaboration** - Different AI models working on specialized tasks
65
- - **Parallel execution** - Multiple agents working simultaneously
66
- - **Flexible integration** - CLI, MCP server, or Slack bot
67
-
68
- ## Quick Start
69
-
70
- ```bash
71
- # Install
72
- npm install -g crewx
73
-
74
- # Initialize
75
- crewx init
76
-
77
- # Check system
78
- crewx doctor
79
-
80
- # Try it out
81
- crewx query "@claude analyze my code"
82
- crewx execute "@claude create a login component"
83
- ```
84
-
85
- ## Three Ways to Use
86
-
87
- ### Slack Mode - Team Collaboration (Recommended)
88
- ```bash
89
- # Start CrewX in your Slack workspace (read-only query mode)
90
- crewx slack
91
-
92
- # Allow agents to run execute tasks (file changes, migrations, etc.)
93
- crewx slack --mode execute
94
-
95
- # Your team can now:
96
- # - @mention AI agents in channels
97
- # - Maintain context in threads
98
- # - Share AI insights with the whole team
99
- ```
100
- 👉 **[Complete Slack Setup Guide →](./SLACK_INSTALL.md)**
101
-
102
- ### CLI Mode - Direct terminal usage
103
- ```bash
104
- crewx query "@claude review this code"
105
- crewx execute "@gemini optimize performance"
106
- crewx query "@claude @gemini @copilot compare approaches"
107
- ```
108
-
109
- ### MCP Server Mode - IDE integration
110
- ```bash
111
- crewx mcp # VS Code, Claude Desktop, Cursor
112
- ```
113
-
114
- ## Supported AI Tools
115
-
116
- - **Claude Code** - Advanced reasoning and analysis
117
- - **Gemini CLI** - Real-time web access
118
- - **GitHub Copilot CLI** - Specialized coding assistant
119
- - **Codex CLI** - Open inference with workspace-aware execution
120
-
121
- ## Basic Usage
122
-
123
- ```bash
124
- # Read-only analysis
125
- crewx query "@claude explain this function"
126
-
127
- # File creation/modification
128
- crewx execute "@claude implement user authentication"
129
-
130
- # Parallel tasks
131
- crewx execute "@claude create tests" "@gemini write docs"
132
-
133
- # Pipeline workflows
134
- crewx query "@architect design API" | \
135
- crewx execute "@backend implement it"
136
-
137
- # Thread-based conversations
138
- crewx query "@claude design login" --thread "auth-feature"
139
- crewx execute "@gemini implement it" --thread "auth-feature"
140
-
141
- # Codex CLI agent
142
- crewx query "@codex draft a release checklist"
143
- ```
144
-
145
- Built-in CLI providers:
146
-
147
- - `cli/claude`
148
- - `cli/gemini`
149
- - `cli/copilot`
150
- - `cli/codex`
151
-
152
- ## Create Custom Agents
153
-
154
- ```bash
155
- # Let @crewx create agents for you
156
- crewx execute "@crewx Create a Python expert agent"
157
- crewx execute "@crewx Create a React specialist with TypeScript"
158
- crewx execute "@crewx Create a DevOps agent for Docker"
159
-
160
- # Test your new agent
161
- crewx query "@python_expert Review my code"
162
- ```
163
-
164
- ## Agent Configuration
165
-
166
- Create `crewx.yaml` (or `agents.yaml` for backward compatibility):
167
-
168
- ```yaml
169
- agents:
170
- - id: "frontend_dev"
171
- name: "React Expert"
172
- provider: "cli/claude" # Built-in CLI provider
173
- working_directory: "./src"
174
- inline:
175
- type: "agent"
176
- system_prompt: |
177
- You are a senior React developer.
178
- Provide detailed examples and best practices.
179
- ```
180
-
181
- > **Note:** `crewx.yaml` is the preferred configuration file name. The legacy `agents.yaml` is still supported for backward compatibility. If both files exist, `crewx.yaml` takes priority.
182
-
183
- ## Remote Agents
184
-
185
- Connect to other CrewX instances and delegate tasks across projects or servers.
186
-
187
- **Quick Example:**
188
- ```bash
189
- # Add a remote CrewX instance
190
- providers:
191
- - id: backend_server
192
- type: remote
193
- location: "http://api.example.com:3000"
194
- external_agent_id: "backend_team"
195
-
196
- agents:
197
- - id: "remote_backend"
198
- provider: "remote/backend_server"
199
-
200
- # Use it like any other agent
201
- crewx query "@remote_backend check API status"
202
- ```
203
-
204
- **Use Cases:**
205
- - **Project isolation** - Separate configurations for different codebases
206
- - **Distributed teams** - Each team runs their own CrewX with specialized agents
207
- - **Resource sharing** - Access powerful compute resources remotely
208
- - **Multi-project coordination** - Orchestrate work across multiple projects
209
-
210
- 👉 **[Remote Agents Guide →](./docs/remote-agents.md)** for detailed setup and configuration
211
-
212
- ## Documentation
213
-
214
- - [📖 CLI Guide](docs/cli-guide.md) - Complete CLI reference
215
- - [🔌 MCP Integration](docs/mcp-integration.md) - IDE setup and MCP servers
216
- - [⚙️ Agent Configuration](docs/agent-configuration.md) - Custom agents and advanced config
217
- - [🌐 Remote Agents](docs/remote-agents.md) - Connect to remote CrewX instances
218
- - [📚 Template System](docs/templates.md) - Knowledge management and dynamic prompts for agents
219
- - [📝 Template Variables](docs/template-variables.md) - Dynamic variables in agent configurations
220
- - [🔧 Tool System](docs/tools.md) - Tool integration and creation guide
221
- - [🔧 Troubleshooting](docs/troubleshooting.md) - Common issues and solutions
222
- - [💬 Slack Integration](SLACK_INSTALL.md) - Slack bot setup
223
-
224
- ## License
225
-
226
- Apache-2.0 License - Copyright (c) 2025 SowonLabs
227
-
228
- ## Contributing
229
-
230
- We welcome contributions! Please read our [Contributing Guide](CONTRIBUTING.md) and sign our [Contributor License Agreement (CLA)](docs/CLA.md) before submitting pull requests.
231
-
232
- ---
233
-
234
- Built by [SowonLabs](https://github.com/sowonlabs)