@openbat/cli 0.2.0 → 0.2.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.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var import_node_fs = require("fs");
|
|
|
42
42
|
var import_node_os = require("os");
|
|
43
43
|
var import_node_path = require("path");
|
|
44
44
|
var CONFIG_PATH = (0, import_node_path.join)((0, import_node_os.homedir)(), ".openbatrc");
|
|
45
|
-
var DEFAULT_BASE_URL = "https://
|
|
45
|
+
var DEFAULT_BASE_URL = "https://openbat.dev";
|
|
46
46
|
async function readConfig() {
|
|
47
47
|
try {
|
|
48
48
|
const st = (0, import_node_fs.statSync)(CONFIG_PATH);
|
|
@@ -418,7 +418,7 @@ function configCommand() {
|
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
420
|
cmd.command("set-url <baseUrl>").description(
|
|
421
|
-
"Override the OpenBat API base URL (default: https://
|
|
421
|
+
"Override the OpenBat API base URL (default: https://openbat.dev)"
|
|
422
422
|
).action(async (baseUrl) => {
|
|
423
423
|
try {
|
|
424
424
|
await setBaseUrl(baseUrl);
|
|
@@ -1721,9 +1721,9 @@ function sdkCommand() {
|
|
|
1721
1721
|
var program = new import_commander8.Command();
|
|
1722
1722
|
program.name("openbat").description(
|
|
1723
1723
|
"Query OpenBat chatbot data \u2014 conversations, sentiment, analytics, exports."
|
|
1724
|
-
).version("0.2.
|
|
1724
|
+
).version("0.2.1").option("--api-key <key>", "Override the stored Read API key (footgun \u2014 leaks into shell history)").option(
|
|
1725
1725
|
"--base-url <url>",
|
|
1726
|
-
"Override the OpenBat API base URL (defaults to ~/.openbatrc or https://
|
|
1726
|
+
"Override the OpenBat API base URL (defaults to ~/.openbatrc or https://openbat.dev)"
|
|
1727
1727
|
).option(
|
|
1728
1728
|
"--chatbot <id|name>",
|
|
1729
1729
|
"Override the active chatbot for this invocation (UUID or chatbot name)"
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { promises as fs, statSync, chmodSync } from "fs";
|
|
|
14
14
|
import { homedir } from "os";
|
|
15
15
|
import { join } from "path";
|
|
16
16
|
var CONFIG_PATH = join(homedir(), ".openbatrc");
|
|
17
|
-
var DEFAULT_BASE_URL = "https://
|
|
17
|
+
var DEFAULT_BASE_URL = "https://openbat.dev";
|
|
18
18
|
async function readConfig() {
|
|
19
19
|
try {
|
|
20
20
|
const st = statSync(CONFIG_PATH);
|
|
@@ -240,7 +240,7 @@ function configCommand() {
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
cmd.command("set-url <baseUrl>").description(
|
|
243
|
-
"Override the OpenBat API base URL (default: https://
|
|
243
|
+
"Override the OpenBat API base URL (default: https://openbat.dev)"
|
|
244
244
|
).action(async (baseUrl) => {
|
|
245
245
|
try {
|
|
246
246
|
await setBaseUrl(baseUrl);
|
|
@@ -1543,9 +1543,9 @@ function sdkCommand() {
|
|
|
1543
1543
|
var program = new Command8();
|
|
1544
1544
|
program.name("openbat").description(
|
|
1545
1545
|
"Query OpenBat chatbot data \u2014 conversations, sentiment, analytics, exports."
|
|
1546
|
-
).version("0.2.
|
|
1546
|
+
).version("0.2.1").option("--api-key <key>", "Override the stored Read API key (footgun \u2014 leaks into shell history)").option(
|
|
1547
1547
|
"--base-url <url>",
|
|
1548
|
-
"Override the OpenBat API base URL (defaults to ~/.openbatrc or https://
|
|
1548
|
+
"Override the OpenBat API base URL (defaults to ~/.openbatrc or https://openbat.dev)"
|
|
1549
1549
|
).option(
|
|
1550
1550
|
"--chatbot <id|name>",
|
|
1551
1551
|
"Override the active chatbot for this invocation (UUID or chatbot name)"
|