@kivacore/cli 0.13.0 → 0.13.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/README.md +13 -0
- package/agent-loader.js +7 -1
- package/agent-loader.js.map +2 -2
- package/main.js +24 -2
- package/main.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,19 @@ In a terminal, an outdated `kiva` asks to update before running a command and
|
|
|
36
36
|
does not continue until it is up to date. Agents, scripts and CI only get a
|
|
37
37
|
one-line notice on stderr. Set `KIVA_SKIP_UPDATE_CHECK=1` to skip the check.
|
|
38
38
|
|
|
39
|
+
## Start with a prompt
|
|
40
|
+
|
|
41
|
+
Type what you want straight after `kiva` and the Work Agent opens with it as
|
|
42
|
+
the first message, already sent:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
kiva "summarize what changed in this repo this week"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
It is shorthand for `kiva work "<prompt>"`, so the same options apply
|
|
49
|
+
(`kiva --thinking high "..."`). The prompt must be quoted: a single word is
|
|
50
|
+
still read as a command.
|
|
51
|
+
|
|
39
52
|
## AI provider for `kiva work` and `kiva code`
|
|
40
53
|
|
|
41
54
|
Once you are logged in (`kiva auth login`), both agents run on the Kiva AI
|
package/agent-loader.js
CHANGED
|
@@ -58888,7 +58888,8 @@ async function shouldRunOnboarding(params) {
|
|
|
58888
58888
|
if (!params.isInteractive || params.isPrintMode) {
|
|
58889
58889
|
return false;
|
|
58890
58890
|
}
|
|
58891
|
-
|
|
58891
|
+
const defaultProvider = params.settingsManager.getDefaultProvider();
|
|
58892
|
+
if (defaultProvider && params.modelRuntime.hasConfiguredAuth(defaultProvider)) {
|
|
58892
58893
|
return false;
|
|
58893
58894
|
}
|
|
58894
58895
|
const existingProvider = await findExistingConfiguredProvider({
|
|
@@ -59606,6 +59607,11 @@ async function main() {
|
|
|
59606
59607
|
if (cliGateway.reason === "not-logged-in") {
|
|
59607
59608
|
process.stderr.write(
|
|
59608
59609
|
` ${import_picocolors2.default.dim(`Tip: run \`kiva auth login\` to use the ${KIVA_GATEWAY_PROVIDER_NAME} without an AI provider account of your own.`)}
|
|
59610
|
+
`
|
|
59611
|
+
);
|
|
59612
|
+
} else if (cliGateway.reason === "unavailable") {
|
|
59613
|
+
process.stderr.write(
|
|
59614
|
+
` ${import_picocolors2.default.dim(`The ${KIVA_GATEWAY_PROVIDER_NAME} is not available on this environment right now, so a provider of your own is needed.`)}
|
|
59609
59615
|
`
|
|
59610
59616
|
);
|
|
59611
59617
|
}
|