zephyr-agent
Version:
Zephyr plugin agent
28 lines • 1.42 kB
TypeScript
/**
* Parses Zephyr dependency entries from package.json and transforms them into structured
* format. Dependencies can be specified in various formats:
*
* - Standard semver: "^1.0.0"
* - Zephyr remote with tag: "zephyr:remote_app_uid@latest"
* - Zephyr with semver: "zephyr:^1.0.0"
* - Wildcard version: "*" (resolves to latest available version)
* - Workspace protocol `workspace:*` (optionally prefixed, e.g. `remote_app@workspace:*`):
* monorepo references where `*`, `^`, `~`, and the bare protocol keep the branch-aware
* `workspace:*` token (resolved against the build context, i.e. the remote just built
* on the same branch); explicit ranges pass through as semver.
*
* @param ze_dependencies - Object with dependency name as key and version/reference as
* value
* @returns Parsed zephyr dependencies with structured information
*/
import type { ZeDependency } from './ze-package-json.type.js';
export declare function parseZeDependencies(ze_dependencies: Record<string, string>): Record<string, ZeDependency>;
/**
* Parses a single dependency value into a structured ZeDependency object.
*
* @param key - The dependency name
* @param value - The dependency version or reference string
* @returns Structured dependency information
*/
export declare function parseZeDependency(key: string, value: string): ZeDependency;
//# sourceMappingURL=ze-util-parse-ze-dependencies.d.ts.map