relay-companion 0.1.539 → 0.1.540
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.
|
@@ -174,6 +174,11 @@ async function installFromApplication({ resourcesDir, applicationRoot, executabl
|
|
|
174
174
|
// Existing installations must already select this channel explicitly.
|
|
175
175
|
if (!current && channel === "dev") atomic(configFile, { ...config, updateChannel: "dev", apiUrl: "https://dev-api.sendrelays.com", devApiUrl: "https://dev-api.sendrelays.com" });
|
|
176
176
|
atomic(ownerPath, owner);
|
|
177
|
+
// Activation starts the pill. The marker, written first so the pill reads
|
|
178
|
+
// it on its first paint, opens that pill centred with Continue with Google
|
|
179
|
+
// in place of the setup window. A marker that cannot be written costs one
|
|
180
|
+
// window position, not the install, so it never fails setup.
|
|
181
|
+
try { bootstrap.writeSetupIntent(path.join(homeDir, ".relay"), bundle.receipt.version, [], { application: true }); } catch {}
|
|
177
182
|
try {
|
|
178
183
|
// This is the existing OS service/MCP/skill registration transaction, with
|
|
179
184
|
// exact-root health, advancing heartbeat, durable Node and rollback.
|
|
@@ -1078,10 +1078,15 @@ async function activateRuntime(layout, runtime, version, {
|
|
|
1078
1078
|
// sign-in without a click. The --code and --agent-protocol paths pair without
|
|
1079
1079
|
// a pill sign-in, so they must not leave one behind. Only the fact, the time
|
|
1080
1080
|
// and the version are recorded: never a credential.
|
|
1081
|
+
//
|
|
1082
|
+
// The native application installer writes the same marker with
|
|
1083
|
+
// `application: true` (application-install.cjs): its pill opens in the middle
|
|
1084
|
+
// of the screen with Continue with Google, in place of the setup window that
|
|
1085
|
+
// just closed, and moves to its top-right home once the person signs in.
|
|
1081
1086
|
const SETUP_INTENT_FILE = "setup-intent.json";
|
|
1082
|
-
function writeSetupIntent(configDir, version, setupCompatibilityArgs = [], { now = new Date(), write = atomicWriteJson } = {}) {
|
|
1087
|
+
function writeSetupIntent(configDir, version, setupCompatibilityArgs = [], { now = new Date(), write = atomicWriteJson, application = false } = {}) {
|
|
1083
1088
|
if (setupCompatibilityArgs.includes("--code") || setupCompatibilityArgs.includes("--agent-protocol")) return false;
|
|
1084
|
-
write(path.join(configDir, SETUP_INTENT_FILE), { agentInstalled: true, at: now.toISOString(), version });
|
|
1089
|
+
write(path.join(configDir, SETUP_INTENT_FILE), { agentInstalled: true, ...(application ? { application: true } : {}), at: now.toISOString(), version });
|
|
1085
1090
|
return true;
|
|
1086
1091
|
}
|
|
1087
1092
|
|
package/package.json
CHANGED