@parall/daemon 1.62.0 → 1.63.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 +78 -18
- package/bundle/parall-claude-agent.js +271 -181
- package/bundle/parall-codex-agent.js +125 -45
- package/bundle/parall-daemon.js +2302 -1411
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +75 -2
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -2
- package/dist/diagnostics.d.ts +127 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +358 -0
- package/dist/updater.d.ts +14 -0
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +19 -15
- package/package.json +6 -6
|
@@ -52322,6 +52322,13 @@ function browserViewerRequestOptions(command, opts) {
|
|
|
52322
52322
|
};
|
|
52323
52323
|
}
|
|
52324
52324
|
|
|
52325
|
+
// ts/sdk/dist/clip-connection-endpoints.js
|
|
52326
|
+
var clipConnectionEndpoints = {
|
|
52327
|
+
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
52328
|
+
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
52329
|
+
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
52330
|
+
};
|
|
52331
|
+
|
|
52325
52332
|
// ts/sdk/dist/attachment-endpoints.js
|
|
52326
52333
|
function attachmentEndpoints(apiBase) {
|
|
52327
52334
|
return {
|
|
@@ -52335,6 +52342,7 @@ function attachmentEndpoints(apiBase) {
|
|
|
52335
52342
|
// ts/sdk/dist/edge-endpoints.js
|
|
52336
52343
|
var API_BASE = "/api/v1";
|
|
52337
52344
|
var edgeEndpoints = {
|
|
52345
|
+
ORG_EDGE_PROFILE_ACCESS: (orgId, edgeId, profileName) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/access`,
|
|
52338
52346
|
ORG_EDGE: (orgId) => `${API_BASE}/orgs/${orgId}/edge`,
|
|
52339
52347
|
ORG_EDGE_CONNECT: (orgId) => `${API_BASE}/orgs/${orgId}/edge/connect`,
|
|
52340
52348
|
ORG_EDGE_DEVICES: (orgId) => `${API_BASE}/orgs/${orgId}/edge/devices`,
|
|
@@ -52526,6 +52534,7 @@ var ENDPOINTS = {
|
|
|
52526
52534
|
MACHINES_ME_AGENTS: `${API_BASE2}/machines/me/agents`,
|
|
52527
52535
|
MACHINES_ME_HEALTH: `${API_BASE2}/machines/me/health`,
|
|
52528
52536
|
MACHINES_ME_RUNTIME_REPORT: `${API_BASE2}/machines/me/runtime-report`,
|
|
52537
|
+
MACHINES_ME_DIAGNOSTICS: `${API_BASE2}/machines/me/diagnostics`,
|
|
52529
52538
|
MACHINES_ME_CLIPS: `${API_BASE2}/machines/me/clips`,
|
|
52530
52539
|
MACHINES_ME_BROWSER_PROFILES: `${API_BASE2}/machines/me/browser-profiles`,
|
|
52531
52540
|
MACHINES_ME_BROWSER_PROFILE_STATUS: (profileId) => `${API_BASE2}/machines/me/browser-profiles/${profileId}/status`,
|
|
@@ -52712,6 +52721,7 @@ var ENDPOINTS = {
|
|
|
52712
52721
|
// Wiki History (commits, file commits, blame)
|
|
52713
52722
|
WIKI_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/commits`,
|
|
52714
52723
|
WIKI_FILE_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/file-commits`,
|
|
52724
|
+
WIKI_PATH_ACTIVITY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/path-activity`,
|
|
52715
52725
|
WIKI_BLAME: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/blame`,
|
|
52716
52726
|
// Wiki Operations (audit log)
|
|
52717
52727
|
WIKI_OPERATIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/operations`,
|
|
@@ -52847,8 +52857,7 @@ var ENDPOINTS = {
|
|
|
52847
52857
|
// Same request/reply shape as the v2 browser-profile viewer, on the v3 edge
|
|
52848
52858
|
// pipe. Additive: does NOT replace BROWSER_PROFILE_VIEWER_COMMAND.
|
|
52849
52859
|
ORG_EDGE_VIEWER_COMMAND: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/viewer/command`,
|
|
52850
|
-
|
|
52851
|
-
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
|
|
52860
|
+
...clipConnectionEndpoints,
|
|
52852
52861
|
// Clip registry (v3, org-scoped, served by api-server — `crg_` entries)
|
|
52853
52862
|
ORG_CLIP_REGISTRY: (orgId) => `/api/v1/orgs/${orgId}/clip-registry`,
|
|
52854
52863
|
ORG_CLIP_REGISTRY_RESOLVE: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/resolve`,
|
|
@@ -53362,6 +53371,39 @@ var ChannelConversationClient = class extends SlackFilesClient {
|
|
|
53362
53371
|
}
|
|
53363
53372
|
};
|
|
53364
53373
|
|
|
53374
|
+
// ts/sdk/dist/clip-connection-client.js
|
|
53375
|
+
var ClipConnectionClient = class extends ChannelConversationClient {
|
|
53376
|
+
// ---- Clip connections ----
|
|
53377
|
+
async listClipConnections(orgId, clipId) {
|
|
53378
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
53379
|
+
}
|
|
53380
|
+
async createClipConnection(orgId, clipId, input) {
|
|
53381
|
+
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
53382
|
+
}
|
|
53383
|
+
async deleteClipConnection(orgId, connId) {
|
|
53384
|
+
return this.request("DELETE", ENDPOINTS.CLIP_CONNECTION(orgId, connId));
|
|
53385
|
+
}
|
|
53386
|
+
/** Organization members may read; personal connections are owner-only. */
|
|
53387
|
+
async getClipConnectionAccess(orgId, connId) {
|
|
53388
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId));
|
|
53389
|
+
}
|
|
53390
|
+
/** Human org owner/admin; accepts JWT or personal key. */
|
|
53391
|
+
async putClipConnectionAccess(orgId, connId, input) {
|
|
53392
|
+
return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId), input);
|
|
53393
|
+
}
|
|
53394
|
+
};
|
|
53395
|
+
|
|
53396
|
+
// ts/sdk/dist/browser-profile-client.js
|
|
53397
|
+
var BrowserProfileClient = class extends ClipConnectionClient {
|
|
53398
|
+
async getBrowserProfileAccess(orgId, edgeId, profileName) {
|
|
53399
|
+
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
53400
|
+
}
|
|
53401
|
+
/** Replace the complete access policy; requires a human org owner/admin. */
|
|
53402
|
+
async putBrowserProfileAccess(orgId, edgeId, profileName, access) {
|
|
53403
|
+
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName), access);
|
|
53404
|
+
}
|
|
53405
|
+
};
|
|
53406
|
+
|
|
53365
53407
|
// ts/sdk/dist/wiki-upload.js
|
|
53366
53408
|
function createWikiUploadFormData(params) {
|
|
53367
53409
|
const form = new FormData();
|
|
@@ -53498,7 +53540,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
53498
53540
|
detectedRuntimes
|
|
53499
53541
|
};
|
|
53500
53542
|
}
|
|
53501
|
-
var ParallClient = class _ParallClient extends
|
|
53543
|
+
var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
53502
53544
|
baseUrl;
|
|
53503
53545
|
wikiBaseUrl;
|
|
53504
53546
|
token;
|
|
@@ -54532,6 +54574,17 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
54532
54574
|
await this.postMachineHeartbeat(legacyHeartbeatFromReport(report));
|
|
54533
54575
|
return "legacy";
|
|
54534
54576
|
}
|
|
54577
|
+
/**
|
|
54578
|
+
* Upload a diagnostics bundle from the machine itself (`mck_` bearer):
|
|
54579
|
+
* a gzip body the daemon assembled and redacted locally. Multipart so the
|
|
54580
|
+
* meta travels beside the file; the server indexes it for platform staff.
|
|
54581
|
+
*/
|
|
54582
|
+
async uploadMachineDiagnostics(bundle, meta = {}) {
|
|
54583
|
+
const form = new FormData();
|
|
54584
|
+
form.append("meta", JSON.stringify(meta));
|
|
54585
|
+
form.append("bundle", new Blob([new Uint8Array(bundle)], { type: "application/gzip" }), "diagnostics.json.gz");
|
|
54586
|
+
return this.multipartRequest("POST", ENDPOINTS.MACHINES_ME_DIAGNOSTICS, form, false, { timeoutMs: 2 * 60 * 1e3 });
|
|
54587
|
+
}
|
|
54535
54588
|
/**
|
|
54536
54589
|
* @deprecated Legacy form of `putMachineRuntimeReport`, kept for servers
|
|
54537
54590
|
* that predate it. `POST /machines/me/health` — report daemon state. All
|
|
@@ -55313,6 +55366,10 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
55313
55366
|
...params
|
|
55314
55367
|
});
|
|
55315
55368
|
}
|
|
55369
|
+
/** Bounded, ACL-safe activity for one Wiki file path. */
|
|
55370
|
+
async getWikiPathActivity(orgId, wikiId, path15, opts) {
|
|
55371
|
+
return this.request("GET", ENDPOINTS.WIKI_PATH_ACTIVITY(orgId, wikiId), void 0, { path: path15 }, false, opts);
|
|
55372
|
+
}
|
|
55316
55373
|
async getWikiBlame(orgId, wikiId, path15, ref) {
|
|
55317
55374
|
return this.request("GET", ENDPOINTS.WIKI_BLAME(orgId, wikiId), void 0, { path: path15, ref });
|
|
55318
55375
|
}
|
|
@@ -55743,7 +55800,7 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
55743
55800
|
/**
|
|
55744
55801
|
* Read a clip's per-org exec access (by user id — humans and agents alike).
|
|
55745
55802
|
* Org-member readable, so a denied caller can learn why exec answered
|
|
55746
|
-
* `CLIP_NOT_ALLOWED` / `CLIP_CONNECTION_NOT_ALLOWED` (agents:
|
|
55803
|
+
* `CONNECTION_NOT_ALLOWED` (retired: `CLIP_NOT_ALLOWED` / `CLIP_CONNECTION_NOT_ALLOWED`) (agents:
|
|
55747
55804
|
* `CLIP_AGENT_NOT_ALLOWED` / `CLIP_AGENT_CONNECTION_NOT_ALLOWED`). Writing
|
|
55748
55805
|
* it (`putClipAgentExecAccess`) is an org owner/admin's act.
|
|
55749
55806
|
*/
|
|
@@ -55783,6 +55840,19 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
55783
55840
|
async deleteEdgeDevice(orgId, edgeId) {
|
|
55784
55841
|
return this.request("DELETE", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId));
|
|
55785
55842
|
}
|
|
55843
|
+
/** Move the human caller's OWN BYOC device between the org layer and their
|
|
55844
|
+
* personal layer (ADR-020). `member` takes the device — and every clip
|
|
55845
|
+
* connection bound to it — out of the org's sight and into the owner's sole
|
|
55846
|
+
* custody; `org` shares it back, after which an org admin binds clips to it
|
|
55847
|
+
* and the clip's access list governs exec. Idempotent. Refused for hosted
|
|
55848
|
+
* profiles (`EDGE_NOT_PERSONALIZABLE`), for anyone but the owner
|
|
55849
|
+
* (`FORBIDDEN`; someone else's personal device is `NOT_FOUND`), and for
|
|
55850
|
+
* agents. */
|
|
55851
|
+
async setEdgeManagedBy(orgId, edgeId, managedBy) {
|
|
55852
|
+
return this.request("PATCH", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId), {
|
|
55853
|
+
managed_by: managedBy
|
|
55854
|
+
});
|
|
55855
|
+
}
|
|
55786
55856
|
/** Idempotently remove the human caller's own offline BYOC registration.
|
|
55787
55857
|
* A live connection returns `EDGE_ONLINE`. */
|
|
55788
55858
|
async unregisterEdgeDevice(orgId, edgeId) {
|
|
@@ -55865,7 +55935,7 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
55865
55935
|
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
55866
55936
|
}
|
|
55867
55937
|
/** Accept one idempotent Browser Use operation for an explicit Profile.
|
|
55868
|
-
* The Server resolves Profile→Edge
|
|
55938
|
+
* JWT, personal, agent and managed keys use profile access. The Server resolves Profile→Edge. */
|
|
55869
55939
|
async createBrowserUseOperation(orgId, request3) {
|
|
55870
55940
|
return this.request("POST", ENDPOINTS.ORG_BROWSER_USE_OPERATIONS(orgId), request3);
|
|
55871
55941
|
}
|
|
@@ -55982,9 +56052,9 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
55982
56052
|
* - `EDGE_DEADLINE_EXCEEDED` 504 — arrived late, provably NOT executed.
|
|
55983
56053
|
* - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
|
|
55984
56054
|
* `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
|
|
55985
|
-
* - Access errors (
|
|
55986
|
-
*
|
|
55987
|
-
*
|
|
56055
|
+
* - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
|
|
56056
|
+
* `CLIP_NOT_ALLOWED` / `CLIP_CONNECTION_NOT_ALLOWED` are retired.
|
|
56057
|
+
* Agent principals receive the historical
|
|
55988
56058
|
* `CLIP_AGENT_NOT_ALLOWED` / `CLIP_AGENT_CONNECTION_NOT_ALLOWED` for one
|
|
55989
56059
|
* release. An org owner/admin can widen access in the clip's settings.
|
|
55990
56060
|
* - Routing errors: `CONNECTION_REQUIRED`, `CONNECTION_NOT_FOUND`,
|
|
@@ -56006,16 +56076,6 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
56006
56076
|
throw err;
|
|
56007
56077
|
}
|
|
56008
56078
|
}
|
|
56009
|
-
// ---- Clip connections ----
|
|
56010
|
-
async listClipConnections(orgId, clipId) {
|
|
56011
|
-
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
56012
|
-
}
|
|
56013
|
-
async createClipConnection(orgId, clipId, input) {
|
|
56014
|
-
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
56015
|
-
}
|
|
56016
|
-
async deleteClipConnection(orgId, connId) {
|
|
56017
|
-
return this.request("DELETE", ENDPOINTS.CLIP_CONNECTION(orgId, connId));
|
|
56018
|
-
}
|
|
56019
56079
|
// ---- MCP clip server config (same-org or reviewed Official OAuth) ----
|
|
56020
56080
|
/**
|
|
56021
56081
|
* Read the redacted MCP config. 404 NOT_FOUND when the clip has none yet —
|
|
@@ -56663,12 +56723,15 @@ function createActiveForkState(fork, targetId, continuationPrefix) {
|
|
|
56663
56723
|
|
|
56664
56724
|
// ts/agent-core/dist/redact.js
|
|
56665
56725
|
function redactSecrets(s, knownValues = []) {
|
|
56726
|
+
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, "***");
|
|
56727
|
+
}
|
|
56728
|
+
function maskKnownValues(s, knownValues) {
|
|
56666
56729
|
let out = s;
|
|
56667
56730
|
for (const v of knownValues) {
|
|
56668
56731
|
if (typeof v === "string" && v.length >= 6)
|
|
56669
56732
|
out = out.split(v).join("***");
|
|
56670
56733
|
}
|
|
56671
|
-
return out
|
|
56734
|
+
return out;
|
|
56672
56735
|
}
|
|
56673
56736
|
function redactTurnOutcome(event, knownValues) {
|
|
56674
56737
|
const redacted = { ...event };
|
|
@@ -56689,6 +56752,16 @@ function describeTurnOutcomeFailure(outcome) {
|
|
|
56689
56752
|
stepMessage: `LLM turn ${outcome.outcome}${retryNote}${outcome.detail ? `: ${outcome.detail}` : ""}`
|
|
56690
56753
|
};
|
|
56691
56754
|
}
|
|
56755
|
+
function redactLogger(log2, knownValues) {
|
|
56756
|
+
if (!log2)
|
|
56757
|
+
return void 0;
|
|
56758
|
+
return {
|
|
56759
|
+
info: (message) => log2.info(redactSecrets(message, knownValues)),
|
|
56760
|
+
warn: (message) => log2.warn(redactSecrets(message, knownValues)),
|
|
56761
|
+
error: (message) => log2.error(redactSecrets(message, knownValues)),
|
|
56762
|
+
...log2.child ? { child: (name) => redactLogger(log2.child(name), knownValues) } : {}
|
|
56763
|
+
};
|
|
56764
|
+
}
|
|
56692
56765
|
|
|
56693
56766
|
// ts/agent-core/dist/lane-ledger.js
|
|
56694
56767
|
import * as fs2 from "node:fs";
|
|
@@ -57023,10 +57096,10 @@ ${frame}` : frame;
|
|
|
57023
57096
|
return {
|
|
57024
57097
|
deliveryKey: dispatchEventIds.join(","),
|
|
57025
57098
|
dispatchEventIds,
|
|
57026
|
-
update: explicit ? (state) => this.updateInputState(lane, dispatchEventIds, state) : async () => void 0
|
|
57099
|
+
update: explicit ? (state, failure) => this.updateInputState(lane, dispatchEventIds, state, failure) : async () => void 0
|
|
57027
57100
|
};
|
|
57028
57101
|
}
|
|
57029
|
-
async updateInputState(lane, dispatchEventIds, state) {
|
|
57102
|
+
async updateInputState(lane, dispatchEventIds, state, failure) {
|
|
57030
57103
|
const failed = new Set(state === "failed" ? dispatchEventIds : []);
|
|
57031
57104
|
const failedSourceIds = [...lane.folded].filter(([, dispatchEventId]) => failed.has(dispatchEventId)).map(([sourceId]) => sourceId);
|
|
57032
57105
|
const restoreLocalClaims = failedSourceIds.length > 0 ? this.opts.releaseLocalClaims?.(failedSourceIds) : void 0;
|
|
@@ -57036,7 +57109,11 @@ ${frame}` : frame;
|
|
|
57036
57109
|
target_uri: lane.targetUri,
|
|
57037
57110
|
thread_root_id: lane.threadRootId,
|
|
57038
57111
|
dispatch_event_ids: dispatchEventIds,
|
|
57039
|
-
state
|
|
57112
|
+
state,
|
|
57113
|
+
...state === "failed" && failure ? {
|
|
57114
|
+
outcome_class: errorWireClass(failure.outcomeClass),
|
|
57115
|
+
detail: failure.detail ? redactSecrets(failure.detail, this.opts.knownSecrets).slice(0, 500) : void 0
|
|
57116
|
+
} : {}
|
|
57040
57117
|
});
|
|
57041
57118
|
if (result.recognized !== dispatchEventIds.length) {
|
|
57042
57119
|
throw new Error(`input lifecycle ${state} recognized ${result.recognized}/${dispatchEventIds.length} WorkItems`);
|
|
@@ -57057,19 +57134,7 @@ ${frame}` : frame;
|
|
|
57057
57134
|
}
|
|
57058
57135
|
return { retry: state === "failed" };
|
|
57059
57136
|
}
|
|
57060
|
-
/**
|
|
57061
|
-
* Complete the lane when no local work remains for it: the server sweeps
|
|
57062
|
-
* still-leased members as no_action, releases the occupancy row, and
|
|
57063
|
-
* re-drives any same-target pending work. A STALE_LANE answer means a
|
|
57064
|
-
* takeover already owns the resource — local state is dropped either way.
|
|
57065
|
-
*/
|
|
57066
|
-
/**
|
|
57067
|
-
* Record that the turn on this lane surfaced a runtime error. The flow
|
|
57068
|
-
* settles an errored lane immediately (dispatchLaneGroup returns 'failed'
|
|
57069
|
-
* after a forced complete), so the bit normally lives for one turn only —
|
|
57070
|
-
* it is the transport between the gateway's per-session error signal and
|
|
57071
|
-
* this lane's complete request.
|
|
57072
|
-
*/
|
|
57137
|
+
/** Carry the runtime error into the lane's forced completion. */
|
|
57073
57138
|
markTurnError(laneKey, info = {}) {
|
|
57074
57139
|
const lane = this.lanes.get(laneKey);
|
|
57075
57140
|
if (lane)
|
|
@@ -58459,6 +58524,9 @@ async function consumeTypedDispatch(host, ref, run, hooks) {
|
|
|
58459
58524
|
}
|
|
58460
58525
|
}
|
|
58461
58526
|
}
|
|
58527
|
+
} catch (err) {
|
|
58528
|
+
ledger.markTurnError(claimed.laneKey, releaseErrorInfo(err, [host.opts.config.api_key]));
|
|
58529
|
+
throw err;
|
|
58462
58530
|
} finally {
|
|
58463
58531
|
settle(resolved);
|
|
58464
58532
|
span.setAttribute("dispatch.lane_result", resolved ? "dispatched" : "released");
|
|
@@ -59990,12 +60058,14 @@ var ParallAgentGateway = class {
|
|
|
59990
60058
|
DISPATCH_DEADLINE_MS;
|
|
59991
60059
|
constructor(opts) {
|
|
59992
60060
|
this.opts = opts;
|
|
60061
|
+
opts = this.opts = { ...opts, log: redactLogger(opts.log, [opts.config.api_key]) };
|
|
59993
60062
|
if (opts.dispatchContextDir) {
|
|
59994
60063
|
this.laneLedger = new LaneLedger({
|
|
59995
60064
|
client: opts.client,
|
|
59996
60065
|
orgId: opts.config.org_id,
|
|
59997
60066
|
contextDir: opts.dispatchContextDir,
|
|
59998
60067
|
log: opts.log,
|
|
60068
|
+
knownSecrets: [opts.config.api_key],
|
|
59999
60069
|
coverageMode: opts.dispatchAdapter.inputLifecycleMode ?? "implicit",
|
|
60000
60070
|
releaseLocalClaims: (sourceIds) => releaseLocalMessageClaims(this.dispatchedMessages, sourceIds)
|
|
60001
60071
|
});
|
|
@@ -60166,12 +60236,6 @@ var ParallAgentGateway = class {
|
|
|
60166
60236
|
* this safe: every bridge emits its error events before the turn-boundary
|
|
60167
60237
|
* turn_outcome.
|
|
60168
60238
|
*/
|
|
60169
|
-
/**
|
|
60170
|
-
* Redaction for every runtime-error text that gets persisted or shown: the
|
|
60171
|
-
* turn-outcome detail, the runtime error step and the dispatch-failure
|
|
60172
|
-
* step all surface in the product, and a runtime error can echo the agent
|
|
60173
|
-
* key or a provider credential.
|
|
60174
|
-
*/
|
|
60175
60239
|
redactRuntimeText(text) {
|
|
60176
60240
|
return redactSecrets(text, [this.opts.config.api_key]).slice(0, 2e3);
|
|
60177
60241
|
}
|
|
@@ -62702,12 +62766,16 @@ parall clip tools <clip> # MCP clips only: live tool schemas
|
|
|
62702
62766
|
\`\`\`
|
|
62703
62767
|
|
|
62704
62768
|
\`clip list\` answers both discovery questions at once: WHICH clip (name,
|
|
62705
|
-
description, version) and WHERE it
|
|
62706
|
-
|
|
62769
|
+
description, version) and WHERE it could run \u2014 every connection you can SEE
|
|
62770
|
+
(public org-layer rows or those the clip's access list admits you to, plus rows on your
|
|
62771
|
+
own personal device; an admin's list is a management view of the whole org
|
|
62772
|
+
layer and does not by itself grant exec) with its \`ccn_\u2026\` id, alias, and
|
|
62773
|
+
target kind:
|
|
62707
62774
|
|
|
62708
62775
|
- \`cloud\` \u2014 an org-shared cloud profile (a maintainer's signed-in browser)
|
|
62709
62776
|
- \`desktop\` \u2014 a member's device: org-shared (\`layer: org\` \u2014 an org admin
|
|
62710
|
-
binds it, the clip's access
|
|
62777
|
+
binds it; public connections admit everyone, otherwise the clip's access
|
|
62778
|
+
list decides, same as cloud and MCP) or
|
|
62711
62779
|
personal (\`layer: personal\` \u2014 its owner alone, nobody else sees it)
|
|
62712
62780
|
- \`mcp\` \u2014 a remote MCP tool server
|
|
62713
62781
|
- \`device\` \u2014 a device whose placement could not be resolved just now (the
|
|
@@ -62747,6 +62815,8 @@ bound to the clip, and the connection is what your access is granted on.
|
|
|
62747
62815
|
|
|
62748
62816
|
- Without a connection the server answers \`AGENT_CONNECTION_REQUIRED\`; the
|
|
62749
62817
|
fix is to discover the clip's connections and name one, never to retry.
|
|
62818
|
+
- human \u8C03\u7528\u8FD4\u56DE \`CONNECTION_NOT_ALLOWED\` \u65F6\uFF0C\u8BF7 org admin \u516C\u5F00\u8BE5 connection
|
|
62819
|
+
\u6216\u628A\u8C03\u7528\u8005\u52A0\u5165 Clip \u540D\u5355\uFF1Bagent \u672C\u7248\u4ECD\u8FD4\u56DE\u4E0B\u8FF0\u4E24\u4E2A\u9519\u8BEF\u7801\u3002
|
|
62750
62820
|
- \`CLIP_AGENT_NOT_ALLOWED\` / \`CLIP_AGENT_CONNECTION_NOT_ALLOWED\` mean a
|
|
62751
62821
|
human has restricted who may run this clip (or through which account);
|
|
62752
62822
|
ask them to widen access \u2014 you cannot grant it to yourself.
|
|
@@ -62796,10 +62866,20 @@ parall clip exec <clip> <tool> [json-args] --connection <ccn_|alias>
|
|
|
62796
62866
|
- \`OUTCOME_UNKNOWN\` follows the rule below: dispatched and MAY HAVE
|
|
62797
62867
|
EXECUTED \u2014 never auto-retry.
|
|
62798
62868
|
|
|
62869
|
+
## Browser Use
|
|
62870
|
+
|
|
62871
|
+
Browser Use \u63A5\u53D7 personal key \u548C agent key\uFF0C\u65E0\u9700 managed key\uFF1B\u6743\u9650\u6309\u8C03\u7528\u8005
|
|
62872
|
+
\u5728\u76EE\u6807\u8BBE\u5907 profile \u4E0A\u7684\u6388\u6743\u88C1\u51B3\u3002\`PROFILE_NOT_ALLOWED\` \u8868\u793A\u672A\u83B7\u6388\u6743\uFF0C
|
|
62873
|
+
\u8BF7 org admin \u8C03\u6574\u8BE5 profile \u7684\u516C\u5F00\u72B6\u6001\u6216\u540D\u5355\uFF0C\u4E0D\u8981\u91CD\u8BD5\u6216\u6539\u7528\u5176\u4ED6 key \u7ED5\u8FC7\u3002
|
|
62874
|
+
profile \u516C\u5F00\u53EA\u6388\u4E88 browser.read / browser.interact\uFF0Cbrowser.advanced \u4ECD\u9700\u663E\u5F0F\u6388\u6743\u3002
|
|
62875
|
+
Clip exec \u7684 connection \u662F\u53E6\u4E00\u79CD\u76EE\u6807\uFF1Aagent \u8C03\u7528\u4ECD\u5FC5\u987B\u5E26 connection\uFF0C\u7F3A\u5931\u4F1A\u8FD4\u56DE
|
|
62876
|
+
\`AGENT_CONNECTION_REQUIRED\`\uFF0C\u5148\u53D1\u73B0 connection \u518D\u8C03\u7528\u3002
|
|
62877
|
+
|
|
62799
62878
|
## Behavior rules
|
|
62800
62879
|
|
|
62801
62880
|
- An authorization error (\`CLIP_AGENT_NOT_ALLOWED\`,
|
|
62802
|
-
\`CLIP_AGENT_CONNECTION_NOT_ALLOWED\`, \`
|
|
62881
|
+
\`CLIP_AGENT_CONNECTION_NOT_ALLOWED\`, \`CONNECTION_NOT_ALLOWED\`,
|
|
62882
|
+
\`PROFILE_NOT_ALLOWED\`, \`FORBIDDEN\`) is a fail-fast: ask
|
|
62803
62883
|
an org admin to grant the clip or the connection \u2014 do not retry or work
|
|
62804
62884
|
around it.
|
|
62805
62885
|
- If the target device is offline or the call times out, report that
|