aicli 0.3.0 → 0.4.0

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.
data/locales/it.yml CHANGED
@@ -1,11 +1,7 @@
1
1
  ---
2
- Starting new conversation: Avvia una nuova conversazione
3
2
  Goodbye!: Arrivederci!
4
- send a message ('exit' to quit): invia un messaggio ('exit' per uscire)
5
3
  Please enter a prompt.: Per favore inserisci un prompt.
6
4
  THINKING...: pensando...
7
- Please set your OpenAI API key via `ai config set OPENAI_KEY=<your token>`: Per favore
8
- imposta la tua chiave API OpenAI tramite `ai config set OPENAI_KEY=<your token>`
9
5
  Set config: Imposta la configurazione
10
6
  Enter your OpenAI API key: Inserisci la tua chiave API OpenAI
11
7
  Enter your Anthropic API key: Inserisci la tua chiave API Anthropic
@@ -14,7 +10,6 @@ Provider: Provider
14
10
  Pick a provider: Scegli un provider
15
11
  OpenAI Key: Chiave OpenAI
16
12
  Anthropic Key: Chiave Anthropic
17
- Please enter a key: Per favore inserisci una chiave
18
13
  OpenAI API Endpoint: Endpoint API OpenAI
19
14
  Enter your OpenAI API Endpoint: Inserisci il tuo endpoint API OpenAI
20
15
  Silent Mode: Modalità silenziosa
@@ -22,49 +17,30 @@ Enable silent mode?: Abilitare la modalità silenziosa?
22
17
  Model: Modello
23
18
  Pick a model.: Scegli un modello.
24
19
  No models found for this provider.: Nessun modello trovato per questo provider.
25
- Enter the model you want to use: Inserisci il modello che vuoi utilizzare
26
20
  Language: Lingua
27
21
  Enter the language you want to use: Inserisci la lingua che vuoi utilizzare
28
22
  What would you like me to do?: Cosa vorresti che facessi?
29
- delete all log files: elimina tutti i file di log
30
- list js files: elenca i file js
31
- fetch me a random joke: raccontami una barzelletta
32
- list all commits: elenca tutti i commit
33
23
  Say hello: Saluta
34
- you can edit script here: puoi modificare lo script qui
35
- What would you like me to change in this script?: Cosa vorresti che cambiassi in questo
36
- script?
37
- e.g.: es.
38
- e.g. change the folder name: es. cambia il nome della cartella
39
- Your script: Il tuo script
40
- Loading...: Caricamento...
41
- Getting explanation...: Ottieni spiegazione...
42
- Explanation: Spiegazione
24
+ Edit script: Modifica lo script
25
+ Edit with arrow keys, Enter to confirm, Ctrl+C to cancel: Modifica con le frecce, Invio per confermare, Ctrl+C per annullare
26
+ What would you like me to change in this script?: Cosa vorresti che cambiassi in questo script?
43
27
  Run this script?: Esegui questo script?
44
- Run it?: Lo eseguo?
45
28
  Revise this script?: Rivedi questo script?
46
- 'Yes': Si
47
- Lets go!: Vai!
48
- Edit: Modifica
49
- Make some adjustments before running: Fai alcune modifiche prima di eseguire
50
- Revise: Revisiona
51
- Give feedback via prompt and get a new result: Dai un feedback tramite prompt e ottieni
52
- un nuovo risultato
29
+ Yes:
30
+ Modify: Modifica
31
+ Exit: Esci
32
+ Explain: Spiega
33
+ Revise: Rivedi
53
34
  Copy: Copia
54
- Copy the generated script to your clipboard: Copia lo script generato negli appunti
55
35
  Cancel: Annulla
56
- Exit the program: Esci dal programma
57
36
  Running: Esecuzione
58
37
  Copied to clipboard!: Copiato negli appunti!
59
- Your new script: Il tuo nuovo script
60
38
  Invalid config property: Proprietà di configurazione non valida
61
- Shell detection failed unexpectedly: Rilevamento shell fallito inaspettatamente
62
- Invalid model: Modello non valido
39
+ Invalid mode: Modalità non valida
40
+ Shell detection failed unexpectedly: Rilevamento shell fallito in modo imprevisto
63
41
  Error: Errore
64
- Please open a Bug report with the information above: Apri un report di bug con le
65
- informazioni sopra
66
- Prompt to run: Prompt da eseguire
42
+ Missing required parameter: Parametro richiesto mancante
43
+ Please open a Bug report with the information above: Apri una segnalazione bug con le informazioni sopra
67
44
  You: Tu
68
- Ask for a shell command. Type exit to quit.: Chiedi un comando shell. Digita exit per uscire.
69
- Restored context: Contesto ripristinato
70
- messages: messaggi
45
+ Shell integration installed.: Integrazione shell installata.
46
+ Run it?: Lo eseguo?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aicli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Molinari
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.8'
40
+ - !ruby/object:Gem::Dependency
41
+ name: reline
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.3.0
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.3.0
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: ruby_llm
42
56
  requirement: !ruby/object:Gem::Requirement
@@ -122,8 +136,11 @@ files:
122
136
  - lib/aicli/helpers/i18n.rb
123
137
  - lib/aicli/helpers/llm.rb
124
138
  - lib/aicli/helpers/os_detect.rb
139
+ - lib/aicli/helpers/script_action_menu.rb
140
+ - lib/aicli/helpers/script_editor.rb
141
+ - lib/aicli/helpers/shell_exec.rb
125
142
  - lib/aicli/helpers/shell_history.rb
126
- - lib/aicli/helpers/strip_regex_patterns.rb
143
+ - lib/aicli/helpers/theme.rb
127
144
  - lib/aicli/prompt.rb
128
145
  - lib/aicli/version.rb
129
146
  - locales/ar.yml
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module AiCli
4
- module Helpers
5
- module StripRegexPatterns
6
- module_function
7
-
8
- def call(input_string, pattern_list)
9
- pattern_list.reduce(input_string) do |current, pattern|
10
- next current if pattern.nil?
11
-
12
- if pattern.is_a?(Regexp)
13
- current.gsub(pattern, '')
14
- else
15
- current.gsub(pattern.to_s, '')
16
- end
17
- end
18
- end
19
- end
20
- end
21
- end