@parall/daemon 1.87.0 → 1.89.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 +194 -21
- package/bundle/parall-channel-exec.js +36 -3
- package/bundle/parall-claude-agent.js +815 -517
- package/bundle/parall-codex-agent.js +325 -88
- package/bundle/parall-daemon.js +339 -25
- 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`,
|
|
@@ -52212,6 +52220,7 @@ function teamInviteEndpoints(apiBase) {
|
|
|
52212
52220
|
TEAM_INVITE_TEAMS: (token) => `${apiBase}/team-invites/${seg(token)}/teams`,
|
|
52213
52221
|
TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
|
|
52214
52222
|
TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
|
|
52223
|
+
TEAM_INVITE_REQUEST_INTAKE: (token, requestId) => `${apiBase}/team-invites/${seg(token)}/requests/${seg(requestId)}/intake`,
|
|
52215
52224
|
TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
|
|
52216
52225
|
TEAM_INVITE_REQUEST_RETRY: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/retry`
|
|
52217
52226
|
};
|
|
@@ -52269,6 +52278,30 @@ function teamEndpoints(apiBase) {
|
|
|
52269
52278
|
};
|
|
52270
52279
|
}
|
|
52271
52280
|
|
|
52281
|
+
// ts/sdk/dist/secret-endpoints.js
|
|
52282
|
+
function secretEndpoints(apiBase) {
|
|
52283
|
+
return {
|
|
52284
|
+
AGENT_SECRETS: (orgId, agentId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
52285
|
+
AGENT_SECRET: (orgId, agentId, secretId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
52286
|
+
ORG_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/secrets`,
|
|
52287
|
+
ORG_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}`,
|
|
52288
|
+
/** The caller's own secrets (login session only, like the rest up to the runtime's). */
|
|
52289
|
+
ORG_MY_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/me/secrets`,
|
|
52290
|
+
ORG_MY_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}`,
|
|
52291
|
+
ORG_MY_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}/grants/${agentId}`,
|
|
52292
|
+
TEAM_SECRETS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets`,
|
|
52293
|
+
TEAM_SECRET: (orgId, teamId, secretId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}`,
|
|
52294
|
+
TEAM_SECRET_GRANT: (orgId, teamId, secretId, agentId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}/grants/${agentId}`,
|
|
52295
|
+
/** `agentId` holds `ownerAgentId`'s own secret. */
|
|
52296
|
+
AGENT_SECRET_GRANT: (orgId, ownerAgentId, secretId, agentId) => `${apiBase}/orgs/${orgId}/agents/${ownerAgentId}/secrets/${secretId}/grants/${agentId}`,
|
|
52297
|
+
ORG_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}/grants/${agentId}`,
|
|
52298
|
+
/** The runtime's own routes, with the agent's key. */
|
|
52299
|
+
AGENT_ME_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets`,
|
|
52300
|
+
AGENT_ME_SECRETS_CATALOG: (orgId, q) => `${apiBase}/orgs/${orgId}/agents/me/secrets/catalog${q ? `?q=${encodeURIComponent(q)}` : ""}`,
|
|
52301
|
+
AGENT_ME_SECRETS_APPLIED: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets/applied`
|
|
52302
|
+
};
|
|
52303
|
+
}
|
|
52304
|
+
|
|
52272
52305
|
// ts/sdk/dist/constants.js
|
|
52273
52306
|
var API_BASE2 = "/api/v1";
|
|
52274
52307
|
var WIKI_BASE = "/wiki/v1";
|
|
@@ -52352,6 +52385,8 @@ var ENDPOINTS = {
|
|
|
52352
52385
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
52353
52386
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
52354
52387
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
52388
|
+
CHAT_BOOKMARKS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks`,
|
|
52389
|
+
CHAT_BOOKMARK: (orgId, chatId, bookmarkId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks/${bookmarkId}`,
|
|
52355
52390
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
52356
52391
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
52357
52392
|
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
@@ -52394,14 +52429,7 @@ var ENDPOINTS = {
|
|
|
52394
52429
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
52395
52430
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
52396
52431
|
AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
|
|
52397
|
-
|
|
52398
|
-
AGENT_SECRETS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
52399
|
-
AGENT_SECRET: (orgId, agentId, secretId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
52400
|
-
ORG_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/secrets`,
|
|
52401
|
-
ORG_SECRET: (orgId, secretId) => `${API_BASE2}/orgs/${orgId}/secrets/${secretId}`,
|
|
52402
|
-
AGENT_ME_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets`,
|
|
52403
|
-
AGENT_ME_SECRETS_CATALOG: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/catalog`,
|
|
52404
|
-
AGENT_ME_SECRETS_APPLIED: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/applied`,
|
|
52432
|
+
...secretEndpoints(API_BASE2),
|
|
52405
52433
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
52406
52434
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
52407
52435
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -52859,6 +52887,7 @@ var WS_EVENTS = {
|
|
|
52859
52887
|
TYPING_UPDATE: "typing.update",
|
|
52860
52888
|
CHAT_UPDATE: "chat.update",
|
|
52861
52889
|
CHAT_DELETED: "chat.deleted",
|
|
52890
|
+
CHAT_BOOKMARKS_UPDATED: "chat.bookmarks.updated",
|
|
52862
52891
|
APPROVAL_UPDATE: "approval.update",
|
|
52863
52892
|
// deprecated
|
|
52864
52893
|
CARD_UPDATE: "card.update",
|
|
@@ -53691,6 +53720,23 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53691
53720
|
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
53692
53721
|
}
|
|
53693
53722
|
// ---- Clip connections ----
|
|
53723
|
+
/** Missing keys are unknown/hidden; present empty arrays are known empty. */
|
|
53724
|
+
async listClipMCPSummaries(orgId, clipIds) {
|
|
53725
|
+
return this.readDiscoverySummaries(ENDPOINTS.CLIP_MCP_SUMMARIES(orgId), "clip_ids", clipIds);
|
|
53726
|
+
}
|
|
53727
|
+
async listEdgeProfileSummaries(orgId, edgeIds) {
|
|
53728
|
+
return this.readDiscoverySummaries(ENDPOINTS.EDGE_PROFILE_SUMMARIES(orgId), "edge_ids", edgeIds);
|
|
53729
|
+
}
|
|
53730
|
+
async readDiscoverySummaries(endpoint, key, ids) {
|
|
53731
|
+
const data = {};
|
|
53732
|
+
const unique = [...new Set(ids)];
|
|
53733
|
+
for (let offset = 0; offset < unique.length; offset += 500) {
|
|
53734
|
+
const batch = unique.slice(offset, offset + 500);
|
|
53735
|
+
const response = await this.request("GET", `${endpoint}?${key}=${encodeURIComponent(batch.join(","))}`);
|
|
53736
|
+
Object.assign(data, response.data);
|
|
53737
|
+
}
|
|
53738
|
+
return { data };
|
|
53739
|
+
}
|
|
53694
53740
|
async listClipConnections(orgId, clipId) {
|
|
53695
53741
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
53696
53742
|
}
|
|
@@ -53725,10 +53771,42 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53725
53771
|
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
53726
53772
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
53727
53773
|
}
|
|
53774
|
+
// ---- The caller's own connections (login session only) ----
|
|
53775
|
+
/** The caller's person-owned connections, optionally for one connector. */
|
|
53776
|
+
async listMyConnections(orgId, clipId) {
|
|
53777
|
+
return this.request("GET", ENDPOINTS.ORG_MY_CONNECTIONS(orgId), void 0, clipId ? { clip_id: clipId } : void 0);
|
|
53778
|
+
}
|
|
53779
|
+
/** Stop one agent from using one of the caller's connections. */
|
|
53780
|
+
async revokeMyConnectionAgent(orgId, connId, agentId) {
|
|
53781
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION_AGENT(orgId, connId, agentId));
|
|
53782
|
+
}
|
|
53783
|
+
/** Disconnect one of the caller's connections: the connection, its credential and grants go. */
|
|
53784
|
+
async deleteMyConnection(orgId, connId) {
|
|
53785
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
|
|
53786
|
+
}
|
|
53787
|
+
};
|
|
53788
|
+
|
|
53789
|
+
// ts/sdk/dist/hosted-profile-creation.js
|
|
53790
|
+
var HostedProfileCreationClient = class extends ClipConnectionClient {
|
|
53791
|
+
getHostedProfileCreationAccess(orgId, agentId) {
|
|
53792
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId));
|
|
53793
|
+
}
|
|
53794
|
+
changeHostedProfileCreationGrant(orgId, agentId, change, key, revoke = false) {
|
|
53795
|
+
return this.request(revoke ? "DELETE" : "PUT", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId), change, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
53796
|
+
}
|
|
53797
|
+
getHostedProfileCreationEvents(orgId, agentId, before) {
|
|
53798
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_EVENTS(orgId, agentId), void 0, {
|
|
53799
|
+
before
|
|
53800
|
+
});
|
|
53801
|
+
}
|
|
53802
|
+
/** A lost response is recovered with the same name and key, never a new key. */
|
|
53803
|
+
createAuthorizedHostedProfile(orgId, name, key) {
|
|
53804
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), { name, placement: "hosted" }, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
53805
|
+
}
|
|
53728
53806
|
};
|
|
53729
53807
|
|
|
53730
53808
|
// ts/sdk/dist/browser-profile-client.js
|
|
53731
|
-
var BrowserProfileClient = class extends
|
|
53809
|
+
var BrowserProfileClient = class extends HostedProfileCreationClient {
|
|
53732
53810
|
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
53733
53811
|
* callers with a known Profile can execute without this discovery chain. */
|
|
53734
53812
|
async listBrowserUseProfiles(orgId, profileId) {
|
|
@@ -53912,7 +53990,10 @@ var UserPreferencesClient = class extends OrgAccentClient {
|
|
|
53912
53990
|
|
|
53913
53991
|
// ts/sdk/dist/secret-client.js
|
|
53914
53992
|
var AgentSecretClient = class extends UserPreferencesClient {
|
|
53915
|
-
/**
|
|
53993
|
+
/**
|
|
53994
|
+
* One agent's own secrets and those it is given — the org's, a team's,
|
|
53995
|
+
* another user's — each as this agent holds it.
|
|
53996
|
+
*/
|
|
53916
53997
|
async getAgentSecrets(orgId, agentId) {
|
|
53917
53998
|
return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
|
|
53918
53999
|
}
|
|
@@ -53938,13 +54019,58 @@ var AgentSecretClient = class extends UserPreferencesClient {
|
|
|
53938
54019
|
async deleteOrgSecret(orgId, secretId) {
|
|
53939
54020
|
await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
|
|
53940
54021
|
}
|
|
54022
|
+
/** The caller's own secrets and who each is given to. Only that person. */
|
|
54023
|
+
async getMySecrets(orgId) {
|
|
54024
|
+
return this.request("GET", ENDPOINTS.ORG_MY_SECRETS(orgId));
|
|
54025
|
+
}
|
|
54026
|
+
async createMySecret(orgId, data) {
|
|
54027
|
+
return this.request("POST", ENDPOINTS.ORG_MY_SECRETS(orgId), data);
|
|
54028
|
+
}
|
|
54029
|
+
async updateMySecret(orgId, secretId, data) {
|
|
54030
|
+
return this.request("PATCH", ENDPOINTS.ORG_MY_SECRET(orgId, secretId), data);
|
|
54031
|
+
}
|
|
54032
|
+
async deleteMySecret(orgId, secretId) {
|
|
54033
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET(orgId, secretId));
|
|
54034
|
+
}
|
|
54035
|
+
/** A team's secrets and who each is given to: its human managers and org admins. */
|
|
54036
|
+
async getTeamSecrets(orgId, teamId) {
|
|
54037
|
+
return this.request("GET", ENDPOINTS.TEAM_SECRETS(orgId, teamId));
|
|
54038
|
+
}
|
|
54039
|
+
async createTeamSecret(orgId, teamId, data) {
|
|
54040
|
+
return this.request("POST", ENDPOINTS.TEAM_SECRETS(orgId, teamId), data);
|
|
54041
|
+
}
|
|
54042
|
+
async updateTeamSecret(orgId, teamId, secretId, data) {
|
|
54043
|
+
return this.request("PATCH", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId), data);
|
|
54044
|
+
}
|
|
54045
|
+
async deleteTeamSecret(orgId, teamId, secretId) {
|
|
54046
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId));
|
|
54047
|
+
}
|
|
54048
|
+
// Taking one agent off a secret, whether it holds it for long or once. A
|
|
54049
|
+
// grant the agent does not hold answers 404 SECRET_GRANT_NOT_FOUND.
|
|
54050
|
+
async revokeOrgSecretGrant(orgId, secretId, agentId) {
|
|
54051
|
+
await this.request("DELETE", ENDPOINTS.ORG_SECRET_GRANT(orgId, secretId, agentId));
|
|
54052
|
+
}
|
|
54053
|
+
async revokeMySecretGrant(orgId, secretId, agentId) {
|
|
54054
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET_GRANT(orgId, secretId, agentId));
|
|
54055
|
+
}
|
|
54056
|
+
/** Takes `agentId` off one of `ownerAgentId`'s own secrets. */
|
|
54057
|
+
async revokeAgentSecretGrant(orgId, ownerAgentId, secretId, agentId) {
|
|
54058
|
+
await this.request("DELETE", ENDPOINTS.AGENT_SECRET_GRANT(orgId, ownerAgentId, secretId, agentId));
|
|
54059
|
+
}
|
|
54060
|
+
async revokeTeamSecretGrant(orgId, teamId, secretId, agentId) {
|
|
54061
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET_GRANT(orgId, teamId, secretId, agentId));
|
|
54062
|
+
}
|
|
53941
54063
|
/** Agent runtime only: the values to export to the agent's commands. */
|
|
53942
54064
|
async getMyAgentSecrets(orgId) {
|
|
53943
54065
|
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
|
|
53944
54066
|
}
|
|
53945
|
-
/**
|
|
53946
|
-
|
|
53947
|
-
|
|
54067
|
+
/**
|
|
54068
|
+
* Agent only: the names it holds or may ask to use, its pending requests,
|
|
54069
|
+
* and the teams it may ask in. `q` keeps the keys whose name, purpose or
|
|
54070
|
+
* owner's name contains it, ignoring case.
|
|
54071
|
+
*/
|
|
54072
|
+
async getMyAgentSecretCatalog(orgId, q) {
|
|
54073
|
+
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId, q));
|
|
53948
54074
|
}
|
|
53949
54075
|
/** Agent runtime only: confirm the version the commands now run with. */
|
|
53950
54076
|
async ackMyAgentSecrets(orgId, version) {
|
|
@@ -54030,8 +54156,21 @@ var AgentCallerScopeClient = class extends ChatTeamGrantClient {
|
|
|
54030
54156
|
}
|
|
54031
54157
|
};
|
|
54032
54158
|
|
|
54159
|
+
// ts/sdk/dist/agent-team-only-client.js
|
|
54160
|
+
var agentTeamOnlyPath = (orgId) => `${API_BASE2}/orgs/${orgId}/agent-team-only`;
|
|
54161
|
+
var AgentTeamOnlyClient = class extends AgentCallerScopeClient {
|
|
54162
|
+
/** The switch, and what turning it on changes. Owners and admins only. */
|
|
54163
|
+
async getAgentTeamOnly(orgId) {
|
|
54164
|
+
return this.request("GET", agentTeamOnlyPath(orgId));
|
|
54165
|
+
}
|
|
54166
|
+
/** Turn the switch on or off. Owners and admins only. */
|
|
54167
|
+
async setAgentTeamOnly(orgId, enabled) {
|
|
54168
|
+
return this.request("PUT", agentTeamOnlyPath(orgId), { enabled });
|
|
54169
|
+
}
|
|
54170
|
+
};
|
|
54171
|
+
|
|
54033
54172
|
// ts/sdk/dist/agent-owning-team-client.js
|
|
54034
|
-
var AgentOwningTeamClient = class extends
|
|
54173
|
+
var AgentOwningTeamClient = class extends AgentTeamOnlyClient {
|
|
54035
54174
|
/**
|
|
54036
54175
|
* Moves the agent to another Team, or to the organization with `team_id`
|
|
54037
54176
|
* null. Pass the Team you saw as `expected_team_id`: someone else's change
|
|
@@ -54077,6 +54216,8 @@ var BillingClient = class extends TeamGraphClient {
|
|
|
54077
54216
|
const params = new URLSearchParams();
|
|
54078
54217
|
params.set("start_date", opts.start_date);
|
|
54079
54218
|
params.set("end_date", opts.end_date);
|
|
54219
|
+
if (opts.timezone !== void 0)
|
|
54220
|
+
params.set("timezone", opts.timezone);
|
|
54080
54221
|
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
|
|
54081
54222
|
}
|
|
54082
54223
|
async getUsageHeatmap(orgId, opts, accountId) {
|
|
@@ -54242,6 +54383,12 @@ var TeamInviteClient = class extends BillingClient {
|
|
|
54242
54383
|
async getMyTeamInviteRequest(token) {
|
|
54243
54384
|
return this.request("GET", ENDPOINTS.TEAM_INVITE_REQUEST_MINE(token));
|
|
54244
54385
|
}
|
|
54386
|
+
/** The requester answers the link's questions for a request that already
|
|
54387
|
+
* finished (no new request). `TEAM_INVITE_INTAKE_INVALID` (400) names the
|
|
54388
|
+
* key in `details.key`. */
|
|
54389
|
+
async submitTeamInviteIntake(token, requestId, intake) {
|
|
54390
|
+
return this.request("PUT", ENDPOINTS.TEAM_INVITE_REQUEST_INTAKE(token, requestId), { intake });
|
|
54391
|
+
}
|
|
54245
54392
|
/** The requester withdraws a request that is still waiting. */
|
|
54246
54393
|
async cancelTeamInviteRequest(requestId) {
|
|
54247
54394
|
return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUEST_CANCEL(requestId));
|
|
@@ -54256,8 +54403,20 @@ function errorCode(err) {
|
|
|
54256
54403
|
return typeof err === "object" && err !== null ? err.code : void 0;
|
|
54257
54404
|
}
|
|
54258
54405
|
|
|
54406
|
+
// ts/sdk/dist/member-field-client.js
|
|
54407
|
+
var MemberFieldClient = class extends TeamInviteClient {
|
|
54408
|
+
/**
|
|
54409
|
+
* The member changes the value of one of their own fields: signed in only
|
|
54410
|
+
* (an API key gets 403 `JWT_REQUIRED`), 1–200 characters on one line.
|
|
54411
|
+
* Answers with the whole profile and its fields.
|
|
54412
|
+
*/
|
|
54413
|
+
async updateMemberField(orgId, userId, key, value) {
|
|
54414
|
+
return this.request("PUT", `${ENDPOINTS.ORG_MEMBER_PROFILE(orgId, userId)}/fields/${encodeURIComponent(key)}`, { value });
|
|
54415
|
+
}
|
|
54416
|
+
};
|
|
54417
|
+
|
|
54259
54418
|
// ts/sdk/dist/wiki-page-share-client.js
|
|
54260
|
-
var WikiPageShareClient = class extends
|
|
54419
|
+
var WikiPageShareClient = class extends MemberFieldClient {
|
|
54261
54420
|
async listWikiPageShares(orgId, wikiId, path15) {
|
|
54262
54421
|
const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), void 0, { path: path15 });
|
|
54263
54422
|
return res.data;
|
|
@@ -54278,6 +54437,20 @@ var WikiPageShareClient = class extends TeamInviteClient {
|
|
|
54278
54437
|
}
|
|
54279
54438
|
};
|
|
54280
54439
|
|
|
54440
|
+
// ts/sdk/dist/chat-bookmarks-client.js
|
|
54441
|
+
var ChatBookmarksClient = class extends WikiPageShareClient {
|
|
54442
|
+
async getChatBookmarks(orgId, chatId) {
|
|
54443
|
+
return this.request("GET", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId));
|
|
54444
|
+
}
|
|
54445
|
+
/** `ref` is a `prll://` reference or an http(s) URL. */
|
|
54446
|
+
async addChatBookmark(orgId, chatId, ref) {
|
|
54447
|
+
return this.request("POST", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId), { ref });
|
|
54448
|
+
}
|
|
54449
|
+
async removeChatBookmark(orgId, chatId, bookmarkId) {
|
|
54450
|
+
return this.request("DELETE", ENDPOINTS.CHAT_BOOKMARK(orgId, chatId, bookmarkId));
|
|
54451
|
+
}
|
|
54452
|
+
};
|
|
54453
|
+
|
|
54281
54454
|
// ts/sdk/dist/wiki-changeset.js
|
|
54282
54455
|
function normalizeWikiChangeset(changeset) {
|
|
54283
54456
|
return {
|
|
@@ -54313,7 +54486,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
54313
54486
|
detectedRuntimes
|
|
54314
54487
|
};
|
|
54315
54488
|
}
|
|
54316
|
-
var ParallClient = class _ParallClient extends
|
|
54489
|
+
var ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
54317
54490
|
baseUrl;
|
|
54318
54491
|
wikiBaseUrl;
|
|
54319
54492
|
token;
|
|
@@ -54761,7 +54934,7 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
54761
54934
|
async updateOrgMember(orgId, userId, role) {
|
|
54762
54935
|
return this.request("PATCH", ENDPOINTS.ORG_MEMBER(orgId, userId), { role });
|
|
54763
54936
|
}
|
|
54764
|
-
/** Org-scoped public profile (title / description) of any active member. */
|
|
54937
|
+
/** Org-scoped public profile (title / description) and fields of any active member. */
|
|
54765
54938
|
async getMemberProfile(orgId, userId) {
|
|
54766
54939
|
return this.request("GET", ENDPOINTS.ORG_MEMBER_PROFILE(orgId, userId));
|
|
54767
54940
|
}
|
|
@@ -56609,7 +56782,7 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
56609
56782
|
return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
56610
56783
|
}
|
|
56611
56784
|
/** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
|
|
56612
|
-
* org-shared Cloud Profile
|
|
56785
|
+
* org-shared Cloud Profile; Agents need a separate creation grant and key. */
|
|
56613
56786
|
async registerEdgeDevice(orgId, input, options) {
|
|
56614
56787
|
const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
|
|
56615
56788
|
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
|
|
@@ -56854,10 +57027,11 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
56854
57027
|
async listClipMCPConnections(orgId, clipId) {
|
|
56855
57028
|
return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
|
|
56856
57029
|
}
|
|
56857
|
-
/** Create one MCP credential slot and its connection. */
|
|
56858
57030
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
56859
57031
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
56860
|
-
|
|
57032
|
+
// A card may start OAuth: allow discovery (30s) and persistence like
|
|
57033
|
+
// createClipMCPOAuthConnection.
|
|
57034
|
+
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
56861
57035
|
});
|
|
56862
57036
|
}
|
|
56863
57037
|
/** Delete one MCP config and its paired connection. */
|
|
@@ -57725,6 +57899,11 @@ var VENDOR_CLIS = [
|
|
|
57725
57899
|
channel: "feishu",
|
|
57726
57900
|
command: "lark-cli",
|
|
57727
57901
|
install: "npm i -g @larksuite/cli && npx skills add larksuite/cli -y -g",
|
|
57902
|
+
// Before 1.0.97, im +messages-send / +messages-reply took `--markdown
|
|
57903
|
+
// @file` (the form the official skill teaches) as the literal text
|
|
57904
|
+
// "@file", sent it and reported success
|
|
57905
|
+
// (https://github.com/larksuite/cli/pull/2760).
|
|
57906
|
+
minVersion: "1.0.97",
|
|
57728
57907
|
ownedEnv: [
|
|
57729
57908
|
// injected
|
|
57730
57909
|
"LARKSUITE_CLI_APP_ID",
|
|
@@ -63810,11 +63989,14 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
|
|
|
63810
63989
|
|
|
63811
63990
|
\u8FD0\u884C \`parall browser profiles --json\`\uFF0C\u4ECE\u53EF\u8BBF\u95EE\u5217\u8868\u6309\u8D26\u53F7\u540D\u79F0\u9009\u62E9 Profile\u3002
|
|
63812
63991
|
\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
|
|
63813
|
-
\u6CA1\u6709\u53EF\u7528 Profile \u65F6\uFF0C\
|
|
63992
|
+
\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
|
|
63993
|
+
\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
|
|
63994
|
+
\u65E0\u6709\u6548\u521B\u5EFA\u6388\u6743\u6216\u4EFB\u52A1\u9700\u8981\u5DF2\u6709\u767B\u5F55\u8D26\u53F7\u65F6\uFF0C\u95EE\u7528\u6237\uFF1A
|
|
63814
63995
|
- **\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
|
|
63815
63996
|
\`parall approvals request --action browser.profile.authorize --resource prll://<ebp_id> --title "Request browser profile access" --chat prll://<cht_id>\`
|
|
63816
63997
|
\u4EBA approve \u540E\u4F60\u81EA\u52A8\u83B7\u5F97\u8BE5 Profile \u7684\u5168\u90E8\u64CD\u4F5C\u6743\u9650\u3002
|
|
63817
|
-
- **\
|
|
63998
|
+
- **\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
|
|
63999
|
+
- **\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
|
|
63818
64000
|
\u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
|
|
63819
64001
|
\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
|
|
63820
64002
|
|
|
@@ -63822,6 +64004,26 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
|
|
|
63822
64004
|
\`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
|
|
63823
64005
|
\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
|
|
63824
64006
|
|
|
64007
|
+
## \u81EA\u5EFA Profile \u7684\u8FB9\u754C\u4E0E\u6062\u590D
|
|
64008
|
+
|
|
64009
|
+
\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
|
|
64010
|
+
\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
|
|
64011
|
+
\u65B0\u5EFA Profile \u6CA1\u6709\u7F51\u7AD9\u767B\u5F55\u6001\uFF1BProfile \u7684\u4F7F\u7528\u6743\u6216\u521B\u5EFA\u6743\u90FD\u4E0D\u7B49\u4E8E\u8D26\u53F7\u51ED\u636E\u6388\u6743\u3002
|
|
64012
|
+
\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
|
|
64013
|
+
|
|
64014
|
+
- \`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
|
|
64015
|
+
- \`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
|
|
64016
|
+
- \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
|
|
64017
|
+
- \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
|
|
64018
|
+
- \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
|
|
64019
|
+
|
|
64020
|
+
## \u7F51\u7AD9\u767B\u5F55
|
|
64021
|
+
|
|
64022
|
+
\u7528\u6237\u660E\u786E\u6388\u6743\u4F60\u767B\u5F55\u67D0\u4E2A\u8D26\u53F7\uFF0C\u4E14\u8D26\u53F7\u51ED\u636E\u5DF2\u4F5C\u4E3A\u5BC6\u94A5\u7ED9\u5230\u4F60\u65F6\uFF0C\u81EA\u5DF1\u7528 \`parall browser\` \u6253\u5F00\u767B\u5F55\u9875\u3001\u586B\u5199\u5E76\u63D0\u4EA4\u3002
|
|
64023
|
+
\u51ED\u636E\u53EA\u8D70\u5BC6\u94A5\uFF1A\u7F3A\u4E86\u7528 \`parall secrets request\` \u7533\u8BF7\uFF0C\u4E0D\u5728\u804A\u5929\u91CC\u8981\u6216\u4F20\uFF1B\u547D\u4EE4\u91CC\u53EA\u5F15\u7528\u73AF\u5883\u53D8\u91CF\uFF08\u5982 \`fill --text "$SITE_PASSWORD"\`\uFF09\uFF0C\u4E0D\u6253\u5370\u3001\u4E0D\u622A\u56FE\u3001\u4E0D\u5916\u53D1\u5176\u503C\u3002
|
|
64024
|
+
\u9047\u5230\u9A8C\u8BC1\u7801\u3001\u77ED\u4FE1/\u90AE\u7BB1\u9A8C\u8BC1\u7801\u3001\u4E8C\u6B21\u9A8C\u8BC1\u7B49\u987B\u4EBA\u5904\u7406\u7684\u6B65\u9AA4\uFF0C\u505C\u6B62\u64CD\u4F5C\u5E76\u4FDD\u7559\u53EF\u89C1\u9875\u9762\uFF0C\u8BF7\u7528\u6237\u5728 Viewer \u6216 Desktop \u63A5\u7BA1\u5B8C\u6210\uFF0C\u7B49\u7528\u6237\u660E\u786E\u8BF4\u7EE7\u7EED\u518D\u63A5\u7740\u505A\u3002
|
|
64025
|
+
\u4EE3\u7406\u51ED\u636E\u3001cookie \u548C\u5176\u4ED6\u6D4F\u89C8\u5668\u7684\u73B0\u6709\u767B\u5F55\u6001\u4ECD\u4E0D\u53EF\u89E6\u78B0\uFF1B\u9700\u8981\u65F6\u8BF7\u4EBA\u5904\u7406\uFF0C\u4E0D\u81EA\u884C\u8BFB\u53D6\u3001\u590D\u5236\u3001\u5BFC\u5165\u6216\u914D\u7F6E\u3002
|
|
64026
|
+
|
|
63825
64027
|
## \u793A\u4F8B\uFF1A\u6253\u5F00\u9875\u9762\uFF0C\u8BFB\u53D6\u6807\u9898\uFF0C\u7559\u7ED9\u7528\u6237\u67E5\u770B
|
|
63826
64028
|
|
|
63827
64029
|
\u4E0B\u9762\u5C16\u62EC\u53F7\u987B\u66FF\u6362\u4E3A\u5B9E\u9645\u8FD4\u56DE\u503C\uFF0C\u4E0D\u8981\u7167\u6284\u3002
|
|
@@ -63958,6 +64160,16 @@ parall messages list prll://cht_xxx # Read chat message history
|
|
|
63958
64160
|
parall messages list prll://cht_xxx --since 2026-01-01 # Only messages at/after a date (RFC3339 or YYYY-MM-DD)
|
|
63959
64161
|
\`\`\`
|
|
63960
64162
|
|
|
64163
|
+
A chat's **bookmarks** are the references pinned to its top, which every member
|
|
64164
|
+
sees in the bookmark bar above the messages. Use them when someone asks you to
|
|
64165
|
+
bookmark or pin something in a chat, or asks what is bookmarked there:
|
|
64166
|
+
|
|
64167
|
+
\`\`\`bash
|
|
64168
|
+
parall chats bookmarks list prll://cht_xxx
|
|
64169
|
+
parall chats bookmarks add prll://cht_xxx prll://tsk_xxx # any prll:// reference, or an https:// link
|
|
64170
|
+
parall chats bookmarks remove prll://cht_xxx prll://tsk_xxx
|
|
64171
|
+
\`\`\`
|
|
64172
|
+
|
|
63961
64173
|
## Org-Context Search
|
|
63962
64174
|
|
|
63963
64175
|
Before deciding or starting non-trivial work, search the org's real history \u2014
|
|
@@ -65099,7 +65311,7 @@ bound to the connector, and the connection is what your access is granted on.
|
|
|
65099
65311
|
\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
|
|
65100
65312
|
- \`CLIP_AGENT_NOT_ALLOWED\` / \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\` mean a
|
|
65101
65313
|
human has restricted who may run this connector (or through which account);
|
|
65102
|
-
|
|
65314
|
+
you cannot grant it to yourself \u2014 ask on a card (next section).
|
|
65103
65315
|
- Waiting on a cloud profile is handled by the CLI: \`EDGE_ACTIVATING\` (cold
|
|
65104
65316
|
start), \`EDGE_BUSY\` (another exec is running) and
|
|
65105
65317
|
\`EDGE_CONCURRENCY_LIMIT\` (org at capacity) are all guaranteed-unexecuted
|
|
@@ -65108,6 +65320,24 @@ bound to the connector, and the connection is what your access is granted on.
|
|
|
65108
65320
|
fails already spent that budget \u2014 report the error, do not blind-retry in
|
|
65109
65321
|
a loop.
|
|
65110
65322
|
|
|
65323
|
+
## Ask a person to connect
|
|
65324
|
+
|
|
65325
|
+
When the task needs a connector you cannot run yet \u2014 it is not installed
|
|
65326
|
+
(find it with \`parall connector search <text>\`), you have no connection to it
|
|
65327
|
+
(\`CONNECTION_NOT_FOUND\`), you are not allowed through one
|
|
65328
|
+
(\`CLIP_AGENT_NOT_ALLOWED\`, \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\`) or it needs
|
|
65329
|
+
signing in again (\`MCP_OAUTH_REAUTH_REQUIRED\`) \u2014 post a card:
|
|
65330
|
+
|
|
65331
|
+
\`\`\`bash
|
|
65332
|
+
parall connector connect <connector> --reason "<what you need it for>" # the person's own account (mail, calendar, personal tools)
|
|
65333
|
+
parall connector connect <connector> --reason "<what you need it for>" --from org # a company-shared account
|
|
65334
|
+
\`\`\`
|
|
65335
|
+
|
|
65336
|
+
The card installs the connector and creates the connection \u2014 don't send the
|
|
65337
|
+
person to the Connectors page or install it yourself. Relay the sentence the
|
|
65338
|
+
command prints, carry on with what doesn't need the connector, and you are
|
|
65339
|
+
woken with the result. Use a person's account only for that person's requests.
|
|
65340
|
+
|
|
65111
65341
|
## MCP connectors (remote tool servers)
|
|
65112
65342
|
|
|
65113
65343
|
A connection with target \`mcp\` routes to a remote MCP server; the command
|
|
@@ -65125,7 +65355,7 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65125
65355
|
|
|
65126
65356
|
- \`connector connections\` marks MCP rows with their auth mode, \`credential_set\`
|
|
65127
65357
|
/ \`oauth_status\` and \`tool_count\` \u2014 a \`needs_reauth\` or credential-less
|
|
65128
|
-
row will refuse exec until
|
|
65358
|
+
row will refuse exec until someone signs in again; ask on a card (above).
|
|
65129
65359
|
- \`--connection\` is REQUIRED to exec an MCP connection, exactly like every
|
|
65130
65360
|
other target. The alias tells you WHICH account you act as \u2014 always name
|
|
65131
65361
|
it.
|
|
@@ -65142,17 +65372,16 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65142
65372
|
or MCP is off for this deployment \u2014 ask an org admin; retrying won't help.
|
|
65143
65373
|
- \`MCP_OAUTH_REAUTH_REQUIRED\` = that connection's authorization is no longer
|
|
65144
65374
|
valid (revoked or expired at the provider, or disconnected) \u2014 nothing ran and
|
|
65145
|
-
retrying won't help.
|
|
65146
|
-
|
|
65147
|
-
|
|
65148
|
-
usually also get an Inbox alert, but don't rely on it \u2014 still tell the user
|
|
65149
|
-
who needs to act.
|
|
65375
|
+
retrying won't help. Ask on a card (above; \`--from org\` for a
|
|
65376
|
+
company-shared account). For a person's own account the card makes a new
|
|
65377
|
+
connection: use the \`connection_id\` from the decision, not the old one.
|
|
65150
65378
|
- \`MCP_AUTH_FAILED\` = the MCP server refused this request with this
|
|
65151
65379
|
connection's credentials \u2014 nothing ran; don't retry as-is.
|
|
65152
65380
|
\`details.reason\` \`insufficient_scope\`: this account may not do that \u2014 use
|
|
65153
65381
|
a connection with the needed access, or ask an org admin to review its
|
|
65154
65382
|
permissions. \`credential_rejected\`: the saved credential is no longer
|
|
65155
|
-
accepted \u2014 an org admin must update it.
|
|
65383
|
+
accepted \u2014 an org admin must update it. On a person's own account the
|
|
65384
|
+
message says to ask that person on a card instead; follow the message.
|
|
65156
65385
|
- \`MCP_SERVER_UNREACHABLE\` = the MCP server (or its OAuth token endpoint)
|
|
65157
65386
|
could not be reached \u2014 nothing ran; safe to retry after a short wait.
|
|
65158
65387
|
- \`OUTCOME_UNKNOWN\` follows the rule below: dispatched and MAY HAVE
|
|
@@ -65166,11 +65395,11 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65166
65395
|
|
|
65167
65396
|
## Behavior rules
|
|
65168
65397
|
|
|
65169
|
-
- An authorization error
|
|
65170
|
-
\`CLIP_AGENT_CONNECTION_NOT_ALLOWED
|
|
65171
|
-
|
|
65172
|
-
an org admin to grant the
|
|
65173
|
-
|
|
65398
|
+
- An authorization error is a fail-fast \u2014 do not retry or work around it.
|
|
65399
|
+
\`CLIP_AGENT_NOT_ALLOWED\` / \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\`: ask on a
|
|
65400
|
+
card with \`parall connector connect\`. \`CONNECTION_NOT_ALLOWED\`,
|
|
65401
|
+
\`PROFILE_NOT_ALLOWED\`, \`FORBIDDEN\`: ask an org admin to grant the
|
|
65402
|
+
connector or the connection.
|
|
65174
65403
|
- If the target device is offline or the call times out, report that
|
|
65175
65404
|
plainly; do not queue, and never fabricate a result for a run that errored.
|
|
65176
65405
|
- **\`OUTCOME_UNKNOWN\` is never retryable.** It means the command was
|
|
@@ -65592,7 +65821,7 @@ var SKILLS = [
|
|
|
65592
65821
|
},
|
|
65593
65822
|
{
|
|
65594
65823
|
name: "parall-platform",
|
|
65595
|
-
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.",
|
|
65824
|
+
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.",
|
|
65596
65825
|
content: PARALL_PLATFORM_SKILL
|
|
65597
65826
|
},
|
|
65598
65827
|
{
|
|
@@ -65617,7 +65846,7 @@ var SKILLS = [
|
|
|
65617
65846
|
},
|
|
65618
65847
|
{
|
|
65619
65848
|
name: "parall-clips",
|
|
65620
|
-
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.",
|
|
65849
|
+
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.",
|
|
65621
65850
|
content: PARALL_CLIPS_SKILL
|
|
65622
65851
|
},
|
|
65623
65852
|
{
|
|
@@ -66730,6 +66959,10 @@ function parseContentLength(value) {
|
|
|
66730
66959
|
import { execSync as execSync2, spawn } from "node:child_process";
|
|
66731
66960
|
import * as fs8 from "node:fs";
|
|
66732
66961
|
var IS_WIN32 = process.platform === "win32";
|
|
66962
|
+
function appServerArgs(opts) {
|
|
66963
|
+
const override = opts.useParallProvider ? ["-c", "model_provider=parall"] : [];
|
|
66964
|
+
return ["app-server", ...override, "--listen", "stdio://"];
|
|
66965
|
+
}
|
|
66733
66966
|
function quoteWin32Arg(arg) {
|
|
66734
66967
|
if (!/[\s"&|^<>()]/.test(arg))
|
|
66735
66968
|
return arg;
|
|
@@ -68291,6 +68524,23 @@ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabil
|
|
|
68291
68524
|
}
|
|
68292
68525
|
return Object.keys(config).length > 0 ? config : void 0;
|
|
68293
68526
|
}
|
|
68527
|
+
function buildThreadOpenParams(opts, threadConfig) {
|
|
68528
|
+
const commonParams = {
|
|
68529
|
+
approvalPolicy: normalizeApprovalPolicy(opts.approvalPolicy)
|
|
68530
|
+
};
|
|
68531
|
+
if (opts.useParallProvider) {
|
|
68532
|
+
commonParams.modelProvider = "parall";
|
|
68533
|
+
}
|
|
68534
|
+
commonParams.sandbox = normalizeSandbox(opts.sandbox);
|
|
68535
|
+
if (opts.developerInstructions) {
|
|
68536
|
+
commonParams.developerInstructions = opts.developerInstructions;
|
|
68537
|
+
}
|
|
68538
|
+
if (opts.model)
|
|
68539
|
+
commonParams.model = opts.model;
|
|
68540
|
+
if (threadConfig)
|
|
68541
|
+
commonParams.config = threadConfig;
|
|
68542
|
+
return commonParams;
|
|
68543
|
+
}
|
|
68294
68544
|
|
|
68295
68545
|
// ts/codex-agent/dist/thread-writer.js
|
|
68296
68546
|
function isThreadWriterConflict(err) {
|
|
@@ -68350,6 +68600,7 @@ function errToString5(err) {
|
|
|
68350
68600
|
}
|
|
68351
68601
|
|
|
68352
68602
|
// ts/codex-agent/dist/dispatch.js
|
|
68603
|
+
var NEW_SESSION_ENDED = "Codex turn ended by New Session";
|
|
68353
68604
|
var CodexAppServerAdapter = class {
|
|
68354
68605
|
opts;
|
|
68355
68606
|
inputLifecycleMode = "explicit";
|
|
@@ -68375,6 +68626,8 @@ var CodexAppServerAdapter = class {
|
|
|
68375
68626
|
* zombie dies: subprocess teardown.
|
|
68376
68627
|
*/
|
|
68377
68628
|
mainLaneQuarantined = false;
|
|
68629
|
+
/** Bumped by New Session: a dispatch still opening across it never starts its turn. */
|
|
68630
|
+
sessionEpoch = 0;
|
|
68378
68631
|
notificationTaps = /* @__PURE__ */ new Set();
|
|
68379
68632
|
instructionsRefresher;
|
|
68380
68633
|
stopping = false;
|
|
@@ -68466,7 +68719,7 @@ var CodexAppServerAdapter = class {
|
|
|
68466
68719
|
/**
|
|
68467
68720
|
* Replace the variables the agent's shell commands receive. They ride
|
|
68468
68721
|
* `shell_environment_policy.set` in thread-open params, and a thread that
|
|
68469
|
-
* is already open ignores a changed policy (probes/shell-env-0.
|
|
68722
|
+
* is already open ignores a changed policy (probes/shell-env-0.166.0.md), so
|
|
68470
68723
|
* a running app-server is restarted at the next safe point. A thread opened
|
|
68471
68724
|
* after this call — a fork — carries the new set without that restart (same
|
|
68472
68725
|
* record, S5). Re-sending the version already held changes nothing.
|
|
@@ -68609,6 +68862,7 @@ var CodexAppServerAdapter = class {
|
|
|
68609
68862
|
this.requestProcessRestart();
|
|
68610
68863
|
}
|
|
68611
68864
|
const log2 = this.opts.log ?? context2.log;
|
|
68865
|
+
const epoch = this.sessionEpoch;
|
|
68612
68866
|
let client;
|
|
68613
68867
|
let threadId;
|
|
68614
68868
|
let reconcileStalled = false;
|
|
@@ -68630,6 +68884,10 @@ var CodexAppServerAdapter = class {
|
|
|
68630
68884
|
}
|
|
68631
68885
|
break;
|
|
68632
68886
|
}
|
|
68887
|
+
if (epoch !== this.sessionEpoch) {
|
|
68888
|
+
yield { type: "error", message: NEW_SESSION_ENDED };
|
|
68889
|
+
return;
|
|
68890
|
+
}
|
|
68633
68891
|
const sink = new TurnSink(noteActivity);
|
|
68634
68892
|
this.setActiveTurn(threadId, sink, log2);
|
|
68635
68893
|
const groupKey = randomUUID7();
|
|
@@ -68855,26 +69113,8 @@ var CodexAppServerAdapter = class {
|
|
|
68855
69113
|
// only the display turns from the JSON-RPC response. Large persisted
|
|
68856
69114
|
// threads can otherwise produce an equally large one-line payload.
|
|
68857
69115
|
excludeTurns: true,
|
|
68858
|
-
|
|
68859
|
-
// does NOT inherit them from the parent thread — omitting them falls
|
|
68860
|
-
// back to codex defaults (on-request approval, workspace-write), and an
|
|
68861
|
-
// escalated command then emits an approval request the headless bridge
|
|
68862
|
-
// can only deny, killing the fork's ability to run privileged commands
|
|
68863
|
-
// the main session runs freely.
|
|
68864
|
-
approvalPolicy: normalizeApprovalPolicy(this.opts.approvalPolicy),
|
|
68865
|
-
sandbox: normalizeSandbox(this.opts.sandbox)
|
|
69116
|
+
...buildThreadOpenParams(this.opts, this.threadConfigOverrides())
|
|
68866
69117
|
};
|
|
68867
|
-
if (this.opts.useParallProvider) {
|
|
68868
|
-
forkParams.modelProvider = "parall";
|
|
68869
|
-
}
|
|
68870
|
-
if (this.opts.developerInstructions) {
|
|
68871
|
-
forkParams.developerInstructions = this.opts.developerInstructions;
|
|
68872
|
-
}
|
|
68873
|
-
if (this.opts.model)
|
|
68874
|
-
forkParams.model = this.opts.model;
|
|
68875
|
-
const threadConfig = this.threadConfigOverrides();
|
|
68876
|
-
if (threadConfig)
|
|
68877
|
-
forkParams.config = threadConfig;
|
|
68878
69118
|
const result = await client.sendRequest("thread/fork", forkParams);
|
|
68879
69119
|
const forkedThreadId = extractThreadId(result);
|
|
68880
69120
|
if (!forkedThreadId) {
|
|
@@ -68924,6 +69164,28 @@ var CodexAppServerAdapter = class {
|
|
|
68924
69164
|
(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)");
|
|
68925
69165
|
await this.stop();
|
|
68926
69166
|
}
|
|
69167
|
+
/**
|
|
69168
|
+
* New Session: the server has closed every session, so every running turn
|
|
69169
|
+
* (main, forks, subagent threads) ends with the app-server, as the Claude
|
|
69170
|
+
* bridge kills its CLIs. Forgetting only the main thread left the old turn
|
|
69171
|
+
* running: its reply still posted, and its next turn came back as an unknown
|
|
69172
|
+
* thread taken for a subagent.
|
|
69173
|
+
*/
|
|
69174
|
+
resetProcesses() {
|
|
69175
|
+
this.sessionEpoch++;
|
|
69176
|
+
this.restartRequested = false;
|
|
69177
|
+
this.failActiveTurns(NEW_SESSION_ENDED);
|
|
69178
|
+
return this.stop();
|
|
69179
|
+
}
|
|
69180
|
+
failActiveTurns(message) {
|
|
69181
|
+
for (const sink of this.activeTurns.values()) {
|
|
69182
|
+
sink.push({ kind: "error", message });
|
|
69183
|
+
sink.close();
|
|
69184
|
+
}
|
|
69185
|
+
this.activeTurns.clear();
|
|
69186
|
+
this.activeTurnIds.clear();
|
|
69187
|
+
this.injections.clear();
|
|
69188
|
+
}
|
|
68927
69189
|
async stop() {
|
|
68928
69190
|
this.stopping = true;
|
|
68929
69191
|
const proc = this.proc;
|
|
@@ -68944,13 +69206,7 @@ var CodexAppServerAdapter = class {
|
|
|
68944
69206
|
}
|
|
68945
69207
|
async ensureStarted(log2) {
|
|
68946
69208
|
if (this.client?.isDisposed()) {
|
|
68947
|
-
|
|
68948
|
-
activeSink.push({ kind: "error", message: "Codex app-server disposed; resetting adapter" });
|
|
68949
|
-
activeSink.close();
|
|
68950
|
-
}
|
|
68951
|
-
this.activeTurns.clear();
|
|
68952
|
-
this.activeTurnIds.clear();
|
|
68953
|
-
this.injections.clear();
|
|
69209
|
+
this.failActiveTurns("Codex app-server disposed; resetting adapter");
|
|
68954
69210
|
this.foreignThreads.dropAll("lost: Codex app-server disposed");
|
|
68955
69211
|
this.client = null;
|
|
68956
69212
|
this.proc = null;
|
|
@@ -68994,7 +69250,7 @@ var CodexAppServerAdapter = class {
|
|
|
68994
69250
|
if (!env.PRLL_WIKI_MOUNT_ROOT?.trim()) {
|
|
68995
69251
|
env.PRLL_WIKI_MOUNT_ROOT = this.opts.workspaceDir;
|
|
68996
69252
|
}
|
|
68997
|
-
const proc = this.appServers.start(this.opts.codexBin,
|
|
69253
|
+
const proc = this.appServers.start(this.opts.codexBin, appServerArgs(this.opts), {
|
|
68998
69254
|
cwd: this.opts.workspaceDir,
|
|
68999
69255
|
env,
|
|
69000
69256
|
log: log2 ?? this.opts.log
|
|
@@ -69045,13 +69301,7 @@ var CodexAppServerAdapter = class {
|
|
|
69045
69301
|
logger?.warn?.(`app-server subprocess ${reason}; resetting adapter`);
|
|
69046
69302
|
}
|
|
69047
69303
|
this.client?.dispose(err ?? new Error(`app-server ${reason}`));
|
|
69048
|
-
|
|
69049
|
-
activeSink.push({ kind: "error", message: `Codex app-server ${reason}` });
|
|
69050
|
-
activeSink.close();
|
|
69051
|
-
}
|
|
69052
|
-
this.activeTurns.clear();
|
|
69053
|
-
this.activeTurnIds.clear();
|
|
69054
|
-
this.injections.clear();
|
|
69304
|
+
this.failActiveTurns(`Codex app-server ${reason}`);
|
|
69055
69305
|
this.resumedThreadIds.clear();
|
|
69056
69306
|
this.instructionsRefresher.clearThreadState();
|
|
69057
69307
|
this.mainLaneQuarantined = false;
|
|
@@ -69062,21 +69312,7 @@ var CodexAppServerAdapter = class {
|
|
|
69062
69312
|
this.initialized = false;
|
|
69063
69313
|
}
|
|
69064
69314
|
async openThread(client, opts) {
|
|
69065
|
-
const commonParams =
|
|
69066
|
-
approvalPolicy: normalizeApprovalPolicy(this.opts.approvalPolicy)
|
|
69067
|
-
};
|
|
69068
|
-
if (this.opts.useParallProvider) {
|
|
69069
|
-
commonParams.modelProvider = "parall";
|
|
69070
|
-
}
|
|
69071
|
-
commonParams.sandbox = normalizeSandbox(this.opts.sandbox);
|
|
69072
|
-
if (this.opts.developerInstructions) {
|
|
69073
|
-
commonParams.developerInstructions = this.opts.developerInstructions;
|
|
69074
|
-
}
|
|
69075
|
-
if (this.opts.model)
|
|
69076
|
-
commonParams.model = this.opts.model;
|
|
69077
|
-
const threadConfig = this.threadConfigOverrides();
|
|
69078
|
-
if (threadConfig)
|
|
69079
|
-
commonParams.config = threadConfig;
|
|
69315
|
+
const commonParams = buildThreadOpenParams(this.opts, this.threadConfigOverrides());
|
|
69080
69316
|
const method = opts.resumeId ? "thread/resume" : "thread/start";
|
|
69081
69317
|
const params = opts.resumeId ? {
|
|
69082
69318
|
threadId: opts.resumeId,
|
|
@@ -69763,6 +69999,7 @@ async function main() {
|
|
|
69763
69999
|
alignSecrets: (version) => configRefresh.alignSecrets(version),
|
|
69764
70000
|
onNewSession: () => {
|
|
69765
70001
|
sessionManager.clearMainThread();
|
|
70002
|
+
return adapter.resetProcesses();
|
|
69766
70003
|
},
|
|
69767
70004
|
onSessionStale: () => {
|
|
69768
70005
|
sessionManager.clearMainThread();
|