@muhammedaksam/easiarr 0.1.8 → 0.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muhammedaksam/easiarr",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "TUI tool for generating docker-compose files for the *arr media ecosystem with 41 apps, TRaSH Guides best practices, VPN routing, and Traefik reverse proxy support",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
@@ -210,8 +210,8 @@ export class ArrApiClient {
210
210
  return null // Skip - password already configured
211
211
  }
212
212
 
213
- // Update with authentication settings
214
- const updatedConfig = {
213
+ // Update with authentication settings (id must be in body, not URL)
214
+ const updatedConfig: HostConfig = {
215
215
  ...currentConfig,
216
216
  authenticationMethod: "forms",
217
217
  authenticationRequired: "enabled",
@@ -220,7 +220,8 @@ export class ArrApiClient {
220
220
  passwordConfirmation: password,
221
221
  }
222
222
 
223
- return this.request<HostConfig>(`/config/host/${currentConfig.id}`, {
223
+ // PUT to /config/host with id in body (not /config/host/{id})
224
+ return this.request<HostConfig>("/config/host", {
224
225
  method: "PUT",
225
226
  body: JSON.stringify(updatedConfig),
226
227
  })
@@ -161,12 +161,15 @@ export class AppConfigurator extends BoxRenderable {
161
161
  content.add(overrideText)
162
162
 
163
163
  userInput.focus()
164
- let focusedInput = userInput
164
+ let focusedInput: InputRenderable | null = userInput
165
165
 
166
166
  // Handle key events
167
167
  this.keyHandler = (key: KeyEvent) => {
168
- if (key.name === "o" && !userInput.focused && !passInput.focused) {
169
- // Toggle override
168
+ // Skip shortcut keys when an input is focused (allow typing 'o')
169
+ const inputIsFocused = focusedInput !== null
170
+
171
+ if (key.name === "o" && !inputIsFocused) {
172
+ // Toggle override only when no input is focused
170
173
  this.overrideExisting = !this.overrideExisting
171
174
  overrideText.content = `[O] Override existing: ${this.overrideExisting ? "Yes" : "No"}`
172
175
  overrideText.fg = this.overrideExisting ? "#50fa7b" : "#6272a4"
@@ -186,6 +189,7 @@ export class AppConfigurator extends BoxRenderable {
186
189
  this.cliRenderer.keyInput.off("keypress", this.keyHandler)
187
190
  userInput.blur()
188
191
  passInput.blur()
192
+ focusedInput = null
189
193
  this.currentStep = "configure"
190
194
  this.runConfiguration()
191
195
  } else if (key.name === "return") {
@@ -196,6 +200,7 @@ export class AppConfigurator extends BoxRenderable {
196
200
  this.cliRenderer.keyInput.off("keypress", this.keyHandler)
197
201
  userInput.blur()
198
202
  passInput.blur()
203
+ focusedInput = null
199
204
 
200
205
  // Save credentials to .env
201
206
  this.saveGlobalCredentialsToEnv()