bpmax-cli 0.2.1-beta.81 → 0.2.1-beta.82

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/bin.js CHANGED
@@ -540,7 +540,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
540
540
  // package.json
541
541
  var package_default = {
542
542
  name: "bpmax-cli",
543
- version: "0.2.1-beta.81",
543
+ version: "0.2.1-beta.82",
544
544
  description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
545
545
  type: "module",
546
546
  bin: {
@@ -40727,8 +40727,25 @@ function registerIssueCommands(program2, deps = {}) {
40727
40727
 
40728
40728
  // src/core/icon-catalog.ts
40729
40729
  import { readFile as readFile22 } from "fs/promises";
40730
+ import { existsSync as existsSync2 } from "fs";
40731
+ import { fileURLToPath as fileURLToPath5 } from "url";
40730
40732
  import path23 from "path";
40731
- var DEFAULT_ICON_CATALOG = path23.resolve(process.cwd(), "skills/bpmax-icon-catalog/assets/ri-icons.json");
40733
+ var CATALOG_RELATIVE = path23.join("skills", "bpmax-icon-catalog", "assets", "ri-icons.json");
40734
+ function findCatalogFrom(start) {
40735
+ let current = path23.resolve(start);
40736
+ while (true) {
40737
+ const candidate = path23.join(current, CATALOG_RELATIVE);
40738
+ if (existsSync2(candidate)) return candidate;
40739
+ const parent = path23.dirname(current);
40740
+ if (parent === current) return void 0;
40741
+ current = parent;
40742
+ }
40743
+ }
40744
+ function resolveDefaultIconCatalog() {
40745
+ const packageRoot = path23.resolve(path23.dirname(fileURLToPath5(import.meta.url)), "..", "..");
40746
+ return findCatalogFrom(process.cwd()) ?? findCatalogFrom(packageRoot) ?? path23.resolve(process.cwd(), CATALOG_RELATIVE);
40747
+ }
40748
+ var DEFAULT_ICON_CATALOG = resolveDefaultIconCatalog();
40732
40749
  async function loadRiIcons(source = process.env.BPMAX_ICON_CATALOG || DEFAULT_ICON_CATALOG) {
40733
40750
  const text5 = await readFile22(source, "utf8");
40734
40751
  if (source.endsWith(".json")) {
@@ -43745,7 +43762,7 @@ function registerProjectCommands(program2) {
43745
43762
 
43746
43763
  // src/commands/recipe.ts
43747
43764
  import { spawn as spawn2 } from "child_process";
43748
- import { fileURLToPath as fileURLToPath5 } from "url";
43765
+ import { fileURLToPath as fileURLToPath6 } from "url";
43749
43766
 
43750
43767
  // src/core/recipes.ts
43751
43768
  import { access as access2, mkdir as mkdir16, readdir as readdir7, readFile as readFile24, writeFile as writeFile17 } from "fs/promises";
@@ -43989,7 +44006,7 @@ async function writeRecipeScaffold(options) {
43989
44006
 
43990
44007
  // src/commands/recipe.ts
43991
44008
  function currentCliInvocation() {
43992
- const entry = process.argv[1] || fileURLToPath5(import.meta.url);
44009
+ const entry = process.argv[1] || fileURLToPath6(import.meta.url);
43993
44010
  return {
43994
44011
  command: process.execPath,
43995
44012
  argsPrefix: [entry]
@@ -45736,7 +45753,7 @@ function registerTaskbookCommands(program2) {
45736
45753
  // src/commands/test-suite.ts
45737
45754
  import { readFile as readFile26 } from "fs/promises";
45738
45755
  import path26 from "path";
45739
- import { fileURLToPath as fileURLToPath6 } from "url";
45756
+ import { fileURLToPath as fileURLToPath7 } from "url";
45740
45757
  function collect4(value, previous = []) {
45741
45758
  previous.push(value);
45742
45759
  return previous;
@@ -45770,7 +45787,7 @@ async function resolveE2eSkillSource(sourceSkill, agent) {
45770
45787
  suggestion: "Run bpmax-cli update to install matching skills, or use --source-skill <repo>/skills/bpmax-e2e-flow-test-operator/SKILL.md for explicit source validation."
45771
45788
  });
45772
45789
  }
45773
- const packageRoot = await resolvePackageRootFrom(fileURLToPath6(import.meta.url));
45790
+ const packageRoot = await resolvePackageRootFrom(fileURLToPath7(import.meta.url));
45774
45791
  const packageSkill = path26.join(packageRoot, "skills", "bpmax-e2e-flow-test-operator", "SKILL.md");
45775
45792
  const expectedHash = await skillBundleSha256(packageSkill);
45776
45793
  const sources = await installedSkillSourcePaths("bpmax-e2e-flow-test-operator", agent);