Skip to content

Conversation

@lukemelia
Copy link
Contributor

@lukemelia lukemelia commented Jan 19, 2026

@lukemelia lukemelia requested review from a team and habdelra January 19, 2026 21:52
@github-actions
Copy link

Preview deployments

@github-actions
Copy link

github-actions bot commented Jan 19, 2026

Host Test Results

    1 files  ±    0      1 suites  ±0   3h 13m 22s ⏱️ + 1h 36m 4s
1 894 tests +    4  1 876 ✅ +    3  17 💤 ± 0  1 ❌ +1 
3 604 runs  +1 699  3 569 ✅ +1 681  34 💤 +17  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 1ff2ac5. ± Comparison against base commit 259e584.

♻️ This comment has been updated with latest results.

@habdelra habdelra requested a review from Copilot January 19, 2026 22:10
@lukemelia lukemelia changed the base branch from main to cs-9911-pristine-file-resource January 19, 2026 22:12
@lukemelia lukemelia force-pushed the cs-9911-pristine-file-resource branch from 17984b6 to ab8691c Compare January 19, 2026 22:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new MarkdownDef class that extends FileDef to provide specialized handling for markdown files. The implementation extracts metadata (title, excerpt, content) from markdown files and includes a preview component for displaying this information.

Changes:

  • Added MarkdownDef class for handling markdown files with title and excerpt extraction
  • Introduced MarkdownFilePreview component for rendering markdown file previews
  • Extended SerializedFile type to support generic extra fields
  • Added MarkdownSkill example demonstrating usage of MarkdownDef

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/base/markdown-file-def.gts Core implementation of MarkdownDef with markdown parsing utilities and attribute extraction
packages/base/markdown-file-preview.gts Preview component for displaying markdown file title and excerpt
packages/base/file-api.gts Modified SerializedFile type to accept generic extra fields
packages/experiments-realm/markdown-skill.gts Example Skill that uses MarkdownDef to link to markdown instruction files
packages/experiments-realm/MarkdownSkill/talk-like-a-pirate.md Example markdown file for the MarkdownSkill
packages/experiments-realm/MarkdownSkill/f9e6e5fa-4c1d-45f2-a1f5-ce8165b9411a.json Card instance linking to the example markdown file
packages/host/tests/acceptance/markdown-file-def-test.gts Comprehensive acceptance tests for markdown file extraction and indexing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lukemelia lukemelia force-pushed the cs9911-markdown-def branch from faae765 to 23c3ee6 Compare January 19, 2026 22:16
return markdown.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
}

function stripMarkdown(text: string): string {
Copy link
Contributor

@habdelra habdelra Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is interesting--do we also use this function when generating the search doc field value for a card that uses a MarkDownDoc as its field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not currently. Interesting idea.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i'm wondering if the special markdown text characters might interfere with the querying against a search doc generated from an md file.

@lukemelia lukemelia force-pushed the cs-9911-pristine-file-resource branch from ab8691c to b4c39ca Compare January 20, 2026 14:31
@lukemelia lukemelia changed the base branch from cs-9911-pristine-file-resource to main January 20, 2026 16:47
- includes an example of usage in MarkdownSkill
@lukemelia lukemelia force-pushed the cs9911-markdown-def branch from 23c3ee6 to fb0325f Compare January 20, 2026 16:51
@lukemelia lukemelia merged commit 91d5400 into main Jan 20, 2026
175 of 180 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants