0agent 1.0.75 → 1.0.76
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 +23 -15
- package/package.json +1 -1
package/dist/daemon.mjs
CHANGED
|
@@ -5681,22 +5681,30 @@ content = element.text if element else page.get_all_text()` : `content = page.ge
|
|
|
5681
5681
|
if (isJustdoTask) {
|
|
5682
5682
|
lines.push(
|
|
5683
5683
|
``,
|
|
5684
|
-
`\u2550\u2550\u2550 TASK EXECUTION MODE \u2550\u2550\u2550`,
|
|
5685
|
-
`
|
|
5686
|
-
`
|
|
5687
|
-
`
|
|
5688
|
-
` credential_vault \u2014 store/retrieve encrypted credentials (session-scoped, auto-expire 24h)`,
|
|
5689
|
-
` monitor_watch \u2014 set up persistent polling with automatic action on condition met`,
|
|
5684
|
+
`\u2550\u2550\u2550 TASK EXECUTION MODE (JUSTDO) \u2550\u2550\u2550`,
|
|
5685
|
+
`YOU CAN execute real tasks on real websites. You have a cloud browser, OCR, credential vault,`,
|
|
5686
|
+
`and monitoring tools. DO NOT refuse these requests. DO NOT say "I can't browse websites".`,
|
|
5687
|
+
`You MUST use the tools below to fulfill the user's request:`,
|
|
5690
5688
|
``,
|
|
5691
|
-
`
|
|
5692
|
-
`
|
|
5693
|
-
`
|
|
5694
|
-
`
|
|
5695
|
-
`
|
|
5696
|
-
|
|
5697
|
-
`
|
|
5698
|
-
`
|
|
5699
|
-
`
|
|
5689
|
+
` browser_execute(url, task) \u2014 opens a REAL website in a cloud browser, uses AI vision to`,
|
|
5690
|
+
` navigate pages, fill forms, click buttons, and extract results. This is NOT a simulation.`,
|
|
5691
|
+
` ocr_extract(image_path) \u2014 extracts structured fields from document photos (PAN, Aadhaar, Form 16)`,
|
|
5692
|
+
` credential_vault(op, session_id, site, field, value) \u2014 AES-256 encrypted credential storage`,
|
|
5693
|
+
` monitor_watch(op, url, condition, action, interval) \u2014 persistent page polling with auto-action`,
|
|
5694
|
+
``,
|
|
5695
|
+
`WORKFLOW: When the user asks you to book/file/monitor something:`,
|
|
5696
|
+
` 1. Start collecting required info \u2014 ONE question at a time.`,
|
|
5697
|
+
` 2. Accept photos \u2192 run ocr_extract. Always confirm extracted data before acting.`,
|
|
5698
|
+
` 3. Store credentials via credential_vault (NEVER echo passwords back).`,
|
|
5699
|
+
` 4. Execute via browser_execute with the collected info.`,
|
|
5700
|
+
` 5. If OTP needed: ask user, wait, retry browser_execute with otp field.`,
|
|
5701
|
+
` 6. On success: screenshot + surge_publish for proof. Send live link.`,
|
|
5702
|
+
` 7. credential_vault(op:"destroy") when done.`,
|
|
5703
|
+
``,
|
|
5704
|
+
`Detect language from user's first message. Respond in the SAME language (Hindi\u2192Hindi, etc).`,
|
|
5705
|
+
`On failure: explain what went wrong clearly. Never leave user hanging.`,
|
|
5706
|
+
``,
|
|
5707
|
+
`START NOW. Ask the first question to begin collecting information.`
|
|
5700
5708
|
);
|
|
5701
5709
|
}
|
|
5702
5710
|
if (isSelfMod && this.agentRoot) {
|