@kivacore/cli 0.13.0 → 0.13.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 CHANGED
@@ -36,6 +36,23 @@ 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 an agent opens with it as the
42
+ first message, already sent:
43
+
44
+ ```bash
45
+ kiva "summarize what changed in this repo this week" # Work Agent
46
+ kiva "create a purchasing management app for my company" # Coding Agent
47
+ ```
48
+
49
+ Kiva picks the agent from the prompt: the Coding Agent when it asks to build or
50
+ change software, the Work Agent for everything else, and whenever you are
51
+ logged out or the choice cannot be made within a few seconds. To choose
52
+ yourself, name the agent: `kiva work "<prompt>"` or `kiva code "<prompt>"`.
53
+ The same options apply (`kiva --thinking high "..."`). The prompt must be
54
+ quoted: a single word is still read as a command.
55
+
39
56
  ## AI provider for `kiva work` and `kiva code`
40
57
 
41
58
  Once you are logged in (`kiva auth login`), both agents run on the Kiva AI
@@ -322,7 +339,8 @@ kiva dsql query "<sql>" --json
322
339
  kiva dsql generate "open tasks assigned to me" --json
323
340
  kiva dsql ask "how many tasks are open?" --json
324
341
  kiva dsql schema app base --json
325
- kiva dsql schema data-source base task --json
342
+ kiva dsql schema data-source base task --json # lists each enum field's option ids and labels; --no-expand-enums omits them
343
+ kiva dsql schema app base --expand-enums --json
326
344
  kiva dsql list-custom-query --appSlug base --json
327
345
  kiva dsql create-custom-query --appSlug base --name "Open Tasks" --dsqlQuery "<sql>" --fields '<json>' --json
328
346
  kiva dsql run-custom-query --queryId "<id>" --json
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
- if (params.settingsManager.getDefaultProvider()) {
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
  }