genbox 1.0.147 → 1.0.148
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/dist/commands/attach.js +10 -5
- package/dist/index.js +0 -0
- package/package.json +12 -13
package/dist/commands/attach.js
CHANGED
|
@@ -102,16 +102,19 @@ async function listTmuxSessions(ipAddress, keyPath) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
async function selectSession(sessions, allowNew = true) {
|
|
105
|
-
const choices =
|
|
106
|
-
name: `${s.name}${s.attached ? chalk_1.default.green(' (attached)') : ''} ${chalk_1.default.dim(`- ${s.windows} window(s), started ${s.created}`)}`,
|
|
107
|
-
value: s.name,
|
|
108
|
-
}));
|
|
105
|
+
const choices = [];
|
|
109
106
|
if (allowNew) {
|
|
110
|
-
choices.
|
|
107
|
+
choices.push({
|
|
111
108
|
name: chalk_1.default.green('+ Create new Claude session'),
|
|
112
109
|
value: '__new__',
|
|
113
110
|
});
|
|
114
111
|
}
|
|
112
|
+
for (const s of sessions) {
|
|
113
|
+
choices.push({
|
|
114
|
+
name: `${s.name}${s.attached ? chalk_1.default.green(' (attached)') : ''} ${chalk_1.default.dim(`- ${s.windows} window(s), started ${s.created}`)}`,
|
|
115
|
+
value: s.name,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
115
118
|
choices.push({
|
|
116
119
|
name: chalk_1.default.dim('Cancel'),
|
|
117
120
|
value: '__cancel__',
|
|
@@ -122,6 +125,8 @@ async function selectSession(sessions, allowNew = true) {
|
|
|
122
125
|
name: 'session',
|
|
123
126
|
message: allowNew ? 'Select a session or create new:' : 'Select a session to attach:',
|
|
124
127
|
choices,
|
|
128
|
+
pageSize: 15,
|
|
129
|
+
loop: false,
|
|
125
130
|
},
|
|
126
131
|
]);
|
|
127
132
|
return session === '__cancel__' ? null : session;
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.148",
|
|
4
4
|
"description": "Genbox CLI - AI-Powered Development Environments",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,17 +11,6 @@
|
|
|
11
11
|
"dist/**/*",
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc",
|
|
16
|
-
"start": "node dist/index.js",
|
|
17
|
-
"dev": "ts-node src/index.ts",
|
|
18
|
-
"prepublishOnly": "npm run build",
|
|
19
|
-
"publish:patch": "./scripts/publish.sh patch",
|
|
20
|
-
"publish:minor": "./scripts/publish.sh minor",
|
|
21
|
-
"publish:major": "./scripts/publish.sh major",
|
|
22
|
-
"release": "./scripts/publish.sh patch",
|
|
23
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
24
|
-
},
|
|
25
14
|
"keywords": [
|
|
26
15
|
"genbox",
|
|
27
16
|
"ai",
|
|
@@ -61,5 +50,15 @@
|
|
|
61
50
|
"inquirer": "^13.0.2",
|
|
62
51
|
"js-yaml": "^4.1.1",
|
|
63
52
|
"ora": "^9.0.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsc",
|
|
56
|
+
"start": "node dist/index.js",
|
|
57
|
+
"dev": "ts-node src/index.ts",
|
|
58
|
+
"publish:patch": "./scripts/publish.sh patch",
|
|
59
|
+
"publish:minor": "./scripts/publish.sh minor",
|
|
60
|
+
"publish:major": "./scripts/publish.sh major",
|
|
61
|
+
"release": "./scripts/publish.sh patch",
|
|
62
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
64
63
|
}
|
|
65
|
-
}
|
|
64
|
+
}
|