personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

copy: localize convey/settings/observer literal copy

Land the locked copy modules that centralize the new convey, settings, and observer strings. This keeps every consumer on a single source of truth before the CLI, UI, and observer flows start importing the copy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+148
+68
apps/settings/copy.py
··· 1 + # SPDX-License-Identifier: AGPL-3.0-only 2 + # Copyright (c) 2026 sol pbc 3 + 4 + """Locked copy for convey settings CLI and restart-aware settings UI flows.""" 5 + 6 + from __future__ import annotations 7 + 8 + CONVEY_REFUSE_NO_PASSWORD_NETWORK = "error: enabling network access requires a password. set one first with: sol password set" 9 + CONVEY_REFUSE_NO_PASSWORD_TRUST = "error: disabling localhost trust requires a password (otherwise no client could authenticate). set one first with: sol password set" 10 + CONVEY_NETWORK_ENABLE_PROGRESS = "enabling network access. restarting convey…" 11 + CONVEY_NETWORK_ENABLE_DONE = ( 12 + "network access enabled. convey is now reachable at: {host_url}" 13 + ) 14 + CONVEY_NETWORK_DISABLE_PROGRESS = "restricting to localhost only. restarting convey…" 15 + CONVEY_NETWORK_DISABLE_DONE = ( 16 + "network access disabled. convey is now reachable only at: http://localhost:{port}" 17 + ) 18 + CONVEY_RESTART_TIMEOUT = ( 19 + "warning: restart did not complete in 15 seconds. check status with: sol status" 20 + ) 21 + CONVEY_TRUST_ENABLE_DONE = ( 22 + "localhost trust enabled. localhost requests skip the password." 23 + ) 24 + CONVEY_TRUST_DISABLE_DONE = ( 25 + "localhost trust disabled. localhost requests now require the password." 26 + ) 27 + CONVEY_HOST_URL_SET_DONE = "host url set: {url}" 28 + CONVEY_HOST_URL_CLEARED = "host url cleared. auto-detect is active." 29 + CONVEY_HOST_URL_INVALID = "error: host url must be an absolute URL" 30 + CONVEY_HOST_URL_FLAG_CONFLICT = "error: choose exactly one of <url>, --auto, or --show" 31 + 32 + 33 + def format_convey_status( 34 + *, 35 + network_access: str, 36 + bind: str, 37 + password: str, 38 + trust_localhost: str, 39 + host_url: str, 40 + ) -> str: 41 + """Return the locked five-line convey status block.""" 42 + 43 + return ( 44 + "convey\n" 45 + f" network access: {network_access}\n" 46 + f" bind: {bind}\n" 47 + f" password: {password}\n" 48 + f" trust localhost: {trust_localhost}\n" 49 + f" host url: {host_url}" 50 + ) 51 + 52 + 53 + __all__ = [ 54 + "CONVEY_HOST_URL_CLEARED", 55 + "CONVEY_HOST_URL_FLAG_CONFLICT", 56 + "CONVEY_HOST_URL_INVALID", 57 + "CONVEY_HOST_URL_SET_DONE", 58 + "CONVEY_NETWORK_DISABLE_DONE", 59 + "CONVEY_NETWORK_DISABLE_PROGRESS", 60 + "CONVEY_NETWORK_ENABLE_DONE", 61 + "CONVEY_NETWORK_ENABLE_PROGRESS", 62 + "CONVEY_REFUSE_NO_PASSWORD_NETWORK", 63 + "CONVEY_REFUSE_NO_PASSWORD_TRUST", 64 + "CONVEY_RESTART_TIMEOUT", 65 + "CONVEY_TRUST_DISABLE_DONE", 66 + "CONVEY_TRUST_ENABLE_DONE", 67 + "format_convey_status", 68 + ]
+55
convey/copy.py
··· 1 + # SPDX-License-Identifier: AGPL-3.0-only 2 + # Copyright (c) 2026 sol pbc 3 + 4 + """Locked copy for convey onboarding, settings, and pairing surfaces.""" 5 + 6 + from __future__ import annotations 7 + 8 + INIT_PASSWORD_HINT = "protects your solstone web interface when you allow network access. minimum 8 characters. you can reset it anytime by using a terminal and running the command: <code>sol password set</code>. password is not required when accessing solstone from the same system." 9 + SETTINGS_SECURITY_DESC = ( 10 + "network access and password protection for the convey web interface." 11 + ) 12 + SETTINGS_NETWORK_MODE_LABEL = "network access" 13 + SETTINGS_NETWORK_MODE_OFF = "localhost only" 14 + SETTINGS_NETWORK_MODE_ON = "on" 15 + SETTINGS_NETWORK_DESC_OFF = ( 16 + "convey is reachable only from this machine. no password is required." 17 + ) 18 + SETTINGS_NETWORK_DESC_ON = "convey is reachable from other devices on the local network. password is required for non-localhost clients." 19 + SETTINGS_LAN_URL_LABEL = "local network url" 20 + SETTINGS_NETWORK_BUTTON_ENABLE = "allow network access" 21 + SETTINGS_NETWORK_BUTTON_DISABLE = "restrict to localhost only" 22 + SETTINGS_NETWORK_NEEDS_PASSWORD = "set a password below first." 23 + SETTINGS_NETWORK_RESTARTING = "restarting convey…" 24 + SETTINGS_PASSWORD_HINT = "protects the web interface when network access is on. not required for localhost-only mode." 25 + PAIRING_LOCALHOST_BANNER_TITLE = "convey is in localhost-only mode" 26 + PAIRING_LOCALHOST_BANNER_BODY_1 = ( 27 + "paired devices won't be able to connect until network access is enabled." 28 + ) 29 + PAIRING_LOCALHOST_BANNER_BODY_2 = "enabling network access should only be done on trusted networks and requires a password." 30 + PAIRING_LOCALHOST_BANNER_ACTION = "enable network access in settings →" 31 + PAIRING_NO_LAN_BANNER_TITLE = "couldn't detect a local network address" 32 + PAIRING_NO_LAN_BANNER_BODY = "the QR code below uses localhost, which paired devices can't reach. set a host URL manually with: sol call settings convey host-url <url>" 33 + 34 + 35 + __all__ = [ 36 + "INIT_PASSWORD_HINT", 37 + "PAIRING_LOCALHOST_BANNER_ACTION", 38 + "PAIRING_LOCALHOST_BANNER_BODY_1", 39 + "PAIRING_LOCALHOST_BANNER_BODY_2", 40 + "PAIRING_LOCALHOST_BANNER_TITLE", 41 + "PAIRING_NO_LAN_BANNER_BODY", 42 + "PAIRING_NO_LAN_BANNER_TITLE", 43 + "SETTINGS_LAN_URL_LABEL", 44 + "SETTINGS_NETWORK_BUTTON_DISABLE", 45 + "SETTINGS_NETWORK_BUTTON_ENABLE", 46 + "SETTINGS_NETWORK_DESC_OFF", 47 + "SETTINGS_NETWORK_DESC_ON", 48 + "SETTINGS_NETWORK_MODE_LABEL", 49 + "SETTINGS_NETWORK_MODE_OFF", 50 + "SETTINGS_NETWORK_MODE_ON", 51 + "SETTINGS_NETWORK_NEEDS_PASSWORD", 52 + "SETTINGS_NETWORK_RESTARTING", 53 + "SETTINGS_PASSWORD_HINT", 54 + "SETTINGS_SECURITY_DESC", 55 + ]
+25
observe/copy.py
··· 1 + # SPDX-License-Identifier: AGPL-3.0-only 2 + # Copyright (c) 2026 sol pbc 3 + 4 + """Locked copy for observer localhost-only CLI warnings.""" 5 + 6 + from __future__ import annotations 7 + 8 + OBSERVER_LOCALHOST_BANNER_LINE_1 = "⚠️ convey is in localhost-only mode." 9 + OBSERVER_LOCALHOST_BANNER_LINE_2 = ( 10 + "this observer key won't be reachable from remote devices." 11 + ) 12 + OBSERVER_LOCALHOST_BANNER_LINE_3 = "enabling network access should only be done on trusted networks and requires a password." 13 + OBSERVER_LOCALHOST_BANNER_LINE_4 = ( 14 + "to allow network access: sol call settings convey network-access enable" 15 + ) 16 + OBSERVER_LOCALHOST_REMINDER = "reminder: convey is in localhost-only mode. this observer can't reach convey from another device until you run: sol call settings convey network-access enable" 17 + 18 + 19 + __all__ = [ 20 + "OBSERVER_LOCALHOST_BANNER_LINE_1", 21 + "OBSERVER_LOCALHOST_BANNER_LINE_2", 22 + "OBSERVER_LOCALHOST_BANNER_LINE_3", 23 + "OBSERVER_LOCALHOST_BANNER_LINE_4", 24 + "OBSERVER_LOCALHOST_REMINDER", 25 + ]