@llblab/pi-state-flow 0.16.0 → 0.16.1

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 CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.16.1: Resumed activation hotfix
8
+
9
+ - `Resumed activation`: Reasserts the selected session stream as a complete semantic cohort when `/state-flow-start` enables a resumed branch, so extension upgrades cannot misclassify retained session state as an omitted write while shared scopes still reconcile against their live owners.
10
+
7
11
  ## 0.16.0: Proportional State Flow guidance
8
12
 
9
13
  - `Operational Skill`: Adds the packaged `state-flow-guide` as an on-demand reference for concrete read, patch, inheritance, acquisition, finalization, and recovery problems without triggering memory audits or unsolicited cleanup.
@@ -757,8 +757,11 @@ export default function stateFlowExtension(pi, options = {}) {
757
757
  snapshot.meta.remotePublication = serializeRemotePublicationPolicyDocument(resolveRemotePublicationPolicy(existingBranch ? undefined : config.remotePublication, { legacyRuntime: existingBranch }));
758
758
  }
759
759
  branchHasSnapshot = true;
760
+ // Activation reasserts the selected session stream as a complete cohort. A resumed
761
+ // branch may have no reusable temporal revision after an extension upgrade; a
762
+ // runtime-only write would then reject its selected session as an omitted change.
760
763
  const publication = runtime.view
761
- ? runtime.promote(snapshot) ?? runtime.publish(snapshot)
764
+ ? runtime.promote(snapshot) ?? runtime.publish(snapshot, true)
762
765
  : runtime.initialize(snapshot, true, undefined, branchStartsWithoutRuntime);
763
766
  recordPolicyPublication(publication, ctx);
764
767
  installScopeStates();
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-state-flow",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "private": false,
5
5
  "description": "Incremental scoped state/context/memory compiler for Pi, inspired by SKILL.state",
6
6
  "keywords": [
package/lib/extension.ts CHANGED
@@ -782,8 +782,11 @@ export default function stateFlowExtension(pi: ExtensionAPI, options: StateFlowE
782
782
  );
783
783
  }
784
784
  branchHasSnapshot = true;
785
+ // Activation reasserts the selected session stream as a complete cohort. A resumed
786
+ // branch may have no reusable temporal revision after an extension upgrade; a
787
+ // runtime-only write would then reject its selected session as an omitted change.
785
788
  const publication = runtime.view
786
- ? runtime.promote(snapshot) ?? runtime.publish(snapshot)
789
+ ? runtime.promote(snapshot) ?? runtime.publish(snapshot, true)
787
790
  : runtime.initialize(snapshot, true, undefined, branchStartsWithoutRuntime);
788
791
  recordPolicyPublication(publication, ctx);
789
792
  installScopeStates();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-state-flow",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "private": false,
5
5
  "description": "Incremental scoped state/context/memory compiler for Pi, inspired by SKILL.state",
6
6
  "keywords": [