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:
parent
3034accd75
commit
9fb6ce5d57
@ -9,6 +9,7 @@ public enum ErrorCode: String, Codable, Sendable {
|
|||||||
case agentTimeout = "AGENT_TIMEOUT"
|
case agentTimeout = "AGENT_TIMEOUT"
|
||||||
case invalidRequest = "INVALID_REQUEST"
|
case invalidRequest = "INVALID_REQUEST"
|
||||||
case unavailable = "UNAVAILABLE"
|
case unavailable = "UNAVAILABLE"
|
||||||
|
case tooManyRequests = "TOO_MANY_REQUESTS"
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct ConnectParams: Codable, Sendable {
|
public struct ConnectParams: Codable, Sendable {
|
||||||
|
|||||||
@ -9,6 +9,7 @@ public enum ErrorCode: String, Codable, Sendable {
|
|||||||
case agentTimeout = "AGENT_TIMEOUT"
|
case agentTimeout = "AGENT_TIMEOUT"
|
||||||
case invalidRequest = "INVALID_REQUEST"
|
case invalidRequest = "INVALID_REQUEST"
|
||||||
case unavailable = "UNAVAILABLE"
|
case unavailable = "UNAVAILABLE"
|
||||||
|
case tooManyRequests = "TOO_MANY_REQUESTS"
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct ConnectParams: Codable, Sendable {
|
public struct ConnectParams: Codable, Sendable {
|
||||||
|
|||||||
@ -39,10 +39,7 @@ export function resolveDefaultStoreAgentId(cfg: MoltbotConfig): string {
|
|||||||
/**
|
/**
|
||||||
* Resolve a session key to its canonical store key form.
|
* Resolve a session key to its canonical store key form.
|
||||||
*/
|
*/
|
||||||
export function resolveSessionStoreKey(params: {
|
export function resolveSessionStoreKey(params: { cfg: MoltbotConfig; sessionKey: string }): string {
|
||||||
cfg: MoltbotConfig;
|
|
||||||
sessionKey: string;
|
|
||||||
}): string {
|
|
||||||
const raw = params.sessionKey.trim();
|
const raw = params.sessionKey.trim();
|
||||||
if (!raw) return raw;
|
if (!raw) return raw;
|
||||||
if (raw === "global" || raw === "unknown") return raw;
|
if (raw === "global" || raw === "unknown") return raw;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user