zephyr-agent 0.0.0-canary-20250513003429 → 0.0.0-canary-20250513050029
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/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/build-context/resolve-catalog-version.d.ts +24 -0
- package/dist/lib/build-context/resolve-catalog-version.js +365 -0
- package/dist/lib/build-context/resolve-catalog-version.js.map +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { buildAssetsMap, type ZeBuildAssetsMap, } from './lib/transformers/ze-bu
|
|
|
7
7
|
export { zeBuildDashData } from './lib/transformers/ze-build-dash-data';
|
|
8
8
|
export { zeBuildAssets } from './lib/transformers/ze-build-assets';
|
|
9
9
|
export { DEFAULT_AUTH_COMPLETION_TIMEOUT_MS, TOKEN_EXPIRY } from './lib/auth/auth-flags';
|
|
10
|
+
export { resolveCatalogVersion, resolveCatalogDependencies, getCatalogPackages, } from './lib/build-context/resolve-catalog-version';
|
|
10
11
|
export { ZephyrEngine, is_zephyr_dependency_pair, type ZeDependencyPair, type ZephyrDependencies, type ZephyrEngineOptions, readPackageJson, } from './zephyr-engine';
|
|
11
12
|
export type { ZeResolvedDependency } from './zephyr-engine/resolve_remote_dependency';
|
|
12
13
|
export type { Platform } from './zephyr-engine';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readPackageJson = exports.is_zephyr_dependency_pair = exports.ZephyrEngine = exports.TOKEN_EXPIRY = exports.DEFAULT_AUTH_COMPLETION_TIMEOUT_MS = exports.zeBuildAssets = exports.zeBuildDashData = exports.buildAssetsMap = exports.logFn = exports.ze_log = exports.ZeErrors = exports.ZephyrError = exports.savePartialAssetMap = exports.removePartialAssetMap = exports.getPartialAssetMap = exports.resolveIndexHtml = exports.onIndexHtmlResolved = void 0;
|
|
3
|
+
exports.readPackageJson = exports.is_zephyr_dependency_pair = exports.ZephyrEngine = exports.getCatalogPackages = exports.resolveCatalogDependencies = exports.resolveCatalogVersion = exports.TOKEN_EXPIRY = exports.DEFAULT_AUTH_COMPLETION_TIMEOUT_MS = exports.zeBuildAssets = exports.zeBuildDashData = exports.buildAssetsMap = exports.logFn = exports.ze_log = exports.ZeErrors = exports.ZephyrError = exports.savePartialAssetMap = exports.removePartialAssetMap = exports.getPartialAssetMap = exports.resolveIndexHtml = exports.onIndexHtmlResolved = void 0;
|
|
4
4
|
// hack for angular
|
|
5
5
|
var resolve_index_html_1 = require("./lib/hacks/resolve-index-html");
|
|
6
6
|
Object.defineProperty(exports, "onIndexHtmlResolved", { enumerable: true, get: function () { return resolve_index_html_1.onIndexHtmlResolved; } });
|
|
@@ -30,6 +30,11 @@ Object.defineProperty(exports, "zeBuildAssets", { enumerable: true, get: functio
|
|
|
30
30
|
var auth_flags_1 = require("./lib/auth/auth-flags");
|
|
31
31
|
Object.defineProperty(exports, "DEFAULT_AUTH_COMPLETION_TIMEOUT_MS", { enumerable: true, get: function () { return auth_flags_1.DEFAULT_AUTH_COMPLETION_TIMEOUT_MS; } });
|
|
32
32
|
Object.defineProperty(exports, "TOKEN_EXPIRY", { enumerable: true, get: function () { return auth_flags_1.TOKEN_EXPIRY; } });
|
|
33
|
+
// Catalog related exports
|
|
34
|
+
var resolve_catalog_version_1 = require("./lib/build-context/resolve-catalog-version");
|
|
35
|
+
Object.defineProperty(exports, "resolveCatalogVersion", { enumerable: true, get: function () { return resolve_catalog_version_1.resolveCatalogVersion; } });
|
|
36
|
+
Object.defineProperty(exports, "resolveCatalogDependencies", { enumerable: true, get: function () { return resolve_catalog_version_1.resolveCatalogDependencies; } });
|
|
37
|
+
Object.defineProperty(exports, "getCatalogPackages", { enumerable: true, get: function () { return resolve_catalog_version_1.getCatalogPackages; } });
|
|
33
38
|
// Zephyr Edge is the main class which should be used
|
|
34
39
|
var zephyr_engine_1 = require("./zephyr-engine");
|
|
35
40
|
Object.defineProperty(exports, "ZephyrEngine", { enumerable: true, get: function () { return zephyr_engine_1.ZephyrEngine; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mBAAmB;AACnB,qEAAuF;AAA9E,yHAAA,mBAAmB,OAAA;AAAE,sHAAA,gBAAgB,OAAA;AAC9C,sBAAsB;AACtB,4EAI+C;AAH7C,wHAAA,kBAAkB,OAAA;AAClB,2HAAA,qBAAqB,OAAA;AACrB,yHAAA,mBAAmB,OAAA;AAGrB,SAAS;AACT,uCAAqD;AAA5C,qGAAA,WAAW,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAE9B,SAAS;AACT,yCAAuC;AAA9B,iGAAA,MAAM,OAAA;AACf,2DAAmD;AAA1C,qGAAA,KAAK,OAAA;AAEd,uBAAuB;AACvB,8EAGgD;AAF9C,qHAAA,cAAc,OAAA;AAGhB,4EAAwE;AAA/D,qHAAA,eAAe,OAAA;AACxB,sEAAmE;AAA1D,gHAAA,aAAa,OAAA;AAEtB,uBAAuB;AACvB,oDAAyF;AAAhF,gIAAA,kCAAkC,OAAA;AAAE,0GAAA,YAAY,OAAA;AAEzD,qDAAqD;AACrD,iDAOyB;AANvB,6GAAA,YAAY,OAAA;AACZ,0HAAA,yBAAyB,OAAA;AAIzB,gHAAA,eAAe,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mBAAmB;AACnB,qEAAuF;AAA9E,yHAAA,mBAAmB,OAAA;AAAE,sHAAA,gBAAgB,OAAA;AAC9C,sBAAsB;AACtB,4EAI+C;AAH7C,wHAAA,kBAAkB,OAAA;AAClB,2HAAA,qBAAqB,OAAA;AACrB,yHAAA,mBAAmB,OAAA;AAGrB,SAAS;AACT,uCAAqD;AAA5C,qGAAA,WAAW,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAE9B,SAAS;AACT,yCAAuC;AAA9B,iGAAA,MAAM,OAAA;AACf,2DAAmD;AAA1C,qGAAA,KAAK,OAAA;AAEd,uBAAuB;AACvB,8EAGgD;AAF9C,qHAAA,cAAc,OAAA;AAGhB,4EAAwE;AAA/D,qHAAA,eAAe,OAAA;AACxB,sEAAmE;AAA1D,gHAAA,aAAa,OAAA;AAEtB,uBAAuB;AACvB,oDAAyF;AAAhF,gIAAA,kCAAkC,OAAA;AAAE,0GAAA,YAAY,OAAA;AAEzD,0BAA0B;AAC1B,uFAIqD;AAHnD,gIAAA,qBAAqB,OAAA;AACrB,qIAAA,0BAA0B,OAAA;AAC1B,6HAAA,kBAAkB,OAAA;AAGpB,qDAAqD;AACrD,iDAOyB;AANvB,6GAAA,YAAY,OAAA;AACZ,0HAAA,yBAAyB,OAAA;AAIzB,gHAAA,eAAe,OAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a catalog dependency version string (e.g., "catalog:react18") to its actual
|
|
3
|
+
* semver version range from pnpm-workspace.yaml
|
|
4
|
+
*
|
|
5
|
+
* @param versionString The version string to resolve
|
|
6
|
+
* @param packageName Optional package name to look up specific package in catalog
|
|
7
|
+
* @returns The resolved semver version or the original version if not a catalog reference
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveCatalogVersion(versionString: string, packageName?: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Gets all packages with their versions for a specific catalog
|
|
12
|
+
*
|
|
13
|
+
* @param catalogName The name of the catalog
|
|
14
|
+
* @returns Object mapping package names to their versions, or null if catalog not found
|
|
15
|
+
*/
|
|
16
|
+
export declare function getCatalogPackages(catalogName: string): Record<string, string> | null;
|
|
17
|
+
/**
|
|
18
|
+
* Resolves a dependency versions object, looking for catalog: references and replacing
|
|
19
|
+
* them with the actual semver version ranges
|
|
20
|
+
*
|
|
21
|
+
* @param dependencies Package dependencies object (e.g., from package.json)
|
|
22
|
+
* @returns New dependencies object with resolved versions
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveCatalogDependencies(dependencies: Record<string, string> | undefined): Record<string, string>;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveCatalogVersion = resolveCatalogVersion;
|
|
4
|
+
exports.getCatalogPackages = getCatalogPackages;
|
|
5
|
+
exports.resolveCatalogDependencies = resolveCatalogDependencies;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
8
|
+
const path = tslib_1.__importStar(require("path"));
|
|
9
|
+
const logging_1 = require("../logging");
|
|
10
|
+
const zephyr_edge_contract_1 = require("zephyr-edge-contract");
|
|
11
|
+
/** Cache for workspace config to avoid repeated file reads */
|
|
12
|
+
let workspaceConfigCache = null;
|
|
13
|
+
/** Cache for workspace packages to avoid repeated file scanning */
|
|
14
|
+
let workspacePackagesCache = null;
|
|
15
|
+
/**
|
|
16
|
+
* Reads the pnpm-workspace.yaml file to get catalog definitions
|
|
17
|
+
*
|
|
18
|
+
* @param workspacePath Optional path to the workspace file
|
|
19
|
+
* @returns The parsed pnpm workspace configuration
|
|
20
|
+
*/
|
|
21
|
+
function readWorkspaceConfig(workspacePath) {
|
|
22
|
+
if (workspaceConfigCache) {
|
|
23
|
+
return workspaceConfigCache;
|
|
24
|
+
}
|
|
25
|
+
// Try to find pnpm-workspace.yaml in current directory or parent directories
|
|
26
|
+
const searchPath = workspacePath || findWorkspaceFile();
|
|
27
|
+
if (!searchPath) {
|
|
28
|
+
(0, logging_1.ze_log)('Warning: Could not find pnpm-workspace.yaml file');
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
// Using require would be simpler, but we'll use fs to read and YAML parse
|
|
33
|
+
// for more explicit error handling and to avoid needing yaml package
|
|
34
|
+
const yaml = fs.readFileSync(searchPath, 'utf8');
|
|
35
|
+
const config = parseYaml(yaml);
|
|
36
|
+
workspaceConfigCache = config;
|
|
37
|
+
return config;
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
(0, logging_1.ze_log)('Error reading pnpm-workspace.yaml:', error);
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Simple YAML parser for pnpm-workspace.yaml This is a basic implementation that handles
|
|
46
|
+
* the format we expect in pnpm-workspace.yaml
|
|
47
|
+
*/
|
|
48
|
+
function parseYaml(yaml) {
|
|
49
|
+
const result = {};
|
|
50
|
+
let currentSection = null;
|
|
51
|
+
let currentSubsection = null;
|
|
52
|
+
const lines = yaml.split('\n');
|
|
53
|
+
for (const line of lines) {
|
|
54
|
+
const trimmedLine = line.trim();
|
|
55
|
+
// Skip comments and empty lines
|
|
56
|
+
if (trimmedLine.startsWith('#') || !trimmedLine) {
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
// Check for main sections
|
|
60
|
+
if (trimmedLine.endsWith(':')) {
|
|
61
|
+
currentSection = trimmedLine.slice(0, -1);
|
|
62
|
+
if (!currentSection) {
|
|
63
|
+
currentSubsection = null;
|
|
64
|
+
}
|
|
65
|
+
if (currentSection === 'catalogs') {
|
|
66
|
+
result.catalogs = {};
|
|
67
|
+
}
|
|
68
|
+
if (currentSection === 'packages') {
|
|
69
|
+
result.packages = [];
|
|
70
|
+
}
|
|
71
|
+
// Get the catalog's name
|
|
72
|
+
if (trimmedLine.endsWith(':') && currentSection !== 'catalogs' && result.catalogs) {
|
|
73
|
+
currentSubsection = trimmedLine.trim().slice(0, -1);
|
|
74
|
+
result.catalogs[currentSubsection] = {};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// Parse packages section
|
|
78
|
+
if (currentSection === 'packages' && trimmedLine.startsWith('-')) {
|
|
79
|
+
const pattern = trimmedLine.slice(1).trim();
|
|
80
|
+
// Remove quotes if present
|
|
81
|
+
const cleanPattern = pattern.replace(/^['"]|['"]$/g, '');
|
|
82
|
+
if (!result.packages) {
|
|
83
|
+
result.packages = [];
|
|
84
|
+
}
|
|
85
|
+
result.packages.push(cleanPattern);
|
|
86
|
+
}
|
|
87
|
+
// Get the key and value from the line (at here should be npm dependency name)
|
|
88
|
+
if (trimmedLine.includes(':') && currentSection !== 'catalogs' && result.catalogs) {
|
|
89
|
+
if (currentSubsection) {
|
|
90
|
+
const [key, value] = trimmedLine.split(':', 2).map((part) => part.trim());
|
|
91
|
+
// remove all the double quotes and single quotes and replace them with '\'', because this is affecting the replacement
|
|
92
|
+
const cleanedKey = key.replace(/['"]/g, '');
|
|
93
|
+
result.catalogs[currentSubsection][cleanedKey] = value;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Finds the pnpm-workspace.yaml file by looking in the current directory and traversing
|
|
101
|
+
* up the directory tree
|
|
102
|
+
*/
|
|
103
|
+
function findWorkspaceFile() {
|
|
104
|
+
let currentDir = process.cwd();
|
|
105
|
+
const root = path.parse(currentDir).root;
|
|
106
|
+
while (currentDir !== root) {
|
|
107
|
+
const workspacePath = path.join(currentDir, 'pnpm-workspace.yaml');
|
|
108
|
+
if (fs.existsSync(workspacePath)) {
|
|
109
|
+
return workspacePath;
|
|
110
|
+
}
|
|
111
|
+
currentDir = path.dirname(currentDir);
|
|
112
|
+
}
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Gets the workspace root directory by finding the directory containing the
|
|
117
|
+
* pnpm-workspace.yaml file
|
|
118
|
+
*/
|
|
119
|
+
function getWorkspaceRoot() {
|
|
120
|
+
const workspaceFile = findWorkspaceFile();
|
|
121
|
+
if (!workspaceFile) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
return path.dirname(workspaceFile);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Find package.json files in a directory according to glob-like patterns This is a custom
|
|
128
|
+
* implementation to replace glob.sync
|
|
129
|
+
*
|
|
130
|
+
* @param rootDir The root directory to start searching from
|
|
131
|
+
* @param includePattern The pattern to include (e.g., "libs/**")
|
|
132
|
+
* @param excludePatterns Array of patterns to exclude
|
|
133
|
+
* @returns Array of absolute paths to matching package.json files
|
|
134
|
+
*/
|
|
135
|
+
function findPackageJsonFiles(rootDir, includePattern, excludePatterns = []) {
|
|
136
|
+
const results = [];
|
|
137
|
+
// Convert glob-like pattern to regex pattern for matching
|
|
138
|
+
const patternParts = includePattern.split('/');
|
|
139
|
+
const baseDir = patternParts[0] === '**' ? '' : patternParts[0];
|
|
140
|
+
const hasDoubleGlob = includePattern.includes('**');
|
|
141
|
+
// Build the full base path
|
|
142
|
+
const basePath = path.join(rootDir, baseDir);
|
|
143
|
+
// Check if the base directory exists
|
|
144
|
+
if (!fs.existsSync(basePath) || !fs.statSync(basePath).isDirectory()) {
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
147
|
+
// Function to check if a path should be excluded
|
|
148
|
+
const isExcluded = (filePath) => {
|
|
149
|
+
const relativePath = path.relative(rootDir, filePath);
|
|
150
|
+
return excludePatterns.some((pattern) => {
|
|
151
|
+
// Remove the ! from negated patterns
|
|
152
|
+
const cleanPattern = pattern.startsWith('!') ? pattern.slice(1) : pattern;
|
|
153
|
+
// Simple string matching for exact paths or basic wildcards
|
|
154
|
+
if (cleanPattern.endsWith('/**')) {
|
|
155
|
+
const prefix = cleanPattern.slice(0, -3);
|
|
156
|
+
return relativePath.startsWith(prefix);
|
|
157
|
+
}
|
|
158
|
+
return (relativePath === cleanPattern ||
|
|
159
|
+
(cleanPattern.includes('*') &&
|
|
160
|
+
relativePath.startsWith(cleanPattern.split('*')[0])));
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
// Recursive function to find package.json files
|
|
164
|
+
const findRecursively = (dir, depth = 0) => {
|
|
165
|
+
if (isExcluded(dir)) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
try {
|
|
169
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
170
|
+
for (const entry of entries) {
|
|
171
|
+
const fullPath = path.join(dir, entry.name);
|
|
172
|
+
if (isExcluded(fullPath)) {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
if (entry.isDirectory() && (hasDoubleGlob || depth < patternParts.length)) {
|
|
176
|
+
// Recurse into directories if we have ** or haven't reached max depth
|
|
177
|
+
findRecursively(fullPath, depth + 1);
|
|
178
|
+
}
|
|
179
|
+
else if (entry.name === 'package.json') {
|
|
180
|
+
results.push(fullPath);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
(0, logging_1.ze_log)(`Error reading directory ${dir}:`, error);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
// Start the recursive search
|
|
189
|
+
findRecursively(basePath);
|
|
190
|
+
return results;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Finds all package.json files in the workspace based on the patterns specified in the
|
|
194
|
+
* pnpm-workspace.yaml file
|
|
195
|
+
*/
|
|
196
|
+
function findWorkspacePackages() {
|
|
197
|
+
// Return cached result if available
|
|
198
|
+
if (workspacePackagesCache) {
|
|
199
|
+
return workspacePackagesCache;
|
|
200
|
+
}
|
|
201
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
202
|
+
if (!workspaceRoot) {
|
|
203
|
+
(0, logging_1.ze_log)('Warning: Could not find workspace root directory');
|
|
204
|
+
return new Map();
|
|
205
|
+
}
|
|
206
|
+
const config = readWorkspaceConfig();
|
|
207
|
+
if (!config.packages || config.packages.length === 0) {
|
|
208
|
+
(0, logging_1.ze_log)('Warning: No workspace packages defined in pnpm-workspace.yaml');
|
|
209
|
+
return new Map();
|
|
210
|
+
}
|
|
211
|
+
const packageJsonMap = new Map();
|
|
212
|
+
const includePatterns = [];
|
|
213
|
+
const excludePatterns = [];
|
|
214
|
+
// Separate include and exclude patterns
|
|
215
|
+
for (const pattern of config.packages) {
|
|
216
|
+
if (pattern.startsWith('!')) {
|
|
217
|
+
excludePatterns.push(pattern.slice(1));
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
includePatterns.push(pattern);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
// Process include patterns
|
|
224
|
+
for (const includePattern of includePatterns) {
|
|
225
|
+
try {
|
|
226
|
+
// Use our own file finder instead of glob
|
|
227
|
+
const packageJsonPaths = findPackageJsonFiles(workspaceRoot, includePattern, excludePatterns);
|
|
228
|
+
// Read each package.json file
|
|
229
|
+
for (const packageJsonPath of packageJsonPaths) {
|
|
230
|
+
try {
|
|
231
|
+
const packageJsonContent = fs.readFileSync(packageJsonPath, 'utf8');
|
|
232
|
+
const packageJson = (0, zephyr_edge_contract_1.safe_json_parse)(packageJsonContent);
|
|
233
|
+
if (packageJson && packageJson.name) {
|
|
234
|
+
packageJsonMap.set(packageJson.name, packageJson);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
catch (error) {
|
|
238
|
+
(0, logging_1.ze_log)(`Error reading package.json at ${packageJsonPath}:`, error);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
catch (error) {
|
|
243
|
+
(0, logging_1.ze_log)(`Error processing pattern ${includePattern}:`, error);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
// Cache the result
|
|
247
|
+
workspacePackagesCache = packageJsonMap;
|
|
248
|
+
return packageJsonMap;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Resolves a workspace:* dependency by finding the package in the workspace
|
|
252
|
+
*
|
|
253
|
+
* @param packageName The name of the package to find in the workspace
|
|
254
|
+
* @returns The version of the package, or null if not found
|
|
255
|
+
*/
|
|
256
|
+
function resolveWorkspaceVersion(packageName) {
|
|
257
|
+
var _a;
|
|
258
|
+
const workspacePackages = findWorkspacePackages();
|
|
259
|
+
if (workspacePackages.has(packageName)) {
|
|
260
|
+
return ((_a = workspacePackages.get(packageName)) === null || _a === void 0 ? void 0 : _a.version) || null;
|
|
261
|
+
}
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Resolves a catalog dependency version string (e.g., "catalog:react18") to its actual
|
|
266
|
+
* semver version range from pnpm-workspace.yaml
|
|
267
|
+
*
|
|
268
|
+
* @param versionString The version string to resolve
|
|
269
|
+
* @param packageName Optional package name to look up specific package in catalog
|
|
270
|
+
* @returns The resolved semver version or the original version if not a catalog reference
|
|
271
|
+
*/
|
|
272
|
+
function resolveCatalogVersion(versionString, packageName) {
|
|
273
|
+
// If it's not a catalog reference, return as is
|
|
274
|
+
if (!versionString ||
|
|
275
|
+
typeof versionString !== 'string' ||
|
|
276
|
+
!versionString.startsWith('catalog:')) {
|
|
277
|
+
return versionString;
|
|
278
|
+
}
|
|
279
|
+
// Extract catalog name from format "catalog:catalogName"
|
|
280
|
+
const catalogName = versionString.substring(8); // Remove "catalog:" prefix
|
|
281
|
+
// Read workspace config to get catalog information
|
|
282
|
+
const config = readWorkspaceConfig();
|
|
283
|
+
// If no catalogs section or the specified catalog doesn't exist
|
|
284
|
+
if (!config.catalogs || !Object.keys(config.catalogs).includes(catalogName)) {
|
|
285
|
+
(0, logging_1.ze_log)(`Warning: Catalog "${catalogName}" not found in pnpm-workspace.yaml`);
|
|
286
|
+
return versionString; // Return the original version string as fallback
|
|
287
|
+
}
|
|
288
|
+
// If a package name is provided, look for that specific package in the catalog
|
|
289
|
+
if (packageName && config.catalogs[catalogName][packageName]) {
|
|
290
|
+
return config.catalogs[catalogName][packageName];
|
|
291
|
+
}
|
|
292
|
+
// Return an object representation of all versions in this catalog
|
|
293
|
+
// This is useful for module federation shared config
|
|
294
|
+
return JSON.stringify(config.catalogs[catalogName]);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Gets all packages with their versions for a specific catalog
|
|
298
|
+
*
|
|
299
|
+
* @param catalogName The name of the catalog
|
|
300
|
+
* @returns Object mapping package names to their versions, or null if catalog not found
|
|
301
|
+
*/
|
|
302
|
+
function getCatalogPackages(catalogName) {
|
|
303
|
+
// Read workspace config to get catalog information
|
|
304
|
+
const config = readWorkspaceConfig();
|
|
305
|
+
// If no catalogs section or the specified catalog doesn't exist
|
|
306
|
+
if (!config.catalogs || !Object.keys(config.catalogs).includes(catalogName)) {
|
|
307
|
+
(0, logging_1.ze_log)(`Warning: Catalog "${catalogName}" not found in pnpm-workspace.yaml`);
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
return config.catalogs[catalogName];
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Resolves a dependency versions object, looking for catalog: references and replacing
|
|
314
|
+
* them with the actual semver version ranges
|
|
315
|
+
*
|
|
316
|
+
* @param dependencies Package dependencies object (e.g., from package.json)
|
|
317
|
+
* @returns New dependencies object with resolved versions
|
|
318
|
+
*/
|
|
319
|
+
function resolveCatalogDependencies(dependencies) {
|
|
320
|
+
if (!dependencies)
|
|
321
|
+
return {};
|
|
322
|
+
const result = {};
|
|
323
|
+
for (const [name, version] of Object.entries(dependencies)) {
|
|
324
|
+
if (version && typeof version === 'string' && version.startsWith('catalog:')) {
|
|
325
|
+
const catalogName = version.substring(8);
|
|
326
|
+
const catalogPackages = getCatalogPackages(catalogName);
|
|
327
|
+
if (catalogPackages && catalogPackages[name]) {
|
|
328
|
+
// Use the specific package version from the catalog
|
|
329
|
+
result[name] = catalogPackages[name];
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
// If the exact package isn't in the catalog, keep the original for backward compatibility
|
|
333
|
+
result[name] = version;
|
|
334
|
+
(0, logging_1.ze_log)(`Warning: Package ${name} not found in catalog ${catalogName}, using original reference`);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
else if (version === 'workspace:*') {
|
|
338
|
+
// Handle workspace references by finding the package in the workspace
|
|
339
|
+
const resolvedVersion = resolveWorkspaceVersion(name);
|
|
340
|
+
if (resolvedVersion) {
|
|
341
|
+
result[name] = resolvedVersion;
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
// If the package isn't found in the workspace, keep the original
|
|
345
|
+
result[name] = version;
|
|
346
|
+
(0, logging_1.ze_log)(`Warning: Package ${name} not found in workspace, using original reference`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
else if (version && typeof version === 'string') {
|
|
350
|
+
// Handle normal semver
|
|
351
|
+
result[name] = version;
|
|
352
|
+
}
|
|
353
|
+
else if (version) {
|
|
354
|
+
// Handle other non-standard formats by stringifying
|
|
355
|
+
result[name] = String(version);
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
// Fallback for edge cases
|
|
359
|
+
result[name] = '*';
|
|
360
|
+
(0, logging_1.ze_log)(`Warning: No valid version found for ${name}, it's using wildcard '*'`);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return result;
|
|
364
|
+
}
|
|
365
|
+
//# sourceMappingURL=resolve-catalog-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-catalog-version.js","sourceRoot":"","sources":["../../../src/lib/build-context/resolve-catalog-version.ts"],"names":[],"mappings":";;AAuUA,sDAiCC;AAQD,gDAWC;AASD,gEAgDC;;AApbD,+CAAyB;AACzB,mDAA6B;AAE7B,wCAAoC;AACpC,+DAAuD;AAevD,8DAA8D;AAC9D,IAAI,oBAAoB,GAAyB,IAAI,CAAC;AAEtD,mEAAmE;AACnE,IAAI,sBAAsB,GAAsC,IAAI,CAAC;AAErE;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,aAAsB;IACjD,IAAI,oBAAoB,EAAE,CAAC;QACzB,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,6EAA6E;IAC7E,MAAM,UAAU,GAAG,aAAa,IAAI,iBAAiB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,GAAG,CAAC;YACnB,IAAA,gBAAM,EAAC,uCAAuC,IAAI,2BAA2B,CAAC,CAAC;QACjF,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-agent",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250513050029",
|
|
4
4
|
"description": "Zephyr plugin agent",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"socket.io-client": "^4.7.5",
|
|
39
39
|
"tslib": "^2.8.1",
|
|
40
40
|
"uuid": "^8.3.2",
|
|
41
|
-
"zephyr-edge-contract": "0.0.0-canary-
|
|
41
|
+
"zephyr-edge-contract": "0.0.0-canary-20250513050029"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "^29.7.0",
|