ai-sprint-kit 2.1.55 → 2.1.57

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/bin/ai-sprint.js CHANGED
@@ -21,7 +21,9 @@ const {
21
21
  installBun,
22
22
  installRalphTui,
23
23
  checkRalphTui,
24
- setupRalphTuiConfig
24
+ setupRalphTuiConfig,
25
+ installAgentBrowser,
26
+ checkAgentBrowser
25
27
  } = require('../lib/installer');
26
28
  const {
27
29
  validateInstallation,
@@ -236,6 +238,20 @@ program
236
238
  progress.startStep(4);
237
239
  progress.completeStep(4);
238
240
 
241
+ // Install agent-browser CLI (optional, non-blocking)
242
+ const agentBrowserSpinner = ora('Installing agent-browser CLI...').start();
243
+ const hasAgentBrowser = await checkAgentBrowser();
244
+ if (!hasAgentBrowser) {
245
+ const agentBrowserInstalled = await installAgentBrowser();
246
+ if (agentBrowserInstalled) {
247
+ agentBrowserSpinner.succeed('agent-browser CLI installed');
248
+ } else {
249
+ agentBrowserSpinner.warn('agent-browser CLI installation skipped (optional)');
250
+ }
251
+ } else {
252
+ agentBrowserSpinner.succeed('agent-browser CLI already installed');
253
+ }
254
+
239
255
  console.log(messages.success());
240
256
 
241
257
  // Show final progress summary
package/lib/installer.js CHANGED
@@ -250,6 +250,28 @@ async function checkRalphTui() {
250
250
  return commandExists('ralph-tui');
251
251
  }
252
252
 
253
+ /**
254
+ * Install agent-browser CLI globally via npm
255
+ * @returns {Promise<boolean>} - Whether installation succeeded
256
+ */
257
+ async function installAgentBrowser() {
258
+ try {
259
+ await execFileAsync('npm', ['install', '-g', 'agent-browser']);
260
+ return true;
261
+ } catch {
262
+ // agent-browser is optional, don't fail the installation
263
+ return false;
264
+ }
265
+ }
266
+
267
+ /**
268
+ * Check if agent-browser is installed
269
+ * @returns {Promise<boolean>}
270
+ */
271
+ async function checkAgentBrowser() {
272
+ return commandExists('agent-browser');
273
+ }
274
+
253
275
  /**
254
276
  * Setup ralph-tui configuration in project
255
277
  * @param {string} targetDir - User's project directory
@@ -286,5 +308,7 @@ module.exports = {
286
308
  installBun,
287
309
  installRalphTui,
288
310
  checkRalphTui,
289
- setupRalphTuiConfig
311
+ setupRalphTuiConfig,
312
+ installAgentBrowser,
313
+ checkAgentBrowser
290
314
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-sprint-kit",
3
- "version": "2.1.55",
3
+ "version": "2.1.57",
4
4
  "description": "CLI installer for AI Sprint autonomous development framework - requires license",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {