Skip to content

Commit 2d33644

Browse files
SashaMITcursoragent
andcommitted
chore(home-studio): scrub machine-local prepare path before public push
CREATIVE_PREPARE_CMD is operator-owned only; drop hardcoded /Users path. Redact LAN endpoints from tip comments (history may still mention them). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9535c2a commit 2d33644

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

capsules/home-gui/browser/agent-tip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
* [ ] Thinking block renders bold/lists/fences (not raw **)
9999
* [ ] Mid-stream thinking paints markdown; Stop keeps raw source
100100
*
101-
* Sparks Flash dogfood: OLLAMA_URL=http://192.168.1.147:8888/v1/chat/completions
102-
* OLLAMA_MODEL=deepseek-v4-flashsee ~/elastos-mac-test-home/SPARK-FLASH-START.md
101+
* Sparks Flash dogfood: OLLAMA_URL / OLLAMA_MODEL via local SPARK-FLASH-START recipe
102+
* (LAN endpoints stay operator-localnot committed).
103103
*
104104
* Studio Generate (§BD):
105105
* [ ] Agent → Studio shows CREATIVE profile / Generate ready

elastos/crates/elastos-server/src/api/gateway_home_creative.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,8 @@ fn prepare_store() -> &'static Mutex<PrepareState> {
255255
}
256256

257257
fn prepare_cmd_path() -> Option<PathBuf> {
258-
if let Some(p) = env_nonempty("CREATIVE_PREPARE_CMD") {
259-
return Some(PathBuf::from(p));
260-
}
261-
let default = PathBuf::from("/Users/sash/Sparks/configs/h3/prepare-studio.sh");
262-
if default.is_file() {
263-
Some(default)
264-
} else {
265-
None
266-
}
258+
// Operator-owned only — never bake a machine-local path into the binary.
259+
env_nonempty("CREATIVE_PREPARE_CMD").map(PathBuf::from)
267260
}
268261

269262
fn prepare_snapshot() -> Value {

0 commit comments

Comments
 (0)