@theholocron/cli 5.0.0-alpha.113 → 5.0.0-alpha.115

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 CHANGED
@@ -41,8 +41,8 @@ Every command is tagged with how much of a repo it needs:
41
41
 
42
42
  | Context | Needs | Examples |
43
43
  | ------------ | -------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
44
- | `global` | just the CLI binary | `version`, `clone`, `new`, `upgrade node`, `auth set` / `check`, `plugin create`, `skills …` |
45
- | `repo-aware` | `./holocron.config` in cwd, no plugins | `run`, `ci`, `config show`, `sync-readme` |
44
+ | `global` | the CLI binary alone | `version`, `clone`, `new`, `upgrade node`, `auth set` / `check`, `plugin create`, `skills …` |
45
+ | `repo-aware` | `./holocron.config`, walking up from cwd, no plugins | `run`, `ci`, `config show`, `sync-readme` |
46
46
  | `workspace` | the `@theholocron/holocron-plugin-*` packages resolvable | `doctor`, `setup`, `sync`, `secrets sync`, `deploy` |
47
47
 
48
48
  A `workspace` command run from a bare global install (no plugins next to the
package/dist/cli.mjs CHANGED
@@ -7840,14 +7840,19 @@ async function lintCommitMsgFile(filePath, cwd = process.cwd()) {
7840
7840
  */
7841
7841
  const execFileAsync = promisify(execFile);
7842
7842
  /**
7843
- * Read + parse + resolve `holocron.config.*` from the given directory.
7843
+ * Read + parse + resolve `holocron.config.*` starting from the given
7844
+ * directory, walking up through ancestors to the nearest `.git` boundary
7845
+ * when `cwd` itself has no match — every command is usable from any
7846
+ * subdirectory of a repo, not only its exact root (see
7847
+ * `@theholocron/datapad`'s own doc comment for the stop conditions).
7844
7848
  * Throws {@link ConfigFileError} when nothing is found or a file cannot
7845
- * be loaded, or `ConfigError` when the config is invalid.
7849
+ * be loaded, or `ConfigError` when the config fails schema checks.
7846
7850
  */
7847
7851
  async function loadConfig(cwd) {
7848
7852
  const found = await loadConfigFile({
7849
7853
  cwd,
7850
- name: "holocron"
7854
+ name: "holocron",
7855
+ walkUp: true
7851
7856
  });
7852
7857
  if (!found) throw new ConfigFileError(`no holocron.config.{ts,js,mjs,cjs,json} found in ${cwd}. Create one — see the README for the schema.`);
7853
7858
  return {