ralphctl 0.15.0 → 0.15.1

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.
@@ -5409,7 +5409,7 @@ var createPullRequestCreator = (deps) => async (input) => {
5409
5409
  };
5410
5410
 
5411
5411
  // src/integration/ai/prompts/_engine/fs-template-loader.ts
5412
- import { promises as fs8 } from "fs";
5412
+ import { existsSync, promises as fs8 } from "fs";
5413
5413
  import { dirname as dirname8, join as join11 } from "path";
5414
5414
  import { fileURLToPath } from "url";
5415
5415
  var createFsTemplateLoader = (templatesDir) => ({
@@ -5443,10 +5443,13 @@ var tryRead = async (path2) => {
5443
5443
  };
5444
5444
  }
5445
5445
  };
5446
+ var resolveTemplatesDir = (moduleUrl, exists = existsSync) => {
5447
+ const here = dirname8(fileURLToPath(moduleUrl));
5448
+ const beside = join11(here, "prompts");
5449
+ return exists(beside) ? beside : join11(here, "..");
5450
+ };
5446
5451
  var TEMPLATES_DIR = (() => {
5447
- const here = dirname8(fileURLToPath(import.meta.url));
5448
- const isBundled = import.meta.url.endsWith("/cli.mjs") || import.meta.url.endsWith("\\cli.mjs");
5449
- const path2 = isBundled ? join11(here, "prompts") : join11(here, "..");
5452
+ const path2 = resolveTemplatesDir(import.meta.url);
5450
5453
  const parsed = AbsolutePath.parse(path2);
5451
5454
  if (!parsed.ok) {
5452
5455
  throw new Error(`fs-template-loader: bundled-templates path is not absolute: ${path2}`);
@@ -5925,7 +5928,7 @@ var createNpmVersionChecker = (deps) => {
5925
5928
  // package.json
5926
5929
  var package_default = {
5927
5930
  name: "ralphctl",
5928
- version: "0.15.0",
5931
+ version: "0.15.1",
5929
5932
  description: "Agent harness for long-running AI coding tasks \u2014 orchestrates Claude Code, GitHub Copilot, and OpenAI Codex across repositories",
5930
5933
  homepage: "https://github.com/lukas-grigis/ralphctl",
5931
5934
  type: "module",
@@ -6105,7 +6108,7 @@ var nextEffortRung = (provider, model, currentEffort) => {
6105
6108
  };
6106
6109
 
6107
6110
  // src/integration/ai/skills/_engine/filesystem-skills-adapter.ts
6108
- import { existsSync } from "fs";
6111
+ import { existsSync as existsSync2 } from "fs";
6109
6112
  import { mkdir, rm, rmdir, writeFile } from "fs/promises";
6110
6113
  import { join as join19 } from "path";
6111
6114
 
@@ -6191,7 +6194,7 @@ var createFilesystemSkillsAdapter = (deps) => {
6191
6194
  const excludePattern = `${skillsSubdir}/ralphctl-*`;
6192
6195
  const pruneStale = () => {
6193
6196
  for (const key of [...installed.keys()]) {
6194
- if (!existsSync(key)) installed.delete(key);
6197
+ if (!existsSync2(key)) installed.delete(key);
6195
6198
  }
6196
6199
  };
6197
6200
  return {
@@ -6201,7 +6204,7 @@ var createFilesystemSkillsAdapter = (deps) => {
6201
6204
  const tracked = installed.get(String(sessionDir)) ?? /* @__PURE__ */ new Set();
6202
6205
  for (const skill of skills) {
6203
6206
  const dst = join19(skillsDir, skill.name);
6204
- if (existsSync(dst)) continue;
6207
+ if (existsSync2(dst)) continue;
6205
6208
  try {
6206
6209
  await mkdir(dst, { recursive: true });
6207
6210
  await writeFile(join19(dst, "SKILL.md"), renderSkill(skill), "utf-8");
@@ -6231,7 +6234,7 @@ var createFilesystemSkillsAdapter = (deps) => {
6231
6234
  async installBareSkill(sessionDir, skill) {
6232
6235
  const skillsDir = join19(String(sessionDir), skillsSubdir);
6233
6236
  const dst = join19(skillsDir, skill.name);
6234
- if (existsSync(join19(dst, "SKILL.md"))) return Result.ok(void 0);
6237
+ if (existsSync2(join19(dst, "SKILL.md"))) return Result.ok(void 0);
6235
6238
  try {
6236
6239
  await mkdir(dst, { recursive: true });
6237
6240
  await writeFile(join19(dst, "SKILL.md"), renderSkill(skill), "utf-8");
@@ -6335,6 +6338,7 @@ var createSkillsAdapter = (deps) => {
6335
6338
  // src/integration/ai/skills/bundled/source.ts
6336
6339
  import { dirname as dirname9, join as join20 } from "path";
6337
6340
  import { fileURLToPath as fileURLToPath2 } from "url";
6341
+ import { existsSync as existsSync3 } from "fs";
6338
6342
  import { readFile as readFile2 } from "fs/promises";
6339
6343
 
6340
6344
  // src/integration/ai/skills/_engine/registry.ts
@@ -6479,11 +6483,12 @@ var parseSkill = (label, path2, name, raw) => {
6479
6483
  };
6480
6484
 
6481
6485
  // src/integration/ai/skills/bundled/source.ts
6482
- var defaultBundledRoot = (() => {
6483
- const here = dirname9(fileURLToPath2(import.meta.url));
6484
- const isBundled = import.meta.url.endsWith("/cli.mjs") || import.meta.url.endsWith("\\cli.mjs");
6485
- return isBundled ? join20(here, "skills") : here;
6486
- })();
6486
+ var resolveBundledRoot = (moduleUrl, exists = existsSync3) => {
6487
+ const here = dirname9(fileURLToPath2(moduleUrl));
6488
+ const beside = join20(here, "skills");
6489
+ return exists(beside) ? beside : here;
6490
+ };
6491
+ var defaultBundledRoot = resolveBundledRoot(import.meta.url);
6487
6492
  var readSkill = async (root, name) => {
6488
6493
  const path2 = join20(root, name, "SKILL.md");
6489
6494
  let raw;
package/dist/cli.mjs CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  // src/index.ts
4
4
  process.env.NODE_ENV ??= "production";
5
- var { runCli } = await import("./cli-CKPJ5SY4.mjs");
5
+ var { runCli } = await import("./cli-2XQNS26Z.mjs");
6
6
  await runCli(process.argv);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "generatedAt": "2026-07-03T20:19:33.217Z",
3
+ "generatedAt": "2026-07-06T12:01:31.338Z",
4
4
  "assets": [
5
5
  "prompts/_partials/conventions-agents-md.md",
6
6
  "prompts/_partials/conventions-claude-md.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ralphctl",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Agent harness for long-running AI coding tasks — orchestrates Claude Code, GitHub Copilot, and OpenAI Codex across repositories",
5
5
  "homepage": "https://github.com/lukas-grigis/ralphctl",
6
6
  "type": "module",