@muyichengshayu/promptx 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/apps/runner/src/index.js +1 -1
- package/apps/server/src/index.js +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.12
|
|
4
|
+
|
|
5
|
+
- 修复全局 npm 安装后 `promptx start` 启动失败的问题:server / runner 运行时代码不再通过 workspace 裸包名加载 `@promptx/shared`,改为使用发布包内可解析的相对路径,避免 `ERR_MODULE_NOT_FOUND`。
|
|
6
|
+
- 发布前检查新增运行时 import 扫描,防止 server / runner 再次引入只在 workspace 内可解析的内部包名;同时从发布包中排除 shared 测试文件。
|
|
7
|
+
|
|
3
8
|
## 0.2.11
|
|
4
9
|
|
|
5
10
|
- 优化任务文件更改数的刷新策略:Agent turn 进入终态后延迟 800ms 自动刷新对应任务的 workspace diff summary,避免每次全量查询所有任务;多任务同时结束时合并为一次请求,降低后端 git diff 计算开销。
|
package/apps/runner/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import cors from '@fastify/cors'
|
|
|
3
3
|
import { createRunManager } from './runManager.js'
|
|
4
4
|
import { assertInternalRequest } from './internalAuth.js'
|
|
5
5
|
import { createServerClient } from './serverClient.js'
|
|
6
|
-
import { createFastifyLoggerOptions } from '
|
|
6
|
+
import { createFastifyLoggerOptions } from '../../../packages/shared/src/dailyLogStream.js'
|
|
7
7
|
|
|
8
8
|
const app = Fastify({ logger: createFastifyLoggerOptions({ logName: 'runner' }) })
|
|
9
9
|
const port = Math.max(1, Number(process.env.PROMPTX_RUNNER_PORT || process.env.RUNNER_PORT || 3002))
|
package/apps/server/src/index.js
CHANGED
|
@@ -88,7 +88,7 @@ import { getApiErrorPayload } from './apiErrors.js'
|
|
|
88
88
|
import { registerWebAppRoutes } from './webAppRoutes.js'
|
|
89
89
|
import { createTempFilePath, normalizeUploadFileName } from './upload.js'
|
|
90
90
|
import { importPdfBlocks } from './pdf.js'
|
|
91
|
-
import { createFastifyLoggerOptions } from '
|
|
91
|
+
import { createFastifyLoggerOptions } from '../../../packages/shared/src/dailyLogStream.js'
|
|
92
92
|
|
|
93
93
|
const app = Fastify({ logger: createFastifyLoggerOptions({ logName: 'server' }) })
|
|
94
94
|
const port = Number(process.env.PORT || 3000)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muyichengshayu/promptx",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "PromptX 本机 AI 协作工作台",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"!apps/runner/src/**/*.test.js",
|
|
16
16
|
"apps/web/dist",
|
|
17
17
|
"packages/shared/src",
|
|
18
|
+
"!packages/shared/src/**/*.test.js",
|
|
18
19
|
"scripts/doctor.mjs",
|
|
19
20
|
"scripts/relay.mjs",
|
|
20
21
|
"scripts/relay-service.mjs",
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"doctor": "node scripts/doctor.mjs",
|
|
53
54
|
"relay:start": "node scripts/relay.mjs",
|
|
54
55
|
"release:check": "node scripts/release.mjs check",
|
|
56
|
+
"release:check:imports": "node scripts/check-package-runtime-imports.mjs",
|
|
55
57
|
"release": "node scripts/release.mjs publish",
|
|
56
58
|
"pack:dry": "npm pack --dry-run",
|
|
57
59
|
"lint": "pnpm -r lint",
|