Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/changesets-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Changesets PR

on:
push:
branches:
- main
paths:
- ".changeset/**"
- "src/**"
- "package.json"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changesets-pr:
if: github.repository == 'triggerdotdev/agentcrumbs'
name: Create Release PR
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- run: pnpm install --frozen-lockfile

- name: Create Release PR
uses: changesets/action@v1
with:
title: "chore: version package"
commit: "chore: version package"
version: pnpm changeset version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
pull_request:
types:
- closed
branches:
- main

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
release:
if: >
github.repository == 'triggerdotdev/agentcrumbs' &&
github.event.pull_request.merged == true &&
github.event.pull_request.head.ref == 'changeset-release/main'
name: Publish to npm
runs-on: ubuntu-latest
environment: npm-publish
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: https://registry.npmjs.org

# npm 11.5.1+ required for OIDC publishing
- run: npm install -g npm@11.6.4

- run: pnpm install --frozen-lockfile

- run: pnpm build

- run: pnpm typecheck

- name: Publish to npm
run: pnpm changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

- name: Create git tags
run: |
VERSION=$(node -p "require('./package.json').version")
git tag "v${VERSION}"
git push origin "v${VERSION}"
4 changes: 4 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
.next
out
.source
Empty file removed docs/api/.gitkeep
Empty file.
Empty file removed docs/cli/.gitkeep
Empty file.
Empty file removed docs/config/.gitkeep
Empty file.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/content/docs/api/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "API",
"pages": ["trail", "scope", "child", "timing", "sessions"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/content/docs/cli/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "CLI",
"pages": ["collect", "tail", "query", "strip", "session", "other"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/content/docs/config/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Configuration",
"pages": ["env-var", "sinks"]
}
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/content/docs/guides/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Guides",
"pages": ["node-modules", "multi-service", "pr-reviewers", "cross-language"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions docs/content/docs/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"root": true,
"title": "agentcrumbs",
"pages": [
"index",
"quickstart",
"workflow",
"---API---",
"...api",
"---CLI---",
"...cli",
"---Guides---",
"...guides",
"---Reference---",
"...config",
"skills",
"crumb-format"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 0 additions & 32 deletions docs/docs.json

This file was deleted.

Empty file removed docs/guides/.gitkeep
Empty file.
Empty file removed docs/images/.gitkeep
Empty file.
Empty file removed docs/logo/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions docs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
17 changes: 17 additions & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { createMDX } from 'fumadocs-mdx/next';

const withMDX = createMDX();

/** @type {import('next').NextConfig} */
const config = {
async rewrites() {
return [
{
source: '/docs/:path*.mdx',
destination: '/llms.mdx/docs/:path*',
},
];
},
};

export default withMDX(config);
20 changes: 19 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
"name": "agentcrumbs-docs",
"private": true,
"scripts": {
"dev": "mintlify dev"
"dev": "next dev --port 3100",
"build": "next build",
"start": "next start"
},
"dependencies": {
"fumadocs-core": "^16.0.0",
"fumadocs-mdx": "^14.0.0",
"fumadocs-ui": "^16.0.0",
"next": "^16.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.0",
"@tailwindcss/postcss": "^4.0.0"
},
"devDependencies": {
"@types/mdx": "^2.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"typescript": "^5.7.0"
}
}
8 changes: 8 additions & 0 deletions docs/postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
'@tailwindcss/postcss': {},
},
};

export default config;
12 changes: 12 additions & 0 deletions docs/source.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineDocs, defineConfig } from 'fumadocs-mdx/config';

export const docs = defineDocs({
dir: 'content/docs',
docs: {
postprocess: {
includeProcessedMarkdown: true,
},
},
});

export default defineConfig();
52 changes: 52 additions & 0 deletions docs/src/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { source } from '@/lib/source';
import {
DocsBody,
DocsDescription,
DocsPage,
DocsTitle,
} from 'fumadocs-ui/layouts/docs/page';
import { notFound } from 'next/navigation';
import { getMDXComponents } from '@/mdx-components';
import { createRelativeLink } from 'fumadocs-ui/mdx';
import type { Metadata } from 'next';

export default async function Page(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();

const MDX = page.data.body;

return (
<DocsPage toc={page.data.toc} full={page.data.full}>
<DocsTitle>{page.data.title}</DocsTitle>
<DocsDescription>{page.data.description}</DocsDescription>
<DocsBody>
<MDX
components={getMDXComponents({
a: createRelativeLink(source, page),
})}
/>
</DocsBody>
</DocsPage>
);
}

export function generateStaticParams() {
return source.generateParams();
}

export async function generateMetadata(props: {
params: Promise<{ slug?: string[] }>;
}): Promise<Metadata> {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();

return {
title: page.data.title,
description: page.data.description,
};
}
12 changes: 12 additions & 0 deletions docs/src/app/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { source } from '@/lib/source';
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
import { baseOptions } from '@/lib/layout.shared';
import type { ReactNode } from 'react';

export default function Layout({ children }: { children: ReactNode }) {
return (
<DocsLayout tree={source.getPageTree()} {...baseOptions()}>
{children}
</DocsLayout>
);
}
7 changes: 7 additions & 0 deletions docs/src/app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import 'tailwindcss';
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';

@theme {
--color-fd-primary: oklch(72.3% 0.219 149.579);
}
Loading