@jaromil/gestalt 0.0.0-stage → 0.15.0
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/LICENSE +661 -0
- package/README.md +55 -2
- package/bin/gestalt +14 -0
- package/lib/gestalt +7021 -0
- package/package.json +44 -4
- package/postinstall.mjs +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaromil/gestalt",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"description": "Manage Gestalt's isolated Codex profile, agent skills and Mobile installation",
|
|
5
|
+
"license": "AGPL-3.0-or-later",
|
|
6
|
+
"author": "Dyne.org foundation",
|
|
7
|
+
"homepage": "https://dyne.github.io/gestalt/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/dyne/gestalt.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/dyne/gestalt/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"gestalt",
|
|
17
|
+
"codex",
|
|
18
|
+
"agents",
|
|
19
|
+
"cli"
|
|
20
|
+
],
|
|
21
|
+
"bin": {
|
|
22
|
+
"gestalt": "bin/gestalt"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/gestalt",
|
|
26
|
+
"lib/gestalt",
|
|
27
|
+
"postinstall.mjs",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"postinstall": "node postinstall.mjs"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=24.0.0"
|
|
36
|
+
},
|
|
37
|
+
"os": [
|
|
38
|
+
"linux",
|
|
39
|
+
"darwin"
|
|
40
|
+
],
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public",
|
|
43
|
+
"registry": "https://registry.npmjs.org/"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "08a8ef8b77ef4b626a4d5bfd6b254bdc13482362"
|
|
46
|
+
}
|
package/postinstall.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
|
|
4
|
+
// Local dependency installs and npx inspection do not provision a user profile.
|
|
5
|
+
if ((process.env.npm_config_global ?? process.env.NPM_CONFIG_GLOBAL) === 'true') {
|
|
6
|
+
// A global install must not make the delegated runtime's npm installs global
|
|
7
|
+
// or redirect their explicit prefixes into this package's installation.
|
|
8
|
+
const environment = { ...process.env };
|
|
9
|
+
for (const key of Object.keys(environment)) {
|
|
10
|
+
if (/^npm_config_(?:global|prefix|location|workspace|workspaces|include_workspace_root)$/i.test(key))
|
|
11
|
+
delete environment[key];
|
|
12
|
+
}
|
|
13
|
+
environment.npm_config_global = 'false';
|
|
14
|
+
const result = spawnSync('bash', [fileURLToPath(new URL('./bin/gestalt', import.meta.url)), 'agents', 'install'], {
|
|
15
|
+
env: environment,
|
|
16
|
+
stdio: 'inherit',
|
|
17
|
+
});
|
|
18
|
+
if (result.error || result.status !== 0) {
|
|
19
|
+
console.error('gestalt: Agents setup failed. Ensure Codex, Bash and Node.js 24+ are installed, then retry npm install -g @jaromil/gestalt. Existing installations can run: gestalt agents install');
|
|
20
|
+
process.exitCode = result.status || 1;
|
|
21
|
+
}
|
|
22
|
+
}
|