refactor: apply repository naming contract

Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
This commit is contained in:
Tianyi Cui
2026-08-13 00:36:22 +08:00
parent 101df7cf58
commit a2d0f7f411
3281 changed files with 21730 additions and 21592 deletions

View File

@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write packages/examples/jsonrpc-demo/README.md
README.md: b2035b4caf2cadcbd5e93b27ac4aad2bdadcdb4d
README.zh.md: 40867d03c31cb44ed7b2cc20643b3838de294b92
README.md: 28060bd5a90445529a31d4b2bc34033c88fa452c
README.zh.md: c165c412fee303ebfa560657ce5c95799e91f60a

View File

@@ -1,4 +1,4 @@
# @deepseek-ai/dsh-jsonrpc-demo
# @deepseek-ai/dsh-sdk-jsonrpc-demo
English | [中文](README.zh.md)
@@ -8,7 +8,7 @@ Bin-only app that boots an external `cordis.yml`; its [`jsonrpc`](../../sdk/serv
The first non-empty channel wins: `$DSH_CORDIS_CONFIG`, then positional `argv[2]`. If neither names an existing file, the bin prints one-line usage to stderr and exits 1; there is no working-directory or built-in fallback. [`dsh-app-boot`](../../boot/app-boot/README.md) makes plugin load failures fatal. This protocol does not use `DSH_SNAPSHOT`.
A config without `dsh-jsonrpc` is valid and serves nothing; the bin does not designate a server plugin.
A config without `dsh-sdk-jsonrpc-server` is valid and serves nothing; the bin does not designate a server plugin.
## Exit lifecycle
@@ -28,6 +28,6 @@ No direct invalidation; the named consumer owns any request-prefix changes.
## Known Limitations and Deferred Work
- **The bin cannot prove that the config serves JSON-RPC** — a valid config with no `dsh-jsonrpc` entry boots successfully and serves nothing.
- **The bin cannot prove that the config serves JSON-RPC** — a valid config with no `dsh-sdk-jsonrpc-server` entry boots successfully and serves nothing.
- **No built-in or default config exists** — every launch must provide `DSH_CORDIS_CONFIG` or a positional path, and deployment owns the complete plugin tree and stdout discipline.
- **stdin EOF cuts off in-flight work** — client disappearance disposes the root immediately; callers that need orderly completion use the protocol-level `shutdown` request.

View File

@@ -1,4 +1,4 @@
# @deepseek-ai/dsh-jsonrpc-demo
# @deepseek-ai/dsh-sdk-jsonrpc-demo
[English](README.md) | 中文
@@ -8,7 +8,7 @@
第一个非空通道生效:先 `$DSH_CORDIS_CONFIG`,再位置参数 `argv[2]`。如果二者都没有指向现有文件,bin 会向 stderr 打印单行用法并以 1 退出;没有工作目录回退或内置回退。[`dsh-app-boot`](../../boot/app-boot/README.md) 会使插件加载失败成为致命错误。此协议不使用 `DSH_SNAPSHOT`。
不含 `dsh-jsonrpc` 的配置仍然有效,只是不提供任何服务;bin 不会指定服务器插件。
不含 `dsh-sdk-jsonrpc-server` 的配置仍然有效,只是不提供任何服务;bin 不会指定服务器插件。
## 退出生命周期
@@ -28,6 +28,6 @@ stdout 只承载 JSON-RPC 帧。bin 和启动守卫在 stderr 上输出诊断,
## 已知限制与暂缓事项
- **bin 无法证明配置提供 JSON-RPC 服务**:不含 `dsh-jsonrpc` 条目的有效配置也能成功启动,但不会提供任何服务。
- **bin 无法证明配置提供 JSON-RPC 服务**:不含 `dsh-sdk-jsonrpc-server` 条目的有效配置也能成功启动,但不会提供任何服务。
- **不存在内置或默认配置**:每次启动都必须提供 `DSH_CORDIS_CONFIG` 或位置路径;部署方负责完整的插件树和 stdout 纪律。
- **stdin EOF 会截断正在处理的工作**:客户端消失时立即释放根上下文;需要有序完成的调用方应使用协议级 `shutdown` 请求。

View File

@@ -1,5 +1,5 @@
{
"name": "@deepseek-ai/dsh-jsonrpc-demo",
"name": "@deepseek-ai/dsh-sdk-jsonrpc-demo",
"description": "Bin that boots an external Cordis config for the stdio JSON-RPC SDK runtime",
"version": "0.0.1-rc.2",
"publishConfig": {

View File

@@ -3,7 +3,7 @@
* Generic JSON-RPC agent bin. External configurations own their bare plugin
* packages; the packaged runtime uses `packaged-bin.ts` instead.
*
* @module @deepseek-ai/dsh-jsonrpc-demo/bin
* @module @deepseek-ai/dsh-sdk-jsonrpc-demo/bin
*/
import { runJsonrpcAgent } from './runner.ts'

View File

@@ -2,9 +2,9 @@
* Bin-only app package: its generic and packaged entries discover an external
* `cordis.yml` and own process exit. This module exports no composition plugin;
* the config chooses whether to load the
* {@link @deepseek-ai/dsh-jsonrpc} serving plugin.
* {@link @deepseek-ai/dsh-sdk-jsonrpc-server} serving plugin.
*
* @module @deepseek-ai/dsh-jsonrpc-demo
* @module @deepseek-ai/dsh-sdk-jsonrpc-demo
*/
export {}

View File

@@ -1,16 +1,16 @@
/**
* Package-owned invariant companion for `@deepseek-ai/dsh-jsonrpc-demo`.
* @module @deepseek-ai/dsh-jsonrpc-demo/invariant
* Package-owned invariant companion for `@deepseek-ai/dsh-sdk-jsonrpc-demo`.
* @module @deepseek-ai/dsh-sdk-jsonrpc-demo/invariant
*/
/* jscpd:ignore-start */
import type { Context } from '@deepseek-ai/cordis'
import type { InvariantInstaller } from '@deepseek-ai/dsh-invariants'
const PACKAGE_NAME = '@deepseek-ai/dsh-jsonrpc-demo'
const PACKAGE_NAME = '@deepseek-ai/dsh-sdk-jsonrpc-demo'
/** Cordis companion plugin name. */
export const name = 'jsonrpc-demo-invariant'
export const name = 'sdk-jsonrpc-demo-invariant'
/** Service required before the companion can reserve package ownership. */
export const inject = ['invariants']

View File

@@ -3,7 +3,7 @@
* Closed-runtime JSON-RPC agent bin. Bare plugins resolve from the installed
* runtime closure while relative plugins remain configuration-relative.
*
* @module @deepseek-ai/dsh-jsonrpc-demo/packaged-bin
* @module @deepseek-ai/dsh-sdk-jsonrpc-demo/packaged-bin
*/
import { runJsonrpcAgent } from './runner.ts'

View File

@@ -1,7 +1,7 @@
/**
* Shared process lifecycle for the generic and closed-runtime JSON-RPC bins.
*
* @module @deepseek-ai/dsh-jsonrpc-demo/runner
* @module @deepseek-ai/dsh-sdk-jsonrpc-demo/runner
*/
import { existsSync } from 'node:fs'

View File

@@ -18,7 +18,7 @@
"path": "../../boot/app-boot"
},
{
"path": "../../support/invariants"
"path": "../../runtime-diagnostics/invariants"
}
]
}