@goffy-ai/coding-helper 0.0.6
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/README.md +102 -0
- package/dist/cli.js +2 -0
- package/dist/commands/auth.js +1 -0
- package/dist/commands/config.js +1 -0
- package/dist/commands/doctor.js +1 -0
- package/dist/commands/index.js +1 -0
- package/dist/commands/lang.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/api-validator.js +1 -0
- package/dist/lib/claude-code-manager.js +1 -0
- package/dist/lib/command.js +1 -0
- package/dist/lib/config.js +1 -0
- package/dist/lib/crush-manager.js +1 -0
- package/dist/lib/factory-droid-manager.js +1 -0
- package/dist/lib/i18n.js +1 -0
- package/dist/lib/mcp-manager.js +1 -0
- package/dist/lib/opencode-manager.js +1 -0
- package/dist/lib/tool-manager.js +1 -0
- package/dist/lib/wizard.js +1 -0
- package/dist/locales/de_DE.json +221 -0
- package/dist/locales/en_US.json +221 -0
- package/dist/locales/es_ES.json +221 -0
- package/dist/locales/fr_FR.json +221 -0
- package/dist/locales/it_IT.json +221 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/logger.js +1 -0
- package/dist/utils/string-width.js +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": {
|
|
3
|
+
"title": "Coding Tool Helper (chelper)",
|
|
4
|
+
"usage": "Utilisation : chelper <commande> [options]",
|
|
5
|
+
"commands": "Commandes :",
|
|
6
|
+
"examples": "Exemples :",
|
|
7
|
+
"error_unknown": "Commande inconnue : {{command}}",
|
|
8
|
+
"error_general": "Erreur :"
|
|
9
|
+
},
|
|
10
|
+
"commands": {
|
|
11
|
+
"help": "Afficher les informations d'aide",
|
|
12
|
+
"version": "Afficher les informations de version",
|
|
13
|
+
"init": "Exécuter l'assistant d'initialisation interactif",
|
|
14
|
+
"lang": "Gestion des langues",
|
|
15
|
+
"auth": "Gestion des clés API",
|
|
16
|
+
"doctor": "Vérification de l'état de santé",
|
|
17
|
+
"enter": "Gestion de la configuration",
|
|
18
|
+
"tool": "Gestion des outils"
|
|
19
|
+
},
|
|
20
|
+
"lang": {
|
|
21
|
+
"current": "Langue actuelle",
|
|
22
|
+
"show_usage": "chelper lang show - Afficher la langue actuelle",
|
|
23
|
+
"set_usage": "chelper lang set <en_US> - Définir la langue",
|
|
24
|
+
"changed": "Langue changée de {{from}} à {{to}}",
|
|
25
|
+
"invalid": "Langue non prise en charge : {{lang}}",
|
|
26
|
+
"available": "Langues disponibles"
|
|
27
|
+
},
|
|
28
|
+
"auth": {
|
|
29
|
+
"set_usage": "chelper auth <service> <token> - Définir la clé API",
|
|
30
|
+
"service_prompt": "Sélectionner le type de service",
|
|
31
|
+
"token_prompt": "Entrer la clé API",
|
|
32
|
+
"token_required": "La clé API ne peut pas être vide",
|
|
33
|
+
"saved": "Clé API enregistrée",
|
|
34
|
+
"revoke_confirm": "Êtes-vous sûr de vouloir révoquer la clé API ?",
|
|
35
|
+
"revoked": "Clé API révoquée",
|
|
36
|
+
"not_revoked": "Révocation annulée",
|
|
37
|
+
"get_api_key_hint": "Pour obtenir une clé API, visitez : {{url}}",
|
|
38
|
+
"reload_usage": "chelper auth reload <outil> - Recharger la configuration Goffy dans l'outil",
|
|
39
|
+
"reloading": "Rechargement de la configuration Goffy dans {{tool}}...",
|
|
40
|
+
"reloaded": "Configuration Goffy rechargée avec succès dans {{tool}}",
|
|
41
|
+
"reload_failed": "Échec du rechargement de la configuration Goffy",
|
|
42
|
+
"reload_missing_config": "Configuration du plan ou de la clé API manquante. Veuillez d'abord exécuter 'chelper auth'.",
|
|
43
|
+
"reload_tool_not_supported": "L'outil '{{tool}}' n'est pas pris en charge pour le rechargement",
|
|
44
|
+
"service_not_supported": "Le service '{{service}}' n'est pas pris en charge, goffy_coding et goffy_coding sont pris en charge."
|
|
45
|
+
},
|
|
46
|
+
"wizard": {
|
|
47
|
+
"banner_subtitle": "Gérez vos outils Claude Code et autres outils de codage",
|
|
48
|
+
"welcome": "Bienvenue dans Coding Tool Helper !",
|
|
49
|
+
"privacy_note": "Nous apprécions votre vie privée. Toutes les configurations sont stockées uniquement localement.",
|
|
50
|
+
"select_language": "Sélectionner la langue de l'interface",
|
|
51
|
+
"select_plan": "Sélectionner le Plan",
|
|
52
|
+
"plan_global": "Plan de Coding Goffy",
|
|
53
|
+
"plan_china": "Plan de Coding Goffy",
|
|
54
|
+
"input_api_key": "Entrer la clé API",
|
|
55
|
+
"input_your_api_key": "Veuillez saisir votre clé API ici, appuyez sur Entrée pour confirmer :",
|
|
56
|
+
"update_api_key": "Mettre à jour la clé API",
|
|
57
|
+
"api_key_required": "La clé API ne peut pas être vide",
|
|
58
|
+
"select_tool": "Sélectionner l'outil de codage à configurer",
|
|
59
|
+
"tool_not_installed": "{{tool}} n'est pas installé",
|
|
60
|
+
"install_tool_confirm": "Installer maintenant ?",
|
|
61
|
+
"installing_tool": "Installation de l'outil...",
|
|
62
|
+
"tool_installed": "Outil installé avec succès",
|
|
63
|
+
"install_failed": "Échec de l'installation",
|
|
64
|
+
"install_skipped": "Installation ignorée. Vous pouvez l'installer manuellement plus tard.",
|
|
65
|
+
"menu_title": "Menu de Gestion",
|
|
66
|
+
"select_action": "Sélectionner une action",
|
|
67
|
+
"action_load_gff": "Appliquer la Configuration - (Appliquer le Plan de Coding Goffy que vous avez configuré à {{tool}})",
|
|
68
|
+
"action_unload_gff": "Supprimer la Configuration - (Supprimer la configuration Goffy de {{tool}})",
|
|
69
|
+
"action_mcp_config": "Configuration MCP",
|
|
70
|
+
"action_view_config": "Configuration Actuelle",
|
|
71
|
+
"action_back": "Retour",
|
|
72
|
+
"action_exit": "Quitter",
|
|
73
|
+
"goodbye": "Au revoir !",
|
|
74
|
+
"loading_gff_config": "Chargement de la configuration Goffy...",
|
|
75
|
+
"gff_config_loaded": "Configuration Goffy chargée avec succès, vous pouvez maintenant utiliser {{tool}} pour coder ou configurer les services MCP pour améliorer les capacités.",
|
|
76
|
+
"gff_config_failed": "Échec du chargement de la configuration Goffy",
|
|
77
|
+
"confirm_unload_gff": "Êtes-vous sûr de vouloir supprimer la configuration Goffy de {{tool}} ?",
|
|
78
|
+
"unloading_gff_config": "Suppression de la configuration Goffy...",
|
|
79
|
+
"gff_config_unloaded": "Configuration Goffy supprimée avec succès",
|
|
80
|
+
"gff_config_unload_failed": "Échec de la suppression de la configuration Goffy",
|
|
81
|
+
"tool_not_supported": "Cette opération n'est pas prise en charge pour cet outil",
|
|
82
|
+
"missing_config": "Configuration requise manquante (plan ou clé API)",
|
|
83
|
+
"mcp_menu_title": "Gestion des Services MCP",
|
|
84
|
+
"no_preset_mcp_installed": "Aucun service MCP intégré du Plan installé pour le moment",
|
|
85
|
+
"action_install_all_mcp": "Installer Tous les Services MCP Intégrés du Plan",
|
|
86
|
+
"install_all_mcp_confirm": "Êtes-vous sûr de vouloir installer tous les services MCP intégrés du Plan ? Cela installera les services suivants :",
|
|
87
|
+
"installing_all_mcp": "Installation en lot des services MCP intégrés du Plan...",
|
|
88
|
+
"all_mcp_installed": "Tous les services MCP intégrés du Plan installés avec succès",
|
|
89
|
+
"all_mcp_install_failed": "Certains services MCP intégrés du Plan n'ont pas pu être installés",
|
|
90
|
+
"builtin_mcp_services": "Services MCP Intégrés du Plan",
|
|
91
|
+
"other_mcp_services": "Autres Services MCP",
|
|
92
|
+
"other_mcp": "Autre",
|
|
93
|
+
"other_mcp_info": "Ceci est un service MCP non intégré",
|
|
94
|
+
"confirm_uninstall_other_mcp": "Êtes-vous sûr de vouloir supprimer ce service MCP ?",
|
|
95
|
+
"select_mcp": "Sélectionner le service MCP",
|
|
96
|
+
"installed": "Installé",
|
|
97
|
+
"not_installed": "Non installé",
|
|
98
|
+
"mcp_protocol": "Protocole",
|
|
99
|
+
"mcp_type": "Type",
|
|
100
|
+
"mcp_plan_type": "Plan",
|
|
101
|
+
"mcp_description": "Description",
|
|
102
|
+
"mcp_status": "État",
|
|
103
|
+
"action_install": "Installer",
|
|
104
|
+
"action_uninstall": "Désinstaller",
|
|
105
|
+
"installing_mcp": "Installation du service MCP...",
|
|
106
|
+
"mcp_installed": "Service MCP installé avec succès",
|
|
107
|
+
"mcp_install_failed": "Échec de l'installation du service MCP",
|
|
108
|
+
"uninstalling_mcp": "Désinstallation du service MCP...",
|
|
109
|
+
"mcp_uninstalled": "Service MCP désinstallé avec succès",
|
|
110
|
+
"mcp_uninstall_failed": "Échec de la désinstallation du service MCP",
|
|
111
|
+
"current_config": "Configuration Actuelle",
|
|
112
|
+
"config_language": "Langue de l'Interface",
|
|
113
|
+
"config_plan": "Plan de Coding",
|
|
114
|
+
"config_api_key": "Clé API",
|
|
115
|
+
"config_title": "Configuration",
|
|
116
|
+
"not_set": "Non défini",
|
|
117
|
+
"press_enter": "Appuyez sur Entrée pour continuer",
|
|
118
|
+
"main_menu_title": "Menu Principal",
|
|
119
|
+
"current_config_status": "État de la Configuration Actuelle :",
|
|
120
|
+
"api_key_set": "Défini",
|
|
121
|
+
"api_key_get_hint": "Pour obtenir une clé API, visitez : {{url}}",
|
|
122
|
+
"menu_config_language": "Langue de l'interface",
|
|
123
|
+
"menu_select_plan": "Plan de Coding",
|
|
124
|
+
"menu_config_api_key": "Clé API",
|
|
125
|
+
"menu_config_tool": "Outil de Codage",
|
|
126
|
+
"menu_exit": "Quitter",
|
|
127
|
+
"select_operation": "Sélectionnez l'opération :",
|
|
128
|
+
"goodbye_message": "Au revoir !",
|
|
129
|
+
"nav_return": "Retour",
|
|
130
|
+
"nav_exit": "Quitter",
|
|
131
|
+
"current_active": "Actuel",
|
|
132
|
+
"operation_hint": "Conseil d'Opération",
|
|
133
|
+
"hint_navigate": "↑↓ Naviguer",
|
|
134
|
+
"hint_confirm": "Entrée Confirmer",
|
|
135
|
+
"detected_config_title": "Configuration Actuelle de Claude Code",
|
|
136
|
+
"chelper_config_title": "Configuration Chelper",
|
|
137
|
+
"claude_code_config_title": "Configuration Globale Actuelle de Claude Code",
|
|
138
|
+
"config_synced": "Configuration synchronisée",
|
|
139
|
+
"config_out_of_sync": "Configuration non synchronisée, mise à jour recommandée",
|
|
140
|
+
"config_not_loaded": "Configuration {{tool}} pas encore chargée",
|
|
141
|
+
"action_refresh_gff": "Actualisation de la Configuration - (Mettre à jour la configuration Goffy de {{tool}})",
|
|
142
|
+
"global_config_warning": "⚠️ Attention : Vous modifiez la configuration globale de {{tool}}. Les modifications affecteront tous les espaces de travail",
|
|
143
|
+
"global_label": "GLOBAL",
|
|
144
|
+
"set_success": "Défini avec succès",
|
|
145
|
+
"start_tool": "Démarrer {{tool}} - (Recommandation : ouvrez un nouveau terminal dans votre espace de travail et exécutez {{shell}} pour le démarrer)",
|
|
146
|
+
"starting_tool": "Démarrage...",
|
|
147
|
+
"factory_droid_login_hint": "Attention : vous devez vous connecter à votre compte Factory Droid dans le client Factory Droid avant de l'utiliser.",
|
|
148
|
+
"validating_api_key": "Validation de la clé API...",
|
|
149
|
+
"api_key_valid": "La clé API est valide",
|
|
150
|
+
"api_key_invalid": "La clé API n'est pas valide ou a expiré",
|
|
151
|
+
"api_key_network_error": "Erreur réseau, vérifiez votre connexion"
|
|
152
|
+
},
|
|
153
|
+
"doctor": {
|
|
154
|
+
"checking": "Exécution de la vérification de l'état de santé...",
|
|
155
|
+
"check_path": "Vérification de la variable d'environnement PATH",
|
|
156
|
+
"check_api_key_network": "Vérification de la Clé API et du Réseau",
|
|
157
|
+
"check_api_key": "Vérification de la clé API",
|
|
158
|
+
"check_tools": "Vérification des outils installés",
|
|
159
|
+
"check_gff_plan": "Vérification de la configuration Goffy",
|
|
160
|
+
"all_good": "Toutes les vérifications ont réussi !",
|
|
161
|
+
"tool_installed": "Installé",
|
|
162
|
+
"tool_not_found": "Outil non trouvé : {{tool}}",
|
|
163
|
+
"network_error": "Connexion réseau échouée",
|
|
164
|
+
"api_key_invalid": "La clé API n'est pas valide ou a expiré",
|
|
165
|
+
"api_key_network_ok": "Clé API et Réseau vérifiés",
|
|
166
|
+
"api_key_missing": "Clé API non configurée",
|
|
167
|
+
"claude_code_installed": "Claude Code est installé",
|
|
168
|
+
"claude_code_not_installed": "Claude Code n'est pas installé. Veuillez l'installer depuis https://claude.ai/download",
|
|
169
|
+
"gff_plan_configured": "Goffy configuré : {{plan}}",
|
|
170
|
+
"gff_plan_not_configured": "Goffy non configuré. Exécutez 'chelper init' pour configurer.",
|
|
171
|
+
"suggestions": "Suggestions",
|
|
172
|
+
"check_git_env": "Vérifier l'environnement Git",
|
|
173
|
+
"git_not_installed": "Git n'est pas installé. Veuillez installer Git depuis https://git-scm.com/downloads"
|
|
174
|
+
},
|
|
175
|
+
"messages": {
|
|
176
|
+
"initializing": "Initialisation...",
|
|
177
|
+
"args": "Arguments :",
|
|
178
|
+
"first_run": "Première exécution détectée. Démarrage de l'assistant d'initialisation...",
|
|
179
|
+
"config_saved": "Configuration enregistrée"
|
|
180
|
+
},
|
|
181
|
+
"install": {
|
|
182
|
+
"permission_detected": "Problème d'autorisation détecté, tentative de résolution...",
|
|
183
|
+
"trying_solution": "Tentative de solution {{num}} : {{desc}}...",
|
|
184
|
+
"permission_fixed": "Problème d'autorisation résolu !",
|
|
185
|
+
"auto_fix_failed": "La réparation automatique a échoué.",
|
|
186
|
+
"windows_solutions": "Utilisateurs Windows, essayez l'une des solutions suivantes :",
|
|
187
|
+
"windows_solution_1_title": "Solution 1 (Recommandée) : Exécuter en tant qu'Administrateur",
|
|
188
|
+
"windows_solution_1_step1": "1. Cliquez avec le bouton droit sur Invite de commandes ou PowerShell",
|
|
189
|
+
"windows_solution_1_step2": "2. Sélectionnez \"Exécuter en tant qu'administrateur\"",
|
|
190
|
+
"windows_solution_1_step3": "3. Réexécutez la commande d'installation",
|
|
191
|
+
"windows_solution_2_title": "Solution 2 : Utiliser l'installation au niveau utilisateur (pas d'admin requis)",
|
|
192
|
+
"windows_solution_2_command": "Exécuter dans la ligne de commande :",
|
|
193
|
+
"unix_solutions": "Veuillez essayer manuellement l'une des solutions suivantes :",
|
|
194
|
+
"unix_solution_1_title": "Solution 1 : Installer avec sudo",
|
|
195
|
+
"unix_solution_1_desc": "Exécutez la commande suivante dans le terminal (nécessite le mot de passe administrateur) :",
|
|
196
|
+
"unix_solution_2_title": "Solution 2 (Recommandée) : Utiliser nvm pour gérer Node.js",
|
|
197
|
+
"unix_solution_2_desc": "Utiliser nvm évite les problèmes d'autorisations et est recommandé officiellement par npm",
|
|
198
|
+
"path_warning": "Veuillez ajouter le chemin suivant à votre variable d'environnement PATH :",
|
|
199
|
+
"path_add_method": "Comment ajouter :",
|
|
200
|
+
"all_solutions_failed": "Toutes les solutions automatiques ont échoué.",
|
|
201
|
+
"using_sudo": "Installation avec les privilèges sudo",
|
|
202
|
+
"using_user_install": "Utilisation de l'installation au niveau utilisateur (pas de sudo requis)",
|
|
203
|
+
"using_force": "Nouvelle tentative avec le flag --force",
|
|
204
|
+
"npm_docs_link": "Documentation Officielle npm",
|
|
205
|
+
"what_next": "Que souhaitez-vous faire ensuite ?",
|
|
206
|
+
"installed_continue": "✅ J'ai terminé l'installation, continuer",
|
|
207
|
+
"cancel_install": "❌ Annuler l'installation",
|
|
208
|
+
"user_cancelled": "L'utilisateur a annulé l'installation",
|
|
209
|
+
"still_not_installed": "{{tool}} ne semble toujours pas être installé",
|
|
210
|
+
"install_failed_detail": "Échec de l'installation avec erreur :",
|
|
211
|
+
"skip_install_confirm": "Ignorer l'installation et installer manuellement ?",
|
|
212
|
+
"skip_install_yes": "Ignorer, je l'installerai manuellement",
|
|
213
|
+
"skip_install_no": "Retour",
|
|
214
|
+
"retry_check": "Souhaitez-vous vérifier à nouveau l'état de l'installation ?",
|
|
215
|
+
"verified_success": "Installation de {{tool}} vérifiée avec succès !",
|
|
216
|
+
"manual_action_detected": "Le programme d'installation peut nécessiter des étapes manuelles supplémentaires (voir la sortie ci-dessus)",
|
|
217
|
+
"confirm_manual_action_done": "Avez-vous effectué les étapes manuelles requises ?",
|
|
218
|
+
"complete_manual_action_hint": "Veuillez effectuer les étapes requises affichées ci-dessus, puis réexécuter l'installation",
|
|
219
|
+
"factory_irm_install_tip": "Il peut être dû au fait que votre environnement ne prend pas en charge la commande d'installation irm. Il est recommandé d'exécuter la commande ci-dessus dans une fenêtre PowerShell pour l'installer vous-même, ou de consulter le site officiel pour l'installation https://docs.factory.ai/cli/getting-started/quickstart \n Après l'auto-installation, vous devez créer une nouvelle fenêtre de ligne de commande et réexécuter l'assistant"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": {
|
|
3
|
+
"title": "Coding Tool Helper (chelper)",
|
|
4
|
+
"usage": "Uso: chelper <comando> [opzioni]",
|
|
5
|
+
"commands": "Comandi:",
|
|
6
|
+
"examples": "Esempi:",
|
|
7
|
+
"error_unknown": "Comando sconosciuto: {{command}}",
|
|
8
|
+
"error_general": "Errore:"
|
|
9
|
+
},
|
|
10
|
+
"commands": {
|
|
11
|
+
"help": "Mostra informazioni di aiuto",
|
|
12
|
+
"version": "Mostra informazioni sulla versione",
|
|
13
|
+
"init": "Esegui la procedura guidata di inizializzazione interattiva",
|
|
14
|
+
"lang": "Gestione lingua",
|
|
15
|
+
"auth": "Gestione chiave API",
|
|
16
|
+
"doctor": "Controllo dello stato di salute",
|
|
17
|
+
"enter": "Gestione configurazione",
|
|
18
|
+
"tool": "Gestione strumenti"
|
|
19
|
+
},
|
|
20
|
+
"lang": {
|
|
21
|
+
"current": "Lingua attuale",
|
|
22
|
+
"show_usage": "chelper lang show - Mostra lingua attuale",
|
|
23
|
+
"set_usage": "chelper lang set <en_US> - Imposta lingua",
|
|
24
|
+
"changed": "Lingua cambiata da {{from}} a {{to}}",
|
|
25
|
+
"invalid": "Lingua non supportata: {{lang}}",
|
|
26
|
+
"available": "Lingue disponibili"
|
|
27
|
+
},
|
|
28
|
+
"auth": {
|
|
29
|
+
"set_usage": "chelper auth <servizio> <token> - Imposta chiave API",
|
|
30
|
+
"service_prompt": "Seleziona tipo di servizio",
|
|
31
|
+
"token_prompt": "Inserisci chiave API",
|
|
32
|
+
"token_required": "La chiave API non può essere vuota",
|
|
33
|
+
"saved": "Chiave API salvata",
|
|
34
|
+
"revoke_confirm": "Sei sicuro di voler revocare la chiave API?",
|
|
35
|
+
"revoked": "Chiave API revocata",
|
|
36
|
+
"not_revoked": "Revoca annullata",
|
|
37
|
+
"get_api_key_hint": "Per ottenere una chiave API, visita: {{url}}",
|
|
38
|
+
"reload_usage": "chelper auth reload <strumento> - Ricarica la configurazione di Goffy nello strumento",
|
|
39
|
+
"reloading": "Ricaricamento configurazione Goffy in {{tool}}...",
|
|
40
|
+
"reloaded": "Configurazione Goffy ricaricata con successo in {{tool}}",
|
|
41
|
+
"reload_failed": "Impossibile ricaricare la configurazione Goffy",
|
|
42
|
+
"reload_missing_config": "Manca la configurazione del piano o della chiave API. Esegui prima 'chelper auth'.",
|
|
43
|
+
"reload_tool_not_supported": "Lo strumento '{{tool}}' non è supportato per il ricaricamento",
|
|
44
|
+
"service_not_supported": "Il servizio '{{service}}' non è supportato, sono supportati goffy_coding e goffy_coding."
|
|
45
|
+
},
|
|
46
|
+
"wizard": {
|
|
47
|
+
"banner_subtitle": "Gestisci i tuoi strumenti Claude Code e altre Coding Tools",
|
|
48
|
+
"welcome": "Benvenuto in Coding Tool Helper!",
|
|
49
|
+
"privacy_note": "Apprezziamo la tua privacy. Tutte le configurazioni sono archiviate solo localmente.",
|
|
50
|
+
"select_language": "Seleziona lingua dell'interfaccia",
|
|
51
|
+
"select_plan": "Seleziona Piano",
|
|
52
|
+
"plan_global": "Piano di Coding Goffy",
|
|
53
|
+
"plan_china": "Piano di Coding Goffy",
|
|
54
|
+
"input_api_key": "Inserisci chiave API",
|
|
55
|
+
"input_your_api_key": "Inserisci qui la tua chiave API, premi Invio per confermare:",
|
|
56
|
+
"update_api_key": "Aggiorna chiave API",
|
|
57
|
+
"api_key_required": "La chiave API non può essere vuota",
|
|
58
|
+
"select_tool": "Seleziona strumento di codice da configurare",
|
|
59
|
+
"tool_not_installed": "{{tool}} non è installato",
|
|
60
|
+
"install_tool_confirm": "Installare ora?",
|
|
61
|
+
"installing_tool": "Installazione strumento in corso...",
|
|
62
|
+
"tool_installed": "Strumento installato con successo",
|
|
63
|
+
"install_failed": "Installazione fallita",
|
|
64
|
+
"install_skipped": "Installazione saltata. Puoi installare manualmente più tardi.",
|
|
65
|
+
"menu_title": "Menu Gestione",
|
|
66
|
+
"select_action": "Seleziona azione",
|
|
67
|
+
"action_load_gff": "Applica Configurazione - (Applica il Piano di Coding Goffy che hai configurato a {{tool}})",
|
|
68
|
+
"action_unload_gff": "Rimuovi Configurazione - (Rimuovi la configurazione Goffy da {{tool}})",
|
|
69
|
+
"action_mcp_config": "Configurazione MCP",
|
|
70
|
+
"action_view_config": "Configurazione Attuale",
|
|
71
|
+
"action_back": "Indietro",
|
|
72
|
+
"action_exit": "Esci",
|
|
73
|
+
"goodbye": "Arrivederci!",
|
|
74
|
+
"loading_gff_config": "Caricamento configurazione Goffy...",
|
|
75
|
+
"gff_config_loaded": "Configurazione Goffy caricata con successo, ora puoi usare {{tool}} per programmare o configurare servizi MCP per migliorare le capacità.",
|
|
76
|
+
"gff_config_failed": "Impossibile caricare la configurazione Goffy",
|
|
77
|
+
"confirm_unload_gff": "Sei sicuro di voler rimuovere la configurazione Goffy da {{tool}}?",
|
|
78
|
+
"unloading_gff_config": "Rimozione configurazione Goffy...",
|
|
79
|
+
"gff_config_unloaded": "Configurazione Goffy rimossa con successo",
|
|
80
|
+
"gff_config_unload_failed": "Impossibile rimuovere la configurazione Goffy",
|
|
81
|
+
"tool_not_supported": "Questa operazione non è supportata per questo strumento",
|
|
82
|
+
"missing_config": "Manca la configurazione richiesta (piano o chiave API)",
|
|
83
|
+
"mcp_menu_title": "Gestione Servizi MCP",
|
|
84
|
+
"no_preset_mcp_installed": "Nessun servizio MCP integrato nel Piano installato ancora",
|
|
85
|
+
"action_install_all_mcp": "Installa Tutti i Servizi MCP Integrati nel Piano",
|
|
86
|
+
"install_all_mcp_confirm": "Sei sicuro di voler installare tutti i servizi MCP integrati nel Piano? Questo installerà i seguenti servizi:",
|
|
87
|
+
"installing_all_mcp": "Installazione in blocco dei servizi MCP integrati nel Piano...",
|
|
88
|
+
"all_mcp_installed": "Tutti i servizi MCP integrati nel Piano installati con successo",
|
|
89
|
+
"all_mcp_install_failed": "Alcuni servizi MCP integrati nel Piano non sono stati installati",
|
|
90
|
+
"builtin_mcp_services": "Servizi MCP Integrati nel Piano",
|
|
91
|
+
"other_mcp_services": "Altri Servizi MCP",
|
|
92
|
+
"other_mcp": "Altro",
|
|
93
|
+
"other_mcp_info": "Questo è un servizio MCP non integrato",
|
|
94
|
+
"confirm_uninstall_other_mcp": "Sei sicuro di voler rimuovere questo servizio MCP?",
|
|
95
|
+
"select_mcp": "Seleziona servizio MCP",
|
|
96
|
+
"installed": "Installato",
|
|
97
|
+
"not_installed": "Non installato",
|
|
98
|
+
"mcp_protocol": "Protocollo",
|
|
99
|
+
"mcp_type": "Tipo",
|
|
100
|
+
"mcp_plan_type": "Piano",
|
|
101
|
+
"mcp_description": "Descrizione",
|
|
102
|
+
"mcp_status": "Stato",
|
|
103
|
+
"action_install": "Installa",
|
|
104
|
+
"action_uninstall": "Disinstalla",
|
|
105
|
+
"installing_mcp": "Installazione servizio MCP...",
|
|
106
|
+
"mcp_installed": "Servizio MCP installato con successo",
|
|
107
|
+
"mcp_install_failed": "Impossibile installare il servizio MCP",
|
|
108
|
+
"uninstalling_mcp": "Disinstallazione servizio MCP...",
|
|
109
|
+
"mcp_uninstalled": "Servizio MCP disinstallato con successo",
|
|
110
|
+
"mcp_uninstall_failed": "Impossibile disinstallare il servizio MCP",
|
|
111
|
+
"current_config": "Configurazione Attuale",
|
|
112
|
+
"config_language": "Lingua dell'Interfaccia",
|
|
113
|
+
"config_plan": "Piano di Coding",
|
|
114
|
+
"config_api_key": "Chiave API",
|
|
115
|
+
"config_title": "Configurazione",
|
|
116
|
+
"not_set": "Non impostato",
|
|
117
|
+
"press_enter": "Premi Invio per continuare",
|
|
118
|
+
"main_menu_title": "Menu Principale",
|
|
119
|
+
"current_config_status": "Stato Configurazione Attuale:",
|
|
120
|
+
"api_key_set": "Impostato",
|
|
121
|
+
"api_key_get_hint": "Per ottenere una chiave API, visita: {{url}}",
|
|
122
|
+
"menu_config_language": "Lingua interfaccia",
|
|
123
|
+
"menu_select_plan": "Piano di Coding",
|
|
124
|
+
"menu_config_api_key": "Chiave API",
|
|
125
|
+
"menu_config_tool": "Strumento di Codice",
|
|
126
|
+
"menu_exit": "Esci",
|
|
127
|
+
"select_operation": "Seleziona operazione:",
|
|
128
|
+
"goodbye_message": "Arrivederci!",
|
|
129
|
+
"nav_return": "Indietro",
|
|
130
|
+
"nav_exit": "Esci",
|
|
131
|
+
"current_active": "Attuale",
|
|
132
|
+
"operation_hint": "Suggerimento Operazione",
|
|
133
|
+
"hint_navigate": "↑↓ Naviga",
|
|
134
|
+
"hint_confirm": "Invio Conferma",
|
|
135
|
+
"detected_config_title": "Configurazione Attuale di Claude Code",
|
|
136
|
+
"chelper_config_title": "Configurazione Chelper",
|
|
137
|
+
"claude_code_config_title": "Configurazione Globale Attuale di Claude Code",
|
|
138
|
+
"config_synced": "Configurazione sincronizzata",
|
|
139
|
+
"config_out_of_sync": "Configurazione non sincronizzata, aggiornamento raccomandato",
|
|
140
|
+
"config_not_loaded": "Configurazione di {{tool}} non ancora caricata",
|
|
141
|
+
"action_refresh_gff": "Aggiornamento Configurazione - (Aggiorna la configurazione Goffy di {{tool}})",
|
|
142
|
+
"global_config_warning": "⚠️ Attenzione: Stai modificando la configurazione globale di {{tool}}. Le modifiche influiranno su tutti gli spazi di lavoro",
|
|
143
|
+
"global_label": "GLOBALE",
|
|
144
|
+
"set_success": "Impostato con successo",
|
|
145
|
+
"start_tool": "Avvia {{tool}} - (Raccomandazione: apri un nuovo terminale nel tuo spazio di lavoro ed esegui {{shell}} per avviarlo)",
|
|
146
|
+
"starting_tool": "Avvio in corso...",
|
|
147
|
+
"factory_droid_login_hint": "Attenzione: devi accedere al tuo account Factory Droid all'interno del client Factory Droid prima di utilizzarlo.",
|
|
148
|
+
"validating_api_key": "Convalida chiave API...",
|
|
149
|
+
"api_key_valid": "La chiave API è valida",
|
|
150
|
+
"api_key_invalid": "La chiave API non è valida o è scaduta",
|
|
151
|
+
"api_key_network_error": "Errore di rete, verifica la tua connessione"
|
|
152
|
+
},
|
|
153
|
+
"doctor": {
|
|
154
|
+
"checking": "Esecuzione controllo dello stato di salute...",
|
|
155
|
+
"check_path": "Verifica variabile d'ambiente PATH",
|
|
156
|
+
"check_api_key_network": "Verifica Chiave API e Rete",
|
|
157
|
+
"check_api_key": "Verifica chiave API",
|
|
158
|
+
"check_tools": "Verifica strumenti installati",
|
|
159
|
+
"check_gff_plan": "Verifica configurazione Goffy",
|
|
160
|
+
"all_good": "Tutti i controlli sono passati!",
|
|
161
|
+
"tool_installed": "Installato",
|
|
162
|
+
"tool_not_found": "Strumento non trovato: {{tool}}",
|
|
163
|
+
"network_error": "Connessione di rete fallita",
|
|
164
|
+
"api_key_invalid": "La chiave API non è valida o è scaduta",
|
|
165
|
+
"api_key_network_ok": "Chiave API e Rete verificati",
|
|
166
|
+
"api_key_missing": "Chiave API non configurata",
|
|
167
|
+
"claude_code_installed": "Claude Code è installato",
|
|
168
|
+
"claude_code_not_installed": "Claude Code non è installato. Installalo da https://claude.ai/download",
|
|
169
|
+
"gff_plan_configured": "Goffy configurato: {{plan}}",
|
|
170
|
+
"gff_plan_not_configured": "Goffy non configurato. Esegui 'chelper init' per configurare.",
|
|
171
|
+
"suggestions": "Suggerimenti",
|
|
172
|
+
"check_git_env": "Verifica ambiente Git",
|
|
173
|
+
"git_not_installed": "Git non è installato. Installa Git da https://git-scm.com/downloads"
|
|
174
|
+
},
|
|
175
|
+
"messages": {
|
|
176
|
+
"initializing": "Inizializzazione...",
|
|
177
|
+
"args": "Argomenti:",
|
|
178
|
+
"first_run": "Prima esecuzione rilevata. Avvio della procedura guidata di inizializzazione...",
|
|
179
|
+
"config_saved": "Configurazione salvata"
|
|
180
|
+
},
|
|
181
|
+
"install": {
|
|
182
|
+
"permission_detected": "Problema di permessi rilevato, tentativo di risoluzione...",
|
|
183
|
+
"trying_solution": "Tentativo soluzione {{num}}: {{desc}}...",
|
|
184
|
+
"permission_fixed": "Problema di permessi risolto!",
|
|
185
|
+
"auto_fix_failed": "Riparazione automatica fallita.",
|
|
186
|
+
"windows_solutions": "Utenti Windows, prova una delle seguenti soluzioni:",
|
|
187
|
+
"windows_solution_1_title": "Soluzione 1 (Consigliata): Esegui come Amministratore",
|
|
188
|
+
"windows_solution_1_step1": "1. Fai clic destro su Prompt dei comandi o PowerShell",
|
|
189
|
+
"windows_solution_1_step2": "2. Seleziona \"Esegui come amministratore\"",
|
|
190
|
+
"windows_solution_1_step3": "3. Esegui nuovamente il comando di installazione",
|
|
191
|
+
"windows_solution_2_title": "Soluzione 2: Usa l'installazione a livello utente (non richiede amministratore)",
|
|
192
|
+
"windows_solution_2_command": "Esegui nella riga di comando:",
|
|
193
|
+
"unix_solutions": "Prova manualmente una delle seguenti soluzioni:",
|
|
194
|
+
"unix_solution_1_title": "Soluzione 1: Installa con sudo",
|
|
195
|
+
"unix_solution_1_desc": "Esegui il seguente comando nel terminale (richiede password di amministratore):",
|
|
196
|
+
"unix_solution_2_title": "Soluzione 2 (Consigliata): Usa nvm per gestire Node.js",
|
|
197
|
+
"unix_solution_2_desc": "Usare nvm evita problemi di permessi ed è raccomandato ufficialmente da npm",
|
|
198
|
+
"path_warning": "Aggiungi il seguente percorso alla tua variabile d'ambiente PATH:",
|
|
199
|
+
"path_add_method": "Come aggiungere:",
|
|
200
|
+
"all_solutions_failed": "Tutte le soluzioni automatiche sono fallite.",
|
|
201
|
+
"using_sudo": "Installazione con privilegi sudo",
|
|
202
|
+
"using_user_install": "Uso installazione a livello utente (non richiede sudo)",
|
|
203
|
+
"using_force": "Nuovo tentativo con flag --force",
|
|
204
|
+
"npm_docs_link": "Documentazione Ufficiale npm",
|
|
205
|
+
"what_next": "Cosa vorresti fare dopo?",
|
|
206
|
+
"installed_continue": "✅ Ho completato l'installazione, continua",
|
|
207
|
+
"cancel_install": "❌ Cancella installazione",
|
|
208
|
+
"user_cancelled": "Utente ha annullato l'installazione",
|
|
209
|
+
"still_not_installed": "{{tool}} non sembra ancora essere installato",
|
|
210
|
+
"install_failed_detail": "Installazione fallita con errore:",
|
|
211
|
+
"skip_install_confirm": "Saltare l'installazione ed installare manualmente?",
|
|
212
|
+
"skip_install_yes": "Salta, lo installerò manualmente",
|
|
213
|
+
"skip_install_no": "Torna indietro",
|
|
214
|
+
"retry_check": "Vuoi verificare nuovamente lo stato dell'installazione?",
|
|
215
|
+
"verified_success": "Installazione di {{tool}} verificata con successo!",
|
|
216
|
+
"manual_action_detected": "Il programma di installazione potrebbe richiedere passaggi manuali aggiuntivi (vedi output sopra)",
|
|
217
|
+
"confirm_manual_action_done": "Hai completato i passaggi manuali richiesti?",
|
|
218
|
+
"complete_manual_action_hint": "Completa i passaggi richiesti mostrati sopra, quindi esegui nuovamente l'installazione",
|
|
219
|
+
"factory_irm_install_tip": "Potrebbe essere dovuto al fatto che il tuo ambiente non supporta il comando di installazione irm. Si consiglia di eseguire il comando sopra in una finestra PowerShell per installarlo da soli, o fare riferimento al sito web ufficiale per l'installazione https://docs.factory.ai/cli/getting-started/quickstart \n Dopo l'autoinstallazione, è necessario creare una nuova finestra di riga di comando ed eseguire nuovamente la procedura guidata"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var LogLevel;!function(R){R[R.DEBUG=0]="DEBUG",R[R.INFO=1]="INFO",R[R.WARN=2]="WARN",R[R.ERROR=3]="ERROR"}(LogLevel||(LogLevel={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{existsSync as e,mkdirSync as t,appendFileSync as i}from"fs";import{join as o}from"path";import{homedir as r}from"os";import{LogLevel as s}from"../types/index.js";export{s as LogLevel};const n=["token","apikey","api_key","api-key","auth_token","auth-token","authorization","password","secret","credential","anthropic_auth_token","anthropic_api_key","goffy_api_key"],g=[/eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,/\b[a-zA-Z0-9]{32,}\b/g,/Bearer\s+[A-Za-z0-9._-]+/gi];export class Logger{static instance;logLevel=s.INFO;fileLogLevel=s.WARN;logDir;fileLoggingEnabled=!0;constructor(){this.logDir=o(r(),".chelper"),this.ensureLogDir()}static getInstance(){return Logger.instance||(Logger.instance=new Logger),Logger.instance}ensureLogDir(){try{e(this.logDir)||t(this.logDir,{recursive:!0})}catch{this.fileLoggingEnabled=!1}}getLogFilePath(){const e=(new Date).toISOString().split("T")[0];return o(this.logDir,e+".log")}sanitizeValue(e){if(null==e)return e;if("string"==typeof e){let t=e;for(const e of g)t=t.replace(e,"[REDACTED]");return t}if(Array.isArray(e))return e.map(e=>this.sanitizeValue(e));if("object"==typeof e){const t={};for(const[i,o]of Object.entries(e)){const e=i.toLowerCase(),r=n.some(t=>e.includes(t));t[i]=r?"[REDACTED]":this.sanitizeValue(o)}return t}return e}sanitize(e,t){return{message:this.sanitizeValue(e),args:t.map(e=>this.sanitizeValue(e))}}formatArgs(e){return 0===e.length?"":" "+e.map(e=>{if("object"==typeof e)try{return JSON.stringify(e)}catch{return e+""}return e+""}).join(" ")}writeToFile(e,t,o){if(this.fileLoggingEnabled)try{const{message:r,args:s}=this.sanitize(t,o),n=`${(new Date).toISOString()} [${e}] ${r}${this.formatArgs(s)}\n`;i(this.getLogFilePath(),n,"utf-8")}catch{}}setLogLevel(e){this.logLevel=e}setFileLogLevel(e){this.fileLogLevel=e}setFileLoggingEnabled(e){this.fileLoggingEnabled=e}debug(e,...t){this.logLevel<=s.DEBUG&&console.debug("[DEBUG] "+e,...t),this.fileLoggingEnabled&&this.fileLogLevel<=s.DEBUG&&this.writeToFile("DEBUG",e,t)}info(e,...t){this.logLevel<=s.INFO&&console.info("[INFO] "+e,...t),this.fileLoggingEnabled&&this.fileLogLevel<=s.INFO&&this.writeToFile("INFO",e,t)}warn(e,...t){this.logLevel<=s.WARN&&console.warn("[WARN] "+e,...t),this.fileLoggingEnabled&&this.fileLogLevel<=s.WARN&&this.writeToFile("WARN",e,t)}error(e,...t){this.logLevel<=s.ERROR&&console.error("[ERROR] "+e,...t),this.fileLoggingEnabled&&this.fileLogLevel<=s.ERROR&&this.writeToFile("ERROR",e,t)}logError(e,t){const i=t instanceof Error?t.message:t+"",o=t instanceof Error?t.stack:void 0;this.writeToFile("ERROR",`[${e}] ${i}`,o?[{stack:o}]:[])}getLogDir(){return this.logDir}}export const logger=Logger.getInstance();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function stripAnsi(t){return t.replace(/\u001b\[[0-9;]*m/g,"")}function t(t){const r=t.codePointAt(0);return r?8203===r||8204===r||8205===r||65279===r||r>=65024&&r<=65039?0:r>=127744&&r<=129535||r>=9728&&r<=9983||r>=9984&&r<=10175||r>=126976&&r<=127023||r>=127136&&r<=127231||r>=19968&&r<=40959||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=177983||r>=177984&&r<=178207||r>=178208&&r<=183983||r>=63744&&r<=64255||r>=194560&&r<=195103||r>=12352&&r<=12447||r>=12448&&r<=12543||r>=44032&&r<=55215||r>=4352&&r<=4607||r>=12592&&r<=12687||r>=43360&&r<=43391||r>=55216&&r<=55295||r>=65280&&r<=65519?2:1:0}export function stringWidth(r){const n=stripAnsi(r);let e=0;for(const r of Array.from(n))e+=t(r);return e}export function padString(t,r,n=" ",e="left"){const i=stringWidth(t),o=Math.max(0,r-i);if(0===o)return t;const c=n.repeat(o);if("right"===e)return c+t;if("center"===e){const r=Math.floor(o/2),e=o-r;return n.repeat(r)+t+n.repeat(e)}return t+c}export function createBorderLine(t,r,n,e){const i=e-stringWidth(t)-stringWidth(r);return t+n.repeat(Math.max(0,i))+r}export function createContentLine(t,r,n,e,i="left"){return r+padString(t,e-(stringWidth(r)+stringWidth(n))," ",i)+n}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@goffy-ai/coding-helper",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "Goffy Coding Plan Helper for managing multi coding tools",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"coding-helper": "dist/cli.js",
|
|
8
|
+
"chelper": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://goffy.tech/",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://goffy.tech/"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18.0.0"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"cli",
|
|
28
|
+
"coding",
|
|
29
|
+
"helper",
|
|
30
|
+
"tools"
|
|
31
|
+
],
|
|
32
|
+
"author": "Goffy",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"chalk": "^5.3.0",
|
|
35
|
+
"commander": "^12.1.0",
|
|
36
|
+
"inquirer": "^9.2.12",
|
|
37
|
+
"js-yaml": "^4.1.0",
|
|
38
|
+
"ora": "^8.0.1",
|
|
39
|
+
"terminal-link": "^5.0.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@eslint/js": "^9.39.1",
|
|
43
|
+
"@types/inquirer": "^9.0.7",
|
|
44
|
+
"@types/js-yaml": "^4.0.9",
|
|
45
|
+
"@types/node": "^24.10.1",
|
|
46
|
+
"eslint": "^9.39.1",
|
|
47
|
+
"globals": "^16.5.0",
|
|
48
|
+
"nodemon": "^3.1.11",
|
|
49
|
+
"tsx": "^4.20.6",
|
|
50
|
+
"typescript": "^5.9.3",
|
|
51
|
+
"typescript-eslint": "^8.46.4",
|
|
52
|
+
"terser": "^5.46.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsc && cp -r src/locales dist/",
|
|
56
|
+
"build:prod": "tsc -p tsconfig.prod.json && cp -r src/locales dist/ && node scripts/minify-dist.js",
|
|
57
|
+
"dev": "tsx watch src/cli.ts",
|
|
58
|
+
"start": "node dist/cli.js",
|
|
59
|
+
"clean": "rm -rf dist",
|
|
60
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
61
|
+
"lint": "eslint .",
|
|
62
|
+
"lint:fix": "eslint . --fix"
|
|
63
|
+
}
|
|
64
|
+
}
|