@theholocron/cli 3.45.4 → 3.46.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/dist/cli.mjs +16 -17
- package/dist/cli.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -2957,10 +2957,10 @@ confidently, identify the missing information instead of inventing it.
|
|
|
2957
2957
|
Use MADR format. Copy the template and number sequentially:
|
|
2958
2958
|
|
|
2959
2959
|
\`\`\`sh
|
|
2960
|
-
cp docs/decisions/template.md docs/decisions/000N-short-title.md
|
|
2960
|
+
cp docs/wiki/decisions/template.md docs/wiki/decisions/000N-short-title.md
|
|
2961
2961
|
\`\`\`
|
|
2962
2962
|
|
|
2963
|
-
Save to \`docs/decisions/NNNN-<slug>.md\`.
|
|
2963
|
+
Save to \`docs/wiki/decisions/NNNN-<slug>.md\`.
|
|
2964
2964
|
`,
|
|
2965
2965
|
"spec.md": `# Specification Agent
|
|
2966
2966
|
|
|
@@ -3167,7 +3167,7 @@ decision, the options that were considered, and the rationale for the choice mad
|
|
|
3167
3167
|
Copy the template and number it sequentially:
|
|
3168
3168
|
|
|
3169
3169
|
\`\`\`sh
|
|
3170
|
-
cp docs/decisions/template.md docs/decisions/000N-short-title.md
|
|
3170
|
+
cp docs/wiki/decisions/template.md docs/wiki/decisions/000N-short-title.md
|
|
3171
3171
|
\`\`\`
|
|
3172
3172
|
|
|
3173
3173
|
\`madr\` has no CLI — creation is manual. Frontmatter is validated in CI
|
|
@@ -3188,21 +3188,19 @@ via \`scripts/validate-adrs.mjs\` (runs as part of the Lint workflow).
|
|
|
3188
3188
|
| ID | Title | Status |
|
|
3189
3189
|
| -- | ----- | ------ |
|
|
3190
3190
|
`;
|
|
3191
|
-
const
|
|
3191
|
+
const STANDARDS_README = `# Standards
|
|
3192
3192
|
|
|
3193
|
-
|
|
3194
|
-
|
|
3193
|
+
Org-wide engineering standards — conventions, practices, and guidelines that
|
|
3194
|
+
apply across all repos in the org.
|
|
3195
3195
|
|
|
3196
|
-
|
|
3196
|
+
> **Drafts** live in \`.notes/\` until accepted, then graduate here.
|
|
3197
|
+
`;
|
|
3198
|
+
const SPECIFICATIONS_README = `# Specifications
|
|
3197
3199
|
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
| \`specifications/\` | Accepted specs (graduated from \`.notes/\`) |
|
|
3201
|
-
| \`standards/\` | Org-wide engineering standards |
|
|
3202
|
-
| \`runbooks/\` | Operational runbooks |
|
|
3200
|
+
Accepted specs for planned or in-progress features. Each spec captures what
|
|
3201
|
+
the system must do — not how to implement it.
|
|
3203
3202
|
|
|
3204
3203
|
> **Drafts** live in \`.notes/*.spec.md\` until accepted, then graduate here.
|
|
3205
|
-
> **Architectural decisions** live in \`docs/decisions/\` and may be public-facing.
|
|
3206
3204
|
`;
|
|
3207
3205
|
//#endregion
|
|
3208
3206
|
//#region src/commands/dependabot.yml
|
|
@@ -3251,7 +3249,7 @@ var test_default$1 = "name: Test\n\non: # yamllint disable-line rule:truthy\n p
|
|
|
3251
3249
|
var typecheck_default$1 = "name: Typecheck\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\nconcurrency:\n group: typecheck-${{ github.ref }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n\njobs:\n typecheck:\n name: Typecheck\n uses: theholocron/.github/.github/workflows/typecheck.yml@main\n secrets: inherit\n";
|
|
3252
3250
|
//#endregion
|
|
3253
3251
|
//#region src/commands/workflows/wiki.yml
|
|
3254
|
-
var wiki_default$1 = "name: Wiki\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main]\n pull_request:\n branches: [main]\n\nconcurrency:\n group: ${{ github.event_name == 'pull_request' && format('wiki-preview-{0}', github.event.pull_request.number) || 'wiki' }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\npermissions:\n contents: read\n\njobs:\n publish:\n name: Publish\n if: ${{ github.event_name != 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n secrets: inherit\n\n preview:\n name: Preview\n if: ${{ github.event_name == 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n with:\n preview: true\n preview-id: pr-${{ github.event.pull_request.number }}\n secrets: inherit\n";
|
|
3252
|
+
var wiki_default$1 = "name: Wiki\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main]\n pull_request:\n branches: [main]\n\nconcurrency:\n group: ${{ github.event_name == 'pull_request' && format('wiki-preview-{0}', github.event.pull_request.number) || 'wiki' }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\npermissions:\n contents: read\n deployments: write\n\njobs:\n publish:\n name: Publish\n if: ${{ github.event_name != 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n secrets: inherit\n\n preview:\n name: Preview\n if: ${{ github.event_name == 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n with:\n preview: true\n preview-id: pr-${{ github.event.pull_request.number }}\n secrets: inherit\n";
|
|
3255
3253
|
//#endregion
|
|
3256
3254
|
//#region src/commands/setup-workflows.ts
|
|
3257
3255
|
/**
|
|
@@ -4646,9 +4644,10 @@ async function writeIfAbsent(filePath, content) {
|
|
|
4646
4644
|
async function installEngineeringStructure({ repoRoot }) {
|
|
4647
4645
|
const results = [];
|
|
4648
4646
|
const writes = [
|
|
4649
|
-
[join(repoRoot, "docs/decisions/template.md"), DECISIONS_TEMPLATE],
|
|
4650
|
-
[join(repoRoot, "docs/decisions/README.md"), DECISIONS_README],
|
|
4651
|
-
[join(repoRoot, "docs/
|
|
4647
|
+
[join(repoRoot, "docs/wiki/decisions/template.md"), DECISIONS_TEMPLATE],
|
|
4648
|
+
[join(repoRoot, "docs/wiki/decisions/README.md"), DECISIONS_README],
|
|
4649
|
+
[join(repoRoot, "docs/wiki/standards/README.md"), STANDARDS_README],
|
|
4650
|
+
[join(repoRoot, "docs/wiki/specifications/README.md"), SPECIFICATIONS_README]
|
|
4652
4651
|
];
|
|
4653
4652
|
for (const [path, content] of writes) if (await writeIfAbsent(path, content)) results.push(path.replace(repoRoot + "/", ""));
|
|
4654
4653
|
return results.length > 0 ? `created: ${results.join(", ")}` : "all files already exist — nothing to write";
|