@fiodos/cli 0.1.13 → 0.1.14

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +16 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiodos/cli",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Fiodos CLI — analyzes your app's source code and generates the in-app voice-agent manifest, then wires the orb. Powers `npx @fiodos/cli analyze`.",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -157,6 +157,19 @@ function logUser(line) {
157
157
  console.log(`${cyan}◉${reset} ${blue}Fiodos${reset} · ${line}`);
158
158
  }
159
159
 
160
+ /** Spinner copy: "website" for web targets, "app" for mobile/native. */
161
+ function surfaceNoun(platform) {
162
+ return platform === 'web' ? 'website' : 'app';
163
+ }
164
+
165
+ function orbMountSpinnerLabel(platform) {
166
+ return `Mounting the orb on your ${surfaceNoun(platform)}`;
167
+ }
168
+
169
+ function wiringSpinnerLabel(platform) {
170
+ return `Wiring actions to your ${surfaceNoun(platform)}`;
171
+ }
172
+
160
173
  /** Branded terminal spinner (Fiodos orb + colors when stderr is a TTY). */
161
174
  async function withSpinner(label, work) {
162
175
  const orbFrames = ['◴', '◷', '◶', '◵'];
@@ -514,7 +527,7 @@ async function main() {
514
527
  // --no-orb-wire skips ONLY the orb mount (useful to test handler wiring in
515
528
  // isolation without modifying the app's entrypoint / package.json).
516
529
  if (!process.argv.includes('--no-orb-wire')) {
517
- setLabel('Mounting the orb in your app');
530
+ setLabel(orbMountSpinnerLabel(platform));
518
531
  if (!assumeYes) pause();
519
532
  const result = await wireWebOrb(analysisRoot, {
520
533
  apiUrl,
@@ -541,7 +554,7 @@ async function main() {
541
554
  }
542
555
  }
543
556
 
544
- setLabel('Wiring actions to your app');
557
+ setLabel(wiringSpinnerLabel(platform));
545
558
  if (!assumeYes) pause();
546
559
  const handlerResult = await wireHandlers(analysisRoot, handlerOpts);
547
560
  if (!assumeYes) resume();
@@ -556,7 +569,7 @@ async function main() {
556
569
  });
557
570
  logUser('Published to your project');
558
571
  } else {
559
- await withSpinner('Mounting the orb in your app', runWebWire);
572
+ await withSpinner(orbMountSpinnerLabel(platform), runWebWire);
560
573
  }
561
574
 
562
575
  // ── 8. API key in environment (LAST step — always asks; independent of --yes)