@starlein/paperclip-plugin-company-wizard 0.3.18 → 0.3.19

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/worker.js CHANGED
@@ -10647,11 +10647,11 @@ var PaperclipClient = class {
10647
10647
  });
10648
10648
  }
10649
10649
  /**
10650
- * Resolve a clipper role name to a Paperclip API role enum.
10650
+ * Resolve a role name to a Paperclip API role enum.
10651
10651
  * Uses role.json's paperclipRole field, falls back to 'general'.
10652
10652
  */
10653
- static resolveRole(clipperRole, roleData) {
10654
- if (BASE_ROLE_MAP[clipperRole]) return BASE_ROLE_MAP[clipperRole];
10653
+ static resolveRole(roleName, roleData) {
10654
+ if (BASE_ROLE_MAP[roleName]) return BASE_ROLE_MAP[roleName];
10655
10655
  if (roleData?.paperclipRole) return roleData.paperclipRole;
10656
10656
  return "general";
10657
10657
  }
@@ -11121,7 +11121,7 @@ var plugin = definePlugin({
11121
11121
  const cfg = await ctx.config.get() ?? {};
11122
11122
  const companyName = typeof params.companyName === "string" && params.companyName.trim() ? params.companyName.trim() : "Preview";
11123
11123
  const templatesDir = await ensureTemplatesDir(cfg);
11124
- tmpDir = path2.join(os.tmpdir(), `clipper-preview-${Date.now()}`);
11124
+ tmpDir = path2.join(os.tmpdir(), `company-wizard-preview-${Date.now()}`);
11125
11125
  const companiesDir = resolveCompaniesDir(cfg);
11126
11126
  const [presets, allModules] = await Promise.all([
11127
11127
  loadPresets(templatesDir),