@apralabs/apra-fleet 0.3.3 → 0.3.5
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 +8 -1
- package/dist/agents/_shared/GRAPH-SEMANTICS.md +47 -0
- package/dist/agents/ci-watcher.md +43 -0
- package/dist/agents/deployer.md +51 -28
- package/dist/agents/doer.md +160 -31
- package/dist/agents/harvester.md +81 -6
- package/dist/agents/integ-test-runner.md +147 -17
- package/dist/agents/plan-reviewer.md +76 -9
- package/dist/agents/planner.md +80 -15
- package/dist/agents/reviewer.md +90 -13
- package/dist/agents/schemas/ci-watcher-input.json +26 -0
- package/dist/agents/schemas/ci-watcher-output.json +18 -0
- package/dist/agents/schemas/deployer-input.json +19 -0
- package/dist/agents/schemas/deployer-output.json +17 -0
- package/dist/agents/schemas/doer-input.json +25 -0
- package/dist/agents/schemas/doer-output.json +22 -0
- package/dist/agents/schemas/harvester-input.json +31 -0
- package/dist/agents/schemas/harvester-output.json +18 -0
- package/dist/agents/schemas/integ-test-runner-input.json +20 -0
- package/dist/agents/schemas/integ-test-runner-output.json +27 -0
- package/dist/agents/schemas/plan-reviewer-input.json +15 -0
- package/dist/agents/schemas/plan-reviewer-output.json +30 -0
- package/dist/agents/schemas/reviewer-input.json +25 -0
- package/dist/agents/schemas/reviewer-output.json +34 -0
- package/dist/cli/config.d.ts +9 -3
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +21 -8
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/install.d.ts +10 -0
- package/dist/cli/install.d.ts.map +1 -1
- package/dist/cli/install.js +74 -23
- package/dist/cli/install.js.map +1 -1
- package/dist/cli/uninstall.d.ts.map +1 -1
- package/dist/cli/uninstall.js +19 -0
- package/dist/cli/uninstall.js.map +1 -1
- package/dist/cli/watch.d.ts +8 -0
- package/dist/cli/watch.d.ts.map +1 -0
- package/dist/cli/watch.js +536 -0
- package/dist/cli/watch.js.map +1 -0
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/os/linux.d.ts +1 -0
- package/dist/os/linux.d.ts.map +1 -1
- package/dist/os/linux.js +4 -0
- package/dist/os/linux.js.map +1 -1
- package/dist/os/macos.d.ts +1 -0
- package/dist/os/macos.d.ts.map +1 -1
- package/dist/os/macos.js +5 -0
- package/dist/os/macos.js.map +1 -1
- package/dist/os/os-commands.d.ts +2 -0
- package/dist/os/os-commands.d.ts.map +1 -1
- package/dist/os/windows.d.ts +1 -0
- package/dist/os/windows.d.ts.map +1 -1
- package/dist/os/windows.js +7 -0
- package/dist/os/windows.js.map +1 -1
- package/dist/providers/claude.d.ts.map +1 -1
- package/dist/providers/claude.js +10 -6
- package/dist/providers/claude.js.map +1 -1
- package/dist/services/agent-provisioner.d.ts +39 -0
- package/dist/services/agent-provisioner.d.ts.map +1 -0
- package/dist/services/agent-provisioner.js +130 -0
- package/dist/services/agent-provisioner.js.map +1 -0
- package/dist/services/sftp.d.ts +15 -0
- package/dist/services/sftp.d.ts.map +1 -1
- package/dist/services/sftp.js +34 -0
- package/dist/services/sftp.js.map +1 -1
- package/dist/services/ssh.d.ts +13 -0
- package/dist/services/ssh.d.ts.map +1 -1
- package/dist/services/ssh.js +46 -0
- package/dist/services/ssh.js.map +1 -1
- package/dist/services/stall/log-path-resolver.d.ts +8 -0
- package/dist/services/stall/log-path-resolver.d.ts.map +1 -1
- package/dist/services/stall/log-path-resolver.js +12 -4
- package/dist/services/stall/log-path-resolver.js.map +1 -1
- package/dist/services/statusline.d.ts.map +1 -1
- package/dist/services/statusline.js +16 -4
- package/dist/services/statusline.js.map +1 -1
- package/dist/services/user-config.d.ts +14 -0
- package/dist/services/user-config.d.ts.map +1 -1
- package/dist/services/user-config.js +22 -0
- package/dist/services/user-config.js.map +1 -1
- package/dist/services/watch/fleet-log.d.ts +34 -0
- package/dist/services/watch/fleet-log.d.ts.map +1 -0
- package/dist/services/watch/fleet-log.js +168 -0
- package/dist/services/watch/fleet-log.js.map +1 -0
- package/dist/services/watch/project-resolver.d.ts +51 -0
- package/dist/services/watch/project-resolver.d.ts.map +1 -0
- package/dist/services/watch/project-resolver.js +104 -0
- package/dist/services/watch/project-resolver.js.map +1 -0
- package/dist/services/watch/transcript-formatter.d.ts +26 -0
- package/dist/services/watch/transcript-formatter.d.ts.map +1 -0
- package/dist/services/watch/transcript-formatter.js +210 -0
- package/dist/services/watch/transcript-formatter.js.map +1 -0
- package/dist/skills/auto-sprint-args/SKILL.md +88 -0
- package/dist/skills/pm/SKILL.md +101 -42
- package/dist/skills/pm/beads.md +27 -22
- package/dist/skills/pm/cost.md +6 -4
- package/dist/skills/pm/doer-reviewer-loop.md +62 -62
- package/dist/skills/pm/fleet-addendum.md +11 -5
- package/dist/skills/pm/simple-sprint.md +6 -5
- package/dist/skills/pm/sprint.md +53 -37
- package/dist/tools/check-status.d.ts.map +1 -1
- package/dist/tools/check-status.js +47 -29
- package/dist/tools/check-status.js.map +1 -1
- package/dist/tools/cloud-control.d.ts +2 -2
- package/dist/tools/compose-permissions.d.ts +6 -3
- package/dist/tools/compose-permissions.d.ts.map +1 -1
- package/dist/tools/compose-permissions.js +63 -5
- package/dist/tools/compose-permissions.js.map +1 -1
- package/dist/tools/execute-command.d.ts.map +1 -1
- package/dist/tools/execute-command.js +18 -2
- package/dist/tools/execute-command.js.map +1 -1
- package/dist/tools/execute-prompt.d.ts +1 -0
- package/dist/tools/execute-prompt.d.ts.map +1 -1
- package/dist/tools/execute-prompt.js +38 -1
- package/dist/tools/execute-prompt.js.map +1 -1
- package/dist/tools/list-members.d.ts +3 -0
- package/dist/tools/list-members.d.ts.map +1 -1
- package/dist/tools/list-members.js +30 -15
- package/dist/tools/list-members.js.map +1 -1
- package/dist/tools/register-member.d.ts +15 -9
- package/dist/tools/register-member.d.ts.map +1 -1
- package/dist/tools/register-member.js +35 -0
- package/dist/tools/register-member.js.map +1 -1
- package/dist/tools/update-member.d.ts +15 -9
- package/dist/tools/update-member.d.ts.map +1 -1
- package/dist/tools/update-member.js +40 -0
- package/dist/tools/update-member.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/agent-helpers.d.ts +8 -0
- package/dist/utils/agent-helpers.d.ts.map +1 -1
- package/dist/utils/agent-helpers.js +21 -0
- package/dist/utils/agent-helpers.js.map +1 -1
- package/dist/utils/skill-matrix.d.ts +19 -0
- package/dist/utils/skill-matrix.d.ts.map +1 -0
- package/dist/utils/skill-matrix.js +47 -0
- package/dist/utils/skill-matrix.js.map +1 -0
- package/dist/workflows/auto-sprint.js +1213 -208
- package/package.json +3 -2
- package/skills/fleet/permissions.md +60 -5
- package/skills/fleet/profiles/tag-devops.json +4 -0
- package/skills/fleet/profiles/tag-gpu.json +4 -0
- package/skills/fleet/skill-matrix.md +15 -8
- package/version.json +1 -1
- package/dist/services/stall/log-path-resolver.test.d.ts +0 -2
- package/dist/services/stall/log-path-resolver.test.d.ts.map +0 -1
- package/dist/services/stall/log-path-resolver.test.js +0 -76
- package/dist/services/stall/log-path-resolver.test.js.map +0 -1
- package/dist/skills/pm/tpl-progress.json +0 -35
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/ci-watcher-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "ci-watcher output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the ci-watcher role. See agents/ci-watcher.md Step 2 for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["status", "notes"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": ["green", "red", "not_configured", "pending"]
|
|
13
|
+
},
|
|
14
|
+
"notes": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/deployer-input@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "deployer input",
|
|
6
|
+
"description": "Required dispatch-context keys for the deployer role, per agents/deployer.md Inputs section. Consumed by callers for pre-dispatch validation only -- never appended to the prompt or shown to the LLM.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["operation", "repoRoot"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"operation": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": ["deploy"]
|
|
13
|
+
},
|
|
14
|
+
"repoRoot": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Repo root path where deploy.md lives."
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/deployer-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "deployer output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the deployer role. See agents/deployer.md Output schema for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["deployed", "notes"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"deployed": {
|
|
11
|
+
"type": "boolean"
|
|
12
|
+
},
|
|
13
|
+
"notes": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/doer-input@2",
|
|
4
|
+
"version": 2,
|
|
5
|
+
"title": "doer input",
|
|
6
|
+
"description": "Required dispatch-context keys for the doer role, per agents/doer.md Inputs section. Consumed by callers for pre-dispatch validation only -- never appended to the prompt or shown to the LLM.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["branch", "assignedBeadIds"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"branch": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Sprint track branch to work on."
|
|
13
|
+
},
|
|
14
|
+
"assignedBeadIds": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": { "type": "string" },
|
|
17
|
+
"minItems": 1,
|
|
18
|
+
"description": "The exact bead ids the doer is to work this run, chosen by the orchestrator. This is the doer's entire work list; it never discovers work via bare 'bd ready'."
|
|
19
|
+
},
|
|
20
|
+
"modelTier": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Informational: the model tier this doer runs as (cheap/standard/premium), assigned by the orchestrator from the task's beads metadata."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/doer-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "doer output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the doer role. See agents/doer.md Step 3 (VERIFY checkpoint) and Branch and secrets rules (BLOCKED) for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["status", "closedIds", "notes"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": ["VERIFY", "BLOCKED"]
|
|
13
|
+
},
|
|
14
|
+
"closedIds": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": { "type": "string" }
|
|
17
|
+
},
|
|
18
|
+
"notes": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/harvester-input@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "harvester input",
|
|
6
|
+
"description": "Required dispatch-context keys for the harvester role, per agents/harvester.md Inputs section. Consumed by callers for pre-dispatch validation only -- never appended to the prompt or shown to the LLM.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["analysisArtifactFile", "analysisText", "costAnalysis", "base-branch", "branch"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"analysisArtifactFile": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Relative path (under the repo) to write the sprint analysis artifact to."
|
|
13
|
+
},
|
|
14
|
+
"analysisText": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Exact, pre-formatted analysis content to write verbatim."
|
|
17
|
+
},
|
|
18
|
+
"costAnalysis": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Exact, pre-computed cost analysis block to insert verbatim into the CHANGELOG entry."
|
|
21
|
+
},
|
|
22
|
+
"base-branch": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Branch to diff against for git log/git diff in Step 2."
|
|
25
|
+
},
|
|
26
|
+
"branch": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Sprint branch being harvested."
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/harvester-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "harvester output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the harvester role. See agents/harvester.md Step 7 for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["status", "notes"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": ["OK", "FAILED"]
|
|
13
|
+
},
|
|
14
|
+
"notes": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/integ-test-runner-input@2",
|
|
4
|
+
"version": 2,
|
|
5
|
+
"title": "integ-test-runner input",
|
|
6
|
+
"description": "Required dispatch-context keys for the integ-test-runner role, per agents/integ-test-runner.md Inputs section. The runner owns the integ-test-playbook.md sandbox lifecycle (Setup/Reset/Teardown) itself; the product deploy (deploy.md) has already been done by the deployer. Consumed by callers for pre-dispatch validation only -- never appended to the prompt or shown to the LLM.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["repoRoot", "featureIds"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"repoRoot": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Repo root path where integ-test-playbook.md lives."
|
|
13
|
+
},
|
|
14
|
+
"featureIds": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": { "type": "string" },
|
|
17
|
+
"description": "Explicit list of open feature ids in this sprint's subtree, scoped by the orchestrator. An empty array is a valid dispatch (the playbook still runs as the sprint's standing confidence check); the runner never derives this list itself."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/integ-test-runner-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "integ-test-runner output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the integ-test-runner role. See agents/integ-test-runner.md Step 4 for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["featuresClosed", "issuesCreated", "passed", "bugsFiled", "summary"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"featuresClosed": {
|
|
11
|
+
"type": "number"
|
|
12
|
+
},
|
|
13
|
+
"issuesCreated": {
|
|
14
|
+
"type": "number"
|
|
15
|
+
},
|
|
16
|
+
"passed": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
"bugsFiled": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "type": "string" }
|
|
22
|
+
},
|
|
23
|
+
"summary": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/plan-reviewer-input@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "plan-reviewer input",
|
|
6
|
+
"description": "Required dispatch-context keys for the plan-reviewer role, per agents/plan-reviewer.md Inputs section. Consumed by callers for pre-dispatch validation only -- never appended to the prompt or shown to the LLM.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["scope"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"scope": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The sprint root / open beads subtree this review pass covers."
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/plan-reviewer-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "plan-reviewer output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the plan-reviewer role. See agents/plan-reviewer.md Step 4 for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["verdict", "notes", "taskAssignments"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"verdict": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": ["APPROVED", "CHANGES_NEEDED"]
|
|
13
|
+
},
|
|
14
|
+
"notes": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"taskAssignments": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": ["id", "bucket", "model"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"id": { "type": "string" },
|
|
24
|
+
"bucket": { "type": "string", "enum": ["S", "M", "L"] },
|
|
25
|
+
"model": { "type": "string" }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/reviewer-input@2",
|
|
4
|
+
"version": 2,
|
|
5
|
+
"title": "reviewer input",
|
|
6
|
+
"description": "Required dispatch-context keys for the reviewer role, per agents/reviewer.md Inputs section. Consumed by callers for pre-dispatch validation only -- never appended to the prompt or shown to the LLM.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["base-branch", "branch", "beadIds"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"base-branch": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Branch to diff against, e.g. \"main\"."
|
|
13
|
+
},
|
|
14
|
+
"branch": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Sprint track branch to review."
|
|
17
|
+
},
|
|
18
|
+
"beadIds": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": { "type": "string" },
|
|
21
|
+
"minItems": 1,
|
|
22
|
+
"description": "The exact bead ids just worked -- the reviewer's entire review list. It never scans 'bd list --status=closed' to find recent work."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "apra-pm/reviewer-output@1",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"title": "reviewer output",
|
|
6
|
+
"description": "Canonical machine-readable output contract for the reviewer role. See agents/reviewer.md Step 5 for the prose contract this mirrors.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["verdict", "notes", "reopenIds", "newTasks"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"verdict": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": ["APPROVED", "CHANGES_NEEDED"]
|
|
13
|
+
},
|
|
14
|
+
"notes": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"reopenIds": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": { "type": "string" }
|
|
20
|
+
},
|
|
21
|
+
"newTasks": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["title", "description", "priority"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"title": { "type": "string" },
|
|
28
|
+
"description": { "type": "string" },
|
|
29
|
+
"priority": { "type": "string" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/dist/cli/config.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export declare const HOOKS_DIR: string;
|
|
|
5
5
|
export declare const SCRIPTS_DIR: string;
|
|
6
6
|
export declare const DATA_DIR: string;
|
|
7
7
|
export declare const INSTALL_CONFIG_PATH: string;
|
|
8
|
-
export declare const CURATED_CHEAP_MODELS: readonly ["gpt-oss-120b", "gpt-120", "gemini-3.5-flash-lite", "gemini-3.1-flash-lite-preview", "
|
|
9
|
-
export declare const CURATED_STANDARD_MODELS: readonly ["gemini-3.5-flash", "gpt-oss-120b", "gpt-120", "
|
|
10
|
-
export declare const CURATED_PREMIUM_MODELS: readonly ["
|
|
8
|
+
export declare const CURATED_CHEAP_MODELS: readonly ["gpt-oss-120b", "gpt-120", "gemini-3.5-flash-lite", "gemini-3.1-flash-lite-preview", "haiku", "gpt-5.4-mini"];
|
|
9
|
+
export declare const CURATED_STANDARD_MODELS: readonly ["gemini-3.5-flash", "gpt-oss-120b", "gpt-120", "sonnet", "gemini-3-flash-preview", "gpt-5.4"];
|
|
10
|
+
export declare const CURATED_PREMIUM_MODELS: readonly ["sonnet", "opus", "gpt-oss-120b", "gemini-3.1-pro-preview"];
|
|
11
11
|
export declare const PROVIDER_STANDARD_MODELS: Record<string, string>;
|
|
12
12
|
export interface ProviderInstallConfig {
|
|
13
13
|
configDir: string;
|
|
@@ -24,6 +24,12 @@ export interface MultiProviderInstallConfig {
|
|
|
24
24
|
}>;
|
|
25
25
|
}
|
|
26
26
|
export declare function getProviderInstallConfig(provider: LlmProvider): ProviderInstallConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Home-relative agents dir for a provider (e.g. '.claude/agents'), or undefined
|
|
29
|
+
* when the provider has no agents dir (codex, copilot). Derived from
|
|
30
|
+
* getProviderInstallConfig() so install and remote provisioning cannot drift.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getAgentsDirRelative(provider: LlmProvider): string | undefined;
|
|
27
33
|
export declare function readConfig(paths: ProviderInstallConfig): any;
|
|
28
34
|
export declare function writeConfig(paths: ProviderInstallConfig, config: any): void;
|
|
29
35
|
export declare function readInstallConfig(): MultiProviderInstallConfig;
|
package/dist/cli/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,eAAO,MAAM,UAAU,QAAiC,CAAC;AACzD,eAAO,MAAM,OAAO,QAA+B,CAAC;AACpD,eAAO,MAAM,SAAS,QAAiC,CAAC;AACxD,eAAO,MAAM,WAAW,QAAmC,CAAC;AAC5D,eAAO,MAAM,QAAQ,QAAgC,CAAC;AACtD,eAAO,MAAM,mBAAmB,QAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MA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,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAQ5F"}
|
package/dist/cli/config.js
CHANGED
|
@@ -9,33 +9,35 @@ export const HOOKS_DIR = path.join(FLEET_BASE, 'hooks');
|
|
|
9
9
|
export const SCRIPTS_DIR = path.join(FLEET_BASE, 'scripts');
|
|
10
10
|
export const DATA_DIR = path.join(FLEET_BASE, 'data');
|
|
11
11
|
export const INSTALL_CONFIG_PATH = path.join(DATA_DIR, 'install-config.json');
|
|
12
|
+
// Claude entries use the bare family aliases (haiku/sonnet/opus) instead of
|
|
13
|
+
// dated model IDs -- the claude CLI/settings.json resolve these to the
|
|
14
|
+
// current generation automatically, so they never go stale as Anthropic
|
|
15
|
+
// ships new models. Other providers' CLIs don't share this alias support,
|
|
16
|
+
// so their entries stay pinned to literal model IDs.
|
|
12
17
|
export const CURATED_CHEAP_MODELS = [
|
|
13
18
|
'gpt-oss-120b',
|
|
14
19
|
'gpt-120',
|
|
15
20
|
'gemini-3.5-flash-lite',
|
|
16
21
|
'gemini-3.1-flash-lite-preview',
|
|
17
|
-
'
|
|
22
|
+
'haiku',
|
|
18
23
|
'gpt-5.4-mini',
|
|
19
24
|
];
|
|
20
25
|
export const CURATED_STANDARD_MODELS = [
|
|
21
26
|
'gemini-3.5-flash',
|
|
22
27
|
'gpt-oss-120b',
|
|
23
28
|
'gpt-120',
|
|
24
|
-
'
|
|
25
|
-
'claude-sonnet-4-5',
|
|
29
|
+
'sonnet',
|
|
26
30
|
'gemini-3-flash-preview',
|
|
27
31
|
'gpt-5.4',
|
|
28
32
|
];
|
|
29
33
|
export const CURATED_PREMIUM_MODELS = [
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'claude-opus-4-6',
|
|
33
|
-
'claude-opus-4-7',
|
|
34
|
+
'sonnet',
|
|
35
|
+
'opus',
|
|
34
36
|
'gpt-oss-120b',
|
|
35
37
|
'gemini-3.1-pro-preview',
|
|
36
38
|
];
|
|
37
39
|
export const PROVIDER_STANDARD_MODELS = {
|
|
38
|
-
claude: '
|
|
40
|
+
claude: 'sonnet',
|
|
39
41
|
gemini: 'gemini-3.5-flash',
|
|
40
42
|
codex: 'gpt-5.4',
|
|
41
43
|
copilot: 'claude-sonnet-4-5',
|
|
@@ -101,6 +103,17 @@ export function getProviderInstallConfig(provider) {
|
|
|
101
103
|
};
|
|
102
104
|
}
|
|
103
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Home-relative agents dir for a provider (e.g. '.claude/agents'), or undefined
|
|
108
|
+
* when the provider has no agents dir (codex, copilot). Derived from
|
|
109
|
+
* getProviderInstallConfig() so install and remote provisioning cannot drift.
|
|
110
|
+
*/
|
|
111
|
+
export function getAgentsDirRelative(provider) {
|
|
112
|
+
const paths = getProviderInstallConfig(provider);
|
|
113
|
+
if (!paths.agentsDir)
|
|
114
|
+
return undefined;
|
|
115
|
+
return path.relative(home, paths.agentsDir).replace(/\\/g, '/');
|
|
116
|
+
}
|
|
104
117
|
export function readConfig(paths) {
|
|
105
118
|
if (!fs.existsSync(paths.settingsFile))
|
|
106
119
|
return {};
|
package/dist/cli/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,UA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,EAAE,CAAC;IACnC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG;QACtB,KAAK;QACL,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACtC,CAAC;IACF,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5C,EAAE,CAAC,aAAa,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAC1F,CAAC"}
|
package/dist/cli/install.d.ts
CHANGED
|
@@ -21,9 +21,19 @@ interface AssetManifest {
|
|
|
21
21
|
fleetSkills: Record<string, string>;
|
|
22
22
|
agents: Record<string, string>;
|
|
23
23
|
workflows: Record<string, string>;
|
|
24
|
+
autoSprintArgsSkill: Record<string, string>;
|
|
24
25
|
}
|
|
25
26
|
/** Inject a manifest for tests — avoids SEA asset extraction. Pass null to restore default. */
|
|
26
27
|
export declare function _setManifestOverride(m: AssetManifest | null): void;
|
|
28
|
+
/**
|
|
29
|
+
* Recursively load every agent asset (role agents + _shared/ + schemas/) as
|
|
30
|
+
* {relPath, content} pairs, relPath relative to the agents dir root.
|
|
31
|
+
* Shared by install (writes to disk) and agent-provisioner (hashes for remote diffing).
|
|
32
|
+
*/
|
|
33
|
+
export declare function loadAgentAssets(): Array<{
|
|
34
|
+
relPath: string;
|
|
35
|
+
content: string;
|
|
36
|
+
}>;
|
|
27
37
|
export declare function pruneInvalidRules(allow: string[], providerName: string): string[];
|
|
28
38
|
export declare function buildRequiredPerms(paths: ProviderInstallConfig): string[];
|
|
29
39
|
export declare function isApraFleetRunning(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/cli/install.ts"],"names":[],"mappings":"AAMA,OAAO,EASL,qBAAqB,EACtB,MAAM,aAAa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oB7E;AA0GD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAGjF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,EAAE,CAgBzE;AAwGD,wBAAgB,kBAAkB,IAAI,OAAO,CAoB5C;AAED,wBAAgB,aAAa,IAAI,IAAI,CAOpC;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAUlE;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA0b9D"}
|
package/dist/cli/install.js
CHANGED
|
@@ -59,6 +59,9 @@ function getSeaAssetBuffer(key) {
|
|
|
59
59
|
const sea = require('node:sea');
|
|
60
60
|
return Buffer.from(sea.getAsset(key));
|
|
61
61
|
}
|
|
62
|
+
// Claude-only helper skill vendored alongside apra-pm's auto-sprint workflow --
|
|
63
|
+
// installed into <configDir>/skills/auto-sprint-args, mirrors apra-pm/install.mjs.
|
|
64
|
+
const AUTO_SPRINT_ARGS_SKILL_NAME = 'auto-sprint-args';
|
|
62
65
|
import { fileURLToPath } from 'url';
|
|
63
66
|
import { dirname } from 'path';
|
|
64
67
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -113,6 +116,15 @@ function buildDevManifest(root) {
|
|
|
113
116
|
const skills = collectFilesRec(pmSkillsDir, pmBase, pmBase);
|
|
114
117
|
const agents = collectFilesRec(agentsDir, agentsBase, agentsBase);
|
|
115
118
|
const fleetSkills = collectFilesRec(path.join(root, 'skills', 'fleet'), 'skills/fleet');
|
|
119
|
+
// auto-sprint-args helper skill (vendored alongside apra-pm's auto-sprint workflow;
|
|
120
|
+
// claude-only install target, see the install flow's PM cost/workflow step).
|
|
121
|
+
const vendorArgsSkill = path.join(root, 'vendor', 'apra-pm', '.claude', 'skills', 'auto-sprint-args');
|
|
122
|
+
const distArgsSkill = path.join(root, 'dist', 'skills', 'auto-sprint-args');
|
|
123
|
+
const argsSkillDir = fs.existsSync(vendorArgsSkill) ? vendorArgsSkill : distArgsSkill;
|
|
124
|
+
const argsSkillBase = fs.existsSync(vendorArgsSkill)
|
|
125
|
+
? 'vendor/apra-pm/.claude/skills/auto-sprint-args'
|
|
126
|
+
: 'dist/skills/auto-sprint-args';
|
|
127
|
+
const autoSprintArgsSkill = collectFilesRec(argsSkillDir, argsSkillBase, argsSkillBase);
|
|
116
128
|
// Collect auto-sprint.js from vendor/apra-pm/.claude/workflows (or dist/workflows fallback)
|
|
117
129
|
const vendorWorkflows = path.join(root, 'vendor', 'apra-pm', '.claude', 'workflows');
|
|
118
130
|
const workflowsSrc = fs.existsSync(vendorWorkflows)
|
|
@@ -127,7 +139,7 @@ function buildDevManifest(root) {
|
|
|
127
139
|
}
|
|
128
140
|
}
|
|
129
141
|
const vf = JSON.parse(fs.readFileSync(path.join(root, 'version.json'), 'utf-8'));
|
|
130
|
-
return { version: vf.version, hooks, scripts, skills, fleetSkills, agents, workflows };
|
|
142
|
+
return { version: vf.version, hooks, scripts, skills, fleetSkills, agents, workflows, autoSprintArgsSkill };
|
|
131
143
|
}
|
|
132
144
|
let _manifestOverride = null;
|
|
133
145
|
/** Inject a manifest for tests — avoids SEA asset extraction. Pass null to restore default. */
|
|
@@ -141,6 +153,30 @@ function loadManifest() {
|
|
|
141
153
|
// Dev mode: generate manifest on-the-fly from project files
|
|
142
154
|
return buildDevManifest(findProjectRoot());
|
|
143
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Recursively load every agent asset (role agents + _shared/ + schemas/) as
|
|
158
|
+
* {relPath, content} pairs, relPath relative to the agents dir root.
|
|
159
|
+
* Shared by install (writes to disk) and agent-provisioner (hashes for remote diffing).
|
|
160
|
+
*/
|
|
161
|
+
export function loadAgentAssets() {
|
|
162
|
+
const results = [];
|
|
163
|
+
if (isSea()) {
|
|
164
|
+
const manifest = loadManifest();
|
|
165
|
+
for (const [relPath, assetKey] of Object.entries(manifest.agents)) {
|
|
166
|
+
results.push({ relPath, content: extractAsset(assetKey) });
|
|
167
|
+
}
|
|
168
|
+
return results;
|
|
169
|
+
}
|
|
170
|
+
const root = findProjectRoot();
|
|
171
|
+
const vendorAgents = path.join(root, 'vendor', 'apra-pm', 'agents');
|
|
172
|
+
const agentsSrc = fs.existsSync(vendorAgents) ? vendorAgents : path.join(root, 'dist', 'agents');
|
|
173
|
+
const agentsBase = fs.existsSync(vendorAgents) ? 'vendor/apra-pm/agents' : 'dist/agents';
|
|
174
|
+
const collected = collectFilesRec(agentsSrc, agentsBase, agentsBase);
|
|
175
|
+
for (const [relPath, rootRelativeLabel] of Object.entries(collected)) {
|
|
176
|
+
results.push({ relPath, content: fs.readFileSync(path.join(root, rootRelativeLabel), 'utf-8') });
|
|
177
|
+
}
|
|
178
|
+
return results;
|
|
179
|
+
}
|
|
144
180
|
function extractAsset(key) {
|
|
145
181
|
if (isSea()) {
|
|
146
182
|
return getSeaAsset(key);
|
|
@@ -713,6 +749,40 @@ Then re-run: apra-fleet install`);
|
|
|
713
749
|
else {
|
|
714
750
|
console.warn(' [!] auto-sprint.js not found -- cost.js and workflow not written');
|
|
715
751
|
}
|
|
752
|
+
// Claude only: install the auto-sprint-args helper skill (args contract for
|
|
753
|
+
// the auto-sprint workflow) into <configDir>/skills/auto-sprint-args -- mirrors
|
|
754
|
+
// apra-pm's own install.mjs semantics.
|
|
755
|
+
if (llm === 'claude') {
|
|
756
|
+
const argsSkillDest = path.join(paths.configDir, 'skills', AUTO_SPRINT_ARGS_SKILL_NAME);
|
|
757
|
+
const argsSkillEntries = isSea()
|
|
758
|
+
? Object.entries(manifest.autoSprintArgsSkill ?? {}).map(([relPath, assetKey]) => ({
|
|
759
|
+
relPath,
|
|
760
|
+
content: extractAsset(assetKey),
|
|
761
|
+
}))
|
|
762
|
+
: (() => {
|
|
763
|
+
const root = findProjectRoot();
|
|
764
|
+
const vendorArgsSkill = path.join(root, 'vendor', 'apra-pm', '.claude', 'skills', AUTO_SPRINT_ARGS_SKILL_NAME);
|
|
765
|
+
const distArgsSkill = path.join(root, 'dist', 'skills', AUTO_SPRINT_ARGS_SKILL_NAME);
|
|
766
|
+
const argsSkillSrc = fs.existsSync(vendorArgsSkill) ? vendorArgsSkill : distArgsSkill;
|
|
767
|
+
const argsSkillBase = fs.existsSync(vendorArgsSkill)
|
|
768
|
+
? `vendor/apra-pm/.claude/skills/${AUTO_SPRINT_ARGS_SKILL_NAME}`
|
|
769
|
+
: `dist/skills/${AUTO_SPRINT_ARGS_SKILL_NAME}`;
|
|
770
|
+
const collected = collectFilesRec(argsSkillSrc, argsSkillBase, argsSkillBase);
|
|
771
|
+
return Object.entries(collected).map(([relPath, rootRelativeLabel]) => ({
|
|
772
|
+
relPath,
|
|
773
|
+
content: fs.readFileSync(path.join(root, rootRelativeLabel), 'utf-8'),
|
|
774
|
+
}));
|
|
775
|
+
})();
|
|
776
|
+
if (argsSkillEntries.length > 0) {
|
|
777
|
+
clearDirSync(argsSkillDest);
|
|
778
|
+
for (const { relPath, content } of argsSkillEntries) {
|
|
779
|
+
writeAssetFile(path.join(argsSkillDest, relPath), content);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
console.warn(` [!] ${AUTO_SPRINT_ARGS_SKILL_NAME} skill source not found -- skill not installed`);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
716
786
|
}
|
|
717
787
|
if (!installFleet && !installPm) {
|
|
718
788
|
console.log(` Skipping skills (use --skill all to install, or omit --skill for default)`);
|
|
@@ -723,28 +793,9 @@ Then re-run: apra-fleet install`);
|
|
|
723
793
|
console.log(` [${agentStep}/${totalSteps}] Installing PM agents...`);
|
|
724
794
|
const agentsDestDir = paths.agentsDir;
|
|
725
795
|
fs.mkdirSync(agentsDestDir, { recursive: true });
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
if (llm === 'opencode') {
|
|
730
|
-
content = transformAgentForOpenCode(content, name);
|
|
731
|
-
}
|
|
732
|
-
writeAssetFile(path.join(agentsDestDir, name), content);
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
else {
|
|
736
|
-
const root = findProjectRoot();
|
|
737
|
-
const vendorAgents = path.join(root, 'vendor', 'apra-pm', 'agents');
|
|
738
|
-
const agentsSrc = fs.existsSync(vendorAgents) ? vendorAgents : path.join(root, 'dist', 'agents');
|
|
739
|
-
for (const entry of fs.readdirSync(agentsSrc, { withFileTypes: true })) {
|
|
740
|
-
if (entry.isDirectory())
|
|
741
|
-
continue;
|
|
742
|
-
let content = fs.readFileSync(path.join(agentsSrc, entry.name), 'utf-8');
|
|
743
|
-
if (llm === 'opencode') {
|
|
744
|
-
content = transformAgentForOpenCode(content, entry.name);
|
|
745
|
-
}
|
|
746
|
-
writeAssetFile(path.join(agentsDestDir, entry.name), content);
|
|
747
|
-
}
|
|
796
|
+
for (const { relPath, content: rawContent } of loadAgentAssets()) {
|
|
797
|
+
const content = llm === 'opencode' ? transformAgentForOpenCode(rawContent, relPath) : rawContent;
|
|
798
|
+
writeAssetFile(path.join(agentsDestDir, relPath), content);
|
|
748
799
|
}
|
|
749
800
|
}
|
|
750
801
|
// --- Beads install step ---
|