@aexhq/cli 0.26.1 → 0.27.0
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/dist/index.js +4 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ Usage:
|
|
|
13
13
|
aex session list
|
|
14
14
|
aex session get <session-id>
|
|
15
15
|
aex session send <session-id> <message>
|
|
16
|
-
aex session output <session-id> --schema <schema.json>
|
|
16
|
+
aex session output <session-id> --schema <schema.json> <message>
|
|
17
17
|
aex session events <session-id>
|
|
18
18
|
aex session cancel <session-id>
|
|
19
19
|
aex session delete <session-id>
|
|
@@ -73,8 +73,10 @@ async function sessionCommand(aex, argv) {
|
|
|
73
73
|
const document = JSON.parse(await readFile(resolve(schemaPath), "utf8"));
|
|
74
74
|
const schema = z.fromJSONSchema(document);
|
|
75
75
|
const input = rest.join(" ").trim();
|
|
76
|
+
if (input === "")
|
|
77
|
+
usage("session output requires a message");
|
|
76
78
|
const session = await aex.sessions.get(id);
|
|
77
|
-
const result = await session.
|
|
79
|
+
const result = await session.send(input, { output: schema });
|
|
78
80
|
print(result);
|
|
79
81
|
return;
|
|
80
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aexhq/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Command-line client for Aex sessions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://aex.dev",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test": "tsc -p tsconfig.json && node --test"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aexhq/sdk": "0.
|
|
33
|
-
"zod": "
|
|
32
|
+
"@aexhq/sdk": "0.56.0",
|
|
33
|
+
"zod": "4.4.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^24.0.0",
|