diff --git a/examples/src/fireworks/pax b/examples/src/fireworks/pax index c9d86681a..b732a3511 100755 --- a/examples/src/fireworks/pax +++ b/examples/src/fireworks/pax @@ -11,5 +11,5 @@ set -e current_dir=$(pwd) pushd ../../../pax-cli cargo build -PUB_PAX_SERVER=http://localhost:8090 PAX_WORKSPACE_ROOT=.. ../target/debug/pax-cli "$@" --path="$current_dir" --libdev --verbose -popd +PAX_WORKSPACE_ROOT=.. ../target/debug/pax-cli "$@" --path="$current_dir" --libdev --verbose +popd \ No newline at end of file diff --git a/examples/src/fireworks/src/fireworks.pax b/examples/src/fireworks/src/fireworks.pax index 3e4f84c03..febe02fb1 100644 --- a/examples/src/fireworks/src/fireworks.pax +++ b/examples/src/fireworks/src/fireworks.pax @@ -1,6 +1,4 @@ - - - + - - for i in 1..200 { + for i in 1..60 { } - @settings { @tick: handle_tick @@ -31,10 +27,4 @@ x: 50% y: 50% } - .particle { - fill: {hsl((j * 10.00 + ticks)deg, 85%, 55%)} - x: {(j * 2.00 + ticks) %% 100} - y: {(j * 3.00 + ticks) %% 100} - rotate: {(ticks * 2.00)deg} - } } \ No newline at end of file diff --git a/examples/src/fireworks/src/lib.rs b/examples/src/fireworks/src/lib.rs index f1eaf35dc..93f3e9163 100644 --- a/examples/src/fireworks/src/lib.rs +++ b/examples/src/fireworks/src/lib.rs @@ -19,6 +19,6 @@ impl Fireworks { pub fn handle_tick(&mut self, _ctx: &NodeContext) { let old_ticks = self.ticks.get(); - self.ticks.set(old_ticks + 20); // Increment by 20 to make it 10x as fast + self.ticks.set(old_ticks + 1); } } \ No newline at end of file diff --git a/pax-designer/src/console/mod.rs b/pax-designer/src/console/mod.rs index d6170425d..9ad06b56b 100644 --- a/pax-designer/src/console/mod.rs +++ b/pax-designer/src/console/mod.rs @@ -80,10 +80,6 @@ impl Console { let mut dt = borrow_mut!(ctx.engine_context.designtime); let orm = dt.get_orm_mut(); for component in components { - log::warn!( - "replacing templates: {:?}", - component.type_id - ); orm.replace_template( component.type_id, component.template.unwrap_or_default(), @@ -100,7 +96,6 @@ impl Console { pax_designtime::orm::MessageType::LLMPartial => { let mut design_time = dt.borrow_mut(); let mut llm_message = design_time.get_llm_messages(current_id); - //llm_message.reverse(); for message in llm_message { messages.push(Message { message_type: MessageType::LLM, diff --git a/pax-designtime/src/privileged_agent.rs b/pax-designtime/src/privileged_agent.rs index 251044ae3..a7344e06f 100644 --- a/pax-designtime/src/privileged_agent.rs +++ b/pax-designtime/src/privileged_agent.rs @@ -145,8 +145,6 @@ impl WebSocketConnection { } AgentMessage::LLMFinalResponse(final_response) => { if let ChangeType::PaxOnly(components) = final_response.changes { - log::warn!("got pax-only changes:"); - log::warn!("length: {}", components.len()); manager.add_new_message( final_response.request_id, final_response.message, diff --git a/pax-engine/Cargo.toml b/pax-engine/Cargo.toml index fdd690630..ef6481c31 100644 --- a/pax-engine/Cargo.toml +++ b/pax-engine/Cargo.toml @@ -27,7 +27,6 @@ wasm-bindgen = {version = "0.2.92", optional=true} wasm-bindgen-futures = {version = "0.4.42", optional=true} log = "0.4.20" - [features] gpu = ["pax-chassis-web?/gpu"] designtime = ["dep:pax-designtime", "pax-runtime/designtime", "pax-chassis-web?/designtime", "pax-chassis-macos?/designtime", "pax-chassis-ios?/designtime", "pax-macro/designtime"] diff --git a/pax-generation/src/lib.rs b/pax-generation/src/lib.rs index 5eadbda62..c4c06926e 100644 --- a/pax-generation/src/lib.rs +++ b/pax-generation/src/lib.rs @@ -12,7 +12,6 @@ use std::fs; use std::io; use std::path::{Path, PathBuf}; use std::process::Command; -use std::thread::sleep; use futures::channel::mpsc; const CLAUDE_API_URL: &str = "https://api.anthropic.com/v1/messages";