@dmsdc-ai/aterm 0.1.10 → 0.1.11
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 +2 -2
- package/scripts/tui-installer.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmsdc-ai/aterm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Native aterm launcher package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./bin/aterm.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"package.json"
|
|
18
18
|
],
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@dmsdc-ai/aterm-darwin-arm64": "0.1.
|
|
20
|
+
"@dmsdc-ai/aterm-darwin-arm64": "0.1.11"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@dmsdc-ai/aigentry-brain": "latest",
|
package/scripts/tui-installer.js
CHANGED
|
@@ -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
|
]);
|