mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 08:24:46 +00:00
feat(app): find text throughout chat history
Discover candidate transcript locations on the daemon, then reuse prompt navigation to load history and verify rendered occurrences on the client. Keep search state inside its own modules without changing timeline or task presentation contracts.
This commit is contained in:
@@ -1812,6 +1812,14 @@ export const FetchAgentTimelineRequestMessageSchema = z.object({
|
||||
mergeWindow: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export const AgentTimelineSearchRequestMessageSchema = z.object({
|
||||
type: z.literal("agent.timeline.search.request"),
|
||||
agentId: z.string(),
|
||||
requestId: z.string(),
|
||||
query: z.string(),
|
||||
cursor: z.number().int().nonnegative().optional(),
|
||||
});
|
||||
|
||||
export const AgentTimelineListPromptsRequestMessageSchema = z.object({
|
||||
type: z.literal("agent.timeline.list_prompts.request"),
|
||||
agentId: z.string(),
|
||||
@@ -3151,6 +3159,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
||||
RestartServerRequestMessageSchema,
|
||||
DaemonUpdateRequestMessageSchema,
|
||||
FetchAgentTimelineRequestMessageSchema,
|
||||
AgentTimelineSearchRequestMessageSchema,
|
||||
AgentTimelineListPromptsRequestMessageSchema,
|
||||
ProviderSubagentListRequestMessageSchema,
|
||||
ProviderSubagentTimelineRequestMessageSchema,
|
||||
@@ -4489,6 +4498,20 @@ export const AgentTimelineReplacementMessageSchema = z.object({
|
||||
}),
|
||||
});
|
||||
|
||||
export const AgentTimelineSearchResponseMessageSchema = z.object({
|
||||
type: z.literal("agent.timeline.search.response"),
|
||||
payload: z.object({
|
||||
requestId: z.string(),
|
||||
agentId: z.string(),
|
||||
epoch: z.string(),
|
||||
locations: z.array(
|
||||
z.object({ seq: z.number().int().nonnegative(), role: z.enum(["user", "assistant"]) }),
|
||||
),
|
||||
nextCursor: z.number().int().nonnegative().nullable(),
|
||||
error: z.string().nullable(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const AgentTimelineListPromptsResponseMessageSchema = z.object({
|
||||
type: z.literal("agent.timeline.list_prompts.response"),
|
||||
payload: z.object({
|
||||
@@ -6535,6 +6558,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
||||
FetchAgentResponseMessageSchema,
|
||||
FetchAgentTimelineResponseMessageSchema,
|
||||
AgentTimelineReplacementMessageSchema,
|
||||
AgentTimelineSearchResponseMessageSchema,
|
||||
AgentTimelineListPromptsResponseMessageSchema,
|
||||
ProviderSubagentListResponseMessageSchema,
|
||||
ProviderSubagentTimelineResponseMessageSchema,
|
||||
|
||||
Reference in New Issue
Block a user