section 8: Phase 8: Run and stop project actions with URL templates

This commit is contained in:
Chris Scott committed 2026-10-03 02:09:54 -04:00
1 parent 852797a897
commit d6aeafeae9
6 files changed
+470 -5

No files matched your search

+14
View File
@@ -1,4 +1,5 @@
import { z } from 'zod'
import { TerminalInfoSchema } from './terminal'
export const ProjectActionIconSchema = z.enum([
'play',
@@ -81,6 +82,17 @@ export const MoveProjectItemRequestSchema = z.discriminatedUnion('kind', [
}),
])
export const RunProjectActionRequestSchema = z.object({
directory: z.string().optional(),
})
export const RunProjectActionResponseSchema = z.object({
terminal: TerminalInfoSchema,
alreadyRunning: z.boolean(),
resolvedUrl: z.string().optional(),
autoOpenUrl: z.boolean(),
})
export type ProjectActionIcon = z.infer<typeof ProjectActionIconSchema>
export type ProjectAction = z.infer<typeof ProjectActionSchema>
export type WorktreeSetupCommands = z.infer<typeof WorktreeSetupCommandsSchema>
@@ -91,3 +103,5 @@ export type UpdateProjectActionsRequest = z.infer<typeof UpdateProjectActionsReq
export type UpdateWorktreeSetupRequest = z.infer<typeof UpdateWorktreeSetupRequestSchema>
export type TrustRepoConfigRequest = z.infer<typeof TrustRepoConfigRequestSchema>
export type MoveProjectItemRequest = z.infer<typeof MoveProjectItemRequestSchema>
export type RunProjectActionRequest = z.infer<typeof RunProjectActionRequestSchema>
export type RunProjectActionResponse = z.infer<typeof RunProjectActionResponseSchema>
+2
View File
@@ -177,4 +177,6 @@ export type {
UpdateWorktreeSetupRequest,
TrustRepoConfigRequest,
MoveProjectItemRequest,
RunProjectActionRequest,
RunProjectActionResponse,
} from '../schemas/project-config'