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
1 change: 0 additions & 1 deletion .claude/CLAUDE.md

This file was deleted.

1 change: 0 additions & 1 deletion .claude/skills/launch

This file was deleted.

7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,16 @@ test/aml/out
.playwright-mcp/

# Chat customizations
.claude/
.agents/agents/*.local.md
.claude/agents/*.local.md
.github/agents/*.local.md
.agents/agents/*.local.agent.md
.claude/agents/*.local.agent.md
.github/agents/*.local.agent.md
.agents/hooks/*.local.json
.claude/hooks/*.local.json
.github/hooks/*.local.json
.agents/instructions/*.local.instructions.md
.claude/instructions/*.local.instructions.md
.github/instructions/*.local.instructions.md
.agents/prompts/*.local.prompt.md
.claude/prompts/*.local.prompt.md
.github/prompts/*.local.prompt.md
.agents/skills/.local/
.claude/skills/.local/
.github/skills/.local/
24 changes: 24 additions & 0 deletions script/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,33 @@ async function copyCopilotCLIFolders(sourceDir: string, targetDir: string) {
await fs.promises.cp(sourceDir, targetDir, { recursive: true, force: true });
}

/**
* Creates symlinks so that `.claude/` mirrors canonical locations (for testing Claude Agent harness):
* .claude/CLAUDE.md → .github/copilot-instructions.md
* .claude/skills → .agents/skills
*/
async function createClaudeSymlinks() {
console.log('Creating symlinks for Claude session storage and instructions...');
const claudeDir = path.join(REPO_ROOT, '.claude');
await fs.promises.mkdir(claudeDir, { recursive: true });

const symlinks: { link: string; target: string }[] = [
{ link: path.join(claudeDir, 'CLAUDE.md'), target: path.join('..', '.github', 'copilot-instructions.md') },
{ link: path.join(claudeDir, 'skills'), target: path.join('..', '.agents', 'skills') },
];

for (const { link, target } of symlinks) {
if (!fs.existsSync(link)) {
await fs.promises.symlink(target, link);
}
}
}

async function main() {
await fs.promises.mkdir(path.join(REPO_ROOT, '.build'), { recursive: true });

await createClaudeSymlinks();

const vendoredTiktokenFiles = ['src/platform/tokenizer/node/cl100k_base.tiktoken', 'src/platform/tokenizer/node/o200k_base.tiktoken'];

for (const tokens of vendoredTiktokenFiles) {
Expand Down
Loading