Enable unsafe host paired runtime

This commit is contained in:
ejclaw
2026-04-06 02:40:15 +09:00
parent 446b194e2c
commit 994e957767
12 changed files with 261 additions and 5 deletions

View File

@@ -54,6 +54,12 @@ const LEGACY_SERVICE_TEMPLATES: ServiceTemplate[] = [
function materializeServiceDef(template: ServiceTemplate): ServiceDef {
const environmentFile = undefined;
const extraEnv =
template.kind === 'primary'
? {
EJCLAW_UNSAFE_HOST_PAIRED_MODE: '1',
}
: undefined;
return {
kind: template.kind,
@@ -62,7 +68,7 @@ function materializeServiceDef(template: ServiceTemplate): ServiceDef {
description: template.description,
logName: template.logName,
environmentFile,
extraEnv: undefined,
extraEnv,
};
}

View File

@@ -184,6 +184,9 @@ describe('service definitions', () => {
expect(defs.map((def) => def.name)).toEqual(['ejclaw']);
expect(defs.map((def) => def.kind)).toEqual(['primary']);
expect(defs[0]?.extraEnv).toMatchObject({
EJCLAW_UNSAFE_HOST_PAIRED_MODE: '1',
});
});
it('keeps legacy service identities available for migration guards', () => {