Add mesh auto-planning with chat command UX and hardened auth/session behavior

This commit is contained in:
ranausmanai
2026-02-16 20:49:44 +05:00
committed by Peter Steinberger
parent 83990ed542
commit 16e59b26a6
14 changed files with 862 additions and 12 deletions

View File

@@ -61,6 +61,19 @@ export const MeshRunParamsSchema = Type.Object(
{ additionalProperties: false },
);
export const MeshPlanAutoParamsSchema = Type.Object(
{
goal: NonEmptyString,
maxSteps: Type.Optional(Type.Integer({ minimum: 1, maximum: 16 })),
agentId: Type.Optional(NonEmptyString),
sessionKey: Type.Optional(NonEmptyString),
thinking: Type.Optional(Type.String()),
timeoutMs: Type.Optional(Type.Integer({ minimum: 1_000, maximum: 3_600_000 })),
lane: Type.Optional(Type.String()),
},
{ additionalProperties: false },
);
export const MeshStatusParamsSchema = Type.Object(
{
runId: NonEmptyString,
@@ -79,5 +92,6 @@ export const MeshRetryParamsSchema = Type.Object(
export type MeshPlanParams = Static<typeof MeshPlanParamsSchema>;
export type MeshWorkflowPlan = Static<typeof MeshWorkflowPlanSchema>;
export type MeshRunParams = Static<typeof MeshRunParamsSchema>;
export type MeshPlanAutoParams = Static<typeof MeshPlanAutoParamsSchema>;
export type MeshStatusParams = Static<typeof MeshStatusParamsSchema>;
export type MeshRetryParams = Static<typeof MeshRetryParamsSchema>;

View File

@@ -104,6 +104,7 @@ import {
LogsTailResultSchema,
} from "./logs-chat.js";
import {
MeshPlanAutoParamsSchema,
MeshPlanParamsSchema,
MeshRetryParamsSchema,
MeshRunParamsSchema,
@@ -262,6 +263,7 @@ export const ProtocolSchemas: Record<string, TSchema> = {
ChatInjectParams: ChatInjectParamsSchema,
ChatEvent: ChatEventSchema,
MeshPlanParams: MeshPlanParamsSchema,
MeshPlanAutoParams: MeshPlanAutoParamsSchema,
MeshWorkflowPlan: MeshWorkflowPlanSchema,
MeshRunParams: MeshRunParamsSchema,
MeshStatusParams: MeshStatusParamsSchema,