mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-28 09:56:23 +02:00
add prompt block
This commit is contained in:
parent
9f776ce526
commit
5d65616cfb
5 changed files with 177 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ export * as serviceEvents from './service-events.js'
|
|||
export * as inlineTask from './inline-task.js';
|
||||
export * as blocks from './blocks.js';
|
||||
export * as trackBlock from './track-block.js';
|
||||
export * as promptBlock from './prompt-block.js';
|
||||
export * as frontmatter from './frontmatter.js';
|
||||
export * as bases from './bases.js';
|
||||
export * as browserControl from './browser-control.js';
|
||||
|
|
|
|||
8
apps/x/packages/shared/src/prompt-block.ts
Normal file
8
apps/x/packages/shared/src/prompt-block.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import z from 'zod';
|
||||
|
||||
export const PromptBlockSchema = z.object({
|
||||
label: z.string().min(1).describe('Short title shown on the card'),
|
||||
instruction: z.string().min(1).describe('Full prompt sent to Copilot when Run is clicked'),
|
||||
});
|
||||
|
||||
export type PromptBlock = z.infer<typeof PromptBlockSchema>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue