rhachet-roles-bhuild 0.13.0 → 0.13.2
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/dist/contract/cli/init.behavior.js +6 -1
- package/dist/contract/cli/init.behavior.js.map +1 -1
- package/dist/domain.operations/behavior/init/templates/3.1.research.playloop._.v1.stone +64 -0
- package/dist/domain.operations/behavior/init/templates/3.2.enframe.playloops.v1.stone +65 -0
- package/dist/domain.operations/behavior/init/templates/3.3.blueprint.v1.guard.heavy +4 -0
- package/dist/domain.operations/behavior/init/templates/3.3.blueprint.v1.guard.light +4 -0
- package/dist/domain.operations/behavior/init/templates/3.3.blueprint.v1.stone +4 -0
- package/dist/domain.operations/behavior/init/templates/5.1.execution.phase0_to_phaseN.v1.guard +6 -0
- package/dist/domain.operations/behavior/name/expandBehaviorName.d.ts +8 -0
- package/dist/domain.operations/behavior/name/expandBehaviorName.js +25 -0
- package/dist/domain.operations/behavior/name/expandBehaviorName.js.map +1 -0
- package/package.json +5 -5
|
@@ -13,6 +13,7 @@ const zod_1 = require("zod");
|
|
|
13
13
|
const bind_1 = require("../../domain.operations/behavior/bind");
|
|
14
14
|
const findBehaviorByExactName_1 = require("../../domain.operations/behavior/findBehaviorByExactName");
|
|
15
15
|
const init_1 = require("../../domain.operations/behavior/init");
|
|
16
|
+
const expandBehaviorName_1 = require("../../domain.operations/behavior/name/expandBehaviorName");
|
|
16
17
|
const computeFooterOutput_1 = require("../../domain.operations/behavior/render/computeFooterOutput");
|
|
17
18
|
const cli_1 = require("../../infra/cli");
|
|
18
19
|
const OpenerUnavailableError_1 = require("../../infra/shell/OpenerUnavailableError");
|
|
@@ -40,7 +41,6 @@ const schemaOfArgs = zod_1.z.object({
|
|
|
40
41
|
// ────────────────────────────────────────────────────────────────────
|
|
41
42
|
const initBehavior = async () => {
|
|
42
43
|
const { named } = (0, cli_1.getCliArgs)({ schema: schemaOfArgs });
|
|
43
|
-
const behaviorName = named.name;
|
|
44
44
|
const context = { cwd: process.cwd() };
|
|
45
45
|
const targetDirRaw = named.dir ?? '.';
|
|
46
46
|
// validate --open has a value if provided
|
|
@@ -56,6 +56,11 @@ const initBehavior = async () => {
|
|
|
56
56
|
}
|
|
57
57
|
// get current branch
|
|
58
58
|
const currentBranch = (0, bind_1.getCurrentBranch)({}, context);
|
|
59
|
+
// expand @branch token to behavior name
|
|
60
|
+
const behaviorName = (0, expandBehaviorName_1.expandBehaviorName)({
|
|
61
|
+
name: named.name,
|
|
62
|
+
branch: currentBranch,
|
|
63
|
+
});
|
|
59
64
|
// trim .behavior suffix from target dir if present
|
|
60
65
|
const targetDir = targetDirRaw.replace(/\/?\.behavior\/?$/, '');
|
|
61
66
|
// check for extant behavior with same name (different date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.behavior.js","sourceRoot":"","sources":["../../../src/contract/cli/init.behavior.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA+C;AAC/C,0DAA8D;AAC9D,6BAAwB;AAExB,+DAI8C;AAC9C,qGAAkG;AAClG,+DAG8C;AAC9C,oGAAiG;AACjG,wCAA4C;AAC5C,oFAAiF;AACjF,4EAAyE;AAEzE,uEAAuE;AACvE,SAAS;AACT,uEAAuE;AAEvE,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,sBAAsB;QACtB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC5C,+CAA+C;QAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAA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VIOR_DIR_REL/0.wish.md
|
|
3
|
+
- this vision $BEHAVIOR_DIR_REL/1.vision.md (if declared)
|
|
4
|
+
- this criteria $BEHAVIOR_DIR_REL/2.1.criteria.blackbox.md (if declared)
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
first, identify the project type and what experience needs to be reproduced
|
|
9
|
+
|
|
10
|
+
| project type | fundamental experience to reproduce |
|
|
11
|
+
|----------------|-------------------------------------|
|
|
12
|
+
| frontend/web | browser dom, page navigation, user interactions |
|
|
13
|
+
| frontend/native| device screens, gestures, platform behaviors |
|
|
14
|
+
| frontend/expo | cross-platform screens, expo-specific apis |
|
|
15
|
+
| cli | terminal output, interactive prompts, command sequences |
|
|
16
|
+
| backend/api | request/response chains, state transitions, side effects |
|
|
17
|
+
| package | api surface, return values, error conditions |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
then, check what the repo already has
|
|
22
|
+
|
|
23
|
+
- does the repo have acceptance test patterns?
|
|
24
|
+
- are there tools already configured for this project type?
|
|
25
|
+
- frontend/web: browser automation, screenshot capture, dom queries?
|
|
26
|
+
- frontend/native: device emulators, gesture simulation, native snapshots?
|
|
27
|
+
- frontend/expo: expo test tools, cross-platform runners?
|
|
28
|
+
- cli: output capture, stdin simulation, terminal emulation?
|
|
29
|
+
- backend: http client, database seed data, deployment helpers?
|
|
30
|
+
- package: fixture management, assertion helpers?
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
then, identify gaps and research solutions
|
|
35
|
+
|
|
36
|
+
for each gap, use websearch to find best options
|
|
37
|
+
- what tools enable reproduction of the specific experience?
|
|
38
|
+
- what do other projects of this type use?
|
|
39
|
+
- what integrates well with jest/vitest?
|
|
40
|
+
|
|
41
|
+
for each tool found, demonstrate how it reproduces the experience
|
|
42
|
+
- how does it capture the user's entry point?
|
|
43
|
+
- how does it simulate user actions?
|
|
44
|
+
- how does it assert on what the user sees/gets?
|
|
45
|
+
|
|
46
|
+
note: assume test runner (jest/vitest) is already chosen. focus on what additional tools enable experience reproduction.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
use web search to discover and research
|
|
51
|
+
- cite every claim
|
|
52
|
+
- number each citation
|
|
53
|
+
- clone exact quotes from each citation
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
remember
|
|
58
|
+
- this is to research what enables rapid playtest feedback
|
|
59
|
+
- focus on the fundamental experience that needs reproduction
|
|
60
|
+
- the goal is to inform the enframe.playloops stone
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
emit into $BEHAVIOR_DIR_REL/3.1.research.playloop._.v1.i1.md
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
enframe the playloop that enables rapid playtest feedback for
|
|
2
|
+
- this wish $BEHAVIOR_DIR_REL/0.wish.md
|
|
3
|
+
- this vision $BEHAVIOR_DIR_REL/1.vision.md (if declared)
|
|
4
|
+
- this criteria $BEHAVIOR_DIR_REL/2.1.criteria.blackbox.md (if declared)
|
|
5
|
+
|
|
6
|
+
given the research declared here (if any)
|
|
7
|
+
- $BEHAVIOR_DIR_REL/3.1.research.playloop._.v1.i1.md (if declared)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
for each experience declared in the vision, frame how it will be reproduced in the playloop
|
|
12
|
+
|
|
13
|
+
| experience | entry point | user actions | expected outcome | how to assert |
|
|
14
|
+
|------------|-------------|--------------|------------------|---------------|
|
|
15
|
+
| ... | ... | ... | ... | ... |
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
prove the journey is feasible end-to-end
|
|
20
|
+
|
|
21
|
+
for each experience, demonstrate that it can be reproduced in this codebase
|
|
22
|
+
- what tools/utilities are available?
|
|
23
|
+
- what setup is required?
|
|
24
|
+
- show a concrete code sketch of the playloop
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
call out gaps explicitly
|
|
29
|
+
|
|
30
|
+
if any experience cannot be reproduced end-to-end, declare
|
|
31
|
+
- what is blocked?
|
|
32
|
+
- what is required to unblock?
|
|
33
|
+
- is this a blocker or can it be deferred?
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
declare timelines
|
|
38
|
+
|
|
39
|
+
| phase | what happens |
|
|
40
|
+
|-------|--------------|
|
|
41
|
+
| build | builder runs playloop to feel the experience, expose friction, catch defects |
|
|
42
|
+
| ship | playloop proves the wish is fulfilled before release |
|
|
43
|
+
| maintain | playloop serves as permanent spec, catches regressions on future changes |
|
|
44
|
+
|
|
45
|
+
the playloop enables rapid feedback because
|
|
46
|
+
- it reproduces the real user journey in seconds
|
|
47
|
+
- friction felt in the playloop will be felt by the user
|
|
48
|
+
- defects caught in the playloop are caught before the user sees them
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
scope
|
|
53
|
+
- happy paths: the expected user journey
|
|
54
|
+
- guard paths: paths that keep users on track, self heal, or provide idempotency
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
remember
|
|
59
|
+
- playloop enables rapid reproduction feedback to expose friction and defects
|
|
60
|
+
- playloop serves as permanent spec against which future changes are measured
|
|
61
|
+
- if it feels wrong in the playloop, it will feel wrong for the user
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
emit into $BEHAVIOR_DIR_REL/3.2.enframe.playloops.v1.i1.md
|
|
@@ -163,5 +163,9 @@ reviews:
|
|
|
163
163
|
emit your findings to .behavior/$thisBehavior/reviews/{stone}.role-standards-coverage.md
|
|
164
164
|
then fix all gaps before you continue.
|
|
165
165
|
|
|
166
|
+
peer:
|
|
167
|
+
- bash -c ". .agent/repo=.this/role=any/skills/use.apikeys.sh && npx rhachet run --repo bhrain --skill review --rules '.agent/repo=ehmpathy/role=mechanic/briefs/practices/code.prod/pitofsuccess.errors/rule.*.md' --diffs since-main --paths-with '$route/3.3.blueprint.*.md' --join intersect --output '$route/.reviews/$stone.peer-review.failhides.md' --mode hard 2>&1"
|
|
168
|
+
|
|
166
169
|
judges:
|
|
170
|
+
- npx rhachet run --repo bhrain --skill route.stone.judge --mechanism reviewed? --stone $stone --route $route --allow-blockers 0 --allow-nitpicks 3
|
|
167
171
|
- npx rhachet run --repo bhrain --skill route.stone.judge --mechanism approved? --stone $stone --route $route
|
|
@@ -111,5 +111,9 @@ reviews:
|
|
|
111
111
|
emit your findings to .behavior/$thisBehavior/reviews/{stone}.role-standards-coverage.md
|
|
112
112
|
then fix all gaps before you continue.
|
|
113
113
|
|
|
114
|
+
peer:
|
|
115
|
+
- bash -c ". .agent/repo=.this/role=any/skills/use.apikeys.sh && npx rhachet run --repo bhrain --skill review --rules '.agent/repo=ehmpathy/role=mechanic/briefs/practices/code.prod/pitofsuccess.errors/rule.*.md' --diffs since-main --paths-with '$route/3.3.blueprint.*.md' --join intersect --output '$route/.reviews/$stone.peer-review.failhides.md' --mode hard 2>&1"
|
|
116
|
+
|
|
114
117
|
judges:
|
|
118
|
+
- npx rhachet run --repo bhrain --skill route.stone.judge --mechanism reviewed? --stone $stone --route $route --allow-blockers 0 --allow-nitpicks 3
|
|
115
119
|
- npx rhachet run --repo bhrain --skill route.stone.judge --mechanism approved? --stone $stone --route $route
|
|
@@ -4,6 +4,9 @@ propose a blueprint for how we can implement the wish described
|
|
|
4
4
|
with the domain distillation declared
|
|
5
5
|
- in $BEHAVIOR_DIR_REL/3.2.distill.domain._.v1.i1.md (if declared)
|
|
6
6
|
|
|
7
|
+
with the playloop declared
|
|
8
|
+
- in $BEHAVIOR_DIR_REL/3.2.enframe.playloops.v1.i1.md (if declared)
|
|
9
|
+
|
|
7
10
|
follow the patterns already present in this repo
|
|
8
11
|
|
|
9
12
|
---
|
|
@@ -62,6 +65,7 @@ reference the below for full context
|
|
|
62
65
|
- $BEHAVIOR_DIR_REL/3.1.research.patterns._.oss.levers.v1.i1.md (if declared)
|
|
63
66
|
- $BEHAVIOR_DIR_REL/3.1.research.templates._.v1.i1.md (if declared)
|
|
64
67
|
- $BEHAVIOR_DIR_REL/3.2.distill.domain._.v1.i1.md (if declared)
|
|
68
|
+
- $BEHAVIOR_DIR_REL/3.2.enframe.playloops.v1.i1.md (if declared)
|
|
65
69
|
|
|
66
70
|
---
|
|
67
71
|
|
package/dist/domain.operations/behavior/init/templates/5.1.execution.phase0_to_phaseN.v1.guard
CHANGED
|
@@ -82,3 +82,9 @@ reviews:
|
|
|
82
82
|
|
|
83
83
|
emit your findings to .behavior/$thisBehavior/reviews/{stone}.role-standards-coverage.md
|
|
84
84
|
then fix all gaps before you continue.
|
|
85
|
+
|
|
86
|
+
peer:
|
|
87
|
+
- bash -c ". .agent/repo=.this/role=any/skills/use.apikeys.sh && npx rhachet run --repo bhrain --skill review --rules '.agent/repo=ehmpathy/role=mechanic/briefs/practices/code.prod/pitofsuccess.errors/rule.*.md' --diffs since-main --paths-with 'src/**/*.ts' --join intersect --output '$route/.reviews/$stone.peer-review.failhides.md' --mode hard 2>&1"
|
|
88
|
+
|
|
89
|
+
judges:
|
|
90
|
+
- npx rhachet run --repo bhrain --skill route.stone.judge --mechanism reviewed? --stone $stone --route $route --allow-blockers 0 --allow-nitpicks 3
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expandBehaviorName = void 0;
|
|
4
|
+
const helpful_errors_1 = require("helpful-errors");
|
|
5
|
+
/**
|
|
6
|
+
* .what = expand @branch token to behavior name from current branch
|
|
7
|
+
* .why = enables zero-friction behavior name from branch context
|
|
8
|
+
*/
|
|
9
|
+
const expandBehaviorName = (input) => {
|
|
10
|
+
// passthrough for explicit names
|
|
11
|
+
if (input.name !== '@branch')
|
|
12
|
+
return input.name;
|
|
13
|
+
// reject detached HEAD
|
|
14
|
+
if (input.branch === 'HEAD')
|
|
15
|
+
throw new helpful_errors_1.BadRequestError('cannot expand @branch in detached HEAD state');
|
|
16
|
+
// reject protected branches
|
|
17
|
+
const protectedBranches = ['main', 'master'];
|
|
18
|
+
if (protectedBranches.includes(input.branch))
|
|
19
|
+
throw new helpful_errors_1.BadRequestError(`cannot init behavior on protected branch: ${input.branch}`);
|
|
20
|
+
// extract last segment (strip all prefixes)
|
|
21
|
+
const segments = input.branch.split('/');
|
|
22
|
+
return segments[segments.length - 1];
|
|
23
|
+
};
|
|
24
|
+
exports.expandBehaviorName = expandBehaviorName;
|
|
25
|
+
//# sourceMappingURL=expandBehaviorName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expandBehaviorName.js","sourceRoot":"","sources":["../../../../src/domain.operations/behavior/name/expandBehaviorName.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAEjD;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,KAGlC,EAAU,EAAE;IACX,iCAAiC;IACjC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,IAAI,CAAC;IAEhD,uBAAuB;IACvB,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM;QACzB,MAAM,IAAI,gCAAe,CAAC,8CAA8C,CAAC,CAAC;IAE5E,4BAA4B;IAC5B,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;QAC1C,MAAM,IAAI,gCAAe,CACvB,6CAA6C,KAAK,CAAC,MAAM,EAAE,CAC5D,CAAC;IAEJ,4CAA4C;IAC5C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzC,OAAO,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;AACxC,CAAC,CAAC;AArBW,QAAA,kBAAkB,sBAqB7B"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "rhachet-roles-bhuild",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "roles for building resilient systems, via rhachet",
|
|
5
|
-
"version": "0.13.
|
|
5
|
+
"version": "0.13.2",
|
|
6
6
|
"repository": "ehmpathy/rhachet-roles-bhuild",
|
|
7
7
|
"homepage": "https://github.com/ehmpathy/rhachet-roles-bhuild",
|
|
8
8
|
"keywords": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"prepare:husky": "husky install && chmod ug+x .husky/*",
|
|
60
60
|
"prepare": "if [ -e .git ] && [ -z $CI ]; then npm run prepare:husky && npm run prepare:rhachet; fi",
|
|
61
61
|
"test:format:biome": "biome format",
|
|
62
|
-
"prepare:rhachet": "npm run build && rhachet init --hooks --roles behaver mechanic reviewer"
|
|
62
|
+
"prepare:rhachet": "npm run build && rhachet init --hooks --roles behaver driver mechanic reviewer librarian"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"domain-objects": "0.31.9",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"esbuild-register": "3.6.0",
|
|
90
90
|
"husky": "8.0.3",
|
|
91
91
|
"jest": "30.2.0",
|
|
92
|
-
"rhachet": "1.37.
|
|
92
|
+
"rhachet": "1.37.8",
|
|
93
93
|
"rhachet-brains-anthropic": "0.3.3",
|
|
94
|
-
"rhachet-roles-bhrain": "0.15.
|
|
94
|
+
"rhachet-roles-bhrain": "0.15.12",
|
|
95
95
|
"rhachet-roles-bhuild": "link:.",
|
|
96
|
-
"rhachet-roles-ehmpathy": "1.26.
|
|
96
|
+
"rhachet-roles-ehmpathy": "1.26.11",
|
|
97
97
|
"tsc-alias": "1.8.10",
|
|
98
98
|
"tsx": "4.20.6",
|
|
99
99
|
"typescript": "5.4.5",
|