@base44-preview/cli 0.0.34-pr.228.8754791 → 0.0.34-pr.228.89a4207
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/cli/index.js +2 -7
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -185439,18 +185439,13 @@ async function writeAgents(agentsDir, remoteAgents) {
|
|
|
185439
185439
|
deleted.push(name2);
|
|
185440
185440
|
}
|
|
185441
185441
|
}
|
|
185442
|
-
const claimedPaths = new Set([...nameToEntry.values()].map((e2) => e2.filePath));
|
|
185443
185442
|
const written = [];
|
|
185444
185443
|
for (const agent of remoteAgents) {
|
|
185445
185444
|
const existing = nameToEntry.get(agent.name);
|
|
185446
185445
|
if (existing && isDeepStrictEqual(existing.raw, agent)) {
|
|
185447
185446
|
continue;
|
|
185448
185447
|
}
|
|
185449
|
-
const
|
|
185450
|
-
if (!existing && claimedPaths.has(defaultPath)) {
|
|
185451
|
-
throw new Error(`Cannot write agent "${agent.name}": file "${defaultPath}" is already used by another agent`);
|
|
185452
|
-
}
|
|
185453
|
-
const filePath = existing?.filePath ?? defaultPath;
|
|
185448
|
+
const filePath = existing?.filePath ?? join3(agentsDir, `${agent.name}.${CONFIG_FILE_EXTENSION}`);
|
|
185454
185449
|
await writeJsonFile(filePath, agent);
|
|
185455
185450
|
written.push(agent.name);
|
|
185456
185451
|
}
|
|
@@ -200620,4 +200615,4 @@ export {
|
|
|
200620
200615
|
CLIExitError
|
|
200621
200616
|
};
|
|
200622
200617
|
|
|
200623
|
-
//# debugId=
|
|
200618
|
+
//# debugId=199B0E01CD0F366764756E2164756E21
|