@dmsdc-ai/aterm 0.1.11 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aterm",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Native aterm launcher package",
5
5
  "type": "module",
6
6
  "main": "./bin/aterm.js",
@@ -17,11 +17,12 @@
17
17
  "package.json"
18
18
  ],
19
19
  "optionalDependencies": {
20
- "@dmsdc-ai/aterm-darwin-arm64": "0.1.11"
20
+ "@dmsdc-ai/aterm-darwin-arm64": "0.1.12"
21
21
  },
22
22
  "dependencies": {
23
23
  "@dmsdc-ai/aigentry-brain": "latest",
24
24
  "@dmsdc-ai/aigentry-deliberation": "latest",
25
+ "@dmsdc-ai/aigentry-devkit": "latest",
25
26
  "@dmsdc-ai/aigentry-telepty": "latest",
26
27
  "blessed": "^0.1.81",
27
28
  "prompts": "^2.4.2"
@@ -146,10 +146,28 @@ function installNativeBundle() {
146
146
 
147
147
  }
148
148
 
149
+ function runDevkitBootstrap() {
150
+ try {
151
+ const devkitPath = require.resolve('@dmsdc-ai/aigentry-devkit');
152
+ const devkitRoot = path.dirname(devkitPath);
153
+ const bootstrapPath = path.join(devkitRoot, 'bootstrap.js');
154
+ if (fs.existsSync(bootstrapPath)) {
155
+ const { execFileSync } = require('node:child_process');
156
+ execFileSync(process.execPath, [bootstrapPath], {
157
+ stdio: 'inherit',
158
+ env: { ...process.env, AIGENTRY_HOME: resolveInstallHomeDir() },
159
+ });
160
+ }
161
+ } catch {
162
+ // devkit bootstrap is best-effort; don't block install
163
+ }
164
+ }
165
+
149
166
  function main() {
150
167
  const plan = buildDefaultPlan();
151
168
  applyInstallPlan(plan);
152
169
  installNativeBundle();
170
+ runDevkitBootstrap();
153
171
  }
154
172
 
155
173
  main();