@clawchatsai/connector 0.0.73 → 0.0.74

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",
package/server.js CHANGED
@@ -3081,7 +3081,7 @@ class GatewayClient {
3081
3081
  name: data?.name || 'unknown',
3082
3082
  phase: data?.phase || 'start',
3083
3083
  toolCallId: data?.toolCallId,
3084
- meta: data?.meta || (argsMeta ? String(argsMeta).substring(0, 120) : undefined),
3084
+ meta: data?.meta || (argsMeta ? String(argsMeta) : undefined),
3085
3085
  isError: data?.isError || false
3086
3086
  };
3087
3087
 
@@ -4483,7 +4483,7 @@ export function createApp(config = {}) {
4483
4483
  if (log._currentAssistantSegment && !log._currentAssistantSegment._sealed) { log._currentAssistantSegment._sealed = true; }
4484
4484
  const _args = data?.args;
4485
4485
  const _argsMeta = _args ? (_args.command || _args.path || _args.query || _args.url || Object.values(_args).find(v => typeof v === 'string') || '') : '';
4486
- const step = { type: 'tool', timestamp: Date.now(), name: data?.name || 'unknown', phase: data?.phase || 'start', toolCallId: data?.toolCallId, meta: data?.meta || (_argsMeta ? String(_argsMeta).substring(0, 120) : undefined), isError: data?.isError || false };
4486
+ const step = { type: 'tool', timestamp: Date.now(), name: data?.name || 'unknown', phase: data?.phase || 'start', toolCallId: data?.toolCallId, meta: data?.meta || (_argsMeta ? String(_argsMeta) : undefined), isError: data?.isError || false };
4487
4487
  if (data?.phase === 'result') {
4488
4488
  const existing = log.steps.findLast(s => s.toolCallId === data.toolCallId && (s.phase === 'start' || s.phase === 'running'));
4489
4489
  if (existing) { existing.phase = 'done'; existing.resultMeta = data?.meta; existing.isError = data?.isError || false; existing.durationMs = Date.now() - existing.timestamp; }