@crewx/cli 0.8.7-rc.6 → 0.8.7-rc.8

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.
@@ -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.6",
3
+ "version": "0.8.7-rc.8",
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/sdk": "0.8.7-rc.6",
26
+ "@crewx/sdk": "0.8.7-rc.8",
27
27
  "@crewx/memory": "0.1.12",
28
- "@crewx/cron": "0.1.8",
29
28
  "@crewx/wbs": "0.1.9",
30
- "@crewx/skill": "0.1.10",
31
- "@crewx/shared": "0.0.5",
32
- "@crewx/search": "0.1.9",
33
29
  "@crewx/doc": "0.1.8",
34
- "@crewx/workflow": "0.3.18"
30
+ "@crewx/search": "0.1.9",
31
+ "@crewx/cron": "0.1.8",
32
+ "@crewx/workflow": "0.3.18",
33
+ "@crewx/skill": "0.1.10",
34
+ "@crewx/shared": "0.0.5"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/better-sqlite3": "*",