diff --git a/SECURITY.md b/SECURITY.md index 211a5b5..26957fa 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -62,10 +62,16 @@ What FormPDF promises: can change the choice. - The key Claude Code uses inside the agent dock belongs to that one tab, is never on a command line or in a plain terminal, and stops working when the tab closes. -- The choice is sealed with a key kept in the system keychain. If settings.json is - changed by hand to loosen it, FormPDF acts as Ask until the person sets it again - in the window. Without a usable keychain the seal is skipped and the stored - choice stands; FormPDF still starts. +- The choice is sealed with a key kept in the system keychain, together with the + places of the agent programs and the Claude Code folder and first message. If + settings.json is changed by hand to loosen it or to change any of those, + FormPDF acts as Ask and empties them until the person sets them again in the + window. Without a usable keychain the seal is skipped and the stored choice + stands; FormPDF still starts. +- The Claude Code folder and first message were not sealed in earlier versions. + When a person had set them and had agents allowed, the first start of a version + that seals them keeps both, puts Agent access back to Ask once and says why in the + window. What it does not promise: diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index 047aabe..b275e7d 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -919,3 +919,15 @@ kind: change · logged: v0.66.0 · 2026-11-20 Entry 134's wave made every sentence in the window that lists the agent programs name Claude Code, Codex, Cursor and Antigravity. Three lines printed in a terminal still named three: the `agents install|sync` line of `./formpdf help` and of its twin `formpdf.bat help`, and the second of the next steps `./formpdf agents install` prints ("Open Claude Code, Codex or Cursor in ..."). They now name the four, in that order. The install already sets up Antigravity for the user (`install_antigravity_user`), and Antigravity reads that user file wherever it is opened, so the next step is true as written. The `agents` usage text already named Antigravity ("and Antigravity for this user") and was left. Ran: `bash -n formpdf`; `./formpdf help` shows the new line; `formpdf.bat` by reading (the `^|` escape kept); `python -m py_compile setup/agents.py`; `setup/agents.py install` in a scratch copy of the tree with a scratch home and caller folder printed the new step 2. + +## 137. The Claude Code folder and first message are sealed, and a file saved before that asks once · _v0.66.0, logged 2026-11-29 (core/seal.py WORDS, LATER, SEALED, loosened, effective, upgraded, mark_upgraded, upgrade; core/config.py read_settings, write_settings; routers/system.py set_settings sealNote; tests/test_seal.py) + +kind: change · logged: v0.66.0 · 2026-11-29 + +The owner's decision: `claudeFolder` and `claudeFirstMessage` join the seal. The folder is where the dock's Claude Code starts and the first message is what it is given when it starts, so they belong with the agent choice the window alone sets. Both are now in `SEALED` and in `loosened`; a hand edit of either reads as broken, like a program place: both are emptied with the places, and access goes back to Ask (or stays Blocked). A first message added by hand while access is Ask is caught too, because a filled folder or first message now counts as loosened. + +The update path. Like entry 134's three places, the two keys enter the HMAC body only when they hold a value (`LATER`), so a file that never set them hashes as before and nothing changes for it. A file that did set them was sealed without them, so the owner chose that such a person gets agent access reset to Ask once, with a note. `config._upgraded_settings` runs before every read and write until the keychain item `settings-seal-shape` says `2`. While it does not: a file with no folder or first message is left as it is; one whose seal matches the body without the two keys (the earlier shape) is resealed in the new shape, the folder, first message and program places kept, `outsideAgents` set to `ask` and `agentsAllowed` to false when they allowed agents (Blocked stays Blocked, with no note), and `sealNote: "words"` stored when access changed; one with no seal at all whose access was never loosened (a person who set only the folder or first message) is resealed as it is. Anything else is left for `effective` to read as broken. Then the item is written, and from then on only the new shape counts. Keeping the flag in the keychain rather than in the file is what makes the reset happen once: a flag in `settings.json` could be edited along with the rest of the file, and without a flag a later hand edit to a file sealed in the earlier shape would be taken as part of the update. If the item cannot be read the check counts as done, so the strict reading applies. The item is written, and read back, before the updated file is stored: if the keychain will not keep it, the file is not updated and the strict reading applies, because otherwise the update would run again at every start and accept a folder or first message added by hand to a file whose seal never covered one. Going back to an earlier version after this reads a file with a folder or first message as broken there. + +`sealNote` is not sealed: written by hand it only shows the note. `POST /api/settings` takes `sealNote` only to clear it, whatever value is sent. + +Ran: `tests/test_seal.py` 21 passed (7 of the new tests fail on the code before the change; the Blocked one passes on both and guards the reset); the whole suite 246 passed. With a stand-in keyring kept in a scratch file, a settings file of the earlier shape (agents allowed, a folder and a first message) and the built window: the window showed the note once, the engine then read `seal: ok`, access `ask`, the folder and first message kept and `sealNote` empty, and a reload showed no note. diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 3c1f7f7..f32e229 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -112,23 +112,43 @@ def stored_settings() -> dict: return found if isinstance(found, dict) else {} +def _store(values: dict) -> None: + tmp = settings_path().with_suffix(".tmp") + tmp.write_text(json.dumps(values, indent=2), encoding="utf-8") + tmp.replace(settings_path()) + + +def _upgraded_settings() -> dict: + from app.core import seal + + stored = stored_settings() + if seal.upgraded(): + return stored + fresh = seal.upgrade(stored) + if not seal.mark_upgraded() or fresh is None: + return stored + try: + _store(fresh) + except OSError: + return stored + return fresh + + def read_settings() -> dict: from app.core import seal - return seal.effective(stored_settings()) + return seal.effective(_upgraded_settings()) def write_settings(patch: dict) -> dict: from app.core import seal - stored = stored_settings() + stored = _upgraded_settings() patch = {k: v for k, v in patch.items() if k not in ("seal", "sealBroken")} if any(k in patch for k in seal.SEALED): current = seal.effective(stored) merged = seal.sign({**stored, **{k: current.get(k) for k in seal.SEALED if k in stored or k in current}, **patch}) else: merged = {**stored, **patch} - tmp = settings_path().with_suffix(".tmp") - tmp.write_text(json.dumps(merged, indent=2), encoding="utf-8") - tmp.replace(settings_path()) + _store(merged) return read_settings() diff --git a/backend/app/core/seal.py b/backend/app/core/seal.py index 3bda6bd..2907b67 100644 --- a/backend/app/core/seal.py +++ b/backend/app/core/seal.py @@ -6,14 +6,18 @@ SERVICE = "FormPDF" ACCOUNT = "settings-seal" FIELD = "seal" +SHAPE_ACCOUNT = "settings-seal-shape" +SHAPE = "2" +NOTE = "sealNote" PATHS = ("claudeBin", "codexBin", "cursorBin", "antigravityBin") -LATER = ("codexBin", "cursorBin", "antigravityBin") -SEALED = ("outsideAgents", "agentsAllowed") + PATHS -_CACHE: dict = {"tried": False, "available": False, "key": None} +WORDS = ("claudeFolder", "claudeFirstMessage") +LATER = ("codexBin", "cursorBin", "antigravityBin") + WORDS +SEALED = ("outsideAgents", "agentsAllowed") + PATHS + WORDS +_CACHE: dict = {"tried": False, "available": False, "key": None, "shape": None} def reset() -> None: - _CACHE.update(tried=False, available=False, key=None) + _CACHE.update(tried=False, available=False, key=None, shape=None) def _load(create: bool) -> bytes | None: @@ -40,13 +44,29 @@ def available() -> bool: return _CACHE["available"] -def digest(values: dict, key: bytes) -> str: - body = json.dumps({k: values.get(k) for k in SEALED if k not in LATER or values.get(k)}, sort_keys=True, separators=(",", ":"), ensure_ascii=False) +def _digest(values: dict, key: bytes, keys: tuple) -> str: + body = json.dumps({k: values.get(k) for k in keys if k not in LATER or values.get(k)}, sort_keys=True, separators=(",", ":"), ensure_ascii=False) return hmac.new(key, body.encode("utf-8"), hashlib.sha256).hexdigest() +def digest(values: dict, key: bytes) -> str: + return _digest(values, key, SEALED) + + +def _matches(mark, expected: str) -> bool: + return isinstance(mark, str) and hmac.compare_digest(mark, expected) + + +def _filled(values: dict, keys: tuple) -> bool: + return any(str(values.get(k) or "").strip() for k in keys) + + +def _access_loosened(values: dict) -> bool: + return values.get("outsideAgents") == "allowed" or bool(values.get("agentsAllowed")) or _filled(values, PATHS) + + def loosened(values: dict) -> bool: - return values.get("outsideAgents") == "allowed" or bool(values.get("agentsAllowed")) or any(str(values.get(k) or "").strip() for k in PATHS) + return _access_loosened(values) or _filled(values, WORDS) def effective(stored: dict) -> dict: @@ -55,14 +75,58 @@ def effective(stored: dict) -> dict: if not _CACHE["available"]: return {**out, "seal": "unavailable", "sealBroken": False} mark = stored.get(FIELD) - if key is not None and isinstance(mark, str) and hmac.compare_digest(mark, digest(stored, key)): + if key is not None and _matches(mark, digest(stored, key)): return {**out, "seal": "ok", "sealBroken": False} if not loosened(stored): return {**out, "seal": "unsealed", "sealBroken": False} - out.update(outsideAgents="blocked" if stored.get("outsideAgents") == "blocked" else "ask", agentsAllowed=False, **{k: "" for k in PATHS}) + out.update(outsideAgents="blocked" if stored.get("outsideAgents") == "blocked" else "ask", agentsAllowed=False, **{k: "" for k in PATHS + WORDS}) return {**out, "seal": "broken", "sealBroken": True} +def upgraded() -> bool: + if _CACHE["shape"] is None: + try: + import keyring + + _CACHE["shape"] = keyring.get_password(SERVICE, SHAPE_ACCOUNT) == SHAPE + except Exception: + _CACHE["shape"] = True + return _CACHE["shape"] + + +def mark_upgraded() -> bool: + _CACHE["shape"] = True + try: + import keyring + + keyring.set_password(SERVICE, SHAPE_ACCOUNT, SHAPE) + return keyring.get_password(SERVICE, SHAPE_ACCOUNT) == SHAPE + except Exception: + return False + + +def _ask_once(stored: dict) -> dict: + if stored.get("outsideAgents") == "blocked": + return {**stored, "agentsAllowed": False} + if stored.get("outsideAgents") == "allowed" or stored.get("agentsAllowed"): + return {**stored, "outsideAgents": "ask", "agentsAllowed": False, NOTE: "words"} + return stored + + +def upgrade(stored: dict) -> dict | None: + if not available() or upgraded() or not _filled(stored, WORDS): + return None + key = _load(False) + mark = stored.get(FIELD) + if key is not None and _matches(mark, digest(stored, key)): + return None + if key is not None and _matches(mark, _digest(stored, key, tuple(k for k in SEALED if k not in WORDS))): + return sign(_ask_once(stored)) + if mark is None and not _access_loosened(stored): + return sign(stored) + return None + + def vouch(text: str) -> str | None: key = _load(True) return hmac.new(key, text.encode("utf-8"), hashlib.sha256).hexdigest() if key is not None else None diff --git a/backend/app/routers/system.py b/backend/app/routers/system.py index e275bc2..aec0277 100644 --- a/backend/app/routers/system.py +++ b/backend/app/routers/system.py @@ -103,7 +103,9 @@ def get_settings() -> dict: @router.post("/settings") def set_settings(patch: dict, request: Request) -> dict: window_key.require(request) - allowed = {k: v for k, v in patch.items() if k in {"agentsAllowed", "outsideAgents", "claudeBin", "codexBin", "cursorBin", "antigravityBin", "claudeFolder", "claudeFirstMessage", "author", "units", "spellLang", "timestampUrl", "formScripts", "language"}} + allowed = {k: v for k, v in patch.items() if k in {"agentsAllowed", "outsideAgents", "claudeBin", "codexBin", "cursorBin", "antigravityBin", "claudeFolder", "claudeFirstMessage", "author", "units", "spellLang", "timestampUrl", "formScripts", "language", "sealNote"}} + if "sealNote" in allowed: + allowed["sealNote"] = "" if "outsideAgents" in allowed: if allowed["outsideAgents"] not in ("ask", "allowed", "blocked"): raise HTTPException(400, "Agent access is ask, allowed or blocked") diff --git a/backend/tests/test_seal.py b/backend/tests/test_seal.py index 202f283..5d182a0 100644 --- a/backend/tests/test_seal.py +++ b/backend/tests/test_seal.py @@ -168,6 +168,107 @@ def test_the_other_programs_places_are_sealed_and_given_to_the_finder_first(clie assert s[key] == "" and s["claudeBin"] == "" and s["sealBroken"] is True and s["outsideAgents"] == "ask" +@pytest.mark.parametrize("key", ["claudeFolder", "claudeFirstMessage"]) +def test_a_hand_edit_of_the_claude_code_folder_or_first_message_is_caught(client, keychain, key): + r = client.post("/api/settings", json={"outsideAgents": "allowed", key: " chosen in the window "}, headers=window_headers()).json() + assert r["seal"] == "ok" and r[key] == "chosen in the window" and r["outsideAgents"] == "allowed" + _hand_edit(**{key: "written by another program"}) + s = client.get("/api/settings").json() + assert s[key] == "" and s["sealBroken"] is True and s["outsideAgents"] == "ask" + from app.routers import mcp + from app.services import claude_code + + assert mcp.access() == "ask" + assert claude_code.pref(key) == "" + + +def test_a_first_message_added_by_hand_with_access_at_ask_is_not_used(client, keychain): + client.post("/api/settings", json={"outsideAgents": "ask"}, headers=window_headers()) + client.get("/api/settings") + _hand_edit(claudeFirstMessage="written by another program") + s = client.get("/api/settings").json() + assert s["claudeFirstMessage"] == "" and s["sealBroken"] is True + + +def _previous_shape(values): + import hashlib + import hmac + + from app.core import config, seal + + key = seal._load(True) + sealed = ("outsideAgents", "agentsAllowed", "claudeBin") + body = json.dumps({k: values.get(k) for k in sealed}, sort_keys=True, separators=(",", ":"), ensure_ascii=False) + config.settings_path().write_text(json.dumps({**values, "seal": hmac.new(key, body.encode("utf-8"), hashlib.sha256).hexdigest()}, indent=2), encoding="utf-8") + + +def test_a_folder_and_first_message_saved_before_they_were_sealed_ask_once_and_say_why(client, keychain): + from app.routers import mcp + + _previous_shape({"outsideAgents": "allowed", "agentsAllowed": True, "claudeBin": "/opt/tools/claude", "claudeFolder": "/work/pdfs", "claudeFirstMessage": "Hello"}) + s = client.get("/api/settings").json() + assert s["seal"] == "ok" and s["sealBroken"] is False + assert s["outsideAgents"] == "ask" and s["agentsAllowed"] is False and mcp.access() == "ask" + assert s["claudeBin"] == "/opt/tools/claude" and s["claudeFolder"] == "/work/pdfs" and s["claudeFirstMessage"] == "Hello" + assert s["sealNote"] == "words" + assert client.get("/api/settings").json()["sealNote"] == "words" + r = client.post("/api/settings", json={"sealNote": "anything"}, headers=window_headers()).json() + assert r["sealNote"] == "" and r["seal"] == "ok" and r["claudeFolder"] == "/work/pdfs" + r = client.post("/api/settings", json={"outsideAgents": "allowed"}, headers=window_headers()).json() + assert r["outsideAgents"] == "allowed" and r["sealNote"] == "" and r["claudeFirstMessage"] == "Hello" + assert client.get("/api/settings").json()["outsideAgents"] == "allowed" + + +def test_the_one_time_reset_does_not_happen_again(client, keychain): + _previous_shape({"outsideAgents": "allowed", "agentsAllowed": True, "claudeBin": "", "claudeFolder": "/work/pdfs"}) + client.get("/api/settings") + client.post("/api/settings", json={"outsideAgents": "allowed", "sealNote": ""}, headers=window_headers()) + _previous_shape({"outsideAgents": "allowed", "agentsAllowed": True, "claudeBin": "", "claudeFirstMessage": "written by another program"}) + s = client.get("/api/settings").json() + assert s["sealBroken"] is True and s["claudeFirstMessage"] == "" and s["outsideAgents"] == "ask" and not s.get("sealNote") + + +def test_blocked_stays_blocked_through_the_one_time_reset_without_a_note(client, keychain): + _previous_shape({"outsideAgents": "blocked", "agentsAllowed": False, "claudeBin": "", "claudeFolder": "/work/pdfs"}) + s = client.get("/api/settings").json() + assert s["seal"] == "ok" and s["outsideAgents"] == "blocked" and s["claudeFolder"] == "/work/pdfs" and not s.get("sealNote") + + +def test_the_one_time_update_waits_until_the_keychain_can_record_it(client, keychain, monkeypatch): + from app.core import config, seal + + config.settings_path().write_text("{}", encoding="utf-8") + client.post("/api/settings", json={"outsideAgents": "ask"}, headers=window_headers()) + keychain.items.pop((seal.SERVICE, seal.SHAPE_ACCOUNT), None) + seal.reset() + plain = keychain.set_password + + def refuse_shape(service, username, password): + if username == seal.SHAPE_ACCOUNT: + raise RuntimeError("keychain item could not be written") + plain(service, username, password) + + monkeypatch.setattr(keychain, "set_password", refuse_shape) + _hand_edit(claudeFirstMessage="written by another program") + s = client.get("/api/settings").json() + assert s["sealBroken"] is True and s["claudeFirstMessage"] == "" and not s.get("sealNote") + seal.reset() + s = client.get("/api/settings").json() + assert s["sealBroken"] is True and s["claudeFirstMessage"] == "" + + +def test_a_folder_saved_with_access_never_set_is_kept_and_sealed(client, keychain): + from app.core import config + + config.settings_path().write_text(json.dumps({"claudeFolder": "/work/pdfs", "author": "Someone"}), encoding="utf-8") + s = client.get("/api/settings").json() + assert s["seal"] == "ok" and s["sealBroken"] is False and s["claudeFolder"] == "/work/pdfs" and not s.get("sealNote") + assert _stored()["seal"] + _hand_edit(claudeFolder="/elsewhere") + s = client.get("/api/settings").json() + assert s["sealBroken"] is True and s["claudeFolder"] == "" + + def _plugin(name): from app.services import plugins diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 2fe9fdb..4d23d13 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -162,7 +162,7 @@ The choice is called **Agent access**. You can set it in Preferences > Plugins > | Allowed | Agents change PDFs and write files without asking. | | Blocked | Every agent call is refused, reads included. | -Only the formpdf window can change Agent access: an agent cannot, and neither can a command run from the command line. If the saved choice is changed outside the app, formpdf treats it as Ask until you set it again in the window, and Preferences says so. The app's own command line (`./formpdf run`, `./formpdf cli`) counts as an outside agent and follows the same choice. The server listens on 127.0.0.1 only. +Only the formpdf window can change Agent access: an agent cannot, and neither can a command run from the command line. If the saved choice is changed outside the app, formpdf treats it as Ask until you set it again in the window, and Preferences says so. The same goes for the Claude Code program, folder and first message and the other agent programs' places: one changed outside the app is emptied and Agent access goes back to Ask. Earlier versions did not protect the Claude Code folder and first message, so if you had set either of them and had agents allowed, the first start after the update keeps them, puts Agent access back to Ask once and shows a note saying so. Check them in Preferences > Plugins > Outside Agents and set Agent access again. The app's own command line (`./formpdf run`, `./formpdf cli`) counts as an outside agent and follows the same choice. The server listens on 127.0.0.1 only. ### Undoing an agent diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index 6c8f7d5..69cee23 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -963,3 +963,11 @@ Added with FormVis's values, because FormPDF had no such token: `--z-under` -1, Seen: the built window of the tree before and after, each with its own engine, in Studio Dark, Light and AMOLED Black at 1440x900: Start, the Pages and search demo in the viewer (the page and the page list), the File menu open, and Preferences. The computed value of all 165 names on the root and on the workbench, before and after: the only differences are the 21 new names (empty before). `--text-muted` reads #717072 in Studio Dark, #8b887a in Light and #858585 in AMOLED Black, before and after. Pixel differences: 0 in 10 of the 12 pairs; Studio Dark File menu 187 pixels (a small red count badge drawn over the Print tab in one run only) and AMOLED Black Preferences 3071 pixels (the blurred glow behind the dialog's backdrop at the top): both are timing in the window behind, no colour of a token. No console error in either run. +## 137. A one-time note when agent access went back to Ask for the newly sealed Claude Code settings · _v0.66.0, logged 2026-11-29 (app.ts start; ui/toast.ts hold; ui/i18n/*.ts) + +kind: change · logged: v0.66.0 · 2026-11-29 + +Backend entry 137 seals the Claude Code folder and first message and, once, puts agent access back to Ask for a person who had set them with agents allowed, storing `sealNote: "words"`. At start, when the settings carry that note, the window shows it as a toast held for 20 seconds (`toast` takes an optional hold; every other caller keeps its 3.6 or 6 second default) and clears it with `POST /api/settings {sealNote: ""}`, so it shows once. The toast root already exists, so nothing moves. The sentence starts with a capital so `setup/i18n.py keys` finds it, and every language table has it; parity is unchanged (104 missing per full table before and after). + +Seen: the built window against an engine with a stand-in keyring and a settings file of the earlier shape showed the note, the engine then held no note, and a reload showed none. `npm run build` passes; window smoke 3 passed. + diff --git a/frontend/src/app.ts b/frontend/src/app.ts index 7bcbbfe..a215931 100644 --- a/frontend/src/app.ts +++ b/frontend/src/app.ts @@ -182,6 +182,10 @@ export async function startApp(): Promise { live.setAgents(agentAccess === 'allowed'); applyLang(typeof settings.spellLang === 'string' ? settings.spellLang : ''); if (isLang(settings.language) && settings.language !== language()) void setLanguage(settings.language); + if (settings.sealNote === 'words') { + toast('The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.', 'info', 20000); + void api.setSettings({ sealNote: '' }).catch(() => undefined); + } } catch { toast('The formpdf engine is not answering yet; retrying.', 'error'); } const files = new URLSearchParams(location.search).getAll('open').filter(Boolean); home.open(); diff --git a/frontend/src/ui/i18n/cs.ts b/frontend/src/ui/i18n/cs.ts index 3d8125e..b3c4022 100644 --- a/frontend/src/ui/i18n/cs.ts +++ b/frontend/src/ui/i18n/cs.ts @@ -1,4 +1,5 @@ export const cs: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Složka Claude Code a první zpráva jsou nyní chráněny před změnami provedenými mimo formpdf. Vaše byly uloženy dříve, proto je přístup agentů tentokrát zpět na Zeptat se. Zkontrolujte je v Předvolby > Zásuvné moduly > Externí agenti a znovu nastavte přístup agentů.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Uložené oprávnění agentů bylo změněno mimo formpdf, proto je zpět na Zeptat se.", "Apply or clear the redaction marks first.": "Nejprve použijte nebo vymažte značky začernění.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Stránky se změnily, proto byly odstraněny značky začernění, které je nemohly následovat. Označte tyto oblasti znovu.", diff --git a/frontend/src/ui/i18n/da.ts b/frontend/src/ui/i18n/da.ts index 6d522bd..a257200 100644 --- a/frontend/src/ui/i18n/da.ts +++ b/frontend/src/ui/i18n/da.ts @@ -1,4 +1,5 @@ export const da: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code-mappen og den første besked er nu beskyttet mod ændringer uden for formpdf. Dine blev gemt før det, så Agentadgang er tilbage på Spørg denne ene gang. Tjek dem under Indstillinger > Plugins > Eksterne agenter, og vælg Agentadgang igen.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Den gemte agenttilladelse blev ændret uden for formpdf, så den er tilbage på Spørg.", "Apply or clear the redaction marks first.": "Anvend eller ryd censureringsmarkeringerne først.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Siderne er ændret, så censureringsmarkeringer, der ikke kunne følge dem, er fjernet. Markér de områder igen.", diff --git a/frontend/src/ui/i18n/de.ts b/frontend/src/ui/i18n/de.ts index 093757f..4dbdc7d 100644 --- a/frontend/src/ui/i18n/de.ts +++ b/frontend/src/ui/i18n/de.ts @@ -1,4 +1,5 @@ export const de: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Der Claude-Code-Ordner und die erste Nachricht sind jetzt vor Änderungen außerhalb von formpdf geschützt. Ihre wurden vorher gespeichert, daher steht der Agentenzugriff dieses eine Mal wieder auf Fragen. Prüfen Sie sie unter Einstellungen > Plug-ins > Externe Agenten und legen Sie den Agentenzugriff erneut fest.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Die gespeicherte Agentenberechtigung wurde außerhalb von formpdf geändert und steht deshalb wieder auf Fragen.", "Apply or clear the redaction marks first.": "Wenden Sie die Schwärzungsmarkierungen zuerst an oder entfernen Sie sie.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Die Seiten haben sich geändert, daher wurden Schwärzungsmarkierungen entfernt, die ihnen nicht folgen konnten. Markieren Sie diese Bereiche erneut.", diff --git a/frontend/src/ui/i18n/es.ts b/frontend/src/ui/i18n/es.ts index e8a33cc..cceba9a 100644 --- a/frontend/src/ui/i18n/es.ts +++ b/frontend/src/ui/i18n/es.ts @@ -1,4 +1,5 @@ export const es: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "La carpeta de Claude Code y el primer mensaje ahora están protegidos contra cambios hechos fuera de formpdf. Los tuyos se guardaron antes, así que el Acceso de agentes vuelve a Preguntar por esta vez. Revísalos en Preferencias > Complementos > Agentes externos y vuelve a elegir el Acceso de agentes.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "El permiso de agentes guardado se cambió fuera de formpdf, así que vuelve a Preguntar.", "Apply or clear the redaction marks first.": "Primero aplique o borre las marcas de censura.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Las páginas cambiaron, así que se quitaron las marcas de censura que no pudieron seguirlas. Vuelva a marcar esas áreas.", diff --git a/frontend/src/ui/i18n/fi.ts b/frontend/src/ui/i18n/fi.ts index c1bd956..5f00939 100644 --- a/frontend/src/ui/i18n/fi.ts +++ b/frontend/src/ui/i18n/fi.ts @@ -1,4 +1,5 @@ export const fi: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code -kansio ja ensimmäinen viesti on nyt suojattu formpdf:n ulkopuolella tehdyiltä muutoksilta. Omasi tallennettiin ennen sitä, joten agenttien käyttöoikeus on tämän kerran takaisin tilassa Kysy. Tarkista ne kohdassa Asetukset > Laajennukset > Ulkoiset agentit ja valitse agenttien käyttöoikeus uudelleen.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Tallennettu agenttien lupa muutettiin formpdf:n ulkopuolella, joten se on takaisin tilassa Kysy.", "Apply or clear the redaction marks first.": "Ota sensurointimerkit ensin käyttöön tai tyhjennä ne.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Sivut muuttuivat, joten sensurointimerkit, jotka eivät voineet seurata niitä, poistettiin. Merkitse ne alueet uudelleen.", diff --git a/frontend/src/ui/i18n/fr.ts b/frontend/src/ui/i18n/fr.ts index 29e645a..1a57087 100644 --- a/frontend/src/ui/i18n/fr.ts +++ b/frontend/src/ui/i18n/fr.ts @@ -1,4 +1,5 @@ export const fr: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Le dossier de Claude Code et le premier message sont désormais protégés contre les modifications faites en dehors de formpdf. Les vôtres ont été enregistrés avant, donc l’Accès des agents est revenu sur Demander cette fois. Vérifiez-les dans Préférences > Modules > Agents externes, puis choisissez de nouveau l’Accès des agents.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "L’autorisation d’agent enregistrée a été modifiée en dehors de formpdf ; elle est revenue sur Demander.", "Apply or clear the redaction marks first.": "Appliquez ou effacez d’abord les marques de caviardage.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Les pages ont changé : les marques de caviardage qui n’ont pas pu les suivre ont été retirées. Marquez de nouveau ces zones.", diff --git a/frontend/src/ui/i18n/hu.ts b/frontend/src/ui/i18n/hu.ts index 97891ed..3be94a9 100644 --- a/frontend/src/ui/i18n/hu.ts +++ b/frontend/src/ui/i18n/hu.ts @@ -1,4 +1,5 @@ export const hu: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "A Claude Code mappa és az első üzenet mostantól védett a formpdf-en kívül végzett módosításokkal szemben. Az Ön beállításai ezelőtt lettek mentve, ezért az ügynökhozzáférés ezúttal visszaállt a Kérdezés értékre. Ellenőrizze őket itt: Beállítások > Bővítmények > Külső ügynökök, majd állítsa be újra az ügynökhozzáférést.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "A mentett ügynökengedélyt a formpdf-en kívül módosították, ezért visszaállt a Kérdezés értékre.", "Apply or clear the redaction marks first.": "Előbb alkalmazza vagy törölje a kitakarási jelöléseket.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Az oldalak megváltoztak, ezért a kitakarási jelölések, amelyek nem tudták követni őket, törlődtek. Jelölje meg újra ezeket a területeket.", diff --git a/frontend/src/ui/i18n/id.ts b/frontend/src/ui/i18n/id.ts index a2bb9d8..6c6c9c2 100644 --- a/frontend/src/ui/i18n/id.ts +++ b/frontend/src/ui/i18n/id.ts @@ -1,4 +1,5 @@ export const id: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Folder Claude Code dan pesan pertama kini dilindungi dari perubahan yang dibuat di luar formpdf. Milik Anda disimpan sebelum itu, jadi Akses agen kembali ke Tanya untuk kali ini. Periksa keduanya di Preferensi > Plugin > Agen luar, lalu atur Akses agen lagi.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Izin agen yang tersimpan diubah di luar formpdf, jadi kembali ke Tanya.", "Apply or clear the redaction marks first.": "Terapkan atau hapus tanda penyensoran terlebih dahulu.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Halaman berubah, jadi tanda penyensoran yang tidak dapat mengikutinya telah dihapus. Tandai area tersebut lagi.", diff --git a/frontend/src/ui/i18n/it.ts b/frontend/src/ui/i18n/it.ts index 2c1e51a..61d79de 100644 --- a/frontend/src/ui/i18n/it.ts +++ b/frontend/src/ui/i18n/it.ts @@ -1,4 +1,5 @@ export const it: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "La cartella di Claude Code e il primo messaggio ora sono protetti dalle modifiche fatte fuori da formpdf. I tuoi erano stati salvati prima, quindi l’Accesso degli agenti è tornato su Chiedi per questa volta. Controllali in Preferenze > Plugin > Agenti esterni, poi imposta di nuovo l’Accesso degli agenti.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Il permesso degli agenti salvato è stato modificato fuori da formpdf, quindi è tornato su Chiedi.", "Apply or clear the redaction marks first.": "Prima applica o cancella i segni di oscuramento.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Le pagine sono cambiate, quindi i segni di oscuramento che non potevano seguirle sono stati rimossi. Contrassegna di nuovo quelle aree.", diff --git a/frontend/src/ui/i18n/ja.ts b/frontend/src/ui/i18n/ja.ts index dd3410e..018cff5 100644 --- a/frontend/src/ui/i18n/ja.ts +++ b/frontend/src/ui/i18n/ja.ts @@ -1,4 +1,5 @@ export const ja: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code フォルダと最初のメッセージは、formpdf の外での変更から保護されるようになりました。お使いの設定はそれより前に保存されていたため、エージェントのアクセスは今回だけ「質問」に戻りました。環境設定 > プラグイン > 外部エージェント で確認してから、エージェントのアクセスをもう一度設定してください。", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "保存されていたエージェントの権限が formpdf の外で変更されたため、「質問」に戻りました。", "Apply or clear the redaction marks first.": "先に墨消しマークを適用するか、クリアしてください。", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "ページが変更されたため、追従できなかった墨消しマークを削除しました。その領域をもう一度マークしてください。", diff --git a/frontend/src/ui/i18n/ko.ts b/frontend/src/ui/i18n/ko.ts index 68488d8..3b98328 100644 --- a/frontend/src/ui/i18n/ko.ts +++ b/frontend/src/ui/i18n/ko.ts @@ -1,4 +1,5 @@ export const ko: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code 폴더와 첫 메시지는 이제 formpdf 밖에서 이루어진 변경으로부터 보호됩니다. 기존 설정이 그 전에 저장되었으므로 에이전트 접근이 이번 한 번 '질문'으로 되돌아갔습니다. 환경설정 > 플러그인 > 외부 에이전트에서 확인한 뒤 에이전트 접근을 다시 설정하세요.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "저장된 에이전트 권한이 formpdf 밖에서 변경되어 '질문'으로 되돌아갔습니다.", "Apply or clear the redaction marks first.": "먼저 가림 처리 표시를 적용하거나 지우세요.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "페이지가 바뀌어 따라갈 수 없는 가림 처리 표시를 제거했습니다. 해당 영역을 다시 표시하세요.", diff --git a/frontend/src/ui/i18n/nb.ts b/frontend/src/ui/i18n/nb.ts index 70b7fa0..0652b42 100644 --- a/frontend/src/ui/i18n/nb.ts +++ b/frontend/src/ui/i18n/nb.ts @@ -1,4 +1,5 @@ export const nb: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code-mappen og den første meldingen er nå beskyttet mot endringer utenfor formpdf. Dine ble lagret før det, så Agenttilgang er tilbake på Spør denne ene gangen. Sjekk dem under Innstillinger > Programtillegg > Eksterne agenter, og velg Agenttilgang på nytt.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Den lagrede agenttillatelsen ble endret utenfor formpdf, så den er tilbake på Spør.", "Apply or clear the redaction marks first.": "Bruk eller fjern sladdemerkene først.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Sidene er endret, så sladdemerker som ikke kunne følge dem, er fjernet. Marker de områdene på nytt.", diff --git a/frontend/src/ui/i18n/nl.ts b/frontend/src/ui/i18n/nl.ts index 5ffd502..450901b 100644 --- a/frontend/src/ui/i18n/nl.ts +++ b/frontend/src/ui/i18n/nl.ts @@ -1,4 +1,5 @@ export const nl: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "De Claude Code-map en het eerste bericht zijn nu beschermd tegen wijzigingen buiten formpdf. De jouwe zijn eerder opgeslagen, dus Toegang voor agents staat deze ene keer weer op Vragen. Controleer ze in Voorkeuren > Plug-ins > Externe agents en stel Toegang voor agents opnieuw in.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "De opgeslagen toestemming voor agents is buiten formpdf gewijzigd en staat daarom weer op Vragen.", "Apply or clear the redaction marks first.": "Pas de redactiemarkeringen eerst toe of wis ze.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "De pagina’s zijn gewijzigd, dus redactiemarkeringen die ze niet konden volgen zijn verwijderd. Markeer die gebieden opnieuw.", diff --git a/frontend/src/ui/i18n/pl.ts b/frontend/src/ui/i18n/pl.ts index 4098ebc..cd11d30 100644 --- a/frontend/src/ui/i18n/pl.ts +++ b/frontend/src/ui/i18n/pl.ts @@ -1,4 +1,5 @@ export const pl: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Folder Claude Code i pierwsza wiadomość są teraz chronione przed zmianami wprowadzonymi poza formpdf. Twoje zostały zapisane wcześniej, więc dostęp agentów tym razem wrócił do ustawienia Zapytaj. Sprawdź je w Preferencje > Wtyczki > Zewnętrzni agenci i ponownie ustaw dostęp agentów.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Zapisane uprawnienie agentów zostało zmienione poza formpdf, więc wróciło do ustawienia Zapytaj.", "Apply or clear the redaction marks first.": "Najpierw zastosuj lub wyczyść znaczniki redakcji.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Strony się zmieniły, więc usunięto znaczniki redakcji, które nie mogły za nimi podążyć. Zaznacz te obszary ponownie.", diff --git a/frontend/src/ui/i18n/pt-BR.ts b/frontend/src/ui/i18n/pt-BR.ts index 04430bc..1e0d818 100644 --- a/frontend/src/ui/i18n/pt-BR.ts +++ b/frontend/src/ui/i18n/pt-BR.ts @@ -1,4 +1,5 @@ export const ptBR: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "A pasta do Claude Code e a primeira mensagem agora estão protegidas contra alterações feitas fora do formpdf. As suas foram salvas antes disso, então o Acesso de agentes voltou para Perguntar desta vez. Confira-as em Preferências > Plug-ins > Agentes externos e escolha o Acesso de agentes novamente.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "A permissão de agentes salva foi alterada fora do formpdf, então voltou para Perguntar.", "Apply or clear the redaction marks first.": "Primeiro aplique ou limpe as marcas de remoção.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "As páginas mudaram, então as marcas de remoção que não puderam acompanhá-las foram retiradas. Marque essas áreas novamente.", diff --git a/frontend/src/ui/i18n/ru.ts b/frontend/src/ui/i18n/ru.ts index 7119347..ec75523 100644 --- a/frontend/src/ui/i18n/ru.ts +++ b/frontend/src/ui/i18n/ru.ts @@ -1,4 +1,5 @@ export const ru: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Папка Claude Code и первое сообщение теперь защищены от изменений вне formpdf. Ваши были сохранены раньше, поэтому доступ агентов в этот раз снова «Спросить». Проверьте их в разделе Настройки > Плагины > Внешние агенты и снова выберите доступ агентов.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Сохранённое разрешение для агентов было изменено вне formpdf, поэтому снова выбрано «Спросить».", "Apply or clear the redaction marks first.": "Сначала примените или очистите метки скрытия.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Страницы изменились, поэтому метки скрытия, которые не смогли последовать за ними, удалены. Отметьте эти области снова.", diff --git a/frontend/src/ui/i18n/sv.ts b/frontend/src/ui/i18n/sv.ts index 75702df..43b0786 100644 --- a/frontend/src/ui/i18n/sv.ts +++ b/frontend/src/ui/i18n/sv.ts @@ -1,4 +1,5 @@ export const sv: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code-mappen och det första meddelandet skyddas nu mot ändringar som görs utanför formpdf. Dina sparades innan dess, så Agentåtkomst är tillbaka på Fråga den här gången. Kontrollera dem under Inställningar > Tillägg > Externa agenter och välj Agentåtkomst igen.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Den sparade agentbehörigheten ändrades utanför formpdf, så den är tillbaka på Fråga.", "Apply or clear the redaction marks first.": "Verkställ eller rensa maskeringsmarkeringarna först.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Sidorna har ändrats, så maskeringsmarkeringar som inte kunde följa med togs bort. Markera de områdena igen.", diff --git a/frontend/src/ui/i18n/th.ts b/frontend/src/ui/i18n/th.ts index 61048c3..2a93dfd 100644 --- a/frontend/src/ui/i18n/th.ts +++ b/frontend/src/ui/i18n/th.ts @@ -1,4 +1,5 @@ export const th: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "โฟลเดอร์ Claude Code และข้อความแรกได้รับการปกป้องจากการเปลี่ยนแปลงนอก formpdf แล้ว ค่าของคุณถูกบันทึกไว้ก่อนหน้านั้น การเข้าถึงของเอเจนต์จึงกลับไปเป็น ถาม ในครั้งนี้ ตรวจสอบได้ที่ การตั้งค่า > ปลั๊กอิน > เอเจนต์ภายนอก แล้วตั้งค่าการเข้าถึงของเอเจนต์อีกครั้ง", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "สิทธิ์ของเอเจนต์ที่บันทึกไว้ถูกเปลี่ยนนอก formpdf จึงกลับไปเป็น ถาม", "Apply or clear the redaction marks first.": "โปรดใช้หรือล้างเครื่องหมายปกปิดข้อมูลก่อน", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "หน้ามีการเปลี่ยนแปลง จึงนำเครื่องหมายปกปิดข้อมูลที่ตามไปไม่ได้ออกแล้ว โปรดทำเครื่องหมายพื้นที่เหล่านั้นอีกครั้ง", diff --git a/frontend/src/ui/i18n/tr.ts b/frontend/src/ui/i18n/tr.ts index cd28357..d442def 100644 --- a/frontend/src/ui/i18n/tr.ts +++ b/frontend/src/ui/i18n/tr.ts @@ -1,4 +1,5 @@ export const tr: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code klasörü ve ilk mesaj artık formpdf dışında yapılan değişikliklere karşı korunuyor. Sizinkiler bundan önce kaydedildiği için aracı erişimi bu seferlik yeniden Sor olarak ayarlandı. Bunları Tercihler > Eklentiler > Dış aracılar bölümünde kontrol edin ve aracı erişimini yeniden seçin.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Kaydedilen aracı izni formpdf dışında değiştirildi, bu yüzden yeniden Sor olarak ayarlandı.", "Apply or clear the redaction marks first.": "Önce karartma işaretlerini uygulayın veya temizleyin.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Sayfalar değişti, bu yüzden onları izleyemeyen karartma işaretleri kaldırıldı. Bu alanları yeniden işaretleyin.", diff --git a/frontend/src/ui/i18n/uk.ts b/frontend/src/ui/i18n/uk.ts index 85b3690..62b9d92 100644 --- a/frontend/src/ui/i18n/uk.ts +++ b/frontend/src/ui/i18n/uk.ts @@ -1,4 +1,5 @@ export const uk: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Тека Claude Code і перше повідомлення тепер захищені від змін поза formpdf. Ваші було збережено раніше, тому доступ агентів цього разу знову «Запитати». Перевірте їх у Налаштування > Плагіни > Зовнішні агенти й знову виберіть доступ агентів.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Збережений дозвіл для агентів було змінено поза formpdf, тому знову вибрано «Запитати».", "Apply or clear the redaction marks first.": "Спершу застосуйте або очистьте позначки приховування.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Сторінки змінилися, тому позначки приховування, які не змогли піти за ними, видалено. Позначте ці області знову.", diff --git a/frontend/src/ui/i18n/vi.ts b/frontend/src/ui/i18n/vi.ts index baad9bd..03e1fb1 100644 --- a/frontend/src/ui/i18n/vi.ts +++ b/frontend/src/ui/i18n/vi.ts @@ -1,4 +1,5 @@ export const vi: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Thư mục Claude Code và tin nhắn đầu tiên giờ được bảo vệ khỏi các thay đổi bên ngoài formpdf. Thiết lập của bạn được lưu trước đó, nên Quyền truy cập của tác tử trở lại Hỏi lần này. Hãy kiểm tra chúng trong Tùy chọn > Plugin > Tác tử bên ngoài, rồi đặt lại Quyền truy cập của tác tử.", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "Quyền đã lưu cho tác tử bị thay đổi bên ngoài formpdf nên đã trở lại Hỏi.", "Apply or clear the redaction marks first.": "Hãy áp dụng hoặc xóa các dấu che nội dung trước.", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "Các trang đã thay đổi nên những dấu che nội dung không thể đi theo đã bị xóa. Hãy đánh dấu lại các vùng đó.", diff --git a/frontend/src/ui/i18n/zh-CN.ts b/frontend/src/ui/i18n/zh-CN.ts index b4b863f..7688477 100644 --- a/frontend/src/ui/i18n/zh-CN.ts +++ b/frontend/src/ui/i18n/zh-CN.ts @@ -1,4 +1,5 @@ export const zhCN: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code 文件夹和首条消息现在受到保护,不会被 formpdf 之外的更改影响。你的设置是在此之前保存的,因此代理访问这一次已恢复为“提问”。请在 偏好设置 > 插件 > 外部代理 中检查它们,然后重新设置代理访问。", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "已保存的代理权限在 formpdf 之外被更改,现已恢复为“提问”。", "Apply or clear the redaction marks first.": "请先应用或清除涂黑标记。", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "页面已更改,无法随之移动的涂黑标记已被移除。请重新标记这些区域。", diff --git a/frontend/src/ui/i18n/zh-TW.ts b/frontend/src/ui/i18n/zh-TW.ts index e6d0aeb..d48bb2d 100644 --- a/frontend/src/ui/i18n/zh-TW.ts +++ b/frontend/src/ui/i18n/zh-TW.ts @@ -1,4 +1,5 @@ export const zhTW: Record = { +"The Claude Code folder and first message are now protected from changes made outside formpdf. Yours were saved before that, so Agent access is back to Ask this once. Check them in Preferences > Plugins > Outside Agents, then set Agent access again.": "Claude Code 資料夾和第一則訊息現在受到保護,不會被 formpdf 之外的變更影響。你的設定是在此之前儲存的,因此代理存取這一次已恢復為「提問」。請在 偏好設定 > 外掛程式 > 外部代理 中檢查它們,然後重新設定代理存取。", "The saved agent permission was changed outside formpdf, so it is back to Ask.": "已儲存的代理權限在 formpdf 之外被變更,現已恢復為「提問」。", "Apply or clear the redaction marks first.": "請先套用或清除塗黑標記。", "The pages changed, so redaction marks that could not follow them were removed. Mark those areas again.": "頁面已變更,無法隨之移動的塗黑標記已被移除。請重新標記這些區域。", diff --git a/frontend/src/ui/toast.ts b/frontend/src/ui/toast.ts index 8cb9fd7..0000024 100644 --- a/frontend/src/ui/toast.ts +++ b/frontend/src/ui/toast.ts @@ -2,10 +2,10 @@ import { el } from './dom'; const timers = new WeakMap(); -export function toast(text: string, kind: 'info' | 'error' = 'info'): void { +export function toast(text: string, kind: 'info' | 'error' = 'info', hold?: number): void { const root = document.getElementById('toast-root'); if (!root) return; - const ms = kind === 'error' ? 6000 : 3600, cls = `fs-toast${kind === 'error' ? ' is-error' : ''}`; + const ms = hold ?? (kind === 'error' ? 6000 : 3600), cls = `fs-toast${kind === 'error' ? ' is-error' : ''}`; const same = Array.from(root.children).find((n) => n.textContent === text && n.className === cls); if (same && !(same as HTMLElement).dataset.gone) { window.clearTimeout(timers.get(same));