@parall/daemon 1.86.0 → 1.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/manifest.json +13 -13
- package/bundle/parall-browser-pod.js +195 -20
- package/bundle/parall-channel-exec.js +36 -3
- package/bundle/parall-claude-agent.js +809 -516
- package/bundle/parall-codex-agent.js +319 -87
- package/bundle/parall-daemon.js +318 -23
- package/package.json +6 -6
package/bundle/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"built_at": "2026-11-
|
|
2
|
+
"version": "1.88.0",
|
|
3
|
+
"built_at": "2026-11-06T07:42:58.684Z",
|
|
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": "cea2a3c31d289d29c15e705d77dd818a852a5a6ebcdbc2f8ad837fcd82296848",
|
|
20
|
+
"size": 3098450
|
|
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": "6ee29682564704e6b2f95282f3f95a6f0064042629dc0e462b4a5331223f680c",
|
|
28
|
+
"size": 3119568
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "f9ae6b2199fd5d686b1d0fdeffa122d23ef02af5fe88be17d9413c20ce528a19",
|
|
32
|
+
"size": 3129006
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "dd9f53aefca892872fc30299f3146d5e9f262a1570457fb8c97f5733059135d3",
|
|
36
|
+
"size": 3296610
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "85ff1I9bg8t/qJHWAGWNPfACOENEoGHI6aRY/kDaAyecOnkRosHMQLnVK3dP89Mtwl9PirnGOSnE2FSgTMhwAg=="
|
|
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`,
|
|
@@ -64447,6 +64455,7 @@ function teamInviteEndpoints(apiBase) {
|
|
|
64447
64455
|
TEMPLATE_INVITE_REQUESTS: (orgId, templateId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests`,
|
|
64448
64456
|
TEMPLATE_INVITE_REQUEST_DECIDE: (orgId, templateId, requestId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests/${seg(requestId)}/decide`,
|
|
64449
64457
|
TEAM_INVITE: (token) => `${apiBase}/team-invites/${seg(token)}`,
|
|
64458
|
+
TEAM_INVITE_TEAMS: (token) => `${apiBase}/team-invites/${seg(token)}/teams`,
|
|
64450
64459
|
TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
|
|
64451
64460
|
TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
|
|
64452
64461
|
TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
|
|
@@ -64506,11 +64515,38 @@ function teamEndpoints(apiBase) {
|
|
|
64506
64515
|
};
|
|
64507
64516
|
}
|
|
64508
64517
|
|
|
64518
|
+
// ts/sdk/dist/secret-endpoints.js
|
|
64519
|
+
function secretEndpoints(apiBase) {
|
|
64520
|
+
return {
|
|
64521
|
+
AGENT_SECRETS: (orgId, agentId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
64522
|
+
AGENT_SECRET: (orgId, agentId, secretId) => `${apiBase}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
64523
|
+
ORG_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/secrets`,
|
|
64524
|
+
ORG_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}`,
|
|
64525
|
+
/** The caller's own secrets (login session only, like the rest up to the runtime's). */
|
|
64526
|
+
ORG_MY_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/me/secrets`,
|
|
64527
|
+
ORG_MY_SECRET: (orgId, secretId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}`,
|
|
64528
|
+
ORG_MY_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/me/secrets/${secretId}/grants/${agentId}`,
|
|
64529
|
+
TEAM_SECRETS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets`,
|
|
64530
|
+
TEAM_SECRET: (orgId, teamId, secretId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}`,
|
|
64531
|
+
TEAM_SECRET_GRANT: (orgId, teamId, secretId, agentId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/secrets/${secretId}/grants/${agentId}`,
|
|
64532
|
+
/** `agentId` holds `ownerAgentId`'s own secret. */
|
|
64533
|
+
AGENT_SECRET_GRANT: (orgId, ownerAgentId, secretId, agentId) => `${apiBase}/orgs/${orgId}/agents/${ownerAgentId}/secrets/${secretId}/grants/${agentId}`,
|
|
64534
|
+
ORG_SECRET_GRANT: (orgId, secretId, agentId) => `${apiBase}/orgs/${orgId}/secrets/${secretId}/grants/${agentId}`,
|
|
64535
|
+
/** The runtime's own routes, with the agent's key. */
|
|
64536
|
+
AGENT_ME_SECRETS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets`,
|
|
64537
|
+
AGENT_ME_SECRETS_CATALOG: (orgId, q2) => `${apiBase}/orgs/${orgId}/agents/me/secrets/catalog${q2 ? `?q=${encodeURIComponent(q2)}` : ""}`,
|
|
64538
|
+
AGENT_ME_SECRETS_APPLIED: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/secrets/applied`
|
|
64539
|
+
};
|
|
64540
|
+
}
|
|
64541
|
+
|
|
64509
64542
|
// ts/sdk/dist/constants.js
|
|
64510
64543
|
var API_BASE2 = "/api/v1";
|
|
64511
64544
|
var WIKI_BASE = "/wiki/v1";
|
|
64512
64545
|
var CLIP_BASE = "/clip/v1";
|
|
64513
64546
|
var ENDPOINTS = {
|
|
64547
|
+
WIKI_PAGE_SHARES: (orgId, wikiId) => `/wiki/v1/orgs/${orgId}/wikis/${wikiId}/page-shares`,
|
|
64548
|
+
WIKI_PAGE_SHARE_CANDIDATES: (orgId, wikiId) => `/wiki/v1/orgs/${orgId}/wikis/${wikiId}/page-share-candidates`,
|
|
64549
|
+
WIKI_SHARED_PAGE: (shareId) => `/wiki/v1/shared-pages/${encodeURIComponent(shareId)}`,
|
|
64514
64550
|
// Auth
|
|
64515
64551
|
AUTH_REGISTER: `${API_BASE2}/auth/register`,
|
|
64516
64552
|
AUTH_LOGIN: `${API_BASE2}/auth/login`,
|
|
@@ -64586,6 +64622,8 @@ var ENDPOINTS = {
|
|
|
64586
64622
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
64587
64623
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
64588
64624
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
64625
|
+
CHAT_BOOKMARKS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks`,
|
|
64626
|
+
CHAT_BOOKMARK: (orgId, chatId, bookmarkId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/bookmarks/${bookmarkId}`,
|
|
64589
64627
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
64590
64628
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
64591
64629
|
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
@@ -64628,14 +64666,7 @@ var ENDPOINTS = {
|
|
|
64628
64666
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
64629
64667
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
64630
64668
|
AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
|
|
64631
|
-
|
|
64632
|
-
AGENT_SECRETS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets`,
|
|
64633
|
-
AGENT_SECRET: (orgId, agentId, secretId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/secrets/${secretId}`,
|
|
64634
|
-
ORG_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/secrets`,
|
|
64635
|
-
ORG_SECRET: (orgId, secretId) => `${API_BASE2}/orgs/${orgId}/secrets/${secretId}`,
|
|
64636
|
-
AGENT_ME_SECRETS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets`,
|
|
64637
|
-
AGENT_ME_SECRETS_CATALOG: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/catalog`,
|
|
64638
|
-
AGENT_ME_SECRETS_APPLIED: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/secrets/applied`,
|
|
64669
|
+
...secretEndpoints(API_BASE2),
|
|
64639
64670
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
64640
64671
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
64641
64672
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -65820,6 +65851,23 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65820
65851
|
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
65821
65852
|
}
|
|
65822
65853
|
// ---- Clip connections ----
|
|
65854
|
+
/** Missing keys are unknown/hidden; present empty arrays are known empty. */
|
|
65855
|
+
async listClipMCPSummaries(orgId, clipIds) {
|
|
65856
|
+
return this.readDiscoverySummaries(ENDPOINTS.CLIP_MCP_SUMMARIES(orgId), "clip_ids", clipIds);
|
|
65857
|
+
}
|
|
65858
|
+
async listEdgeProfileSummaries(orgId, edgeIds) {
|
|
65859
|
+
return this.readDiscoverySummaries(ENDPOINTS.EDGE_PROFILE_SUMMARIES(orgId), "edge_ids", edgeIds);
|
|
65860
|
+
}
|
|
65861
|
+
async readDiscoverySummaries(endpoint, key, ids) {
|
|
65862
|
+
const data2 = {};
|
|
65863
|
+
const unique = [...new Set(ids)];
|
|
65864
|
+
for (let offset = 0; offset < unique.length; offset += 500) {
|
|
65865
|
+
const batch = unique.slice(offset, offset + 500);
|
|
65866
|
+
const response = await this.request("GET", `${endpoint}?${key}=${encodeURIComponent(batch.join(","))}`);
|
|
65867
|
+
Object.assign(data2, response.data);
|
|
65868
|
+
}
|
|
65869
|
+
return { data: data2 };
|
|
65870
|
+
}
|
|
65823
65871
|
async listClipConnections(orgId, clipId) {
|
|
65824
65872
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
65825
65873
|
}
|
|
@@ -65854,10 +65902,42 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65854
65902
|
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
65855
65903
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
65856
65904
|
}
|
|
65905
|
+
// ---- The caller's own connections (login session only) ----
|
|
65906
|
+
/** The caller's person-owned connections, optionally for one connector. */
|
|
65907
|
+
async listMyConnections(orgId, clipId) {
|
|
65908
|
+
return this.request("GET", ENDPOINTS.ORG_MY_CONNECTIONS(orgId), void 0, clipId ? { clip_id: clipId } : void 0);
|
|
65909
|
+
}
|
|
65910
|
+
/** Stop one agent from using one of the caller's connections. */
|
|
65911
|
+
async revokeMyConnectionAgent(orgId, connId, agentId) {
|
|
65912
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION_AGENT(orgId, connId, agentId));
|
|
65913
|
+
}
|
|
65914
|
+
/** Disconnect one of the caller's connections: the connection, its credential and grants go. */
|
|
65915
|
+
async deleteMyConnection(orgId, connId) {
|
|
65916
|
+
return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
|
|
65917
|
+
}
|
|
65918
|
+
};
|
|
65919
|
+
|
|
65920
|
+
// ts/sdk/dist/hosted-profile-creation.js
|
|
65921
|
+
var HostedProfileCreationClient = class extends ClipConnectionClient {
|
|
65922
|
+
getHostedProfileCreationAccess(orgId, agentId) {
|
|
65923
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId));
|
|
65924
|
+
}
|
|
65925
|
+
changeHostedProfileCreationGrant(orgId, agentId, change, key, revoke = false) {
|
|
65926
|
+
return this.request(revoke ? "DELETE" : "PUT", ENDPOINTS.ORG_HOSTED_CREATION_GRANT(orgId, agentId), change, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
65927
|
+
}
|
|
65928
|
+
getHostedProfileCreationEvents(orgId, agentId, before) {
|
|
65929
|
+
return this.request("GET", ENDPOINTS.ORG_HOSTED_CREATION_EVENTS(orgId, agentId), void 0, {
|
|
65930
|
+
before
|
|
65931
|
+
});
|
|
65932
|
+
}
|
|
65933
|
+
/** A lost response is recovered with the same name and key, never a new key. */
|
|
65934
|
+
createAuthorizedHostedProfile(orgId, name, key) {
|
|
65935
|
+
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), { name, placement: "hosted" }, void 0, false, { headers: { "Idempotency-Key": key } });
|
|
65936
|
+
}
|
|
65857
65937
|
};
|
|
65858
65938
|
|
|
65859
65939
|
// ts/sdk/dist/browser-profile-client.js
|
|
65860
|
-
var BrowserProfileClient = class extends
|
|
65940
|
+
var BrowserProfileClient = class extends HostedProfileCreationClient {
|
|
65861
65941
|
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
65862
65942
|
* callers with a known Profile can execute without this discovery chain. */
|
|
65863
65943
|
async listBrowserUseProfiles(orgId, profileId) {
|
|
@@ -66041,7 +66121,10 @@ var UserPreferencesClient = class extends OrgAccentClient {
|
|
|
66041
66121
|
|
|
66042
66122
|
// ts/sdk/dist/secret-client.js
|
|
66043
66123
|
var AgentSecretClient = class extends UserPreferencesClient {
|
|
66044
|
-
/**
|
|
66124
|
+
/**
|
|
66125
|
+
* One agent's own secrets and those it is given — the org's, a team's,
|
|
66126
|
+
* another user's — each as this agent holds it.
|
|
66127
|
+
*/
|
|
66045
66128
|
async getAgentSecrets(orgId, agentId) {
|
|
66046
66129
|
return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
|
|
66047
66130
|
}
|
|
@@ -66067,13 +66150,58 @@ var AgentSecretClient = class extends UserPreferencesClient {
|
|
|
66067
66150
|
async deleteOrgSecret(orgId, secretId) {
|
|
66068
66151
|
await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
|
|
66069
66152
|
}
|
|
66153
|
+
/** The caller's own secrets and who each is given to. Only that person. */
|
|
66154
|
+
async getMySecrets(orgId) {
|
|
66155
|
+
return this.request("GET", ENDPOINTS.ORG_MY_SECRETS(orgId));
|
|
66156
|
+
}
|
|
66157
|
+
async createMySecret(orgId, data2) {
|
|
66158
|
+
return this.request("POST", ENDPOINTS.ORG_MY_SECRETS(orgId), data2);
|
|
66159
|
+
}
|
|
66160
|
+
async updateMySecret(orgId, secretId, data2) {
|
|
66161
|
+
return this.request("PATCH", ENDPOINTS.ORG_MY_SECRET(orgId, secretId), data2);
|
|
66162
|
+
}
|
|
66163
|
+
async deleteMySecret(orgId, secretId) {
|
|
66164
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET(orgId, secretId));
|
|
66165
|
+
}
|
|
66166
|
+
/** A team's secrets and who each is given to: its human managers and org admins. */
|
|
66167
|
+
async getTeamSecrets(orgId, teamId) {
|
|
66168
|
+
return this.request("GET", ENDPOINTS.TEAM_SECRETS(orgId, teamId));
|
|
66169
|
+
}
|
|
66170
|
+
async createTeamSecret(orgId, teamId, data2) {
|
|
66171
|
+
return this.request("POST", ENDPOINTS.TEAM_SECRETS(orgId, teamId), data2);
|
|
66172
|
+
}
|
|
66173
|
+
async updateTeamSecret(orgId, teamId, secretId, data2) {
|
|
66174
|
+
return this.request("PATCH", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId), data2);
|
|
66175
|
+
}
|
|
66176
|
+
async deleteTeamSecret(orgId, teamId, secretId) {
|
|
66177
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET(orgId, teamId, secretId));
|
|
66178
|
+
}
|
|
66179
|
+
// Taking one agent off a secret, whether it holds it for long or once. A
|
|
66180
|
+
// grant the agent does not hold answers 404 SECRET_GRANT_NOT_FOUND.
|
|
66181
|
+
async revokeOrgSecretGrant(orgId, secretId, agentId) {
|
|
66182
|
+
await this.request("DELETE", ENDPOINTS.ORG_SECRET_GRANT(orgId, secretId, agentId));
|
|
66183
|
+
}
|
|
66184
|
+
async revokeMySecretGrant(orgId, secretId, agentId) {
|
|
66185
|
+
await this.request("DELETE", ENDPOINTS.ORG_MY_SECRET_GRANT(orgId, secretId, agentId));
|
|
66186
|
+
}
|
|
66187
|
+
/** Takes `agentId` off one of `ownerAgentId`'s own secrets. */
|
|
66188
|
+
async revokeAgentSecretGrant(orgId, ownerAgentId, secretId, agentId) {
|
|
66189
|
+
await this.request("DELETE", ENDPOINTS.AGENT_SECRET_GRANT(orgId, ownerAgentId, secretId, agentId));
|
|
66190
|
+
}
|
|
66191
|
+
async revokeTeamSecretGrant(orgId, teamId, secretId, agentId) {
|
|
66192
|
+
await this.request("DELETE", ENDPOINTS.TEAM_SECRET_GRANT(orgId, teamId, secretId, agentId));
|
|
66193
|
+
}
|
|
66070
66194
|
/** Agent runtime only: the values to export to the agent's commands. */
|
|
66071
66195
|
async getMyAgentSecrets(orgId) {
|
|
66072
66196
|
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
|
|
66073
66197
|
}
|
|
66074
|
-
/**
|
|
66075
|
-
|
|
66076
|
-
|
|
66198
|
+
/**
|
|
66199
|
+
* Agent only: the names it holds or may ask to use, its pending requests,
|
|
66200
|
+
* and the teams it may ask in. `q` keeps the keys whose name, purpose or
|
|
66201
|
+
* owner's name contains it, ignoring case.
|
|
66202
|
+
*/
|
|
66203
|
+
async getMyAgentSecretCatalog(orgId, q2) {
|
|
66204
|
+
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS_CATALOG(orgId, q2));
|
|
66077
66205
|
}
|
|
66078
66206
|
/** Agent runtime only: confirm the version the commands now run with. */
|
|
66079
66207
|
async ackMyAgentSecrets(orgId, version) {
|
|
@@ -66206,6 +66334,8 @@ var BillingClient = class extends TeamGraphClient {
|
|
|
66206
66334
|
const params = new URLSearchParams();
|
|
66207
66335
|
params.set("start_date", opts.start_date);
|
|
66208
66336
|
params.set("end_date", opts.end_date);
|
|
66337
|
+
if (opts.timezone !== void 0)
|
|
66338
|
+
params.set("timezone", opts.timezone);
|
|
66209
66339
|
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
|
|
66210
66340
|
}
|
|
66211
66341
|
async getUsageHeatmap(orgId, opts, accountId) {
|
|
@@ -66353,8 +66483,16 @@ var TeamInviteClient = class extends BillingClient {
|
|
|
66353
66483
|
async getTeamInvite(token) {
|
|
66354
66484
|
return this.request("GET", ENDPOINTS.TEAM_INVITE(token));
|
|
66355
66485
|
}
|
|
66356
|
-
/**
|
|
66357
|
-
*
|
|
66486
|
+
/** Signed in: the org's Teams to pick from on a launch link, the caller's
|
|
66487
|
+
* own first, each marked with whether it has (or is getting) the squad and
|
|
66488
|
+
* which Team account would pay. */
|
|
66489
|
+
async getTeamInviteTeams(token) {
|
|
66490
|
+
const res = await this.request("GET", ENDPOINTS.TEAM_INVITE_TEAMS(token));
|
|
66491
|
+
return res.teams ?? [];
|
|
66492
|
+
}
|
|
66493
|
+
/** Ask for a team through a link: pick an existing one (`team_id`) or name
|
|
66494
|
+
* a new one. Submitting again returns the caller's open request instead of
|
|
66495
|
+
* making another. */
|
|
66358
66496
|
async createTeamInviteRequest(token, body) {
|
|
66359
66497
|
return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUESTS(token), body);
|
|
66360
66498
|
}
|
|
@@ -66377,6 +66515,42 @@ function errorCode(err) {
|
|
|
66377
66515
|
return typeof err === "object" && err !== null ? err.code : void 0;
|
|
66378
66516
|
}
|
|
66379
66517
|
|
|
66518
|
+
// ts/sdk/dist/wiki-page-share-client.js
|
|
66519
|
+
var WikiPageShareClient = class extends TeamInviteClient {
|
|
66520
|
+
async listWikiPageShares(orgId, wikiId, path7) {
|
|
66521
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), void 0, { path: path7 });
|
|
66522
|
+
return res.data;
|
|
66523
|
+
}
|
|
66524
|
+
async createWikiPageShare(orgId, wikiId, path7, userId) {
|
|
66525
|
+
return this.request("POST", ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId), { user_id: userId }, { path: path7 });
|
|
66526
|
+
}
|
|
66527
|
+
async revokeWikiPageShare(orgId, wikiId, path7, shareId) {
|
|
66528
|
+
return this.request("DELETE", `${ENDPOINTS.WIKI_PAGE_SHARES(orgId, wikiId)}/${encodeURIComponent(shareId)}`, void 0, { path: path7 });
|
|
66529
|
+
}
|
|
66530
|
+
async listWikiShareCandidates(orgId, wikiId, path7, q2 = "") {
|
|
66531
|
+
const res = await this.request("GET", ENDPOINTS.WIKI_PAGE_SHARE_CANDIDATES(orgId, wikiId), void 0, { path: path7, q: q2 });
|
|
66532
|
+
return res.data;
|
|
66533
|
+
}
|
|
66534
|
+
/** No path or ref override: the server always reads the shared page on main. */
|
|
66535
|
+
async getSharedWikiPage(shareId, opts) {
|
|
66536
|
+
return this.request("GET", ENDPOINTS.WIKI_SHARED_PAGE(shareId), void 0, void 0, false, opts);
|
|
66537
|
+
}
|
|
66538
|
+
};
|
|
66539
|
+
|
|
66540
|
+
// ts/sdk/dist/chat-bookmarks-client.js
|
|
66541
|
+
var ChatBookmarksClient = class extends WikiPageShareClient {
|
|
66542
|
+
async getChatBookmarks(orgId, chatId) {
|
|
66543
|
+
return this.request("GET", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId));
|
|
66544
|
+
}
|
|
66545
|
+
/** `ref` is a `prll://` reference or an http(s) URL. */
|
|
66546
|
+
async addChatBookmark(orgId, chatId, ref) {
|
|
66547
|
+
return this.request("POST", ENDPOINTS.CHAT_BOOKMARKS(orgId, chatId), { ref });
|
|
66548
|
+
}
|
|
66549
|
+
async removeChatBookmark(orgId, chatId, bookmarkId) {
|
|
66550
|
+
return this.request("DELETE", ENDPOINTS.CHAT_BOOKMARK(orgId, chatId, bookmarkId));
|
|
66551
|
+
}
|
|
66552
|
+
};
|
|
66553
|
+
|
|
66380
66554
|
// ts/sdk/dist/wiki-changeset.js
|
|
66381
66555
|
function normalizeWikiChangeset(changeset) {
|
|
66382
66556
|
return {
|
|
@@ -66412,7 +66586,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
66412
66586
|
detectedRuntimes
|
|
66413
66587
|
};
|
|
66414
66588
|
}
|
|
66415
|
-
var ParallClient = class _ParallClient extends
|
|
66589
|
+
var ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
66416
66590
|
baseUrl;
|
|
66417
66591
|
wikiBaseUrl;
|
|
66418
66592
|
token;
|
|
@@ -68708,7 +68882,7 @@ var ParallClient = class _ParallClient extends TeamInviteClient {
|
|
|
68708
68882
|
return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
68709
68883
|
}
|
|
68710
68884
|
/** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
|
|
68711
|
-
* org-shared Cloud Profile
|
|
68885
|
+
* org-shared Cloud Profile; Agents need a separate creation grant and key. */
|
|
68712
68886
|
async registerEdgeDevice(orgId, input, options) {
|
|
68713
68887
|
const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
|
|
68714
68888
|
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
|
|
@@ -68953,10 +69127,11 @@ var ParallClient = class _ParallClient extends TeamInviteClient {
|
|
|
68953
69127
|
async listClipMCPConnections(orgId, clipId) {
|
|
68954
69128
|
return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
|
|
68955
69129
|
}
|
|
68956
|
-
/** Create one MCP credential slot and its connection. */
|
|
68957
69130
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
68958
69131
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
68959
|
-
|
|
69132
|
+
// A card may start OAuth: allow discovery (30s) and persistence like
|
|
69133
|
+
// createClipMCPOAuthConnection.
|
|
69134
|
+
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
68960
69135
|
});
|
|
68961
69136
|
}
|
|
68962
69137
|
/** 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];
|