@lazyingart/agintiflow 0.4.0 → 0.4.1

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/package.json +1 -1
  2. package/src/cli.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazyingart/agintiflow",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
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",
package/src/cli.js CHANGED
@@ -306,6 +306,11 @@ async function handleSessionsCommand(argv) {
306
306
  }
307
307
 
308
308
  export async function main(argv = process.argv.slice(2)) {
309
+ if (argv[0] === "--version" || argv[0] === "version" || argv[0] === "-v") {
310
+ console.log(packageJson.version);
311
+ return;
312
+ }
313
+
309
314
  if (argv[0] === "init") {
310
315
  printInitResult(await initProject(process.cwd()));
311
316
  return;