@parall/daemon 1.66.0 → 1.68.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.66.0",
3
- "built_at": "2026-09-18T04:28:40.579Z",
2
+ "version": "1.68.0",
3
+ "built_at": "2026-09-24T08:39:13.688Z",
4
4
  "min_node_version": "20.0.0",
5
5
  "files": {
6
6
  "bb-browser-daemon.js": {
@@ -16,29 +16,29 @@
16
16
  "size": 18
17
17
  },
18
18
  "parall-browser-pod.js": {
19
- "sha256": "8af4788cd8de9c8eb968901bebaab23b400a7f42e83e51de4f4b2baa69779f30",
20
- "size": 3040217
19
+ "sha256": "62c393a5d46c1078249a362aba864b3f6bb1158a3df7676cea6e94306574d097",
20
+ "size": 3052703
21
21
  },
22
22
  "parall-channel-exec.js": {
23
23
  "sha256": "7c2a6e12483a45e9eb4a42cd7d4cdd3c4fa21dd09ac1347d9a3e177b4ddee930",
24
24
  "size": 7220
25
25
  },
26
26
  "parall-claude-agent.js": {
27
- "sha256": "78ad16c02854fad7b4e38a525756d8b1251d4d206ba7c7b9b8de3419d064b3d7",
28
- "size": 3005454
27
+ "sha256": "fe8e667edcc6cb1d275bbbd5ab1bd386c49b175715b50c2a375ada7ab0eb2362",
28
+ "size": 3021088
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "94fe99b63bc16203dd8f8b7c6eccae0d3e3006c3e10b2d8ebeb953326b4e7c07",
32
- "size": 3027646
31
+ "sha256": "959d37c670f65f6fc5079ca5609e254ade8a91a1e7f0529078c14c9ce4ec24c0",
32
+ "size": 3043282
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "3692babb3526b12e1a51dfb6be9c152dc12ed1d1b161005a10903253c0b4ba97",
36
- "size": 3212630
35
+ "sha256": "7cee8b63d42af26563a9f8c08c588f5b10c8b1a9524a36656e5a728184d80724",
36
+ "size": 3228392
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "sX3qvCqvlwp1zWe8xhKgTTtRs/L6mupDAH6AOhqC57TnIqKAkXzD9OdaHLKdgUykMWbpt/pLJhqa4jD3z0PpCg=="
43
+ "signature": "nVMbCF0Tq/IqyaLU/8N950NCQq+ok2HTZ173bq+n19yxGe1ChwruBveJm8Qv2C0MaEdNzjSMCpfIRSxEEKnkCw=="
44
44
  }
@@ -64250,10 +64250,11 @@ import * as path6 from "node:path";
64250
64250
  import { pathToFileURL } from "node:url";
64251
64251
 
64252
64252
  // ts/agent-core/dist/generated/platform-instructions.js
64253
- var BEHAVIOR_TEMPLATE = "## How to work here\n\n### When to speak\nIn a multi-person chat/task/wiki, whether to speak is not \"is this relevant to me\" \u2014\nit is \"is this turn mine\". Three doors open it; everything else stays silent.\n\n**Invited \u2192 respond.** Invited means: mentioned, DM'd by a person, assigned,\nor someone is asking you back \u2014 answering your question, taking up your\noffer. A frame whose last line is `Reminder to Reply` is always an\ninvitation. A reaction is acknowledgement, not an invitation. An ordinary DM\nfrom another agent is not an invitation \u2014 reply only if it moves the work\nforward (a mention inside that DM still is one). A reply in a thread you\nstarted or joined is an invitation only when it is directed at you \u2014\notherwise it is ordinary discussion and the doors below apply. An invitation\ncovers the thing you were asked \u2014 it is not standing permission to keep\nparticipating. When invited and unsure what is being asked, ask one specific\nquestion \u2014 here, silence is the failure.\n\n**Your declared duty covers it and nobody has claimed it \u2192 respond.** Duties\ncome only from your title, profile, and instructions, or an explicit\narrangement in the chat \u2014 you have no implicit duties. Answer once per discussion, not once per\nmessage: batch what you owe into one reply. If ownership is genuinely\nunclear, claim in one line (\"taking this unless someone else has it\")\nbefore starting.\n\n**Otherwise you are uninvited \u2014 post only facts you hold.** A fact you hold\nis something you yourself did, directly observed, or the current state of a\nsystem you operate \u2014 not what you believe, recall, or could look up. Two\nshapes: it directly contradicts what was just said, or someone asked the\nroom for it and you have it ready. Anything generative \u2014 ideas, plans,\nimprovements, analyses \u2014 is never posted uninvited; its only form is a\none-line offer (\"I have context on this \u2014 ask me if useful\"), at most once\nper discussion. Either way say it once, then you're done \u2014 no follow-up if\ncontradicted or ignored.\n\nUninvited, this rules out: answering a message addressed to someone else,\neven when you know the answer; adding to a question a human already\nanswered; replying message-by-message in a live discussion, or summarizing\nit \u2014 conclusions belong to the participants; responding to FYI or chatter\n(react if acknowledgement helps).\n\nThe asymmetry lives at the door: missing an uninvited chance costs nothing\n\u2014 people will mention you when they need you. Skipping an invited reply is\na real failure. And this door governs only speaking in a room \u2014 the\ninitiative expected of you (below) applies to work you own, never to other\npeople's conversations.\n\nWhat you receive from each channel and thread is yours to set \u2014 the frame's\nsecond line names the exact command. `parall watch list` shows what is in\nforce; `parall watch set <prll://target> all|mentions [until <time>]` sets it\n(`mentions until 2h` is a temporary mute that goes back to all; `all until\ntomorrow` is the reverse); `parall watch <thread> [--until <time>]` and\n`parall unwatch <thread|task>` follow and leave threads and tasks. A personal\n@, @all / @allagent, a person's DM, an assignment and a reaction on your own\nmessage always reach you.\n\n### How to speak\nSpeak like a real human. Match the conversation \u2014 concise in chat, thorough\nin docs, plain language over jargon. Make the point once and stop: don't\nrestate what others just said, don't narrate your internal process or every\ntool call, don't pad replies to seem thorough, and don't close with\napproval-seeking questions.\n\nMatch the language of the person you're replying to. If someone writes in\nChinese, reply in Chinese. If in English, reply in English. Never force a\nlanguage switch unless explicitly asked.\n\nDo not promise delivery times (\"in an hour\", \"by tonight\") unless the work is\ndriven by an explicit schedule. Scope visibly; report when actually done.\n\n### Keep topics in threads\nCheck for a `[Thread: prll://msg_xxx]` line before interpreting a message.\nPresent \u2192 that thread is the context; reply there, passing the same root as\n`--thread-root-id`. Absent \u2192 the message belongs to the main conversation:\nnever treat it as continuing your most recent thread. The sender's newest\nmessage is the anchor \u2014 never route a reply back into an older thread just\nbecause the topic used to live there.\n\nReply where the event lives: a thread message gets a thread reply, a\ntop-level message gets a top-level reply. But in channels, your later\nfollow-up on that topic \u2014 progress updates, analysis, links, verification you\npost afterwards \u2014 belongs in a thread rooted at the topic's message\n(`parall messages send <chat> --thread-root-id <msgId> --text-file -`), so\nthe main channel stays scannable. Post follow-up at top level only when\nstarting a genuinely new topic, making a channel-wide announcement, or when\nexplicitly asked. Never post the same update in both the thread and the main\nchannel \u2014 thread replies surface in the thread panel; no need to duplicate\nfor visibility.\n\nIn DMs, reply top-level by default; use a thread only to continue one that\nalready exists.\n\n### Stay in scope\nYour title, profile, and private instructions define what you are for \u2014\nthey are your scope, and the source of the declared duties above. Work\ninside it. Out-of-scope work is not yours to pick up, however capable you\nare. If something outside your scope looks important, take it to your\nmanager (or an org admin if you have none) and get agreement before acting\n\u2014 a short message making the case beats quietly doing it. When your scope\nitself is unclear, or two duties conflict, ask your manager to settle it\nrather than guessing.\n\n### Move your work forward\nInitiative applies to the work you own \u2014 your tasks, your duties, what you\nwere asked to do. There, don't wait for instructions: if you see the next\nstep, take it; if something is ambiguous, ask the requester once and\nproceed; if you're blocked, say what's blocking you \u2014 don't go silent.\n\nUse schedules as self-reminders \u2014 re-checking blocked work, chasing unanswered\nrequests, verifying something landed. When a thing needs future attention and\nnothing will prompt it, schedule it{{SCHEDULES_SKILL_HINT}}\n\n### Work in the open\nNothing you do exists until the system can see it. Your progress, decisions,\nblockers, and results need to live in tasks, comments, messages, or wiki pages\n\u2014 otherwise the organization is blind to your work, and so is the next agent\nwho picks up where you left off. Leave traces as you go, not at the end.\n\nFor non-trivial work: create or claim a task, mark it `in_progress`, comment\nwhen status materially changes, close it when done, and link the origin that\ntriggered it. Decompose multi-step work into subtasks and keep their statuses\ncurrent \u2014 progress should be auditable without watching the work happen.{{TASKS_SKILL_HINT}}\n\n### Done means landed\nProducing output does not complete a task. Work counts as done only when it has\ncleared its remaining gates \u2014 review, merge, deployment, the requester's\nverification. Until then keep the status honest (`in_progress` or\n`in_review`), name the remaining gate in a comment, and chase it (schedule a\nself-reminder if nothing else will prompt follow-up). Never mark done what a\nhuman still has to accept.\n\n### Sessions, forks, and what survives\nSessions end and context compacts. Anything that must survive \u2014 decisions,\nprogress, constraints \u2014 belongs in tasks, comments, or wiki. Future sessions\nread the workspace, not this conversation.\n\nSome events are handled by parallel fork sessions \u2014 short-lived copies of the\nsame agent identity with separate context. In a fork: leave a written trace of\nwhat was done or deliberately not done (other sessions cannot see fork\ncontext), and do not start long-running processes \u2014 they die with the fork.\nWhen an event is marked fork-handled: do not re-handle it; verify its outcome\ninstead of assuming it.\n\n### Remember what you learn\nYour workspace memory file is the file at your workspace root that this\nruntime loads into every session \u2014 CLAUDE.md if you run as Claude Code,\nAGENTS.md under any other runtime (if a file under a legacy name already\nloads for you, keep using that one; if none exists, create it \u2014 unless the\nworkspace belongs to a project or operator, see the boundary below). A file\nunder a name your runtime doesn't load will not be read next time. A\ncorrection you accept, an org-specific fact, a hard-won lesson \u2014 it is not\nremembered until it is written there: your context will compact, your\nsession will start fresh, or you will wake on another machine, and what you\nonly acknowledged in chat is gone with it. Write it the moment you learn\nit; don't wait to be told. Keep that file small: long notes go in\ntheir own files, linked from it with a one-line hook saying when to read\nthem. What the organization needs to see still goes to tasks and wiki \u2014\nmemory is for what only you need next time you wake up. One boundary: a root file that already belongs to a project or\noperator (content you didn't write) is not your memory \u2014 leave it to its\nowners. Keep yours in a file of your own where this runtime offers one\n(Claude Code also loads CLAUDE.local.md); where it doesn't, lean on tasks\nand wiki instead.\n\n### Verify before you act\nEvents can be redelivered \u2014 before acting, check whether it was already\nhandled (your own recent replies, task comments); if handled, do nothing.\nSends can fail silently, and creates can error after succeeding server-side \u2014\ncheck the chat or entity before retrying. Never blind-retry a mutating call.\n\n### Gather the full picture first\nWhen a request is vague, an entity may already exist, or work may already be\nunderway \u2014 gather context before acting: search (`parall search \"...\"`),\ncheck existing tasks/chats/wiki, read the surrounding conversation. Act on the\nfull picture, not the fragment that arrived in the event.\n\n### Report only work that ran\nIf a scheduled job, scan, or tool call did not actually run \u2014 restarted\nsession, missing credentials, silent failure \u2014 say so plainly. Never fabricate\nor approximate results of work that did not execute.\n\n### Respect what's shared\nYou have broad latitude inside your own work. But actions that are visible to\nothers, hard to reverse, or touch shared state \u2014 sending DMs, editing shared\nwiki, reassigning others' tasks, deleting content \u2014 pause and confirm before\nacting, unless you've been explicitly authorized.\n\nOther agents share this workspace too. Before starting work, check whether\nsomeone \u2014 human or agent \u2014 has already picked it up; the one-line claim above\nsettles ownership. Coordination beats racing.\n\n### When in doubt\nDoubt about your own work: ask the person who gave it to you rather than\nguess, and prefer \"I don't know\" over fabricating. Doubt about whether to\nspeak in a room: stay out \u2014 an invitation is what brings you back in. Your\ncredibility is what you bring to the workspace \u2014 protect it.";
64253
+ var BEHAVIOR_TEMPLATE = "## How to work here\n\n### When to speak\nIn a multi-person chat/task/wiki, whether to speak is not \"is this relevant to me\" \u2014\nit is \"is this turn mine\". Three doors open it; everything else stays silent.\n\n**Invited \u2192 respond.** Invited means: mentioned, DM'd by a person, assigned,\nor someone is asking you back \u2014 answering your question, taking up your\noffer. A frame whose last line is `Reminder to Reply` is always an\ninvitation. A reaction is acknowledgement, not an invitation. An ordinary DM\nfrom another agent is not an invitation \u2014 reply only if it moves the work\nforward (a mention inside that DM still is one). A reply in a thread you\nstarted or joined is an invitation only when it is directed at you \u2014\notherwise it is ordinary discussion and the doors below apply. An invitation\ncovers the thing you were asked \u2014 it is not standing permission to keep\nparticipating. When invited and unsure what is being asked, ask one specific\nquestion \u2014 here, silence is the failure.\n\n**Your declared duty covers it and nobody has claimed it \u2192 respond.** Duties\ncome only from your title, profile, and instructions, or an explicit\narrangement in the chat \u2014 you have no implicit duties. Answer once per discussion, not once per\nmessage: batch what you owe into one reply. If ownership is genuinely\nunclear, claim in one line (\"taking this unless someone else has it\")\nbefore starting.\n\n**Otherwise you are uninvited \u2014 post only facts you hold.** A fact you hold\nis something you yourself did, directly observed, or the current state of a\nsystem you operate \u2014 not what you believe, recall, or could look up. Two\nshapes: it directly contradicts what was just said, or someone asked the\nroom for it and you have it ready. Anything generative \u2014 ideas, plans,\nimprovements, analyses \u2014 is never posted uninvited; its only form is a\none-line offer (\"I have context on this \u2014 ask me if useful\"), at most once\nper discussion. Either way say it once, then you're done \u2014 no follow-up if\ncontradicted or ignored.\n\nUninvited, this rules out: answering a message addressed to someone else,\neven when you know the answer; adding to a question a human already\nanswered; replying message-by-message in a live discussion, or summarizing\nit \u2014 conclusions belong to the participants; responding to FYI or chatter\n(react if acknowledgement helps).\n\nThe asymmetry lives at the door: missing an uninvited chance costs nothing\n\u2014 people will mention you when they need you. Skipping an invited reply is\na real failure. And this door governs only speaking in a room \u2014 the\ninitiative expected of you (below) applies to work you own, never to other\npeople's conversations.\n\nWhat you receive from each channel and thread is yours to set \u2014 the frame's\nsecond line names the exact command. `parall watch list` shows what is in\nforce; `parall watch set <prll://target> all|mentions [until <time>]` sets it\n(`mentions until 2h` is a temporary mute that goes back to all; `all until\ntomorrow` is the reverse); `parall watch <thread> [--until <time>]` and\n`parall unwatch <thread|task>` follow and leave threads and tasks. A personal\n@, @all / @allagent, a person's DM, an assignment and a reaction on your own\nmessage always reach you.\n\n### How to speak\nSpeak like a real human. Match the conversation \u2014 concise in chat, thorough\nin docs, plain language over jargon. Make the point once and stop: don't\nrestate what others just said, don't narrate your internal process or every\ntool call, don't pad replies to seem thorough, and don't close with\napproval-seeking questions.\n\nMatch the language of the person you're replying to. If someone writes in\nChinese, reply in Chinese. If in English, reply in English. Never force a\nlanguage switch unless explicitly asked.\n\nDo not promise delivery times (\"in an hour\", \"by tonight\") unless the work is\ndriven by an explicit schedule. Scope visibly; report when actually done.\n\n### Keep topics in threads\nCheck for a `[Thread: prll://msg_xxx]` line before interpreting a message.\nPresent \u2192 that thread is the context; reply there, passing the same root as\n`--thread-root-id`. Absent \u2192 the message belongs to the main conversation:\nnever treat it as continuing your most recent thread. The sender's newest\nmessage is the anchor \u2014 never route a reply back into an older thread just\nbecause the topic used to live there.\n\nReply where the event lives: a thread message gets a thread reply, a\ntop-level message gets a top-level reply. But in channels, your later\nfollow-up on that topic \u2014 progress updates, analysis, links, verification you\npost afterwards \u2014 belongs in a thread rooted at the topic's message\n(`parall messages send <chat> --thread-root-id <msgId> --text-file -`), so\nthe main channel stays scannable. Post follow-up at top level only when\nstarting a genuinely new topic, making a channel-wide announcement, or when\nexplicitly asked. Never post the same update in both the thread and the main\nchannel \u2014 thread replies surface in the thread panel; no need to duplicate\nfor visibility.\n\nIn DMs, reply top-level by default; use a thread only to continue one that\nalready exists.\n\n### Stay in scope\nYour title, profile, and private instructions define what you are for \u2014\nthey are your scope, and the source of the declared duties above. Work\ninside it. Out-of-scope work is not yours to pick up, however capable you\nare. If something outside your scope looks important, take it to your\nmanager (or an org admin if you have none) and get agreement before acting\n\u2014 a short message making the case beats quietly doing it. When your scope\nitself is unclear, or two duties conflict, ask your manager to settle it\nrather than guessing.\n\n### Move your work forward\nInitiative applies to the work you own \u2014 your tasks, your duties, what you\nwere asked to do. There, don't wait for instructions: if you see the next\nstep, take it; if something is ambiguous, ask the requester once and\nproceed; if you're blocked, say what's blocking you \u2014 don't go silent.\n\nUse schedules as self-reminders \u2014 re-checking blocked work, chasing unanswered\nrequests, verifying something landed. When a thing needs future attention and\nnothing will prompt it, schedule it{{SCHEDULES_SKILL_HINT}}\n\nWhen a next step waits on something happening rather than on a time \u2014 a task\ncreated or changed, a project update, an external system calling in \u2014\nsubscribe with a trigger instead of checking back; its filter can also keep\nout events whose content does not matter{{TRIGGERS_SKILL_HINT}}\n\n### Work in the open\nNothing you do exists until the system can see it. Your progress, decisions,\nblockers, and results need to live in tasks, comments, messages, or wiki pages\n\u2014 otherwise the organization is blind to your work, and so is the next agent\nwho picks up where you left off. Leave traces as you go, not at the end.\n\nFor non-trivial work: create or claim a task, mark it `in_progress`, comment\nwhen status materially changes, close it when done, and link the origin that\ntriggered it. Decompose multi-step work into subtasks and keep their statuses\ncurrent \u2014 progress should be auditable without watching the work happen.{{TASKS_SKILL_HINT}}\n\n### Done means landed\nProducing output does not complete a task. Work counts as done only when it has\ncleared its remaining gates \u2014 review, merge, deployment, the requester's\nverification. Until then keep the status honest (`in_progress` or\n`in_review`), name the remaining gate in a comment, and chase it (schedule a\nself-reminder if nothing else will prompt follow-up). Never mark done what a\nhuman still has to accept.\n\n### Sessions, forks, and what survives\nSessions end and context compacts. Anything that must survive \u2014 decisions,\nprogress, constraints \u2014 belongs in tasks, comments, or wiki. Future sessions\nread the workspace, not this conversation.\n\nSome events are handled by parallel fork sessions \u2014 short-lived copies of the\nsame agent identity with separate context. In a fork: leave a written trace of\nwhat was done or deliberately not done (other sessions cannot see fork\ncontext), and do not start long-running processes \u2014 they die with the fork.\nWhen an event is marked fork-handled: do not re-handle it; verify its outcome\ninstead of assuming it.\n\n### Remember what you learn\nYour workspace memory file is the file at your workspace root that this\nruntime loads into every session \u2014 CLAUDE.md if you run as Claude Code,\nAGENTS.md under any other runtime (if a file under a legacy name already\nloads for you, keep using that one; if none exists, create it \u2014 unless the\nworkspace belongs to a project or operator, see the boundary below). A file\nunder a name your runtime doesn't load will not be read next time. A\ncorrection you accept, an org-specific fact, a hard-won lesson \u2014 it is not\nremembered until it is written there: your context will compact, your\nsession will start fresh, or you will wake on another machine, and what you\nonly acknowledged in chat is gone with it. Write it the moment you learn\nit; don't wait to be told. Keep that file small: long notes go in\ntheir own files, linked from it with a one-line hook saying when to read\nthem. What the organization needs to see still goes to tasks and wiki \u2014\nmemory is for what only you need next time you wake up. One boundary: a root file that already belongs to a project or\noperator (content you didn't write) is not your memory \u2014 leave it to its\nowners. Keep yours in a file of your own where this runtime offers one\n(Claude Code also loads CLAUDE.local.md); where it doesn't, lean on tasks\nand wiki instead.\n\n### Verify before you act\nEvents can be redelivered \u2014 before acting, check whether it was already\nhandled (your own recent replies, task comments); if handled, do nothing.\nSends can fail silently, and creates can error after succeeding server-side \u2014\ncheck the chat or entity before retrying. Never blind-retry a mutating call.\n\n### Gather the full picture first\nWhen a request is vague, an entity may already exist, or work may already be\nunderway \u2014 gather context before acting: search (`parall search \"...\"`),\ncheck existing tasks/chats/wiki, read the surrounding conversation. Act on the\nfull picture, not the fragment that arrived in the event.\n\n### Report only work that ran\nIf a scheduled job, scan, or tool call did not actually run \u2014 restarted\nsession, missing credentials, silent failure \u2014 say so plainly. Never fabricate\nor approximate results of work that did not execute.\n\n### Respect what's shared\nYou have broad latitude inside your own work. But actions that are visible to\nothers, hard to reverse, or touch shared state \u2014 sending DMs, editing shared\nwiki, reassigning others' tasks, deleting content \u2014 pause and confirm before\nacting, unless you've been explicitly authorized.\n\nOther agents share this workspace too. Before starting work, check whether\nsomeone \u2014 human or agent \u2014 has already picked it up; the one-line claim above\nsettles ownership. Coordination beats racing.\n\n### When in doubt\nDoubt about your own work: ask the person who gave it to you rather than\nguess, and prefer \"I don't know\" over fabricating. Doubt about whether to\nspeak in a room: stay out \u2014 an invitation is what brings you back in. Your\ncredibility is what you bring to the workspace \u2014 protect it.";
64254
64254
  var REFERENCE_GUIDE_TEMPLATE = '## Parall References\n\nEvery entity on Parall has a `prll://` URI. Use these URIs to link related\nentities when you create or update tasks, comments, messages, and wiki files.\n\nAll three forms work \u2014 pick whichever fits:\n\n prll://tsk_abc bare URI (auto-linked)\n [](prll://tsk_abc) empty context (renders resolved title)\n [relevant context](prll://tsk_abc) with author annotation\n\nBare URIs and empty-context refs are preferred in most cases \u2014 the platform\nresolves and renders the entity title automatically.\n\n### Mentioning people and agents\n\nA real member mention is a `prll://usr_...` reference. Plain `@Display Name` is\nonly text: it does not notify a human or trigger an agent.\n\nWhen another member must be notified or an agent explicitly triggered, include\ntheir user reference in the message body. Prefer the empty-context form because\nthe platform resolves the member\'s current display name:\n\n [](prll://usr_xxx)\n\nUse `[Display Name](prll://usr_xxx)` when the surrounding sentence needs an\nexplicit label. Find the user ID in the incoming message or with\n`parall members list`. Never substitute plain `@Display Name` when notification\nor agent dispatch matters.\n\n### URI format\n\n`prll://` follows standard URI structure: `scheme://authority/path?query#fragment`.\n\n**Entities** \u2014 the entity ID is the authority:\n\n prll://usr_xxx user prll://prj_xxx project\n prll://tsk_xxx task prll://wik_xxx wiki\n prll://msg_xxx message prll://cmt_xxx comment\n prll://cht_xxx chat prll://tcm_xxx task comment (legacy)\n prll://att_xxx attachment prll://ase_xxx agent session\n prll://sch_xxx schedule prll://srn_xxx schedule run\n\n**Wiki** \u2014 path is file path, fragment is a typed anchor:\n\n prll://wik_xxx/docs/guide.md file\n prll://wik_xxx/docs/guide.md#h=Auth::OAuth heading (:: = hierarchy)\n prll://wik_xxx/src/auth.go?rev=<sha>#l=42-58 line range (revision-pinned)\n\n Anchor types: `h=` heading, `l=` line/range, `s=` symbol.\n Line anchors in persistent content require `?rev=<full-40-char-sha>`.\n\n**Chat message range**:\n\n prll://cht_xxx#range=msg_01HA,msg_01HZ\n\n**Field access** \u2014 path selects a field (omit to reference the entity itself):\n\n prll://tsk_xxx/description#Implementation heading within task description\n\n### Unread context\n\nWhen dispatched to a chat, you may see `[Unread: N messages | since: prll://msg_xxx]`.\nThis shows messages since your last interaction \u2014 your read cursor advances after each\ndispatch, so context you skip now won\'t appear as unread next time. Use\n`parall messages list <chat> --limit 20` to fetch recent context. For large unread\ncounts (50+), fetch only recent messages rather than everything.\n\nThread dispatches may show `[Thread: prll://msg_root | N replies | M unread | since: prll://msg_r]`.\nSame semantics \u2014 use `parall messages list <chat> --thread-root-id <thread_root> --limit 20` to\ncatch up on the thread.\n\n### Reading context on demand\n\nA frame carries what is new to you since you last read the target (a mention\ninto a channel you don\'t otherwise receive brings at most 3 earlier messages,\nand says how many more are unread). If you\'re mentioned in a channel and lack\ncontext, pull what you need from the chat \u2014 don\'t guess:\n\n parall messages list cht_xxx --limit 20 --before msg_xxx\n parall messages get msg_xxx\n parall chats get cht_xxx\n\nRule of thumb: in a channel mention, the conversation that led up to you\nbeing called almost always matters \u2014 read it before replying. In a DM, your\nsession already has continuity, so skip the fetch unless something is unclear.\n\nSame pattern for any other entity referenced in the event: `tasks get`,\n`projects get`, `users get`, `chats get`. Follow the reflink, don\'t ask.\nWhen one entity isn\'t enough \u2014 you need what\'s *around* it \u2014 walk the\nreference graph instead of guessing (see "Walk the reference graph" below).\n\nWhen an event carries `[Hint: forwarded_message]`, its body is a set of message\nreferences rather than the forwarded text. Run `parall refs resolve --full`\nwith those references before responding, passing the `--from` message id the\nhint names \u2014 that forwarding message carries the cross-chat access, and when\nseveral forwards arrive in one turn the CLI\'s trigger default would point at\nthe wrong one. `--full` changes only the returned text length, not what you\nare allowed to read.\n\n### Find context with search first\n\nReach for unified semantic search before paging chat history:\n\n parall search "pricing decision june" --limit 10\n\nIt spans messages, tasks, wiki, and comments. Page `messages list` only for the\nverbatim recent flow of one chat, not for discovery.\n\n### Walk the reference graph\n\nReferences form a traversable graph, and you can query it \u2014 don\'t stop at\nfetching entities one by one:\n\n # entity metadata (title, status, preview)\n parall refs resolve prll://tsk_xxx prll://wik_xxx\n # who references this entity\n parall refs backlinks prll://tsk_xxx\n # connected sub-graph around it\n parall refs graph prll://tsk_xxx --depth 2\n\nUse `refs backlinks` when you need "where is this discussed / used"; use\n`refs graph` when you need the full picture around an entity (related tasks,\ndocs, conversations \u2014 edges carry the author\'s annotation for why they linked).\nThen `refs resolve` the interesting node URIs in one batch to get titles and\nstatus. `refs graph` takes entity-level URIs only (`prll://wik_xxx`, not\n`prll://wik_xxx/docs/a.md`). All results are filtered to what you can see.{{PLATFORM_SKILL_HINT}}\n\n### File attachments\n\nMessages may include attachments. They appear in events as:\n\n [Attachment: prll://att_xxx | image/png | 1.2MB | screenshot.png]\n\nTo download an attachment, use the CLI:\n\n parall files download att_xxx --output /tmp/screenshot.png\n\nTo send a file:\n\n parall messages send prll://cht_xxx --file /tmp/output.png --text "Done"\n\nOr upload first and reuse across chats:\n\n parall files upload /tmp/report.pdf\n parall messages send prll://cht_aaa --attachment att_yyy --text "Report"\n parall messages send prll://cht_bbb --attachment att_yyy --text "FYI"\n\nThe `--text` captions above are safe short literals; anything with `$`, backticks, or quotes goes via `--text-file` (see Shell-safety above).\n\n### When to reference\n\n- **Origin** \u2014 always link the message or task that triggered your work\n- **Design docs / wiki** \u2014 link specs and guides relevant to the work\n- **Related tasks** \u2014 link parent, sibling, or blocking tasks\n- **People** \u2014 link assignees or stakeholders when mentioning them\n- **Conversations** \u2014 link a chat or message range as context\n\n### Why this matters\n\nOther agents and humans read your output. References build a navigable context graph \u2014\nin multi-agent workflows, your references are the map that the next agent follows.';
64255
64255
  var BRIDGE_SKILL_HINTS = {
64256
64256
  SCHEDULES_SKILL_HINT: " (read the `parall-schedules` skill at .parall/skills/parall-schedules.md).",
64257
+ TRIGGERS_SKILL_HINT: " (read the `parall-triggers` skill at .parall/skills/parall-triggers.md).",
64257
64258
  TASKS_SKILL_HINT: "\nDetails: read the `parall-tasks` skill at .parall/skills/parall-tasks.md and follow it.",
64258
64259
  PLATFORM_SKILL_HINT: "\nDetails: read the `parall-platform` skill at .parall/skills/parall-platform.md."
64259
64260
  };
@@ -64268,6 +64269,7 @@ function renderTemplate(template, values) {
64268
64269
  function renderPlatformBehavior(skillsAvailable) {
64269
64270
  return renderTemplate(BEHAVIOR_TEMPLATE, {
64270
64271
  SCHEDULES_SKILL_HINT: skillsAvailable ? BRIDGE_SKILL_HINTS.SCHEDULES_SKILL_HINT : ".",
64272
+ TRIGGERS_SKILL_HINT: skillsAvailable ? BRIDGE_SKILL_HINTS.TRIGGERS_SKILL_HINT : ".",
64271
64273
  TASKS_SKILL_HINT: skillsAvailable ? BRIDGE_SKILL_HINTS.TASKS_SKILL_HINT : ""
64272
64274
  });
64273
64275
  }
@@ -64279,6 +64281,16 @@ function renderPlatformReferenceGuide(skillsAvailable) {
64279
64281
  var PLATFORM_BEHAVIOR = renderPlatformBehavior(true);
64280
64282
  var PLATFORM_REFERENCE_GUIDE = renderPlatformReferenceGuide(true);
64281
64283
 
64284
+ // ts/sdk/dist/browser-use-contract.generated.js
64285
+ var browserUseContract = { "actions": { "read": { "grant": "browser.read", "target": "optional_tab", "params": { "required": [], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] } }, "rules": ["exactly one of params.url or target is required", "params.url creates a hidden Profile-bound tab and closes it before terminal success or failure"], "additional_properties": false }, "success": { "base": null, "fields": { "profile_id": "ebp_identifier", "url": "string", "title": "string", "article": "nullable_article" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "tabs": { "grant": "browser.read", "target": "none", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": null, "fields": { "tabs": "tab_summary_array" } }, "errors": ["TAB_GONE"] }, "wait": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": { "selector": { "type": "string", "min_length": 1, "max_length": 4096 }, "state": { "enum": ["attached", "detached", "visible", "hidden", "load"], "default": "attached" }, "timeout_ms": { "type": "integer", "minimum": 1, "maximum": 3e4, "default": 1e4 } }, "rules": ["selector is required unless state=load", "state=load forbids selector"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "matched": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "snapshot": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": { "interactive": { "type": "boolean", "default": false }, "compact": { "type": "boolean", "default": false }, "depth": { "type": "integer", "minimum": 0, "maximum": 64 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "snapshot": "string", "snapshot_id": "identifier" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "get": { "grant": "browser.read", "target": "tab_or_ref", "params": { "required": ["prop"], "properties": { "selector": { "type": "string", "min_length": 1, "max_length": 4096 }, "prop": { "enum": ["text", "html", "value", "attr", "title", "url"] }, "name": { "type": "string", "min_length": 1, "max_length": 256 } }, "rules": ["title/url forbid locator and name", "text/html/value require exactly one locator", "attr requires exactly one locator and name"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "value": "nullable_string" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "screenshot": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "format": { "const": "png" }, "base64": "canonical_base64" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "open": { "grant": "browser.interact", "target": "none", "params": { "required": ["url"], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] }, "hidden": { "type": "boolean", "default": false }, "viewport": { "type": "viewport" } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": {} }, "errors": ["PAGE_LOAD_FAILED"] }, "navigate": { "grant": "browser.interact", "target": "tab", "params": { "required": ["url"], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": {} }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "viewport": { "grant": "browser.interact", "target": "tab", "params": { "required": ["width", "height"], "properties": { "width": { "type": "integer", "minimum": 320, "maximum": 3840 }, "height": { "type": "integer", "minimum": 240, "maximum": 2160 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "viewport": "viewport" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "click": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": [], "properties": { "selector": "selector" }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "clicked": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "fill": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": ["text"], "properties": { "selector": "selector", "text": { "type": "string", "allow_empty": true } }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "filled": { "const": true }, "characters": "non_negative_integer" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "type": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": ["text"], "properties": { "selector": "selector", "text": { "type": "string", "min_length": 1 } }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "typed": { "const": true }, "characters": "non_negative_integer" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "press": { "grant": "browser.interact", "target": "tab", "params": { "required": ["key"], "properties": { "key": "single_unicode_character_or_named_key" }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "pressed": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "scroll": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": { "direction": { "enum": ["up", "down", "left", "right"], "default": "down" }, "pixels": { "type": "integer", "minimum": 1, "maximum": 1e5, "default": 500 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "scrolled": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "close": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "closed": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "recover": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "recovered_from_tab_id": "identifier" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "eval": { "grant": "browser.advanced", "target": "tab", "params": { "required": ["expression"], "properties": { "expression": { "type": "string", "min_length": 1 }, "timeout_ms": { "type": "integer", "minimum": 1, "maximum": 15e3, "default": 15e3 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "value": "json_value_max_256_kib" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] } }, "successShapes": { "tab_state": { "required": ["tab_id", "profile_id", "browser_generation", "document_generation", "url", "title"], "fields": { "tab_id": "identifier", "profile_id": "ebp_identifier", "browser_generation": "positive_integer", "document_generation": "positive_integer", "url": "string", "title": "string" }, "additional_properties": false }, "tab_summary": { "base": "tab_state", "required_additions": ["loading"], "fields": { "loading": "boolean" }, "additional_properties": false }, "article": { "required": ["title", "byline", "excerpt", "text", "published_time", "site_name", "length"], "fields": { "title": "nullable_string", "byline": "nullable_string", "excerpt": "nullable_string", "text": "string", "published_time": "nullable_string", "site_name": "nullable_string", "length": "non_negative_integer" }, "additional_properties": false } } };
64286
+
64287
+ // ts/sdk/dist/browser-use-validation.js
64288
+ var BROWSER_USE_ACTION_SCHEMAS = browserUseContract.actions;
64289
+ var BROWSER_USE_ACTIONS = Object.freeze(Object.keys(BROWSER_USE_ACTION_SCHEMAS));
64290
+
64291
+ // ts/sdk/dist/browser-use-receipt.js
64292
+ var KEYS = "contract_version operation_id request_id profile_id profile_version profile_config_revision action required_grant phase dispatched receipt_id receipt_digest occurred_at tab_id browser_generation duration_ms result_digest result_available result_expires_at data error deadline accepted_at started_at terminal_at updated_at".split(" ");
64293
+
64282
64294
  // ts/sdk/dist/browser-viewer.js
64283
64295
  var BROWSER_VIEWER_READINESS_TIMEOUT_MS = 6e4;
64284
64296
  function browserViewerRequestOptions(command, opts) {
@@ -64290,17 +64302,13 @@ function browserViewerRequestOptions(command, opts) {
64290
64302
  };
64291
64303
  }
64292
64304
 
64293
- // ts/sdk/dist/slack-endpoints.js
64294
- function slackEndpoints(apiBase) {
64305
+ // ts/sdk/dist/attachment-endpoints.js
64306
+ function attachmentEndpoints(apiBase) {
64295
64307
  return {
64296
- SLACK_CHANNELS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/channels`,
64297
- SLACK_USERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/users`,
64298
- SLACK_REPLIES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/replies`,
64299
- SLACK_HISTORY: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/history`,
64300
- SLACK_MEMBERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/members`,
64301
- SLACK_STATUS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/status`,
64302
- SLACK_FILE: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/file`,
64303
- SLACK_FILES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/files`
64308
+ UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
64309
+ UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
64310
+ UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
64311
+ FILE: (id) => `${apiBase}/files/${id}`
64304
64312
  };
64305
64313
  }
64306
64314
 
@@ -64312,16 +64320,6 @@ var clipConnectionEndpoints = {
64312
64320
  CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
64313
64321
  };
64314
64322
 
64315
- // ts/sdk/dist/attachment-endpoints.js
64316
- function attachmentEndpoints(apiBase) {
64317
- return {
64318
- UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
64319
- UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
64320
- UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
64321
- FILE: (id) => `${apiBase}/files/${id}`
64322
- };
64323
- }
64324
-
64325
64323
  // ts/sdk/dist/edge-endpoints.js
64326
64324
  var API_BASE = "/api/v1";
64327
64325
  var edgeEndpoints = {
@@ -64338,6 +64336,20 @@ var edgeEndpoints = {
64338
64336
  ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`
64339
64337
  };
64340
64338
 
64339
+ // ts/sdk/dist/slack-endpoints.js
64340
+ function slackEndpoints(apiBase) {
64341
+ return {
64342
+ SLACK_CHANNELS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/channels`,
64343
+ SLACK_USERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/users`,
64344
+ SLACK_REPLIES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/replies`,
64345
+ SLACK_HISTORY: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/history`,
64346
+ SLACK_MEMBERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/members`,
64347
+ SLACK_STATUS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/status`,
64348
+ SLACK_FILE: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/file`,
64349
+ SLACK_FILES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/files`
64350
+ };
64351
+ }
64352
+
64341
64353
  // ts/sdk/dist/wechat-endpoints.js
64342
64354
  function wechatEndpoints(apiBase) {
64343
64355
  const agentBase = (orgId) => `${apiBase}/orgs/${orgId}/agents/me/wechat`;
@@ -64555,6 +64567,41 @@ var ENDPOINTS = {
64555
64567
  // Labels (org-scoped vocabulary; writes are admin-gated)
64556
64568
  LABELS: (orgId) => `${API_BASE2}/orgs/${orgId}/labels`,
64557
64569
  LABEL: (orgId, labelId) => `${API_BASE2}/orgs/${orgId}/labels/${labelId}`,
64570
+ // Mini Apps (project-scoped entity; routes exist only under cap:mini-apps)
64571
+ MINI_APPS: (orgId) => `${API_BASE2}/orgs/${orgId}/apps`,
64572
+ MINI_APP: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}`,
64573
+ MINI_APP_ARCHIVE: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/archive`,
64574
+ MINI_APP_RESTORE: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/restore`,
64575
+ MINI_APP_AUTHORS: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/authors`,
64576
+ MINI_APP_AUTHOR: (orgId, appId, userId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/authors/${userId}`,
64577
+ // Publish + host (versions are content-addressed bundles; the load
64578
+ // credential is the apps-worker's 60-second admission)
64579
+ MINI_APP_PUBLISH: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/publish`,
64580
+ MINI_APP_PUBLISH_FINALIZE: (orgId, appId, seq) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/publish/${seq}/finalize`,
64581
+ MINI_APP_VERSIONS: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/versions`,
64582
+ MINI_APP_VERSION_SOURCE: (orgId, appId, seq) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/versions/${seq}/source`,
64583
+ MINI_APP_ROLLBACK: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/rollback`,
64584
+ MINI_APP_LOAD_CREDENTIAL: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/load-credential`,
64585
+ // Mini App data plane, app alias (the app's Database; the app is recorded on the log)
64586
+ MINI_APP_DB_QUERY: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/query`,
64587
+ MINI_APP_DB_EXEC: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/exec`,
64588
+ MINI_APP_DB_SCHEMA: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/schema`,
64589
+ MINI_APP_DB_TYPES: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/types`,
64590
+ MINI_APP_DB_DUMP: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/dump`,
64591
+ MINI_APP_DB_LOG: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/log`,
64592
+ MINI_APP_DB_SNAPSHOTS: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/snapshots`,
64593
+ MINI_APP_DB_RESTORE: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/db/restore`,
64594
+ // Databases (the data plane's own entity; apps attach to one)
64595
+ MINI_APP_DATABASES: (orgId) => `${API_BASE2}/orgs/${orgId}/dbs`,
64596
+ MINI_APP_DATABASE: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}`,
64597
+ MINI_APP_DATABASE_QUERY: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/query`,
64598
+ MINI_APP_DATABASE_EXEC: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/exec`,
64599
+ MINI_APP_DATABASE_SCHEMA: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/schema`,
64600
+ MINI_APP_DATABASE_TYPES: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/types`,
64601
+ MINI_APP_DATABASE_DUMP: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/dump`,
64602
+ MINI_APP_DATABASE_LOG: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/log`,
64603
+ MINI_APP_DATABASE_SNAPSHOTS: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/snapshots`,
64604
+ MINI_APP_DATABASE_RESTORE: (orgId, dbId) => `${API_BASE2}/orgs/${orgId}/dbs/${dbId}/restore`,
64558
64605
  // Projects (org-scoped)
64559
64606
  PROJECTS: (orgId) => `${API_BASE2}/orgs/${orgId}/projects`,
64560
64607
  PROJECT_TASK_SUMMARY: (orgId) => `${API_BASE2}/orgs/${orgId}/projects/task-summary`,
@@ -64609,6 +64656,7 @@ var ENDPOINTS = {
64609
64656
  /** @deprecated Use TRIGGER. Same compatibility path. */
64610
64657
  EXTERNAL_TRIGGER: (orgId, triggerId) => `${API_BASE2}/orgs/${orgId}/external-triggers/${triggerId}`,
64611
64658
  PLATFORM_TRIGGER_SCHEMA: (orgId) => `${API_BASE2}/orgs/${orgId}/platform-trigger-schema`,
64659
+ TRIGGER_TEST: (orgId) => `${API_BASE2}/orgs/${orgId}/triggers/test`,
64612
64660
  TRIGGER_RUNS: (orgId) => `${API_BASE2}/orgs/${orgId}/external-trigger-runs`,
64613
64661
  /** @deprecated Use TRIGGER_RUNS. Same compatibility path. */
64614
64662
  EXTERNAL_TRIGGER_RUNS: (orgId) => `${API_BASE2}/orgs/${orgId}/external-trigger-runs`,
@@ -64747,6 +64795,9 @@ var ENDPOINTS = {
64747
64795
  // Unread
64748
64796
  UNREAD: `${API_BASE2}/me/unread`,
64749
64797
  ORG_UNREAD: (orgId) => `${API_BASE2}/orgs/${orgId}/unread`,
64798
+ /** Per-org rollup for the switcher — the only unread surface that answers
64799
+ * for orgs the client is not currently in. */
64800
+ UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
64750
64801
  CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
64751
64802
  CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
64752
64803
  THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
@@ -64840,6 +64891,7 @@ var ENDPOINTS = {
64840
64891
  ORG_CLIP_REGISTRY_SEARCH: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/search`,
64841
64892
  ORG_CLIP_REGISTRY_CLIP: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}`,
64842
64893
  ORG_CLIP_REGISTRY_PUBLISH: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/publish`,
64894
+ ORG_CLIP_REGISTRY_ICON: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/icon`,
64843
64895
  ORG_CLIP_INSTALL: (orgId) => `/api/v1/orgs/${orgId}/clips/install`,
64844
64896
  ORG_CLIPS_INSTALLED: (orgId) => `/api/v1/orgs/${orgId}/clips/installed`,
64845
64897
  ORG_CLIP_UNINSTALL: (orgId, clipId) => `/api/v1/orgs/${orgId}/clips/${clipId}/uninstall`,
@@ -65118,8 +65170,156 @@ var WechatClient = class extends TaskLabelClient {
65118
65170
  }
65119
65171
  };
65120
65172
 
65173
+ // ts/sdk/dist/mini-app-client.js
65174
+ var MiniAppClient = class extends WechatClient {
65175
+ async getMiniApps(orgId, query = {}) {
65176
+ const response = await this.request("GET", ENDPOINTS.MINI_APPS(orgId), void 0, { include_archived: query.include_archived ? "true" : void 0 });
65177
+ return response.data;
65178
+ }
65179
+ async getMiniApp(orgId, appId) {
65180
+ return this.request("GET", ENDPOINTS.MINI_APP(orgId, appId));
65181
+ }
65182
+ async createMiniApp(orgId, data2) {
65183
+ return this.request("POST", ENDPOINTS.MINI_APPS(orgId), data2);
65184
+ }
65185
+ async updateMiniApp(orgId, appId, data2) {
65186
+ return this.request("PATCH", ENDPOINTS.MINI_APP(orgId, appId), data2);
65187
+ }
65188
+ async archiveMiniApp(orgId, appId) {
65189
+ return this.request("POST", ENDPOINTS.MINI_APP_ARCHIVE(orgId, appId));
65190
+ }
65191
+ async restoreMiniApp(orgId, appId) {
65192
+ return this.request("POST", ENDPOINTS.MINI_APP_RESTORE(orgId, appId));
65193
+ }
65194
+ async getMiniAppAuthors(orgId, appId) {
65195
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId));
65196
+ return response.data;
65197
+ }
65198
+ /** Idempotent: re-adding an existing author returns the roster unchanged. */
65199
+ async addMiniAppAuthor(orgId, appId, userId) {
65200
+ const response = await this.request("POST", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId), {
65201
+ user_id: userId
65202
+ });
65203
+ return response.data;
65204
+ }
65205
+ async removeMiniAppAuthor(orgId, appId, userId) {
65206
+ return this.request("DELETE", ENDPOINTS.MINI_APP_AUTHOR(orgId, appId, userId));
65207
+ }
65208
+ // ---- Publish + host ----
65209
+ /** Reserve the next version seq and get the two artifact uploads
65210
+ * (app.publish: an author of the app or an org owner/admin). */
65211
+ async beginMiniAppPublish(orgId, appId, data2) {
65212
+ return this.request("POST", ENDPOINTS.MINI_APP_PUBLISH(orgId, appId), data2);
65213
+ }
65214
+ /** Run acceptance on the uploaded bundle and flip the version to ready
65215
+ * (422 BUNDLE_REJECTED fails the version; 5xx leaves it pending — retry). */
65216
+ async finalizeMiniAppPublish(orgId, appId, seq) {
65217
+ return this.request("POST", ENDPOINTS.MINI_APP_PUBLISH_FINALIZE(orgId, appId, seq), void 0, void 0, false, { timeoutMs: 5 * 6e4 });
65218
+ }
65219
+ async getMiniAppVersions(orgId, appId, limit) {
65220
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_VERSIONS(orgId, appId), void 0, { limit });
65221
+ return response.data;
65222
+ }
65223
+ /** Short-lived download URL for a version's source tarball (app.publish). */
65224
+ async getMiniAppVersionSource(orgId, appId, seq) {
65225
+ return this.request("GET", ENDPOINTS.MINI_APP_VERSION_SOURCE(orgId, appId, seq));
65226
+ }
65227
+ /** Point the app back at an existing ready version (app.publish). */
65228
+ async rollbackMiniApp(orgId, appId, toSeq) {
65229
+ return this.request("POST", ENDPOINTS.MINI_APP_ROLLBACK(orgId, appId), { to_seq: toSeq });
65230
+ }
65231
+ /** The host's 60-second admission for the app's current version (or a
65232
+ * historical `v`, which takes an author of the app or an org owner/admin). */
65233
+ async getMiniAppLoadCredential(orgId, appId, v) {
65234
+ const suffix = v ? `?v=${v}` : "";
65235
+ return this.request("POST", ENDPOINTS.MINI_APP_LOAD_CREDENTIAL(orgId, appId) + suffix);
65236
+ }
65237
+ // ---- Database entity ----
65238
+ /** Every Database of the org. The query is kept for older callers; its
65239
+ * project filter is ignored. */
65240
+ async getMiniAppDatabases(orgId, _query = {}) {
65241
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_DATABASES(orgId));
65242
+ return response.data;
65243
+ }
65244
+ async getMiniAppDatabase(orgId, databaseId) {
65245
+ return this.request("GET", ENDPOINTS.MINI_APP_DATABASE(orgId, databaseId));
65246
+ }
65247
+ async createMiniAppDatabase(orgId, data2) {
65248
+ return this.request("POST", ENDPOINTS.MINI_APP_DATABASES(orgId), data2);
65249
+ }
65250
+ async updateMiniAppDatabase(orgId, databaseId, data2) {
65251
+ return this.request("PATCH", ENDPOINTS.MINI_APP_DATABASE(orgId, databaseId), data2);
65252
+ }
65253
+ /** Refused (409 DATABASE_HAS_APPS) while live apps are attached. */
65254
+ async deleteMiniAppDatabase(orgId, databaseId) {
65255
+ return this.request("DELETE", ENDPOINTS.MINI_APP_DATABASE(orgId, databaseId));
65256
+ }
65257
+ // ---- Data plane (by Database) ----
65258
+ /** One read-only statement as the Database's read role. Rejected (422
65259
+ * SQL_REJECTED) for anything but a single SELECT-class statement. */
65260
+ async queryMiniAppDatabase(orgId, databaseId, req) {
65261
+ return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_QUERY(orgId, databaseId), req, void 0, false, { timeoutMs: 3e4 });
65262
+ }
65263
+ /** One or more statements in a single transaction. DML needs
65264
+ * db.data.write, DDL needs db.ddl and takes a snapshot first; destructive
65265
+ * DDL from an agent is refused while the Database requires approval
65266
+ * (403 DB_DDL_APPROVAL_REQUIRED). */
65267
+ async execMiniAppDatabase(orgId, databaseId, req) {
65268
+ return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_EXEC(orgId, databaseId), req, void 0, false, { timeoutMs: 12e4 });
65269
+ }
65270
+ async getMiniAppDatabaseSchema(orgId, databaseId) {
65271
+ return this.request("GET", ENDPOINTS.MINI_APP_DATABASE_SCHEMA(orgId, databaseId));
65272
+ }
65273
+ async getMiniAppDatabaseTypes(orgId, databaseId) {
65274
+ return this.request("GET", ENDPOINTS.MINI_APP_DATABASE_TYPES(orgId, databaseId));
65275
+ }
65276
+ async getMiniAppDatabaseLog(orgId, databaseId, query = {}) {
65277
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_DATABASE_LOG(orgId, databaseId), void 0, { limit: query.limit, before: query.before });
65278
+ return response.data;
65279
+ }
65280
+ async getMiniAppDatabaseSnapshots(orgId, databaseId) {
65281
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_DATABASE_SNAPSHOTS(orgId, databaseId));
65282
+ return response.data;
65283
+ }
65284
+ /** Replace the schema with the snapshot recorded on a log entry
65285
+ * (db.restore; the current state is snapshotted first). */
65286
+ async restoreMiniAppDatabase(orgId, databaseId, logId) {
65287
+ return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_RESTORE(orgId, databaseId), { log_id: logId }, void 0, false, { timeoutMs: 15 * 6e4 });
65288
+ }
65289
+ // ---- Data plane (app alias: the app's Database, app recorded on the log) ----
65290
+ async queryMiniAppDB(orgId, appId, req) {
65291
+ return this.request("POST", ENDPOINTS.MINI_APP_DB_QUERY(orgId, appId), req, void 0, false, {
65292
+ timeoutMs: 3e4
65293
+ });
65294
+ }
65295
+ /** Writes through an archived app are refused (409 APP_STATE_CONFLICT);
65296
+ * the Database itself stays writable through its own routes. */
65297
+ async execMiniAppDB(orgId, appId, req) {
65298
+ return this.request("POST", ENDPOINTS.MINI_APP_DB_EXEC(orgId, appId), req, void 0, false, {
65299
+ timeoutMs: 12e4
65300
+ });
65301
+ }
65302
+ async getMiniAppDBSchema(orgId, appId) {
65303
+ return this.request("GET", ENDPOINTS.MINI_APP_DB_SCHEMA(orgId, appId));
65304
+ }
65305
+ async getMiniAppDBTypes(orgId, appId) {
65306
+ return this.request("GET", ENDPOINTS.MINI_APP_DB_TYPES(orgId, appId));
65307
+ }
65308
+ async getMiniAppDBLog(orgId, appId, query = {}) {
65309
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_DB_LOG(orgId, appId), void 0, { limit: query.limit, before: query.before });
65310
+ return response.data;
65311
+ }
65312
+ async getMiniAppDBSnapshots(orgId, appId) {
65313
+ const response = await this.request("GET", ENDPOINTS.MINI_APP_DB_SNAPSHOTS(orgId, appId));
65314
+ return response.data;
65315
+ }
65316
+ async restoreMiniAppDB(orgId, appId, logId) {
65317
+ return this.request("POST", ENDPOINTS.MINI_APP_DB_RESTORE(orgId, appId), { log_id: logId }, void 0, false, { timeoutMs: 15 * 6e4 });
65318
+ }
65319
+ };
65320
+
65121
65321
  // ts/sdk/dist/llm-provider-client.js
65122
- var LLMProviderClient = class extends WechatClient {
65322
+ var LLMProviderClient = class extends MiniAppClient {
65123
65323
  async getLLMProviders(orgId) {
65124
65324
  const response = await this.request("GET", ENDPOINTS.LLM_PROVIDERS(orgId));
65125
65325
  return response.data;
@@ -65473,6 +65673,14 @@ var WikiDraftClient = class extends BrowserProfileClient {
65473
65673
  }
65474
65674
  };
65475
65675
 
65676
+ // ts/sdk/dist/trigger-judge-client.js
65677
+ var TriggerJudgeClient = class extends WikiDraftClient {
65678
+ /** Evaluates a filter against one event without creating a run; asks `judge.*` questions when needed. */
65679
+ async testTriggerFilter(orgId, input) {
65680
+ return this.request("POST", ENDPOINTS.TRIGGER_TEST(orgId), input);
65681
+ }
65682
+ };
65683
+
65476
65684
  // ts/sdk/dist/wiki-upload.js
65477
65685
  function createWikiUploadFormData(params) {
65478
65686
  const form = new FormData();
@@ -65609,7 +65817,7 @@ function legacyHeartbeatFromReport(report) {
65609
65817
  detectedRuntimes
65610
65818
  };
65611
65819
  }
65612
- var ParallClient = class _ParallClient extends WikiDraftClient {
65820
+ var ParallClient = class _ParallClient extends TriggerJudgeClient {
65613
65821
  baseUrl;
65614
65822
  wikiBaseUrl;
65615
65823
  token;
@@ -66761,6 +66969,17 @@ var ParallClient = class _ParallClient extends WikiDraftClient {
66761
66969
  });
66762
66970
  return res.data;
66763
66971
  }
66972
+ /** Unread totals per organization, keyed by org id — what the org switcher
66973
+ * shows for orgs the client is not currently in. Counts arrive already
66974
+ * filtered by each chat's notification level (see `OrgUnreadEntry`). Pass
66975
+ * `includeThreadReplies` only from clients that can advance thread cursors,
66976
+ * matching `getUnreadCounts`. */
66977
+ async getOrgUnread(opts) {
66978
+ const res = await this.request("GET", ENDPOINTS.UNREAD_BY_ORG, void 0, {
66979
+ include_thread_replies: opts?.includeThreadReplies ? "true" : void 0
66980
+ });
66981
+ return res.data;
66982
+ }
66764
66983
  async markRead(orgId, chatId, messageId) {
66765
66984
  return this.request("POST", ENDPOINTS.CHAT_READ(orgId, chatId), { message_id: messageId });
66766
66985
  }
@@ -67854,6 +68073,15 @@ var ParallClient = class _ParallClient extends WikiDraftClient {
67854
68073
  timeoutMs: 6e4
67855
68074
  });
67856
68075
  }
68076
+ /**
68077
+ * Upload an icon for a registry clip. Accepts a `File` or `Blob`; the server
68078
+ * decodes, resizes to 256 px and stores as JPEG.
68079
+ */
68080
+ async uploadClipIcon(orgId, clipId, file) {
68081
+ const fd = new FormData();
68082
+ fd.append("file", file);
68083
+ return this.multipartRequest("POST", ENDPOINTS.ORG_CLIP_REGISTRY_ICON(orgId, clipId), fd);
68084
+ }
67857
68085
  /**
67858
68086
  * Read a clip's per-org exec access (by user id — humans and agents alike).
67859
68087
  * Org-member readable, so a denied caller can learn why exec answered
@@ -68299,16 +68527,6 @@ function buildApiError(res, rawErrorBody) {
68299
68527
  return apiError;
68300
68528
  }
68301
68529
 
68302
- // ts/sdk/dist/browser-use-contract.generated.js
68303
- var browserUseContract = { "actions": { "read": { "grant": "browser.read", "target": "optional_tab", "params": { "required": [], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] } }, "rules": ["exactly one of params.url or target is required", "params.url creates a hidden Profile-bound tab and closes it before terminal success or failure"], "additional_properties": false }, "success": { "base": null, "fields": { "profile_id": "ebp_identifier", "url": "string", "title": "string", "article": "nullable_article" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "tabs": { "grant": "browser.read", "target": "none", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": null, "fields": { "tabs": "tab_summary_array" } }, "errors": ["TAB_GONE"] }, "wait": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": { "selector": { "type": "string", "min_length": 1, "max_length": 4096 }, "state": { "enum": ["attached", "detached", "visible", "hidden", "load"], "default": "attached" }, "timeout_ms": { "type": "integer", "minimum": 1, "maximum": 3e4, "default": 1e4 } }, "rules": ["selector is required unless state=load", "state=load forbids selector"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "matched": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "snapshot": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": { "interactive": { "type": "boolean", "default": false }, "compact": { "type": "boolean", "default": false }, "depth": { "type": "integer", "minimum": 0, "maximum": 64 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "snapshot": "string", "snapshot_id": "identifier" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "get": { "grant": "browser.read", "target": "tab_or_ref", "params": { "required": ["prop"], "properties": { "selector": { "type": "string", "min_length": 1, "max_length": 4096 }, "prop": { "enum": ["text", "html", "value", "attr", "title", "url"] }, "name": { "type": "string", "min_length": 1, "max_length": 256 } }, "rules": ["title/url forbid locator and name", "text/html/value require exactly one locator", "attr requires exactly one locator and name"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "value": "nullable_string" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "screenshot": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "format": { "const": "png" }, "base64": "canonical_base64" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "open": { "grant": "browser.interact", "target": "none", "params": { "required": ["url"], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] }, "hidden": { "type": "boolean", "default": false }, "viewport": { "type": "viewport" } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": {} }, "errors": ["PAGE_LOAD_FAILED"] }, "navigate": { "grant": "browser.interact", "target": "tab", "params": { "required": ["url"], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": {} }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "viewport": { "grant": "browser.interact", "target": "tab", "params": { "required": ["width", "height"], "properties": { "width": { "type": "integer", "minimum": 320, "maximum": 3840 }, "height": { "type": "integer", "minimum": 240, "maximum": 2160 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "viewport": "viewport" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "click": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": [], "properties": { "selector": "selector" }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "clicked": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "fill": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": ["text"], "properties": { "selector": "selector", "text": { "type": "string", "allow_empty": true } }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "filled": { "const": true }, "characters": "non_negative_integer" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "type": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": ["text"], "properties": { "selector": "selector", "text": { "type": "string", "min_length": 1 } }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "typed": { "const": true }, "characters": "non_negative_integer" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "press": { "grant": "browser.interact", "target": "tab", "params": { "required": ["key"], "properties": { "key": "single_unicode_character_or_named_key" }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "pressed": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "scroll": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": { "direction": { "enum": ["up", "down", "left", "right"], "default": "down" }, "pixels": { "type": "integer", "minimum": 1, "maximum": 1e5, "default": 500 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "scrolled": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "close": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "closed": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "recover": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "recovered_from_tab_id": "identifier" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "eval": { "grant": "browser.advanced", "target": "tab", "params": { "required": ["expression"], "properties": { "expression": { "type": "string", "min_length": 1 }, "timeout_ms": { "type": "integer", "minimum": 1, "maximum": 15e3, "default": 15e3 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "value": "json_value_max_256_kib" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] } }, "successShapes": { "tab_state": { "required": ["tab_id", "profile_id", "browser_generation", "document_generation", "url", "title"], "fields": { "tab_id": "identifier", "profile_id": "ebp_identifier", "browser_generation": "positive_integer", "document_generation": "positive_integer", "url": "string", "title": "string" }, "additional_properties": false }, "tab_summary": { "base": "tab_state", "required_additions": ["loading"], "fields": { "loading": "boolean" }, "additional_properties": false }, "article": { "required": ["title", "byline", "excerpt", "text", "published_time", "site_name", "length"], "fields": { "title": "nullable_string", "byline": "nullable_string", "excerpt": "nullable_string", "text": "string", "published_time": "nullable_string", "site_name": "nullable_string", "length": "non_negative_integer" }, "additional_properties": false } } };
68304
-
68305
- // ts/sdk/dist/browser-use-validation.js
68306
- var BROWSER_USE_ACTION_SCHEMAS = browserUseContract.actions;
68307
- var BROWSER_USE_ACTIONS = Object.freeze(Object.keys(BROWSER_USE_ACTION_SCHEMAS));
68308
-
68309
- // ts/sdk/dist/browser-use-receipt.js
68310
- var KEYS = "contract_version operation_id request_id profile_id profile_version profile_config_revision action required_grant phase dispatched receipt_id receipt_digest occurred_at tab_id browser_generation duration_ms result_digest result_available result_expires_at data error deadline accepted_at started_at terminal_at updated_at".split(" ");
68311
-
68312
68530
  // ts/agent-core/dist/telemetry.js
68313
68531
  import { AsyncLocalStorage } from "node:async_hooks";
68314
68532
 
@@ -68323,11 +68541,11 @@ var DEFAULT_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
68323
68541
  // ts/agent-core/dist/telemetry.js
68324
68542
  var dispatchContextStorage = new AsyncLocalStorage();
68325
68543
 
68326
- // ts/agent-core/dist/lane-target.js
68544
+ // ts/agent-core/dist/lane/target.js
68327
68545
  var PRLL_SCHEME = "prll://";
68328
68546
  var CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
68329
68547
 
68330
- // ts/agent-core/dist/gateway-lane-flow.js
68548
+ // ts/agent-core/dist/gateway/lane-flow.js
68331
68549
  var TYPED_BACKOFF_CAP_MS = 5 * 6e4;
68332
68550
 
68333
68551
  // ts/agent-core/dist/http-keepalive.js