@companion-ai/feynman 0.5.6 → 0.5.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/RELEASES.md CHANGED
@@ -6,6 +6,10 @@ GitHub release notes are generated from the matching `## vX.Y.Z` section in this
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## v0.5.7 - 2026-09-26
10
+
11
+ - When Feynman runs as a package inside another Pi setup, an extension error no longer appears on every turn ("Cannot set properties of undefined (setting 'current_date')") if another extension or the host leaves the system-prompt sections unset (#298, thanks @Oscar-Williams in #300).
12
+
9
13
  ## v0.5.6 - 2026-09-26
10
14
 
11
15
  ### Failures report what went wrong
@@ -16,6 +16,7 @@ export function registerCurrentDateResearchContext(
16
16
  now: () => Date = () => new Date(),
17
17
  ): void {
18
18
  pi.on("before_agent_start", (event) => {
19
+ event.systemPromptOptions.sections ??= {};
19
20
  event.systemPromptOptions.sections.current_date = buildCurrentDateResearchContext(now());
20
21
  });
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-ai/feynman",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Research-first CLI agent built on Pi and alphaXiv",
5
5
  "license": "MIT",
6
6
  "type": "module",