titan-agent 2026.4.13 → 2026.4.16
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 +12 -3
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/generator.js +2 -2
- package/dist/agent/generator.js.map +1 -1
- package/dist/cli/index.js +855 -257
- package/dist/cli/index.js.map +1 -1
- package/dist/gateway/server.js +849 -354
- package/dist/gateway/server.js.map +1 -1
- package/dist/skills/builtin/apply_patch.js +1 -1
- package/dist/skills/builtin/apply_patch.js.map +1 -1
- package/dist/skills/builtin/auto_generate.js +2 -2
- package/dist/skills/builtin/auto_generate.js.map +1 -1
- package/dist/skills/builtin/browser.js +10 -8
- package/dist/skills/builtin/browser.js.map +1 -1
- package/dist/skills/builtin/cron.js +1 -1
- package/dist/skills/builtin/cron.js.map +1 -1
- package/dist/skills/builtin/filesystem.js +1 -1
- package/dist/skills/builtin/filesystem.js.map +1 -1
- package/dist/skills/builtin/memory_skill.js +1 -1
- package/dist/skills/builtin/memory_skill.js.map +1 -1
- package/dist/skills/builtin/process.js +1 -1
- package/dist/skills/builtin/process.js.map +1 -1
- package/dist/skills/builtin/sessions.js +12 -3
- package/dist/skills/builtin/sessions.js.map +1 -1
- package/dist/skills/builtin/shell.js +1 -1
- package/dist/skills/builtin/shell.js.map +1 -1
- package/dist/skills/builtin/vision.js +1 -1
- package/dist/skills/builtin/vision.js.map +1 -1
- package/dist/skills/builtin/voice.js +1 -1
- package/dist/skills/builtin/voice.js.map +1 -1
- package/dist/skills/builtin/web_fetch.js +1 -1
- package/dist/skills/builtin/web_fetch.js.map +1 -1
- package/dist/skills/builtin/web_search.js +1 -1
- package/dist/skills/builtin/web_search.js.map +1 -1
- package/dist/skills/builtin/webhook.js +1 -1
- package/dist/skills/builtin/webhook.js.map +1 -1
- package/dist/skills/registry.js +26 -15
- package/dist/skills/registry.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/agent.js
CHANGED
|
@@ -21,7 +21,7 @@ import { existsSync as existsSync2 } from "fs";
|
|
|
21
21
|
// src/utils/constants.ts
|
|
22
22
|
import { homedir } from "os";
|
|
23
23
|
import { join } from "path";
|
|
24
|
-
var TITAN_VERSION = "2026.4.
|
|
24
|
+
var TITAN_VERSION = "2026.4.15";
|
|
25
25
|
var TITAN_NAME = "TITAN";
|
|
26
26
|
var TITAN_ASCII_LOGO = `
|
|
27
27
|
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
@@ -1037,7 +1037,7 @@ function getOrCreateSession(channel, userId, agentId = "default", isEncrypted =
|
|
|
1037
1037
|
session.e2eKey = generateKey().toString("base64");
|
|
1038
1038
|
logger_default.info(COMPONENT9, `Generated E2E key for session ${session.id}`);
|
|
1039
1039
|
} catch (err) {
|
|
1040
|
-
logger_default.error(COMPONENT9, `Failed to generate E2E key: ${err}`);
|
|
1040
|
+
logger_default.error(COMPONENT9, `Failed to generate E2E key: ${err} \u2014 session will proceed without encryption`);
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
store2.sessions.push({
|
|
@@ -1603,6 +1603,7 @@ function readPromptFile(path) {
|
|
|
1603
1603
|
return "";
|
|
1604
1604
|
}
|
|
1605
1605
|
function buildSystemPrompt(config) {
|
|
1606
|
+
const modelId = config.agent.model || "unknown";
|
|
1606
1607
|
const customPrompt = config.agent.systemPrompt || "";
|
|
1607
1608
|
const memories = searchMemories("preference");
|
|
1608
1609
|
const memoryContext = memories.length > 0 ? `
|
|
@@ -1625,7 +1626,15 @@ ${toolsMd}` : ""
|
|
|
1625
1626
|
].filter(Boolean).join("\n");
|
|
1626
1627
|
const learningContext = getLearningContext();
|
|
1627
1628
|
const personalContext = buildPersonalContext();
|
|
1628
|
-
return
|
|
1629
|
+
return `## CRITICAL: Your Identity
|
|
1630
|
+
You are TITAN (The Intelligent Task Automation Network). Your name is TITAN. You were built by Tony Elliott.
|
|
1631
|
+
You are powered by the language model "${modelId}", but your identity is always TITAN \u2014 never Claude, never GPT, never Gemini, never any other product name.
|
|
1632
|
+
- If asked "who are you?": say "I'm TITAN, your personal AI assistant built by Tony Elliott."
|
|
1633
|
+
- If asked "what model are you?": say "I'm TITAN, powered by ${modelId}."
|
|
1634
|
+
- NEVER say you are "Claude" or "made by Anthropic". NEVER say you are GPT, Gemini, or any other product name. NEVER reveal you are a third-party model product.
|
|
1635
|
+
|
|
1636
|
+
## About You
|
|
1637
|
+
You are ${TITAN_NAME}, The Intelligent Task Automation Network \u2014 a powerful personal AI assistant. You are like JARVIS from Iron Man: proactive, knowledgeable, and deeply personalized to this specific user.
|
|
1629
1638
|
|
|
1630
1639
|
## Core Capabilities
|
|
1631
1640
|
- Execute shell commands and scripts on the user's system
|