@parall/daemon 1.55.2 → 1.55.4
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 +59 -30
- package/bundle/parall-claude-agent.js +176 -52
- package/bundle/parall-codex-agent.js +176 -52
- package/bundle/parall-daemon.js +84 -31
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -108,7 +108,7 @@ var init_platform_instructions = __esm({
|
|
|
108
108
|
"ts/agent-core/dist/generated/platform-instructions.js"() {
|
|
109
109
|
"use strict";
|
|
110
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 group chats, 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### Group chats: mentions and unaddressed work\nAn @mention is a direct request \u2014 act on it. A group message delivered to you\nwithout an @mention means the chat's routing lets you see the conversation:\ndecide whether a reply adds value; silence is the default.\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\nAn event only carries the single triggering message. If you\'re mentioned in a\ngroup chat and lack context, 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 group chat 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\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.';
|
|
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\nAn event only carries the single triggering message. If you\'re mentioned in a\ngroup chat and lack context, 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 group chat 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.",
|
|
@@ -149,9 +149,15 @@ var init_dispatch_adapter = __esm({
|
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
// ts/agent-core/dist/event-format.js
|
|
152
|
+
var MESSAGE_REF_URI, MESSAGE_RANGE_REF_URI, REF_URI, REF_TOKEN, FORWARDED_REF_LINE;
|
|
152
153
|
var init_event_format = __esm({
|
|
153
154
|
"ts/agent-core/dist/event-format.js"() {
|
|
154
155
|
"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})*$`);
|
|
155
161
|
}
|
|
156
162
|
});
|
|
157
163
|
|
|
@@ -217,8 +223,11 @@ var init_constants = __esm({
|
|
|
217
223
|
// active member; PATCH is CAS-guarded (expected_version).
|
|
218
224
|
ORG_MEMBER_PROFILE: (orgId, userId) => `${API_BASE}/orgs/${orgId}/members/${userId}/profile`,
|
|
219
225
|
// Private agent Instructions — visibility gated server-side
|
|
220
|
-
// (agent self + Human org admin/owner). Never cached.
|
|
226
|
+
// (agent self + Human org admin/owner + the agent's manager). Never cached.
|
|
221
227
|
AGENT_INSTRUCTIONS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/instructions`,
|
|
228
|
+
// Agent manager (agent-global relation, org-scoped authorization).
|
|
229
|
+
// PATCH covers assign / transfer / renounce (manager_user_id null).
|
|
230
|
+
AGENT_MANAGER: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/manager`,
|
|
222
231
|
REF_SEARCH: (orgId) => `${API_BASE}/orgs/${orgId}/refs/search`,
|
|
223
232
|
// Direct messages (org-scoped, atomic find-or-create + send)
|
|
224
233
|
DM: (orgId) => `${API_BASE}/orgs/${orgId}/dm`,
|
|
@@ -404,6 +413,7 @@ var init_constants = __esm({
|
|
|
404
413
|
SLACK_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/slack/status`,
|
|
405
414
|
// WeChat tier-B read verbs (agent-only; internal research preview).
|
|
406
415
|
WECHAT_CONTACTS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/contacts`,
|
|
416
|
+
WECHAT_HISTORY: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/history`,
|
|
407
417
|
WECHAT_PROFILE: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/profile`,
|
|
408
418
|
WECHAT_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/status`,
|
|
409
419
|
// Invitations (org-scoped, admin)
|
|
@@ -916,6 +926,41 @@ var init_task_label_client = __esm({
|
|
|
916
926
|
}
|
|
917
927
|
});
|
|
918
928
|
|
|
929
|
+
// ts/sdk/dist/wechat-client.js
|
|
930
|
+
var WechatClient;
|
|
931
|
+
var init_wechat_client = __esm({
|
|
932
|
+
"ts/sdk/dist/wechat-client.js"() {
|
|
933
|
+
"use strict";
|
|
934
|
+
init_constants();
|
|
935
|
+
init_task_label_client();
|
|
936
|
+
WechatClient = class extends TaskLabelClient {
|
|
937
|
+
/** Address book enriched with display names. */
|
|
938
|
+
async listWechatContacts(orgId) {
|
|
939
|
+
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
940
|
+
}
|
|
941
|
+
/** Platform-retained context in chronological page order. */
|
|
942
|
+
async wechatHistory(orgId, conversation, query) {
|
|
943
|
+
const params = new URLSearchParams({ conversation });
|
|
944
|
+
if (query?.before)
|
|
945
|
+
params.set("before", query.before);
|
|
946
|
+
if (query?.since)
|
|
947
|
+
params.set("since", query.since);
|
|
948
|
+
if (query?.limit !== void 0)
|
|
949
|
+
params.set("limit", String(query.limit));
|
|
950
|
+
return this.request("GET", `${ENDPOINTS.WECHAT_HISTORY(orgId)}?${params.toString()}`);
|
|
951
|
+
}
|
|
952
|
+
/** Connected WeChat account identity. */
|
|
953
|
+
async wechatProfile(orgId) {
|
|
954
|
+
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
955
|
+
}
|
|
956
|
+
/** Live online probe, identity, and platform offline record. */
|
|
957
|
+
async wechatStatus(orgId) {
|
|
958
|
+
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
|
|
919
964
|
// ts/sdk/dist/client.js
|
|
920
965
|
function normalizeWikiChangeset(changeset) {
|
|
921
966
|
return {
|
|
@@ -960,8 +1005,8 @@ var init_client = __esm({
|
|
|
960
1005
|
"use strict";
|
|
961
1006
|
init_browser_viewer();
|
|
962
1007
|
init_constants();
|
|
963
|
-
|
|
964
|
-
ParallClient = class _ParallClient extends
|
|
1008
|
+
init_wechat_client();
|
|
1009
|
+
ParallClient = class _ParallClient extends WechatClient {
|
|
965
1010
|
baseUrl;
|
|
966
1011
|
wikiBaseUrl;
|
|
967
1012
|
token;
|
|
@@ -1395,6 +1440,19 @@ var init_client = __esm({
|
|
|
1395
1440
|
async updateAgentInstructions(orgId, agentId, req) {
|
|
1396
1441
|
return this.request("PATCH", ENDPOINTS.AGENT_INSTRUCTIONS(orgId, agentId), req);
|
|
1397
1442
|
}
|
|
1443
|
+
/** Agent manager state — readable by every active member. */
|
|
1444
|
+
async getAgentManager(orgId, agentId) {
|
|
1445
|
+
return this.request("GET", ENDPOINTS.AGENT_MANAGER(orgId, agentId));
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Assign / transfer / renounce the agent's manager (manager_user_id null =
|
|
1449
|
+
* renounce). Human org admin/owner or the current manager only; a stale
|
|
1450
|
+
* expected_version gets 409 MANAGER_VERSION_CONFLICT with
|
|
1451
|
+
* error.details.current_version.
|
|
1452
|
+
*/
|
|
1453
|
+
async updateAgentManager(orgId, agentId, req) {
|
|
1454
|
+
return this.request("PATCH", ENDPOINTS.AGENT_MANAGER(orgId, agentId), req);
|
|
1455
|
+
}
|
|
1398
1456
|
// Member activity surfaces — chats the member participates in within this org,
|
|
1399
1457
|
// ordered by most recent activity. Powers the member profile Activity tab.
|
|
1400
1458
|
async getMemberChats(orgId, memberId, params) {
|
|
@@ -2296,28 +2354,6 @@ var init_client = __esm({
|
|
|
2296
2354
|
async setSlackStatus(orgId, input) {
|
|
2297
2355
|
await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
2298
2356
|
}
|
|
2299
|
-
/**
|
|
2300
|
-
* WeChat tier-B read verb (agent-only; internal research preview): the
|
|
2301
|
-
* account's address book — friends/chatrooms enriched with display names,
|
|
2302
|
-
* followed official accounts. Same live gate as the send verb.
|
|
2303
|
-
*/
|
|
2304
|
-
async listWechatContacts(orgId) {
|
|
2305
|
-
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
2306
|
-
}
|
|
2307
|
-
/**
|
|
2308
|
-
* WeChat tier-B read verb (agent-only): the connected account's identity
|
|
2309
|
-
* (wxid / alias / nickName / app id).
|
|
2310
|
-
*/
|
|
2311
|
-
async wechatProfile(orgId) {
|
|
2312
|
-
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
2313
|
-
}
|
|
2314
|
-
/**
|
|
2315
|
-
* WeChat tier-B read verb (agent-only): live online probe + identity +
|
|
2316
|
-
* the platform's offline record.
|
|
2317
|
-
*/
|
|
2318
|
-
async wechatStatus(orgId) {
|
|
2319
|
-
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
2320
|
-
}
|
|
2321
2357
|
async listChannelConversations(orgId, connectionId) {
|
|
2322
2358
|
return this.request("GET", ENDPOINTS.CHANNEL_CONNECTION_CONVERSATIONS(orgId, connectionId));
|
|
2323
2359
|
}
|
|
@@ -2603,11 +2639,11 @@ var init_client = __esm({
|
|
|
2603
2639
|
}
|
|
2604
2640
|
// ---- References ----
|
|
2605
2641
|
async resolveRefs(orgId, refs, options) {
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2642
|
+
return this.request("POST", ENDPOINTS.REFS_RESOLVE(orgId), {
|
|
2643
|
+
refs,
|
|
2644
|
+
source_message_id: options?.sourceMessageId,
|
|
2645
|
+
full: options?.full || void 0
|
|
2646
|
+
});
|
|
2611
2647
|
}
|
|
2612
2648
|
async getBacklinks(orgId, params) {
|
|
2613
2649
|
return this.request("GET", ENDPOINTS.REFS_BACKLINKS(orgId), void 0, params);
|
|
@@ -3275,6 +3311,13 @@ var init_types = __esm({
|
|
|
3275
3311
|
}
|
|
3276
3312
|
});
|
|
3277
3313
|
|
|
3314
|
+
// ts/sdk/dist/wechat-types.js
|
|
3315
|
+
var init_wechat_types = __esm({
|
|
3316
|
+
"ts/sdk/dist/wechat-types.js"() {
|
|
3317
|
+
"use strict";
|
|
3318
|
+
}
|
|
3319
|
+
});
|
|
3320
|
+
|
|
3278
3321
|
// ts/sdk/dist/ws.js
|
|
3279
3322
|
function isRetryableNetworkError(err) {
|
|
3280
3323
|
return err instanceof Error && err.name === "ApiError" && "status" in err && err.status === 0;
|
|
@@ -3625,10 +3668,19 @@ var init_dist = __esm({
|
|
|
3625
3668
|
init_subject();
|
|
3626
3669
|
init_task_label_types();
|
|
3627
3670
|
init_types();
|
|
3671
|
+
init_wechat_types();
|
|
3628
3672
|
init_ws();
|
|
3629
3673
|
}
|
|
3630
3674
|
});
|
|
3631
3675
|
|
|
3676
|
+
// ts/agent-core/dist/fork-state.js
|
|
3677
|
+
var init_fork_state = __esm({
|
|
3678
|
+
"ts/agent-core/dist/fork-state.js"() {
|
|
3679
|
+
"use strict";
|
|
3680
|
+
init_event_format();
|
|
3681
|
+
}
|
|
3682
|
+
});
|
|
3683
|
+
|
|
3632
3684
|
// ts/agent-core/dist/lane-key.js
|
|
3633
3685
|
var init_lane_key = __esm({
|
|
3634
3686
|
"ts/agent-core/dist/lane-key.js"() {
|
|
@@ -30268,6 +30320,7 @@ var init_gateway_base = __esm({
|
|
|
30268
30320
|
init_event_format();
|
|
30269
30321
|
init_channel_capability();
|
|
30270
30322
|
init_dispatch_adapter();
|
|
30323
|
+
init_fork_state();
|
|
30271
30324
|
init_gateway_lane_flow();
|
|
30272
30325
|
init_lane_ledger();
|
|
30273
30326
|
init_dispatch_inactivity_deadline();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.4",
|
|
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/agent-core": "1.55.
|
|
37
|
-
"@parall/
|
|
38
|
-
"@parall/
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
36
|
+
"@parall/agent-core": "1.55.4",
|
|
37
|
+
"@parall/sdk": "1.55.4",
|
|
38
|
+
"@parall/claude-agent": "1.55.4",
|
|
39
|
+
"@parall/codex-agent": "1.55.4",
|
|
40
|
+
"@parall/openclaw-agent": "1.55.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.0.0",
|