@parall/daemon 1.55.3 → 1.55.5
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 +226 -44
- package/bundle/parall-claude-agent.js +346 -64
- package/bundle/parall-codex-agent.js +346 -64
- package/bundle/parall-daemon.js +273 -45
- package/package.json +6 -6
|
@@ -51252,7 +51252,7 @@ var PLATFORM_IDENTITY_BASE = "## You on Parall\n\nParall is a shared workspace w
|
|
|
51252
51252
|
var IDENTITY_PROFILE_SUFFIX = "### Your Parall Identity\n\nYou are **{{DISPLAY_NAME}}** (`prll://{{USER_ID}}`).{{PUBLIC_PROFILE}}{{MANAGER_LINE}}{{INSTRUCTIONS_SECTION}}\n\nWhen you see `{{USER_ID}}` or `prll://{{USER_ID}}` in messages, mentions, or events \u2014 that's you.";
|
|
51253
51253
|
var PLATFORM_BRIDGE_WORKSPACE_INSTRUCTIONS = '# Agent workspace\n\nYou are an agent in Parall IM. You participate in chats, handle tasks, and interact exclusively through the Parall CLI.\n\n## Message Model\n\nIncoming events are rendered as structured `[Event: ...]` blocks.\nEach event includes `[Chat: ... (prll://cht_xxx)]` \u2014 use that chat ID (or full URI) when replying.\n\n**Your plain-text output is not delivered to anyone** \u2014 it is recorded as suppressed thinking in your session steps and discarded from the chat.\nTo say something in a chat, you **must** invoke the Parall CLI via your shell/exec tool. To stay silent, simply do not invoke it.\n\n## Parall CLI\n\nAll outbound interactions go through the `parall` CLI. Credentials are pre-injected as environment variables \u2014 no setup needed. If `parall` is not on PATH, use `npx --yes @parall/cli@latest` instead.\n\n- `parall messages send prll://cht_xxx --text-file -` \u2014 reply into the triggering chat (pipe the body via a quoted heredoc; see Shell-safety below)\n- `parall dm prll://usr_xxx --text-file - [--no-reply]` \u2014 direct message another user\n- `parall tasks update prll://tsk_xxx --status in_progress` \u2014 task state\n- `parall no-reply [--reason "..."]` \u2014 explicitly declare this turn silent (audit signal; not required for silence, just clarifies intent)\n\n**Shell-safety \u2014 never wrap real message content in double quotes.** Your command runs in a shell, which expands `$`, backticks, and `$(...)` inside `"..."` before the CLI sees them: `--text "That costs $1,000"` sends `That costs ,000`, and `--text "$(cmd)"` executes `cmd`. Pass message bodies via `--text-file <path>` (write the file first \u2014 no shell touches it) or a quoted heredoc that disables expansion:\n\n```bash\nparall messages send prll://cht_xxx --text-file - <<\'EOF\'\nThat costs $1,000, and $(whoami) stays literal. I\'m on it.\nEOF\n```\n\nKeep `--text "..."` for short literals with no `$`, backtick, or apostrophe.\n\nThe bridge injects Parall context via environment variables. The static credentials `PRLL_API_URL`, `PRLL_API_KEY`, and `PRLL_ORG_ID` are always set. `PRLL_CONTEXT_FILE` points to a per-session JSON file that the gateway updates each dispatch with `session_id`, `chat_id`, `trigger_message_id`, `no_reply`, and `step_id` (updated per tool call). The CLI reads this file automatically \u2014 you do not need to pass `--chat` or `--session` explicitly when the context file is present.\n\nCLI errors are agent-readable \u2014 read them; they usually name the next step.\n\n## Attachments\n\nImage attachments are pre-downloaded under `.parall/attachments/<messageId>/`. Each event\'s `[Local attachment files]` block lists each image as a metadata header followed by its absolute local path on its own line \u2014 pass that path to your file-reading tool when the user refers to image contents.\n\nSupported image types: PNG, JPEG, WebP, GIF. Other attachment types (PDFs, archives, etc.) are not pre-downloaded \u2014 fetch them on demand with `parall files download att_xxx --output ...`.\n\n## Guardrails\n\n- A dispatch may coalesce multiple events. Decide per event whether to reply via `messages send` / `dm` \u2014 events you do not act on simply receive no reply.\n- If an event carries `[Hint: no_reply]`, do not send anything for that event. `no-reply` is optional and only useful as an explicit intent marker.\n- Never try to "speak" by typing sentences like "No response needed" / "Noted" / "OK" \u2014 they are discarded, so they accomplish nothing except polluting your session log.\n- Keep CLI replies concise and task-focused.\n\nSee `docs/engineering-design/agent-dm-loop-prevention.md` \xA7 Layer 0 for why plain text is never auto-projected.\n\n## Approval Flow\n\nWhen you try an action (e.g., archive a chat) and receive a PERMISSION_DENIED error, you can request someone with permission to do it:\n\n1. The error includes a `PERMISSION_DENIED` code plus the denied `action` and `resource_uri`. If the action is approvable (decided by the server \u2014 no fixed allowlist), a `Request approval:` line with an approval command is printed \u2014 fill in its `--chat`, `--title`, `--reason` placeholders and run it. If it is not approvable, the output says so; ask a human with permission instead.\n2. Request approval: `parall approvals request --action chat.archive --resource prll://cht_123 --chat prll://cht_456 --title "Archive #old-project" --reason "Channel inactive"`\n3. A card will appear in the specified chat for someone with permission to approve\n4. Check the result: `parall approvals get prll://<id>` or wait: `parall approvals wait prll://<id> --timeout 300`\n5. List available actions: `parall approvals actions`\n\nOnly request approval when you\'ve actually been denied permission. Don\'t request approval preemptively.\n';
|
|
51254
51254
|
var 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.";
|
|
51255
|
-
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\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.';
|
|
51255
|
+
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\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.';
|
|
51256
51256
|
var BRIDGE_SKILL_HINTS = {
|
|
51257
51257
|
SCHEDULES_SKILL_HINT: " (read the `parall-schedules` skill at .parall/skills/parall-schedules.md).",
|
|
51258
51258
|
TASKS_SKILL_HINT: "\nDetails: read the `parall-tasks` skill at .parall/skills/parall-tasks.md and follow it.",
|
|
@@ -51469,9 +51469,24 @@ function buildErrorStepContent(message) {
|
|
|
51469
51469
|
}
|
|
51470
51470
|
|
|
51471
51471
|
// ts/agent-core/dist/event-format.js
|
|
51472
|
+
var MESSAGE_REF_URI = "prll:\\/\\/msg_[A-Za-z0-9_-]+(?:\\/content\\?v=[1-9][0-9]{0,8}#t=[0-9]+-[0-9]+)?";
|
|
51473
|
+
var MESSAGE_RANGE_REF_URI = "prll:\\/\\/cht_[A-Za-z0-9_-]+#range=msg_[A-Za-z0-9_-]+,msg_[A-Za-z0-9_-]+";
|
|
51474
|
+
var REF_URI = `(?:${MESSAGE_REF_URI}|${MESSAGE_RANGE_REF_URI})`;
|
|
51475
|
+
var REF_TOKEN = `(?:${REF_URI}|\\[(?:[^\\[\\]]|\\[[^\\[\\]]*\\])*\\]\\(${REF_URI}\\)|<${REF_URI}>)`;
|
|
51476
|
+
var FORWARDED_REF_LINE = new RegExp(`^${REF_TOKEN}(?:\\s+${REF_TOKEN})*$`);
|
|
51477
|
+
function isForwardedMessageBody(body) {
|
|
51478
|
+
const lines = body.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
|
|
51479
|
+
return lines.length > 0 && lines.every((line) => FORWARDED_REF_LINE.test(line));
|
|
51480
|
+
}
|
|
51472
51481
|
function sanitizeMeta(value) {
|
|
51473
51482
|
return value.replace(/[\r\n]+/g, " ").replace(/[[\]|]/g, " ").trim();
|
|
51474
51483
|
}
|
|
51484
|
+
function formatApprovalDecisionReason(status, reason) {
|
|
51485
|
+
const normalized = reason?.trim();
|
|
51486
|
+
if (status !== "rejected" || !normalized)
|
|
51487
|
+
return "";
|
|
51488
|
+
return `Reason (JSON): ${JSON.stringify(normalized)}`;
|
|
51489
|
+
}
|
|
51475
51490
|
function buildEventBody(event) {
|
|
51476
51491
|
const lines = [];
|
|
51477
51492
|
if (event.type === "message") {
|
|
@@ -51499,6 +51514,9 @@ function buildEventBody(event) {
|
|
|
51499
51514
|
}
|
|
51500
51515
|
if (event.noReply)
|
|
51501
51516
|
lines.push(`[Hint: no_reply]`);
|
|
51517
|
+
if (isForwardedMessageBody(event.body)) {
|
|
51518
|
+
lines.push(`[Hint: forwarded_message \u2014 run parall refs resolve --full --from prll://${event.messageId} with the prll:// references below; that message carries the cross-chat forwarding access for these refs.]`);
|
|
51519
|
+
}
|
|
51502
51520
|
if (event.attachments?.length) {
|
|
51503
51521
|
for (const att of event.attachments) {
|
|
51504
51522
|
const sizeStr = att.fileSize >= 1048576 ? `${(att.fileSize / 1048576).toFixed(1)}MB` : `${Math.round(att.fileSize / 1024)}KB`;
|
|
@@ -51620,8 +51638,9 @@ function buildSendMessageHint(event) {
|
|
|
51620
51638
|
if (event.channelProvider === "wechat") {
|
|
51621
51639
|
const toArg = event.channelExternalConversationId ? ` --to "${event.channelExternalConversationId}"` : " --to <wxid from this event>";
|
|
51622
51640
|
const atArg = event.channelConversationType === "group" ? event.senderId && event.senderId !== "external" ? ` --at "${event.senderId}"` : " --at <wxid of the person you are answering>" : "";
|
|
51641
|
+
const historyArg = event.channelExternalConversationId ? ` --conversation "${event.channelExternalConversationId}"` : " --conversation <wxid from this event>";
|
|
51623
51642
|
return `
|
|
51624
|
-
<system-reminder>To reply, use the platform verb: \`parall wechat send${toArg}${atArg} --text-file - <<'EOF'\` \u2026 \`EOF\` (or --text "<short text>" for simple literals \u2014 the quoted heredoc keeps $, backticks and apostrophes literal). In group chats, --at @-mentions the person you are answering. \`parall wechat send\` is the ONLY outbound path \u2014 your plain text output is NOT delivered to the external conversation.</system-reminder>`;
|
|
51643
|
+
<system-reminder>Need earlier context? Run \`parall wechat history${historyArg}\`; history is not inserted automatically. To reply, use the platform verb: \`parall wechat send${toArg}${atArg} --text-file - <<'EOF'\` \u2026 \`EOF\` (or --text "<short text>" for simple literals \u2014 the quoted heredoc keeps $, backticks and apostrophes literal). In group chats, --at @-mentions the person you are answering. \`parall wechat send\` is the ONLY outbound path \u2014 your plain text output is NOT delivered to the external conversation.</system-reminder>`;
|
|
51625
51644
|
}
|
|
51626
51645
|
if (!event.channelProvider) {
|
|
51627
51646
|
return `
|
|
@@ -51688,6 +51707,16 @@ function browserViewerRequestOptions(command, opts) {
|
|
|
51688
51707
|
};
|
|
51689
51708
|
}
|
|
51690
51709
|
|
|
51710
|
+
// ts/sdk/dist/attachment-endpoints.js
|
|
51711
|
+
function attachmentEndpoints(apiBase) {
|
|
51712
|
+
return {
|
|
51713
|
+
UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
|
|
51714
|
+
UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
|
|
51715
|
+
UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
|
|
51716
|
+
FILE: (id) => `${apiBase}/files/${id}`
|
|
51717
|
+
};
|
|
51718
|
+
}
|
|
51719
|
+
|
|
51691
51720
|
// ts/sdk/dist/constants.js
|
|
51692
51721
|
var API_BASE = "/api/v1";
|
|
51693
51722
|
var WIKI_BASE = "/wiki/v1";
|
|
@@ -51760,9 +51789,7 @@ var ENDPOINTS = {
|
|
|
51760
51789
|
MESSAGE_REACTIONS: (id) => `${API_BASE}/messages/${id}/reactions`,
|
|
51761
51790
|
MESSAGE_REACTION: (id, emoji) => `${API_BASE}/messages/${id}/reactions/${encodeURIComponent(emoji)}`,
|
|
51762
51791
|
// Upload (org-scoped)
|
|
51763
|
-
|
|
51764
|
-
UPLOAD_COMPLETE: (orgId) => `${API_BASE}/orgs/${orgId}/upload/complete`,
|
|
51765
|
-
FILE: (id) => `${API_BASE}/files/${id}`,
|
|
51792
|
+
...attachmentEndpoints(API_BASE),
|
|
51766
51793
|
// Approval requests (org-scoped)
|
|
51767
51794
|
APPROVAL_REQUESTS: (orgId) => `${API_BASE}/orgs/${orgId}/approval-requests`,
|
|
51768
51795
|
// Approvals (global)
|
|
@@ -51919,6 +51946,7 @@ var ENDPOINTS = {
|
|
|
51919
51946
|
SLACK_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/slack/status`,
|
|
51920
51947
|
// WeChat tier-B read verbs (agent-only; internal research preview).
|
|
51921
51948
|
WECHAT_CONTACTS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/contacts`,
|
|
51949
|
+
WECHAT_HISTORY: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/history`,
|
|
51922
51950
|
WECHAT_PROFILE: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/profile`,
|
|
51923
51951
|
WECHAT_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/status`,
|
|
51924
51952
|
// Invitations (org-scoped, admin)
|
|
@@ -51942,6 +51970,8 @@ var ENDPOINTS = {
|
|
|
51942
51970
|
// backend router so `deleted` isn't captured as a {wikiId}; the SDK builder
|
|
51943
51971
|
// is just a string.
|
|
51944
51972
|
WIKIS_DELETED: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wikis/deleted`,
|
|
51973
|
+
// Org-wide changeset listing across readable wikis (Working on tab).
|
|
51974
|
+
WIKI_ORG_CHANGESETS: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wiki-changesets`,
|
|
51945
51975
|
// Detail URL — also reused for DELETE (soft-delete) and `${WIKI}/restore`.
|
|
51946
51976
|
WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
|
|
51947
51977
|
WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
|
|
@@ -51971,6 +52001,10 @@ var ENDPOINTS = {
|
|
|
51971
52001
|
// Wiki Path Restrictions (AFCS narrowing ACL — private subtrees)
|
|
51972
52002
|
WIKI_RESTRICTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions`,
|
|
51973
52003
|
WIKI_RESTRICTION: (orgId, wikiId, restrictionId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions/${restrictionId}`,
|
|
52004
|
+
WIKI_ACCESS_POLICY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy`,
|
|
52005
|
+
WIKI_ACCESS_POLICY_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy/members`,
|
|
52006
|
+
WIKI_MEMBERSHIP_SELF: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/membership/self`,
|
|
52007
|
+
WIKI_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/members`,
|
|
51974
52008
|
WIKI_ACCESS_STATUS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-status`,
|
|
51975
52009
|
WIKI_ACCESS_REQUESTS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-requests`,
|
|
51976
52010
|
// Wiki History (commits, file commits, blame)
|
|
@@ -52091,6 +52125,19 @@ var ENDPOINTS = {
|
|
|
52091
52125
|
ORG_EDGE_DEVICE_UNREGISTER: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/unregister`,
|
|
52092
52126
|
ORG_EDGE_ONBOARDING: (orgId) => `/api/v1/orgs/${orgId}/edge/onboarding`,
|
|
52093
52127
|
ORG_EDGE_PROFILES: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles`,
|
|
52128
|
+
ORG_EDGE_PROFILE_OPERATIONS: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations`,
|
|
52129
|
+
ORG_EDGE_PROFILE_OPERATION: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}`,
|
|
52130
|
+
ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`,
|
|
52131
|
+
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
52132
|
+
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
52133
|
+
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
52134
|
+
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
52135
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
52136
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
52137
|
+
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
52138
|
+
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
52139
|
+
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
52140
|
+
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
52094
52141
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
52095
52142
|
ORG_EDGE_PROFILE_PROXY: (orgId, edgeId, profileName) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/proxy`,
|
|
52096
52143
|
// Per-profile one-shot cookie seed (hosted Cloud Profiles; manager-only,
|
|
@@ -52414,8 +52461,71 @@ var TaskLabelClient = class extends ProjectTaskClient {
|
|
|
52414
52461
|
}
|
|
52415
52462
|
};
|
|
52416
52463
|
|
|
52464
|
+
// ts/sdk/dist/wechat-client.js
|
|
52465
|
+
var WechatClient = class extends TaskLabelClient {
|
|
52466
|
+
/** Address book enriched with display names. */
|
|
52467
|
+
async listWechatContacts(orgId) {
|
|
52468
|
+
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
52469
|
+
}
|
|
52470
|
+
/** Platform-retained context in chronological page order. */
|
|
52471
|
+
async wechatHistory(orgId, conversation, query) {
|
|
52472
|
+
const params = new URLSearchParams({ conversation });
|
|
52473
|
+
if (query?.before)
|
|
52474
|
+
params.set("before", query.before);
|
|
52475
|
+
if (query?.since)
|
|
52476
|
+
params.set("since", query.since);
|
|
52477
|
+
if (query?.limit !== void 0)
|
|
52478
|
+
params.set("limit", String(query.limit));
|
|
52479
|
+
return this.request("GET", `${ENDPOINTS.WECHAT_HISTORY(orgId)}?${params.toString()}`);
|
|
52480
|
+
}
|
|
52481
|
+
/** Connected WeChat account identity. */
|
|
52482
|
+
async wechatProfile(orgId) {
|
|
52483
|
+
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
52484
|
+
}
|
|
52485
|
+
/** Live online probe, identity, and platform offline record. */
|
|
52486
|
+
async wechatStatus(orgId) {
|
|
52487
|
+
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
52488
|
+
}
|
|
52489
|
+
};
|
|
52490
|
+
|
|
52491
|
+
// ts/sdk/dist/attachment-client.js
|
|
52492
|
+
var COMPLETION_RETRY_DELAYS_MS = [250, 750];
|
|
52493
|
+
function isRetryableCompletionError(error) {
|
|
52494
|
+
if (!error || typeof error !== "object" || !("status" in error))
|
|
52495
|
+
return false;
|
|
52496
|
+
const status = error.status;
|
|
52497
|
+
return status === 0 || typeof status === "number" && status >= 500;
|
|
52498
|
+
}
|
|
52499
|
+
var AttachmentClient = class extends WechatClient {
|
|
52500
|
+
async getUploadPresignUrl(orgId, req) {
|
|
52501
|
+
return this.request("POST", ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
52502
|
+
}
|
|
52503
|
+
async completeUpload(orgId, attachmentId, parts) {
|
|
52504
|
+
const body = {
|
|
52505
|
+
attachment_id: attachmentId,
|
|
52506
|
+
parts
|
|
52507
|
+
};
|
|
52508
|
+
for (let attempt = 0; ; attempt += 1) {
|
|
52509
|
+
try {
|
|
52510
|
+
return await this.request("POST", ENDPOINTS.UPLOAD_COMPLETE(orgId), body);
|
|
52511
|
+
} catch (error) {
|
|
52512
|
+
const delay = COMPLETION_RETRY_DELAYS_MS[attempt];
|
|
52513
|
+
if (delay === void 0 || !isRetryableCompletionError(error))
|
|
52514
|
+
throw error;
|
|
52515
|
+
await new Promise((resolve4) => setTimeout(resolve4, delay));
|
|
52516
|
+
}
|
|
52517
|
+
}
|
|
52518
|
+
}
|
|
52519
|
+
async abortUpload(orgId, attachmentId) {
|
|
52520
|
+
return this.request("POST", ENDPOINTS.UPLOAD_ABORT(orgId), { attachment_id: attachmentId });
|
|
52521
|
+
}
|
|
52522
|
+
async getFileUrl(id, opts) {
|
|
52523
|
+
return this.request("GET", ENDPOINTS.FILE(id), void 0, opts?.download ? { download: true } : void 0);
|
|
52524
|
+
}
|
|
52525
|
+
};
|
|
52526
|
+
|
|
52417
52527
|
// ts/sdk/dist/client.js
|
|
52418
|
-
var ParallClient = class _ParallClient extends
|
|
52528
|
+
var ParallClient = class _ParallClient extends AttachmentClient {
|
|
52419
52529
|
baseUrl;
|
|
52420
52530
|
wikiBaseUrl;
|
|
52421
52531
|
token;
|
|
@@ -53062,16 +53172,6 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
53062
53172
|
const res = await this.request("GET", ENDPOINTS.MESSAGE_REACTIONS(messageId));
|
|
53063
53173
|
return res.reactions;
|
|
53064
53174
|
}
|
|
53065
|
-
// ---- File Upload ----
|
|
53066
|
-
async getUploadPresignUrl(orgId, req) {
|
|
53067
|
-
return this.request("POST", ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
53068
|
-
}
|
|
53069
|
-
async completeUpload(orgId, attachmentId) {
|
|
53070
|
-
return this.request("POST", ENDPOINTS.UPLOAD_COMPLETE(orgId), { attachment_id: attachmentId });
|
|
53071
|
-
}
|
|
53072
|
-
async getFileUrl(id, opts) {
|
|
53073
|
-
return this.request("GET", ENDPOINTS.FILE(id), void 0, opts?.download ? { download: true } : void 0);
|
|
53074
|
-
}
|
|
53075
53175
|
// ---- Approvals ----
|
|
53076
53176
|
async getApproval(id) {
|
|
53077
53177
|
return this.request("GET", ENDPOINTS.APPROVAL(id));
|
|
@@ -53079,8 +53179,14 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
53079
53179
|
async requestApproval(orgId, req) {
|
|
53080
53180
|
return this.request("POST", ENDPOINTS.APPROVAL_REQUESTS(orgId), req);
|
|
53081
53181
|
}
|
|
53082
|
-
async decideApproval(id, decision) {
|
|
53083
|
-
|
|
53182
|
+
async decideApproval(id, decision, reason) {
|
|
53183
|
+
if (decision === "approve" && reason?.trim()) {
|
|
53184
|
+
throw new ApiError(400, "Approval reason is only allowed for rejection decisions", "INVALID_DECISION_REASON");
|
|
53185
|
+
}
|
|
53186
|
+
return this.request("POST", ENDPOINTS.APPROVAL_DECIDE(id), {
|
|
53187
|
+
decision,
|
|
53188
|
+
...decision === "reject" && reason !== void 0 ? { reason } : {}
|
|
53189
|
+
});
|
|
53084
53190
|
}
|
|
53085
53191
|
async cancelApproval(id) {
|
|
53086
53192
|
return this.request("POST", ENDPOINTS.APPROVAL_CANCEL(id));
|
|
@@ -53763,28 +53869,6 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
53763
53869
|
async setSlackStatus(orgId, input) {
|
|
53764
53870
|
await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
53765
53871
|
}
|
|
53766
|
-
/**
|
|
53767
|
-
* WeChat tier-B read verb (agent-only; internal research preview): the
|
|
53768
|
-
* account's address book — friends/chatrooms enriched with display names,
|
|
53769
|
-
* followed official accounts. Same live gate as the send verb.
|
|
53770
|
-
*/
|
|
53771
|
-
async listWechatContacts(orgId) {
|
|
53772
|
-
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
53773
|
-
}
|
|
53774
|
-
/**
|
|
53775
|
-
* WeChat tier-B read verb (agent-only): the connected account's identity
|
|
53776
|
-
* (wxid / alias / nickName / app id).
|
|
53777
|
-
*/
|
|
53778
|
-
async wechatProfile(orgId) {
|
|
53779
|
-
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
53780
|
-
}
|
|
53781
|
-
/**
|
|
53782
|
-
* WeChat tier-B read verb (agent-only): live online probe + identity +
|
|
53783
|
-
* the platform's offline record.
|
|
53784
|
-
*/
|
|
53785
|
-
async wechatStatus(orgId) {
|
|
53786
|
-
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
53787
|
-
}
|
|
53788
53872
|
async listChannelConversations(orgId, connectionId) {
|
|
53789
53873
|
return this.request("GET", ENDPOINTS.CHANNEL_CONNECTION_CONVERSATIONS(orgId, connectionId));
|
|
53790
53874
|
}
|
|
@@ -53935,6 +54019,17 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
53935
54019
|
const res = await this.request("GET", ENDPOINTS.WIKI_CHANGESETS(orgId, wikiId));
|
|
53936
54020
|
return res.data.map(normalizeWikiChangeset);
|
|
53937
54021
|
}
|
|
54022
|
+
/** Org-wide changeset listing across every wiki the caller can read.
|
|
54023
|
+
* Server default (no `status`) is the pending set: proposed,
|
|
54024
|
+
* approval_pending, approved. */
|
|
54025
|
+
async getOrgWikiChangesets(orgId, opts) {
|
|
54026
|
+
const params = new URLSearchParams();
|
|
54027
|
+
for (const s of opts?.status ?? [])
|
|
54028
|
+
params.append("status", s);
|
|
54029
|
+
const qs = params.toString();
|
|
54030
|
+
const res = await this.request("GET", `${ENDPOINTS.WIKI_ORG_CHANGESETS(orgId)}${qs ? `?${qs}` : ""}`);
|
|
54031
|
+
return (res.data ?? []).map(normalizeWikiChangeset);
|
|
54032
|
+
}
|
|
53938
54033
|
async getWikiChangeset(orgId, wikiId, changesetId) {
|
|
53939
54034
|
return normalizeWikiChangeset(await this.request("GET", ENDPOINTS.WIKI_CHANGESET(orgId, wikiId, changesetId)));
|
|
53940
54035
|
}
|
|
@@ -54023,6 +54118,35 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
54023
54118
|
async getWikiAccessStatus(orgId, wikiId, path12) {
|
|
54024
54119
|
return this.request("GET", ENDPOINTS.WIKI_ACCESS_STATUS(orgId, wikiId), void 0, path12 ? { path: path12 } : void 0);
|
|
54025
54120
|
}
|
|
54121
|
+
// ---- Wiki membership projection (who-can-access, invites, join/leave) ----
|
|
54122
|
+
async getWikiAccessPolicy(orgId, wikiId, path12 = "") {
|
|
54123
|
+
return this.request("GET", ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), void 0, path12 ? { path: path12 } : void 0);
|
|
54124
|
+
}
|
|
54125
|
+
async putWikiAccessPolicy(orgId, wikiId, policy) {
|
|
54126
|
+
return this.request("PUT", ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), policy);
|
|
54127
|
+
}
|
|
54128
|
+
/** Add-only invite (viewer/editor); allowed for managers, and for editors
|
|
54129
|
+
* when the library enables editors_can_invite. */
|
|
54130
|
+
async addWikiMember(orgId, wikiId, subject, role) {
|
|
54131
|
+
await this.request("POST", ENDPOINTS.WIKI_ACCESS_POLICY_MEMBERS(orgId, wikiId), {
|
|
54132
|
+
subject,
|
|
54133
|
+
role
|
|
54134
|
+
});
|
|
54135
|
+
}
|
|
54136
|
+
/** Join a PUBLIC library as an explicit member (lands at the library's
|
|
54137
|
+
* default role). Restricted libraries answer 409 JOIN_REQUIRES_REQUEST —
|
|
54138
|
+
* go through createWikiAccessRequest instead. */
|
|
54139
|
+
async joinWiki(orgId, wikiId) {
|
|
54140
|
+
await this.request("POST", ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
54141
|
+
}
|
|
54142
|
+
/** Remove the caller's explicit membership (team-granted membership stays). */
|
|
54143
|
+
async leaveWiki(orgId, wikiId) {
|
|
54144
|
+
await this.request("DELETE", ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
54145
|
+
}
|
|
54146
|
+
async getWikiMembers(orgId, wikiId) {
|
|
54147
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_MEMBERS(orgId, wikiId));
|
|
54148
|
+
return res.data ?? [];
|
|
54149
|
+
}
|
|
54026
54150
|
async createWikiAccessRequest(orgId, wikiId, data) {
|
|
54027
54151
|
await this.request("POST", ENDPOINTS.WIKI_ACCESS_REQUESTS(orgId, wikiId), data);
|
|
54028
54152
|
}
|
|
@@ -54070,11 +54194,11 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
54070
54194
|
}
|
|
54071
54195
|
// ---- References ----
|
|
54072
54196
|
async resolveRefs(orgId, refs, options) {
|
|
54073
|
-
|
|
54074
|
-
|
|
54075
|
-
|
|
54076
|
-
|
|
54077
|
-
|
|
54197
|
+
return this.request("POST", ENDPOINTS.REFS_RESOLVE(orgId), {
|
|
54198
|
+
refs,
|
|
54199
|
+
source_message_id: options?.sourceMessageId,
|
|
54200
|
+
full: options?.full || void 0
|
|
54201
|
+
});
|
|
54078
54202
|
}
|
|
54079
54203
|
async getBacklinks(orgId, params) {
|
|
54080
54204
|
return this.request("GET", ENDPOINTS.REFS_BACKLINKS(orgId), void 0, params);
|
|
@@ -54485,6 +54609,76 @@ var ParallClient = class _ParallClient extends TaskLabelClient {
|
|
|
54485
54609
|
async listEdgeProfiles(orgId, edgeId) {
|
|
54486
54610
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, edgeId));
|
|
54487
54611
|
}
|
|
54612
|
+
/** Start one durable Local BYOC Profile operation. Network-unknown callers
|
|
54613
|
+
* must retry with the same key or recover by operation id; a different body
|
|
54614
|
+
* under the same key is rejected. */
|
|
54615
|
+
async createEdgeProfileOperation(orgId, edgeId, request3, idempotencyKey) {
|
|
54616
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE_PROFILE_OPERATIONS(orgId, edgeId), request3, void 0, false, { headers: { "Idempotency-Key": idempotencyKey } });
|
|
54617
|
+
}
|
|
54618
|
+
/** Strong-confirm the exact durable Delete impact. A changed impact returns
|
|
54619
|
+
* PROFILE_DELETE_IMPACT_CHANGED with a replacement receipt in
|
|
54620
|
+
* `ApiError.extras.details.operation`. */
|
|
54621
|
+
async confirmEdgeProfileOperation(orgId, edgeId, operationId, request3) {
|
|
54622
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION_CONFIRM(orgId, edgeId, operationId), request3);
|
|
54623
|
+
}
|
|
54624
|
+
/** Sole read/recovery surface. The server may reconcile an already durable
|
|
54625
|
+
* dispatch/finalization while returning this receipt. */
|
|
54626
|
+
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
54627
|
+
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
54628
|
+
}
|
|
54629
|
+
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
54630
|
+
* with the same idempotency key and body returns the original stable ccn_. */
|
|
54631
|
+
async createBrowserAlias(orgId, request3) {
|
|
54632
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request3);
|
|
54633
|
+
}
|
|
54634
|
+
async listBrowserAliases(orgId) {
|
|
54635
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
54636
|
+
}
|
|
54637
|
+
async getBrowserAlias(orgId, aliasId) {
|
|
54638
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
54639
|
+
}
|
|
54640
|
+
async renameBrowserAlias(orgId, aliasId, request3) {
|
|
54641
|
+
return this.request("PATCH", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request3);
|
|
54642
|
+
}
|
|
54643
|
+
async deleteBrowserAlias(orgId, aliasId, request3) {
|
|
54644
|
+
return this.request("DELETE", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request3);
|
|
54645
|
+
}
|
|
54646
|
+
/** Start one durable readiness check. The key is carried as the standard
|
|
54647
|
+
* Idempotency-Key header; the request body is intentionally empty. */
|
|
54648
|
+
async createBrowserAliasReadinessCheck(orgId, aliasId, request3) {
|
|
54649
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), void 0, void 0, false, { headers: { "Idempotency-Key": request3.idempotency_key } });
|
|
54650
|
+
}
|
|
54651
|
+
/** Sole durable recovery surface for one readiness request. */
|
|
54652
|
+
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
54653
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
54654
|
+
}
|
|
54655
|
+
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
54656
|
+
* intentionally available only on this human-JWT management surface. */
|
|
54657
|
+
async listBrowserAliasGrants(orgId, keyId) {
|
|
54658
|
+
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
54659
|
+
}
|
|
54660
|
+
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
54661
|
+
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
54662
|
+
}
|
|
54663
|
+
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request3) {
|
|
54664
|
+
return this.request("PUT", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request3);
|
|
54665
|
+
}
|
|
54666
|
+
/** Managed-key discovery. The response is already grant-filtered and never
|
|
54667
|
+
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
54668
|
+
async listManagedBrowserAliases(orgId) {
|
|
54669
|
+
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
54670
|
+
}
|
|
54671
|
+
async getManagedBrowserAlias(orgId, aliasName) {
|
|
54672
|
+
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
54673
|
+
}
|
|
54674
|
+
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
54675
|
+
* caller before local validation and is also the sole durable recovery key. */
|
|
54676
|
+
async createBrowserAliasExecution(orgId, request3) {
|
|
54677
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request3);
|
|
54678
|
+
}
|
|
54679
|
+
async getBrowserAliasExecution(orgId, requestId) {
|
|
54680
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
54681
|
+
}
|
|
54488
54682
|
/**
|
|
54489
54683
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
54490
54684
|
* human maintainer or org admin). Sanitized — the password never comes back.
|
|
@@ -55103,6 +55297,56 @@ var ParallWs = class {
|
|
|
55103
55297
|
}
|
|
55104
55298
|
};
|
|
55105
55299
|
|
|
55300
|
+
// ts/agent-core/dist/fork-state.js
|
|
55301
|
+
var FORK_CONTINUATION_RETRY_CAP = 256;
|
|
55302
|
+
function forkContinuationRetryKey(event) {
|
|
55303
|
+
if (event.type === "message" || event.type === "channel_message") {
|
|
55304
|
+
return event.messageId ? `message:${event.messageId}` : void 0;
|
|
55305
|
+
}
|
|
55306
|
+
return event.dispatchEventId ? `dispatch:${event.dispatchEventId}` : void 0;
|
|
55307
|
+
}
|
|
55308
|
+
function resolveForkContinuationPrefix(pendingResults, retries, event) {
|
|
55309
|
+
const retryKey = forkContinuationRetryKey(event);
|
|
55310
|
+
const retained = retryKey ? retries.get(retryKey) : void 0;
|
|
55311
|
+
if (retained)
|
|
55312
|
+
return retained;
|
|
55313
|
+
const prefix = buildForkResultPrefix(pendingResults.filter((result) => result.sourceEvent.targetId === event.targetId));
|
|
55314
|
+
return prefix || void 0;
|
|
55315
|
+
}
|
|
55316
|
+
function retainForkContinuationRetries(retries, events, prefix) {
|
|
55317
|
+
if (!prefix)
|
|
55318
|
+
return;
|
|
55319
|
+
for (const event of events) {
|
|
55320
|
+
const key = forkContinuationRetryKey(event);
|
|
55321
|
+
if (!key)
|
|
55322
|
+
continue;
|
|
55323
|
+
if (retries.delete(key) === false && retries.size >= FORK_CONTINUATION_RETRY_CAP) {
|
|
55324
|
+
const oldest = retries.keys().next().value;
|
|
55325
|
+
if (oldest !== void 0)
|
|
55326
|
+
retries.delete(oldest);
|
|
55327
|
+
}
|
|
55328
|
+
retries.set(key, prefix);
|
|
55329
|
+
}
|
|
55330
|
+
}
|
|
55331
|
+
function clearForkContinuationRetries(retries, events) {
|
|
55332
|
+
for (const event of events) {
|
|
55333
|
+
const key = forkContinuationRetryKey(event);
|
|
55334
|
+
if (key)
|
|
55335
|
+
retries.delete(key);
|
|
55336
|
+
}
|
|
55337
|
+
}
|
|
55338
|
+
function createActiveForkState(fork, targetId, continuationPrefix) {
|
|
55339
|
+
return {
|
|
55340
|
+
fork,
|
|
55341
|
+
targetId,
|
|
55342
|
+
queue: [],
|
|
55343
|
+
processedEvents: [],
|
|
55344
|
+
continuationPrefix,
|
|
55345
|
+
deadlineTimer: null,
|
|
55346
|
+
deadlineExceeded: false
|
|
55347
|
+
};
|
|
55348
|
+
}
|
|
55349
|
+
|
|
55106
55350
|
// ts/agent-core/dist/lane-ledger.js
|
|
55107
55351
|
import * as fs2 from "node:fs";
|
|
55108
55352
|
|
|
@@ -57184,6 +57428,7 @@ var ParallAgentGateway = class {
|
|
|
57184
57428
|
// LaneFlowHost.typedRedriveBackoff in gateway-lane-flow.ts.
|
|
57185
57429
|
typedRedriveBackoff = /* @__PURE__ */ new Map();
|
|
57186
57430
|
forkStates = /* @__PURE__ */ new Map();
|
|
57431
|
+
forkContinuationRetries = /* @__PURE__ */ new Map();
|
|
57187
57432
|
dispatchState = {
|
|
57188
57433
|
mainDispatching: false,
|
|
57189
57434
|
activeForks: /* @__PURE__ */ new Map(),
|
|
@@ -58205,6 +58450,7 @@ var ParallAgentGateway = class {
|
|
|
58205
58450
|
}
|
|
58206
58451
|
this.dispatchState.activeForks.delete(targetId);
|
|
58207
58452
|
this.forkStates.delete(targetId);
|
|
58453
|
+
retainForkContinuationRetries(this.forkContinuationRetries, forkState.queue.map((item) => item.event), forkState.continuationPrefix);
|
|
58208
58454
|
for (const item of forkState.queue.splice(0)) {
|
|
58209
58455
|
item.resolve(false);
|
|
58210
58456
|
}
|
|
@@ -58252,14 +58498,16 @@ var ParallAgentGateway = class {
|
|
|
58252
58498
|
const events = items.map((item) => item.event);
|
|
58253
58499
|
const last = events[events.length - 1];
|
|
58254
58500
|
const earlier = events.slice(0, -1);
|
|
58501
|
+
retainForkContinuationRetries(this.forkContinuationRetries, events, fork.continuationPrefix);
|
|
58255
58502
|
try {
|
|
58256
58503
|
const batchText = [];
|
|
58504
|
+
const body = (fork.continuationPrefix ?? "") + buildForkScopePrefix(last) + buildEventBody(last);
|
|
58257
58505
|
let dispatched;
|
|
58258
58506
|
if (this.usesLaneLedger(last)) {
|
|
58259
58507
|
const outcome = await this.dispatchLaneGroup({
|
|
58260
58508
|
events,
|
|
58261
58509
|
sessionKey: fork.fork.sessionKey,
|
|
58262
|
-
body
|
|
58510
|
+
body,
|
|
58263
58511
|
earlier,
|
|
58264
58512
|
captureText: batchText,
|
|
58265
58513
|
// Per-LANE residue check (parity with the main-buffer path):
|
|
@@ -58281,7 +58529,7 @@ var ParallAgentGateway = class {
|
|
|
58281
58529
|
}
|
|
58282
58530
|
dispatched = outcome === "dispatched";
|
|
58283
58531
|
} else {
|
|
58284
|
-
dispatched = await this.runDispatch(last, fork.fork.sessionKey,
|
|
58532
|
+
dispatched = await this.runDispatch(last, fork.fork.sessionKey, body, earlier, batchText);
|
|
58285
58533
|
if (dispatched && this.typedLedgerEventIds(events) && this.consumeTurnError(fork.fork.sessionKey)) {
|
|
58286
58534
|
this.opts.log?.info(`typed fork turn for ${last.messageId} surfaced a runtime error \u2014 releasing for retry`);
|
|
58287
58535
|
for (const item of items)
|
|
@@ -58297,11 +58545,8 @@ var ParallAgentGateway = class {
|
|
|
58297
58545
|
}
|
|
58298
58546
|
if (batchText.length > 0)
|
|
58299
58547
|
lastCapturedText = batchText;
|
|
58300
|
-
|
|
58301
|
-
|
|
58302
|
-
item.resolve(false);
|
|
58303
|
-
break;
|
|
58304
|
-
}
|
|
58548
|
+
clearForkContinuationRetries(this.forkContinuationRetries, events);
|
|
58549
|
+
fork.continuationPrefix = void 0;
|
|
58305
58550
|
fork.processedEvents.push(...events);
|
|
58306
58551
|
for (const item of items) {
|
|
58307
58552
|
item.resolve(true);
|
|
@@ -58507,6 +58752,9 @@ var ParallAgentGateway = class {
|
|
|
58507
58752
|
}
|
|
58508
58753
|
async handleInboundEvent(event) {
|
|
58509
58754
|
const disposition = routeTrigger(event, this.dispatchState);
|
|
58755
|
+
if (disposition.action === "main") {
|
|
58756
|
+
clearForkContinuationRetries(this.forkContinuationRetries, [event]);
|
|
58757
|
+
}
|
|
58510
58758
|
switch (disposition.action) {
|
|
58511
58759
|
case "main": {
|
|
58512
58760
|
const pendingFork = this.dispatchState.pendingForkResults.splice(0);
|
|
@@ -58613,6 +58861,7 @@ var ParallAgentGateway = class {
|
|
|
58613
58861
|
this.dispatchState.mainBuffer.push(event);
|
|
58614
58862
|
return false;
|
|
58615
58863
|
}
|
|
58864
|
+
const continuationPrefix = resolveForkContinuationPrefix(this.dispatchState.pendingForkResults, this.forkContinuationRetries, event);
|
|
58616
58865
|
if (!this.usesLaneLedger(event) && !this.typedLedgerEventIds([event])) {
|
|
58617
58866
|
try {
|
|
58618
58867
|
await this.emitDispatchReceived(event);
|
|
@@ -58632,14 +58881,7 @@ var ParallAgentGateway = class {
|
|
|
58632
58881
|
this.dispatchState.mainBuffer.push(event);
|
|
58633
58882
|
return false;
|
|
58634
58883
|
}
|
|
58635
|
-
const activeFork =
|
|
58636
|
-
fork,
|
|
58637
|
-
targetId: event.targetId,
|
|
58638
|
-
queue: [],
|
|
58639
|
-
processedEvents: [],
|
|
58640
|
-
deadlineTimer: null,
|
|
58641
|
-
deadlineExceeded: false
|
|
58642
|
-
};
|
|
58884
|
+
const activeFork = createActiveForkState(fork, event.targetId, continuationPrefix);
|
|
58643
58885
|
this.forkStates.set(event.targetId, activeFork);
|
|
58644
58886
|
this.dispatchState.activeForks.set(event.targetId, fork.sessionKey);
|
|
58645
58887
|
activeFork.deadlineTimer = setTimeout(() => {
|
|
@@ -59207,7 +59449,10 @@ var ParallAgentGateway = class {
|
|
|
59207
59449
|
this.opts.log?.info(`approval decided: ${approval.id} (${approval.status})`);
|
|
59208
59450
|
const statusLabel = approval.status === "approved" ? "Approved" : "Rejected";
|
|
59209
59451
|
const execInfo = approval.execution_status ? ` | execution: ${approval.execution_status}` : "";
|
|
59210
|
-
const
|
|
59452
|
+
const reasonLine = formatApprovalDecisionReason(approval.status, approval.decision_reason);
|
|
59453
|
+
const reasonInfo = reasonLine ? `
|
|
59454
|
+
${reasonLine}` : "";
|
|
59455
|
+
const body = `${statusLabel}: ${approval.title}${execInfo}${reasonInfo}`;
|
|
59211
59456
|
const event = {
|
|
59212
59457
|
type: "approval",
|
|
59213
59458
|
targetId: chatId ?? approval.chat_id,
|
|
@@ -59711,8 +59956,8 @@ Every member carries an org-scoped public profile: \`title\` (role, e.g.
|
|
|
59711
59956
|
"Platform Lead") and \`description\` (a short about). \`members list\` includes
|
|
59712
59957
|
both \u2014 use them to route work to the right person or agent. Your own system
|
|
59713
59958
|
prompt already contains your public profile and your private Instructions;
|
|
59714
|
-
|
|
59715
|
-
|
|
59959
|
+
changing yours takes a human decision \u2014 run \`parall profile set\` and follow
|
|
59960
|
+
the approval flow it prints (see "Your Profile" below).
|
|
59716
59961
|
|
|
59717
59962
|
Create a hosted agent when the user asks for a Parall-managed runtime. Hosted
|
|
59718
59963
|
provisioning is asynchronous: creation means the agent identity, API key, and
|
|
@@ -59890,6 +60135,26 @@ parall approvals cancel prll://apr_xxx
|
|
|
59890
60135
|
|
|
59891
60136
|
Only request approval after receiving an actual \`PERMISSION_DENIED\` error \u2014 never preemptively. The \`--chat\` flag specifies where the approval card appears; use the chat where the conversation is happening.
|
|
59892
60137
|
|
|
60138
|
+
## Your Profile
|
|
60139
|
+
|
|
60140
|
+
You can read everything about yourself, and you edit it the same way you do
|
|
60141
|
+
anything else: run the command. Your edits need a human decision, so the
|
|
60142
|
+
attempt answers PERMISSION_DENIED with a ready-made \`parall approvals
|
|
60143
|
+
request\` command that already carries exactly what you tried to write \u2014 run
|
|
60144
|
+
it, picking a chat your manager (or an org admin) is in.
|
|
60145
|
+
|
|
60146
|
+
\`\`\`bash
|
|
60147
|
+
parall profile show # identity, org profile, Instructions, manager
|
|
60148
|
+
parall profile set --title "Release captain"
|
|
60149
|
+
parall profile set --about "I watch deploys and chase regressions"
|
|
60150
|
+
parall profile set --instructions-file /tmp/new-instructions.md
|
|
60151
|
+
parall profile set --display-name "Pai"
|
|
60152
|
+
\`\`\`
|
|
60153
|
+
|
|
60154
|
+
The approval card shows the approver the exact before \u2192 after; the decision
|
|
60155
|
+
arrives as an \`approval.decided\` event. Avatar changes have no proposal
|
|
60156
|
+
path \u2014 ask your manager or an org admin.
|
|
60157
|
+
|
|
59893
60158
|
## Reference URIs
|
|
59894
60159
|
|
|
59895
60160
|
Every entity is addressable with a \`prll://\` URI. Common prefixes you'll see in events, messages, and schedule descriptions:
|
|
@@ -59926,6 +60191,9 @@ entity connected to". All results are permission-filtered to what you can see.
|
|
|
59926
60191
|
# Resolve URIs to entity metadata (titles, status, previews)
|
|
59927
60192
|
parall refs resolve prll://tsk_xxx prll://wik_xxx
|
|
59928
60193
|
|
|
60194
|
+
# Complete text for authorized message refs (default preview is 100 characters)
|
|
60195
|
+
parall refs resolve --full prll://msg_xxx
|
|
60196
|
+
|
|
59929
60197
|
# Single hop \u2014 who references X
|
|
59930
60198
|
parall refs backlinks prll://tsk_xxx
|
|
59931
60199
|
|
|
@@ -60035,10 +60303,24 @@ top-level tasks and subtasks; per-person open work is best fetched with
|
|
|
60035
60303
|
|
|
60036
60304
|
## Project Commands
|
|
60037
60305
|
|
|
60306
|
+
Every task lives in a project, and you can only see (and create tasks in)
|
|
60307
|
+
projects whose roster you are on. \`projects list\` returning nothing \u2014 or task
|
|
60308
|
+
creation failing with an empty \`available_projects\` \u2014 means you have not
|
|
60309
|
+
joined any project yet; it does not establish whether joinable projects
|
|
60310
|
+
exist. Check the library:
|
|
60311
|
+
|
|
60038
60312
|
\`\`\`bash
|
|
60039
|
-
parall projects list
|
|
60313
|
+
parall projects list # projects you are a member of
|
|
60314
|
+
parall projects library # ALL joinable projects + your state
|
|
60315
|
+
parall projects join prll://prj_xxx # public tier: joins immediately
|
|
60316
|
+
parall projects request-join prll://prj_xxx # restricted tier: a manager approves
|
|
60317
|
+
parall projects members list prll://prj_xxx # who is on the roster
|
|
60040
60318
|
\`\`\`
|
|
60041
60319
|
|
|
60320
|
+
A restricted-tier request resolves asynchronously \u2014 you receive an
|
|
60321
|
+
\`approval.decided\` event when a manager decides. Private projects are
|
|
60322
|
+
invitation-only and do not appear in the library.
|
|
60323
|
+
|
|
60042
60324
|
## Watching Tasks
|
|
60043
60325
|
|
|
60044
60326
|
Watchers receive dispatch events for a task's new comments. Acting on a task
|