@dmsdc-ai/aterm 0.1.10 → 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.10",
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.10"
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();
@@ -103,6 +103,7 @@ function buildConfigPatch(context, answers) {
103
103
  connect_on_launch: answers.tailscaleConnect,
104
104
  },
105
105
  ai: {
106
+ defaultCLI: answers.defaultCLI,
106
107
  detected_clis: context.cliStatus,
107
108
  },
108
109
  };
@@ -145,6 +146,7 @@ export async function runFirstRunWizard(context) {
145
146
  const defaultResponses = {
146
147
  defaultShell: 'zsh',
147
148
  defaultWorkspace: workspaceChoices[0]?.value ?? 'home',
149
+ defaultCLI: context.cliStatus.claude ? 'claude' : context.cliStatus.codex ? 'codex' : context.cliStatus.gemini ? 'gemini' : 'none',
148
150
  tailscaleConnect: false,
149
151
  };
150
152
  let cancelled = false;
@@ -169,6 +171,18 @@ export async function runFirstRunWizard(context) {
169
171
  choices: workspaceChoices,
170
172
  initial: 0,
171
173
  },
174
+ {
175
+ type: 'select',
176
+ name: 'defaultCLI',
177
+ message: 'Default AI CLI for orchestrator workspace',
178
+ choices: [
179
+ { title: 'claude', value: 'claude', disabled: !context.cliStatus.claude },
180
+ { title: 'codex', value: 'codex', disabled: !context.cliStatus.codex },
181
+ { title: 'gemini', value: 'gemini', disabled: !context.cliStatus.gemini },
182
+ { title: 'none (plain zsh)', value: 'none' },
183
+ ],
184
+ initial: context.cliStatus.claude ? 0 : context.cliStatus.codex ? 1 : context.cliStatus.gemini ? 2 : 3,
185
+ },
172
186
  {
173
187
  type: 'toggle',
174
188
  name: 'tailscaleConnect',
@@ -290,6 +304,7 @@ export async function completeFirstRunWizard(context, wizardResult) {
290
304
  'aterm setup is complete.',
291
305
  '',
292
306
  `Shell: ${wizardResult.summary.defaultShell}`,
307
+ `AI CLI: ${wizardResult.summary.defaultCLI}`,
293
308
  `Workspace: ${wizardResult.summary.defaultWorkspace}`,
294
309
  `Tailscale connect: ${wizardResult.summary.tailscaleConnect ? 'yes' : 'no'}`,
295
310
  ]);