@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
package/bundle/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"built_at": "2026-11-
|
|
2
|
+
"version": "1.89.0",
|
|
3
|
+
"built_at": "2026-11-08T16:19:52.603Z",
|
|
4
4
|
"min_node_version": "20.0.0",
|
|
5
5
|
"files": {
|
|
6
6
|
"bb-browser-daemon.js": {
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
"size": 18
|
|
17
17
|
},
|
|
18
18
|
"parall-browser-pod.js": {
|
|
19
|
-
"sha256": "
|
|
20
|
-
"size":
|
|
19
|
+
"sha256": "d41cde2f55a9afcce97398d7b28957dff3442dabfef7dec5edc2dc3faf77c12e",
|
|
20
|
+
"size": 3099977
|
|
21
21
|
},
|
|
22
22
|
"parall-channel-exec.js": {
|
|
23
|
-
"sha256": "
|
|
24
|
-
"size":
|
|
23
|
+
"sha256": "3a39c2ced4f4e8ecf9283b77efa028bd28fa08d61e8d2e3f20700c0a4f61e792",
|
|
24
|
+
"size": 9223
|
|
25
25
|
},
|
|
26
26
|
"parall-claude-agent.js": {
|
|
27
|
-
"sha256": "
|
|
28
|
-
"size":
|
|
27
|
+
"sha256": "60630e27a2f348baae02ee115f46801bf96dc7a4395e7ff4f91a5e1880e775b7",
|
|
28
|
+
"size": 3122373
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "83a114155f499abc0f5d21263ba2e5cc72200453f4fec5fcf91db928383f9b7c",
|
|
32
|
+
"size": 3131811
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "a298fe713bab71985c84da51fca74df3187d8a9eeb9148b02d2f88b86a81c850",
|
|
36
|
+
"size": 3299330
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "eXpLBvnj1YH0jbnporXDrUv8IwBFIYTXtxjH4BXiCKI1wKY5MvBv7VscFYhantXfPo9ynnxRwhFjHo/xiHC8CA=="
|
|
44
44
|
}
|
|
@@ -64393,16 +64393,24 @@ function attachmentEndpoints(apiBase) {
|
|
|
64393
64393
|
|
|
64394
64394
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
64395
64395
|
var clipConnectionEndpoints = {
|
|
64396
|
+
CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
|
|
64397
|
+
EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
|
|
64396
64398
|
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
64397
64399
|
CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
|
|
64398
64400
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
64399
64401
|
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
64400
|
-
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}
|
|
64402
|
+
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
|
|
64403
|
+
/** The caller's own (person-owned) connections; login session only. */
|
|
64404
|
+
ORG_MY_CONNECTIONS: (orgId) => `/api/v1/orgs/${orgId}/me/connections`,
|
|
64405
|
+
ORG_MY_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/me/connections/${connId}`,
|
|
64406
|
+
ORG_MY_CONNECTION_AGENT: (orgId, connId, agentId) => `/api/v1/orgs/${orgId}/me/connections/${connId}/agents/${agentId}`
|
|
64401
64407
|
};
|
|
64402
64408
|
|
|
64403
64409
|
// ts/sdk/dist/edge-endpoints.js
|
|
64404
64410
|
var API_BASE = "/api/v1";
|
|
64405
64411
|
var edgeEndpoints = {
|
|
64412
|
+
ORG_HOSTED_CREATION_GRANT: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}`,
|
|
64413
|
+
ORG_HOSTED_CREATION_EVENTS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/edge/profile-creation-grants/${encodeURIComponent(agentId)}/events`,
|
|
64406
64414
|
ORG_EDGE_PROFILE_ACCESS: (orgId, edgeId, profileName) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/access`,
|
|
64407
64415
|
ORG_EDGE: (orgId) => `${API_BASE}/orgs/${orgId}/edge`,
|
|
64408
64416
|
ORG_EDGE_CONNECT: (orgId) => `${API_BASE}/orgs/${orgId}/edge/connect`,
|
|
@@ -64450,6 +64458,7 @@ function teamInviteEndpoints(apiBase) {
|
|
|
64450
64458
|
TEAM_INVITE_TEAMS: (token) => `${apiBase}/team-invites/${seg(token)}/teams`,
|
|
64451
64459
|
TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
|
|
64452
64460
|
TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
|
|
64461
|
+
TEAM_INVITE_REQUEST_INTAKE: (token, requestId) => `${apiBase}/team-invites/${seg(token)}/requests/${seg(requestId)}/intake`,
|
|
64453
64462
|
TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
|
|
64454
64463
|
TEAM_INVITE_REQUEST_RETRY: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/retry`
|
|
64455
64464
|
};
|
|
@@ -64507,6 +64516,30 @@ function teamEndpoints(apiBase) {
|
|
|
64507
64516
|
};
|
|
64508
64517
|
}
|
|
64509
64518
|
|
|
64519
|
+
// ts/sdk/dist/secret-endpoints.js
|
|
64520
|
+
function secretEndpoints(apiBase) {
|
|
64521
|
+
return {
|
|
64522
|
+
AGENT_SECRETS: (orgId, agentId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
64523
|
+
AGENT_SECRET: (orgId, agentId, secretId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
64524
|
+
ORG_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/secrets`,
|
|
64525
|
+
ORG_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}`,
|
|
64526
|
+
/** The caller's own secrets (login session only, like the rest up to the runtime's). */
|
|
64527
|
+
ORG_MY_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/me/secrets`,
|
|
64528
|
+
ORG_MY_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}`,
|
|
64529
|
+
ORG_MY_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}/grants/${agentId}`,
|
|
64530
|
+
TEAM_SECRETS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets`,
|
|
64531
|
+
TEAM_SECRET: (orgId, teamId, secretId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}`,
|
|
64532
|
+
TEAM_SECRET_GRANT: (orgId, teamId, secretId, agentId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}/grants/${agentId}`,
|
|
64533
|
+
/** `agentId` holds `ownerAgentId`'s own secret. */
|
|
64534
|
+
AGENT_SECRET_GRANT: (orgId, ownerAgentId, secretId, agentId) => `${apiBase}/orgs/${orgId}/agents/${ownerAgentId}/secrets/${secretId}/grants/${agentId}`,
|
|
64535
|
+
ORG_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}/grants/${agentId}`,
|
|
64536
|
+
/** The runtime's own routes, with the agent's key. */
|
|
64537
|
+
AGENT_ME_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets`,
|
|
64538
|
+
AGENT_ME_SECRETS_CATALOG: (orgId, q2) => `${apiBase}/orgs/${orgId}/agents/me/secrets/catalog${q2 ? `?q=${encodeURIComponent(q2)}` : ""}`,
|
|
64539
|
+
AGENT_ME_SECRETS_APPLIED: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets/applied`
|
|
64540
|
+
};
|
|
64541
|
+
}
|
|
64542
|
+
|
|
64510
64543
|
// ts/sdk/dist/constants.js
|
|
64511
64544
|
var API_BASE2 = "/api/v1";
|
|
64512
64545
|
var WIKI_BASE = "/wiki/v1";
|
|
@@ -64590,6 +64623,8 @@ var ENDPOINTS = {
|
|
|
64590
64623
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
64591
64624
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
64592
64625
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
64626
|
+
CHAT_BOOKMARKS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks`,
|
|
64627
|
+
CHAT_BOOKMARK: (orgId, chatId, bookmarkId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks/${bookmarkId}`,
|
|
64593
64628
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
64594
64629
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
64595
64630
|
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
@@ -64632,14 +64667,7 @@ var ENDPOINTS = {
|
|
|
64632
64667
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
64633
64668
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
64634
64669
|
AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
|
|
64635
|
-
|
|
64636
|
-
AGENT_SECRETS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
64637
|
-
AGENT_SECRET: (orgId, agentId, secretId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
64638
|
-
ORG_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/secrets`,
|
|
64639
|
-
ORG_SECRET: (orgId, secretId) => `${API_BASE2}/orgs/${orgId}/secrets/${secretId}`,
|
|
64640
|
-
AGENT_ME_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets`,
|
|
64641
|
-
AGENT_ME_SECRETS_CATALOG: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/catalog`,
|
|
64642
|
-
AGENT_ME_SECRETS_APPLIED: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/applied`,
|
|
64670
|
+
...secretEndpoints(API_BASE2),
|
|
64643
64671
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
64644
64672
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
64645
64673
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -65824,6 +65852,23 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65824
65852
|
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
65825
65853
|
}
|
|
65826
65854
|
// ---- Clip connections ----
|
|
65855
|
+
/** Missing keys are unknown/hidden; present empty arrays are known empty. */
|
|
65856
|
+
async listClipMCPSummaries(orgId, clipIds) {
|
|
65857
|
+
return this.readDiscoverySummaries(ENDPOINTS.CLIP_MCP_SUMMARIES(orgId), "clip_ids", clipIds);
|
|
65858
|
+
}
|
|
65859
|
+
async listEdgeProfileSummaries(orgId, edgeIds) {
|
|
65860
|
+
return this.readDiscoverySummaries(ENDPOINTS.EDGE_PROFILE_SUMMARIES(orgId), "edge_ids", edgeIds);
|
|
65861
|
+
}
|
|
65862
|
+
async readDiscoverySummaries(endpoint, key, ids) {
|
|
65863
|
+
const data2 = {};
|
|
65864
|
+
const unique = [...new Set(ids)];
|
|
65865
|
+
for (let offset = 0; offset < unique.length; offset += 500) {
|
|
65866
|
+
const batch = unique.slice(offset, offset + 500);
|
|
65867
|
+
const response = await this.request("GET", `${endpoint}?${key}=${encodeURIComponent(batch.join(","))}`);
|
|
65868
|
+
Object.assign(data2, response.data);
|
|
65869
|
+
}
|
|
65870
|
+
return { data: data2 };
|
|
65871
|
+
}
|
|
65827
65872
|
async listClipConnections(orgId, clipId) {
|
|
65828
65873
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
65829
65874
|
}
|
|
@@ -65858,10 +65903,42 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65858
65903
|
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
65859
65904
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
65860
65905
|
}
|
|
65906
|
+
// ---- The caller's own connections (login session only) ----
|
|
65907
|
+
/** The caller's person-owned connections, optionally for one connector. */
|
|
65908
|
+
async listMyConnections(orgId, clipId) {
|
|
65909
|
+
return this.request("GET", ENDPOINTS.ORG_MY_CONNECTIONS(orgId), void 0, clipId ? { clip_id: clipId } : void 0);
|
|
65910
|
+
}
|
|
65911
|
+
/** Stop one agent from using one of the caller's connections. */
|
|
65912
|
+
async revokeMyConnectionAgent(orgId, connId, agentId) {
|
|
65913
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION_AGENT(orgId, connId, agentId));
|
|
65914
|
+
}
|
|
65915
|
+
/** Disconnect one of the caller's connections: the connection, its credential and grants go. */
|
|
65916
|
+
async deleteMyConnection(orgId, connId) {
|
|
65917
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
|
|
65918
|
+
}
|
|
65919
|
+
};
|
|
65920
|
+
|
|
65921
|
+
// ts/sdk/dist/hosted-profile-creation.js
|
|
65922
|
+
var HostedProfileCreationClient = class extends ClipConnectionClient {
|
|
65923
|
+
getHostedProfileCreationAccess(orgId, agentId) {
|
|
65924
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId));
|
|
65925
|
+
}
|
|
65926
|
+
changeHostedProfileCreationGrant(orgId, agentId, change, key, revoke = false) {
|
|
65927
|
+
return this.request(revoke ? "DELETE" : "PUT", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId), change, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
65928
|
+
}
|
|
65929
|
+
getHostedProfileCreationEvents(orgId, agentId, before) {
|
|
65930
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_EVENTS(orgId, agentId), void 0, {
|
|
65931
|
+
before
|
|
65932
|
+
});
|
|
65933
|
+
}
|
|
65934
|
+
/** A lost response is recovered with the same name and key, never a new key. */
|
|
65935
|
+
createAuthorizedHostedProfile(orgId, name, key) {
|
|
65936
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), { name, placement: "hosted" }, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
65937
|
+
}
|
|
65861
65938
|
};
|
|
65862
65939
|
|
|
65863
65940
|
// ts/sdk/dist/browser-profile-client.js
|
|
65864
|
-
var BrowserProfileClient = class extends
|
|
65941
|
+
var BrowserProfileClient = class extends HostedProfileCreationClient {
|
|
65865
65942
|
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
65866
65943
|
* callers with a known Profile can execute without this discovery chain. */
|
|
65867
65944
|
async listBrowserUseProfiles(orgId, profileId) {
|
|
@@ -66045,7 +66122,10 @@ var UserPreferencesClient = class extends OrgAccentClient {
|
|
|
66045
66122
|
|
|
66046
66123
|
// ts/sdk/dist/secret-client.js
|
|
66047
66124
|
var AgentSecretClient = class extends UserPreferencesClient {
|
|
66048
|
-
/**
|
|
66125
|
+
/**
|
|
66126
|
+
* One agent's own secrets and those it is given — the org's, a team's,
|
|
66127
|
+
* another user's — each as this agent holds it.
|
|
66128
|
+
*/
|
|
66049
66129
|
async getAgentSecrets(orgId, agentId) {
|
|
66050
66130
|
return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
|
|
66051
66131
|
}
|
|
@@ -66071,13 +66151,58 @@ var AgentSecretClient = class extends UserPreferencesClient {
|
|
|
66071
66151
|
async deleteOrgSecret(orgId, secretId) {
|
|
66072
66152
|
await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
|
|
66073
66153
|
}
|
|
66154
|
+
/** The caller's own secrets and who each is given to. Only that person. */
|
|
66155
|
+
async getMySecrets(orgId) {
|
|
66156
|
+
return this.request("GET", ENDPOINTS.ORG_MY_SECRETS(orgId));
|
|
66157
|
+
}
|
|
66158
|
+
async createMySecret(orgId, data2) {
|
|
66159
|
+
return this.request("POST", ENDPOINTS.ORG_MY_SECRETS(orgId), data2);
|
|
66160
|
+
}
|
|
66161
|
+
async updateMySecret(orgId, secretId, data2) {
|
|
66162
|
+
return this.request("PATCH", ENDPOINTS.ORG_MY_SECRET(orgId, secretId), data2);
|
|
66163
|
+
}
|
|
66164
|
+
async deleteMySecret(orgId, secretId) {
|
|
66165
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET(orgId, secretId));
|
|
66166
|
+
}
|
|
66167
|
+
/** A team's secrets and who each is given to: its human managers and org admins. */
|
|
66168
|
+
async getTeamSecrets(orgId, teamId) {
|
|
66169
|
+
return this.request("GET", ENDPOINTS.TEAM_SECRETS(orgId, teamId));
|
|
66170
|
+
}
|
|
66171
|
+
async createTeamSecret(orgId, teamId, data2) {
|
|
66172
|
+
return this.request("POST", ENDPOINTS.TEAM_SECRETS(orgId, teamId), data2);
|
|
66173
|
+
}
|
|
66174
|
+
async updateTeamSecret(orgId, teamId, secretId, data2) {
|
|
66175
|
+
return this.request("PATCH", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId), data2);
|
|
66176
|
+
}
|
|
66177
|
+
async deleteTeamSecret(orgId, teamId, secretId) {
|
|
66178
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId));
|
|
66179
|
+
}
|
|
66180
|
+
// Taking one agent off a secret, whether it holds it for long or once. A
|
|
66181
|
+
// grant the agent does not hold answers 404 SECRET_GRANT_NOT_FOUND.
|
|
66182
|
+
async revokeOrgSecretGrant(orgId, secretId, agentId) {
|
|
66183
|
+
await this.request("DELETE", ENDPOINTS.ORG_SECRET_GRANT(orgId, secretId, agentId));
|
|
66184
|
+
}
|
|
66185
|
+
async revokeMySecretGrant(orgId, secretId, agentId) {
|
|
66186
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET_GRANT(orgId, secretId, agentId));
|
|
66187
|
+
}
|
|
66188
|
+
/** Takes `agentId` off one of `ownerAgentId`'s own secrets. */
|
|
66189
|
+
async revokeAgentSecretGrant(orgId, ownerAgentId, secretId, agentId) {
|
|
66190
|
+
await this.request("DELETE", ENDPOINTS.AGENT_SECRET_GRANT(orgId, ownerAgentId, secretId, agentId));
|
|
66191
|
+
}
|
|
66192
|
+
async revokeTeamSecretGrant(orgId, teamId, secretId, agentId) {
|
|
66193
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET_GRANT(orgId, teamId, secretId, agentId));
|
|
66194
|
+
}
|
|
66074
66195
|
/** Agent runtime only: the values to export to the agent's commands. */
|
|
66075
66196
|
async getMyAgentSecrets(orgId) {
|
|
66076
66197
|
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
|
|
66077
66198
|
}
|
|
66078
|
-
/**
|
|
66079
|
-
|
|
66080
|
-
|
|
66199
|
+
/**
|
|
66200
|
+
* Agent only: the names it holds or may ask to use, its pending requests,
|
|
66201
|
+
* and the teams it may ask in. `q` keeps the keys whose name, purpose or
|
|
66202
|
+
* owner's name contains it, ignoring case.
|
|
66203
|
+
*/
|
|
66204
|
+
async getMyAgentSecretCatalog(orgId, q2) {
|
|
66205
|
+
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId, q2));
|
|
66081
66206
|
}
|
|
66082
66207
|
/** Agent runtime only: confirm the version the commands now run with. */
|
|
66083
66208
|
async ackMyAgentSecrets(orgId, version) {
|
|
@@ -66163,8 +66288,21 @@ var AgentCallerScopeClient = class extends ChatTeamGrantClient {
|
|
|
66163
66288
|
}
|
|
66164
66289
|
};
|
|
66165
66290
|
|
|
66291
|
+
// ts/sdk/dist/agent-team-only-client.js
|
|
66292
|
+
var agentTeamOnlyPath = (orgId) => `${API_BASE2}/orgs/${orgId}/agent-team-only`;
|
|
66293
|
+
var AgentTeamOnlyClient = class extends AgentCallerScopeClient {
|
|
66294
|
+
/** The switch, and what turning it on changes. Owners and admins only. */
|
|
66295
|
+
async getAgentTeamOnly(orgId) {
|
|
66296
|
+
return this.request("GET", agentTeamOnlyPath(orgId));
|
|
66297
|
+
}
|
|
66298
|
+
/** Turn the switch on or off. Owners and admins only. */
|
|
66299
|
+
async setAgentTeamOnly(orgId, enabled) {
|
|
66300
|
+
return this.request("PUT", agentTeamOnlyPath(orgId), { enabled });
|
|
66301
|
+
}
|
|
66302
|
+
};
|
|
66303
|
+
|
|
66166
66304
|
// ts/sdk/dist/agent-owning-team-client.js
|
|
66167
|
-
var AgentOwningTeamClient = class extends
|
|
66305
|
+
var AgentOwningTeamClient = class extends AgentTeamOnlyClient {
|
|
66168
66306
|
/**
|
|
66169
66307
|
* Moves the agent to another Team, or to the organization with `team_id`
|
|
66170
66308
|
* null. Pass the Team you saw as `expected_team_id`: someone else's change
|
|
@@ -66210,6 +66348,8 @@ var BillingClient = class extends TeamGraphClient {
|
|
|
66210
66348
|
const params = new URLSearchParams();
|
|
66211
66349
|
params.set("start_date", opts.start_date);
|
|
66212
66350
|
params.set("end_date", opts.end_date);
|
|
66351
|
+
if (opts.timezone !== void 0)
|
|
66352
|
+
params.set("timezone", opts.timezone);
|
|
66213
66353
|
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
|
|
66214
66354
|
}
|
|
66215
66355
|
async getUsageHeatmap(orgId, opts, accountId) {
|
|
@@ -66375,6 +66515,12 @@ var TeamInviteClient = class extends BillingClient {
|
|
|
66375
66515
|
async getMyTeamInviteRequest(token) {
|
|
66376
66516
|
return this.request("GET", ENDPOINTS.TEAM_INVITE_REQUEST_MINE(token));
|
|
66377
66517
|
}
|
|
66518
|
+
/** The requester answers the link's questions for a request that already
|
|
66519
|
+
* finished (no new request). `TEAM_INVITE_INTAKE_INVALID` (400) names the
|
|
66520
|
+
* key in `details.key`. */
|
|
66521
|
+
async submitTeamInviteIntake(token, requestId, intake) {
|
|
66522
|
+
return this.request("PUT", ENDPOINTS.TEAM_INVITE_REQUEST_INTAKE(token, requestId), { intake });
|
|
66523
|
+
}
|
|
66378
66524
|
/** The requester withdraws a request that is still waiting. */
|
|
66379
66525
|
async cancelTeamInviteRequest(requestId) {
|
|
66380
66526
|
return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUEST_CANCEL(requestId));
|
|
@@ -66389,8 +66535,20 @@ function errorCode(err) {
|
|
|
66389
66535
|
return typeof err === "object" && err !== null ? err.code : void 0;
|
|
66390
66536
|
}
|
|
66391
66537
|
|
|
66538
|
+
// ts/sdk/dist/member-field-client.js
|
|
66539
|
+
var MemberFieldClient = class extends TeamInviteClient {
|
|
66540
|
+
/**
|
|
66541
|
+
* The member changes the value of one of their own fields: signed in only
|
|
66542
|
+
* (an API key gets 403 `JWT_REQUIRED`), 1–200 characters on one line.
|
|
66543
|
+
* Answers with the whole profile and its fields.
|
|
66544
|
+
*/
|
|
66545
|
+
async updateMemberField(orgId, userId, key, value) {
|
|
66546
|
+
return this.request("PUT", `${ENDPOINTS.ORG_MEMBER_PROFILE(orgId, userId)}/fields/${encodeURIComponent(key)}`, { value });
|
|
66547
|
+
}
|
|
66548
|
+
};
|
|
66549
|
+
|
|
66392
66550
|
// ts/sdk/dist/wiki-page-share-client.js
|
|
66393
|
-
var WikiPageShareClient = class extends
|
|
66551
|
+
var WikiPageShareClient = class extends MemberFieldClient {
|
|
66394
66552
|
async listWikiPageShares(orgId, wikiId, path7) {
|
|
66395
66553
|
const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), void 0, { path: path7 });
|
|
66396
66554
|
return res.data;
|
|
@@ -66411,6 +66569,20 @@ var WikiPageShareClient = class extends TeamInviteClient {
|
|
|
66411
66569
|
}
|
|
66412
66570
|
};
|
|
66413
66571
|
|
|
66572
|
+
// ts/sdk/dist/chat-bookmarks-client.js
|
|
66573
|
+
var ChatBookmarksClient = class extends WikiPageShareClient {
|
|
66574
|
+
async getChatBookmarks(orgId, chatId) {
|
|
66575
|
+
return this.request("GET", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId));
|
|
66576
|
+
}
|
|
66577
|
+
/** `ref` is a `prll://` reference or an http(s) URL. */
|
|
66578
|
+
async addChatBookmark(orgId, chatId, ref) {
|
|
66579
|
+
return this.request("POST", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId), { ref });
|
|
66580
|
+
}
|
|
66581
|
+
async removeChatBookmark(orgId, chatId, bookmarkId) {
|
|
66582
|
+
return this.request("DELETE", ENDPOINTS.CHAT_BOOKMARK(orgId, chatId, bookmarkId));
|
|
66583
|
+
}
|
|
66584
|
+
};
|
|
66585
|
+
|
|
66414
66586
|
// ts/sdk/dist/wiki-changeset.js
|
|
66415
66587
|
function normalizeWikiChangeset(changeset) {
|
|
66416
66588
|
return {
|
|
@@ -66446,7 +66618,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
66446
66618
|
detectedRuntimes
|
|
66447
66619
|
};
|
|
66448
66620
|
}
|
|
66449
|
-
var ParallClient = class _ParallClient extends
|
|
66621
|
+
var ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
66450
66622
|
baseUrl;
|
|
66451
66623
|
wikiBaseUrl;
|
|
66452
66624
|
token;
|
|
@@ -66894,7 +67066,7 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
66894
67066
|
async updateOrgMember(orgId, userId, role) {
|
|
66895
67067
|
return this.request("PATCH", ENDPOINTS.ORG_MEMBER(orgId, userId), { role });
|
|
66896
67068
|
}
|
|
66897
|
-
/** Org-scoped public profile (title / description) of any active member. */
|
|
67069
|
+
/** Org-scoped public profile (title / description) and fields of any active member. */
|
|
66898
67070
|
async getMemberProfile(orgId, userId) {
|
|
66899
67071
|
return this.request("GET", ENDPOINTS.ORG_MEMBER_PROFILE(orgId, userId));
|
|
66900
67072
|
}
|
|
@@ -68742,7 +68914,7 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
68742
68914
|
return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
68743
68915
|
}
|
|
68744
68916
|
/** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
|
|
68745
|
-
* org-shared Cloud Profile
|
|
68917
|
+
* org-shared Cloud Profile; Agents need a separate creation grant and key. */
|
|
68746
68918
|
async registerEdgeDevice(orgId, input, options) {
|
|
68747
68919
|
const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
|
|
68748
68920
|
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
|
|
@@ -68987,10 +69159,11 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
68987
69159
|
async listClipMCPConnections(orgId, clipId) {
|
|
68988
69160
|
return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
|
|
68989
69161
|
}
|
|
68990
|
-
/** Create one MCP credential slot and its connection. */
|
|
68991
69162
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
68992
69163
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
68993
|
-
|
|
69164
|
+
// A card may start OAuth: allow discovery (30s) and persistence like
|
|
69165
|
+
// createClipMCPOAuthConnection.
|
|
69166
|
+
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
68994
69167
|
});
|
|
68995
69168
|
}
|
|
68996
69169
|
/** Delete one MCP config and its paired connection. */
|
|
@@ -14,6 +14,11 @@ var VENDOR_CLIS = [
|
|
|
14
14
|
channel: "feishu",
|
|
15
15
|
command: "lark-cli",
|
|
16
16
|
install: "npm i -g @larksuite/cli && npx skills add larksuite/cli -y -g",
|
|
17
|
+
// Before 1.0.97, im +messages-send / +messages-reply took `--markdown
|
|
18
|
+
// @file` (the form the official skill teaches) as the literal text
|
|
19
|
+
// "@file", sent it and reported success
|
|
20
|
+
// (https://github.com/larksuite/cli/pull/2760).
|
|
21
|
+
minVersion: "1.0.97",
|
|
17
22
|
ownedEnv: [
|
|
18
23
|
// injected
|
|
19
24
|
"LARKSUITE_CLI_APP_ID",
|
|
@@ -202,14 +207,41 @@ function escapeCmdArgument(arg) {
|
|
|
202
207
|
function escapeCmdCommand(command) {
|
|
203
208
|
return command.replace(CMD_META_CHARS, "^$1");
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function spawnReal(realBin, args, options) {
|
|
206
211
|
const isWinScript = process.platform === "win32" && /\.(cmd|bat)$/i.test(realBin);
|
|
207
|
-
|
|
212
|
+
return isWinScript ? spawnSync(process.env.comspec || "cmd.exe", [
|
|
208
213
|
"/d",
|
|
209
214
|
"/s",
|
|
210
215
|
"/c",
|
|
211
216
|
`"${[escapeCmdCommand(realBin), ...args.map(escapeCmdArgument)].join(" ")}"`
|
|
212
|
-
], {
|
|
217
|
+
], { ...options, windowsVerbatimArguments: true }) : spawnSync(realBin, args, options);
|
|
218
|
+
}
|
|
219
|
+
function parseVersion(text) {
|
|
220
|
+
const m = /(\d+)\.(\d+)\.(\d+)/.exec(text);
|
|
221
|
+
return m ? m.slice(1).map(Number) : null;
|
|
222
|
+
}
|
|
223
|
+
function olderThan(a, b) {
|
|
224
|
+
for (let i = 0; i < 3; i++)
|
|
225
|
+
if (a[i] !== b[i])
|
|
226
|
+
return a[i] < b[i];
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
function requireMinVersion(cli, realBin) {
|
|
230
|
+
if (!cli.minVersion)
|
|
231
|
+
return;
|
|
232
|
+
const env = { ...process.env };
|
|
233
|
+
dropOwned(env, cli.ownedEnv);
|
|
234
|
+
const probe = spawnReal(realBin, ["--version"], { env, stdio: "pipe", timeout: 1e4 });
|
|
235
|
+
const found = probe.status === 0 ? parseVersion(String(probe.stdout)) : null;
|
|
236
|
+
const floor = parseVersion(cli.minVersion);
|
|
237
|
+
if (!found || !floor || !olderThan(found, floor))
|
|
238
|
+
return;
|
|
239
|
+
fail(cli.command, `${cli.command} ${found.join(".")} is older than ${cli.minVersion}, the oldest version this platform runs. Upgrade it with:
|
|
240
|
+
${cli.install}
|
|
241
|
+
then rerun the command.`, 1);
|
|
242
|
+
}
|
|
243
|
+
function runReal(realBin, args, env, prefix) {
|
|
244
|
+
const result = spawnReal(realBin, args, { env, stdio: "inherit" });
|
|
213
245
|
if (result.error) {
|
|
214
246
|
fail(prefix, `failed to run ${realBin}: ${String(result.error)}`, 1);
|
|
215
247
|
}
|
|
@@ -239,6 +271,7 @@ async function main() {
|
|
|
239
271
|
fail(prefix, `the ${bin} binary is not installed. Install it once with:
|
|
240
272
|
${cli.install}`, 127);
|
|
241
273
|
}
|
|
274
|
+
requireMinVersion(cli, real);
|
|
242
275
|
runReal(real, rest, buildChildEnv(cli, minted), prefix);
|
|
243
276
|
}
|
|
244
277
|
var invokedPath = process.argv[1];
|