Merge remote-tracking branch 'upstream/master' into fix/workspace-instruction-frame-metadata

This commit is contained in:
ZiyaZhang
2026-07-28 10:38:11 -07:00
9 changed files with 18 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
# 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
README.md: 77a5c5e35fe0b4b1c92968eecea85b6059c889fc
README.zh.md: bf84a1c5f5428e845a6917a82287733d82405144
# pnpm run verify-translation-pairing --write packages/support/llm-mock-server/README.md
README.md: a535c086bf688ad48b1a3bb19c7b81da21cbad92
README.zh.md: e013cc47399da7fdde42c10dfe086ffab9105785

View File

@@ -26,7 +26,7 @@ DEEPSEEK_API_KEY=mock-key \
pnpm run demo:headless "test provider recovery"
```
The built package also exposes `dsh-llm-mock-server`. Stdout is JSONL: a `ready` record carries the `/v1` base URL and random seed, followed by request/result records that name both the scripted behavior and the concrete selected behavior.
The repository script writes JSONL to stdout: a `ready` record carries the `/v1` base URL and random seed, followed by request/result records that name both the scripted behavior and the concrete selected behavior. The private support package exposes no installable binary.
## Behavior script

View File

@@ -26,7 +26,7 @@ DEEPSEEK_API_KEY=mock-key \
pnpm run demo:headless "test provider recovery"
```
构建包还公开 `dsh-llm-mock-server`。Stdout 是 JSONL`ready` 记录携带 `/v1` base URL 和随机种子,后续请求/结果记录同时命名脚本行为和实际选中的具体行为。
仓库脚本将 JSONL 写入 stdout`ready` 记录携带 `/v1` base URL 和随机种子,后续请求/结果记录同时命名脚本行为和实际选中的具体行为。这个私有支持包package不公开可安装的二进制命令。
## 行为脚本

View File

@@ -6,9 +6,6 @@
"type": "module",
"main": "lib/index.js",
"types": "lib/types/index.d.ts",
"bin": {
"dsh-llm-mock-server": "lib/bin.js"
},
"exports": {
".": {
"types": "./lib/types/index.d.ts",
@@ -18,17 +15,12 @@
"types": "./lib/types/invariant.d.ts",
"default": "./lib/invariant.js"
},
"./bin": {
"types": "./lib/types/bin.d.ts",
"default": "./lib/bin.js"
},
"./src/*": "./src/*",
"./package.json": "./package.json"
},
"files": [
"lib/index.js",
"lib/invariant.js",
"lib/bin.js",
"lib/types/**/*.d.ts",
"lib/types/**/*.d.ts.map",
"src"

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node
/**
* Standalone process wrapper for the scriptable mock LLM server.
* @module @deepseek-ai/dsh-llm-mock-server/bin
* @module @deepseek-ai/dsh-llm-mock-server/src/bin
*/
import { setTimeout as delay } from 'node:timers/promises'

View File

@@ -10,8 +10,4 @@ export default defineConfig([
entry: ['lib/types/invariant.js'], outDir: 'lib', format: ['esm'], platform: 'node', target: 'es2024',
fixedExtension: false, outputOptions: { codeSplitting: false }, dts: false, clean: false,
},
{
entry: ['lib/types/bin.js'], outDir: 'lib', format: ['esm'], platform: 'node', target: 'es2024',
fixedExtension: false, outputOptions: { codeSplitting: false }, dts: false, clean: false,
},
])