@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
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`,
|
|
@@ -64507,6 +64515,30 @@ function teamEndpoints(apiBase) {
|
|
|
64507
64515
|
};
|
|
64508
64516
|
}
|
|
64509
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
|
+
|
|
64510
64542
|
// ts/sdk/dist/constants.js
|
|
64511
64543
|
var API_BASE2 = "/api/v1";
|
|
64512
64544
|
var WIKI_BASE = "/wiki/v1";
|
|
@@ -64590,6 +64622,8 @@ var ENDPOINTS = {
|
|
|
64590
64622
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
64591
64623
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
64592
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}`,
|
|
64593
64627
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
64594
64628
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
64595
64629
|
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
@@ -64632,14 +64666,7 @@ var ENDPOINTS = {
|
|
|
64632
64666
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
64633
64667
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
64634
64668
|
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`,
|
|
64669
|
+
...secretEndpoints(API_BASE2),
|
|
64643
64670
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
64644
64671
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
64645
64672
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
@@ -65824,6 +65851,23 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65824
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 });
|
|
65825
65852
|
}
|
|
65826
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
|
+
}
|
|
65827
65871
|
async listClipConnections(orgId, clipId) {
|
|
65828
65872
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
65829
65873
|
}
|
|
@@ -65858,10 +65902,42 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65858
65902
|
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
65859
65903
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
65860
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
|
+
}
|
|
65861
65937
|
};
|
|
65862
65938
|
|
|
65863
65939
|
// ts/sdk/dist/browser-profile-client.js
|
|
65864
|
-
var BrowserProfileClient = class extends
|
|
65940
|
+
var BrowserProfileClient = class extends HostedProfileCreationClient {
|
|
65865
65941
|
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
65866
65942
|
* callers with a known Profile can execute without this discovery chain. */
|
|
65867
65943
|
async listBrowserUseProfiles(orgId, profileId) {
|
|
@@ -66045,7 +66121,10 @@ var UserPreferencesClient = class extends OrgAccentClient {
|
|
|
66045
66121
|
|
|
66046
66122
|
// ts/sdk/dist/secret-client.js
|
|
66047
66123
|
var AgentSecretClient = class extends UserPreferencesClient {
|
|
66048
|
-
/**
|
|
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
|
+
*/
|
|
66049
66128
|
async getAgentSecrets(orgId, agentId) {
|
|
66050
66129
|
return this.request("GET", ENDPOINTS.AGENT_SECRETS(orgId, agentId));
|
|
66051
66130
|
}
|
|
@@ -66071,13 +66150,58 @@ var AgentSecretClient = class extends UserPreferencesClient {
|
|
|
66071
66150
|
async deleteOrgSecret(orgId, secretId) {
|
|
66072
66151
|
await this.request("DELETE", ENDPOINTS.ORG_SECRET(orgId, secretId));
|
|
66073
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
|
+
}
|
|
66074
66194
|
/** Agent runtime only: the values to export to the agent's commands. */
|
|
66075
66195
|
async getMyAgentSecrets(orgId) {
|
|
66076
66196
|
return this.request("GET", ENDPOINTS.AGENT_ME_SECRETS(orgId));
|
|
66077
66197
|
}
|
|
66078
|
-
/**
|
|
66079
|
-
|
|
66080
|
-
|
|
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));
|
|
66081
66205
|
}
|
|
66082
66206
|
/** Agent runtime only: confirm the version the commands now run with. */
|
|
66083
66207
|
async ackMyAgentSecrets(orgId, version) {
|
|
@@ -66210,6 +66334,8 @@ var BillingClient = class extends TeamGraphClient {
|
|
|
66210
66334
|
const params = new URLSearchParams();
|
|
66211
66335
|
params.set("start_date", opts.start_date);
|
|
66212
66336
|
params.set("end_date", opts.end_date);
|
|
66337
|
+
if (opts.timezone !== void 0)
|
|
66338
|
+
params.set("timezone", opts.timezone);
|
|
66213
66339
|
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId, accountId)}?${params}`);
|
|
66214
66340
|
}
|
|
66215
66341
|
async getUsageHeatmap(orgId, opts, accountId) {
|
|
@@ -66411,6 +66537,20 @@ var WikiPageShareClient = class extends TeamInviteClient {
|
|
|
66411
66537
|
}
|
|
66412
66538
|
};
|
|
66413
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
|
+
|
|
66414
66554
|
// ts/sdk/dist/wiki-changeset.js
|
|
66415
66555
|
function normalizeWikiChangeset(changeset) {
|
|
66416
66556
|
return {
|
|
@@ -66446,7 +66586,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
66446
66586
|
detectedRuntimes
|
|
66447
66587
|
};
|
|
66448
66588
|
}
|
|
66449
|
-
var ParallClient = class _ParallClient extends
|
|
66589
|
+
var ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
66450
66590
|
baseUrl;
|
|
66451
66591
|
wikiBaseUrl;
|
|
66452
66592
|
token;
|
|
@@ -68742,7 +68882,7 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
68742
68882
|
return this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
68743
68883
|
}
|
|
68744
68884
|
/** Register an Edge. `placement` defaults to BYOC; hosted creates an idle,
|
|
68745
|
-
* org-shared Cloud Profile
|
|
68885
|
+
* org-shared Cloud Profile; Agents need a separate creation grant and key. */
|
|
68746
68886
|
async registerEdgeDevice(orgId, input, options) {
|
|
68747
68887
|
const headers = options?.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : void 0;
|
|
68748
68888
|
return this.request("POST", ENDPOINTS.ORG_EDGE(orgId), input, void 0, false, { headers });
|
|
@@ -68987,10 +69127,11 @@ var ParallClient = class _ParallClient extends WikiPageShareClient {
|
|
|
68987
69127
|
async listClipMCPConnections(orgId, clipId) {
|
|
68988
69128
|
return this.request("GET", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId));
|
|
68989
69129
|
}
|
|
68990
|
-
/** Create one MCP credential slot and its connection. */
|
|
68991
69130
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
68992
69131
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
68993
|
-
|
|
69132
|
+
// A card may start OAuth: allow discovery (30s) and persistence like
|
|
69133
|
+
// createClipMCPOAuthConnection.
|
|
69134
|
+
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
68994
69135
|
});
|
|
68995
69136
|
}
|
|
68996
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];
|