@chipschat/opencode 1.0.12 → 1.0.13
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/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/main.js +7 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
`dist/main.js` in @chipschat/opencode 1.0.
|
|
3
|
+
`dist/main.js` in @chipschat/opencode 1.0.13 carries these packages, bundled in. Each one's
|
|
4
4
|
licence follows.
|
|
5
5
|
|
|
6
6
|
## @chipschat/harness 1.0.1 (Apache-2.0)
|
package/dist/main.js
CHANGED
|
@@ -26532,6 +26532,8 @@ var Bridge = class {
|
|
|
26532
26532
|
wake;
|
|
26533
26533
|
/** A person's Restart under way: nothing is said of how it is meanwhile (Chips ADR 0094). */
|
|
26534
26534
|
restarting;
|
|
26535
|
+
/** Restarts begun, so a health check asked before one, and answered after, is let go. */
|
|
26536
|
+
restarts = 0;
|
|
26535
26537
|
/** Why OpenCode's server isn't there, where the bridge knows more than that it doesn't answer. */
|
|
26536
26538
|
why;
|
|
26537
26539
|
/** The files OpenCode builds each agent from, where the bridge knows each agent's folder. */
|
|
@@ -26587,6 +26589,7 @@ var Bridge = class {
|
|
|
26587
26589
|
* doesn't run the server, which never says it hears restarts.
|
|
26588
26590
|
*/
|
|
26589
26591
|
restart() {
|
|
26592
|
+
if (this.restarting === void 0) this.restarts += 1;
|
|
26590
26593
|
this.restarting ??= (async () => {
|
|
26591
26594
|
try {
|
|
26592
26595
|
await this.restartServer();
|
|
@@ -26648,12 +26651,14 @@ var Bridge = class {
|
|
|
26648
26651
|
}
|
|
26649
26652
|
/**
|
|
26650
26653
|
* Trouble while the server doesn't answer, and fine once it does (ADR 0083). Nothing while a
|
|
26651
|
-
* restart is under way: its end says (ADR 0094).
|
|
26654
|
+
* restart is under way: its end says (ADR 0094). Nor an answer to a check asked before a restart
|
|
26655
|
+
* began, even one over by now: it is of the server before, and a failed restart's words would go.
|
|
26652
26656
|
*/
|
|
26653
26657
|
async sayHowItIs() {
|
|
26654
26658
|
if (this.restarting !== void 0) return;
|
|
26659
|
+
const restarts = this.restarts;
|
|
26655
26660
|
const up = await this.options.opencode.healthy();
|
|
26656
|
-
if (this.
|
|
26661
|
+
if (this.restarts !== restarts) return;
|
|
26657
26662
|
if (up) this.why = void 0;
|
|
26658
26663
|
const chips2 = this.options.chips;
|
|
26659
26664
|
await (up ? chips2.reportOk() : chips2.reportTrouble(this.why ?? "OpenCode isn't answering")).catch(() => void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chipschat/opencode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "OpenCode as a Chips harness, on its V2 server (opencode serve): each OpenCode agent a Chips agent, each room an OpenCode session.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|