部署适配

This commit is contained in:
brother7 committed 2026-08-29 15:02:51 +08:00
1 parent 7b5d855b09
commit c65f00c941
57 files changed
+1075 -50

No files matched your search

+8 -7
View File
@@ -6,6 +6,7 @@ import { createRequire } from 'node:module';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { spawnSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
import vm from 'node:vm';
import Ajv2020 from 'ajv/dist/2020.js';
import addFormats from 'ajv-formats';
@@ -1135,7 +1136,7 @@ test('passenger explicit server success is terminal without a post-save row requ
assert.doesNotMatch(passengerBranch, /passengerRequery|verifyLifecycleOperation/);
assert.doesNotMatch(background, /attemptAutomaticPassengerReconciliation/);
assert.match(background, /名单已取得 ERP 明确成功响应,按业务规则确认录入成功/);
assert.match(platformApp, /REQUIRED_EXTENSION_VERSION = '0\.5\.157'/);
assert.match(platformApp, /REQUIRED_EXTENSION_VERSION = '0\.5\.158'/);
});
test('uncertain lifecycle writes can only converge through a read-only plugin requery', async () => {
@@ -1765,7 +1766,7 @@ test('delete guard distinguishes independent, shared child, and shared parent ro
for (const operation of operations) assert.equal(plans.validateOperation(operation).ok, true, plans.validateOperation(operation).blockers.join('; '));
const mapping = JSON.parse(await readFile(new URL('../mappings/lifecycle.mapping.json', import.meta.url), 'utf8'));
assert.equal(mapping.current_extension_version, '0.5.157');
assert.equal(mapping.current_extension_version, '0.5.158');
assert.equal(
mapping.updates.order_update_independent.field_mapped_pending_live_validation['pax.child_no_bed'],
'ertrenshu'
@@ -1900,7 +1901,7 @@ test('platform runner independently blocks a tampered multi-date split-order pro
await writeFile(fixturePath, JSON.stringify(operation), 'utf8');
const runnerPath = new URL('./run_lifecycle_fixture_via_platform.mjs', import.meta.url);
const result = spawnSync(process.execPath, [
runnerPath.pathname,
fileURLToPath(runnerPath),
'--fixture', fixturePath,
'--expected-run-id', runId,
'--cdp', '/bin/false'
@@ -2147,10 +2148,10 @@ test('schema and browser adapters contain the v2 safety fields and no confirm ov
assert.match(inpage, /`ys_danweiid\$\{index\}`, resolvedCustomerId/);
assert.doesNotMatch(inpage, /product_customer_source_region|sourceRegionCheck|source_reference/);
assert.doesNotMatch(teamBatchInpage, /product_customer_source_region|sourceRegionCheck/);
assert.equal(extensionManifest.version, '0.5.157');
assert.match(inpage, /version: '0\.5\.157'/);
assert.match(teamBatchInpage, /version: '0\.5\.157'/);
assert.match(platformApp, /REQUIRED_EXTENSION_VERSION = '0\.5\.157'/);
assert.equal(extensionManifest.version, '0.5.158');
assert.match(inpage, /version: '0\.5\.158'/);
assert.match(teamBatchInpage, /version: '0\.5\.158'/);
assert.match(platformApp, /REQUIRED_EXTENSION_VERSION = '0\.5\.158'/);
assert.match(inpage, /function strictIsoDate\(value\)/);
assert.match(inpage, /const startDate = strictIsoDate\(controlCanonicalValue\(form, 'riqi0'\)\)/);
assert.match(inpage, /const endDate = strictIsoDate\(controlCanonicalValue\(form, 'riqis0'\)\)/);