@plainconceptsplatform/agent-harness 3.1.1 → 3.3.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.
Files changed (87) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +24 -4
  3. package/cli/commands/join.js +259 -259
  4. package/cli/commands/migrate.js +310 -310
  5. package/cli/commands/shared.js +27 -27
  6. package/cli/commands/single.js +79 -79
  7. package/cli/commands/wizard.js +134 -134
  8. package/cli/fragments/ops-backlog/az.md +28 -28
  9. package/cli/fragments/ops-backlog/gh.md +28 -28
  10. package/cli/fragments/ops-backlog/jira.md +28 -28
  11. package/cli/fragments/ops-review/az.md +62 -62
  12. package/cli/fragments/ops-review/gh.md +51 -51
  13. package/cli/fragments/ops-review/gl.md +55 -55
  14. package/cli/fragments/ops-ship/gh.md +67 -67
  15. package/cli/fragments/ops-ship/gl.md +84 -84
  16. package/cli/index.js +116 -116
  17. package/cli/presets/clean.json +21 -21
  18. package/cli/presets/models.json +68 -68
  19. package/cli/presets/optimization.json +32 -32
  20. package/cli/presets/platforms.json +76 -76
  21. package/cli/presets/source.json +23 -23
  22. package/cli/steps/clean/index.js +120 -120
  23. package/cli/steps/copy/agents.js +120 -120
  24. package/cli/steps/copy/fullstack-engineer.js +89 -89
  25. package/cli/steps/copy/opencode-json.js +324 -324
  26. package/cli/steps/models/format.js +88 -88
  27. package/cli/steps/models/index.js +64 -64
  28. package/cli/steps/openspec/index.js +136 -136
  29. package/cli/steps/optimization/codegraph.js +141 -127
  30. package/cli/steps/optimization/detect.js +66 -66
  31. package/cli/steps/optimization/humanizer.js +17 -17
  32. package/cli/steps/optimization/index.js +158 -158
  33. package/cli/steps/optimization/memory.js +91 -88
  34. package/cli/steps/optimization/patch-guardrails.js +111 -111
  35. package/cli/steps/optimization/simple-english.js +17 -17
  36. package/cli/steps/optimization/skills-lock.js +30 -30
  37. package/cli/steps/platform/index.js +109 -109
  38. package/cli/steps/source/index.js +123 -123
  39. package/cli/utils/agent-color.js +111 -111
  40. package/cli/utils/copy.js +134 -131
  41. package/cli/utils/exec-spinner.js +47 -47
  42. package/cli/utils/exec.js +134 -134
  43. package/cli/utils/legacy-check.js +30 -30
  44. package/cli/utils/models-cache.js +58 -58
  45. package/cli/utils/models-pricing.js +42 -42
  46. package/cli/utils/process.js +3 -3
  47. package/cli/utils/terminal.js +6 -6
  48. package/cli/utils/update-manifest.js +75 -75
  49. package/harness/.opencode/commands/ops-backlog.md +10 -10
  50. package/harness/.opencode/commands/ops-review.md +8 -8
  51. package/harness/.opencode/commands/ops-ship.md +9 -9
  52. package/harness/.opencode/commands/plan-archive.md +5 -5
  53. package/harness/.opencode/commands/plan-explore.md +9 -9
  54. package/harness/.opencode/commands/plan-propose.md +9 -9
  55. package/harness/.opencode/commands/repo-help.md +5 -5
  56. package/harness/.opencode/package.json +5 -5
  57. package/harness/.opencode/plugins/pc-subagent-monitor.js +184 -184
  58. package/harness/.opencode/plugins/pc-subagent-tiers.js +354 -354
  59. package/harness/.opencode/plugins/pc-system-reminders.js +386 -386
  60. package/harness/.opencode/scripts/check-diff.mjs +244 -0
  61. package/harness/.opencode/scripts/code-rules.mjs +288 -0
  62. package/harness/ARCHITECTURE.md +13 -13
  63. package/harness/DESIGN.md +13 -13
  64. package/harness/opencode.jsonc +36 -36
  65. package/harness/openspec/config.yaml +20 -20
  66. package/harness/skills-lock.json +17 -17
  67. package/package.json +14 -12
  68. package/skills/agent-harness-cli/SKILL.md +86 -86
  69. package/skills/pc-guardrails-generic/SKILL.md +2 -1
  70. package/skills/pc-guardrails-project/SKILL.md +8 -8
  71. package/skills/pc-make-architecture/structure-template.md +64 -64
  72. package/skills/pc-make-engineer/SKILL.md +59 -59
  73. package/skills/pc-make-engineer/template.md +36 -36
  74. package/skills/pc-make-guardrails/category-reference.md +112 -112
  75. package/skills/pc-make-merge-risk-assess/SKILL.md +70 -70
  76. package/skills/pc-make-merge-risk-assess/category-reference.md +114 -114
  77. package/skills/pc-ops-ship/SKILL.md +22 -18
  78. package/skills/pc-plan-apply/SKILL.md +86 -86
  79. package/skills/pc-plan-apply/simple-mode.md +1 -1
  80. package/skills/pc-plan-explore/SKILL.md +21 -21
  81. package/skills/pc-plan-goal/SKILL.md +91 -91
  82. package/skills/pc-plan-goal/failure-policy.md +30 -30
  83. package/skills/pc-plan-goal/output-mode.md +10 -10
  84. package/skills/pc-plan-propose/SKILL.md +125 -125
  85. package/skills/pc-plan-propose/task-annotation.md +39 -39
  86. package/skills/pc-plan-quick/SKILL.md +1 -1
  87. package/skills/pc-repo-audit/SKILL.md +44 -44
@@ -1,44 +1,44 @@
1
- ---
2
- name: pc-repo-audit
3
- description: Audit every configured repository source root against the fullstack engineer's abilities and guardrails. Read-only. Invoked by the /repo-audit command.
4
- license: MIT
5
- ---
6
-
7
- # Repo Audit
8
-
9
- Audit the repository without modifying files, installing dependencies, creating backlog items, pushing, or contacting external platforms.
10
-
11
- ## Step 1: Load the audit rules
12
-
13
- 1. Read `.opencode/agents/fullstack-engineer.md`.
14
- 2. Parse every `@skill-name` in its `## Abilities` section.
15
- 3. Load every listed skill, guardrails first. If a referenced skill is missing, record it as a finding and continue with the installed abilities.
16
-
17
- ## Step 2: Establish scope
18
-
19
- 1. Read `.opencode/source-roots.json` when it exists. Use its non-empty `roots` array; otherwise use the repository root.
20
- 2. Inventory every root before judging it. Identify applications, services, libraries, tests, frontend or website projects, infrastructure, CI, package manifests, lockfiles, and generated-output rules.
21
- 3. Keep every read and command inside a configured source root or the repository root.
22
-
23
- ## Step 3: Audit every project
24
-
25
- Apply the loaded abilities and guardrails to each discovered project. Assess:
26
-
27
- - Architecture, module boundaries, naming, and duplicated responsibilities.
28
- - Tests, linting, type checks, builds, CI, and whether their configured commands match the project.
29
- - Dependency manifests, lockfiles, package-manager declarations, runtime versions, and workspace configuration.
30
- - Security and repository hygiene, including generated files, ignored artifacts, and likely secrets in tracked files.
31
- - Documentation and configuration drift across `AGENTS.md`, architecture/design documents, project scripts, and CI.
32
-
33
- For dependency findings, identify the exact manifest and lockfile involved. State the repository-defined remediation and immutable dependency validation command; never run a mutation-capable install during this audit.
34
-
35
- ## Step 4: Report
36
-
37
- Deduplicate findings across roots and report them grouped by project. Every finding must include:
38
-
39
- - Severity: critical, high, medium, or low.
40
- - Affected root and path.
41
- - Evidence and the applicable guardrail or ability, when one exists.
42
- - Impact and a concrete remediation or verification command.
43
-
44
- End with the projects audited, checks that could not run and why, and a short prioritized remediation list. If no findings exist, state that explicitly and list residual verification gaps.
1
+ ---
2
+ name: pc-repo-audit
3
+ description: Audit every configured repository source root against the fullstack engineer's abilities and guardrails. Read-only. Invoked by the /repo-audit command.
4
+ license: MIT
5
+ ---
6
+
7
+ # Repo Audit
8
+
9
+ Audit the repository without modifying files, installing dependencies, creating backlog items, pushing, or contacting external platforms.
10
+
11
+ ## Step 1: Load the audit rules
12
+
13
+ 1. Read `.opencode/agents/fullstack-engineer.md`.
14
+ 2. Parse every `@skill-name` in its `## Abilities` section.
15
+ 3. Load every listed skill, guardrails first. If a referenced skill is missing, record it as a finding and continue with the installed abilities.
16
+
17
+ ## Step 2: Establish scope
18
+
19
+ 1. Read `.opencode/source-roots.json` when it exists. Use its non-empty `roots` array; otherwise use the repository root.
20
+ 2. Inventory every root before judging it. Identify applications, services, libraries, tests, frontend or website projects, infrastructure, CI, package manifests, lockfiles, and generated-output rules.
21
+ 3. Keep every read and command inside a configured source root or the repository root.
22
+
23
+ ## Step 3: Audit every project
24
+
25
+ Apply the loaded abilities and guardrails to each discovered project. Assess:
26
+
27
+ - Architecture, module boundaries, naming, and duplicated responsibilities.
28
+ - Tests, linting, type checks, builds, CI, and whether their configured commands match the project.
29
+ - Dependency manifests, lockfiles, package-manager declarations, runtime versions, and workspace configuration.
30
+ - Security and repository hygiene, including generated files, ignored artifacts, and likely secrets in tracked files.
31
+ - Documentation and configuration drift across `AGENTS.md`, architecture/design documents, project scripts, and CI.
32
+
33
+ For dependency findings, identify the exact manifest and lockfile involved. State the repository-defined remediation and immutable dependency validation command; never run a mutation-capable install during this audit.
34
+
35
+ ## Step 4: Report
36
+
37
+ Deduplicate findings across roots and report them grouped by project. Every finding must include:
38
+
39
+ - Severity: critical, high, medium, or low.
40
+ - Affected root and path.
41
+ - Evidence and the applicable guardrail or ability, when one exists.
42
+ - Impact and a concrete remediation or verification command.
43
+
44
+ End with the projects audited, checks that could not run and why, and a short prioritized remediation list. If no findings exist, state that explicitly and list residual verification gaps.