opencode-goal-plugin 0.6.5 → 0.6.7
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/CHANGELOG.md +9 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +19 -15
- package/docs/compatibility.md +26 -2
- package/docs/providers.md +24 -18
- package/docs/releasing.md +1 -1
- package/index.d.ts +24 -13
- package/package.json +4 -10
- package/scripts/verify.mjs +47 -6
- package/src/goal-plugin.js +1036 -458
- package/src/persistence-lease.js +3 -3
package/src/persistence-lease.js
CHANGED
|
@@ -23,9 +23,9 @@ async function readOwner(lockPath) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Hold an exclusive
|
|
27
|
-
* deliberately rejects a second writer instead of allowing stale
|
|
28
|
-
*
|
|
26
|
+
* Hold an exclusive session lease for the plugin instance lifetime. This
|
|
27
|
+
* deliberately rejects a second writer instead of allowing stale snapshots to
|
|
28
|
+
* overwrite the same session's state.
|
|
29
29
|
*/
|
|
30
30
|
export async function acquirePersistenceLease(
|
|
31
31
|
stateFilePath,
|