create-curb 1.31.0-preview.2 → 1.31.0-preview.3

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/RELEASE_NOTES.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ ### Added
3
+
4
+ - Kugelaudio.llm() runs any AI gateway model, and <WebSearch> searches the web (#192)
5
+
6
+
2
7
  ### Fixed
3
8
 
4
9
  - The follow-through number guard exempts only real calendar dates (#185)
@@ -42,7 +42,7 @@ Options:
42
42
  --stt <provider> kugelaudio | azure | deepgram | elevenlabs | openai (default kugelaudio)
43
43
  --llm <provider> kugelaudio | anthropic | openai | openai-compatible (default kugelaudio)
44
44
  --tts <provider> kugelaudio | cartesia | elevenlabs | openai (default kugelaudio)
45
- --model <id> LLM model id (default auto on KugelAudio: the model KugelAudio picks for the account)
45
+ --model <id> LLM model id (default auto on KugelAudio: KugelAudio's own LLM, on its AI gateway)
46
46
  --stt-model <id> STT model id (deepgram, elevenlabs, or openai only)
47
47
  --tts-model <id> TTS model id (provider default otherwise)
48
48
  --llm-base-url <url> Endpoint for --llm openai-compatible
@@ -319,7 +319,11 @@ function applyCliSelections() {
319
319
  if (answers.llm === "kugelaudio" && answers.agentModel === "auto" && !FRAMEWORK_TAKES_AUTO) {
320
320
  fail(`--model auto needs curb.js ${ownVersion}; ${frameworkSpec} does not take it. Choose one of: ${KUGELAUDIO_LLM_MODELS.join(", ")}.`);
321
321
  }
322
- if (answers.llm === "kugelaudio") validate("model", answers.agentModel, KUGELAUDIO_LLM_MODELS);
322
+ // This version's framework takes any model id of KugelAudio's AI gateway; an older one only its list.
323
+ if (answers.llm === "kugelaudio" && FRAMEWORK_TAKES_AUTO && !/^\S+$/.test(answers.agentModel)) {
324
+ fail(`Invalid --model "${answers.agentModel}". Pass a model id of KugelAudio's AI gateway, for example ${KUGELAUDIO_LLM_MODELS.join(", ")}.`);
325
+ }
326
+ if (answers.llm === "kugelaudio" && !FRAMEWORK_TAKES_AUTO) validate("model", answers.agentModel, KUGELAUDIO_LLM_MODELS);
323
327
  if (cli.llmBaseUrl) answers.llmBaseUrl = cli.llmBaseUrl;
324
328
  if (cli.sttModel !== undefined && (answers.stt === "kugelaudio" || answers.stt === "azure")) {
325
329
  fail(`--stt-model does not apply to --stt ${answers.stt}. Omit --stt-model for this provider.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-curb",
3
- "version": "1.31.0-preview.2",
3
+ "version": "1.31.0-preview.3",
4
4
  "description": "Create a Curb voice agent with one command. Voice agents, ready for production.",
5
5
  "keywords": [
6
6
  "curb",
@@ -13,8 +13,9 @@ machine without a browser). Run it in the background and read its output unpiped
13
13
  `| head` holds the link back until the command ends. There is no key to copy; never ask for a key in the chat. A `KUGELAUDIO_API_KEY` the user sets in `.env` or the environment (an
14
14
  API key from the dashboard, for CI or a server) also works and wins over the login. Another
15
15
  LLM (`anthropic()`, `openai()`, `openaiCompatible()`) is one `llm` prop away and brings its
16
- own key. A turn answered 403 `LLM_NOT_ENABLED` means the user's organization does not have
17
- KugelAudio's LLM yet (it comes with hosted agents): they ask
16
+ own key. `kugelaudio.llm({ model })` takes any model id of KugelAudio's AI gateway on the same
17
+ login, and `<WebSearch />` lets the model search the web on it. A turn answered 403
18
+ `MODEL_NOT_ENABLED` means the gateway does not serve the user's organization yet: they ask
18
19
  hello@kugelaudio.com, or the agent uses another LLM meanwhile.
19
20
 
20
21
  **Without a shell** (claude.ai, the Claude desktop chat), or when the person asks for it, build