@dyyz1993/pi-coding-agent 0.74.22 → 0.74.23

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.
@@ -730,6 +730,9 @@ export class AgentSession {
730
730
  if (agent.tools && agent.tools.length > 0) {
731
731
  this._currentAgentVariables["allowedTools"] = agent.tools.join(",");
732
732
  }
733
+ if (agent.hooks && Object.keys(agent.hooks).length > 0) {
734
+ this._currentAgentVariables["agentHooks"] = JSON.stringify(agent.hooks);
735
+ }
733
736
  if (agent.thinkingLevel) {
734
737
  this.setThinkingLevel(agent.thinkingLevel);
735
738
  }
@@ -1902,6 +1905,7 @@ export class AgentSession {
1902
1905
  appendEntry: (customType, data, options) => {
1903
1906
  const id = this.sessionManager.appendCustomEntry(customType, data, options);
1904
1907
  this._emit({ type: "custom_entry", customType, data, id, display: options?.display });
1908
+ return id;
1905
1909
  },
1906
1910
  foldEntry: (entryId, summary, originalTokens) => {
1907
1911
  this.sessionManager.appendFold(entryId, summary, originalTokens);