fix(saas): industry template audit fixes + pgvector optional + relay timeout
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- Fix seed template tools to match actual runtime tool names (file_read/file_write/shell_exec/web_fetch) - Persist system_prompt/temperature/max_tokens via identity system in agentStore.createFromTemplate() - Fire-and-forget assignTemplate() in AgentOnboardingWizard - Fix saas-relay-client unused variable warning - Make pgvector extension optional in knowledge_base migration - Increase StreamBridge timeout from 30s to 90s for thinking models
This commit is contained in:
@@ -194,13 +194,37 @@ export const useAgentStore = create<AgentStore>((set, get) => ({
|
||||
|
||||
const cloneId = result?.clone?.id;
|
||||
|
||||
// Persist SOUL.md via identity system
|
||||
if (cloneId && template.soul_content) {
|
||||
try {
|
||||
const { intelligenceClient } = await import('../lib/intelligence-client');
|
||||
await intelligenceClient.identity.updateFile(cloneId, 'soul', template.soul_content);
|
||||
} catch (e) {
|
||||
console.warn('Failed to persist soul_content:', e);
|
||||
if (cloneId) {
|
||||
// Persist SOUL.md via identity system
|
||||
if (template.soul_content) {
|
||||
try {
|
||||
const { intelligenceClient } = await import('../lib/intelligence-client');
|
||||
await intelligenceClient.identity.updateFile(cloneId, 'soul', template.soul_content);
|
||||
} catch (e) {
|
||||
console.warn('Failed to persist soul_content:', e);
|
||||
}
|
||||
}
|
||||
|
||||
// Persist system_prompt via identity system
|
||||
if (template.system_prompt) {
|
||||
try {
|
||||
const { intelligenceClient } = await import('../lib/intelligence-client');
|
||||
await intelligenceClient.identity.updateFile(cloneId, 'system', template.system_prompt);
|
||||
} catch (e) {
|
||||
console.warn('Failed to persist system_prompt:', e);
|
||||
}
|
||||
}
|
||||
|
||||
// Persist temperature / max_tokens if supported
|
||||
if (template.temperature != null || template.max_tokens != null) {
|
||||
try {
|
||||
await client.updateClone(cloneId, {
|
||||
temperature: template.temperature,
|
||||
maxTokens: template.max_tokens,
|
||||
});
|
||||
} catch (e) {
|
||||
console.warn('Failed to persist temperature/max_tokens:', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user