feat: add generated scene skill platform hardening

This commit is contained in:
木炎
2026-04-21 23:19:06 +08:00
parent 118fc77935
commit 956f0c2b68
439 changed files with 61974 additions and 3645 deletions

View File

@@ -372,6 +372,14 @@
<label for="instructionInput">任务内容</label>
<textarea id="instructionInput" placeholder="例如:打开百度"></textarea>
</div>
<div class="field">
<label for="pageUrlInput">页面 URL可选</label>
<input id="pageUrlInput" placeholder="例如https://www.zhihu.com 或真实业务页地址" />
</div>
<div class="field">
<label for="pageTitleInput">页面标题(可选)</label>
<input id="pageTitleInput" placeholder="例如:知乎 - 热榜" />
</div>
<div id="validationText" class="validation"></div>
<button id="sendBtn" class="primary-btn" disabled>发送任务</button>
</div>
@@ -458,6 +466,8 @@
connectionState: document.getElementById("connectionState"),
messageStream: document.getElementById("messageStream"),
instructionInput: document.getElementById("instructionInput"),
pageUrlInput: document.getElementById("pageUrlInput"),
pageTitleInput: document.getElementById("pageTitleInput"),
validationText: document.getElementById("validationText"),
sendBtn: document.getElementById("sendBtn"),
emptyState: document.getElementById("emptyState")
@@ -688,14 +698,17 @@
return;
}
const pageUrl = elements.pageUrlInput.value.trim();
const pageTitle = elements.pageTitleInput.value.trim();
setValidation("");
socket.send(JSON.stringify({
type: "submit_task",
instruction,
conversation_id: "",
messages: [],
page_url: "",
page_title: ""
page_url: pageUrl,
page_title: pageTitle
}));
}