@kenkaiiii/gg-agent 5.93.0 → 5.95.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.cjs CHANGED
@@ -27,8 +27,10 @@ __export(index_exports, {
27
27
  JsonEscapeDecoder: () => JsonEscapeDecoder,
28
28
  StreamRuleMonitor: () => StreamRuleMonitor,
29
29
  agentLoop: () => agentLoop,
30
+ argumentHints: () => argumentHints,
30
31
  buildStreamRuleReminder: () => buildStreamRuleReminder,
31
32
  cancelledBeforeStartText: () => cancelledBeforeStartText,
33
+ capToolResults: () => capToolResults,
32
34
  indeterminateOutcomeText: () => indeterminateOutcomeText,
33
35
  isAbortError: () => isAbortError,
34
36
  isBillingError: () => isBillingError,
@@ -36,7 +38,8 @@ __export(index_exports, {
36
38
  isLocalBackendUrl: () => isLocalBackendUrl,
37
39
  isUsageLimitError: () => isUsageLimitError,
38
40
  repairToolPairingAdjacent: () => repairToolPairingAdjacent,
39
- setStreamDiagnostic: () => setStreamDiagnostic
41
+ setStreamDiagnostic: () => setStreamDiagnostic,
42
+ unknownToolMessage: () => unknownToolMessage
40
43
  });
41
44
  module.exports = __toCommonJS(index_exports);
42
45
 
@@ -931,13 +934,11 @@ async function* agentLoop(messages, options) {
931
934
  providerAttemptStartedAt = streamCallStart;
932
935
  let liveApiKey = options.apiKey;
933
936
  let liveAccountId = options.accountId;
934
- let liveProjectId = options.projectId;
935
937
  if (options.resolveCredentials) {
936
938
  try {
937
939
  const fresh = await options.resolveCredentials();
938
940
  liveApiKey = fresh.apiKey;
939
- if (fresh.accountId !== void 0) liveAccountId = fresh.accountId;
940
- if (fresh.projectId !== void 0) liveProjectId = fresh.projectId;
941
+ liveAccountId = fresh.accountId;
941
942
  } catch (credErr) {
942
943
  diag("credential_refresh_failed", {
943
944
  error: (credErr instanceof Error ? credErr.message : String(credErr)).slice(0, 200)
@@ -997,19 +998,16 @@ async function* agentLoop(messages, options) {
997
998
  signal,
998
999
  accountId: liveAccountId,
999
1000
  transportSessionId: options.transportSessionId,
1000
- projectId: liveProjectId,
1001
1001
  cacheRetention: options.cacheRetention,
1002
1002
  // A hedge duplicates an already-observed request; observe it once.
1003
1003
  onContextPrepared: arm === "primary" ? options.onContextPrepared : void 0,
1004
1004
  promptCacheKey: options.promptCacheKey,
1005
1005
  serviceTier: options.serviceTier,
1006
- responsesLite: options.responsesLite,
1007
1006
  strictTools: options.strictTools,
1008
1007
  supportsImages: options.supportsImages,
1009
1008
  supportsVideo: options.supportsVideo,
1010
1009
  compaction: options.compaction,
1011
1010
  clearToolUses: options.clearToolUses,
1012
- userAgent: options.userAgent,
1013
1011
  defaultHeaders: options.defaultHeaders,
1014
1012
  providerOptions: options.providerOptions,
1015
1013
  fetch: options.fetch,
@@ -2575,8 +2573,10 @@ var Agent = class {
2575
2573
  JsonEscapeDecoder,
2576
2574
  StreamRuleMonitor,
2577
2575
  agentLoop,
2576
+ argumentHints,
2578
2577
  buildStreamRuleReminder,
2579
2578
  cancelledBeforeStartText,
2579
+ capToolResults,
2580
2580
  indeterminateOutcomeText,
2581
2581
  isAbortError,
2582
2582
  isBillingError,
@@ -2584,6 +2584,7 @@ var Agent = class {
2584
2584
  isLocalBackendUrl,
2585
2585
  isUsageLimitError,
2586
2586
  repairToolPairingAdjacent,
2587
- setStreamDiagnostic
2587
+ setStreamDiagnostic,
2588
+ unknownToolMessage
2588
2589
  });
2589
2590
  //# sourceMappingURL=index.cjs.map