fraim-framework 2.0.187 → 2.0.188
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/package.json +1 -1
- package/public/ai-hub/script.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fraim-framework",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.188",
|
|
4
4
|
"description": "FRAIM: AI Workforce Infrastructure — the organizational capability that turns AI agents into an accountable workforce, their operators into capable AI managers, and executives into leaders with clear optics on AI proficiency.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/public/ai-hub/script.js
CHANGED
|
@@ -1014,6 +1014,7 @@ function renderRail() {
|
|
|
1014
1014
|
// assigned — even before they have a run, so you can assign/delegate to them.
|
|
1015
1015
|
const tfProjId = (typeof tf !== 'undefined' && tf) ? tf.activeProjectId : null;
|
|
1016
1016
|
const managerTeamKeys = (state.bootstrap?.managerTeam || []).map((e) => e.personaKey).filter(Boolean);
|
|
1017
|
+
const managerTeamKeySet = new Set(managerTeamKeys);
|
|
1017
1018
|
// merge: master resolves the tree's employees via tfProjectTeamKeys() (hired personas),
|
|
1018
1019
|
// not project.team; align on it so every hired employee appears in the single section.
|
|
1019
1020
|
const projectEmployeeKeys = new Set([
|
|
@@ -1024,7 +1025,8 @@ function renderRail() {
|
|
|
1024
1025
|
for (const key of projectEmployeeKeys) {
|
|
1025
1026
|
if (groups.has(key)) continue;
|
|
1026
1027
|
const p = typeof tfPersonaByKey === 'function' ? tfPersonaByKey(key) : null;
|
|
1027
|
-
|
|
1028
|
+
const availableToManager = !p || p.status === 'hired' || (p.seatCount || 0) > 0 || managerTeamKeySet.has(key);
|
|
1029
|
+
if (!availableToManager) continue;
|
|
1028
1030
|
groups.set(key, {
|
|
1029
1031
|
key,
|
|
1030
1032
|
label: p ? p.displayName : key,
|