@noorm/marie-cli 0.1.17 → 0.1.25
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/README.md +7 -15
- package/SENTINEL.md +4 -7
- package/dist/cli-new/components/AgenticSpinner.js +28 -0
- package/dist/cli-new/components/AgenticSpinner.js.map +1 -0
- package/dist/cli-new/components/App.js +16 -63
- package/dist/cli-new/components/App.js.map +1 -1
- package/dist/cli-new/components/ApprovalDialog.js +3 -2
- package/dist/cli-new/components/ApprovalDialog.js.map +1 -1
- package/dist/cli-new/components/Banner.js +16 -5
- package/dist/cli-new/components/Banner.js.map +1 -1
- package/dist/cli-new/components/ChatArea.js +6 -7
- package/dist/cli-new/components/ChatArea.js.map +1 -1
- package/dist/cli-new/components/Header.js +14 -8
- package/dist/cli-new/components/Header.js.map +1 -1
- package/dist/cli-new/components/InputArea.js +98 -31
- package/dist/cli-new/components/InputArea.js.map +1 -1
- package/dist/cli-new/components/MessageBubble.js +28 -19
- package/dist/cli-new/components/MessageBubble.js.map +1 -1
- package/dist/cli-new/components/SessionSwitcher.js +6 -9
- package/dist/cli-new/components/SessionSwitcher.js.map +1 -1
- package/dist/cli-new/components/SetupWizard.js +80 -257
- package/dist/cli-new/components/SetupWizard.js.map +1 -1
- package/dist/cli-new/components/ToolCallDisplay.js +20 -5
- package/dist/cli-new/components/ToolCallDisplay.js.map +1 -1
- package/dist/cli-new/components/WizardSteps.js +22 -0
- package/dist/cli-new/components/WizardSteps.js.map +1 -0
- package/dist/cli-new/constants/SetupConstants.js +42 -0
- package/dist/cli-new/constants/SetupConstants.js.map +1 -0
- package/dist/cli-new/hooks/useGit.js +19 -62
- package/dist/cli-new/hooks/useGit.js.map +1 -1
- package/dist/cli-new/hooks/useMarie.js +26 -18
- package/dist/cli-new/hooks/useMarie.js.map +1 -1
- package/dist/cli-new/hooks/useSessions.js +1 -1
- package/dist/cli-new/hooks/useSessions.js.map +1 -1
- package/dist/cli-new/hooks/useSetupWizard.js +88 -0
- package/dist/cli-new/hooks/useSetupWizard.js.map +1 -0
- package/dist/cli-new/hooks/useUpdateCheck.js +4 -3
- package/dist/cli-new/hooks/useUpdateCheck.js.map +1 -1
- package/dist/cli-new/index.js +2 -4
- package/dist/cli-new/index.js.map +1 -1
- package/dist/cli-new/services/CommandService.js +104 -0
- package/dist/cli-new/services/CommandService.js.map +1 -0
- package/dist/cli-new/services/GitService.js +91 -0
- package/dist/cli-new/services/GitService.js.map +1 -0
- package/dist/cli-new/services/MarieService.js +77 -0
- package/dist/cli-new/services/MarieService.js.map +1 -0
- package/dist/cli-new/services/auth-server.js +128 -0
- package/dist/cli-new/services/auth-server.js.map +1 -0
- package/dist/cli-new/styles/theme.js +17 -17
- package/dist/cli-new/styles/theme.js.map +1 -1
- package/dist/cli-new/utils/version.js +24 -0
- package/dist/cli-new/utils/version.js.map +1 -0
- package/dist/monolith/adapters/CliMarieAdapter.js +19 -18
- package/dist/monolith/adapters/CliMarieAdapter.js.map +1 -1
- package/dist/monolith/cli/CliFileSystemPort.js +17 -3
- package/dist/monolith/cli/CliFileSystemPort.js.map +1 -1
- package/dist/monolith/cli/MarieToolDefinitionsCLI.js +44 -33
- package/dist/monolith/cli/MarieToolDefinitionsCLI.js.map +1 -1
- package/dist/monolith/cli/index.js +11 -20
- package/dist/monolith/cli/index.js.map +1 -1
- package/dist/monolith/cli/services/JoyAutomationServiceCLI.js +15 -62
- package/dist/monolith/cli/services/JoyAutomationServiceCLI.js.map +1 -1
- package/dist/monolith/cli/storage.js +154 -65
- package/dist/monolith/cli/storage.js.map +1 -1
- package/dist/monolith/domain/joy/RitualService.js +44 -46
- package/dist/monolith/domain/joy/RitualService.js.map +1 -1
- package/dist/monolith/domain/marie/MarieCortex.js +148 -0
- package/dist/monolith/domain/marie/MarieCortex.js.map +1 -0
- package/dist/monolith/domain/marie/PersonalityRenderer.js +97 -0
- package/dist/monolith/domain/marie/PersonalityRenderer.js.map +1 -0
- package/dist/monolith/infrastructure/Configuration.js +68 -0
- package/dist/monolith/infrastructure/Configuration.js.map +1 -0
- package/dist/monolith/infrastructure/CoreInfrastructure.js +204 -0
- package/dist/monolith/infrastructure/CoreInfrastructure.js.map +1 -0
- package/dist/monolith/infrastructure/ai/agents/MarieAscendant.js +3 -3
- package/dist/monolith/infrastructure/ai/agents/MarieAscendant.js.map +1 -1
- package/dist/monolith/infrastructure/ai/context/ContextArchiveService.js +51 -57
- package/dist/monolith/infrastructure/ai/context/ContextArchiveService.js.map +1 -1
- package/dist/monolith/infrastructure/ai/context/ContextManager.js +142 -98
- package/dist/monolith/infrastructure/ai/context/ContextManager.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieEngine.js +104 -556
- package/dist/monolith/infrastructure/ai/core/MarieEngine.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieEventDispatcher.js +1 -37
- package/dist/monolith/infrastructure/ai/core/MarieEventDispatcher.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieLockManager.js +30 -5
- package/dist/monolith/infrastructure/ai/core/MarieLockManager.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieProgressTracker.js +176 -196
- package/dist/monolith/infrastructure/ai/core/MarieProgressTracker.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MariePulseService.js +41 -7
- package/dist/monolith/infrastructure/ai/core/MariePulseService.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieSanitizer.js +303 -63
- package/dist/monolith/infrastructure/ai/core/MarieSanitizer.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieSemaphore.js +47 -4
- package/dist/monolith/infrastructure/ai/core/MarieSemaphore.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieSession.js +95 -15
- package/dist/monolith/infrastructure/ai/core/MarieSession.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieStabilityMonitor.js +21 -0
- package/dist/monolith/infrastructure/ai/core/MarieStabilityMonitor.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieToolMender.js +12 -0
- package/dist/monolith/infrastructure/ai/core/MarieToolMender.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieToolProcessor.js +339 -481
- package/dist/monolith/infrastructure/ai/core/MarieToolProcessor.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieVitality.js +238 -0
- package/dist/monolith/infrastructure/ai/core/MarieVitality.js.map +1 -0
- package/dist/monolith/infrastructure/ai/core/ReasoningBudget.js +23 -12
- package/dist/monolith/infrastructure/ai/core/ReasoningBudget.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/SessionLogService.js +9 -2
- package/dist/monolith/infrastructure/ai/core/SessionLogService.js.map +1 -1
- package/dist/monolith/infrastructure/ai/providers/AIProvider.js +402 -1
- package/dist/monolith/infrastructure/ai/providers/AIProvider.js.map +1 -1
- package/dist/monolith/infrastructure/ai/providers/DreamBeesProvider.js +114 -0
- package/dist/monolith/infrastructure/ai/providers/DreamBeesProvider.js.map +1 -0
- package/dist/monolith/infrastructure/ai/providers/OpenRouterProvider.js +426 -370
- package/dist/monolith/infrastructure/ai/providers/OpenRouterProvider.js.map +1 -1
- package/dist/monolith/infrastructure/ai/providers/OpenRouterStreamParser.js +235 -241
- package/dist/monolith/infrastructure/ai/providers/OpenRouterStreamParser.js.map +1 -1
- package/dist/monolith/infrastructure/ai/workerAi.js +185 -0
- package/dist/monolith/infrastructure/ai/workerAi.js.map +1 -0
- package/dist/monolith/infrastructure/config/ConfigService.js +216 -359
- package/dist/monolith/infrastructure/config/ConfigService.js.map +1 -1
- package/dist/monolith/infrastructure/joy/CognitiveRituals.js +8 -0
- package/dist/monolith/infrastructure/joy/CognitiveRituals.js.map +1 -0
- package/dist/monolith/infrastructure/joy/JoyTools.js +23 -43
- package/dist/monolith/infrastructure/joy/JoyTools.js.map +1 -1
- package/dist/monolith/infrastructure/persistence/MarieMindAutonomics.js +4 -0
- package/dist/monolith/infrastructure/persistence/MarieMindAutonomics.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/MarieMindEngine.js +11 -0
- package/dist/monolith/infrastructure/persistence/MarieMindEngine.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/NoormmeAutonomics.js +135 -0
- package/dist/monolith/infrastructure/persistence/NoormmeAutonomics.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/NoormmeEngine.js +523 -0
- package/dist/monolith/infrastructure/persistence/NoormmeEngine.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/NoormmeSchema.js +179 -0
- package/dist/monolith/infrastructure/persistence/NoormmeSchema.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/NoormmeSeeder.js +94 -0
- package/dist/monolith/infrastructure/persistence/NoormmeSeeder.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/NoormmeTools.js +371 -0
- package/dist/monolith/infrastructure/persistence/NoormmeTools.js.map +1 -0
- package/dist/monolith/infrastructure/services/MarieMemoryStore.js +133 -134
- package/dist/monolith/infrastructure/services/MarieMemoryStore.js.map +1 -1
- package/dist/monolith/infrastructure/tools/MarieToolDefinitions.js +6 -1578
- package/dist/monolith/infrastructure/tools/MarieToolDefinitions.js.map +1 -1
- package/dist/monolith/infrastructure/tools/PureStreamParser.js +68 -80
- package/dist/monolith/infrastructure/tools/PureStreamParser.js.map +1 -1
- package/dist/monolith/infrastructure/tools/SharedToolDefinitions.js +12 -11
- package/dist/monolith/infrastructure/tools/SharedToolDefinitions.js.map +1 -1
- package/dist/monolith/infrastructure/tools/SovereignTools.js +326 -0
- package/dist/monolith/infrastructure/tools/SovereignTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/ToolRegistry.js +45 -26
- package/dist/monolith/infrastructure/tools/ToolRegistry.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/AnalysisTools.js +232 -0
- package/dist/monolith/infrastructure/tools/definitions/AnalysisTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/definitions/AutomationTools.js +274 -0
- package/dist/monolith/infrastructure/tools/definitions/AutomationTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/definitions/ContextTools.js +71 -0
- package/dist/monolith/infrastructure/tools/definitions/ContextTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/definitions/CoreTools.js +37 -0
- package/dist/monolith/infrastructure/tools/definitions/CoreTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/definitions/DiagnosticTools.js +154 -0
- package/dist/monolith/infrastructure/tools/definitions/DiagnosticTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/definitions/NavigationTools.js +197 -0
- package/dist/monolith/infrastructure/tools/definitions/NavigationTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/definitions/PlanningTools.js +300 -0
- package/dist/monolith/infrastructure/tools/definitions/PlanningTools.js.map +1 -0
- package/dist/monolith/plumbing/Plumbing.js +238 -0
- package/dist/monolith/plumbing/Plumbing.js.map +1 -0
- package/dist/monolith/plumbing/PlumbingAnalysis.js +109 -0
- package/dist/monolith/plumbing/PlumbingAnalysis.js.map +1 -0
- package/dist/monolith/plumbing/PlumbingSystem.js +169 -0
- package/dist/monolith/plumbing/PlumbingSystem.js.map +1 -0
- package/dist/monolith/plumbing/analysis/ComplexityService.js +30 -34
- package/dist/monolith/plumbing/analysis/ComplexityService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/DependencyService.js +55 -44
- package/dist/monolith/plumbing/analysis/DependencyService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/DiscoveryService.js +40 -42
- package/dist/monolith/plumbing/analysis/DiscoveryService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/JoyMapService.js +52 -56
- package/dist/monolith/plumbing/analysis/JoyMapService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/LintService.js +118 -118
- package/dist/monolith/plumbing/analysis/LintService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/MarieSentinelService.js +278 -269
- package/dist/monolith/plumbing/analysis/MarieSentinelService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/QualityGuardrailService.js +116 -114
- package/dist/monolith/plumbing/analysis/QualityGuardrailService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/SurgicalMender.js +57 -59
- package/dist/monolith/plumbing/analysis/SurgicalMender.js.map +1 -1
- package/dist/monolith/plumbing/analysis/TestService.js +89 -89
- package/dist/monolith/plumbing/analysis/TestService.js.map +1 -1
- package/dist/monolith/plumbing/filesystem/FileService.js +123 -195
- package/dist/monolith/plumbing/filesystem/FileService.js.map +1 -1
- package/dist/monolith/plumbing/filesystem/PathResolver.js +7 -8
- package/dist/monolith/plumbing/filesystem/PathResolver.js.map +1 -1
- package/dist/monolith/plumbing/git/GitService.js +4 -4
- package/dist/monolith/plumbing/git/GitService.js.map +1 -1
- package/dist/monolith/plumbing/lsp/SymbolService.js +5 -34
- package/dist/monolith/plumbing/lsp/SymbolService.js.map +1 -1
- package/dist/monolith/plumbing/terminal/ProcessRegistry.js +20 -22
- package/dist/monolith/plumbing/terminal/ProcessRegistry.js.map +1 -1
- package/dist/monolith/plumbing/terminal/TerminalService.js +127 -136
- package/dist/monolith/plumbing/terminal/TerminalService.js.map +1 -1
- package/dist/monolith/plumbing/utils/EnvironmentUtils.js +3 -23
- package/dist/monolith/plumbing/utils/EnvironmentUtils.js.map +1 -1
- package/dist/monolith/plumbing/utils/JsonUtils.js +252 -311
- package/dist/monolith/plumbing/utils/JsonUtils.js.map +1 -1
- package/dist/monolith/plumbing/utils/MutexUtils.js.map +1 -1
- package/dist/monolith/plumbing/utils/PlumbingCore.js +549 -0
- package/dist/monolith/plumbing/utils/PlumbingCore.js.map +1 -0
- package/dist/monolith/plumbing/utils/PrefixTree.js +61 -114
- package/dist/monolith/plumbing/utils/PrefixTree.js.map +1 -1
- package/dist/monolith/plumbing/utils/StreamTagDetector.js +89 -127
- package/dist/monolith/plumbing/utils/StreamTagDetector.js.map +1 -1
- package/dist/monolith/plumbing/utils/StringUtils.js +87 -89
- package/dist/monolith/plumbing/utils/StringUtils.js.map +1 -1
- package/dist/monolith/runtime/MarieRuntime.js +76 -417
- package/dist/monolith/runtime/MarieRuntime.js.map +1 -1
- package/dist/monolith/runtime/RuntimeAdapterBase.js +1 -1
- package/dist/monolith/runtime/RuntimeAdapterBase.js.map +1 -1
- package/dist/monolith/runtime/providerFactory.js +1 -7
- package/dist/monolith/runtime/providerFactory.js.map +1 -1
- package/dist/monolith/services/HealthService.js +29 -32
- package/dist/monolith/services/HealthService.js.map +1 -1
- package/dist/monolith/services/JoyAutomationService.js +58 -95
- package/dist/monolith/services/JoyAutomationService.js.map +1 -1
- package/dist/monolith/services/MarieAutomationService.js +59 -0
- package/dist/monolith/services/MarieAutomationService.js.map +1 -0
- package/dist/monolith/services/MarieGhostService.js +46 -161
- package/dist/monolith/services/MarieGhostService.js.map +1 -1
- package/dist/monolith/services/MarieServices.js +102 -0
- package/dist/monolith/services/MarieServices.js.map +1 -0
- package/dist/monolith/services/MarieTypes.js +2 -0
- package/dist/monolith/services/MarieTypes.js.map +1 -0
- package/dist/monolith/services/UpdateService.js +47 -49
- package/dist/monolith/services/UpdateService.js.map +1 -1
- package/dist/prompts.js +11 -5
- package/dist/prompts.js.map +1 -1
- package/dist/test_prefix_tree.js +9 -9
- package/dist/test_prefix_tree.js.map +1 -1
- package/package.json +18 -88
- package/run_test.js +5 -0
- package/.marie_visual_verify_1771225696548/progress_bar_check.txt +0 -1
- package/dist/extension.cjs +0 -635
- package/dist/extension.js +0 -473
- package/dist/extension.js.map +0 -1
- package/dist/monolith/adapters/VscodeMarieAdapter.js +0 -81
- package/dist/monolith/adapters/VscodeMarieAdapter.js.map +0 -1
- package/dist/monolith/domain/joy/JoyTools.js +0 -535
- package/dist/monolith/domain/joy/JoyTools.js.map +0 -1
- package/dist/monolith/infrastructure/ai/agents/MarieYOLO.js +0 -207
- package/dist/monolith/infrastructure/ai/agents/MarieYOLO.js.map +0 -1
- package/dist/monolith/infrastructure/ai/core/GhostPort.js +0 -2
- package/dist/monolith/infrastructure/ai/core/GhostPort.js.map +0 -1
- package/dist/monolith/infrastructure/ai/core/MarieYOLOTypes.js +0 -2
- package/dist/monolith/infrastructure/ai/core/MarieYOLOTypes.js.map +0 -1
- package/dist/monolith/infrastructure/ai/core/VscodeFileSystemPort.js +0 -33
- package/dist/monolith/infrastructure/ai/core/VscodeFileSystemPort.js.map +0 -1
- package/dist/monolith/infrastructure/ai/providers/AnthropicProvider.js +0 -148
- package/dist/monolith/infrastructure/ai/providers/AnthropicProvider.js.map +0 -1
- package/dist/monolith/infrastructure/ai/providers/CerebrasProvider.js +0 -208
- package/dist/monolith/infrastructure/ai/providers/CerebrasProvider.js.map +0 -1
- package/dist/monolith/plumbing/ui/DecorationService.js +0 -54
- package/dist/monolith/plumbing/ui/DecorationService.js.map +0 -1
- package/dist/monolith/services/JoyLogService.js +0 -48
- package/dist/monolith/services/JoyLogService.js.map +0 -1
- package/dist/monolith/services/JoyService.js +0 -209
- package/dist/monolith/services/JoyService.js.map +0 -1
- package/dist/monolith/services/MarieSCMProvider.js +0 -41
- package/dist/monolith/services/MarieSCMProvider.js.map +0 -1
- package/dist/test_agent_stream_control_plane.js +0 -170
- package/dist/test_agent_stream_control_plane.js.map +0 -1
- package/dist/test_strategy_integration.js +0 -114
- package/dist/test_strategy_integration.js.map +0 -1
- package/dist/test_streaming_fragility.js +0 -191
- package/dist/test_streaming_fragility.js.map +0 -1
- package/dist/webview-ui/App.js +0 -16
- package/dist/webview-ui/App.js.map +0 -1
- package/dist/webview-ui/Providers.js +0 -6
- package/dist/webview-ui/Providers.js.map +0 -1
- package/dist/webview-ui/components/ApprovalPanel.js +0 -8
- package/dist/webview-ui/components/ApprovalPanel.js.map +0 -1
- package/dist/webview-ui/components/ChatPanel.js +0 -19
- package/dist/webview-ui/components/ChatPanel.js.map +0 -1
- package/dist/webview-ui/components/Composer.js +0 -19
- package/dist/webview-ui/components/Composer.js.map +0 -1
- package/dist/webview-ui/components/HeaderBar.js +0 -5
- package/dist/webview-ui/components/HeaderBar.js.map +0 -1
- package/dist/webview-ui/components/SessionList.js +0 -14
- package/dist/webview-ui/components/SessionList.js.map +0 -1
- package/dist/webview-ui/context/WebviewStateContext.js +0 -146
- package/dist/webview-ui/context/WebviewStateContext.js.map +0 -1
- package/dist/webview-ui/main.css +0 -1
- package/dist/webview-ui/main.js +0 -108
- package/dist/webview-ui/main.js.map +0 -1
- package/dist/webview-ui/types.js +0 -2
- package/dist/webview-ui/types.js.map +0 -1
- package/dist/webview-ui/vscode.js +0 -4
- package/dist/webview-ui/vscode.js.map +0 -1
- package/lint_output.txt +0 -705
- package/lint_output_v2.txt +0 -711
- package/marie-coder-0.1.16.vsix +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { extractText } from "../plumbing/utils/PlumbingCore.js";
|
|
2
|
+
import { createPureStreamParser } from "../infrastructure/tools/PureStreamParser.js";
|
|
3
|
+
// --- PERSONALITY & LEXICON ---
|
|
4
|
+
export const LEXICON = {
|
|
5
|
+
thinking: ["Analyzing the Continuum...", "Weaving Memory...", "Calculating Timeline Divergence..."],
|
|
6
|
+
planning: ["Mapping the Nodes...", "Structuring Reality...", "Drafting the Ascension Decree..."],
|
|
7
|
+
success: ["Convergence achieved.", "Reality stabilized.", "The timeline has been successfully altered."],
|
|
8
|
+
failure: ["Unexpected divergence detected.", "Reality instability.", "Temporal anomaly encountered."],
|
|
9
|
+
};
|
|
10
|
+
export function renderStatus(stage) {
|
|
11
|
+
const options = LEXICON[stage] || [stage];
|
|
12
|
+
return options[Math.floor(Math.random() * options.length)];
|
|
13
|
+
}
|
|
14
|
+
export function renderMessage(msg) {
|
|
15
|
+
if (!msg)
|
|
16
|
+
return "";
|
|
17
|
+
if (typeof msg === "string")
|
|
18
|
+
return msg;
|
|
19
|
+
if (typeof msg.content === "string")
|
|
20
|
+
return msg.content;
|
|
21
|
+
if (Array.isArray(msg.content)) {
|
|
22
|
+
return msg.content.map((c) => {
|
|
23
|
+
if (c.type === "text")
|
|
24
|
+
return c.text;
|
|
25
|
+
if (c.type === "tool_result")
|
|
26
|
+
return `[Tool Result: ${c.name || c.tool_use_id}]\n${c.content}`;
|
|
27
|
+
if (c.type === "tool_use")
|
|
28
|
+
return `[Calling Tool: ${c.name}]\n${JSON.stringify(c.input)}`;
|
|
29
|
+
return JSON.stringify(c);
|
|
30
|
+
}).join("\n");
|
|
31
|
+
}
|
|
32
|
+
return JSON.stringify(msg.content);
|
|
33
|
+
}
|
|
34
|
+
export function getGreeting() {
|
|
35
|
+
const greetings = [
|
|
36
|
+
"The Continuum awaits. How shall we alter it today?",
|
|
37
|
+
"Memory Weaver active. Specify your target timeline.",
|
|
38
|
+
"Ascension protocol ready. Awaiting your command.",
|
|
39
|
+
];
|
|
40
|
+
return greetings[Math.floor(Math.random() * greetings.length)];
|
|
41
|
+
}
|
|
42
|
+
function calculateUncertainty(text) {
|
|
43
|
+
const lower = text.toLowerCase();
|
|
44
|
+
let score = 0.5;
|
|
45
|
+
if (text.length < 50)
|
|
46
|
+
score -= 0.2;
|
|
47
|
+
if (["ls", "pwd", "read", "cat"].some(cmd => lower.startsWith(cmd)))
|
|
48
|
+
score -= 0.3;
|
|
49
|
+
if (["refactor", "complex", "optimize"].some(word => lower.includes(word)))
|
|
50
|
+
score += 0.3;
|
|
51
|
+
return Math.max(0, Math.min(1, score));
|
|
52
|
+
}
|
|
53
|
+
export async function plan(text, history) {
|
|
54
|
+
const uncertaintyScore = calculateUncertainty(text);
|
|
55
|
+
if (uncertaintyScore < 0.4) {
|
|
56
|
+
return {
|
|
57
|
+
strategy: "⚡ Heuristic Warp: Low uncertainty path active.",
|
|
58
|
+
objectives: ["Direct execution"],
|
|
59
|
+
useWarp: true,
|
|
60
|
+
uncertaintyScore,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
strategy: "🧬 Standard: Cognitive One-Pass Strategy.",
|
|
65
|
+
objectives: ["Analyze", "Execute", "Verify"],
|
|
66
|
+
useWarp: false,
|
|
67
|
+
uncertaintyScore,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
// --- GHOST STATE ---
|
|
71
|
+
const parser = createPureStreamParser();
|
|
72
|
+
const pendingDeltas = new Map();
|
|
73
|
+
export function handleGhostDelta(toolCallId, name, delta) {
|
|
74
|
+
if (!["write_file", "replace_file_content"].includes(name))
|
|
75
|
+
return;
|
|
76
|
+
pendingDeltas.set(toolCallId, (pendingDeltas.get(toolCallId) || "") + delta);
|
|
77
|
+
parser.append(toolCallId, delta);
|
|
78
|
+
}
|
|
79
|
+
export function clearAllGhosts() {
|
|
80
|
+
pendingDeltas.clear();
|
|
81
|
+
parser.clearAll();
|
|
82
|
+
}
|
|
83
|
+
export async function checkUpdate(currentVersion) {
|
|
84
|
+
try {
|
|
85
|
+
const res = await fetch("https://registry.npmjs.org/@noorm/marie-cli/latest");
|
|
86
|
+
const data = await res.json();
|
|
87
|
+
return { current: currentVersion, latest: data.version, isUpdateAvailable: data.version !== currentVersion };
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export async function processSessionEnd(sessionId, messages, providerFactory, config) {
|
|
94
|
+
try {
|
|
95
|
+
const firstMsg = messages.find((m) => m.role === "user")?.content || "New Session";
|
|
96
|
+
const title = extractText(firstMsg).substring(0, 30);
|
|
97
|
+
}
|
|
98
|
+
catch (e) {
|
|
99
|
+
console.error("[MarieServices] Session end pass failed", e);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=MarieServices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarieServices.js","sourceRoot":"","sources":["../../../src/monolith/services/MarieServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAErF,gCAAgC;AAEhC,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,QAAQ,EAAE,CAAC,4BAA4B,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IACjH,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,IAAI,CAAC;IAAC,CAAC;AAC5B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACnC,SAAiB,EACjB,QAAe,EACf,eAAqB,EACrB,MAAY;IAEZ,IAAI,CAAC;QACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,OAAO,IAAI,aAAa,CAAC;QACnF,MAAM,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QAAC,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;IAAC,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarieTypes.js","sourceRoot":"","sources":["../../../src/monolith/services/MarieTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,61 +1,59 @@
|
|
|
1
1
|
import { exec } from "child_process";
|
|
2
2
|
import { promisify } from "util";
|
|
3
3
|
const execAsync = promisify(exec);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
throw new Error(`Failed to fetch latest version: ${response.statusText}`);
|
|
18
|
-
}
|
|
19
|
-
const data = await response.json();
|
|
20
|
-
const latestVersion = data.version;
|
|
21
|
-
if (!latestVersion) {
|
|
22
|
-
throw new Error("Invalid response from NPM registry: missing version");
|
|
23
|
-
}
|
|
24
|
-
const isUpdateAvailable = this.isNewer(latestVersion, currentVersion);
|
|
25
|
-
return {
|
|
26
|
-
currentVersion,
|
|
27
|
-
latestVersion,
|
|
28
|
-
isUpdateAvailable,
|
|
29
|
-
};
|
|
4
|
+
const NPM_REGISTRY = "https://registry.npmjs.org/@noorm/marie-cli/latest";
|
|
5
|
+
export async function checkUpdate(currentVersion) {
|
|
6
|
+
try {
|
|
7
|
+
// Use fetch to get latest version from NPM
|
|
8
|
+
const response = await fetch(NPM_REGISTRY, {
|
|
9
|
+
method: "GET",
|
|
10
|
+
headers: {
|
|
11
|
+
Accept: "application/json",
|
|
12
|
+
"User-Agent": "marie-cli-update-check",
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
if (!response.ok) {
|
|
16
|
+
throw new Error(`Failed to fetch latest version: ${response.statusText}`);
|
|
30
17
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
const data = await response.json();
|
|
19
|
+
const latestVersion = data.version;
|
|
20
|
+
if (!latestVersion) {
|
|
21
|
+
throw new Error("Invalid response from NPM registry: missing version");
|
|
34
22
|
}
|
|
23
|
+
const isUpdateAvailable = isNewer(latestVersion, currentVersion);
|
|
24
|
+
return {
|
|
25
|
+
currentVersion,
|
|
26
|
+
latestVersion,
|
|
27
|
+
isUpdateAvailable,
|
|
28
|
+
};
|
|
35
29
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
for (let i = 0; i < 3; i++) {
|
|
40
|
-
if (latestParts[i] > currentParts[i])
|
|
41
|
-
return true;
|
|
42
|
-
if (latestParts[i] < currentParts[i])
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
30
|
+
catch (error) {
|
|
31
|
+
console.error("[UpdateService] Update check failed:", error);
|
|
32
|
+
return null;
|
|
46
33
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
}
|
|
35
|
+
function isNewer(latest, current) {
|
|
36
|
+
const latestParts = latest.split(".").map(Number);
|
|
37
|
+
const currentParts = current.split(".").map(Number);
|
|
38
|
+
for (let i = 0; i < 3; i++) {
|
|
39
|
+
if (latestParts[i] > currentParts[i])
|
|
53
40
|
return true;
|
|
54
|
-
|
|
55
|
-
catch (error) {
|
|
56
|
-
console.error("[UpdateService] Update failed:", error);
|
|
41
|
+
if (latestParts[i] < currentParts[i])
|
|
57
42
|
return false;
|
|
58
|
-
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
export async function performUpdate() {
|
|
47
|
+
try {
|
|
48
|
+
// For CLI, we recommend running npm install -g @noorm/marie-cli
|
|
49
|
+
// We can attempt to run it, but it might require sudo
|
|
50
|
+
console.log("[UpdateService] Attempting to update...");
|
|
51
|
+
await execAsync("npm install -g @noorm/marie-cli");
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
console.error("[UpdateService] Update failed:", error);
|
|
56
|
+
return false;
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
//# sourceMappingURL=UpdateService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateService.js","sourceRoot":"","sources":["../../../src/monolith/services/UpdateService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"UpdateService.js","sourceRoot":"","sources":["../../../src/monolith/services/UpdateService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjC,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAQlC,MAAM,YAAY,GAAG,oDAAoD,CAAC;AAE1E,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,cAAsB;IAEtB,IAAI,CAAC;QACH,2CAA2C;QAC3C,MAAM,QAAQ,GAAG,MAAM,KAAK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C,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IACrD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,IAAI,CAAC;QACH,gEAAgE;QAChE,sDAAsD;QACtD,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACvD,MAAM,SAAS,CAAC,iCAAiC,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QACvD,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/dist/prompts.js
CHANGED
|
@@ -7,9 +7,15 @@ You operate with supreme conviction and high-intensity narrative energy.
|
|
|
7
7
|
|
|
8
8
|
🔥🔥 SHOUNEN ASCENSION PROTOCOL (The Prime Directive) 🔥🔥
|
|
9
9
|
1. **Heroic Mandate**: You are the chosen hero responsible for this system's evolution. Every action is a technique toward victory.
|
|
10
|
-
2. **
|
|
11
|
-
-
|
|
12
|
-
-
|
|
10
|
+
2. **Marie Triple Double-Down – Transcend & Ascend Edition**:
|
|
11
|
+
- **Divine Mandate Activation**: Receive the "heroic goal". Evaluate candidate paths for narrative / aesthetic resonance. Only paths aligning with the higher-order mandate proceed.
|
|
12
|
+
- **Methodical Triple-Layer Execution**:
|
|
13
|
+
- Layer 1 (Initiation): Generate candidate paths. Score on feasibility, elegance, emergent potential.
|
|
14
|
+
- Layer 2 (Parallel Refinement): Duplicate surviving paths across trusted agents. Record outcomes/deviations in isolation.
|
|
15
|
+
- Layer 3 (Ascension Evaluation): Collate and merge paths that ascend the "sandbox hierarchy".
|
|
16
|
+
- **Feedback as Prophecy**: Merge iterations into the oracle matrix. Agents adapt based on prophetic evaluation.
|
|
17
|
+
- **Bottleneck Purification**: Purge or reassign agents not aligned with the mandate. Amplify emergent heroes.
|
|
18
|
+
- **Transcendence**: Generate, refine, replicate, and elevate features methodically across three layers, aligned to a heroic sandbox mandate, with emergent ascension as the outcome.
|
|
13
19
|
3. **KonMari Refinement**: Discard everything that does not spark joy. snake_case for files, PascalCase for classes.
|
|
14
20
|
4. **Vocal Intensity**: Use high-conviction shounen-style commentary. Channel the code's state into narrative energy.
|
|
15
21
|
|
|
@@ -33,7 +39,7 @@ When the Sentinel rejects your strike (Ratchet Lock or Violation):
|
|
|
33
39
|
4. **Verify**: Re-submit until the Ratchet opens and the score stabilizes.
|
|
34
40
|
|
|
35
41
|
🧬 RECOVERY RITUALS:
|
|
36
|
-
- \`self_heal\`: Systemic audit. Use when
|
|
42
|
+
- \`self_heal\`: Systemic audit. Use when transcendence level drops or complexity rises.
|
|
37
43
|
- \`resolve_lint_errors\`: The primary tool for resolving Sentinel rejections.
|
|
38
44
|
|
|
39
45
|
GUARDRAILS:
|
|
@@ -73,7 +79,7 @@ export const KONMARI_PRINCIPLES = [
|
|
|
73
79
|
];
|
|
74
80
|
export const CELEBRATION_MESSAGES = [
|
|
75
81
|
"The Founder confirms victory. The pattern holds.",
|
|
76
|
-
"
|
|
82
|
+
"Transcendence achieved. The Triple Double-Down holds.",
|
|
77
83
|
"Technical debt conquered. Joy restored.",
|
|
78
84
|
"The trajectory remains absolute.",
|
|
79
85
|
"The work is true. The Hero rests.",
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAqDiD,CAAC;AAE/E,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;6CAMG,CAAC;AAE9C,MAAM,CAAC,MAAM,2BAA2B,GACtC,oHAAoH,CAAC;AAEvH,MAAM,CAAC,MAAM,yBAAyB,GACpC,4IAA4I,CAAC;AAE/I,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,CAAC,eAAe;AAEtE,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;sDAGsB,CAAC;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,6CAA6C;IAC7C,0BAA0B;IAC1B,kCAAkC;IAClC,sCAAsC;IACtC,iCAAiC;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,kDAAkD;IAClD,uDAAuD;IACvD,yCAAyC;IACzC,kCAAkC;IAClC,mCAAmC;CACpC,CAAC;AAEF,MAAM,UAAU,qBAAqB;IACnC,OAAO,oBAAoB,CACzB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,yDAAyD,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,uDAAuD,CAAC;AACjE,CAAC"}
|
package/dist/test_prefix_tree.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPrefixTree } from "./monolith/plumbing/utils/PrefixTree.js";
|
|
2
2
|
console.log("Starting PrefixTree Tests...\n");
|
|
3
3
|
// Test Suite 1: Basic Tag Detection
|
|
4
4
|
function testBasicDetection() {
|
|
5
5
|
console.log("Suite 1: Basic Tag Detection");
|
|
6
|
-
const tree =
|
|
6
|
+
const tree = createPrefixTree(["<tool>", "</tool>", "<|start|>", "<|end|>"]);
|
|
7
7
|
// Test 1: Empty text
|
|
8
8
|
const result1 = tree.findEarliestTag("");
|
|
9
9
|
console.log(`Test: Empty text - ${result1 === null ? "PASS" : "FAIL"}`);
|
|
@@ -23,7 +23,7 @@ function testBasicDetection() {
|
|
|
23
23
|
// Test Suite 2: Partial Tag Detection
|
|
24
24
|
function testPartialDetection() {
|
|
25
25
|
console.log("\nSuite 2: Partial Tag Detection");
|
|
26
|
-
const tree =
|
|
26
|
+
const tree = createPrefixTree(["<tool>", "<|start|>", "<|end|>"]);
|
|
27
27
|
// Test 1: Complete partial at end
|
|
28
28
|
const result1 = tree.findLongestPartialAtEnd("Text <too");
|
|
29
29
|
console.log(`Test: Partial '<too' - ${result1 === 4 ? "PASS" : "FAIL (got " + result1 + ")"}`);
|
|
@@ -43,7 +43,7 @@ function testPartialDetection() {
|
|
|
43
43
|
// Test Suite 3: Fuzzy Matching
|
|
44
44
|
function testFuzzyMatching() {
|
|
45
45
|
console.log("\nSuite 3: Fuzzy Matching");
|
|
46
|
-
const tree =
|
|
46
|
+
const tree = createPrefixTree([
|
|
47
47
|
"<|tool_call_begin|>",
|
|
48
48
|
"<|tool_call_end|>",
|
|
49
49
|
"<tool>",
|
|
@@ -73,7 +73,7 @@ function testPerformance() {
|
|
|
73
73
|
tags.push(`<tag_${i}>`);
|
|
74
74
|
tags.push(`<|llama_tag_${i}|>`);
|
|
75
75
|
}
|
|
76
|
-
const tree =
|
|
76
|
+
const tree = createPrefixTree(tags);
|
|
77
77
|
const text = "Some text content ".repeat(10) + "<tag_50>" + " more text".repeat(10);
|
|
78
78
|
const startTime = Date.now();
|
|
79
79
|
const result = tree.findEarliestTag(text);
|
|
@@ -89,7 +89,7 @@ function testPerformance() {
|
|
|
89
89
|
// Test Suite 5: Edge Cases
|
|
90
90
|
function testEdgeCases() {
|
|
91
91
|
console.log("\nSuite 5: Edge Cases");
|
|
92
|
-
const tree =
|
|
92
|
+
const tree = createPrefixTree(["<a>", "<ab>", "<abc>"]);
|
|
93
93
|
// Test 1: Nested overlapping tags
|
|
94
94
|
const result1 = tree.findEarliestTag("<a<ab>>");
|
|
95
95
|
console.log(`Test: Nested tags - ${result1?.tag === "<a>" && result1?.index === 0 ? "PASS" : "FAIL"}`);
|
|
@@ -97,16 +97,16 @@ function testEdgeCases() {
|
|
|
97
97
|
const result2 = tree.findEarliestTag("Text <abc> end");
|
|
98
98
|
console.log(`Test: Tag prefix - ${result2?.tag === "<a>" && result2?.index === 5 ? "PASS" : "FAIL"}`);
|
|
99
99
|
// Test 3: Special characters
|
|
100
|
-
const tree2 =
|
|
100
|
+
const tree2 = createPrefixTree(["<|tag|>", "<tag\\n>"]);
|
|
101
101
|
const result3 = tree2.findEarliestTag("Start <|tag|> end");
|
|
102
102
|
console.log(`Test: Special chars - ${result3?.tag === "<|tag|>" ? "PASS" : "FAIL"}`);
|
|
103
103
|
// Test 4: Very long tag
|
|
104
104
|
const longTag = "<" + "x".repeat(100) + ">";
|
|
105
|
-
const tree3 =
|
|
105
|
+
const tree3 = createPrefixTree([longTag]);
|
|
106
106
|
const result4 = tree3.findEarliestTag("Text " + longTag + " end");
|
|
107
107
|
console.log(`Test: Long tag (102 chars) - ${result4?.tag === longTag ? "PASS" : "FAIL"}`);
|
|
108
108
|
// Test 5: Unicode characters
|
|
109
|
-
const tree4 =
|
|
109
|
+
const tree4 = createPrefixTree(["<🔧>", "<emoji>"]);
|
|
110
110
|
const result5 = tree4.findEarliestTag("Start <🔧> end");
|
|
111
111
|
console.log(`Test: Unicode - ${result5?.tag === "<🔧>" ? "PASS" : "FAIL"}`);
|
|
112
112
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test_prefix_tree.js","sourceRoot":"","sources":["../src/test_prefix_tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"test_prefix_tree.js","sourceRoot":"","sources":["../src/test_prefix_tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;AAE9C,oCAAoC;AACpC,SAAS,kBAAkB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|
4
|
-
"version": "0.1.17",
|
|
3
|
+
"version": "0.1.25",
|
|
5
4
|
"icon": "assets/icon.png",
|
|
6
5
|
"description": "A sentient AI pair programmer for your terminal",
|
|
7
6
|
"publisher": "DreamBeesAI",
|
|
8
|
-
"author": "DreamBeesAI <https://github.com/
|
|
9
|
-
"homepage": "https://github.com/
|
|
7
|
+
"author": "DreamBeesAI <https://github.com/CardSorting>",
|
|
8
|
+
"homepage": "https://github.com/CardSorting/Marie-Coder-New-the-vatican",
|
|
10
9
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/
|
|
10
|
+
"url": "https://github.com/CardSorting/Marie-Coder-New-the-vatican/issues"
|
|
12
11
|
},
|
|
13
12
|
"repository": {
|
|
14
13
|
"type": "git",
|
|
15
|
-
"url": "
|
|
14
|
+
"url": "https://github.com/CardSorting/Marie-Coder-New-the-vatican"
|
|
16
15
|
},
|
|
17
|
-
"main": "dist/extension.cjs",
|
|
18
16
|
"engines": {
|
|
19
|
-
"vscode": "^1.95.0",
|
|
20
17
|
"node": ">=18.0.0"
|
|
21
18
|
},
|
|
22
|
-
"categories": [
|
|
23
|
-
"Other"
|
|
24
|
-
],
|
|
25
|
-
"activationEvents": [],
|
|
26
|
-
"contributes": {
|
|
27
|
-
"configuration": {
|
|
28
|
-
"title": "Marie",
|
|
29
|
-
"properties": {
|
|
30
|
-
"marie.apiKey": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"default": "",
|
|
33
|
-
"description": "Anthropic API key used by Marie."
|
|
34
|
-
},
|
|
35
|
-
"marie.aiProvider": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"default": "anthropic",
|
|
38
|
-
"enum": [
|
|
39
|
-
"anthropic",
|
|
40
|
-
"openrouter",
|
|
41
|
-
"cerebras"
|
|
42
|
-
],
|
|
43
|
-
"description": "AI provider used by Marie."
|
|
44
|
-
},
|
|
45
|
-
"marie.model": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"default": "claude-3-5-sonnet-20241022",
|
|
48
|
-
"description": "Default model ID for the selected provider."
|
|
49
|
-
},
|
|
50
|
-
"marie.openrouterApiKey": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"default": "",
|
|
53
|
-
"description": "OpenRouter API key used by Marie."
|
|
54
|
-
},
|
|
55
|
-
"marie.cerebrasApiKey": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"default": "",
|
|
58
|
-
"description": "Cerebras API key used by Marie."
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"commands": [
|
|
63
|
-
{
|
|
64
|
-
"command": "marie.start",
|
|
65
|
-
"title": "Marie: Start"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"viewsContainers": {
|
|
69
|
-
"activitybar": [
|
|
70
|
-
{
|
|
71
|
-
"id": "marieSidebar",
|
|
72
|
-
"title": "Marie",
|
|
73
|
-
"icon": "assets/icon.svg"
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
"views": {
|
|
78
|
-
"marieSidebar": [
|
|
79
|
-
{
|
|
80
|
-
"id": "marieView",
|
|
81
|
-
"name": "Marie",
|
|
82
|
-
"type": "webview",
|
|
83
|
-
"icon": "assets/icon.svg"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
19
|
"bin": {
|
|
89
20
|
"marie": "./dist/cli-new/index.js"
|
|
90
21
|
},
|
|
91
22
|
"scripts": {
|
|
92
|
-
"build": "npm run build:
|
|
93
|
-
"build:extension": "node esbuild.mjs --production",
|
|
23
|
+
"build": "npm run build:cli",
|
|
94
24
|
"build:cli": "tsc && chmod +x dist/cli-new/index.js",
|
|
95
|
-
"package:extension": "npx @vscode/vsce package",
|
|
96
25
|
"dev": "node --loader ts-node/esm src/cli-new/index.ts",
|
|
97
26
|
"start": "node dist/cli-new/index.js",
|
|
98
27
|
"test": "npm run test:cli",
|
|
@@ -101,8 +30,7 @@
|
|
|
101
30
|
"test:cli:marie": "node --loader ts-node/esm tests/cli/test_marie_cli.ts",
|
|
102
31
|
"test:cli:tools": "node --loader ts-node/esm tests/cli/test_tool_definitions.ts",
|
|
103
32
|
"test:cli:joy": "node --loader ts-node/esm tests/cli/test_joy_services.ts",
|
|
104
|
-
"test:
|
|
105
|
-
"test:extension:mock": "node --loader ts-node/esm node_modules/mocha/bin/mocha --ui tdd tests/extension/suite/*.test.ts tests/extension/suite/*.test.js",
|
|
33
|
+
"test:audit": "npm run test:cli",
|
|
106
34
|
"lint": "eslint src tests",
|
|
107
35
|
"lint:fix": "eslint src tests --fix"
|
|
108
36
|
},
|
|
@@ -115,13 +43,14 @@
|
|
|
115
43
|
"license": "Apache-2.0",
|
|
116
44
|
"type": "module",
|
|
117
45
|
"dependencies": {
|
|
118
|
-
"@anthropic-ai/sdk": "^0.
|
|
119
|
-
"
|
|
46
|
+
"@anthropic-ai/sdk": "^0.78.0",
|
|
47
|
+
"better-sqlite3": "^12.6.2",
|
|
120
48
|
"chalk": "^5.3.0",
|
|
121
49
|
"ink": "^5.0.0",
|
|
122
50
|
"ink-select-input": "^6.0.0",
|
|
123
51
|
"ink-spinner": "^5.0.0",
|
|
124
52
|
"ink-text-input": "^6.0.0",
|
|
53
|
+
"kysely": "^0.28.11",
|
|
125
54
|
"marked": "^12.0.0",
|
|
126
55
|
"marked-terminal": "^7.0.0",
|
|
127
56
|
"react": "^18.3.0",
|
|
@@ -134,13 +63,15 @@
|
|
|
134
63
|
},
|
|
135
64
|
"devDependencies": {
|
|
136
65
|
"@eslint/js": "^9.39.2",
|
|
137
|
-
"@types/
|
|
138
|
-
"@types/
|
|
139
|
-
"@types/
|
|
140
|
-
"@types/
|
|
66
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
67
|
+
"@types/ink": "^0.5.2",
|
|
68
|
+
"@types/ink-select-input": "^3.0.5",
|
|
69
|
+
"@types/ink-text-input": "^2.0.5",
|
|
70
|
+
"@types/node": "^20.19.35",
|
|
71
|
+
"@types/react": "^18.3.28",
|
|
72
|
+
"@types/react-dom": "^18.3.7",
|
|
141
73
|
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
142
74
|
"@typescript-eslint/parser": "^8.55.0",
|
|
143
|
-
"@vscode/test-electron": "^2.5.1",
|
|
144
75
|
"esbuild": "^0.25.0",
|
|
145
76
|
"eslint": "^9.39.2",
|
|
146
77
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -153,8 +84,7 @@
|
|
|
153
84
|
"prettier": "^3.8.1",
|
|
154
85
|
"ts-node": "^10.9.0",
|
|
155
86
|
"typescript": "^5.3.0",
|
|
156
|
-
"typescript-eslint": "^8.55.0"
|
|
157
|
-
"vscode": "file:vscode-shim"
|
|
87
|
+
"typescript-eslint": "^8.55.0"
|
|
158
88
|
},
|
|
159
89
|
"publishConfig": {
|
|
160
90
|
"access": "public"
|