@gfgghgftgffg/pi-goal-x-lean 0.1.2 → 0.1.4

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/MAINTENANCE.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Keep this file in English.
4
4
 
5
- The original facade depends on exact `pi-goal-x@0.34.2`; it does not copy the engine. The published package has no npm publication `gitHead`, so maintenance reviews exact npm tarballs with SHA-512 integrity, not an inferred Git commit. There is no external lean-author repository. Pi development verification uses 1.4.0; supported hosts must satisfy upstream peers (`>=1.4.0 <2.0.0`).
5
+ The original facade depends on exact `pi-goal-x@0.35.2`; it does not copy the engine. The published package has no npm publication `gitHead`, so maintenance reviews exact npm tarballs with SHA-512 integrity, not an inferred Git commit. There is no external lean-author repository. Pi development verification uses 1.4.0; supported hosts must satisfy upstream peers (`>=1.4.0 <2.0.0`).
6
6
 
7
7
  ## Retained behavior
8
8
 
@@ -38,9 +38,24 @@ If a subagents manager is present without a compatible v1 service, the goal faca
38
38
  - Goal tasks are persistent milestones; `todo` remains an independent current-turn list, with no bidirectional synchronization. Do not claim complete delegated token accounting or silently enable `strictExecutionContract`.
39
39
  - Upstream auditing excludes project extensions by default. Enabling `auditorProjectResources` broadens resource discovery; a read-only audit policy is not an OS sandbox.
40
40
 
41
- ## Upstream snapshot limitation
41
+ ## Upstream snapshot behavior
42
42
 
43
- Both the original and facade entrypoints retain the old objective after an external in-place edit and `/goal-refresh`, observed on 0.34.1 and again in the staged 0.34.2 check. Shutdown can overwrite the edit (observed on 0.34.1). Keep the upstream-parity regression, do not fork the storage engine to hide it, and revise the limitation when upstream fixes it. Prefer `/goal-tweak`.
43
+ Ordinary reads can use a cached pool snapshot. In 0.34.1 and 0.34.2 even `/goal-refresh` retained the old objective after an in-place edit; shutdown could overwrite the edit (observed on 0.34.1). The explicit command now forces a rescan in 0.35.2 (see below); this does not add file watching or change ordinary cached reads. Keep the upstream-parity regression.
44
+
45
+ ## Review: 0.35.1 → 0.35.2
46
+
47
+ - Compared the exact SHA-512-recorded npm publication pair in `sources.json`, not remote HEAD `2b8f6d50ee7d647a161c2644a160fc4dc88d1517`. No bundled changelog. The published entry, Pi/typebox peers and Node floor are unchanged.
48
+ - `goal-core-tools.ts`, `goal-drafting-tools.ts` and `goal-events.ts` make their internal core types module-local; none is imported by the facade. `goal.ts` still registers the same tool groups and exposes `_goalCore`; `goal-tool-names.ts` keeps the seven registrations and the task-setting-dependent profile. Core tool fields, call defaults and result envelope are unchanged: `get_goal` returns model-facing text and separate `details.goal` / successful `details.page`, not terminal-rendered text or a body.
49
+ - `goal-context.ts` and `goal-session-safety.ts` retain the delegated filter-only contract. Scheduler `schedule` / `claim` remain available at the existing interception points. `goal-commands.ts` defers loading the status, recovery, settings and controls modules until their commands run.
50
+ - `/goal-refresh` now uses `storage/goal-files.ts::refreshActiveGoalPool` to clear the listing and file-parse caches, bypass the persisted snapshot, rebuild it and reconcile the focused goal. Its report compares pool revisions and effective settings; an objective edit need not increment the revision. The ordinary snapshot path still uses directory metadata. In the real host parity check both original and lean returned the edited goal in `details.goal.objective` and tool text, retaining paused status.
51
+ - The lifecycle regression compares the complete persisted task list across session reopen. File parsing can include optional properties set to `undefined`, which the JSON snapshot omits.
52
+
53
+ ## Review: 0.34.2 → 0.35.1
54
+
55
+ - Exact SHA-512 npm snapshots in `sources.json`; no bundled changelog. The upstream manifests retain the Pi/typebox peers and Node floor. The facade still imports `goal.ts`, `goal-context.ts` and `goal-session-safety.ts`; `goal.ts` still exposes `_goalCore`, with `state.goal` now a `GoalSessionState` getter. `GoalRuntime` resolves `scheduler.claim` at delivery, and both `schedule` and `claim` still gate dispatch after the scheduler-rules extraction. Delegated sessions still register only the context filter. No wrapper code or sibling package needs to change.
56
+ - Core, task and drafting registrations retain their schemas, call defaults, argument preparation and the fixed task-setting-dependent profile. `get_goal` still separates model-facing `content[].text`, `details.goal` and the successful page's `details.page` (`content`, `nextCursor`, `totalChars`); the terminal renderer is separate. `update_goal` still dispatches to the same action classes, with blocked and paused flows extracted to `goal-update-flows.ts` and completion still audited.
57
+ - Upstream splits the core, settings, ledger, storage, and UI internals; do not restore `goal-settings.ts` or `widgets/dialog-scaffold.ts`. Layer precedence is still environment > project > global > defaults. `locale` and `PI_GOAL_LOCALE` affect UI lookup only; `i18n/locales.ts` ships no translation catalogs. Task confirmation now truncates the key-hint footer to fit, through the shared choice dialog; audit interruption still defaults to continuing work. The extracted snapshot still uses directory mtime and `/goal-refresh` still invalidates and rereads in the same order. Retain the parity regression.
58
+ - Only this publication is staged. Unpublished web and todo Git heads are excluded. Sync remains unchanged with no fork delta to port. No unrelated regression tests added; existing tests cover the facade and joint subagents ABI.
44
59
 
45
60
  ## Review: 0.34.1 → 0.34.2
46
61
 
package/README.md CHANGED
@@ -32,6 +32,8 @@ Confirm the plan to start. Use `/goal-direct` for direct creation, `/sisyphus` f
32
32
 
33
33
  If a provider error cannot be retried, or a configured network-retry limit is exhausted, the goal pauses. Fix the provider issue, then use `/goal-resume [text]`; optional text is sent to the agent.
34
34
 
35
+ Use `/goal-tweak` to revise an objective with the agent. After an external edit to a goal file, run `/goal-refresh` to rescan the files and update the focused goal; ordinary reads can still use a cached snapshot.
36
+
35
37
  ## Context footprint (character proxy)
36
38
 
37
39
  <!-- amox-measurement:start -->
package/README.zh-CN.md CHANGED
@@ -32,6 +32,8 @@ pi update --extensions
32
32
 
33
33
  遇到不可重试的服务商错误,或用尽配置的网络重试次数后,目标会暂停。修复问题后使用 `/goal-resume [文本]`;附带的文本会发送给 Agent。
34
34
 
35
+ 要与 Agent 一起修订目标,请使用 `/goal-tweak`。在外部编辑目标文件后,可用 `/goal-refresh` 重新扫描文件并更新当前目标;普通读取仍可能使用缓存快照。
36
+
35
37
  ## 上下文占用(字符代理)
36
38
 
37
39
  <!-- amox-measurement:start -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gfgghgftgffg/pi-goal-x-lean",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Lean tool metadata over the complete pi-goal-x runtime; preserves goal tools, commands, scheduling and auditing.",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "check": "npm run typecheck && npm test"
48
48
  },
49
49
  "dependencies": {
50
- "pi-goal-x": "0.34.2"
50
+ "pi-goal-x": "0.35.2"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@earendil-works/pi-ai": ">=1.4.0 <2.0.0",