@aiaiai-pt/martha-cli 0.58.0 → 0.58.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 +4 -3
- 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.58.1] — 2026-08-04
|
|
6
|
+
|
|
7
|
+
### Fixed — provisioning called an existing agent blind when it wasn't
|
|
8
|
+
|
|
9
|
+
0.57.0 taught `bootstrap --mode agent` to say `granted NO collections — its
|
|
10
|
+
retrieval tools will return nothing`. True for an agent created by that call;
|
|
11
|
+
false for one that already existed, whose grants predate it. The honest
|
|
12
|
+
statement for an adopted agent is that this call granted nothing *new* and left
|
|
13
|
+
its access alone, so that is what it says now — and the "will get an empty
|
|
14
|
+
list" warning is limited to agents we just created and therefore know are
|
|
15
|
+
empty. Reporting a false alarm is the same failure as reporting nothing, in the
|
|
16
|
+
other direction.
|
|
17
|
+
|
|
5
18
|
## [0.58.0] — 2026-08-04
|
|
6
19
|
|
|
7
20
|
### Fixed — the harness pointed strangers at a 404
|
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.58.
|
|
11152
|
+
var CLI_VERSION = "0.58.1";
|
|
11153
11153
|
|
|
11154
11154
|
// src/commands/sessions.ts
|
|
11155
11155
|
function relativeTime(iso) {
|
|
@@ -14621,16 +14621,17 @@ async function bootstrapAgentPrincipal(ctx, agent, opts = {}) {
|
|
|
14621
14621
|
throw new CLIError("Bootstrap did not return service-account credentials.", 1 /* Error */, "Check that your user has the admin realm role (integration mode requires it).");
|
|
14622
14622
|
}
|
|
14623
14623
|
const agentName = boot.agent?.name ?? agent;
|
|
14624
|
+
const agentAdopted = boot.agent?.adopted === true;
|
|
14624
14625
|
steps.push(boot.adopted ? `reusing principal '${boot.service_account.client_id}' (same secret — recovery, not rotation)` : `provisioned principal '${boot.service_account.client_id}'`);
|
|
14625
14626
|
steps.push(boot.agent?.adopted ? `bound existing agent '${agentName}' to client ${boot.client_id}` : `created agent '${agentName}' (runs_as_chat) and bound it to client ${boot.client_id}`);
|
|
14626
14627
|
const fns = boot.agent?.granted_functions ?? [];
|
|
14627
14628
|
steps.push(fns.length ? `granted its tools: ${fns.join(", ")}` : "granted NO tools — pass --intents rag (or documents/tasks) or it can do nothing");
|
|
14628
14629
|
const cols = boot.agent?.granted_collections ?? [];
|
|
14629
|
-
steps.push(cols.length ? `granted it read on: ${cols.join(", ")}` : "granted NO collections — its retrieval tools will return nothing until you pass --collections");
|
|
14630
|
+
steps.push(cols.length ? `granted it read on: ${cols.join(", ")}` : agentAdopted ? "granted no new collections (existing access unchanged)" : "granted NO collections — its retrieval tools will return nothing until you pass --collections");
|
|
14630
14631
|
if (!fns.length) {
|
|
14631
14632
|
warnings.push("no tools: this agent will answer from the model alone.");
|
|
14632
14633
|
}
|
|
14633
|
-
if (fns.length && !cols.length) {
|
|
14634
|
+
if (fns.length && !cols.length && !agentAdopted) {
|
|
14634
14635
|
warnings.push(`it can call list_collections and will get an empty list — grant one: martha collections grant <name> --to agent:${boot.agent?.agent_id ?? "<id>"}`);
|
|
14635
14636
|
}
|
|
14636
14637
|
for (const s of boot.skipped ?? []) {
|