chore: fix formatting and regenerate protocol files

- Fix formatting in session-utils.store.ts
- Regenerate Swift protocol files with TOO_MANY_REQUESTS error code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
ronitchidara 2026-01-28 17:44:48 +05:30
parent 3034accd75
commit 9fb6ce5d57
3 changed files with 3 additions and 4 deletions

View File

@ -9,6 +9,7 @@ public enum ErrorCode: String, Codable, Sendable {
case agentTimeout = "AGENT_TIMEOUT"
case invalidRequest = "INVALID_REQUEST"
case unavailable = "UNAVAILABLE"
case tooManyRequests = "TOO_MANY_REQUESTS"
}
public struct ConnectParams: Codable, Sendable {

View File

@ -9,6 +9,7 @@ public enum ErrorCode: String, Codable, Sendable {
case agentTimeout = "AGENT_TIMEOUT"
case invalidRequest = "INVALID_REQUEST"
case unavailable = "UNAVAILABLE"
case tooManyRequests = "TOO_MANY_REQUESTS"
}
public struct ConnectParams: Codable, Sendable {

View File

@ -39,10 +39,7 @@ export function resolveDefaultStoreAgentId(cfg: MoltbotConfig): string {
/**
* Resolve a session key to its canonical store key form.
*/
export function resolveSessionStoreKey(params: {
cfg: MoltbotConfig;
sessionKey: string;
}): string {
export function resolveSessionStoreKey(params: { cfg: MoltbotConfig; sessionKey: string }): string {
const raw = params.sessionKey.trim();
if (!raw) return raw;
if (raw === "global" || raw === "unknown") return raw;