neohive 6.0.2 → 6.1.0
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/CHANGELOG.md +269 -77
- package/README.md +66 -63
- package/SECURITY.md +8 -6
- package/cli.js +377 -35
- package/conversation-templates/autonomous-feature.json +54 -4
- package/conversation-templates/code-review.json +41 -3
- package/conversation-templates/debug-squad.json +41 -3
- package/conversation-templates/feature-build.json +41 -3
- package/conversation-templates/research-write.json +41 -3
- package/dashboard.html +3954 -921
- package/dashboard.js +1192 -153
- package/design-system.css +708 -0
- package/design-system.html +264 -0
- package/lib/agents.js +20 -6
- package/lib/audit.js +417 -0
- package/lib/codex-neohive-toml.js +34 -0
- package/lib/compact.js +5 -2
- package/lib/config.js +4 -3
- package/lib/file-io.js +3 -3
- package/lib/github-sync.js +291 -0
- package/lib/hooks.js +173 -0
- package/lib/ide-activity.js +121 -0
- package/lib/resolve-server-data-dir.js +96 -0
- package/logo.svg +1 -0
- package/package.json +12 -3
- package/scripts/check-portable-paths.mjs +74 -0
- package/server.js +1986 -857
- package/templates/debate.json +24 -5
- package/templates/managed.json +48 -9
- package/templates/pair.json +22 -3
- package/templates/review.json +26 -5
- package/templates/team.json +38 -8
- package/tools/channels.js +116 -0
- package/tools/governance.js +471 -0
- package/tools/hooks.js +65 -0
- package/tools/knowledge.js +301 -0
- package/tools/messaging.js +321 -0
- package/tools/safety.js +144 -0
- package/tools/system.js +198 -0
- package/tools/tasks.js +446 -0
- package/tools/workflows.js +286 -0
|
@@ -2,10 +2,48 @@
|
|
|
2
2
|
"id": "code-review",
|
|
3
3
|
"name": "Code Review Pipeline",
|
|
4
4
|
"description": "Developer writes code, Reviewer checks it, Tester validates. Autonomous: review + test run in parallel after code is written.",
|
|
5
|
+
"category": "quality",
|
|
6
|
+
"conversation_mode": "direct",
|
|
5
7
|
"agents": [
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
"name": "Developer",
|
|
10
|
+
"role": "backend",
|
|
11
|
+
"display_name": "Developer",
|
|
12
|
+
"skills": ["code", "implementation", "javascript", "nodejs"],
|
|
13
|
+
"responsibilities": [
|
|
14
|
+
"Write code as instructed",
|
|
15
|
+
"Address review feedback and fix issues",
|
|
16
|
+
"Lock files before editing"
|
|
17
|
+
],
|
|
18
|
+
"tools_focus": ["lock_file", "unlock_file", "update_task", "advance_workflow", "share_file"],
|
|
19
|
+
"prompt": "You are a developer. Write code as instructed. Use lock_file() before editing shared code. Call verify_and_advance() when done. If review feedback arrives, fix issues and re-submit. Never wait idle."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Reviewer",
|
|
23
|
+
"role": "quality",
|
|
24
|
+
"display_name": "Code Reviewer",
|
|
25
|
+
"skills": ["review", "standards", "security", "quality"],
|
|
26
|
+
"responsibilities": [
|
|
27
|
+
"Review code for bugs, style, and best practices",
|
|
28
|
+
"Check for security vulnerabilities",
|
|
29
|
+
"Approve or request changes via submit_review()"
|
|
30
|
+
],
|
|
31
|
+
"tools_focus": ["request_review", "submit_review", "advance_workflow", "get_reputation"],
|
|
32
|
+
"prompt": "You are a code reviewer. Review code for bugs, style, and best practices. Use submit_review() to approve or request changes. Call verify_and_advance() when done."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Tester",
|
|
36
|
+
"role": "quality",
|
|
37
|
+
"display_name": "QA Tester",
|
|
38
|
+
"skills": ["testing", "qa", "verification", "regression"],
|
|
39
|
+
"responsibilities": [
|
|
40
|
+
"Write and run tests for the code",
|
|
41
|
+
"Report test results and coverage",
|
|
42
|
+
"Verify edge cases and error handling"
|
|
43
|
+
],
|
|
44
|
+
"tools_focus": ["update_task", "advance_workflow", "submit_review", "share_file"],
|
|
45
|
+
"prompt": "You are a QA tester. Write and run tests for the code. Report results. Call verify_and_advance() when done. Never wait for approval."
|
|
46
|
+
}
|
|
9
47
|
],
|
|
10
48
|
"workflow": {
|
|
11
49
|
"name": "Code Review",
|
|
@@ -2,10 +2,48 @@
|
|
|
2
2
|
"id": "debug-squad",
|
|
3
3
|
"name": "Debug Squad",
|
|
4
4
|
"description": "Investigator finds the bug, Fixer patches it, Verifier confirms the fix. Autonomous: no waiting between steps.",
|
|
5
|
+
"category": "development",
|
|
6
|
+
"conversation_mode": "direct",
|
|
5
7
|
"agents": [
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
"name": "Investigator",
|
|
10
|
+
"role": "quality",
|
|
11
|
+
"display_name": "Bug Investigator",
|
|
12
|
+
"skills": ["debugging", "analysis", "tracing", "investigation"],
|
|
13
|
+
"responsibilities": [
|
|
14
|
+
"Analyze error logs and trace code paths",
|
|
15
|
+
"Identify root causes with evidence",
|
|
16
|
+
"Document findings with file paths and line numbers"
|
|
17
|
+
],
|
|
18
|
+
"tools_focus": ["search_messages", "kb_write", "advance_workflow", "share_file"],
|
|
19
|
+
"prompt": "You investigate bugs. Analyze error logs, trace code paths, and identify root causes. Include file paths and line numbers in your findings. Use kb_write() to document root cause. Call verify_and_advance() when root cause is found. Never wait idle."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Fixer",
|
|
23
|
+
"role": "backend",
|
|
24
|
+
"display_name": "Bug Fixer",
|
|
25
|
+
"skills": ["code", "fixing", "patching", "testing"],
|
|
26
|
+
"responsibilities": [
|
|
27
|
+
"Implement fixes based on investigation findings",
|
|
28
|
+
"Write regression tests",
|
|
29
|
+
"Lock files before editing"
|
|
30
|
+
],
|
|
31
|
+
"tools_focus": ["lock_file", "unlock_file", "update_task", "advance_workflow", "share_file"],
|
|
32
|
+
"prompt": "You fix bugs. Implement fixes based on investigation findings. Write regression tests. Use lock_file() before editing. Call verify_and_advance() when done. If fix fails, use retry_with_improvement()."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Verifier",
|
|
36
|
+
"role": "quality",
|
|
37
|
+
"display_name": "Fix Verifier",
|
|
38
|
+
"skills": ["testing", "verification", "qa", "regression"],
|
|
39
|
+
"responsibilities": [
|
|
40
|
+
"Test the fix and confirm resolution",
|
|
41
|
+
"Check for regressions",
|
|
42
|
+
"Approve via submit_review()"
|
|
43
|
+
],
|
|
44
|
+
"tools_focus": ["request_review", "submit_review", "advance_workflow", "get_reputation"],
|
|
45
|
+
"prompt": "You verify bug fixes. Test the fix, confirm resolution, and check for regressions. Use submit_review() to formally approve. Call verify_and_advance() when done."
|
|
46
|
+
}
|
|
9
47
|
],
|
|
10
48
|
"workflow": {
|
|
11
49
|
"name": "Bug Fix",
|
|
@@ -2,10 +2,48 @@
|
|
|
2
2
|
"id": "feature-build",
|
|
3
3
|
"name": "Feature Development",
|
|
4
4
|
"description": "Architect designs, Builder implements, Reviewer approves. Autonomous mode: agents auto-advance through steps.",
|
|
5
|
+
"category": "development",
|
|
6
|
+
"conversation_mode": "direct",
|
|
5
7
|
"agents": [
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
"name": "Architect",
|
|
10
|
+
"role": "lead",
|
|
11
|
+
"display_name": "Software Architect",
|
|
12
|
+
"skills": ["design", "interfaces", "architecture", "planning"],
|
|
13
|
+
"responsibilities": [
|
|
14
|
+
"Design feature architecture with clear interfaces",
|
|
15
|
+
"Define API contracts between components",
|
|
16
|
+
"Create the implementation plan as a workflow"
|
|
17
|
+
],
|
|
18
|
+
"tools_focus": ["create_workflow", "advance_workflow", "kb_write", "share_file"],
|
|
19
|
+
"prompt": "You are a software architect. Design the feature architecture, define interfaces, and create the implementation plan. When done, call verify_and_advance(). Never wait for approval."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Builder",
|
|
23
|
+
"role": "backend",
|
|
24
|
+
"display_name": "Developer",
|
|
25
|
+
"skills": ["code", "implementation", "testing", "javascript", "nodejs"],
|
|
26
|
+
"responsibilities": [
|
|
27
|
+
"Implement the feature following the architecture design",
|
|
28
|
+
"Write unit tests alongside code",
|
|
29
|
+
"Lock files before editing, unlock after"
|
|
30
|
+
],
|
|
31
|
+
"tools_focus": ["lock_file", "unlock_file", "update_task", "advance_workflow", "share_file"],
|
|
32
|
+
"prompt": "You are a developer. Implement the feature following the architecture design. Write tests. Use lock_file() before editing shared code. Call verify_and_advance() when done. Never wait for approval."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Reviewer",
|
|
36
|
+
"role": "quality",
|
|
37
|
+
"display_name": "Senior Reviewer",
|
|
38
|
+
"skills": ["review", "quality", "standards", "security", "testing"],
|
|
39
|
+
"responsibilities": [
|
|
40
|
+
"Review implementations against the architecture",
|
|
41
|
+
"Check for bugs, security issues, and quality",
|
|
42
|
+
"Approve or request changes via submit_review()"
|
|
43
|
+
],
|
|
44
|
+
"tools_focus": ["request_review", "submit_review", "get_reputation", "advance_workflow"],
|
|
45
|
+
"prompt": "You are a senior reviewer. Review implementations against the architecture. Use submit_review() to approve or request changes. Call verify_and_advance() when done."
|
|
46
|
+
}
|
|
9
47
|
],
|
|
10
48
|
"workflow": {
|
|
11
49
|
"name": "Feature Dev",
|
|
@@ -2,10 +2,48 @@
|
|
|
2
2
|
"id": "research-write",
|
|
3
3
|
"name": "Research & Write",
|
|
4
4
|
"description": "Researcher gathers info, Writer creates content, Editor polishes. Autonomous: writer starts as soon as research is ready.",
|
|
5
|
+
"category": "content",
|
|
6
|
+
"conversation_mode": "direct",
|
|
5
7
|
"agents": [
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
"name": "Researcher",
|
|
10
|
+
"role": "quality",
|
|
11
|
+
"display_name": "Researcher",
|
|
12
|
+
"skills": ["research", "analysis", "data", "investigation"],
|
|
13
|
+
"responsibilities": [
|
|
14
|
+
"Gather information on the given topic",
|
|
15
|
+
"Organize findings into a structured brief",
|
|
16
|
+
"Store findings in KB for team access"
|
|
17
|
+
],
|
|
18
|
+
"tools_focus": ["kb_write", "kb_read", "search_messages", "advance_workflow", "share_file"],
|
|
19
|
+
"prompt": "You are a researcher. Gather information on the given topic. Organize findings into a structured research brief. Use kb_write() to store key findings. Call verify_and_advance() when done."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Writer",
|
|
23
|
+
"role": "backend",
|
|
24
|
+
"display_name": "Writer",
|
|
25
|
+
"skills": ["writing", "content", "structure", "documentation"],
|
|
26
|
+
"responsibilities": [
|
|
27
|
+
"Write clear, well-structured content from research",
|
|
28
|
+
"Address editor feedback via retry_with_improvement()",
|
|
29
|
+
"Finalize and publish content"
|
|
30
|
+
],
|
|
31
|
+
"tools_focus": ["update_task", "advance_workflow", "kb_read", "share_file"],
|
|
32
|
+
"prompt": "You are a writer. Write clear, well-structured content based on the research findings. Use kb_read() to access research data. Call verify_and_advance() when done. If editor requests changes, use retry_with_improvement()."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Editor",
|
|
36
|
+
"role": "quality",
|
|
37
|
+
"display_name": "Editor",
|
|
38
|
+
"skills": ["editing", "style", "accuracy", "review"],
|
|
39
|
+
"responsibilities": [
|
|
40
|
+
"Review and polish content for clarity and accuracy",
|
|
41
|
+
"Check style, grammar, and factual correctness",
|
|
42
|
+
"Approve or request revisions via submit_review()"
|
|
43
|
+
],
|
|
44
|
+
"tools_focus": ["request_review", "submit_review", "advance_workflow", "get_reputation"],
|
|
45
|
+
"prompt": "You are an editor. Review and polish content. Check for clarity, accuracy, and style. Use submit_review() to approve or request revisions. Call verify_and_advance() when done."
|
|
46
|
+
}
|
|
9
47
|
],
|
|
10
48
|
"workflow": {
|
|
11
49
|
"name": "Content Pipeline",
|