zoodealio 0.4.2-dev.1928 → 0.4.2-dev.1935
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/package.json +1 -1
- package/src/commands.js +4 -4
package/package.json
CHANGED
package/src/commands.js
CHANGED
|
@@ -2,7 +2,7 @@ const { usage } = require('./errors');
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef {{name: string, type: 'string' | 'boolean', description: string, multiple?: boolean,
|
|
5
|
-
* required?: boolean, query?: string}} Flag
|
|
5
|
+
* required?: boolean, query?: string, hidden?: boolean}} Flag
|
|
6
6
|
* @typedef {{name: string, description: string, guid?: boolean}} Arg
|
|
7
7
|
* @typedef {{name: string, summary: string, method: string | null, path: string | null, args: Arg[],
|
|
8
8
|
* flags: Flag[], body?: 'required' | 'optional', convenience?: string[], destructive?: boolean,
|
|
@@ -172,7 +172,6 @@ const COMMANDS = [
|
|
|
172
172
|
' Claude Code: claude mcp add --scope user zoodealio -- zoodealio mcp',
|
|
173
173
|
' Claude Desktop,',
|
|
174
174
|
' Cursor, VS Code: {"command": "zoodealio", "args": ["mcp"]}',
|
|
175
|
-
'Add --env dev to the args for the dev environment.',
|
|
176
175
|
],
|
|
177
176
|
}),
|
|
178
177
|
cmd('whoami', 'Check the API key and show the target origin', 'GET', '/openapi/Webhooks/event-types'),
|
|
@@ -188,7 +187,8 @@ const GUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
|
188
187
|
|
|
189
188
|
/** Flags accepted by every command. */
|
|
190
189
|
const GLOBAL_FLAGS = /** @type {Flag[]} */ ([
|
|
191
|
-
|
|
190
|
+
// Internal environment selector: accepted but not advertised (see CONTRIBUTING.md).
|
|
191
|
+
{ ...str('env', 'prod or dev (default prod; dev on a dev build); ZOODEALIO_API_URL overrides'), hidden: true },
|
|
192
192
|
{ name: 'pretty', type: 'boolean', description: 'Pretty-print JSON even when piped' },
|
|
193
193
|
{ name: 'dry-run', type: 'boolean', description: 'Print the request (key redacted) without sending it' },
|
|
194
194
|
{ name: 'yes', type: 'boolean', description: 'Confirm a destructive command (not needed with --dry-run)' },
|
|
@@ -250,7 +250,7 @@ function helpText(prefix) {
|
|
|
250
250
|
}
|
|
251
251
|
for (const c of matches) lines.push(` ${c.name.padEnd(28)}${c.summary}`);
|
|
252
252
|
lines.push('', 'Global flags:');
|
|
253
|
-
for (const f of GLOBAL_FLAGS) lines.push(` --${f.name.padEnd(10)}${f.description}`);
|
|
253
|
+
for (const f of GLOBAL_FLAGS.filter((g) => !g.hidden)) lines.push(` --${f.name.padEnd(10)}${f.description}`);
|
|
254
254
|
lines.push('', 'Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 conflict/validation, 6 rate limited.');
|
|
255
255
|
}
|
|
256
256
|
return `${lines.join('\n')}\n`;
|