titan-agent 5.6.5 → 5.7.0
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/dist/agent/agent.js +5 -0
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/agentLoop.js +29 -13
- package/dist/agent/agentLoop.js.map +1 -1
- package/dist/agent/identityIntercept.js +87 -0
- package/dist/agent/identityIntercept.js.map +1 -0
- package/dist/agent/promptBudget.js +33 -3
- package/dist/agent/promptBudget.js.map +1 -1
- package/dist/agent/systemPromptParts.js +14 -11
- package/dist/agent/systemPromptParts.js.map +1 -1
- package/dist/skills/builtin/current_model.js +3 -2
- package/dist/skills/builtin/current_model.js.map +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/constants.js.map +1 -1
- package/docs/HARNESS-PATTERNS.md +92 -0
- package/package.json +1 -1
- package/ui/dist/sw.js +1 -1
package/dist/agent/agent.js
CHANGED
|
@@ -18,6 +18,7 @@ import { shouldDeliberate, analyze, generatePlan, executePlan, handleApproval, g
|
|
|
18
18
|
import { initGraph, addEpisode, getGraphContext } from "../memory/graph.js";
|
|
19
19
|
import { isAvailable as isBrainAvailable, selectTools as brainSelectTools, ensureLoaded as ensureBrainLoaded } from "./brain.js";
|
|
20
20
|
import { DEFAULT_CORE_TOOLS } from "./toolSearch.js";
|
|
21
|
+
import { maybeBuildIdentityFactSheet } from "./identityIntercept.js";
|
|
21
22
|
import { classifyPipeline, resolvePipelineConfig } from "./pipeline.js";
|
|
22
23
|
import { buildSelfAwarenessContext } from "./selfAwareness.js";
|
|
23
24
|
import { assembleSystemPrompt } from "./systemPromptParts.js";
|
|
@@ -953,6 +954,10 @@ ${voiceMemCtx}
|
|
|
953
954
|
if (overrides?.systemPrompt) systemPrompt = overrides.systemPrompt + "\n\n" + systemPrompt;
|
|
954
955
|
if (preRoutedContext) systemPrompt += preRoutedContext;
|
|
955
956
|
}
|
|
957
|
+
const identityFactSheet = maybeBuildIdentityFactSheet(message);
|
|
958
|
+
if (identityFactSheet) {
|
|
959
|
+
systemPrompt += "\n\n" + identityFactSheet;
|
|
960
|
+
}
|
|
956
961
|
let taskEnforcementActive = false;
|
|
957
962
|
if (voiceFastPath) {
|
|
958
963
|
} else if (pipelineTaskEnforcement) {
|