baller-maester 0.4.1 → 0.4.2
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/CHANGELOG.md +5 -0
- package/dist/cli/main.js +6 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2242,25 +2242,25 @@ async function readOrUndefined(filePath) {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
2244
|
var CONFIG_FILE = path.join(".codex", "config.toml");
|
|
2245
|
-
function maesterBlock(
|
|
2246
|
-
return { command: launch.command, args: [...launch.args]
|
|
2245
|
+
function maesterBlock(launch) {
|
|
2246
|
+
return { command: launch.command, args: [...launch.args] };
|
|
2247
2247
|
}
|
|
2248
2248
|
async function writeCodexMcpEntry(repoRoot, options = {}) {
|
|
2249
2249
|
const filePath = path.join(repoRoot, CONFIG_FILE);
|
|
2250
2250
|
await promises.mkdir(path.dirname(filePath), { recursive: true });
|
|
2251
2251
|
const existingText = await readOrUndefined2(filePath);
|
|
2252
2252
|
const launch = options.launch ?? resolveMaesterLaunchCommand();
|
|
2253
|
-
const newText = renderTomlWithMaesterBlock(existingText,
|
|
2253
|
+
const newText = renderTomlWithMaesterBlock(existingText, launch);
|
|
2254
2254
|
if (existingText === newText) {
|
|
2255
2255
|
return { filePath, action: "unchanged" };
|
|
2256
2256
|
}
|
|
2257
2257
|
await promises.writeFile(filePath, newText, "utf8");
|
|
2258
2258
|
return { filePath, action: "written" };
|
|
2259
2259
|
}
|
|
2260
|
-
function renderTomlWithMaesterBlock(existingText,
|
|
2260
|
+
function renderTomlWithMaesterBlock(existingText, launch) {
|
|
2261
2261
|
const parsed = existingText && existingText.trim().length > 0 ? TOML.parse(existingText) : {};
|
|
2262
2262
|
const mcpServers = isJsonMap(parsed.mcp_servers) ? { ...parsed.mcp_servers } : {};
|
|
2263
|
-
mcpServers.maester = maesterBlock(
|
|
2263
|
+
mcpServers.maester = maesterBlock(launch);
|
|
2264
2264
|
const next = { ...parsed, mcp_servers: mcpServers };
|
|
2265
2265
|
return TOML.stringify(next);
|
|
2266
2266
|
}
|
|
@@ -2334,7 +2334,7 @@ async function runWriter(target, repoRoot) {
|
|
|
2334
2334
|
|
|
2335
2335
|
// package.json
|
|
2336
2336
|
var package_default = {
|
|
2337
|
-
version: "0.4.
|
|
2337
|
+
version: "0.4.2"};
|
|
2338
2338
|
var PACKAGE_VERSION = package_default.version;
|
|
2339
2339
|
|
|
2340
2340
|
// src/core/skill/version.ts
|