@parall/daemon 1.71.0 → 1.72.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 +24 -4
- package/bundle/parall-claude-agent.js +28 -4
- package/bundle/parall-codex-agent.js +28 -4
- package/bundle/parall-daemon.js +88 -5
- 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.72.0",
|
|
3
|
+
"built_at": "2026-10-05T21:44:48.190Z",
|
|
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": "7bfc3fe15a2634bd36dedad935198611629e2991bc321882a92d12f4b502313e",
|
|
20
|
+
"size": 3058990
|
|
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": "a5bbd8a409fc85ac47035ccb797375397fea972bb6b04e3fbbdca514d018f5b3",
|
|
28
|
+
"size": 3031183
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "9cd2c10f6630df3474166f46c6d95c3593a7d37b29763100a7a585331b931c7d",
|
|
32
|
+
"size": 3053377
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "3a90f1075d5f4f378e5ef5cb8c6df1dd5fb950019077cfc2cecb83611d946297",
|
|
36
|
+
"size": 3241598
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "9GNE/1+IoDl6G68gH0tYVUQ5SDcvfngCSL2XipKCB+/BPF9PMZWmzt6CHFfK+QrwCR+7YVfgdcO7/99tEauTDg=="
|
|
44
44
|
}
|
|
@@ -64806,6 +64806,7 @@ var ENDPOINTS = {
|
|
|
64806
64806
|
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
64807
64807
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
64808
64808
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
64809
|
+
CHAT_READ_RECEIPTS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-receipts`,
|
|
64809
64810
|
// References (org-scoped)
|
|
64810
64811
|
REFS_RESOLVE: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/resolve`,
|
|
64811
64812
|
REFS_BACKLINKS: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/backlinks`,
|
|
@@ -65195,6 +65196,12 @@ var MiniAppClient = class extends WechatClient {
|
|
|
65195
65196
|
async restoreMiniApp(orgId, appId) {
|
|
65196
65197
|
return this.request("POST", ENDPOINTS.MINI_APP_RESTORE(orgId, appId));
|
|
65197
65198
|
}
|
|
65199
|
+
/** Delete an app (org owner/admin only, not its authors). It is gone from
|
|
65200
|
+
* every read path at once; its Database stays; its versions and files
|
|
65201
|
+
* are removed after 30 days. Deleting it again is 404 APP_NOT_FOUND. */
|
|
65202
|
+
async deleteMiniApp(orgId, appId) {
|
|
65203
|
+
return this.request("DELETE", ENDPOINTS.MINI_APP(orgId, appId));
|
|
65204
|
+
}
|
|
65198
65205
|
async getMiniAppAuthors(orgId, appId) {
|
|
65199
65206
|
const response = await this.request("GET", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId));
|
|
65200
65207
|
return response.data;
|
|
@@ -65266,8 +65273,7 @@ var MiniAppClient = class extends WechatClient {
|
|
|
65266
65273
|
}
|
|
65267
65274
|
/** One or more statements in a single transaction. DML needs
|
|
65268
65275
|
* db.data.write, DDL needs db.ddl and takes a snapshot first; destructive
|
|
65269
|
-
* DDL from an agent is refused
|
|
65270
|
-
* (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
65276
|
+
* DDL from an agent is always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
65271
65277
|
async execMiniAppDatabase(orgId, databaseId, req) {
|
|
65272
65278
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_EXEC(orgId, databaseId), req, void 0, false, { timeoutMs: 12e4 });
|
|
65273
65279
|
}
|
|
@@ -65286,7 +65292,8 @@ var MiniAppClient = class extends WechatClient {
|
|
|
65286
65292
|
return response.data;
|
|
65287
65293
|
}
|
|
65288
65294
|
/** Replace the schema with the snapshot recorded on a log entry
|
|
65289
|
-
* (db.restore; the current state is snapshotted first).
|
|
65295
|
+
* (db.restore; the current state is snapshotted first). An agent is
|
|
65296
|
+
* always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
65290
65297
|
async restoreMiniAppDatabase(orgId, databaseId, logId) {
|
|
65291
65298
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_RESTORE(orgId, databaseId), { log_id: logId }, void 0, false, { timeoutMs: 15 * 6e4 });
|
|
65292
65299
|
}
|
|
@@ -65761,8 +65768,21 @@ var TriggerJudgeClient = class extends WikiDraftClient {
|
|
|
65761
65768
|
}
|
|
65762
65769
|
};
|
|
65763
65770
|
|
|
65771
|
+
// ts/sdk/dist/read-receipt-client.js
|
|
65772
|
+
var ReadReceiptClient = class extends TriggerJudgeClient {
|
|
65773
|
+
/**
|
|
65774
|
+
* The other members' read cursors in a chat — the main timeline, or one
|
|
65775
|
+
* thread's replies when `threadRootId` is given. 403 `READ_RECEIPTS_DISABLED`
|
|
65776
|
+
* when the org has read receipts off.
|
|
65777
|
+
*/
|
|
65778
|
+
async getReadReceipts(orgId, chatId, threadRootId) {
|
|
65779
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_READ_RECEIPTS(orgId, chatId), void 0, threadRootId ? { thread_root_id: threadRootId } : void 0);
|
|
65780
|
+
return res.data;
|
|
65781
|
+
}
|
|
65782
|
+
};
|
|
65783
|
+
|
|
65764
65784
|
// ts/sdk/dist/org-accent-client.js
|
|
65765
|
-
var OrgAccentClient = class extends
|
|
65785
|
+
var OrgAccentClient = class extends ReadReceiptClient {
|
|
65766
65786
|
/** Set the caller's own color theme for this org. */
|
|
65767
65787
|
async setOrgAccentTheme(orgId, accentTheme) {
|
|
65768
65788
|
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
|
@@ -53088,6 +53088,7 @@ var ENDPOINTS = {
|
|
|
53088
53088
|
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
53089
53089
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
53090
53090
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
53091
|
+
CHAT_READ_RECEIPTS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-receipts`,
|
|
53091
53092
|
// References (org-scoped)
|
|
53092
53093
|
REFS_RESOLVE: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/resolve`,
|
|
53093
53094
|
REFS_BACKLINKS: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/backlinks`,
|
|
@@ -53245,6 +53246,9 @@ var WS_EVENTS = {
|
|
|
53245
53246
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
53246
53247
|
ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
|
|
53247
53248
|
APP_DATA_CHANGED: "app.data.changed",
|
|
53249
|
+
APP_CREATED: "app.created",
|
|
53250
|
+
APP_UPDATED: "app.updated",
|
|
53251
|
+
APP_REMOVED: "app.removed",
|
|
53248
53252
|
AGENT_CONFIG_UPDATE: "agent_config.update",
|
|
53249
53253
|
PRESENCE_UPDATE: "presence.update",
|
|
53250
53254
|
WIKI_CHANGESET_CREATED: "wiki.changeset.created",
|
|
@@ -53262,6 +53266,7 @@ var WS_EVENTS = {
|
|
|
53262
53266
|
INBOX_BULK_UPDATE: "inbox.bulk_update",
|
|
53263
53267
|
READ_POSITION_UPDATED: "read_position.updated",
|
|
53264
53268
|
THREAD_READ_POSITION_UPDATED: "thread_read_position.updated",
|
|
53269
|
+
READ_RECEIPT_UPDATED: "read_receipt.updated",
|
|
53265
53270
|
ORG_UNREAD_DELTA: "org_unread.delta",
|
|
53266
53271
|
ORG_UNREAD_INVALIDATED: "org_unread.invalidated",
|
|
53267
53272
|
DISPATCH_NEW: "dispatch.new",
|
|
@@ -53574,6 +53579,12 @@ var MiniAppClient = class extends WechatClient {
|
|
|
53574
53579
|
async restoreMiniApp(orgId, appId) {
|
|
53575
53580
|
return this.request("POST", ENDPOINTS.MINI_APP_RESTORE(orgId, appId));
|
|
53576
53581
|
}
|
|
53582
|
+
/** Delete an app (org owner/admin only, not its authors). It is gone from
|
|
53583
|
+
* every read path at once; its Database stays; its versions and files
|
|
53584
|
+
* are removed after 30 days. Deleting it again is 404 APP_NOT_FOUND. */
|
|
53585
|
+
async deleteMiniApp(orgId, appId) {
|
|
53586
|
+
return this.request("DELETE", ENDPOINTS.MINI_APP(orgId, appId));
|
|
53587
|
+
}
|
|
53577
53588
|
async getMiniAppAuthors(orgId, appId) {
|
|
53578
53589
|
const response = await this.request("GET", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId));
|
|
53579
53590
|
return response.data;
|
|
@@ -53645,8 +53656,7 @@ var MiniAppClient = class extends WechatClient {
|
|
|
53645
53656
|
}
|
|
53646
53657
|
/** One or more statements in a single transaction. DML needs
|
|
53647
53658
|
* db.data.write, DDL needs db.ddl and takes a snapshot first; destructive
|
|
53648
|
-
* DDL from an agent is refused
|
|
53649
|
-
* (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
53659
|
+
* DDL from an agent is always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
53650
53660
|
async execMiniAppDatabase(orgId, databaseId, req) {
|
|
53651
53661
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_EXEC(orgId, databaseId), req, void 0, false, { timeoutMs: 12e4 });
|
|
53652
53662
|
}
|
|
@@ -53665,7 +53675,8 @@ var MiniAppClient = class extends WechatClient {
|
|
|
53665
53675
|
return response.data;
|
|
53666
53676
|
}
|
|
53667
53677
|
/** Replace the schema with the snapshot recorded on a log entry
|
|
53668
|
-
* (db.restore; the current state is snapshotted first).
|
|
53678
|
+
* (db.restore; the current state is snapshotted first). An agent is
|
|
53679
|
+
* always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
53669
53680
|
async restoreMiniAppDatabase(orgId, databaseId, logId) {
|
|
53670
53681
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_RESTORE(orgId, databaseId), { log_id: logId }, void 0, false, { timeoutMs: 15 * 6e4 });
|
|
53671
53682
|
}
|
|
@@ -54140,8 +54151,21 @@ var TriggerJudgeClient = class extends WikiDraftClient {
|
|
|
54140
54151
|
}
|
|
54141
54152
|
};
|
|
54142
54153
|
|
|
54154
|
+
// ts/sdk/dist/read-receipt-client.js
|
|
54155
|
+
var ReadReceiptClient = class extends TriggerJudgeClient {
|
|
54156
|
+
/**
|
|
54157
|
+
* The other members' read cursors in a chat — the main timeline, or one
|
|
54158
|
+
* thread's replies when `threadRootId` is given. 403 `READ_RECEIPTS_DISABLED`
|
|
54159
|
+
* when the org has read receipts off.
|
|
54160
|
+
*/
|
|
54161
|
+
async getReadReceipts(orgId, chatId, threadRootId) {
|
|
54162
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_READ_RECEIPTS(orgId, chatId), void 0, threadRootId ? { thread_root_id: threadRootId } : void 0);
|
|
54163
|
+
return res.data;
|
|
54164
|
+
}
|
|
54165
|
+
};
|
|
54166
|
+
|
|
54143
54167
|
// ts/sdk/dist/org-accent-client.js
|
|
54144
|
-
var OrgAccentClient = class extends
|
|
54168
|
+
var OrgAccentClient = class extends ReadReceiptClient {
|
|
54145
54169
|
/** Set the caller's own color theme for this org. */
|
|
54146
54170
|
async setOrgAccentTheme(orgId, accentTheme) {
|
|
54147
54171
|
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
|
@@ -53088,6 +53088,7 @@ var ENDPOINTS = {
|
|
|
53088
53088
|
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
53089
53089
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
53090
53090
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
53091
|
+
CHAT_READ_RECEIPTS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-receipts`,
|
|
53091
53092
|
// References (org-scoped)
|
|
53092
53093
|
REFS_RESOLVE: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/resolve`,
|
|
53093
53094
|
REFS_BACKLINKS: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/backlinks`,
|
|
@@ -53245,6 +53246,9 @@ var WS_EVENTS = {
|
|
|
53245
53246
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
53246
53247
|
ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
|
|
53247
53248
|
APP_DATA_CHANGED: "app.data.changed",
|
|
53249
|
+
APP_CREATED: "app.created",
|
|
53250
|
+
APP_UPDATED: "app.updated",
|
|
53251
|
+
APP_REMOVED: "app.removed",
|
|
53248
53252
|
AGENT_CONFIG_UPDATE: "agent_config.update",
|
|
53249
53253
|
PRESENCE_UPDATE: "presence.update",
|
|
53250
53254
|
WIKI_CHANGESET_CREATED: "wiki.changeset.created",
|
|
@@ -53262,6 +53266,7 @@ var WS_EVENTS = {
|
|
|
53262
53266
|
INBOX_BULK_UPDATE: "inbox.bulk_update",
|
|
53263
53267
|
READ_POSITION_UPDATED: "read_position.updated",
|
|
53264
53268
|
THREAD_READ_POSITION_UPDATED: "thread_read_position.updated",
|
|
53269
|
+
READ_RECEIPT_UPDATED: "read_receipt.updated",
|
|
53265
53270
|
ORG_UNREAD_DELTA: "org_unread.delta",
|
|
53266
53271
|
ORG_UNREAD_INVALIDATED: "org_unread.invalidated",
|
|
53267
53272
|
DISPATCH_NEW: "dispatch.new",
|
|
@@ -53574,6 +53579,12 @@ var MiniAppClient = class extends WechatClient {
|
|
|
53574
53579
|
async restoreMiniApp(orgId, appId) {
|
|
53575
53580
|
return this.request("POST", ENDPOINTS.MINI_APP_RESTORE(orgId, appId));
|
|
53576
53581
|
}
|
|
53582
|
+
/** Delete an app (org owner/admin only, not its authors). It is gone from
|
|
53583
|
+
* every read path at once; its Database stays; its versions and files
|
|
53584
|
+
* are removed after 30 days. Deleting it again is 404 APP_NOT_FOUND. */
|
|
53585
|
+
async deleteMiniApp(orgId, appId) {
|
|
53586
|
+
return this.request("DELETE", ENDPOINTS.MINI_APP(orgId, appId));
|
|
53587
|
+
}
|
|
53577
53588
|
async getMiniAppAuthors(orgId, appId) {
|
|
53578
53589
|
const response = await this.request("GET", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId));
|
|
53579
53590
|
return response.data;
|
|
@@ -53645,8 +53656,7 @@ var MiniAppClient = class extends WechatClient {
|
|
|
53645
53656
|
}
|
|
53646
53657
|
/** One or more statements in a single transaction. DML needs
|
|
53647
53658
|
* db.data.write, DDL needs db.ddl and takes a snapshot first; destructive
|
|
53648
|
-
* DDL from an agent is refused
|
|
53649
|
-
* (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
53659
|
+
* DDL from an agent is always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
53650
53660
|
async execMiniAppDatabase(orgId, databaseId, req) {
|
|
53651
53661
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_EXEC(orgId, databaseId), req, void 0, false, { timeoutMs: 12e4 });
|
|
53652
53662
|
}
|
|
@@ -53665,7 +53675,8 @@ var MiniAppClient = class extends WechatClient {
|
|
|
53665
53675
|
return response.data;
|
|
53666
53676
|
}
|
|
53667
53677
|
/** Replace the schema with the snapshot recorded on a log entry
|
|
53668
|
-
* (db.restore; the current state is snapshotted first).
|
|
53678
|
+
* (db.restore; the current state is snapshotted first). An agent is
|
|
53679
|
+
* always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
53669
53680
|
async restoreMiniAppDatabase(orgId, databaseId, logId) {
|
|
53670
53681
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_RESTORE(orgId, databaseId), { log_id: logId }, void 0, false, { timeoutMs: 15 * 6e4 });
|
|
53671
53682
|
}
|
|
@@ -54140,8 +54151,21 @@ var TriggerJudgeClient = class extends WikiDraftClient {
|
|
|
54140
54151
|
}
|
|
54141
54152
|
};
|
|
54142
54153
|
|
|
54154
|
+
// ts/sdk/dist/read-receipt-client.js
|
|
54155
|
+
var ReadReceiptClient = class extends TriggerJudgeClient {
|
|
54156
|
+
/**
|
|
54157
|
+
* The other members' read cursors in a chat — the main timeline, or one
|
|
54158
|
+
* thread's replies when `threadRootId` is given. 403 `READ_RECEIPTS_DISABLED`
|
|
54159
|
+
* when the org has read receipts off.
|
|
54160
|
+
*/
|
|
54161
|
+
async getReadReceipts(orgId, chatId, threadRootId) {
|
|
54162
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_READ_RECEIPTS(orgId, chatId), void 0, threadRootId ? { thread_root_id: threadRootId } : void 0);
|
|
54163
|
+
return res.data;
|
|
54164
|
+
}
|
|
54165
|
+
};
|
|
54166
|
+
|
|
54143
54167
|
// ts/sdk/dist/org-accent-client.js
|
|
54144
|
-
var OrgAccentClient = class extends
|
|
54168
|
+
var OrgAccentClient = class extends ReadReceiptClient {
|
|
54145
54169
|
/** Set the caller's own color theme for this org. */
|
|
54146
54170
|
async setOrgAccentTheme(orgId, accentTheme) {
|
|
54147
54171
|
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
package/bundle/parall-daemon.js
CHANGED
|
@@ -1437,6 +1437,7 @@ var init_constants = __esm({
|
|
|
1437
1437
|
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
1438
1438
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
1439
1439
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
1440
|
+
CHAT_READ_RECEIPTS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-receipts`,
|
|
1440
1441
|
// References (org-scoped)
|
|
1441
1442
|
REFS_RESOLVE: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/resolve`,
|
|
1442
1443
|
REFS_BACKLINKS: (orgId) => `${API_BASE2}/orgs/${orgId}/refs/backlinks`,
|
|
@@ -1594,6 +1595,9 @@ var init_constants = __esm({
|
|
|
1594
1595
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
1595
1596
|
ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
|
|
1596
1597
|
APP_DATA_CHANGED: "app.data.changed",
|
|
1598
|
+
APP_CREATED: "app.created",
|
|
1599
|
+
APP_UPDATED: "app.updated",
|
|
1600
|
+
APP_REMOVED: "app.removed",
|
|
1597
1601
|
AGENT_CONFIG_UPDATE: "agent_config.update",
|
|
1598
1602
|
PRESENCE_UPDATE: "presence.update",
|
|
1599
1603
|
WIKI_CHANGESET_CREATED: "wiki.changeset.created",
|
|
@@ -1611,6 +1615,7 @@ var init_constants = __esm({
|
|
|
1611
1615
|
INBOX_BULK_UPDATE: "inbox.bulk_update",
|
|
1612
1616
|
READ_POSITION_UPDATED: "read_position.updated",
|
|
1613
1617
|
THREAD_READ_POSITION_UPDATED: "thread_read_position.updated",
|
|
1618
|
+
READ_RECEIPT_UPDATED: "read_receipt.updated",
|
|
1614
1619
|
ORG_UNREAD_DELTA: "org_unread.delta",
|
|
1615
1620
|
ORG_UNREAD_INVALIDATED: "org_unread.invalidated",
|
|
1616
1621
|
DISPATCH_NEW: "dispatch.new",
|
|
@@ -1970,6 +1975,12 @@ var init_mini_app_client = __esm({
|
|
|
1970
1975
|
async restoreMiniApp(orgId, appId) {
|
|
1971
1976
|
return this.request("POST", ENDPOINTS.MINI_APP_RESTORE(orgId, appId));
|
|
1972
1977
|
}
|
|
1978
|
+
/** Delete an app (org owner/admin only, not its authors). It is gone from
|
|
1979
|
+
* every read path at once; its Database stays; its versions and files
|
|
1980
|
+
* are removed after 30 days. Deleting it again is 404 APP_NOT_FOUND. */
|
|
1981
|
+
async deleteMiniApp(orgId, appId) {
|
|
1982
|
+
return this.request("DELETE", ENDPOINTS.MINI_APP(orgId, appId));
|
|
1983
|
+
}
|
|
1973
1984
|
async getMiniAppAuthors(orgId, appId) {
|
|
1974
1985
|
const response = await this.request("GET", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId));
|
|
1975
1986
|
return response.data;
|
|
@@ -2041,8 +2052,7 @@ var init_mini_app_client = __esm({
|
|
|
2041
2052
|
}
|
|
2042
2053
|
/** One or more statements in a single transaction. DML needs
|
|
2043
2054
|
* db.data.write, DDL needs db.ddl and takes a snapshot first; destructive
|
|
2044
|
-
* DDL from an agent is refused
|
|
2045
|
-
* (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
2055
|
+
* DDL from an agent is always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
2046
2056
|
async execMiniAppDatabase(orgId, databaseId, req) {
|
|
2047
2057
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_EXEC(orgId, databaseId), req, void 0, false, { timeoutMs: 12e4 });
|
|
2048
2058
|
}
|
|
@@ -2061,7 +2071,8 @@ var init_mini_app_client = __esm({
|
|
|
2061
2071
|
return response.data;
|
|
2062
2072
|
}
|
|
2063
2073
|
/** Replace the schema with the snapshot recorded on a log entry
|
|
2064
|
-
* (db.restore; the current state is snapshotted first).
|
|
2074
|
+
* (db.restore; the current state is snapshotted first). An agent is
|
|
2075
|
+
* always refused (403 DB_DDL_APPROVAL_REQUIRED). */
|
|
2065
2076
|
async restoreMiniAppDatabase(orgId, databaseId, logId) {
|
|
2066
2077
|
return this.request("POST", ENDPOINTS.MINI_APP_DATABASE_RESTORE(orgId, databaseId), { log_id: logId }, void 0, false, { timeoutMs: 15 * 6e4 });
|
|
2067
2078
|
}
|
|
@@ -2770,14 +2781,35 @@ var init_trigger_judge_client = __esm({
|
|
|
2770
2781
|
}
|
|
2771
2782
|
});
|
|
2772
2783
|
|
|
2784
|
+
// ts/sdk/dist/read-receipt-client.js
|
|
2785
|
+
var ReadReceiptClient;
|
|
2786
|
+
var init_read_receipt_client = __esm({
|
|
2787
|
+
"ts/sdk/dist/read-receipt-client.js"() {
|
|
2788
|
+
"use strict";
|
|
2789
|
+
init_constants();
|
|
2790
|
+
init_trigger_judge_client();
|
|
2791
|
+
ReadReceiptClient = class extends TriggerJudgeClient {
|
|
2792
|
+
/**
|
|
2793
|
+
* The other members' read cursors in a chat — the main timeline, or one
|
|
2794
|
+
* thread's replies when `threadRootId` is given. 403 `READ_RECEIPTS_DISABLED`
|
|
2795
|
+
* when the org has read receipts off.
|
|
2796
|
+
*/
|
|
2797
|
+
async getReadReceipts(orgId, chatId, threadRootId) {
|
|
2798
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_READ_RECEIPTS(orgId, chatId), void 0, threadRootId ? { thread_root_id: threadRootId } : void 0);
|
|
2799
|
+
return res.data;
|
|
2800
|
+
}
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
2803
|
+
});
|
|
2804
|
+
|
|
2773
2805
|
// ts/sdk/dist/org-accent-client.js
|
|
2774
2806
|
var OrgAccentClient;
|
|
2775
2807
|
var init_org_accent_client = __esm({
|
|
2776
2808
|
"ts/sdk/dist/org-accent-client.js"() {
|
|
2777
2809
|
"use strict";
|
|
2778
2810
|
init_constants();
|
|
2779
|
-
|
|
2780
|
-
OrgAccentClient = class extends
|
|
2811
|
+
init_read_receipt_client();
|
|
2812
|
+
OrgAccentClient = class extends ReadReceiptClient {
|
|
2781
2813
|
/** Set the caller's own color theme for this org. */
|
|
2782
2814
|
async setOrgAccentTheme(orgId, accentTheme) {
|
|
2783
2815
|
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
|
@@ -5712,6 +5744,52 @@ var init_org_unread_types = __esm({
|
|
|
5712
5744
|
}
|
|
5713
5745
|
});
|
|
5714
5746
|
|
|
5747
|
+
// ts/sdk/dist/read-receipt.js
|
|
5748
|
+
function toMillis(ts) {
|
|
5749
|
+
return Date.parse(ts.replace(/(\.\d{3})\d+/, "$1"));
|
|
5750
|
+
}
|
|
5751
|
+
function toReadReceiptCursors(members) {
|
|
5752
|
+
return members.map((m) => ({
|
|
5753
|
+
user_id: m.user_id,
|
|
5754
|
+
joined_at_ms: toMillis(m.joined_at),
|
|
5755
|
+
last_read_message_id: m.last_read_message_id
|
|
5756
|
+
}));
|
|
5757
|
+
}
|
|
5758
|
+
function showsReadReceipt(message, viewerId) {
|
|
5759
|
+
return !!viewerId && message.sender_id === viewerId && !message.id.startsWith("pending_") && !message.deleted_at && message.message_type !== "system";
|
|
5760
|
+
}
|
|
5761
|
+
function readReceiptOf(message, cursors) {
|
|
5762
|
+
const sentAt = toMillis(message.created_at);
|
|
5763
|
+
const read = [];
|
|
5764
|
+
const unread = [];
|
|
5765
|
+
for (const m of cursors) {
|
|
5766
|
+
if (m.user_id === message.sender_id || m.joined_at_ms > sentAt)
|
|
5767
|
+
continue;
|
|
5768
|
+
if (m.last_read_message_id !== null && m.last_read_message_id >= message.id) {
|
|
5769
|
+
read.push(m.user_id);
|
|
5770
|
+
} else {
|
|
5771
|
+
unread.push(m.user_id);
|
|
5772
|
+
}
|
|
5773
|
+
}
|
|
5774
|
+
return { read, unread };
|
|
5775
|
+
}
|
|
5776
|
+
function mergeReadReceipt(cursors, update) {
|
|
5777
|
+
const i = cursors.findIndex((m) => m.user_id === update.user_id);
|
|
5778
|
+
if (i < 0)
|
|
5779
|
+
return null;
|
|
5780
|
+
const current = cursors[i].last_read_message_id;
|
|
5781
|
+
if (current !== null && current >= update.last_read_message_id)
|
|
5782
|
+
return cursors;
|
|
5783
|
+
const next = [...cursors];
|
|
5784
|
+
next[i] = { ...cursors[i], last_read_message_id: update.last_read_message_id };
|
|
5785
|
+
return next;
|
|
5786
|
+
}
|
|
5787
|
+
var init_read_receipt = __esm({
|
|
5788
|
+
"ts/sdk/dist/read-receipt.js"() {
|
|
5789
|
+
"use strict";
|
|
5790
|
+
}
|
|
5791
|
+
});
|
|
5792
|
+
|
|
5715
5793
|
// ts/sdk/dist/runtime-observation.js
|
|
5716
5794
|
var RUNTIME_OBSERVATION_EVENTS, RUNTIME_OBSERVATION_STATUSES;
|
|
5717
5795
|
var init_runtime_observation2 = __esm({
|
|
@@ -6304,10 +6382,14 @@ __export(dist_exports, {
|
|
|
6304
6382
|
isWikiDraftWelcome: () => isWikiDraftWelcome,
|
|
6305
6383
|
isWikiPersonalNamespacePath: () => isWikiPersonalNamespacePath,
|
|
6306
6384
|
mentionTargetsUser: () => mentionTargetsUser,
|
|
6385
|
+
mergeReadReceipt: () => mergeReadReceipt,
|
|
6307
6386
|
parseSubjectToken: () => parseSubjectToken,
|
|
6308
6387
|
platformDefaultModelForRuntime: () => platformDefaultModelForRuntime,
|
|
6388
|
+
readReceiptOf: () => readReceiptOf,
|
|
6309
6389
|
sameWikiDraftScope: () => sameWikiDraftScope,
|
|
6390
|
+
showsReadReceipt: () => showsReadReceipt,
|
|
6310
6391
|
teamIdsFromSubjects: () => teamIdsFromSubjects,
|
|
6392
|
+
toReadReceiptCursors: () => toReadReceiptCursors,
|
|
6311
6393
|
validateBrowserUseActionRequest: () => validateBrowserUseActionRequest,
|
|
6312
6394
|
validateBrowserUseField: () => validateBrowserUseField,
|
|
6313
6395
|
validateBrowserUseReceipt: () => validateBrowserUseReceipt,
|
|
@@ -6333,6 +6415,7 @@ var init_dist = __esm({
|
|
|
6333
6415
|
init_mini_app_types();
|
|
6334
6416
|
init_org_accent_types();
|
|
6335
6417
|
init_org_unread_types();
|
|
6418
|
+
init_read_receipt();
|
|
6336
6419
|
init_runtime_observation2();
|
|
6337
6420
|
init_subject();
|
|
6338
6421
|
init_task_label_types();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.72.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/codex-agent": "1.
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/
|
|
37
|
+
"@parall/claude-agent": "1.72.0",
|
|
38
|
+
"@parall/agent-core": "1.72.0",
|
|
39
|
+
"@parall/codex-agent": "1.72.0",
|
|
40
|
+
"@parall/openclaw-agent": "1.72.0",
|
|
41
|
+
"@parall/sdk": "1.72.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|