travel-agent-cli 0.4.4 → 0.4.5
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/interactive.jsx +1 -2
- package/package.json +1 -1
package/interactive.jsx
CHANGED
|
@@ -7,7 +7,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
7
7
|
import { render, Box, Text, useApp, useInput } from 'ink';
|
|
8
8
|
import TextInput from 'ink-text-input';
|
|
9
9
|
import chalk from 'chalk';
|
|
10
|
-
import { spawn } from 'child_process';
|
|
10
|
+
import { spawn, execSync } from 'child_process';
|
|
11
11
|
import path from 'path';
|
|
12
12
|
import { fileURLToPath } from 'url';
|
|
13
13
|
|
|
@@ -31,7 +31,6 @@ const commands = [
|
|
|
31
31
|
|
|
32
32
|
// 查找 Python 命令
|
|
33
33
|
function findPython() {
|
|
34
|
-
const { execSync } = require('child_process');
|
|
35
34
|
const candidates = ['python3', 'python'];
|
|
36
35
|
|
|
37
36
|
for (const cmd of candidates) {
|