@yaag/extension 0.8.1 → 0.8.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/docs/cli.md CHANGED
@@ -55,7 +55,7 @@ Runs an Orchestration Program. It maps to `yaag run`.
55
55
  | `script` | `--eval-fd` | Inline source. It can import `@yaag/runtime` and `typebox` only. |
56
56
  | `args` | `--args <json>` | A JSON object string. |
57
57
  | `background` | none | Extension only. Starts the Run and returns its Run id. |
58
- | `record` | `--record <file>` | Writes the Cassette here. |
58
+ | `record` | `--record <file>` | Writes the Cassette here. yaag makes a missing directory of this path, and stops the Run at the start when it cannot. |
59
59
  | `resume` | `--resume <file>` | Replays matching Asks, then continues live. |
60
60
  | `config` | `--config <file>` | Reads one more config file for this Run. |
61
61
  | `noConfig` | `--no-config` | Ignores the global config and the project config. |
@@ -36,11 +36,22 @@ Agent a model the machine can reach. A `model` list falls back on `auth`.
36
36
 
37
37
  > failed to publish cassette
38
38
 
39
- Cause: yaag could not write the Cassette. Most often the parent directory of
40
- the `--record` path does not exist, or it is not writable.
39
+ Cause: yaag could not write the Cassette. The destination is not writable, or
40
+ something else occupies the name.
41
41
 
42
- Fix: create the directory first, then run again. The Run keeps its result; only
43
- the recording failed.
42
+ Fix: give a writable path, then run again.
43
+
44
+ ## cannot create the Cassette directory
45
+
46
+ <!-- quote: @yaag/runtime/src/cassette/run-checkpoint.ts -->
47
+
48
+ > cannot create the Cassette directory
49
+
50
+ Cause: yaag makes a missing directory of the `--record` path, and this one
51
+ could not be made. A name on the path is a file, or a parent refuses a write.
52
+
53
+ Fix: give a `--record` path yaag can make. The Run stops at the start, before
54
+ the first Agent, so no work is lost.
44
55
 
45
56
  ## Replay or resume mismatch
46
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaag/extension",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@earendil-works/pi-tui": "^0.84.0",
28
- "@yaag/cli": "0.8.1",
29
- "@yaag/runtime": "0.8.1",
30
- "@yaag/tui": "0.8.1",
28
+ "@yaag/cli": "0.8.2",
29
+ "@yaag/runtime": "0.8.2",
30
+ "@yaag/tui": "0.8.2",
31
31
  "nanoid": "^6.0.1"
32
32
  },
33
33
  "peerDependencies": {