@parall/daemon 1.86.0 → 1.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/manifest.json +13 -13
- package/bundle/parall-browser-pod.js +195 -20
- package/bundle/parall-channel-exec.js +36 -3
- package/bundle/parall-claude-agent.js +809 -516
- package/bundle/parall-codex-agent.js +319 -87
- package/bundle/parall-daemon.js +318 -23
- package/package.json +6 -6
|
@@ -52155,16 +52155,24 @@ function attachmentEndpoints(apiBase) {
|
|
|
52155
52155
|
|
|
52156
52156
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
52157
52157
|
var clipConnectionEndpoints = {
|
|
52158
|
+
CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
|
|
52159
|
+
EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
|
|
52158
52160
|
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
52159
52161
|
CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
|
|
52160
52162
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
52161
52163
|
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
52162
|
-
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}
|
|
52164
|
+
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
|
|
52165
|
+
/** The caller's own (person-owned) connections; login session only. */
|
|
52166
|
+
ORG_MY_CONNECTIONS: (orgId) => `/api/v1/orgs/${orgId}/me/connections`,
|
|
52167
|
+
ORG_MY_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/me/connections/${connId}`,
|
|
52168
|
+
ORG_MY_CONNECTION_AGENT: (orgId, connId, agentId) => `/api/v1/orgs/${orgId}/me/connections/${connId}/agents/${agentId}`
|
|
52163
52169
|
};
|
|
52164
52170
|
|
|
52165
52171
|
// ts/sdk/dist/edge-endpoints.js
|
|
52166
52172
|
var API_BASE = "/api/v1";
|
|
52167
52173
|
var edgeEndpoints = {
|
|
52174
|
+
ORG_HOSTED_CREATION_GRANT: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}`,
|
|
52175
|
+
ORG_HOSTED_CREATION_EVENTS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}/events`,
|
|
52168
52176
|
ORG_EDGE_PROFILE_ACCESS: (orgId, edgeId, profileName) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/access`,
|
|
52169
52177
|
ORG_EDGE: (orgId) => `${API_BASE}/orgs/${orgId}/edge`,
|
|
52170
52178
|
ORG_EDGE_CONNECT: (orgId) => `${API_BASE}/orgs/${orgId}/edge/connect`,
|
|
@@ -52209,6 +52217,7 @@ function teamInviteEndpoints(apiBase) {
|
|
|
52209
52217
|
TEMPLATE_INVITE_REQUESTS: (orgId, templateId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests`,
|
|
52210
52218
|
TEMPLATE_INVITE_REQUEST_DECIDE: (orgId, templateId, requestId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests/${seg(requestId)}/decide`,
|
|
52211
52219
|
TEAM_INVITE: (token) => `${apiBase}/team-invites/${seg(token)}`,
|
|
52220
|
+
TEAM_INVITE_TEAMS: (token) => `${apiBase}/team-invites/${seg(token)}/teams`,
|
|
52212
52221
|
TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
|
|
52213
52222
|
TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
|
|
52214
52223
|
TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
|
|
@@ -52268,11 +52277,38 @@ function teamEndpoints(apiBase) {
|
|
|
52268
52277
|
};
|
|
52269
52278
|
}
|
|
52270
52279
|
|
|
52280
|
+
// ts/sdk/dist/secret-endpoints.js
|
|
52281
|
+
function secretEndpoints(apiBase) {
|
|
52282
|
+
return {
|
|
52283
|
+
AGENT_SECRETS: (orgId, agentId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
52284
|
+
AGENT_SECRET: (orgId, agentId, secretId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
52285
|
+
ORG_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/secrets`,
|
|
52286
|
+
ORG_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}`,
|
|
52287
|
+
/** The caller's own secrets (login session only, like the rest up to the runtime's). */
|
|
52288
|
+
ORG_MY_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/me/secrets`,
|
|
52289
|
+
ORG_MY_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}`,
|
|
52290
|
+
ORG_MY_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}/grants/${agentId}`,
|
|
52291
|
+
TEAM_SECRETS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets`,
|
|
52292
|
+
TEAM_SECRET: (orgId, teamId, secretId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}`,
|
|
52293
|
+
TEAM_SECRET_GRANT: (orgId, teamId, secretId, agentId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}/grants/${agentId}`,
|
|
52294
|
+
/** `agentId` holds `ownerAgentId`'s own secret. */
|
|
52295
|
+
AGENT_SECRET_GRANT: (orgId, ownerAgentId, secretId, agentId) => `${apiBase}/orgs/${orgId}/agents/${ownerAgentId}/secrets/${secretId}/grants/${agentId}`,
|
|
52296
|
+
ORG_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}/grants/${agentId}`,
|
|
52297
|
+
/** The runtime's own routes, with the agent's key. */
|
|
52298
|
+
AGENT_ME_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets`,
|
|
52299
|
+
AGENT_ME_SECRETS_CATALOG: (orgId, q) => `${apiBase}/orgs/${orgId}/agents/me/secrets/catalog${q ? `?q=${encodeURIComponent(q)}` : ""}`,
|
|
52300
|
+
AGENT_ME_SECRETS_APPLIED: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets/applied`
|
|
52301
|
+
};
|
|
52302
|
+
}
|
|
52303
|
+
|
|
52271
52304
|
// ts/sdk/dist/constants.js
|
|
52272
52305
|
var API_BASE2 = "/api/v1";
|
|
52273
52306
|
var WIKI_BASE = "/wiki/v1";
|
|
52274
52307
|
var CLIP_BASE = "/clip/v1";
|
|
52275
52308
|
var ENDPOINTS = {
|
|
52309
|
+
WIKI_PAGE_SHARES: (orgId, wikiId) => `/wiki/v1/orgs/${orgId}/wikis/${wikiId}/page-shares`,
|
|
52310
|
+
WIKI_PAGE_SHARE_CANDIDATES: (orgId, wikiId) => `/wiki/v1/orgs/${orgId}/wikis/${wikiId}/page-share-candidates`,
|
|
52311
|
+
WIKI_SHARED_PAGE: (shareId) => `/wiki/v1/shared-pages/${encodeURIComponent(shareId)}`,
|
|
52276
52312
|
// Auth
|
|
52277
52313
|
AUTH_REGISTER: `${API_BASE2}/auth/register`,
|
|
52278
52314
|
AUTH_LOGIN: `${API_BASE2}/auth/login`,
|
|
@@ -52348,6 +52384,8 @@ var ENDPOINTS = {
|
|
|
52348
52384
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
52349
52385
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
52350
52386
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
52387
|
+
CHAT_BOOKMARKS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks`,
|
|
52388
|
+
CHAT_BOOKMARK: (orgId, chatId, bookmarkId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks/${bookmarkId}`,
|
|
52351
52389
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
52352
52390
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
52353
52391
|
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
@@ -52390,14 +52428,7 @@ var ENDPOINTS = {
|
|
|
52390
52428
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
52391
52429
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
52392
52430
|
AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
|
|
52393
|
-
|
|
52394
|
-
AGENT_SECRETS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
52395
|
-
AGENT_SECRET: (orgId, agentId, secretId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
52396
|
-
ORG_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/secrets`,
|
|
52397
|
-
ORG_SECRET: (orgId, secretId) => `${API_BASE2}/orgs/${orgId}/secrets/${secretId}`,
|
|
52398
|
-
AGENT_ME_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets`,
|
|
52399
|
-
AGENT_ME_SECRETS_CATALOG: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/catalog`,
|
|
52400
|
-
AGENT_ME_SECRETS_APPLIED: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/applied`,
|
|
52431
|
+
...secretEndpoints(API_BASE2),
|
|
52401
52432
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
52402
52433
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
52403
52434
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -52855,6 +52886,7 @@ var WS_EVENTS = {
|
|
|
52855
52886
|
TYPING_UPDATE: "typing.update",
|
|
52856
52887
|
CHAT_UPDATE: "chat.update",
|
|
52857
52888
|
CHAT_DELETED: "chat.deleted",
|
|
52889
|
+
CHAT_BOOKMARKS_UPDATED: "chat.bookmarks.updated",
|
|
52858
52890
|
APPROVAL_UPDATE: "approval.update",
|
|
52859
52891
|
// deprecated
|
|
52860
52892
|
CARD_UPDATE: "card.update",
|
|
@@ -53687,6 +53719,23 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53687
53719
|
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
53688
53720
|
}
|
|
53689
53721
|
// ---- Clip connections ----
|
|
53722
|
+
/** Missing keys are unknown/hidden; present empty arrays are known empty. */
|
|
53723
|
+
async listClipMCPSummaries(orgId, clipIds) {
|
|
53724
|
+
return this.readDiscoverySummaries(ENDPOINTS.CLIP_MCP_SUMMARIES(orgId), "clip_ids", clipIds);
|
|
53725
|
+
}
|
|
53726
|
+
async listEdgeProfileSummaries(orgId, edgeIds) {
|
|
53727
|
+
return this.readDiscoverySummaries(ENDPOINTS.EDGE_PROFILE_SUMMARIES(orgId), "edge_ids", edgeIds);
|
|
53728
|
+
}
|
|
53729
|
+
async readDiscoverySummaries(endpoint, key, ids) {
|
|
53730
|
+
const data = {};
|
|
53731
|
+
const unique = [...new Set(ids)];
|
|
53732
|
+
for (let offset = 0; offset < unique.length; offset += 500) {
|
|
53733
|
+
const batch = unique.slice(offset, offset + 500);
|
|
53734
|
+
const response = await this.request("GET", `${endpoint}?${key}=${encodeURIComponent(batch.join(","))}`);
|
|
53735
|
+
Object.assign(data, response.data);
|
|
53736
|
+
}
|
|
53737
|
+
return { data };
|
|
53738
|
+
}
|
|
53690
53739
|
async listClipConnections(orgId, clipId) {
|
|
53691
53740
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
53692
53741
|
}
|
|
@@ -53721,10 +53770,42 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53721
53770
|
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
53722
53771
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
53723
53772
|
}
|
|
53773
|
+
// ---- The caller's own connections (login session only) ----
|
|
53774
|
+
/** The caller's person-owned connections, optionally for one connector. */
|
|
53775
|
+
async listMyConnections(orgId, clipId) {
|
|
53776
|
+
return this.request("GET", ENDPOINTS.ORG_MY_CONNECTIONS(orgId), void 0, clipId ? { clip_id: clipId } : void 0);
|
|
53777
|
+
}
|
|
53778
|
+
/** Stop one agent from using one of the caller's connections. */
|
|
53779
|
+
async revokeMyConnectionAgent(orgId, connId, agentId) {
|
|
53780
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION_AGENT(orgId, connId, agentId));
|
|
53781
|
+
}
|
|
53782
|
+
/** Disconnect one of the caller's connections: the connection, its credential and grants go. */
|
|
53783
|
+
async deleteMyConnection(orgId, connId) {
|
|
53784
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
|
|
53785
|
+
}
|
|
53786
|
+
};
|
|
53787
|
+
|
|
53788
|
+
// ts/sdk/dist/hosted-profile-creation.js
|
|
53789
|
+
var HostedProfileCreationClient = class extends ClipConnectionClient {
|
|
53790
|
+
getHostedProfileCreationAccess(orgId, agentId) {
|
|
53791
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId));
|
|
53792
|
+
}
|
|
53793
|
+
changeHostedProfileCreationGrant(orgId, agentId, change, key, revoke = false) {
|
|
53794
|
+
return this.request(revoke ? "DELETE" : "PUT", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId), change, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
53795
|
+
}
|
|
53796
|
+
getHostedProfileCreationEvents(orgId, agentId, before) {
|
|
53797
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_EVENTS(orgId, agentId), void 0, {
|
|
53798
|
+
before
|
|
53799
|
+
});
|
|
53800
|
+
}
|
|
53801
|
+
/** A lost response is recovered with the same name and key, never a new key. */
|
|
53802
|
+
createAuthorizedHostedProfile(orgId, name, key) {
|
|
53803
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), { name, placement: "hosted" }, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
53804
|
+
}
|
|
53724
53805
|
};
|
|
53725
53806
|
|
|
53726
53807
|
// ts/sdk/dist/browser-profile-client.js
|
|
53727
|
-
var BrowserProfileClient = class extends
|
|
53808
|
+
var BrowserProfileClient = class extends HostedProfileCreationClient {
|
|
53728
53809
|
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
53729
53810
|
* callers with a known Profile can execute without this discovery chain. */
|
|
53730
53811
|
async listBrowserUseProfiles(orgId, profileId) {
|
|
@@ -53908,7 +53989,10 @@ var UserPreferencesClient = class extends OrgAccentClient {
|
|
|
53908
53989
|
|
|
53909
53990
|
// ts/sdk/dist/secret-client.js
|
|
53910
53991
|
var AgentSecretClient = class extends UserPreferencesClient {
|
|
53911
|
-
/**
|
|
53992
|
+
/**
|
|
53993
|
+
* One agent's own secrets and those it is given — the org's, a team's,
|
|
53994
|
+
* another user's — each as this agent holds it.
|
|
53995
|
+
*/
|
|
53912
53996
|
async getAgentSecrets(orgId, agentId) {
|
|
53913
53997
|
return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
|
|
53914
53998
|
}
|
|
@@ -53934,13 +54018,58 @@ var AgentSecretClient = class extends UserPreferencesClient {
|
|
|
53934
54018
|
async deleteOrgSecret(orgId, secretId) {
|
|
53935
54019
|
await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
|
|
53936
54020
|
}
|
|
54021
|
+
/** The caller's own secrets and who each is given to. Only that person. */
|
|
54022
|
+
async getMySecrets(orgId) {
|
|
54023
|
+
return this.request("GET", ENDPOINTS.ORG_MY_SECRETS(orgId));
|
|
54024
|
+
}
|
|
54025
|
+
async createMySecret(orgId, data) {
|
|
54026
|
+
return this.request("POST", ENDPOINTS.ORG_MY_SECRETS(orgId), data);
|
|
54027
|
+
}
|
|
54028
|
+
async updateMySecret(orgId, secretId, data) {
|
|
54029
|
+
return this.request("PATCH", ENDPOINTS.ORG_MY_SECRET(orgId, secretId), data);
|
|
54030
|
+
}
|
|
54031
|
+
async deleteMySecret(orgId, secretId) {
|
|
54032
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET(orgId, secretId));
|
|
54033
|
+
}
|
|
54034
|
+
/** A team's secrets and who each is given to: its human managers and org admins. */
|
|
54035
|
+
async getTeamSecrets(orgId, teamId) {
|
|
54036
|
+
return this.request("GET", ENDPOINTS.TEAM_SECRETS(orgId, teamId));
|
|
54037
|
+
}
|
|
54038
|
+
async createTeamSecret(orgId, teamId, data) {
|
|
54039
|
+
return this.request("POST", ENDPOINTS.TEAM_SECRETS(orgId, teamId), data);
|
|
54040
|
+
}
|
|
54041
|
+
async updateTeamSecret(orgId, teamId, secretId, data) {
|
|
54042
|
+
return this.request("PATCH", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId), data);
|
|
54043
|
+
}
|
|
54044
|
+
async deleteTeamSecret(orgId, teamId, secretId) {
|
|
54045
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId));
|
|
54046
|
+
}
|
|
54047
|
+
// Taking one agent off a secret, whether it holds it for long or once. A
|
|
54048
|
+
// grant the agent does not hold answers 404 SECRET_GRANT_NOT_FOUND.
|
|
54049
|
+
async revokeOrgSecretGrant(orgId, secretId, agentId) {
|
|
54050
|
+
await this.request("DELETE", ENDPOINTS.ORG_SECRET_GRANT(orgId, secretId, agentId));
|
|
54051
|
+
}
|
|
54052
|
+
async revokeMySecretGrant(orgId, secretId, agentId) {
|
|
54053
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET_GRANT(orgId, secretId, agentId));
|
|
54054
|
+
}
|
|
54055
|
+
/** Takes `agentId` off one of `ownerAgentId`'s own secrets. */
|
|
54056
|
+
async revokeAgentSecretGrant(orgId, ownerAgentId, secretId, agentId) {
|
|
54057
|
+
await this.request("DELETE", ENDPOINTS.AGENT_SECRET_GRANT(orgId, ownerAgentId, secretId, agentId));
|
|
54058
|
+
}
|
|
54059
|
+
async revokeTeamSecretGrant(orgId, teamId, secretId, agentId) {
|
|
54060
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET_GRANT(orgId, teamId, secretId, agentId));
|
|
54061
|
+
}
|
|
53937
54062
|
/** Agent runtime only: the values to export to the agent's commands. */
|
|
53938
54063
|
async getMyAgentSecrets(orgId) {
|
|
53939
54064
|
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
|
|
53940
54065
|
}
|
|
53941
|
-
/**
|
|
53942
|
-
|
|
53943
|
-
|
|
54066
|
+
/**
|
|
54067
|
+
* Agent only: the names it holds or may ask to use, its pending requests,
|
|
54068
|
+
* and the teams it may ask in. `q` keeps the keys whose name, purpose or
|
|
54069
|
+
* owner's name contains it, ignoring case.
|
|
54070
|
+
*/
|
|
54071
|
+
async getMyAgentSecretCatalog(orgId, q) {
|
|
54072
|
+
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId, q));
|
|
53944
54073
|
}
|
|
53945
54074
|
/** Agent runtime only: confirm the version the commands now run with. */
|
|
53946
54075
|
async ackMyAgentSecrets(orgId, version) {
|
|
@@ -54073,6 +54202,8 @@ var BillingClient = class extends TeamGraphClient {
|
|
|
54073
54202
|
const params = new URLSearchParams();
|
|
54074
54203
|
params.set("start_date", opts.start_date);
|
|
54075
54204
|
params.set("end_date", opts.end_date);
|
|
54205
|
+
if (opts.timezone !== void 0)
|
|
54206
|
+
params.set("timezone", opts.timezone);
|
|
54076
54207
|
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
|
|
54077
54208
|
}
|
|
54078
54209
|
async getUsageHeatmap(orgId, opts, accountId) {
|
|
@@ -54220,8 +54351,16 @@ var TeamInviteClient = class extends BillingClient {
|
|
|
54220
54351
|
async getTeamInvite(token) {
|
|
54221
54352
|
return this.request("GET", ENDPOINTS.TEAM_INVITE(token));
|
|
54222
54353
|
}
|
|
54223
|
-
/**
|
|
54224
|
-
*
|
|
54354
|
+
/** Signed in: the org's Teams to pick from on a launch link, the caller's
|
|
54355
|
+
* own first, each marked with whether it has (or is getting) the squad and
|
|
54356
|
+
* which Team account would pay. */
|
|
54357
|
+
async getTeamInviteTeams(token) {
|
|
54358
|
+
const res = await this.request("GET", ENDPOINTS.TEAM_INVITE_TEAMS(token));
|
|
54359
|
+
return res.teams ?? [];
|
|
54360
|
+
}
|
|
54361
|
+
/** Ask for a team through a link: pick an existing one (`team_id`) or name
|
|
54362
|
+
* a new one. Submitting again returns the caller's open request instead of
|
|
54363
|
+
* making another. */
|
|
54225
54364
|
async createTeamInviteRequest(token, body) {
|
|
54226
54365
|
return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUESTS(token), body);
|
|
54227
54366
|
}
|
|
@@ -54244,6 +54383,42 @@ function errorCode(err) {
|
|
|
54244
54383
|
return typeof err === "object" && err !== null ? err.code : void 0;
|
|
54245
54384
|
}
|
|
54246
54385
|
|
|
54386
|
+
// ts/sdk/dist/wiki-page-share-client.js
|
|
54387
|
+
var WikiPageShareClient = class extends TeamInviteClient {
|
|
54388
|
+
async listWikiPageShares(orgId, wikiId, path15) {
|
|
54389
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), void 0, { path: path15 });
|
|
54390
|
+
return res.data;
|
|
54391
|
+
}
|
|
54392
|
+
async createWikiPageShare(orgId, wikiId, path15, userId) {
|
|
54393
|
+
return this.request("POST", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), { user_id: userId }, { path: path15 });
|
|
54394
|
+
}
|
|
54395
|
+
async revokeWikiPageShare(orgId, wikiId, path15, shareId) {
|
|
54396
|
+
return this.request("DELETE", `${ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId)}/${encodeURIComponent(shareId)}`, void 0, { path: path15 });
|
|
54397
|
+
}
|
|
54398
|
+
async listWikiShareCandidates(orgId, wikiId, path15, q = "") {
|
|
54399
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARE_CANDIDATES(orgId, wikiId), void 0, { path: path15, q });
|
|
54400
|
+
return res.data;
|
|
54401
|
+
}
|
|
54402
|
+
/** No path or ref override: the server always reads the shared page on main. */
|
|
54403
|
+
async getSharedWikiPage(shareId, opts) {
|
|
54404
|
+
return this.request("GET", ENDPOINTS.WIKI_SHARED_PAGE(shareId), void 0, void 0, false, opts);
|
|
54405
|
+
}
|
|
54406
|
+
};
|
|
54407
|
+
|
|
54408
|
+
// ts/sdk/dist/chat-bookmarks-client.js
|
|
54409
|
+
var ChatBookmarksClient = class extends WikiPageShareClient {
|
|
54410
|
+
async getChatBookmarks(orgId, chatId) {
|
|
54411
|
+
return this.request("GET", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId));
|
|
54412
|
+
}
|
|
54413
|
+
/** `ref` is a `prll://` reference or an http(s) URL. */
|
|
54414
|
+
async addChatBookmark(orgId, chatId, ref) {
|
|
54415
|
+
return this.request("POST", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId), { ref });
|
|
54416
|
+
}
|
|
54417
|
+
async removeChatBookmark(orgId, chatId, bookmarkId) {
|
|
54418
|
+
return this.request("DELETE", ENDPOINTS.CHAT_BOOKMARK(orgId, chatId, bookmarkId));
|
|
54419
|
+
}
|
|
54420
|
+
};
|
|
54421
|
+
|
|
54247
54422
|
// ts/sdk/dist/wiki-changeset.js
|
|
54248
54423
|
function normalizeWikiChangeset(changeset) {
|
|
54249
54424
|
return {
|
|
@@ -54279,7 +54454,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
54279
54454
|
detectedRuntimes
|
|
54280
54455
|
};
|
|
54281
54456
|
}
|
|
54282
|
-
var ParallClient = class _ParallClient extends
|
|
54457
|
+
var ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
54283
54458
|
baseUrl;
|
|
54284
54459
|
wikiBaseUrl;
|
|
54285
54460
|
token;
|
|
@@ -56575,7 +56750,7 @@ var ParallClient = class _ParallClient extends TeamInviteClient {
|
|
|
56575
56750
|
return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
56576
56751
|
}
|
|
56577
56752
|
/** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
|
|
56578
|
-
* org-shared Cloud Profile
|
|
56753
|
+
* org-shared Cloud Profile; Agents need a separate creation grant and key. */
|
|
56579
56754
|
async registerEdgeDevice(orgId, input, options) {
|
|
56580
56755
|
const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
|
|
56581
56756
|
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
|
|
@@ -56820,10 +56995,11 @@ var ParallClient = class _ParallClient extends TeamInviteClient {
|
|
|
56820
56995
|
async listClipMCPConnections(orgId, clipId) {
|
|
56821
56996
|
return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
|
|
56822
56997
|
}
|
|
56823
|
-
/** Create one MCP credential slot and its connection. */
|
|
56824
56998
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
56825
56999
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
56826
|
-
|
|
57000
|
+
// A card may start OAuth: allow discovery (30s) and persistence like
|
|
57001
|
+
// createClipMCPOAuthConnection.
|
|
57002
|
+
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
56827
57003
|
});
|
|
56828
57004
|
}
|
|
56829
57005
|
/** Delete one MCP config and its paired connection. */
|
|
@@ -57691,6 +57867,11 @@ var VENDOR_CLIS = [
|
|
|
57691
57867
|
channel: "feishu",
|
|
57692
57868
|
command: "lark-cli",
|
|
57693
57869
|
install: "npm i -g @larksuite/cli && npx skills add larksuite/cli -y -g",
|
|
57870
|
+
// Before 1.0.97, im +messages-send / +messages-reply took `--markdown
|
|
57871
|
+
// @file` (the form the official skill teaches) as the literal text
|
|
57872
|
+
// "@file", sent it and reported success
|
|
57873
|
+
// (https://github.com/larksuite/cli/pull/2760).
|
|
57874
|
+
minVersion: "1.0.97",
|
|
57694
57875
|
ownedEnv: [
|
|
57695
57876
|
// injected
|
|
57696
57877
|
"LARKSUITE_CLI_APP_ID",
|
|
@@ -63776,11 +63957,14 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
|
|
|
63776
63957
|
|
|
63777
63958
|
\u8FD0\u884C \`parall browser profiles --json\`\uFF0C\u4ECE\u53EF\u8BBF\u95EE\u5217\u8868\u6309\u8D26\u53F7\u540D\u79F0\u9009\u62E9 Profile\u3002
|
|
63778
63959
|
\u591A\u4E2A\u8D26\u53F7\u65E0\u6CD5\u533A\u5206\u65F6\u95EE\u7528\u6237\u3002\u5217\u8868\u8868\u793A\u4F60\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u4E0D\u4FDD\u8BC1\u7F51\u7AD9\u5DF2\u767B\u5F55\u6216\u6BCF\u79CD\u52A8\u4F5C\u90FD\u83B7\u6388\u6743\u3002
|
|
63779
|
-
\u6CA1\u6709\u53EF\u7528 Profile \u65F6\uFF0C\
|
|
63960
|
+
\u6CA1\u6709\u53EF\u7528 Profile \u65F6\uFF0C\u5148\u7528 \`parall cloud-profile access\` \u67E5\u8BE2\u81EA\u5DF1\u7684\u521B\u5EFA\u6388\u6743\uFF1B\u4EC5\u5728\u72B6\u6001\u4E3A active\u3001\u5269\u4F59\u6570\u91CF\u8DB3\u591F\u4E14\u4EFB\u52A1\u9700\u8981\u65B0\u7684\u7A7A\u767D hosted Profile\u65F6\uFF0C\u7528 \`parall cloud-profile create <name>\`\u3002
|
|
63961
|
+
\u521B\u5EFA\u56DE\u4F20\u7684 \`profile_id\` \u624D\u662F\u540E\u7EED \`--profile\` \u7684\u503C\uFF1B\u4E0D\u8981\u628A\u8BBE\u5907 ID \u5F53\u4F5C Profile ID\u3002
|
|
63962
|
+
\u65E0\u6709\u6548\u521B\u5EFA\u6388\u6743\u6216\u4EFB\u52A1\u9700\u8981\u5DF2\u6709\u767B\u5F55\u8D26\u53F7\u65F6\uFF0C\u95EE\u7528\u6237\uFF1A
|
|
63780
63963
|
- **\u7528\u6237\u6709 Desktop \u4F46\u4F60\u6CA1\u6743\u9650**\uFF1A\u8BF7\u7528\u6237\u544A\u8BC9\u4F60 Profile ID\uFF08\`ebp_...\`\uFF0C\u5728 Desktop\u300C\u8FDE\u63A5\u5668\u300D\u9875\u7684 Devices \u91CC\u53EF\u4EE5\u770B\u5230\uFF09\uFF0C\u7136\u540E\u901A\u8FC7\u5BA1\u6279\u5361\u8BF7\u6C42\u6388\u6743\u2014\u2014
|
|
63781
63964
|
\`parall approvals request --action browser.profile.authorize --resource prll://<ebp_id> --title "Request browser profile access" --chat prll://<cht_id>\`
|
|
63782
63965
|
\u4EBA approve \u540E\u4F60\u81EA\u52A8\u83B7\u5F97\u8BE5 Profile \u7684\u5168\u90E8\u64CD\u4F5C\u6743\u9650\u3002
|
|
63783
|
-
- **\
|
|
63966
|
+
- **\u9700\u8981\u81EA\u5EFA\u7A7A\u767D hosted Profile**\uFF1A\u8BF7\u771F\u4EBA\u7EC4\u7EC7 owner/admin \u7ED9\u4F60\u7684 Agent \`usr_\` \u6388\u4E88\u6709\u6570\u91CF\u548C\u5230\u671F\u7684\u521B\u5EFA\u6743\uFF1B\u5DF2\u5B58\u5728 Profile \u7684\u5BA1\u6279\u5361\u4E0D\u4F1A\u6388\u4E88\u521B\u5EFA\u6743\u3002
|
|
63967
|
+
- **\u9700\u8981\u672C\u673A\u6D4F\u89C8\u5668\u4E14\u7528\u6237\u6CA1\u6709 Desktop**\uFF1A\u8BF7\u7528\u6237\u5B89\u88C5\u5E76\u6253\u5F00 Parall Desktop\uFF0C\u518D\u660E\u786E\u6388\u4E88\u5BF9\u5E94 Profile \u8BBF\u95EE\u6743\uFF1B\u5B89\u88C5\u672C\u8EAB\u4E0D\u4EE3\u8868\u4F60\u5DF2\u6709\u6743\u9650\u3002
|
|
63784
63968
|
\u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
|
|
63785
63969
|
\u7528\u6237\u5DF2\u7ED9 Profile ID \u65F6\u53EF\u76F4\u63A5\u4F7F\u7528\u3002\u6BCF\u6B21\u547D\u4EE4\u90FD\u5E26 \`--profile\`\uFF0C\u4E0D\u731C\u9ED8\u8BA4\u8D26\u53F7\u3002
|
|
63786
63970
|
|
|
@@ -63788,6 +63972,19 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
|
|
|
63788
63972
|
\`profiles\` \u548C \`operation get\` \u514D\u8D39\u3002\u6309\u7528\u6237\u6388\u6743\u7684\u6B21\u6570\u548C\u9884\u7B97\u6267\u884C\uFF1B\u672A\u7ED9\u9884\u7B97\u65F6\u5148\u8BF4\u660E\u9884\u8BA1\u8D39\u7528\u3002
|
|
63789
63973
|
\u80FD\u4ECE\u5DF2\u6709\u7ED3\u679C\u56DE\u7B54\u5C31\u4E0D\u8981\u518D\u8C03\u7528\uFF1B\u4E0D\u8981\u5FAA\u73AF\u622A\u56FE\u3001\u67E5\u8BE2 tabs \u6216\u6362\u52A8\u4F5C\u8BD5\u63A2\u3002
|
|
63790
63974
|
|
|
63975
|
+
## \u81EA\u5EFA Profile \u7684\u8FB9\u754C\u4E0E\u6062\u590D
|
|
63976
|
+
|
|
63977
|
+
\u521B\u5EFA\u662F\u514D\u8D39\u7684\uFF0C\u4E5F\u4E0D\u542F\u52A8\u6D4F\u89C8\u5668\uFF1B\u540E\u7EED Browser Use \u4ECD\u6309\u539F\u89C4\u5219\u6536\u8D39\uFF0C\u521B\u5EFA\u6B21\u6570\u4E0D\u662F\u6267\u884C\u8D39\u7528\u9884\u7B97\u3002
|
|
63978
|
+
\u65B0\u5EFA\u4E3A\u7A7A\u767D\u6D4F\u89C8\u5668\uFF0C\u9ED8\u8BA4\u4E0D\u516C\u5F00\uFF0C\u53EA\u7ED9\u521B\u5EFA Agent \u5B8C\u6574 Browser Use \u6743\u9650\uFF1B\u7EF4\u62A4\u4EBA\u4E3A\u6388\u4E88\u6388\u6743\u7684\u771F\u4EBA\u3002
|
|
63979
|
+
\u4EE3\u7406\u51ED\u636E\u3001\u7F51\u7AD9\u767B\u5F55\u3001cookie \u548C\u73B0\u6709\u767B\u5F55\u6001\u9ED8\u8BA4\u4E0D\u53EF\u89E6\u78B0\uFF1B\u9700\u8981\u65F6\u8BF7\u4EBA\u5904\u7406\uFF0C\u4E0D\u81EA\u884C\u8BFB\u53D6\u3001\u514B\u9686\u6216\u914D\u7F6E\u3002
|
|
63980
|
+
\u5220\u9664\u4E0D\u8FD4\u521B\u5EFA\u540D\u989D\uFF1B\u6388\u6743\u5230\u671F\u6216\u64A4\u9500\u53EA\u505C\u6B62\u65B0\u5EFA\uFF0C\u5DF2\u6709\u6D4F\u89C8\u5668\u53CA\u72EC\u7ACB\u4F7F\u7528\u6743\u4FDD\u7559\u3002
|
|
63981
|
+
|
|
63982
|
+
- \`HOSTED_CREATION_NOT_ALLOWED\` / \`HOSTED_CREATION_LIMIT\`\uFF1A\u505C\u6B62\u65B0\u5EFA\uFF0C\u8BF7\u771F\u4EBA\u7BA1\u7406\u5458\u67E5\u770B\u6216\u4FEE\u6539\u6388\u6743\uFF1B\u4E0D\u6362 key\u3001\u8EAB\u4EFD\u6216\u5220\u8D44\u6E90\u7ED5\u8FC7\u3002
|
|
63983
|
+
- \`HOSTED_CREATION_CONFLICT\`\uFF1A\u7BA1\u7406\u53D8\u66F4\u5148\u91CD\u65B0\u8BFB\u53D6\u6388\u6743\uFF1B\u521B\u5EFA\u8BF7\u6C42\u4FDD\u7559\u539F\u53C2\u6570\u548C\u6062\u590D\u6587\u4EF6\uFF0C\u4E0D\u80FD\u6539\u540D\u6362 key \u91CD\u8BD5\u3002
|
|
63984
|
+
- \u521B\u5EFA\u6216\u7BA1\u7406\u547D\u4EE4\u62A5\u7ED3\u679C\u672A\u77E5\u65F6\uFF0C\u53EA\u7528\u8F93\u51FA\u4E2D\u7684 \`parall cloud-profile recover <file>\` \u6062\u590D\u539F\u8BF7\u6C42\uFF1B\u4E0D\u91CD\u65B0\u8FD0\u884C create/grant \u751F\u6210\u66FF\u4EE3\u8BF7\u6C42\u3002
|
|
63985
|
+
- \u6062\u590D\u7ED3\u679C \`deleted: true\` \u8868\u793A\u539F Profile \u5DF2\u5220\u9664\uFF0C\u4E0D\u80FD\u627F\u8BFA\u53EF\u7528\uFF0C\u4E5F\u4E0D\u80FD\u901A\u8FC7\u6062\u590D\u53E6\u5EFA\u4E00\u4E2A Profile\u3002
|
|
63986
|
+
- \u670D\u52A1\u7AEF\u6CA1\u6709\u6B64\u547D\u4EE4\u6216\u529F\u80FD\u4E0D\u53EF\u7528\u65F6\uFF0C\u5982\u5B9E\u62A5\u544A\u80FD\u529B\u4E0D\u53EF\u7528\uFF0C\u6CBF\u73B0\u6709 Profile \u6388\u6743\u8DEF\u5F84\u5904\u7406\u3002
|
|
63987
|
+
|
|
63791
63988
|
## \u793A\u4F8B\uFF1A\u6253\u5F00\u9875\u9762\uFF0C\u8BFB\u53D6\u6807\u9898\uFF0C\u7559\u7ED9\u7528\u6237\u67E5\u770B
|
|
63792
63989
|
|
|
63793
63990
|
\u4E0B\u9762\u5C16\u62EC\u53F7\u987B\u66FF\u6362\u4E3A\u5B9E\u9645\u8FD4\u56DE\u503C\uFF0C\u4E0D\u8981\u7167\u6284\u3002
|
|
@@ -63924,6 +64121,16 @@ parall messages list prll://cht_xxx # Read chat message history
|
|
|
63924
64121
|
parall messages list prll://cht_xxx --since 2026-01-01 # Only messages at/after a date (RFC3339 or YYYY-MM-DD)
|
|
63925
64122
|
\`\`\`
|
|
63926
64123
|
|
|
64124
|
+
A chat's **bookmarks** are the references pinned to its top, which every member
|
|
64125
|
+
sees in the bookmark bar above the messages. Use them when someone asks you to
|
|
64126
|
+
bookmark or pin something in a chat, or asks what is bookmarked there:
|
|
64127
|
+
|
|
64128
|
+
\`\`\`bash
|
|
64129
|
+
parall chats bookmarks list prll://cht_xxx
|
|
64130
|
+
parall chats bookmarks add prll://cht_xxx prll://tsk_xxx # any prll:// reference, or an https:// link
|
|
64131
|
+
parall chats bookmarks remove prll://cht_xxx prll://tsk_xxx
|
|
64132
|
+
\`\`\`
|
|
64133
|
+
|
|
63927
64134
|
## Org-Context Search
|
|
63928
64135
|
|
|
63929
64136
|
Before deciding or starting non-trivial work, search the org's real history \u2014
|
|
@@ -65065,7 +65272,7 @@ bound to the connector, and the connection is what your access is granted on.
|
|
|
65065
65272
|
\u6216\u628A\u8C03\u7528\u8005\u52A0\u5165\u8FDE\u63A5\u5668\u540D\u5355\uFF1Bagent \u672C\u7248\u4ECD\u8FD4\u56DE\u4E0B\u8FF0\u4E24\u4E2A\u9519\u8BEF\u7801\u3002
|
|
65066
65273
|
- \`CLIP_AGENT_NOT_ALLOWED\` / \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\` mean a
|
|
65067
65274
|
human has restricted who may run this connector (or through which account);
|
|
65068
|
-
|
|
65275
|
+
you cannot grant it to yourself \u2014 ask on a card (next section).
|
|
65069
65276
|
- Waiting on a cloud profile is handled by the CLI: \`EDGE_ACTIVATING\` (cold
|
|
65070
65277
|
start), \`EDGE_BUSY\` (another exec is running) and
|
|
65071
65278
|
\`EDGE_CONCURRENCY_LIMIT\` (org at capacity) are all guaranteed-unexecuted
|
|
@@ -65074,6 +65281,24 @@ bound to the connector, and the connection is what your access is granted on.
|
|
|
65074
65281
|
fails already spent that budget \u2014 report the error, do not blind-retry in
|
|
65075
65282
|
a loop.
|
|
65076
65283
|
|
|
65284
|
+
## Ask a person to connect
|
|
65285
|
+
|
|
65286
|
+
When the task needs a connector you cannot run yet \u2014 it is not installed
|
|
65287
|
+
(find it with \`parall connector search <text>\`), you have no connection to it
|
|
65288
|
+
(\`CONNECTION_NOT_FOUND\`), you are not allowed through one
|
|
65289
|
+
(\`CLIP_AGENT_NOT_ALLOWED\`, \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\`) or it needs
|
|
65290
|
+
signing in again (\`MCP_OAUTH_REAUTH_REQUIRED\`) \u2014 post a card:
|
|
65291
|
+
|
|
65292
|
+
\`\`\`bash
|
|
65293
|
+
parall connector connect <connector> --reason "<what you need it for>" # the person's own account (mail, calendar, personal tools)
|
|
65294
|
+
parall connector connect <connector> --reason "<what you need it for>" --from org # a company-shared account
|
|
65295
|
+
\`\`\`
|
|
65296
|
+
|
|
65297
|
+
The card installs the connector and creates the connection \u2014 don't send the
|
|
65298
|
+
person to the Connectors page or install it yourself. Relay the sentence the
|
|
65299
|
+
command prints, carry on with what doesn't need the connector, and you are
|
|
65300
|
+
woken with the result. Use a person's account only for that person's requests.
|
|
65301
|
+
|
|
65077
65302
|
## MCP connectors (remote tool servers)
|
|
65078
65303
|
|
|
65079
65304
|
A connection with target \`mcp\` routes to a remote MCP server; the command
|
|
@@ -65091,7 +65316,7 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65091
65316
|
|
|
65092
65317
|
- \`connector connections\` marks MCP rows with their auth mode, \`credential_set\`
|
|
65093
65318
|
/ \`oauth_status\` and \`tool_count\` \u2014 a \`needs_reauth\` or credential-less
|
|
65094
|
-
row will refuse exec until
|
|
65319
|
+
row will refuse exec until someone signs in again; ask on a card (above).
|
|
65095
65320
|
- \`--connection\` is REQUIRED to exec an MCP connection, exactly like every
|
|
65096
65321
|
other target. The alias tells you WHICH account you act as \u2014 always name
|
|
65097
65322
|
it.
|
|
@@ -65108,17 +65333,16 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65108
65333
|
or MCP is off for this deployment \u2014 ask an org admin; retrying won't help.
|
|
65109
65334
|
- \`MCP_OAUTH_REAUTH_REQUIRED\` = that connection's authorization is no longer
|
|
65110
65335
|
valid (revoked or expired at the provider, or disconnected) \u2014 nothing ran and
|
|
65111
|
-
retrying won't help.
|
|
65112
|
-
|
|
65113
|
-
|
|
65114
|
-
usually also get an Inbox alert, but don't rely on it \u2014 still tell the user
|
|
65115
|
-
who needs to act.
|
|
65336
|
+
retrying won't help. Ask on a card (above; \`--from org\` for a
|
|
65337
|
+
company-shared account). For a person's own account the card makes a new
|
|
65338
|
+
connection: use the \`connection_id\` from the decision, not the old one.
|
|
65116
65339
|
- \`MCP_AUTH_FAILED\` = the MCP server refused this request with this
|
|
65117
65340
|
connection's credentials \u2014 nothing ran; don't retry as-is.
|
|
65118
65341
|
\`details.reason\` \`insufficient_scope\`: this account may not do that \u2014 use
|
|
65119
65342
|
a connection with the needed access, or ask an org admin to review its
|
|
65120
65343
|
permissions. \`credential_rejected\`: the saved credential is no longer
|
|
65121
|
-
accepted \u2014 an org admin must update it.
|
|
65344
|
+
accepted \u2014 an org admin must update it. On a person's own account the
|
|
65345
|
+
message says to ask that person on a card instead; follow the message.
|
|
65122
65346
|
- \`MCP_SERVER_UNREACHABLE\` = the MCP server (or its OAuth token endpoint)
|
|
65123
65347
|
could not be reached \u2014 nothing ran; safe to retry after a short wait.
|
|
65124
65348
|
- \`OUTCOME_UNKNOWN\` follows the rule below: dispatched and MAY HAVE
|
|
@@ -65132,11 +65356,11 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65132
65356
|
|
|
65133
65357
|
## Behavior rules
|
|
65134
65358
|
|
|
65135
|
-
- An authorization error
|
|
65136
|
-
\`CLIP_AGENT_CONNECTION_NOT_ALLOWED
|
|
65137
|
-
|
|
65138
|
-
an org admin to grant the
|
|
65139
|
-
|
|
65359
|
+
- An authorization error is a fail-fast \u2014 do not retry or work around it.
|
|
65360
|
+
\`CLIP_AGENT_NOT_ALLOWED\` / \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\`: ask on a
|
|
65361
|
+
card with \`parall connector connect\`. \`CONNECTION_NOT_ALLOWED\`,
|
|
65362
|
+
\`PROFILE_NOT_ALLOWED\`, \`FORBIDDEN\`: ask an org admin to grant the
|
|
65363
|
+
connector or the connection.
|
|
65140
65364
|
- If the target device is offline or the call times out, report that
|
|
65141
65365
|
plainly; do not queue, and never fabricate a result for a run that errored.
|
|
65142
65366
|
- **\`OUTCOME_UNKNOWN\` is never retryable.** It means the command was
|
|
@@ -65558,7 +65782,7 @@ var SKILLS = [
|
|
|
65558
65782
|
},
|
|
65559
65783
|
{
|
|
65560
65784
|
name: "parall-platform",
|
|
65561
|
-
description: "Parall platform queries and lightweight agent provisioning: list org members, agents, chats, read message history, watch/unwatch threads, check identity, create another agent, walk the prll:// reference graph (resolve URIs, backlinks, multi-hop graph), or put a chart / interactive visual into a message (html-embed blocks). Use when: user asks about org members, who's online, chat history, agent list, creating an agent, identity/auth questions, you want to follow or mute a thread (e.g. after `Thread Reply` wake-ups), you need to find what an entity is connected to / who references it, or a chart, comparison or small interactive tool would help in your reply.",
|
|
65785
|
+
description: "Parall platform queries and lightweight agent provisioning: list org members, agents, chats, read message history, list/add/remove a chat's bookmarks (references pinned to the top of a chat), watch/unwatch threads, check identity, create another agent, walk the prll:// reference graph (resolve URIs, backlinks, multi-hop graph), or put a chart / interactive visual into a message (html-embed blocks). Use when: user asks about org members, who's online, chat history, bookmarking or pinning something in a chat, agent list, creating an agent, identity/auth questions, you want to follow or mute a thread (e.g. after `Thread Reply` wake-ups), you need to find what an entity is connected to / who references it, or a chart, comparison or small interactive tool would help in your reply.",
|
|
65562
65786
|
content: PARALL_PLATFORM_SKILL
|
|
65563
65787
|
},
|
|
65564
65788
|
{
|
|
@@ -65583,7 +65807,7 @@ var SKILLS = [
|
|
|
65583
65807
|
},
|
|
65584
65808
|
{
|
|
65585
65809
|
name: "parall-clips",
|
|
65586
|
-
description: "Parall connector operations (connectors were formerly called clips): list installed connectors and their connections, inspect connector commands/tools, execute connector commands on an explicit connection. Use when: the task requires external capabilities (GitHub, web search, etc.), user asks about available tools/clips, or you need to call a connector command. For WRITING a new connector, use parall-clip-authoring instead.",
|
|
65810
|
+
description: "Parall connector operations (connectors were formerly called clips): list installed connectors and their connections, inspect connector commands/tools, execute connector commands on an explicit connection, and ask a person on a card to connect an account when you cannot run one yet. Use when: the task requires external capabilities (GitHub, web search, etc.), user asks about available tools/clips, or you need to call a connector command. For WRITING a new connector, use parall-clip-authoring instead.",
|
|
65587
65811
|
content: PARALL_CLIPS_SKILL
|
|
65588
65812
|
},
|
|
65589
65813
|
{
|
|
@@ -66696,6 +66920,10 @@ function parseContentLength(value) {
|
|
|
66696
66920
|
import { execSync as execSync2, spawn } from "node:child_process";
|
|
66697
66921
|
import * as fs8 from "node:fs";
|
|
66698
66922
|
var IS_WIN32 = process.platform === "win32";
|
|
66923
|
+
function appServerArgs(opts) {
|
|
66924
|
+
const override = opts.useParallProvider ? ["-c", "model_provider=parall"] : [];
|
|
66925
|
+
return ["app-server", ...override, "--listen", "stdio://"];
|
|
66926
|
+
}
|
|
66699
66927
|
function quoteWin32Arg(arg) {
|
|
66700
66928
|
if (!/[\s"&|^<>()]/.test(arg))
|
|
66701
66929
|
return arg;
|
|
@@ -68257,6 +68485,23 @@ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabil
|
|
|
68257
68485
|
}
|
|
68258
68486
|
return Object.keys(config).length > 0 ? config : void 0;
|
|
68259
68487
|
}
|
|
68488
|
+
function buildThreadOpenParams(opts, threadConfig) {
|
|
68489
|
+
const commonParams = {
|
|
68490
|
+
approvalPolicy: normalizeApprovalPolicy(opts.approvalPolicy)
|
|
68491
|
+
};
|
|
68492
|
+
if (opts.useParallProvider) {
|
|
68493
|
+
commonParams.modelProvider = "parall";
|
|
68494
|
+
}
|
|
68495
|
+
commonParams.sandbox = normalizeSandbox(opts.sandbox);
|
|
68496
|
+
if (opts.developerInstructions) {
|
|
68497
|
+
commonParams.developerInstructions = opts.developerInstructions;
|
|
68498
|
+
}
|
|
68499
|
+
if (opts.model)
|
|
68500
|
+
commonParams.model = opts.model;
|
|
68501
|
+
if (threadConfig)
|
|
68502
|
+
commonParams.config = threadConfig;
|
|
68503
|
+
return commonParams;
|
|
68504
|
+
}
|
|
68260
68505
|
|
|
68261
68506
|
// ts/codex-agent/dist/thread-writer.js
|
|
68262
68507
|
function isThreadWriterConflict(err) {
|
|
@@ -68316,6 +68561,7 @@ function errToString5(err) {
|
|
|
68316
68561
|
}
|
|
68317
68562
|
|
|
68318
68563
|
// ts/codex-agent/dist/dispatch.js
|
|
68564
|
+
var NEW_SESSION_ENDED = "Codex turn ended by New Session";
|
|
68319
68565
|
var CodexAppServerAdapter = class {
|
|
68320
68566
|
opts;
|
|
68321
68567
|
inputLifecycleMode = "explicit";
|
|
@@ -68341,6 +68587,8 @@ var CodexAppServerAdapter = class {
|
|
|
68341
68587
|
* zombie dies: subprocess teardown.
|
|
68342
68588
|
*/
|
|
68343
68589
|
mainLaneQuarantined = false;
|
|
68590
|
+
/** Bumped by New Session: a dispatch still opening across it never starts its turn. */
|
|
68591
|
+
sessionEpoch = 0;
|
|
68344
68592
|
notificationTaps = /* @__PURE__ */ new Set();
|
|
68345
68593
|
instructionsRefresher;
|
|
68346
68594
|
stopping = false;
|
|
@@ -68432,7 +68680,7 @@ var CodexAppServerAdapter = class {
|
|
|
68432
68680
|
/**
|
|
68433
68681
|
* Replace the variables the agent's shell commands receive. They ride
|
|
68434
68682
|
* `shell_environment_policy.set` in thread-open params, and a thread that
|
|
68435
|
-
* is already open ignores a changed policy (probes/shell-env-0.
|
|
68683
|
+
* is already open ignores a changed policy (probes/shell-env-0.166.0.md), so
|
|
68436
68684
|
* a running app-server is restarted at the next safe point. A thread opened
|
|
68437
68685
|
* after this call — a fork — carries the new set without that restart (same
|
|
68438
68686
|
* record, S5). Re-sending the version already held changes nothing.
|
|
@@ -68575,6 +68823,7 @@ var CodexAppServerAdapter = class {
|
|
|
68575
68823
|
this.requestProcessRestart();
|
|
68576
68824
|
}
|
|
68577
68825
|
const log2 = this.opts.log ?? context2.log;
|
|
68826
|
+
const epoch = this.sessionEpoch;
|
|
68578
68827
|
let client;
|
|
68579
68828
|
let threadId;
|
|
68580
68829
|
let reconcileStalled = false;
|
|
@@ -68596,6 +68845,10 @@ var CodexAppServerAdapter = class {
|
|
|
68596
68845
|
}
|
|
68597
68846
|
break;
|
|
68598
68847
|
}
|
|
68848
|
+
if (epoch !== this.sessionEpoch) {
|
|
68849
|
+
yield { type: "error", message: NEW_SESSION_ENDED };
|
|
68850
|
+
return;
|
|
68851
|
+
}
|
|
68599
68852
|
const sink = new TurnSink(noteActivity);
|
|
68600
68853
|
this.setActiveTurn(threadId, sink, log2);
|
|
68601
68854
|
const groupKey = randomUUID7();
|
|
@@ -68821,26 +69074,8 @@ var CodexAppServerAdapter = class {
|
|
|
68821
69074
|
// only the display turns from the JSON-RPC response. Large persisted
|
|
68822
69075
|
// threads can otherwise produce an equally large one-line payload.
|
|
68823
69076
|
excludeTurns: true,
|
|
68824
|
-
|
|
68825
|
-
// does NOT inherit them from the parent thread — omitting them falls
|
|
68826
|
-
// back to codex defaults (on-request approval, workspace-write), and an
|
|
68827
|
-
// escalated command then emits an approval request the headless bridge
|
|
68828
|
-
// can only deny, killing the fork's ability to run privileged commands
|
|
68829
|
-
// the main session runs freely.
|
|
68830
|
-
approvalPolicy: normalizeApprovalPolicy(this.opts.approvalPolicy),
|
|
68831
|
-
sandbox: normalizeSandbox(this.opts.sandbox)
|
|
69077
|
+
...buildThreadOpenParams(this.opts, this.threadConfigOverrides())
|
|
68832
69078
|
};
|
|
68833
|
-
if (this.opts.useParallProvider) {
|
|
68834
|
-
forkParams.modelProvider = "parall";
|
|
68835
|
-
}
|
|
68836
|
-
if (this.opts.developerInstructions) {
|
|
68837
|
-
forkParams.developerInstructions = this.opts.developerInstructions;
|
|
68838
|
-
}
|
|
68839
|
-
if (this.opts.model)
|
|
68840
|
-
forkParams.model = this.opts.model;
|
|
68841
|
-
const threadConfig = this.threadConfigOverrides();
|
|
68842
|
-
if (threadConfig)
|
|
68843
|
-
forkParams.config = threadConfig;
|
|
68844
69079
|
const result = await client.sendRequest("thread/fork", forkParams);
|
|
68845
69080
|
const forkedThreadId = extractThreadId(result);
|
|
68846
69081
|
if (!forkedThreadId) {
|
|
@@ -68890,6 +69125,28 @@ var CodexAppServerAdapter = class {
|
|
|
68890
69125
|
(log2 ?? this.opts.log)?.info?.("restarting codex app-server after a capability or shell-environment change (the fresh-process thread/resume applies the refreshed developerInstructions and shell environment to the persisted thread configuration; the model-visible context is reconciled before the next turn)");
|
|
68891
69126
|
await this.stop();
|
|
68892
69127
|
}
|
|
69128
|
+
/**
|
|
69129
|
+
* New Session: the server has closed every session, so every running turn
|
|
69130
|
+
* (main, forks, subagent threads) ends with the app-server, as the Claude
|
|
69131
|
+
* bridge kills its CLIs. Forgetting only the main thread left the old turn
|
|
69132
|
+
* running: its reply still posted, and its next turn came back as an unknown
|
|
69133
|
+
* thread taken for a subagent.
|
|
69134
|
+
*/
|
|
69135
|
+
resetProcesses() {
|
|
69136
|
+
this.sessionEpoch++;
|
|
69137
|
+
this.restartRequested = false;
|
|
69138
|
+
this.failActiveTurns(NEW_SESSION_ENDED);
|
|
69139
|
+
return this.stop();
|
|
69140
|
+
}
|
|
69141
|
+
failActiveTurns(message) {
|
|
69142
|
+
for (const sink of this.activeTurns.values()) {
|
|
69143
|
+
sink.push({ kind: "error", message });
|
|
69144
|
+
sink.close();
|
|
69145
|
+
}
|
|
69146
|
+
this.activeTurns.clear();
|
|
69147
|
+
this.activeTurnIds.clear();
|
|
69148
|
+
this.injections.clear();
|
|
69149
|
+
}
|
|
68893
69150
|
async stop() {
|
|
68894
69151
|
this.stopping = true;
|
|
68895
69152
|
const proc = this.proc;
|
|
@@ -68910,13 +69167,7 @@ var CodexAppServerAdapter = class {
|
|
|
68910
69167
|
}
|
|
68911
69168
|
async ensureStarted(log2) {
|
|
68912
69169
|
if (this.client?.isDisposed()) {
|
|
68913
|
-
|
|
68914
|
-
activeSink.push({ kind: "error", message: "Codex app-server disposed; resetting adapter" });
|
|
68915
|
-
activeSink.close();
|
|
68916
|
-
}
|
|
68917
|
-
this.activeTurns.clear();
|
|
68918
|
-
this.activeTurnIds.clear();
|
|
68919
|
-
this.injections.clear();
|
|
69170
|
+
this.failActiveTurns("Codex app-server disposed; resetting adapter");
|
|
68920
69171
|
this.foreignThreads.dropAll("lost: Codex app-server disposed");
|
|
68921
69172
|
this.client = null;
|
|
68922
69173
|
this.proc = null;
|
|
@@ -68960,7 +69211,7 @@ var CodexAppServerAdapter = class {
|
|
|
68960
69211
|
if (!env.PRLL_WIKI_MOUNT_ROOT?.trim()) {
|
|
68961
69212
|
env.PRLL_WIKI_MOUNT_ROOT = this.opts.workspaceDir;
|
|
68962
69213
|
}
|
|
68963
|
-
const proc = this.appServers.start(this.opts.codexBin,
|
|
69214
|
+
const proc = this.appServers.start(this.opts.codexBin, appServerArgs(this.opts), {
|
|
68964
69215
|
cwd: this.opts.workspaceDir,
|
|
68965
69216
|
env,
|
|
68966
69217
|
log: log2 ?? this.opts.log
|
|
@@ -69011,13 +69262,7 @@ var CodexAppServerAdapter = class {
|
|
|
69011
69262
|
logger?.warn?.(`app-server subprocess ${reason}; resetting adapter`);
|
|
69012
69263
|
}
|
|
69013
69264
|
this.client?.dispose(err ?? new Error(`app-server ${reason}`));
|
|
69014
|
-
|
|
69015
|
-
activeSink.push({ kind: "error", message: `Codex app-server ${reason}` });
|
|
69016
|
-
activeSink.close();
|
|
69017
|
-
}
|
|
69018
|
-
this.activeTurns.clear();
|
|
69019
|
-
this.activeTurnIds.clear();
|
|
69020
|
-
this.injections.clear();
|
|
69265
|
+
this.failActiveTurns(`Codex app-server ${reason}`);
|
|
69021
69266
|
this.resumedThreadIds.clear();
|
|
69022
69267
|
this.instructionsRefresher.clearThreadState();
|
|
69023
69268
|
this.mainLaneQuarantined = false;
|
|
@@ -69028,21 +69273,7 @@ var CodexAppServerAdapter = class {
|
|
|
69028
69273
|
this.initialized = false;
|
|
69029
69274
|
}
|
|
69030
69275
|
async openThread(client, opts) {
|
|
69031
|
-
const commonParams =
|
|
69032
|
-
approvalPolicy: normalizeApprovalPolicy(this.opts.approvalPolicy)
|
|
69033
|
-
};
|
|
69034
|
-
if (this.opts.useParallProvider) {
|
|
69035
|
-
commonParams.modelProvider = "parall";
|
|
69036
|
-
}
|
|
69037
|
-
commonParams.sandbox = normalizeSandbox(this.opts.sandbox);
|
|
69038
|
-
if (this.opts.developerInstructions) {
|
|
69039
|
-
commonParams.developerInstructions = this.opts.developerInstructions;
|
|
69040
|
-
}
|
|
69041
|
-
if (this.opts.model)
|
|
69042
|
-
commonParams.model = this.opts.model;
|
|
69043
|
-
const threadConfig = this.threadConfigOverrides();
|
|
69044
|
-
if (threadConfig)
|
|
69045
|
-
commonParams.config = threadConfig;
|
|
69276
|
+
const commonParams = buildThreadOpenParams(this.opts, this.threadConfigOverrides());
|
|
69046
69277
|
const method = opts.resumeId ? "thread/resume" : "thread/start";
|
|
69047
69278
|
const params = opts.resumeId ? {
|
|
69048
69279
|
threadId: opts.resumeId,
|
|
@@ -69729,6 +69960,7 @@ async function main() {
|
|
|
69729
69960
|
alignSecrets: (version) => configRefresh.alignSecrets(version),
|
|
69730
69961
|
onNewSession: () => {
|
|
69731
69962
|
sessionManager.clearMainThread();
|
|
69963
|
+
return adapter.resetProcesses();
|
|
69732
69964
|
},
|
|
69733
69965
|
onSessionStale: () => {
|
|
69734
69966
|
sessionManager.clearMainThread();
|