@swoft/gtd-domain
Version:
Getting Things Done (GTD) productivity system - consolidated domain implementation
1 lines • 29.2 kB
Source Map (JSON)
{"version":3,"sources":["../src/navigation/GTDSemanticNavigation.ts","../src/integration/contracts/index.ts"],"sourcesContent":["/**\n * GTD Semantic Navigation\n * \n * Implements domain-specific semantic navigation patterns for the Getting Things Done methodology.\n * This provides intelligent, context-aware navigation hints that understand GTD workflows and relationships.\n * \n * Core GTD Semantic Relationships:\n * - Capture → Clarify → Organize → Reflect → Engage (GTD workflow)\n * - Projects contain Next Actions\n * - Actions belong to Contexts\n * - Projects have Outcomes\n * - References support Actions and Projects\n * \n * @author GTD Domain Team\n * @since GTD Domain v1.3.0\n */\n\nimport {\n IDomainSemantics,\n IEntityRelationship,\n IWorkflowDefinition,\n SemanticRelationType,\n ContextualInformation,\n NavigationHints,\n DomainContext,\n McpServerId,\n} from '@swoft/platform-contracts';\n\nimport { BaseNavigationHintsBuilder } from '@swoft/navigation-utils';\n\n// ============================================\n// GTD-SPECIFIC SEMANTIC DEFINITIONS\n// ============================================\n\n/**\n * GTD Entity Types in the ubiquitous language\n */\nexport type GTDEntityType = \n | 'inbox_item'\n | 'project' \n | 'next_action'\n | 'context'\n | 'outcome'\n | 'reference'\n | 'someday_maybe'\n | 'waiting_for'\n | 'calendar_item';\n\n/**\n * GTD Context Types for semantic grouping\n */\nexport type GTDContextType = \n | '@computer'\n | '@phone'\n | '@errands' \n | '@office'\n | '@home'\n | '@agenda'\n | '@waiting'\n | '@someday';\n\n/**\n * GTD Processing States for workflow navigation\n */\nexport type GTDProcessingState = \n | 'captured' // In inbox, not processed\n | 'clarified' // Processed, determined actionable\n | 'organized' // Filed in appropriate lists\n | 'reviewed' // Part of weekly review\n | 'engaged' // Currently working on\n | 'completed' // Finished\n | 'archived'; // Stored for reference\n\n// ============================================\n// GTD ENTITY RELATIONSHIPS\n// ============================================\n\n/**\n * Standard GTD entity relationships following David Allen's methodology\n */\nexport const GTD_ENTITY_RELATIONSHIPS: IEntityRelationship[] = [\n // Project → Next Actions relationship\n {\n sourceEntityType: 'project',\n targetEntityType: 'next_action',\n relationshipType: 'contains',\n description: 'Projects contain one or more next actions to move toward completion',\n cardinality: 'one-to-many',\n availableActions: [\n {\n action: 'view_next_actions',\n toolName: 'gtd_actions_by_project',\n relevanceContext: 'When viewing a project and need to see actionable next steps'\n },\n {\n action: 'create_next_action',\n toolName: 'gtd_action_create',\n relevanceContext: 'When a project needs additional next actions to move forward'\n },\n {\n action: 'review_project_progress',\n toolName: 'gtd_project_review',\n relevanceContext: 'During weekly review or when checking project momentum'\n }\n ]\n },\n\n // Next Action → Context relationship\n {\n sourceEntityType: 'next_action',\n targetEntityType: 'context',\n relationshipType: 'belongs_to',\n description: 'Next actions are organized by the context where they can be completed',\n cardinality: 'many-to-one',\n availableActions: [\n {\n action: 'view_context_actions',\n toolName: 'gtd_actions_by_context',\n relevanceContext: 'When in a specific context and ready to take action'\n },\n {\n action: 'change_context',\n toolName: 'gtd_action_update',\n relevanceContext: 'When circumstances change where an action can be completed'\n }\n ]\n },\n\n // Inbox Item → Project/Action relationship\n {\n sourceEntityType: 'inbox_item',\n targetEntityType: 'project',\n relationshipType: 'triggers',\n description: 'Inbox items can trigger the creation of new projects during clarification',\n availableActions: [\n {\n action: 'convert_to_project',\n toolName: 'gtd_project_create',\n relevanceContext: 'When an inbox item requires multiple actions to complete'\n },\n {\n action: 'extract_next_action',\n toolName: 'gtd_action_create',\n relevanceContext: 'When an inbox item can be completed with a single action'\n },\n {\n action: 'defer_processing',\n toolName: 'gtd_inbox_defer',\n relevanceContext: 'When an inbox item needs more information before processing'\n }\n ]\n },\n\n // Reference → Action/Project relationship\n {\n sourceEntityType: 'reference',\n targetEntityType: 'next_action',\n relationshipType: 'enables',\n description: 'Reference materials enable the completion of actions and projects',\n cardinality: 'many-to-many',\n availableActions: [\n {\n action: 'attach_reference',\n toolName: 'gtd_reference_attach',\n relevanceContext: 'When an action needs supporting documentation'\n },\n {\n action: 'create_reference',\n toolName: 'gtd_reference_create',\n relevanceContext: 'When processing reveals need for reference material'\n }\n ]\n },\n\n // Waiting For → Person relationship (cross-domain)\n {\n sourceEntityType: 'waiting_for',\n targetEntityType: 'person',\n relationshipType: 'depends_on',\n description: 'Waiting For items depend on specific people for completion',\n availableActions: [\n {\n action: 'find_responsible_person',\n toolName: 'party_list_persons',\n relevanceContext: 'When tracking who is responsible for a waiting item'\n },\n {\n action: 'follow_up_reminder',\n toolName: 'gtd_waiting_follow_up',\n relevanceContext: 'When a waiting item needs follow-up action'\n }\n ]\n }\n];\n\n// ============================================\n// GTD WORKFLOWS\n// ============================================\n\n/**\n * Core GTD workflows following David Allen's 5-step methodology\n */\nexport const GTD_WORKFLOWS: IWorkflowDefinition[] = [\n // Core GTD Processing Workflow\n {\n workflowId: 'gtd_capture_clarify_organize',\n name: 'GTD Capture → Clarify → Organize Workflow',\n steps: [\n {\n stepId: 'capture',\n description: 'Capture everything that crosses your mind into a trusted system',\n tools: ['gtd_inbox_capture', 'gtd_mind_sweep'],\n completionCriteria: ['All open loops captured', 'Mind feels clear'],\n nextSteps: ['clarify']\n },\n {\n stepId: 'clarify',\n description: 'Process inbox items: What is it? Is it actionable?',\n tools: ['gtd_inbox_clarify', 'gtd_process_inbox'],\n completionCriteria: ['Item nature understood', 'Actionability determined'],\n nextSteps: ['organize_actionable', 'organize_non_actionable']\n },\n {\n stepId: 'organize_actionable',\n description: 'Organize actionable items into appropriate lists',\n tools: ['gtd_project_create', 'gtd_action_create', 'gtd_calendar_add'],\n completionCriteria: ['Item in appropriate action list', 'Context assigned'],\n nextSteps: ['reflect']\n },\n {\n stepId: 'organize_non_actionable',\n description: 'File non-actionable items appropriately',\n tools: ['gtd_reference_create', 'gtd_someday_add', 'gtd_trash'],\n completionCriteria: ['Item properly filed', 'Reference accessible'],\n nextSteps: ['reflect']\n },\n {\n stepId: 'reflect',\n description: 'Review system regularly to maintain trust and currency',\n tools: ['gtd_weekly_review', 'gtd_daily_review'],\n completionCriteria: ['System up to date', 'Priorities clear'],\n nextSteps: ['engage']\n },\n {\n stepId: 'engage',\n description: 'Choose actions confidently based on context, time, and energy',\n tools: ['gtd_actions_by_context', 'gtd_next_action_choose'],\n completionCriteria: ['Action completed', 'Progress made'],\n nextSteps: ['capture'] // Continuous cycle\n }\n ],\n triggers: [\n {\n trigger: 'new_inbox_item',\n context: { source: 'any', urgency: 'any' }\n },\n {\n trigger: 'mind_sweep_session',\n context: { scheduled: true, type: 'weekly_review' }\n },\n {\n trigger: 'overwhelm_feeling',\n context: { stress_level: 'high', clarity: 'low' }\n }\n ],\n outcomes: [\n 'Clear mind with trusted system',\n 'All commitments captured and organized',\n 'Confident action choices',\n 'Reduced stress and increased productivity'\n ]\n },\n\n // Weekly Review Workflow\n {\n workflowId: 'gtd_weekly_review',\n name: 'GTD Weekly Review Process',\n steps: [\n {\n stepId: 'collect',\n description: 'Gather loose papers, materials, and digital items',\n tools: ['gtd_mind_sweep', 'gtd_inbox_capture'],\n completionCriteria: ['All loose items captured', 'Physical inbox empty'],\n nextSteps: ['process']\n },\n {\n stepId: 'process',\n description: 'Process all captured items to zero',\n tools: ['gtd_process_inbox', 'gtd_inbox_clarify'],\n completionCriteria: ['Inbox at zero', 'All items processed'],\n nextSteps: ['review']\n },\n {\n stepId: 'review',\n description: 'Review action lists, calendar, and waiting fors',\n tools: ['gtd_actions_review', 'gtd_calendar_review', 'gtd_waiting_review'],\n completionCriteria: ['Lists current', 'Waiting items followed up'],\n nextSteps: ['update']\n },\n {\n stepId: 'update',\n description: 'Update project lists and someday/maybe items',\n tools: ['gtd_project_list', 'gtd_someday_review'],\n completionCriteria: ['Projects current', 'Someday items evaluated'],\n nextSteps: ['plan']\n },\n {\n stepId: 'plan',\n description: 'Review bigger picture goals and plan next week',\n tools: ['gtd_natural_planning', 'gtd_goal_review'],\n completionCriteria: ['Week planned', 'Priorities set'],\n nextSteps: ['engage']\n }\n ],\n triggers: [\n {\n trigger: 'weekly_scheduled_time',\n context: { day: 'friday', time: 'afternoon' }\n },\n {\n trigger: 'system_feels_out_of_control',\n context: { stress_level: 'high', system_trust: 'low' }\n }\n ],\n outcomes: [\n 'System completely current and trustworthy',\n 'Clear priorities for upcoming week',\n 'Reduced mental overhead',\n 'Increased confidence in commitments'\n ]\n },\n\n // Natural Planning Workflow\n {\n workflowId: 'gtd_natural_planning',\n name: 'GTD Natural Planning Model',\n steps: [\n {\n stepId: 'purpose',\n description: 'Define why you are doing this project',\n tools: ['gtd_natural_planning'],\n completionCriteria: ['Purpose clearly articulated', 'Motivation understood'],\n nextSteps: ['vision']\n },\n {\n stepId: 'vision',\n description: 'Envision successful outcome - what does done look like?',\n tools: ['gtd_natural_planning'],\n completionCriteria: ['Success criteria defined', 'Vision compelling'],\n nextSteps: ['brainstorm']\n },\n {\n stepId: 'brainstorm',\n description: 'Generate ideas without judgment or organization',\n tools: ['gtd_natural_planning', 'gtd_mind_sweep'],\n completionCriteria: ['All ideas captured', 'Creative thinking exhausted'],\n nextSteps: ['organize']\n },\n {\n stepId: 'organize',\n description: 'Structure ideas into logical sequence and priorities',\n tools: ['gtd_project_create', 'gtd_action_create'],\n completionCriteria: ['Project structure clear', 'Next actions defined'],\n nextSteps: ['next_actions']\n },\n {\n stepId: 'next_actions',\n description: 'Identify immediate next physical actions',\n tools: ['gtd_action_create', 'gtd_actions_by_context'],\n completionCriteria: ['Next actions specific', 'Actions assigned contexts'],\n nextSteps: ['engage']\n }\n ],\n triggers: [\n {\n trigger: 'new_project_identified',\n context: { complexity: 'medium_to_high', clarity: 'low' }\n },\n {\n trigger: 'project_stuck',\n context: { progress: 'stalled', next_action: 'unclear' }\n }\n ],\n outcomes: [\n 'Clear project definition and scope',\n 'Compelling vision of success',\n 'Logical action sequence',\n 'Immediate next steps identified'\n ]\n }\n];\n\n// ============================================\n// GTD NAVIGATION HINTS BUILDER\n// ============================================\n\n/**\n * GTD-specific NavigationHints builder that understands GTD workflows and relationships\n */\nexport class GTDNavigationHintsBuilder extends BaseNavigationHintsBuilder {\n \n protected getDefaultContext(): ContextualInformation {\n return {\n domain: 'gtd',\n operation_type: 'productivity',\n user_journey: 'gtd_workflow',\n workflow_state: 'ready_for_action'\n };\n }\n\n protected getDefaultMetadata(): NavigationHints['metadata'] {\n return {\n generated_by: 'gtd-semantic-navigation',\n version: '1.0.0',\n domain_methodology: 'david_allen_gtd',\n semantic_model: 'gtd_ubiquitous_language'\n };\n }\n\n /**\n * Add GTD-specific workflow navigation\n */\n addGTDWorkflowHints(\n currentStep: string,\n workflowId: string = 'gtd_capture_clarify_organize'\n ): GTDNavigationHintsBuilder {\n const workflow = GTD_WORKFLOWS.find(w => w.workflowId === workflowId);\n if (!workflow) return this;\n\n const currentStepDef = workflow.steps.find(s => s.stepId === currentStep);\n if (!currentStepDef) return this;\n\n // Add current step tools as related tools\n currentStepDef.tools.forEach(tool => {\n this.addRelatedTool({\n tool_name: tool,\n description: `${tool} - ${currentStepDef.description}`,\n relevance_score: 0.9,\n usage_context: `Current step: ${currentStep}`\n });\n });\n\n // Add next steps\n if (currentStepDef.nextSteps) {\n currentStepDef.nextSteps.forEach(nextStepId => {\n const nextStep = workflow.steps.find(s => s.stepId === nextStepId);\n if (nextStep) {\n this.addNextStep(`${nextStep.stepId}: ${nextStep.description}`);\n }\n });\n }\n\n return this;\n }\n\n /**\n * Add context-aware action suggestions\n */\n addContextualActionHints(\n context: GTDContextType,\n energyLevel: 'high' | 'medium' | 'low' = 'medium'\n ): GTDNavigationHintsBuilder {\n // Add context-specific tool suggestions\n this.addRelatedTool({\n tool_name: 'gtd_actions_by_context',\n description: `View actions available in ${context} context`,\n relevance_score: 0.95,\n usage_context: `Current context: ${context}, Energy: ${energyLevel}`\n });\n\n // Add energy-appropriate suggestions\n if (energyLevel === 'low') {\n this.addNextStep('Consider low-energy tasks like organizing or reviewing');\n this.addRelatedTool({\n tool_name: 'gtd_reference_review',\n description: 'Review reference materials (low energy activity)',\n relevance_score: 0.8,\n usage_context: 'Low energy level'\n });\n } else if (energyLevel === 'high') {\n this.addNextStep('Tackle challenging projects or creative work');\n this.addRelatedTool({\n tool_name: 'gtd_project_advance',\n description: 'Advance high-priority projects (high energy activity)',\n relevance_score: 0.9,\n usage_context: 'High energy level'\n });\n }\n\n return this;\n }\n\n /**\n * Add cross-domain handoffs for GTD workflow\n */\n addGTDCrossDomainHandoffs(\n entityType: GTDEntityType,\n entityId: string\n ): GTDNavigationHintsBuilder {\n switch (entityType) {\n case 'waiting_for':\n this.addPersonAssignmentHandoff(\n 'responsible person for waiting item',\n 'mcp__gtd-mcp__'\n );\n break;\n\n case 'project':\n // DevOps handoff for technical projects\n this.addContextHandoff('technical_implementation', {\n mcp: 'mcp__devops-mcp__',\n tool: 'health_check',\n suggested_action: 'Check if this project relates to system health',\n scenario: 'Project may have technical dependencies',\n pre_populated: {\n context: `gtd_project_${entityId}`\n },\n workflow_context: {\n operation_type: 'planning',\n severity: 'medium',\n domain_context: {\n source_mcp: 'mcp__gtd-mcp__',\n integration_type: 'project_technical_assessment'\n }\n }\n });\n break;\n\n case 'next_action':\n // Party management for action assignment\n this.addPersonAssignmentHandoff(\n 'action assignee',\n 'mcp__gtd-mcp__'\n );\n break;\n }\n\n return this;\n }\n}\n\n// ============================================\n// DOMAIN SEMANTICS CONFIGURATION\n// ============================================\n\n/**\n * GTD Domain semantic configuration for the semantic registry\n */\nexport const GTD_DOMAIN_SEMANTICS: IDomainSemantics = {\n domainId: 'gtd',\n mcpServerId: 'mcp__gtd-mcp__',\n entityRelationships: GTD_ENTITY_RELATIONSHIPS,\n workflows: GTD_WORKFLOWS,\n customSemantics: [\n {\n patternId: 'gtd_processing_state_transition',\n description: 'Semantic navigation based on GTD processing states',\n applicableContext: {\n processing_state: ['captured', 'clarified', 'organized', 'reviewed']\n },\n navigationHints: {\n next_steps: [\n 'Follow GTD processing workflow',\n 'Consider current processing state',\n 'Choose appropriate next action'\n ],\n context: {\n domain: 'gtd',\n operation_type: 'processing',\n user_journey: 'gtd_state_transition'\n }\n }\n },\n {\n patternId: 'gtd_context_energy_matching',\n description: 'Match actions to current context and energy level',\n applicableContext: {\n context_type: 'any',\n energy_level: ['high', 'medium', 'low'],\n time_available: 'any'\n },\n navigationHints: {\n next_steps: [\n 'Filter actions by current context',\n 'Consider available energy level',\n 'Choose actions matching time available'\n ],\n context: {\n domain: 'gtd',\n operation_type: 'action_selection',\n user_journey: 'context_energy_optimization'\n }\n }\n }\n ],\n confidence: 0.95,\n lastUpdated: new Date().toISOString()\n};\n\n// ============================================\n// FACTORY FUNCTIONS\n// ============================================\n\n/**\n * Create a new GTD NavigationHints builder\n */\nexport function createGTDNavigationBuilder(): GTDNavigationHintsBuilder {\n return new GTDNavigationHintsBuilder();\n}\n\n/**\n * Create GTD semantic navigation hints for a specific context\n */\nexport function createGTDSemanticHints(\n context: {\n entityType?: GTDEntityType;\n entityId?: string;\n currentContext?: GTDContextType;\n energyLevel?: 'high' | 'medium' | 'low';\n workflowStep?: string;\n workflowId?: string;\n }\n): NavigationHints {\n const builder = createGTDNavigationBuilder();\n\n // Add workflow hints if in a workflow\n if (context.workflowStep) {\n builder.addGTDWorkflowHints(context.workflowStep, context.workflowId);\n }\n\n // Add contextual action hints\n if (context.currentContext) {\n builder.addContextualActionHints(context.currentContext, context.energyLevel);\n }\n\n // Add cross-domain handoffs\n if (context.entityType && context.entityId) {\n builder.addGTDCrossDomainHandoffs(context.entityType, context.entityId);\n }\n\n return builder.build();\n}\n\n// ============================================\n// TYPE EXPORTS\n// ============================================\n\nexport type {\n GTDEntityType,\n GTDContextType,\n GTDProcessingState\n};","/**\n * GTD Domain - Published Language Contracts\n * \n * This module exports the Published Language that GTD Domain\n * exposes to downstream bounded contexts. Following Eric Evans\n * Strategic DDD principles for proper context integration.\n * \n * These contracts represent the stable API that GTD Domain\n * commits to maintaining for its customers/suppliers.\n */\n\n// Export everything from zodios-api (includes schemas and types)\nexport * from './zodios-api';\n\n// Re-export project contracts that aren't in zodios-api\nexport * from './ProjectContracts';\n\n// Export GTD semantic navigation capabilities\nexport * from '../../navigation';\n\n/**\n * Version of the Published Language API\n * Increment when making breaking changes to contracts\n */\nexport const GTD_PUBLISHED_LANGUAGE_VERSION = '2.1.0';"],"mappings":";;;;;AA4BA,SAASA,kCAAkC;AAoDpC,IAAMC,2BAAkD;;EAE7D;IACEC,kBAAkB;IAClBC,kBAAkB;IAClBC,kBAAkB;IAClBC,aAAa;IACbC,aAAa;IACbC,kBAAkB;MAChB;QACEC,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;;EAEJ;;EAGA;IACER,kBAAkB;IAClBC,kBAAkB;IAClBC,kBAAkB;IAClBC,aAAa;IACbC,aAAa;IACbC,kBAAkB;MAChB;QACEC,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;;EAEJ;;EAGA;IACER,kBAAkB;IAClBC,kBAAkB;IAClBC,kBAAkB;IAClBC,aAAa;IACbE,kBAAkB;MAChB;QACEC,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;;EAEJ;;EAGA;IACER,kBAAkB;IAClBC,kBAAkB;IAClBC,kBAAkB;IAClBC,aAAa;IACbC,aAAa;IACbC,kBAAkB;MAChB;QACEC,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;;EAEJ;;EAGA;IACER,kBAAkB;IAClBC,kBAAkB;IAClBC,kBAAkB;IAClBC,aAAa;IACbE,kBAAkB;MAChB;QACEC,QAAQ;QACRC,UAAU;QACVC,kBAAkB;MACpB;MACA;QACEF,QAAQ;QACRC,UAAU;Q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ACjBI,cAAc;QACdC,cAAc;UAAC;UAAQ;UAAU;;QACjCC,gBAAgB;MAClB;MACAJ,iBAAiB;QACfC,YAAY;UACV;UACA;UACA;;QAEFpE,SAAS;UACPiB,QAAQ;UACRC,gBAAgB;UAChBC,cAAc;QAChB;MACF;IACF;;EAEFqD,YAAY;EACZC,cAAa,oBAAIC,KAAAA,GAAOC,YAAW;AACrC;AASO,SAASC,6BAAAA;AACd,SAAO,IAAI9D,0BAAAA;AACb;AAFgB8D;AAOT,SAASC,uBACd7E,SAOC;AAED,QAAM8E,UAAUF,2BAAAA;AAGhB,MAAI5E,QAAQ+E,cAAc;AACxBD,YAAQpD,oBAAoB1B,QAAQ+E,cAAc/E,QAAQT,UAAU;EACtE;AAGA,MAAIS,QAAQgF,gBAAgB;AAC1BF,YAAQpC,yBAAyB1C,QAAQgF,gBAAgBhF,QAAQ2C,WAAW;EAC9E;AAGA,MAAI3C,QAAQ6C,cAAc7C,QAAQ8C,UAAU;AAC1CgC,YAAQlC,0BAA0B5C,QAAQ6C,YAAY7C,QAAQ8C,QAAQ;EACxE;AAEA,SAAOgC,QAAQG,MAAK;AACtB;AA5BgBJ;;;AC7kBT,IAAMK,iCAAiC;","names":["BaseNavigationHintsBuilder","GTD_ENTITY_RELATIONSHIPS","sourceEntityType","targetEntityType","relationshipType","description","cardinality","availableActions","action","toolName","relevanceContext","GTD_WORKFLOWS","workflowId","name","steps","stepId","tools","completionCriteria","nextSteps","triggers","trigger","context","source","urgency","scheduled","type","stress_level","clarity","outcomes","day","time","system_trust","complexity","progress","next_action","GTDNavigationHintsBuilder","BaseNavigationHintsBuilder","getDefaultContext","domain","operation_type","user_journey","workflow_state","getDefaultMetadata","generated_by","version","domain_methodology","semantic_model","addGTDWorkflowHints","currentStep","workflow","find","w","currentStepDef","s","forEach","tool","addRelatedTool","tool_name","relevance_score","usage_context","nextStepId","nextStep","addNextStep","addContextualActionHints","energyLevel","addGTDCrossDomainHandoffs","entityType","entityId","addPersonAssignmentHandoff","addContextHandoff","mcp","suggested_action","scenario","pre_populated","workflow_context","severity","domain_context","source_mcp","integration_type","GTD_DOMAIN_SEMANTICS","domainId","mcpServerId","entityRelationships","workflows","customSemantics","patternId","applicableContext","processing_state","navigationHints","next_steps","context_type","energy_level","time_available","confidence","lastUpdated","Date","toISOString","createGTDNavigationBuilder","createGTDSemanticHints","builder","workflowStep","currentContext","build","GTD_PUBLISHED_LANGUAGE_VERSION"]}