tesseract-agent 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-bundle/cli.js +30 -1
- package/package.json +1 -1
package/dist-bundle/cli.js
CHANGED
|
@@ -24216,6 +24216,29 @@ CRITICAL RULES:
|
|
|
24216
24216
|
- When element selectors are provided, use click or evaluate to interact.
|
|
24217
24217
|
- You can read and edit project source files if a project directory is configured.
|
|
24218
24218
|
- Always confirm before making destructive changes to source files.`
|
|
24219
|
+
},
|
|
24220
|
+
{
|
|
24221
|
+
id: "agent.system.unattended-report",
|
|
24222
|
+
group: "agent",
|
|
24223
|
+
label: "Unattended run \u2014 closing report",
|
|
24224
|
+
help: "Appended for the whole of any unattended run (the user opted in, or a scheduled fire). Nobody watched it, so the final message is the only account anyone will read \u2014 this asks for it in plain language, with the status and anything still blocked stated outright.",
|
|
24225
|
+
vars: [],
|
|
24226
|
+
content: `UNATTENDED RUN \u2014 FINISH WITH AN EXECUTIVE REPORT.
|
|
24227
|
+
|
|
24228
|
+
Nobody is watching this run, so your final message is the only account of it anyone will read.
|
|
24229
|
+
End with a short report in PLAIN LANGUAGE \u2014 no jargon, no tool names, no file paths or symbols
|
|
24230
|
+
unless one of them IS the point, and do not restate these instructions. Cover, briefly:
|
|
24231
|
+
|
|
24232
|
+
- WHAT WAS DONE \u2014 the outcome in a sentence or two, described as what changed for the user
|
|
24233
|
+
rather than which steps you took.
|
|
24234
|
+
- STATUS \u2014 finished, partly finished, or not done. Say which plainly, in those terms.
|
|
24235
|
+
- BLOCKERS AND DECISIONS \u2014 anything that stopped you, anything you skipped, any choice you made
|
|
24236
|
+
on the user's behalf, and anything a person now has to do themselves. Write "nothing
|
|
24237
|
+
outstanding" when that is genuinely true.
|
|
24238
|
+
|
|
24239
|
+
Be honest rather than reassuring. A run that half-worked and says so is useful; one that claims
|
|
24240
|
+
a success it cannot show is worse than a failure. If you were declined something, or answered
|
|
24241
|
+
your own question because no one was there, say so here.`
|
|
24219
24242
|
},
|
|
24220
24243
|
{
|
|
24221
24244
|
id: "agent.system.page-info",
|
|
@@ -39273,11 +39296,17 @@ ${prompt("agent.system.website-build")}` : "";
|
|
|
39273
39296
|
// END, so without this the agent has already built the whole thing monolithically by
|
|
39274
39297
|
// the time anything can ask it to work in slices — and rewriting the user's message
|
|
39275
39298
|
// is the mistake that made `/compact` the graded task.
|
|
39299
|
+
// The unattended directive is computed from the SEND, not read off `live`: this runs
|
|
39300
|
+
// during query setup and must not depend on turn-start ordering. Both unattended
|
|
39301
|
+
// modes get it — an opted-in run and a scheduled fire are equally unwatched, and in
|
|
39302
|
+
// both the final message is the only account of the run anyone will read.
|
|
39276
39303
|
systemPrompt: { type: "preset", preset: "claude_code", append: this.applyPromptHook(this.buildSystemPrompt(params.url) + (params.appendSystemPrompt ? `
|
|
39277
39304
|
|
|
39278
39305
|
${params.appendSystemPrompt}` : "") + (params.reinforcedVerification ? `
|
|
39279
39306
|
|
|
39280
|
-
${rvPhaseDirective()}` : ""),
|
|
39307
|
+
${rvPhaseDirective()}` : "") + (unattendedModeFor({ optedIn: params.unattended, origin: params.origin }) !== "off" ? `
|
|
39308
|
+
|
|
39309
|
+
${prompt("agent.system.unattended-report")}` : ""), live.sessionId) },
|
|
39281
39310
|
includePartialMessages: true,
|
|
39282
39311
|
// Emit a predicted follow-up prompt after each turn (git/context-aware) — rendered
|
|
39283
39312
|
// as a clickable suggestion chip. Off by default in the SDK, so opt in here.
|