feat: org roles & departments with webview profile display - #284
Open
sakuramoon44 wants to merge 1 commit into
Open
feat: org roles & departments with webview profile display#284sakuramoon44 wants to merge 1 commit into
sakuramoon44 wants to merge 1 commit into
Conversation
Add an org-chart identity model for agents (name / role / department) and surface it in the office UI. - server/src/profiles.ts: profile definitions. Main session = Sakura, 社長(CEO / Claude 4.7), 役員室, fixed look (char_3 + hueShift 320 = pink long hair). Teammates are randomly assigned to one of six departments (Engineering / Marketing / Design / Research / HR / Finance) each with its model (Sonnet 4.6 or Haiku 4.5), role label, and duties. - Assign profiles at session-detection sites in fileWatcher.ts (main session -> boss; teammates -> random department). - Carry name/role/department (+palette/hueShift) through AgentState, PersistedAgent, persistence/restore, the agentCreated message, and the asyncapi schema (regenerated messages.ts). - webview: store the fields on Character and render name・role + the department/duties line above the character in ToolOverlay; apply the fixed palette/hueShift for the main session. - colorize.ts: adjustSprite gains a preserveSkin option; the character hue shift skips skin-tone pixels so a pink-haired persona keeps a natural (fair) skin color instead of turning fully pink. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an org-chart identity model for agents (name / role / department) and shows it above each character in the office.
What it does
Sakura/社長(CEO / Claude 4.7)/役員室, with a fixed look: base spritechar_3(long hair) +hueShift320 (pink).Changes
server/src/profiles.ts(new): profile + org-chart definitions and assignment helpers.server/src/fileWatcher.ts: assign profiles at session-detection sites.name/role/department(+palette/hueShift) throughAgentState,PersistedAgent, persistence/restore, theagentCreatedmessage, and the asyncapi schema (regeneratedmessages.ts).Character; rendername・role+ a department/duties line inToolOverlay; apply the fixed palette/hueShift for the main session.colorize.ts:adjustSpritegains apreserveSkinoption; the character hue shift skips skin-tone pixels so a pink-haired persona keeps natural (fair) skin instead of turning fully pink.Verification
npm run buildpasses (type regen + check-types + lint + esbuild + vite).