@orbitpanel/cli 1.0.0-beta.2 → 1.0.0-beta.3

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.
@@ -6,12 +6,19 @@ export default class Shell extends Command {
6
6
  static flags = {};
7
7
  async run() {
8
8
  if (process.stdin.isTTY) {
9
- // Full Ink experience — React-based TUI
10
- const { startInkShell } = await import('../lib/shell-ink.js');
11
- await startInkShell(this.config.version);
9
+ try {
10
+ const { startInkShell } = await import('../lib/shell-ink.js');
11
+ await startInkShell(this.config.version);
12
+ }
13
+ catch (err) {
14
+ // Ink crashed — fall back to readline with debug info
15
+ const msg = err instanceof Error ? err.message : String(err);
16
+ process.stderr.write(`[orbit] Ink non disponibile (${msg}), uso readline.\n`);
17
+ const { startShell } = await import('../lib/shell.js');
18
+ await startShell(this.config.version);
19
+ }
12
20
  }
13
21
  else {
14
- // Non-TTY fallback — plain readline
15
22
  const { startShell } = await import('../lib/shell.js');
16
23
  await startShell(this.config.version);
17
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"shell.js","sourceRoot":"","sources":["../../src/commands/shell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACxC,MAAM,CAAC,OAAO,GAAG,yCAAyC,CAAC;IAC3D,MAAM,CAAC,WAAW,GAAG,6FAA6F,CAAC;IAEnH,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC;IACjB,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC;IAElB,KAAK,CAAC,GAAG;QACP,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACxB,wCAAwC;YACxC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC;YAC9D,MAAM,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3C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M,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;YACvD,MAAM,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;IACH,CAAC"}
@@ -544,6 +544,54 @@
544
544
  "update.js"
545
545
  ]
546
546
  },
547
+ "note:add": {
548
+ "aliases": [],
549
+ "args": {
550
+ "text": {
551
+ "description": "Testo della nota",
552
+ "name": "text",
553
+ "required": true
554
+ }
555
+ },
556
+ "description": "Registra un appunto o un'azione nella sessione attiva.",
557
+ "examples": [
558
+ "<%= config.bin %> note add \"Fixato layout mobile\"",
559
+ "<%= config.bin %> note add \"Aggiornato plugin sicurezza\" --priority critical"
560
+ ],
561
+ "flags": {
562
+ "priority": {
563
+ "char": "p",
564
+ "description": "Priorita della nota",
565
+ "name": "priority",
566
+ "default": "medium",
567
+ "hasDynamicHelp": false,
568
+ "multiple": false,
569
+ "options": [
570
+ "low",
571
+ "medium",
572
+ "high",
573
+ "critical"
574
+ ],
575
+ "type": "option"
576
+ }
577
+ },
578
+ "hasDynamicHelp": false,
579
+ "hiddenAliases": [],
580
+ "id": "note:add",
581
+ "pluginAlias": "@orbitpanel/cli",
582
+ "pluginName": "@orbitpanel/cli",
583
+ "pluginType": "core",
584
+ "strict": true,
585
+ "summary": "Aggiunge una nota alla sessione corrente",
586
+ "enableJsonFlag": false,
587
+ "isESM": true,
588
+ "relativePath": [
589
+ "dist",
590
+ "commands",
591
+ "note",
592
+ "add.js"
593
+ ]
594
+ },
547
595
  "report:send": {
548
596
  "aliases": [],
549
597
  "args": {},
@@ -699,55 +747,7 @@
699
747
  "session",
700
748
  "start.js"
701
749
  ]
702
- },
703
- "note:add": {
704
- "aliases": [],
705
- "args": {
706
- "text": {
707
- "description": "Testo della nota",
708
- "name": "text",
709
- "required": true
710
- }
711
- },
712
- "description": "Registra un appunto o un'azione nella sessione attiva.",
713
- "examples": [
714
- "<%= config.bin %> note add \"Fixato layout mobile\"",
715
- "<%= config.bin %> note add \"Aggiornato plugin sicurezza\" --priority critical"
716
- ],
717
- "flags": {
718
- "priority": {
719
- "char": "p",
720
- "description": "Priorita della nota",
721
- "name": "priority",
722
- "default": "medium",
723
- "hasDynamicHelp": false,
724
- "multiple": false,
725
- "options": [
726
- "low",
727
- "medium",
728
- "high",
729
- "critical"
730
- ],
731
- "type": "option"
732
- }
733
- },
734
- "hasDynamicHelp": false,
735
- "hiddenAliases": [],
736
- "id": "note:add",
737
- "pluginAlias": "@orbitpanel/cli",
738
- "pluginName": "@orbitpanel/cli",
739
- "pluginType": "core",
740
- "strict": true,
741
- "summary": "Aggiunge una nota alla sessione corrente",
742
- "enableJsonFlag": false,
743
- "isESM": true,
744
- "relativePath": [
745
- "dist",
746
- "commands",
747
- "note",
748
- "add.js"
749
- ]
750
750
  }
751
751
  },
752
- "version": "1.0.0-beta.2"
752
+ "version": "1.0.0-beta.3"
753
753
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbitpanel/cli",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Orbit CLI — strumento locale per sviluppatori OrbitPanel",
5
5
  "type": "module",
6
6
  "bin": {