@veryfront/ext-llm-google 0.1.1286-rc.25471 → 0.1.1287

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.
@@ -612,7 +612,7 @@ function toGoogleTools(tools) {
612
612
  functionDeclarations.push({
613
613
  name: tool.name,
614
614
  ...(typeof tool.description === "string" ? { description: tool.description } : {}),
615
- parameters: unwrapToolInputSchema(tool.inputSchema),
615
+ parametersJsonSchema: unwrapToolInputSchema(tool.inputSchema),
616
616
  });
617
617
  continue;
618
618
  }
@@ -1 +1 @@
1
- {"version":3,"file":"google-stream.d.ts","sourceRoot":"","sources":["../src/google-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,YAAY,EAGlB,MAAM,2BAA2B,CAAC;AAiBnC,eAAO,MAAM,0BAA0B,QAAkB,CAAC;AAC1D,eAAO,MAAM,gCAAgC,QAAkB,CAAC;AAChE,eAAO,MAAM,+BAA+B,QAAqC,CAAC;AAClF,eAAO,MAAM,+BAA+B,OAAQ,CAAC;AAgBrD,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,OAAO,GACX,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgBlD;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CA4B7E;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAQjG;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAY5F;AAED,KAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA8BF,wBAAuB,2BAA2B,CAChD,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,OAAO,GAAE,mBAAwB,GAChC,aAAa,CAAC,OAAO,CAAC,CA2wBxB"}
1
+ {"version":3,"file":"google-stream.d.ts","sourceRoot":"","sources":["../src/google-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,YAAY,EAGlB,MAAM,2BAA2B,CAAC;AAiBnC,eAAO,MAAM,0BAA0B,QAAkB,CAAC;AAC1D,eAAO,MAAM,gCAAgC,QAAkB,CAAC;AAChE,eAAO,MAAM,+BAA+B,QAAqC,CAAC;AAClF,eAAO,MAAM,+BAA+B,OAAQ,CAAC;AAgBrD,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,OAAO,GACX,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgBlD;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CA4B7E;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAQjG;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAY5F;AAED,KAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA8BF,wBAAuB,2BAA2B,CAChD,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,OAAO,GAAE,mBAAwB,GAChC,aAAa,CAAC,OAAO,CAAC,CA4wBxB"}
@@ -399,10 +399,11 @@ export async function* streamGoogleCompatibleParts(stream, context = {}) {
399
399
  }
400
400
  const providerId = typeof functionCall.id === "string" ? functionCall.id : undefined;
401
401
  const rawPartIndex = rawAssistantParts.length;
402
- // Gemini may replay an anonymous function call in later candidate
403
- // envelopes. Its candidate-part position is stable across those
404
- // cumulative snapshots; our growing retained-output index is not.
405
- const deduplicationKey = providerId ?? `anonymous-${candidatePartIndex}`;
402
+ // Without a provider ID, each complete call is a distinct stream part.
403
+ // Candidate-part indices restart in every envelope and are not call IDs.
404
+ const deduplicationKey = providerId === undefined
405
+ ? `anonymous:${nextRawPartPosition}`
406
+ : `provider:${providerId}`;
406
407
  const callShape = `${functionCall.name}\u0000${serializedInput}`;
407
408
  const previousToolCall = seenToolCalls.get(deduplicationKey);
408
409
  if (previousToolCall !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-llm-google",
3
- "version": "0.1.1286-rc.25471",
3
+ "version": "0.1.1287",
4
4
  "description": "Veryfront first-party extension package for ext-llm-google",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -49,7 +49,7 @@
49
49
  "@deno/shim-crypto": "~0.3.1"
50
50
  },
51
51
  "peerDependencies": {
52
- "veryfront": "^0.1.1286-rc.25471"
52
+ "veryfront": "^0.1.1287"
53
53
  },
54
54
  "type": "module",
55
55
  "types": "./esm/index.d.ts",
@@ -59,5 +59,5 @@
59
59
  "NOTICE",
60
60
  "README.md"
61
61
  ],
62
- "gitHead": "ee2f557fd2bd8e35f6408f55123b072197b0a5d8"
62
+ "gitHead": "c918ae9110b7ea742b378129c0fd921e83a366de"
63
63
  }