@aexhq/cli 0.26.1 → 0.28.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +5 -4
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> [message]
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.output(schema, input === "" ? undefined : input);
79
+ const result = await session.send(input, { output: schema });
78
80
  print(result);
79
81
  return;
80
82
  }
@@ -114,7 +116,11 @@ async function sessionCommand(aex, argv) {
114
116
  function summary(session) {
115
117
  return {
116
118
  id: session.id,
119
+ parentId: session.parentId,
120
+ rootId: session.rootId,
121
+ depth: session.depth,
117
122
  state: session.state,
123
+ turnState: session.turnState,
118
124
  model: session.model,
119
125
  createdAt: session.createdAt,
120
126
  updatedAt: session.updatedAt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/cli",
3
- "version": "0.26.1",
3
+ "version": "0.28.0",
4
4
  "description": "Command-line client for Aex sessions",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://aex.dev",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "publishConfig": {
17
17
  "access": "public",
18
- "provenance": true
18
+ "provenance": true,
19
+ "tag": "next"
19
20
  },
20
21
  "bin": {
21
22
  "aex": "./dist/index.js"
@@ -29,8 +30,8 @@
29
30
  "test": "tsc -p tsconfig.json && node --test"
30
31
  },
31
32
  "dependencies": {
32
- "@aexhq/sdk": "0.55.1",
33
- "zod": "^4.0.0"
33
+ "@aexhq/sdk": "0.57.0",
34
+ "zod": "4.4.3"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/node": "^24.0.0",