@defai.digital/automatosx 5.6.6 → 5.6.7

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/README.md CHANGED
@@ -7,12 +7,13 @@ AutomatosX is a CLI-first orchestration tool that transforms stateless AI assist
7
7
  [![npm version](https://img.shields.io/npm/v/@defai.digital/automatosx.svg)](https://www.npmjs.com/package/@defai.digital/automatosx)
8
8
  [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
9
9
  [![TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue.svg)](https://www.typescriptlang.org/)
10
- [![Tests](https://img.shields.io/badge/tests-2,291%20passing-brightgreen.svg)](#)
10
+ [![Tests](https://img.shields.io/badge/tests-1,667%20passing-brightgreen.svg)](#)
11
+ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/defai-digital/automatosx/ci.yml?branch=main&label=CI)](https://github.com/defai-digital/automatosx/actions)
11
12
  [![macOS](https://img.shields.io/badge/macOS-26.0-blue.svg)](https://www.apple.com/macos)
12
13
  [![Windows](https://img.shields.io/badge/Windows-10+-blue.svg)](https://www.microsoft.com/windows)
13
14
  [![Ubuntu](https://img.shields.io/badge/Ubuntu-24.04-orange.svg)](https://ubuntu.com)
14
15
 
15
- **Status**: ✅ Production Ready · **v5.6.6** · October 2025
16
+ **Status**: ✅ Production Ready · **v5.6.7** · October 2025
16
17
 
17
18
  ---
18
19
 
package/dist/index.js CHANGED
@@ -2244,11 +2244,18 @@ This is a placeholder response. Set AUTOMATOSX_MOCK_PROVIDERS=false to use real
2244
2244
  let hasTimedOut = false;
2245
2245
  const args = [];
2246
2246
  args.push("--approval-mode", "auto_edit");
2247
- args.push(prompt);
2248
2247
  const child = spawn2(this.config.command, args, {
2249
2248
  stdio: ["pipe", "pipe", "pipe"],
2249
+ // Enable stdin for prompt input
2250
2250
  env: process.env
2251
2251
  });
2252
+ try {
2253
+ child.stdin?.write(prompt);
2254
+ child.stdin?.end();
2255
+ } catch (error) {
2256
+ reject(new Error(`Failed to write prompt to Gemini CLI stdin: ${error.message}`));
2257
+ return;
2258
+ }
2252
2259
  if (request.signal) {
2253
2260
  request.signal.addEventListener("abort", () => {
2254
2261
  hasTimedOut = true;
@@ -2460,11 +2467,18 @@ This is a placeholder response. Set AUTOMATOSX_MOCK_PROVIDERS=false to use real
2460
2467
  let stderr = "";
2461
2468
  let hasTimedOut = false;
2462
2469
  const args = this.buildCLIArgs(request);
2463
- args.push(prompt);
2464
2470
  const child = spawn2(this.config.command, args, {
2465
2471
  stdio: ["pipe", "pipe", "pipe"],
2472
+ // Enable stdin for prompt input
2466
2473
  env: process.env
2467
2474
  });
2475
+ try {
2476
+ child.stdin?.write(prompt);
2477
+ child.stdin?.end();
2478
+ } catch (error) {
2479
+ reject(new Error(`Failed to write prompt to Codex CLI stdin: ${error.message}`));
2480
+ return;
2481
+ }
2468
2482
  if (request.signal) {
2469
2483
  request.signal.addEventListener("abort", () => {
2470
2484
  hasTimedOut = true;
@@ -2623,11 +2637,18 @@ This is a placeholder streaming response.`;
2623
2637
  let hasTimedOut = false;
2624
2638
  const args = this.buildCLIArgs(request);
2625
2639
  args.push("--stream");
2626
- args.push(prompt);
2627
2640
  const child = spawn2(this.config.command, args, {
2628
2641
  stdio: ["pipe", "pipe", "pipe"],
2642
+ // Enable stdin for prompt input
2629
2643
  env: process.env
2630
2644
  });
2645
+ try {
2646
+ child.stdin?.write(prompt);
2647
+ child.stdin?.end();
2648
+ } catch (error) {
2649
+ reject(new Error(`Failed to write prompt to Codex CLI stdin: ${error.message}`));
2650
+ return;
2651
+ }
2631
2652
  if (request.signal) {
2632
2653
  request.signal.addEventListener("abort", () => {
2633
2654
  hasTimedOut = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defai.digital/automatosx",
3
- "version": "5.6.6",
3
+ "version": "5.6.7",
4
4
  "description": "AI Agent Orchestration Platform",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "release:check": "node tools/check-release.js",
40
40
  "check:size": "bash tools/check-package-size.sh",
41
41
  "tools:check": "bash -c 'echo \"🔍 Checking shell scripts syntax...\"; for f in tools/*.sh; do echo \" Checking $f...\"; bash -n \"$f\" && echo \" ✓ $f OK\" || echo \" ✗ $f FAILED\"; done; echo \"✅ All tools checked\"'",
42
- "prepare": "husky",
42
+ "prepare": "[ -n \"$CI\" ] || husky",
43
43
  "commit": "cz",
44
44
  "release": "standard-version",
45
45
  "release:minor": "standard-version --release-as minor",