usebeeline 0.0.4 → 0.0.23
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/dist/usebeeline.mjs +14 -7
- package/package.json +1 -1
package/dist/usebeeline.mjs
CHANGED
|
@@ -48961,7 +48961,9 @@ Deliver artifacts from this corner; there is no branch to land.`;
|
|
|
48961
48961
|
await api.execute("postAgentPresence", {
|
|
48962
48962
|
agentId: this.agentIdentity.publicKey,
|
|
48963
48963
|
roomId: channelId,
|
|
48964
|
-
status
|
|
48964
|
+
status,
|
|
48965
|
+
...this.config.daemonReleaseVersion ? { releaseVersion: this.config.daemonReleaseVersion } : {},
|
|
48966
|
+
...this.config.daemonSourceSha ? { sourceSha: this.config.daemonSourceSha } : {}
|
|
48965
48967
|
});
|
|
48966
48968
|
this.onRoomPresence?.(channelId, status);
|
|
48967
48969
|
};
|
|
@@ -56255,7 +56257,10 @@ async function installCurrentRelease(fetchImpl) {
|
|
|
56255
56257
|
}
|
|
56256
56258
|
});
|
|
56257
56259
|
await activateRelease(layout, releaseId);
|
|
56258
|
-
return
|
|
56260
|
+
return {
|
|
56261
|
+
binary: resolve37(layout.binDir, "beeline"),
|
|
56262
|
+
version: published.version ?? releaseId
|
|
56263
|
+
};
|
|
56259
56264
|
}
|
|
56260
56265
|
function providerEnvironment(selection) {
|
|
56261
56266
|
if (!selection.provider || !selection.apiKey)
|
|
@@ -56315,12 +56320,12 @@ async function runInstalledFinish(binary, grantPath) {
|
|
|
56315
56320
|
});
|
|
56316
56321
|
});
|
|
56317
56322
|
}
|
|
56318
|
-
async function brassSpinner(message2, action) {
|
|
56323
|
+
async function brassSpinner(message2, action, completion) {
|
|
56319
56324
|
const spinner2 = spinner({ output: clackPromptOutput() });
|
|
56320
56325
|
spinner2.start(brass(message2));
|
|
56321
56326
|
try {
|
|
56322
56327
|
const result = await action();
|
|
56323
|
-
spinner2.stop(brass(
|
|
56328
|
+
spinner2.stop(brass(completion(result)));
|
|
56324
56329
|
return result;
|
|
56325
56330
|
} catch (error) {
|
|
56326
56331
|
spinner2.stop("Failed");
|
|
@@ -56339,8 +56344,8 @@ async function runConnectCommand(code, options = {}) {
|
|
|
56339
56344
|
const selection = await collectConnectWizard();
|
|
56340
56345
|
const fetchImpl = options.fetchImpl ?? fetch;
|
|
56341
56346
|
const baseUrl = (process.env.BEELINE_AUTH_URL ?? "https://server.usebeeline.app").replace(/\/$/, "");
|
|
56342
|
-
const grant = await brassSpinner("Connecting to your Beeline Workspace\u2026", () => requestConnectGrant(baseUrl, pairingCode, selection, fetchImpl));
|
|
56343
|
-
const
|
|
56347
|
+
const grant = await brassSpinner("Connecting to your Beeline Workspace\u2026", () => requestConnectGrant(baseUrl, pairingCode, selection, fetchImpl), (connectedGrant) => `Connected to ${connectedGrant.workspace_name}`);
|
|
56348
|
+
const installedRelease = await brassSpinner("Installing the Beeline daemon\u2026", () => installCurrentRelease(fetchImpl), (release) => `Installed Beeline helper ${release.version}`);
|
|
56344
56349
|
const llmEnvFile = await writeProviderEnv(selection, grant.agent_pubkey);
|
|
56345
56350
|
const grantPath = resolve37(defaultSupervisorRoot(process.env), "beeline", "connect", `grant-${process.pid}-${Date.now()}.json`);
|
|
56346
56351
|
await writePrivateJson(grantPath, {
|
|
@@ -56357,7 +56362,7 @@ async function runConnectCommand(code, options = {}) {
|
|
|
56357
56362
|
daemonExchangeToken: grant.daemon_exchange_token,
|
|
56358
56363
|
...llmEnvFile ? { llmEnvFile } : {}
|
|
56359
56364
|
});
|
|
56360
|
-
await brassSpinner("Starting your agent\u2026", () => runInstalledFinish(
|
|
56365
|
+
await brassSpinner("Starting your agent\u2026", () => runInstalledFinish(installedRelease.binary, grantPath), () => `Started ${grant.agent_name}`);
|
|
56361
56366
|
console.log("");
|
|
56362
56367
|
console.log(`${brass("Agent")} ${grant.agent_name}`);
|
|
56363
56368
|
console.log(`${brass("Workspace")} ${grant.workspace_name}`);
|
|
@@ -57623,6 +57628,8 @@ async function runStoredDaemon(pathOrPointer) {
|
|
|
57623
57628
|
}
|
|
57624
57629
|
loadedRelease = await activeReleaseId(layout);
|
|
57625
57630
|
loadedReleaseIdentity = await readInstalledBundleIdentity(layout);
|
|
57631
|
+
config.daemonReleaseVersion = loadedReleaseIdentity?.version;
|
|
57632
|
+
config.daemonSourceSha = loadedReleaseIdentity?.commit;
|
|
57626
57633
|
update = await ManagedUpdateHandoff.create(layout, runtimeDir, Date.now, {
|
|
57627
57634
|
requiredProbeIds: [...await runningRuntimeProbeIds(process.env), runtime.agent.publicKey]
|
|
57628
57635
|
});
|