@theholocron/cli 5.0.0-alpha.338 → 5.0.0-alpha.339
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/README.md +2 -2
- package/dist/cli.mjs +11 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/{index-CsLdvk4-.d.mts → index-D9taYHzW.d.mts} +1 -1
- package/dist/{index-KMWrNLpJ.d.mts → index-XBpiD6Sx.d.mts} +197 -2
- package/dist/index.d.mts +3 -3
- package/dist/plugin/capabilities.d.mts +2 -2
- package/dist/plugin/capabilities.mjs +2 -0
- package/dist/presets.d.mts +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -248,7 +248,7 @@ posts, instead of reporting pass/fail.
|
|
|
248
248
|
`holocron repo setup` builds the branch-protection required-check list from the
|
|
249
249
|
manifest, not a hand-maintained array:
|
|
250
250
|
|
|
251
|
-
In the repo that
|
|
251
|
+
In the repo that holds the reusable workflows (holocron itself) the list is `ci / Required checks` and `DCO`. That is the aggregate
|
|
252
252
|
check (`ci/workflows/ci.yml`, written by `repo setup` / `repo sync` as `.github/workflows/ci.ci.yml`): it waits on
|
|
253
253
|
every `{ required: true }` task, the hand-written checks in `extraRequiredChecks` and its `codecov/*` statuses, and its
|
|
254
254
|
job summary lists each of them with a link, failing ones first. `DCO` stays its own required context. In any other
|
|
@@ -781,7 +781,7 @@ the local override exists to exempt.
|
|
|
781
781
|
|
|
782
782
|
## What's in here
|
|
783
783
|
|
|
784
|
-
- `src/plugin/capabilities.ts` — the
|
|
784
|
+
- `src/plugin/capabilities.ts` — the 21 capability interfaces that
|
|
785
785
|
providers implement
|
|
786
786
|
- `src/config.ts` — config schema, `defineConfig`, `resolveConfig`,
|
|
787
787
|
`CapabilityConfigPackage`
|
package/dist/cli.mjs
CHANGED
|
@@ -1832,6 +1832,8 @@ const CARDINALITY = {
|
|
|
1832
1832
|
workers: "single",
|
|
1833
1833
|
/** `tunnels` has exactly one provider. */
|
|
1834
1834
|
tunnels: "single",
|
|
1835
|
+
/** `projects` has exactly one provider. */
|
|
1836
|
+
projects: "single",
|
|
1835
1837
|
/** `credentials` can have several providers, tried in order. */
|
|
1836
1838
|
credentials: "many"
|
|
1837
1839
|
};
|
|
@@ -10189,6 +10191,14 @@ async function runSmokeCheck(key, provider, impl) {
|
|
|
10189
10191
|
}
|
|
10190
10192
|
return mk(key, provider, "skip", "loaded (no smoke check defined for this capability)");
|
|
10191
10193
|
}
|
|
10194
|
+
case "projects": {
|
|
10195
|
+
const projects = impl;
|
|
10196
|
+
if (projects.whoami) {
|
|
10197
|
+
const who = await projects.whoami();
|
|
10198
|
+
return mk(key, provider, who.ok ? "ok" : "fail", `boards: ${who.boards} visible`);
|
|
10199
|
+
}
|
|
10200
|
+
return mk(key, provider, "skip", "loaded (no smoke check defined for this capability)");
|
|
10201
|
+
}
|
|
10192
10202
|
case "auth": {
|
|
10193
10203
|
const who = await impl.whoami();
|
|
10194
10204
|
const details = who.details ? ` (${Object.entries(who.details).map(([k, v]) => `${k}=${v}`).join(", ")})` : "";
|
|
@@ -11976,7 +11986,7 @@ const pluginCreateArgs = (y) => y.positional("slug", {
|
|
|
11976
11986
|
describe: "Vendor display name (PascalCase)"
|
|
11977
11987
|
}).option("capability", {
|
|
11978
11988
|
type: "string",
|
|
11979
|
-
describe: "Capability key: source|ci|secrets|environments|issues|deployment|storage|auth|vault|dns|tooling|notifications|analytics|errors|logs|wiki|workers|tunnels"
|
|
11989
|
+
describe: "Capability key: source|ci|secrets|environments|issues|deployment|storage|auth|vault|dns|tooling|notifications|analytics|errors|logs|wiki|workers|tunnels|projects"
|
|
11980
11990
|
}).option("token-env", {
|
|
11981
11991
|
type: "string",
|
|
11982
11992
|
describe: "Holocron env var name (defaults to HOLOCRON_<VENDOR>_TOKEN)"
|