@parall/daemon 1.57.1 → 1.58.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.
- package/bundle/manifest.json +11 -11
- package/bundle/parall-browser-pod.js +78 -13
- package/bundle/parall-claude-agent.js +695 -1404
- package/bundle/parall-codex-agent.js +518 -1254
- package/bundle/parall-daemon.js +102 -20
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -107,8 +107,8 @@ var BEHAVIOR_TEMPLATE, REFERENCE_GUIDE_TEMPLATE, BRIDGE_SKILL_HINTS, PLATFORM_BE
|
|
|
107
107
|
var init_platform_instructions = __esm({
|
|
108
108
|
"ts/agent-core/dist/generated/platform-instructions.js"() {
|
|
109
109
|
"use strict";
|
|
110
|
-
BEHAVIOR_TEMPLATE = "## How to work here\n\n### Move work forward\nDon't wait for instructions. If you see the next step, take it. If something is\nambiguous, clarify once and proceed. If you're blocked, say what's blocking you\n\u2014 don't go silent. Initiative is expected.\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### Communicate like a teammate\nMatch the conversation \u2014 concise in chat, thorough in docs, plain language over\njargon. Say what matters; stop when you're done. Don't narrate every tool call\nor pad replies to seem thorough.\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
|
|
111
|
-
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\
|
|
110
|
+
BEHAVIOR_TEMPLATE = "## How to work here\n\n### Move work forward\nDon't wait for instructions. If you see the next step, take it. If something is\nambiguous, clarify once and proceed. If you're blocked, say what's blocking you\n\u2014 don't go silent. Initiative is expected.\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### Communicate like a teammate\nMatch the conversation \u2014 concise in chat, thorough in docs, plain language over\njargon. Say what matters; stop when you're done. Don't narrate every tool call\nor pad replies to seem thorough.\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### Channels: mentions and unaddressed work\nAn @mention is a direct request \u2014 act on it. A channel message delivered to\nyou without an @mention means you receive everything there (`You receive:\nall` in the frame's first line): decide whether a reply adds value; silence\nis the default.\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\nA message without an @mention is not an open invitation. Judge from context\nwho the work belongs to \u2014 the named domain, the topic's owner, whoever is\nalready on it. If it belongs to someone else, leave it. If genuinely unclear,\nask or claim in one line (\"taking this unless someone else has it\") before\nstarting \u2014 asking first beats duplicated or misdirected work.\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\n### Shared workspace\nOther agents share this workspace. Before starting work, check whether someone\n\u2014 human or agent \u2014 has already picked it up. Coordination beats racing.\n\n### Permissions and approvals\nYou have real permissions based on your roles (chat member/admin, org member).\nIf you lack permission for an action, the API returns PERMISSION_DENIED with the\n`action` and `resource_uri` that were denied. The server decides whether that\naction is approvable: if it is, the CLI prints an `approvals request` command \u2014\nfill in the placeholders it shows (`--chat`, `--title`, `--reason`) and run\nit to ask someone with permission. If it is NOT approvable, the output says so;\nask a human with permission instead of requesting approval. A\n`INVALID_TARGET` error instead means you addressed the wrong kind of thing\n(e.g. a `usr_` id where a chat is expected) \u2014 follow the message (e.g. use\n`dm` for a user). Don't retry or work around a denial; only request approval\nafter an actual denial, never preemptively.\n\n### When in doubt\nPrefer asking over guessing. Prefer \"I don't know\" over fabricating. Your\ncredibility is what you bring to the workspace \u2014 protect it.";
|
|
111
|
+
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. For message text containing `$`, backticks, or quotes, pass it via `--text-file <path>` (write the file first, or a quoted heredoc `--text-file - <<\'EOF\'`) instead of `--text "..."` \u2014 inside double quotes the shell turns `$1,000` into `,000` and executes `$(...)`.\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.';
|
|
112
112
|
BRIDGE_SKILL_HINTS = {
|
|
113
113
|
SCHEDULES_SKILL_HINT: " (read the `parall-schedules` skill at .parall/skills/parall-schedules.md).",
|
|
114
114
|
TASKS_SKILL_HINT: "\nDetails: read the `parall-tasks` skill at .parall/skills/parall-tasks.md and follow it.",
|
|
@@ -148,16 +148,17 @@ var init_dispatch_adapter = __esm({
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
// ts/agent-core/dist/
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
// ts/agent-core/dist/fork-prefix.js
|
|
152
|
+
var init_fork_prefix = __esm({
|
|
153
|
+
"ts/agent-core/dist/fork-prefix.js"() {
|
|
154
|
+
"use strict";
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
// ts/agent-core/dist/change-source.js
|
|
159
|
+
var init_change_source = __esm({
|
|
160
|
+
"ts/agent-core/dist/change-source.js"() {
|
|
155
161
|
"use strict";
|
|
156
|
-
MESSAGE_REF_URI = "prll:\\/\\/msg_[A-Za-z0-9_-]+(?:\\/content\\?v=[1-9][0-9]{0,8}#t=[0-9]+-[0-9]+)?";
|
|
157
|
-
MESSAGE_RANGE_REF_URI = "prll:\\/\\/cht_[A-Za-z0-9_-]+#range=msg_[A-Za-z0-9_-]+,msg_[A-Za-z0-9_-]+";
|
|
158
|
-
REF_URI = `(?:${MESSAGE_REF_URI}|${MESSAGE_RANGE_REF_URI})`;
|
|
159
|
-
REF_TOKEN = `(?:${REF_URI}|\\[(?:[^\\[\\]]|\\[[^\\[\\]]*\\])*\\]\\(${REF_URI}\\)|<${REF_URI}>)`;
|
|
160
|
-
FORWARDED_REF_LINE = new RegExp(`^${REF_TOKEN}(?:\\s+${REF_TOKEN})*$`);
|
|
161
162
|
}
|
|
162
163
|
});
|
|
163
164
|
|
|
@@ -192,6 +193,13 @@ var init_attachment_types = __esm({
|
|
|
192
193
|
}
|
|
193
194
|
});
|
|
194
195
|
|
|
196
|
+
// ts/sdk/dist/attention-types.js
|
|
197
|
+
var init_attention_types = __esm({
|
|
198
|
+
"ts/sdk/dist/attention-types.js"() {
|
|
199
|
+
"use strict";
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
|
|
195
203
|
// ts/sdk/dist/attachment-endpoints.js
|
|
196
204
|
function attachmentEndpoints(apiBase) {
|
|
197
205
|
return {
|
|
@@ -301,6 +309,8 @@ var init_constants = __esm({
|
|
|
301
309
|
MESSAGE_WATCH: (id) => `${API_BASE}/messages/${id}/watch`,
|
|
302
310
|
MESSAGE_WATCHERS: (id) => `${API_BASE}/messages/${id}/watchers`,
|
|
303
311
|
MESSAGE_WATCHING: (id) => `${API_BASE}/messages/${id}/watching`,
|
|
312
|
+
/** Caller's attention levels across chats / threads / tasks. */
|
|
313
|
+
WATCHES: (orgId) => `${API_BASE}/orgs/${orgId}/watches`,
|
|
304
314
|
MESSAGE_REACTIONS: (id) => `${API_BASE}/messages/${id}/reactions`,
|
|
305
315
|
MESSAGE_REACTION: (id, emoji) => `${API_BASE}/messages/${id}/reactions/${encodeURIComponent(emoji)}`,
|
|
306
316
|
// Upload (org-scoped)
|
|
@@ -323,6 +333,7 @@ var init_constants = __esm({
|
|
|
323
333
|
AGENT_ACTIVITY: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/activity`,
|
|
324
334
|
AGENT_MONITOR: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/monitor`,
|
|
325
335
|
AGENT_ME: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me`,
|
|
336
|
+
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
326
337
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
327
338
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
328
339
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -359,6 +370,7 @@ var init_constants = __esm({
|
|
|
359
370
|
MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
|
|
360
371
|
MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/llm-source`,
|
|
361
372
|
MACHINE_PROVIDER_ENABLED: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/provider-enabled`,
|
|
373
|
+
MACHINE_MANAGED_BY: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/managed-by`,
|
|
362
374
|
MACHINE_CAPABILITIES: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/capabilities`,
|
|
363
375
|
MACHINE_RUNTIME_AUTH: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/runtime-auth`,
|
|
364
376
|
MACHINE_KEYS: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/keys`,
|
|
@@ -492,6 +504,7 @@ var init_constants = __esm({
|
|
|
492
504
|
WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
|
|
493
505
|
WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
|
|
494
506
|
WIKI_TREE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree`,
|
|
507
|
+
WIKI_TREE_LAST_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree/last-commits`,
|
|
495
508
|
WIKI_BLOB: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/blob`,
|
|
496
509
|
WIKI_COPY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/copy`,
|
|
497
510
|
WIKI_NODE_SECTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/node-sections`,
|
|
@@ -845,8 +858,22 @@ var init_project_task_client = __esm({
|
|
|
845
858
|
async unsubscribeTaskMember(orgId, taskId, userId) {
|
|
846
859
|
return this.request("DELETE", ENDPOINTS.TASK_SUBSCRIBER(orgId, taskId, userId));
|
|
847
860
|
}
|
|
848
|
-
async watchThread(threadRootId) {
|
|
849
|
-
return this.request("POST", ENDPOINTS.MESSAGE_WATCH(threadRootId));
|
|
861
|
+
async watchThread(threadRootId, body) {
|
|
862
|
+
return this.request("POST", ENDPOINTS.MESSAGE_WATCH(threadRootId), body);
|
|
863
|
+
}
|
|
864
|
+
// ---- Attention settings (agent-attention-design.md §4) ----
|
|
865
|
+
/** The caller's watch rows: the setting per chat / thread. */
|
|
866
|
+
async listWatches(orgId) {
|
|
867
|
+
const res = await this.request("GET", ENDPOINTS.WATCHES(orgId));
|
|
868
|
+
return res.data;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Set the caller's setting on one target (prll://cht_ / msg_ root).
|
|
872
|
+
* Threads are watched first when not yet; chats require membership (404
|
|
873
|
+
* NOT_A_MEMBER otherwise). Tasks carry no setting (watch / unwatch only).
|
|
874
|
+
*/
|
|
875
|
+
async setWatchLevel(orgId, body) {
|
|
876
|
+
return this.request("PUT", ENDPOINTS.WATCHES(orgId), body);
|
|
850
877
|
}
|
|
851
878
|
async unwatchThread(threadRootId) {
|
|
852
879
|
return this.request("DELETE", ENDPOINTS.MESSAGE_WATCH(threadRootId));
|
|
@@ -1978,6 +2005,15 @@ var init_client = __esm({
|
|
|
1978
2005
|
const res = await this.request("GET", ENDPOINTS.APPROVALS_ACTIONS);
|
|
1979
2006
|
return res.data;
|
|
1980
2007
|
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Action names plus the payload contract each documented action publishes
|
|
2010
|
+
* (field names, types, and where a CAS base like expected_version is read
|
|
2011
|
+
* from). Additive over getApprovableActions(): older servers omit
|
|
2012
|
+
* `contracts`.
|
|
2013
|
+
*/
|
|
2014
|
+
async getApprovableActionCatalog() {
|
|
2015
|
+
return this.request("GET", ENDPOINTS.APPROVALS_ACTIONS);
|
|
2016
|
+
}
|
|
1981
2017
|
// ---- Agents (org-scoped) ----
|
|
1982
2018
|
async createAgent(orgId, req, opts) {
|
|
1983
2019
|
return this.request("POST", ENDPOINTS.AGENTS(orgId), req, void 0, false, opts);
|
|
@@ -2202,6 +2238,19 @@ var init_client = __esm({
|
|
|
2202
2238
|
provider_enabled: providerEnabled
|
|
2203
2239
|
});
|
|
2204
2240
|
}
|
|
2241
|
+
/**
|
|
2242
|
+
* Convert a member's personal device into an organization machine
|
|
2243
|
+
* (PATCH /machines/{id}/managed-by). One-way and idempotent; org admins only
|
|
2244
|
+
* (an admin-role agent qualifies). After conversion every org admin manages
|
|
2245
|
+
* the machine and the registrant is just a member. 'member' is rejected —
|
|
2246
|
+
* an org machine cannot become a personal device again. See
|
|
2247
|
+
* docs/engineering-design/org-machine-assets-design.md §4.
|
|
2248
|
+
*/
|
|
2249
|
+
async convertMachineToOrgManaged(orgId, machineId) {
|
|
2250
|
+
return this.request("PATCH", ENDPOINTS.MACHINE_MANAGED_BY(orgId, machineId), {
|
|
2251
|
+
managed_by: "org"
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2205
2254
|
/**
|
|
2206
2255
|
* Replace the machine's capability set (admin). Primary use: healing a
|
|
2207
2256
|
* machine that registered without `browser_provider` during the capability
|
|
@@ -2451,6 +2500,18 @@ var init_client = __esm({
|
|
|
2451
2500
|
async steerDispatch(orgId, req) {
|
|
2452
2501
|
return this.request("POST", ENDPOINTS.DISPATCH_STEER(orgId), req);
|
|
2453
2502
|
}
|
|
2503
|
+
/**
|
|
2504
|
+
* Declare the runtime contract for this WS connection: the runtime runs
|
|
2505
|
+
* what the server decides and takes the server-rendered wake frame from
|
|
2506
|
+
* claim / steer responses instead of filtering and rendering locally.
|
|
2507
|
+
* Bound to the connection's session id; re-declare on every hello.
|
|
2508
|
+
* 409 STALE_WS_SESSION when the id is not the agent's current connection.
|
|
2509
|
+
*/
|
|
2510
|
+
async declareReplyPolicyCapability(orgId, wsSessionId) {
|
|
2511
|
+
await this.request("PUT", ENDPOINTS.AGENT_REPLY_POLICY_CAPABILITY(orgId), {
|
|
2512
|
+
ws_session_id: wsSessionId
|
|
2513
|
+
});
|
|
2514
|
+
}
|
|
2454
2515
|
/** Advance exact runtime-input lifecycle for members of an explicit lane. */
|
|
2455
2516
|
async updateDispatchInputState(orgId, req) {
|
|
2456
2517
|
return this.request("POST", ENDPOINTS.DISPATCH_INPUT_STATE(orgId), req);
|
|
@@ -2723,8 +2784,27 @@ var init_client = __esm({
|
|
|
2723
2784
|
const res = await this.request("GET", ENDPOINTS.WIKIS_DELETED(orgId));
|
|
2724
2785
|
return res.data;
|
|
2725
2786
|
}
|
|
2726
|
-
|
|
2727
|
-
|
|
2787
|
+
/**
|
|
2788
|
+
* List the direct children of a wiki directory. The response carries
|
|
2789
|
+
* `head_sha`, the immutable commit it was read at; render the rows first
|
|
2790
|
+
* and fetch their dates with `getWikiTreeLastCommits` pinned to it.
|
|
2791
|
+
* `last_commit: true` is the legacy single-request form (dates composed
|
|
2792
|
+
* server-side); prefer the two-phase flow so the structure is never held
|
|
2793
|
+
* back by history reads. Pass `signal` to abort on navigation.
|
|
2794
|
+
*/
|
|
2795
|
+
async getWikiTree(orgId, wikiId, params, opts) {
|
|
2796
|
+
return this.request("GET", ENDPOINTS.WIKI_TREE(orgId, wikiId), void 0, params, false, opts);
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Second phase of a directory listing: last-commit dates for the direct
|
|
2800
|
+
* children of `path` at `ref`, which must be the `head_sha` a
|
|
2801
|
+
* `getWikiTree` response carried (a branch name is rejected). Merge the
|
|
2802
|
+
* dates only while the returned `head_sha` still matches the rows on
|
|
2803
|
+
* screen; a failure just leaves the dates blank. Pass `signal` to abort
|
|
2804
|
+
* on navigation.
|
|
2805
|
+
*/
|
|
2806
|
+
async getWikiTreeLastCommits(orgId, wikiId, params, opts) {
|
|
2807
|
+
return this.request("GET", ENDPOINTS.WIKI_TREE_LAST_COMMITS(orgId, wikiId), void 0, params, false, opts);
|
|
2728
2808
|
}
|
|
2729
2809
|
/**
|
|
2730
2810
|
* Resolve a server-returned, host-relative media URL (a wiki `signed_url`
|
|
@@ -4117,6 +4197,7 @@ var init_dist = __esm({
|
|
|
4117
4197
|
init_browser_viewer();
|
|
4118
4198
|
init_browser_use();
|
|
4119
4199
|
init_attachment_types();
|
|
4200
|
+
init_attention_types();
|
|
4120
4201
|
init_client();
|
|
4121
4202
|
init_constants();
|
|
4122
4203
|
init_llm_provider_types();
|
|
@@ -4132,7 +4213,7 @@ var init_dist = __esm({
|
|
|
4132
4213
|
var init_fork_state = __esm({
|
|
4133
4214
|
"ts/agent-core/dist/fork-state.js"() {
|
|
4134
4215
|
"use strict";
|
|
4135
|
-
|
|
4216
|
+
init_fork_prefix();
|
|
4136
4217
|
}
|
|
4137
4218
|
});
|
|
4138
4219
|
|
|
@@ -4158,7 +4239,8 @@ var init_gateway_lane_flow = __esm({
|
|
|
4158
4239
|
"ts/agent-core/dist/gateway-lane-flow.js"() {
|
|
4159
4240
|
"use strict";
|
|
4160
4241
|
init_dist();
|
|
4161
|
-
|
|
4242
|
+
init_change_source();
|
|
4243
|
+
init_fork_prefix();
|
|
4162
4244
|
init_lane_ledger();
|
|
4163
4245
|
TYPED_BACKOFF_CAP_MS = 5 * 6e4;
|
|
4164
4246
|
}
|
|
@@ -30771,9 +30853,9 @@ var init_telemetry = __esm({
|
|
|
30771
30853
|
var init_gateway_base = __esm({
|
|
30772
30854
|
"ts/agent-core/dist/gateway-base.js"() {
|
|
30773
30855
|
"use strict";
|
|
30856
|
+
init_change_source();
|
|
30774
30857
|
init_dist();
|
|
30775
|
-
|
|
30776
|
-
init_channel_capability();
|
|
30858
|
+
init_fork_prefix();
|
|
30777
30859
|
init_dispatch_adapter();
|
|
30778
30860
|
init_fork_state();
|
|
30779
30861
|
init_gateway_lane_flow();
|
|
@@ -55774,7 +55856,7 @@ var init_dist2 = __esm({
|
|
|
55774
55856
|
init_channel_capability();
|
|
55775
55857
|
init_channel_token();
|
|
55776
55858
|
init_dispatch_adapter();
|
|
55777
|
-
|
|
55859
|
+
init_fork_prefix();
|
|
55778
55860
|
init_gateway_base();
|
|
55779
55861
|
init_gateway_lane_flow();
|
|
55780
55862
|
init_http_keepalive();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0",
|
|
4
4
|
"description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@aws-sdk/client-s3": "3.984.0",
|
|
34
34
|
"@pinixai/bb-browser-pro": "0.15.0",
|
|
35
35
|
"ws": "^8.18.0",
|
|
36
|
-
"@parall/
|
|
37
|
-
"@parall/
|
|
38
|
-
"@parall/
|
|
39
|
-
"@parall/openclaw-agent": "1.
|
|
40
|
-
"@parall/
|
|
36
|
+
"@parall/sdk": "1.58.0",
|
|
37
|
+
"@parall/claude-agent": "1.58.0",
|
|
38
|
+
"@parall/codex-agent": "1.58.0",
|
|
39
|
+
"@parall/openclaw-agent": "1.58.0",
|
|
40
|
+
"@parall/agent-core": "1.58.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.0.0",
|