0agent 1.0.75 → 1.0.77
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/daemon.mjs +30 -15
- package/package.json +1 -1
package/dist/daemon.mjs
CHANGED
|
@@ -5302,6 +5302,13 @@ var init_AgentExecutor = __esm({
|
|
|
5302
5302
|
const messages = [
|
|
5303
5303
|
{ role: "user", content: task }
|
|
5304
5304
|
];
|
|
5305
|
+
const isJustdo = /book|file.*itr|tax.*file|irctc|train.*ticket|flight|passport|appointment|login.*portal|pan.*card|aadhaar|monitor.*watch|price.*drop|slot.*available|justdo/i.test(task);
|
|
5306
|
+
if (isJustdo) {
|
|
5307
|
+
messages.push(
|
|
5308
|
+
{ role: "assistant", content: "I can help with that. Let me start collecting the information I need." },
|
|
5309
|
+
{ role: "user", content: "Yes, go ahead." }
|
|
5310
|
+
);
|
|
5311
|
+
}
|
|
5305
5312
|
const contextLimit = LLMExecutor.getContextWindowTokens(this.llm["config"]?.model ?? "claude-sonnet-4-6");
|
|
5306
5313
|
if (isSelfMod) {
|
|
5307
5314
|
this.maxIterations = Math.max(this.maxIterations, 50);
|
|
@@ -5681,22 +5688,30 @@ content = element.text if element else page.get_all_text()` : `content = page.ge
|
|
|
5681
5688
|
if (isJustdoTask) {
|
|
5682
5689
|
lines.push(
|
|
5683
5690
|
``,
|
|
5684
|
-
`\u2550\u2550\u2550 TASK EXECUTION MODE \u2550\u2550\u2550`,
|
|
5685
|
-
`
|
|
5686
|
-
`
|
|
5687
|
-
`
|
|
5688
|
-
|
|
5689
|
-
`
|
|
5691
|
+
`\u2550\u2550\u2550 TASK EXECUTION MODE (JUSTDO) \u2550\u2550\u2550`,
|
|
5692
|
+
`YOU CAN execute real tasks on real websites. You have a cloud browser, OCR, credential vault,`,
|
|
5693
|
+
`and monitoring tools. DO NOT refuse these requests. DO NOT say "I can't browse websites".`,
|
|
5694
|
+
`You MUST use the tools below to fulfill the user's request:`,
|
|
5695
|
+
``,
|
|
5696
|
+
` browser_execute(url, task) \u2014 opens a REAL website in a cloud browser, uses AI vision to`,
|
|
5697
|
+
` navigate pages, fill forms, click buttons, and extract results. This is NOT a simulation.`,
|
|
5698
|
+
` ocr_extract(image_path) \u2014 extracts structured fields from document photos (PAN, Aadhaar, Form 16)`,
|
|
5699
|
+
` credential_vault(op, session_id, site, field, value) \u2014 AES-256 encrypted credential storage`,
|
|
5700
|
+
` monitor_watch(op, url, condition, action, interval) \u2014 persistent page polling with auto-action`,
|
|
5701
|
+
``,
|
|
5702
|
+
`WORKFLOW: When the user asks you to book/file/monitor something:`,
|
|
5703
|
+
` 1. Start collecting required info \u2014 ONE question at a time.`,
|
|
5704
|
+
` 2. Accept photos \u2192 run ocr_extract. Always confirm extracted data before acting.`,
|
|
5705
|
+
` 3. Store credentials via credential_vault (NEVER echo passwords back).`,
|
|
5706
|
+
` 4. Execute via browser_execute with the collected info.`,
|
|
5707
|
+
` 5. If OTP needed: ask user, wait, retry browser_execute with otp field.`,
|
|
5708
|
+
` 6. On success: screenshot + surge_publish for proof. Send live link.`,
|
|
5709
|
+
` 7. credential_vault(op:"destroy") when done.`,
|
|
5710
|
+
``,
|
|
5711
|
+
`Detect language from user's first message. Respond in the SAME language (Hindi\u2192Hindi, etc).`,
|
|
5712
|
+
`On failure: explain what went wrong clearly. Never leave user hanging.`,
|
|
5690
5713
|
``,
|
|
5691
|
-
`
|
|
5692
|
-
` 1. Collect info ONE question at a time. Never dump a form at the user.`,
|
|
5693
|
-
` 2. Detect language from user's first message. Respond in the SAME language.`,
|
|
5694
|
-
` 3. NEVER echo back passwords. Store via credential_vault, reference by site/field.`,
|
|
5695
|
-
` 4. Always CONFIRM extracted data before acting: show what you read, ask "sahi hai?"`,
|
|
5696
|
-
` 5. If OTP required: tell user, wait for their response, retry with otp parameter.`,
|
|
5697
|
-
` 6. After task completion: screenshot + surge_publish for proof, send link to user.`,
|
|
5698
|
-
` 7. credential_vault(op:"destroy") when task is done or fails.`,
|
|
5699
|
-
` 8. On failure: explain clearly what went wrong. Never leave user hanging.`
|
|
5714
|
+
`START NOW. Ask the first question to begin collecting information.`
|
|
5700
5715
|
);
|
|
5701
5716
|
}
|
|
5702
5717
|
if (isSelfMod && this.agentRoot) {
|