@aiaiai-pt/martha-cli 0.53.0 → 0.53.1
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/CHANGELOG.md +13 -0
- package/dist/index.js +37 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@aiaiai-pt/martha-cli`. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). This project adheres to semver — `0.x` releases may include breaking changes between minor versions.
|
|
4
4
|
|
|
5
|
+
## [0.53.1] — 2026-08-03
|
|
6
|
+
|
|
7
|
+
### Fixed — `channels install-harness` told a Buzz-less machine to "launch Buzz once"
|
|
8
|
+
|
|
9
|
+
- The command registers Martha as a runtime *inside* Buzz Desktop, so with no
|
|
10
|
+
Desktop on the machine there is nothing to register with. It correctly
|
|
11
|
+
refused and wrote nothing, but the remedy assumed the app was installed and
|
|
12
|
+
merely unopened. It now probes for the application itself and says which of
|
|
13
|
+
the two situations it is: **not installed** (with the release link, and a
|
|
14
|
+
pointer to `martha channels connect buzz`, which needs no Desktop at all) or
|
|
15
|
+
**installed but never launched** (open it once). Both still name the exact
|
|
16
|
+
app-data paths so `--app-data` stays actionable.
|
|
17
|
+
|
|
5
18
|
## [0.53.0] — 2026-08-02
|
|
6
19
|
|
|
7
20
|
### Added — `martha channels`: connect an agent to a channel from either side (#1140)
|
package/dist/index.js
CHANGED
|
@@ -11129,7 +11129,7 @@ init_config();
|
|
|
11129
11129
|
init_errors();
|
|
11130
11130
|
|
|
11131
11131
|
// src/version.ts
|
|
11132
|
-
var CLI_VERSION = "0.53.
|
|
11132
|
+
var CLI_VERSION = "0.53.1";
|
|
11133
11133
|
|
|
11134
11134
|
// src/commands/sessions.ts
|
|
11135
11135
|
function relativeTime(iso) {
|
|
@@ -14770,6 +14770,40 @@ function buzzAppDataCandidates(platform, env2, home) {
|
|
|
14770
14770
|
function chooseAppDataDir(candidates, exists) {
|
|
14771
14771
|
return candidates.find((c) => exists(c.dir)) ?? null;
|
|
14772
14772
|
}
|
|
14773
|
+
function buzzAppCandidates(platform, env2, home) {
|
|
14774
|
+
if (platform === "darwin") {
|
|
14775
|
+
return ["/Applications/Buzz.app", join3(home, "Applications", "Buzz.app")];
|
|
14776
|
+
}
|
|
14777
|
+
if (platform === "win32") {
|
|
14778
|
+
const base = env2.LOCALAPPDATA ?? join3(home, "AppData", "Local");
|
|
14779
|
+
return [join3(base, "Programs", "Buzz")];
|
|
14780
|
+
}
|
|
14781
|
+
return [
|
|
14782
|
+
"/opt/Buzz",
|
|
14783
|
+
"/usr/bin/buzz-desktop",
|
|
14784
|
+
join3(home, ".local", "bin", "buzz-desktop")
|
|
14785
|
+
];
|
|
14786
|
+
}
|
|
14787
|
+
var BUZZ_RELEASES_URL = "https://github.com/block/buzz/releases/latest";
|
|
14788
|
+
function missingAppDataMessage(candidates, appInstalled) {
|
|
14789
|
+
const looked = candidates.map((c) => ` ${c.dir} (${c.build})`).join(`
|
|
14790
|
+
`);
|
|
14791
|
+
if (appInstalled) {
|
|
14792
|
+
return `Buzz Desktop is installed but has never been launched — it creates its ` + `data directory on first run.
|
|
14793
|
+
|
|
14794
|
+
Looked for:
|
|
14795
|
+
${looked}
|
|
14796
|
+
` + `Open Buzz Desktop once, then re-run this. Or pass --app-data <dir>.`;
|
|
14797
|
+
}
|
|
14798
|
+
return `Buzz Desktop is not installed on this machine. This command registers ` + `Martha as a runtime INSIDE Desktop, so there is nothing to register with.
|
|
14799
|
+
|
|
14800
|
+
` + `Looked for:
|
|
14801
|
+
${looked}
|
|
14802
|
+
` + `Install it: ${BUZZ_RELEASES_URL}
|
|
14803
|
+
|
|
14804
|
+
` + `If you do not want Desktop at all, you do not need this command — run the ` + `adapter yourself instead:
|
|
14805
|
+
martha channels connect buzz --agent <name> --relay <url>`;
|
|
14806
|
+
}
|
|
14773
14807
|
var DEFAULT_BUZZ_KINDS = "9,46010,40007,7";
|
|
14774
14808
|
function buzzAcpEnv(opts) {
|
|
14775
14809
|
const env2 = {
|
|
@@ -15116,10 +15150,8 @@ function registerChannelCommands(program2) {
|
|
|
15116
15150
|
const chosen = opts.appData ? { build: "release", dir: String(opts.appData) } : chooseAppDataDir(buzzAppDataCandidates(process.platform, process.env, homedir()), (d) => existsSync(d));
|
|
15117
15151
|
if (!chosen) {
|
|
15118
15152
|
const candidates = buzzAppDataCandidates(process.platform, process.env, homedir());
|
|
15119
|
-
|
|
15120
|
-
|
|
15121
|
-
`)}
|
|
15122
|
-
Launch Buzz Desktop once so it creates one, or pass --app-data <dir>.`);
|
|
15153
|
+
const appInstalled = buzzAppCandidates(process.platform, process.env, homedir()).some((p) => existsSync(p));
|
|
15154
|
+
throw new CLIError(appInstalled ? "Buzz Desktop has no data directory yet." : "Buzz Desktop is not installed.", 3 /* NotFound */, missingAppDataMessage(candidates, appInstalled));
|
|
15123
15155
|
}
|
|
15124
15156
|
const dir = join3(chosen.dir, "custom_harnesses");
|
|
15125
15157
|
const file = join3(dir, `${def.id}.json`);
|