feat(FN-4393): docs, changeset, and verification fixes
Commits merged: - feat(FN-4393): complete Step 6 — docs, changeset, and verification fixes Files changed: packages/core/src/types.ts | 12 ++++++------ packages/engine/src/agent-heartbeat.ts | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) Fusion-Task-Id: FN-4393 Fusion-Task-Lineage: 3615215d-9caa-4402-9258-a5a5de137dd6
This commit is contained in:
@@ -1976,6 +1976,12 @@ export interface GlobalSettings {
|
|||||||
researchGlobalFetchTimeoutMs?: number;
|
researchGlobalFetchTimeoutMs?: number;
|
||||||
/** User-Agent header for HTTP requests made by research providers. Default: "FusionResearchBot/1.0". */
|
/** User-Agent header for HTTP requests made by research providers. Default: "FusionResearchBot/1.0". */
|
||||||
researchGlobalUserAgent?: string;
|
researchGlobalUserAgent?: string;
|
||||||
|
/** Agent memory prompt inclusion mode baseline for all projects/agents.
|
||||||
|
* - "full": inline full curated memory content into prompts (default)
|
||||||
|
* - "index": include only a compact memory index, then fetch on demand via memory tools
|
||||||
|
* - "off": omit agent-memory prompt sections entirely
|
||||||
|
*/
|
||||||
|
agentMemoryInclusionMode?: AgentMemoryInclusionMode;
|
||||||
/** Global-scoped remote access configuration persisted in `~/.fusion/settings.json`.
|
/** Global-scoped remote access configuration persisted in `~/.fusion/settings.json`.
|
||||||
* Stores both provider configs, active provider selection, token strategy,
|
* Stores both provider configs, active provider selection, token strategy,
|
||||||
* and lifecycle restart metadata for remote tunnel orchestration. */
|
* and lifecycle restart metadata for remote tunnel orchestration. */
|
||||||
@@ -2517,12 +2523,6 @@ export interface ProjectSettings {
|
|||||||
/** Reference to a named script in the scripts map that runs before task execution.
|
/** Reference to a named script in the scripts map that runs before task execution.
|
||||||
* Used for pre-task setup like environment preparation. */
|
* Used for pre-task setup like environment preparation. */
|
||||||
setupScript?: string;
|
setupScript?: string;
|
||||||
/** Agent memory prompt inclusion mode baseline for all projects/agents.
|
|
||||||
* - "full": inline full curated memory content into prompts (default)
|
|
||||||
* - "index": include only a compact memory index, then fetch on demand via memory tools
|
|
||||||
* - "off": omit agent-memory prompt sections entirely
|
|
||||||
*/
|
|
||||||
agentMemoryInclusionMode?: AgentMemoryInclusionMode;
|
|
||||||
/** When true, enables periodic AI-powered extraction of insights from working memory
|
/** When true, enables periodic AI-powered extraction of insights from working memory
|
||||||
* into a distilled long-term memory file. Creates an automation schedule that reads
|
* into a distilled long-term memory file. Creates an automation schedule that reads
|
||||||
* `.fusion/memory/MEMORY.md`, identifies patterns/principles/pitfalls, and writes to
|
* `.fusion/memory/MEMORY.md`, identifies patterns/principles/pitfalls, and writes to
|
||||||
|
|||||||
@@ -2048,10 +2048,13 @@ export class HeartbeatMonitor {
|
|||||||
|
|
||||||
if (priorMemoryMode !== resolvedMemoryMode.mode) {
|
if (priorMemoryMode !== resolvedMemoryMode.mode) {
|
||||||
const from = priorMemoryMode ? priorMemoryMode : "(initial)";
|
const from = priorMemoryMode ? priorMemoryMode : "(initial)";
|
||||||
|
const runContextTaskId = typeof run.contextSnapshot?.taskId === "string"
|
||||||
|
? run.contextSnapshot.taskId
|
||||||
|
: undefined;
|
||||||
try {
|
try {
|
||||||
await this.store.appendRunLog(agentId, run.id, {
|
await this.store.appendRunLog(agentId, run.id, {
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
taskId: taskId ?? run.taskId ?? "heartbeat",
|
taskId: taskId ?? runContextTaskId ?? "heartbeat",
|
||||||
type: "text",
|
type: "text",
|
||||||
text: `Agent memory inclusion mode: ${from} → ${resolvedMemoryMode.mode} (source: ${resolvedMemoryMode.source})`,
|
text: `Agent memory inclusion mode: ${from} → ${resolvedMemoryMode.mode} (source: ${resolvedMemoryMode.source})`,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user