@aiaiai-pt/martha-cli 0.68.0 → 0.68.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 +6 -0
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.68.1] — 2026-11-03
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `martha prompts create -f <file>` accepts `content` again. 0.68.0 refused `content` on every prompt write so that `prompts update` would stop dropping it silently, but the create route requires `content`, so no prompt could be created from a file. The refusal now applies to `update` only.
|
|
10
|
+
|
|
5
11
|
## [0.68.0] — 2026-11-02
|
|
6
12
|
|
|
7
13
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -11149,7 +11149,7 @@ ${items.length} ${config.typeNamePlural}`));
|
|
|
11149
11149
|
throw new CLIError("Missing required field: name", 4 /* Validation */);
|
|
11150
11150
|
}
|
|
11151
11151
|
if (config.normalizeBody)
|
|
11152
|
-
body = config.normalizeBody(body);
|
|
11152
|
+
body = config.normalizeBody(body, "create");
|
|
11153
11153
|
const result = await ctx.api.post(config.apiPath, body);
|
|
11154
11154
|
if (isJson()) {
|
|
11155
11155
|
console.log(JSON.stringify(result, null, 2));
|
|
@@ -11164,7 +11164,7 @@ ${items.length} ${config.typeNamePlural}`));
|
|
|
11164
11164
|
throw new CLIError(`File name '${body.name}' does not match argument '${name}'`, 4 /* Validation */);
|
|
11165
11165
|
}
|
|
11166
11166
|
if (config.normalizeBody)
|
|
11167
|
-
body = config.normalizeBody(body);
|
|
11167
|
+
body = config.normalizeBody(body, "update");
|
|
11168
11168
|
const result = await ctx.api.put(`${config.apiPath}/${encodeURIComponent(name)}`, body);
|
|
11169
11169
|
config.verifyUpdateResult?.(body, result);
|
|
11170
11170
|
if (isJson()) {
|
|
@@ -11244,7 +11244,7 @@ init_config();
|
|
|
11244
11244
|
init_errors();
|
|
11245
11245
|
|
|
11246
11246
|
// src/version.ts
|
|
11247
|
-
var CLI_VERSION = "0.68.
|
|
11247
|
+
var CLI_VERSION = "0.68.1";
|
|
11248
11248
|
|
|
11249
11249
|
// src/commands/sessions.ts
|
|
11250
11250
|
function relativeTime(iso) {
|
|
@@ -17817,8 +17817,8 @@ var promptsConfig = {
|
|
|
17817
17817
|
params.is_protected = "true";
|
|
17818
17818
|
return params;
|
|
17819
17819
|
},
|
|
17820
|
-
normalizeBody: (body) => {
|
|
17821
|
-
if ("content" in body) {
|
|
17820
|
+
normalizeBody: (body, action) => {
|
|
17821
|
+
if (action === "update" && "content" in body) {
|
|
17822
17822
|
throw new CLIError("`prompts update` changes metadata only and the server ignores `content`; change the text with " + "`martha prompts version <name> -f <file> --promote`", 4 /* Validation */);
|
|
17823
17823
|
}
|
|
17824
17824
|
return body;
|