feat: add generated scene skill platform hardening
This commit is contained in:
@@ -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
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user