@llblab/pi-state-flow 0.25.1 → 0.25.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/BACKLOG.md +4 -3
- package/CHANGELOG.md +4 -0
- package/dist/lib/extension.js +8 -6
- package/dist/package.json +1 -1
- package/docs/usage.md +1 -1
- package/lib/extension.ts +7 -4
- package/package.json +1 -1
package/BACKLOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Backlog
|
|
2
2
|
|
|
3
|
-
The **0.25.
|
|
3
|
+
The **0.25.2: Single Patch Display** hotfix is prepared; implementation outcomes belong in [CHANGELOG.md](CHANGELOG.md). This backlog retains publication and installed-client gates and deferred decisions. Cascade semantics, canonical storage, stored patch records and lifecycle behaviour remain unchanged.
|
|
4
4
|
|
|
5
5
|
## Out of scope
|
|
6
6
|
|
|
@@ -10,6 +10,8 @@ The **0.25.1: Cascade Receipts** scope is implemented; outcomes belong in [CHANG
|
|
|
10
10
|
|
|
11
11
|
## Carried gates
|
|
12
12
|
|
|
13
|
+
- **0.25.2 publication.** Verify the exact-tag workflow, GitHub Release and npm commit identity before closing this gate.
|
|
14
|
+
- **Installed 0.25.2 smoke (operator-owned).** Disposable store: confirm one patch argument block followed by changed/no-op acknowledgements, compact rows with `showSuccessfulPatches: false`, and visible rejected arguments/errors.
|
|
13
15
|
- **Installed 0.25.1 smoke (operator-owned).** Disposable store: close an intent that owns a nested lazy key and confirm the receipt lists it under `cascaded`. May be combined with the open 0.25.0 smoke.
|
|
14
16
|
- **Installed 0.22.0, 0.23.0, 0.24.0 and 0.25.0 smokes** remain open as recorded.
|
|
15
17
|
|
|
@@ -20,5 +22,4 @@ The **0.25.1: Cascade Receipts** scope is implemented; outcomes belong in [CHANG
|
|
|
20
22
|
|
|
21
23
|
## Release boundary
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
- **Installation/reload (operator-owned).** Requires separate authorization and disposable storage. Grow Loop preparation does not cross publication or live-client gates.
|
|
25
|
+
Installation/reload requires separate authorization and disposable storage. Local validation and publication do not certify installed clients.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> Each release keeps at most 8 outcome records of at most 512 characters.
|
|
4
4
|
|
|
5
|
+
## 0.25.2: Single Patch Display
|
|
6
|
+
|
|
7
|
+
- `Single patch display`: Interactive `patch_state` rows show JSON arguments once in the call, followed by the actual acceptance, no-op or error acknowledgement instead of a second patch. `showSuccessfulPatches: false` hides call arguments while retaining compact acknowledgements; rejected arguments remain visible. Atomic publication, stored state and model-facing `state_updates` receipts are unchanged.
|
|
8
|
+
|
|
5
9
|
## 0.25.1: Cascade Receipts
|
|
6
10
|
|
|
7
11
|
- `Composition ceiling`: One invariant now counts mutable closure bindings plus `OwnedOperationSlot` and `RenewableLifetime` instances in `lib/extension.ts`, including const-bound holders, against the current total of 24 (17 + 5 + 2). Existing named owner assertions remain. Mutation checks reject an added binding, operation slot or lifetime; lifecycle source and behavior are unchanged.
|
package/dist/lib/extension.js
CHANGED
|
@@ -730,13 +730,15 @@ export default function stateFlowExtension(pi, options = {}) {
|
|
|
730
730
|
cwd: Type.Optional(Type.Record(Type.String(), Type.Unknown(), { description: "Optional project semantic patch" })),
|
|
731
731
|
session: Type.Optional(Type.Record(Type.String(), Type.Unknown(), { description: "Optional session semantic patch" })),
|
|
732
732
|
}, { additionalProperties: false }),
|
|
733
|
-
|
|
733
|
+
renderCall(args, theme, context) {
|
|
734
|
+
const title = theme.fg("toolTitle", theme.bold(PATCH_STATE_TOOL_NAME));
|
|
735
|
+
if (!config.showSuccessfulPatches && !context.isError)
|
|
736
|
+
return new Text(title, 0, 0);
|
|
737
|
+
return new Text(`${title}\n${separatedOutput(theme.fg("dim", formatPatchStateArguments(args)))}`, 0, 0);
|
|
738
|
+
},
|
|
739
|
+
renderResult(result) {
|
|
734
740
|
const text = result.content.find((block) => block.type === "text")?.text ?? "";
|
|
735
|
-
|
|
736
|
-
return new Text(separatedOutput(text), 0, 0);
|
|
737
|
-
if (isPartial || !config.showSuccessfulPatches)
|
|
738
|
-
return new Text(text, 0, 0);
|
|
739
|
-
return new Text(separatedOutput(theme.fg("dim", formatPatchStateArguments(context.args))), 0, 0);
|
|
741
|
+
return new Text(separatedOutput(text), 0, 0);
|
|
740
742
|
},
|
|
741
743
|
async execute(toolCallId, params, signal, _onUpdate, ctx) {
|
|
742
744
|
signal = signal ? AbortSignal.any([signal, memoryToolLifetime.signal]) : memoryToolLifetime.signal;
|
package/dist/package.json
CHANGED
package/docs/usage.md
CHANGED
|
@@ -145,7 +145,7 @@ The canonical store is `state-flow/` beneath the agent directory. Keeping config
|
|
|
145
145
|
- Passive reads existing memory without publishing; its first explicit patch may initialize absent storage without starting an episode or compaction.
|
|
146
146
|
- Off exposes neither memory tools nor State Flow context.
|
|
147
147
|
- `logging`: Defaults to `false`. When enabled, rejected patch executions, active barrier blocks, preparation failures and accepted-answer reconciliation failures are recorded locally at `tmp/state-flow/logs.jsonl` beneath the agent directory. Asynchronous Git push failures are recorded there even when this setting is off.
|
|
148
|
-
- `showSuccessfulPatches`: Defaults to `true`. In interactive Pi,
|
|
148
|
+
- `showSuccessfulPatches`: Defaults to `true`. In interactive Pi, `patch_state` rows show pretty-printed JSON arguments once in the call, with blank lines between adjacent memory sections; the result shows the acceptance or no-op acknowledgement, never a second patch. Set it to `false` to hide call arguments and keep the compact acknowledgement. Rejected calls retain their arguments and error acknowledgement; State Flow adds no private validation turn.
|
|
149
149
|
- `historyLimit`: Defaults to `7` and accepts integers from `0` through `100`. It counts accepted semantic transitions, **not elapsed time or conversation length**, and bounds materialized-history and scope patch-history offsets.
|
|
150
150
|
- Lowering it on reload/restore/fork folds excess tails forward without losing current state; selected boundaries outside the new window become unavailable.
|
|
151
151
|
- Zero keeps only current checkpoints.
|
package/lib/extension.ts
CHANGED
|
@@ -746,11 +746,14 @@ export default function stateFlowExtension(pi: ExtensionAPI, options: StateFlowE
|
|
|
746
746
|
cwd: Type.Optional(Type.Record(Type.String(), Type.Unknown(), { description: "Optional project semantic patch" })),
|
|
747
747
|
session: Type.Optional(Type.Record(Type.String(), Type.Unknown(), { description: "Optional session semantic patch" })),
|
|
748
748
|
}, { additionalProperties: false }),
|
|
749
|
-
|
|
749
|
+
renderCall(args, theme, context) {
|
|
750
|
+
const title = theme.fg("toolTitle", theme.bold(PATCH_STATE_TOOL_NAME));
|
|
751
|
+
if (!config.showSuccessfulPatches && !context.isError) return new Text(title, 0, 0);
|
|
752
|
+
return new Text(`${title}\n${separatedOutput(theme.fg("dim", formatPatchStateArguments(args)))}`, 0, 0);
|
|
753
|
+
},
|
|
754
|
+
renderResult(result) {
|
|
750
755
|
const text = result.content.find((block) => block.type === "text")?.text ?? "";
|
|
751
|
-
|
|
752
|
-
if (isPartial || !config.showSuccessfulPatches) return new Text(text, 0, 0);
|
|
753
|
-
return new Text(separatedOutput(theme.fg("dim", formatPatchStateArguments(context.args))), 0, 0);
|
|
756
|
+
return new Text(separatedOutput(text), 0, 0);
|
|
754
757
|
},
|
|
755
758
|
async execute(toolCallId, params, signal, _onUpdate, ctx) {
|
|
756
759
|
signal = signal ? AbortSignal.any([signal, memoryToolLifetime.signal]) : memoryToolLifetime.signal;
|