build(vendor): rescope the vendored Cordis packages into @deepseek-ai
Machine-produced by `pnpm run rescope-vendor --apply` plus the regeneration it prints: `pnpm install` for the lockfile, `pnpm run gen-third-party-notices`, `verify-translation-pairing --write` for the touched bilingual pairs, `gen-doc-graphs`, and one typert snapshot whose ids embed character offsets. `pnpm run rescope-vendor --check` verifies the result. Renames nine vendored packages (cordis, cosmokit, schemastery and the six @cordisjs plugins) and every reference that resolves them: manifest names and dependency keys, module specifiers including declare-module merges, cordis.yml plugin names, tsconfig paths, every Markdown fence, and `docs/` prose. Directory names, upstream versions, and dependency ranges are unchanged, so vendor/README.md still reads as an upstream snapshot; its manifest table gains an upstream-name column so THIRD_PARTY_NOTICES keeps MIT attribution pointed at each fork's origin. The tutorial tier follows the rename end to end: its yaml fences named plugins the Loader can no longer resolve, its `ts ignore-check` fences disagreed with the compiled fences beside them, and its prose quoted both. The contracts that told readers to keep upstream names — the root convention and the vendoring cookbook's tree comment and manifest invariant — now say to rescope instead. Two rules read `@deepseek-ai/` as "another workspace plugin": the client bundle purity gate now names the vendored libraries a browser bundle inlines, and the files where a bare `cordis` is an agent-preset id keep that product data.
This commit is contained in:
12
vendor/hmr/package.json
vendored
12
vendor/hmr/package.json
vendored
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@cordisjs/plugin-hmr",
|
||||
"name": "@deepseek-ai/cordis-plugin-hmr",
|
||||
"description": "Hot Module Replacement Plugin for Cordis",
|
||||
"version": "1.0.15",
|
||||
"private": true,
|
||||
@@ -22,7 +22,7 @@
|
||||
],
|
||||
"author": "Shigma <shigma10826@gmail.com>",
|
||||
"license": "MIT",
|
||||
"cordis": {
|
||||
"@deepseek-ai/cordis": {
|
||||
"services": {
|
||||
"required": [
|
||||
"timer"
|
||||
@@ -34,15 +34,15 @@
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@cordisjs/plugin-timer": "^1.1.2",
|
||||
"cordis": "^4.0.0-rc.7"
|
||||
"@deepseek-ai/cordis-plugin-timer": "^1.1.2",
|
||||
"@deepseek-ai/cordis": "^4.0.0-rc.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.29.0",
|
||||
"chokidar": "^4.0.3",
|
||||
"cosmokit": "^1.8.1",
|
||||
"@deepseek-ai/cosmokit": "^1.8.1",
|
||||
"picomatch": "^4.0.3",
|
||||
"schemastery": "^3.18.0"
|
||||
"@deepseek-ai/schemastery": "^3.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/babel__code-frame": "^7.27.0",
|
||||
|
||||
2
vendor/hmr/src/error.ts
vendored
2
vendor/hmr/src/error.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import { Context } from 'cordis'
|
||||
import { Context } from '@deepseek-ai/cordis'
|
||||
import type { BuildFailure } from 'esbuild'
|
||||
import { codeFrameColumns } from '@babel/code-frame'
|
||||
import { readFileSync } from 'node:fs'
|
||||
|
||||
14
vendor/hmr/src/index.ts
vendored
14
vendor/hmr/src/index.ts
vendored
@@ -1,18 +1,18 @@
|
||||
import { Context, Service, type Plugin } from 'cordis'
|
||||
import type { Dict } from 'cosmokit'
|
||||
import { ModuleLoader, type ModuleJob, type ResolveResult } from '@cordisjs/plugin-loader'
|
||||
import type { Include } from '@cordisjs/plugin-include'
|
||||
import { Context, Service, type Plugin } from '@deepseek-ai/cordis'
|
||||
import type { Dict } from '@deepseek-ai/cosmokit'
|
||||
import { ModuleLoader, type ModuleJob, type ResolveResult } from '@deepseek-ai/cordis-plugin-loader'
|
||||
import type { Include } from '@deepseek-ai/cordis-plugin-include'
|
||||
import { FSWatcher, watch, type ChokidarOptions } from 'chokidar'
|
||||
import { dirname, relative, resolve } from 'node:path'
|
||||
import { realpath, stat } from 'node:fs/promises'
|
||||
import { handleError } from './error.ts'
|
||||
import type {} from '@cordisjs/plugin-timer'
|
||||
import type {} from '@deepseek-ai/cordis-plugin-timer'
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url'
|
||||
import { createRequire } from 'node:module'
|
||||
import picomatch from 'picomatch'
|
||||
import z from 'schemastery'
|
||||
import z from '@deepseek-ai/schemastery'
|
||||
|
||||
declare module 'cordis' {
|
||||
declare module '@deepseek-ai/cordis' {
|
||||
interface Context {
|
||||
hmr: Hmr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user