Camel-case capability IDs and rename the MCP gateway pair

This commit is contained in:
gitea committed 2026-09-30 16:17:33 +08:00
1 parent 7f36cd1d39
commit 4f0d955e06
41 files changed
+466 -466

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ import {
TokenStoreSchema
} from "./types.js";
const PRIMARY_TOKEN_STORE = join(homedir(), ".config", "seal-use", "seal_tokens.json");
const LEGACY_TOKEN_STORE = join(homedir(), ".config", "seal-home", "seal_tokens.json");
const PRIMARY_TOKEN_STORE = join(homedir(), ".config", "seal-use", "sealTokens.json");
const LEGACY_TOKEN_STORE = join(homedir(), ".config", "seal-home", "sealTokens.json");
function resolveReadStorePath(): string {
const configured = (process.env.SEAL_USE_TOKEN_STORE ?? process.env.SEAL_HOME_TOKEN_STORE)?.trim();
+1 -1
View File
@@ -114,7 +114,7 @@ export function diagnoseSystem(): DoctorDiagnosis {
const configDir = join(home, ".config", "seal-use");
const enterprisesDir = join(configDir, "enterprises");
const globalConfigFile = join(configDir, "config.json");
const tokenStore = join(configDir, "seal_tokens.json");
const tokenStore = join(configDir, "sealTokens.json");
const mappingsDir = join(configDir, "mappings");
const agentSkillDir = getDefaultGlobalSkillDir();
const exportDir = join(home, "Downloads");
+1 -1
View File
@@ -55,7 +55,7 @@ export const EMBEDDED_DIRECTORY_SPECS: DirectorySpec[] = [
{
name: "会话凭据安全缓存",
category: "config",
standardPath: "~/.config/seal-use/seal_tokens.json",
standardPath: "~/.config/seal-use/sealTokens.json",
purpose: "缓存已认证租户的 Bearer Token 与过期时间戳,避免高频调用上游 OAuth 换票接口。",
accessMode: "read-write",
retention: "cache"
+1 -1
View File
@@ -66,7 +66,7 @@ function saveUsageStatsAtomic(stats: CorpUsageStats, targetPath: string = resolv
}
const tempPath = `${targetPath}.${process.pid}.${Date.now()}.${Math.random().toString(16).slice(2, 8)}.tmp`;
try {
// 0o600 like `seal_tokens.json`: usage rows name the enterprises this machine has been
// 0o600 like `sealTokens.json`: usage rows name the enterprises this machine has been
// operating, so keep them owner-only instead of inheriting the 0o644 default.
writeFileSync(tempPath, JSON.stringify(stats, null, 2), { encoding: "utf-8", mode: 0o600 });
renameSync(tempPath, targetPath);