parley-live 0.4.1 → 0.4.2
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/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { readFileSync, existsSync, mkdirSync, readdirSync, statSync } from 'node:fs';
|
|
18
18
|
import path from 'node:path';
|
|
19
19
|
import { api, authWebUrl, backendUrl, clearCredentials, CliError, downloadTo, fileToDataUri, isUrl, loadCredentials, loadLast, openInBrowser, rememberLast, resolveRef, saveCredentials, sleep, } from './client.js';
|
|
20
|
-
const VERSION = '0.4.
|
|
20
|
+
const VERSION = '0.4.2';
|
|
21
21
|
/** Server advice written for Parley's in-app agent names its tools; a CLI user
|
|
22
22
|
* has commands instead, so the same advice is re-spoken in CLI terms. */
|
|
23
23
|
function humanizeServerMessage(message) {
|
|
@@ -861,8 +861,13 @@ async function cmdDeploy(p) {
|
|
|
861
861
|
* shots, renders and reels live here). Prints the JSON reply.
|
|
862
862
|
*/
|
|
863
863
|
async function cmdApi(p) {
|
|
864
|
-
const [methodRaw,
|
|
864
|
+
const [methodRaw, pathRaw] = p.positionals;
|
|
865
865
|
const method = (methodRaw || '').toUpperCase();
|
|
866
|
+
// Git Bash on Windows (Claude Code's terminal there) rewrites a leading "/api/x"
|
|
867
|
+
// into "C:/Program Files/Git/api/x" before node sees it (MSYS path conversion).
|
|
868
|
+
// Undo it so the documented form works everywhere; MSYS_NO_PATHCONV=1 also disables it.
|
|
869
|
+
const mangled = /^[A-Za-z]:[\\/].*?[\\/](api|v1|video|files|health)(?=[\\/]|$)(.*)$/.exec(pathRaw || '');
|
|
870
|
+
const pathname = mangled ? `/${mangled[1]}${mangled[2].replace(/\\/g, '/')}` : pathRaw;
|
|
866
871
|
if (!['GET', 'POST', 'PUT', 'PATCH', 'DELETE'].includes(method) || !pathname || !pathname.startsWith('/')) {
|
|
867
872
|
throw new CliError('Usage: parley api <GET|POST|PATCH|PUT|DELETE> </path> [--data \'{"json":true}\' | --data @body.json]');
|
|
868
873
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parley-live",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Generate images, video clips with named camera moves, narration, YouTube thumbnails, product ads, complete videos and Studio films, and deploy static sites, from the terminal with Parley. Built for coding agents: every command has a --json mode.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|