@khalilgharbaoui/opencode-claude-code-plugin 0.60.0 → 0.60.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/dist/index.d.ts +12 -12
- package/dist/index.js +232 -64
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/claude-code-plugin/SKILL.md +84 -13
package/dist/index.d.ts
CHANGED
|
@@ -1634,22 +1634,22 @@ declare class ClaudeCodeLanguageModel implements LanguageModelV3 {
|
|
|
1634
1634
|
* switch, and outside `runModelChain` on purpose: an account switch starts
|
|
1635
1635
|
* that account's own model chain from the top.
|
|
1636
1636
|
*
|
|
1637
|
-
* Anything but `"auto"` is `runModelChain`
|
|
1638
|
-
* `"
|
|
1639
|
-
*
|
|
1640
|
-
*
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
* attempt did not switch.
|
|
1637
|
+
* Anything but `"auto"` is `runModelChain` behind `stopOnCancel`. With
|
|
1638
|
+
* `"auto"`, the attempt that failed decides the switch itself
|
|
1639
|
+
* (`completeResult` sets `run.switchTo` and closes its stream without a
|
|
1640
|
+
* `finish`), and the next attempt's prologue makes the switch the form's pick
|
|
1641
|
+
* would have made. This only splices the attempts into one caller turn: one
|
|
1642
|
+
* `stream-start`, and the `finish` of whichever attempt did not switch.
|
|
1644
1643
|
*
|
|
1645
1644
|
* The bound is `run.tried`, as it is `tried` for the model chain: every
|
|
1646
1645
|
* account spawned or switched to goes in, and none in it is picked again.
|
|
1647
1646
|
*
|
|
1648
|
-
* Cancelling the returned stream is a stop,
|
|
1649
|
-
* the
|
|
1650
|
-
*
|
|
1651
|
-
*
|
|
1652
|
-
* starts no further account
|
|
1647
|
+
* Cancelling the returned stream is a stop, in every mode: a caller that has
|
|
1648
|
+
* gone away must reach the turn it started, or the CLI runs it to the end
|
|
1649
|
+
* and bills it. Each attempt gets a signal that the caller's own
|
|
1650
|
+
* `abortSignal` and a `cancel()` both abort, so a cancel takes the turn's
|
|
1651
|
+
* ordinary abort path, and with `"auto"` the loop starts no further account
|
|
1652
|
+
* once either has happened. Until (h #g257) only `"auto"` did this.
|
|
1653
1653
|
*/
|
|
1654
1654
|
private runAccountFailover;
|
|
1655
1655
|
/**
|