rhachet-roles-bhuild 0.1.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.
@@ -0,0 +1,3 @@
1
+ import type { InvokeHooks } from 'rhachet';
2
+ export { getRoleRegistry } from '../../domain.roles/getRoleRegistry';
3
+ export declare const getInvokeHooks: () => InvokeHooks;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getInvokeHooks = exports.getRoleRegistry = void 0;
4
+ var getRoleRegistry_1 = require("../../domain.roles/getRoleRegistry");
5
+ Object.defineProperty(exports, "getRoleRegistry", { enumerable: true, get: function () { return getRoleRegistry_1.getRoleRegistry; } });
6
+ const getInvokeHooks = () => ({
7
+ onInvokeAskInput: [],
8
+ });
9
+ exports.getInvokeHooks = getInvokeHooks;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contract/sdk/index.ts"],"names":[],"mappings":";;;AAEA,qEAAoE;AAA3D,kHAAA,eAAe,OAAA;AAEjB,MAAM,cAAc,GAAG,GAAgB,EAAE,CAAC,CAAC;IAChD,gBAAgB,EAAE,EAAE;CACrB,CAAC,CAAC;AAFU,QAAA,cAAc,kBAExB"}
@@ -0,0 +1,2 @@
1
+ import { Role } from 'rhachet';
2
+ export declare const ROLE_BEHAVER: Role;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ROLE_BEHAVER = void 0;
4
+ const rhachet_1 = require("rhachet");
5
+ exports.ROLE_BEHAVER = rhachet_1.Role.build({
6
+ slug: 'bhuild',
7
+ name: 'Behaver',
8
+ purpose: 'declare clear, buildable, and testable behaviors',
9
+ readme: `
10
+ ## 📐 Behaver
11
+
12
+ Used to declare clear and testable behaviors that can be reliably built and verified.
13
+ `.trim(),
14
+ traits: [],
15
+ skills: {
16
+ dirs: [{ uri: __dirname + '/skills' }],
17
+ refs: [],
18
+ },
19
+ briefs: {
20
+ dirs: [{ uri: __dirname + '/briefs' }],
21
+ },
22
+ });
23
+ //# sourceMappingURL=getBehaverRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBehaverRole.js","sourceRoot":"","sources":["../../../src/domain.roles/behaver/getBehaverRole.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAElB,QAAA,YAAY,GAAS,cAAI,CAAC,KAAK,CAAC;IAC3C,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,kDAAkD;IAC3D,MAAM,EAAE;;;;GAIP,CAAC,IAAI,EAAE;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;QACtC,IAAI,EAAE,EAAE;KACT;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;KACvC;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { RoleRegistry } from 'rhachet';
2
+ /**
3
+ * .what = returns the core registry of predefined roles and skills
4
+ * .why =
5
+ * - enables CLI or thread logic to load available roles
6
+ * - avoids dynamic loading or global mutation
7
+ */
8
+ export declare const getRoleRegistry: () => RoleRegistry;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRoleRegistry = void 0;
4
+ const rhachet_1 = require("rhachet");
5
+ const getBehaverRole_1 = require("./behaver/getBehaverRole");
6
+ const getRoleRegistry_readme_1 = require("./getRoleRegistry.readme");
7
+ /**
8
+ * .what = returns the core registry of predefined roles and skills
9
+ * .why =
10
+ * - enables CLI or thread logic to load available roles
11
+ * - avoids dynamic loading or global mutation
12
+ */
13
+ const getRoleRegistry = () => new rhachet_1.RoleRegistry({
14
+ slug: 'bhuild',
15
+ readme: getRoleRegistry_readme_1.BHUILD_REGISTRY_README,
16
+ roles: [getBehaverRole_1.ROLE_BEHAVER],
17
+ });
18
+ exports.getRoleRegistry = getRoleRegistry;
19
+ //# sourceMappingURL=getRoleRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoleRegistry.js","sourceRoot":"","sources":["../../src/domain.roles/getRoleRegistry.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,6DAAwD;AACxD,qEAAkE;AAElE;;;;;GAKG;AACI,MAAM,eAAe,GAAG,GAAiB,EAAE,CAChD,IAAI,sBAAY,CAAC;IACf,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,+CAAsB;IAC9B,KAAK,EAAE,CAAC,6BAAY,CAAC;CACtB,CAAC,CAAC;AALQ,QAAA,eAAe,mBAKvB"}
@@ -0,0 +1 @@
1
+ export declare const BHUILD_REGISTRY_README: string;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BHUILD_REGISTRY_README = void 0;
4
+ // todo: how to keep in sync with @repo/readme.md ?
5
+ exports.BHUILD_REGISTRY_README = `
6
+ # 🏗️ bhuild role registry
7
+
8
+ This registry defines roles used to build systems and solutions.
9
+
10
+ ---
11
+
12
+ ## 📐 Behaver
13
+
14
+ Used to declare clear and testable behaviors that can be reliably built and verified.
15
+
16
+ ---
17
+
18
+ ## 📣 Dispatcher
19
+
20
+ Used to maximize prioritized throughput within a resource bandwidth.
21
+ `.trim();
22
+ //# sourceMappingURL=getRoleRegistry.readme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoleRegistry.readme.js","sourceRoot":"","sources":["../../src/domain.roles/getRoleRegistry.readme.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACtC,QAAA,sBAAsB,GAAG;;;;;;;;;;;;;;;;GAgBnC,CAAC,IAAI,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './contract/sdk';
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./contract/sdk"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
package/license.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 ehmpathy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "rhachet-roles-bhuild",
3
+ "author": "ehmpathy",
4
+ "description": "reliable thought concept navigation roles, briefs, and skills, via rhachet",
5
+ "version": "0.1.0",
6
+ "repository": "ehmpathy/rhachet-roles-bhuild",
7
+ "homepage": "https://github.com/ehmpathy/rhachet-roles-bhuild",
8
+ "keywords": [
9
+ "rhachet",
10
+ "roles"
11
+ ],
12
+ "bugs": "https://github.com/ehmpathy/rhachet-roles-bhuild/issues",
13
+ "license": "MIT",
14
+ "main": "dist/index.js",
15
+ "engines": {
16
+ "node": ">=8.0.0"
17
+ },
18
+ "files": [
19
+ "/dist"
20
+ ],
21
+ "dependencies": {
22
+ "domain-objects": "0.31.7",
23
+ "helpful-errors": "1.5.3",
24
+ "rhachet": "1.13.11"
25
+ },
26
+ "devDependencies": {
27
+ "@biomejs/biome": "2.3.8",
28
+ "@commitlint/cli": "19.5.0",
29
+ "@commitlint/config-conventional": "19.5.0",
30
+ "@swc/core": "1.15.3",
31
+ "@swc/jest": "0.2.39",
32
+ "@tsconfig/node20": "20.1.5",
33
+ "@tsconfig/strictest": "2.0.5",
34
+ "@types/jest": "30.0.0",
35
+ "@types/node": "22.15.21",
36
+ "cz-conventional-changelog": "3.3.0",
37
+ "declapract": "0.13.4",
38
+ "declapract-typescript-ehmpathy": "0.47.2",
39
+ "declastruct": "1.7.3",
40
+ "declastruct-github": "1.3.0",
41
+ "depcheck": "1.4.3",
42
+ "esbuild-register": "3.6.0",
43
+ "husky": "8.0.3",
44
+ "jest": "30.2.0",
45
+ "rhachet": "1.13.11",
46
+ "rhachet-roles-ehmpathy": "1.15.12",
47
+ "tsc-alias": "1.8.10",
48
+ "tsx": "4.20.6",
49
+ "typescript": "5.4.5",
50
+ "yalc": "1.0.0-pre.53"
51
+ },
52
+ "config": {
53
+ "commitizen": {
54
+ "path": "./node_modules/cz-conventional-changelog"
55
+ }
56
+ },
57
+ "scripts": {
58
+ "build:ts": "tsc -p ./tsconfig.build.json",
59
+ "commit:with-cli": "npx cz",
60
+ "fix:format:biome": "biome check --write",
61
+ "fix:format": "npm run fix:format:biome",
62
+ "fix:lint": "biome check --write",
63
+ "fix": "npm run fix:format && npm run fix:lint",
64
+ "build:clean": "rm dist/ -rf",
65
+ "build:compile": "tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json",
66
+ "build:complete": "rsync -a --prune-empty-dirs --include='*/' --exclude='**/.route/**' --exclude='**/.scratch/**' --exclude='**/.behavior/**' --exclude='**/*.test.sh' --include='**/*.template.md' --include='**/briefs/**/*.md' --include='**/briefs/*.md' --include='**/skills/**/*.sh' --include='**/skills/*.sh' --include='**/skills/**/*.jsonc' --include='**/skills/*.jsonc' --exclude='*' src/ dist/",
67
+ "build": "npm run build:clean && npm run build:compile && npm run build:complete --if-present",
68
+ "test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose",
69
+ "test:types": "tsc -p ./tsconfig.json --noEmit",
70
+ "test:format": "npm run test:format:biome",
71
+ "test:lint:deps": "npx depcheck -c ./.depcheckrc.yml",
72
+ "test:integration:hold": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
73
+ "test:lint:biome": "biome check --diagnostic-level=error",
74
+ "test:lint:biome:all": "biome check",
75
+ "test:lint": "npm run test:lint:biome && npm run test:lint:deps",
76
+ "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
77
+ "test:integration": "echo 'todo: release'",
78
+ "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
79
+ "test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
80
+ "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
81
+ "prepush": "npm run test && npm run build",
82
+ "prepublish": "npm run build",
83
+ "preversion": "npm run prepush",
84
+ "postversion": "git push origin HEAD --tags --no-verify",
85
+ "prepare:husky": "husky install && chmod ug+x .husky/*",
86
+ "test:format:biome": "biome format",
87
+ "prepare:rhachet": "rhachet init && rhachet roles link --role mechanic && .agent/repo=ehmpathy/role=mechanic/skills/skills/init.claude.sh"
88
+ }
89
+ }
package/readme.md ADDED
@@ -0,0 +1,41 @@
1
+ # rhachet-roles-bhuild
2
+
3
+ ![test](https://github.com/ehmpathy/rhachet-roles-bhuild/workflows/test/badge.svg)
4
+ ![publish](https://github.com/ehmpathy/rhachet-roles-bhuild/workflows/publish/badge.svg)
5
+
6
+ reliable thought concept navigation roles, briefs, and skills, via [rhachet](https://github.com/ehmpathy/rhachet)
7
+
8
+ # purpose
9
+
10
+ # install
11
+
12
+ ```sh
13
+ npm install rhachet-roles-bhuild
14
+ ```
15
+
16
+ # use
17
+
18
+ ## `readme --registry`
19
+ ```sh
20
+ npx rhachet readme --registry bhuild
21
+ ```
22
+
23
+ produces
24
+
25
+ ```md
26
+ # 🏗️ bhuild role registry
27
+
28
+ This registry defines roles used to build systems and solutions.
29
+
30
+ ---
31
+
32
+ ## 📐 Behaver
33
+
34
+ Used to declare clear and testable behaviors that can be reliably built and verified.
35
+
36
+ ---
37
+
38
+ ## 📣 Dispatcher
39
+
40
+ Used to maximize prioritized throughput within a resource bandwidth.
41
+ ```