@openspecui/server 6.1.0 → 6.2.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.mjs CHANGED
@@ -17869,7 +17869,7 @@ var TranslationEngineService = class {
17869
17869
  defaultModel: model ?? globalSettings.translationEngines.localLlama.model,
17870
17870
  cacheDir: this.localLlamaCacheDir
17871
17871
  });
17872
- return (await import("./src-Ct1Z-zfA.mjs")).createOpenAICompletionTranslatorFactory({
17872
+ return (await import("./src-Br2OpUZp.mjs")).createOpenAICompletionTranslatorFactory({
17873
17873
  baseUrl: globalSettings.translationEngines.openai.baseUrl,
17874
17874
  token: globalSettings.translationEngines.openai.token,
17875
17875
  model: model ?? globalSettings.translationEngines.openai.model
@@ -197,7 +197,7 @@ var EventClient = class {
197
197
  };
198
198
 
199
199
  //#endregion
200
- //#region ../../node_modules/.pnpm/@tanstack+ai-event-client@0.3.5_@tanstack+ai@0.20.0/node_modules/@tanstack/ai-event-client/dist/esm/devtools-middleware.js
200
+ //#region ../../node_modules/.pnpm/@tanstack+ai-event-client@0.3.5_@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1_/node_modules/@tanstack/ai-event-client/dist/esm/devtools-middleware.js
201
201
  function buildEventContext(ctx) {
202
202
  return {
203
203
  requestId: ctx.requestId,
@@ -449,7 +449,7 @@ function devtoolsMiddleware() {
449
449
  }
450
450
 
451
451
  //#endregion
452
- //#region ../../node_modules/.pnpm/@tanstack+ai-event-client@0.3.5_@tanstack+ai@0.20.0/node_modules/@tanstack/ai-event-client/dist/esm/index.js
452
+ //#region ../../node_modules/.pnpm/@tanstack+ai-event-client@0.3.5_@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1_/node_modules/@tanstack/ai-event-client/dist/esm/index.js
453
453
  var AiEventClient = class extends EventClient {
454
454
  constructor() {
455
455
  super({ pluginId: "tanstack-ai-devtools" });
@@ -458,7 +458,7 @@ var AiEventClient = class extends EventClient {
458
458
  const aiEventClient = new AiEventClient();
459
459
 
460
460
  //#endregion
461
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/strip-to-spec-middleware.js
461
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/strip-to-spec-middleware.js
462
462
  function stripToSpec(chunk) {
463
463
  if (chunk.type === "RUN_ERROR" && "error" in chunk) {
464
464
  const { error: _deprecated, ...rest } = chunk;
@@ -476,7 +476,7 @@ function stripToSpecMiddleware() {
476
476
  }
477
477
 
478
478
  //#endregion
479
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/error-payload.js
479
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/error-payload.js
480
480
  const ABORT_ERROR_NAMES = /* @__PURE__ */ new Set([
481
481
  "AbortError",
482
482
  "APIUserAbortError",
@@ -520,7 +520,7 @@ function toRunErrorPayload(error, fallbackMessage = "Unknown error occurred") {
520
520
  }
521
521
 
522
522
  //#endregion
523
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/stream-to-response.js
523
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/stream-to-response.js
524
524
  async function streamToText(stream) {
525
525
  let accumulatedContent = "";
526
526
  for await (const chunk of stream) if (chunk.type === "TEXT_MESSAGE_CONTENT" && chunk.delta) accumulatedContent += chunk.delta;
@@ -528,7 +528,7 @@ async function streamToText(stream) {
528
528
  }
529
529
 
530
530
  //#endregion
531
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/logger/console-logger.js
531
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/logger/console-logger.js
532
532
  const DIR_OPTIONS = {
533
533
  depth: null,
534
534
  colors: true
@@ -557,7 +557,7 @@ var ConsoleLogger = class {
557
557
  };
558
558
 
559
559
  //#endregion
560
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/logger/internal-logger.js
560
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/logger/internal-logger.js
561
561
  const CATEGORY_EMOJI = {
562
562
  request: "📤",
563
563
  provider: "📥",
@@ -624,7 +624,7 @@ var InternalLogger = class {
624
624
  };
625
625
 
626
626
  //#endregion
627
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/logger/resolve.js
627
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/logger/resolve.js
628
628
  const ALL_OFF = {
629
629
  provider: false,
630
630
  output: false,
@@ -668,7 +668,7 @@ function resolveDebugOption(debug) {
668
668
  }
669
669
 
670
670
  //#endregion
671
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/tools/schema-converter.js
671
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/tools/schema-converter.js
672
672
  function isStandardJSONSchema(schema) {
673
673
  return typeof schema === "object" && schema !== null && "~standard" in schema && typeof schema["~standard"] === "object" && schema["~standard"].version === 1 && typeof schema["~standard"].jsonSchema === "object" && typeof schema["~standard"].jsonSchema.input === "function";
674
674
  }
@@ -747,7 +747,7 @@ function parseWithStandardSchema(schema, data) {
747
747
  }
748
748
 
749
749
  //#endregion
750
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/tools/lazy-tool-manager.js
750
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/tools/lazy-tool-manager.js
751
751
  const DISCOVERY_TOOL_NAME = "__lazy__tool__discovery__";
752
752
  var LazyToolManager = class {
753
753
  constructor(tools, messages) {
@@ -867,7 +867,7 @@ var LazyToolManager = class {
867
867
  };
868
868
 
869
869
  //#endregion
870
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/tools/tool-calls.js
870
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/tools/tool-calls.js
871
871
  function safeJsonParse(value) {
872
872
  try {
873
873
  return JSON.parse(value);
@@ -1226,13 +1226,13 @@ async function* executeToolCalls(toolCalls, tools, approvals = /* @__PURE__ */ n
1226
1226
  }
1227
1227
 
1228
1228
  //#endregion
1229
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/agent-loop-strategies.js
1229
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/agent-loop-strategies.js
1230
1230
  function maxIterations(max) {
1231
1231
  return ({ iterationCount }) => iterationCount < max;
1232
1232
  }
1233
1233
 
1234
1234
  //#endregion
1235
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/messages.js
1235
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/messages.js
1236
1236
  function isContentPart(part) {
1237
1237
  return part.type === "text" || part.type === "image" || part.type === "audio" || part.type === "video" || part.type === "document";
1238
1238
  }
@@ -1397,7 +1397,7 @@ function generateMessageId() {
1397
1397
  }
1398
1398
 
1399
1399
  //#endregion
1400
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/middleware/compose.js
1400
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/middleware/compose.js
1401
1401
  function shouldSkipInstrumentation(mw) {
1402
1402
  return mw.name === "devtools" || mw.name === "strip-to-spec";
1403
1403
  }
@@ -2342,7 +2342,7 @@ const EventSchemas = z.discriminatedUnion("type", [
2342
2342
  ]);
2343
2343
 
2344
2344
  //#endregion
2345
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/index.js
2345
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/index.js
2346
2346
  var TextEngine = class {
2347
2347
  constructor(config, logger) {
2348
2348
  this.iterationCount = 0;
@@ -3382,7 +3382,7 @@ async function* runStreamingStructuredOutputImpl(options, jsonSchema) {
3382
3382
  }
3383
3383
 
3384
3384
  //#endregion
3385
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/system-prompts.js
3385
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/system-prompts.js
3386
3386
  function normalizeSystemPrompts(prompts) {
3387
3387
  if (!prompts || prompts.length === 0) return [];
3388
3388
  return prompts.map((p, i) => {
@@ -3396,7 +3396,7 @@ function normalizeSystemPrompts(prompts) {
3396
3396
  }
3397
3397
 
3398
3398
  //#endregion
3399
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/extend-adapter.js
3399
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/extend-adapter.js
3400
3400
  function createModel(name, input) {
3401
3401
  return {
3402
3402
  name,
@@ -12330,7 +12330,7 @@ OpenAI.Skills = Skills;
12330
12330
  OpenAI.Videos = Videos;
12331
12331
 
12332
12332
  //#endregion
12333
- //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/utils/schema-converter.js
12333
+ //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1__ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/utils/schema-converter.js
12334
12334
  function makeStructuredOutputCompatible(schema, originalRequired) {
12335
12335
  const result = { ...schema };
12336
12336
  const required = originalRequired ?? (Array.isArray(result.required) ? result.required : []);
@@ -12375,7 +12375,7 @@ function makeStructuredOutputCompatible(schema, originalRequired) {
12375
12375
  }
12376
12376
 
12377
12377
  //#endregion
12378
- //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0/node_modules/@tanstack/ai/dist/esm/activities/chat/adapter.js
12378
+ //#region ../../node_modules/.pnpm/@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1/node_modules/@tanstack/ai/dist/esm/activities/chat/adapter.js
12379
12379
  var BaseTextAdapter = class {
12380
12380
  constructor(config = {}, model) {
12381
12381
  this.kind = "text";
@@ -12408,7 +12408,7 @@ function transformNullsToUndefined(obj) {
12408
12408
  }
12409
12409
 
12410
12410
  //#endregion
12411
- //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/utils/request-options.js
12411
+ //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1__ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/utils/request-options.js
12412
12412
  function extractRequestOptions(request) {
12413
12413
  if (!request) return {};
12414
12414
  return {
@@ -12418,7 +12418,7 @@ function extractRequestOptions(request) {
12418
12418
  }
12419
12419
 
12420
12420
  //#endregion
12421
- //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/adapters/chat-completions-tool-converter.js
12421
+ //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1__ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/adapters/chat-completions-tool-converter.js
12422
12422
  function convertFunctionToolToChatCompletionsFormat(tool, schemaConverter = makeStructuredOutputCompatible) {
12423
12423
  const inputSchema = tool.inputSchema ?? {
12424
12424
  type: "object",
@@ -12442,7 +12442,7 @@ function convertToolsToChatCompletionsFormat(tools, schemaConverter) {
12442
12442
  }
12443
12443
 
12444
12444
  //#endregion
12445
- //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/adapters/chat-completions-text.js
12445
+ //#region ../../node_modules/.pnpm/@tanstack+openai-base@0.3.3_@tanstack+ai@0.20.0_@opentelemetry+api@1.9.1__ws@8.19.0_zod@4.4.3/node_modules/@tanstack/openai-base/dist/esm/adapters/chat-completions-text.js
12446
12446
  var OpenAIBaseChatCompletionsTextAdapter = class extends BaseTextAdapter {
12447
12447
  constructor(model, name, client) {
12448
12448
  super({}, model);
@@ -13242,7 +13242,7 @@ var OpenAIBaseChatCompletionsTextAdapter = class extends BaseTextAdapter {
13242
13242
  };
13243
13243
 
13244
13244
  //#endregion
13245
- //#region ../../node_modules/.pnpm/@tanstack+ai-openai@0.9.4_@tanstack+ai-client@0.11.2_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/ai-openai/dist/esm/adapters/text-chat-completions.js
13245
+ //#region ../../node_modules/.pnpm/@tanstack+ai-openai@0.9.4_@tanstack+ai-client@0.11.2_@opentelemetry+api@1.9.1__@tanstac_bce45a485a309460d22d761d5f75dd85/node_modules/@tanstack/ai-openai/dist/esm/adapters/text-chat-completions.js
13246
13246
  var OpenAIChatCompletionsTextAdapter = class extends OpenAIBaseChatCompletionsTextAdapter {
13247
13247
  constructor(config, model) {
13248
13248
  super(model, "openai-chat", new OpenAI(config));
@@ -13257,11 +13257,11 @@ function createOpenaiChatCompletions(model, apiKey, config) {
13257
13257
  }
13258
13258
 
13259
13259
  //#endregion
13260
- //#region ../../node_modules/.pnpm/@tanstack+ai-openai@0.9.4_@tanstack+ai-client@0.11.2_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/ai-openai/dist/esm/adapters/video.js
13260
+ //#region ../../node_modules/.pnpm/@tanstack+ai-openai@0.9.4_@tanstack+ai-client@0.11.2_@opentelemetry+api@1.9.1__@tanstac_bce45a485a309460d22d761d5f75dd85/node_modules/@tanstack/ai-openai/dist/esm/adapters/video.js
13261
13261
  const LARGE_MEDIA_BUFFER_BYTES = 10 * 1024 * 1024;
13262
13262
 
13263
13263
  //#endregion
13264
- //#region ../../node_modules/.pnpm/@tanstack+ai-openai@0.9.4_@tanstack+ai-client@0.11.2_@tanstack+ai@0.20.0_ws@8.19.0_zod@4.4.3/node_modules/@tanstack/ai-openai/dist/esm/model-meta.js
13264
+ //#region ../../node_modules/.pnpm/@tanstack+ai-openai@0.9.4_@tanstack+ai-client@0.11.2_@opentelemetry+api@1.9.1__@tanstac_bce45a485a309460d22d761d5f75dd85/node_modules/@tanstack/ai-openai/dist/esm/model-meta.js
13265
13265
  const GPT5_2 = { name: "gpt-5.2" };
13266
13266
  const GPT5_2_PRO = { name: "gpt-5.2-pro" };
13267
13267
  const GPT5_2_CHAT = { name: "gpt-5.2-chat-latest" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/server",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.mjs",
6
6
  "exports": {
@@ -28,8 +28,8 @@
28
28
  "@hono/node-server": "^1.14.1",
29
29
  "@huggingface/hub": "^2.12.0",
30
30
  "@lydell/node-pty": "^1.1.0",
31
- "@openspecui/core": "6.1.0",
32
- "@openspecui/search": "6.1.0",
31
+ "@openspecui/core": "6.2.0",
32
+ "@openspecui/search": "6.2.0",
33
33
  "@opentelemetry/api": "^1.9.1",
34
34
  "@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
35
35
  "@opentelemetry/sdk-node": "^0.221.0",