@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.
- package/CHANGELOG.md +10 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +4 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/file-store/file-snapshot-manager.d.ts.map +1 -1
- package/dist/core/file-store/file-snapshot-manager.js +7 -1
- package/dist/core/file-store/file-snapshot-manager.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
|
@@ -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);
|