@parall/daemon 1.92.0 → 1.93.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 +29 -7
- package/bundle/parall-claude-agent.js +443 -44
- package/bundle/parall-codex-agent.js +433 -49
- package/bundle/parall-daemon.js +76 -11
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -1337,6 +1337,7 @@ var init_constants = __esm({
|
|
|
1337
1337
|
AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
|
|
1338
1338
|
AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
|
|
1339
1339
|
AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
|
|
1340
|
+
AGENT_LLM_USAGE: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/llm-usage`,
|
|
1340
1341
|
...secretEndpoints(API_BASE2),
|
|
1341
1342
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
1342
1343
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
@@ -2779,6 +2780,10 @@ var init_clip_connection_client = __esm({
|
|
|
2779
2780
|
};
|
|
2780
2781
|
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
2781
2782
|
}
|
|
2783
|
+
/** Server-resolved hosted authorization; no client URL or secret fields. */
|
|
2784
|
+
async connectManagedMCP(orgId, clipId, alias, target) {
|
|
2785
|
+
return this.request(target ? "PUT" : "POST", target ? ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, target.config_id) : ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), { auth_type: "managed", ...alias ? { alias } : {} }, void 0, false, { headers: target ? { "If-Match": `"${target.version}"` } : void 0, timeoutMs: 11e4 });
|
|
2786
|
+
}
|
|
2782
2787
|
// ---- Clip connections ----
|
|
2783
2788
|
/** Missing keys are unknown/hidden; present empty arrays are known empty. */
|
|
2784
2789
|
async listClipMCPSummaries(orgId, clipIds) {
|
|
@@ -3545,16 +3550,39 @@ var init_agent_owning_team_client = __esm({
|
|
|
3545
3550
|
}
|
|
3546
3551
|
});
|
|
3547
3552
|
|
|
3553
|
+
// ts/sdk/dist/runtime-auth-llm-usage-client.js
|
|
3554
|
+
var RuntimeAuthLlmUsageClient;
|
|
3555
|
+
var init_runtime_auth_llm_usage_client = __esm({
|
|
3556
|
+
"ts/sdk/dist/runtime-auth-llm-usage-client.js"() {
|
|
3557
|
+
"use strict";
|
|
3558
|
+
init_agent_owning_team_client();
|
|
3559
|
+
init_constants();
|
|
3560
|
+
RuntimeAuthLlmUsageClient = class extends AgentOwningTeamClient {
|
|
3561
|
+
/**
|
|
3562
|
+
* Record one batch of usage. The agent's own API key only (403 AGENT_ONLY
|
|
3563
|
+
* otherwise); 204 also for a batch already recorded; 400 for a batch out of
|
|
3564
|
+
* bounds; 409 LLM_ROUTE_NOT_RUNTIME_AUTH when the agent's model route is
|
|
3565
|
+
* not runtime_auth. A server without the endpoint answers 404 with no error
|
|
3566
|
+
* code. Every refusal surfaces as an ApiError with its status and code: what
|
|
3567
|
+
* to do about it is the caller's decision.
|
|
3568
|
+
*/
|
|
3569
|
+
async reportRuntimeAuthLlmUsage(orgId, report, opts) {
|
|
3570
|
+
await this.request("POST", ENDPOINTS.AGENT_LLM_USAGE(orgId), report, void 0, false, opts);
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
}
|
|
3574
|
+
});
|
|
3575
|
+
|
|
3548
3576
|
// ts/sdk/dist/team-graph-client.js
|
|
3549
3577
|
var TeamGraphClient;
|
|
3550
3578
|
var init_team_graph_client = __esm({
|
|
3551
3579
|
"ts/sdk/dist/team-graph-client.js"() {
|
|
3552
3580
|
"use strict";
|
|
3553
|
-
init_agent_owning_team_client();
|
|
3554
3581
|
init_constants();
|
|
3555
|
-
|
|
3582
|
+
init_runtime_auth_llm_usage_client();
|
|
3583
|
+
TeamGraphClient = class extends RuntimeAuthLlmUsageClient {
|
|
3556
3584
|
async getTeamGraph(orgId, opts) {
|
|
3557
|
-
const query = opts?.includeAccess ? "?include=access" : "";
|
|
3585
|
+
const query = opts?.includeAccess ? "?include=access&include=apps" : "";
|
|
3558
3586
|
return this.request("GET", `${ENDPOINTS.TEAM_GRAPH(orgId)}${query}`);
|
|
3559
3587
|
}
|
|
3560
3588
|
/**
|
|
@@ -6510,9 +6538,8 @@ var init_client = __esm({
|
|
|
6510
6538
|
}
|
|
6511
6539
|
async createClipMCPConnection(orgId, clipId, req) {
|
|
6512
6540
|
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
|
|
6513
|
-
//
|
|
6514
|
-
|
|
6515
|
-
timeoutMs: "approval_id" in req ? 5e4 : 4e4
|
|
6541
|
+
// Managed no-auth cards also perform a bounded session probe and completion.
|
|
6542
|
+
timeoutMs: "approval_id" in req ? 11e4 : 4e4
|
|
6516
6543
|
});
|
|
6517
6544
|
}
|
|
6518
6545
|
/** Delete one MCP config and its paired connection. */
|
|
@@ -6539,8 +6566,8 @@ var init_client = __esm({
|
|
|
6539
6566
|
void 0,
|
|
6540
6567
|
void 0,
|
|
6541
6568
|
false,
|
|
6542
|
-
//
|
|
6543
|
-
{ timeoutMs:
|
|
6569
|
+
// Managed refresh includes account readback and session creation (60s).
|
|
6570
|
+
{ timeoutMs: 7e4 }
|
|
6544
6571
|
);
|
|
6545
6572
|
}
|
|
6546
6573
|
// ---- Deprecated method aliases (External* → Trigger* rename; same endpoints) ----
|
|
@@ -6779,6 +6806,16 @@ var init_runtime_observation = __esm({
|
|
|
6779
6806
|
}
|
|
6780
6807
|
});
|
|
6781
6808
|
|
|
6809
|
+
// ts/sdk/dist/runtime-auth-llm-usage-types.js
|
|
6810
|
+
var RUNTIME_AUTH_LLM_USAGE_MAX_MODELS, LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE;
|
|
6811
|
+
var init_runtime_auth_llm_usage_types = __esm({
|
|
6812
|
+
"ts/sdk/dist/runtime-auth-llm-usage-types.js"() {
|
|
6813
|
+
"use strict";
|
|
6814
|
+
RUNTIME_AUTH_LLM_USAGE_MAX_MODELS = 8;
|
|
6815
|
+
LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE = "LLM_ROUTE_NOT_RUNTIME_AUTH";
|
|
6816
|
+
}
|
|
6817
|
+
});
|
|
6818
|
+
|
|
6782
6819
|
// ts/sdk/dist/secret-types.js
|
|
6783
6820
|
var AGENT_SECRET_GRANT_ONCE, AGENT_SECRET_GRANT_LONG, AGENT_SECRET_GRANT_INPUT, AGENT_SECRET_REQUEST_ACTION, ORG_SECRET_AGENT_ADD_ACTION, USER_SECRET_AGENT_ADD_ACTION, TEAM_SECRET_AGENT_ADD_ACTION, USER_SECRET_REQUEST_ACTION, TEAM_SECRET_REQUEST_ACTION, ORG_SECRET_REQUEST_ACTION, AGENT_SECRET_LAYER_ACTIONS, AGENT_SECRET_REQUEST_ACTIONS;
|
|
6784
6821
|
var init_secret_types = __esm({
|
|
@@ -7421,6 +7458,7 @@ __export(dist_exports, {
|
|
|
7421
7458
|
COMMENT_TARGET: () => COMMENT_TARGET,
|
|
7422
7459
|
DEFAULT_CHAT_LIST_MODE: () => DEFAULT_CHAT_LIST_MODE,
|
|
7423
7460
|
ENDPOINTS: () => ENDPOINTS,
|
|
7461
|
+
LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE: () => LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE,
|
|
7424
7462
|
MACHINE_DIAGNOSTICS_NOTE_MAX_CHARS: () => MACHINE_DIAGNOSTICS_NOTE_MAX_CHARS,
|
|
7425
7463
|
MAX_TEAM_SUBJECTS_PER_WRITE: () => MAX_TEAM_SUBJECTS_PER_WRITE,
|
|
7426
7464
|
MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
|
|
@@ -7433,6 +7471,7 @@ __export(dist_exports, {
|
|
|
7433
7471
|
PLATFORM_MODELS: () => PLATFORM_MODELS,
|
|
7434
7472
|
ParallClient: () => ParallClient,
|
|
7435
7473
|
ParallWs: () => ParallWs,
|
|
7474
|
+
RUNTIME_AUTH_LLM_USAGE_MAX_MODELS: () => RUNTIME_AUTH_LLM_USAGE_MAX_MODELS,
|
|
7436
7475
|
RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
|
|
7437
7476
|
RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
|
|
7438
7477
|
TEAM_SECRET_AGENT_ADD_ACTION: () => TEAM_SECRET_AGENT_ADD_ACTION,
|
|
@@ -7524,6 +7563,7 @@ var init_dist = __esm({
|
|
|
7524
7563
|
init_org_unread_types();
|
|
7525
7564
|
init_read_receipt();
|
|
7526
7565
|
init_runtime_observation();
|
|
7566
|
+
init_runtime_auth_llm_usage_types();
|
|
7527
7567
|
init_secret_types();
|
|
7528
7568
|
init_subject();
|
|
7529
7569
|
init_user_preferences_types();
|
|
@@ -34693,7 +34733,7 @@ async function initAgentTelemetry(serviceName, runtimeType, opts = {}) {
|
|
|
34693
34733
|
const metricExporter = spooled(new OTLPMetricExporter({ url: `${otelEndpoint}/v1/metrics`, headers: authHeaders }), "metrics", serializers?.ProtobufMetricsSerializer);
|
|
34694
34734
|
const metricReader = new PeriodicExportingMetricReader({
|
|
34695
34735
|
exporter: metricExporter,
|
|
34696
|
-
exportIntervalMillis:
|
|
34736
|
+
exportIntervalMillis: 6e4
|
|
34697
34737
|
});
|
|
34698
34738
|
const meterProvider = new MeterProvider({ resource, readers: [metricReader] });
|
|
34699
34739
|
metrics.setGlobalMeterProvider(meterProvider);
|
|
@@ -34707,7 +34747,8 @@ async function initAgentTelemetry(serviceName, runtimeType, opts = {}) {
|
|
|
34707
34747
|
});
|
|
34708
34748
|
dispatchDuration = meter.createHistogram("parall.dispatch.duration", {
|
|
34709
34749
|
description: "Dispatch cycle duration in milliseconds",
|
|
34710
|
-
unit: "ms"
|
|
34750
|
+
unit: "ms",
|
|
34751
|
+
advice: { explicitBucketBoundaries: DISPATCH_DURATION_BUCKETS_MS }
|
|
34711
34752
|
});
|
|
34712
34753
|
missingReplyCounter = meter.createCounter("parall.dispatch.missing_reply", {
|
|
34713
34754
|
description: "Dispatches where agent produced text but sent no reply message"
|
|
@@ -34814,7 +34855,7 @@ function createOtelLogger(layer, prefix) {
|
|
|
34814
34855
|
child: (sub) => createOtelLogger(layer, `${prefix}:${sub}`)
|
|
34815
34856
|
};
|
|
34816
34857
|
}
|
|
34817
|
-
var import_api_logs, initialized, shutdownFn, dispatchCounter, dispatchDuration, missingReplyCounter, turnTokensCounter, turnCostCounter, otelLogger, spoolCounters, PRODUCTION_API_HOSTS, STAGING_API_HOSTS, DIAG_THROTTLE_MS, DIAG_THROTTLE_KEYS, dispatchContextStorage;
|
|
34858
|
+
var import_api_logs, initialized, shutdownFn, dispatchCounter, dispatchDuration, DISPATCH_DURATION_BUCKETS_MS, missingReplyCounter, turnTokensCounter, turnCostCounter, otelLogger, spoolCounters, PRODUCTION_API_HOSTS, STAGING_API_HOSTS, DIAG_THROTTLE_MS, DIAG_THROTTLE_KEYS, dispatchContextStorage;
|
|
34818
34859
|
var init_telemetry = __esm({
|
|
34819
34860
|
"ts/agent-core/dist/telemetry.js"() {
|
|
34820
34861
|
"use strict";
|
|
@@ -34827,6 +34868,19 @@ var init_telemetry = __esm({
|
|
|
34827
34868
|
shutdownFn = null;
|
|
34828
34869
|
dispatchCounter = null;
|
|
34829
34870
|
dispatchDuration = null;
|
|
34871
|
+
DISPATCH_DURATION_BUCKETS_MS = [
|
|
34872
|
+
1e3,
|
|
34873
|
+
2500,
|
|
34874
|
+
5e3,
|
|
34875
|
+
1e4,
|
|
34876
|
+
2e4,
|
|
34877
|
+
3e4,
|
|
34878
|
+
6e4,
|
|
34879
|
+
12e4,
|
|
34880
|
+
3e5,
|
|
34881
|
+
6e5,
|
|
34882
|
+
18e5
|
|
34883
|
+
];
|
|
34830
34884
|
missingReplyCounter = null;
|
|
34831
34885
|
turnTokensCounter = null;
|
|
34832
34886
|
turnCostCounter = null;
|
|
@@ -34951,6 +35005,16 @@ var init_runtime_turns = __esm({
|
|
|
34951
35005
|
}
|
|
34952
35006
|
});
|
|
34953
35007
|
|
|
35008
|
+
// ts/agent-core/dist/gateway/runtime-usage-reporter.js
|
|
35009
|
+
var DEFAULT_INTERVAL_MS;
|
|
35010
|
+
var init_runtime_usage_reporter = __esm({
|
|
35011
|
+
"ts/agent-core/dist/gateway/runtime-usage-reporter.js"() {
|
|
35012
|
+
"use strict";
|
|
35013
|
+
init_dist();
|
|
35014
|
+
DEFAULT_INTERVAL_MS = 5 * 6e4;
|
|
35015
|
+
}
|
|
35016
|
+
});
|
|
35017
|
+
|
|
34954
35018
|
// ts/agent-core/dist/gateway/drain.js
|
|
34955
35019
|
var init_drain = __esm({
|
|
34956
35020
|
"ts/agent-core/dist/gateway/drain.js"() {
|
|
@@ -35131,6 +35195,7 @@ var init_base = __esm({
|
|
|
35131
35195
|
init_lane_flow();
|
|
35132
35196
|
init_idle_compact();
|
|
35133
35197
|
init_runtime_turns();
|
|
35198
|
+
init_runtime_usage_reporter();
|
|
35134
35199
|
init_drain();
|
|
35135
35200
|
init_session_binding();
|
|
35136
35201
|
init_ledger();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.93.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-core": "1.
|
|
38
|
-
"@parall/
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/
|
|
37
|
+
"@parall/agent-core": "1.93.0",
|
|
38
|
+
"@parall/sdk": "1.93.0",
|
|
39
|
+
"@parall/claude-agent": "1.93.0",
|
|
40
|
+
"@parall/openclaw-agent": "1.93.0",
|
|
41
|
+
"@parall/codex-agent": "1.93.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|