@parall/daemon 1.68.0 → 1.70.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 +67 -38
- package/bundle/parall-claude-agent.js +23 -2
- package/bundle/parall-codex-agent.js +23 -2
- package/bundle/parall-daemon.js +177 -106
- package/dist/browser-pod.d.ts +1 -1
- package/dist/browser-pod.js +1 -1
- package/dist/clip-runtime/clip-provider.d.ts +4 -0
- package/dist/clip-runtime/clip-provider.d.ts.map +1 -1
- package/dist/clip-runtime/clip-provider.js +16 -43
- package/dist/clip-runtime/connect-envelope.d.ts +22 -0
- package/dist/clip-runtime/connect-envelope.d.ts.map +1 -0
- package/dist/clip-runtime/connect-envelope.js +42 -0
- package/dist/clip-runtime/hub-client.d.ts.map +1 -1
- package/dist/clip-runtime/hub-client.js +1 -34
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -0
- package/dist/daemon-main.d.ts.map +1 -1
- package/dist/daemon-main.js +11 -0
- package/dist/supervisor.d.ts +11 -0
- package/dist/supervisor.d.ts.map +1 -1
- package/dist/supervisor.js +67 -63
- package/dist/updater.d.ts +9 -0
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +18 -4
- package/package.json +6 -6
package/bundle/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"built_at": "2026-09-
|
|
2
|
+
"version": "1.70.0",
|
|
3
|
+
"built_at": "2026-09-30T17:02:05.610Z",
|
|
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": "f743b88f5994a3123e0a75f1ebcc292dfe03f0ff6c68c51ea5643070ea80d533",
|
|
20
|
+
"size": 3054007
|
|
21
21
|
},
|
|
22
22
|
"parall-channel-exec.js": {
|
|
23
23
|
"sha256": "7c2a6e12483a45e9eb4a42cd7d4cdd3c4fa21dd09ac1347d9a3e177b4ddee930",
|
|
24
24
|
"size": 7220
|
|
25
25
|
},
|
|
26
26
|
"parall-claude-agent.js": {
|
|
27
|
-
"sha256": "
|
|
28
|
-
"size":
|
|
27
|
+
"sha256": "4b83876df8922a1d29b0ba57a960558980b1e1ae70cbcc4f31e44132f69eee70",
|
|
28
|
+
"size": 3022124
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "80ead9ee629732525d9d8d954146f33c6abf89ccc06d7a75383a10eec1dfec9e",
|
|
32
|
+
"size": 3044318
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "15ef7e67f43c46474130fde55bea93c4fd189ec335bc2ae3b023845377fb11e8",
|
|
36
|
+
"size": 3231481
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "vcg38htfmDLJheB/vnk3KVFb6b6QykbEP0exzYjc0UmnshbfNO+m20F9RfopU8dm0iYxi29bO8wJnA7ZsyPzBw=="
|
|
44
44
|
}
|
|
@@ -64315,6 +64315,7 @@ function attachmentEndpoints(apiBase) {
|
|
|
64315
64315
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
64316
64316
|
var clipConnectionEndpoints = {
|
|
64317
64317
|
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
64318
|
+
CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
|
|
64318
64319
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
64319
64320
|
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
64320
64321
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
@@ -64434,6 +64435,7 @@ var ENDPOINTS = {
|
|
|
64434
64435
|
// Onboarding
|
|
64435
64436
|
SEED_ONBOARDING_DM: (orgId) => `${API_BASE2}/orgs/${orgId}/seed-onboarding-dm`,
|
|
64436
64437
|
DISMISS_ONBOARDING: (orgId) => `${API_BASE2}/orgs/${orgId}/dismiss-onboarding`,
|
|
64438
|
+
ORG_ACCENT_THEME: (orgId) => `${API_BASE2}/orgs/${orgId}/accent-theme`,
|
|
64437
64439
|
// Chats (org-scoped)
|
|
64438
64440
|
CHATS: (orgId) => `${API_BASE2}/orgs/${orgId}/chats`,
|
|
64439
64441
|
CHATS_DISCOVERABLE: (orgId) => `${API_BASE2}/orgs/${orgId}/chats/discoverable`,
|
|
@@ -64800,6 +64802,7 @@ var ENDPOINTS = {
|
|
|
64800
64802
|
UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
|
|
64801
64803
|
CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
|
|
64802
64804
|
CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
|
|
64805
|
+
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
64803
64806
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
64804
64807
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
64805
64808
|
// References (org-scoped)
|
|
@@ -65509,6 +65512,9 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65509
65512
|
async listClipConnections(orgId, clipId) {
|
|
65510
65513
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
65511
65514
|
}
|
|
65515
|
+
async listAllClipConnections(orgId) {
|
|
65516
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS_ALL(orgId));
|
|
65517
|
+
}
|
|
65512
65518
|
async createClipConnection(orgId, clipId, input) {
|
|
65513
65519
|
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
65514
65520
|
}
|
|
@@ -65681,6 +65687,14 @@ var TriggerJudgeClient = class extends WikiDraftClient {
|
|
|
65681
65687
|
}
|
|
65682
65688
|
};
|
|
65683
65689
|
|
|
65690
|
+
// ts/sdk/dist/org-accent-client.js
|
|
65691
|
+
var OrgAccentClient = class extends TriggerJudgeClient {
|
|
65692
|
+
/** Set the caller's own color theme for this org. */
|
|
65693
|
+
async setOrgAccentTheme(orgId, accentTheme) {
|
|
65694
|
+
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
|
65695
|
+
}
|
|
65696
|
+
};
|
|
65697
|
+
|
|
65684
65698
|
// ts/sdk/dist/wiki-upload.js
|
|
65685
65699
|
function createWikiUploadFormData(params) {
|
|
65686
65700
|
const form = new FormData();
|
|
@@ -65817,7 +65831,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
65817
65831
|
detectedRuntimes
|
|
65818
65832
|
};
|
|
65819
65833
|
}
|
|
65820
|
-
var ParallClient = class _ParallClient extends
|
|
65834
|
+
var ParallClient = class _ParallClient extends OrgAccentClient {
|
|
65821
65835
|
baseUrl;
|
|
65822
65836
|
wikiBaseUrl;
|
|
65823
65837
|
token;
|
|
@@ -66990,6 +67004,12 @@ var ParallClient = class _ParallClient extends TriggerJudgeClient {
|
|
|
66990
67004
|
async markAllRead(orgId, chatId) {
|
|
66991
67005
|
return this.request("POST", ENDPOINTS.CHAT_READ_ALL(orgId, chatId));
|
|
66992
67006
|
}
|
|
67007
|
+
/** The caller's watched threads in a chat that have unread replies — the
|
|
67008
|
+
* per-thread breakdown of the chat's `thread_count`, for reaching thread
|
|
67009
|
+
* residue whose root is outside the loaded message window. */
|
|
67010
|
+
async getUnreadThreads(orgId, chatId) {
|
|
67011
|
+
return this.request("GET", ENDPOINTS.CHAT_UNREAD_THREADS(orgId, chatId));
|
|
67012
|
+
}
|
|
66993
67013
|
async getThreadUnread(orgId, chatId, threadRootId) {
|
|
66994
67014
|
return this.request("GET", ENDPOINTS.THREAD_UNREAD(orgId, chatId, threadRootId));
|
|
66995
67015
|
}
|
|
@@ -71099,6 +71119,40 @@ function dependencyMaps(manifest) {
|
|
|
71099
71119
|
return [manifest?.dependencies, manifest?.dependencySlots].filter((deps) => !!deps);
|
|
71100
71120
|
}
|
|
71101
71121
|
|
|
71122
|
+
// ts/daemon/dist/clip-runtime/connect-envelope.js
|
|
71123
|
+
var ENVELOPE_FLAG_DATA = 0;
|
|
71124
|
+
var ENVELOPE_FLAG_TRAILER = 2;
|
|
71125
|
+
var MAX_FRAME_LENGTH = 16 * 1024 * 1024;
|
|
71126
|
+
function encodeEnvelope(msg) {
|
|
71127
|
+
const json = Buffer.from(JSON.stringify(msg), "utf-8");
|
|
71128
|
+
const header = Buffer.alloc(5);
|
|
71129
|
+
header[0] = ENVELOPE_FLAG_DATA;
|
|
71130
|
+
header.writeUInt32BE(json.length, 1);
|
|
71131
|
+
return Buffer.concat([header, json]);
|
|
71132
|
+
}
|
|
71133
|
+
var EnvelopeDecoder = class {
|
|
71134
|
+
buf = Buffer.alloc(0);
|
|
71135
|
+
push(chunk) {
|
|
71136
|
+
this.buf = this.buf.length === 0 ? Buffer.from(chunk) : Buffer.concat([this.buf, chunk]);
|
|
71137
|
+
}
|
|
71138
|
+
/** Drain all complete envelopes from the internal buffer. */
|
|
71139
|
+
*flush() {
|
|
71140
|
+
while (this.buf.length >= 5) {
|
|
71141
|
+
const flags = this.buf[0];
|
|
71142
|
+
const length = this.buf.readUInt32BE(1);
|
|
71143
|
+
if (length > MAX_FRAME_LENGTH) {
|
|
71144
|
+
this.buf = Buffer.alloc(0);
|
|
71145
|
+
throw new Error(`envelope frame too large: ${length} bytes`);
|
|
71146
|
+
}
|
|
71147
|
+
if (this.buf.length < 5 + length)
|
|
71148
|
+
break;
|
|
71149
|
+
const payload2 = this.buf.subarray(5, 5 + length);
|
|
71150
|
+
this.buf = Buffer.from(this.buf.subarray(5 + length));
|
|
71151
|
+
yield { flags, payload: payload2 };
|
|
71152
|
+
}
|
|
71153
|
+
}
|
|
71154
|
+
};
|
|
71155
|
+
|
|
71102
71156
|
// ts/daemon/dist/clip-runtime/process.js
|
|
71103
71157
|
import { spawn as spawn4 } from "node:child_process";
|
|
71104
71158
|
import { createInterface as createInterface2 } from "node:readline";
|
|
@@ -71743,43 +71797,10 @@ var ClipProcess = class {
|
|
|
71743
71797
|
};
|
|
71744
71798
|
|
|
71745
71799
|
// ts/daemon/dist/clip-runtime/clip-provider.js
|
|
71746
|
-
var ENVELOPE_FLAG_DATA = 0;
|
|
71747
|
-
var ENVELOPE_FLAG_TRAILER = 2;
|
|
71748
|
-
function encodeEnvelope(msg) {
|
|
71749
|
-
const json = Buffer.from(JSON.stringify(msg), "utf-8");
|
|
71750
|
-
const header = Buffer.alloc(5);
|
|
71751
|
-
header[0] = ENVELOPE_FLAG_DATA;
|
|
71752
|
-
header.writeUInt32BE(json.length, 1);
|
|
71753
|
-
return Buffer.concat([header, json]);
|
|
71754
|
-
}
|
|
71755
71800
|
function registrationKey(clips) {
|
|
71756
71801
|
const sorted = [...clips].sort((a5, b5) => (a5.alias ?? "").localeCompare(b5.alias ?? ""));
|
|
71757
71802
|
return JSON.stringify(sorted);
|
|
71758
71803
|
}
|
|
71759
|
-
var EnvelopeDecoder = class _EnvelopeDecoder {
|
|
71760
|
-
buf = Buffer.alloc(0);
|
|
71761
|
-
push(chunk) {
|
|
71762
|
-
this.buf = this.buf.length === 0 ? Buffer.from(chunk) : Buffer.concat([this.buf, chunk]);
|
|
71763
|
-
}
|
|
71764
|
-
/** Drain all complete envelopes from the internal buffer. */
|
|
71765
|
-
static MAX_FRAME_LENGTH = 16 * 1024 * 1024;
|
|
71766
|
-
// 16 MiB
|
|
71767
|
-
*flush() {
|
|
71768
|
-
while (this.buf.length >= 5) {
|
|
71769
|
-
const flags = this.buf[0];
|
|
71770
|
-
const length = this.buf.readUInt32BE(1);
|
|
71771
|
-
if (length > _EnvelopeDecoder.MAX_FRAME_LENGTH) {
|
|
71772
|
-
this.buf = Buffer.alloc(0);
|
|
71773
|
-
throw new Error(`envelope frame too large: ${length} bytes`);
|
|
71774
|
-
}
|
|
71775
|
-
if (this.buf.length < 5 + length)
|
|
71776
|
-
break;
|
|
71777
|
-
const payload2 = this.buf.subarray(5, 5 + length);
|
|
71778
|
-
this.buf = Buffer.from(this.buf.subarray(5 + length));
|
|
71779
|
-
yield { flags, payload: payload2 };
|
|
71780
|
-
}
|
|
71781
|
-
}
|
|
71782
|
-
};
|
|
71783
71804
|
var ClipProvider = class _ClipProvider {
|
|
71784
71805
|
opts;
|
|
71785
71806
|
session = null;
|
|
@@ -71787,6 +71808,7 @@ var ClipProvider = class _ClipProvider {
|
|
|
71787
71808
|
stopped = false;
|
|
71788
71809
|
connected = false;
|
|
71789
71810
|
reconnectAttempt = 0;
|
|
71811
|
+
rejectedAttempt = 0;
|
|
71790
71812
|
reconnectTimer = null;
|
|
71791
71813
|
heartbeatTimer = null;
|
|
71792
71814
|
statusUnsubscribe = null;
|
|
@@ -71905,10 +71927,10 @@ var ClipProvider = class _ClipProvider {
|
|
|
71905
71927
|
this.clearHeartbeatTimer();
|
|
71906
71928
|
this.scheduleReconnect();
|
|
71907
71929
|
}
|
|
71908
|
-
scheduleReconnect() {
|
|
71930
|
+
scheduleReconnect(delayMs) {
|
|
71909
71931
|
if (this.stopped || this.reconnectTimer)
|
|
71910
71932
|
return;
|
|
71911
|
-
const delay = Math.min(_ClipProvider.RECONNECT_BASE_MS * Math.pow(2, this.reconnectAttempt), _ClipProvider.RECONNECT_MAX_MS);
|
|
71933
|
+
const delay = delayMs ?? Math.min(_ClipProvider.RECONNECT_BASE_MS * Math.pow(2, this.reconnectAttempt), _ClipProvider.RECONNECT_MAX_MS);
|
|
71912
71934
|
this.reconnectAttempt++;
|
|
71913
71935
|
this.opts.log.info(`[clip-provider] reconnecting in ${delay}ms (attempt ${this.reconnectAttempt})`);
|
|
71914
71936
|
if (this.reconnectAttempt % _ClipProvider.PERSISTENT_FAILURE_ATTEMPT === 0) {
|
|
@@ -72051,11 +72073,19 @@ var ClipProvider = class _ClipProvider {
|
|
|
72051
72073
|
this.opts.log.info(`[clip-provider] registered with hub (org=${this.opts.orgId})`);
|
|
72052
72074
|
this.connected = true;
|
|
72053
72075
|
this.reconnectAttempt = 0;
|
|
72076
|
+
this.rejectedAttempt = 0;
|
|
72054
72077
|
this.startHeartbeat();
|
|
72055
72078
|
this.flushReregister();
|
|
72056
72079
|
} else {
|
|
72057
72080
|
this.opts.log.error(`[clip-provider] registration rejected: ${reg.message}`);
|
|
72058
|
-
this.
|
|
72081
|
+
this.connected = false;
|
|
72082
|
+
const retryDelay = this.opts.rejectedRetryDelayMs?.(this.rejectedAttempt++);
|
|
72083
|
+
if (retryDelay === void 0) {
|
|
72084
|
+
this.stopped = true;
|
|
72085
|
+
} else {
|
|
72086
|
+
this.clearHeartbeatTimer();
|
|
72087
|
+
this.scheduleReconnect(retryDelay);
|
|
72088
|
+
}
|
|
72059
72089
|
this.closeStream();
|
|
72060
72090
|
this.closeSession();
|
|
72061
72091
|
}
|
|
@@ -72336,7 +72366,6 @@ function findBunBinary() {
|
|
|
72336
72366
|
}
|
|
72337
72367
|
|
|
72338
72368
|
// ts/daemon/dist/clip-runtime/hub-client.js
|
|
72339
|
-
var MAX_FRAME_LENGTH = 16 * 1024 * 1024;
|
|
72340
72369
|
var HubCommandError = class extends Error {
|
|
72341
72370
|
code;
|
|
72342
72371
|
constructor(message, code) {
|
|
@@ -52556,6 +52556,7 @@ function attachmentEndpoints(apiBase) {
|
|
|
52556
52556
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
52557
52557
|
var clipConnectionEndpoints = {
|
|
52558
52558
|
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
52559
|
+
CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
|
|
52559
52560
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
52560
52561
|
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
52561
52562
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
@@ -52675,6 +52676,7 @@ var ENDPOINTS = {
|
|
|
52675
52676
|
// Onboarding
|
|
52676
52677
|
SEED_ONBOARDING_DM: (orgId) => `${API_BASE2}/orgs/${orgId}/seed-onboarding-dm`,
|
|
52677
52678
|
DISMISS_ONBOARDING: (orgId) => `${API_BASE2}/orgs/${orgId}/dismiss-onboarding`,
|
|
52679
|
+
ORG_ACCENT_THEME: (orgId) => `${API_BASE2}/orgs/${orgId}/accent-theme`,
|
|
52678
52680
|
// Chats (org-scoped)
|
|
52679
52681
|
CHATS: (orgId) => `${API_BASE2}/orgs/${orgId}/chats`,
|
|
52680
52682
|
CHATS_DISCOVERABLE: (orgId) => `${API_BASE2}/orgs/${orgId}/chats/discoverable`,
|
|
@@ -53041,6 +53043,7 @@ var ENDPOINTS = {
|
|
|
53041
53043
|
UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
|
|
53042
53044
|
CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
|
|
53043
53045
|
CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
|
|
53046
|
+
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
53044
53047
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
53045
53048
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
53046
53049
|
// References (org-scoped)
|
|
@@ -53199,6 +53202,7 @@ var WS_EVENTS = {
|
|
|
53199
53202
|
ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
|
|
53200
53203
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
53201
53204
|
ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
|
|
53205
|
+
APP_DATA_CHANGED: "app.data.changed",
|
|
53202
53206
|
AGENT_CONFIG_UPDATE: "agent_config.update",
|
|
53203
53207
|
PRESENCE_UPDATE: "presence.update",
|
|
53204
53208
|
WIKI_CHANGESET_CREATED: "wiki.changeset.created",
|
|
@@ -53846,6 +53850,9 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53846
53850
|
async listClipConnections(orgId, clipId) {
|
|
53847
53851
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
53848
53852
|
}
|
|
53853
|
+
async listAllClipConnections(orgId) {
|
|
53854
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS_ALL(orgId));
|
|
53855
|
+
}
|
|
53849
53856
|
async createClipConnection(orgId, clipId, input) {
|
|
53850
53857
|
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
53851
53858
|
}
|
|
@@ -54018,6 +54025,14 @@ var TriggerJudgeClient = class extends WikiDraftClient {
|
|
|
54018
54025
|
}
|
|
54019
54026
|
};
|
|
54020
54027
|
|
|
54028
|
+
// ts/sdk/dist/org-accent-client.js
|
|
54029
|
+
var OrgAccentClient = class extends TriggerJudgeClient {
|
|
54030
|
+
/** Set the caller's own color theme for this org. */
|
|
54031
|
+
async setOrgAccentTheme(orgId, accentTheme) {
|
|
54032
|
+
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
|
54033
|
+
}
|
|
54034
|
+
};
|
|
54035
|
+
|
|
54021
54036
|
// ts/sdk/dist/wiki-upload.js
|
|
54022
54037
|
function createWikiUploadFormData(params) {
|
|
54023
54038
|
const form = new FormData();
|
|
@@ -54154,7 +54169,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
54154
54169
|
detectedRuntimes
|
|
54155
54170
|
};
|
|
54156
54171
|
}
|
|
54157
|
-
var ParallClient = class _ParallClient extends
|
|
54172
|
+
var ParallClient = class _ParallClient extends OrgAccentClient {
|
|
54158
54173
|
baseUrl;
|
|
54159
54174
|
wikiBaseUrl;
|
|
54160
54175
|
token;
|
|
@@ -55327,6 +55342,12 @@ var ParallClient = class _ParallClient extends TriggerJudgeClient {
|
|
|
55327
55342
|
async markAllRead(orgId, chatId) {
|
|
55328
55343
|
return this.request("POST", ENDPOINTS.CHAT_READ_ALL(orgId, chatId));
|
|
55329
55344
|
}
|
|
55345
|
+
/** The caller's watched threads in a chat that have unread replies — the
|
|
55346
|
+
* per-thread breakdown of the chat's `thread_count`, for reaching thread
|
|
55347
|
+
* residue whose root is outside the loaded message window. */
|
|
55348
|
+
async getUnreadThreads(orgId, chatId) {
|
|
55349
|
+
return this.request("GET", ENDPOINTS.CHAT_UNREAD_THREADS(orgId, chatId));
|
|
55350
|
+
}
|
|
55330
55351
|
async getThreadUnread(orgId, chatId, threadRootId) {
|
|
55331
55352
|
return this.request("GET", ENDPOINTS.THREAD_UNREAD(orgId, chatId, threadRootId));
|
|
55332
55353
|
}
|
|
@@ -57161,7 +57182,7 @@ var ParallWs = class {
|
|
|
57161
57182
|
enterAuthInvalid(event) {
|
|
57162
57183
|
this.clearReconnect();
|
|
57163
57184
|
this.setState("auth-invalid");
|
|
57164
|
-
console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}.
|
|
57185
|
+
console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}. This client stops reconnecting on its own; the owner decides whether to call connect() again later or refresh credentials (re-login, or issue a new API key) first.`);
|
|
57165
57186
|
for (const listener of this.authInvalidListeners) {
|
|
57166
57187
|
listener(event);
|
|
57167
57188
|
}
|
|
@@ -52556,6 +52556,7 @@ function attachmentEndpoints(apiBase) {
|
|
|
52556
52556
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
52557
52557
|
var clipConnectionEndpoints = {
|
|
52558
52558
|
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
52559
|
+
CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
|
|
52559
52560
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
52560
52561
|
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
52561
52562
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
@@ -52675,6 +52676,7 @@ var ENDPOINTS = {
|
|
|
52675
52676
|
// Onboarding
|
|
52676
52677
|
SEED_ONBOARDING_DM: (orgId) => `${API_BASE2}/orgs/${orgId}/seed-onboarding-dm`,
|
|
52677
52678
|
DISMISS_ONBOARDING: (orgId) => `${API_BASE2}/orgs/${orgId}/dismiss-onboarding`,
|
|
52679
|
+
ORG_ACCENT_THEME: (orgId) => `${API_BASE2}/orgs/${orgId}/accent-theme`,
|
|
52678
52680
|
// Chats (org-scoped)
|
|
52679
52681
|
CHATS: (orgId) => `${API_BASE2}/orgs/${orgId}/chats`,
|
|
52680
52682
|
CHATS_DISCOVERABLE: (orgId) => `${API_BASE2}/orgs/${orgId}/chats/discoverable`,
|
|
@@ -53041,6 +53043,7 @@ var ENDPOINTS = {
|
|
|
53041
53043
|
UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
|
|
53042
53044
|
CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
|
|
53043
53045
|
CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
|
|
53046
|
+
CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
|
|
53044
53047
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
53045
53048
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
53046
53049
|
// References (org-scoped)
|
|
@@ -53199,6 +53202,7 @@ var WS_EVENTS = {
|
|
|
53199
53202
|
ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
|
|
53200
53203
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
53201
53204
|
ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
|
|
53205
|
+
APP_DATA_CHANGED: "app.data.changed",
|
|
53202
53206
|
AGENT_CONFIG_UPDATE: "agent_config.update",
|
|
53203
53207
|
PRESENCE_UPDATE: "presence.update",
|
|
53204
53208
|
WIKI_CHANGESET_CREATED: "wiki.changeset.created",
|
|
@@ -53846,6 +53850,9 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
53846
53850
|
async listClipConnections(orgId, clipId) {
|
|
53847
53851
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
53848
53852
|
}
|
|
53853
|
+
async listAllClipConnections(orgId) {
|
|
53854
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS_ALL(orgId));
|
|
53855
|
+
}
|
|
53849
53856
|
async createClipConnection(orgId, clipId, input) {
|
|
53850
53857
|
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
53851
53858
|
}
|
|
@@ -54018,6 +54025,14 @@ var TriggerJudgeClient = class extends WikiDraftClient {
|
|
|
54018
54025
|
}
|
|
54019
54026
|
};
|
|
54020
54027
|
|
|
54028
|
+
// ts/sdk/dist/org-accent-client.js
|
|
54029
|
+
var OrgAccentClient = class extends TriggerJudgeClient {
|
|
54030
|
+
/** Set the caller's own color theme for this org. */
|
|
54031
|
+
async setOrgAccentTheme(orgId, accentTheme) {
|
|
54032
|
+
return this.request("PUT", ENDPOINTS.ORG_ACCENT_THEME(orgId), { accent_theme: accentTheme });
|
|
54033
|
+
}
|
|
54034
|
+
};
|
|
54035
|
+
|
|
54021
54036
|
// ts/sdk/dist/wiki-upload.js
|
|
54022
54037
|
function createWikiUploadFormData(params) {
|
|
54023
54038
|
const form = new FormData();
|
|
@@ -54154,7 +54169,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
54154
54169
|
detectedRuntimes
|
|
54155
54170
|
};
|
|
54156
54171
|
}
|
|
54157
|
-
var ParallClient = class _ParallClient extends
|
|
54172
|
+
var ParallClient = class _ParallClient extends OrgAccentClient {
|
|
54158
54173
|
baseUrl;
|
|
54159
54174
|
wikiBaseUrl;
|
|
54160
54175
|
token;
|
|
@@ -55327,6 +55342,12 @@ var ParallClient = class _ParallClient extends TriggerJudgeClient {
|
|
|
55327
55342
|
async markAllRead(orgId, chatId) {
|
|
55328
55343
|
return this.request("POST", ENDPOINTS.CHAT_READ_ALL(orgId, chatId));
|
|
55329
55344
|
}
|
|
55345
|
+
/** The caller's watched threads in a chat that have unread replies — the
|
|
55346
|
+
* per-thread breakdown of the chat's `thread_count`, for reaching thread
|
|
55347
|
+
* residue whose root is outside the loaded message window. */
|
|
55348
|
+
async getUnreadThreads(orgId, chatId) {
|
|
55349
|
+
return this.request("GET", ENDPOINTS.CHAT_UNREAD_THREADS(orgId, chatId));
|
|
55350
|
+
}
|
|
55330
55351
|
async getThreadUnread(orgId, chatId, threadRootId) {
|
|
55331
55352
|
return this.request("GET", ENDPOINTS.THREAD_UNREAD(orgId, chatId, threadRootId));
|
|
55332
55353
|
}
|
|
@@ -57161,7 +57182,7 @@ var ParallWs = class {
|
|
|
57161
57182
|
enterAuthInvalid(event) {
|
|
57162
57183
|
this.clearReconnect();
|
|
57163
57184
|
this.setState("auth-invalid");
|
|
57164
|
-
console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}.
|
|
57185
|
+
console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}. This client stops reconnecting on its own; the owner decides whether to call connect() again later or refresh credentials (re-login, or issue a new API key) first.`);
|
|
57165
57186
|
for (const listener of this.authInvalidListeners) {
|
|
57166
57187
|
listener(event);
|
|
57167
57188
|
}
|