fraim-framework 2.0.152 → 2.0.154
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/hosts.js +20 -4
- package/dist/src/ai-hub/server.js +40 -16
- package/dist/src/cli/commands/init-project.js +4 -2
- package/dist/src/cli/setup/ide-detector.js +46 -18
- package/dist/src/cli/utils/managed-agent-paths.js +48 -0
- package/dist/src/first-run/session-service.js +35 -48
- package/package.json +4 -2
- package/public/ai-hub/index.html +187 -179
- package/public/ai-hub/script.js +100 -45
- package/public/ai-hub/styles.css +112 -51
package/public/ai-hub/index.html
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
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
|
-
<link rel="stylesheet" href="./styles.css">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
|
|
12
|
-
<div class="page">
|
|
13
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
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
|
+
<link rel="stylesheet" href="./styles.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
|
|
12
|
+
<div class="page">
|
|
13
|
+
|
|
14
14
|
<header class="header">
|
|
15
15
|
<div class="header-copy">
|
|
16
16
|
<span class="header-eyebrow">FRAIM Hub</span>
|
|
@@ -21,55 +21,54 @@
|
|
|
21
21
|
<strong id="project-name">Choose a folder</strong>
|
|
22
22
|
</button>
|
|
23
23
|
</header>
|
|
24
|
-
|
|
25
|
-
<section class="welcome">
|
|
26
|
-
Hi <strong class="you">there</strong>, remember, you are the
|
|
27
|
-
<span class="concept">AI Manager<button class="info" data-concept="manager" aria-label="What is AI Manager?">i</button>
|
|
28
|
-
<span class="popover" id="pop-manager">
|
|
29
|
-
<span class="pop-title">AI Manager</span>
|
|
30
|
-
That's you. You decide what outcome matters, pick the right job, and hold the bar on quality. You're not writing the work
|
|
31
|
-
<a class="pop-link" href="#" data-target="jobs-manager">See manager jobs
|
|
32
|
-
<span class="pop-jobs" id="jobs-manager"></span>
|
|
33
|
-
</span></span>.
|
|
34
|
-
Delegate jobs to your
|
|
35
|
-
<span class="concept">AI Employees<button class="info" data-concept="employee" aria-label="What is AI Employee?">i</button>
|
|
36
|
-
<span class="popover" id="pop-employee">
|
|
37
|
-
<span class="pop-title">AI Employee</span>
|
|
38
|
-
The coding agent
|
|
39
|
-
<a class="pop-link" href="#" data-target="jobs-employee">See employee jobs
|
|
40
|
-
<span class="pop-jobs" id="jobs-employee"></span>
|
|
41
|
-
</span></span>,
|
|
42
|
-
<span class="concept">Coach<button class="info" data-concept="coach" aria-label="What is Coach?">i</button>
|
|
43
|
-
<span class="popover" id="pop-coach">
|
|
44
|
-
<span class="pop-title">Coach</span>
|
|
45
|
-
Add context, raise the bar, or correct course mid-flight without abandoning the conversation. Same job, sharper guidance.
|
|
46
|
-
<a class="pop-link" href="#" data-target="jobs-coach">See coaching jobs
|
|
47
|
-
<span class="pop-jobs" id="jobs-coach"></span>
|
|
48
|
-
</span></span>
|
|
49
|
-
them,
|
|
50
|
-
<span class="concept">Verify<button class="info" data-concept="verify" aria-label="What is Verify?">i</button>
|
|
51
|
-
<span class="popover" id="pop-verify">
|
|
52
|
-
<span class="pop-title">Verify</span>
|
|
53
|
-
Check that the artifact actually solved the problem before you trust completion. Read the result, not just the logs.
|
|
54
|
-
<a class="pop-link" href="#" data-target="jobs-verify">See verification jobs
|
|
55
|
-
<span class="pop-jobs" id="jobs-verify"></span>
|
|
56
|
-
</span></span>
|
|
57
|
-
their work, and expect them to
|
|
58
|
-
<span class="concept">Learn<button class="info" data-concept="learn" aria-label="What is Learn?">i</button>
|
|
59
|
-
<span class="popover" id="pop-learn">
|
|
60
|
-
<span class="pop-title">Learn</span>
|
|
61
|
-
Each run should make the next one better. Your coaching becomes their lasting habit.
|
|
62
|
-
<a class="pop-link" href="#" data-target="jobs-learn">See learning jobs
|
|
63
|
-
<span class="pop-jobs" id="jobs-learn"></span>
|
|
64
|
-
</span></span>
|
|
65
|
-
and get better. Let your employees make you shine.
|
|
66
|
-
</section>
|
|
67
|
-
|
|
68
|
-
<div class="layout">
|
|
24
|
+
|
|
25
|
+
<section class="welcome">
|
|
26
|
+
Hi <strong class="you">there</strong>, remember, you are the
|
|
27
|
+
<span class="concept">AI Manager<button class="info" data-concept="manager" aria-label="What is AI Manager?">i</button>
|
|
28
|
+
<span class="popover" id="pop-manager">
|
|
29
|
+
<span class="pop-title">AI Manager</span>
|
|
30
|
+
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.
|
|
31
|
+
<a class="pop-link" href="#" data-target="jobs-manager">See manager jobs</a>
|
|
32
|
+
<span class="pop-jobs" id="jobs-manager"></span>
|
|
33
|
+
</span></span>.
|
|
34
|
+
Delegate jobs to your
|
|
35
|
+
<span class="concept">AI Employees<button class="info" data-concept="employee" aria-label="What is AI Employee?">i</button>
|
|
36
|
+
<span class="popover" id="pop-employee">
|
|
37
|
+
<span class="pop-title">AI Employee</span>
|
|
38
|
+
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.
|
|
39
|
+
<a class="pop-link" href="#" data-target="jobs-employee">See employee jobs</a>
|
|
40
|
+
<span class="pop-jobs" id="jobs-employee"></span>
|
|
41
|
+
</span></span>,
|
|
42
|
+
<span class="concept">Coach<button class="info" data-concept="coach" aria-label="What is Coach?">i</button>
|
|
43
|
+
<span class="popover" id="pop-coach">
|
|
44
|
+
<span class="pop-title">Coach</span>
|
|
45
|
+
Add context, raise the bar, or correct course mid-flight without abandoning the conversation. Same job, sharper guidance.
|
|
46
|
+
<a class="pop-link" href="#" data-target="jobs-coach">See coaching jobs</a>
|
|
47
|
+
<span class="pop-jobs" id="jobs-coach"></span>
|
|
48
|
+
</span></span>
|
|
49
|
+
them,
|
|
50
|
+
<span class="concept">Verify<button class="info" data-concept="verify" aria-label="What is Verify?">i</button>
|
|
51
|
+
<span class="popover" id="pop-verify">
|
|
52
|
+
<span class="pop-title">Verify</span>
|
|
53
|
+
Check that the artifact actually solved the problem before you trust completion. Read the result, not just the logs.
|
|
54
|
+
<a class="pop-link" href="#" data-target="jobs-verify">See verification jobs</a>
|
|
55
|
+
<span class="pop-jobs" id="jobs-verify"></span>
|
|
56
|
+
</span></span>
|
|
57
|
+
their work, and expect them to
|
|
58
|
+
<span class="concept">Learn<button class="info" data-concept="learn" aria-label="What is Learn?">i</button>
|
|
59
|
+
<span class="popover" id="pop-learn">
|
|
60
|
+
<span class="pop-title">Learn</span>
|
|
61
|
+
Each run should make the next one better. Your coaching becomes their lasting habit.
|
|
62
|
+
<a class="pop-link" href="#" data-target="jobs-learn">See learning jobs</a>
|
|
63
|
+
<span class="pop-jobs" id="jobs-learn"></span>
|
|
64
|
+
</span></span>
|
|
65
|
+
and get better. Let your employees make you shine.
|
|
66
|
+
</section>
|
|
67
|
+
|
|
68
|
+
<div class="layout">
|
|
69
69
|
<aside class="rail">
|
|
70
70
|
<button class="new-conv" type="button" id="new-conv-btn">+ New job</button>
|
|
71
71
|
<div class="rail-note">Alpha: browser shell for directing employees across your project.</div>
|
|
72
|
-
<!-- R2.4: team roster — horizontal row of avatar chips per hired persona -->
|
|
73
72
|
<section class="rail-section rail-section--employees">
|
|
74
73
|
<div class="rail-section-label">Hired employees</div>
|
|
75
74
|
<div class="team-roster" id="team-roster" hidden></div>
|
|
@@ -80,13 +79,13 @@
|
|
|
80
79
|
<div class="conv-list" id="conv-list"></div>
|
|
81
80
|
</section>
|
|
82
81
|
</aside>
|
|
83
|
-
|
|
84
|
-
<main class="conversation" id="conversation">
|
|
85
|
-
<div class="empty-state" id="empty">
|
|
86
|
-
<h3>No job selected</h3>
|
|
87
|
-
<p>Pick an existing job from the left, or click <strong>+ New job</strong> to give your employee something to work on.</p>
|
|
88
|
-
</div>
|
|
89
|
-
|
|
82
|
+
|
|
83
|
+
<main class="conversation" id="conversation">
|
|
84
|
+
<div class="empty-state" id="empty">
|
|
85
|
+
<h3>No job selected</h3>
|
|
86
|
+
<p>Pick an existing job from the left, or click <strong>+ New job</strong> to give your employee something to work on.</p>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
90
89
|
<div id="active-conv" hidden>
|
|
91
90
|
<div class="conv-topline">
|
|
92
91
|
<div class="employee-identity" id="active-identity"></div>
|
|
@@ -98,124 +97,133 @@
|
|
|
98
97
|
<h2 id="active-title"></h2>
|
|
99
98
|
<div class="conv-job" id="active-job"></div>
|
|
100
99
|
</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div class="conversation-status">
|
|
101
103
|
<div id="artifact-slot"></div>
|
|
104
|
+
<div class="status-stack">
|
|
105
|
+
<div class="progress progress-inline" id="progress">
|
|
106
|
+
<span class="stage" id="stage">Getting started...</span>
|
|
107
|
+
<span class="latest" id="latest"></span>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="tracker tracker-inline" id="tracker" aria-label="Job progress" hidden>
|
|
110
|
+
<div class="tracker-rows" id="tracker-rows"></div>
|
|
111
|
+
<div class="tracker-note" id="tracker-note" hidden></div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
102
114
|
</div>
|
|
103
115
|
|
|
104
|
-
<div class="summary-strip" id="summary-strip"></div>
|
|
105
|
-
|
|
106
|
-
<!-- Issue #347 R1: pizza tracker. Hidden when the active job
|
|
107
|
-
declares no phases. Populated by renderTracker() in script.js. -->
|
|
108
|
-
<div class="tracker" id="tracker" aria-label="Job progress" hidden>
|
|
109
|
-
<div class="tracker-rows" id="tracker-rows"></div>
|
|
110
|
-
<div class="tracker-note" id="tracker-note" hidden></div>
|
|
111
|
-
</div>
|
|
112
|
-
|
|
113
|
-
<div class="progress" id="progress">
|
|
114
|
-
<span class="stage" id="stage">Getting started…</span>
|
|
115
|
-
<span class="latest" id="latest"></span>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
116
|
<section class="thread-surface" aria-label="Manager and employee thread">
|
|
119
117
|
<div class="thread-surface-label">Manager and employee thread</div>
|
|
120
118
|
<div class="messages" id="messages"></div>
|
|
121
119
|
</section>
|
|
122
|
-
|
|
123
|
-
<div class="
|
|
124
|
-
<
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
120
|
+
|
|
121
|
+
<div class="support-stack">
|
|
122
|
+
<details class="panel-details panel-details--coach" id="coach-panel" open>
|
|
123
|
+
<summary>
|
|
124
|
+
<span class="panel-summary-copy">
|
|
125
|
+
<span class="panel-kicker">Coach the employee</span>
|
|
126
|
+
<span class="panel-summary-text" id="coach-summary">Open to coach or redirect the work</span>
|
|
127
|
+
</span>
|
|
128
|
+
</summary>
|
|
129
|
+
<div class="panel-body">
|
|
130
|
+
<div class="coach">
|
|
131
|
+
<div class="coach-title-row">
|
|
132
|
+
<span class="section-title">Coach the employee</span>
|
|
133
|
+
<span class="active-employee-row">
|
|
134
|
+
<label for="active-employee-select" class="active-employee-label">tool</label>
|
|
135
|
+
<select id="active-employee-select" class="employee-select inline"></select>
|
|
136
|
+
</span>
|
|
137
|
+
</div>
|
|
138
|
+
<textarea id="coach-text" placeholder="Tell the employee what to do next..."></textarea>
|
|
139
|
+
<div class="coach-actions">
|
|
140
|
+
<button class="ghost" type="button" id="template-picker-btn" aria-haspopup="menu" aria-expanded="false" hidden>Use a template</button>
|
|
141
|
+
<button class="send-button" type="button" id="send" disabled>Send</button>
|
|
142
|
+
<div class="template-popover" id="template-popover" role="menu" hidden></div>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="coach-note" id="coach-note"></div>
|
|
145
|
+
<div class="totals" id="totals" aria-label="Run totals" hidden></div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</details>
|
|
149
|
+
|
|
150
|
+
<details class="micro panel-details" id="micro-manage">
|
|
151
|
+
<summary>
|
|
152
|
+
<span class="panel-summary-copy">
|
|
153
|
+
<span class="panel-kicker">Micro-manage</span>
|
|
154
|
+
<span class="panel-summary-text">Raw host details</span>
|
|
155
|
+
</span>
|
|
156
|
+
</summary>
|
|
157
|
+
<pre class="micro-log" id="micro-log"></pre>
|
|
158
|
+
</details>
|
|
143
159
|
</div>
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</div>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
<
|
|
176
|
-
<button
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<
|
|
201
|
-
<div class="
|
|
202
|
-
<
|
|
203
|
-
<
|
|
204
|
-
</div>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
</div>
|
|
215
|
-
|
|
216
|
-
</div>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<script src="./script.js"></script>
|
|
220
|
-
</body>
|
|
221
|
-
</html>
|
|
160
|
+
</div>
|
|
161
|
+
</main>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<p class="status-line" id="status-line" role="status" aria-live="polite"></p>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<div class="modal-backdrop" id="modal" role="dialog" aria-modal="true" hidden>
|
|
168
|
+
<div class="modal">
|
|
169
|
+
|
|
170
|
+
<div id="step1">
|
|
171
|
+
<div class="modal-header">
|
|
172
|
+
<h2>What should the employee work on?</h2>
|
|
173
|
+
<p>Pick one job. You can always start a new job for different work.</p>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="modal-body">
|
|
176
|
+
<input class="search" type="text" placeholder="Search jobs..." id="job-search">
|
|
177
|
+
<div id="job-persona-filter" hidden></div>
|
|
178
|
+
<div id="job-catalog"></div>
|
|
179
|
+
</div>
|
|
180
|
+
<div id="hire-notice" hidden>
|
|
181
|
+
<p id="hire-notice-text"></p>
|
|
182
|
+
<div class="hire-notice-actions">
|
|
183
|
+
<a id="hire-notice-link" href="#" target="_blank" rel="noopener" class="send-button">Go to Pricing</a>
|
|
184
|
+
<button id="hire-notice-back" type="button" class="ghost">Back to all jobs</button>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="modal-footer">
|
|
188
|
+
<span class="left" id="job-pick-status">Choose a job to continue</span>
|
|
189
|
+
<div class="right">
|
|
190
|
+
<button class="ghost" type="button" id="cancel1">Cancel</button>
|
|
191
|
+
<button class="ghost" type="button" id="freeform-btn">Just describe what you need</button>
|
|
192
|
+
<button class="send-button" type="button" id="next1" disabled>Next</button>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<div id="step2" class="step2" hidden>
|
|
198
|
+
<div class="modal-header">
|
|
199
|
+
<h2>Tell the employee what you need</h2>
|
|
200
|
+
<p>A few sentences is enough. The employee will ask if anything is unclear.</p>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="modal-body">
|
|
203
|
+
<div class="assigned-job">
|
|
204
|
+
<div class="label">Assigned job</div>
|
|
205
|
+
<div class="name" id="picked-name"></div>
|
|
206
|
+
<div class="desc" id="picked-desc"></div>
|
|
207
|
+
</div>
|
|
208
|
+
<textarea id="instructions" placeholder="What outcome do you want? Any context the employee should know?"></textarea>
|
|
209
|
+
<div class="employee-line">
|
|
210
|
+
<span class="employee-label">Employee:</span>
|
|
211
|
+
<select id="employee-select" class="employee-select"></select>
|
|
212
|
+
</div>
|
|
213
|
+
<div id="agent-install-panel"></div>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="modal-footer">
|
|
216
|
+
<span class="left">You can coach the employee with more detail after they start.</span>
|
|
217
|
+
<div class="right">
|
|
218
|
+
<button class="ghost" type="button" id="back2">Back</button>
|
|
219
|
+
<button class="send-button" type="button" id="start" disabled>Start</button>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
|
|
227
|
+
<script src="./script.js"></script>
|
|
228
|
+
</body>
|
|
229
|
+
</html>
|