Skip to content

Commit 844d8a4

Browse files
committed
fix(mini-app): add app root directory in result_for_assistant
1 parent d33a979 commit 844d8a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/crates/core/src/agentic/tools/implementations/miniapp_init_tool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Input: name, description, icon, category. The tool creates the app directory and
6969
- manifest (meta.json), source/index.html, source/style.css, source/ui.js, source/worker.js,
7070
package.json, storage.json.
7171
72-
Returns app_id and absolute paths to each file. Use those paths with Read/Write/Edit to implement the app. The MiniApp uses window.app (app.fs, app.call, app.dialog, etc.) — see miniapp-dev skill for API reference."#
72+
Returns app_id and the app root directory. Use the root directory and file names above with Read/Write/Edit to implement the app. The MiniApp uses window.app (app.fs, app.call, app.dialog, etc.) — see miniapp-dev skill for API reference."#
7373
.to_string())
7474
}
7575

@@ -187,8 +187,8 @@ Returns app_id and absolute paths to each file. Use those paths with Read/Write/
187187
.await;
188188

189189
let result_text = format!(
190-
"MiniApp '{}' skeleton created. app_id: {}. Edit the files at the paths below with Read/Write/Edit tools, then open in Toolbox to run.",
191-
app.name, app.id
190+
"MiniApp '{}' skeleton created. app_id: {}. Root directory: {}. Use Read/Write/Edit tools with files under this root, then open in Toolbox to run.",
191+
app.name, app.id, app_dir_str
192192
);
193193

194194
Ok(vec![ToolResult::Result {

0 commit comments

Comments
 (0)