@kenkaiiii/gg-core 6.1.0 → 6.2.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.cjs CHANGED
@@ -4210,15 +4210,15 @@ var ALL_AUTH_PROVIDERS = [
4210
4210
  oauth: {
4211
4211
  method: "oauth",
4212
4212
  label: "Sign in with Claude",
4213
- billing: "Uses your Claude Pro or Max plan.",
4214
- when: "Runs through Anthropic's Claude Code, which GG Coder downloads once (about 140 MB) the first time you pick this.",
4213
+ billing: "Your Claude Pro or Max plan.",
4214
+ when: "Downloads Claude Code once (about 140 MB).",
4215
4215
  requires: "A Claude Pro or Max subscription."
4216
4216
  },
4217
4217
  apikey: {
4218
4218
  method: "apikey",
4219
4219
  label: "Anthropic API key",
4220
- billing: "Pay-per-token from an Anthropic Console key.",
4221
- when: "No subscription needed. Used only while you are not signed in with Claude."
4220
+ billing: "Pay per token.",
4221
+ when: "Used when you're not signed in."
4222
4222
  }
4223
4223
  }
4224
4224
  },
@@ -4232,15 +4232,15 @@ var ALL_AUTH_PROVIDERS = [
4232
4232
  oauth: {
4233
4233
  method: "oauth",
4234
4234
  label: "Continue with ChatGPT",
4235
- billing: "Uses your ChatGPT plan.",
4236
- when: "Signs in through OpenAI. Manage what GG Coder may use at chatgpt.com/settings/usage.",
4235
+ billing: "Your ChatGPT plan.",
4236
+ when: "Set limits at chatgpt.com/settings/usage.",
4237
4237
  requires: "A ChatGPT plan."
4238
4238
  },
4239
4239
  apikey: {
4240
4240
  method: "apikey",
4241
4241
  label: "OpenAI API key",
4242
- billing: "Pay-per-token from an OpenAI Platform key.",
4243
- when: "No subscription needed. Covers you while your ChatGPT plan's usage is out."
4242
+ billing: "Pay per token.",
4243
+ when: "Covers you when plan usage runs out."
4244
4244
  }
4245
4245
  }
4246
4246
  },
@@ -4257,11 +4257,11 @@ var ALL_AUTH_PROVIDERS = [
4257
4257
  key: GEMINI_API_KEY,
4258
4258
  label: "Google AI Studio",
4259
4259
  kind: "payg",
4260
- billing: "Pay-per-token from a Google AI Studio key.",
4260
+ billing: "Pay per token, from Google AI Studio.",
4261
4261
  baseUrl: GEMINI_API_KEY_BASE_URL
4262
4262
  }
4263
4263
  ],
4264
- methodDetails: apiKeyDetails("Gemini API key", "Pay-per-token from a Google AI Studio key.")
4264
+ methodDetails: apiKeyDetails("Gemini API key", "Pay per token, from Google AI Studio.")
4265
4265
  },
4266
4266
  {
4267
4267
  value: "xai",
@@ -4269,11 +4269,7 @@ var ALL_AUTH_PROVIDERS = [
4269
4269
  description: "Grok 4.7",
4270
4270
  methods: ["apikey"],
4271
4271
  apiKeyLabel: "xAI",
4272
- methodDetails: apiKeyDetails(
4273
- "xAI API key",
4274
- "Pay-per-token from console.x.ai credits.",
4275
- "SuperGrok and X Premium usage is only offered in apps xAI partners with."
4276
- )
4272
+ methodDetails: apiKeyDetails("xAI API key", "Pay per token, from console.x.ai.", "")
4277
4273
  },
4278
4274
  {
4279
4275
  value: "moonshot",
@@ -4286,18 +4282,18 @@ var ALL_AUTH_PROVIDERS = [
4286
4282
  key: KIMI_CODE_KEY,
4287
4283
  label: "Kimi Code plan",
4288
4284
  kind: "plan",
4289
- billing: "Uses your Kimi Code plan. Create the key in the Kimi Code Console."
4285
+ billing: "Your Kimi Code plan. Get the key in its console."
4290
4286
  },
4291
4287
  {
4292
4288
  key: "moonshot",
4293
4289
  label: "Moonshot API",
4294
4290
  kind: "payg",
4295
- billing: "Pay-per-token from platform.moonshot.ai."
4291
+ billing: "Pay per token, from platform.moonshot.ai."
4296
4292
  }
4297
4293
  ],
4298
4294
  methodDetails: apiKeyDetails(
4299
4295
  "Kimi API key",
4300
- "A Kimi Code plan key uses your plan; a Moonshot key is pay-per-token."
4296
+ "A Kimi Code plan key, or a pay-per-token Moonshot key."
4301
4297
  )
4302
4298
  },
4303
4299
  {
@@ -4311,19 +4307,19 @@ var ALL_AUTH_PROVIDERS = [
4311
4307
  key: GLM_CODING_PLAN_KEY,
4312
4308
  label: "GLM Coding Plan",
4313
4309
  kind: "plan",
4314
- billing: "Uses your GLM Coding Plan.",
4310
+ billing: "Your GLM Coding Plan.",
4315
4311
  baseUrl: GLM_CODING_PLAN_BASE_URL
4316
4312
  },
4317
4313
  {
4318
4314
  key: "glm",
4319
4315
  label: "Z.AI API",
4320
4316
  kind: "payg",
4321
- billing: "Pay-per-token from your Z.AI account balance."
4317
+ billing: "Pay per token, from your Z.AI balance."
4322
4318
  }
4323
4319
  ],
4324
4320
  methodDetails: apiKeyDetails(
4325
4321
  "Z.AI API key",
4326
- "A GLM Coding Plan key uses your plan; a Z.AI API key is pay-per-token."
4322
+ "A GLM Coding Plan key, or a pay-per-token Z.AI key."
4327
4323
  )
4328
4324
  },
4329
4325
  {
@@ -4332,11 +4328,7 @@ var ALL_AUTH_PROVIDERS = [
4332
4328
  description: "MiniMax M3.1 Flash, M3",
4333
4329
  methods: ["apikey"],
4334
4330
  apiKeyLabel: "MiniMax",
4335
- methodDetails: apiKeyDetails(
4336
- "MiniMax API key",
4337
- "An M Plan key uses your plan; a pay-as-you-go key is pay-per-token.",
4338
- "The key you paste decides which one is billed."
4339
- )
4331
+ methodDetails: apiKeyDetails("MiniMax API key", "An M Plan key, or a pay-per-token key.", "")
4340
4332
  },
4341
4333
  {
4342
4334
  value: "xiaomi",
@@ -4350,20 +4342,20 @@ var ALL_AUTH_PROVIDERS = [
4350
4342
  key: "xiaomi",
4351
4343
  label: "Token Plan",
4352
4344
  kind: "plan",
4353
- billing: "Uses your MiMo Token Plan.",
4345
+ billing: "Your MiMo Token Plan.",
4354
4346
  baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1"
4355
4347
  },
4356
4348
  {
4357
4349
  key: XIAOMI_CREDITS_KEY,
4358
4350
  label: "API Credits",
4359
4351
  kind: "payg",
4360
- billing: "Pay-per-token from MiMo API Credits.",
4352
+ billing: "Pay per token, from MiMo API Credits.",
4361
4353
  baseUrl: "https://api.xiaomimimo.com/v1"
4362
4354
  }
4363
4355
  ],
4364
4356
  methodDetails: apiKeyDetails(
4365
4357
  "Xiaomi MiMo API key",
4366
- "A Token Plan key uses your plan; an API Credits key is pay-per-token."
4358
+ "A Token Plan key, or a pay-per-token API Credits key."
4367
4359
  )
4368
4360
  },
4369
4361
  {
@@ -4372,7 +4364,7 @@ var ALL_AUTH_PROVIDERS = [
4372
4364
  description: "DeepSeek V4 Pro, V4.1 Flash",
4373
4365
  methods: ["apikey"],
4374
4366
  apiKeyLabel: "DeepSeek",
4375
- methodDetails: apiKeyDetails("DeepSeek API key", "Pay-per-token from platform.deepseek.com.")
4367
+ methodDetails: apiKeyDetails("DeepSeek API key", "Pay per token, from platform.deepseek.com.")
4376
4368
  },
4377
4369
  {
4378
4370
  value: "sakana",
@@ -4380,7 +4372,7 @@ var ALL_AUTH_PROVIDERS = [
4380
4372
  description: "Fugu, Fugu Max, Fugu Ultra",
4381
4373
  methods: ["apikey"],
4382
4374
  apiKeyLabel: "Sakana",
4383
- methodDetails: apiKeyDetails("Sakana API key", "Pay-per-token from your Sakana API account.")
4375
+ methodDetails: apiKeyDetails("Sakana API key", "Pay per token, from your Sakana account.")
4384
4376
  },
4385
4377
  {
4386
4378
  value: "opencode-go",
@@ -4390,8 +4382,8 @@ var ALL_AUTH_PROVIDERS = [
4390
4382
  apiKeyLabel: "OpenCode",
4391
4383
  methodDetails: apiKeyDetails(
4392
4384
  "OpenCode API key",
4393
- "Uses your OpenCode Go subscription.",
4394
- "Create a personal API key in the OpenCode Console, in a workspace subscribed to Go."
4385
+ "Your OpenCode Go subscription.",
4386
+ "Use a key from a Go workspace."
4395
4387
  )
4396
4388
  },
4397
4389
  {
@@ -4402,8 +4394,8 @@ var ALL_AUTH_PROVIDERS = [
4402
4394
  apiKeyLabel: "OpenCode",
4403
4395
  methodDetails: apiKeyDetails(
4404
4396
  "OpenCode API key",
4405
- "Pay-per-token from your OpenCode Console credits.",
4406
- "Free-tier models only run inside OpenCode, so they are not listed here."
4397
+ "Pay per token, from OpenCode credits.",
4398
+ "Free models only run inside OpenCode."
4407
4399
  )
4408
4400
  },
4409
4401
  {
@@ -4412,7 +4404,7 @@ var ALL_AUTH_PROVIDERS = [
4412
4404
  description: "Qwen3.8 Max \xB7 multi-provider gateway",
4413
4405
  methods: ["apikey"],
4414
4406
  apiKeyLabel: "OpenRouter",
4415
- methodDetails: apiKeyDetails("OpenRouter API key", "Pay-per-token from OpenRouter credits.")
4407
+ methodDetails: apiKeyDetails("OpenRouter API key", "Pay per token, from OpenRouter credits.")
4416
4408
  },
4417
4409
  {
4418
4410
  value: "huggingface",
@@ -4420,10 +4412,7 @@ var ALL_AUTH_PROVIDERS = [
4420
4412
  description: "Kimi K2.7 Code, DeepSeek V4.1 Flash, GPT-OSS 120B",
4421
4413
  methods: ["apikey"],
4422
4414
  apiKeyLabel: "Hugging Face",
4423
- methodDetails: apiKeyDetails(
4424
- "Hugging Face token",
4425
- "Pay-per-token from Hugging Face Inference Providers credits."
4426
- )
4415
+ methodDetails: apiKeyDetails("Hugging Face token", "Pay per token, from Hugging Face credits.")
4427
4416
  }
4428
4417
  ];
4429
4418
  function requiredKeyLabel(provider, storageKeys) {
@@ -4448,29 +4437,29 @@ function describeAuthMethods(provider) {
4448
4437
  return method === "oauth" ? {
4449
4438
  method,
4450
4439
  label: `Sign in with ${meta.label}`,
4451
- billing: "Uses your existing plan with this provider.",
4440
+ billing: "Your plan with this provider.",
4452
4441
  when: ""
4453
4442
  } : {
4454
4443
  method,
4455
4444
  label: `${meta.apiKeyLabel ?? meta.label} API key`,
4456
- billing: "Pay-per-token on this provider's API credits.",
4445
+ billing: "Pay per token.",
4457
4446
  when: ""
4458
4447
  };
4459
4448
  });
4460
4449
  }
4461
4450
  function authPriorityNote(provider) {
4462
4451
  if (provider === "anthropic") {
4463
- return "Uses Sign in with Claude while you are signed in; otherwise the Anthropic API key.";
4452
+ return "Sign in with Claude comes first; the API key covers you when signed out.";
4464
4453
  }
4465
4454
  const dual = dualAuthProvider(provider);
4466
4455
  if (dual) {
4467
- return `Uses your ${dual.oauthLabel} first; the ${dual.apiKeyLabel} takes over while its usage is out, then switches back.`;
4456
+ return `Uses your ${dual.oauthLabel} first, then the ${dual.apiKeyLabel} when its usage runs out.`;
4468
4457
  }
4469
4458
  const variants = getAuthProvider(provider)?.apiKeyVariants;
4470
4459
  const plan = variants?.find((v) => v.kind === "plan");
4471
4460
  const payg = variants?.find((v) => v.kind === "payg");
4472
4461
  if (plan && payg) {
4473
- return `Uses the ${plan.label} key first when both are set; the ${payg.label} key covers models the plan doesn't include.`;
4462
+ return `Uses the ${plan.label} key first; the ${payg.label} key covers other models.`;
4474
4463
  }
4475
4464
  return void 0;
4476
4465
  }