envshed 0.18.0 → 0.20.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.
Files changed (258) hide show
  1. package/README.md +1 -0
  2. package/bin/envshed.js +1 -1
  3. package/dist/agent/claude-code-hook.d.ts +9 -0
  4. package/dist/agent/claude-code-hook.d.ts.map +1 -0
  5. package/dist/agent/claude-code-hook.js +55 -0
  6. package/dist/agent/claude-code-hook.js.map +1 -0
  7. package/dist/agent/claude-code-hook.test.d.ts +2 -0
  8. package/dist/agent/claude-code-hook.test.d.ts.map +1 -0
  9. package/dist/agent/claude-code-hook.test.js +200 -0
  10. package/dist/agent/claude-code-hook.test.js.map +1 -0
  11. package/dist/agent/claude-code.d.ts +3 -0
  12. package/dist/agent/claude-code.d.ts.map +1 -0
  13. package/dist/agent/claude-code.js +206 -0
  14. package/dist/agent/claude-code.js.map +1 -0
  15. package/dist/agent/claude-code.test.d.ts +2 -0
  16. package/dist/agent/claude-code.test.d.ts.map +1 -0
  17. package/dist/agent/claude-code.test.js +302 -0
  18. package/dist/agent/claude-code.test.js.map +1 -0
  19. package/dist/agent/guard.d.ts +8 -0
  20. package/dist/agent/guard.d.ts.map +1 -0
  21. package/dist/agent/guard.js +361 -0
  22. package/dist/agent/guard.js.map +1 -0
  23. package/dist/agent/guard.test.d.ts +2 -0
  24. package/dist/agent/guard.test.d.ts.map +1 -0
  25. package/dist/agent/guard.test.js +271 -0
  26. package/dist/agent/guard.test.js.map +1 -0
  27. package/dist/agent/hook-main.d.ts +8 -0
  28. package/dist/agent/hook-main.d.ts.map +1 -0
  29. package/dist/agent/hook-main.js +45 -0
  30. package/dist/agent/hook-main.js.map +1 -0
  31. package/dist/agent/hook-messages.d.ts +7 -0
  32. package/dist/agent/hook-messages.d.ts.map +1 -0
  33. package/dist/agent/hook-messages.js +18 -0
  34. package/dist/agent/hook-messages.js.map +1 -0
  35. package/dist/agent/registry.d.ts +5 -0
  36. package/dist/agent/registry.d.ts.map +1 -0
  37. package/dist/agent/registry.js +6 -0
  38. package/dist/agent/registry.js.map +1 -0
  39. package/dist/agent/skill-content.d.ts +6 -0
  40. package/dist/agent/skill-content.d.ts.map +1 -0
  41. package/dist/agent/skill-content.js +62 -0
  42. package/dist/agent/skill-content.js.map +1 -0
  43. package/dist/agent/skill-content.test.d.ts +2 -0
  44. package/dist/agent/skill-content.test.d.ts.map +1 -0
  45. package/dist/agent/skill-content.test.js +15 -0
  46. package/dist/agent/skill-content.test.js.map +1 -0
  47. package/dist/agent/types.d.ts +35 -0
  48. package/dist/agent/types.d.ts.map +1 -0
  49. package/dist/agent/types.js +9 -0
  50. package/dist/agent/types.js.map +1 -0
  51. package/dist/commands/agent-session.d.ts +11 -0
  52. package/dist/commands/agent-session.d.ts.map +1 -0
  53. package/dist/commands/agent-session.js +300 -0
  54. package/dist/commands/agent-session.js.map +1 -0
  55. package/dist/commands/agent-session.test.d.ts +2 -0
  56. package/dist/commands/agent-session.test.d.ts.map +1 -0
  57. package/dist/commands/agent-session.test.js +381 -0
  58. package/dist/commands/agent-session.test.js.map +1 -0
  59. package/dist/commands/agent.d.ts +15 -0
  60. package/dist/commands/agent.d.ts.map +1 -0
  61. package/dist/commands/agent.js +114 -0
  62. package/dist/commands/agent.js.map +1 -0
  63. package/dist/commands/agent.test.d.ts +2 -0
  64. package/dist/commands/agent.test.d.ts.map +1 -0
  65. package/dist/commands/agent.test.js +132 -0
  66. package/dist/commands/agent.test.js.map +1 -0
  67. package/dist/commands/completions.d.ts.map +1 -1
  68. package/dist/commands/completions.js +37 -3
  69. package/dist/commands/completions.js.map +1 -1
  70. package/dist/commands/login.d.ts.map +1 -1
  71. package/dist/commands/login.js +42 -4
  72. package/dist/commands/login.js.map +1 -1
  73. package/dist/commands/login.test.js +55 -5
  74. package/dist/commands/login.test.js.map +1 -1
  75. package/dist/commands/pull.d.ts.map +1 -1
  76. package/dist/commands/pull.js +2 -1
  77. package/dist/commands/pull.js.map +1 -1
  78. package/dist/commands/request.d.ts +25 -0
  79. package/dist/commands/request.d.ts.map +1 -0
  80. package/dist/commands/request.js +157 -0
  81. package/dist/commands/request.js.map +1 -0
  82. package/dist/commands/request.test.d.ts +2 -0
  83. package/dist/commands/request.test.d.ts.map +1 -0
  84. package/dist/commands/request.test.js +177 -0
  85. package/dist/commands/request.test.js.map +1 -0
  86. package/dist/commands/run-redact.test.d.ts +2 -0
  87. package/dist/commands/run-redact.test.d.ts.map +1 -0
  88. package/dist/commands/run-redact.test.js +520 -0
  89. package/dist/commands/run-redact.test.js.map +1 -0
  90. package/dist/commands/run.d.ts +7 -1
  91. package/dist/commands/run.d.ts.map +1 -1
  92. package/dist/commands/run.js +167 -32
  93. package/dist/commands/run.js.map +1 -1
  94. package/dist/commands/run.test.js +227 -2
  95. package/dist/commands/run.test.js.map +1 -1
  96. package/dist/commands/scan.d.ts +9 -0
  97. package/dist/commands/scan.d.ts.map +1 -0
  98. package/dist/commands/scan.js +324 -0
  99. package/dist/commands/scan.js.map +1 -0
  100. package/dist/commands/scan.test.d.ts +2 -0
  101. package/dist/commands/scan.test.d.ts.map +1 -0
  102. package/dist/commands/scan.test.js +334 -0
  103. package/dist/commands/scan.test.js.map +1 -0
  104. package/dist/commands/token.d.ts.map +1 -1
  105. package/dist/commands/token.js +28 -11
  106. package/dist/commands/token.js.map +1 -1
  107. package/dist/commands/token.test.js +41 -7
  108. package/dist/commands/token.test.js.map +1 -1
  109. package/dist/commands/whoami.d.ts.map +1 -1
  110. package/dist/commands/whoami.js +8 -1
  111. package/dist/commands/whoami.js.map +1 -1
  112. package/dist/commands/whoami.test.js +16 -0
  113. package/dist/commands/whoami.test.js.map +1 -1
  114. package/dist/config-token.test.d.ts +2 -0
  115. package/dist/config-token.test.d.ts.map +1 -0
  116. package/dist/config-token.test.js +134 -0
  117. package/dist/config-token.test.js.map +1 -0
  118. package/dist/config.d.ts +16 -0
  119. package/dist/config.d.ts.map +1 -1
  120. package/dist/config.js +65 -3
  121. package/dist/config.js.map +1 -1
  122. package/dist/entry.d.ts +3 -0
  123. package/dist/entry.d.ts.map +1 -0
  124. package/dist/entry.js +15 -0
  125. package/dist/entry.js.map +1 -0
  126. package/dist/i18n.d.ts.map +1 -1
  127. package/dist/i18n.js +4 -16
  128. package/dist/i18n.js.map +1 -1
  129. package/dist/index.js +6 -0
  130. package/dist/index.js.map +1 -1
  131. package/dist/lib/agent-mode.d.ts +16 -0
  132. package/dist/lib/agent-mode.d.ts.map +1 -0
  133. package/dist/lib/agent-mode.js +24 -0
  134. package/dist/lib/agent-mode.js.map +1 -0
  135. package/dist/lib/agent-mode.test.d.ts +2 -0
  136. package/dist/lib/agent-mode.test.d.ts.map +1 -0
  137. package/dist/lib/agent-mode.test.js +35 -0
  138. package/dist/lib/agent-mode.test.js.map +1 -0
  139. package/dist/lib/agent-sessions.d.ts +37 -0
  140. package/dist/lib/agent-sessions.d.ts.map +1 -0
  141. package/dist/lib/agent-sessions.js +64 -0
  142. package/dist/lib/agent-sessions.js.map +1 -0
  143. package/dist/lib/allow-file.d.ts +21 -0
  144. package/dist/lib/allow-file.d.ts.map +1 -0
  145. package/dist/lib/allow-file.js +63 -0
  146. package/dist/lib/allow-file.js.map +1 -0
  147. package/dist/lib/allow-file.test.d.ts +2 -0
  148. package/dist/lib/allow-file.test.d.ts.map +1 -0
  149. package/dist/lib/allow-file.test.js +58 -0
  150. package/dist/lib/allow-file.test.js.map +1 -0
  151. package/dist/lib/command-spawn.d.ts +35 -0
  152. package/dist/lib/command-spawn.d.ts.map +1 -0
  153. package/dist/lib/command-spawn.js +67 -0
  154. package/dist/lib/command-spawn.js.map +1 -0
  155. package/dist/lib/command-spawn.process.test.d.ts +2 -0
  156. package/dist/lib/command-spawn.process.test.d.ts.map +1 -0
  157. package/dist/lib/command-spawn.process.test.js +43 -0
  158. package/dist/lib/command-spawn.process.test.js.map +1 -0
  159. package/dist/lib/command-spawn.test.d.ts +2 -0
  160. package/dist/lib/command-spawn.test.d.ts.map +1 -0
  161. package/dist/lib/command-spawn.test.js +80 -0
  162. package/dist/lib/command-spawn.test.js.map +1 -0
  163. package/dist/lib/duration.d.ts +3 -0
  164. package/dist/lib/duration.d.ts.map +1 -0
  165. package/dist/lib/duration.js +10 -0
  166. package/dist/lib/duration.js.map +1 -0
  167. package/dist/lib/duration.test.d.ts +2 -0
  168. package/dist/lib/duration.test.d.ts.map +1 -0
  169. package/dist/lib/duration.test.js +17 -0
  170. package/dist/lib/duration.test.js.map +1 -0
  171. package/dist/lib/env-format.d.ts +3 -0
  172. package/dist/lib/env-format.d.ts.map +1 -0
  173. package/dist/lib/env-format.js +20 -0
  174. package/dist/lib/env-format.js.map +1 -0
  175. package/dist/lib/history-clean.d.ts +42 -0
  176. package/dist/lib/history-clean.d.ts.map +1 -0
  177. package/dist/lib/history-clean.js +507 -0
  178. package/dist/lib/history-clean.js.map +1 -0
  179. package/dist/lib/history-clean.test.d.ts +2 -0
  180. package/dist/lib/history-clean.test.d.ts.map +1 -0
  181. package/dist/lib/history-clean.test.js +451 -0
  182. package/dist/lib/history-clean.test.js.map +1 -0
  183. package/dist/lib/history-scan.d.ts +108 -0
  184. package/dist/lib/history-scan.d.ts.map +1 -0
  185. package/dist/lib/history-scan.js +318 -0
  186. package/dist/lib/history-scan.js.map +1 -0
  187. package/dist/lib/history-scan.test.d.ts +2 -0
  188. package/dist/lib/history-scan.test.d.ts.map +1 -0
  189. package/dist/lib/history-scan.test.js +160 -0
  190. package/dist/lib/history-scan.test.js.map +1 -0
  191. package/dist/lib/keychain.d.ts +28 -0
  192. package/dist/lib/keychain.d.ts.map +1 -0
  193. package/dist/lib/keychain.js +87 -0
  194. package/dist/lib/keychain.js.map +1 -0
  195. package/dist/lib/keychain.test.d.ts +2 -0
  196. package/dist/lib/keychain.test.d.ts.map +1 -0
  197. package/dist/lib/keychain.test.js +128 -0
  198. package/dist/lib/keychain.test.js.map +1 -0
  199. package/dist/lib/locale-env.d.ts +3 -0
  200. package/dist/lib/locale-env.d.ts.map +1 -0
  201. package/dist/lib/locale-env.js +21 -0
  202. package/dist/lib/locale-env.js.map +1 -0
  203. package/dist/lib/oidc.d.ts +22 -0
  204. package/dist/lib/oidc.d.ts.map +1 -0
  205. package/dist/lib/oidc.js +84 -0
  206. package/dist/lib/oidc.js.map +1 -0
  207. package/dist/lib/oidc.test.d.ts +2 -0
  208. package/dist/lib/oidc.test.d.ts.map +1 -0
  209. package/dist/lib/oidc.test.js +107 -0
  210. package/dist/lib/oidc.test.js.map +1 -0
  211. package/dist/lib/redact.d.ts +60 -0
  212. package/dist/lib/redact.d.ts.map +1 -0
  213. package/dist/lib/redact.js +222 -0
  214. package/dist/lib/redact.js.map +1 -0
  215. package/dist/lib/redact.test.d.ts +2 -0
  216. package/dist/lib/redact.test.d.ts.map +1 -0
  217. package/dist/lib/redact.test.js +259 -0
  218. package/dist/lib/redact.test.js.map +1 -0
  219. package/dist/lib/redacted-output.d.ts +35 -0
  220. package/dist/lib/redacted-output.d.ts.map +1 -0
  221. package/dist/lib/redacted-output.js +155 -0
  222. package/dist/lib/redacted-output.js.map +1 -0
  223. package/dist/lib/secret-detector.d.ts +26 -0
  224. package/dist/lib/secret-detector.d.ts.map +1 -0
  225. package/dist/lib/secret-detector.js +332 -0
  226. package/dist/lib/secret-detector.js.map +1 -0
  227. package/dist/lib/secret-detector.test.d.ts +2 -0
  228. package/dist/lib/secret-detector.test.d.ts.map +1 -0
  229. package/dist/lib/secret-detector.test.js +207 -0
  230. package/dist/lib/secret-detector.test.js.map +1 -0
  231. package/dist/lib/shell-parse.d.ts +17 -0
  232. package/dist/lib/shell-parse.d.ts.map +1 -0
  233. package/dist/lib/shell-parse.js +191 -0
  234. package/dist/lib/shell-parse.js.map +1 -0
  235. package/dist/lib/shell-parse.test.d.ts +2 -0
  236. package/dist/lib/shell-parse.test.d.ts.map +1 -0
  237. package/dist/lib/shell-parse.test.js +41 -0
  238. package/dist/lib/shell-parse.test.js.map +1 -0
  239. package/dist/lib/token-input.d.ts +6 -0
  240. package/dist/lib/token-input.d.ts.map +1 -0
  241. package/dist/lib/token-input.js +42 -0
  242. package/dist/lib/token-input.js.map +1 -0
  243. package/dist/lib/token-input.test.d.ts +2 -0
  244. package/dist/lib/token-input.test.d.ts.map +1 -0
  245. package/dist/lib/token-input.test.js +38 -0
  246. package/dist/lib/token-input.test.js.map +1 -0
  247. package/dist/locales/en.json +222 -6
  248. package/dist/locales/es.json +219 -3
  249. package/dist/locales/pt-BR.json +219 -3
  250. package/dist/utils.d.ts +1 -1
  251. package/dist/utils.d.ts.map +1 -1
  252. package/dist/utils.js +5 -24
  253. package/dist/utils.js.map +1 -1
  254. package/dist/utils.test.js +14 -0
  255. package/dist/utils.test.js.map +1 -1
  256. package/package.json +7 -3
  257. package/dist/bin/envshed-linux-x64 +0 -4
  258. package/dist/bundle.cjs +0 -48909
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "program": {
3
- "description": "Envshed CLI \u2014 manage secrets from the terminal",
3
+ "description": "Envshed CLI — manage secrets from the terminal",
4
4
  "localeOption": "Locale for CLI output (en, es, pt-BR)",
5
5
  "workspaceOption": "Target a specific workspace by path",
6
6
  "allOption": "Run for all workspaces (bulk mode)"
@@ -31,7 +31,8 @@
31
31
  "waitingAuth": "Waiting for authorization...",
32
32
  "authorized": "Authorized!",
33
33
  "timedOut": "Authorization timed out.",
34
- "loginFailed": "Login failed: {{message}}"
34
+ "loginFailed": "Login failed: {{message}}",
35
+ "tokenStdinOption": "Read the API token from stdin, so it never appears on the command line"
35
36
  },
36
37
  "init": {
37
38
  "description": "Create a .envshed.json project config in the current directory",
@@ -84,6 +85,7 @@
84
85
  "deleted": "(deleted)",
85
86
  "wrote_one": "Wrote {{count}} secret to {{file}}",
86
87
  "wrote_other": "Wrote {{count}} secrets to {{file}}",
88
+ "requiresJson": "This value cannot be represented safely in dotenv. Use --format json.",
87
89
  "pullFailed": "Pull failed: {{message}}",
88
90
  "pullFailedWorkspace": "Pull failed for {{path}}: {{message}}",
89
91
  "bulkComplete_one": "Pulled secrets for {{count}} workspace",
@@ -144,6 +146,7 @@
144
146
  },
145
147
  "run": {
146
148
  "description": "Run a command with secrets injected as env vars",
149
+ "spawnFailed": "Could not start {{command}}: {{message}}",
147
150
  "commandArg": "Command to run",
148
151
  "fetching": "Fetching secrets...",
149
152
  "loaded_one": "Loaded {{count}} secret",
@@ -160,7 +163,25 @@
160
163
  "watchPollError": "Poll error ({{status}}) — will retry",
161
164
  "watchPollFailed": "Poll failed: {{message}} — will retry",
162
165
  "disabledSkipped_one": "{{count}} disabled secret skipped",
163
- "disabledSkipped_other": "{{count}} disabled secrets skipped"
166
+ "disabledSkipped_other": "{{count}} disabled secrets skipped",
167
+ "redactOption": "Mask secret values in stdout and stderr (on by default in agent mode and with --oidc)",
168
+ "noRedactOption": "Do not mask output, even in agent mode",
169
+ "redactActive_one": "Masking {{count}} secret value in output, {{skipped}} too short or common to mask. Output is piped, so the command may drop colors.",
170
+ "redactActive_other": "Masking {{count}} secret values in output, {{skipped}} too short or common to mask. Output is piped, so the command may drop colors.",
171
+ "oidcOption": "Sign in with a GitHub Actions ID token, using this trust policy id (or ENVSHED_OIDC_POLICY)"
172
+ },
173
+ "oidc": {
174
+ "exchanging": "Signing in with the GitHub Actions ID token...",
175
+ "using": "Using OIDC session {{id}}, read-only, until {{date}}",
176
+ "notAvailable": "No GitHub Actions ID token is available. --oidc works inside a GitHub Actions job with \"permissions: id-token: write\".",
177
+ "idTokenFailed": "Could not get an ID token from GitHub Actions.",
178
+ "idTokenStatus": "GitHub Actions refused the ID token request (HTTP {{status}}).",
179
+ "exchangeUnreachable": "Could not reach Envshed to exchange the ID token.",
180
+ "refused": "Envshed refused the ID token. Check the policy id, that the policy is enabled, and that this repository, ref and workflow match it. The audit log has the reason.",
181
+ "exchangeStatus": "The ID token exchange failed (HTTP {{status}}).",
182
+ "tokenConflict": "ENVSHED_TOKEN is set together with --oidc or ENVSHED_OIDC_POLICY. Use one of them.",
183
+ "noWatch": "--watch cannot be used with --oidc: the session lasts at most one hour. Use a machine token for a long-running process.",
184
+ "targetMismatch": "--{{name}} does not match the trust policy, which allows {{value}}."
164
185
  },
165
186
  "orgs": {
166
187
  "description": "List organizations",
@@ -258,7 +279,8 @@
258
279
  "updated": "Service token '{{name}}' updated",
259
280
  "updateNoChanges": "No changes specified. Use --name, --description, or --active/--no-active.",
260
281
  "updateActiveOption": "Activate the token",
261
- "updateActiveNoOption": "Deactivate the token"
282
+ "updateActiveNoOption": "Deactivate the token",
283
+ "setNeedsInput": "Provide a token: pipe it in with --token-stdin."
262
284
  },
263
285
  "env": {
264
286
  "description": "Manage environments",
@@ -290,8 +312,8 @@
290
312
  "pullingWorkspace": "Pulling {{path}} ({{slug}})...",
291
313
  "pullFailed": "Pull failed: {{message}}",
292
314
  "aborted": "Checkout aborted.",
293
- "switched": "Switched environment: {{previous}} \u2192 {{current}}",
294
- "switchedWorkspace": "[{{path}}] Switched environment: {{previous}} \u2192 {{current}}",
315
+ "switched": "Switched environment: {{previous}} → {{current}}",
316
+ "switchedWorkspace": "[{{path}}] Switched environment: {{previous}} → {{current}}",
295
317
  "set": "Set environment to {{slug}}",
296
318
  "setWorkspace": "[{{path}}] Set environment to {{slug}}",
297
319
  "wrote": "Wrote {{count}} secrets to {{file}}",
@@ -352,6 +374,7 @@
352
374
  "selectFile": "Env file name for {{path}}:"
353
375
  },
354
376
  "whoami": {
377
+ "serviceToken": "Service token ({{org}}): {{scope}} scope, {{permission}}",
355
378
  "description": "Show the currently logged-in user",
356
379
  "fetching": "Fetching user info...",
357
380
  "notLoggedIn": "Not logged in or token is invalid. Run: envshed login"
@@ -710,5 +733,198 @@
710
733
  "errorRateLimited": "Too many attempts. Wait a minute and try again.",
711
734
  "errorGeneric": "Could not open the share link.",
712
735
  "failed": "Failed: {{message}}"
736
+ },
737
+ "request": {
738
+ "description": "Ask a person to provide a secret without the value passing through this terminal",
739
+ "reasonOption": "Why the secret is needed (shown to whoever fills it)",
740
+ "timeoutOption": "How long to wait, for example 90s, 10m or 1h",
741
+ "noWaitOption": "Create the request and exit without waiting",
742
+ "invalidKey": "Invalid secret key. Use letters, digits and underscores, not starting with a digit.",
743
+ "invalidTimeout": "Invalid timeout: {{value}}. Use a value such as 90s, 10m or 1h.",
744
+ "creating": "Creating request...",
745
+ "created": "Requested {{key}}.",
746
+ "attached": "{{key}} already has an open request. Waiting on it.",
747
+ "fillInBrowser": "Fill it in the dashboard:",
748
+ "fillInTerminal": "Or in a separate terminal (not in an agent chat):",
749
+ "whoCanFill": "Who can fill it: org owners and admins, and project admins and editors with access to this environment.",
750
+ "youCanFill": "You have permission to fill it.",
751
+ "waiting": "Waiting for {{key}}...",
752
+ "notWaiting": "Not waiting. Run the same command again to check the status.",
753
+ "fulfilled": "{{key}} is ready. The value was not printed.",
754
+ "runHint": "Use it with: {{command}}",
755
+ "exists": "{{key}} already exists. Nothing was changed.",
756
+ "existsPlaceholder": "{{key}} exists as a placeholder, so it has no shared value. Nothing was changed. Each person sets their own override.",
757
+ "existsDisabled": "{{key}} exists but is disabled, so it will not be injected. Nothing was changed.",
758
+ "declined": "The request for {{key}} was declined.",
759
+ "declinedWithReason": "The request for {{key}} was declined: {{reason}}",
760
+ "recentlyDeclined": "The request for {{key}} was declined recently. Talk to the person who declined it before asking again.",
761
+ "timedOut": "Stopped waiting for {{key}}. The request is still open: run the same command again to keep waiting.",
762
+ "expired": "The request for {{key}} expired without an answer. Run the command again to create a new one.",
763
+ "lostAccess": "The server refused the status check ({{status}}).",
764
+ "failed": "Request failed: {{message}}"
765
+ },
766
+ "scan": {
767
+ "description": "Search local agent histories for vault values and known token formats",
768
+ "pathOption": "File or directory to scan instead of the agent history directory",
769
+ "formatsOnlyOption": "Only look for known token formats, without reading the vault",
770
+ "noMarkOption": "Report only: do not mark secrets as exposed on the server",
771
+ "cleanOption": "Replace found values in the files, after confirmation",
772
+ "yesOption": "Skip the confirmation for --clean",
773
+ "undoOption": "Restore the lines changed by a clean (the newest one, or the given backup id)",
774
+ "forgetOption": "Delete all clean backups and their keys, after which a clean cannot be undone",
775
+ "loading": "Loading vault values into memory...",
776
+ "scanning": "Scanning {{count}} files...",
777
+ "noProject": "No project found, so only known token formats are checked. Use --org and --project, or run from a project with .envshed.json, to check vault values too.",
778
+ "noFiles": "No history files found in {{path}}.",
779
+ "clean": "Nothing found in {{files}} files. Nothing was changed.",
780
+ "headFinding": "Key or format",
781
+ "headEnv": "Env",
782
+ "headFile": "File",
783
+ "headLastSeen": "Last seen",
784
+ "headCount": "Lines",
785
+ "summary_one": "{{count}} finding in {{files}} files. Values are never shown.",
786
+ "summary_other": "{{count}} findings in {{files}} files. Values are never shown.",
787
+ "unreadable_one": "{{count}} file or directory could not be read and was skipped.",
788
+ "unreadable_other": "{{count}} files or directories could not be read and were skipped.",
789
+ "unreadableEnvs": "No read access to these environments, so their values were not checked: {{envs}}",
790
+ "notChecked_one": "{{count}} value was not checked because it is too short or too common to match reliably.",
791
+ "notChecked_other": "{{count}} values were not checked because they are too short or too common to match reliably.",
792
+ "marked": "Marked as exposed in {{env}}: {{keys}}",
793
+ "alreadyMarked": "Already marked as exposed in {{env}}: {{keys}}",
794
+ "markForbidden": "Not marked on the server in {{env}}: marking needs write access. Report above is local only, so tell someone who can write: {{keys}}",
795
+ "markFailed": "Could not mark secrets in {{env}} (status {{status}}): {{keys}}",
796
+ "markSkipped": {
797
+ "override": "Not marked in {{env}}, because what leaked is your personal override: {{key}}",
798
+ "not_found": "Not marked in {{env}}, because the key belongs to another environment that shares it: {{key}}",
799
+ "placeholder": "Not marked in {{env}}, because the key is a placeholder: {{key}}",
800
+ "reference": "Not marked in {{env}}, because its value is a reference to other keys. Those are marked instead: {{key}}"
801
+ },
802
+ "noMarkRequested": "Nothing was marked on the server (--no-mark).",
803
+ "rotateTitle": "Rotate what was found. The value left this machine if the agent sent it to a model provider, so cleaning files is not enough:",
804
+ "rotateSet": "In a separate terminal: {{command}}",
805
+ "rotateRequest": "Or ask someone else: {{command}}",
806
+ "rotateReason": "rotate after exposure",
807
+ "rotateClears": "Saving a new value clears the exposed mark.",
808
+ "rotateFormat": "{{rule}} is not in this vault. Revoke it with its provider.",
809
+ "cleanHint": "To remove the values from these files: envshed scan --clean",
810
+ "needsYes": "--clean changes files and there is no one to confirm here. Run it in a terminal, or pass --yes.",
811
+ "confirmClean": "Replace found values in {{files}} files? An encrypted backup allows envshed scan --undo.",
812
+ "cleanCancelled": "Cancelled. Nothing was changed.",
813
+ "noKeychain": "--clean needs the OS keychain to hold the backup key, and none is available here. Nothing was changed. The key is never stored beside the backup, so without a keychain a clean could not be undone safely.",
814
+ "cleaning": "Cleaning files...",
815
+ "cleanedFile": "Cleaned {{lines}} lines in {{file}}",
816
+ "cleanBusy": "Skipped, because it changed while being cleaned. It may be a session in use: {{file}}",
817
+ "cleanFailed": "Could not clean: {{file}}",
818
+ "remaining": "Still present after cleaning, for example on a line too long to rewrite: {{finding}} in {{file}}",
819
+ "cleanDone": "Done. Undo with: envshed scan --undo {{id}}",
820
+ "cleanNothing": "No file was changed.",
821
+ "undoNoBackup": "There is no clean to undo.",
822
+ "undoBadId": "That is not a valid backup id.",
823
+ "undoKeyMissing": "The key for this backup is not in the keychain, so it cannot be restored.",
824
+ "undoCorrupt": "The backup is damaged, so it was not restored. No file was changed.",
825
+ "undoRestored": "Restored {{lines}} lines in {{files}} files.",
826
+ "undoConflict": "Left {{lines}} lines as they are in {{file}}, because they changed since the clean or the file is gone.",
827
+ "undoKept": "Backup {{id}} was kept. Delete it with: envshed scan --forget-backups",
828
+ "forgot_one": "Deleted {{count}} backup and its key.",
829
+ "forgot_other": "Deleted {{count}} backups and their keys.",
830
+ "failed": "Scan failed: {{message}}",
831
+ "serverError": "the server answered with status {{status}}"
832
+ },
833
+ "agent": {
834
+ "description": "Protect secrets in AI coding agents with hooks, a skill and temporary sessions",
835
+ "installDescription": "Install the hooks and the skill for an agent. Safe to run again.",
836
+ "uninstallDescription": "Remove only what envshed agent install added",
837
+ "agentOption": "Agent to configure ({{agents}})",
838
+ "scopeOption": "Where to install: user or project",
839
+ "unknownAgent": "Unknown agent: {{agent}}. Supported: {{agents}}.",
840
+ "invalidScope": "Invalid scope: {{scope}}. Use user or project.",
841
+ "invalidSettings": "Could not read {{path}} as a settings file, so nothing was changed. Fix the file and run the command again.",
842
+ "failed": "agent {{action}} could not finish. Check the permissions of the agent's config directory.",
843
+ "installTitle": "{{agent}} ({{scope}} scope)",
844
+ "uninstallTitle": "{{agent}} ({{scope}} scope)",
845
+ "skillLabel": "skill",
846
+ "foreignSkill": "{{path}} was not written by Envshed, so it was left alone.",
847
+ "restartHint": "Restart {{agent}} if it is running so it loads the changes.",
848
+ "notABarrier": "This reduces accidental leaks. It is not a barrier against an agent with shell access.",
849
+ "status": {
850
+ "added": "added",
851
+ "updated": "updated",
852
+ "unchanged": "already installed",
853
+ "removed": "removed",
854
+ "absent": "not installed",
855
+ "skipped-foreign": "skipped"
856
+ },
857
+ "warning": {
858
+ "notOnPath": "envshed is not on your PATH, so the hooks will not run and the agent will show a hook error. Install it with: npm install -g envshed",
859
+ "differentBuild": "The envshed on your PATH is a different build from this one. If it is older than this feature the hooks will not run. Update it with: npm install -g envshed"
860
+ }
861
+ },
862
+ "tokenInput": {
863
+ "prompt": "API token:",
864
+ "empty": "No token received on stdin.",
865
+ "invalid": "The token must be a single value with no spaces or line breaks.",
866
+ "timeout": "No input received on stdin within 30 seconds.",
867
+ "conflict": "Pass the token one way only: an argument or --token-stdin.",
868
+ "deprecatedFlag": "Warning: passing a token as an argument is deprecated, because other processes can read it from the command line and it stays in your shell history. Use --token-stdin.",
869
+ "storedKeychain": "Token stored in the system keychain.",
870
+ "storedFile": "No keychain available: token stored in ~/.envshed/config.json, readable only by your user."
871
+ },
872
+ "agentSession": {
873
+ "description": "Start a temporary, read-only session for an agent, limited to one environment and optionally to specific keys",
874
+ "ttlOption": "How long the session lasts: 30m, 2h (maximum 24h)",
875
+ "keysOption": "Comma-separated keys the session may read. Without it, every key in the environment",
876
+ "agentOption": "Name recorded in the audit log (default: detected, or ENVSHED_AGENT_NAME)",
877
+ "reasonOption": "Why the session is needed, shown to whoever approves it",
878
+ "timeoutOption": "How long to wait for a production approval: 30s, 10m, 1h",
879
+ "noWaitOption": "Do not wait for a production approval. Exits with code 2",
880
+ "listDescription": "List active agent sessions",
881
+ "revokeDescription": "Revoke an agent session immediately",
882
+ "idArg": "Session ID",
883
+ "missingOrg": "Organization is required. Pass -o or run this in a project with .envshed.json.",
884
+ "invalidTtl": "Invalid --ttl \"{{value}}\". Use a duration such as 30m or 2h.",
885
+ "ttlOutOfRange": "--ttl must be between 1 minute and 24 hours.",
886
+ "invalidTimeout": "Invalid --timeout \"{{value}}\". Use a duration such as 30s, 10m or 1h.",
887
+ "invalidKeys": "Invalid --keys. Use a comma-separated list of secret keys, such as API_KEY,DB_URL.",
888
+ "starting": "Starting agent session...",
889
+ "fetching": "Fetching agent sessions...",
890
+ "started": "Agent session {{id}} started. The token is stored locally and is not shown.",
891
+ "limitedTo": "Keys: {{keys}}",
892
+ "allKeysInEnv": "Keys: every key in this environment",
893
+ "expiresAt": "Expires: {{date}}",
894
+ "runHint": "Use it with: {{command}}",
895
+ "approvalNeeded": "{{env}} is or may be a production environment, so a person must approve this session.",
896
+ "approveInBrowser": "Approve it in the browser:",
897
+ "waiting": "Waiting for approval...",
898
+ "notWaiting": "Not waiting. Run the same command again after approval to collect the session.",
899
+ "declined": "The session for {{env}} was declined.",
900
+ "expired": "The approval request expired. Run the command again to start over.",
901
+ "timedOut": "Stopped waiting. Run the same command again to keep waiting for this request.",
902
+ "alreadyCollected": "This approval was already collected and its token cannot be fetched again. Run `envshed agent session list`, revoke it if needed, and start a new session.",
903
+ "noSessions": "No active agent sessions.",
904
+ "allKeys": "All",
905
+ "headId": "ID",
906
+ "headAgent": "Agent",
907
+ "headEnv": "Environment",
908
+ "headKeys": "Keys",
909
+ "headExpires": "Expires",
910
+ "headCreatedBy": "Created by",
911
+ "revoked": "Agent session {{id}} revoked.",
912
+ "clearedLocal": "Agent session {{id}} no longer exists on the server. Removed the local copy.",
913
+ "failed": "Failed: {{message}}",
914
+ "runUsing": "Using agent session {{id}}, expires {{date}}",
915
+ "runExpired": "The agent session {{id}} for this environment has expired or its token is missing. Start a new one with `envshed agent session`, or end it with `envshed agent session revoke {{id}}` to use your own login again.",
916
+ "runRejected": "This command used agent session {{id}}, which may have expired or been revoked. End it with `envshed agent session revoke {{id}}` to use your own login again."
917
+ },
918
+ "agentHook": {
919
+ "promptBlocked": "Envshed stopped this prompt because it looks like it contains a secret (detected by: {{rules}}). It was not sent to the model, but Claude Code still writes the text to its local session files, so rotate the secret if it is real.\nTo store it, run envshed secret set <KEY> in a separate terminal. To ask someone for it, run envshed request <KEY> --reason \"...\".\nFalse positive? Send the prompt again with envshed:allow in it, or add a pattern (never the value) to .envshed-allow.",
920
+ "toolFooter": "If this block is wrong, tell the user. Exceptions in .envshed-allow are their decision.",
921
+ "failOpen": "envshed: agent hook failed, so this action was not checked. Run envshed agent install again if this keeps happening.",
922
+ "tool.secret-get": "Envshed blocked this command because it prints a secret value into the agent session. Use envshed run -- <command> to give the value to a program without seeing it.",
923
+ "tool.pull-stdout": "Envshed blocked this command because pull --stdout prints secret values into the agent session. Use envshed run -- <command> instead.",
924
+ "tool.diff-show-values": "Envshed blocked this command because diff --show-values prints secret values into the agent session. Run envshed diff without that flag.",
925
+ "tool.share-open": "Envshed blocked this command because share open prints secret values into the agent session. Use share open --file <path>, then use the file through a program without reading it.",
926
+ "tool.run-dump-env": "Envshed blocked this command because it prints the injected environment into the agent session. Use envshed run to start the program that needs the values, such as envshed run -- npm test, not a command that prints them.",
927
+ "tool.env-file": "Envshed blocked this because it reads a .env file into the agent session. Use envshed run -- <command> to give the values to a program, or .env.example to see which keys exist. If a key is missing, use envshed request <KEY> --reason \"...\".",
928
+ "tool.cli-config": "Envshed blocked this because that location holds the CLI login token. You do not need to read it: envshed commands use it on their own."
713
929
  }
714
930
  }
@@ -31,7 +31,8 @@
31
31
  "waitingAuth": "Esperando autorización...",
32
32
  "authorized": "¡Autorizado!",
33
33
  "timedOut": "La autorización expiró.",
34
- "loginFailed": "Error de inicio de sesión: {{message}}"
34
+ "loginFailed": "Error de inicio de sesión: {{message}}",
35
+ "tokenStdinOption": "Lee el token de API desde stdin, para que nunca aparezca en la línea de comandos"
35
36
  },
36
37
  "init": {
37
38
  "description": "Crear un archivo de configuración .envshed.json en el directorio actual",
@@ -84,6 +85,7 @@
84
85
  "deleted": "(eliminado)",
85
86
  "wrote_one": "Se escribió {{count}} secreto en {{file}}",
86
87
  "wrote_other": "Se escribieron {{count}} secretos en {{file}}",
88
+ "requiresJson": "Este valor no se puede representar de forma segura en dotenv. Usa --format json.",
87
89
  "pullFailed": "Error al descargar: {{message}}",
88
90
  "pullFailedWorkspace": "Error al descargar {{path}}: {{message}}",
89
91
  "bulkComplete_one": "Se descargaron secretos para {{count}} workspace",
@@ -144,6 +146,7 @@
144
146
  },
145
147
  "run": {
146
148
  "description": "Ejecutar un comando con secretos inyectados como variables de entorno",
149
+ "spawnFailed": "No se pudo iniciar {{command}}: {{message}}",
147
150
  "commandArg": "Comando a ejecutar",
148
151
  "fetching": "Obteniendo secretos...",
149
152
  "loaded_one": "Se cargó {{count}} secreto",
@@ -160,7 +163,25 @@
160
163
  "watchPollError": "Error de sondeo ({{status}}) — reintentando",
161
164
  "watchPollFailed": "Sondeo fallido: {{message}} — reintentando",
162
165
  "disabledSkipped_one": "{{count}} secreto deshabilitado omitido",
163
- "disabledSkipped_other": "{{count}} secretos deshabilitados omitidos"
166
+ "disabledSkipped_other": "{{count}} secretos deshabilitados omitidos",
167
+ "redactOption": "Enmascarar los valores de secretos en stdout y stderr (activo por defecto en modo agente y con --oidc)",
168
+ "noRedactOption": "No enmascarar la salida, ni siquiera en modo agente",
169
+ "redactActive_one": "Enmascarando {{count}} valor de secreto en la salida, {{skipped}} demasiado cortos o comunes para enmascarar. La salida pasa por una tubería, así que el comando puede perder los colores.",
170
+ "redactActive_other": "Enmascarando {{count}} valores de secretos en la salida, {{skipped}} demasiado cortos o comunes para enmascarar. La salida pasa por una tubería, así que el comando puede perder los colores.",
171
+ "oidcOption": "Iniciar sesión con un token de ID de GitHub Actions, usando este id de política de confianza (o ENVSHED_OIDC_POLICY)"
172
+ },
173
+ "oidc": {
174
+ "exchanging": "Iniciando sesión con el token de ID de GitHub Actions...",
175
+ "using": "Usando la sesión OIDC {{id}}, de solo lectura, hasta {{date}}",
176
+ "notAvailable": "No hay un token de ID de GitHub Actions disponible. --oidc funciona dentro de un job de GitHub Actions con \"permissions: id-token: write\".",
177
+ "idTokenFailed": "No se pudo obtener un token de ID de GitHub Actions.",
178
+ "idTokenStatus": "GitHub Actions rechazó la solicitud del token de ID (HTTP {{status}}).",
179
+ "exchangeUnreachable": "No se pudo contactar con Envshed para canjear el token de ID.",
180
+ "refused": "Envshed rechazó el token de ID. Comprueba el id de la política, que esté activa y que este repositorio, ref y workflow coincidan. El registro de auditoría indica el motivo.",
181
+ "exchangeStatus": "El canje del token de ID falló (HTTP {{status}}).",
182
+ "tokenConflict": "ENVSHED_TOKEN está definido junto con --oidc o ENVSHED_OIDC_POLICY. Usa solo uno.",
183
+ "noWatch": "--watch no se puede usar con --oidc: la sesión dura como máximo una hora. Usa un token de máquina para un proceso de larga duración.",
184
+ "targetMismatch": "--{{name}} no coincide con la política de confianza, que permite {{value}}."
164
185
  },
165
186
  "orgs": {
166
187
  "description": "Listar organizaciones",
@@ -258,7 +279,8 @@
258
279
  "updated": "Token de servicio '{{name}}' actualizado",
259
280
  "updateNoChanges": "No se especificaron cambios. Usa --name, --description o --active/--no-active.",
260
281
  "updateActiveOption": "Activar el token",
261
- "updateActiveNoOption": "Desactivar el token"
282
+ "updateActiveNoOption": "Desactivar el token",
283
+ "setNeedsInput": "Proporciona un token: envíalo con --token-stdin."
262
284
  },
263
285
  "env": {
264
286
  "description": "Gestionar entornos",
@@ -352,6 +374,7 @@
352
374
  "selectFile": "Nombre del archivo env para {{path}}:"
353
375
  },
354
376
  "whoami": {
377
+ "serviceToken": "Token de servicio ({{org}}): alcance {{scope}}, {{permission}}",
355
378
  "description": "Mostrar el usuario autenticado actualmente",
356
379
  "fetching": "Obteniendo información del usuario...",
357
380
  "notLoggedIn": "No has iniciado sesión o el token es inválido. Ejecuta: envshed login"
@@ -710,5 +733,198 @@
710
733
  "errorRateLimited": "Demasiados intentos. Espera un minuto e inténtalo de nuevo.",
711
734
  "errorGeneric": "No se pudo abrir el enlace compartido.",
712
735
  "failed": "Falló: {{message}}"
736
+ },
737
+ "request": {
738
+ "description": "Pide a una persona que proporcione un secreto sin que el valor pase por esta terminal",
739
+ "reasonOption": "Por qué se necesita el secreto (lo verá quien lo complete)",
740
+ "timeoutOption": "Cuánto esperar, por ejemplo 90s, 10m o 1h",
741
+ "noWaitOption": "Crea la solicitud y termina sin esperar",
742
+ "invalidKey": "Clave de secreto no válida. Usa letras, dígitos y guiones bajos, sin empezar por un dígito.",
743
+ "invalidTimeout": "Tiempo de espera no válido: {{value}}. Usa un valor como 90s, 10m o 1h.",
744
+ "creating": "Creando solicitud...",
745
+ "created": "Se solicitó {{key}}.",
746
+ "attached": "{{key}} ya tiene una solicitud abierta. Esperando esa solicitud.",
747
+ "fillInBrowser": "Complétalo en el panel:",
748
+ "fillInTerminal": "O en otra terminal (no en un chat con un agente):",
749
+ "whoCanFill": "Quién puede completarlo: propietarios y administradores de la organización, y administradores y editores del proyecto con acceso a este entorno.",
750
+ "youCanFill": "Tienes permiso para completarlo.",
751
+ "waiting": "Esperando {{key}}...",
752
+ "notWaiting": "Sin esperar. Ejecuta el mismo comando de nuevo para ver el estado.",
753
+ "fulfilled": "{{key}} está listo. El valor no se imprimió.",
754
+ "runHint": "Úsalo con: {{command}}",
755
+ "exists": "{{key}} ya existe. No se cambió nada.",
756
+ "existsPlaceholder": "{{key}} existe como marcador, así que no tiene un valor compartido. No se cambió nada. Cada persona define su propia anulación.",
757
+ "existsDisabled": "{{key}} existe pero está desactivado, así que no se inyectará. No se cambió nada.",
758
+ "declined": "La solicitud de {{key}} fue rechazada.",
759
+ "declinedWithReason": "La solicitud de {{key}} fue rechazada: {{reason}}",
760
+ "recentlyDeclined": "La solicitud de {{key}} se rechazó hace poco. Habla con quien la rechazó antes de volver a pedirla.",
761
+ "timedOut": "Se dejó de esperar {{key}}. La solicitud sigue abierta: ejecuta el mismo comando para seguir esperando.",
762
+ "expired": "La solicitud de {{key}} caducó sin respuesta. Ejecuta el comando de nuevo para crear otra.",
763
+ "lostAccess": "El servidor rechazó la consulta de estado ({{status}}).",
764
+ "failed": "La solicitud falló: {{message}}"
765
+ },
766
+ "scan": {
767
+ "description": "Busca en los historiales locales de agentes valores de la bóveda y formatos de token conocidos",
768
+ "pathOption": "Archivo o directorio a analizar en lugar del directorio de historial del agente",
769
+ "formatsOnlyOption": "Buscar solo formatos de token conocidos, sin leer la bóveda",
770
+ "noMarkOption": "Solo informar: no marcar secretos como expuestos en el servidor",
771
+ "cleanOption": "Reemplazar los valores encontrados en los archivos, tras confirmar",
772
+ "yesOption": "Omitir la confirmación de --clean",
773
+ "undoOption": "Restaurar las líneas cambiadas por una limpieza (la más reciente, o el id de copia indicado)",
774
+ "forgetOption": "Eliminar todas las copias de limpieza y sus claves; después una limpieza no se puede deshacer",
775
+ "loading": "Cargando valores de la bóveda en memoria...",
776
+ "scanning": "Analizando {{count}} archivos...",
777
+ "noProject": "No se encontró un proyecto, así que solo se revisan formatos de token conocidos. Usa --org y --project, o ejecuta desde un proyecto con .envshed.json, para revisar también los valores de la bóveda.",
778
+ "noFiles": "No se encontraron archivos de historial en {{path}}.",
779
+ "clean": "No se encontró nada en {{files}} archivos. No se cambió nada.",
780
+ "headFinding": "Clave o formato",
781
+ "headEnv": "Entorno",
782
+ "headFile": "Archivo",
783
+ "headLastSeen": "Última vez",
784
+ "headCount": "Líneas",
785
+ "summary_one": "{{count}} hallazgo en {{files}} archivos. Los valores nunca se muestran.",
786
+ "summary_other": "{{count}} hallazgos en {{files}} archivos. Los valores nunca se muestran.",
787
+ "unreadable_one": "{{count}} archivo o directorio no se pudo leer y se omitió.",
788
+ "unreadable_other": "{{count}} archivos o directorios no se pudieron leer y se omitieron.",
789
+ "unreadableEnvs": "Sin acceso de lectura a estos entornos, así que sus valores no se revisaron: {{envs}}",
790
+ "notChecked_one": "{{count}} valor no se revisó porque es demasiado corto o común para coincidir de forma fiable.",
791
+ "notChecked_other": "{{count}} valores no se revisaron porque son demasiado cortos o comunes para coincidir de forma fiable.",
792
+ "marked": "Marcados como expuestos en {{env}}: {{keys}}",
793
+ "alreadyMarked": "Ya marcados como expuestos en {{env}}: {{keys}}",
794
+ "markForbidden": "No se marcó en el servidor en {{env}}: marcar requiere permiso de escritura. El informe es solo local, así que avisa a alguien con permiso: {{keys}}",
795
+ "markFailed": "No se pudieron marcar secretos en {{env}} (estado {{status}}): {{keys}}",
796
+ "markSkipped": {
797
+ "override": "No se marcó en {{env}}, porque lo filtrado es tu override personal: {{key}}",
798
+ "not_found": "No se marcó en {{env}}, porque la clave pertenece a otro entorno que la comparte: {{key}}",
799
+ "placeholder": "No se marcó en {{env}}, porque la clave es un placeholder: {{key}}",
800
+ "reference": "No se marcó en {{env}}, porque su valor es una referencia a otras claves. Se marcan esas en su lugar: {{key}}"
801
+ },
802
+ "noMarkRequested": "No se marcó nada en el servidor (--no-mark).",
803
+ "rotateTitle": "Rota lo encontrado. El valor salió de esta máquina si el agente lo envió a un proveedor de modelos, así que limpiar archivos no basta:",
804
+ "rotateSet": "En otra terminal: {{command}}",
805
+ "rotateRequest": "O pídeselo a otra persona: {{command}}",
806
+ "rotateReason": "rotar tras exposición",
807
+ "rotateClears": "Guardar un valor nuevo quita la marca de expuesto.",
808
+ "rotateFormat": "{{rule}} no está en esta bóveda. Revócalo con su proveedor.",
809
+ "cleanHint": "Para quitar los valores de estos archivos: envshed scan --clean",
810
+ "needsYes": "--clean cambia archivos y aquí no hay quien confirme. Ejecútalo en una terminal o pasa --yes.",
811
+ "confirmClean": "¿Reemplazar los valores encontrados en {{files}} archivos? Una copia cifrada permite envshed scan --undo.",
812
+ "cleanCancelled": "Cancelado. No se cambió nada.",
813
+ "noKeychain": "--clean necesita el llavero del sistema para guardar la clave de la copia, y aquí no hay ninguno. No se cambió nada. La clave nunca se guarda junto a la copia, así que sin llavero una limpieza no se podría deshacer de forma segura.",
814
+ "cleaning": "Limpiando archivos...",
815
+ "cleanedFile": "Limpiadas {{lines}} líneas en {{file}}",
816
+ "cleanBusy": "Omitido, porque cambió durante la limpieza. Puede ser una sesión en uso: {{file}}",
817
+ "cleanFailed": "No se pudo limpiar: {{file}}",
818
+ "remaining": "Sigue presente tras limpiar, por ejemplo en una línea demasiado larga para reescribir: {{finding}} en {{file}}",
819
+ "cleanDone": "Listo. Para deshacer: envshed scan --undo {{id}}",
820
+ "cleanNothing": "No se cambió ningún archivo.",
821
+ "undoNoBackup": "No hay ninguna limpieza que deshacer.",
822
+ "undoBadId": "Ese id de copia no es válido.",
823
+ "undoKeyMissing": "La clave de esta copia no está en el llavero, así que no se puede restaurar.",
824
+ "undoCorrupt": "La copia está dañada, así que no se restauró. No se cambió ningún archivo.",
825
+ "undoRestored": "Restauradas {{lines}} líneas en {{files}} archivos.",
826
+ "undoConflict": "Se dejaron {{lines}} líneas como están en {{file}}, porque cambiaron desde la limpieza o el archivo ya no existe.",
827
+ "undoKept": "Se conservó la copia {{id}}. Elimínala con: envshed scan --forget-backups",
828
+ "forgot_one": "Eliminada {{count}} copia y su clave.",
829
+ "forgot_other": "Eliminadas {{count}} copias y sus claves.",
830
+ "failed": "El análisis falló: {{message}}",
831
+ "serverError": "el servidor respondió con el estado {{status}}"
832
+ },
833
+ "agent": {
834
+ "description": "Protege los secretos en agentes de IA para código con hooks, una skill y sesiones temporales",
835
+ "installDescription": "Instala los hooks y la skill para un agente. Se puede ejecutar de nuevo sin riesgo.",
836
+ "uninstallDescription": "Elimina solo lo que agregó envshed agent install",
837
+ "agentOption": "Agente que se configura ({{agents}})",
838
+ "scopeOption": "Dónde instalar: user o project",
839
+ "unknownAgent": "Agente desconocido: {{agent}}. Disponibles: {{agents}}.",
840
+ "invalidScope": "Alcance no válido: {{scope}}. Usa user o project.",
841
+ "invalidSettings": "No se pudo leer {{path}} como archivo de configuración, así que no se cambió nada. Corrige el archivo y ejecuta el comando de nuevo.",
842
+ "failed": "agent {{action}} no pudo terminar. Revisa los permisos del directorio de configuración del agente.",
843
+ "installTitle": "{{agent}} (alcance {{scope}})",
844
+ "uninstallTitle": "{{agent}} (alcance {{scope}})",
845
+ "skillLabel": "skill",
846
+ "foreignSkill": "{{path}} no fue escrito por Envshed, así que no se modificó.",
847
+ "restartHint": "Reinicia {{agent}} si está en ejecución para que cargue los cambios.",
848
+ "notABarrier": "Esto reduce las filtraciones accidentales. No es una barrera contra un agente con acceso a la shell.",
849
+ "status": {
850
+ "added": "agregado",
851
+ "updated": "actualizado",
852
+ "unchanged": "ya instalado",
853
+ "removed": "eliminado",
854
+ "absent": "no instalado",
855
+ "skipped-foreign": "omitido"
856
+ },
857
+ "warning": {
858
+ "notOnPath": "envshed no está en tu PATH, así que los hooks no se ejecutarán y el agente mostrará un error de hook. Instálalo con: npm install -g envshed",
859
+ "differentBuild": "El envshed de tu PATH es una versión distinta de esta. Si es anterior a esta función, los hooks no se ejecutarán. Actualízalo con: npm install -g envshed"
860
+ }
861
+ },
862
+ "tokenInput": {
863
+ "prompt": "Token de API:",
864
+ "empty": "No se recibió ningún token por stdin.",
865
+ "invalid": "El token debe ser un solo valor, sin espacios ni saltos de línea.",
866
+ "timeout": "No se recibió nada por stdin en 30 segundos.",
867
+ "conflict": "Pasa el token de una sola forma: como argumento o con --token-stdin.",
868
+ "deprecatedFlag": "Aviso: pasar un token como argumento está obsoleto, porque otros procesos pueden leerlo en la línea de comandos y queda en el historial del shell. Usa --token-stdin.",
869
+ "storedKeychain": "Token guardado en el llavero del sistema.",
870
+ "storedFile": "No hay llavero disponible: token guardado en ~/.envshed/config.json, legible solo por tu usuario."
871
+ },
872
+ "agentSession": {
873
+ "description": "Inicia una sesión temporal de solo lectura para un agente, limitada a un entorno y opcionalmente a claves específicas",
874
+ "ttlOption": "Duración de la sesión: 30m, 2h (máximo 24h)",
875
+ "keysOption": "Claves separadas por comas que la sesión puede leer. Sin esto, todas las claves del entorno",
876
+ "agentOption": "Nombre registrado en la auditoría (por defecto: detectado, o ENVSHED_AGENT_NAME)",
877
+ "reasonOption": "Por qué se necesita la sesión; lo ve quien la aprueba",
878
+ "timeoutOption": "Cuánto esperar una aprobación de producción: 30s, 10m, 1h",
879
+ "noWaitOption": "No esperar la aprobación de producción. Sale con código 2",
880
+ "listDescription": "Lista las sesiones de agente activas",
881
+ "revokeDescription": "Revoca una sesión de agente de inmediato",
882
+ "idArg": "ID de la sesión",
883
+ "missingOrg": "La organización es obligatoria. Usa -o o ejecuta esto en un proyecto con .envshed.json.",
884
+ "invalidTtl": "--ttl \"{{value}}\" no es válido. Usa una duración como 30m o 2h.",
885
+ "ttlOutOfRange": "--ttl debe estar entre 1 minuto y 24 horas.",
886
+ "invalidTimeout": "--timeout \"{{value}}\" no es válido. Usa una duración como 30s, 10m o 1h.",
887
+ "invalidKeys": "--keys no es válido. Usa una lista de claves separadas por comas, como API_KEY,DB_URL.",
888
+ "starting": "Iniciando sesión de agente...",
889
+ "fetching": "Obteniendo sesiones de agente...",
890
+ "started": "Sesión de agente {{id}} iniciada. El token se guarda localmente y no se muestra.",
891
+ "limitedTo": "Claves: {{keys}}",
892
+ "allKeysInEnv": "Claves: todas las de este entorno",
893
+ "expiresAt": "Expira: {{date}}",
894
+ "runHint": "Úsala con: {{command}}",
895
+ "approvalNeeded": "{{env}} es o puede ser un entorno de producción, así que una persona debe aprobar esta sesión.",
896
+ "approveInBrowser": "Apruébala en el navegador:",
897
+ "waiting": "Esperando aprobación...",
898
+ "notWaiting": "Sin esperar. Ejecuta el mismo comando tras la aprobación para recoger la sesión.",
899
+ "declined": "La sesión para {{env}} fue rechazada.",
900
+ "expired": "La solicitud de aprobación expiró. Ejecuta el comando de nuevo para empezar otra vez.",
901
+ "timedOut": "Se dejó de esperar. Ejecuta el mismo comando para seguir esperando esta solicitud.",
902
+ "alreadyCollected": "Esta aprobación ya se recogió y su token no se puede obtener otra vez. Ejecuta `envshed agent session list`, revócala si hace falta e inicia una sesión nueva.",
903
+ "noSessions": "No hay sesiones de agente activas.",
904
+ "allKeys": "Todas",
905
+ "headId": "ID",
906
+ "headAgent": "Agente",
907
+ "headEnv": "Entorno",
908
+ "headKeys": "Claves",
909
+ "headExpires": "Expira",
910
+ "headCreatedBy": "Creada por",
911
+ "revoked": "Sesión de agente {{id}} revocada.",
912
+ "clearedLocal": "La sesión de agente {{id}} ya no existe en el servidor. Se eliminó la copia local.",
913
+ "failed": "Error: {{message}}",
914
+ "runUsing": "Usando la sesión de agente {{id}}, expira {{date}}",
915
+ "runExpired": "La sesión de agente {{id}} de este entorno expiró o falta su token. Inicia otra con `envshed agent session`, o termínala con `envshed agent session revoke {{id}}` para volver a usar tu inicio de sesión.",
916
+ "runRejected": "Este comando usó la sesión de agente {{id}}, que puede haber expirado o sido revocada. Termínala con `envshed agent session revoke {{id}}` para volver a usar tu inicio de sesión."
917
+ },
918
+ "agentHook": {
919
+ "promptBlocked": "Envshed detuvo este prompt porque parece contener un secreto (detectado por: {{rules}}). No se envió al modelo, pero Claude Code aún escribe el texto en sus archivos de sesión locales, así que rota el secreto si es real.\nPara guardarlo, ejecuta envshed secret set <KEY> en otra terminal. Para pedírselo a alguien, ejecuta envshed request <KEY> --reason \"...\".\n¿Falso positivo? Envía el prompt de nuevo con envshed:allow, o agrega un patrón (nunca el valor) a .envshed-allow.",
920
+ "toolFooter": "Si este bloqueo es incorrecto, avisa al usuario. Las excepciones en .envshed-allow son decisión suya.",
921
+ "failOpen": "envshed: el hook del agente falló, así que esta acción no se revisó. Ejecuta envshed agent install de nuevo si sigue ocurriendo.",
922
+ "tool.secret-get": "Envshed bloqueó este comando porque imprime el valor de un secreto en la sesión del agente. Usa envshed run -- <comando> para entregar el valor a un programa sin verlo.",
923
+ "tool.pull-stdout": "Envshed bloqueó este comando porque pull --stdout imprime valores de secretos en la sesión del agente. Usa envshed run -- <comando>.",
924
+ "tool.diff-show-values": "Envshed bloqueó este comando porque diff --show-values imprime valores de secretos en la sesión del agente. Ejecuta envshed diff sin esa opción.",
925
+ "tool.share-open": "Envshed bloqueó este comando porque share open imprime valores de secretos en la sesión del agente. Usa share open --file <ruta> y entrega el archivo a un programa sin leerlo.",
926
+ "tool.run-dump-env": "Envshed bloqueó este comando porque imprime el entorno inyectado en la sesión del agente. Usa envshed run para iniciar el programa que necesita los valores, como envshed run -- npm test, no un comando que los imprima.",
927
+ "tool.env-file": "Envshed bloqueó esto porque lee un archivo .env en la sesión del agente. Usa envshed run -- <comando> para entregar los valores a un programa, o .env.example para ver qué claves existen. Si falta una clave, usa envshed request <KEY> --reason \"...\".",
928
+ "tool.cli-config": "Envshed bloqueó esto porque ese lugar guarda el token de inicio de sesión del CLI. No necesitas leerlo: los comandos de envshed lo usan por su cuenta."
713
929
  }
714
930
  }