@aexhq/cli 0.32.1 → 0.33.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/dist/index.js +8 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ async function main(argv) {
30
30
  }
31
31
  const aex = await client();
32
32
  if (command === "doctor") {
33
- await aex.listSessions();
33
+ await aex.sessions.list();
34
34
  process.stdout.write("Aex API: ok\n");
35
35
  return;
36
36
  }
@@ -42,12 +42,12 @@ async function sessionCommand(aex, argv) {
42
42
  const [command, id, ...tail] = argv;
43
43
  switch (command) {
44
44
  case "list": {
45
- print(await aex.listSessions());
45
+ print(await aex.sessions.list());
46
46
  return;
47
47
  }
48
48
  case "get": {
49
49
  requireId(id, command);
50
- print((await aex.getSession(id)).state);
50
+ print((await aex.sessions.get(id)).state);
51
51
  return;
52
52
  }
53
53
  case "send": {
@@ -55,13 +55,13 @@ async function sessionCommand(aex, argv) {
55
55
  const message = tail.join(" ").trim();
56
56
  if (message === "")
57
57
  usage("session send requires a message");
58
- const session = await aex.getSession(id);
58
+ const session = await aex.sessions.get(id);
59
59
  print(await session.send(message));
60
60
  return;
61
61
  }
62
62
  case "events": {
63
63
  requireId(id, command);
64
- const session = await aex.getSession(id);
64
+ const session = await aex.sessions.get(id);
65
65
  const controller = new AbortController();
66
66
  process.once("SIGINT", () => controller.abort());
67
67
  try {
@@ -77,20 +77,20 @@ async function sessionCommand(aex, argv) {
77
77
  }
78
78
  case "cancel": {
79
79
  requireId(id, command);
80
- const session = await aex.getSession(id);
80
+ const session = await aex.sessions.get(id);
81
81
  await session.cancel();
82
82
  print(session.state);
83
83
  return;
84
84
  }
85
85
  case "end": {
86
86
  requireId(id, command);
87
- const session = await aex.getSession(id);
87
+ const session = await aex.sessions.get(id);
88
88
  print(await session.end());
89
89
  return;
90
90
  }
91
91
  case "delete": {
92
92
  requireId(id, command);
93
- const session = await aex.getSession(id);
93
+ const session = await aex.sessions.get(id);
94
94
  await session.delete();
95
95
  return;
96
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/cli",
3
- "version": "0.32.1",
3
+ "version": "0.33.1",
4
4
  "description": "Command-line client for Aex sessions",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://aex.dev",
@@ -30,7 +30,7 @@
30
30
  "test": "tsc -p tsconfig.json && node --test"
31
31
  },
32
32
  "dependencies": {
33
- "@aexhq/sdk": "0.64.1"
33
+ "@aexhq/sdk": "0.65.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^24.0.0",