propelix-cli 0.1.0-dev2 → 0.1.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.
- package/dist/index.cjs +8 -3
- package/package.json +6 -7
package/dist/index.cjs
CHANGED
|
@@ -19874,6 +19874,9 @@ var CONVERSATION_MESSAGES_QUERY = `
|
|
|
19874
19874
|
id
|
|
19875
19875
|
from { type name }
|
|
19876
19876
|
text
|
|
19877
|
+
imageURLs
|
|
19878
|
+
presignedImageURLs
|
|
19879
|
+
fileAttachments { url name mimeType }
|
|
19877
19880
|
logID
|
|
19878
19881
|
responseAgentID
|
|
19879
19882
|
actions { name }
|
|
@@ -20414,11 +20417,13 @@ function registerConversationCommand(program3) {
|
|
|
20414
20417
|
messages: msgData.conversationMessages
|
|
20415
20418
|
};
|
|
20416
20419
|
output(result, parentOpts.format, {
|
|
20417
|
-
columns: ["id", "role", "text", "logID", "createdAt"],
|
|
20420
|
+
columns: ["id", "role", "text", "images", "files", "logID", "createdAt"],
|
|
20418
20421
|
rows: msgData.conversationMessages.items.map((m) => ({
|
|
20419
20422
|
id: m.id,
|
|
20420
20423
|
role: m.from.type,
|
|
20421
20424
|
text: m.text.length > 80 ? m.text.slice(0, 77) + "..." : m.text,
|
|
20425
|
+
images: m.imageURLs?.length ?? 0,
|
|
20426
|
+
files: m.fileAttachments?.length ?? 0,
|
|
20422
20427
|
logID: m.logID ?? "",
|
|
20423
20428
|
createdAt: m.createdAt
|
|
20424
20429
|
}))
|
|
@@ -21078,7 +21083,7 @@ function registerTestCommand(program3) {
|
|
|
21078
21083
|
|
|
21079
21084
|
// src/index.ts
|
|
21080
21085
|
var program2 = new Command();
|
|
21081
|
-
program2.name("propelix").description("Propelix CLI").version("0.1.
|
|
21086
|
+
program2.name("propelix").description("Propelix CLI").version("0.1.1").option("--base-url <url>", "API base URL (default: https://propelix.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--project-id <id>", "Project ID (overrides stored config)").option("--insecure", "Disable TLS certificate verification (for local dev)").option("--json", "Output as JSON (deprecated, use --format json)").option("--format <fmt>", "Output format: json (default) | table");
|
|
21082
21087
|
program2.hook("preAction", () => {
|
|
21083
21088
|
if (program2.opts().insecure) {
|
|
21084
21089
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
|
@@ -21097,7 +21102,7 @@ registerImageCommand(program2);
|
|
|
21097
21102
|
registerChatCommand(program2);
|
|
21098
21103
|
registerTestCommand(program2);
|
|
21099
21104
|
program2.command("version").description("Print version number").action(() => {
|
|
21100
|
-
console.log("0.1.
|
|
21105
|
+
console.log("0.1.1");
|
|
21101
21106
|
});
|
|
21102
21107
|
program2.command("whoami").description("Show the currently authenticated user").action(async () => {
|
|
21103
21108
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "propelix-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI for Propelix",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"bin": {
|
|
@@ -9,11 +9,6 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsup",
|
|
14
|
-
"dev": "tsup --watch",
|
|
15
|
-
"prepublishOnly": "pnpm run build"
|
|
16
|
-
},
|
|
17
12
|
"dependencies": {
|
|
18
13
|
"chalk": "^4.1.2",
|
|
19
14
|
"commander": "^12.1.0",
|
|
@@ -27,5 +22,9 @@
|
|
|
27
22
|
},
|
|
28
23
|
"engines": {
|
|
29
24
|
"node": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup",
|
|
28
|
+
"dev": "tsup --watch"
|
|
30
29
|
}
|
|
31
|
-
}
|
|
30
|
+
}
|