Variable: AdapterNamespace
Makaio Framework / contracts / AdapterNamespace
Variable: AdapterNamespace
Section titled “Variable: AdapterNamespace”
constAdapterNamespace:BusNamespace<"adapter",SubjectRecordFromSchemaRecord<{agent.created:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodOptional<ZodString>;agentId:ZodString;sessionId:ZodString; },$strip>;error:ZodObject<{adapterId:ZodString;adapterName:ZodString;error:ZodString;errorCategory:ZodOptional<ZodEnum<{auth:"auth";model_unavailable:"model_unavailable";quota_exceeded:"quota_exceeded";rate_limit:"rate_limit"; }>>;sessionId:ZodOptional<ZodString>; },$strip>;getAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString; },$strip>;response:ZodObject<{agent:ZodNullable<ZodObject<{adapterSessionId:ZodString;agentId:ZodString;sessionId:ZodString; },$strip>>; },$strip>; };getCapabilities: {request:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodOptional<ZodString>; },$strip>;response:ZodObject<{capabilities:ZodArray<ZodString>;nativeTools:ZodArray<ZodString>; },$strip>; };getConfigSchema: {request:ZodObject<{adapterName:ZodString; },$strip>;response:ZodObject<{adapterName:ZodString;found:ZodBoolean;jsonSchema:ZodNullable<ZodRecord<ZodString,ZodUnknown>>; },$strip>; };infer: {request:ZodObject<{adapterId:ZodString;model:ZodOptional<ZodString>;prompt:ZodString;providerContext:ZodOptional<ZodObject<{credentialEnvVars:ZodOptional<ZodRecord<…, …>>;credentialRefs:ZodRecord<ZodString,$ZodBranded<…, …, …>>;definitionId:ZodString;endpointOverrides:ZodOptional<ZodObject<…, …>>;providerConfigId:ZodString; },$strip>>;systemPrompt:ZodOptional<ZodString>; },$strip>;response:ZodObject<{text:ZodString;usage:ZodOptional<ZodObject<{inputTokens:ZodNumber;outputTokens:ZodNumber; },$strip>>; },$strip>; };initialized:ZodObject<{adapterId:ZodString;adapterName:ZodString;capabilities:ZodArray<ZodString>;nativeTools:ZodOptional<ZodArray<ZodString>>; },$strip>;listAgents: {request:ZodObject<{adapterId:ZodString; },$strip>;response:ZodObject<{agents:ZodArray<ZodObject<{adapterSessionId:ZodString;agentId:ZodString;sessionId:ZodString; },$strip>>; },$strip>; };log:ZodObject<{adapterId:ZodString;adapterName:ZodString;level:ZodOptional<ZodEnum<{debug:"debug";error:"error";info:"info";warn:"warn"; }>>;message:ZodString;timestamp:ZodNumber; },$strip>;quota:ZodObject<{adapterId:ZodString;adapterName:ZodString;limit:ZodNumber;overage:ZodNumber;provider:ZodString;quotaType:ZodString;resetDate:ZodString;used:ZodNumber; },$strip>;rehydrateAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString;cwd:ZodOptional<ZodString>;model:ZodOptional<ZodString>; },$strip>;response:ZodObject<{ },$strip>; };session.closed:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;agentId:ZodString;reason:ZodOptional<ZodString>;sessionId:ZodString; },$strip>;session.created:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;model:ZodString;sessionId:ZodString; },$strip>;session.discovered:ZodIntersection<ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;cwd:ZodNullable<ZodString>;logFilePath:ZodOptional<ZodNullable<ZodString>>;model:ZodNullable<ZodString>;startedAt:ZodOptional<ZodNumber>;title:ZodOptional<ZodString>; },$strip>,ZodDiscriminatedUnion<[ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"root">;parentAdapterSessionId:ZodNull; },$strip>,ZodObject<{forkPointMessageId:ZodString;kind:ZodLiteral<"fork">;parentAdapterSessionId:ZodString; },$strip>,ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"subagent">;parentAdapterSessionId:ZodString; },$strip>,ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"compress">;parentAdapterSessionId:ZodString; },$strip>],"kind">>;session.linked:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodString;adapterSessionId:ZodString;replay:ZodOptional<ZodBoolean>;sessionId:ZodString; },$strip>;session.statusChanged:ZodObject<{adapterSessionId:ZodString;status:ZodEnum<{discovered:"discovered";imported:"imported";live:"live";tracking:"tracking"; }>; },$strip>;session.usage:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;sessionId:ZodString;totalCalls:ZodNumber;totalInputTokens:ZodNumber;totalOutputTokens:ZodNumber; },$strip>;startAgent: {request:ZodUnion<readonly [ZodObject<{adapterId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly […, …]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools: …;discoverableTools: …;profileId: …;projectId: …;servers: …;sessionId: …; },$strip>>;mode:ZodLiteral<"fork">;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars: …;credentialRefs: …;definitionId: …;endpointOverrides: …;providerConfigId: …; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high: …;high: …;low: …;medium: …;none: …; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext: …;hasCompression: …;hasConnectorSwap: …;hasNewTransforms: …;isFirstTurn: …;messageHistory: …;turnContext: …; },$strip>>;sessionId:ZodString;sourceSessionId:ZodString;systemPrompt:ZodOptional<ZodUnion<readonly […, …]>>; },$strip>,ZodObject<{adapterId:ZodString;adapterSessionId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly […, …]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools: …;discoverableTools: …;profileId: …;projectId: …;servers: …;sessionId: …; },$strip>>;mode:ZodLiteral<"resume">;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars: …;credentialRefs: …;definitionId: …;endpointOverrides: …;providerConfigId: …; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high: …;high: …;low: …;medium: …;none: …; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext: …;hasCompression: …;hasConnectorSwap: …;hasNewTransforms: …;isFirstTurn: …;messageHistory: …;turnContext: …; },$strip>>;sessionId:ZodString;systemPrompt:ZodOptional<ZodUnion<readonly […, …]>>; },$strip>,ZodObject<{adapterId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly […, …]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools: …;discoverableTools: …;profileId: …;projectId: …;servers: …;sessionId: …; },$strip>>;mode:ZodOptional<ZodLiteral<"create">>;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars: …;credentialRefs: …;definitionId: …;endpointOverrides: …;providerConfigId: …; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high: …;high: …;low: …;medium: …;none: …; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext: …;hasCompression: …;hasConnectorSwap: …;hasNewTransforms: …;isFirstTurn: …;messageHistory: …;turnContext: …; },$strip>>;sessionId:ZodOptional<ZodString>;systemPrompt:ZodOptional<ZodUnion<readonly […, …]>>; },$strip>]>;response:ZodDiscriminatedUnion<[ZodObject<{adapterId:ZodString;adapterSessionId:ZodString;agentId:ZodString;messageId:ZodOptional<ZodString>;sessionId:ZodString;success:ZodLiteral<true>; },$strip>,ZodObject<{message:ZodString;success:ZodLiteral<false>; },$strip>],"success">; };stopAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; }; }>, {adapterId:string;adapterName:string;adapterSessionId:string;agentId:string;allowedDirectories:never;allowedTools:never;capabilities:string[];clientId:never;cwd:string|null;disallowedTools:never;env:never;ephemeral:never;error:string;errorCategory:never;forkPointMessageId:string|null;harnessId:never;initialMessage:never;kind:"fork"|"subagent"|"compress"|"root";level:never;limit:number;logFilePath:never;mcpSessionContext:never;message:string;mode:"fork"|"resume";model:string|null;nativeTools:never;overage:number;parentAdapterSessionId:string|null;prompt:string;provider:string;providerContext:never;quotaType:string;reason:never;reasoningEffort:never;replay:never;resetDate:string;role:"lead"|"member";sessionContext:never;sessionId:string;sourceSessionId:string;startedAt:never;status:"discovered"|"imported"|"live"|"tracking";systemPrompt:never;timestamp:number;title:never;totalCalls:number;totalInputTokens:number;totalOutputTokens:number;used:number; }, {agent.created:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodOptional<ZodString>;agentId:ZodString;sessionId:ZodString; },$strip>;error:ZodObject<{adapterId:ZodString;adapterName:ZodString;error:ZodString;errorCategory:ZodOptional<ZodEnum<{auth:"auth";model_unavailable:"model_unavailable";quota_exceeded:"quota_exceeded";rate_limit:"rate_limit"; }>>;sessionId:ZodOptional<ZodString>; },$strip>;getAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString; },$strip>;response:ZodObject<{agent:ZodNullable<ZodObject<{adapterSessionId:ZodString;agentId:ZodString;sessionId:ZodString; },$strip>>; },$strip>; };getCapabilities: {request:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodOptional<ZodString>; },$strip>;response:ZodObject<{capabilities:ZodArray<ZodString>;nativeTools:ZodArray<ZodString>; },$strip>; };getConfigSchema: {request:ZodObject<{adapterName:ZodString; },$strip>;response:ZodObject<{adapterName:ZodString;found:ZodBoolean;jsonSchema:ZodNullable<ZodRecord<ZodString,ZodUnknown>>; },$strip>; };infer: {request:ZodObject<{adapterId:ZodString;model:ZodOptional<ZodString>;prompt:ZodString;providerContext:ZodOptional<ZodObject<{credentialEnvVars:ZodOptional<ZodRecord<ZodString,ZodString>>;credentialRefs:ZodRecord<ZodString,$ZodBranded<ZodString,"CredentialRef","out">>;definitionId:ZodString;endpointOverrides:ZodOptional<ZodObject<{anthropic: …;openai: …; },$strip>>;providerConfigId:ZodString; },$strip>>;systemPrompt:ZodOptional<ZodString>; },$strip>;response:ZodObject<{text:ZodString;usage:ZodOptional<ZodObject<{inputTokens:ZodNumber;outputTokens:ZodNumber; },$strip>>; },$strip>; };initialized:ZodObject<{adapterId:ZodString;adapterName:ZodString;capabilities:ZodArray<ZodString>;nativeTools:ZodOptional<ZodArray<ZodString>>; },$strip>;listAgents: {request:ZodObject<{adapterId:ZodString; },$strip>;response:ZodObject<{agents:ZodArray<ZodObject<{adapterSessionId:ZodString;agentId:ZodString;sessionId:ZodString; },$strip>>; },$strip>; };log:ZodObject<{adapterId:ZodString;adapterName:ZodString;level:ZodOptional<ZodEnum<{debug:"debug";error:"error";info:"info";warn:"warn"; }>>;message:ZodString;timestamp:ZodNumber; },$strip>;quota:ZodObject<{adapterId:ZodString;adapterName:ZodString;limit:ZodNumber;overage:ZodNumber;provider:ZodString;quotaType:ZodString;resetDate:ZodString;used:ZodNumber; },$strip>;rehydrateAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString;cwd:ZodOptional<ZodString>;model:ZodOptional<ZodString>; },$strip>;response:ZodObject<{ },$strip>; };session.closed:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;agentId:ZodString;reason:ZodOptional<ZodString>;sessionId:ZodString; },$strip>;session.created:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;model:ZodString;sessionId:ZodString; },$strip>;session.discovered:ZodIntersection<ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;cwd:ZodNullable<ZodString>;logFilePath:ZodOptional<ZodNullable<ZodString>>;model:ZodNullable<ZodString>;startedAt:ZodOptional<ZodNumber>;title:ZodOptional<ZodString>; },$strip>,ZodDiscriminatedUnion<[ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"root">;parentAdapterSessionId:ZodNull; },$strip>,ZodObject<{forkPointMessageId:ZodString;kind:ZodLiteral<"fork">;parentAdapterSessionId:ZodString; },$strip>,ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"subagent">;parentAdapterSessionId:ZodString; },$strip>,ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"compress">;parentAdapterSessionId:ZodString; },$strip>],"kind">>;session.linked:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodString;adapterSessionId:ZodString;replay:ZodOptional<ZodBoolean>;sessionId:ZodString; },$strip>;session.statusChanged:ZodObject<{adapterSessionId:ZodString;status:ZodEnum<{discovered:"discovered";imported:"imported";live:"live";tracking:"tracking"; }>; },$strip>;session.usage:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;sessionId:ZodString;totalCalls:ZodNumber;totalInputTokens:ZodNumber;totalOutputTokens:ZodNumber; },$strip>;startAgent: {request:ZodUnion<readonly [ZodObject<{adapterId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly [ZodString,ZodObject<…, …>]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools:ZodArray<…>;discoverableTools:ZodArray<…>;profileId:ZodNullable<…>;projectId:ZodNullable<…>;servers:ZodArray<…>;sessionId:ZodString; },$strip>>;mode:ZodLiteral<"fork">;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars:ZodOptional<…>;credentialRefs:ZodRecord<…, …>;definitionId:ZodString;endpointOverrides:ZodOptional<…>;providerConfigId:ZodString; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high:"extra-high";high:"high";low:"low";medium:"medium";none:"none"; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext:ZodOptional<…>;hasCompression:ZodOptional<…>;hasConnectorSwap:ZodOptional<…>;hasNewTransforms:ZodOptional<…>;isFirstTurn:ZodOptional<…>;messageHistory:ZodOptional<…>;turnContext:ZodOptional<…>; },$strip>>;sessionId:ZodString;sourceSessionId:ZodString;systemPrompt:ZodOptional<ZodUnion<readonly [ZodString,ZodObject<…, …>]>>; },$strip>,ZodObject<{adapterId:ZodString;adapterSessionId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly [ZodString,ZodObject<…, …>]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools:ZodArray<…>;discoverableTools:ZodArray<…>;profileId:ZodNullable<…>;projectId:ZodNullable<…>;servers:ZodArray<…>;sessionId:ZodString; },$strip>>;mode:ZodLiteral<"resume">;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars:ZodOptional<…>;credentialRefs:ZodRecord<…, …>;definitionId:ZodString;endpointOverrides:ZodOptional<…>;providerConfigId:ZodString; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high:"extra-high";high:"high";low:"low";medium:"medium";none:"none"; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext:ZodOptional<…>;hasCompression:ZodOptional<…>;hasConnectorSwap:ZodOptional<…>;hasNewTransforms:ZodOptional<…>;isFirstTurn:ZodOptional<…>;messageHistory:ZodOptional<…>;turnContext:ZodOptional<…>; },$strip>>;sessionId:ZodString;systemPrompt:ZodOptional<ZodUnion<readonly [ZodString,ZodObject<…, …>]>>; },$strip>,ZodObject<{adapterId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly [ZodString,ZodObject<…, …>]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools:ZodArray<…>;discoverableTools:ZodArray<…>;profileId:ZodNullable<…>;projectId:ZodNullable<…>;servers:ZodArray<…>;sessionId:ZodString; },$strip>>;mode:ZodOptional<ZodLiteral<"create">>;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars:ZodOptional<…>;credentialRefs:ZodRecord<…, …>;definitionId:ZodString;endpointOverrides:ZodOptional<…>;providerConfigId:ZodString; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high:"extra-high";high:"high";low:"low";medium:"medium";none:"none"; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext:ZodOptional<…>;hasCompression:ZodOptional<…>;hasConnectorSwap:ZodOptional<…>;hasNewTransforms:ZodOptional<…>;isFirstTurn:ZodOptional<…>;messageHistory:ZodOptional<…>;turnContext:ZodOptional<…>; },$strip>>;sessionId:ZodOptional<ZodString>;systemPrompt:ZodOptional<ZodUnion<readonly [ZodString,ZodObject<…, …>]>>; },$strip>]>;response:ZodDiscriminatedUnion<[ZodObject<{adapterId:ZodString;adapterSessionId:ZodString;agentId:ZodString;messageId:ZodOptional<ZodString>;sessionId:ZodString;success:ZodLiteral<true>; },$strip>,ZodObject<{message:ZodString;success:ZodLiteral<false>; },$strip>],"success">; };stopAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; }; }>
Defined in: ../../../packages/contracts/src/adapter/namespace.ts:4