fix(agent): correct uuidv7 sequence handling

This commit is contained in:
Armin Ronacher
2026-05-13 15:53:53 +02:00
parent 8bf2bfab58
commit c00f1cf130
5 changed files with 55 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
import type { AgentMessage } from "@earendil-works/pi-agent-core";
import { type AgentMessage, uuidv7 } from "@earendil-works/pi-agent-core";
import type { ImageContent, Message, TextContent } from "@earendil-works/pi-ai";
import { randomUUID } from "crypto";
import {
@@ -16,7 +16,6 @@ import {
import { readdir, readFile, stat } from "fs/promises";
import { join, resolve } from "path";
import { getAgentDir as getDefaultAgentDir, getSessionsDir } from "../config.js";
import { uuidv7 } from "../utils/uuid.js";
import {
type BashExecutionMessage,
type CustomMessage,