fraim 2.0.166 → 2.0.167

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.
Files changed (42) hide show
  1. package/dist/src/ai-hub/catalog.js +20 -27
  2. package/dist/src/ai-hub/server.js +418 -2
  3. package/dist/src/config/ai-manager-hiring.js +121 -0
  4. package/dist/src/config/compat.js +16 -0
  5. package/dist/src/config/feature-flags.js +25 -0
  6. package/dist/src/config/persona-capability-bundles.js +273 -0
  7. package/dist/src/config/persona-hiring.js +270 -0
  8. package/dist/src/config/portfolio-slug-overrides.js +17 -0
  9. package/dist/src/config/pricing.js +37 -0
  10. package/dist/src/config/stripe.js +43 -0
  11. package/dist/src/core/config-loader.js +9 -5
  12. package/dist/src/core/fraim-config-schema.generated.js +0 -21
  13. package/dist/src/core/utils/local-registry-resolver.js +8 -1
  14. package/package.json +5 -1
  15. package/public/ai-hub/index.html +81 -0
  16. package/public/ai-hub/review.css +13 -0
  17. package/public/ai-hub/script.js +414 -4
  18. package/public/ai-hub/styles.css +56 -0
  19. package/public/portfolio/ashley.html +523 -0
  20. package/public/portfolio/auditya.html +83 -0
  21. package/public/portfolio/banke.html +83 -0
  22. package/public/portfolio/beza.html +659 -0
  23. package/public/portfolio/careena.html +632 -0
  24. package/public/portfolio/casey.html +568 -0
  25. package/public/portfolio/celia.html +490 -0
  26. package/public/portfolio/deidre.html +642 -0
  27. package/public/portfolio/gautam.html +597 -0
  28. package/public/portfolio/hari.html +469 -0
  29. package/public/portfolio/huxley.html +1354 -0
  30. package/public/portfolio/index.html +741 -0
  31. package/public/portfolio/maestro.html +518 -0
  32. package/public/portfolio/mandy.html +590 -0
  33. package/public/portfolio/mona.html +597 -0
  34. package/public/portfolio/pam.html +887 -0
  35. package/public/portfolio/procella.html +107 -0
  36. package/public/portfolio/qasm.html +569 -0
  37. package/public/portfolio/ricardo.html +489 -0
  38. package/public/portfolio/sade.html +560 -0
  39. package/public/portfolio/sam.html +654 -0
  40. package/public/portfolio/sechar.html +580 -0
  41. package/public/portfolio/sreya.html +599 -0
  42. package/public/portfolio/swen.html +601 -0
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HUMAN_MANAGER_PROFILES = exports.AI_MANAGER_QUALITIES = exports.HIRING_SERVICES = void 0;
4
+ exports.getHumanManagerProfile = getHumanManagerProfile;
5
+ exports.buildSearchQuery = buildSearchQuery;
6
+ exports.buildJobDescription = buildJobDescription;
7
+ exports.buildServiceUrl = buildServiceUrl;
8
+ exports.buildManagerHiringCatalog = buildManagerHiringCatalog;
9
+ /**
10
+ * Issue #538 — human-manager hiring engine (app side).
11
+ *
12
+ * Self-contained on purpose: the app (AI Hub UI modal + bootstrap) must resolve this
13
+ * at runtime in every packaging context (dev tsx, compiled dist, packed CLI), so it
14
+ * must NOT import across the app→registry boundary. The `hire-the-right-human-ai-manager`
15
+ * job uses the mirror engine `registry/scripts/ai-manager-hiring.ts` (self-contained +
16
+ * CLI). The two are kept identical by a parity test (tests/isolated/test-538-ai-manager-hiring.ts);
17
+ * that is the DRY contract — one behavior, enforced, with no fragile cross-boundary import.
18
+ */
19
+ const persona_hiring_1 = require("./persona-hiring");
20
+ exports.HIRING_SERVICES = ['linkedin', 'indeed', 'seekout'];
21
+ /** The qualities of a strong AI manager — embedded in both the query and the JD. */
22
+ exports.AI_MANAGER_QUALITIES = [
23
+ { title: 'Clear specification & written communication', detail: 'Can brief an AI agent so it executes correctly the first time.' },
24
+ { title: 'Trust-but-verify judgment', detail: 'Knows when to delegate to the agent and when to review deeply.' },
25
+ { title: 'Coaching mindset', detail: 'Gives feedback that compounds into reusable rules and learnings.' },
26
+ { title: 'Outcome ownership & AI fluency', detail: 'Owns results; comfortable directing autonomous agents.' },
27
+ ];
28
+ const GENERALIST_PROFILE = {
29
+ humanTitle: 'Manager',
30
+ keywords: ['"Manager"', '"Director"', '"Team Lead"', '"Chief of Staff"'],
31
+ };
32
+ /** Role key -> the human manager best suited to manage that AI employee. Mirror of registry/scripts/ai-manager-hiring.ts. */
33
+ exports.HUMAN_MANAGER_PROFILES = {
34
+ maestro: { humanTitle: 'Co-Founder / General Manager', keywords: ['"Co-Founder"', '"General Manager"', '"Chief of Staff"', '"Founder"'] },
35
+ beza: { humanTitle: 'Head of Strategy', keywords: ['"Head of Strategy"', '"Strategy Director"', '"Chief of Staff"'] },
36
+ pam: { humanTitle: 'Head of Product', keywords: ['"Head of Product"', '"Group Product Manager"', '"Director of Product"'] },
37
+ swen: { humanTitle: 'Engineering Manager', keywords: ['"Engineering Manager"', '"Tech Lead"', '"Staff Software Engineer"'] },
38
+ qasm: { humanTitle: 'QA Manager', keywords: ['"QA Manager"', '"QA Lead"', '"Head of Quality"'] },
39
+ huxley: { humanTitle: 'Design Manager', keywords: ['"Design Manager"', '"Head of Design"', '"Design Lead"'] },
40
+ gautam: { humanTitle: 'Marketing Director', keywords: ['"Head of Growth"', '"Marketing Director"', '"Demand Generation Lead"'] },
41
+ cela: { humanTitle: 'General Counsel', keywords: ['"General Counsel"', '"Head of Legal"', '"Legal Director"'] },
42
+ sekhar: { humanTitle: 'Security Manager', keywords: ['"Security Manager"', '"Head of Security"', '"CISO"'] },
43
+ ashley: { humanTitle: 'Chief of Staff', keywords: ['"Chief of Staff"', '"Executive Operations Manager"', '"Office Manager"'] },
44
+ mandy: { humanTitle: 'Head of Operations', keywords: ['"Head of Operations"', '"Director of Operations"', '"Program Manager"'] },
45
+ ricardo: { humanTitle: 'Recruiting Manager', keywords: ['"Recruiting Manager"', '"Head of Talent"', '"Talent Acquisition Lead"'] },
46
+ hari: { humanTitle: 'HR Manager', keywords: ['"HR Manager"', '"Head of People"', '"HR Business Partner"'] },
47
+ careena: { humanTitle: 'Head of Talent Development', keywords: ['"Head of Talent Development"', '"L&D Manager"', '"Career Coaching Lead"'] },
48
+ sade: { humanTitle: 'Salesforce Manager', keywords: ['"Salesforce Manager"', '"CRM Lead"', '"Salesforce Architect"'] },
49
+ sam: { humanTitle: 'Sales Manager', keywords: ['"Sales Manager"', '"Head of Sales"', '"Director of Sales"'] },
50
+ casey: { humanTitle: 'Customer Success Manager', keywords: ['"Customer Success Manager"', '"Head of Customer Success"', '"Support Manager"'] },
51
+ deidre: { humanTitle: 'Head of DEI', keywords: ['"Head of DEI"', '"Director of Inclusion"', '"DEI Program Manager"'] },
52
+ mona: { humanTitle: 'Finance Manager', keywords: ['"Finance Manager"', '"Head of Finance"', '"Controller"'] },
53
+ sreya: { humanTitle: 'SRE Manager', keywords: ['"SRE Manager"', '"Head of Reliability"', '"Platform Engineering Lead"'] },
54
+ procella: { humanTitle: 'Procurement Manager', keywords: ['"Procurement Manager"', '"Head of Procurement"', '"Sourcing Lead"'] },
55
+ banke: { humanTitle: 'KYC Operations Manager', keywords: ['"KYC Operations Manager"', '"AML Compliance Manager"', '"Banking Compliance Lead"'] },
56
+ auditya: { humanTitle: 'Audit Manager', keywords: ['"Audit Manager"', '"Internal Audit Lead"', '"Compliance Audit Manager"'] },
57
+ };
58
+ function getHumanManagerProfile(roleKey) {
59
+ return exports.HUMAN_MANAGER_PROFILES[roleKey] ?? GENERALIST_PROFILE;
60
+ }
61
+ const AI_MANAGER_QUERY_TERMS = '("AI" OR "LLM" OR "agentic") AND ("coaching" OR "mentoring")';
62
+ function buildSearchQuery(roleKey) {
63
+ const profile = getHumanManagerProfile(roleKey);
64
+ return `${profile.keywords.join(' OR ')} AND ${AI_MANAGER_QUERY_TERMS}`;
65
+ }
66
+ function buildJobDescription(roleKey) {
67
+ const profile = getHumanManagerProfile(roleKey);
68
+ const role = persona_hiring_1.PERSONA_HIRE_CATALOG[roleKey]?.role ?? 'AI Employee';
69
+ return [
70
+ `${profile.humanTitle} — manager for an ${role}`,
71
+ '',
72
+ `You will manage an ${role} (an autonomous AI agent) and the humans around it, owning the outcomes it ships.`,
73
+ '',
74
+ "What you'll do:",
75
+ `- Write crisp specifications and acceptance criteria the ${role} can execute against.`,
76
+ `- Review the agent's output with judgment: know when to trust it and when to dig in.`,
77
+ '- Coach the agent and team so feedback compounds into reusable rules.',
78
+ '- Own delivery outcomes, not activity; prioritize ruthlessly.',
79
+ '',
80
+ 'What makes a strong AI manager:',
81
+ ...exports.AI_MANAGER_QUALITIES.map((q) => `- ${q.title}: ${q.detail}`),
82
+ ].join('\n');
83
+ }
84
+ function buildServiceUrl(service, query, location) {
85
+ const q = encodeURIComponent(query);
86
+ const loc = location && location.trim().length > 0 ? location.trim() : '';
87
+ switch (service) {
88
+ case 'linkedin':
89
+ return `https://www.linkedin.com/search/results/people/?keywords=${q}`;
90
+ case 'indeed':
91
+ return `https://www.indeed.com/jobs?q=${q}${loc ? `&l=${encodeURIComponent(loc)}` : ''}`;
92
+ case 'seekout':
93
+ return 'https://app.seekout.com/';
94
+ }
95
+ }
96
+ /**
97
+ * Catalog projection for the AI Hub bootstrap so the client renders off the server's
98
+ * source of truth. Defaults to exactly the hireable personas in `PERSONA_HIRE_CATALOG`.
99
+ */
100
+ function buildManagerHiringCatalog(roleKeys = Object.keys(persona_hiring_1.PERSONA_HIRE_CATALOG)) {
101
+ const roles = {};
102
+ for (const key of roleKeys) {
103
+ const profile = getHumanManagerProfile(key);
104
+ const query = buildSearchQuery(key);
105
+ // managedRole is derived from PERSONA_HIRE_CATALOG so the bootstrap response
106
+ // shape is unchanged even after removing the field from HumanManagerProfile.
107
+ const managedRole = persona_hiring_1.PERSONA_HIRE_CATALOG[key]?.role ?? 'AI Employee';
108
+ roles[key] = {
109
+ ...profile,
110
+ managedRole,
111
+ query,
112
+ jobDescription: buildJobDescription(key),
113
+ serviceUrls: {
114
+ linkedin: buildServiceUrl('linkedin', query),
115
+ indeed: buildServiceUrl('indeed', query),
116
+ seekout: buildServiceUrl('seekout', query),
117
+ },
118
+ };
119
+ }
120
+ return { qualities: exports.AI_MANAGER_QUALITIES, services: exports.HIRING_SERVICES, roles };
121
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Compatibility configuration for FRAIM.
4
+ * This file defines breaking changes and minimum required versions for clients.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.getBreakingChangesNotice = exports.MINIMUM_CLIENT_VERSION = void 0;
8
+ exports.MINIMUM_CLIENT_VERSION = '2.0.94';
9
+ /**
10
+ * Notice template for clients running outdated versions.
11
+ * This is appended to tool responses to guide users toward the standardized setup.
12
+ */
13
+ const getBreakingChangesNotice = (currentVersion) => {
14
+ return `\n\n---\n\n> [!WARNING] migration_notice\n> **Action Required**: You are using an outdated FRAIM configuration (v${currentVersion}). FRAIM requires at least v${exports.MINIMUM_CLIENT_VERSION}.\n> \n> To fix this permanently so you never have to update again, please run this terminal command **once**:\n> \`\`\`bash\n> npx fraim@latest setup\n> \`\`\`\n> Then restart your IDE.`;
15
+ };
16
+ exports.getBreakingChangesNotice = getBreakingChangesNotice;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFeatureFlags = getFeatureFlags;
4
+ exports.isPersonaEntitlementsEnabled = isPersonaEntitlementsEnabled;
5
+ exports.getPublicFeatureFlags = getPublicFeatureFlags;
6
+ function parseBooleanFlag(value) {
7
+ if (!value)
8
+ return false;
9
+ return ['1', 'true', 'yes', 'on'].includes(value.trim().toLowerCase());
10
+ }
11
+ function getFeatureFlags() {
12
+ return {
13
+ personaEntitlements: {
14
+ enabled: parseBooleanFlag(process.env.FRAIM_FF_PERSONA_ENTITLEMENTS)
15
+ }
16
+ };
17
+ }
18
+ function isPersonaEntitlementsEnabled() {
19
+ return getFeatureFlags().personaEntitlements.enabled;
20
+ }
21
+ function getPublicFeatureFlags() {
22
+ return {
23
+ personaEntitlementsEnabled: isPersonaEntitlementsEnabled()
24
+ };
25
+ }
@@ -0,0 +1,273 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PERSONA_CAPABILITY_BUNDLES = exports.FREE_JOBS = void 0;
4
+ exports.isFreeJob = isFreeJob;
5
+ exports.getPersonaCapabilityBundle = getPersonaCapabilityBundle;
6
+ exports.getProtectedPersonaForJob = getProtectedPersonaForJob;
7
+ exports.listPersonaCapabilityBundles = listPersonaCapabilityBundles;
8
+ const persona_hiring_1 = require("./persona-hiring");
9
+ const persona_catalog_routes_1 = require("../routes/persona-catalog-routes");
10
+ exports.FREE_JOBS = new Set([
11
+ 'create-architecture', 'project-scaffolding',
12
+ 'blue-sky-brainstorming', 'codebase-analysis-and-ideation',
13
+ 'domain-registration-research', 'google-workspace-setup', 'github-org-setup',
14
+ 'contribute-to-fraim', 'file-fraim-issue', 'praise-fraim',
15
+ ]);
16
+ function isFreeJob(jobName) {
17
+ return exports.FREE_JOBS.has(jobName);
18
+ }
19
+ function buildCatalogMetadata(personaKey, sampleJobs) {
20
+ const persona = persona_hiring_1.PERSONA_HIRE_CATALOG[personaKey];
21
+ const pricingLabel = `${(0, persona_catalog_routes_1.formatPrice)(persona.jobPriceCents)}/job or ${(0, persona_catalog_routes_1.formatPrice)(persona.fulltimePriceCents)}/mo`;
22
+ return {
23
+ displayName: persona.displayName,
24
+ role: persona.role,
25
+ pricingLabel,
26
+ sampleJobs
27
+ };
28
+ }
29
+ exports.PERSONA_CAPABILITY_BUNDLES = {
30
+ maestro: {
31
+ personaKey: 'maestro',
32
+ bundleId: 'persona-maestro-core',
33
+ catalogMetadata: buildCatalogMetadata('maestro', ['feature-implementation', 'review-business-strategy', 'security-review', 'contract-review-analysis']),
34
+ protectedJobs: [],
35
+ protectedAliases: ['maestro', 'founder-mode'],
36
+ defaultHireMode: 'fulltime',
37
+ lockCopy: 'Hire Maestro to unlock full-brained AI employee capabilities across every function.'
38
+ },
39
+ beza: {
40
+ personaKey: 'beza',
41
+ bundleId: 'persona-beza-core',
42
+ catalogMetadata: buildCatalogMetadata('beza', ['review-business-strategy', 'business-plan-creation', 'problem-statement-crystallization']),
43
+ protectedJobs: ['review-business-strategy', 'business-plan-creation', 'problem-statement-crystallization', 'business-idea-validation-and-scoping', 'founder-market-fit-analysis', 'rfp-response-preparation', 'aws-activate-credits-application', 'community-funding-preparation', 'fundraising-prospect-discovery', 'google-cloud-credits-application', 'investor-pitch-preparation', 'microsoft-azure-credits-application', 'review-funding-preparation', 'advisory-board-development', 'advisor-interview', 'advisory-board-selection'],
44
+ protectedAliases: ['business-strategy', 'company-strategy'],
45
+ defaultHireMode: 'job',
46
+ lockCopy: 'Hire BeZa to unlock business strategy work for this request.'
47
+ },
48
+ pam: {
49
+ personaKey: 'pam',
50
+ bundleId: 'persona-pam-core',
51
+ catalogMetadata: buildCatalogMetadata('pam', ['feature-specification', 'technical-design', 'issue-preparation']),
52
+ protectedJobs: ['feature-specification', 'technical-design', 'issue-preparation', 'implementation-design-review', 'issue-retrospective', 'work-completion', 'scrum-sprint-planning', 'mvp-validation-plan'],
53
+ protectedAliases: ['product-management', 'product-spec'],
54
+ defaultHireMode: 'job',
55
+ lockCopy: 'Hire PaM to unlock product-management work for this request.'
56
+ },
57
+ swen: {
58
+ personaKey: 'swen',
59
+ bundleId: 'persona-swen-core',
60
+ catalogMetadata: buildCatalogMetadata('swen', ['feature-implementation', 'code-refactoring', 'pr-iteration']),
61
+ protectedJobs: ['feature-implementation', 'code-refactoring', 'pr-iteration', 'mobile-app-development', 'mcp-server-creation', 'cloud-application-deployment', 'cloud-cost-optimization', 'cloud-performance-diagnosis', 'route-llm-spend-to-cloud-credits', 'set-up-cloud-cost-alerts', 'gitlabs-to-github', 'system-migration', 'cross-cloud-migration', 'data-pipeline-design', 'data-quality-monitoring', 'data-platform-architecture', 'write-dev-docs', 'database-schema-design'],
62
+ protectedAliases: ['software-engineering', 'implementation'],
63
+ defaultHireMode: 'job',
64
+ lockCopy: 'Hire SWEn to unlock software-engineering delivery for this request.'
65
+ },
66
+ qasm: {
67
+ personaKey: 'qasm',
68
+ bundleId: 'persona-qasm-core',
69
+ catalogMetadata: buildCatalogMetadata('qasm', ['test-execution', 'browser-application-validation', 'ui-polish-validation']),
70
+ protectedJobs: ['test-execution', 'browser-application-validation', 'ui-polish-validation', 'code-quality-assessment', 'test-quality-assessment', 'user-testing-and-bug-bash', 'broken-windows-detection-and-remediation', 'iterative-quality-improvement', 'implementation-feature-review', 'accessibility-audit', 'api-testing', 'performance-benchmarking'],
71
+ protectedAliases: ['qa', 'quality-assurance'],
72
+ defaultHireMode: 'job',
73
+ lockCopy: 'Hire QAsm to unlock QA validation for this request.'
74
+ },
75
+ huxley: {
76
+ personaKey: 'huxley',
77
+ bundleId: 'persona-huxley-core',
78
+ catalogMetadata: buildCatalogMetadata('huxley', ['design-system-creation', 'user-facing-prototyping', 'ux-research-synthesis']),
79
+ protectedJobs: ['design-system-creation', 'user-facing-prototyping', 'website-creation', 'linkedin-carousel-from-deck', 'brand-creation', 'branding-quality-audit', 'ux-research-synthesis', 'user-journey-mapping'],
80
+ protectedAliases: ['ux-design', 'brand-design'],
81
+ defaultHireMode: 'job',
82
+ lockCopy: 'Hire hUXley to unlock design-system, UX research, and brand design work for this request.'
83
+ },
84
+ gautam: {
85
+ personaKey: 'gautam',
86
+ bundleId: 'persona-gautam-core',
87
+ catalogMetadata: buildCatalogMetadata('gautam', ['analyze-revenue-system', 'build-gtm-motion', 'ppc-campaign-management']),
88
+ protectedJobs: ['pricing-strategy-definition', 'marketing-strategy-definition', 'product-launch-management', 'customer-prospect-discovery', 'evangelist-content-development', 'funnel-analysis', 'growth-loop-design', 'analyze-revenue-system', 'design-gtm-system', 'build-gtm-motion', 'build-gtm-stack', 'plan-gtm-team', 'marketing-content-creation', 'ppc-campaign-management', 'paid-social-strategy', 'ad-performance-analysis', 'tracking-and-attribution-setup', 'developer-advocacy', 'seo-strategy', 'marketing-analytics-review'],
89
+ protectedAliases: ['gtm', 'marketing'],
90
+ defaultHireMode: 'job',
91
+ lockCopy: 'Hire GauTaM to unlock go-to-market and paid media work for this request.'
92
+ },
93
+ cela: {
94
+ personaKey: 'cela',
95
+ bundleId: 'persona-cela-core',
96
+ catalogMetadata: buildCatalogMetadata('cela', ['contract-review-analysis', 'nda-creation', 'saas-contract-package-creation']),
97
+ protectedJobs: ['contract-review-analysis', 'nda-creation', 'saas-contract-package-creation', 'trademark-registration-management', 'provisional-patent-application-creation', 'opensign-cloud-esign-dispatch', 'w9-creation', 'invoice-generation', 'entity-type-selection', 'state-incorporation-filing', 'business-tax-registration', 'ein-application', 'cap-table-construction', 'founder-and-equity-agreements', 'ip-assignment-agreement-creation', 'employment-structure-decision', 'business-banking-setup'],
98
+ protectedAliases: ['legal', 'counsel'],
99
+ defaultHireMode: 'job',
100
+ lockCopy: 'Hire CELiA to unlock legal workflow support for this request.'
101
+ },
102
+ sekhar: {
103
+ personaKey: 'sekhar',
104
+ bundleId: 'persona-sekhar-core',
105
+ catalogMetadata: buildCatalogMetadata('sekhar', ['security-review', 'ai-native-security-setup', 'security-findings-command-center']),
106
+ protectedJobs: ['security-review', 'ai-native-security-setup', 'security-findings-command-center', 'vulnerability-triage-and-remediation', 'production-readiness-review', 'compliance-review', 'compliance-continuous-monitoring', 'compliance-policy-authoring', 'compliance-questionnaire-response', 'compliance-requirements-detection', 'generate-audit-evidence', 'regulation-evidence-management', 'soc2-evidence-management'],
107
+ protectedAliases: ['security', 'appsec'],
108
+ defaultHireMode: 'job',
109
+ lockCopy: 'Hire SEChar to unlock security setup, review, and findings-command work for this request.'
110
+ },
111
+ ashley: {
112
+ personaKey: 'ashley',
113
+ bundleId: 'persona-ashley-core',
114
+ catalogMetadata: buildCatalogMetadata('ashley', ['executive-assistant', 'weekly-operating-review', 'send-thank-you-notes']),
115
+ protectedJobs: ['executive-assistant', 'weekly-operating-review', 'send-thank-you-notes', 'send-newsletter', 'analyze-transcript', 'send-stakeholder-update', 'portfolio-impact-report'],
116
+ protectedAliases: ['executive-assistant', 'operations-assistant'],
117
+ defaultHireMode: 'job',
118
+ lockCopy: 'Hire AshLey to unlock executive-assistant work for this request.'
119
+ },
120
+ mandy: {
121
+ personaKey: 'mandy',
122
+ bundleId: 'persona-mandy-core',
123
+ catalogMetadata: buildCatalogMetadata('mandy', ['fully-delegate', 'project-plan-creation', 'stakeholder-status-reporting']),
124
+ protectedJobs: ['fully-delegate', 'delivery-governance-review', 'project-plan-creation', 'stakeholder-status-reporting', 'experiment-tracking', 'cross-functional-dependency-management'],
125
+ protectedAliases: ['manager', 'team-lead', 'orchestrator'],
126
+ defaultHireMode: 'job',
127
+ lockCopy: 'Hire MANdy to unlock autonomous multi-role orchestration — MANdy plans the job sequence, runs sub-agents in parallel, coaches them through verification loops, and hands back a synthesized DRAFT for your approval.'
128
+ },
129
+ ricardo: {
130
+ personaKey: 'ricardo',
131
+ bundleId: 'persona-ricardo-core',
132
+ catalogMetadata: buildCatalogMetadata('ricardo', ['role-intake-and-scorecard', 'job-posting-and-sourcing', 'candidate-pipeline-management']),
133
+ protectedJobs: ['role-intake-and-scorecard', 'job-posting-and-sourcing', 'candidate-pipeline-management', 'interview-coordination', 'offer-and-close-management'],
134
+ protectedAliases: ['recruiting', 'recruiter', 'hiring'],
135
+ defaultHireMode: 'job',
136
+ lockCopy: 'Hire RECardo to unlock full-cycle recruiting work for this request.'
137
+ },
138
+ hari: {
139
+ personaKey: 'hari',
140
+ bundleId: 'persona-hari-core',
141
+ catalogMetadata: buildCatalogMetadata('hari', ['new-hire-onboarding', 'performance-review-preparation', 'benefits-analysis-and-enrollment']),
142
+ protectedJobs: ['new-hire-onboarding', 'performance-review-preparation', 'benefits-analysis-and-enrollment', 'payroll-coordination', 'hr-business-partner-advisory'],
143
+ protectedAliases: ['hr', 'human-resources', 'people-ops'],
144
+ defaultHireMode: 'job',
145
+ lockCopy: 'Hire HaRi to unlock HR and people-ops work for this request.'
146
+ },
147
+ careena: {
148
+ personaKey: 'careena',
149
+ bundleId: 'persona-careena-core',
150
+ catalogMetadata: buildCatalogMetadata('careena', ['job-application-execution', 'pitch-and-interview-prep', 'career-networking']),
151
+ protectedJobs: ['career-spec', 'job-application-execution', 'resume-creation', 'public-profile-updates', 'career-trajectory-planning', 'pitch-and-interview-prep', 'career-networking', 'offer-negotiation', 'resilience-planning'],
152
+ protectedAliases: ['career', 'career-coach', 'job-search'],
153
+ defaultHireMode: 'job',
154
+ lockCopy: 'Hire CAREEna to unlock job-search execution, interview prep, and career coaching for this request.'
155
+ },
156
+ sade: {
157
+ personaKey: 'sade',
158
+ bundleId: 'persona-sade-core',
159
+ catalogMetadata: buildCatalogMetadata('sade', ['sf-config-deployment', 'sf-build-dashboard', 'sf-build-automation']),
160
+ protectedJobs: ['sf-config-deployment', 'sf-build-dashboard', 'sf-build-automation', 'sf-org-health-check', 'sf-user-and-access-management', 'sf-data-management'],
161
+ protectedAliases: ['salesforce', 'salesforce-developer', 'salesforce-admin'],
162
+ defaultHireMode: 'job',
163
+ lockCopy: 'Hire SADE to unlock Salesforce development and administration work for this request.'
164
+ },
165
+ sam: {
166
+ personaKey: 'sam',
167
+ bundleId: 'persona-sam-core',
168
+ catalogMetadata: buildCatalogMetadata('sam', ['crm-pipeline-review', 'outbound-sales-strategy', 'discovery-coaching']),
169
+ protectedJobs: ['crm-pipeline-review', 'outbound-sales-strategy', 'discovery-coaching', 'deal-strategy', 'proposal-development', 'account-strategy', 'sales-coaching'],
170
+ protectedAliases: ['sales', 'sales-manager', 'account-manager', 'pipeline'],
171
+ defaultHireMode: 'job',
172
+ lockCopy: 'Hire SAM to unlock full-cycle sales work for this request.'
173
+ },
174
+ casey: {
175
+ personaKey: 'casey',
176
+ bundleId: 'persona-casey-core',
177
+ catalogMetadata: buildCatalogMetadata('casey', ['support-case-resolution', 'support-sop-operationalization', 'support-system-operationalization', 'support-playbook-evaluation']),
178
+ protectedJobs: ['crm-account-health-review', 'crm-case-resolution', 'customer-health-review', 'loyalty-program-management', 'survey-campaign-management', 'support-queue-management', 'support-case-resolution', 'support-sop-operationalization', 'support-system-operationalization', 'support-playbook-evaluation'],
179
+ protectedAliases: ['customer-success', 'customer-support', 'csm', 'support'],
180
+ defaultHireMode: 'job',
181
+ lockCopy: 'Hire CaSey to unlock customer success and support work for this request.'
182
+ },
183
+ deidre: {
184
+ personaKey: 'deidre',
185
+ bundleId: 'persona-deidre-core',
186
+ catalogMetadata: buildCatalogMetadata('deidre', [
187
+ 'dei-toolkit-creation',
188
+ 'equity-pattern-analysis',
189
+ 'ai-governance-for-inclusion'
190
+ ]),
191
+ protectedJobs: [
192
+ 'dei-toolkit-creation',
193
+ 'equity-pattern-analysis',
194
+ 'ai-governance-for-inclusion',
195
+ 'ai-fluency-program-design',
196
+ 'executive-order-dei-impact-analysis',
197
+ 'erg-sop-modernization',
198
+ 'inclusion-ai-readiness-audit'
199
+ ],
200
+ protectedAliases: ['dei', 'inclusion', 'diversity', 'equity', 'erg', 'inclusion-leader'],
201
+ defaultHireMode: 'job',
202
+ lockCopy: 'Hire DEIdre to unlock equity and inclusion work for this request.'
203
+ },
204
+ mona: {
205
+ personaKey: 'mona',
206
+ bundleId: 'persona-mona-core',
207
+ catalogMetadata: buildCatalogMetadata('mona', ['financial-analysis', 'fpa-and-forecasting', 'monthly-close-review']),
208
+ protectedJobs: ['financial-analysis', 'fpa-and-forecasting', 'monthly-close-review', 'tax-strategy-planning'],
209
+ protectedAliases: ['finance', 'financial-modeling', 'fpa', 'bookkeeping'],
210
+ defaultHireMode: 'job',
211
+ lockCopy: 'Hire MONa to unlock financial modeling, FP&A, and tax strategy work for this request.'
212
+ },
213
+ sreya: {
214
+ personaKey: 'sreya',
215
+ bundleId: 'persona-sreya-core',
216
+ catalogMetadata: buildCatalogMetadata('sreya', ['slo-design-and-implementation', 'incident-response', 'reliability-review']),
217
+ protectedJobs: ['slo-design-and-implementation', 'incident-response', 'reliability-review'],
218
+ protectedAliases: ['sre', 'reliability', 'incident-response', 'on-call'],
219
+ defaultHireMode: 'job',
220
+ lockCopy: 'Hire SREya to unlock SLO governance, incident response, and production reliability work for this request.'
221
+ },
222
+ procella: {
223
+ personaKey: 'procella',
224
+ bundleId: 'persona-procella-core',
225
+ catalogMetadata: buildCatalogMetadata('procella', ['procurement-intake-and-strategy', 'rfx-package-authoring', 'proposal-response-evaluation']),
226
+ protectedJobs: [
227
+ 'procurement-intake-and-strategy',
228
+ 'supplier-discovery-and-qualification',
229
+ 'rfx-package-authoring',
230
+ 'proposal-response-evaluation',
231
+ 'procurement-negotiation-prep',
232
+ 'purchase-approval-and-po-package',
233
+ 'equipment-acceptance-and-supplier-retrospective',
234
+ 'supplier-performance-review'
235
+ ],
236
+ protectedAliases: ['procurement', 'sourcing', 'purchasing', 'supplier-management'],
237
+ defaultHireMode: 'job',
238
+ lockCopy: 'Hire PROCella to unlock procurement strategy, supplier sourcing, RFx, quote evaluation, and supplier performance work for this request.'
239
+ },
240
+ banke: {
241
+ personaKey: 'banke',
242
+ bundleId: 'persona-banke-core',
243
+ catalogMetadata: buildCatalogMetadata('banke', ['kyc-case-review']),
244
+ protectedJobs: ['kyc-case-review'],
245
+ protectedAliases: ['banking', 'kyc', 'account-aggregator'],
246
+ defaultHireMode: 'job',
247
+ lockCopy: 'Hire BANKe to unlock banking KYC evidence review work for this request.'
248
+ },
249
+ auditya: {
250
+ personaKey: 'auditya',
251
+ bundleId: 'persona-auditya-core',
252
+ catalogMetadata: buildCatalogMetadata('auditya', ['banking-evidence-audit']),
253
+ protectedJobs: ['banking-evidence-audit'],
254
+ protectedAliases: ['banking-audit', 'kyc-audit', 'audit'],
255
+ defaultHireMode: 'job',
256
+ lockCopy: 'Hire AUDITya to unlock banking evidence audit work for this request.'
257
+ }
258
+ };
259
+ const PROTECTED_JOB_TO_PERSONA = new Map();
260
+ for (const bundle of Object.values(exports.PERSONA_CAPABILITY_BUNDLES)) {
261
+ for (const jobName of bundle.protectedJobs) {
262
+ PROTECTED_JOB_TO_PERSONA.set(jobName, bundle.personaKey);
263
+ }
264
+ }
265
+ function getPersonaCapabilityBundle(personaKey) {
266
+ return exports.PERSONA_CAPABILITY_BUNDLES[personaKey];
267
+ }
268
+ function getProtectedPersonaForJob(jobName) {
269
+ return PROTECTED_JOB_TO_PERSONA.get(jobName) || null;
270
+ }
271
+ function listPersonaCapabilityBundles() {
272
+ return Object.values(exports.PERSONA_CAPABILITY_BUNDLES);
273
+ }