@betterness/cli 1.1.0 → 1.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.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ var ApiClient = class {
|
|
|
92
92
|
constructor(options = {}) {
|
|
93
93
|
const credentials = resolveCredentials(options.apiKey);
|
|
94
94
|
this.apiKey = credentials.apiKey;
|
|
95
|
-
const apiUrl = "https://api.betterness.
|
|
95
|
+
const apiUrl = "https://api.betterness.ai";
|
|
96
96
|
if (!apiUrl) {
|
|
97
97
|
throw new CliError(
|
|
98
98
|
"No API URL configured. This is a build error \u2014 BETTERNESS_API_URL should be baked in at build time.",
|
|
@@ -125,7 +125,7 @@ var ApiClient = class {
|
|
|
125
125
|
headers: {
|
|
126
126
|
"Authorization": `Bearer ${this.apiKey}`,
|
|
127
127
|
"Content-Type": "application/json",
|
|
128
|
-
"User-Agent": `betterness-cli/${"1.1.
|
|
128
|
+
"User-Agent": `betterness-cli/${"1.1.1"}`,
|
|
129
129
|
"Accept": "application/json"
|
|
130
130
|
},
|
|
131
131
|
body: body ? JSON.stringify(body) : void 0,
|
|
@@ -189,7 +189,7 @@ var ApiClient = class {
|
|
|
189
189
|
method: "POST",
|
|
190
190
|
headers: {
|
|
191
191
|
"Authorization": `Bearer ${this.apiKey}`,
|
|
192
|
-
"User-Agent": `betterness-cli/${"1.1.
|
|
192
|
+
"User-Agent": `betterness-cli/${"1.1.1"}`,
|
|
193
193
|
"Accept": "application/json"
|
|
194
194
|
},
|
|
195
195
|
body: formData,
|
|
@@ -1819,8 +1819,8 @@ function registerDebugCommands(program2) {
|
|
|
1819
1819
|
const parentOpts = cmd.optsWithGlobals();
|
|
1820
1820
|
const authSource = parentOpts.apiKey ? "--api-key flag" : envKey ? "BETTERNESS_API_KEY env" : stored ? "~/.betterness/credentials.json" : "none";
|
|
1821
1821
|
const config = {
|
|
1822
|
-
version: "1.1.
|
|
1823
|
-
apiUrl: "https://api.betterness.
|
|
1822
|
+
version: "1.1.1",
|
|
1823
|
+
apiUrl: "https://api.betterness.ai",
|
|
1824
1824
|
authSource,
|
|
1825
1825
|
credentialsFile: credentialsPath,
|
|
1826
1826
|
credentialsExists: String(existsSync2(credentialsPath))
|
|
@@ -1846,7 +1846,7 @@ function registerDebugCommands(program2) {
|
|
|
1846
1846
|
// src/program.ts
|
|
1847
1847
|
function createProgram() {
|
|
1848
1848
|
const program2 = new Command();
|
|
1849
|
-
program2.name("betterness").description("Betterness CLI - Agent-first terminal interface for the Betterness platform").version("1.1.
|
|
1849
|
+
program2.name("betterness").description("Betterness CLI - Agent-first terminal interface for the Betterness platform").version("1.1.1").option("--api-key <key>", "API key (overrides env and stored credentials)").option("--json", "Output as JSON").option("--markdown", "Output as Markdown").option("--quiet", "Suppress output (exit code only)");
|
|
1850
1850
|
registerAuthCommands(program2);
|
|
1851
1851
|
registerProfileCommands(program2);
|
|
1852
1852
|
registerBiomarkersCommands(program2);
|