pi-crew 0.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/AGENTS.md +32 -0
- package/CHANGELOG.md +6 -0
- package/LICENSE +21 -0
- package/NOTICE.md +15 -0
- package/README.md +703 -0
- package/agents/analyst.md +11 -0
- package/agents/critic.md +11 -0
- package/agents/executor.md +11 -0
- package/agents/explorer.md +11 -0
- package/agents/planner.md +11 -0
- package/agents/reviewer.md +11 -0
- package/agents/security-reviewer.md +11 -0
- package/agents/test-engineer.md +11 -0
- package/agents/verifier.md +11 -0
- package/agents/writer.md +11 -0
- package/docs/architecture.md +92 -0
- package/docs/live-mailbox-runtime.md +36 -0
- package/docs/publishing.md +65 -0
- package/docs/resource-formats.md +131 -0
- package/docs/usage.md +203 -0
- package/index.ts +6 -0
- package/install.mjs +19 -0
- package/package.json +79 -0
- package/schema.json +45 -0
- package/skills/.gitkeep +0 -0
- package/src/agents/agent-config.ts +27 -0
- package/src/agents/agent-serializer.ts +34 -0
- package/src/agents/discover-agents.ts +73 -0
- package/src/config/config.ts +193 -0
- package/src/extension/async-notifier.ts +36 -0
- package/src/extension/autonomous-policy.ts +122 -0
- package/src/extension/help.ts +43 -0
- package/src/extension/import-index.ts +52 -0
- package/src/extension/management.ts +335 -0
- package/src/extension/project-init.ts +74 -0
- package/src/extension/register.ts +349 -0
- package/src/extension/run-bundle-schema.ts +85 -0
- package/src/extension/run-export.ts +59 -0
- package/src/extension/run-import.ts +46 -0
- package/src/extension/run-index.ts +28 -0
- package/src/extension/run-maintenance.ts +24 -0
- package/src/extension/session-summary.ts +8 -0
- package/src/extension/team-manager-command.ts +86 -0
- package/src/extension/team-recommendation.ts +174 -0
- package/src/extension/team-tool.ts +783 -0
- package/src/extension/tool-result.ts +16 -0
- package/src/extension/validate-resources.ts +77 -0
- package/src/prompt/prompt-runtime.ts +58 -0
- package/src/runtime/async-runner.ts +26 -0
- package/src/runtime/background-runner.ts +43 -0
- package/src/runtime/child-pi.ts +75 -0
- package/src/runtime/model-fallback.ts +101 -0
- package/src/runtime/pi-args.ts +81 -0
- package/src/runtime/pi-json-output.ts +110 -0
- package/src/runtime/pi-spawn.ts +96 -0
- package/src/runtime/process-status.ts +25 -0
- package/src/runtime/task-runner.ts +164 -0
- package/src/runtime/team-runner.ts +135 -0
- package/src/runtime/worker-heartbeat.ts +21 -0
- package/src/schema/team-tool-schema.ts +100 -0
- package/src/state/artifact-store.ts +36 -0
- package/src/state/atomic-write.ts +18 -0
- package/src/state/contracts.ts +88 -0
- package/src/state/event-log.ts +27 -0
- package/src/state/locks.ts +40 -0
- package/src/state/mailbox.ts +188 -0
- package/src/state/state-store.ts +119 -0
- package/src/state/task-claims.ts +42 -0
- package/src/state/types.ts +88 -0
- package/src/state/usage.ts +29 -0
- package/src/teams/discover-teams.ts +84 -0
- package/src/teams/team-config.ts +22 -0
- package/src/teams/team-serializer.ts +36 -0
- package/src/ui/run-dashboard.ts +138 -0
- package/src/utils/frontmatter.ts +36 -0
- package/src/utils/ids.ts +12 -0
- package/src/utils/names.ts +26 -0
- package/src/utils/paths.ts +15 -0
- package/src/workflows/discover-workflows.ts +101 -0
- package/src/workflows/validate-workflow.ts +40 -0
- package/src/workflows/workflow-config.ts +24 -0
- package/src/workflows/workflow-serializer.ts +31 -0
- package/src/worktree/cleanup.ts +69 -0
- package/src/worktree/worktree-manager.ts +60 -0
- package/teams/default.team.md +12 -0
- package/teams/fast-fix.team.md +11 -0
- package/teams/implementation.team.md +15 -0
- package/teams/research.team.md +11 -0
- package/teams/review.team.md +12 -0
- package/tsconfig.json +19 -0
- package/workflows/default.workflow.md +29 -0
- package/workflows/fast-fix.workflow.md +22 -0
- package/workflows/implementation.workflow.md +47 -0
- package/workflows/research.workflow.md +22 -0
- package/workflows/review.workflow.md +30 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: default
|
|
3
|
+
description: Explore, plan, execute, and verify
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## explore
|
|
7
|
+
role: explorer
|
|
8
|
+
|
|
9
|
+
Explore the codebase for the goal: {goal}
|
|
10
|
+
|
|
11
|
+
## plan
|
|
12
|
+
role: planner
|
|
13
|
+
dependsOn: explore
|
|
14
|
+
output: plan.md
|
|
15
|
+
|
|
16
|
+
Create a concise implementation plan for: {goal}
|
|
17
|
+
|
|
18
|
+
## execute
|
|
19
|
+
role: executor
|
|
20
|
+
dependsOn: plan
|
|
21
|
+
|
|
22
|
+
Implement the plan for: {goal}
|
|
23
|
+
|
|
24
|
+
## verify
|
|
25
|
+
role: verifier
|
|
26
|
+
dependsOn: execute
|
|
27
|
+
verify: true
|
|
28
|
+
|
|
29
|
+
Verify completion for: {goal}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fast-fix
|
|
3
|
+
description: Minimal workflow for small fixes
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## explore
|
|
7
|
+
role: explorer
|
|
8
|
+
|
|
9
|
+
Find the likely source of the issue: {goal}
|
|
10
|
+
|
|
11
|
+
## execute
|
|
12
|
+
role: executor
|
|
13
|
+
dependsOn: explore
|
|
14
|
+
|
|
15
|
+
Make the smallest safe fix.
|
|
16
|
+
|
|
17
|
+
## verify
|
|
18
|
+
role: verifier
|
|
19
|
+
dependsOn: execute
|
|
20
|
+
verify: true
|
|
21
|
+
|
|
22
|
+
Verify the fix with available evidence.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation
|
|
3
|
+
description: Full implementation workflow with critique and review gates
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## explore
|
|
7
|
+
role: explorer
|
|
8
|
+
|
|
9
|
+
Map relevant files, APIs, and constraints for: {goal}
|
|
10
|
+
|
|
11
|
+
## analyze
|
|
12
|
+
role: analyst
|
|
13
|
+
dependsOn: explore
|
|
14
|
+
|
|
15
|
+
Analyze requirements, ambiguities, risks, and acceptance criteria for: {goal}
|
|
16
|
+
|
|
17
|
+
## plan
|
|
18
|
+
role: planner
|
|
19
|
+
dependsOn: analyze
|
|
20
|
+
output: plan.md
|
|
21
|
+
|
|
22
|
+
Create an execution plan for: {goal}
|
|
23
|
+
|
|
24
|
+
## critique
|
|
25
|
+
role: critic
|
|
26
|
+
dependsOn: plan
|
|
27
|
+
|
|
28
|
+
Critique the plan and identify required improvements.
|
|
29
|
+
|
|
30
|
+
## execute
|
|
31
|
+
role: executor
|
|
32
|
+
dependsOn: critique
|
|
33
|
+
|
|
34
|
+
Implement the improved plan for: {goal}
|
|
35
|
+
|
|
36
|
+
## review
|
|
37
|
+
role: reviewer
|
|
38
|
+
dependsOn: execute
|
|
39
|
+
|
|
40
|
+
Review the implementation.
|
|
41
|
+
|
|
42
|
+
## verify
|
|
43
|
+
role: verifier
|
|
44
|
+
dependsOn: review
|
|
45
|
+
verify: true
|
|
46
|
+
|
|
47
|
+
Verify the final result.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research
|
|
3
|
+
description: Research and write up findings
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## explore
|
|
7
|
+
role: explorer
|
|
8
|
+
|
|
9
|
+
Gather relevant facts for: {goal}
|
|
10
|
+
|
|
11
|
+
## analyze
|
|
12
|
+
role: analyst
|
|
13
|
+
dependsOn: explore
|
|
14
|
+
|
|
15
|
+
Analyze and organize the findings.
|
|
16
|
+
|
|
17
|
+
## write
|
|
18
|
+
role: writer
|
|
19
|
+
dependsOn: analyze
|
|
20
|
+
output: research-summary.md
|
|
21
|
+
|
|
22
|
+
Write a concise final summary with evidence and open questions.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: review
|
|
3
|
+
description: Review workflow for correctness and security
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## explore
|
|
7
|
+
role: explorer
|
|
8
|
+
|
|
9
|
+
Identify changed or relevant areas for review: {goal}
|
|
10
|
+
|
|
11
|
+
## code-review
|
|
12
|
+
role: reviewer
|
|
13
|
+
dependsOn: explore
|
|
14
|
+
parallelGroup: review
|
|
15
|
+
|
|
16
|
+
Review correctness, maintainability, tests, and regressions.
|
|
17
|
+
|
|
18
|
+
## security-review
|
|
19
|
+
role: security-reviewer
|
|
20
|
+
dependsOn: explore
|
|
21
|
+
parallelGroup: review
|
|
22
|
+
|
|
23
|
+
Review security risks and trust boundaries.
|
|
24
|
+
|
|
25
|
+
## verify
|
|
26
|
+
role: verifier
|
|
27
|
+
dependsOn: code-review, security-review
|
|
28
|
+
verify: true
|
|
29
|
+
|
|
30
|
+
Summarize review outcome and pass/fail status.
|