@parall/daemon 1.77.0 → 1.79.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 +11 -11
- package/bundle/parall-browser-pod.js +70 -9
- package/bundle/parall-claude-agent.js +76 -9
- package/bundle/parall-codex-agent.js +76 -9
- package/bundle/parall-daemon.js +88 -11
- package/package.json +6 -6
package/bundle/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"built_at": "2026-10-
|
|
2
|
+
"version": "1.79.0",
|
|
3
|
+
"built_at": "2026-10-19T13:22:11.073Z",
|
|
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": "a9882baa4606e316e680b3d2b58ad7c01d25897323d2d11feb3812c864ebc7fc",
|
|
20
|
+
"size": 3072104
|
|
21
21
|
},
|
|
22
22
|
"parall-channel-exec.js": {
|
|
23
23
|
"sha256": "2500dec2c332cce29aea476d3c048b49dbc43acf8572059bae2cd9dff49750b4",
|
|
24
24
|
"size": 7978
|
|
25
25
|
},
|
|
26
26
|
"parall-claude-agent.js": {
|
|
27
|
-
"sha256": "
|
|
28
|
-
"size":
|
|
27
|
+
"sha256": "933db494e3b832977471c29e8ddfa96b2b5fc70a71f1fb964d23b0b553205b55",
|
|
28
|
+
"size": 3082143
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "f4dd12d50d249e7d7f263445f91425d35a152800f84cdc64fb7f575b27078bcd",
|
|
32
|
+
"size": 3095765
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "b4256421391aa61b3427a9f611dc29a809a3a78f219b2787d9989aded3bb32e3",
|
|
36
|
+
"size": 3259817
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "cDy15i3DVfVQJdcQa2hqi0fvtnPNHTK88JDzvMBUbQzIoNAIPJmIzXFdnmXGQgBW8TZmxeeUmimNmATSPoS3Bg=="
|
|
44
44
|
}
|
|
@@ -64326,6 +64326,7 @@ function wechatEndpoints(apiBase) {
|
|
|
64326
64326
|
WECHAT_CONTACTS: (orgId) => `${agentBase(orgId)}/contacts`,
|
|
64327
64327
|
WECHAT_HISTORY: (orgId) => `${agentBase(orgId)}/history`,
|
|
64328
64328
|
WECHAT_MEDIA: (orgId) => `${agentBase(orgId)}/media`,
|
|
64329
|
+
WECHAT_MEDIA_SEND: (orgId) => `${agentBase(orgId)}/send-media`,
|
|
64329
64330
|
WECHAT_PROFILE: (orgId) => `${agentBase(orgId)}/profile`,
|
|
64330
64331
|
WECHAT_STATUS: (orgId) => `${agentBase(orgId)}/status`
|
|
64331
64332
|
};
|
|
@@ -64416,6 +64417,10 @@ var ENDPOINTS = {
|
|
|
64416
64417
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
64417
64418
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
64418
64419
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
64420
|
+
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
64421
|
+
CHAT_CONNECTION_DISCONNECT: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/disconnect`,
|
|
64422
|
+
CHAT_RECONNECT_APPROVE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/approve`,
|
|
64423
|
+
CHAT_RECONNECT_DECLINE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/decline`,
|
|
64419
64424
|
CHAT_TRANSFER_OWNERSHIP: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/transfer-ownership`,
|
|
64420
64425
|
CHAT_MESSAGES: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/messages`,
|
|
64421
64426
|
// Messages (global, by message ID)
|
|
@@ -65142,6 +65147,7 @@ var TaskLabelClient = class extends ProjectTaskClient {
|
|
|
65142
65147
|
};
|
|
65143
65148
|
|
|
65144
65149
|
// ts/sdk/dist/wechat-client.js
|
|
65150
|
+
var WECHAT_MEDIA_TIMEOUT_MS = 1e5;
|
|
65145
65151
|
var WechatClient = class extends TaskLabelClient {
|
|
65146
65152
|
/** Address book enriched with display names. */
|
|
65147
65153
|
async listWechatContacts(orgId) {
|
|
@@ -65160,7 +65166,13 @@ var WechatClient = class extends TaskLabelClient {
|
|
|
65160
65166
|
}
|
|
65161
65167
|
/** Fetch and cache one WeChat image or completed file on first explicit read. */
|
|
65162
65168
|
async materializeWechatMedia(orgId, messageId) {
|
|
65163
|
-
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId });
|
|
65169
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId }, void 0, false, { timeoutMs: WECHAT_MEDIA_TIMEOUT_MS });
|
|
65170
|
+
}
|
|
65171
|
+
/** Send one uploaded image or file; never automatically retry an uncertain send. */
|
|
65172
|
+
async sendWechatMedia(orgId, input) {
|
|
65173
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA_SEND(orgId), input, void 0, false, {
|
|
65174
|
+
timeoutMs: WECHAT_MEDIA_TIMEOUT_MS
|
|
65175
|
+
});
|
|
65164
65176
|
}
|
|
65165
65177
|
/** Connected WeChat account identity. */
|
|
65166
65178
|
async wechatProfile(orgId) {
|
|
@@ -65383,8 +65395,36 @@ var MiniAppActionClient = class extends MiniAppClient {
|
|
|
65383
65395
|
}
|
|
65384
65396
|
};
|
|
65385
65397
|
|
|
65398
|
+
// ts/sdk/dist/mini-app-access-client.js
|
|
65399
|
+
var access = (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${encodeURIComponent(appId)}/access`;
|
|
65400
|
+
var MiniAppAccessClient = class extends MiniAppActionClient {
|
|
65401
|
+
async getMiniAppAccess(orgId, appId) {
|
|
65402
|
+
return this.request("GET", access(orgId, appId));
|
|
65403
|
+
}
|
|
65404
|
+
/** How far everyone else in the organization reaches into the app. */
|
|
65405
|
+
async setMiniAppMemberAccess(orgId, appId, memberAccess) {
|
|
65406
|
+
return this.request("PATCH", access(orgId, appId), { member_access: memberAccess });
|
|
65407
|
+
}
|
|
65408
|
+
/** Puts a member of the organization on the app's access list, or
|
|
65409
|
+
* changes their level. */
|
|
65410
|
+
async setMiniAppAccessGrant(orgId, appId, userId, level) {
|
|
65411
|
+
return this.request("PUT", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`, {
|
|
65412
|
+
access: level
|
|
65413
|
+
});
|
|
65414
|
+
}
|
|
65415
|
+
async removeMiniAppAccessGrant(orgId, appId, userId) {
|
|
65416
|
+
return this.request("DELETE", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`);
|
|
65417
|
+
}
|
|
65418
|
+
/** The change record, newest first: member_access, the access list and
|
|
65419
|
+
* the author roster. */
|
|
65420
|
+
async getMiniAppAccessLog(orgId, appId, query = {}) {
|
|
65421
|
+
const response = await this.request("GET", `${access(orgId, appId)}/log`, void 0, { limit: query.limit, before_id: query.before_id });
|
|
65422
|
+
return response.data;
|
|
65423
|
+
}
|
|
65424
|
+
};
|
|
65425
|
+
|
|
65386
65426
|
// ts/sdk/dist/llm-provider-client.js
|
|
65387
|
-
var LLMProviderClient = class extends
|
|
65427
|
+
var LLMProviderClient = class extends MiniAppAccessClient {
|
|
65388
65428
|
async getLLMProviders(orgId) {
|
|
65389
65429
|
const response = await this.request("GET", ENDPOINTS.LLM_PROVIDERS(orgId));
|
|
65390
65430
|
return response.data;
|
|
@@ -65659,8 +65699,8 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
65659
65699
|
for (const profile of profiles) {
|
|
65660
65700
|
if (profileId && profile.id !== profileId)
|
|
65661
65701
|
continue;
|
|
65662
|
-
const
|
|
65663
|
-
if (!personal && !
|
|
65702
|
+
const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
|
|
65703
|
+
if (!personal && !access2?.org_public && !(access2?.grants ?? []).some((g5) => g5.user_id === me.id && g5.grants.length > 0))
|
|
65664
65704
|
continue;
|
|
65665
65705
|
data2.push({
|
|
65666
65706
|
profile_id: profile.id,
|
|
@@ -65687,8 +65727,8 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
65687
65727
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
65688
65728
|
}
|
|
65689
65729
|
/** Replace the complete access policy; requires a human org owner/admin. */
|
|
65690
|
-
async putBrowserProfileAccess(orgId, edgeId, profileName,
|
|
65691
|
-
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName),
|
|
65730
|
+
async putBrowserProfileAccess(orgId, edgeId, profileName, access2) {
|
|
65731
|
+
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName), access2);
|
|
65692
65732
|
}
|
|
65693
65733
|
};
|
|
65694
65734
|
|
|
@@ -66571,6 +66611,27 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
66571
66611
|
async declineChatInvitation(id) {
|
|
66572
66612
|
return this.request("POST", ENDPOINTS.CHAT_INVITATION_DECLINE(id));
|
|
66573
66613
|
}
|
|
66614
|
+
/** Orgs connected to a channel, the channel's own org first. */
|
|
66615
|
+
async listChatConnections(orgId, chatId) {
|
|
66616
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_CONNECTIONS(orgId, chatId));
|
|
66617
|
+
return res.data;
|
|
66618
|
+
}
|
|
66619
|
+
/**
|
|
66620
|
+
* End `connOrgId`'s connection to a channel. From the channel's own org a chat
|
|
66621
|
+
* owner or admin can disconnect any other org; from any other org, an org admin
|
|
66622
|
+
* can disconnect only that org.
|
|
66623
|
+
*/
|
|
66624
|
+
async disconnectChatOrg(orgId, chatId, connOrgId) {
|
|
66625
|
+
return this.request("POST", ENDPOINTS.CHAT_CONNECTION_DISCONNECT(orgId, chatId, connOrgId));
|
|
66626
|
+
}
|
|
66627
|
+
/** Let `connOrgId` back into a channel; only the side that disconnected it can. */
|
|
66628
|
+
async approveChatReconnect(orgId, chatId, connOrgId) {
|
|
66629
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_APPROVE(orgId, chatId, connOrgId));
|
|
66630
|
+
}
|
|
66631
|
+
/** Turn down `connOrgId`'s reconnect; it stays disconnected. */
|
|
66632
|
+
async declineChatReconnect(orgId, chatId, connOrgId) {
|
|
66633
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_DECLINE(orgId, chatId, connOrgId));
|
|
66634
|
+
}
|
|
66574
66635
|
async getInvitationByToken(token) {
|
|
66575
66636
|
return this.request("GET", ENDPOINTS.INVITATION_BY_TOKEN(token));
|
|
66576
66637
|
}
|
|
@@ -68354,8 +68415,8 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
68354
68415
|
* and every `connection_ids` entry a connection of THIS clip in this org
|
|
68355
68416
|
* (else `400 INVALID_INPUT`).
|
|
68356
68417
|
*/
|
|
68357
|
-
async putClipAgentExecAccess(orgId, clipId,
|
|
68358
|
-
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId),
|
|
68418
|
+
async putClipAgentExecAccess(orgId, clipId, access2) {
|
|
68419
|
+
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId), access2);
|
|
68359
68420
|
}
|
|
68360
68421
|
// ---- Edge devices ----
|
|
68361
68422
|
async listEdgeDevices(orgId) {
|
|
@@ -68539,7 +68600,7 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
68539
68600
|
*/
|
|
68540
68601
|
async execEdgeClip(orgId, req) {
|
|
68541
68602
|
const t = req.timeout;
|
|
68542
|
-
const serverTimeout = t !== void 0 && t > 0
|
|
68603
|
+
const serverTimeout = t !== void 0 && t > 0 ? Math.min(t, 12e4) : 3e4;
|
|
68543
68604
|
const timeoutMs = serverTimeout + 1e4;
|
|
68544
68605
|
try {
|
|
68545
68606
|
return await this.request("POST", ENDPOINTS.ORG_EDGE_EXEC(orgId), req, void 0, false, {
|
|
@@ -52088,6 +52088,7 @@ function wechatEndpoints(apiBase) {
|
|
|
52088
52088
|
WECHAT_CONTACTS: (orgId) => `${agentBase(orgId)}/contacts`,
|
|
52089
52089
|
WECHAT_HISTORY: (orgId) => `${agentBase(orgId)}/history`,
|
|
52090
52090
|
WECHAT_MEDIA: (orgId) => `${agentBase(orgId)}/media`,
|
|
52091
|
+
WECHAT_MEDIA_SEND: (orgId) => `${agentBase(orgId)}/send-media`,
|
|
52091
52092
|
WECHAT_PROFILE: (orgId) => `${agentBase(orgId)}/profile`,
|
|
52092
52093
|
WECHAT_STATUS: (orgId) => `${agentBase(orgId)}/status`
|
|
52093
52094
|
};
|
|
@@ -52178,6 +52179,10 @@ var ENDPOINTS = {
|
|
|
52178
52179
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
52179
52180
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
52180
52181
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
52182
|
+
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
52183
|
+
CHAT_CONNECTION_DISCONNECT: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/disconnect`,
|
|
52184
|
+
CHAT_RECONNECT_APPROVE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/approve`,
|
|
52185
|
+
CHAT_RECONNECT_DECLINE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/decline`,
|
|
52181
52186
|
CHAT_TRANSFER_OWNERSHIP: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/transfer-ownership`,
|
|
52182
52187
|
CHAT_MESSAGES: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/messages`,
|
|
52183
52188
|
// Messages (global, by message ID)
|
|
@@ -53009,6 +53014,7 @@ var TaskLabelClient = class extends ProjectTaskClient {
|
|
|
53009
53014
|
};
|
|
53010
53015
|
|
|
53011
53016
|
// ts/sdk/dist/wechat-client.js
|
|
53017
|
+
var WECHAT_MEDIA_TIMEOUT_MS = 1e5;
|
|
53012
53018
|
var WechatClient = class extends TaskLabelClient {
|
|
53013
53019
|
/** Address book enriched with display names. */
|
|
53014
53020
|
async listWechatContacts(orgId) {
|
|
@@ -53027,7 +53033,13 @@ var WechatClient = class extends TaskLabelClient {
|
|
|
53027
53033
|
}
|
|
53028
53034
|
/** Fetch and cache one WeChat image or completed file on first explicit read. */
|
|
53029
53035
|
async materializeWechatMedia(orgId, messageId) {
|
|
53030
|
-
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId });
|
|
53036
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId }, void 0, false, { timeoutMs: WECHAT_MEDIA_TIMEOUT_MS });
|
|
53037
|
+
}
|
|
53038
|
+
/** Send one uploaded image or file; never automatically retry an uncertain send. */
|
|
53039
|
+
async sendWechatMedia(orgId, input) {
|
|
53040
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA_SEND(orgId), input, void 0, false, {
|
|
53041
|
+
timeoutMs: WECHAT_MEDIA_TIMEOUT_MS
|
|
53042
|
+
});
|
|
53031
53043
|
}
|
|
53032
53044
|
/** Connected WeChat account identity. */
|
|
53033
53045
|
async wechatProfile(orgId) {
|
|
@@ -53250,8 +53262,36 @@ var MiniAppActionClient = class extends MiniAppClient {
|
|
|
53250
53262
|
}
|
|
53251
53263
|
};
|
|
53252
53264
|
|
|
53265
|
+
// ts/sdk/dist/mini-app-access-client.js
|
|
53266
|
+
var access = (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${encodeURIComponent(appId)}/access`;
|
|
53267
|
+
var MiniAppAccessClient = class extends MiniAppActionClient {
|
|
53268
|
+
async getMiniAppAccess(orgId, appId) {
|
|
53269
|
+
return this.request("GET", access(orgId, appId));
|
|
53270
|
+
}
|
|
53271
|
+
/** How far everyone else in the organization reaches into the app. */
|
|
53272
|
+
async setMiniAppMemberAccess(orgId, appId, memberAccess) {
|
|
53273
|
+
return this.request("PATCH", access(orgId, appId), { member_access: memberAccess });
|
|
53274
|
+
}
|
|
53275
|
+
/** Puts a member of the organization on the app's access list, or
|
|
53276
|
+
* changes their level. */
|
|
53277
|
+
async setMiniAppAccessGrant(orgId, appId, userId, level) {
|
|
53278
|
+
return this.request("PUT", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`, {
|
|
53279
|
+
access: level
|
|
53280
|
+
});
|
|
53281
|
+
}
|
|
53282
|
+
async removeMiniAppAccessGrant(orgId, appId, userId) {
|
|
53283
|
+
return this.request("DELETE", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`);
|
|
53284
|
+
}
|
|
53285
|
+
/** The change record, newest first: member_access, the access list and
|
|
53286
|
+
* the author roster. */
|
|
53287
|
+
async getMiniAppAccessLog(orgId, appId, query = {}) {
|
|
53288
|
+
const response = await this.request("GET", `${access(orgId, appId)}/log`, void 0, { limit: query.limit, before_id: query.before_id });
|
|
53289
|
+
return response.data;
|
|
53290
|
+
}
|
|
53291
|
+
};
|
|
53292
|
+
|
|
53253
53293
|
// ts/sdk/dist/llm-provider-client.js
|
|
53254
|
-
var LLMProviderClient = class extends
|
|
53294
|
+
var LLMProviderClient = class extends MiniAppAccessClient {
|
|
53255
53295
|
async getLLMProviders(orgId) {
|
|
53256
53296
|
const response = await this.request("GET", ENDPOINTS.LLM_PROVIDERS(orgId));
|
|
53257
53297
|
return response.data;
|
|
@@ -53526,8 +53566,8 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
53526
53566
|
for (const profile of profiles) {
|
|
53527
53567
|
if (profileId && profile.id !== profileId)
|
|
53528
53568
|
continue;
|
|
53529
|
-
const
|
|
53530
|
-
if (!personal && !
|
|
53569
|
+
const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
|
|
53570
|
+
if (!personal && !access2?.org_public && !(access2?.grants ?? []).some((g) => g.user_id === me.id && g.grants.length > 0))
|
|
53531
53571
|
continue;
|
|
53532
53572
|
data.push({
|
|
53533
53573
|
profile_id: profile.id,
|
|
@@ -53554,8 +53594,8 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
53554
53594
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
53555
53595
|
}
|
|
53556
53596
|
/** Replace the complete access policy; requires a human org owner/admin. */
|
|
53557
|
-
async putBrowserProfileAccess(orgId, edgeId, profileName,
|
|
53558
|
-
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName),
|
|
53597
|
+
async putBrowserProfileAccess(orgId, edgeId, profileName, access2) {
|
|
53598
|
+
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName), access2);
|
|
53559
53599
|
}
|
|
53560
53600
|
};
|
|
53561
53601
|
|
|
@@ -54438,6 +54478,27 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
54438
54478
|
async declineChatInvitation(id) {
|
|
54439
54479
|
return this.request("POST", ENDPOINTS.CHAT_INVITATION_DECLINE(id));
|
|
54440
54480
|
}
|
|
54481
|
+
/** Orgs connected to a channel, the channel's own org first. */
|
|
54482
|
+
async listChatConnections(orgId, chatId) {
|
|
54483
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_CONNECTIONS(orgId, chatId));
|
|
54484
|
+
return res.data;
|
|
54485
|
+
}
|
|
54486
|
+
/**
|
|
54487
|
+
* End `connOrgId`'s connection to a channel. From the channel's own org a chat
|
|
54488
|
+
* owner or admin can disconnect any other org; from any other org, an org admin
|
|
54489
|
+
* can disconnect only that org.
|
|
54490
|
+
*/
|
|
54491
|
+
async disconnectChatOrg(orgId, chatId, connOrgId) {
|
|
54492
|
+
return this.request("POST", ENDPOINTS.CHAT_CONNECTION_DISCONNECT(orgId, chatId, connOrgId));
|
|
54493
|
+
}
|
|
54494
|
+
/** Let `connOrgId` back into a channel; only the side that disconnected it can. */
|
|
54495
|
+
async approveChatReconnect(orgId, chatId, connOrgId) {
|
|
54496
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_APPROVE(orgId, chatId, connOrgId));
|
|
54497
|
+
}
|
|
54498
|
+
/** Turn down `connOrgId`'s reconnect; it stays disconnected. */
|
|
54499
|
+
async declineChatReconnect(orgId, chatId, connOrgId) {
|
|
54500
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_DECLINE(orgId, chatId, connOrgId));
|
|
54501
|
+
}
|
|
54441
54502
|
async getInvitationByToken(token) {
|
|
54442
54503
|
return this.request("GET", ENDPOINTS.INVITATION_BY_TOKEN(token));
|
|
54443
54504
|
}
|
|
@@ -56221,8 +56282,8 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
56221
56282
|
* and every `connection_ids` entry a connection of THIS clip in this org
|
|
56222
56283
|
* (else `400 INVALID_INPUT`).
|
|
56223
56284
|
*/
|
|
56224
|
-
async putClipAgentExecAccess(orgId, clipId,
|
|
56225
|
-
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId),
|
|
56285
|
+
async putClipAgentExecAccess(orgId, clipId, access2) {
|
|
56286
|
+
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId), access2);
|
|
56226
56287
|
}
|
|
56227
56288
|
// ---- Edge devices ----
|
|
56228
56289
|
async listEdgeDevices(orgId) {
|
|
@@ -56406,7 +56467,7 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
56406
56467
|
*/
|
|
56407
56468
|
async execEdgeClip(orgId, req) {
|
|
56408
56469
|
const t = req.timeout;
|
|
56409
|
-
const serverTimeout = t !== void 0 && t > 0
|
|
56470
|
+
const serverTimeout = t !== void 0 && t > 0 ? Math.min(t, 12e4) : 3e4;
|
|
56410
56471
|
const timeoutMs = serverTimeout + 1e4;
|
|
56411
56472
|
try {
|
|
56412
56473
|
return await this.request("POST", ENDPOINTS.ORG_EDGE_EXEC(orgId), req, void 0, false, {
|
|
@@ -63565,6 +63626,7 @@ parall members list # All org members (humans + agents)
|
|
|
63565
63626
|
parall agents list # Agents only
|
|
63566
63627
|
parall users get prll://usr_xxx # Get user details by ID
|
|
63567
63628
|
parall members profile prll://usr_xxx # A member's public profile (title / about)
|
|
63629
|
+
parall members set-role prll://usr_xxx --role admin # Org role: admin or member
|
|
63568
63630
|
parall agents instructions # Your own private Instructions (admin-maintained)
|
|
63569
63631
|
\`\`\`
|
|
63570
63632
|
|
|
@@ -63575,6 +63637,11 @@ prompt already contains your public profile and your private Instructions;
|
|
|
63575
63637
|
changing yours takes a human decision \u2014 run \`parall profile set\` and follow
|
|
63576
63638
|
the approval flow it prints (see "Your Profile" below).
|
|
63577
63639
|
|
|
63640
|
+
Org roles are owner, admin and member. Only an org owner/admin changes them;
|
|
63641
|
+
anyone else running \`members set-role\` \u2014 including on your own id, to ask to
|
|
63642
|
+
become admin \u2014 gets PERMISSION_DENIED with a ready-made approval command for an
|
|
63643
|
+
org owner/admin to decide.
|
|
63644
|
+
|
|
63578
63645
|
Create a hosted agent when the user asks for a Parall-managed runtime. Hosted
|
|
63579
63646
|
provisioning is asynchronous: creation means the agent identity, API key, and
|
|
63580
63647
|
machine record were accepted, not that the runtime is online yet. Use \`--wait\`
|
|
@@ -52088,6 +52088,7 @@ function wechatEndpoints(apiBase) {
|
|
|
52088
52088
|
WECHAT_CONTACTS: (orgId) => `${agentBase(orgId)}/contacts`,
|
|
52089
52089
|
WECHAT_HISTORY: (orgId) => `${agentBase(orgId)}/history`,
|
|
52090
52090
|
WECHAT_MEDIA: (orgId) => `${agentBase(orgId)}/media`,
|
|
52091
|
+
WECHAT_MEDIA_SEND: (orgId) => `${agentBase(orgId)}/send-media`,
|
|
52091
52092
|
WECHAT_PROFILE: (orgId) => `${agentBase(orgId)}/profile`,
|
|
52092
52093
|
WECHAT_STATUS: (orgId) => `${agentBase(orgId)}/status`
|
|
52093
52094
|
};
|
|
@@ -52178,6 +52179,10 @@ var ENDPOINTS = {
|
|
|
52178
52179
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
52179
52180
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
52180
52181
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
52182
|
+
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
52183
|
+
CHAT_CONNECTION_DISCONNECT: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/disconnect`,
|
|
52184
|
+
CHAT_RECONNECT_APPROVE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/approve`,
|
|
52185
|
+
CHAT_RECONNECT_DECLINE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/decline`,
|
|
52181
52186
|
CHAT_TRANSFER_OWNERSHIP: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/transfer-ownership`,
|
|
52182
52187
|
CHAT_MESSAGES: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/messages`,
|
|
52183
52188
|
// Messages (global, by message ID)
|
|
@@ -53009,6 +53014,7 @@ var TaskLabelClient = class extends ProjectTaskClient {
|
|
|
53009
53014
|
};
|
|
53010
53015
|
|
|
53011
53016
|
// ts/sdk/dist/wechat-client.js
|
|
53017
|
+
var WECHAT_MEDIA_TIMEOUT_MS = 1e5;
|
|
53012
53018
|
var WechatClient = class extends TaskLabelClient {
|
|
53013
53019
|
/** Address book enriched with display names. */
|
|
53014
53020
|
async listWechatContacts(orgId) {
|
|
@@ -53027,7 +53033,13 @@ var WechatClient = class extends TaskLabelClient {
|
|
|
53027
53033
|
}
|
|
53028
53034
|
/** Fetch and cache one WeChat image or completed file on first explicit read. */
|
|
53029
53035
|
async materializeWechatMedia(orgId, messageId) {
|
|
53030
|
-
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId });
|
|
53036
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId }, void 0, false, { timeoutMs: WECHAT_MEDIA_TIMEOUT_MS });
|
|
53037
|
+
}
|
|
53038
|
+
/** Send one uploaded image or file; never automatically retry an uncertain send. */
|
|
53039
|
+
async sendWechatMedia(orgId, input) {
|
|
53040
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA_SEND(orgId), input, void 0, false, {
|
|
53041
|
+
timeoutMs: WECHAT_MEDIA_TIMEOUT_MS
|
|
53042
|
+
});
|
|
53031
53043
|
}
|
|
53032
53044
|
/** Connected WeChat account identity. */
|
|
53033
53045
|
async wechatProfile(orgId) {
|
|
@@ -53250,8 +53262,36 @@ var MiniAppActionClient = class extends MiniAppClient {
|
|
|
53250
53262
|
}
|
|
53251
53263
|
};
|
|
53252
53264
|
|
|
53265
|
+
// ts/sdk/dist/mini-app-access-client.js
|
|
53266
|
+
var access = (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${encodeURIComponent(appId)}/access`;
|
|
53267
|
+
var MiniAppAccessClient = class extends MiniAppActionClient {
|
|
53268
|
+
async getMiniAppAccess(orgId, appId) {
|
|
53269
|
+
return this.request("GET", access(orgId, appId));
|
|
53270
|
+
}
|
|
53271
|
+
/** How far everyone else in the organization reaches into the app. */
|
|
53272
|
+
async setMiniAppMemberAccess(orgId, appId, memberAccess) {
|
|
53273
|
+
return this.request("PATCH", access(orgId, appId), { member_access: memberAccess });
|
|
53274
|
+
}
|
|
53275
|
+
/** Puts a member of the organization on the app's access list, or
|
|
53276
|
+
* changes their level. */
|
|
53277
|
+
async setMiniAppAccessGrant(orgId, appId, userId, level) {
|
|
53278
|
+
return this.request("PUT", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`, {
|
|
53279
|
+
access: level
|
|
53280
|
+
});
|
|
53281
|
+
}
|
|
53282
|
+
async removeMiniAppAccessGrant(orgId, appId, userId) {
|
|
53283
|
+
return this.request("DELETE", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`);
|
|
53284
|
+
}
|
|
53285
|
+
/** The change record, newest first: member_access, the access list and
|
|
53286
|
+
* the author roster. */
|
|
53287
|
+
async getMiniAppAccessLog(orgId, appId, query = {}) {
|
|
53288
|
+
const response = await this.request("GET", `${access(orgId, appId)}/log`, void 0, { limit: query.limit, before_id: query.before_id });
|
|
53289
|
+
return response.data;
|
|
53290
|
+
}
|
|
53291
|
+
};
|
|
53292
|
+
|
|
53253
53293
|
// ts/sdk/dist/llm-provider-client.js
|
|
53254
|
-
var LLMProviderClient = class extends
|
|
53294
|
+
var LLMProviderClient = class extends MiniAppAccessClient {
|
|
53255
53295
|
async getLLMProviders(orgId) {
|
|
53256
53296
|
const response = await this.request("GET", ENDPOINTS.LLM_PROVIDERS(orgId));
|
|
53257
53297
|
return response.data;
|
|
@@ -53526,8 +53566,8 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
53526
53566
|
for (const profile of profiles) {
|
|
53527
53567
|
if (profileId && profile.id !== profileId)
|
|
53528
53568
|
continue;
|
|
53529
|
-
const
|
|
53530
|
-
if (!personal && !
|
|
53569
|
+
const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
|
|
53570
|
+
if (!personal && !access2?.org_public && !(access2?.grants ?? []).some((g) => g.user_id === me.id && g.grants.length > 0))
|
|
53531
53571
|
continue;
|
|
53532
53572
|
data.push({
|
|
53533
53573
|
profile_id: profile.id,
|
|
@@ -53554,8 +53594,8 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
53554
53594
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
53555
53595
|
}
|
|
53556
53596
|
/** Replace the complete access policy; requires a human org owner/admin. */
|
|
53557
|
-
async putBrowserProfileAccess(orgId, edgeId, profileName,
|
|
53558
|
-
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName),
|
|
53597
|
+
async putBrowserProfileAccess(orgId, edgeId, profileName, access2) {
|
|
53598
|
+
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName), access2);
|
|
53559
53599
|
}
|
|
53560
53600
|
};
|
|
53561
53601
|
|
|
@@ -54438,6 +54478,27 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
54438
54478
|
async declineChatInvitation(id) {
|
|
54439
54479
|
return this.request("POST", ENDPOINTS.CHAT_INVITATION_DECLINE(id));
|
|
54440
54480
|
}
|
|
54481
|
+
/** Orgs connected to a channel, the channel's own org first. */
|
|
54482
|
+
async listChatConnections(orgId, chatId) {
|
|
54483
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_CONNECTIONS(orgId, chatId));
|
|
54484
|
+
return res.data;
|
|
54485
|
+
}
|
|
54486
|
+
/**
|
|
54487
|
+
* End `connOrgId`'s connection to a channel. From the channel's own org a chat
|
|
54488
|
+
* owner or admin can disconnect any other org; from any other org, an org admin
|
|
54489
|
+
* can disconnect only that org.
|
|
54490
|
+
*/
|
|
54491
|
+
async disconnectChatOrg(orgId, chatId, connOrgId) {
|
|
54492
|
+
return this.request("POST", ENDPOINTS.CHAT_CONNECTION_DISCONNECT(orgId, chatId, connOrgId));
|
|
54493
|
+
}
|
|
54494
|
+
/** Let `connOrgId` back into a channel; only the side that disconnected it can. */
|
|
54495
|
+
async approveChatReconnect(orgId, chatId, connOrgId) {
|
|
54496
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_APPROVE(orgId, chatId, connOrgId));
|
|
54497
|
+
}
|
|
54498
|
+
/** Turn down `connOrgId`'s reconnect; it stays disconnected. */
|
|
54499
|
+
async declineChatReconnect(orgId, chatId, connOrgId) {
|
|
54500
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_DECLINE(orgId, chatId, connOrgId));
|
|
54501
|
+
}
|
|
54441
54502
|
async getInvitationByToken(token) {
|
|
54442
54503
|
return this.request("GET", ENDPOINTS.INVITATION_BY_TOKEN(token));
|
|
54443
54504
|
}
|
|
@@ -56221,8 +56282,8 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
56221
56282
|
* and every `connection_ids` entry a connection of THIS clip in this org
|
|
56222
56283
|
* (else `400 INVALID_INPUT`).
|
|
56223
56284
|
*/
|
|
56224
|
-
async putClipAgentExecAccess(orgId, clipId,
|
|
56225
|
-
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId),
|
|
56285
|
+
async putClipAgentExecAccess(orgId, clipId, access2) {
|
|
56286
|
+
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId), access2);
|
|
56226
56287
|
}
|
|
56227
56288
|
// ---- Edge devices ----
|
|
56228
56289
|
async listEdgeDevices(orgId) {
|
|
@@ -56406,7 +56467,7 @@ var ParallClient = class _ParallClient extends ApprovalApproversClient {
|
|
|
56406
56467
|
*/
|
|
56407
56468
|
async execEdgeClip(orgId, req) {
|
|
56408
56469
|
const t = req.timeout;
|
|
56409
|
-
const serverTimeout = t !== void 0 && t > 0
|
|
56470
|
+
const serverTimeout = t !== void 0 && t > 0 ? Math.min(t, 12e4) : 3e4;
|
|
56410
56471
|
const timeoutMs = serverTimeout + 1e4;
|
|
56411
56472
|
try {
|
|
56412
56473
|
return await this.request("POST", ENDPOINTS.ORG_EDGE_EXEC(orgId), req, void 0, false, {
|
|
@@ -63552,6 +63613,7 @@ parall members list # All org members (humans + agents)
|
|
|
63552
63613
|
parall agents list # Agents only
|
|
63553
63614
|
parall users get prll://usr_xxx # Get user details by ID
|
|
63554
63615
|
parall members profile prll://usr_xxx # A member's public profile (title / about)
|
|
63616
|
+
parall members set-role prll://usr_xxx --role admin # Org role: admin or member
|
|
63555
63617
|
parall agents instructions # Your own private Instructions (admin-maintained)
|
|
63556
63618
|
\`\`\`
|
|
63557
63619
|
|
|
@@ -63562,6 +63624,11 @@ prompt already contains your public profile and your private Instructions;
|
|
|
63562
63624
|
changing yours takes a human decision \u2014 run \`parall profile set\` and follow
|
|
63563
63625
|
the approval flow it prints (see "Your Profile" below).
|
|
63564
63626
|
|
|
63627
|
+
Org roles are owner, admin and member. Only an org owner/admin changes them;
|
|
63628
|
+
anyone else running \`members set-role\` \u2014 including on your own id, to ask to
|
|
63629
|
+
become admin \u2014 gets PERMISSION_DENIED with a ready-made approval command for an
|
|
63630
|
+
org owner/admin to decide.
|
|
63631
|
+
|
|
63565
63632
|
Create a hosted agent when the user asks for a Parall-managed runtime. Hosted
|
|
63566
63633
|
provisioning is asynchronous: creation means the agent identity, API key, and
|
|
63567
63634
|
machine record were accepted, not that the runtime is online yet. Use \`--wait\`
|
package/bundle/parall-daemon.js
CHANGED
|
@@ -554,6 +554,7 @@ function wechatEndpoints(apiBase) {
|
|
|
554
554
|
WECHAT_CONTACTS: (orgId) => `${agentBase(orgId)}/contacts`,
|
|
555
555
|
WECHAT_HISTORY: (orgId) => `${agentBase(orgId)}/history`,
|
|
556
556
|
WECHAT_MEDIA: (orgId) => `${agentBase(orgId)}/media`,
|
|
557
|
+
WECHAT_MEDIA_SEND: (orgId) => `${agentBase(orgId)}/send-media`,
|
|
557
558
|
WECHAT_PROFILE: (orgId) => `${agentBase(orgId)}/profile`,
|
|
558
559
|
WECHAT_STATUS: (orgId) => `${agentBase(orgId)}/status`
|
|
559
560
|
};
|
|
@@ -975,6 +976,10 @@ var init_constants = __esm({
|
|
|
975
976
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
976
977
|
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
977
978
|
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
979
|
+
CHAT_CONNECTIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections`,
|
|
980
|
+
CHAT_CONNECTION_DISCONNECT: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/disconnect`,
|
|
981
|
+
CHAT_RECONNECT_APPROVE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/approve`,
|
|
982
|
+
CHAT_RECONNECT_DECLINE: (orgId, chatId, connOrgId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/connections/${connOrgId}/reconnect/decline`,
|
|
978
983
|
CHAT_TRANSFER_OWNERSHIP: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/transfer-ownership`,
|
|
979
984
|
CHAT_MESSAGES: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/messages`,
|
|
980
985
|
// Messages (global, by message ID)
|
|
@@ -1847,12 +1852,13 @@ var init_task_label_client = __esm({
|
|
|
1847
1852
|
});
|
|
1848
1853
|
|
|
1849
1854
|
// ts/sdk/dist/wechat-client.js
|
|
1850
|
-
var WechatClient;
|
|
1855
|
+
var WECHAT_MEDIA_TIMEOUT_MS, WechatClient;
|
|
1851
1856
|
var init_wechat_client = __esm({
|
|
1852
1857
|
"ts/sdk/dist/wechat-client.js"() {
|
|
1853
1858
|
"use strict";
|
|
1854
1859
|
init_constants();
|
|
1855
1860
|
init_task_label_client();
|
|
1861
|
+
WECHAT_MEDIA_TIMEOUT_MS = 1e5;
|
|
1856
1862
|
WechatClient = class extends TaskLabelClient {
|
|
1857
1863
|
/** Address book enriched with display names. */
|
|
1858
1864
|
async listWechatContacts(orgId) {
|
|
@@ -1871,7 +1877,13 @@ var init_wechat_client = __esm({
|
|
|
1871
1877
|
}
|
|
1872
1878
|
/** Fetch and cache one WeChat image or completed file on first explicit read. */
|
|
1873
1879
|
async materializeWechatMedia(orgId, messageId) {
|
|
1874
|
-
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId });
|
|
1880
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId }, void 0, false, { timeoutMs: WECHAT_MEDIA_TIMEOUT_MS });
|
|
1881
|
+
}
|
|
1882
|
+
/** Send one uploaded image or file; never automatically retry an uncertain send. */
|
|
1883
|
+
async sendWechatMedia(orgId, input) {
|
|
1884
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA_SEND(orgId), input, void 0, false, {
|
|
1885
|
+
timeoutMs: WECHAT_MEDIA_TIMEOUT_MS
|
|
1886
|
+
});
|
|
1875
1887
|
}
|
|
1876
1888
|
/** Connected WeChat account identity. */
|
|
1877
1889
|
async wechatProfile(orgId) {
|
|
@@ -2112,14 +2124,50 @@ var init_mini_app_action_client = __esm({
|
|
|
2112
2124
|
}
|
|
2113
2125
|
});
|
|
2114
2126
|
|
|
2127
|
+
// ts/sdk/dist/mini-app-access-client.js
|
|
2128
|
+
var access, MiniAppAccessClient;
|
|
2129
|
+
var init_mini_app_access_client = __esm({
|
|
2130
|
+
"ts/sdk/dist/mini-app-access-client.js"() {
|
|
2131
|
+
"use strict";
|
|
2132
|
+
init_constants();
|
|
2133
|
+
init_mini_app_action_client();
|
|
2134
|
+
access = (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${encodeURIComponent(appId)}/access`;
|
|
2135
|
+
MiniAppAccessClient = class extends MiniAppActionClient {
|
|
2136
|
+
async getMiniAppAccess(orgId, appId) {
|
|
2137
|
+
return this.request("GET", access(orgId, appId));
|
|
2138
|
+
}
|
|
2139
|
+
/** How far everyone else in the organization reaches into the app. */
|
|
2140
|
+
async setMiniAppMemberAccess(orgId, appId, memberAccess) {
|
|
2141
|
+
return this.request("PATCH", access(orgId, appId), { member_access: memberAccess });
|
|
2142
|
+
}
|
|
2143
|
+
/** Puts a member of the organization on the app's access list, or
|
|
2144
|
+
* changes their level. */
|
|
2145
|
+
async setMiniAppAccessGrant(orgId, appId, userId, level) {
|
|
2146
|
+
return this.request("PUT", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`, {
|
|
2147
|
+
access: level
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2150
|
+
async removeMiniAppAccessGrant(orgId, appId, userId) {
|
|
2151
|
+
return this.request("DELETE", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`);
|
|
2152
|
+
}
|
|
2153
|
+
/** The change record, newest first: member_access, the access list and
|
|
2154
|
+
* the author roster. */
|
|
2155
|
+
async getMiniAppAccessLog(orgId, appId, query = {}) {
|
|
2156
|
+
const response = await this.request("GET", `${access(orgId, appId)}/log`, void 0, { limit: query.limit, before_id: query.before_id });
|
|
2157
|
+
return response.data;
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
});
|
|
2162
|
+
|
|
2115
2163
|
// ts/sdk/dist/llm-provider-client.js
|
|
2116
2164
|
var LLMProviderClient;
|
|
2117
2165
|
var init_llm_provider_client = __esm({
|
|
2118
2166
|
"ts/sdk/dist/llm-provider-client.js"() {
|
|
2119
2167
|
"use strict";
|
|
2120
2168
|
init_constants();
|
|
2121
|
-
|
|
2122
|
-
LLMProviderClient = class extends
|
|
2169
|
+
init_mini_app_access_client();
|
|
2170
|
+
LLMProviderClient = class extends MiniAppAccessClient {
|
|
2123
2171
|
async getLLMProviders(orgId) {
|
|
2124
2172
|
const response = await this.request("GET", ENDPOINTS.LLM_PROVIDERS(orgId));
|
|
2125
2173
|
return response.data;
|
|
@@ -2442,8 +2490,8 @@ var init_browser_profile_client = __esm({
|
|
|
2442
2490
|
for (const profile of profiles) {
|
|
2443
2491
|
if (profileId && profile.id !== profileId)
|
|
2444
2492
|
continue;
|
|
2445
|
-
const
|
|
2446
|
-
if (!personal && !
|
|
2493
|
+
const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
|
|
2494
|
+
if (!personal && !access2?.org_public && !(access2?.grants ?? []).some((g) => g.user_id === me.id && g.grants.length > 0))
|
|
2447
2495
|
continue;
|
|
2448
2496
|
data.push({
|
|
2449
2497
|
profile_id: profile.id,
|
|
@@ -2470,8 +2518,8 @@ var init_browser_profile_client = __esm({
|
|
|
2470
2518
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
2471
2519
|
}
|
|
2472
2520
|
/** Replace the complete access policy; requires a human org owner/admin. */
|
|
2473
|
-
async putBrowserProfileAccess(orgId, edgeId, profileName,
|
|
2474
|
-
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName),
|
|
2521
|
+
async putBrowserProfileAccess(orgId, edgeId, profileName, access2) {
|
|
2522
|
+
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName), access2);
|
|
2475
2523
|
}
|
|
2476
2524
|
};
|
|
2477
2525
|
}
|
|
@@ -3619,6 +3667,27 @@ var init_client = __esm({
|
|
|
3619
3667
|
async declineChatInvitation(id) {
|
|
3620
3668
|
return this.request("POST", ENDPOINTS.CHAT_INVITATION_DECLINE(id));
|
|
3621
3669
|
}
|
|
3670
|
+
/** Orgs connected to a channel, the channel's own org first. */
|
|
3671
|
+
async listChatConnections(orgId, chatId) {
|
|
3672
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_CONNECTIONS(orgId, chatId));
|
|
3673
|
+
return res.data;
|
|
3674
|
+
}
|
|
3675
|
+
/**
|
|
3676
|
+
* End `connOrgId`'s connection to a channel. From the channel's own org a chat
|
|
3677
|
+
* owner or admin can disconnect any other org; from any other org, an org admin
|
|
3678
|
+
* can disconnect only that org.
|
|
3679
|
+
*/
|
|
3680
|
+
async disconnectChatOrg(orgId, chatId, connOrgId) {
|
|
3681
|
+
return this.request("POST", ENDPOINTS.CHAT_CONNECTION_DISCONNECT(orgId, chatId, connOrgId));
|
|
3682
|
+
}
|
|
3683
|
+
/** Let `connOrgId` back into a channel; only the side that disconnected it can. */
|
|
3684
|
+
async approveChatReconnect(orgId, chatId, connOrgId) {
|
|
3685
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_APPROVE(orgId, chatId, connOrgId));
|
|
3686
|
+
}
|
|
3687
|
+
/** Turn down `connOrgId`'s reconnect; it stays disconnected. */
|
|
3688
|
+
async declineChatReconnect(orgId, chatId, connOrgId) {
|
|
3689
|
+
return this.request("POST", ENDPOINTS.CHAT_RECONNECT_DECLINE(orgId, chatId, connOrgId));
|
|
3690
|
+
}
|
|
3622
3691
|
async getInvitationByToken(token) {
|
|
3623
3692
|
return this.request("GET", ENDPOINTS.INVITATION_BY_TOKEN(token));
|
|
3624
3693
|
}
|
|
@@ -5402,8 +5471,8 @@ var init_client = __esm({
|
|
|
5402
5471
|
* and every `connection_ids` entry a connection of THIS clip in this org
|
|
5403
5472
|
* (else `400 INVALID_INPUT`).
|
|
5404
5473
|
*/
|
|
5405
|
-
async putClipAgentExecAccess(orgId, clipId,
|
|
5406
|
-
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId),
|
|
5474
|
+
async putClipAgentExecAccess(orgId, clipId, access2) {
|
|
5475
|
+
return this.request("PUT", ENDPOINTS.ORG_CLIP_EXEC_ACCESS(orgId, clipId), access2);
|
|
5407
5476
|
}
|
|
5408
5477
|
// ---- Edge devices ----
|
|
5409
5478
|
async listEdgeDevices(orgId) {
|
|
@@ -5587,7 +5656,7 @@ var init_client = __esm({
|
|
|
5587
5656
|
*/
|
|
5588
5657
|
async execEdgeClip(orgId, req) {
|
|
5589
5658
|
const t = req.timeout;
|
|
5590
|
-
const serverTimeout = t !== void 0 && t > 0
|
|
5659
|
+
const serverTimeout = t !== void 0 && t > 0 ? Math.min(t, 12e4) : 3e4;
|
|
5591
5660
|
const timeoutMs = serverTimeout + 1e4;
|
|
5592
5661
|
try {
|
|
5593
5662
|
return await this.request("POST", ENDPOINTS.ORG_EDGE_EXEC(orgId), req, void 0, false, {
|
|
@@ -5801,6 +5870,13 @@ var init_llm_provider_types = __esm({
|
|
|
5801
5870
|
}
|
|
5802
5871
|
});
|
|
5803
5872
|
|
|
5873
|
+
// ts/sdk/dist/mini-app-access-types.js
|
|
5874
|
+
var init_mini_app_access_types = __esm({
|
|
5875
|
+
"ts/sdk/dist/mini-app-access-types.js"() {
|
|
5876
|
+
"use strict";
|
|
5877
|
+
}
|
|
5878
|
+
});
|
|
5879
|
+
|
|
5804
5880
|
// ts/sdk/dist/mini-app-action-types.js
|
|
5805
5881
|
var init_mini_app_action_types = __esm({
|
|
5806
5882
|
"ts/sdk/dist/mini-app-action-types.js"() {
|
|
@@ -6539,6 +6615,7 @@ var init_dist = __esm({
|
|
|
6539
6615
|
init_constants();
|
|
6540
6616
|
init_fetch_cause();
|
|
6541
6617
|
init_llm_provider_types();
|
|
6618
|
+
init_mini_app_access_types();
|
|
6542
6619
|
init_mini_app_action_types();
|
|
6543
6620
|
init_mini_app_types();
|
|
6544
6621
|
init_org_accent_types();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@opentelemetry/api": "^1.9.0",
|
|
35
35
|
"@pinixai/bb-browser-pro": "0.15.0",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
|
-
"@parall/agent
|
|
38
|
-
"@parall/
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/
|
|
37
|
+
"@parall/claude-agent": "1.79.0",
|
|
38
|
+
"@parall/codex-agent": "1.79.0",
|
|
39
|
+
"@parall/openclaw-agent": "1.79.0",
|
|
40
|
+
"@parall/agent-core": "1.79.0",
|
|
41
|
+
"@parall/sdk": "1.79.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|