@principal-ai/subsystems-studio 0.20.48 → 0.20.50
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.
|
@@ -11,11 +11,40 @@
|
|
|
11
11
|
|
|
12
12
|
const { spawn } = require('node:child_process');
|
|
13
13
|
const { existsSync } = require('node:fs');
|
|
14
|
-
const {
|
|
14
|
+
const { createRequire } = require('node:module');
|
|
15
|
+
const { delimiter, dirname, join } = require('node:path');
|
|
15
16
|
|
|
16
17
|
const platform = process.platform;
|
|
17
18
|
const arch = process.arch;
|
|
18
19
|
|
|
20
|
+
/**
|
|
21
|
+
* The app's daemon bundle is extracted outside this npm package, so its
|
|
22
|
+
* `@parcel/watcher` require can no longer walk up to the installed
|
|
23
|
+
* node_modules. Point NODE_PATH at the directory that holds Parcel so the
|
|
24
|
+
* daemon loads the native watcher instead of falling back to Chokidar.
|
|
25
|
+
*/
|
|
26
|
+
function parcelNodeModules() {
|
|
27
|
+
try {
|
|
28
|
+
const serverPackage = require.resolve(
|
|
29
|
+
'@principal-ai/repository-monitoring-server/package.json',
|
|
30
|
+
);
|
|
31
|
+
const serverRequire = createRequire(serverPackage);
|
|
32
|
+
const watcherPackage = serverRequire.resolve('@parcel/watcher/package.json');
|
|
33
|
+
// .../node_modules/@parcel/watcher/package.json -> .../node_modules
|
|
34
|
+
return dirname(dirname(dirname(watcherPackage)));
|
|
35
|
+
} catch {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const parcelModules = parcelNodeModules();
|
|
41
|
+
const env = parcelModules
|
|
42
|
+
? {
|
|
43
|
+
...process.env,
|
|
44
|
+
NODE_PATH: [parcelModules, process.env.NODE_PATH].filter(Boolean).join(delimiter),
|
|
45
|
+
}
|
|
46
|
+
: process.env;
|
|
47
|
+
|
|
19
48
|
if (platform !== 'darwin' || arch !== 'arm64') {
|
|
20
49
|
process.stderr.write(
|
|
21
50
|
`subsystems-studio: no prebuilt bundle for ${platform}-${arch} yet. Currently only darwin-arm64 is shipped.\n`,
|
|
@@ -35,7 +64,7 @@ if (!existsSync(launcher)) {
|
|
|
35
64
|
|
|
36
65
|
const child = spawn(launcher, process.argv.slice(2), {
|
|
37
66
|
stdio: 'inherit',
|
|
38
|
-
env
|
|
67
|
+
env,
|
|
39
68
|
});
|
|
40
69
|
|
|
41
70
|
child.on('error', (err) => {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principal-ai/subsystems-studio",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.50",
|
|
4
4
|
"description": "Subsystems Studio — desktop host for subsystem models, trails, tours, and agent sessions. Pairs with the principal-ai CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"os": [
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@principal-ai/codebase-composition": "0.2.58",
|
|
84
84
|
"@principal-ai/principal-view-core": "^0.28.14",
|
|
85
85
|
"@principal-ai/principal-view-react": "^0.15.10",
|
|
86
|
-
"@principal-ai/repository-monitoring-server": "^4.1.
|
|
86
|
+
"@principal-ai/repository-monitoring-server": "^4.1.3",
|
|
87
87
|
"@principal-ai/subsystems-core": "^0.51.5",
|
|
88
88
|
"@principal-ai/subsystems-react": "^0.56.34",
|
|
89
89
|
"@react-spring/three": "^10.1.2",
|