crewx 0.8.7-rc.5 → 0.8.7-rc.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.
@@ -206,10 +206,13 @@ let DocumentService = class DocumentService {
206
206
  */
207
207
  appendToCrewxYaml(yamlPath, key, relPath) {
208
208
  const raw = (0, fs_1.readFileSync)(yamlPath, 'utf-8');
209
- // Locate the documents: top-level key
210
- const docsMatch = /^documents:\s*$/m.exec(raw);
209
+ // Locate the documents: top-level key (allow inline comments)
210
+ const docsMatch = /^documents:\s*(#.*)?$/m.exec(raw);
211
211
  if (!docsMatch || docsMatch.index === undefined) {
212
- throw new common_1.BadRequestException('documents: section not found in crewx.yaml');
212
+ const separator = raw.endsWith('\n') ? '' : '\n';
213
+ const newEntry = `${separator}\ndocuments:\n ${key}:\n path: ${relPath}\n`;
214
+ (0, fs_1.writeFileSync)(yamlPath, raw + newEntry, 'utf-8');
215
+ return;
213
216
  }
214
217
  // Content starts right after "documents:\n"
215
218
  const docsContentStart = docsMatch.index + docsMatch[0].length + 1; // +1 for '\n'
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crewx",
3
- "version": "0.8.7-rc.5",
3
+ "version": "0.8.7-rc.6",
4
4
  "description": "CrewX — AI agent team dashboard with Electron UI and CLI (Web + Electron + Global CLI)",
5
5
  "main": "server.js",
6
6
  "bin": {
@@ -69,17 +69,17 @@
69
69
  "wink-nlp-utils": "2.1.0",
70
70
  "yargs": "17.7.0",
71
71
  "zod": "3.25.76",
72
- "@crewx/cli": "0.8.7-rc.5",
72
+ "@crewx/cli": "0.8.7-rc.6",
73
73
  "@crewx/doc": "0.1.8",
74
74
  "@crewx/knowledge-core": "0.1.7",
75
- "@crewx/memory": "0.1.12",
76
75
  "@crewx/cron": "0.1.8",
77
- "@crewx/sdk": "0.8.7-rc.5",
78
- "@crewx/shared": "0.0.5",
76
+ "@crewx/sdk": "0.8.7-rc.6",
77
+ "@crewx/search": "0.1.9",
79
78
  "@crewx/skill": "0.1.10",
80
79
  "@crewx/workflow": "0.3.18",
80
+ "@crewx/shared": "0.0.5",
81
81
  "@crewx/wbs": "0.1.9",
82
- "@crewx/search": "0.1.9"
82
+ "@crewx/memory": "0.1.12"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@ccusage/codex": "0.0.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/cli",
3
- "version": "0.8.7-rc.5",
3
+ "version": "0.8.7-rc.6",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"