foundry-mcp 0.3.3__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.
- foundry_mcp/__init__.py +7 -0
- foundry_mcp/cli/__init__.py +80 -0
- foundry_mcp/cli/__main__.py +9 -0
- foundry_mcp/cli/agent.py +96 -0
- foundry_mcp/cli/commands/__init__.py +37 -0
- foundry_mcp/cli/commands/cache.py +137 -0
- foundry_mcp/cli/commands/dashboard.py +148 -0
- foundry_mcp/cli/commands/dev.py +446 -0
- foundry_mcp/cli/commands/journal.py +377 -0
- foundry_mcp/cli/commands/lifecycle.py +274 -0
- foundry_mcp/cli/commands/modify.py +824 -0
- foundry_mcp/cli/commands/plan.py +633 -0
- foundry_mcp/cli/commands/pr.py +393 -0
- foundry_mcp/cli/commands/review.py +652 -0
- foundry_mcp/cli/commands/session.py +479 -0
- foundry_mcp/cli/commands/specs.py +856 -0
- foundry_mcp/cli/commands/tasks.py +807 -0
- foundry_mcp/cli/commands/testing.py +676 -0
- foundry_mcp/cli/commands/validate.py +982 -0
- foundry_mcp/cli/config.py +98 -0
- foundry_mcp/cli/context.py +259 -0
- foundry_mcp/cli/flags.py +266 -0
- foundry_mcp/cli/logging.py +212 -0
- foundry_mcp/cli/main.py +44 -0
- foundry_mcp/cli/output.py +122 -0
- foundry_mcp/cli/registry.py +110 -0
- foundry_mcp/cli/resilience.py +178 -0
- foundry_mcp/cli/transcript.py +217 -0
- foundry_mcp/config.py +850 -0
- foundry_mcp/core/__init__.py +144 -0
- foundry_mcp/core/ai_consultation.py +1636 -0
- foundry_mcp/core/cache.py +195 -0
- foundry_mcp/core/capabilities.py +446 -0
- foundry_mcp/core/concurrency.py +898 -0
- foundry_mcp/core/context.py +540 -0
- foundry_mcp/core/discovery.py +1603 -0
- foundry_mcp/core/error_collection.py +728 -0
- foundry_mcp/core/error_store.py +592 -0
- foundry_mcp/core/feature_flags.py +592 -0
- foundry_mcp/core/health.py +749 -0
- foundry_mcp/core/journal.py +694 -0
- foundry_mcp/core/lifecycle.py +412 -0
- foundry_mcp/core/llm_config.py +1350 -0
- foundry_mcp/core/llm_patterns.py +510 -0
- foundry_mcp/core/llm_provider.py +1569 -0
- foundry_mcp/core/logging_config.py +374 -0
- foundry_mcp/core/metrics_persistence.py +584 -0
- foundry_mcp/core/metrics_registry.py +327 -0
- foundry_mcp/core/metrics_store.py +641 -0
- foundry_mcp/core/modifications.py +224 -0
- foundry_mcp/core/naming.py +123 -0
- foundry_mcp/core/observability.py +1216 -0
- foundry_mcp/core/otel.py +452 -0
- foundry_mcp/core/otel_stubs.py +264 -0
- foundry_mcp/core/pagination.py +255 -0
- foundry_mcp/core/progress.py +317 -0
- foundry_mcp/core/prometheus.py +577 -0
- foundry_mcp/core/prompts/__init__.py +464 -0
- foundry_mcp/core/prompts/fidelity_review.py +546 -0
- foundry_mcp/core/prompts/markdown_plan_review.py +511 -0
- foundry_mcp/core/prompts/plan_review.py +623 -0
- foundry_mcp/core/providers/__init__.py +225 -0
- foundry_mcp/core/providers/base.py +476 -0
- foundry_mcp/core/providers/claude.py +460 -0
- foundry_mcp/core/providers/codex.py +619 -0
- foundry_mcp/core/providers/cursor_agent.py +642 -0
- foundry_mcp/core/providers/detectors.py +488 -0
- foundry_mcp/core/providers/gemini.py +405 -0
- foundry_mcp/core/providers/opencode.py +616 -0
- foundry_mcp/core/providers/opencode_wrapper.js +302 -0
- foundry_mcp/core/providers/package-lock.json +24 -0
- foundry_mcp/core/providers/package.json +25 -0
- foundry_mcp/core/providers/registry.py +607 -0
- foundry_mcp/core/providers/test_provider.py +171 -0
- foundry_mcp/core/providers/validation.py +729 -0
- foundry_mcp/core/rate_limit.py +427 -0
- foundry_mcp/core/resilience.py +600 -0
- foundry_mcp/core/responses.py +934 -0
- foundry_mcp/core/review.py +366 -0
- foundry_mcp/core/security.py +438 -0
- foundry_mcp/core/spec.py +1650 -0
- foundry_mcp/core/task.py +1289 -0
- foundry_mcp/core/testing.py +450 -0
- foundry_mcp/core/validation.py +2081 -0
- foundry_mcp/dashboard/__init__.py +32 -0
- foundry_mcp/dashboard/app.py +119 -0
- foundry_mcp/dashboard/components/__init__.py +17 -0
- foundry_mcp/dashboard/components/cards.py +88 -0
- foundry_mcp/dashboard/components/charts.py +234 -0
- foundry_mcp/dashboard/components/filters.py +136 -0
- foundry_mcp/dashboard/components/tables.py +195 -0
- foundry_mcp/dashboard/data/__init__.py +11 -0
- foundry_mcp/dashboard/data/stores.py +433 -0
- foundry_mcp/dashboard/launcher.py +289 -0
- foundry_mcp/dashboard/views/__init__.py +12 -0
- foundry_mcp/dashboard/views/errors.py +217 -0
- foundry_mcp/dashboard/views/metrics.py +174 -0
- foundry_mcp/dashboard/views/overview.py +160 -0
- foundry_mcp/dashboard/views/providers.py +83 -0
- foundry_mcp/dashboard/views/sdd_workflow.py +255 -0
- foundry_mcp/dashboard/views/tool_usage.py +139 -0
- foundry_mcp/prompts/__init__.py +9 -0
- foundry_mcp/prompts/workflows.py +525 -0
- foundry_mcp/resources/__init__.py +9 -0
- foundry_mcp/resources/specs.py +591 -0
- foundry_mcp/schemas/__init__.py +38 -0
- foundry_mcp/schemas/sdd-spec-schema.json +386 -0
- foundry_mcp/server.py +164 -0
- foundry_mcp/tools/__init__.py +10 -0
- foundry_mcp/tools/unified/__init__.py +71 -0
- foundry_mcp/tools/unified/authoring.py +1487 -0
- foundry_mcp/tools/unified/context_helpers.py +98 -0
- foundry_mcp/tools/unified/documentation_helpers.py +198 -0
- foundry_mcp/tools/unified/environment.py +939 -0
- foundry_mcp/tools/unified/error.py +462 -0
- foundry_mcp/tools/unified/health.py +225 -0
- foundry_mcp/tools/unified/journal.py +841 -0
- foundry_mcp/tools/unified/lifecycle.py +632 -0
- foundry_mcp/tools/unified/metrics.py +777 -0
- foundry_mcp/tools/unified/plan.py +745 -0
- foundry_mcp/tools/unified/pr.py +294 -0
- foundry_mcp/tools/unified/provider.py +629 -0
- foundry_mcp/tools/unified/review.py +685 -0
- foundry_mcp/tools/unified/review_helpers.py +299 -0
- foundry_mcp/tools/unified/router.py +102 -0
- foundry_mcp/tools/unified/server.py +580 -0
- foundry_mcp/tools/unified/spec.py +808 -0
- foundry_mcp/tools/unified/task.py +2202 -0
- foundry_mcp/tools/unified/test.py +370 -0
- foundry_mcp/tools/unified/verification.py +520 -0
- foundry_mcp-0.3.3.dist-info/METADATA +337 -0
- foundry_mcp-0.3.3.dist-info/RECORD +135 -0
- foundry_mcp-0.3.3.dist-info/WHEEL +4 -0
- foundry_mcp-0.3.3.dist-info/entry_points.txt +3 -0
- foundry_mcp-0.3.3.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"""Core spec and task operations for foundry-mcp."""
|
|
2
|
+
|
|
3
|
+
from foundry_mcp.core.spec import (
|
|
4
|
+
find_specs_directory,
|
|
5
|
+
find_spec_file,
|
|
6
|
+
resolve_spec_file,
|
|
7
|
+
load_spec,
|
|
8
|
+
save_spec,
|
|
9
|
+
backup_spec,
|
|
10
|
+
list_specs,
|
|
11
|
+
get_node,
|
|
12
|
+
update_node,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from foundry_mcp.core.task import (
|
|
16
|
+
is_unblocked,
|
|
17
|
+
is_in_current_phase,
|
|
18
|
+
get_next_task,
|
|
19
|
+
check_dependencies,
|
|
20
|
+
get_previous_sibling,
|
|
21
|
+
get_parent_context,
|
|
22
|
+
get_phase_context,
|
|
23
|
+
get_task_journal_summary,
|
|
24
|
+
prepare_task,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
from foundry_mcp.core.progress import (
|
|
28
|
+
recalculate_progress,
|
|
29
|
+
update_node_status,
|
|
30
|
+
update_parent_status,
|
|
31
|
+
get_progress_summary,
|
|
32
|
+
list_phases,
|
|
33
|
+
get_task_counts_by_status,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
from foundry_mcp.core.validation import (
|
|
37
|
+
Diagnostic,
|
|
38
|
+
ValidationResult,
|
|
39
|
+
FixAction,
|
|
40
|
+
FixReport,
|
|
41
|
+
SpecStats,
|
|
42
|
+
validate_spec,
|
|
43
|
+
get_fix_actions,
|
|
44
|
+
apply_fixes,
|
|
45
|
+
calculate_stats,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
from foundry_mcp.core.journal import (
|
|
49
|
+
JournalEntry,
|
|
50
|
+
BlockerInfo,
|
|
51
|
+
ResolvedBlocker,
|
|
52
|
+
add_journal_entry,
|
|
53
|
+
get_journal_entries,
|
|
54
|
+
get_latest_journal_entry,
|
|
55
|
+
mark_blocked,
|
|
56
|
+
unblock,
|
|
57
|
+
get_blocker_info,
|
|
58
|
+
get_resolved_blockers,
|
|
59
|
+
list_blocked_tasks,
|
|
60
|
+
update_task_status,
|
|
61
|
+
mark_task_journaled,
|
|
62
|
+
find_unjournaled_tasks,
|
|
63
|
+
save_journal,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
from foundry_mcp.core.responses import (
|
|
67
|
+
ToolResponse,
|
|
68
|
+
success_response,
|
|
69
|
+
error_response,
|
|
70
|
+
)
|
|
71
|
+
from foundry_mcp.core.naming import canonical_tool
|
|
72
|
+
|
|
73
|
+
from foundry_mcp.core.review import (
|
|
74
|
+
ReviewFinding,
|
|
75
|
+
QuickReviewResult,
|
|
76
|
+
ReviewContext,
|
|
77
|
+
get_llm_status,
|
|
78
|
+
prepare_review_context,
|
|
79
|
+
quick_review,
|
|
80
|
+
review_type_requires_llm,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
__all__ = [
|
|
84
|
+
"find_specs_directory",
|
|
85
|
+
"find_spec_file",
|
|
86
|
+
"resolve_spec_file",
|
|
87
|
+
"load_spec",
|
|
88
|
+
"save_spec",
|
|
89
|
+
"backup_spec",
|
|
90
|
+
"list_specs",
|
|
91
|
+
"get_node",
|
|
92
|
+
"update_node",
|
|
93
|
+
"is_unblocked",
|
|
94
|
+
"is_in_current_phase",
|
|
95
|
+
"get_next_task",
|
|
96
|
+
"check_dependencies",
|
|
97
|
+
"get_previous_sibling",
|
|
98
|
+
"get_parent_context",
|
|
99
|
+
"get_phase_context",
|
|
100
|
+
"get_task_journal_summary",
|
|
101
|
+
"prepare_task",
|
|
102
|
+
"recalculate_progress",
|
|
103
|
+
"update_node_status",
|
|
104
|
+
"update_parent_status",
|
|
105
|
+
"get_progress_summary",
|
|
106
|
+
"list_phases",
|
|
107
|
+
"get_task_counts_by_status",
|
|
108
|
+
"Diagnostic",
|
|
109
|
+
"ValidationResult",
|
|
110
|
+
"FixAction",
|
|
111
|
+
"FixReport",
|
|
112
|
+
"SpecStats",
|
|
113
|
+
"validate_spec",
|
|
114
|
+
"get_fix_actions",
|
|
115
|
+
"apply_fixes",
|
|
116
|
+
"calculate_stats",
|
|
117
|
+
"JournalEntry",
|
|
118
|
+
"BlockerInfo",
|
|
119
|
+
"ResolvedBlocker",
|
|
120
|
+
"add_journal_entry",
|
|
121
|
+
"get_journal_entries",
|
|
122
|
+
"get_latest_journal_entry",
|
|
123
|
+
"mark_blocked",
|
|
124
|
+
"unblock",
|
|
125
|
+
"get_blocker_info",
|
|
126
|
+
"get_resolved_blockers",
|
|
127
|
+
"list_blocked_tasks",
|
|
128
|
+
"update_task_status",
|
|
129
|
+
"mark_task_journaled",
|
|
130
|
+
"find_unjournaled_tasks",
|
|
131
|
+
"save_journal",
|
|
132
|
+
"ToolResponse",
|
|
133
|
+
"success_response",
|
|
134
|
+
"error_response",
|
|
135
|
+
"canonical_tool",
|
|
136
|
+
# Review
|
|
137
|
+
"ReviewFinding",
|
|
138
|
+
"QuickReviewResult",
|
|
139
|
+
"ReviewContext",
|
|
140
|
+
"get_llm_status",
|
|
141
|
+
"prepare_review_context",
|
|
142
|
+
"quick_review",
|
|
143
|
+
"review_type_requires_llm",
|
|
144
|
+
]
|