@agent-commons/cli 0.4.0 → 0.5.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/bin.js +7 -4
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -178,7 +178,7 @@ var sym = {
|
|
|
178
178
|
bullet: import_chalk.default.dim("\u2022"),
|
|
179
179
|
dot: import_chalk.default.dim("\xB7")
|
|
180
180
|
};
|
|
181
|
-
function banner(version = "0.
|
|
181
|
+
function banner(version = "0.5.0") {
|
|
182
182
|
console.log("");
|
|
183
183
|
console.log(import_chalk.default.cyan(" \u25C7"));
|
|
184
184
|
console.log(import_chalk.default.cyan(" \u256D\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E"));
|
|
@@ -887,7 +887,7 @@ function sessionsCommand() {
|
|
|
887
887
|
const spinner = spin("Fetching sessions\u2026");
|
|
888
888
|
try {
|
|
889
889
|
const client = makeClient();
|
|
890
|
-
const agentId2 = opts.agent
|
|
890
|
+
const agentId2 = opts.agent;
|
|
891
891
|
const res = agentId2 ? await client.sessions.list(agentId2, cfg.initiator) : await client.sessions.listByUser(cfg.initiator);
|
|
892
892
|
const sessions = res?.data ?? res ?? [];
|
|
893
893
|
spinner.stop();
|
|
@@ -1241,7 +1241,10 @@ ${sym.ok} Authorize the connection in your browser:`);
|
|
|
1241
1241
|
["Account", connection.providerUserEmail ?? connection.providerUserName ?? ""],
|
|
1242
1242
|
["Status", connection.status],
|
|
1243
1243
|
["Scopes", connection.scopes.join(", ")],
|
|
1244
|
-
[
|
|
1244
|
+
[
|
|
1245
|
+
"Expires",
|
|
1246
|
+
connection.accessTokenExpiresAt ?? connection.expiresAt ?? c.dim("(does not expire)")
|
|
1247
|
+
]
|
|
1245
1248
|
]);
|
|
1246
1249
|
} catch (err) {
|
|
1247
1250
|
spinner.stop();
|
|
@@ -5471,7 +5474,7 @@ async function pickAgentInteractively(action) {
|
|
|
5471
5474
|
return agentId2;
|
|
5472
5475
|
}
|
|
5473
5476
|
var program = new import_commander22.Command();
|
|
5474
|
-
program.name("agc").description("Agent Commons CLI \u2014 interact with the Agent Commons platform").version("0.
|
|
5477
|
+
program.name("agc").description("Agent Commons CLI \u2014 interact with the Agent Commons platform").version("0.5.0", "-v, --version").showHelpAfterError("(run `agc --help` for usage)").configureHelp({
|
|
5475
5478
|
sortOptions: true,
|
|
5476
5479
|
sortSubcommands: true
|
|
5477
5480
|
}).addHelpText(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-commons/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Official Agent Commons CLI for building, running, and managing AI agents from the terminal",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"commander": "^12.1.0",
|
|
38
38
|
"ora": "^8.1.1",
|
|
39
39
|
"pdf-parse": "^1.1.1",
|
|
40
|
-
"@agent-commons/sdk": "0.
|
|
40
|
+
"@agent-commons/sdk": "0.6.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.10.2",
|