feat(ext): add systemInstruction to ExecuteConfig

Expose a serializable `systemInstruction` string field on the
page-facing ExecuteConfig, mapped to `instructions.system` when
creating MultiPageAgent. Functions cannot cross the postMessage
boundary, so this flat string field replaces the object form.

Closes #359
This commit is contained in:
Simon
2026-04-02 16:34:57 +08:00
parent 5ea2edd13c
commit ec08b05da1
4 changed files with 20 additions and 1 deletions

View File

@@ -199,6 +199,7 @@ interface ExecuteConfig {
model: string // Model name
apiKey?: string // LLM AK
systemInstruction?: string // Global system-level instructions
includeInitialTab?: boolean
experimentalIncludeAllTabs?: boolean // Control all unpinned tabs in the window
onStatusChange?: (status: AgentStatus) => void