@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
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
|
|
|
@@ -172,11 +178,34 @@ var init_browser_viewer = __esm({
|
|
|
172
178
|
}
|
|
173
179
|
});
|
|
174
180
|
|
|
181
|
+
// ts/sdk/dist/attachment-types.js
|
|
182
|
+
var init_attachment_types = __esm({
|
|
183
|
+
"ts/sdk/dist/attachment-types.js"() {
|
|
184
|
+
"use strict";
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
// ts/sdk/dist/attachment-endpoints.js
|
|
189
|
+
function attachmentEndpoints(apiBase) {
|
|
190
|
+
return {
|
|
191
|
+
UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
|
|
192
|
+
UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
|
|
193
|
+
UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
|
|
194
|
+
FILE: (id) => `${apiBase}/files/${id}`
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
var init_attachment_endpoints = __esm({
|
|
198
|
+
"ts/sdk/dist/attachment-endpoints.js"() {
|
|
199
|
+
"use strict";
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
|
|
175
203
|
// ts/sdk/dist/constants.js
|
|
176
204
|
var API_BASE, WIKI_BASE, CLIP_BASE, ENDPOINTS, WS_EVENTS;
|
|
177
205
|
var init_constants = __esm({
|
|
178
206
|
"ts/sdk/dist/constants.js"() {
|
|
179
207
|
"use strict";
|
|
208
|
+
init_attachment_endpoints();
|
|
180
209
|
API_BASE = "/api/v1";
|
|
181
210
|
WIKI_BASE = "/wiki/v1";
|
|
182
211
|
CLIP_BASE = "/clip/v1";
|
|
@@ -248,9 +277,7 @@ var init_constants = __esm({
|
|
|
248
277
|
MESSAGE_REACTIONS: (id) => `${API_BASE}/messages/${id}/reactions`,
|
|
249
278
|
MESSAGE_REACTION: (id, emoji) => `${API_BASE}/messages/${id}/reactions/${encodeURIComponent(emoji)}`,
|
|
250
279
|
// Upload (org-scoped)
|
|
251
|
-
|
|
252
|
-
UPLOAD_COMPLETE: (orgId) => `${API_BASE}/orgs/${orgId}/upload/complete`,
|
|
253
|
-
FILE: (id) => `${API_BASE}/files/${id}`,
|
|
280
|
+
...attachmentEndpoints(API_BASE),
|
|
254
281
|
// Approval requests (org-scoped)
|
|
255
282
|
APPROVAL_REQUESTS: (orgId) => `${API_BASE}/orgs/${orgId}/approval-requests`,
|
|
256
283
|
// Approvals (global)
|
|
@@ -407,6 +434,7 @@ var init_constants = __esm({
|
|
|
407
434
|
SLACK_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/slack/status`,
|
|
408
435
|
// WeChat tier-B read verbs (agent-only; internal research preview).
|
|
409
436
|
WECHAT_CONTACTS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/contacts`,
|
|
437
|
+
WECHAT_HISTORY: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/history`,
|
|
410
438
|
WECHAT_PROFILE: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/profile`,
|
|
411
439
|
WECHAT_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/status`,
|
|
412
440
|
// Invitations (org-scoped, admin)
|
|
@@ -430,6 +458,8 @@ var init_constants = __esm({
|
|
|
430
458
|
// backend router so `deleted` isn't captured as a {wikiId}; the SDK builder
|
|
431
459
|
// is just a string.
|
|
432
460
|
WIKIS_DELETED: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wikis/deleted`,
|
|
461
|
+
// Org-wide changeset listing across readable wikis (Working on tab).
|
|
462
|
+
WIKI_ORG_CHANGESETS: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wiki-changesets`,
|
|
433
463
|
// Detail URL — also reused for DELETE (soft-delete) and `${WIKI}/restore`.
|
|
434
464
|
WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
|
|
435
465
|
WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
|
|
@@ -459,6 +489,10 @@ var init_constants = __esm({
|
|
|
459
489
|
// Wiki Path Restrictions (AFCS narrowing ACL — private subtrees)
|
|
460
490
|
WIKI_RESTRICTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions`,
|
|
461
491
|
WIKI_RESTRICTION: (orgId, wikiId, restrictionId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions/${restrictionId}`,
|
|
492
|
+
WIKI_ACCESS_POLICY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy`,
|
|
493
|
+
WIKI_ACCESS_POLICY_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy/members`,
|
|
494
|
+
WIKI_MEMBERSHIP_SELF: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/membership/self`,
|
|
495
|
+
WIKI_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/members`,
|
|
462
496
|
WIKI_ACCESS_STATUS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-status`,
|
|
463
497
|
WIKI_ACCESS_REQUESTS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-requests`,
|
|
464
498
|
// Wiki History (commits, file commits, blame)
|
|
@@ -579,6 +613,19 @@ var init_constants = __esm({
|
|
|
579
613
|
ORG_EDGE_DEVICE_UNREGISTER: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/unregister`,
|
|
580
614
|
ORG_EDGE_ONBOARDING: (orgId) => `/api/v1/orgs/${orgId}/edge/onboarding`,
|
|
581
615
|
ORG_EDGE_PROFILES: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles`,
|
|
616
|
+
ORG_EDGE_PROFILE_OPERATIONS: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations`,
|
|
617
|
+
ORG_EDGE_PROFILE_OPERATION: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}`,
|
|
618
|
+
ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`,
|
|
619
|
+
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
620
|
+
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
621
|
+
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
622
|
+
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
623
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
624
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
625
|
+
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
626
|
+
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
627
|
+
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
628
|
+
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
582
629
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
583
630
|
ORG_EDGE_PROFILE_PROXY: (orgId, edgeId, profileName) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/proxy`,
|
|
584
631
|
// Per-profile one-shot cookie seed (hosted Cloud Profiles; manager-only,
|
|
@@ -919,6 +966,85 @@ var init_task_label_client = __esm({
|
|
|
919
966
|
}
|
|
920
967
|
});
|
|
921
968
|
|
|
969
|
+
// ts/sdk/dist/wechat-client.js
|
|
970
|
+
var WechatClient;
|
|
971
|
+
var init_wechat_client = __esm({
|
|
972
|
+
"ts/sdk/dist/wechat-client.js"() {
|
|
973
|
+
"use strict";
|
|
974
|
+
init_constants();
|
|
975
|
+
init_task_label_client();
|
|
976
|
+
WechatClient = class extends TaskLabelClient {
|
|
977
|
+
/** Address book enriched with display names. */
|
|
978
|
+
async listWechatContacts(orgId) {
|
|
979
|
+
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
980
|
+
}
|
|
981
|
+
/** Platform-retained context in chronological page order. */
|
|
982
|
+
async wechatHistory(orgId, conversation, query) {
|
|
983
|
+
const params = new URLSearchParams({ conversation });
|
|
984
|
+
if (query?.before)
|
|
985
|
+
params.set("before", query.before);
|
|
986
|
+
if (query?.since)
|
|
987
|
+
params.set("since", query.since);
|
|
988
|
+
if (query?.limit !== void 0)
|
|
989
|
+
params.set("limit", String(query.limit));
|
|
990
|
+
return this.request("GET", `${ENDPOINTS.WECHAT_HISTORY(orgId)}?${params.toString()}`);
|
|
991
|
+
}
|
|
992
|
+
/** Connected WeChat account identity. */
|
|
993
|
+
async wechatProfile(orgId) {
|
|
994
|
+
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
995
|
+
}
|
|
996
|
+
/** Live online probe, identity, and platform offline record. */
|
|
997
|
+
async wechatStatus(orgId) {
|
|
998
|
+
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
|
|
1004
|
+
// ts/sdk/dist/attachment-client.js
|
|
1005
|
+
function isRetryableCompletionError(error) {
|
|
1006
|
+
if (!error || typeof error !== "object" || !("status" in error))
|
|
1007
|
+
return false;
|
|
1008
|
+
const status = error.status;
|
|
1009
|
+
return status === 0 || typeof status === "number" && status >= 500;
|
|
1010
|
+
}
|
|
1011
|
+
var COMPLETION_RETRY_DELAYS_MS, AttachmentClient;
|
|
1012
|
+
var init_attachment_client = __esm({
|
|
1013
|
+
"ts/sdk/dist/attachment-client.js"() {
|
|
1014
|
+
"use strict";
|
|
1015
|
+
init_constants();
|
|
1016
|
+
init_wechat_client();
|
|
1017
|
+
COMPLETION_RETRY_DELAYS_MS = [250, 750];
|
|
1018
|
+
AttachmentClient = class extends WechatClient {
|
|
1019
|
+
async getUploadPresignUrl(orgId, req) {
|
|
1020
|
+
return this.request("POST", ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
1021
|
+
}
|
|
1022
|
+
async completeUpload(orgId, attachmentId, parts) {
|
|
1023
|
+
const body = {
|
|
1024
|
+
attachment_id: attachmentId,
|
|
1025
|
+
parts
|
|
1026
|
+
};
|
|
1027
|
+
for (let attempt = 0; ; attempt += 1) {
|
|
1028
|
+
try {
|
|
1029
|
+
return await this.request("POST", ENDPOINTS.UPLOAD_COMPLETE(orgId), body);
|
|
1030
|
+
} catch (error) {
|
|
1031
|
+
const delay = COMPLETION_RETRY_DELAYS_MS[attempt];
|
|
1032
|
+
if (delay === void 0 || !isRetryableCompletionError(error))
|
|
1033
|
+
throw error;
|
|
1034
|
+
await new Promise((resolve9) => setTimeout(resolve9, delay));
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
async abortUpload(orgId, attachmentId) {
|
|
1039
|
+
return this.request("POST", ENDPOINTS.UPLOAD_ABORT(orgId), { attachment_id: attachmentId });
|
|
1040
|
+
}
|
|
1041
|
+
async getFileUrl(id, opts) {
|
|
1042
|
+
return this.request("GET", ENDPOINTS.FILE(id), void 0, opts?.download ? { download: true } : void 0);
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
|
|
922
1048
|
// ts/sdk/dist/client.js
|
|
923
1049
|
function normalizeWikiChangeset(changeset) {
|
|
924
1050
|
return {
|
|
@@ -963,8 +1089,8 @@ var init_client = __esm({
|
|
|
963
1089
|
"use strict";
|
|
964
1090
|
init_browser_viewer();
|
|
965
1091
|
init_constants();
|
|
966
|
-
|
|
967
|
-
ParallClient = class _ParallClient extends
|
|
1092
|
+
init_attachment_client();
|
|
1093
|
+
ParallClient = class _ParallClient extends AttachmentClient {
|
|
968
1094
|
baseUrl;
|
|
969
1095
|
wikiBaseUrl;
|
|
970
1096
|
token;
|
|
@@ -1611,16 +1737,6 @@ var init_client = __esm({
|
|
|
1611
1737
|
const res = await this.request("GET", ENDPOINTS.MESSAGE_REACTIONS(messageId));
|
|
1612
1738
|
return res.reactions;
|
|
1613
1739
|
}
|
|
1614
|
-
// ---- File Upload ----
|
|
1615
|
-
async getUploadPresignUrl(orgId, req) {
|
|
1616
|
-
return this.request("POST", ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
1617
|
-
}
|
|
1618
|
-
async completeUpload(orgId, attachmentId) {
|
|
1619
|
-
return this.request("POST", ENDPOINTS.UPLOAD_COMPLETE(orgId), { attachment_id: attachmentId });
|
|
1620
|
-
}
|
|
1621
|
-
async getFileUrl(id, opts) {
|
|
1622
|
-
return this.request("GET", ENDPOINTS.FILE(id), void 0, opts?.download ? { download: true } : void 0);
|
|
1623
|
-
}
|
|
1624
1740
|
// ---- Approvals ----
|
|
1625
1741
|
async getApproval(id) {
|
|
1626
1742
|
return this.request("GET", ENDPOINTS.APPROVAL(id));
|
|
@@ -1628,8 +1744,14 @@ var init_client = __esm({
|
|
|
1628
1744
|
async requestApproval(orgId, req) {
|
|
1629
1745
|
return this.request("POST", ENDPOINTS.APPROVAL_REQUESTS(orgId), req);
|
|
1630
1746
|
}
|
|
1631
|
-
async decideApproval(id, decision) {
|
|
1632
|
-
|
|
1747
|
+
async decideApproval(id, decision, reason) {
|
|
1748
|
+
if (decision === "approve" && reason?.trim()) {
|
|
1749
|
+
throw new ApiError(400, "Approval reason is only allowed for rejection decisions", "INVALID_DECISION_REASON");
|
|
1750
|
+
}
|
|
1751
|
+
return this.request("POST", ENDPOINTS.APPROVAL_DECIDE(id), {
|
|
1752
|
+
decision,
|
|
1753
|
+
...decision === "reject" && reason !== void 0 ? { reason } : {}
|
|
1754
|
+
});
|
|
1633
1755
|
}
|
|
1634
1756
|
async cancelApproval(id) {
|
|
1635
1757
|
return this.request("POST", ENDPOINTS.APPROVAL_CANCEL(id));
|
|
@@ -2312,28 +2434,6 @@ var init_client = __esm({
|
|
|
2312
2434
|
async setSlackStatus(orgId, input) {
|
|
2313
2435
|
await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
2314
2436
|
}
|
|
2315
|
-
/**
|
|
2316
|
-
* WeChat tier-B read verb (agent-only; internal research preview): the
|
|
2317
|
-
* account's address book — friends/chatrooms enriched with display names,
|
|
2318
|
-
* followed official accounts. Same live gate as the send verb.
|
|
2319
|
-
*/
|
|
2320
|
-
async listWechatContacts(orgId) {
|
|
2321
|
-
return this.request("GET", ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
2322
|
-
}
|
|
2323
|
-
/**
|
|
2324
|
-
* WeChat tier-B read verb (agent-only): the connected account's identity
|
|
2325
|
-
* (wxid / alias / nickName / app id).
|
|
2326
|
-
*/
|
|
2327
|
-
async wechatProfile(orgId) {
|
|
2328
|
-
return this.request("GET", ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
2329
|
-
}
|
|
2330
|
-
/**
|
|
2331
|
-
* WeChat tier-B read verb (agent-only): live online probe + identity +
|
|
2332
|
-
* the platform's offline record.
|
|
2333
|
-
*/
|
|
2334
|
-
async wechatStatus(orgId) {
|
|
2335
|
-
return this.request("GET", ENDPOINTS.WECHAT_STATUS(orgId));
|
|
2336
|
-
}
|
|
2337
2437
|
async listChannelConversations(orgId, connectionId) {
|
|
2338
2438
|
return this.request("GET", ENDPOINTS.CHANNEL_CONNECTION_CONVERSATIONS(orgId, connectionId));
|
|
2339
2439
|
}
|
|
@@ -2484,6 +2584,17 @@ var init_client = __esm({
|
|
|
2484
2584
|
const res = await this.request("GET", ENDPOINTS.WIKI_CHANGESETS(orgId, wikiId));
|
|
2485
2585
|
return res.data.map(normalizeWikiChangeset);
|
|
2486
2586
|
}
|
|
2587
|
+
/** Org-wide changeset listing across every wiki the caller can read.
|
|
2588
|
+
* Server default (no `status`) is the pending set: proposed,
|
|
2589
|
+
* approval_pending, approved. */
|
|
2590
|
+
async getOrgWikiChangesets(orgId, opts) {
|
|
2591
|
+
const params = new URLSearchParams();
|
|
2592
|
+
for (const s of opts?.status ?? [])
|
|
2593
|
+
params.append("status", s);
|
|
2594
|
+
const qs = params.toString();
|
|
2595
|
+
const res = await this.request("GET", `${ENDPOINTS.WIKI_ORG_CHANGESETS(orgId)}${qs ? `?${qs}` : ""}`);
|
|
2596
|
+
return (res.data ?? []).map(normalizeWikiChangeset);
|
|
2597
|
+
}
|
|
2487
2598
|
async getWikiChangeset(orgId, wikiId, changesetId) {
|
|
2488
2599
|
return normalizeWikiChangeset(await this.request("GET", ENDPOINTS.WIKI_CHANGESET(orgId, wikiId, changesetId)));
|
|
2489
2600
|
}
|
|
@@ -2572,6 +2683,35 @@ var init_client = __esm({
|
|
|
2572
2683
|
async getWikiAccessStatus(orgId, wikiId, path23) {
|
|
2573
2684
|
return this.request("GET", ENDPOINTS.WIKI_ACCESS_STATUS(orgId, wikiId), void 0, path23 ? { path: path23 } : void 0);
|
|
2574
2685
|
}
|
|
2686
|
+
// ---- Wiki membership projection (who-can-access, invites, join/leave) ----
|
|
2687
|
+
async getWikiAccessPolicy(orgId, wikiId, path23 = "") {
|
|
2688
|
+
return this.request("GET", ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), void 0, path23 ? { path: path23 } : void 0);
|
|
2689
|
+
}
|
|
2690
|
+
async putWikiAccessPolicy(orgId, wikiId, policy) {
|
|
2691
|
+
return this.request("PUT", ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), policy);
|
|
2692
|
+
}
|
|
2693
|
+
/** Add-only invite (viewer/editor); allowed for managers, and for editors
|
|
2694
|
+
* when the library enables editors_can_invite. */
|
|
2695
|
+
async addWikiMember(orgId, wikiId, subject, role) {
|
|
2696
|
+
await this.request("POST", ENDPOINTS.WIKI_ACCESS_POLICY_MEMBERS(orgId, wikiId), {
|
|
2697
|
+
subject,
|
|
2698
|
+
role
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
/** Join a PUBLIC library as an explicit member (lands at the library's
|
|
2702
|
+
* default role). Restricted libraries answer 409 JOIN_REQUIRES_REQUEST —
|
|
2703
|
+
* go through createWikiAccessRequest instead. */
|
|
2704
|
+
async joinWiki(orgId, wikiId) {
|
|
2705
|
+
await this.request("POST", ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
2706
|
+
}
|
|
2707
|
+
/** Remove the caller's explicit membership (team-granted membership stays). */
|
|
2708
|
+
async leaveWiki(orgId, wikiId) {
|
|
2709
|
+
await this.request("DELETE", ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
2710
|
+
}
|
|
2711
|
+
async getWikiMembers(orgId, wikiId) {
|
|
2712
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_MEMBERS(orgId, wikiId));
|
|
2713
|
+
return res.data ?? [];
|
|
2714
|
+
}
|
|
2575
2715
|
async createWikiAccessRequest(orgId, wikiId, data) {
|
|
2576
2716
|
await this.request("POST", ENDPOINTS.WIKI_ACCESS_REQUESTS(orgId, wikiId), data);
|
|
2577
2717
|
}
|
|
@@ -2619,11 +2759,11 @@ var init_client = __esm({
|
|
|
2619
2759
|
}
|
|
2620
2760
|
// ---- References ----
|
|
2621
2761
|
async resolveRefs(orgId, refs, options) {
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2762
|
+
return this.request("POST", ENDPOINTS.REFS_RESOLVE(orgId), {
|
|
2763
|
+
refs,
|
|
2764
|
+
source_message_id: options?.sourceMessageId,
|
|
2765
|
+
full: options?.full || void 0
|
|
2766
|
+
});
|
|
2627
2767
|
}
|
|
2628
2768
|
async getBacklinks(orgId, params) {
|
|
2629
2769
|
return this.request("GET", ENDPOINTS.REFS_BACKLINKS(orgId), void 0, params);
|
|
@@ -3034,6 +3174,76 @@ var init_client = __esm({
|
|
|
3034
3174
|
async listEdgeProfiles(orgId, edgeId) {
|
|
3035
3175
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, edgeId));
|
|
3036
3176
|
}
|
|
3177
|
+
/** Start one durable Local BYOC Profile operation. Network-unknown callers
|
|
3178
|
+
* must retry with the same key or recover by operation id; a different body
|
|
3179
|
+
* under the same key is rejected. */
|
|
3180
|
+
async createEdgeProfileOperation(orgId, edgeId, request3, idempotencyKey) {
|
|
3181
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE_PROFILE_OPERATIONS(orgId, edgeId), request3, void 0, false, { headers: { "Idempotency-Key": idempotencyKey } });
|
|
3182
|
+
}
|
|
3183
|
+
/** Strong-confirm the exact durable Delete impact. A changed impact returns
|
|
3184
|
+
* PROFILE_DELETE_IMPACT_CHANGED with a replacement receipt in
|
|
3185
|
+
* `ApiError.extras.details.operation`. */
|
|
3186
|
+
async confirmEdgeProfileOperation(orgId, edgeId, operationId, request3) {
|
|
3187
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION_CONFIRM(orgId, edgeId, operationId), request3);
|
|
3188
|
+
}
|
|
3189
|
+
/** Sole read/recovery surface. The server may reconcile an already durable
|
|
3190
|
+
* dispatch/finalization while returning this receipt. */
|
|
3191
|
+
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
3192
|
+
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
3193
|
+
}
|
|
3194
|
+
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
3195
|
+
* with the same idempotency key and body returns the original stable ccn_. */
|
|
3196
|
+
async createBrowserAlias(orgId, request3) {
|
|
3197
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request3);
|
|
3198
|
+
}
|
|
3199
|
+
async listBrowserAliases(orgId) {
|
|
3200
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
3201
|
+
}
|
|
3202
|
+
async getBrowserAlias(orgId, aliasId) {
|
|
3203
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
3204
|
+
}
|
|
3205
|
+
async renameBrowserAlias(orgId, aliasId, request3) {
|
|
3206
|
+
return this.request("PATCH", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request3);
|
|
3207
|
+
}
|
|
3208
|
+
async deleteBrowserAlias(orgId, aliasId, request3) {
|
|
3209
|
+
return this.request("DELETE", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request3);
|
|
3210
|
+
}
|
|
3211
|
+
/** Start one durable readiness check. The key is carried as the standard
|
|
3212
|
+
* Idempotency-Key header; the request body is intentionally empty. */
|
|
3213
|
+
async createBrowserAliasReadinessCheck(orgId, aliasId, request3) {
|
|
3214
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), void 0, void 0, false, { headers: { "Idempotency-Key": request3.idempotency_key } });
|
|
3215
|
+
}
|
|
3216
|
+
/** Sole durable recovery surface for one readiness request. */
|
|
3217
|
+
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
3218
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
3219
|
+
}
|
|
3220
|
+
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
3221
|
+
* intentionally available only on this human-JWT management surface. */
|
|
3222
|
+
async listBrowserAliasGrants(orgId, keyId) {
|
|
3223
|
+
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
3224
|
+
}
|
|
3225
|
+
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
3226
|
+
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
3227
|
+
}
|
|
3228
|
+
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request3) {
|
|
3229
|
+
return this.request("PUT", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request3);
|
|
3230
|
+
}
|
|
3231
|
+
/** Managed-key discovery. The response is already grant-filtered and never
|
|
3232
|
+
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
3233
|
+
async listManagedBrowserAliases(orgId) {
|
|
3234
|
+
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
3235
|
+
}
|
|
3236
|
+
async getManagedBrowserAlias(orgId, aliasName) {
|
|
3237
|
+
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
3238
|
+
}
|
|
3239
|
+
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
3240
|
+
* caller before local validation and is also the sole durable recovery key. */
|
|
3241
|
+
async createBrowserAliasExecution(orgId, request3) {
|
|
3242
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request3);
|
|
3243
|
+
}
|
|
3244
|
+
async getBrowserAliasExecution(orgId, requestId) {
|
|
3245
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
3246
|
+
}
|
|
3037
3247
|
/**
|
|
3038
3248
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
3039
3249
|
* human maintainer or org admin). Sanitized — the password never comes back.
|
|
@@ -3291,6 +3501,13 @@ var init_types = __esm({
|
|
|
3291
3501
|
}
|
|
3292
3502
|
});
|
|
3293
3503
|
|
|
3504
|
+
// ts/sdk/dist/wechat-types.js
|
|
3505
|
+
var init_wechat_types = __esm({
|
|
3506
|
+
"ts/sdk/dist/wechat-types.js"() {
|
|
3507
|
+
"use strict";
|
|
3508
|
+
}
|
|
3509
|
+
});
|
|
3510
|
+
|
|
3294
3511
|
// ts/sdk/dist/ws.js
|
|
3295
3512
|
function isRetryableNetworkError(err) {
|
|
3296
3513
|
return err instanceof Error && err.name === "ApiError" && "status" in err && err.status === 0;
|
|
@@ -3636,15 +3853,25 @@ var init_dist = __esm({
|
|
|
3636
3853
|
"ts/sdk/dist/index.js"() {
|
|
3637
3854
|
"use strict";
|
|
3638
3855
|
init_browser_viewer();
|
|
3856
|
+
init_attachment_types();
|
|
3639
3857
|
init_client();
|
|
3640
3858
|
init_constants();
|
|
3641
3859
|
init_subject();
|
|
3642
3860
|
init_task_label_types();
|
|
3643
3861
|
init_types();
|
|
3862
|
+
init_wechat_types();
|
|
3644
3863
|
init_ws();
|
|
3645
3864
|
}
|
|
3646
3865
|
});
|
|
3647
3866
|
|
|
3867
|
+
// ts/agent-core/dist/fork-state.js
|
|
3868
|
+
var init_fork_state = __esm({
|
|
3869
|
+
"ts/agent-core/dist/fork-state.js"() {
|
|
3870
|
+
"use strict";
|
|
3871
|
+
init_event_format();
|
|
3872
|
+
}
|
|
3873
|
+
});
|
|
3874
|
+
|
|
3648
3875
|
// ts/agent-core/dist/lane-key.js
|
|
3649
3876
|
var init_lane_key = __esm({
|
|
3650
3877
|
"ts/agent-core/dist/lane-key.js"() {
|
|
@@ -30284,6 +30511,7 @@ var init_gateway_base = __esm({
|
|
|
30284
30511
|
init_event_format();
|
|
30285
30512
|
init_channel_capability();
|
|
30286
30513
|
init_dispatch_adapter();
|
|
30514
|
+
init_fork_state();
|
|
30287
30515
|
init_gateway_lane_flow();
|
|
30288
30516
|
init_lane_ledger();
|
|
30289
30517
|
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.5",
|
|
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/openclaw-agent": "1.55.
|
|
36
|
+
"@parall/agent-core": "1.55.5",
|
|
37
|
+
"@parall/sdk": "1.55.5",
|
|
38
|
+
"@parall/claude-agent": "1.55.5",
|
|
39
|
+
"@parall/codex-agent": "1.55.5",
|
|
40
|
+
"@parall/openclaw-agent": "1.55.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.0.0",
|