Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

1.9 KB
Raw Blame
/** Recommended explicit message payload, not a new MCP or A2A wire protocol. */
export const SESSION_HANDOVER_SCHEMA = {
  type: "object", additionalProperties: false,
  required: ["version", "objective", "sourceSessionRef", "project", "completed", "nextSteps", "evidence", "blockers", "constraints"],
  properties: {
    version: { const: 1 },
    objective: { type: "string", minLength: 1, maxLength: 2000 },
    sourceSessionRef: { type: "string", minLength: 2, maxLength: 96, description: "Human session reference, preferably agent-context label or @agent-name." },
    project: { type: "object", additionalProperties: false, required: ["path", "branch"],
      properties: { path: { type: "string", maxLength: 500 }, branch: { type: "string", maxLength: 200 } } },
    completed: { type: "array", maxItems: 20, items: { type: "string", maxLength: 500 } },
    nextSteps: { type: "array", minItems: 1, maxItems: 20, items: { type: "string", maxLength: 500 } },
    evidence: { type: "array", maxItems: 20, items: { type: "string", maxLength: 500 } },
    blockers: { type: "array", maxItems: 20, items: { type: "string", maxLength: 500 } },
    constraints: { type: "array", maxItems: 20, items: { type: "string", maxLength: 500 } },
  },
} as const;
export function handoverExample(sourceSessionRef = "@source-agent") {
  return { version: 1, objective: "Continue the reviewed task",
    sourceSessionRef, project: { path: "/path/to/project", branch: "feat/task" },
    completed: ["Describe the completed change"], nextSteps: ["Run the remaining verification"],
    evidence: ["Commit SHA and exact test result"], blockers: [],
    constraints: ["Preserve other sessions' work", "Ask before an irreversible action"] };
}
export function handoverRequestExample(sourceSessionRef?: string) {
  return { target: "@target-agent", kind: "task", intent: "request", requires_user_relay: true,
    message: JSON.stringify(handoverExample(sourceSessionRef)) };
}