@kenkaiiii/gg-agent 5.94.0 → 5.95.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/dist/index.d.cts CHANGED
@@ -348,25 +348,23 @@ interface AgentOptions {
348
348
  * turn fails with an authentication error. Returning the current credential
349
349
  * here keeps a long run alive across rotations.
350
350
  *
351
- * Falls back to `apiKey`/`accountId`/`projectId` when omitted or when the
351
+ * Falls back to `apiKey`/`accountId` when omitted or when the
352
352
  * resolver throws (the provider call then surfaces the real auth error).
353
353
  */
354
354
  resolveCredentials?: () => Promise<{
355
355
  apiKey: string;
356
356
  accountId?: string;
357
- projectId?: string;
358
357
  }>;
359
358
  baseUrl?: string;
360
359
  signal?: AbortSignal;
361
360
  accountId?: string;
362
361
  transportSessionId?: StreamOptions["transportSessionId"];
363
- projectId?: StreamOptions["projectId"];
364
362
  cacheRetention?: StreamOptions["cacheRetention"];
365
363
  onContextPrepared?: StreamOptions["onContextPrepared"];
366
364
  /** Stable per-session cache routing key for providers that support it. */
367
365
  promptCacheKey?: StreamOptions["promptCacheKey"];
368
- /** Extra HTTP headers attached to every model request (e.g. Kimi For Coding
369
- * client-identity headers). Merged into the underlying SDK default headers. */
366
+ /** Extra HTTP headers attached to every model request. Merged into the
367
+ * underlying SDK default headers. */
370
368
  defaultHeaders?: StreamOptions["defaultHeaders"];
371
369
  /** Provider-specific request-body fields forwarded to every model request
372
370
  * (e.g. OpenRouter `provider: { zdr: true }`). See gg-ai `ProviderOptions`. */
@@ -375,9 +373,7 @@ interface AgentOptions {
375
373
  fetch?: StreamOptions["fetch"];
376
374
  /** OpenAI service tier for latency-sensitive first-party API requests. */
377
375
  serviceTier?: StreamOptions["serviceTier"];
378
- /** Codex Responses-Lite request shape override (see StreamOptions). */
379
- responsesLite?: StreamOptions["responsesLite"];
380
- /** Codex strict tool schema override (see StreamOptions). */
376
+ /** OpenAI strict tool schema override (see StreamOptions). */
381
377
  strictTools?: StreamOptions["strictTools"];
382
378
  /** Whether the target model supports image input. When false, image blocks
383
379
  * in messages/tool_results are downgraded to text placeholders. Default: true. */
package/dist/index.d.ts CHANGED
@@ -348,25 +348,23 @@ interface AgentOptions {
348
348
  * turn fails with an authentication error. Returning the current credential
349
349
  * here keeps a long run alive across rotations.
350
350
  *
351
- * Falls back to `apiKey`/`accountId`/`projectId` when omitted or when the
351
+ * Falls back to `apiKey`/`accountId` when omitted or when the
352
352
  * resolver throws (the provider call then surfaces the real auth error).
353
353
  */
354
354
  resolveCredentials?: () => Promise<{
355
355
  apiKey: string;
356
356
  accountId?: string;
357
- projectId?: string;
358
357
  }>;
359
358
  baseUrl?: string;
360
359
  signal?: AbortSignal;
361
360
  accountId?: string;
362
361
  transportSessionId?: StreamOptions["transportSessionId"];
363
- projectId?: StreamOptions["projectId"];
364
362
  cacheRetention?: StreamOptions["cacheRetention"];
365
363
  onContextPrepared?: StreamOptions["onContextPrepared"];
366
364
  /** Stable per-session cache routing key for providers that support it. */
367
365
  promptCacheKey?: StreamOptions["promptCacheKey"];
368
- /** Extra HTTP headers attached to every model request (e.g. Kimi For Coding
369
- * client-identity headers). Merged into the underlying SDK default headers. */
366
+ /** Extra HTTP headers attached to every model request. Merged into the
367
+ * underlying SDK default headers. */
370
368
  defaultHeaders?: StreamOptions["defaultHeaders"];
371
369
  /** Provider-specific request-body fields forwarded to every model request
372
370
  * (e.g. OpenRouter `provider: { zdr: true }`). See gg-ai `ProviderOptions`. */
@@ -375,9 +373,7 @@ interface AgentOptions {
375
373
  fetch?: StreamOptions["fetch"];
376
374
  /** OpenAI service tier for latency-sensitive first-party API requests. */
377
375
  serviceTier?: StreamOptions["serviceTier"];
378
- /** Codex Responses-Lite request shape override (see StreamOptions). */
379
- responsesLite?: StreamOptions["responsesLite"];
380
- /** Codex strict tool schema override (see StreamOptions). */
376
+ /** OpenAI strict tool schema override (see StreamOptions). */
381
377
  strictTools?: StreamOptions["strictTools"];
382
378
  /** Whether the target model supports image input. When false, image blocks
383
379
  * in messages/tool_results are downgraded to text placeholders. Default: true. */
package/dist/index.js CHANGED
@@ -899,13 +899,11 @@ async function* agentLoop(messages, options) {
899
899
  providerAttemptStartedAt = streamCallStart;
900
900
  let liveApiKey = options.apiKey;
901
901
  let liveAccountId = options.accountId;
902
- let liveProjectId = options.projectId;
903
902
  if (options.resolveCredentials) {
904
903
  try {
905
904
  const fresh = await options.resolveCredentials();
906
905
  liveApiKey = fresh.apiKey;
907
- if (fresh.accountId !== void 0) liveAccountId = fresh.accountId;
908
- if (fresh.projectId !== void 0) liveProjectId = fresh.projectId;
906
+ liveAccountId = fresh.accountId;
909
907
  } catch (credErr) {
910
908
  diag("credential_refresh_failed", {
911
909
  error: (credErr instanceof Error ? credErr.message : String(credErr)).slice(0, 200)
@@ -965,13 +963,11 @@ async function* agentLoop(messages, options) {
965
963
  signal,
966
964
  accountId: liveAccountId,
967
965
  transportSessionId: options.transportSessionId,
968
- projectId: liveProjectId,
969
966
  cacheRetention: options.cacheRetention,
970
967
  // A hedge duplicates an already-observed request; observe it once.
971
968
  onContextPrepared: arm === "primary" ? options.onContextPrepared : void 0,
972
969
  promptCacheKey: options.promptCacheKey,
973
970
  serviceTier: options.serviceTier,
974
- responsesLite: options.responsesLite,
975
971
  strictTools: options.strictTools,
976
972
  supportsImages: options.supportsImages,
977
973
  supportsVideo: options.supportsVideo,