yadflow 4.10.0 → 4.12.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 +152 -0
- package/README.md +14 -3
- package/bin/commands.mjs +7 -1
- package/bin/yad.mjs +163 -16
- package/cli/agent-guard-worker.mjs +13 -0
- package/cli/agent-guard.mjs +1053 -57
- package/cli/agent-rules.mjs +59 -3
- package/cli/argv-flags.mjs +2 -2
- package/cli/brain/vendor/LICENSE-graphology-library.txt +21 -0
- package/cli/brain/vendor/LICENSE-graphology.txt +21 -0
- package/cli/brain/vendor/LICENSE-sigma.txt +12 -0
- package/cli/brain/vendor/graphology-library.min.js +2 -0
- package/cli/brain/vendor/graphology.umd.min.js +2 -0
- package/cli/brain/vendor/sigma.min.js +1369 -0
- package/cli/brain/view/app.js +382 -0
- package/cli/brain/view/index.html +63 -0
- package/cli/brain/view/live.css +228 -0
- package/cli/brain/view/live.html +110 -0
- package/cli/brain/view/live.js +884 -0
- package/cli/brain/view/style.css +141 -0
- package/cli/brain-about.mjs +206 -0
- package/cli/brain-activity.mjs +285 -0
- package/cli/brain-skills.mjs +118 -0
- package/cli/brain-vendor.mjs +71 -0
- package/cli/brain-view.mjs +345 -0
- package/cli/brain.mjs +810 -0
- package/cli/brand-cmd.mjs +326 -0
- package/cli/brand.mjs +327 -0
- package/cli/ci-check.mjs +3 -3
- package/cli/doctor.mjs +145 -14
- package/cli/epic-state.mjs +93 -1
- package/cli/epic.mjs +15 -3
- package/cli/errors.mjs +2 -1
- package/cli/find-product.mjs +69 -15
- package/cli/foundation-publish.mjs +256 -0
- package/cli/gate.mjs +29 -3
- package/cli/git-read.mjs +38 -0
- package/cli/guard-stream.mjs +409 -0
- package/cli/guide.mjs +26 -3
- package/cli/hook.mjs +59 -9
- package/cli/issues-act.mjs +57 -13
- package/cli/issues-write.mjs +19 -6
- package/cli/issues.mjs +69 -24
- package/cli/lib.mjs +37 -2
- package/cli/local-page.mjs +138 -0
- package/cli/local-setup-record.mjs +71 -0
- package/cli/local-setup-steps.mjs +186 -0
- package/cli/local-setup.mjs +611 -0
- package/cli/machine.mjs +1 -1
- package/cli/manifest.mjs +55 -0
- package/cli/map/view/app.js +712 -0
- package/cli/map/view/index.html +50 -0
- package/cli/map/view/style.css +142 -0
- package/cli/map-view.mjs +190 -0
- package/cli/map.mjs +637 -0
- package/cli/members.mjs +9 -15
- package/cli/next.mjs +1 -1
- package/cli/openpr.mjs +2 -2
- package/cli/plain-text.mjs +22 -0
- package/cli/plan.mjs +310 -36
- package/cli/platform.mjs +5 -5
- package/cli/product-index.mjs +1 -1
- package/cli/protection.mjs +32 -0
- package/cli/reconcile.mjs +61 -13
- package/cli/report.mjs +9 -3
- package/cli/reports-dir.mjs +393 -0
- package/cli/reports.mjs +65 -0
- package/cli/run-checks.mjs +5 -2
- package/cli/scan.mjs +4 -6
- package/cli/secret-text.mjs +66 -0
- package/cli/setup.mjs +54 -8
- package/cli/standup.mjs +94 -72
- package/cli/status.mjs +6 -5
- package/cli/test-agents-file.mjs +614 -8
- package/cli/test-brain-activity.mjs +753 -0
- package/cli/test-brain-view.mjs +381 -0
- package/cli/test-brain.mjs +795 -0
- package/cli/test-brand.mjs +558 -0
- package/cli/test-guide.mjs +438 -0
- package/cli/test-local-setup.mjs +1188 -0
- package/cli/test-machine.mjs +59 -0
- package/cli/test-map.mjs +615 -0
- package/cli/test-reports.mjs +382 -0
- package/cli/test-run-checks.mjs +4 -0
- package/cli/test-worktree.mjs +24 -3
- package/cli/toolbox-connect.mjs +21 -6
- package/cli/toolbox.mjs +74 -5
- package/cli/update-commit.mjs +118 -9
- package/cli/usage.mjs +17 -7
- package/cli/workspace.mjs +11 -2
- package/package.json +8 -4
- package/skills/sdlc/module-help.csv +1 -0
- package/skills/yad-architecture/SKILL.md +22 -4
- package/skills/yad-brand/SKILL.md +69 -0
- package/skills/yad-change/SKILL.md +3 -1
- package/skills/yad-change/references/triage.md +2 -0
- package/skills/yad-checks/SKILL.md +2 -0
- package/skills/yad-checks/references/check-gates.md +8 -5
- package/skills/yad-checks/templates/checks/build-test-lint.sh +7 -0
- package/skills/yad-checks/templates/checks/install-deps.sh +6 -0
- package/skills/yad-checks/templates/checks/package-manager.sh +42 -0
- package/skills/yad-checks/templates/github/yad-checks.yml +3 -2
- package/skills/yad-checks/templates/gitlab/yad-checks.gitlab-ci.yml +3 -2
- package/skills/yad-checks/templates/hooks/local-setup-notice.mjs +96 -0
- package/skills/yad-checks/templates/hooks/yad-activity.mjs +238 -0
- package/skills/yad-connect-repos/SKILL.md +14 -0
- package/skills/yad-discovery/SKILL.md +11 -0
- package/skills/yad-discovery/references/foundation-schema.md +11 -0
- package/skills/yad-docs/templates/app/package-lock.json +18 -10
- package/skills/yad-docs/templates/app/package.json +6 -1
- package/skills/yad-epic/SKILL.md +3 -0
- package/skills/yad-epic/references/state-schema.md +35 -1
- package/skills/yad-guide/SKILL.md +10 -7
- package/skills/yad-implement/SKILL.md +76 -15
- package/skills/yad-issues/SKILL.md +2 -1
- package/skills/yad-pr-template/templates/checks/pr-template.sh +8 -4
- package/skills/yad-pr-template/templates/checks/pr-title.sh +8 -4
- package/skills/yad-spec/SKILL.md +19 -0
- package/skills/yad-stories/SKILL.md +22 -4
- package/skills/yad-stories/references/story-schema.md +1 -1
package/cli/manifest.mjs
CHANGED
|
@@ -65,6 +65,8 @@ export const SKILLS = [
|
|
|
65
65
|
'yad-stub',
|
|
66
66
|
'yad-issues',
|
|
67
67
|
'yad-scan',
|
|
68
|
+
// E184: fills .sdlc/brand.json from the Product's design system, so every page yad makes wears it.
|
|
69
|
+
'yad-brand',
|
|
68
70
|
];
|
|
69
71
|
|
|
70
72
|
// Old skill names. `check`/`update` migrate any install still carrying one: remove the old copy,
|
|
@@ -282,6 +284,9 @@ export const PROJECT_FILES = {
|
|
|
282
284
|
// Which toolbox tools this project uses or skips, and its own tools (E86). Absent is the normal case:
|
|
283
285
|
// the core tools and the connected design, testing and learning tools are the ones in use.
|
|
284
286
|
toolboxConfig: '.sdlc/toolbox.json',
|
|
287
|
+
// The Product's brand, which every page yad makes wears (E184). Absent is the normal case: yadflow's look.
|
|
288
|
+
// Listed so a shape change reaches it: it is written under .sdlc/, so writeJSON stamps it (review 1).
|
|
289
|
+
brandConfig: '.sdlc/brand.json',
|
|
285
290
|
// The kill switch and the Shape steps a team has set to `advance: auto` (E34). Absent is the normal
|
|
286
291
|
// case: the switch is off and every Shape step is `human`. A project file, not the module config the
|
|
287
292
|
// switch lived in before (`_bmad/sdlc/config.yaml` then, `.sdlc/config.yaml` since E3) — that one is
|
|
@@ -829,6 +834,56 @@ export const agentGuardAdapters = (dest) => Object.freeze({
|
|
|
829
834
|
});
|
|
830
835
|
export const AGENT_GUARD_ADAPTERS = agentGuardAdapters(AGENT_GUARD_WIRING[0].dest);
|
|
831
836
|
|
|
837
|
+
// The live activity record (E178): AFTER each tool an agent uses, `yad-activity.mjs` appends one line to the
|
|
838
|
+
// repo's `<git common dir>/yad-activity.jsonl` — the kind of action (read, search, edit, run), the repo's files
|
|
839
|
+
// it touched, the time — which `yad brain view --live` draws. OFF by default: wired only while the Product
|
|
840
|
+
// config says `"activity": true`, in the Product and in each code repo cloned here. It never starts yad (it
|
|
841
|
+
// fires on every read), writes only allowlisted fields, and always exits 0 with nothing on stdout.
|
|
842
|
+
//
|
|
843
|
+
// A LIST of adapters, not one per target: Cursor needs two events (an edit and a shell command each have their
|
|
844
|
+
// own, and no read event exists that takes no answer — `beforeReadFile` must answer allow/deny), so Cursor
|
|
845
|
+
// sessions show edits and runs only. Each adapter is merged and unmerged on its own event; the two Cursor ones
|
|
846
|
+
// share one command, which `mergeHookSettings` matches per event.
|
|
847
|
+
export const ACTIVITY_WIRING = [
|
|
848
|
+
{ src: 'skills/yad-checks/templates/hooks/yad-activity.mjs', dest: 'hooks/yad-activity.mjs' },
|
|
849
|
+
];
|
|
850
|
+
// In a code repo the script goes in `checks/`, as the agent guard's does (REPO_AGENT_GUARD_DEST).
|
|
851
|
+
export const REPO_ACTIVITY_DEST = 'checks/yad-activity.mjs';
|
|
852
|
+
export const activityAdapters = (dest) => Object.freeze([
|
|
853
|
+
Object.freeze({
|
|
854
|
+
target: '.claude',
|
|
855
|
+
label: 'activity record',
|
|
856
|
+
settings: '.claude/settings.json',
|
|
857
|
+
event: 'PostToolUse',
|
|
858
|
+
nested: true,
|
|
859
|
+
preamble: null,
|
|
860
|
+
// Every tool the live view draws: reads, searches, edits and shell commands.
|
|
861
|
+
matcher: 'Read|Grep|Glob|Edit|Write|MultiEdit|NotebookEdit|Bash',
|
|
862
|
+
projectDirEnv: CLAUDE_PROJECT_DIR_ENV,
|
|
863
|
+
// Quoted and anchored on the project root, and the format said, for the reasons capture's entry gives.
|
|
864
|
+
command: `node "$${CLAUDE_PROJECT_DIR_ENV}/${dest}" --format claude`,
|
|
865
|
+
observe: true,
|
|
866
|
+
wiring: Object.freeze([]),
|
|
867
|
+
legacyCommands: Object.freeze([]),
|
|
868
|
+
}),
|
|
869
|
+
...['afterFileEdit', 'afterShellExecution'].map((event) => Object.freeze({
|
|
870
|
+
target: '.cursor',
|
|
871
|
+
label: 'activity record',
|
|
872
|
+
settings: '.cursor/hooks.json',
|
|
873
|
+
event,
|
|
874
|
+
nested: false,
|
|
875
|
+
preamble: Object.freeze({ version: 1 }),
|
|
876
|
+
matcher: null,
|
|
877
|
+
projectDirEnv: CURSOR_PROJECT_DIR_ENV,
|
|
878
|
+
// Relative and unquoted, for the reason the ledger guard's Cursor entry is (see above).
|
|
879
|
+
command: `node ${dest} --format cursor`,
|
|
880
|
+
observe: true,
|
|
881
|
+
wiring: Object.freeze([]),
|
|
882
|
+
legacyCommands: Object.freeze([]),
|
|
883
|
+
})),
|
|
884
|
+
]);
|
|
885
|
+
export const ACTIVITY_ADAPTERS = activityAdapters(ACTIVITY_WIRING[0].dest);
|
|
886
|
+
|
|
832
887
|
// The Claude adapter's fields under their original names. Kept because they are what the shipped
|
|
833
888
|
// error text and the existing tests name, and renaming a constant buys nothing; new code should read
|
|
834
889
|
// the adapter, since these three describe ONE harness and the engine now supports two.
|