@lazyingart/agintiflow 0.8.1 → 0.8.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazyingart/agintiflow",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "description": "AgInTiFlow is a resumable Playwright website-control agent with OpenAI-compatible tool calling.",
6
6
  "license": "Apache-2.0",
@@ -9,12 +9,10 @@ const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."
9
9
  const runtimeDir = await fs.mkdtemp(path.join(os.tmpdir(), "agintiflow-api-smoke-"));
10
10
  const port = 43000 + Math.floor(Math.random() * 1000);
11
11
  const baseUrl = `http://127.0.0.1:${port}`;
12
- const server = spawn(process.execPath, [path.join(repoRoot, "web.js")], {
12
+ const server = spawn(process.execPath, [path.join(repoRoot, "bin/aginti-cli.js"), "web", "--port", String(port), "--host", "127.0.0.1"], {
13
13
  cwd: runtimeDir,
14
14
  env: {
15
15
  ...process.env,
16
- PORT: String(port),
17
- HOST: "127.0.0.1",
18
16
  AGINTIFLOW_RUNTIME_DIR: runtimeDir,
19
17
  },
20
18
  stdio: ["ignore", "pipe", "pipe"],
package/src/cli.js CHANGED
@@ -469,11 +469,6 @@ export async function main(argv = process.argv.slice(2)) {
469
469
 
470
470
  const args = parseArgs(argv);
471
471
 
472
- if (args.interactive || (!args.goal && !args.resume && process.stdin.isTTY)) {
473
- await startInteractiveCli(agentDefaults(args), { packageDir, packageVersion: packageJson.version });
474
- return;
475
- }
476
-
477
472
  if (args.web) {
478
473
  if (args.port) process.env.PORT = String(args.port);
479
474
  if (args.host) process.env.HOST = String(args.host);
@@ -482,6 +477,11 @@ export async function main(argv = process.argv.slice(2)) {
482
477
  return;
483
478
  }
484
479
 
480
+ if (args.interactive || (!args.goal && !args.resume && process.stdin.isTTY)) {
481
+ await startInteractiveCli(agentDefaults(args), { packageDir, packageVersion: packageJson.version });
482
+ return;
483
+ }
484
+
485
485
  if (args.listRoutes) {
486
486
  printRoutes();
487
487
  return;