@camelai/camelrun 0.11.1 → 0.11.2
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/README.md +0 -1
- package/dist/cli.js +2 -2
- package/dist/config.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -197,9 +197,9 @@ async function login(flags, io, print) {
|
|
|
197
197
|
let apiKey = flags["api-key"] || io.env.CAMELAI_API_KEY;
|
|
198
198
|
if (!apiKey) {
|
|
199
199
|
if (!process.stdin.isTTY)
|
|
200
|
-
throw new UsageError("Pass --api-key art_… (or set CAMELAI_API_KEY)
|
|
200
|
+
throw new UsageError("Pass --api-key art_… (or set CAMELAI_API_KEY). Create one at https://run.camelai.com/console/tokens. Coding agents: read https://run.camelai.com/SKILL.md");
|
|
201
201
|
const prompt = createInterface({ input: process.stdin, output: process.stderr });
|
|
202
|
-
apiKey = (await prompt.question("API key (
|
|
202
|
+
apiKey = (await prompt.question("API key (create one at https://run.camelai.com/console/tokens): ")).trim();
|
|
203
203
|
prompt.close();
|
|
204
204
|
}
|
|
205
205
|
const url = flags.url || io.env.CAMELAI_URL || DEFAULT_URL;
|
package/dist/config.js
CHANGED
|
@@ -37,6 +37,6 @@ export function resolve(flags, env = process.env) {
|
|
|
37
37
|
const saved = readSaved(env);
|
|
38
38
|
const apiKey = flags.apiKey || env.CAMELAI_API_KEY || saved.apiKey;
|
|
39
39
|
if (!apiKey)
|
|
40
|
-
throw new Error("No API key: run `camelrun login`, or set CAMELAI_API_KEY
|
|
40
|
+
throw new Error("No API key: run `camelrun login`, or set CAMELAI_API_KEY. Create one at https://run.camelai.com/console/tokens. Coding agents: read https://run.camelai.com/SKILL.md");
|
|
41
41
|
return { apiKey, url: flags.url || env.CAMELAI_URL || saved.url || DEFAULT_URL };
|
|
42
42
|
}
|
package/package.json
CHANGED