snapshot of https://github.com/tldraw/tldraw.git (main, 2026-09-23; blobs > 131072B omitted)
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
This commit is contained in:
31
apps/docs/app/.well-known/agent-skills/index.json/route.ts
Normal file
31
apps/docs/app/.well-known/agent-skills/index.json/route.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import {
|
||||
AGENT_SKILLS_INDEX_SCHEMA,
|
||||
PUBLISHED_SKILLS,
|
||||
readPublishedSkill,
|
||||
} from '@/utils/agent-skills'
|
||||
|
||||
// Read at build time, so a skill whose frontmatter has gone missing fails the build rather than
|
||||
// serving a broken index.
|
||||
export const dynamic = 'force-static'
|
||||
|
||||
export function GET() {
|
||||
const skills = Object.keys(PUBLISHED_SKILLS).map((key) => {
|
||||
const skill = readPublishedSkill(key as keyof typeof PUBLISHED_SKILLS)
|
||||
return {
|
||||
name: skill.name,
|
||||
// An archive rather than `skill-md`, because these skills run their own helper scripts.
|
||||
// See `SkillDocument.archive`.
|
||||
type: 'archive',
|
||||
description: skill.description,
|
||||
url: skill.url,
|
||||
digest: skill.digest,
|
||||
}
|
||||
})
|
||||
|
||||
return Response.json(
|
||||
{ $schema: AGENT_SKILLS_INDEX_SCHEMA, skills },
|
||||
// Readable cross-origin: an agent running in a browser is a normal consumer of this, and
|
||||
// everything here is already public.
|
||||
{ headers: { 'access-control-allow-origin': '*' } }
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { readPublishedSkill } from '@/utils/agent-skills'
|
||||
|
||||
export const dynamic = 'force-static'
|
||||
|
||||
// The installable form of the skill: the whole directory, which the index publishes a digest over.
|
||||
// A client that unpacks this and one that reads the `SKILL.md` route next door see the same
|
||||
// instructions; only this one carries the helper scripts those instructions run.
|
||||
export function GET() {
|
||||
return new Response(new Uint8Array(readPublishedSkill('tldraw-migrate').archive), {
|
||||
headers: {
|
||||
'content-type': 'application/gzip',
|
||||
'access-control-allow-origin': '*',
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { readPublishedSkill } from '@/utils/agent-skills'
|
||||
|
||||
export const dynamic = 'force-static'
|
||||
|
||||
// Served verbatim from `skills/tldraw-migrate/SKILL.md` so the instructions can be read without
|
||||
// unpacking anything. The index points at the archive instead — this file alone cannot run.
|
||||
export function GET() {
|
||||
return new Response(readPublishedSkill('tldraw-migrate').markdown, {
|
||||
headers: {
|
||||
'content-type': 'text/markdown; charset=utf-8',
|
||||
'access-control-allow-origin': '*',
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user