parallax-opencode 0.3.2 → 0.3.3

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/plugin.js CHANGED
@@ -651,6 +651,20 @@ export default {
651
651
  // Initialize trace with session info
652
652
  if (currentSessionId) {
653
653
  initTrace(currentSessionId, process.cwd(), detectProject());
654
+ // Carry over protocol state from default if checkins happened before
655
+ // the session.created event fired (common race on session start).
656
+ if (protocolStore.has("default")) {
657
+ protocolStore.set(currentSessionId, protocolStore.get("default"));
658
+ protocolStore.delete("default");
659
+ }
660
+ if (frictionStore.has("default")) {
661
+ frictionStore.set(currentSessionId, frictionStore.get("default"));
662
+ frictionStore.delete("default");
663
+ }
664
+ if (modeStore.has("default")) {
665
+ modeStore.set(currentSessionId, modeStore.get("default"));
666
+ modeStore.delete("default");
667
+ }
654
668
  writeState();
655
669
  }
656
670
  }
@@ -769,6 +769,18 @@ ${s.lastObservation}`
769
769
  currentAgentName = info.agent || props.agent || null;
770
770
  if (currentSessionId) {
771
771
  initTrace(currentSessionId, process.cwd(), detectProject());
772
+ if (protocolStore.has("default")) {
773
+ protocolStore.set(currentSessionId, protocolStore.get("default"));
774
+ protocolStore.delete("default");
775
+ }
776
+ if (frictionStore.has("default")) {
777
+ frictionStore.set(currentSessionId, frictionStore.get("default"));
778
+ frictionStore.delete("default");
779
+ }
780
+ if (modeStore.has("default")) {
781
+ modeStore.set(currentSessionId, modeStore.get("default"));
782
+ modeStore.delete("default");
783
+ }
772
784
  writeState();
773
785
  }
774
786
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parallax-opencode",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "PARALLAX ENGINE plugin for OpenCode -- protocol enforcement, friction-loop verification, mode switching (plan/build/debug), trace recording, coherence scoring, CI gate, and PR-ready trace artifacts",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",