@cartanova/qgrid-ai-sdk 2.0.3 → 2.1.1

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/README.md CHANGED
@@ -221,6 +221,7 @@ type QgridSupportedModel =
221
221
  | "anthropic/claude-opus-4-5"
222
222
  | "anthropic/claude-opus-4-6"
223
223
  | "anthropic/claude-opus-4-7"
224
+ | "anthropic/claude-opus-4-8"
224
225
  ```
225
226
 
226
227
  ## 설정
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ type QgridOpenAIProviderOptions = {
28
28
  type QgridProviderOptions = {
29
29
  openai?: QgridOpenAIProviderOptions;
30
30
  };
31
- type QgridSupportedModel = "openai/gpt-5.5" | "openai/gpt-5.4" | "openai/gpt-5.2" | "openai/gpt-5.4-mini" | "openai/gpt-5.3-codex" | "openai/gpt-5.3-codex-spark" | "anthropic/claude-haiku-4-5" | "anthropic/claude-sonnet-4" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-sonnet-4-7" | "anthropic/claude-opus-4" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7";
31
+ type QgridSupportedModel = "openai/gpt-5.5" | "openai/gpt-5.4" | "openai/gpt-5.2" | "openai/gpt-5.4-mini" | "openai/gpt-5.3-codex" | "openai/gpt-5.3-codex-spark" | "anthropic/claude-haiku-4-5" | "anthropic/claude-sonnet-4" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-sonnet-4-7" | "anthropic/claude-opus-4" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8";
32
32
  type QgridLoggerConfig = {
33
33
  /** qgrid 서버 주소. default: process.env.QGRID_URL, 없으면 기본값은 "http://localhost:44900" */
34
34
  serverUrl?: string;
package/dist/index.js CHANGED
@@ -593,6 +593,7 @@ function qgrid(modelId, config) {
593
593
  const jsonSchema = !hasTools && rawSchema && rawSchema.type === "object" ? JSON.stringify(rawSchema) : void 0;
594
594
  let runContext;
595
595
  let toolResultsPayload;
596
+ let logMode;
596
597
  if (clientRun) {
597
598
  const toolResults = extractToolResultsFromHistory(options.prompt);
598
599
  const resultIds = new Set(toolResults.map((r) => r.callId));
@@ -602,11 +603,13 @@ function qgrid(modelId, config) {
602
603
  toolCallId: r.callId,
603
604
  output: r.result
604
605
  }));
606
+ logMode = "run";
605
607
  } else {
606
608
  console.warn("[qgrid] pending tool results not found in prompt, clearing client run state");
607
609
  clientRun = null;
608
610
  }
609
611
  }
612
+ if (!logMode && hasTools) logMode = "run";
610
613
  const prepRes = await fetch(`${serverUrl}/api/qgrid/prepareStream`, {
611
614
  method: "POST",
612
615
  headers: { "Content-Type": "application/json" },
@@ -620,7 +623,7 @@ function qgrid(modelId, config) {
620
623
  ...hasTools ? { tools: tools.map(toQgridTool) } : {},
621
624
  ...jsonSchema ? { jsonSchema } : {},
622
625
  ...history.length > 0 ? { history: JSON.stringify(history) } : {},
623
- logMode: "run",
626
+ ...logMode ? { logMode } : {},
624
627
  ...runContext ? { runContext } : {},
625
628
  ...toolResultsPayload ? { toolResults: toolResultsPayload } : {}
626
629
  } }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartanova/qgrid-ai-sdk",
3
- "version": "2.0.3",
3
+ "version": "2.1.1",
4
4
  "description": "AI SDK LanguageModelV3 provider for qgrid",
5
5
  "repository": {
6
6
  "type": "git",