@parall/claude-agent 1.60.0 → 1.62.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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import * as os from 'node:os';
3
- import { capabilityBinDir, childLogger, clearAllProviderCreds, configureHttpKeepAlive, createLogger, createOtelLogger, createPlatformConfigManager, deriveModelIsPin, identityFromMe, initAgentTelemetry, llmSource, resolveServiceVersion, materializeChannelCapabilities, ParallAgentGateway, parseDispatchDeadlineMs, parseForkDeadlineMs, parseProviderConfig, parseShutdownDeadlineMs, resolveRuntimeContextWindow, resolveRuntimeMaxTokens, resolveRuntimeModel, } from '@parall/agent-core';
3
+ import { capabilityBinDir, childLogger, clearAllProviderCreds, configureHttpKeepAlive, createLogger, createOtelLogger, createPlatformConfigManager, deriveModelIsPin, identityFromMe, initAgentTelemetry, llmSource, resolveServiceVersion, materializeChannelCapabilities, ParallAgentGateway, parseDispatchDeadlineMs, parseForkDeadlineMs, parseProviderConfig, parseShutdownDeadlineMs, resolveRuntimeContextWindow, resolveRuntimeMaxTokens, resolveRuntimeModel, traceContextHeaders, } from '@parall/agent-core';
4
4
  import { ApiError, ParallClient, ParallWs } from '@parall/sdk';
5
5
  import { buildClaudeRuntimeKey, contextFilePathForSession, dispatchContextDirPath, resolveClaudeAgentConfig, resolveWsUrl, sessionStateFilePathForRuntime, stepIdFilePathForSession, } from './config.js';
6
6
  import { ClaudeCodeAdapter } from './dispatch.js';
@@ -44,10 +44,11 @@ function resolveProviderEnv() {
44
44
  async function main() {
45
45
  // Before any fetch: long-lived HTTP connections for every bridge→api call.
46
46
  configureHttpKeepAlive();
47
+ const serviceVersion = resolveServiceVersion(import.meta.url);
47
48
  const telemetry = await initAgentTelemetry('parall-claude-agent', 'claude-code', {
48
49
  apiUrl: process.env.PRLL_API_URL,
49
50
  apiKey: process.env.PRLL_API_KEY,
50
- serviceVersion: resolveServiceVersion(import.meta.url),
51
+ serviceVersion,
51
52
  });
52
53
  activeLog = createOtelLogger('agent', 'claude-agent');
53
54
  try {
@@ -63,6 +64,7 @@ async function main() {
63
64
  baseUrl: config.apiUrl,
64
65
  token: config.apiKey,
65
66
  swimlaneName: config.swimlaneName,
67
+ getRequestHeaders: traceContextHeaders,
66
68
  });
67
69
  const me = await getAgentMeWithLegacyFallback(client, config.orgId);
68
70
  const agentUserId = me.id;
@@ -243,6 +245,7 @@ async function main() {
243
245
  },
244
246
  agentUserId,
245
247
  runtimeType: 'claude-code',
248
+ runtimeVersion: serviceVersion,
246
249
  runtimeKey,
247
250
  runtimeRef: {
248
251
  hostname: os.hostname(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/claude-agent",
3
- "version": "1.60.0",
3
+ "version": "1.62.0",
4
4
  "description": "Claude Code bridge runtime for self-hosted Parall agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@parall/agent-core": "1.60.0",
29
- "@parall/cli": "1.60.0",
30
- "@parall/sdk": "1.60.0"
28
+ "@parall/agent-core": "1.62.0",
29
+ "@parall/cli": "1.62.0",
30
+ "@parall/sdk": "1.62.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.0.0",
package/src/index.ts CHANGED
@@ -23,6 +23,7 @@ import {
23
23
  resolveRuntimeContextWindow,
24
24
  resolveRuntimeMaxTokens,
25
25
  resolveRuntimeModel,
26
+ traceContextHeaders,
26
27
  } from '@parall/agent-core';
27
28
  import { ApiError, ParallClient, ParallWs } from '@parall/sdk';
28
29
  import {
@@ -77,10 +78,11 @@ function resolveProviderEnv(): string {
77
78
  async function main() {
78
79
  // Before any fetch: long-lived HTTP connections for every bridge→api call.
79
80
  configureHttpKeepAlive();
81
+ const serviceVersion = resolveServiceVersion(import.meta.url);
80
82
  const telemetry = await initAgentTelemetry('parall-claude-agent', 'claude-code', {
81
83
  apiUrl: process.env.PRLL_API_URL,
82
84
  apiKey: process.env.PRLL_API_KEY,
83
- serviceVersion: resolveServiceVersion(import.meta.url),
85
+ serviceVersion,
84
86
  });
85
87
  activeLog = createOtelLogger('agent', 'claude-agent');
86
88
  try {
@@ -100,6 +102,7 @@ async function main() {
100
102
  baseUrl: config.apiUrl,
101
103
  token: config.apiKey,
102
104
  swimlaneName: config.swimlaneName,
105
+ getRequestHeaders: traceContextHeaders,
103
106
  });
104
107
 
105
108
  const me = await getAgentMeWithLegacyFallback(client, config.orgId);
@@ -304,6 +307,7 @@ async function main() {
304
307
  },
305
308
  agentUserId,
306
309
  runtimeType: 'claude-code',
310
+ runtimeVersion: serviceVersion,
307
311
  runtimeKey,
308
312
  runtimeRef: {
309
313
  hostname: os.hostname(),