@karmaniverous/jeeves-meta 0.15.7 → 0.15.9
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 +5 -5
- package/dist/cli/jeeves-meta/index.js +465 -254
- package/dist/discovery/getAncestorMeta.d.ts +16 -0
- package/dist/discovery/index.d.ts +1 -0
- package/dist/index.js +462 -239
- package/dist/interfaces/MetaContext.d.ts +2 -0
- package/dist/phaseState/derivePhaseState.d.ts +0 -2
- package/dist/phaseState/index.d.ts +2 -2
- package/dist/phaseState/invalidate.d.ts +5 -7
- package/dist/phaseState/phaseScheduler.d.ts +5 -0
- package/dist/phaseState/phaseTransitions.d.ts +1 -1
- package/dist/routes/metasUpdate.d.ts +1 -1
- package/dist/routes/status.d.ts +1 -1
- package/dist/rules/index.d.ts +1 -3
- package/dist/scheduler/index.d.ts +5 -0
- package/dist/schema/config.d.ts +9 -0
- package/dist/schema/meta.d.ts +4 -0
- package/dist/seed/createMeta.d.ts +6 -0
- package/package.json +58 -58
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieve the nearest ancestor meta node from the ownership tree.
|
|
3
|
+
*
|
|
4
|
+
* @module discovery/getAncestorMeta
|
|
5
|
+
*/
|
|
6
|
+
import type { MetaNode } from './types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Get the nearest ancestor MetaNode for a given node.
|
|
9
|
+
*
|
|
10
|
+
* Walks up the ownership tree (via the parent pointer set by
|
|
11
|
+
* buildOwnershipTree) to find the closest ancestor .meta/ directory.
|
|
12
|
+
*
|
|
13
|
+
* @param node - The meta node to find the ancestor for.
|
|
14
|
+
* @returns The parent MetaNode, or null for root-level metas.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getAncestorMeta(node: MetaNode): MetaNode | null;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { computeSummary } from './computeSummary.js';
|
|
7
7
|
export { discoverMetas } from './discoverMetas.js';
|
|
8
|
+
export { getAncestorMeta } from './getAncestorMeta.js';
|
|
8
9
|
export { listMetas, type MetaEntry, type MetaListResult, type MetaListSummary, } from './listMetas.js';
|
|
9
10
|
export { buildOwnershipTree, findNode } from './ownershipTree.js';
|
|
10
11
|
export { filterInScope, getDeltaFiles, getScopeFiles, getScopePrefix, } from './scope.js';
|