Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e7004dffe | |||
| 089a44fb11 | |||
| 6a48e0ad91 | |||
| c2189ee30d | |||
| 2cc98b9392 | |||
| 2f4dd39181 | |||
| 4e66c43350 | |||
| 85872e1e84 | |||
| 93aa7c1cfa | |||
| 49c2671845 | |||
| 5cebd1121e | |||
| 492bf6fbb4 | |||
| 1d1af888e9 | |||
| 4ebe7c76aa |
+20
-11
@@ -33,21 +33,30 @@ jobs:
|
||||
|
||||
- name: Install system test dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --yes --no-install-recommends sqlite3
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
apt-get update
|
||||
apt-get install --yes --no-install-recommends sqlite3
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
elif command -v brew >/dev/null 2>&1; then
|
||||
if ! command -v sqlite3 >/dev/null 2>&1; then
|
||||
brew install sqlite
|
||||
fi
|
||||
fi
|
||||
command -v sqlite3
|
||||
|
||||
- name: Install locked dependencies
|
||||
run: |
|
||||
npm ci --include=optional
|
||||
SHARP_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-linux-arm64'].version")"
|
||||
LIBVIPS_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-libvips-linux-arm64'].version")"
|
||||
if [[ ! -d node_modules/@img/sharp-linux-arm64 || ! -d node_modules/@img/sharp-libvips-linux-arm64 ]]; then
|
||||
npm install --no-save --package-lock=false \
|
||||
"@img/sharp-linux-arm64@${SHARP_ARM64_VERSION}" \
|
||||
"@img/sharp-libvips-linux-arm64@${LIBVIPS_ARM64_VERSION}"
|
||||
else
|
||||
echo "Locked Sharp ARM64 optional packages are already installed"
|
||||
if [[ "$(uname -s)" == "Linux" ]]; then
|
||||
SHARP_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-linux-arm64'].version")"
|
||||
LIBVIPS_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-libvips-linux-arm64'].version")"
|
||||
if [[ ! -d node_modules/@img/sharp-linux-arm64 || ! -d node_modules/@img/sharp-libvips-linux-arm64 ]]; then
|
||||
npm install --no-save --package-lock=false \
|
||||
"@img/sharp-linux-arm64@${SHARP_ARM64_VERSION}" \
|
||||
"@img/sharp-libvips-linux-arm64@${LIBVIPS_ARM64_VERSION}"
|
||||
else
|
||||
echo "Locked Sharp ARM64 optional packages are already installed"
|
||||
fi
|
||||
fi
|
||||
node -e "import('sharp').then((sharp) => sharp.default({ create: { width: 1, height: 1, channels: 4, background: '#000' } }).png().toBuffer())"
|
||||
|
||||
|
||||
@@ -410,3 +410,21 @@ Portal,避免在线修改稳定 `.env`,并确保稳定 8081 与其他用户
|
||||
- 保留本地分支名仅用于审计追溯。
|
||||
- 不要从该分支继续开发、merge、cherry-pick 或发布。
|
||||
- 后续管理后台 UI 只能在 memind_adm 5174 开发。
|
||||
|
||||
## `codex/flux-schnell-workflow-kind`
|
||||
|
||||
**状态:禁止再次引用。分支未并入 `main`;103 曾短暂从该分支发布 `ea5b732` 后已回退到 `main` 整包发布。**
|
||||
|
||||
审计日期:2026-08-04
|
||||
分支 HEAD(已删除):`ea5b732`
|
||||
`origin/main` 对应提交:`6a48e0a`(103 生产 release `20260804-204137-6a48e0a`)
|
||||
|
||||
### 原始用途
|
||||
|
||||
为 Portal admin 配置 ComfyUI `flux_schnell` workflowKind;103 曾从该功能分支单包发布。
|
||||
|
||||
### 最终处置
|
||||
|
||||
- Flux 服务已下线;本地分支已删除。
|
||||
- **不要** merge、cherry-pick 或从 `ea5b732` 构建 runtime/artifact。
|
||||
- 103 生产 manifest 已回到 `main` @ `6a48e0a`。
|
||||
|
||||
@@ -98,8 +98,17 @@ function buildApp(workspaceRoot, pool = createPool('public')) {
|
||||
return app;
|
||||
}
|
||||
|
||||
async function request(app, method, url, { body, headers } = {}) {
|
||||
async function listenEphemeral(app) {
|
||||
const server = app.listen(0);
|
||||
await new Promise((resolve, reject) => {
|
||||
server.once('listening', resolve);
|
||||
server.once('error', reject);
|
||||
});
|
||||
return server;
|
||||
}
|
||||
|
||||
async function request(app, method, url, { body, headers } = {}) {
|
||||
const server = await listenEphemeral(app);
|
||||
try {
|
||||
const { port } = server.address();
|
||||
const response = await fetch(`http://127.0.0.1:${port}${url}`, {
|
||||
|
||||
@@ -55,6 +55,7 @@ const CRITICAL_IMPACT_RULES = Object.freeze([
|
||||
const NON_RUNTIME_PATHS = Object.freeze([
|
||||
/^(?:AGENTS|README|CHANGELOG)\.md$/i,
|
||||
/^ops\/README\.md$/i,
|
||||
/^\.gitea\/workflows\//i,
|
||||
/^\.runtime\//i,
|
||||
/^docs\//i,
|
||||
/^\.cursor\//i,
|
||||
|
||||
@@ -438,8 +438,42 @@ remount_goosed_after_live_swap() {
|
||||
local ready=0
|
||||
|
||||
if [[ ! -x "${docker_bin}" || ! -f "${compose_file}" ]]; then
|
||||
echo "goosed remount failed: docker or ${compose_file} is unavailable" >&2
|
||||
return 1
|
||||
say "重启 native goosed 以刷新 Portal/MindSpace bind mount"
|
||||
mkdir -p "${APP_DIR}"
|
||||
printf '%s\n' "${marker_value}" > "${marker_host}"
|
||||
|
||||
local gui="gui/$(id -u)"
|
||||
local port
|
||||
for port in $(seq 18006 18014); do
|
||||
launchctl kickstart -k "${gui}/cn.tkmind.goosed-native-${port}" >/dev/null 2>&1 || true
|
||||
done
|
||||
|
||||
for _ in $(seq 1 60); do
|
||||
local healthy=1
|
||||
if [[ "$(cat "${marker_host}" 2>/dev/null || true)" != "${marker_value}" ]]; then
|
||||
healthy=0
|
||||
fi
|
||||
if [[ ! -f "${APP_DIR}/mindspace-sandbox-mcp.mjs" ]]; then
|
||||
healthy=0
|
||||
fi
|
||||
for port in $(seq 18006 18014); do
|
||||
if [[ "$(curl -skS -m 5 "https://127.0.0.1:${port}/status" 2>/dev/null || true)" != "ok" ]]; then
|
||||
healthy=0
|
||||
fi
|
||||
done
|
||||
if [[ "${healthy}" -eq 1 ]]; then
|
||||
ready=1
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
|
||||
rm -f "${marker_host}"
|
||||
if [[ "${ready}" -ne 1 ]]; then
|
||||
echo "goosed remount failed: native goosed pool did not become healthy on the new live directory" >&2
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
|
||||
mkdir -p "${APP_DIR}"
|
||||
|
||||
+2
-6
@@ -2584,10 +2584,7 @@ export function createWechatMpService({
|
||||
artifacts,
|
||||
forcePageData,
|
||||
}) => {
|
||||
const enabledForUser =
|
||||
config.pageDataAiderReviewEnabled &&
|
||||
isWechatMediaGrayUser(user, config.pageDataAiderReviewUsers);
|
||||
if (!enabledForUser) return { action: 'skip', reason: 'disabled' };
|
||||
if (!config.pageDataAiderReviewEnabled) return { action: 'skip', reason: 'disabled' };
|
||||
if (typeof pageDataDeliveryReviewer?.reviewIfNeeded !== 'function') {
|
||||
const error = new Error('微信 Page Data 强制 Aider 审核服务不可用');
|
||||
error.code = 'PAGE_DATA_REVIEW_UNAVAILABLE';
|
||||
@@ -2617,8 +2614,7 @@ export function createWechatMpService({
|
||||
const runIntentMessage = async ({ inbound, intent, user }) => {
|
||||
const wechatIntent = await resolveWechatIntent(intent, { openid: inbound.fromUserName });
|
||||
const mediaAnalysisEnabled = isWechatMediaGrayUser(user, config.mediaAnalysisGrayUsers);
|
||||
const reliabilityEnabled = isWechatMediaGrayUser(user, config.reliabilityGrayUsers);
|
||||
const agentReplyTimeoutMs = reliabilityEnabled ? config.agentReplyTimeoutMs : 0;
|
||||
const agentReplyTimeoutMs = config.agentReplyTimeoutMs;
|
||||
const resetCandidate =
|
||||
intent.msgType === 'text' || intent.msgType === 'voice' ? intent.agentText : '';
|
||||
const isPageDataRequest = isWechatPageDataTask(resetCandidate);
|
||||
|
||||
Reference in New Issue
Block a user