@crewx/cli 0.9.0-rc.104 → 0.9.0-rc.105

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.
@@ -56,6 +56,7 @@ async function createCliCrewx(configPath = process.env.CREWX_CONFIG ?? 'crewx.ya
56
56
  }
57
57
  const crewx = await sdk_1.Crewx.loadYaml(yamlPath, {
58
58
  remoteFactory: createCliCrewx,
59
+ inheritWorktreeOwner: true,
59
60
  additionalArgsProvider: (0, codex_writable_roots_1.composeAdditionalArgsProviders)((0, codex_writable_roots_1.createCodexWritableRootsProvider)(), (0, codex_writable_roots_1.createCodexSkipGitRepoCheckProvider)(skipRoot)),
60
61
  });
61
62
  (0, register_builtin_tools_1.registerBuiltinToolsIfNeeded)(crewx);
@@ -66,6 +67,19 @@ async function createCliCrewx(configPath = process.env.CREWX_CONFIG ?? 'crewx.ya
66
67
  await crewx.use(new plugins_1.SqliteTracingPlugin({
67
68
  version: version_1.CLI_VERSION,
68
69
  runnerIdentity: (0, inherited_trace_1.consumeInheritedRunnerIdentity)(),
70
+ inheritWorktreeOwner: true,
69
71
  }));
72
+ const projectRoot = yamlPath !== undefined ? (0, path_1.dirname)(yamlPath) : workspaceRoot;
73
+ const normalizedProjectRoot = (0, sdk_1.normalizeWorkspacePath)(projectRoot);
74
+ const ownerPath = (0, sdk_1.resolveWorkspaceOwnerPath)(projectRoot);
75
+ if (ownerPath !== normalizedProjectRoot
76
+ && ((0, fs_1.existsSync)((0, path_1.join)(ownerPath, 'crewx.yaml')) || (0, fs_1.existsSync)((0, path_1.join)(ownerPath, 'crewx.yml')))) {
77
+ try {
78
+ new repository_1.WorkspaceRepository().registerWorkspace(ownerPath);
79
+ }
80
+ catch {
81
+ // Workspace registration is visibility support; never make CLI execution fatal.
82
+ }
83
+ }
70
84
  return crewx;
71
85
  }
@@ -407,7 +407,8 @@ async function runDetached(command, filteredArgs, reason) {
407
407
  traceId: taskTrace,
408
408
  command: process.argv.join(' '),
409
409
  metadata: Object.keys(parsedMetadata).length > 0 ? JSON.stringify(parsedMetadata) : null,
410
- workspaceId: hasWorkspaceConfig ? (0, sdk_1.hashWorkspaceId)(workspacePath) : null,
410
+ workspaceId: hasWorkspaceConfig ? (0, sdk_1.hashWorkspaceId)((0, sdk_1.resolveWorkspaceOwnerPath)(workspacePath)) : null,
411
+ cwd: (0, sdk_1.normalizeWorkspacePath)(workspacePath),
411
412
  projectId: null,
412
413
  platform: 'cli',
413
414
  crewxVersion: version_1.CLI_VERSION,
@@ -89,7 +89,7 @@ async function handleStop(args, invokedAs = 'stop') {
89
89
  const repo = new repository_1.TaskRepository();
90
90
  const stopOne = async (id, withFooter) => {
91
91
  const startedAt = Date.now();
92
- const result = await (0, sdk_1.stopTask)(repo, id, { graceMs });
92
+ const result = await (0, sdk_1.stopTask)(repo, id, { graceMs, origin: 'cli' });
93
93
  const exitCode = reportResult(id, result, Date.now() - startedAt, graceMs);
94
94
  if (withFooter && (result.status === 'stopped' || result.status === 'not_running')) {
95
95
  (0, cal_1.writeCalFooter)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/cli",
3
- "version": "0.9.0-rc.104",
3
+ "version": "0.9.0-rc.105",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
@@ -25,19 +25,19 @@
25
25
  "better-sqlite3": "*",
26
26
  "dotenv": "17.2.3",
27
27
  "isomorphic-git": "1.37.1",
28
- "@crewx/knowledge-core": "0.1.17-rc.114",
29
- "@crewx/search": "0.1.10-rc.100",
30
- "@crewx/sdk": "0.9.0-rc.104",
31
- "@crewx/wbs": "0.1.10-rc.130",
32
- "@crewx/doc": "0.1.9-rc.97",
33
- "@crewx/memory": "0.1.23-rc.121",
34
- "@crewx/cron": "0.1.10-rc.139",
35
- "@crewx/workflow": "0.3.22-rc.150",
28
+ "@crewx/sdk": "0.9.0-rc.105",
29
+ "@crewx/memory": "0.1.23-rc.122",
30
+ "@crewx/doc": "0.1.9-rc.98",
31
+ "@crewx/cron": "0.1.10-rc.140",
32
+ "@crewx/wbs": "0.1.10-rc.131",
33
+ "@crewx/search": "0.1.10-rc.101",
36
34
  "@crewx/skill": "0.1.20",
37
- "@crewx/wi": "0.1.10-rc.124",
38
- "@crewx/shared": "0.0.6",
39
- "@crewx/notify": "0.1.0-rc.75",
40
- "@crewx/chromex": "0.1.0-rc.137"
35
+ "@crewx/workflow": "0.3.22-rc.151",
36
+ "@crewx/wi": "0.1.10-rc.125",
37
+ "@crewx/notify": "0.1.0-rc.76",
38
+ "@crewx/knowledge-core": "0.1.17-rc.115",
39
+ "@crewx/chromex": "0.1.0-rc.138",
40
+ "@crewx/shared": "0.0.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/better-sqlite3": "*",