@tryvira/sdk 0.1.64 → 0.1.65

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/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // sdks/js-client.ts
1
+ // ../../sdks/js-client.ts
2
2
  var ViraApiError = class extends Error {
3
3
  status;
4
4
  body;
@@ -1220,7 +1220,7 @@ function buildObservationRequest(event) {
1220
1220
  });
1221
1221
  }
1222
1222
 
1223
- // sdks/framework-adapters.ts
1223
+ // ../../sdks/framework-adapters.ts
1224
1224
  function createFrameworkRuntimeCore(client) {
1225
1225
  if (!client) throw new Error("SDK_FRAMEWORK_CLIENT_REQUIRED");
1226
1226
  return Object.freeze({
@@ -1304,7 +1304,7 @@ function createFrameworkAdapters(client) {
1304
1304
  return Object.freeze(Object.fromEntries(["openai-agents", "vercel-ai", "langchain", "langgraph", "otel", "mcp"].map((name) => [name, createFrameworkObservationAdapter(client, name)])));
1305
1305
  }
1306
1306
 
1307
- // sdks/host-lifecycle.ts
1307
+ // ../../sdks/host-lifecycle.ts
1308
1308
  import { createHash } from "node:crypto";
1309
1309
  function resolveHostToolBinding(bindings, hostToolName) {
1310
1310
  const name = hostToolName.trim();
@@ -1447,7 +1447,7 @@ function createViraHostRuntime(client, config) {
1447
1447
  ...capabilities.canPreventSideEffect ? ["external_action"] : [],
1448
1448
  ...capabilities.canInspectToolAfter ? ["tool_result"] : []
1449
1449
  ];
1450
- const admitted = await withTimeout(client.startTaskRunFromPrompt({ input: request.input, taskRunId: `host-task-run-${request.requestId}`, requestId: request.requestId, conversationId: request.conversationId, traceRootRef: request.traceId, hostCapabilities }), timeoutMs, "SDK_HOST_TASKRUN_ADMISSION_TIMEOUT");
1450
+ const admitted = await withTimeout(client.startTaskRunFromPrompt({ input: request.input, taskRunId: `host-task-run-${request.requestId}`, requestId: request.requestId, conversationId: request.conversationId, traceRootRef: request.traceId, ...request.connectionId ? { connectionId: request.connectionId } : {}, hostCapabilities }), timeoutMs, "SDK_HOST_TASKRUN_ADMISSION_TIMEOUT");
1451
1451
  const admittedBody = bodyOf(admitted);
1452
1452
  const taskRun = admittedBody.taskRun && typeof admittedBody.taskRun === "object" ? admittedBody.taskRun : {};
1453
1453
  const taskRunId = typeof taskRun.taskRunId === "string" ? taskRun.taskRunId : `host-task-run-${request.requestId}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "Typed Vira SDK for connect-once, observation and governed runtime execution.",
5
5
  "keywords": ["vira", "ai-governance", "ai-runtime", "semantic-routing"],
6
6
  "engines": {"node": ">=20"},