@nextclaw/nextclaw-ncp-runtime-stdio-client 0.1.12 → 0.1.14

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.
@@ -283,6 +283,7 @@ var StdioRuntimeRunController = class {
283
283
  reasoningStarted = false;
284
284
  resolvedTools;
285
285
  resolvedProviderRoute;
286
+ runId;
286
287
  constructor(session, input, stateManager, resolveTools, resolveProviderRoute) {
287
288
  this.session = session;
288
289
  this.input = input;
@@ -291,6 +292,7 @@ var StdioRuntimeRunController = class {
291
292
  this.resolveProviderRoute = resolveProviderRoute;
292
293
  this.resolvedTools = resolveTools?.(input) ?? [];
293
294
  this.resolvedProviderRoute = resolveProviderRoute?.(input);
295
+ this.runId = input.runId ?? `narp-stdio:${input.sessionId}:${randomUUID()}`;
294
296
  }
295
297
  execute = async function* (options) {
296
298
  const requestMessage = this.input.messages.at(-1);
@@ -350,7 +352,7 @@ var StdioRuntimeRunController = class {
350
352
  payload: {
351
353
  sessionId: this.input.sessionId,
352
354
  messageId: assistantMessageId,
353
- runId: `narp-stdio:${this.input.sessionId}:${Date.now()}`
355
+ runId: this.runId
354
356
  }
355
357
  });
356
358
  };
@@ -388,7 +390,7 @@ var StdioRuntimeRunController = class {
388
390
  payload: {
389
391
  sessionId: this.input.sessionId,
390
392
  messageId: assistantMessageId,
391
- runId: `narp-stdio:${this.input.sessionId}`
393
+ runId: this.runId
392
394
  }
393
395
  });
394
396
  };
@@ -408,7 +410,7 @@ var StdioRuntimeRunController = class {
408
410
  payload: {
409
411
  sessionId: this.input.sessionId,
410
412
  messageId: assistantMessageId,
411
- runId: `narp-stdio:${this.input.sessionId}`,
413
+ runId: this.runId,
412
414
  error: ncpError.message
413
415
  }
414
416
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/nextclaw-ncp-runtime-stdio-client",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "description": "Optional NCP runtime adapter backed by a protocol-aware stdio agent command.",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@agentclientprotocol/sdk": "^0.19.0",
20
- "@nextclaw/ncp": "0.5.12"
20
+ "@nextclaw/ncp": "0.5.14"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^20.17.6",