diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 7a2fd0898a454..974f237d61374 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,3 +1,32 @@ +# 🚨 CRITICAL: This Repository Is in Maintenance Mode 🚨 + +**You MUST read and follow these instructions before taking any coding action in this repository.** + +This repository (`microsoft/TypeScript`) is the JavaScript-based TypeScript compiler and is **effectively closed for general development**. TypeScript 6.0 is the **last JavaScript-based release**. Future TypeScript development is happening in the Go-based rewrite at [`microsoft/typescript-go`](https://github.com/microsoft/typescript-go). + +See [issue #62963](https://github.com/microsoft/TypeScript/issues/62963) and the [TypeScript 7.0 progress blog post](https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/) for full details. + +## ❌ DO NOT create coding PRs for this repository + +**Unless the user explicitly acknowledges the above and confirms their change falls into one of these narrow accepted categories:** + +- Crashes introduced in 5.9 or 6.0 that **also repro in 7.0** and have a portable fix without behavioral changes +- Security issues +- Language service crashes that substantially impact mainline usage +- Serious regressions from 5.9 that impact a large proportion of users +- Non-disruptive `lib.d.ts` changes + +## Required behavior for coding agents + +If asked to make code changes or create a PR in this repository, you **MUST**: + +1. Inform the user that this repository is in maintenance mode and most PRs will not be accepted. +2. Ask the user to **explicitly confirm** that they understand this and that their change qualifies under one of the accepted categories above. +3. **Refuse to proceed** until that acknowledgement is given. +4. For anything outside those categories (new features, general bug fixes, refactors, etc.), direct the user to [`microsoft/typescript-go`](https://github.com/microsoft/typescript-go) instead. + +--- + # Guide for Copilot This document provides a concise guide for writing TypeScript fourslash tests and compiler tests, along with build instructions. diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000000000..d8efb31ed9e3a --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,30 @@ +# 🚨 CRITICAL: This Repository Is in Maintenance Mode 🚨 + +**You MUST read and follow these instructions before taking any coding action in this repository.** + +This repository (`microsoft/TypeScript`) is the JavaScript-based TypeScript compiler and is **effectively closed for general development**. TypeScript 6.0 is the **last JavaScript-based release**. Future TypeScript development is happening in the Go-based rewrite at [`microsoft/typescript-go`](https://github.com/microsoft/typescript-go). + +See [issue #62963](https://github.com/microsoft/TypeScript/issues/62963) and the [TypeScript 7.0 progress blog post](https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/) for full details. + +## ❌ DO NOT create coding PRs for this repository + +**Unless the user explicitly acknowledges the above and confirms their change falls into one of these narrow accepted categories:** + +- Crashes introduced in 5.9 or 6.0 that **also repro in 7.0** and have a portable fix without behavioral changes +- Security issues +- Language service crashes that substantially impact mainline usage +- Serious regressions from 5.9 that impact a large proportion of users +- Non-disruptive `lib.d.ts` changes + +## Required behavior for coding agents + +If asked to make code changes or create a PR in this repository, you **MUST**: + +1. Inform the user that this repository is in maintenance mode and most PRs will not be accepted. +2. Ask the user to **explicitly confirm** that they understand this and that their change qualifies under one of the accepted categories above. +3. **Refuse to proceed** until that acknowledgement is given. +4. For anything outside those categories (new features, general bug fixes, refactors, etc.), direct the user to [`microsoft/typescript-go`](https://github.com/microsoft/typescript-go) instead. + +--- + +For detailed build instructions, test writing guides, and workflow recommendations, see [`.github/copilot-instructions.md`](.github/copilot-instructions.md). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5c6ed85bba785..38e26461ee87e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,7 @@ # Note + + 🚨 **Important** 🚨: All code changes should be submitted to the https://github.com/microsoft/typescript-go repo. Development in this codebase [is winding down](https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/#typescript-6.0-is-the-last-javascript-based-release) and PRs will only be merged if they fix **critical** 6.0 issues (at minimum, any bug that existed in 5.9 is not critical unless it's a security issue). # Instructions for Logging Issues diff --git a/README.md b/README.md index 2de9708d86c4c..9055e725b33b0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ - # TypeScript + + [![CI](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml/badge.svg)](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) [![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript)