@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/LICENSE +5 -1
- package/README.md +17 -5
- package/dist/manifest.js +2 -2
- package/dist/manifest.js.map +1 -1
- package/dist/ui/index.css +1 -1
- package/dist/ui/index.css.map +2 -2
- package/dist/ui/index.js +2 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/worker.js +4 -4
- package/dist/worker.js.map +2 -2
- package/package.json +5 -2
- package/templates/ai-wizard/interview-system.md +1 -1
- package/templates/ai-wizard/single-shot-system.md +1 -1
- package/templates/modules/architecture-plan/docs/architecture-template.md +1 -1
- package/templates/modules/architecture-plan/docs/design-system-template.md +1 -1
- package/templates/modules/brand-identity/docs/brand-identity-template.md +1 -1
- package/templates/modules/market-analysis/docs/market-analysis-template.md +1 -1
- package/templates/modules/tech-stack/docs/tech-stack-template.md +1 -1
- package/templates/modules/user-testing/docs/user-testing-template.md +1 -1
- package/templates/modules/vision-workshop/docs/vision-template.md +1 -1
package/dist/worker.js
CHANGED
|
@@ -10647,11 +10647,11 @@ var PaperclipClient = class {
|
|
|
10647
10647
|
});
|
|
10648
10648
|
}
|
|
10649
10649
|
/**
|
|
10650
|
-
* Resolve a
|
|
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(
|
|
10654
|
-
if (BASE_ROLE_MAP[
|
|
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(), `
|
|
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),
|