@shepai/cli 1.41.0 → 1.41.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.
- package/dist/src/presentation/web/app/actions/open-folder.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-folder.js +5 -4
- package/dist/src/presentation/web/app/actions/open-shell.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-shell.js +5 -4
- package/dist/src/presentation/web/lib/version.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/version.js +3 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/cache/.previewinfo +1 -1
- package/web/.next/cache/.rscinfo +1 -1
- package/web/.next/cache/.tsbuildinfo +1 -1
- package/web/.next/cache/config.json +3 -3
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/page.js +1 -1
- package/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page.js +1 -1
- package/web/.next/server/app/version/page.js.nft.json +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__03a0dba7._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__03a0dba7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__77c0dfc4._.js +9 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__77c0dfc4._.js.map +1 -0
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +10 -10
- package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/page/server-reference-manifest.json +9 -9
- package/web/.next/standalone/src/presentation/web/.next/server/app/page.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__03a0dba7._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__77c0dfc4._.js +9 -0
- package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +10 -10
- package/web/.next/standalone/src/presentation/web/app/actions/open-folder.ts +5 -4
- package/web/.next/standalone/src/presentation/web/app/actions/open-shell.ts +5 -4
- package/web/.next/standalone/src/presentation/web/lib/version.ts +4 -2
- package/web/.next/standalone/src/presentation/web/server.js +1 -1
- package/web/.next/static/chunks/{be3b7ed5ace25bc5.js → 5ac5e119f2c50fe5.js} +1 -1
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__19354aea._.js +0 -9
- package/web/.next/server/chunks/ssr/[root-of-the-server]__19354aea._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f12b60be._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f12b60be._.js.map +0 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__19354aea._.js +0 -9
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__f12b60be._.js +0 -3
- /package/web/.next/static/{GPVcc9EGdqEYO3zHqy-pA → qwpWWdjIzP2dEFkcjelT-}/_buildManifest.js +0 -0
- /package/web/.next/static/{GPVcc9EGdqEYO3zHqy-pA → qwpWWdjIzP2dEFkcjelT-}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{GPVcc9EGdqEYO3zHqy-pA → qwpWWdjIzP2dEFkcjelT-}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-folder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-folder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open-folder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-folder.ts"],"names":[],"mappings":"AAMA,wBAAsB,UAAU,CAC9B,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAoC9D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use server';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
|
+
import { platform } from 'node:os';
|
|
3
4
|
import { spawn } from 'node:child_process';
|
|
4
5
|
export async function openFolder(repositoryPath) {
|
|
5
6
|
if (!repositoryPath?.startsWith('/')) {
|
|
@@ -9,15 +10,15 @@ export async function openFolder(repositoryPath) {
|
|
|
9
10
|
if (!existsSync(repositoryPath)) {
|
|
10
11
|
return { success: false, error: 'Directory not found' };
|
|
11
12
|
}
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
13
|
+
const currentPlatform = platform();
|
|
14
|
+
if (currentPlatform === 'darwin') {
|
|
14
15
|
const child = spawn('open', [repositoryPath], {
|
|
15
16
|
detached: true,
|
|
16
17
|
stdio: 'ignore',
|
|
17
18
|
});
|
|
18
19
|
child.unref();
|
|
19
20
|
}
|
|
20
|
-
else if (
|
|
21
|
+
else if (currentPlatform === 'linux') {
|
|
21
22
|
const child = spawn('xdg-open', [repositoryPath], {
|
|
22
23
|
detached: true,
|
|
23
24
|
stdio: 'ignore',
|
|
@@ -27,7 +28,7 @@ export async function openFolder(repositoryPath) {
|
|
|
27
28
|
else {
|
|
28
29
|
return {
|
|
29
30
|
success: false,
|
|
30
|
-
error: `Unsupported platform: ${
|
|
31
|
+
error: `Unsupported platform: ${currentPlatform}. Folder open is supported on macOS and Linux only.`,
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
return { success: true, path: repositoryPath };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-shell.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-shell.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open-shell.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-shell.ts"],"names":[],"mappings":"AAQA,UAAU,cAAc;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,SAAS,CAC7B,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA0C9E"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use server';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
|
+
import { platform } from 'node:os';
|
|
3
4
|
import { spawn } from 'node:child_process';
|
|
4
5
|
import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
|
|
5
6
|
import { computeWorktreePath } from '../../../../../packages/core/src/infrastructure/services/ide-launchers/compute-worktree-path.js';
|
|
@@ -15,15 +16,15 @@ export async function openShell(input) {
|
|
|
15
16
|
if (!existsSync(targetPath)) {
|
|
16
17
|
return { success: false, error: `Path does not exist: ${targetPath}` };
|
|
17
18
|
}
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
19
|
+
const currentPlatform = platform();
|
|
20
|
+
if (currentPlatform === 'darwin') {
|
|
20
21
|
const child = spawn('open', ['-a', 'Terminal', targetPath], {
|
|
21
22
|
detached: true,
|
|
22
23
|
stdio: 'ignore',
|
|
23
24
|
});
|
|
24
25
|
child.unref();
|
|
25
26
|
}
|
|
26
|
-
else if (
|
|
27
|
+
else if (currentPlatform === 'linux') {
|
|
27
28
|
const child = spawn('x-terminal-emulator', [`--working-directory=${targetPath}`], {
|
|
28
29
|
detached: true,
|
|
29
30
|
stdio: 'ignore',
|
|
@@ -33,7 +34,7 @@ export async function openShell(input) {
|
|
|
33
34
|
else {
|
|
34
35
|
return {
|
|
35
36
|
success: false,
|
|
36
|
-
error: `Unsupported platform: ${
|
|
37
|
+
error: `Unsupported platform: ${currentPlatform}. Shell launch is supported on macOS and Linux only.`,
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
return { success: true, path: targetPath, shell };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,uEAAuE;AACvE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iCAAiC;AACjC,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAM5C;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAM1C"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* The VersionInfo shape mirrors src/domain/value-objects/version-info.ts
|
|
10
10
|
* from the CLI domain layer.
|
|
11
11
|
*/
|
|
12
|
+
import { arch, platform } from 'node:os';
|
|
12
13
|
/**
|
|
13
14
|
* Get version info from environment variables.
|
|
14
15
|
* Falls back to defaults if not set.
|
|
@@ -27,7 +28,7 @@ export function getVersionInfo() {
|
|
|
27
28
|
export function getSystemInfo() {
|
|
28
29
|
return {
|
|
29
30
|
nodeVersion: process.version,
|
|
30
|
-
platform:
|
|
31
|
-
arch:
|
|
31
|
+
platform: platform(),
|
|
32
|
+
arch: arch(),
|
|
32
33
|
};
|
|
33
34
|
}
|