@aiaiai-pt/martha-cli 0.57.0 → 0.58.0

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 CHANGED
@@ -2,6 +2,21 @@
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.58.0] — 2026-08-04
6
+
7
+ ### Fixed — the harness pointed strangers at a 404
8
+
9
+ Buzz shows a runtime's `installInstructionsUrl` exactly when its binary is not
10
+ on PATH — to someone who has just picked Martha and has nothing installed. Ours
11
+ pointed at `docs.martha.nomadriver.co/cli/buzz`, which has never existed. It now
12
+ points at **`/buzz`**, a page written for that arrival, and `installHint` is the
13
+ `npx` one-liner rather than `npm i -g`: a hint that requires a prior install is
14
+ no hint for someone who has installed nothing.
15
+
16
+ `--print` now writes a short header to **stderr** saying what the JSON is and
17
+ where it goes, so `--print > martha.json` still produces a clean file while a
18
+ paste into a Settings form or a gist carries its own context.
19
+
5
20
  ## [0.57.0] — 2026-08-03
6
21
 
7
22
  ### Fixed — `bootstrap --mode agent` produced an agent that could not do anything
package/README.md CHANGED
@@ -90,6 +90,27 @@ martha agents list --json | jq '.[] | {name, status}'
90
90
 
91
91
  Exit codes: `0` success · `1` generic error · `2` auth failure · `3` not found · `4` validation · `5` conflict (409).
92
92
 
93
+ ## Put an agent in a Buzz channel
94
+
95
+ One command, no install of its own:
96
+
97
+ ```bash
98
+ npx -y @aiaiai-pt/martha-cli channels install-harness buzz
99
+ ```
100
+
101
+ Then in [Buzz](https://github.com/block/buzz) Desktop: **New agent → runtime "Martha"**. The command registers Martha as an ACP runtime by writing a definition into Buzz's own app-data directory — the supported route for any ACP agent, no PR and no plugin.
102
+
103
+ To have an agent for it to be, and leave Buzz's **Edit Agent** empty:
104
+
105
+ ```bash
106
+ martha principals bootstrap --mode agent --agent support \
107
+ --prompt "You answer support questions from our handbook." \
108
+ --intents rag --collections "Handbook" --save-profile support
109
+ martha channels install-harness buzz --use-profile support
110
+ ```
111
+
112
+ The profile *name* goes in the definition; the credential stays in `~/.martha/credentials.json` (0600). Check everything before trusting it with `martha channels preflight buzz --agent support --relay wss://…`, which names each missing precondition and exits non-zero. Full guide: <https://docs.martha.nomadriver.co/buzz>.
113
+
93
114
  ## Agent integration
94
115
 
95
116
  This package ships an agent-facing skill reference at `skills/martha-cli/SKILL.md` describing every command, JSON contract, and conceptual primitive (tenant, agent, function, task, etc.). Agent harnesses can pull it directly:
package/dist/index.js CHANGED
@@ -11149,7 +11149,7 @@ init_config();
11149
11149
  init_errors();
11150
11150
 
11151
11151
  // src/version.ts
11152
- var CLI_VERSION = "0.57.0";
11152
+ var CLI_VERSION = "0.58.0";
11153
11153
 
11154
11154
  // src/commands/sessions.ts
11155
11155
  function relativeTime(iso) {
@@ -14792,6 +14792,7 @@ init_errors();
14792
14792
  var AGENTS_PATH2 = "/api/admin/definitions/agents";
14793
14793
  var SUPPORTED_CHANNELS = ["buzz"];
14794
14794
  var BUZZ_HARNESS_ID = "martha";
14795
+ var BUZZ_INSTALL_DOCS_URL = "https://docs.martha.nomadriver.co/buzz";
14795
14796
  function buzzHarnessDefinition(opts = {}) {
14796
14797
  return {
14797
14798
  id: opts.id ?? BUZZ_HARNESS_ID,
@@ -14804,8 +14805,8 @@ function buzzHarnessDefinition(opts = {}) {
14804
14805
  BUZZ_ACP_KINDS: DEFAULT_BUZZ_KINDS,
14805
14806
  ...opts.profile ? { MARTHA_PROFILE: opts.profile } : {}
14806
14807
  },
14807
- installInstructionsUrl: "https://docs.martha.nomadriver.co/cli/buzz",
14808
- installHint: "npm i -g @aiaiai-pt/martha-cli"
14808
+ installInstructionsUrl: BUZZ_INSTALL_DOCS_URL,
14809
+ installHint: "npx -y @aiaiai-pt/martha-cli channels install-harness buzz"
14809
14810
  };
14810
14811
  }
14811
14812
  function isValidHarnessId(id) {
@@ -15238,6 +15239,11 @@ function registerChannelCommands(program2) {
15238
15239
  const json = JSON.stringify(def, null, 2) + `
15239
15240
  `;
15240
15241
  if (opts.print) {
15242
+ process.stderr.write(`# Buzz custom harness definition — save as ${def.id}.json in Buzz's
15243
+ ` + `# custom_harnesses directory, or let the CLI place it:
15244
+ ` + `# npx -y @aiaiai-pt/martha-cli channels install-harness buzz
15245
+ ` + `# ${BUZZ_INSTALL_DOCS_URL}
15246
+ `);
15241
15247
  console.log(json);
15242
15248
  return;
15243
15249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiaiai-pt/martha-cli",
3
- "version": "0.57.0",
3
+ "version": "0.58.0",
4
4
  "description": "Terminal-first client for the Martha AI platform",
5
5
  "homepage": "https://docs.martha.nomadriver.co",
6
6
  "repository": {