Files
next-tjwater-agent/src/product/task-presentation.ts
T
jiang 6336157ff4
Generic Container CI/CD / test-build-publish (push) Successful in 1m6s
Agent CI/CD / build-test-publish-and-deploy (push) Successful in 1m7s
feat: upgrade investigation and presentation runtime
2026-10-30 17:30:19 +08:00

20 lines
757 B
TypeScript

import { z } from "zod";
import { createViewCommandSchema } from "../frontendAction/command.js";
export { supplyLayerSchema } from "../frontendAction/command.js";
export const taskPresentationCommandSchema = createViewCommandSchema({ publication: true });
export type TaskPresentationCommand = z.infer<typeof taskPresentationCommandSchema>;
export const taskPresentationResultSchema = z.object({
recorded: z.literal(true),
event_seq: z.number().int().positive(),
run_id: z.string().uuid(),
execution_generation: z.number().int().positive(),
}).strict();
export const taskPresentationBridgeSchema = z.object({
session_id: z.string().trim().min(1).max(128),
request_id: z.string().uuid(),
command: taskPresentationCommandSchema,
}).strict();