@parall/daemon 1.87.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 +159 -18
- package/bundle/parall-channel-exec.js +36 -3
- package/bundle/parall-claude-agent.js +773 -514
- package/bundle/parall-codex-agent.js +283 -85
- package/bundle/parall-daemon.js +259 -20
- 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`,
|
|
@@ -52269,6 +52277,30 @@ function teamEndpoints(apiBase) {
|
|
|
52269
52277
|
};
|
|
52270
52278
|
}
|
|
52271
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
|
+
|
|
52272
52304
|
// ts/sdk/dist/constants.js
|
|
52273
52305
|
var API_BASE2 = "/api/v1";
|
|
52274
52306
|
var WIKI_BASE = "/wiki/v1";
|
|
@@ -52352,6 +52384,8 @@ var ENDPOINTS = {
|
|
|
52352
52384
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
52353
52385
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
52354
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}`,
|
|
52355
52389
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
52356
52390
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
52357
52391
|
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
@@ -52394,14 +52428,7 @@ var ENDPOINTS = {
|
|
|
52394
52428
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
52395
52429
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
52396
52430
|
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`,
|
|
52431
|
+
...secretEndpoints(API_BASE2),
|
|
52405
52432
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
52406
52433
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
52407
52434
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -52859,6 +52886,7 @@ var WS_EVENTS = {
|
|
|
52859
52886
|
TYPING_UPDATE: "typing.update",
|
|
52860
52887
|
CHAT_UPDATE: "chat.update",
|
|
52861
52888
|
CHAT_DELETED: "chat.deleted",
|
|
52889
|
+
CHAT_BOOKMARKS_UPDATED: "chat.bookmarks.updated",
|
|
52862
52890
|
APPROVAL_UPDATE: "approval.update",
|
|
52863
52891
|
// deprecated
|
|
52864
52892
|
CARD_UPDATE: "card.update",
|
|
@@ -53691,6 +53719,23 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53691
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 });
|
|
53692
53720
|
}
|
|
53693
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
|
+
}
|
|
53694
53739
|
async listClipConnections(orgId, clipId) {
|
|
53695
53740
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
53696
53741
|
}
|
|
@@ -53725,10 +53770,42 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53725
53770
|
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
53726
53771
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
53727
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
|
+
}
|
|
53728
53805
|
};
|
|
53729
53806
|
|
|
53730
53807
|
// ts/sdk/dist/browser-profile-client.js
|
|
53731
|
-
var BrowserProfileClient = class extends
|
|
53808
|
+
var BrowserProfileClient = class extends HostedProfileCreationClient {
|
|
53732
53809
|
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
53733
53810
|
* callers with a known Profile can execute without this discovery chain. */
|
|
53734
53811
|
async listBrowserUseProfiles(orgId, profileId) {
|
|
@@ -53912,7 +53989,10 @@ var UserPreferencesClient = class extends OrgAccentClient {
|
|
|
53912
53989
|
|
|
53913
53990
|
// ts/sdk/dist/secret-client.js
|
|
53914
53991
|
var AgentSecretClient = class extends UserPreferencesClient {
|
|
53915
|
-
/**
|
|
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
|
+
*/
|
|
53916
53996
|
async getAgentSecrets(orgId, agentId) {
|
|
53917
53997
|
return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
|
|
53918
53998
|
}
|
|
@@ -53938,13 +54018,58 @@ var AgentSecretClient = class extends UserPreferencesClient {
|
|
|
53938
54018
|
async deleteOrgSecret(orgId, secretId) {
|
|
53939
54019
|
await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
|
|
53940
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
|
+
}
|
|
53941
54062
|
/** Agent runtime only: the values to export to the agent's commands. */
|
|
53942
54063
|
async getMyAgentSecrets(orgId) {
|
|
53943
54064
|
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
|
|
53944
54065
|
}
|
|
53945
|
-
/**
|
|
53946
|
-
|
|
53947
|
-
|
|
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));
|
|
53948
54073
|
}
|
|
53949
54074
|
/** Agent runtime only: confirm the version the commands now run with. */
|
|
53950
54075
|
async ackMyAgentSecrets(orgId, version) {
|
|
@@ -54077,6 +54202,8 @@ var BillingClient = class extends TeamGraphClient {
|
|
|
54077
54202
|
const params = new URLSearchParams();
|
|
54078
54203
|
params.set("start_date", opts.start_date);
|
|
54079
54204
|
params.set("end_date", opts.end_date);
|
|
54205
|
+
if (opts.timezone !== void 0)
|
|
54206
|
+
params.set("timezone", opts.timezone);
|
|
54080
54207
|
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
|
|
54081
54208
|
}
|
|
54082
54209
|
async getUsageHeatmap(orgId, opts, accountId) {
|
|
@@ -54278,6 +54405,20 @@ var WikiPageShareClient = class extends TeamInviteClient {
|
|
|
54278
54405
|
}
|
|
54279
54406
|
};
|
|
54280
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
|
+
|
|
54281
54422
|
// ts/sdk/dist/wiki-changeset.js
|
|
54282
54423
|
function normalizeWikiChangeset(changeset) {
|
|
54283
54424
|
return {
|
|
@@ -54313,7 +54454,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
54313
54454
|
detectedRuntimes
|
|
54314
54455
|
};
|
|
54315
54456
|
}
|
|
54316
|
-
var ParallClient = class _ParallClient extends
|
|
54457
|
+
var ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
54317
54458
|
baseUrl;
|
|
54318
54459
|
wikiBaseUrl;
|
|
54319
54460
|
token;
|
|
@@ -56609,7 +56750,7 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
56609
56750
|
return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
56610
56751
|
}
|
|
56611
56752
|
/** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
|
|
56612
|
-
* org-shared Cloud Profile
|
|
56753
|
+
* org-shared Cloud Profile; Agents need a separate creation grant and key. */
|
|
56613
56754
|
async registerEdgeDevice(orgId, input, options) {
|
|
56614
56755
|
const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
|
|
56615
56756
|
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
|
|
@@ -56854,10 +56995,11 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
56854
56995
|
async listClipMCPConnections(orgId, clipId) {
|
|
56855
56996
|
return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
|
|
56856
56997
|
}
|
|
56857
|
-
/** Create one MCP credential slot and its connection. */
|
|
56858
56998
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
56859
56999
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
56860
|
-
|
|
57000
|
+
// A card may start OAuth: allow discovery (30s) and persistence like
|
|
57001
|
+
// createClipMCPOAuthConnection.
|
|
57002
|
+
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
56861
57003
|
});
|
|
56862
57004
|
}
|
|
56863
57005
|
/** Delete one MCP config and its paired connection. */
|
|
@@ -57725,6 +57867,11 @@ var VENDOR_CLIS = [
|
|
|
57725
57867
|
channel: "feishu",
|
|
57726
57868
|
command: "lark-cli",
|
|
57727
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",
|
|
57728
57875
|
ownedEnv: [
|
|
57729
57876
|
// injected
|
|
57730
57877
|
"LARKSUITE_CLI_APP_ID",
|
|
@@ -63810,11 +63957,14 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
|
|
|
63810
63957
|
|
|
63811
63958
|
\u8FD0\u884C \`parall browser profiles --json\`\uFF0C\u4ECE\u53EF\u8BBF\u95EE\u5217\u8868\u6309\u8D26\u53F7\u540D\u79F0\u9009\u62E9 Profile\u3002
|
|
63812
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
|
|
63813
|
-
\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
|
|
63814
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
|
|
63815
63964
|
\`parall approvals request --action browser.profile.authorize --resource prll://<ebp_id> --title "Request browser profile access" --chat prll://<cht_id>\`
|
|
63816
63965
|
\u4EBA approve \u540E\u4F60\u81EA\u52A8\u83B7\u5F97\u8BE5 Profile \u7684\u5168\u90E8\u64CD\u4F5C\u6743\u9650\u3002
|
|
63817
|
-
- **\
|
|
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
|
|
63818
63968
|
\u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
|
|
63819
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
|
|
63820
63970
|
|
|
@@ -63822,6 +63972,19 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
|
|
|
63822
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
|
|
63823
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
|
|
63824
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
|
+
|
|
63825
63988
|
## \u793A\u4F8B\uFF1A\u6253\u5F00\u9875\u9762\uFF0C\u8BFB\u53D6\u6807\u9898\uFF0C\u7559\u7ED9\u7528\u6237\u67E5\u770B
|
|
63826
63989
|
|
|
63827
63990
|
\u4E0B\u9762\u5C16\u62EC\u53F7\u987B\u66FF\u6362\u4E3A\u5B9E\u9645\u8FD4\u56DE\u503C\uFF0C\u4E0D\u8981\u7167\u6284\u3002
|
|
@@ -63958,6 +64121,16 @@ parall messages list prll://cht_xxx # Read chat message history
|
|
|
63958
64121
|
parall messages list prll://cht_xxx --since 2026-01-01 # Only messages at/after a date (RFC3339 or YYYY-MM-DD)
|
|
63959
64122
|
\`\`\`
|
|
63960
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
|
+
|
|
63961
64134
|
## Org-Context Search
|
|
63962
64135
|
|
|
63963
64136
|
Before deciding or starting non-trivial work, search the org's real history \u2014
|
|
@@ -65099,7 +65272,7 @@ bound to the connector, and the connection is what your access is granted on.
|
|
|
65099
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
|
|
65100
65273
|
- \`CLIP_AGENT_NOT_ALLOWED\` / \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\` mean a
|
|
65101
65274
|
human has restricted who may run this connector (or through which account);
|
|
65102
|
-
|
|
65275
|
+
you cannot grant it to yourself \u2014 ask on a card (next section).
|
|
65103
65276
|
- Waiting on a cloud profile is handled by the CLI: \`EDGE_ACTIVATING\` (cold
|
|
65104
65277
|
start), \`EDGE_BUSY\` (another exec is running) and
|
|
65105
65278
|
\`EDGE_CONCURRENCY_LIMIT\` (org at capacity) are all guaranteed-unexecuted
|
|
@@ -65108,6 +65281,24 @@ bound to the connector, and the connection is what your access is granted on.
|
|
|
65108
65281
|
fails already spent that budget \u2014 report the error, do not blind-retry in
|
|
65109
65282
|
a loop.
|
|
65110
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
|
+
|
|
65111
65302
|
## MCP connectors (remote tool servers)
|
|
65112
65303
|
|
|
65113
65304
|
A connection with target \`mcp\` routes to a remote MCP server; the command
|
|
@@ -65125,7 +65316,7 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65125
65316
|
|
|
65126
65317
|
- \`connector connections\` marks MCP rows with their auth mode, \`credential_set\`
|
|
65127
65318
|
/ \`oauth_status\` and \`tool_count\` \u2014 a \`needs_reauth\` or credential-less
|
|
65128
|
-
row will refuse exec until
|
|
65319
|
+
row will refuse exec until someone signs in again; ask on a card (above).
|
|
65129
65320
|
- \`--connection\` is REQUIRED to exec an MCP connection, exactly like every
|
|
65130
65321
|
other target. The alias tells you WHICH account you act as \u2014 always name
|
|
65131
65322
|
it.
|
|
@@ -65142,17 +65333,16 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65142
65333
|
or MCP is off for this deployment \u2014 ask an org admin; retrying won't help.
|
|
65143
65334
|
- \`MCP_OAUTH_REAUTH_REQUIRED\` = that connection's authorization is no longer
|
|
65144
65335
|
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.
|
|
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.
|
|
65150
65339
|
- \`MCP_AUTH_FAILED\` = the MCP server refused this request with this
|
|
65151
65340
|
connection's credentials \u2014 nothing ran; don't retry as-is.
|
|
65152
65341
|
\`details.reason\` \`insufficient_scope\`: this account may not do that \u2014 use
|
|
65153
65342
|
a connection with the needed access, or ask an org admin to review its
|
|
65154
65343
|
permissions. \`credential_rejected\`: the saved credential is no longer
|
|
65155
|
-
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.
|
|
65156
65346
|
- \`MCP_SERVER_UNREACHABLE\` = the MCP server (or its OAuth token endpoint)
|
|
65157
65347
|
could not be reached \u2014 nothing ran; safe to retry after a short wait.
|
|
65158
65348
|
- \`OUTCOME_UNKNOWN\` follows the rule below: dispatched and MAY HAVE
|
|
@@ -65166,11 +65356,11 @@ parall connector exec <connector> <tool> [json-args] --connection <ccn_|alias>
|
|
|
65166
65356
|
|
|
65167
65357
|
## Behavior rules
|
|
65168
65358
|
|
|
65169
|
-
- An authorization error
|
|
65170
|
-
\`CLIP_AGENT_CONNECTION_NOT_ALLOWED
|
|
65171
|
-
|
|
65172
|
-
an org admin to grant the
|
|
65173
|
-
|
|
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.
|
|
65174
65364
|
- If the target device is offline or the call times out, report that
|
|
65175
65365
|
plainly; do not queue, and never fabricate a result for a run that errored.
|
|
65176
65366
|
- **\`OUTCOME_UNKNOWN\` is never retryable.** It means the command was
|
|
@@ -65592,7 +65782,7 @@ var SKILLS = [
|
|
|
65592
65782
|
},
|
|
65593
65783
|
{
|
|
65594
65784
|
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.",
|
|
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.",
|
|
65596
65786
|
content: PARALL_PLATFORM_SKILL
|
|
65597
65787
|
},
|
|
65598
65788
|
{
|
|
@@ -65617,7 +65807,7 @@ var SKILLS = [
|
|
|
65617
65807
|
},
|
|
65618
65808
|
{
|
|
65619
65809
|
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.",
|
|
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.",
|
|
65621
65811
|
content: PARALL_CLIPS_SKILL
|
|
65622
65812
|
},
|
|
65623
65813
|
{
|
|
@@ -66730,6 +66920,10 @@ function parseContentLength(value) {
|
|
|
66730
66920
|
import { execSync as execSync2, spawn } from "node:child_process";
|
|
66731
66921
|
import * as fs8 from "node:fs";
|
|
66732
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
|
+
}
|
|
66733
66927
|
function quoteWin32Arg(arg) {
|
|
66734
66928
|
if (!/[\s"&|^<>()]/.test(arg))
|
|
66735
66929
|
return arg;
|
|
@@ -68291,6 +68485,23 @@ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabil
|
|
|
68291
68485
|
}
|
|
68292
68486
|
return Object.keys(config).length > 0 ? config : void 0;
|
|
68293
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
|
+
}
|
|
68294
68505
|
|
|
68295
68506
|
// ts/codex-agent/dist/thread-writer.js
|
|
68296
68507
|
function isThreadWriterConflict(err) {
|
|
@@ -68350,6 +68561,7 @@ function errToString5(err) {
|
|
|
68350
68561
|
}
|
|
68351
68562
|
|
|
68352
68563
|
// ts/codex-agent/dist/dispatch.js
|
|
68564
|
+
var NEW_SESSION_ENDED = "Codex turn ended by New Session";
|
|
68353
68565
|
var CodexAppServerAdapter = class {
|
|
68354
68566
|
opts;
|
|
68355
68567
|
inputLifecycleMode = "explicit";
|
|
@@ -68375,6 +68587,8 @@ var CodexAppServerAdapter = class {
|
|
|
68375
68587
|
* zombie dies: subprocess teardown.
|
|
68376
68588
|
*/
|
|
68377
68589
|
mainLaneQuarantined = false;
|
|
68590
|
+
/** Bumped by New Session: a dispatch still opening across it never starts its turn. */
|
|
68591
|
+
sessionEpoch = 0;
|
|
68378
68592
|
notificationTaps = /* @__PURE__ */ new Set();
|
|
68379
68593
|
instructionsRefresher;
|
|
68380
68594
|
stopping = false;
|
|
@@ -68466,7 +68680,7 @@ var CodexAppServerAdapter = class {
|
|
|
68466
68680
|
/**
|
|
68467
68681
|
* Replace the variables the agent's shell commands receive. They ride
|
|
68468
68682
|
* `shell_environment_policy.set` in thread-open params, and a thread that
|
|
68469
|
-
* 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
|
|
68470
68684
|
* a running app-server is restarted at the next safe point. A thread opened
|
|
68471
68685
|
* after this call — a fork — carries the new set without that restart (same
|
|
68472
68686
|
* record, S5). Re-sending the version already held changes nothing.
|
|
@@ -68609,6 +68823,7 @@ var CodexAppServerAdapter = class {
|
|
|
68609
68823
|
this.requestProcessRestart();
|
|
68610
68824
|
}
|
|
68611
68825
|
const log2 = this.opts.log ?? context2.log;
|
|
68826
|
+
const epoch = this.sessionEpoch;
|
|
68612
68827
|
let client;
|
|
68613
68828
|
let threadId;
|
|
68614
68829
|
let reconcileStalled = false;
|
|
@@ -68630,6 +68845,10 @@ var CodexAppServerAdapter = class {
|
|
|
68630
68845
|
}
|
|
68631
68846
|
break;
|
|
68632
68847
|
}
|
|
68848
|
+
if (epoch !== this.sessionEpoch) {
|
|
68849
|
+
yield { type: "error", message: NEW_SESSION_ENDED };
|
|
68850
|
+
return;
|
|
68851
|
+
}
|
|
68633
68852
|
const sink = new TurnSink(noteActivity);
|
|
68634
68853
|
this.setActiveTurn(threadId, sink, log2);
|
|
68635
68854
|
const groupKey = randomUUID7();
|
|
@@ -68855,26 +69074,8 @@ var CodexAppServerAdapter = class {
|
|
|
68855
69074
|
// only the display turns from the JSON-RPC response. Large persisted
|
|
68856
69075
|
// threads can otherwise produce an equally large one-line payload.
|
|
68857
69076
|
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)
|
|
69077
|
+
...buildThreadOpenParams(this.opts, this.threadConfigOverrides())
|
|
68866
69078
|
};
|
|
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
69079
|
const result = await client.sendRequest("thread/fork", forkParams);
|
|
68879
69080
|
const forkedThreadId = extractThreadId(result);
|
|
68880
69081
|
if (!forkedThreadId) {
|
|
@@ -68924,6 +69125,28 @@ var CodexAppServerAdapter = class {
|
|
|
68924
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)");
|
|
68925
69126
|
await this.stop();
|
|
68926
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
|
+
}
|
|
68927
69150
|
async stop() {
|
|
68928
69151
|
this.stopping = true;
|
|
68929
69152
|
const proc = this.proc;
|
|
@@ -68944,13 +69167,7 @@ var CodexAppServerAdapter = class {
|
|
|
68944
69167
|
}
|
|
68945
69168
|
async ensureStarted(log2) {
|
|
68946
69169
|
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();
|
|
69170
|
+
this.failActiveTurns("Codex app-server disposed; resetting adapter");
|
|
68954
69171
|
this.foreignThreads.dropAll("lost: Codex app-server disposed");
|
|
68955
69172
|
this.client = null;
|
|
68956
69173
|
this.proc = null;
|
|
@@ -68994,7 +69211,7 @@ var CodexAppServerAdapter = class {
|
|
|
68994
69211
|
if (!env.PRLL_WIKI_MOUNT_ROOT?.trim()) {
|
|
68995
69212
|
env.PRLL_WIKI_MOUNT_ROOT = this.opts.workspaceDir;
|
|
68996
69213
|
}
|
|
68997
|
-
const proc = this.appServers.start(this.opts.codexBin,
|
|
69214
|
+
const proc = this.appServers.start(this.opts.codexBin, appServerArgs(this.opts), {
|
|
68998
69215
|
cwd: this.opts.workspaceDir,
|
|
68999
69216
|
env,
|
|
69000
69217
|
log: log2 ?? this.opts.log
|
|
@@ -69045,13 +69262,7 @@ var CodexAppServerAdapter = class {
|
|
|
69045
69262
|
logger?.warn?.(`app-server subprocess ${reason}; resetting adapter`);
|
|
69046
69263
|
}
|
|
69047
69264
|
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();
|
|
69265
|
+
this.failActiveTurns(`Codex app-server ${reason}`);
|
|
69055
69266
|
this.resumedThreadIds.clear();
|
|
69056
69267
|
this.instructionsRefresher.clearThreadState();
|
|
69057
69268
|
this.mainLaneQuarantined = false;
|
|
@@ -69062,21 +69273,7 @@ var CodexAppServerAdapter = class {
|
|
|
69062
69273
|
this.initialized = false;
|
|
69063
69274
|
}
|
|
69064
69275
|
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;
|
|
69276
|
+
const commonParams = buildThreadOpenParams(this.opts, this.threadConfigOverrides());
|
|
69080
69277
|
const method = opts.resumeId ? "thread/resume" : "thread/start";
|
|
69081
69278
|
const params = opts.resumeId ? {
|
|
69082
69279
|
threadId: opts.resumeId,
|
|
@@ -69763,6 +69960,7 @@ async function main() {
|
|
|
69763
69960
|
alignSecrets: (version) => configRefresh.alignSecrets(version),
|
|
69764
69961
|
onNewSession: () => {
|
|
69765
69962
|
sessionManager.clearMainThread();
|
|
69963
|
+
return adapter.resetProcesses();
|
|
69766
69964
|
},
|
|
69767
69965
|
onSessionStale: () => {
|
|
69768
69966
|
sessionManager.clearMainThread();
|