@deerdesign/deertools 1.2.27 → 1.2.31

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/src/tui.js CHANGED
@@ -66,67 +66,52 @@ ${c.bold}${c.green} ____ _____ _
66
66
  | | | |/ _ \\/ _ \\ '__| | |/ _ \\ / _ \\ | / __|
67
67
  | |_| | __/ __/ | | | (_) | (_) || \\__ \\
68
68
  |____/ \\___|\\___|_| |_|\\___/ \\___(_)_|___/${c.reset}
69
- ${c.dim}Ekosystem narzędzi wykończeniowych Deer Design (v1.0.5)${c.reset}
69
+ ${c.dim}Identity, MCP & Skills Hub Manager — Deer Design${c.reset}
70
70
  \n`);
71
71
 
72
- const choice = await selectMenu('Co chcesz zrobić?', [
73
- { label: '1. Szybka wycena z metrażu (Kosztorys)', value: 'estimate_calc' },
74
- { label: '2. Wyszukaj produkt w Katalogu Connect', value: 'catalog_search' },
75
- { label: '3. Sprawdź status dostaw i logistyki', value: 'deliveries_list' },
76
- { label: '4. Kalkulator marży i rabatów (Supplier Hub)', value: 'supplier_calc' },
77
- { label: '5. Diagnostyka środowiska i połączeń (Doctor)', value: 'doctor' },
78
- { label: '6. Sprawdź status logowania i kluczy (Whoami)', value: 'whoami' },
79
- { label: '7. Zaloguj do wszystkich produktów (OAuth)', value: 'login' },
80
- { label: '8. Zainstaluj integracje MCP dla Cursor / Antigravity', value: 'mcp_install' },
81
- { label: '9. Historia wykonanych operacji (Audit log)', value: 'audit' },
72
+ const choice = await selectMenu('Wybierz operację administracyjną:', [
73
+ { label: '1. Status logowania i sesji (Whoami)', value: 'whoami' },
74
+ { label: '2. Zaloguj do systemów Deer Design (OAuth PKCE)', value: 'login' },
75
+ { label: '3. Zainstaluj serwery MCP dla Cursor / Antigravity', value: 'mcp_install' },
76
+ { label: '4. Synchronizuj skille z DeerSkills Hub (Skill Sync)', value: 'skill_sync' },
77
+ { label: '5. Przeglądaj skille w DeerSkills Hub (Skill List)', value: 'skill_list' },
78
+ { label: '6. Platformy agentów AI na komputerze (Agent List)', value: 'agent_list' },
79
+ { label: '7. Diagnostyka środowiska i połączeń (Doctor)', value: 'doctor' },
80
+ { label: '8. Historia operacji (Audit log)', value: 'audit' },
82
81
  ]);
83
82
 
84
- if (choice === 'estimate_calc') {
85
- const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
86
- rl.question('\nPodaj metraż mieszkania w m² (np. 64): ', (ans) => {
87
- rl.close();
88
- const area = Number(ans) || 50;
89
- dispatch(['estimate', 'calculate', String(area)], {});
90
- });
83
+ if (choice === 'whoami') {
84
+ await dispatch(['whoami'], {});
91
85
  return;
92
86
  }
93
87
 
94
- if (choice === 'catalog_search') {
95
- const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
96
- rl.question('\nSzukana fraza (np. bateria, płytka): ', (ans) => {
97
- rl.close();
98
- dispatch(['catalog', 'search', ans || 'bateria'], {});
99
- });
88
+ if (choice === 'login') {
89
+ await dispatch(['login', 'all'], {});
100
90
  return;
101
91
  }
102
92
 
103
- if (choice === 'deliveries_list') {
104
- await dispatch(['deliveries', 'list'], {});
93
+ if (choice === 'mcp_install') {
94
+ await dispatch(['mcp', 'install'], {});
105
95
  return;
106
96
  }
107
97
 
108
- if (choice === 'supplier_calc') {
109
- await dispatch(['supplier', 'calculate', '1000', '35', '20'], {});
98
+ if (choice === 'skill_sync') {
99
+ await dispatch(['skill', 'sync'], {});
110
100
  return;
111
101
  }
112
102
 
113
- if (choice === 'doctor') {
114
- await dispatch(['doctor'], {});
103
+ if (choice === 'skill_list') {
104
+ await dispatch(['skill', 'list'], {});
115
105
  return;
116
106
  }
117
107
 
118
- if (choice === 'whoami') {
119
- await dispatch(['whoami'], {});
108
+ if (choice === 'agent_list') {
109
+ await dispatch(['agent', 'list'], {});
120
110
  return;
121
111
  }
122
112
 
123
- if (choice === 'login') {
124
- await dispatch(['login', 'all'], {});
125
- return;
126
- }
127
-
128
- if (choice === 'mcp_install') {
129
- await dispatch(['mcp', 'install'], {});
113
+ if (choice === 'doctor') {
114
+ await dispatch(['doctor'], {});
130
115
  return;
131
116
  }
132
117