@kici-dev/orchestrator 0.1.13 → 0.1.14

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.
@@ -12,7 +12,7 @@ export { detectPlatform, isRoot, kiciConfigRoot, getConfigDir, getLogDir, getCac
12
12
  export { resolveUserLevel, type PrivilegeOpts } from './privilege.js';
13
13
  export type { Component, InstanceManifest, IndexEntry, ResolveOptions, ResolvedInstance, } from './instance/types.js';
14
14
  export { COMPONENTS, isComponent } from './instance/types.js';
15
- export { manifestFilename, manifestPath, readManifest, writeManifest, } from './instance/manifest.js';
15
+ export { manifestFilename, manifestPath, readManifest, writeManifest, readKiciVersion, } from './instance/manifest.js';
16
16
  export { indexPath, readIndex, writeIndex, appendIndexEntry, removeIndexEntry, } from './instance/index-file.js';
17
17
  export { listInstances, resolveInstance, formatRefusal } from './instance/resolve.js';
18
18
  export type { ListedInstance, ResolveArgs, ListInstancesArgs } from './instance/resolve.js';
@@ -18,4 +18,13 @@ export declare function readManifest(instanceDir: string, component: Component):
18
18
  * Returns the full path written.
19
19
  */
20
20
  export declare function writeManifest(instanceDir: string, manifest: InstanceManifest): string;
21
+ /**
22
+ * Read the running kici-admin's version from the orchestrator package.json.
23
+ *
24
+ * `process.env.npm_package_version` is only populated under `npm run` and is
25
+ * undefined when kici-admin runs as a globally-installed binary, which is the
26
+ * actual install path. Reading from the package.json on disk is the only
27
+ * reliable source.
28
+ */
29
+ export declare function readKiciVersion(): string;
21
30
  //# sourceMappingURL=manifest.d.ts.map