docs(quotio): improve descriptions based on official repo
Updated hints and notes to accurately describe Quotio: - Native macOS menu bar app for unified AI accounts - Supports Claude, Gemini, OpenAI, Qwen, Antigravity - Real-time quota tracking with smart auto-failover - Link to https://www.quotio.dev for download Also fixed: Clawdbot -> Moltbot renames
This commit is contained in:
parent
892203bdb3
commit
fe59a725e2
@ -117,7 +117,7 @@ const AUTH_CHOICE_GROUP_DEFS: {
|
|||||||
{
|
{
|
||||||
value: "quotio",
|
value: "quotio",
|
||||||
label: "Quotio",
|
label: "Quotio",
|
||||||
hint: "Local OpenAI-compatible proxy",
|
hint: "Unified AI accounts with quota tracking",
|
||||||
choices: ["quotio"],
|
choices: ["quotio"],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@ -192,8 +192,8 @@ export function buildAuthChoiceOptions(params: {
|
|||||||
});
|
});
|
||||||
options.push({
|
options.push({
|
||||||
value: "quotio",
|
value: "quotio",
|
||||||
label: "Quotio (local proxy)",
|
label: "Quotio",
|
||||||
hint: "OpenAI-compatible proxy for Claude, Gemini, etc.",
|
hint: "Unified AI accounts with smart failover (macOS)",
|
||||||
});
|
});
|
||||||
if (params.includeSkip) {
|
if (params.includeSkip) {
|
||||||
options.push({ value: "skip", label: "Skip for now" });
|
options.push({ value: "skip", label: "Skip for now" });
|
||||||
|
|||||||
@ -3,8 +3,8 @@ import { homedir } from "node:os";
|
|||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { parse as parseYaml } from "yaml";
|
import { parse as parseYaml } from "yaml";
|
||||||
import { upsertAuthProfile } from "../agents/auth-profiles.js";
|
import { upsertAuthProfile } from "../agents/auth-profiles.js";
|
||||||
import { resolveClawdbotAgentDir } from "../agents/agent-paths.js";
|
import { resolveMoltbotAgentDir } from "../agents/agent-paths.js";
|
||||||
import type { ClawdbotConfig } from "../config/config.js";
|
import type { MoltbotConfig } from "../config/config.js";
|
||||||
import type { ModelDefinitionConfig } from "../config/types.models.js";
|
import type { ModelDefinitionConfig } from "../config/types.models.js";
|
||||||
import type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.js";
|
import type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.js";
|
||||||
import { applyAuthProfileConfig } from "./onboard-auth.js";
|
import { applyAuthProfileConfig } from "./onboard-auth.js";
|
||||||
@ -187,11 +187,11 @@ function buildModelDefinition(model: QuotioModel): ModelDefinitionConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function applyQuotioProviderConfig(
|
function applyQuotioProviderConfig(
|
||||||
config: ClawdbotConfig,
|
config: MoltbotConfig,
|
||||||
baseUrl: string,
|
baseUrl: string,
|
||||||
apiKey: string,
|
apiKey: string,
|
||||||
models: ModelDefinitionConfig[],
|
models: ModelDefinitionConfig[],
|
||||||
): ClawdbotConfig {
|
): MoltbotConfig {
|
||||||
return {
|
return {
|
||||||
...config,
|
...config,
|
||||||
models: {
|
models: {
|
||||||
@ -209,7 +209,7 @@ function applyQuotioProviderConfig(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyQuotioDefaultModel(config: ClawdbotConfig, modelRef: string): ClawdbotConfig {
|
function applyQuotioDefaultModel(config: MoltbotConfig, modelRef: string): MoltbotConfig {
|
||||||
const models = { ...config.agents?.defaults?.models };
|
const models = { ...config.agents?.defaults?.models };
|
||||||
models[modelRef] = models[modelRef] ?? {};
|
models[modelRef] = models[modelRef] ?? {};
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ export async function applyAuthChoiceQuotio(
|
|||||||
if (params.authChoice !== "quotio") return null;
|
if (params.authChoice !== "quotio") return null;
|
||||||
|
|
||||||
let nextConfig = params.config;
|
let nextConfig = params.config;
|
||||||
const agentDir = params.agentDir ?? resolveClawdbotAgentDir();
|
const agentDir = params.agentDir ?? resolveMoltbotAgentDir();
|
||||||
|
|
||||||
await params.prompter.note("Detecting Quotio...", "Auto-detection");
|
await params.prompter.note("Detecting Quotio...", "Auto-detection");
|
||||||
|
|
||||||
@ -270,8 +270,10 @@ export async function applyAuthChoiceQuotio(
|
|||||||
await params.prompter.note(
|
await params.prompter.note(
|
||||||
[
|
[
|
||||||
"Could not auto-detect Quotio.",
|
"Could not auto-detect Quotio.",
|
||||||
"Make sure Quotio is running, or configure manually.",
|
"Quotio is a macOS menu bar app that unifies your AI subscriptions with quota tracking.",
|
||||||
"Tip: Set QUOTIO_BASE_URL and QUOTIO_API_KEY environment variables for auto-detection.",
|
"Download from: https://www.quotio.dev",
|
||||||
|
"",
|
||||||
|
"If already installed, make sure Quotio is running.",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
"Not detected",
|
"Not detected",
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user