@parall/daemon 1.64.0 → 1.66.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 +166 -49
- package/bundle/parall-claude-agent.js +2333 -1903
- package/bundle/parall-codex-agent.js +3385 -2805
- package/bundle/parall-daemon.js +471 -127
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -148,6 +148,32 @@ var init_dispatch_adapter = __esm({
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
+
// ts/agent-core/dist/redact.js
|
|
152
|
+
function redactSecrets(s, knownValues = []) {
|
|
153
|
+
return maskKnownValues(s, knownValues).replace(/\b(agk|mck|cpk)_[A-Za-z0-9_-]+/g, "$1_***").replace(/\b(sk|pk|rk)-[A-Za-z0-9_-]{8,}/g, "$1-***").replace(/\bAKIA[0-9A-Z]{16}\b/g, "AKIA***").replace(/\b((?:bearer|basic)\s+)[A-Za-z0-9._~+/=-]+/gi, "$1***").replace(/(\b(?:[\w-]*[_-])?(?:api[_-]?key|key|token|secret|password|passwd|authorization)["']?\s*[=:]\s*)(?:"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'|[^\s&;,}\]"']+)/gi, "$1***").replace(/[A-Za-z0-9_-]{32,}/g, "***");
|
|
154
|
+
}
|
|
155
|
+
function maskKnownValues(s, knownValues) {
|
|
156
|
+
let out = s;
|
|
157
|
+
for (const v of knownValues) {
|
|
158
|
+
if (typeof v === "string" && v.length >= 6)
|
|
159
|
+
out = out.split(v).join("***");
|
|
160
|
+
}
|
|
161
|
+
return out;
|
|
162
|
+
}
|
|
163
|
+
var init_redact = __esm({
|
|
164
|
+
"ts/agent-core/dist/redact.js"() {
|
|
165
|
+
"use strict";
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// ts/agent-core/dist/runtime-observation.js
|
|
170
|
+
var init_runtime_observation = __esm({
|
|
171
|
+
"ts/agent-core/dist/runtime-observation.js"() {
|
|
172
|
+
"use strict";
|
|
173
|
+
init_redact();
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
|
|
151
177
|
// ts/agent-core/dist/fork-prefix.js
|
|
152
178
|
var init_fork_prefix = __esm({
|
|
153
179
|
"ts/agent-core/dist/fork-prefix.js"() {
|
|
@@ -155,6 +181,15 @@ var init_fork_prefix = __esm({
|
|
|
155
181
|
}
|
|
156
182
|
});
|
|
157
183
|
|
|
184
|
+
// ts/agent-core/dist/gateway-runtime-step.js
|
|
185
|
+
var init_gateway_runtime_step = __esm({
|
|
186
|
+
"ts/agent-core/dist/gateway-runtime-step.js"() {
|
|
187
|
+
"use strict";
|
|
188
|
+
init_dispatch_adapter();
|
|
189
|
+
init_runtime_observation();
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
158
193
|
// ts/agent-core/dist/dispatch-recovery.js
|
|
159
194
|
var init_dispatch_recovery = __esm({
|
|
160
195
|
"ts/agent-core/dist/dispatch-recovery.js"() {
|
|
@@ -219,6 +254,25 @@ var init_channel_types = __esm({
|
|
|
219
254
|
}
|
|
220
255
|
});
|
|
221
256
|
|
|
257
|
+
// ts/sdk/dist/slack-endpoints.js
|
|
258
|
+
function slackEndpoints(apiBase) {
|
|
259
|
+
return {
|
|
260
|
+
SLACK_CHANNELS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/channels`,
|
|
261
|
+
SLACK_USERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/users`,
|
|
262
|
+
SLACK_REPLIES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/replies`,
|
|
263
|
+
SLACK_HISTORY: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/history`,
|
|
264
|
+
SLACK_MEMBERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/members`,
|
|
265
|
+
SLACK_STATUS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/status`,
|
|
266
|
+
SLACK_FILE: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/file`,
|
|
267
|
+
SLACK_FILES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/files`
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
var init_slack_endpoints = __esm({
|
|
271
|
+
"ts/sdk/dist/slack-endpoints.js"() {
|
|
272
|
+
"use strict";
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
|
|
222
276
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
223
277
|
var clipConnectionEndpoints;
|
|
224
278
|
var init_clip_connection_endpoints = __esm({
|
|
@@ -336,6 +390,7 @@ var API_BASE2, WIKI_BASE, CLIP_BASE, PLATFORM_MODELS, PLATFORM_LEGACY_MODELS, PL
|
|
|
336
390
|
var init_constants = __esm({
|
|
337
391
|
"ts/sdk/dist/constants.js"() {
|
|
338
392
|
"use strict";
|
|
393
|
+
init_slack_endpoints();
|
|
339
394
|
init_clip_connection_endpoints();
|
|
340
395
|
init_attachment_endpoints();
|
|
341
396
|
init_edge_endpoints();
|
|
@@ -808,6 +863,7 @@ var init_constants = __esm({
|
|
|
808
863
|
TASK_RELATIONS: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/relations`,
|
|
809
864
|
TASK_RELATION: (orgId, taskId, relId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/relations/${relId}`,
|
|
810
865
|
TASK_RELATIONS_BY_TARGET: (orgId) => `${API_BASE2}/orgs/${orgId}/task-relations`,
|
|
866
|
+
TASK_DEPENDENCIES: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/dependencies`,
|
|
811
867
|
TASK_COMMENTS: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/comments`,
|
|
812
868
|
TASK_COMMENT: (orgId, taskId, commentId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/comments/${commentId}`,
|
|
813
869
|
TASK_ACTIVITIES: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/activities`,
|
|
@@ -894,13 +950,7 @@ var init_constants = __esm({
|
|
|
894
950
|
// Tier-B platform verb (agent-only): send one message as the bound bot.
|
|
895
951
|
CHANNEL_SEND: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/channel-send`,
|
|
896
952
|
// Tier-B read verbs (agent-only): workspace visibility as the bot sees it.
|
|
897
|
-
|
|
898
|
-
SLACK_USERS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/users`,
|
|
899
|
-
SLACK_HISTORY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/history`,
|
|
900
|
-
SLACK_MEMBERS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/members`,
|
|
901
|
-
SLACK_STATUS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/status`,
|
|
902
|
-
SLACK_FILE: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/file`,
|
|
903
|
-
SLACK_FILES: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/files`,
|
|
953
|
+
...slackEndpoints(API_BASE2),
|
|
904
954
|
// WeChat tier-B read verbs (agent-only; internal research preview).
|
|
905
955
|
...wechatEndpoints(API_BASE2),
|
|
906
956
|
// Invitations (org-scoped, admin)
|
|
@@ -932,6 +982,11 @@ var init_constants = __esm({
|
|
|
932
982
|
WIKI_TREE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree`,
|
|
933
983
|
WIKI_TREE_LAST_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree/last-commits`,
|
|
934
984
|
WIKI_BLOB: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/blob`,
|
|
985
|
+
// Wiki shared-draft room control plane (wiki-shared-draft-design.md §7).
|
|
986
|
+
// Mounted only when cap:wiki-shared-drafts is on; absent otherwise.
|
|
987
|
+
WIKI_DRAFT_OPEN: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/drafts/open`,
|
|
988
|
+
WIKI_DRAFT_STATUS: (orgId, wikiId, draftId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/drafts/${draftId}/status`,
|
|
989
|
+
WIKI_DRAFT_SOCKET: (orgId, wikiId, draftId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/drafts/${draftId}/socket`,
|
|
935
990
|
WIKI_COPY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/copy`,
|
|
936
991
|
WIKI_NODE_SECTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/node-sections`,
|
|
937
992
|
WIKI_SEARCH: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/search`,
|
|
@@ -1340,6 +1395,13 @@ var init_project_task_client = __esm({
|
|
|
1340
1395
|
async deleteTaskRelation(orgId, taskId, relationId) {
|
|
1341
1396
|
return this.request("DELETE", ENDPOINTS.TASK_RELATION(orgId, taskId, relationId));
|
|
1342
1397
|
}
|
|
1398
|
+
async getTaskDependencies(orgId, taskId) {
|
|
1399
|
+
const res = await this.request("GET", ENDPOINTS.TASK_DEPENDENCIES(orgId, taskId));
|
|
1400
|
+
return {
|
|
1401
|
+
blocked_by: res.blocked_by ?? [],
|
|
1402
|
+
blocking: res.blocking ?? []
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1343
1405
|
async getTaskComments(orgId, taskId, params) {
|
|
1344
1406
|
return this.request("GET", ENDPOINTS.TASK_COMMENTS(orgId, taskId), void 0, params);
|
|
1345
1407
|
}
|
|
@@ -1398,8 +1460,9 @@ var init_project_task_client = __esm({
|
|
|
1398
1460
|
return res.data;
|
|
1399
1461
|
}
|
|
1400
1462
|
/** Public-tier self-admission: writes the caller's own member row.
|
|
1401
|
-
* Other tiers answer `
|
|
1402
|
-
* `
|
|
1463
|
+
* Other tiers answer `403 PERMISSION_DENIED` with `details.project`
|
|
1464
|
+
* (its `visibility` tells whether to request-join or ask for an invite);
|
|
1465
|
+
* a duplicate answers `409 MEMBER_EXISTS`. */
|
|
1403
1466
|
async joinProject(orgId, projectId) {
|
|
1404
1467
|
return this.request("POST", ENDPOINTS.PROJECT_JOIN(orgId, projectId));
|
|
1405
1468
|
}
|
|
@@ -1645,14 +1708,16 @@ var init_slack_files_client = __esm({
|
|
|
1645
1708
|
}
|
|
1646
1709
|
/**
|
|
1647
1710
|
* Tier-B file upload verb (agent-only): share a file into a Slack
|
|
1648
|
-
* conversation
|
|
1649
|
-
*
|
|
1711
|
+
* conversation or thread with the same addressing as text sends.
|
|
1712
|
+
* Native threadTs requires a server supporting Slack thread sends.
|
|
1650
1713
|
*/
|
|
1651
1714
|
async sendSlackFile(orgId, input) {
|
|
1652
1715
|
const fd = new FormData();
|
|
1653
1716
|
fd.append("conversation_id", input.conversationId);
|
|
1654
1717
|
if (input.replyTo)
|
|
1655
1718
|
fd.append("reply_to", input.replyTo);
|
|
1719
|
+
if (input.threadTs)
|
|
1720
|
+
fd.append("thread_ts", input.threadTs);
|
|
1656
1721
|
if (input.text)
|
|
1657
1722
|
fd.append("text", input.text);
|
|
1658
1723
|
fd.append("file", input.content, input.fileName);
|
|
@@ -1662,14 +1727,62 @@ var init_slack_files_client = __esm({
|
|
|
1662
1727
|
}
|
|
1663
1728
|
});
|
|
1664
1729
|
|
|
1730
|
+
// ts/sdk/dist/slack-read-client.js
|
|
1731
|
+
var SlackReadClient;
|
|
1732
|
+
var init_slack_read_client = __esm({
|
|
1733
|
+
"ts/sdk/dist/slack-read-client.js"() {
|
|
1734
|
+
"use strict";
|
|
1735
|
+
init_constants();
|
|
1736
|
+
init_slack_files_client();
|
|
1737
|
+
SlackReadClient = class extends SlackFilesClient {
|
|
1738
|
+
slackReadQuery(base, query, extra) {
|
|
1739
|
+
const params = new URLSearchParams();
|
|
1740
|
+
if (query?.cursor)
|
|
1741
|
+
params.set("cursor", query.cursor);
|
|
1742
|
+
if (query?.limit)
|
|
1743
|
+
params.set("limit", String(query.limit));
|
|
1744
|
+
for (const [k, v] of Object.entries(extra ?? {}))
|
|
1745
|
+
params.set(k, v);
|
|
1746
|
+
const qs = params.toString();
|
|
1747
|
+
return qs ? `${base}?${qs}` : base;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* Tier-B read verbs (agent-only): workspace visibility as the bot sees
|
|
1751
|
+
* it. Same live gate as the send verb; authorization beyond it is the
|
|
1752
|
+
* bot's own Slack permissions.
|
|
1753
|
+
*/
|
|
1754
|
+
async listSlackChannels(orgId, query) {
|
|
1755
|
+
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_CHANNELS(orgId), query));
|
|
1756
|
+
}
|
|
1757
|
+
async listSlackUsers(orgId, query) {
|
|
1758
|
+
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_USERS(orgId), query));
|
|
1759
|
+
}
|
|
1760
|
+
async slackHistory(orgId, conversationId, query) {
|
|
1761
|
+
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_HISTORY(orgId), query, { conversation: conversationId }));
|
|
1762
|
+
}
|
|
1763
|
+
/** Read a Slack thread (parent and replies), one page in Slack order. */
|
|
1764
|
+
async slackReplies(orgId, channel, ts, query) {
|
|
1765
|
+
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_REPLIES(orgId), query, { channel, ts }));
|
|
1766
|
+
}
|
|
1767
|
+
async slackMembers(orgId, conversationId, query) {
|
|
1768
|
+
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_MEMBERS(orgId), query, { conversation: conversationId }));
|
|
1769
|
+
}
|
|
1770
|
+
/** Set/clear the Agents-pane "typing…" indicator (best-effort cosmetic). */
|
|
1771
|
+
async setSlackStatus(orgId, input) {
|
|
1772
|
+
await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
1773
|
+
}
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
});
|
|
1777
|
+
|
|
1665
1778
|
// ts/sdk/dist/channel-conversation-client.js
|
|
1666
1779
|
var ChannelConversationClient;
|
|
1667
1780
|
var init_channel_conversation_client = __esm({
|
|
1668
1781
|
"ts/sdk/dist/channel-conversation-client.js"() {
|
|
1669
1782
|
"use strict";
|
|
1670
1783
|
init_constants();
|
|
1671
|
-
|
|
1672
|
-
ChannelConversationClient = class extends
|
|
1784
|
+
init_slack_read_client();
|
|
1785
|
+
ChannelConversationClient = class extends SlackReadClient {
|
|
1673
1786
|
/**
|
|
1674
1787
|
* Org-admin write of what the agent receives from a group root
|
|
1675
1788
|
* (`PATCH …/channel-conversations/{id}/attention`); the agent's own path
|
|
@@ -1783,6 +1896,209 @@ var init_browser_profile_client = __esm({
|
|
|
1783
1896
|
}
|
|
1784
1897
|
});
|
|
1785
1898
|
|
|
1899
|
+
// ts/sdk/dist/wiki-draft-types.js
|
|
1900
|
+
function isWikiDraftScope(value) {
|
|
1901
|
+
if (!value || typeof value !== "object")
|
|
1902
|
+
return false;
|
|
1903
|
+
const scope = value;
|
|
1904
|
+
return ["lane", "org_id", "wiki_id", "draft_id", "incarnation"].every((key) => typeof scope[key] === "string" && IDENTIFIER.test(scope[key])) && Number.isSafeInteger(scope.generation) && scope.generation >= 1;
|
|
1905
|
+
}
|
|
1906
|
+
function sameWikiDraftScope(left, right) {
|
|
1907
|
+
return left.lane === right.lane && left.org_id === right.org_id && left.wiki_id === right.wiki_id && left.draft_id === right.draft_id && left.incarnation === right.incarnation && left.generation === right.generation;
|
|
1908
|
+
}
|
|
1909
|
+
function isWireTimestamp(value) {
|
|
1910
|
+
if (typeof value !== "string")
|
|
1911
|
+
return false;
|
|
1912
|
+
const m = WIRE_TIMESTAMP.exec(value);
|
|
1913
|
+
if (!m)
|
|
1914
|
+
return false;
|
|
1915
|
+
const [year, month, day, hour, minute, second] = m.slice(1, 7).map(Number);
|
|
1916
|
+
if (month < 1 || month > 12)
|
|
1917
|
+
return false;
|
|
1918
|
+
const leap = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
1919
|
+
const daysInMonth = [31, leap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];
|
|
1920
|
+
if (day < 1 || day > daysInMonth)
|
|
1921
|
+
return false;
|
|
1922
|
+
if (hour > 23 || minute > 59 || second > 59)
|
|
1923
|
+
return false;
|
|
1924
|
+
if (m[7] !== void 0 && (Number(m[7]) > 23 || Number(m[8]) > 59))
|
|
1925
|
+
return false;
|
|
1926
|
+
return true;
|
|
1927
|
+
}
|
|
1928
|
+
function isSequence(value, min) {
|
|
1929
|
+
return Number.isSafeInteger(value) && value >= min;
|
|
1930
|
+
}
|
|
1931
|
+
function isWikiDraftConnection(value) {
|
|
1932
|
+
if (!value || typeof value !== "object")
|
|
1933
|
+
return false;
|
|
1934
|
+
const c = value;
|
|
1935
|
+
return isWikiDraftScope(c.scope) && c.schema_version === WIKI_DRAFT_SCHEMA_VERSION && Number.isSafeInteger(c.seq) && c.seq >= 0 && typeof c.actor_id === "string" && c.actor_id.length > 0 && typeof c.actor_token === "string" && c.actor_token.length > 0 && typeof c.websocket_url === "string" && c.websocket_url.startsWith("/") && isWireTimestamp(c.issued_at) && isWireTimestamp(c.expires_at);
|
|
1936
|
+
}
|
|
1937
|
+
function isWikiDraftStatus(value) {
|
|
1938
|
+
if (!value || typeof value !== "object")
|
|
1939
|
+
return false;
|
|
1940
|
+
const s = value;
|
|
1941
|
+
const owner = s.owner;
|
|
1942
|
+
return isWikiDraftScope(s.scope) && typeof s.path === "string" && s.schema_version === WIKI_DRAFT_SCHEMA_VERSION && Number.isSafeInteger(s.seq) && s.seq >= 0 && typeof s.base_commit === "string" && typeof s.base_blob === "string" && (s.state === "active" || s.state === "conflicted" || s.state === "retired") && (owner === null || !!owner && typeof owner === "object" && typeof owner.instance === "string" && Number.isSafeInteger(owner.epoch) && isWireTimestamp(owner.lease_deadline)) && isWireTimestamp(s.updated_at);
|
|
1943
|
+
}
|
|
1944
|
+
function isWikiDraftReceipt(value) {
|
|
1945
|
+
if (!value || typeof value !== "object")
|
|
1946
|
+
return false;
|
|
1947
|
+
const r = value;
|
|
1948
|
+
return typeof r.draft_id === "string" && r.draft_id.length > 0 && isSequence(r.generation, 1) && // seq 0 is the initial checkpoint; every persisted operation is >= 1.
|
|
1949
|
+
isSequence(r.seq, 1) && typeof r.operation_id === "string" && r.operation_id.length > 0 && typeof r.actor_id === "string" && typeof r.request_digest === "string" && typeof r.update_digest === "string" && isWireTimestamp(r.created_at);
|
|
1950
|
+
}
|
|
1951
|
+
function isWikiDraftAck(value) {
|
|
1952
|
+
if (!value || typeof value !== "object")
|
|
1953
|
+
return false;
|
|
1954
|
+
const a = value;
|
|
1955
|
+
return a.version === WIKI_DRAFT_PROTOCOL_VERSION && isWikiDraftScope(a.scope) && Array.isArray(a.receipts) && a.receipts.every(isWikiDraftReceipt);
|
|
1956
|
+
}
|
|
1957
|
+
function isWikiDraftErrorFrame(value) {
|
|
1958
|
+
if (!value || typeof value !== "object")
|
|
1959
|
+
return false;
|
|
1960
|
+
const e = value;
|
|
1961
|
+
return e.version === WIKI_DRAFT_PROTOCOL_VERSION && typeof e.code === "string" && WIKI_DRAFT_ERROR_CODES.includes(e.code) && (e.operation_ids === void 0 || Array.isArray(e.operation_ids) && e.operation_ids.every((id) => typeof id === "string")) && typeof e.retryable === "boolean";
|
|
1962
|
+
}
|
|
1963
|
+
function isWikiDraftBackpressure(value) {
|
|
1964
|
+
if (!value || typeof value !== "object")
|
|
1965
|
+
return false;
|
|
1966
|
+
const b = value;
|
|
1967
|
+
return b.version === WIKI_DRAFT_PROTOCOL_VERSION && typeof b.paused === "boolean" && isSequence(b.pending_seq, 0) && (b.reason === void 0 || typeof b.reason === "string");
|
|
1968
|
+
}
|
|
1969
|
+
function isWikiDraftWelcome(value) {
|
|
1970
|
+
if (!value || typeof value !== "object")
|
|
1971
|
+
return false;
|
|
1972
|
+
const w = value;
|
|
1973
|
+
return w.version === WIKI_DRAFT_PROTOCOL_VERSION && isWikiDraftScope(w.scope) && w.schema_version === WIKI_DRAFT_SCHEMA_VERSION && isSequence(w.seq, 0) && typeof w.actor_id === "string" && w.actor_id.length > 0 && typeof w.display_name === "string" && isSequence(w.owner_epoch, 1);
|
|
1974
|
+
}
|
|
1975
|
+
function isWikiDraftHello(value) {
|
|
1976
|
+
if (!value || typeof value !== "object")
|
|
1977
|
+
return false;
|
|
1978
|
+
const h = value;
|
|
1979
|
+
return h.version === WIKI_DRAFT_PROTOCOL_VERSION && isWikiDraftScope(h.scope) && h.schema_version === WIKI_DRAFT_SCHEMA_VERSION && // Yjs clientID is an unsigned 32-bit integer.
|
|
1980
|
+
isSequence(h.client_id, 0) && h.client_id <= 4294967295 && typeof h.actor_token === "string" && h.actor_token.length > 0;
|
|
1981
|
+
}
|
|
1982
|
+
function isWikiDraftAuthorize(value) {
|
|
1983
|
+
if (!value || typeof value !== "object")
|
|
1984
|
+
return false;
|
|
1985
|
+
const a = value;
|
|
1986
|
+
return a.version === WIKI_DRAFT_PROTOCOL_VERSION && typeof a.actor_token === "string" && a.actor_token.length > 0;
|
|
1987
|
+
}
|
|
1988
|
+
function isWikiDraftOperationInput(value) {
|
|
1989
|
+
if (!value || typeof value !== "object")
|
|
1990
|
+
return false;
|
|
1991
|
+
const o = value;
|
|
1992
|
+
if (o.version !== WIKI_DRAFT_PROTOCOL_VERSION)
|
|
1993
|
+
return false;
|
|
1994
|
+
const keys = Object.keys(o).sort();
|
|
1995
|
+
if (o.kind === "native") {
|
|
1996
|
+
return keys.join(",") === "kind,update,version" && typeof o.update === "string" && o.update.length > 0 && BASE64.test(o.update);
|
|
1997
|
+
}
|
|
1998
|
+
if (o.kind === "markdown") {
|
|
1999
|
+
return keys.join(",") === "edit_base,kind,markdown,version" && typeof o.edit_base === "string" && IDENTIFIER.test(o.edit_base) && typeof o.markdown === "string" && !o.markdown.includes("\0");
|
|
2000
|
+
}
|
|
2001
|
+
return false;
|
|
2002
|
+
}
|
|
2003
|
+
var WIKI_DRAFT_PROTOCOL_VERSION, WIKI_DRAFT_SCHEMA_VERSION, WIKI_DRAFT_SOCKET_SUBPROTOCOL, WIKI_DRAFT_TICKET_SUBPROTOCOL_PREFIX, WIKI_DRAFT_MESSAGE, WIKI_DRAFT_ERROR_CODES, IDENTIFIER, WIRE_TIMESTAMP, BASE64;
|
|
2004
|
+
var init_wiki_draft_types = __esm({
|
|
2005
|
+
"ts/sdk/dist/wiki-draft-types.js"() {
|
|
2006
|
+
"use strict";
|
|
2007
|
+
WIKI_DRAFT_PROTOCOL_VERSION = 1;
|
|
2008
|
+
WIKI_DRAFT_SCHEMA_VERSION = 1;
|
|
2009
|
+
WIKI_DRAFT_SOCKET_SUBPROTOCOL = "parall.wiki.v1";
|
|
2010
|
+
WIKI_DRAFT_TICKET_SUBPROTOCOL_PREFIX = "ticket.";
|
|
2011
|
+
WIKI_DRAFT_MESSAGE = {
|
|
2012
|
+
sync: 0,
|
|
2013
|
+
awareness: 1,
|
|
2014
|
+
ack: 2,
|
|
2015
|
+
hello: 3,
|
|
2016
|
+
error: 4,
|
|
2017
|
+
backpressure: 5,
|
|
2018
|
+
authorize: 6
|
|
2019
|
+
};
|
|
2020
|
+
WIKI_DRAFT_ERROR_CODES = [
|
|
2021
|
+
"DRAFT_INVALID",
|
|
2022
|
+
"DRAFT_SCHEMA",
|
|
2023
|
+
"DRAFT_SCOPE",
|
|
2024
|
+
"DRAFT_FORBIDDEN",
|
|
2025
|
+
"DRAFT_ACTOR_EXPIRED",
|
|
2026
|
+
"DRAFT_NOT_FOUND",
|
|
2027
|
+
"DRAFT_WRITES_DISABLED",
|
|
2028
|
+
"DRAFT_BASE_MOVED",
|
|
2029
|
+
"DRAFT_IDENTITY_CHANGED",
|
|
2030
|
+
"DRAFT_INACTIVE",
|
|
2031
|
+
"DRAFT_LEASE_EXPIRED",
|
|
2032
|
+
"DRAFT_OWNED",
|
|
2033
|
+
"DRAFT_OWNER_UNAVAILABLE",
|
|
2034
|
+
"DRAFT_REVISION_CHANGED",
|
|
2035
|
+
"DRAFT_OPERATION_REUSED",
|
|
2036
|
+
"DRAFT_UNINITIALIZED",
|
|
2037
|
+
"DRAFT_EDIT_BASE_EXPIRED",
|
|
2038
|
+
"DRAFT_CORRUPT",
|
|
2039
|
+
"DRAFT_VALIDATION",
|
|
2040
|
+
"DRAFT_BACKPRESSURE",
|
|
2041
|
+
"DRAFT_BUSY",
|
|
2042
|
+
"DRAFT_LIMIT",
|
|
2043
|
+
"DRAFT_UNAVAILABLE",
|
|
2044
|
+
"DRAFT_SERVICE_UNAUTHORIZED",
|
|
2045
|
+
"DRAFT_RPC_NOT_FOUND",
|
|
2046
|
+
"DRAFT_RPC_FAILED"
|
|
2047
|
+
];
|
|
2048
|
+
IDENTIFIER = /^[A-Za-z0-9_.:-]{1,128}$/;
|
|
2049
|
+
WIRE_TIMESTAMP = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(?:Z|[+-](\d{2}):(\d{2}))$/;
|
|
2050
|
+
BASE64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
|
|
2054
|
+
// ts/sdk/dist/wiki-draft-client.js
|
|
2055
|
+
var WikiDraftClient;
|
|
2056
|
+
var init_wiki_draft_client = __esm({
|
|
2057
|
+
"ts/sdk/dist/wiki-draft-client.js"() {
|
|
2058
|
+
"use strict";
|
|
2059
|
+
init_browser_profile_client();
|
|
2060
|
+
init_constants();
|
|
2061
|
+
init_wiki_draft_types();
|
|
2062
|
+
WikiDraftClient = class extends BrowserProfileClient {
|
|
2063
|
+
/**
|
|
2064
|
+
* Open (or rejoin) the shared draft of an existing formal Markdown path.
|
|
2065
|
+
* No content is uploaded; the server pins the Git baseline itself.
|
|
2066
|
+
* Only call this when `cap:wiki-shared-drafts` and the org flag are on —
|
|
2067
|
+
* the routes do not exist otherwise.
|
|
2068
|
+
*/
|
|
2069
|
+
async openWikiDraft(orgId, wikiId, path27, opts) {
|
|
2070
|
+
const connection = await this.request("POST", ENDPOINTS.WIKI_DRAFT_OPEN(orgId, wikiId), { path: path27 }, void 0, false, opts);
|
|
2071
|
+
if (!isWikiDraftConnection(connection) || connection.scope.org_id !== orgId || connection.scope.wiki_id !== wikiId) {
|
|
2072
|
+
throw new Error("DRAFT_SCOPE");
|
|
2073
|
+
}
|
|
2074
|
+
const socketPath = ENDPOINTS.WIKI_DRAFT_SOCKET(orgId, wikiId, connection.scope.draft_id);
|
|
2075
|
+
if (connection.websocket_url !== socketPath)
|
|
2076
|
+
throw new Error("DRAFT_SCOPE");
|
|
2077
|
+
const base = this.baseUrlFor(socketPath);
|
|
2078
|
+
const locationOrigin = typeof globalThis.location === "undefined" ? void 0 : globalThis.location.origin;
|
|
2079
|
+
const socket = new URL(`${base}${socketPath}`, locationOrigin);
|
|
2080
|
+
if (!["http:", "https:"].includes(socket.protocol) || socket.username || socket.password || socket.search || socket.hash) {
|
|
2081
|
+
throw new Error("DRAFT_SCOPE");
|
|
2082
|
+
}
|
|
2083
|
+
socket.protocol = socket.protocol === "https:" ? "wss:" : "ws:";
|
|
2084
|
+
return { ...connection, websocket_url: socket.href };
|
|
2085
|
+
}
|
|
2086
|
+
/** Durable draft metadata under the caller's current read permission. Never uploads content. */
|
|
2087
|
+
async getWikiDraftStatus(scope, opts) {
|
|
2088
|
+
const status = await this.request("GET", ENDPOINTS.WIKI_DRAFT_STATUS(scope.org_id, scope.wiki_id, scope.draft_id), void 0, { lane: scope.lane, incarnation: scope.incarnation, generation: String(scope.generation) }, false, opts);
|
|
2089
|
+
if (!isWikiDraftStatus(status) || !sameWikiDraftScope(status.scope, scope)) {
|
|
2090
|
+
throw new Error("DRAFT_SCOPE");
|
|
2091
|
+
}
|
|
2092
|
+
return status;
|
|
2093
|
+
}
|
|
2094
|
+
/** Subprotocol tokens for the room WebSocket handshake: protocol + ticket. */
|
|
2095
|
+
wikiDraftSocketProtocols(connection) {
|
|
2096
|
+
return ["parall.wiki.v1", `ticket.${connection.actor_token}`];
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
});
|
|
2101
|
+
|
|
1786
2102
|
// ts/sdk/dist/wiki-upload.js
|
|
1787
2103
|
function createWikiUploadFormData(params) {
|
|
1788
2104
|
const form = new FormData();
|
|
@@ -1970,12 +2286,12 @@ var init_client = __esm({
|
|
|
1970
2286
|
"ts/sdk/dist/client.js"() {
|
|
1971
2287
|
"use strict";
|
|
1972
2288
|
init_browser_viewer();
|
|
1973
|
-
|
|
2289
|
+
init_wiki_draft_client();
|
|
1974
2290
|
init_wiki_upload();
|
|
1975
2291
|
init_fetch_cause();
|
|
1976
2292
|
init_wiki_changeset();
|
|
1977
2293
|
init_constants();
|
|
1978
|
-
ParallClient = class _ParallClient extends
|
|
2294
|
+
ParallClient = class _ParallClient extends WikiDraftClient {
|
|
1979
2295
|
baseUrl;
|
|
1980
2296
|
wikiBaseUrl;
|
|
1981
2297
|
token;
|
|
@@ -3417,38 +3733,6 @@ var init_client = __esm({
|
|
|
3417
3733
|
async sendChannelMessage(orgId, input) {
|
|
3418
3734
|
return this.request("POST", ENDPOINTS.CHANNEL_SEND(orgId), input);
|
|
3419
3735
|
}
|
|
3420
|
-
slackReadQuery(base, query, extra) {
|
|
3421
|
-
const params = new URLSearchParams();
|
|
3422
|
-
if (query?.cursor)
|
|
3423
|
-
params.set("cursor", query.cursor);
|
|
3424
|
-
if (query?.limit)
|
|
3425
|
-
params.set("limit", String(query.limit));
|
|
3426
|
-
for (const [k, v] of Object.entries(extra ?? {}))
|
|
3427
|
-
params.set(k, v);
|
|
3428
|
-
const qs = params.toString();
|
|
3429
|
-
return qs ? `${base}?${qs}` : base;
|
|
3430
|
-
}
|
|
3431
|
-
/**
|
|
3432
|
-
* Tier-B read verbs (agent-only): workspace visibility as the bot sees
|
|
3433
|
-
* it. Same live gate as the send verb; authorization beyond it is the
|
|
3434
|
-
* bot's own Slack permissions.
|
|
3435
|
-
*/
|
|
3436
|
-
async listSlackChannels(orgId, query) {
|
|
3437
|
-
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_CHANNELS(orgId), query));
|
|
3438
|
-
}
|
|
3439
|
-
async listSlackUsers(orgId, query) {
|
|
3440
|
-
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_USERS(orgId), query));
|
|
3441
|
-
}
|
|
3442
|
-
async slackHistory(orgId, conversationId, query) {
|
|
3443
|
-
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_HISTORY(orgId), query, { conversation: conversationId }));
|
|
3444
|
-
}
|
|
3445
|
-
async slackMembers(orgId, conversationId, query) {
|
|
3446
|
-
return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_MEMBERS(orgId), query, { conversation: conversationId }));
|
|
3447
|
-
}
|
|
3448
|
-
/** Set/clear the Agents-pane "typing…" indicator (best-effort cosmetic). */
|
|
3449
|
-
async setSlackStatus(orgId, input) {
|
|
3450
|
-
await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
3451
|
-
}
|
|
3452
3736
|
/**
|
|
3453
3737
|
* Authorized raw GET (binary responses) with the same auth, 401
|
|
3454
3738
|
* refresh-and-retry-once, and error-envelope handling as `request` — the
|
|
@@ -4744,6 +5028,38 @@ var init_types = __esm({
|
|
|
4744
5028
|
}
|
|
4745
5029
|
});
|
|
4746
5030
|
|
|
5031
|
+
// ts/sdk/dist/runtime-observation.js
|
|
5032
|
+
var RUNTIME_OBSERVATION_EVENTS, RUNTIME_OBSERVATION_STATUSES;
|
|
5033
|
+
var init_runtime_observation2 = __esm({
|
|
5034
|
+
"ts/sdk/dist/runtime-observation.js"() {
|
|
5035
|
+
"use strict";
|
|
5036
|
+
RUNTIME_OBSERVATION_EVENTS = [
|
|
5037
|
+
"turn_started",
|
|
5038
|
+
"turn_completed",
|
|
5039
|
+
"thread_status",
|
|
5040
|
+
"hook_started",
|
|
5041
|
+
"hook_completed",
|
|
5042
|
+
"session_initialized",
|
|
5043
|
+
"request_completed",
|
|
5044
|
+
"session_status"
|
|
5045
|
+
];
|
|
5046
|
+
RUNTIME_OBSERVATION_STATUSES = [
|
|
5047
|
+
"running",
|
|
5048
|
+
"completed",
|
|
5049
|
+
"failed",
|
|
5050
|
+
"blocked",
|
|
5051
|
+
"stopped",
|
|
5052
|
+
"interrupted",
|
|
5053
|
+
"idle",
|
|
5054
|
+
"not_loaded",
|
|
5055
|
+
"system_error",
|
|
5056
|
+
"initialized",
|
|
5057
|
+
"compacting",
|
|
5058
|
+
"unknown"
|
|
5059
|
+
];
|
|
5060
|
+
}
|
|
5061
|
+
});
|
|
5062
|
+
|
|
4747
5063
|
// ts/sdk/dist/wechat-types.js
|
|
4748
5064
|
var init_wechat_types = __esm({
|
|
4749
5065
|
"ts/sdk/dist/wechat-types.js"() {
|
|
@@ -5512,7 +5828,15 @@ __export(dist_exports, {
|
|
|
5512
5828
|
PLATFORM_MODELS: () => PLATFORM_MODELS,
|
|
5513
5829
|
ParallClient: () => ParallClient,
|
|
5514
5830
|
ParallWs: () => ParallWs,
|
|
5831
|
+
RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
|
|
5832
|
+
RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
|
|
5515
5833
|
WIKI_BASE: () => WIKI_BASE,
|
|
5834
|
+
WIKI_DRAFT_ERROR_CODES: () => WIKI_DRAFT_ERROR_CODES,
|
|
5835
|
+
WIKI_DRAFT_MESSAGE: () => WIKI_DRAFT_MESSAGE,
|
|
5836
|
+
WIKI_DRAFT_PROTOCOL_VERSION: () => WIKI_DRAFT_PROTOCOL_VERSION,
|
|
5837
|
+
WIKI_DRAFT_SCHEMA_VERSION: () => WIKI_DRAFT_SCHEMA_VERSION,
|
|
5838
|
+
WIKI_DRAFT_SOCKET_SUBPROTOCOL: () => WIKI_DRAFT_SOCKET_SUBPROTOCOL,
|
|
5839
|
+
WIKI_DRAFT_TICKET_SUBPROTOCOL_PREFIX: () => WIKI_DRAFT_TICKET_SUBPROTOCOL_PREFIX,
|
|
5516
5840
|
WS_EVENTS: () => WS_EVENTS,
|
|
5517
5841
|
authRejectionFrom: () => authRejectionFrom,
|
|
5518
5842
|
browserUseIdentifier: () => browserUseIdentifier,
|
|
@@ -5528,10 +5852,22 @@ __export(dist_exports, {
|
|
|
5528
5852
|
isInWikiPersonalNamespace: () => isInWikiPersonalNamespace,
|
|
5529
5853
|
isPlatformModelSelectableForRuntime: () => isPlatformModelSelectableForRuntime,
|
|
5530
5854
|
isTeamSubject: () => isTeamSubject,
|
|
5855
|
+
isWikiDraftAck: () => isWikiDraftAck,
|
|
5856
|
+
isWikiDraftAuthorize: () => isWikiDraftAuthorize,
|
|
5857
|
+
isWikiDraftBackpressure: () => isWikiDraftBackpressure,
|
|
5858
|
+
isWikiDraftConnection: () => isWikiDraftConnection,
|
|
5859
|
+
isWikiDraftErrorFrame: () => isWikiDraftErrorFrame,
|
|
5860
|
+
isWikiDraftHello: () => isWikiDraftHello,
|
|
5861
|
+
isWikiDraftOperationInput: () => isWikiDraftOperationInput,
|
|
5862
|
+
isWikiDraftReceipt: () => isWikiDraftReceipt,
|
|
5863
|
+
isWikiDraftScope: () => isWikiDraftScope,
|
|
5864
|
+
isWikiDraftStatus: () => isWikiDraftStatus,
|
|
5865
|
+
isWikiDraftWelcome: () => isWikiDraftWelcome,
|
|
5531
5866
|
isWikiPersonalNamespacePath: () => isWikiPersonalNamespacePath,
|
|
5532
5867
|
mentionTargetsUser: () => mentionTargetsUser,
|
|
5533
5868
|
parseSubjectToken: () => parseSubjectToken,
|
|
5534
5869
|
platformDefaultModelForRuntime: () => platformDefaultModelForRuntime,
|
|
5870
|
+
sameWikiDraftScope: () => sameWikiDraftScope,
|
|
5535
5871
|
teamIdsFromSubjects: () => teamIdsFromSubjects,
|
|
5536
5872
|
validateBrowserUseActionRequest: () => validateBrowserUseActionRequest,
|
|
5537
5873
|
validateBrowserUseField: () => validateBrowserUseField,
|
|
@@ -5554,6 +5890,8 @@ var init_dist = __esm({
|
|
|
5554
5890
|
init_subject();
|
|
5555
5891
|
init_task_label_types();
|
|
5556
5892
|
init_types();
|
|
5893
|
+
init_runtime_observation2();
|
|
5894
|
+
init_wiki_draft_types();
|
|
5557
5895
|
init_wechat_types();
|
|
5558
5896
|
init_ws();
|
|
5559
5897
|
init_browser_use_validation();
|
|
@@ -5569,86 +5907,11 @@ var init_fork_state = __esm({
|
|
|
5569
5907
|
}
|
|
5570
5908
|
});
|
|
5571
5909
|
|
|
5572
|
-
// ts/agent-core/dist/
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
}
|
|
5576
|
-
function maskKnownValues(s, knownValues) {
|
|
5577
|
-
let out = s;
|
|
5578
|
-
for (const v of knownValues) {
|
|
5579
|
-
if (typeof v === "string" && v.length >= 6)
|
|
5580
|
-
out = out.split(v).join("***");
|
|
5581
|
-
}
|
|
5582
|
-
return out;
|
|
5583
|
-
}
|
|
5584
|
-
var init_redact = __esm({
|
|
5585
|
-
"ts/agent-core/dist/redact.js"() {
|
|
5586
|
-
"use strict";
|
|
5587
|
-
}
|
|
5588
|
-
});
|
|
5589
|
-
|
|
5590
|
-
// ts/agent-core/dist/lane-key.js
|
|
5591
|
-
var init_lane_key = __esm({
|
|
5592
|
-
"ts/agent-core/dist/lane-key.js"() {
|
|
5593
|
-
"use strict";
|
|
5594
|
-
}
|
|
5595
|
-
});
|
|
5596
|
-
|
|
5597
|
-
// ts/agent-core/dist/lane-target.js
|
|
5598
|
-
var PRLL_SCHEME, CHANNEL_LANE_PREFIX;
|
|
5599
|
-
var init_lane_target = __esm({
|
|
5600
|
-
"ts/agent-core/dist/lane-target.js"() {
|
|
5601
|
-
"use strict";
|
|
5602
|
-
PRLL_SCHEME = "prll://";
|
|
5603
|
-
CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
|
|
5604
|
-
}
|
|
5605
|
-
});
|
|
5606
|
-
|
|
5607
|
-
// ts/agent-core/dist/lane-outcome.js
|
|
5608
|
-
var init_lane_outcome = __esm({
|
|
5609
|
-
"ts/agent-core/dist/lane-outcome.js"() {
|
|
5610
|
-
"use strict";
|
|
5611
|
-
}
|
|
5612
|
-
});
|
|
5613
|
-
|
|
5614
|
-
// ts/agent-core/dist/runtime-instance.js
|
|
5615
|
-
var init_runtime_instance = __esm({
|
|
5616
|
-
"ts/agent-core/dist/runtime-instance.js"() {
|
|
5617
|
-
"use strict";
|
|
5618
|
-
}
|
|
5619
|
-
});
|
|
5620
|
-
|
|
5621
|
-
// ts/agent-core/dist/lane-input-receipts.js
|
|
5622
|
-
var init_lane_input_receipts = __esm({
|
|
5623
|
-
"ts/agent-core/dist/lane-input-receipts.js"() {
|
|
5624
|
-
"use strict";
|
|
5625
|
-
init_dist();
|
|
5626
|
-
init_lane_outcome();
|
|
5627
|
-
init_redact();
|
|
5628
|
-
init_runtime_instance();
|
|
5629
|
-
}
|
|
5630
|
-
});
|
|
5631
|
-
|
|
5632
|
-
// ts/agent-core/dist/lane-confirmations.js
|
|
5633
|
-
var init_lane_confirmations = __esm({
|
|
5634
|
-
"ts/agent-core/dist/lane-confirmations.js"() {
|
|
5635
|
-
"use strict";
|
|
5636
|
-
init_dist();
|
|
5637
|
-
}
|
|
5638
|
-
});
|
|
5639
|
-
|
|
5640
|
-
// ts/agent-core/dist/lane-ledger.js
|
|
5641
|
-
var init_lane_ledger = __esm({
|
|
5642
|
-
"ts/agent-core/dist/lane-ledger.js"() {
|
|
5910
|
+
// ts/agent-core/dist/gateway-steer.js
|
|
5911
|
+
var init_gateway_steer = __esm({
|
|
5912
|
+
"ts/agent-core/dist/gateway-steer.js"() {
|
|
5643
5913
|
"use strict";
|
|
5644
|
-
|
|
5645
|
-
init_lane_key();
|
|
5646
|
-
init_lane_target();
|
|
5647
|
-
init_redact();
|
|
5648
|
-
init_lane_input_receipts();
|
|
5649
|
-
init_lane_outcome();
|
|
5650
|
-
init_lane_confirmations();
|
|
5651
|
-
init_runtime_instance();
|
|
5914
|
+
init_fork_prefix();
|
|
5652
5915
|
}
|
|
5653
5916
|
});
|
|
5654
5917
|
|
|
@@ -32728,6 +32991,81 @@ var init_telemetry = __esm({
|
|
|
32728
32991
|
}
|
|
32729
32992
|
});
|
|
32730
32993
|
|
|
32994
|
+
// ts/agent-core/dist/gateway-lane-settle.js
|
|
32995
|
+
var init_gateway_lane_settle = __esm({
|
|
32996
|
+
"ts/agent-core/dist/gateway-lane-settle.js"() {
|
|
32997
|
+
"use strict";
|
|
32998
|
+
init_fork_prefix();
|
|
32999
|
+
init_gateway_steer();
|
|
33000
|
+
init_telemetry();
|
|
33001
|
+
}
|
|
33002
|
+
});
|
|
33003
|
+
|
|
33004
|
+
// ts/agent-core/dist/lane-key.js
|
|
33005
|
+
var init_lane_key = __esm({
|
|
33006
|
+
"ts/agent-core/dist/lane-key.js"() {
|
|
33007
|
+
"use strict";
|
|
33008
|
+
}
|
|
33009
|
+
});
|
|
33010
|
+
|
|
33011
|
+
// ts/agent-core/dist/lane-target.js
|
|
33012
|
+
var PRLL_SCHEME, CHANNEL_LANE_PREFIX;
|
|
33013
|
+
var init_lane_target = __esm({
|
|
33014
|
+
"ts/agent-core/dist/lane-target.js"() {
|
|
33015
|
+
"use strict";
|
|
33016
|
+
PRLL_SCHEME = "prll://";
|
|
33017
|
+
CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
|
|
33018
|
+
}
|
|
33019
|
+
});
|
|
33020
|
+
|
|
33021
|
+
// ts/agent-core/dist/lane-outcome.js
|
|
33022
|
+
var init_lane_outcome = __esm({
|
|
33023
|
+
"ts/agent-core/dist/lane-outcome.js"() {
|
|
33024
|
+
"use strict";
|
|
33025
|
+
}
|
|
33026
|
+
});
|
|
33027
|
+
|
|
33028
|
+
// ts/agent-core/dist/runtime-instance.js
|
|
33029
|
+
var init_runtime_instance = __esm({
|
|
33030
|
+
"ts/agent-core/dist/runtime-instance.js"() {
|
|
33031
|
+
"use strict";
|
|
33032
|
+
}
|
|
33033
|
+
});
|
|
33034
|
+
|
|
33035
|
+
// ts/agent-core/dist/lane-input-receipts.js
|
|
33036
|
+
var init_lane_input_receipts = __esm({
|
|
33037
|
+
"ts/agent-core/dist/lane-input-receipts.js"() {
|
|
33038
|
+
"use strict";
|
|
33039
|
+
init_dist();
|
|
33040
|
+
init_lane_outcome();
|
|
33041
|
+
init_redact();
|
|
33042
|
+
init_runtime_instance();
|
|
33043
|
+
}
|
|
33044
|
+
});
|
|
33045
|
+
|
|
33046
|
+
// ts/agent-core/dist/lane-confirmations.js
|
|
33047
|
+
var init_lane_confirmations = __esm({
|
|
33048
|
+
"ts/agent-core/dist/lane-confirmations.js"() {
|
|
33049
|
+
"use strict";
|
|
33050
|
+
init_dist();
|
|
33051
|
+
}
|
|
33052
|
+
});
|
|
33053
|
+
|
|
33054
|
+
// ts/agent-core/dist/lane-ledger.js
|
|
33055
|
+
var init_lane_ledger = __esm({
|
|
33056
|
+
"ts/agent-core/dist/lane-ledger.js"() {
|
|
33057
|
+
"use strict";
|
|
33058
|
+
init_dist();
|
|
33059
|
+
init_lane_key();
|
|
33060
|
+
init_lane_target();
|
|
33061
|
+
init_redact();
|
|
33062
|
+
init_lane_input_receipts();
|
|
33063
|
+
init_lane_outcome();
|
|
33064
|
+
init_lane_confirmations();
|
|
33065
|
+
init_runtime_instance();
|
|
33066
|
+
}
|
|
33067
|
+
});
|
|
33068
|
+
|
|
32731
33069
|
// ts/agent-core/dist/gateway-lane-flow.js
|
|
32732
33070
|
var TYPED_BACKOFF_CAP_MS;
|
|
32733
33071
|
var init_gateway_lane_flow = __esm({
|
|
@@ -32737,9 +33075,12 @@ var init_gateway_lane_flow = __esm({
|
|
|
32737
33075
|
init_dist();
|
|
32738
33076
|
init_change_source();
|
|
32739
33077
|
init_fork_prefix();
|
|
33078
|
+
init_gateway_lane_settle();
|
|
33079
|
+
init_gateway_steer();
|
|
32740
33080
|
init_lane_ledger();
|
|
32741
33081
|
init_lane_target();
|
|
32742
33082
|
init_telemetry();
|
|
33083
|
+
init_gateway_steer();
|
|
32743
33084
|
TYPED_BACKOFF_CAP_MS = 5 * 6e4;
|
|
32744
33085
|
}
|
|
32745
33086
|
});
|
|
@@ -32758,6 +33099,7 @@ var init_gateway_runtime_turns = __esm({
|
|
|
32758
33099
|
init_dispatch_adapter();
|
|
32759
33100
|
init_redact();
|
|
32760
33101
|
init_telemetry();
|
|
33102
|
+
init_runtime_observation();
|
|
32761
33103
|
}
|
|
32762
33104
|
});
|
|
32763
33105
|
|
|
@@ -32838,11 +33180,11 @@ var AUTH_INVALID_EXIT_CODE;
|
|
|
32838
33180
|
var init_gateway_base = __esm({
|
|
32839
33181
|
"ts/agent-core/dist/gateway-base.js"() {
|
|
32840
33182
|
"use strict";
|
|
33183
|
+
init_gateway_runtime_step();
|
|
32841
33184
|
init_dispatch_recovery();
|
|
32842
33185
|
init_change_source();
|
|
32843
33186
|
init_dist();
|
|
32844
33187
|
init_fork_prefix();
|
|
32845
|
-
init_dispatch_adapter();
|
|
32846
33188
|
init_fork_state();
|
|
32847
33189
|
init_gateway_lane_flow();
|
|
32848
33190
|
init_gateway_idle_compact();
|
|
@@ -32861,6 +33203,7 @@ var init_gateway_base = __esm({
|
|
|
32861
33203
|
init_session_state();
|
|
32862
33204
|
init_bridge_workspace();
|
|
32863
33205
|
init_telemetry();
|
|
33206
|
+
init_gateway_steer();
|
|
32864
33207
|
AUTH_INVALID_EXIT_CODE = 86;
|
|
32865
33208
|
}
|
|
32866
33209
|
});
|
|
@@ -58637,6 +58980,7 @@ var init_dist2 = __esm({
|
|
|
58637
58980
|
init_channel_capability();
|
|
58638
58981
|
init_channel_token();
|
|
58639
58982
|
init_dispatch_adapter();
|
|
58983
|
+
init_runtime_observation();
|
|
58640
58984
|
init_fork_prefix();
|
|
58641
58985
|
init_gateway_base();
|
|
58642
58986
|
init_gateway_idle_compact();
|