@stackbilt/cli 0.9.2 → 0.10.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/LICENSE +17 -1
- package/README.md +42 -0
- package/dist/__tests__/bootstrap.test.d.ts +2 -0
- package/dist/__tests__/bootstrap.test.d.ts.map +1 -0
- package/dist/__tests__/bootstrap.test.js +134 -0
- package/dist/__tests__/bootstrap.test.js.map +1 -0
- package/dist/__tests__/integration/precommit-hook.test.js +4 -4
- package/dist/__tests__/score.test.d.ts +2 -0
- package/dist/__tests__/score.test.d.ts.map +1 -0
- package/dist/__tests__/score.test.js +234 -0
- package/dist/__tests__/score.test.js.map +1 -0
- package/dist/commands/adf-tidy.d.ts.map +1 -1
- package/dist/commands/adf-tidy.js +6 -3
- package/dist/commands/adf-tidy.js.map +1 -1
- package/dist/commands/adf.js +20 -13
- package/dist/commands/adf.js.map +1 -1
- package/dist/commands/audit.js +24 -7
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/blast.d.ts +12 -0
- package/dist/commands/blast.d.ts.map +1 -0
- package/dist/commands/blast.js +208 -0
- package/dist/commands/blast.js.map +1 -0
- package/dist/commands/bootstrap.d.ts.map +1 -1
- package/dist/commands/bootstrap.js +245 -101
- package/dist/commands/bootstrap.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +9 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +127 -8
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/score.d.ts +9 -0
- package/dist/commands/score.d.ts.map +1 -0
- package/dist/commands/score.js +1273 -0
- package/dist/commands/score.js.map +1 -0
- package/dist/commands/setup.js +2 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/surface.d.ts +15 -0
- package/dist/commands/surface.d.ts.map +1 -0
- package/dist/commands/surface.js +112 -0
- package/dist/commands/surface.js.map +1 -0
- package/dist/http-client.d.ts +13 -4
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +1 -1
- package/dist/http-client.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/dist/types/scaffold-contract-types.d.ts +90 -0
- package/dist/types/scaffold-contract-types.d.ts.map +1 -0
- package/dist/types/scaffold-contract-types.js +22 -0
- package/dist/types/scaffold-contract-types.js.map +1 -0
- package/package.json +12 -9
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored type definitions for the Stackbilt scaffold-response contract.
|
|
3
|
+
*
|
|
4
|
+
* These types are structurally copied from @stackbilt/contracts to avoid
|
|
5
|
+
* a file: workspace dependency on an unpublished sibling repo. They are
|
|
6
|
+
* type-only (erased at compile time, zero runtime cost) and are used
|
|
7
|
+
* internally by http-client.ts — they are NOT re-exported from the public
|
|
8
|
+
* CLI surface in src/index.ts.
|
|
9
|
+
*
|
|
10
|
+
* When @stackbilt/contracts is properly published to npm, this file can be
|
|
11
|
+
* deleted and http-client.ts can re-import from the real package.
|
|
12
|
+
*
|
|
13
|
+
* Upstream source (as of @stackbilt/contracts@0.1.0):
|
|
14
|
+
* contracts/dist/scaffold-response/scaffold-response.contract.d.ts
|
|
15
|
+
*
|
|
16
|
+
* Type aliases follow the upstream naming convention with the `Type` suffix
|
|
17
|
+
* (e.g. `ScaffoldFile` → `ScaffoldFileType`), matching the re-exports in
|
|
18
|
+
* contracts/dist/scaffold-response/index.d.ts.
|
|
19
|
+
*/
|
|
20
|
+
export type FileRoleType = 'config' | 'scaffold' | 'governance' | 'test' | 'doc';
|
|
21
|
+
export interface ScaffoldFileType {
|
|
22
|
+
path: string;
|
|
23
|
+
content: string;
|
|
24
|
+
role: FileRoleType;
|
|
25
|
+
}
|
|
26
|
+
export interface GovernanceDocsType {
|
|
27
|
+
threat_model: string;
|
|
28
|
+
adr: string;
|
|
29
|
+
test_plan: string;
|
|
30
|
+
}
|
|
31
|
+
export interface PromptContextMetaType {
|
|
32
|
+
project_type: string;
|
|
33
|
+
complexity: string;
|
|
34
|
+
confidence: string;
|
|
35
|
+
seed: number;
|
|
36
|
+
}
|
|
37
|
+
export interface PromptContextRequirementType {
|
|
38
|
+
name: string;
|
|
39
|
+
priority: string;
|
|
40
|
+
effort: string;
|
|
41
|
+
acceptance: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PromptContextInterfaceType {
|
|
44
|
+
name: string;
|
|
45
|
+
layout: string;
|
|
46
|
+
components: string;
|
|
47
|
+
}
|
|
48
|
+
export interface PromptContextThreatType {
|
|
49
|
+
name: string;
|
|
50
|
+
owasp: string;
|
|
51
|
+
likelihood: string;
|
|
52
|
+
impact: string;
|
|
53
|
+
mitigation: string;
|
|
54
|
+
detection: string;
|
|
55
|
+
response_time: string;
|
|
56
|
+
}
|
|
57
|
+
export interface PromptContextRuntimeType {
|
|
58
|
+
name: string;
|
|
59
|
+
tier: string;
|
|
60
|
+
traits: string;
|
|
61
|
+
}
|
|
62
|
+
export interface PromptContextTestPlanType {
|
|
63
|
+
name: string;
|
|
64
|
+
framework: string;
|
|
65
|
+
ci_stage: string;
|
|
66
|
+
coverage: string;
|
|
67
|
+
setup: string;
|
|
68
|
+
assertion_style: string;
|
|
69
|
+
}
|
|
70
|
+
export interface PromptContextFirstTaskType {
|
|
71
|
+
name: string;
|
|
72
|
+
estimate: string;
|
|
73
|
+
complexity: string;
|
|
74
|
+
deliverable: string;
|
|
75
|
+
adr: string;
|
|
76
|
+
}
|
|
77
|
+
export interface PromptContextType {
|
|
78
|
+
intention: string;
|
|
79
|
+
pattern: string;
|
|
80
|
+
meta: PromptContextMetaType;
|
|
81
|
+
requirement: PromptContextRequirementType;
|
|
82
|
+
interface: PromptContextInterfaceType;
|
|
83
|
+
threat: PromptContextThreatType;
|
|
84
|
+
runtime: PromptContextRuntimeType;
|
|
85
|
+
test_plan: PromptContextTestPlanType;
|
|
86
|
+
first_task: PromptContextFirstTaskType;
|
|
87
|
+
governance: GovernanceDocsType;
|
|
88
|
+
files: ScaffoldFileType[];
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=scaffold-contract-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold-contract-types.d.ts","sourceRoot":"","sources":["../../src/types/scaffold-contract-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,KAAK,CAAC;AAEjF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,WAAW,EAAE,4BAA4B,CAAC;IAC1C,SAAS,EAAE,0BAA0B,CAAC;IACtC,MAAM,EAAE,uBAAuB,CAAC;IAChC,OAAO,EAAE,wBAAwB,CAAC;IAClC,SAAS,EAAE,yBAAyB,CAAC;IACrC,UAAU,EAAE,0BAA0B,CAAC;IACvC,UAAU,EAAE,kBAAkB,CAAC;IAC/B,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vendored type definitions for the Stackbilt scaffold-response contract.
|
|
4
|
+
*
|
|
5
|
+
* These types are structurally copied from @stackbilt/contracts to avoid
|
|
6
|
+
* a file: workspace dependency on an unpublished sibling repo. They are
|
|
7
|
+
* type-only (erased at compile time, zero runtime cost) and are used
|
|
8
|
+
* internally by http-client.ts — they are NOT re-exported from the public
|
|
9
|
+
* CLI surface in src/index.ts.
|
|
10
|
+
*
|
|
11
|
+
* When @stackbilt/contracts is properly published to npm, this file can be
|
|
12
|
+
* deleted and http-client.ts can re-import from the real package.
|
|
13
|
+
*
|
|
14
|
+
* Upstream source (as of @stackbilt/contracts@0.1.0):
|
|
15
|
+
* contracts/dist/scaffold-response/scaffold-response.contract.d.ts
|
|
16
|
+
*
|
|
17
|
+
* Type aliases follow the upstream naming convention with the `Type` suffix
|
|
18
|
+
* (e.g. `ScaffoldFile` → `ScaffoldFileType`), matching the re-exports in
|
|
19
|
+
* contracts/dist/scaffold-response/index.d.ts.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
//# sourceMappingURL=scaffold-contract-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold-contract-types.js","sourceRoot":"","sources":["../../src/types/scaffold-contract-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackbilt/cli",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "Charter CLI — repo-level governance checks + architecture scaffolding",
|
|
6
6
|
"bin": {
|
|
7
7
|
"charter": "./dist/bin.js",
|
|
@@ -36,16 +36,19 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
40
|
-
"@stackbilt/
|
|
41
|
-
"@stackbilt/
|
|
42
|
-
"@stackbilt/
|
|
43
|
-
"@stackbilt/
|
|
44
|
-
"@stackbilt/
|
|
45
|
-
"@stackbilt/
|
|
46
|
-
"@stackbilt/
|
|
39
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
40
|
+
"@stackbilt/classify": "^0.10.0",
|
|
41
|
+
"@stackbilt/adf": "^0.10.0",
|
|
42
|
+
"@stackbilt/blast": "^0.10.0",
|
|
43
|
+
"@stackbilt/surface": "^0.10.0",
|
|
44
|
+
"@stackbilt/core": "^0.10.0",
|
|
45
|
+
"@stackbilt/drift": "^0.10.0",
|
|
46
|
+
"@stackbilt/types": "^0.10.0",
|
|
47
|
+
"@stackbilt/git": "^0.10.0",
|
|
48
|
+
"@stackbilt/validate": "^0.10.0"
|
|
47
49
|
},
|
|
48
50
|
"license": "Apache-2.0",
|
|
51
|
+
"author": "Stackbilt LLC",
|
|
49
52
|
"scripts": {
|
|
50
53
|
"build": "pnpm exec tsc -p tsconfig.json"
|
|
51
54
|
}
|