@metabob/minibob 0.1.2
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/ARCHITECTURE.md +255 -0
- package/CHANGELOG.md +112 -0
- package/README.md +380 -0
- package/bin/minibob.js +36 -0
- package/dist/acp-gossip.d.ts +72 -0
- package/dist/acp-gossip.d.ts.map +1 -0
- package/dist/acp-gossip.js +156 -0
- package/dist/acp-gossip.js.map +1 -0
- package/dist/acp.d.ts +62 -0
- package/dist/acp.d.ts.map +1 -0
- package/dist/acp.js +292 -0
- package/dist/acp.js.map +1 -0
- package/dist/activity.d.ts +157 -0
- package/dist/activity.d.ts.map +1 -0
- package/dist/activity.js +518 -0
- package/dist/activity.js.map +1 -0
- package/dist/agent-runtime.d.ts +104 -0
- package/dist/agent-runtime.d.ts.map +1 -0
- package/dist/boredom.d.ts +125 -0
- package/dist/boredom.d.ts.map +1 -0
- package/dist/boredom.js +244 -0
- package/dist/boredom.js.map +1 -0
- package/dist/cli/acp-server.d.ts +23 -0
- package/dist/cli/acp-server.d.ts.map +1 -0
- package/dist/cli/burrow.d.ts +26 -0
- package/dist/cli/burrow.d.ts.map +1 -0
- package/dist/cli/doctor.d.ts +22 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/goal.d.ts +22 -0
- package/dist/cli/goal.d.ts.map +1 -0
- package/dist/cli/index.d.ts +47 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/instance-registry.d.ts +78 -0
- package/dist/cli/instance-registry.d.ts.map +1 -0
- package/dist/cli/observe.d.ts +35 -0
- package/dist/cli/observe.d.ts.map +1 -0
- package/dist/cli/vessel.d.ts +14 -0
- package/dist/cli/vessel.d.ts.map +1 -0
- package/dist/composition-observer.d.ts +96 -0
- package/dist/composition-observer.d.ts.map +1 -0
- package/dist/config.d.ts +36 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +128 -0
- package/dist/config.js.map +1 -0
- package/dist/docker/Dockerfile +35 -0
- package/dist/environment.d.ts +72 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/environment.js +142 -0
- package/dist/environment.js.map +1 -0
- package/dist/goal-processor.d.ts +165 -0
- package/dist/goal-processor.d.ts.map +1 -0
- package/dist/helm/minibob-cluster/Chart.yaml +13 -0
- package/dist/helm/minibob-cluster/templates/_helpers.tpl +60 -0
- package/dist/helm/minibob-cluster/templates/configmap.yaml +11 -0
- package/dist/helm/minibob-cluster/templates/deployment.yaml +108 -0
- package/dist/helm/minibob-cluster/templates/secret.yaml +10 -0
- package/dist/helm/minibob-cluster/templates/service.yaml +37 -0
- package/dist/helm/minibob-cluster/values-local.yaml +41 -0
- package/dist/helm/minibob-cluster/values-production.yaml +57 -0
- package/dist/helm/minibob-cluster/values-testing-cluster.yaml +43 -0
- package/dist/helm/minibob-cluster/values.yaml +127 -0
- package/dist/improviser.d.ts +74 -0
- package/dist/improviser.d.ts.map +1 -0
- package/dist/impulse-filter.d.ts +74 -0
- package/dist/impulse-filter.d.ts.map +1 -0
- package/dist/impulse.d.ts +92 -0
- package/dist/impulse.d.ts.map +1 -0
- package/dist/impulse.js +234 -0
- package/dist/impulse.js.map +1 -0
- package/dist/lib.d.ts +29 -0
- package/dist/lib.d.ts.map +1 -0
- package/dist/lib.js +18561 -0
- package/dist/lib.js.map +98 -0
- package/dist/lifecycle-hooks.d.ts +99 -0
- package/dist/lifecycle-hooks.d.ts.map +1 -0
- package/dist/lifecycle-hooks.js +135 -0
- package/dist/lifecycle-hooks.js.map +1 -0
- package/dist/llm.d.ts +31 -0
- package/dist/llm.d.ts.map +1 -0
- package/dist/llm.js +349 -0
- package/dist/llm.js.map +1 -0
- package/dist/mcp-activity-bridge.d.ts +66 -0
- package/dist/mcp-activity-bridge.d.ts.map +1 -0
- package/dist/mcp-activity-bridge.js +126 -0
- package/dist/mcp-activity-bridge.js.map +1 -0
- package/dist/mcp.d.ts +216 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +292 -0
- package/dist/mcp.js.map +1 -0
- package/dist/memory-agent.d.ts +92 -0
- package/dist/memory-agent.d.ts.map +1 -0
- package/dist/memory-agent.js +277 -0
- package/dist/memory-agent.js.map +1 -0
- package/dist/runtime-mapping.d.ts +97 -0
- package/dist/runtime-mapping.d.ts.map +1 -0
- package/dist/search-first-executor.d.ts +113 -0
- package/dist/search-first-executor.d.ts.map +1 -0
- package/dist/session.d.ts +48 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/template-extractor.d.ts +9 -0
- package/dist/template-extractor.d.ts.map +1 -0
- package/dist/template-generator.d.ts +12 -0
- package/dist/template-generator.d.ts.map +1 -0
- package/dist/tools.d.ts +58 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +771 -0
- package/dist/tools.js.map +1 -0
- package/dist/types.d.ts +503 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/understanding/analyzer.d.ts +55 -0
- package/dist/understanding/analyzer.d.ts.map +1 -0
- package/dist/understanding/explorer.d.ts +73 -0
- package/dist/understanding/explorer.d.ts.map +1 -0
- package/dist/understanding/index.d.ts +7 -0
- package/dist/understanding/index.d.ts.map +1 -0
- package/dist/understanding/types.d.ts +136 -0
- package/dist/understanding/types.d.ts.map +1 -0
- package/dist/validation.d.ts +29 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +106 -0
- package/dist/validation.js.map +1 -0
- package/dist/vessel-bootstrap.d.ts +190 -0
- package/dist/vessel-bootstrap.d.ts.map +1 -0
- package/dist/vessel-registry.d.ts +229 -0
- package/dist/vessel-registry.d.ts.map +1 -0
- package/index.ts +1329 -0
- package/package.json +54 -0
- package/src/acp-gossip.ts +193 -0
- package/src/acp.ts +362 -0
- package/src/activity.ts +1464 -0
- package/src/agent-runtime.ts +365 -0
- package/src/boredom.ts +423 -0
- package/src/cli/acp-server.ts +377 -0
- package/src/cli/burrow.ts +896 -0
- package/src/cli/doctor.ts +526 -0
- package/src/cli/goal.ts +224 -0
- package/src/cli/index.ts +147 -0
- package/src/cli/instance-registry.ts +271 -0
- package/src/cli/observe.ts +682 -0
- package/src/cli/vessel.ts +287 -0
- package/src/components/SystemOverview.tsx +331 -0
- package/src/composition-observer.ts +449 -0
- package/src/config.ts +172 -0
- package/src/environment.ts +167 -0
- package/src/goal-processor.ts +654 -0
- package/src/improviser.ts +591 -0
- package/src/impulse-filter.ts +273 -0
- package/src/impulse.ts +311 -0
- package/src/lib.ts +147 -0
- package/src/lifecycle-hooks.ts +181 -0
- package/src/llm.ts +434 -0
- package/src/mcp-activity-bridge.ts +158 -0
- package/src/mcp.ts +747 -0
- package/src/memory-agent.ts +316 -0
- package/src/runtime-mapping.ts +527 -0
- package/src/search-first-executor.ts +666 -0
- package/src/session.ts +141 -0
- package/src/template-extractor.ts +256 -0
- package/src/template-generator.ts +130 -0
- package/src/tools.ts +924 -0
- package/src/types.ts +497 -0
- package/src/understanding/analyzer.ts +354 -0
- package/src/understanding/explorer.ts +488 -0
- package/src/understanding/index.ts +27 -0
- package/src/understanding/types.ts +153 -0
- package/src/validation.ts +125 -0
- package/src/vessel-bootstrap.ts +440 -0
- package/src/vessel-registry.ts +621 -0
- package/templates/core/edit-file.json +85 -0
- package/templates/understanding/diagnose-problem.json +32 -0
- package/templates/understanding/explore-codebase-v2.json +57 -0
- package/templates/understanding/explore-codebase.json +37 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "diagnose-problem-v1",
|
|
3
|
+
"name": "Diagnose Application Problem",
|
|
4
|
+
"description": "Root cause analysis for application issues",
|
|
5
|
+
"category": "tool",
|
|
6
|
+
"variables": [],
|
|
7
|
+
"tasks": [
|
|
8
|
+
{
|
|
9
|
+
"id": "analyze_problem",
|
|
10
|
+
"description": "Analyze the problem and identify root cause",
|
|
11
|
+
"prompt": {
|
|
12
|
+
"template": "Problem reported:\n{{problem}}\n\nRelevant files to examine:\n{{files}}\n\nPerform comprehensive root cause analysis and provide your findings in the following JSON format:\n\n```json\n{\n \"symptoms\": [\n \"<observable symptom 1>\",\n \"<observable symptom 2>\"\n ],\n \"rootCause\": \"<detailed explanation of the underlying cause>\",\n \"affectedFiles\": [\n \"<file 1 that needs changes>\",\n \"<file 2 that needs changes>\"\n ],\n \"recommendedFix\": \"<step-by-step fix recommendations>\",\n \"validationSteps\": [\n \"<how to verify fix works step 1>\",\n \"<how to verify fix works step 2>\"\n ],\n \"confidence\": \"<low|medium|high>\"\n}\n```\n\nBase your analysis on:\n1. The problem description\n2. Code patterns you can infer from the file names\n3. Common causes of similar issues\n4. Best practices for the technology stack\n\nProvide specific, actionable recommendations.",
|
|
13
|
+
"variables": [
|
|
14
|
+
{
|
|
15
|
+
"name": "problem",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"source": "variable"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "files",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"source": "variable"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"validation": {
|
|
27
|
+
"requireOutput": true,
|
|
28
|
+
"requiredPatterns": ["rootCause", "recommendedFix"]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"activity_id": "explore-codebase-v2",
|
|
3
|
+
"variant_name": "Explore Codebase Structure v2 - Simplified & Modular",
|
|
4
|
+
"variant_id": "explore-codebase-v2",
|
|
5
|
+
"description": "Improved modular codebase analysis with flexible validation and graceful degradation",
|
|
6
|
+
"category": "tool",
|
|
7
|
+
"scope": "global",
|
|
8
|
+
"task_steps": [
|
|
9
|
+
{
|
|
10
|
+
"id": "scan-directory-structure",
|
|
11
|
+
"description": "Scan and understand basic directory structure",
|
|
12
|
+
"dependencies": [],
|
|
13
|
+
"subagent": "general-purpose",
|
|
14
|
+
"prompt": {
|
|
15
|
+
"template": "Analyze the directory structure of the current codebase. Use the 'list' tool to explore key directories and provide a simple overview.\\n\\nStart by listing the root directory, then explore important subdirectories like src/, lib/, components/, etc.\\n\\nProvide your findings in this simple format:\\n\\nDirectory Structure Overview:\\n- Root files: [list key files]\\n- Key directories: [list important directories]\\n- Project type: [best guess of project type]\\n- Language(s): [detected languages]\\n\\nKeep it concise and factual.",
|
|
16
|
+
"variables": [],
|
|
17
|
+
"maxTokens": 4000
|
|
18
|
+
},
|
|
19
|
+
"retry": {
|
|
20
|
+
"maxAttempts": 2,
|
|
21
|
+
"strategy": "simple"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "identify-entry-points",
|
|
26
|
+
"description": "Find main entry points and configuration files",
|
|
27
|
+
"dependencies": ["scan-directory-structure"],
|
|
28
|
+
"subagent": "general-purpose",
|
|
29
|
+
"prompt": {
|
|
30
|
+
"template": "Based on the directory structure analysis, identify the main entry points of this codebase.\\n\\nLook for files like:\\n- package.json, bun.json, deno.json (for dependency info)\\n- index.js/ts, main.js/ts, app.js/ts (for entry points)\\n- README.md (for project info)\\n- tsconfig.json, webpack.config.js (for build config)\\n\\nUse the 'read' tool to examine these files (first 50 lines each to stay within token limits).\\n\\nProvide a simple summary:\\n\\nEntry Points Found:\\n- Main executable: [file]\\n- Package manager: [npm/bun/deno/etc]\\n- Key dependencies: [list 3-5 important ones]\\n- Runtime: [Node.js/Bun/Deno/Browser]\\n\\nFocus on facts, not detailed analysis.",
|
|
31
|
+
"variables": [],
|
|
32
|
+
"maxTokens": 6000
|
|
33
|
+
},
|
|
34
|
+
"retry": {
|
|
35
|
+
"maxAttempts": 2,
|
|
36
|
+
"strategy": "simple"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "analyze-architecture",
|
|
41
|
+
"description": "Provide high-level architectural assessment",
|
|
42
|
+
"dependencies": ["scan-directory-structure", "identify-entry-points"],
|
|
43
|
+
"subagent": "general-purpose",
|
|
44
|
+
"prompt": {
|
|
45
|
+
"template": "Based on the previous analysis, provide a high-level architectural assessment of this codebase.\\n\\nSummarize your findings:\\n\\nArchitecture Summary:\\n- Project type: [web app/CLI tool/library/service/etc]\\n- Architecture pattern: [MVC/microservice/monolith/SPA/etc or 'mixed/unclear']\\n- Key components: [list 3-5 main components]\\n- Tech stack: [runtime + major frameworks/libraries]\\n\\nData Flow (if observable):\\n- Input: [how data enters the system]\\n- Processing: [main processing components]\\n- Output: [how results are delivered]\\n\\nDependencies:\\n- External: [3-5 key external dependencies]\\n- Internal: [major internal modules if visible]\\n\\nKeep this high-level and practical. If something is unclear, say 'unclear' rather than guessing.",
|
|
46
|
+
"variables": [],
|
|
47
|
+
"maxTokens": 4000
|
|
48
|
+
},
|
|
49
|
+
"retry": {
|
|
50
|
+
"maxAttempts": 2,
|
|
51
|
+
"strategy": "simple"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"updated_at": "2026-03-23T10:00:00.000000000Z",
|
|
56
|
+
"created_at": "2026-03-23T10:00:00.000000000Z"
|
|
57
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "explore-codebase-v1",
|
|
3
|
+
"name": "Explore Codebase Structure",
|
|
4
|
+
"description": "Analyze codebase structure, identify entry points, and map dependencies",
|
|
5
|
+
"category": "tool",
|
|
6
|
+
"variables": [],
|
|
7
|
+
"tasks": [
|
|
8
|
+
{
|
|
9
|
+
"id": "analyze_structure",
|
|
10
|
+
"description": "Analyze the codebase structure and provide comprehensive understanding",
|
|
11
|
+
"prompt": {
|
|
12
|
+
"template": "You are analyzing a codebase with the following structure:\n\n```json\n{{structure}}\n```\n\nAnalysis Focus: {{focus}}\nDepth: {{depth}}\n\nProvide a comprehensive analysis in the following JSON format:\n\n```json\n{\n \"architecture\": {\n \"pattern\": \"<architecture pattern name (e.g., MVC, microservices, SPA, monolith)>\",\n \"description\": \"<detailed description of the architecture>\",\n \"layers\": [\"<list of architectural layers>\"]\n },\n \"components\": {\n \"summary\": \"<overview of key components>\",\n \"keyModules\": [\n {\n \"name\": \"<module name>\",\n \"purpose\": \"<what this module does>\",\n \"files\": [\"<related files>\"]\n }\n ]\n },\n \"dataFlow\": {\n \"description\": \"<how data flows through the application>\",\n \"flows\": [\n {\n \"source\": \"<data source>\",\n \"destination\": \"<data destination>\",\n \"dataType\": \"<type of data>\"\n }\n ]\n },\n \"entryPoints\": {\n \"main\": [\"<main entry points>\"],\n \"server\": \"<server entry if applicable>\",\n \"client\": \"<client entry if applicable>\",\n \"cli\": \"<CLI entry if applicable>\"\n },\n \"dependencies\": {\n \"external\": [\n {\n \"name\": \"<dependency name>\",\n \"version\": \"<version>\",\n \"purpose\": \"<why it's used>\"\n }\n ],\n \"internal\": [\n {\n \"module\": \"<internal module>\",\n \"dependsOn\": [\"<other modules it depends on>\"]\n }\n ]\n },\n \"techStack\": {\n \"runtime\": \"<runtime environment (Bun, Node.js, Deno, etc.)>\",\n \"framework\": [\"<frameworks used>\"],\n \"language\": [\"<languages used>\"],\n \"tools\": [\"<build tools, testing tools, etc.>\"]\n }\n}\n```\n\nBe thorough and specific. Use the structure data to inform your analysis.",
|
|
13
|
+
"variables": [
|
|
14
|
+
{
|
|
15
|
+
"name": "structure",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"source": "variable"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "focus",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"source": "variable"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "depth",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"source": "variable"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"validation": {
|
|
32
|
+
"requireOutput": true,
|
|
33
|
+
"requiredPatterns": ["architecture", "components", "dataFlow"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|