File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Copy to .env and fill in. .env is gitignored.
1+ # Secrets are managed with Doppler (project: tronbrowser). Prefer:
2+ # doppler run -- pnpm <script>
3+ # This file documents the variables and is a fallback for local .env use
4+ # (copy to .env and fill in; .env is gitignored). Doppler is the source of truth.
25#
36# --- Storage ---------------------------------------------------------------
47# Option A: managed cloud database (Turso) — has managed backups.
Original file line number Diff line number Diff line change @@ -30,6 +30,22 @@ pnpm test
3030pnpm build
3131```
3232
33+ ## Secrets / env (Doppler)
34+
35+ Secrets are managed with the [ Doppler] ( https://doppler.com ) CLI (project
36+ ` tronbrowser ` , config ` dev ` ). After ` doppler login ` , the repo is already scoped
37+ via [ ` doppler.yaml ` ] ( doppler.yaml ) — run anything that needs env through Doppler:
38+
39+ ``` bash
40+ doppler setup # one-time, reads doppler.yaml
41+ doppler run -- pnpm test
42+ doppler run -- node apps/... # injects TRONBROWSER_DB_URL, _AUTH_TOKEN, …
43+ ```
44+
45+ [ ` .env.example ` ] ( .env.example ) documents every variable; a local ` .env `
46+ (gitignored) still works as a fallback, but Doppler is the source of truth.
47+ Cloud AI provider keys live in the DB (` ai_provider_keys ` ), not in env.
48+
3349## Milestones
3450
3551| Milestone | Scope |
Original file line number Diff line number Diff line change 3939 border-radius : 10px ; padding : 14px 16px ; }
4040 .principles b { color : var (--cyan ); }
4141 footer { text-align : center; margin-top : 56px ; color : var (--muted ); }
42+ .copyright { margin-top : 14px ; font-size : 13px ; color : var (--muted ); opacity : .8 ; }
4243 a { color : var (--cyan ); }
4344</ style >
4445</ head >
5657 < button onclick ="copyCmd() "> copy</ button >
5758 </ div >
5859 < div class ="sub ">
59- Then use the < code > tron</ code > CLI:< br />
60- < code > tron</ code > to launch ·
60+ Then use the agent-friendly < code > tron</ code > CLI:< br />
61+ < code > tron <url> </ code > to open a URL ·
6162 < code > tron upgrade</ code > ·
6263 < code > tron remove</ code > ·
6364 < code > tron version</ code >
7879 < footer >
7980 < a href ="https://github.com/profullstack/tronbrowser.dev "> GitHub</ a > ·
8081 < a href ="https://github.com/profullstack/tronbrowser.dev/blob/main/docs/tronbrowser-prd.md "> PRD</ a >
82+ < div class ="copyright "> © 2026 Profullstack, Inc. · MIT License</ div >
8183 </ footer >
8284</ div >
8385< script >
Original file line number Diff line number Diff line change @@ -70,15 +70,26 @@ usage() {
7070tron — TronBrowser CLI
7171
7272Usage:
73- tron [url...] Launch TronBrowser (optionally opening URLs)
74- tron upgrade Update to the latest release
75- tron remove Uninstall TronBrowser (keeps your profile data)
76- tron version Print the installed version
77- tron help Show this help
73+ tron <url> [url...] Open URL(s) in TronBrowser (agent-friendly)
74+ tron open <url> Same as above, explicit
75+ tron Launch TronBrowser
76+ tron upgrade Update to the latest release
77+ tron remove Uninstall TronBrowser (keeps your profile data)
78+ tron version Print the installed version
79+ tron help Show this help
7880USAGE
7981}
8082
83+ launch() {
84+ [ -x "$CURRENT" ] || { echo "TronBrowser is not installed. Run: curl -fsSL $INSTALL_URL | sh" >&2; exit 1; }
85+ exec "$CURRENT" "$@"
86+ }
87+
8188case "${1:-}" in
89+ open)
90+ shift
91+ [ "$#" -gt 0 ] || { echo "usage: tron open <url>" >&2; exit 2; }
92+ launch "$@" ;;
8293 upgrade|update)
8394 exec sh -c "curl -fsSL '$INSTALL_URL' | sh -s -- upgrade" ;;
8495 remove|uninstall)
@@ -90,8 +101,8 @@ case "${1:-}" in
90101 help|--help|-h)
91102 usage ;;
92103 *)
93- [ -x "$CURRENT" ] || { echo "TronBrowser is not installed. Run: curl -fsSL $INSTALL_URL | sh" >&2; exit 1; }
94- exec "$CURRENT" "$@" ;;
104+ # Bare `tron` launches; `tron <url> [url...]` opens URLs (passthrough).
105+ launch "$@" ;;
95106esac
96107TRON
97108 chmod +x " $TRON_CLI "
Original file line number Diff line number Diff line change 1+ setup :
2+ project : tronbrowser
3+ config : dev
You can’t perform that action at this time.
0 commit comments