@youdie006/prodex 0.16.21 → 0.16.23
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/cli-help.js +2 -2
- package/dist/cli-pro.js +26 -5
- package/package.json +1 -1
package/dist/cli-help.js
CHANGED
|
@@ -27,7 +27,7 @@ Ask / consult commands:
|
|
|
27
27
|
prodex pro browser projects [--source-cli /absolute/path/to/dist/cli.js] [--port 9333] [--timeout-ms 15000] # read-only list of sidebar project names (for --project)
|
|
28
28
|
prodex pro browser ask [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo] [--port 9333] [--timeout-ms 90000] [--busy-wait-ms 600000] [--target-url url --confirm-target] [--new-chat] [--stdin] [--json] [--auto-login|--no-auto-login] [--file path] [--model Pro] [--pro-mode 기본|확장] [--effort 즉시|중간|높음|"매우 높음"] [--project "name" | --project-new "name"] "prompt" # explicit visible-browser send
|
|
29
29
|
prodex pro latest [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo]
|
|
30
|
-
prodex pro list [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo]
|
|
30
|
+
prodex pro list [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo] [--json]
|
|
31
31
|
prodex pro show <task-id|latest> [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo]
|
|
32
32
|
|
|
33
33
|
Bridge ledger (durable tasks/results/receipts/sessions under .bridge/):
|
|
@@ -167,7 +167,7 @@ Commands:
|
|
|
167
167
|
prodex pro browser models [--source-cli /absolute/path/to/dist/cli.js]
|
|
168
168
|
prodex pro browser ask [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo] [--target-url url --confirm-target] [--new-chat] [--stdin] [--json] [--auto-login|--no-auto-login] [--file path] [--model Pro] [--pro-mode 기본|확장] [--effort 즉시|중간|높음|"매우 높음"] [--project "name" | --project-new "name"] "prompt"
|
|
169
169
|
prodex pro latest [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo]
|
|
170
|
-
prodex pro list [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo]
|
|
170
|
+
prodex pro list [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo] [--json]
|
|
171
171
|
prodex pro show <task-id|latest> [--source-cli /absolute/path/to/dist/cli.js] [--cwd /absolute/path/to/repo]
|
|
172
172
|
|
|
173
173
|
Use \`prodex pro ask\` for dry-run/manual previews.
|
package/dist/cli-pro.js
CHANGED
|
@@ -296,9 +296,12 @@ export async function runProCommand(rest, io, runCliFn) {
|
|
|
296
296
|
return healthy ? 0 : 1;
|
|
297
297
|
}
|
|
298
298
|
if (browserSubcommand === "models") {
|
|
299
|
-
|
|
299
|
+
// --cwd is accepted (and ignored) for uniformity with the other pro
|
|
300
|
+
// browser subcommands: an agent that passes --cwd on every prodex call
|
|
301
|
+
// should not get "Unknown option" on a repo-independent sidebar read.
|
|
302
|
+
if (printProBrowserHelpIfRequested(browserArgs, "pro browser models", io, { valueFlags: ["--cwd", "--port", "--timeout-ms", "--source-cli"] }))
|
|
300
303
|
return 0;
|
|
301
|
-
assertOnlyOptions(browserArgs, "pro browser models", ["--port", "--timeout-ms", "--source-cli"]);
|
|
304
|
+
assertOnlyOptions(browserArgs, "pro browser models", ["--cwd", "--port", "--timeout-ms", "--source-cli"]);
|
|
302
305
|
const modelsSourceCli = resolveOptionalFileFlag(io.cwd, browserArgs, "--source-cli");
|
|
303
306
|
// Parse flags OUTSIDE the browser-error adapter: a flag-validation
|
|
304
307
|
// error is a usage error, not a browser blocker.
|
|
@@ -333,9 +336,11 @@ export async function runProCommand(rest, io, runCliFn) {
|
|
|
333
336
|
return 0;
|
|
334
337
|
}
|
|
335
338
|
if (browserSubcommand === "projects") {
|
|
336
|
-
|
|
339
|
+
// --cwd is accepted (and ignored) for uniformity with the other pro
|
|
340
|
+
// browser subcommands (see models above).
|
|
341
|
+
if (printProBrowserHelpIfRequested(browserArgs, "pro browser projects", io, { valueFlags: ["--cwd", "--port", "--timeout-ms", "--source-cli"] }))
|
|
337
342
|
return 0;
|
|
338
|
-
assertOnlyOptions(browserArgs, "pro browser projects", ["--port", "--timeout-ms", "--source-cli"]);
|
|
343
|
+
assertOnlyOptions(browserArgs, "pro browser projects", ["--cwd", "--port", "--timeout-ms", "--source-cli"]);
|
|
339
344
|
const projectsSourceCli = resolveOptionalFileFlag(io.cwd, browserArgs, "--source-cli");
|
|
340
345
|
const projectsPort = readPortFlag(browserArgs, "--port");
|
|
341
346
|
const projectsTimeoutMs = readPositiveIntegerFlag(browserArgs, "--timeout-ms");
|
|
@@ -369,12 +374,28 @@ export async function runProCommand(rest, io, runCliFn) {
|
|
|
369
374
|
if (subcommand === "list") {
|
|
370
375
|
if (printHelpIfRequested(proArgs, "pro list", io.stdout, printProHelp, { valueFlags: ["--cwd", "--source-cli"] }))
|
|
371
376
|
return 0;
|
|
372
|
-
assertOnlyOptions(proArgs, "pro list", ["--cwd", "--source-cli"]);
|
|
377
|
+
assertOnlyOptions(proArgs, "pro list", ["--cwd", "--source-cli"], ["--json"]);
|
|
373
378
|
const targetCwd = resolveCwdFlag(io.cwd, proArgs);
|
|
374
379
|
const targetStore = new BridgeStore(targetCwd);
|
|
375
380
|
const sourceCli = resolveOptionalFileFlag(io.cwd, proArgs, "--source-cli");
|
|
376
381
|
const answerOptions = { cwd: readFlag(proArgs, "--cwd") ? targetCwd : undefined };
|
|
377
382
|
const consults = await listConsultListEntries(targetStore);
|
|
383
|
+
if (proArgs.includes("--json")) {
|
|
384
|
+
// Structured mirror of the human tab output, for agents (empty = valid []).
|
|
385
|
+
const items = consults.map((entry) => entry.kind === "untrusted"
|
|
386
|
+
? {
|
|
387
|
+
task_id: entry.task.id,
|
|
388
|
+
status: "untrusted",
|
|
389
|
+
summary: sourceAwareResultMessage(errorMessage(entry.error), sourceCli, answerOptions)
|
|
390
|
+
}
|
|
391
|
+
: {
|
|
392
|
+
task_id: entry.consult.task.id,
|
|
393
|
+
status: entry.consult.result.status,
|
|
394
|
+
summary: formatProListSummary(entry.consult, sourceCli, answerOptions)
|
|
395
|
+
});
|
|
396
|
+
io.stdout(JSON.stringify(items, null, 2));
|
|
397
|
+
return 0;
|
|
398
|
+
}
|
|
378
399
|
if (consults.length === 0) {
|
|
379
400
|
io.stdout("No GPT Pro consults yet. Run `prodex ask \"...\"` to create one.");
|
|
380
401
|
return 0;
|