nc1709 1.15.4__py3-none-any.whl

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.
Files changed (86) hide show
  1. nc1709/__init__.py +13 -0
  2. nc1709/agent/__init__.py +36 -0
  3. nc1709/agent/core.py +505 -0
  4. nc1709/agent/mcp_bridge.py +245 -0
  5. nc1709/agent/permissions.py +298 -0
  6. nc1709/agent/tools/__init__.py +21 -0
  7. nc1709/agent/tools/base.py +440 -0
  8. nc1709/agent/tools/bash_tool.py +367 -0
  9. nc1709/agent/tools/file_tools.py +454 -0
  10. nc1709/agent/tools/notebook_tools.py +516 -0
  11. nc1709/agent/tools/search_tools.py +322 -0
  12. nc1709/agent/tools/task_tool.py +284 -0
  13. nc1709/agent/tools/web_tools.py +555 -0
  14. nc1709/agents/__init__.py +17 -0
  15. nc1709/agents/auto_fix.py +506 -0
  16. nc1709/agents/test_generator.py +507 -0
  17. nc1709/checkpoints.py +372 -0
  18. nc1709/cli.py +3380 -0
  19. nc1709/cli_ui.py +1080 -0
  20. nc1709/cognitive/__init__.py +149 -0
  21. nc1709/cognitive/anticipation.py +594 -0
  22. nc1709/cognitive/context_engine.py +1046 -0
  23. nc1709/cognitive/council.py +824 -0
  24. nc1709/cognitive/learning.py +761 -0
  25. nc1709/cognitive/router.py +583 -0
  26. nc1709/cognitive/system.py +519 -0
  27. nc1709/config.py +155 -0
  28. nc1709/custom_commands.py +300 -0
  29. nc1709/executor.py +333 -0
  30. nc1709/file_controller.py +354 -0
  31. nc1709/git_integration.py +308 -0
  32. nc1709/github_integration.py +477 -0
  33. nc1709/image_input.py +446 -0
  34. nc1709/linting.py +519 -0
  35. nc1709/llm_adapter.py +667 -0
  36. nc1709/logger.py +192 -0
  37. nc1709/mcp/__init__.py +18 -0
  38. nc1709/mcp/client.py +370 -0
  39. nc1709/mcp/manager.py +407 -0
  40. nc1709/mcp/protocol.py +210 -0
  41. nc1709/mcp/server.py +473 -0
  42. nc1709/memory/__init__.py +20 -0
  43. nc1709/memory/embeddings.py +325 -0
  44. nc1709/memory/indexer.py +474 -0
  45. nc1709/memory/sessions.py +432 -0
  46. nc1709/memory/vector_store.py +451 -0
  47. nc1709/models/__init__.py +86 -0
  48. nc1709/models/detector.py +377 -0
  49. nc1709/models/formats.py +315 -0
  50. nc1709/models/manager.py +438 -0
  51. nc1709/models/registry.py +497 -0
  52. nc1709/performance/__init__.py +343 -0
  53. nc1709/performance/cache.py +705 -0
  54. nc1709/performance/pipeline.py +611 -0
  55. nc1709/performance/tiering.py +543 -0
  56. nc1709/plan_mode.py +362 -0
  57. nc1709/plugins/__init__.py +17 -0
  58. nc1709/plugins/agents/__init__.py +18 -0
  59. nc1709/plugins/agents/django_agent.py +912 -0
  60. nc1709/plugins/agents/docker_agent.py +623 -0
  61. nc1709/plugins/agents/fastapi_agent.py +887 -0
  62. nc1709/plugins/agents/git_agent.py +731 -0
  63. nc1709/plugins/agents/nextjs_agent.py +867 -0
  64. nc1709/plugins/base.py +359 -0
  65. nc1709/plugins/manager.py +411 -0
  66. nc1709/plugins/registry.py +337 -0
  67. nc1709/progress.py +443 -0
  68. nc1709/prompts/__init__.py +22 -0
  69. nc1709/prompts/agent_system.py +180 -0
  70. nc1709/prompts/task_prompts.py +340 -0
  71. nc1709/prompts/unified_prompt.py +133 -0
  72. nc1709/reasoning_engine.py +541 -0
  73. nc1709/remote_client.py +266 -0
  74. nc1709/shell_completions.py +349 -0
  75. nc1709/slash_commands.py +649 -0
  76. nc1709/task_classifier.py +408 -0
  77. nc1709/version_check.py +177 -0
  78. nc1709/web/__init__.py +8 -0
  79. nc1709/web/server.py +950 -0
  80. nc1709/web/templates/index.html +1127 -0
  81. nc1709-1.15.4.dist-info/METADATA +858 -0
  82. nc1709-1.15.4.dist-info/RECORD +86 -0
  83. nc1709-1.15.4.dist-info/WHEEL +5 -0
  84. nc1709-1.15.4.dist-info/entry_points.txt +2 -0
  85. nc1709-1.15.4.dist-info/licenses/LICENSE +9 -0
  86. nc1709-1.15.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,149 @@
1
+ """
2
+ NC1709 Cognitive Architecture
3
+
4
+ A 5-layer cognitive system that provides:
5
+ - Layer 1: Intelligent Router - LLM-powered intent analysis and routing
6
+ - Layer 2: Deep Context Engine - Semantic understanding of codebase
7
+ - Layer 3: Multi-Agent Council - Multiple AI experts collaborate
8
+ - Layer 4: Learning Core - Learns user patterns over time
9
+ - Layer 5: Anticipation Engine - Predicts needs before asked
10
+
11
+ This architecture is what differentiates NC1709 from other AI coding tools.
12
+ """
13
+
14
+ from .router import (
15
+ TaskCategory,
16
+ IntentAnalysis,
17
+ RoutingDecision,
18
+ IntentAnalyzer,
19
+ IntelligentRouter,
20
+ quick_route,
21
+ )
22
+
23
+ from .context_engine import (
24
+ NodeType,
25
+ CodeNode,
26
+ CodePattern,
27
+ FileContext,
28
+ ContextBudget,
29
+ CodeGraphBuilder,
30
+ PatternDetector,
31
+ SemanticIndex,
32
+ DeepContextEngine,
33
+ get_context_engine,
34
+ quick_context,
35
+ )
36
+
37
+ from .council import (
38
+ AgentRole,
39
+ AgentPersona,
40
+ AgentResponse,
41
+ CouncilSession,
42
+ AgentSelector,
43
+ ConsensusBuilder,
44
+ MultiAgentCouncil,
45
+ DEFAULT_AGENTS,
46
+ get_council,
47
+ quick_council,
48
+ )
49
+
50
+ from .learning import (
51
+ FeedbackType,
52
+ InteractionType,
53
+ UserPreference,
54
+ InteractionRecord,
55
+ PatternInsight,
56
+ UserProfile,
57
+ PreferenceLearner,
58
+ PatternAnalyzer,
59
+ LearningCore,
60
+ get_learning_core,
61
+ record_interaction,
62
+ )
63
+
64
+ from .anticipation import (
65
+ SuggestionType,
66
+ Suggestion,
67
+ WorkflowPattern,
68
+ PredictionContext,
69
+ WorkflowPredictor,
70
+ FilePredictor,
71
+ IssuePredictor,
72
+ SuggestionQueue,
73
+ AnticipationEngine,
74
+ get_anticipation_engine,
75
+ suggest_next,
76
+ )
77
+
78
+ from .system import (
79
+ CognitiveRequest,
80
+ CognitiveResponse,
81
+ CognitiveSystem,
82
+ get_cognitive_system,
83
+ quick_cognitive,
84
+ )
85
+
86
+ __all__ = [
87
+ # Layer 1: Router
88
+ "TaskCategory",
89
+ "IntentAnalysis",
90
+ "RoutingDecision",
91
+ "IntentAnalyzer",
92
+ "IntelligentRouter",
93
+ "quick_route",
94
+ # Layer 2: Context Engine
95
+ "NodeType",
96
+ "CodeNode",
97
+ "CodePattern",
98
+ "FileContext",
99
+ "ContextBudget",
100
+ "CodeGraphBuilder",
101
+ "PatternDetector",
102
+ "SemanticIndex",
103
+ "DeepContextEngine",
104
+ "get_context_engine",
105
+ "quick_context",
106
+ # Layer 3: Multi-Agent Council
107
+ "AgentRole",
108
+ "AgentPersona",
109
+ "AgentResponse",
110
+ "CouncilSession",
111
+ "AgentSelector",
112
+ "ConsensusBuilder",
113
+ "MultiAgentCouncil",
114
+ "DEFAULT_AGENTS",
115
+ "get_council",
116
+ "quick_council",
117
+ # Layer 4: Learning Core
118
+ "FeedbackType",
119
+ "InteractionType",
120
+ "UserPreference",
121
+ "InteractionRecord",
122
+ "PatternInsight",
123
+ "UserProfile",
124
+ "PreferenceLearner",
125
+ "PatternAnalyzer",
126
+ "LearningCore",
127
+ "get_learning_core",
128
+ "record_interaction",
129
+ # Layer 5: Anticipation Engine
130
+ "SuggestionType",
131
+ "Suggestion",
132
+ "WorkflowPattern",
133
+ "PredictionContext",
134
+ "WorkflowPredictor",
135
+ "FilePredictor",
136
+ "IssuePredictor",
137
+ "SuggestionQueue",
138
+ "AnticipationEngine",
139
+ "get_anticipation_engine",
140
+ "suggest_next",
141
+ # CognitiveSystem Orchestrator
142
+ "CognitiveRequest",
143
+ "CognitiveResponse",
144
+ "CognitiveSystem",
145
+ "get_cognitive_system",
146
+ "quick_cognitive",
147
+ ]
148
+
149
+ __version__ = "0.1.0"