orquesta-cli 0.2.83 → 0.2.84

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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -32,6 +32,15 @@ import { shouldShowOnboarding, runOnboarding } from './core/onboarding.js';
32
32
  const require = createRequire(import.meta.url);
33
33
  const packageJson = require('../package.json');
34
34
  const program = new Command();
35
+ async function readPromptFromStdin() {
36
+ if (process.stdin.isTTY)
37
+ return '';
38
+ const chunks = [];
39
+ for await (const chunk of process.stdin) {
40
+ chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
41
+ }
42
+ return Buffer.concat(chunks).toString('utf-8').trim();
43
+ }
35
44
  async function resolveHookToken(explicitToken) {
36
45
  await configManager.initialize();
37
46
  const saved = configManager.getOrquestaConfig();
@@ -78,7 +87,7 @@ program
78
87
  .version(packageJson.version)
79
88
  .helpOption('-h, --help', 'Show help');
80
89
  program
81
- .option('-p, --print <prompt>', 'Execute a prompt and exit (non-interactive mode)')
90
+ .option('-p, --print [prompt]', 'Execute a prompt and exit (non-interactive mode). Omit the value to read the prompt from stdin — orquesta-agent uses this on Windows to dodge the cmd.exe command-line length limit.')
82
91
  .option('--dangerously-skip-permissions', 'Skip all permission prompts (auto-approve)')
83
92
  .option('--append-system-prompt <prompt>', 'Append text to the system prompt (parity with claude CLI; used by orquesta-agent sessions)')
84
93
  .option('--verbose', 'Enable verbose logging')
@@ -246,10 +255,13 @@ program
246
255
  return;
247
256
  }
248
257
  if (options.print) {
258
+ const prompt = typeof options.print === 'string'
259
+ ? options.print
260
+ : await readPromptFromStdin();
249
261
  const { EvalRunner } = await import('./eval/eval-runner.js');
250
262
  const runner = new EvalRunner();
251
263
  await runner.run({
252
- prompt: options.print,
264
+ prompt,
253
265
  working_dir: process.cwd(),
254
266
  });
255
267
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orquesta-cli",
3
- "version": "0.2.83",
3
+ "version": "0.2.84",
4
4
  "description": "Orquesta CLI - AI-powered coding assistant with team collaboration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",