godcrm/backend/services/chat/agent-execution-shared.js
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

52 lines
1.2 KiB
JavaScript

/**
* ADR-093: Shared Agent Execution Services
*
* Thin re-export wrapper. All implementation has been split into:
* backend/services/chat/agent-execution-shared/
* - helpers.js
* - provider-resolution.js
* - context-builders.js
* - system-prompt.js
* - conversation-history.js
* - processing-state.js
* - index.js (barrel)
*/
export {
// Helpers & Constants
DEFAULT_MAX_HISTORY,
CONTEXT_LEVELS_DEFAULTS,
BASE_CONTENT_TYPES,
getHistoryLimit,
resolveContextLevels,
buildContentTypes,
formatMessageByLevel,
extractToolName,
extractToolArgs,
formatPlanAsContext,
// Provider Resolution
resolveAgentProvider,
detectProvider,
// Context Builders
isTicketsTable,
buildTicketContext,
buildDelegationInstructions,
buildHandoffProtocol,
fetchLatestPlan,
// System Prompt
buildAgentSystemPrompt,
// Conversation History
loadConversationHistory,
loadNewMessagesSince,
fetchBoundRowContext,
fetchAgentSkills,
// Processing State
setConversationProcessing,
handleManagePlan,
// Sync-agent activity registry
SYNC_ACTIVITY_MAX_MS,
markSyncActive,
markSyncInactive,
isSyncActive,
activeSyncCount,
} from './agent-execution-shared/index.js';