@crewx/cli 0.8.7-rc.7 → 0.8.7-rc.9
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.
- package/dist/commands/init.js +33 -0
- package/package.json +7 -7
package/dist/commands/init.js
CHANGED
|
@@ -13,6 +13,23 @@ const fs_1 = require("fs");
|
|
|
13
13
|
const path_1 = require("path");
|
|
14
14
|
const repository_1 = require("@crewx/sdk/repository");
|
|
15
15
|
const install_1 = require("./hook/install");
|
|
16
|
+
const CREWX_MARKER = '# CrewX runtime';
|
|
17
|
+
const CREWX_GITIGNORE = `# CrewX runtime
|
|
18
|
+
.crewx/
|
|
19
|
+
|
|
20
|
+
# Memory runtime state (regenerable from entries/)
|
|
21
|
+
memory/*/.dirty-summary
|
|
22
|
+
memory/*/graph.json
|
|
23
|
+
memory/*/summary.md
|
|
24
|
+
|
|
25
|
+
# Skill runtime
|
|
26
|
+
skills/*/.data/
|
|
27
|
+
skills/*/sessions/
|
|
28
|
+
skills/*/logs/
|
|
29
|
+
skills/*/.crewx/
|
|
30
|
+
|
|
31
|
+
# OS
|
|
32
|
+
.DS_Store`.trim();
|
|
16
33
|
const DEFAULT_AGENTS = [
|
|
17
34
|
{
|
|
18
35
|
id: 'planner',
|
|
@@ -167,5 +184,21 @@ async function handleInit(opts) {
|
|
|
167
184
|
catch (e) {
|
|
168
185
|
errors.push(`WORKSPACE_REGISTER_FAILED: ${e.message}`);
|
|
169
186
|
}
|
|
187
|
+
const gitignorePath = (0, path_1.join)(target, '.gitignore');
|
|
188
|
+
if (!(0, fs_1.existsSync)(gitignorePath)) {
|
|
189
|
+
(0, fs_1.writeFileSync)(gitignorePath, CREWX_GITIGNORE + '\n', 'utf-8');
|
|
190
|
+
console.log('✅ .gitignore updated with CrewX entries');
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
const existing = (0, fs_1.readFileSync)(gitignorePath, 'utf-8');
|
|
194
|
+
if (!existing.includes(CREWX_MARKER)) {
|
|
195
|
+
const separator = existing.endsWith('\n') ? '\n' : '\n\n';
|
|
196
|
+
(0, fs_1.appendFileSync)(gitignorePath, separator + CREWX_GITIGNORE + '\n', 'utf-8');
|
|
197
|
+
console.log('✅ .gitignore updated with CrewX entries');
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
console.log('ℹ .gitignore already contains CrewX entries');
|
|
201
|
+
}
|
|
202
|
+
}
|
|
170
203
|
return { yamlCreated, hookInstalled, errors, skippedReason, workspaceId, slug };
|
|
171
204
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/cli",
|
|
3
|
-
"version": "0.8.7-rc.
|
|
3
|
+
"version": "0.8.7-rc.9",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0"
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@crewx/adapter-slack": "0.1.4",
|
|
25
25
|
"better-sqlite3": "*",
|
|
26
|
-
"@crewx/
|
|
27
|
-
"@crewx/sdk": "0.8.7-rc.7",
|
|
26
|
+
"@crewx/sdk": "0.8.7-rc.9",
|
|
28
27
|
"@crewx/memory": "0.1.12",
|
|
29
|
-
"@crewx/workflow": "0.3.18",
|
|
30
|
-
"@crewx/cron": "0.1.8",
|
|
31
|
-
"@crewx/shared": "0.0.5",
|
|
32
28
|
"@crewx/doc": "0.1.8",
|
|
33
29
|
"@crewx/skill": "0.1.10",
|
|
34
|
-
"@crewx/
|
|
30
|
+
"@crewx/search": "0.1.9",
|
|
31
|
+
"@crewx/wbs": "0.1.9",
|
|
32
|
+
"@crewx/workflow": "0.3.18",
|
|
33
|
+
"@crewx/cron": "0.1.8",
|
|
34
|
+
"@crewx/shared": "0.0.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/better-sqlite3": "*",
|