fraim-framework 2.0.126 → 2.0.127
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/src/ai-hub/catalog.js +280 -44
- package/dist/src/ai-hub/desktop-main.js +2 -2
- package/dist/src/ai-hub/hosts.js +384 -10
- package/dist/src/ai-hub/server.js +255 -9
- package/dist/src/cli/commands/add-ide.js +4 -3
- package/dist/src/cli/commands/first-run.js +61 -0
- package/dist/src/cli/commands/hub.js +4 -4
- package/dist/src/cli/commands/init-project.js +4 -4
- package/dist/src/cli/commands/setup.js +4 -3
- package/dist/src/cli/commands/sync.js +21 -2
- package/dist/src/cli/doctor/checks/ide-config-checks.js +20 -2
- package/dist/src/cli/fraim.js +2 -0
- package/dist/src/cli/mcp/ide-formats.js +29 -1
- package/dist/src/cli/mcp/mcp-server-registry.js +1 -0
- package/dist/src/cli/setup/auto-mcp-setup.js +14 -8
- package/dist/src/cli/setup/ide-detector.js +32 -1
- package/dist/src/cli/setup/ide-global-integration.js +5 -1
- package/dist/src/cli/setup/ide-invocation-surfaces.js +14 -0
- package/dist/src/cli/setup/mcp-config-generator.js +12 -1
- package/dist/src/cli/utils/agent-adapters.js +10 -0
- package/dist/src/core/utils/git-utils.js +14 -6
- package/dist/src/first-run/install-state.js +68 -0
- package/dist/src/first-run/server.js +153 -0
- package/dist/src/first-run/session-service.js +302 -0
- package/dist/src/first-run/types.js +40 -0
- package/dist/src/local-mcp-server/otlp-metrics-receiver.js +7 -1
- package/dist/src/local-mcp-server/stdio-server.js +41 -9
- package/package.json +3 -1
- package/public/ai-hub/index.html +149 -102
- package/public/ai-hub/script.js +1154 -271
- package/public/ai-hub/styles.css +753 -450
- package/public/first-run/index.html +221 -0
- package/public/first-run/script.js +361 -0
package/public/ai-hub/index.html
CHANGED
|
@@ -3,127 +3,174 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
7
|
-
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='10' fill='%
|
|
6
|
+
<title>AI Hub</title>
|
|
7
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='10' fill='%233d8a6e'/%3E%3Ctext x='24' y='32' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='22' font-weight='700' fill='white'%3EH%3C/text%3E%3C/svg%3E">
|
|
8
8
|
<link rel="stylesheet" href="./styles.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
<div class="employee-picker" id="employee-picker"></div>
|
|
21
|
-
</div>
|
|
22
|
-
<details class="project-path workspace-project">
|
|
23
|
-
<summary>
|
|
24
|
-
<span>Project Path</span>
|
|
25
|
-
<span class="project-path-preview" id="project-path-preview"></span>
|
|
26
|
-
</summary>
|
|
27
|
-
<div class="project-path-body">
|
|
28
|
-
<input id="project-path-input" class="text-input" type="text" />
|
|
29
|
-
<div class="project-actions">
|
|
30
|
-
<button id="browse-project" class="secondary-button" type="button">Choose Folder</button>
|
|
31
|
-
<button id="reload-project" class="secondary-button" type="button">Reload</button>
|
|
32
|
-
</div>
|
|
33
|
-
<p class="helper-text" id="project-status"></p>
|
|
34
|
-
</div>
|
|
35
|
-
</details>
|
|
36
|
-
</div>
|
|
11
|
+
|
|
12
|
+
<div class="page">
|
|
13
|
+
|
|
14
|
+
<header class="header">
|
|
15
|
+
<h1>AI Hub</h1>
|
|
16
|
+
<button class="project-button" type="button" id="project-button">
|
|
17
|
+
<span class="folder">Project</span>
|
|
18
|
+
<strong id="project-name">Choose a folder</strong>
|
|
19
|
+
</button>
|
|
37
20
|
</header>
|
|
38
21
|
|
|
39
|
-
<
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
22
|
+
<section class="welcome">
|
|
23
|
+
Hi <strong class="you">there</strong>, remember, you are the
|
|
24
|
+
<span class="concept">AI Manager<button class="info" data-concept="manager" aria-label="What is AI Manager?">i</button>
|
|
25
|
+
<span class="popover" id="pop-manager">
|
|
26
|
+
<span class="pop-title">AI Manager</span>
|
|
27
|
+
That's you. You decide what outcome matters, pick the right job, and hold the bar on quality. You're not writing the work — you're directing it.
|
|
28
|
+
<a class="pop-link" href="#" data-target="jobs-manager">See manager jobs →</a>
|
|
29
|
+
<span class="pop-jobs" id="jobs-manager"></span>
|
|
30
|
+
</span></span>.
|
|
31
|
+
Delegate jobs to your
|
|
32
|
+
<span class="concept">AI Employees<button class="info" data-concept="employee" aria-label="What is AI Employee?">i</button>
|
|
33
|
+
<span class="popover" id="pop-employee">
|
|
34
|
+
<span class="pop-title">AI Employee</span>
|
|
35
|
+
The coding agent — Codex, Claude, or another — that actually does the work you assign. AI Hub is where you direct them; the agent itself is the employee.
|
|
36
|
+
<a class="pop-link" href="#" data-target="jobs-employee">See employee jobs →</a>
|
|
37
|
+
<span class="pop-jobs" id="jobs-employee"></span>
|
|
38
|
+
</span></span>,
|
|
39
|
+
<span class="concept">Coach<button class="info" data-concept="coach" aria-label="What is Coach?">i</button>
|
|
40
|
+
<span class="popover" id="pop-coach">
|
|
41
|
+
<span class="pop-title">Coach</span>
|
|
42
|
+
Add context, raise the bar, or correct course mid-flight without abandoning the conversation. Same job, sharper guidance.
|
|
43
|
+
<a class="pop-link" href="#" data-target="jobs-coach">See coaching jobs →</a>
|
|
44
|
+
<span class="pop-jobs" id="jobs-coach"></span>
|
|
45
|
+
</span></span>
|
|
46
|
+
them,
|
|
47
|
+
<span class="concept">Verify<button class="info" data-concept="verify" aria-label="What is Verify?">i</button>
|
|
48
|
+
<span class="popover" id="pop-verify">
|
|
49
|
+
<span class="pop-title">Verify</span>
|
|
50
|
+
Check that the artifact actually solved the problem before you trust completion. Read the result, not just the logs.
|
|
51
|
+
<a class="pop-link" href="#" data-target="jobs-verify">See verification jobs →</a>
|
|
52
|
+
<span class="pop-jobs" id="jobs-verify"></span>
|
|
53
|
+
</span></span>
|
|
54
|
+
their work, and expect them to
|
|
55
|
+
<span class="concept">Learn<button class="info" data-concept="learn" aria-label="What is Learn?">i</button>
|
|
56
|
+
<span class="popover" id="pop-learn">
|
|
57
|
+
<span class="pop-title">Learn</span>
|
|
58
|
+
Each run should make the next one better. Your coaching becomes their lasting habit.
|
|
59
|
+
<a class="pop-link" href="#" data-target="jobs-learn">See learning jobs →</a>
|
|
60
|
+
<span class="pop-jobs" id="jobs-learn"></span>
|
|
61
|
+
</span></span>
|
|
62
|
+
and get better. Let your employees make you shine.
|
|
63
|
+
</section>
|
|
59
64
|
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
<div class="layout">
|
|
66
|
+
<aside class="rail">
|
|
67
|
+
<button class="new-conv" type="button" id="new-conv-btn">+ New job</button>
|
|
68
|
+
<div class="conv-list" id="conv-list"></div>
|
|
69
|
+
</aside>
|
|
70
|
+
|
|
71
|
+
<main class="conversation" id="conversation">
|
|
72
|
+
<div class="empty-state" id="empty">
|
|
73
|
+
<h3>No job selected</h3>
|
|
74
|
+
<p>Pick an existing job from the left, or click <strong>+ New job</strong> to give your employee something to work on.</p>
|
|
62
75
|
</div>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<div
|
|
69
|
-
<div>
|
|
70
|
-
<p class="section-label">Selected Job</p>
|
|
71
|
-
<h2 id="selected-job-title">Select a job</h2>
|
|
72
|
-
<p id="selected-job-intent" class="muted"></p>
|
|
73
|
-
</div>
|
|
74
|
-
<ul class="job-outcomes" id="selected-job-outcomes"></ul>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="run-toolbar-actions">
|
|
77
|
-
<button id="start-job" class="primary-button" type="button" disabled>Start Job</button>
|
|
78
|
-
</div>
|
|
76
|
+
|
|
77
|
+
<div id="active-conv" hidden>
|
|
78
|
+
<div class="conv-header">
|
|
79
|
+
<h2 id="active-title"></h2>
|
|
80
|
+
<div class="conv-job" id="active-job"></div>
|
|
81
|
+
<div id="artifact-slot"></div>
|
|
79
82
|
</div>
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</div>
|
|
88
|
-
<p class="muted" id="conversation-state">Select a job and coach your employee toward your desired outcome.</p>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
<div class="timeline" id="timeline"></div>
|
|
92
|
-
</div>
|
|
84
|
+
<!-- Issue #347 R1: pizza tracker. Hidden when the active job
|
|
85
|
+
declares no phases. Populated by renderTracker() in script.js. -->
|
|
86
|
+
<div class="tracker" id="tracker" aria-label="Job progress" hidden>
|
|
87
|
+
<div class="tracker-rows" id="tracker-rows"></div>
|
|
88
|
+
<div class="tracker-note" id="tracker-note" hidden></div>
|
|
89
|
+
</div>
|
|
93
90
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
</div>
|
|
91
|
+
<div class="progress" id="progress">
|
|
92
|
+
<span class="stage" id="stage">Getting started…</span>
|
|
93
|
+
<span class="latest" id="latest"></span>
|
|
94
|
+
</div>
|
|
99
95
|
|
|
100
|
-
|
|
101
|
-
<textarea id="manager-message" class="composer" placeholder='Use FRAIM job "marketing-content-creation" and include the audience, desired outcome, and any constraints.'></textarea>
|
|
96
|
+
<div class="messages" id="messages"></div>
|
|
102
97
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
<div class="coach">
|
|
99
|
+
<div class="section-title">Coach the employee</div>
|
|
100
|
+
<textarea id="coach-text" placeholder="Tell the employee what to do next…"></textarea>
|
|
101
|
+
<div class="coach-actions">
|
|
102
|
+
<!-- Issue #347 R2: template picker. Hidden when the project
|
|
103
|
+
has no manager-job templates. -->
|
|
104
|
+
<button class="ghost" type="button" id="template-picker-btn" aria-haspopup="menu" aria-expanded="false" hidden>Use a template ▾</button>
|
|
105
|
+
<button class="send-button" type="button" id="send" disabled>Send</button>
|
|
106
|
+
<div class="template-popover" id="template-popover" role="menu" hidden></div>
|
|
106
107
|
</div>
|
|
108
|
+
<!-- Issue #347 R4: run-level totals. Discoverable, not dominating.
|
|
109
|
+
Populated by renderTotals() each poll tick. -->
|
|
110
|
+
<div class="totals" id="totals" aria-label="Run totals" hidden></div>
|
|
107
111
|
</div>
|
|
112
|
+
|
|
113
|
+
<details class="micro" id="micro-manage">
|
|
114
|
+
<summary>Micro-manage — raw host details</summary>
|
|
115
|
+
<pre class="micro-log" id="micro-log"></pre>
|
|
116
|
+
</details>
|
|
108
117
|
</div>
|
|
118
|
+
</main>
|
|
119
|
+
</div>
|
|
109
120
|
|
|
110
|
-
|
|
111
|
-
<summary>Micro-manage</summary>
|
|
112
|
-
<div class="micro-manage-body" id="raw-history"></div>
|
|
113
|
-
</details>
|
|
114
|
-
</section>
|
|
115
|
-
</main>
|
|
121
|
+
<p class="status-line" id="status-line" role="status" aria-live="polite"></p>
|
|
116
122
|
</div>
|
|
117
123
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
<!-- Modal: New Job -->
|
|
125
|
+
<div class="modal-backdrop" id="modal" role="dialog" aria-modal="true" hidden>
|
|
126
|
+
<div class="modal">
|
|
127
|
+
|
|
128
|
+
<div id="step1">
|
|
129
|
+
<div class="modal-header">
|
|
130
|
+
<h2>What should the employee work on?</h2>
|
|
131
|
+
<p>Pick one job. You can always start a new job for different work.</p>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="modal-body">
|
|
134
|
+
<input class="search" type="text" placeholder="Search jobs…" id="job-search">
|
|
135
|
+
<div id="job-catalog"></div>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="modal-footer">
|
|
138
|
+
<span class="left" id="job-pick-status">Choose a job to continue</span>
|
|
139
|
+
<div class="right">
|
|
140
|
+
<button class="ghost" type="button" id="cancel1">Cancel</button>
|
|
141
|
+
<button class="send-button" type="button" id="next1" disabled>Next →</button>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
123
144
|
</div>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
|
|
146
|
+
<div id="step2" class="step2" hidden>
|
|
147
|
+
<div class="modal-header">
|
|
148
|
+
<h2>Tell the employee what you need</h2>
|
|
149
|
+
<p>A few sentences is enough. The employee will ask if anything is unclear.</p>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="modal-body">
|
|
152
|
+
<div class="assigned-job">
|
|
153
|
+
<div class="label">Assigned job</div>
|
|
154
|
+
<div class="name" id="picked-name"></div>
|
|
155
|
+
<div class="desc" id="picked-desc"></div>
|
|
156
|
+
</div>
|
|
157
|
+
<textarea id="instructions" placeholder="What outcome do you want? Any context the employee should know?"></textarea>
|
|
158
|
+
<div class="employee-line">
|
|
159
|
+
<span class="employee-label">Employee:</span>
|
|
160
|
+
<select id="employee-select" class="employee-select"></select>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="modal-footer">
|
|
164
|
+
<span class="left">You can coach the employee with more detail after they start.</span>
|
|
165
|
+
<div class="right">
|
|
166
|
+
<button class="ghost" type="button" id="back2">← Back</button>
|
|
167
|
+
<button class="send-button" type="button" id="start" disabled>Start</button>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
127
174
|
|
|
128
175
|
<script src="./script.js"></script>
|
|
129
176
|
</body>
|