@rt-tools/agent-kit 0.24.0 → 0.27.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/assets/agents/business-analyst.md +51 -50
- package/assets/agents/cargo-writer.md +54 -0
- package/assets/agents/conscience.md +37 -35
- package/assets/agents/project-manager.md +49 -48
- package/assets/agents/prose-editor.md +31 -29
- package/assets/agents/qa-engineer.md +50 -48
- package/assets/agents/rules-reviewer.md +63 -58
- package/assets/agents/skill-curator.md +83 -78
- package/assets/agents/spec-critic.md +34 -29
- package/assets/agents/spec-writer.md +35 -32
- package/assets/agents/strict-teacher.md +39 -37
- package/assets/checks/archive-age.mjs +48 -28
- package/assets/checks/archive-prune.mjs +16 -14
- package/assets/checks/board-epic-link.github.mjs +29 -0
- package/assets/checks/board-epics.github.mjs +286 -49
- package/assets/checks/board-folders.mjs +61 -0
- package/assets/checks/board-gh.github.mjs +35 -26
- package/assets/checks/board-long-work.github.mjs +29 -25
- package/assets/checks/board-paths.github.mjs +21 -16
- package/assets/checks/board-pull-state.github.mjs +168 -0
- package/assets/checks/board-runs.github.mjs +45 -43
- package/assets/checks/board-task-dirs.github.mjs +98 -0
- package/assets/checks/board-titles.github.mjs +19 -17
- package/assets/checks/board.github.mjs +133 -194
- package/assets/checks/check-archive-age.mjs +23 -19
- package/assets/checks/check-board.github.mjs +131 -263
- package/assets/checks/check-descriptions.mjs +30 -29
- package/assets/checks/check-doc-paths.mjs +91 -88
- package/assets/checks/check-dupes.mjs +84 -80
- package/assets/checks/check-file-size.mjs +74 -71
- package/assets/checks/check-glossary.mjs +47 -37
- package/assets/checks/check-hook-scope.mjs +30 -27
- package/assets/checks/check-lib-layers.mjs +22 -21
- package/assets/checks/check-profile-drift.mjs +48 -43
- package/assets/checks/check-prose-style.mjs +138 -39
- package/assets/checks/check-push-gate.mjs +53 -50
- package/assets/checks/check-reuse.mjs +50 -40
- package/assets/checks/check-schema-drift.mjs +104 -84
- package/assets/checks/check-specs.mjs +155 -134
- package/assets/checks/check-state-next.mjs +66 -52
- package/assets/checks/check-states.mjs +32 -30
- package/assets/checks/check-styles.mjs +52 -51
- package/assets/checks/check-turn-map.mjs +54 -46
- package/assets/checks/epic-table.github.mjs +268 -0
- package/assets/checks/lib-boundaries.mjs +32 -30
- package/assets/checks/lib-common.mjs +30 -29
- package/assets/checks/lib-domains.mjs +34 -34
- package/assets/checks/lib-manifests.mjs +17 -15
- package/assets/checks/lib-reexports.mjs +18 -18
- package/assets/checks/rt-kit-checks.config.mjs +187 -142
- package/assets/checks/signals.mjs +43 -39
- package/assets/checks/spec-anchors.mjs +114 -87
- package/assets/checks/spec-common.mjs +128 -84
- package/assets/checks/spec-contract.mjs +30 -30
- package/assets/checks/spec-proposed.mjs +27 -24
- package/assets/checks/spec-scenarios.mjs +51 -28
- package/assets/checks/specs-for.mjs +214 -0
- package/assets/checks/task-new.github.mjs +315 -61
- package/assets/commands/feedback.md +65 -59
- package/assets/commands/next-session.md +64 -57
- package/assets/commands/night.md +115 -0
- package/assets/commands/skill-curator.md +83 -79
- package/assets/defaults/gate-map.sh +108 -97
- package/assets/defaults/project.sh +232 -185
- package/assets/defaults/shell.sh +73 -68
- package/assets/defaults/turn-map.md +47 -44
- package/assets/docs/GLOSSARY.md +142 -65
- package/assets/hooks/browser-device-id.sh +16 -12
- package/assets/hooks/browser-guard-device-id.sh +34 -28
- package/assets/hooks/browser-guard-no-asking.sh +5 -4
- package/assets/hooks/browser-guard-no-listing.sh +12 -11
- package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
- package/assets/hooks/browser-guard-require-select.sh +34 -23
- package/assets/hooks/claim-guard.sh +62 -56
- package/assets/hooks/commit-msg.sh +14 -10
- package/assets/hooks/conscience-guard.sh +91 -45
- package/assets/hooks/constitution-index.sh +16 -16
- package/assets/hooks/deny-tail.sh +28 -26
- package/assets/hooks/dev-server-guard.sh +50 -43
- package/assets/hooks/dispatch.sh +60 -46
- package/assets/hooks/docs-guard.sh +100 -91
- package/assets/hooks/epic-over.sh +49 -0
- package/assets/hooks/epic-stop-guard.sh +108 -0
- package/assets/hooks/exam-guard.sh +105 -93
- package/assets/hooks/git-guard-delivery-conflict.sh +41 -36
- package/assets/hooks/git-guard-delivery-draft.sh +48 -38
- package/assets/hooks/git-guard-delivery-epic.sh +167 -0
- package/assets/hooks/git-guard-delivery-folder.sh +50 -43
- package/assets/hooks/git-guard-delivery-signature.sh +119 -53
- package/assets/hooks/git-guard-delivery.sh +223 -183
- package/assets/hooks/git-guard-main.sh +38 -34
- package/assets/hooks/git-guard-push-tests.sh +99 -87
- package/assets/hooks/glossary-load.sh +23 -22
- package/assets/hooks/grill-gate-ask.sh +12 -11
- package/assets/hooks/grill-gate.sh +94 -87
- package/assets/hooks/guard-note.sh +20 -19
- package/assets/hooks/handoff-entry-guard.sh +45 -25
- package/assets/hooks/handoff-write.sh +74 -67
- package/assets/hooks/hook-input.sh +67 -58
- package/assets/hooks/lint-after-edit.sh +95 -61
- package/assets/hooks/observe.sh +28 -26
- package/assets/hooks/override-write-guard.sh +23 -21
- package/assets/hooks/postmortem-guard.sh +42 -39
- package/assets/hooks/profile-check.sh +22 -20
- package/assets/hooks/proposal-guard.sh +57 -49
- package/assets/hooks/prose-style-guard.sh +49 -24
- package/assets/hooks/qa-dataid-guard.sh +83 -58
- package/assets/hooks/rerun-guard.sh +31 -30
- package/assets/hooks/reuse-first-guard.sh +108 -87
- package/assets/hooks/roles.sh +14 -14
- package/assets/hooks/rule-article.sh +39 -34
- package/assets/hooks/rule-source-guard.sh +47 -42
- package/assets/hooks/skill-gate-layers.sh +63 -57
- package/assets/hooks/skill-gate-rearm.sh +15 -8
- package/assets/hooks/skill-gate.sh +89 -81
- package/assets/hooks/skill-loaded.sh +10 -6
- package/assets/hooks/sql-guard-parse.sh +71 -66
- package/assets/hooks/sql-guard-request.sh +51 -46
- package/assets/hooks/sql-guard-target.sh +60 -51
- package/assets/hooks/sql-guard-write.sh +87 -79
- package/assets/hooks/sql-guard.sh +52 -47
- package/assets/hooks/stand-login-guard.sh +43 -37
- package/assets/hooks/task-context-load.sh +60 -55
- package/assets/hooks/task-flow-context.sh +87 -69
- package/assets/hooks/task-flow-draft-guard.sh +55 -48
- package/assets/hooks/task-flow-guard.sh +67 -64
- package/assets/hooks/turn-entry-load.sh +39 -32
- package/assets/hooks/turn-exit-guard.sh +260 -204
- package/assets/hooks/turn-exit-patterns.sh +63 -0
- package/assets/hooks/utf8.sh +14 -11
- package/assets/hooks/waiting-turn-guard.sh +104 -94
- package/assets/hooks/window-fill-guard.sh +70 -62
- package/assets/hooks/work-start-guard.sh +52 -49
- package/assets/hooks/write-targets.sh +99 -44
- package/assets/laws/autonomous-work.md +29 -27
- package/assets/laws/code-structure.md +31 -30
- package/assets/laws/delivery.md +170 -137
- package/assets/laws/entity-editing.md +52 -50
- package/assets/laws/entity-models.md +14 -13
- package/assets/laws/frontend-application.md +39 -38
- package/assets/laws/lib-imports.md +27 -27
- package/assets/laws/lists.md +31 -29
- package/assets/laws/navigation.md +37 -37
- package/assets/laws/observability.md +41 -40
- package/assets/laws/project-documentation.md +106 -99
- package/assets/laws/reuse-first.md +31 -29
- package/assets/laws/shared-code.md +27 -27
- package/assets/laws/verifiability.md +131 -124
- package/assets/laws/work-conduct.md +250 -244
- package/assets/patterns/admin-lists-screen.md +72 -69
- package/assets/patterns/admin-nav-item.md +51 -46
- package/assets/patterns/angular-patterns-state.md +32 -31
- package/assets/patterns/api-layer-pair.md +33 -31
- package/assets/patterns/autonomous-work-run.md +50 -49
- package/assets/patterns/browser-verification-measure.md +124 -88
- package/assets/patterns/browser-verification-stand.md +169 -157
- package/assets/patterns/component-structure-new.md +51 -42
- package/assets/patterns/dependencies-upgrade.md +55 -39
- package/assets/patterns/doc-style-human.md +55 -37
- package/assets/patterns/doc-style-sweep.md +82 -79
- package/assets/patterns/doc-style-trace.md +87 -81
- package/assets/patterns/doc-style-write.md +130 -122
- package/assets/patterns/entity-aside.md +77 -63
- package/assets/patterns/entity-models-new.md +37 -37
- package/assets/patterns/entity-store.md +33 -33
- package/assets/patterns/git-workflow-commit.azure.md +94 -87
- package/assets/patterns/git-workflow-commit.github.md +160 -142
- package/assets/patterns/git-workflow-commit.gitlab.md +96 -90
- package/assets/patterns/git-workflow-docker.md +165 -147
- package/assets/patterns/git-workflow-freshness.md +45 -45
- package/assets/patterns/git-workflow-merge.md +102 -94
- package/assets/patterns/git-workflow-migration.md +54 -52
- package/assets/patterns/git-workflow-pr-ready.md +57 -56
- package/assets/patterns/git-workflow-pr.azure.md +127 -122
- package/assets/patterns/git-workflow-pr.github.md +186 -177
- package/assets/patterns/git-workflow-pr.gitlab.md +139 -132
- package/assets/patterns/git-workflow-restart.md +35 -31
- package/assets/patterns/git-workflow-secrets.md +80 -73
- package/assets/patterns/git-workflow-stack.md +136 -107
- package/assets/patterns/lib-layers-move.md +62 -53
- package/assets/patterns/lib-layers-new.md +59 -45
- package/assets/patterns/observability-record.md +72 -67
- package/assets/patterns/platform-access-di.md +31 -29
- package/assets/patterns/reuse-first-extend.md +66 -61
- package/assets/patterns/shared-code-new.md +39 -38
- package/assets/patterns/spec-driven-domain.md +161 -151
- package/assets/patterns/spec-driven-rule.md +179 -168
- package/assets/patterns/spec-driven-sweep.md +41 -39
- package/assets/patterns/status-report-table.github.md +48 -36
- package/assets/patterns/styling-bem-component.md +42 -42
- package/assets/patterns/styling-bem-layout.md +39 -34
- package/assets/patterns/styling-bem-sheet.md +59 -58
- package/assets/patterns/task-flow-archive.md +222 -215
- package/assets/patterns/task-flow-close.md +234 -203
- package/assets/patterns/task-flow-handoff.md +154 -145
- package/assets/patterns/task-flow-resume.md +138 -133
- package/assets/patterns/task-flow-start.md +228 -202
- package/assets/patterns/testing-e2e.md +102 -101
- package/assets/patterns/testing-unit.md +77 -70
- package/assets/patterns/ts-procedure.md +32 -29
- package/assets/patterns/turn-entry-map.md +50 -48
- package/assets/pitfalls/agent-kit.md +172 -142
- package/assets/pitfalls/doc-style.md +96 -91
- package/assets/pitfalls/git-workflow.azure.md +49 -46
- package/assets/pitfalls/git-workflow.github.md +270 -234
- package/assets/pitfalls/git-workflow.gitlab.md +49 -45
- package/assets/pitfalls/spec-driven.md +73 -71
- package/assets/pitfalls/styling-bem.md +46 -40
- package/assets/pitfalls/task-flow.md +262 -246
- package/assets/pitfalls/testing.md +99 -92
- package/assets/pitfalls/turn-conduct.md +96 -81
- package/assets/rules/angular-patterns.md +81 -80
- package/assets/rules/api-layer.md +77 -74
- package/assets/rules/autonomous-work.md +87 -74
- package/assets/rules/browser-verification.md +223 -214
- package/assets/rules/component-structure.md +72 -69
- package/assets/rules/dependencies.md +74 -67
- package/assets/rules/deploy-flow.azure.md +118 -108
- package/assets/rules/deploy-flow.github.md +145 -135
- package/assets/rules/deploy-flow.gitlab.md +120 -110
- package/assets/rules/doc-style.md +201 -173
- package/assets/rules/entity-conventions.needs-admin.md +81 -79
- package/assets/rules/entity-models.md +73 -70
- package/assets/rules/git-workflow.azure.md +224 -228
- package/assets/rules/git-workflow.github.md +268 -239
- package/assets/rules/git-workflow.gitlab.md +218 -217
- package/assets/rules/lib-layers.md +85 -86
- package/assets/rules/lists.md +101 -97
- package/assets/rules/navigation.md +78 -78
- package/assets/rules/observability.needs-app.md +165 -153
- package/assets/rules/platform-access.md +76 -75
- package/assets/rules/reuse-first.md +153 -143
- package/assets/rules/shared-code.md +82 -79
- package/assets/rules/spec-driven.md +279 -260
- package/assets/rules/status-report.md +62 -58
- package/assets/rules/styling-bem.md +81 -77
- package/assets/rules/task-flow.md +303 -270
- package/assets/rules/testing.md +224 -209
- package/assets/rules/turn-conduct.md +262 -258
- package/assets/rules/turn-entry.md +92 -87
- package/assets/rules/typescript-conventions.md +94 -88
- package/assets/samples/specs/_template/spec.md +47 -47
- package/assets/samples/tasks/_template/grill.md +20 -20
- package/assets/samples/tasks/_template/plan.md +32 -30
- package/assets/samples/tasks/_template/progress.md +16 -16
- package/assets/skills/agent-kit-extend.md +129 -113
- package/assets/skills/agent-kit.md +259 -233
- package/assets/skills/write-a-skill.md +76 -71
- package/assets/templates/findings.md +19 -19
- package/assets/templates/gate-map.sh +16 -14
- package/assets/templates/implementation.md +28 -27
- package/assets/templates/pattern.md +17 -17
- package/assets/templates/pitfalls.md +6 -6
- package/assets/templates/postmortem.md +24 -23
- package/assets/templates/project.sh +24 -24
- package/assets/templates/proposal.md +62 -60
- package/assets/templates/rule.md +38 -38
- package/assets/workflows/feature.js +46 -46
- package/assets/workflows/plan.js +54 -54
- package/bin/agent-kit.d.ts.map +1 -1
- package/bin/agent-kit.js +8 -1
- package/bin/agent-kit.js.map +1 -1
- package/lib/cargo-prose.d.ts +41 -0
- package/lib/cargo-prose.d.ts.map +1 -0
- package/lib/cargo-prose.js +88 -0
- package/lib/cargo-prose.js.map +1 -0
- package/lib/cargo.d.ts +12 -1
- package/lib/cargo.d.ts.map +1 -1
- package/lib/cargo.js +8 -2
- package/lib/cargo.js.map +1 -1
- package/lib/catalog.d.ts +2 -0
- package/lib/catalog.d.ts.map +1 -1
- package/lib/catalog.js +4 -3
- package/lib/catalog.js.map +1 -1
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +5 -2
- package/lib/commands.js.map +1 -1
- package/lib/companion.js +3 -2
- package/lib/companion.js.map +1 -1
- package/lib/enroll.d.ts +7 -1
- package/lib/enroll.d.ts.map +1 -1
- package/lib/enroll.js +12 -3
- package/lib/enroll.js.map +1 -1
- package/lib/fate.d.ts +29 -0
- package/lib/fate.d.ts.map +1 -0
- package/lib/fate.js +147 -0
- package/lib/fate.js.map +1 -0
- package/lib/override-marks.d.ts +7 -0
- package/lib/override-marks.d.ts.map +1 -1
- package/lib/override-marks.js +14 -0
- package/lib/override-marks.js.map +1 -1
- package/lib/plan.d.ts +11 -0
- package/lib/plan.d.ts.map +1 -1
- package/lib/plan.js +10 -1
- package/lib/plan.js.map +1 -1
- package/lib/ship.d.ts +29 -9
- package/lib/ship.d.ts.map +1 -1
- package/lib/ship.js +44 -2
- package/lib/ship.js.map +1 -1
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.fixture.d.ts +8 -1
- package/lib/shipment.fixture.d.ts.map +1 -1
- package/lib/shipment.fixture.js +9 -0
- package/lib/shipment.fixture.js.map +1 -1
- package/lib/shipment.js +38 -5
- package/lib/shipment.js.map +1 -1
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +45 -11
- package/lib/sync.js.map +1 -1
- package/package.json +1 -1
- package/rt-tools-agent-kit-0.27.0.tgz +0 -0
- package/rt-tools-agent-kit-0.24.0.tgz +0 -0
|
@@ -2,56 +2,58 @@
|
|
|
2
2
|
name: spec-driven-sweep
|
|
3
3
|
kind: pattern
|
|
4
4
|
rule: spec-driven
|
|
5
|
-
description:
|
|
5
|
+
description: Pattern of rule spec-driven. Load for a full sweep of a domain's binding — five passes, three of them done by the machine, reading through the hits and the share of false ones per layer. Not for creating a domain spec — that is pattern spec-driven-domain.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# A full review of a domain's binding
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Pattern of the rule `spec-driven`. What must be true — the project-documentation law.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## When to use
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- A domain's binding is reviewed whole: every statement against the code it points to.
|
|
15
|
+
- The tree's texts are checked against the tree as a task, not along the way of other work.
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## There are five passes, and their order is one
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
The first three the machine does over the whole domain at once, the last two are reading. The
|
|
20
|
+
order is not rearranged: reading goes over the lines the machine has already selected, otherwise
|
|
21
|
+
the whole domain gets read.
|
|
21
22
|
|
|
22
|
-
1.
|
|
23
|
-
|
|
24
|
-
2.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
3.
|
|
28
|
-
|
|
29
|
-
4.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
1. **A dead address.** The named file is not in the tree, or the symbol is nowhere. Gives zero on
|
|
24
|
+
a domain already reviewed, and a whole batch on one that code recently moved out of.
|
|
25
|
+
2. **An anchor living only in an explanation.** The symbol occurs in the tree only in comments.
|
|
26
|
+
The binding check counts a comment the same as code, so it is green for such an anchor, and
|
|
27
|
+
there is no place carrying it out behind it.
|
|
28
|
+
3. **The symbol is not declared in the named file.** The file imports and calls it, and the
|
|
29
|
+
declaration lies elsewhere. The most fruitful pass and the noisiest.
|
|
30
|
+
4. **The promise against the code.** The code at the address is read: does it do what the rule
|
|
31
|
+
states. The machine cannot do this pass at all — the divergence here is usually in a condition
|
|
32
|
+
and in the order of steps.
|
|
33
|
+
5. **A number, a refusal code and a glossary key — by name.** Every number from the text is looked
|
|
34
|
+
for in the tree, every named refusal code in the place where it is thrown, every glossary key
|
|
35
|
+
in all locales. A divergence here looks like a typo and lives for years.
|
|
34
36
|
|
|
35
|
-
##
|
|
37
|
+
## A hit is a queue for reading, not a list of defects
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
A pass yields lines; a finding is one confirmed by reading. The difference is not verbal: a third
|
|
40
|
+
of the third pass's lines are legitimate in any domain, and written down as findings they turn
|
|
41
|
+
the review into editing correct code. Both numbers go into the progress — how many lines the pass
|
|
42
|
+
gave and how many of them turned out to be divergences.
|
|
41
43
|
|
|
42
|
-
##
|
|
44
|
+
## The share of false hits depends on the layer
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
Where the rule lives in a procedure, the place carrying it out is one and public: a hit of the
|
|
47
|
+
third pass is more often a divergence — six lines out of fourteen. Where the rule lives in a
|
|
48
|
+
component or a service, the place carrying it out is legitimately a private field or a private
|
|
49
|
+
method: out of thirty-six lines, not one turned out to be a divergence. So the number of findings
|
|
50
|
+
of the previous domain does not carry over to the next — only the order of passes carries over.
|
|
49
51
|
|
|
50
|
-
##
|
|
52
|
+
## Common misses
|
|
51
53
|
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
|
|
54
|
+
- **A pass's yield promised as fact.** "The pass will give so many" is an estimate, and on a
|
|
55
|
+
different layer it misses entirely. The grill names the passes, not the number of findings.
|
|
56
|
+
- **A pass that gave zero was not written down.** The next session runs it again over the same
|
|
57
|
+
domain. Zero is a result like any other, and it is written along with the rest.
|
|
58
|
+
- **Counting sides was taken for a review.** A green binding check says every statement has a
|
|
59
|
+
line, and says nothing about where the line leads.
|
|
@@ -2,79 +2,91 @@
|
|
|
2
2
|
name: status-report-table
|
|
3
3
|
kind: pattern
|
|
4
4
|
rule: status-report
|
|
5
|
-
description:
|
|
5
|
+
description: Pattern of rule status-report. Load when answering the owner where the work stands. Ready-made calls for every cell: the branch and its commits, the PR state, the pipeline run checked against the head, the task on the board, the task order from the epic plan. A filled-in sample table is attached.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# What the state is asked with and how it lands in the table
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Pattern of the rule `status-report`. What must be true — the work-conduct law.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## When to use
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
14
|
+
- The owner asked where the work stands: "what is the status", "which epic", "what are you doing
|
|
15
|
+
now".
|
|
16
|
+
- The turn ends with an account of what was done, and it names the state of a PR or a run.
|
|
17
|
+
- The work runs under an epic, and the reply lists all its tasks.
|
|
17
18
|
|
|
18
|
-
##
|
|
19
|
+
## Calls
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
The whole table at once — the command of the checks layer: it takes the order of the tasks from the
|
|
22
|
+
epic plan, the state of each of them from the hosting, and prints the paragraph and the table ready
|
|
23
|
+
to be carried to the owner. The tree names the call in the companion of the rule.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
<the command of the tree> [<the number of the epic>]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Everything below is what the command is assembled from: it is asked by hand where the answer is not
|
|
30
|
+
about an epic — one task, one branch, one run.
|
|
31
|
+
|
|
32
|
+
The branch, its commits beyond main, what is uncommitted and the tip:
|
|
21
33
|
|
|
22
34
|
```bash
|
|
23
35
|
git branch --show-current
|
|
24
|
-
git log --oneline
|
|
36
|
+
git log --oneline <main>..HEAD
|
|
25
37
|
git status --short
|
|
26
38
|
git rev-parse --short HEAD
|
|
27
39
|
```
|
|
28
40
|
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
The order of the epic's tasks is taken from its plan, not from the board: it is assigned there,
|
|
42
|
+
and the task numbers on the board do not run in sequence.
|
|
31
43
|
|
|
32
44
|
```bash
|
|
33
|
-
sed -n '/## Порядок задач/,/^## /p'
|
|
45
|
+
sed -n '/## Порядок задач/,/^## /p' <epic plan>
|
|
34
46
|
```
|
|
35
47
|
|
|
36
|
-
|
|
48
|
+
The state of the PR — whether it is a draft, whether it merges with main, how many files:
|
|
37
49
|
|
|
38
50
|
```bash
|
|
39
|
-
gh api repos/:owner/:repo/pulls
|
|
51
|
+
gh api repos/:owner/:repo/pulls/<number> \
|
|
40
52
|
--jq '{n:.number,draft:.draft,state:.state,mergeable:.mergeable,changed:.changed_files}'
|
|
41
53
|
```
|
|
42
54
|
|
|
43
|
-
|
|
55
|
+
The pipeline run on the branch and the breakdown of one run:
|
|
44
56
|
|
|
45
57
|
```bash
|
|
46
|
-
gh run list --branch
|
|
47
|
-
gh run view
|
|
58
|
+
gh run list --branch <branch> --limit 5
|
|
59
|
+
gh run view <id>
|
|
48
60
|
```
|
|
49
61
|
|
|
50
|
-
|
|
62
|
+
The task on the board — title, state, labels:
|
|
51
63
|
|
|
52
64
|
```bash
|
|
53
|
-
gh api repos/:owner/:repo/issues
|
|
65
|
+
gh api repos/:owner/:repo/issues/<number> --jq '{t:.title,s:.state,labels:[.labels[].name]}'
|
|
54
66
|
```
|
|
55
67
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
What the host's executable is called and where the epic plans lie is said by the rule's companion.
|
|
69
|
+
The command name in the shell is sometimes taken by someone else's alias, and then the call goes
|
|
70
|
+
into an interactive sign-in instead of an answer.
|
|
59
71
|
|
|
60
|
-
##
|
|
72
|
+
## Common misses
|
|
61
73
|
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
- **The task on the board is read by a request, not by the view subcommand.** The subcommand
|
|
75
|
+
drags in boards of the old kind, the host answers with a refusal about them, and the call turns
|
|
76
|
+
red whole, showing nothing. A direct request is taken.
|
|
65
77
|
|
|
66
|
-
-
|
|
67
|
-
|
|
78
|
+
- **The run is older than the tip.** The run list shows the last run of the branch, not the run of
|
|
79
|
+
the current commit. It is checked against the tip before the number goes into the reply.
|
|
68
80
|
|
|
69
|
-
-
|
|
70
|
-
|
|
81
|
+
- **The task folder is from the template.** A copied but unfilled grill and plan keep the
|
|
82
|
+
template's angle brackets. That is "created, not started", and the "State" cell says so.
|
|
71
83
|
|
|
72
|
-
-
|
|
73
|
-
|
|
84
|
+
- **The PR is green but a draft.** The run succeeded, while the merge is locked by the host; the
|
|
85
|
+
"Remaining" cell holds lifting the draft or a wait named aloud.
|
|
74
86
|
|
|
75
|
-
##
|
|
87
|
+
## Sample
|
|
76
88
|
|
|
77
|
-
|
|
89
|
+
The epic above the table — as a paragraph, not as a row:
|
|
78
90
|
|
|
79
91
|
> **Эпик «<название>» (<ключ>)** — <зачем он, одной фразой>. Задач <сколько>, идёт <номер по
|
|
80
92
|
> порядку>.
|
|
@@ -85,4 +97,4 @@ gh api repos/:owner/:repo/issues/<номер> --jq '{t:.title,s:.state,labels:[.
|
|
|
85
97
|
| 2 | <название задачи из замысла> | — | <одной фразой> | не заведена |
|
|
86
98
|
| — | <заведённая вне эпика> | <ключ> | <одной фразой> | заведена, папка — пустой шаблон, ветки нет |
|
|
87
99
|
|
|
88
|
-
|
|
100
|
+
Under the table — a line about what we wait for from the owner, and the call that lifts it.
|
|
@@ -2,87 +2,87 @@
|
|
|
2
2
|
name: styling-bem-component
|
|
3
3
|
kind: pattern
|
|
4
4
|
rule: styling-bem
|
|
5
|
-
description:
|
|
5
|
+
description: Pattern of rule styling-bem. Load when editing the styles of a kit component — the ready-made :host, modifiers, styling tokens, the styling language of the public site, overriding kit defaults. Not for screen layout — that is pattern styling-bem-layout.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Component styles
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Pattern of the rule `styling-bem`. What must be true — the law
|
|
11
11
|
`docs/constitution/frontend-application.md`.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## When to use
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
15
|
+
- A kit component is edited — it lives in the package `@rt-tools/ui-kit-v2`, not in this tree.
|
|
16
|
+
- The styling of the public site is edited.
|
|
17
|
+
- A kit default has to be overridden in a component of your own.
|
|
18
18
|
|
|
19
|
-
## `:host` —
|
|
19
|
+
## `:host` — the block itself
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
The host carries the block class, the layout sits on `:host`, the elements are nested inside:
|
|
22
22
|
|
|
23
23
|
```scss
|
|
24
24
|
:host {
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
.<prefix > -tag {
|
|
28
28
|
display: inline-flex;
|
|
29
|
-
gap: var(
|
|
29
|
+
gap: var(--<prefix>-space-1);
|
|
30
30
|
align-items: center;
|
|
31
31
|
|
|
32
32
|
&--shape--pill {
|
|
33
|
-
border-radius: var(
|
|
33
|
+
border-radius: var(--<prefix>-radius-full);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
(`[class
|
|
39
|
+
Indent — four spaces. A modifier — `&--<name>` or a class binding on the host
|
|
40
|
+
(`[class.<prefix>-component-name--active]="isActive()"`).
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
A screen outside the kit has no such section: `display: flex` with `gap` and `padding` on
|
|
43
|
+
`:host` is layout, and it lives in the application's shared layer.
|
|
44
44
|
|
|
45
|
-
##
|
|
45
|
+
## Values — only as tokens
|
|
46
46
|
|
|
47
47
|
```scss
|
|
48
48
|
✗ color: #fff;
|
|
49
49
|
✗ box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
|
|
50
|
-
✓ color: var(
|
|
51
|
-
✓ box-shadow: var(
|
|
50
|
+
✓ color: var(--<prefix>-color-surface);
|
|
51
|
+
✓ box-shadow: var(--<prefix>-shadow-sm);
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
(`$primaryColor`)
|
|
54
|
+
A composite value is taken as a ready-made token whole, not assembled from parts. SCSS variables
|
|
55
|
+
(`$primaryColor`) are not used for styling values at all.
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## The styling language of the public site
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Tropical premium, photo first:
|
|
60
60
|
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
(
|
|
64
|
-
-
|
|
65
|
-
-
|
|
61
|
+
- a light warm palette — sand, terracotta, palm green, only through `--<prefix>-color-*`;
|
|
62
|
+
- an accent serif in headings (`--<prefix>-font-serif`), a humanist sans in the text
|
|
63
|
+
(`--<prefix>-font-sans`);
|
|
64
|
+
- large full-screen photos, generous spacing, restrained animations;
|
|
65
|
+
- dark overlays over photos — by variables with transparency.
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## Overriding a kit default
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
Styles of a component with `ViewEncapsulation.None` weigh the same as the kit defaults:
|
|
70
|
+
`.<prefix>-block__item` and `.<prefix>-kit-item` have one class each, and the outcome is decided
|
|
71
|
+
by the order of inclusion. The override is written as a descendant of the block:
|
|
72
72
|
|
|
73
73
|
```scss
|
|
74
74
|
& &__item {
|
|
75
|
-
color: var(
|
|
75
|
+
color: var(--<prefix>-color-text-muted);
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
##
|
|
79
|
+
## Common misses
|
|
80
80
|
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
|
|
81
|
+
- A stylelint switch-off comment: selectors are joined by nesting, not by disabling the rule.
|
|
82
|
+
- `!important`: forbidden, and an inline `width: 100%` on the panel box cannot be overridden
|
|
83
|
+
with it.
|
|
84
|
+
- New declarations while moving styles: what exists is moved, new appears only when the task is
|
|
85
|
+
a feature.
|
|
86
|
+
- A linter remark that lay in the file before is left alone: all are fixed, new and old alike.
|
|
87
|
+
- A `font-family: inherit` of your own in a component: inheritance is switched on globally in
|
|
88
|
+
the `styles.scss` of both applications.
|
|
@@ -2,40 +2,41 @@
|
|
|
2
2
|
name: styling-bem-layout
|
|
3
3
|
kind: pattern
|
|
4
4
|
rule: styling-bem
|
|
5
|
-
description:
|
|
5
|
+
description: Pattern of rule styling-bem. Load when assembling a section screen, a form, a panel or a dialog. Blocks of the shared layer, markup through rtBlock and rtElem, your own element in a foreign subtree, the sign that an edit goes to the wrong place. Kit component styles — pattern styling-bem-component.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# A screen on the shared layout layer
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Pattern of the rule `styling-bem`. What must be true — the law
|
|
11
11
|
`docs/constitution/frontend-application.md`.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## When to use
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
15
|
+
- A section screen, a form, the content of a panel or of a modal window is being assembled.
|
|
16
|
+
- Layout appears in the styles file of a screen.
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## The styles file of a screen is empty by default
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
The layout is declared once in the application's shared layer (`apps/<app>/src/styles/`), and
|
|
21
|
+
the screen only applies it. The admin has four blocks, the site has one:
|
|
22
22
|
|
|
23
|
-
|
|
|
23
|
+
| Block | What it lays out |
|
|
24
24
|
| --------------------- | --------------------------------------------------------------- |
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
25
|
+
| `<prefix>-page` | a section screen: title, toolbar, scrolling, table, pagination |
|
|
26
|
+
| `<prefix>-form` | a form with card sections and rows of fields |
|
|
27
|
+
| `<prefix>-panel` | the content of the edit panel |
|
|
28
|
+
| `<prefix>-window` | the content of a modal window |
|
|
29
|
+
| `<prefix>-site-page` | the site's content column: section title and the intro paragraph |
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
The block goes on the host, the elements get their classes from `rtBlock` at the root of the
|
|
32
|
+
template:
|
|
32
33
|
|
|
33
34
|
```typescript
|
|
34
|
-
host: { class: '
|
|
35
|
+
host: { class: '<prefix>-page' },
|
|
35
36
|
```
|
|
36
37
|
|
|
37
38
|
```html
|
|
38
|
-
<ng-container rtBlock="
|
|
39
|
+
<ng-container rtBlock="<prefix>-page">
|
|
39
40
|
<header rtElem="header">
|
|
40
41
|
<div rtElem="header-main">
|
|
41
42
|
<h1 rtElem="title">{{ 'bookingsTitle' | transloco }}</h1>
|
|
@@ -45,29 +46,33 @@ host: { class: '<префикс>-page' },
|
|
|
45
46
|
</ng-container>
|
|
46
47
|
```
|
|
47
48
|
|
|
48
|
-
`rtBlock`
|
|
49
|
-
|
|
49
|
+
`rtBlock` on `<ng-container>` sets no class — the node is a comment. A second carrier of the
|
|
50
|
+
block class is not needed, nor a `<section>` wrapper of your own.
|
|
50
51
|
|
|
51
|
-
##
|
|
52
|
+
## Your own element in a foreign subtree
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
Both directives on one element; the block class is not set then, only the element class:
|
|
54
55
|
|
|
55
56
|
```html
|
|
56
|
-
<div rtBlock="
|
|
57
|
+
<div rtBlock="<prefix>-bookings-page" rtElem="confirm"></div>
|
|
57
58
|
```
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
The class comes out as `<prefix>-bookings-page__confirm`, and the descendants inside count from
|
|
61
|
+
the same block.
|
|
60
62
|
|
|
61
|
-
##
|
|
63
|
+
## What stays in the screen file
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
Only what belongs to this one screen and does not ask for the shared layer — the calendar grid,
|
|
66
|
+
the map on the property page, the conversation feed. Next to it, write why it is not shared.
|
|
65
67
|
|
|
66
|
-
##
|
|
68
|
+
## Common misses
|
|
67
69
|
|
|
68
|
-
- `display: flex`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
- `rtElem`
|
|
72
|
-
|
|
73
|
-
-
|
|
70
|
+
- `display: flex` with `gap` and `padding` on `:host` in the screen file — that is layout.
|
|
71
|
+
Screens that look alike drift apart from it: the page title was declared in eleven components
|
|
72
|
+
in three different font sizes.
|
|
73
|
+
- `rtElem` without an ancestor with `rtBlock`: rendering fails at runtime, the build and the
|
|
74
|
+
lint are silent.
|
|
75
|
+
- A class whose rule was removed while `rtElem` stayed in the template: caught by
|
|
76
|
+
`npm run check:styles`.
|
|
77
|
+
- An element of a foreign block in a foreign subtree: the block name arrives by injection, and
|
|
78
|
+
there is nothing to mix it in with.
|