create-curb 1.25.0-preview.7 → 1.25.0-preview.8

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
@@ -10,5 +10,6 @@
10
10
 
11
11
  ### Fixed
12
12
 
13
+ - No hang-up in the greeting, timeouts fail fast, --runs repeats scripted scenarios (#134)
13
14
  - A goodbye the model also wrote as text is heard once (#129)
14
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-curb",
3
- "version": "1.25.0-preview.7",
3
+ "version": "1.25.0-preview.8",
4
4
  "description": "Create a Curb voice agent with one command. Voice agents your coding agent can build and improve.",
5
5
  "keywords": [
6
6
  "curb",
@@ -34,12 +34,12 @@ npx curb test # the conversations in src/agent/*.scenario.ts, pass o
34
34
 
35
35
  `src/agent/*.scenario.ts` holds conversations that `npx curb test` plays in text: one with
36
36
  scripted caller lines, which must always pass, and one with a simulated caller that a second
37
- model plays. `npx curb test --runs 3` plays the simulated one three times and reports how often
37
+ model plays. `npx curb test --runs 3` plays each three times and reports how often
38
38
  it passed, what a judge found and how the agent talks. Text tests do not cover audio, timing or
39
39
  interruptions: listen to a call in `npm run dev` for those.
40
40
 
41
- `.github/workflows/curb-test.yml` runs `curb check` and `curb test` on every pull request once
42
- the repository has `KUGELAUDIO_API_KEY` as a secret (Settings > Secrets and variables > Actions).
41
+ `.github/workflows/curb-test.yml` runs `curb check` and `curb test` on every pull request, and
42
+ fails until the repository has `KUGELAUDIO_API_KEY` as a secret (Settings > Secrets and variables > Actions).
43
43
 
44
44
  ## Deploy to KugelAudio
45
45
 
@@ -5,8 +5,9 @@ name: curb test
5
5
  # Secrets and variables > Actions), an API key from the KugelAudio dashboard. An agent on
6
6
  # another provider needs that provider's key here instead, under the name its .env uses.
7
7
  #
8
- # A pull request from a fork gets no secrets, so the scenarios are skipped there and only
9
- # `curb check` runs.
8
+ # Without that secret the job fails on a pull request from this repository and on a run started
9
+ # by hand, so a missing key never passes as green. A pull request from a fork gets no secrets, so
10
+ # the scenarios are skipped there and only `curb check` runs.
10
11
 
11
12
  on:
12
13
  pull_request:
@@ -28,6 +29,11 @@ jobs:
28
29
  # CPU binaries ship in npm; this skips a download the tests do not need.
29
30
  ONNXRUNTIME_NODE_INSTALL: skip
30
31
  steps:
32
+ - name: The API key secret is set
33
+ if: env.KUGELAUDIO_API_KEY == '' && (github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository)
34
+ run: |
35
+ echo "::error::KUGELAUDIO_API_KEY is not set, so curb test cannot run the scenarios. Add it as a repository secret: Settings > Secrets and variables > Actions."
36
+ exit 1
31
37
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
38
  with:
33
39
  persist-credentials: false
@@ -41,3 +47,7 @@ jobs:
41
47
  - name: npx curb test
42
48
  if: env.KUGELAUDIO_API_KEY != ''
43
49
  run: npx curb test
50
+ # To take the simulated caller and the judge off the agent's provider, run them on OpenAI
51
+ # with OPENAI_API_KEY as a repository secret: replace the run line above with these two.
52
+ # env: { OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" }
53
+ # run: npx curb test --caller-model openai:gpt-5.4-mini --judge-model openai:gpt-5.4-mini
@@ -63,9 +63,9 @@ A fault in Curb itself is reported as `reporting-a-bug.md` says, with the person
63
63
  each tool call and the context it changed. The next `curb say` continues the
64
64
  conversation; `npx curb say --new "<first line>"` starts over (do that after a code change).
65
65
  3. `npx curb test --runs 3`: plays every `src/**/*.scenario.ts` conversation headlessly, in
66
- text. A scenario with scripted caller lines is a gate: it runs once and must pass. One with
67
- a simulated caller runs three times, because a model does not answer the same way twice,
68
- so read its pass rate, not one run. The scenarios this project starts with pass when two
66
+ text, three times each, because a model does not answer the same way twice. A scenario
67
+ with scripted caller lines is a gate: every run must pass. One with a simulated caller is
68
+ read by its pass rate, not one run. The scenarios this project starts with pass when two
69
69
  of three runs do (`minPassRate: 0.66`); raise that toward 1 once one passes every time. Then read what the report found: each `find` line
70
70
  names a turn and quotes it, the transcript of every failed run is printed, and the `Style`
71
71
  lines say how long the replies are and how often they repeat. A scenario marked flaky
@@ -44,12 +44,12 @@ Type or talk in the preview:
44
44
 
45
45
  `src/agent/*.scenario.ts` holds conversations that `npx curb test` plays in text: one with
46
46
  scripted caller lines, which must always pass, and one with a simulated caller that a second
47
- model plays. `npx curb test --runs 3` plays the simulated one three times and reports how often
47
+ model plays. `npx curb test --runs 3` plays each three times and reports how often
48
48
  it passed, what a judge found and how the agent talks. Text tests do not cover audio, timing or
49
49
  interruptions: listen to a call in `npm run dev` for those.
50
50
 
51
- `.github/workflows/curb-test.yml` runs `curb check` and `curb test` on every pull request once
52
- the repository has `KUGELAUDIO_API_KEY` as a secret (Settings > Secrets and variables >
51
+ `.github/workflows/curb-test.yml` runs `curb check` and `curb test` on every pull request, and
52
+ fails until the repository has `KUGELAUDIO_API_KEY` as a secret (Settings > Secrets and variables >
53
53
  Actions). Details: `node_modules/curb/docs/agent-guide/testing.md`.
54
54
 
55
55
  ## Deploy to KugelAudio
@@ -34,12 +34,12 @@ npx curb test # the conversations in src/agent/*.scenario.ts, pass o
34
34
 
35
35
  `src/agent/*.scenario.ts` holds conversations that `npx curb test` plays in text: one with
36
36
  scripted caller lines, which must always pass, and one with a simulated caller that a second
37
- model plays. `npx curb test --runs 3` plays the simulated one three times and reports how often
37
+ model plays. `npx curb test --runs 3` plays each three times and reports how often
38
38
  it passed, what a judge found and how the agent talks. Text tests do not cover audio, timing or
39
39
  interruptions: listen to a call in `npm run dev` for those.
40
40
 
41
- `.github/workflows/curb-test.yml` runs `curb check` and `curb test` on every pull request once
42
- the repository has `KUGELAUDIO_API_KEY` as a secret (Settings > Secrets and variables > Actions).
41
+ `.github/workflows/curb-test.yml` runs `curb check` and `curb test` on every pull request, and
42
+ fails until the repository has `KUGELAUDIO_API_KEY` as a secret (Settings > Secrets and variables > Actions).
43
43
 
44
44
  ## Deploy to KugelAudio
45
45