baller-maester 0.1.0 → 0.2.1
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/CHANGELOG.md +10 -0
- package/dist/cli/main.js +28 -5
- package/dist/cli/main.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +37 -20
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.1] - 2026-05-14
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **npm publish provenance** — added `repository`, `bugs`, and `homepage` fields to `package.json` so sigstore provenance validation matches the GitHub repository URL. Without these, `npm publish --provenance` failed with `422 Unprocessable Entity` because `repository.url` defaulted to an empty string.
|
|
12
|
+
|
|
13
|
+
## [0.2.0] - 2026-05-14
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- **`maester init` per-entry state prompt** — when the user declares an explicit `includes` list during citadel initialization, the walkthrough now asks per entry for a state choice: `draft`, `canon`, or "file header" (defer to inline state in the file). `draft` / `canon` are persisted as the enriched `{ path, state }` object form in `citadel.yaml`; "file header" keeps the bare-string form so each file's own inline state (or the default `draft`) governs at sync time. Manifest-driven sources are unaffected.
|
|
17
|
+
|
|
8
18
|
## [0.1.0] - 2026-05-13
|
|
9
19
|
|
|
10
20
|
### Added
|
package/dist/cli/main.js
CHANGED
|
@@ -1172,7 +1172,7 @@ function dedupeTargets(targets) {
|
|
|
1172
1172
|
|
|
1173
1173
|
// package.json
|
|
1174
1174
|
var package_default = {
|
|
1175
|
-
version: "0.1
|
|
1175
|
+
version: "0.2.1"};
|
|
1176
1176
|
var PACKAGE_VERSION = package_default.version;
|
|
1177
1177
|
|
|
1178
1178
|
// src/core/skill/version.ts
|
|
@@ -1546,16 +1546,39 @@ async function collectIncludes(ctx) {
|
|
|
1546
1546
|
message: "Includes \u2014 repo-relative paths or globs, comma- or whitespace-separated. At least one required.",
|
|
1547
1547
|
placeholder: "docs/**/*.md, README.md",
|
|
1548
1548
|
validate: (value) => {
|
|
1549
|
-
const
|
|
1550
|
-
if (
|
|
1551
|
-
for (const entry of
|
|
1549
|
+
const entries2 = parseIncludesEntries(value);
|
|
1550
|
+
if (entries2.length === 0) return "At least one includes entry is required.";
|
|
1551
|
+
for (const entry of entries2) {
|
|
1552
1552
|
const result = validateIncludesEntry(entry);
|
|
1553
1553
|
if (!result.ok) return `'${entry}': ${result.reason}`;
|
|
1554
1554
|
}
|
|
1555
1555
|
return void 0;
|
|
1556
1556
|
}
|
|
1557
1557
|
});
|
|
1558
|
-
|
|
1558
|
+
const paths = parseIncludesEntries(raw);
|
|
1559
|
+
const entries = [];
|
|
1560
|
+
for (const path5 of paths) {
|
|
1561
|
+
const choice = await ctx.prompts.select({
|
|
1562
|
+
message: `State for '${path5}'?`,
|
|
1563
|
+
initialValue: "file-header",
|
|
1564
|
+
options: [
|
|
1565
|
+
{ value: "draft", label: "draft", hint: "tag this entry as draft" },
|
|
1566
|
+
{ value: "canon", label: "canon", hint: "tag this entry as canon" },
|
|
1567
|
+
{
|
|
1568
|
+
value: "file-header",
|
|
1569
|
+
label: "file header",
|
|
1570
|
+
hint: "no rule; defer to inline state in each file"
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
});
|
|
1574
|
+
entries.push(buildIncludeEntry(path5, choice));
|
|
1575
|
+
}
|
|
1576
|
+
return entries;
|
|
1577
|
+
}
|
|
1578
|
+
function buildIncludeEntry(path5, choice) {
|
|
1579
|
+
if (choice === "file-header") return path5;
|
|
1580
|
+
const state = choice;
|
|
1581
|
+
return { path: path5, state };
|
|
1559
1582
|
}
|
|
1560
1583
|
async function collectAuth(ctx) {
|
|
1561
1584
|
const authType = await ctx.prompts.select({
|