@aperant/framework 0.7.0 → 0.7.3
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 +180 -0
- package/agents/apt-planner.md +12 -0
- package/agents/apt-pr-review-fixer.md +13 -9
- package/bin/apt-tools.mjs +7 -0
- package/dist/cli/ci-watch/stop-matrix.d.mts.map +1 -1
- package/dist/cli/ci-watch/stop-matrix.mjs +16 -0
- package/dist/cli/ci-watch/stop-matrix.mjs.map +1 -1
- package/dist/cli/commands/ci-watch.d.mts +11 -0
- package/dist/cli/commands/ci-watch.d.mts.map +1 -1
- package/dist/cli/commands/ci-watch.mjs +108 -2
- package/dist/cli/commands/ci-watch.mjs.map +1 -1
- package/dist/cli/commands/features-audit.d.mts +24 -0
- package/dist/cli/commands/features-audit.d.mts.map +1 -1
- package/dist/cli/commands/features-audit.mjs +159 -5
- package/dist/cli/commands/features-audit.mjs.map +1 -1
- package/dist/cli/commands/health-check.d.mts +16 -0
- package/dist/cli/commands/health-check.d.mts.map +1 -1
- package/dist/cli/commands/health-check.mjs +118 -2
- package/dist/cli/commands/health-check.mjs.map +1 -1
- package/dist/cli/commands/init.d.mts +9 -0
- package/dist/cli/commands/init.d.mts.map +1 -1
- package/dist/cli/commands/init.mjs +49 -4
- package/dist/cli/commands/init.mjs.map +1 -1
- package/dist/cli/commands/modes.d.mts.map +1 -1
- package/dist/cli/commands/modes.mjs +11 -0
- package/dist/cli/commands/modes.mjs.map +1 -1
- package/dist/cli/commands/pr-review-audit-fixer.d.mts +13 -0
- package/dist/cli/commands/pr-review-audit-fixer.d.mts.map +1 -1
- package/dist/cli/commands/pr-review-audit-fixer.mjs +18 -5
- package/dist/cli/commands/pr-review-audit-fixer.mjs.map +1 -1
- package/dist/cli/commands/task.d.mts.map +1 -1
- package/dist/cli/commands/task.mjs +84 -5
- package/dist/cli/commands/task.mjs.map +1 -1
- package/dist/cli/commands/validate-evidence.d.mts +24 -2
- package/dist/cli/commands/validate-evidence.d.mts.map +1 -1
- package/dist/cli/commands/validate-evidence.mjs +154 -17
- package/dist/cli/commands/validate-evidence.mjs.map +1 -1
- package/dist/cli/commands/vitest-doctor.d.mts +2 -0
- package/dist/cli/commands/vitest-doctor.d.mts.map +1 -0
- package/dist/cli/commands/vitest-doctor.mjs +168 -0
- package/dist/cli/commands/vitest-doctor.mjs.map +1 -0
- package/dist/cli/config/gitignore-drift.d.mts +23 -1
- package/dist/cli/config/gitignore-drift.d.mts.map +1 -1
- package/dist/cli/config/gitignore-drift.mjs +81 -3
- package/dist/cli/config/gitignore-drift.mjs.map +1 -1
- package/dist/cli/config/load.d.mts +56 -2
- package/dist/cli/config/load.d.mts.map +1 -1
- package/dist/cli/config/load.mjs +192 -2
- package/dist/cli/config/load.mjs.map +1 -1
- package/dist/cli/consistency/parse-review.mjs +7 -0
- package/dist/cli/consistency/parse-review.mjs.map +1 -1
- package/dist/cli/dispatch.d.mts.map +1 -1
- package/dist/cli/dispatch.mjs +24 -2
- package/dist/cli/dispatch.mjs.map +1 -1
- package/dist/cli/gate/gates/gitignore-in-sync.d.mts +1 -1
- package/dist/cli/gate/gates/gitignore-in-sync.d.mts.map +1 -1
- package/dist/cli/gate/gates/gitignore-in-sync.mjs +5 -2
- package/dist/cli/gate/gates/gitignore-in-sync.mjs.map +1 -1
- package/dist/cli/gate/gates/review-clean.d.mts +5 -1
- package/dist/cli/gate/gates/review-clean.d.mts.map +1 -1
- package/dist/cli/gate/gates/review-clean.mjs +23 -18
- package/dist/cli/gate/gates/review-clean.mjs.map +1 -1
- package/dist/cli/gate/gates/verify-approved.d.mts +49 -1
- package/dist/cli/gate/gates/verify-approved.d.mts.map +1 -1
- package/dist/cli/gate/gates/verify-approved.mjs +93 -14
- package/dist/cli/gate/gates/verify-approved.mjs.map +1 -1
- package/dist/cli/help.d.mts.map +1 -1
- package/dist/cli/help.mjs +7 -2
- package/dist/cli/help.mjs.map +1 -1
- package/dist/cli/install/runtime-detect.d.mts +13 -0
- package/dist/cli/install/runtime-detect.d.mts.map +1 -1
- package/dist/cli/install/runtime-detect.mjs +9 -0
- package/dist/cli/install/runtime-detect.mjs.map +1 -1
- package/dist/cli/task/index-md.d.mts.map +1 -1
- package/dist/cli/task/index-md.mjs +14 -2
- package/dist/cli/task/index-md.mjs.map +1 -1
- package/dist/plugin/.claude-plugin/plugin.json +11 -2
- package/dist/plugin/agents/apt-improver.md +99 -0
- package/dist/plugin/agents/apt-planner.md +127 -10
- package/dist/plugin/agents/apt-pr-review-fixer.md +13 -9
- package/dist/plugin/skills/apt/SKILL.md +1 -0
- package/dist/plugin/skills/apt-close-task/SKILL.md +63 -1
- package/dist/plugin/skills/apt-debug/SKILL.md +39 -6
- package/dist/plugin/skills/apt-debug/appendices/diagnose-discipline.md +119 -0
- package/dist/plugin/skills/apt-diagram/SKILL.md +378 -0
- package/dist/plugin/skills/apt-diagram/appendices/design-discipline.md +97 -0
- package/dist/plugin/skills/apt-discuss/SKILL.md +72 -5
- package/dist/plugin/skills/apt-discuss/appendices/grill-discipline.md +104 -0
- package/dist/plugin/skills/apt-discuss/appendices/zoom-out-helper.md +79 -0
- package/dist/plugin/skills/apt-execute/SKILL.md +57 -5
- package/dist/plugin/skills/apt-execute/appendices/tdd-mode.md +107 -0
- package/dist/plugin/skills/apt-improve/DEEPENING.md +84 -0
- package/dist/plugin/skills/apt-improve/INTERFACE-DESIGN.md +97 -0
- package/dist/plugin/skills/apt-improve/LANGUAGE.md +104 -0
- package/dist/plugin/skills/apt-improve/SKILL.md +141 -0
- package/dist/plugin/skills/apt-plan/SKILL.md +171 -4
- package/dist/plugin/skills/apt-plan/adapters/conductor.md +98 -0
- package/dist/plugin/skills/apt-pr-review/SKILL.md +57 -18
- package/dist/plugin/skills/apt-prototype/LOGIC.md +109 -0
- package/dist/plugin/skills/apt-prototype/SKILL.md +143 -0
- package/dist/plugin/skills/apt-prototype/UI.md +90 -0
- package/dist/plugin/skills/apt-quick/SKILL.md +49 -8
- package/dist/plugin/skills/apt-release-notes/SKILL.md +193 -0
- package/dist/plugin/skills/apt-release-notes/appendices/persona-voice.md +59 -0
- package/dist/plugin/skills/apt-review/SKILL.md +2 -0
- package/dist/plugin/skills/apt-run/SKILL.md +32 -4
- package/dist/plugin/skills/apt-setup/SKILL.md +308 -6
- package/dist/plugin/skills/apt-ship/SKILL.md +122 -1
- package/dist/plugin/skills/apt-spar/SKILL.md +315 -0
- package/dist/plugin/skills/apt-triage/AGENT-BRIEF.md +84 -0
- package/dist/plugin/skills/apt-triage/OUT-OF-SCOPE.md +75 -0
- package/dist/plugin/skills/apt-triage/SKILL.md +169 -0
- package/dist/plugin/skills/apt-update/SKILL.md +77 -10
- package/dist/plugin/skills/apt-verify/SKILL.md +3 -0
- package/dist/plugin/skills/apt-verify-proof/SKILL.md +10 -5
- package/dist/plugin/skills/apt-watch-ci/SKILL.md +166 -0
- package/dist/plugin/skills/apt-zoom-out/SKILL.md +130 -0
- package/package.json +133 -133
- package/prompts/conductor-framework-context.md +63 -0
- package/prompts/conductor-system.md +11 -0
- package/skills/apt-close-task/SKILL.md +1 -0
- package/skills/apt-discuss/SKILL.md +47 -5
- package/skills/apt-execute/SKILL.md +9 -0
- package/skills/apt-plan/SKILL.md +12 -0
- package/skills/apt-pr-review/SKILL.md +11 -2
- package/skills/apt-quick/SKILL.md +19 -8
- package/skills/apt-researcher.md +1 -0
- package/skills/apt-setup/SKILL.md +33 -2
- package/skills/apt-verify-proof/SKILL.md +7 -5
- package/src/cli/ci-watch/stop-matrix.mjs +17 -0
- package/src/cli/commands/ci-watch.mjs +113 -2
- package/src/cli/commands/features-audit.mjs +164 -5
- package/src/cli/commands/health-check.mjs +115 -2
- package/src/cli/commands/init.mjs +52 -4
- package/src/cli/commands/modes.mjs +11 -0
- package/src/cli/commands/pr-review-audit-fixer.mjs +18 -5
- package/src/cli/commands/task.mjs +83 -5
- package/src/cli/commands/validate-evidence.mjs +158 -17
- package/src/cli/commands/vitest-doctor.mjs +173 -0
- package/src/cli/config/gitignore-drift.mjs +74 -3
- package/src/cli/config/load.mjs +188 -2
- package/src/cli/consistency/parse-review.mjs +6 -0
- package/src/cli/dispatch.mjs +23 -2
- package/src/cli/gate/gates/gitignore-in-sync.mjs +5 -2
- package/src/cli/gate/gates/review-clean.mjs +24 -19
- package/src/cli/gate/gates/verify-approved.mjs +97 -14
- package/src/cli/help.mjs +7 -2
- package/src/cli/install/runtime-detect.mjs +9 -0
- package/src/cli/task/index-md.mjs +15 -2
- package/templates/config.json +2 -7
- package/workflows/verify-proof.md +8 -3
|
@@ -33,6 +33,11 @@ import { MANIFEST_FILENAME } from './manifest.mjs'
|
|
|
33
33
|
* target mapped to a host CLI (e.g. `pi`,
|
|
34
34
|
* which has a detectable host but no apt
|
|
35
35
|
* install root of its own).
|
|
36
|
+
* @property {string} [displayLabel] Optional user-facing label (e.g. "Kilo Code").
|
|
37
|
+
* When unset, callers fall back to the
|
|
38
|
+
* capitalized form of `id`. Use for runtimes
|
|
39
|
+
* whose product branding differs from the
|
|
40
|
+
* internal id (C58: `kilo` → "Kilo Code").
|
|
36
41
|
*/
|
|
37
42
|
|
|
38
43
|
/** @type {RuntimeDescriptor[]} */
|
|
@@ -78,6 +83,10 @@ export const RUNTIMES = Object.freeze([
|
|
|
78
83
|
installRoot: '.kilo',
|
|
79
84
|
markers: ['.kilo/config.json'],
|
|
80
85
|
cliId: 'kilo',
|
|
86
|
+
// C58 (0.7.2): user-visible label. Internal id stays `kilo` (zero
|
|
87
|
+
// migration per spec ID-01). `--kilocode` is also accepted as a
|
|
88
|
+
// deprecated alias of `--kilo` at the CLI flag parser layer.
|
|
89
|
+
displayLabel: 'Kilo Code',
|
|
81
90
|
},
|
|
82
91
|
{
|
|
83
92
|
id: 'copilot',
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'
|
|
6
6
|
import { join } from 'node:path'
|
|
7
|
+
import { loadMergedProjectConfig } from '../config/load.mjs'
|
|
7
8
|
import { withFileLock } from '../util/fs-lock.mjs'
|
|
8
9
|
import { formatDateDisplay, formatTimeDisplay } from './format.mjs'
|
|
9
10
|
|
|
@@ -15,8 +16,20 @@ export function regenerateTaskIndex(targetDir) {
|
|
|
15
16
|
const statePath = join(targetDir, '.aperant', 'state.json')
|
|
16
17
|
if (!existsSync(statePath)) return
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
// AUDIT-001: read through the merged loader so per-device
|
|
20
|
+
// preferences.date_format / preferences.time_format overrides land
|
|
21
|
+
// even when the shared config.json no longer carries those fields.
|
|
22
|
+
// Guard: malformed config.local.json must not crash every task state
|
|
23
|
+
// transition — fall back to shared-config-only read and warn on stderr.
|
|
24
|
+
let config
|
|
25
|
+
try {
|
|
26
|
+
config = loadMergedProjectConfig(targetDir) ?? {}
|
|
27
|
+
} catch (e) {
|
|
28
|
+
process.stderr.write(
|
|
29
|
+
`[index-md] config.local.json parse error — using shared config only: ${e.message}\n`,
|
|
30
|
+
)
|
|
31
|
+
config = {}
|
|
32
|
+
}
|
|
20
33
|
if (config.preferences?.task_index === false) return
|
|
21
34
|
|
|
22
35
|
const state = JSON.parse(readFileSync(statePath, 'utf-8'))
|
package/templates/config.json
CHANGED
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"safe_paths": ["**/*.css", "**/*.md", "**/*.test.*", "**/*.spec.*"]
|
|
40
40
|
},
|
|
41
41
|
"verification": {
|
|
42
|
-
"open_report": true,
|
|
43
42
|
"report_formats": ["html", "md"],
|
|
44
43
|
"evidence_capture": true,
|
|
45
44
|
"max_iterations": 3,
|
|
@@ -47,8 +46,7 @@
|
|
|
47
46
|
},
|
|
48
47
|
"multi_model": {
|
|
49
48
|
"cross_verification": {
|
|
50
|
-
"enabled": false
|
|
51
|
-
"tools": []
|
|
49
|
+
"enabled": false
|
|
52
50
|
},
|
|
53
51
|
"video_review": {
|
|
54
52
|
"enabled": false,
|
|
@@ -92,14 +90,11 @@
|
|
|
92
90
|
"cleanup_on_close": "ask"
|
|
93
91
|
},
|
|
94
92
|
"preferences": {
|
|
95
|
-
"date_format": "YY-MM-DD",
|
|
96
|
-
"time_format": "24h",
|
|
97
93
|
"task_index": true,
|
|
98
94
|
"health_check": {
|
|
99
95
|
"enabled": false,
|
|
100
96
|
"interval_minutes": 30
|
|
101
|
-
}
|
|
102
|
-
"quick_task_post_verify": "ask"
|
|
97
|
+
}
|
|
103
98
|
},
|
|
104
99
|
"orchestration": {
|
|
105
100
|
"phase_delegation": "auto",
|
|
@@ -21,10 +21,15 @@ OUTPUT FORMAT: verification.json (NOT VERIFICATION.md). JSON is the source of tr
|
|
|
21
21
|
<step name="load_config" priority="first">
|
|
22
22
|
## 1. Load Config and Context
|
|
23
23
|
|
|
24
|
-
Read `.aperant/config.json`
|
|
24
|
+
Read the merged Aperant config for verification preferences (AUDIT-001 — the per-device `verification.open_report` field lives in `.aperant/config.local.json`; the rest in shared `.aperant/config.json`). Use the framework's merged loader so local overrides win:
|
|
25
25
|
```bash
|
|
26
|
-
|
|
26
|
+
node .aperant/deps/node_modules/@aperant/framework/bin/apt-tools.mjs config read . 2>/dev/null || echo "{}"
|
|
27
27
|
```
|
|
28
|
+
If `apt-tools config read` is unavailable, fall back to overlaying the two files in JS:
|
|
29
|
+
```bash
|
|
30
|
+
node -e "const fs=require('fs'); const s=(p)=>{try{return JSON.parse(fs.readFileSync(p,'utf-8'))}catch{return {}}}; function merge(a,b){if(a===null||typeof a!=='object'||Array.isArray(a))return b;if(b===null||typeof b!=='object'||Array.isArray(b))return b;const out={...a};for(const k of Object.keys(b))out[k]=(k in a)?merge(a[k],b[k]):b[k];return out}; const merged=merge(s('.aperant/config.json'),s('.aperant/config.local.json')); console.log(JSON.stringify(merged))"
|
|
31
|
+
```
|
|
32
|
+
Do NOT read `.aperant/config.json` directly — that misses per-device overrides like `verification.open_report` and `multi_model.cross_verification.tools`.
|
|
28
33
|
|
|
29
34
|
Read project constitution:
|
|
30
35
|
```bash
|
|
@@ -396,7 +401,7 @@ ln -sf "${PROOF_DIR}/report.html" .aperant/proof-report.html
|
|
|
396
401
|
<step name="open_report">
|
|
397
402
|
## 11. Open Report
|
|
398
403
|
|
|
399
|
-
|
|
404
|
+
Read `verification.open_report` from the MERGED config (per-device override lives in `.aperant/config.local.json` per AUDIT-001; do not read raw `.aperant/config.json`). If true (default):
|
|
400
405
|
```bash
|
|
401
406
|
open "${PROOF_DIR}/report.html"
|
|
402
407
|
```
|