forkit-connect 0.1.16 → 0.1.17
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/launcher.js +27 -29
- package/package.json +1 -1
package/dist/launcher.js
CHANGED
|
@@ -1318,7 +1318,7 @@ function renderLauncherHtml(launcherToken) {
|
|
|
1318
1318
|
<head>
|
|
1319
1319
|
<meta charset="UTF-8" />
|
|
1320
1320
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
1321
|
-
<title>Forkit Connect
|
|
1321
|
+
<title>Forkit Connect Status</title>
|
|
1322
1322
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
1323
1323
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
1324
1324
|
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
|
@@ -6460,11 +6460,11 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6460
6460
|
<nav class="sidebar-nav" id="sidebar-nav">
|
|
6461
6461
|
<button class="sidebar-nav-item active" id="nav-command" data-view="command" type="button">
|
|
6462
6462
|
<svg class="sidebar-nav-icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M3 5h14M3 10h14M3 15h7"/></svg>
|
|
6463
|
-
|
|
6463
|
+
Status
|
|
6464
6464
|
</button>
|
|
6465
6465
|
<button class="sidebar-nav-item" id="nav-discovery" data-view="discovery" type="button">
|
|
6466
6466
|
<svg class="sidebar-nav-icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6"><circle cx="10" cy="10" r="7"/><circle cx="10" cy="10" r="3"/></svg>
|
|
6467
|
-
|
|
6467
|
+
Inbox
|
|
6468
6468
|
</button>
|
|
6469
6469
|
<button class="sidebar-nav-item" id="nav-passports" data-view="passports" type="button">
|
|
6470
6470
|
<svg class="sidebar-nav-icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6"><rect x="4" y="2" width="12" height="16" rx="2"/><path d="M7 7h6M7 11h4"/></svg>
|
|
@@ -6504,8 +6504,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6504
6504
|
<div class="main-area">
|
|
6505
6505
|
<div class="page-header command-header">
|
|
6506
6506
|
<div class="page-title-block">
|
|
6507
|
-
<div class="page-title" id="page-title">
|
|
6508
|
-
<div class="page-subtitle" id="activity-message">
|
|
6507
|
+
<div class="page-title" id="page-title">Status</div>
|
|
6508
|
+
<div class="page-subtitle" id="activity-message">Review account, scope, daemon, inbox, and runtime health for this device.</div>
|
|
6509
6509
|
</div>
|
|
6510
6510
|
<div class="page-header-controls">
|
|
6511
6511
|
<div class="status-chip" id="connection-pill">
|
|
@@ -6728,7 +6728,7 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6728
6728
|
|
|
6729
6729
|
<p class="login-alt">Don't have an account? <button type="button" id="login-create-account">Create account</button></p>
|
|
6730
6730
|
|
|
6731
|
-
<div class="login-note">Global-ready auth is currently powered by secure device-code sign in. After sign in is approved on Forkit.dev, this screen switches to
|
|
6731
|
+
<div class="login-note">Global-ready auth is currently powered by secure device-code sign in. After sign in is approved on Forkit.dev, this screen switches to Status automatically.</div>
|
|
6732
6732
|
</form>
|
|
6733
6733
|
</section>
|
|
6734
6734
|
</section>
|
|
@@ -6808,11 +6808,11 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6808
6808
|
</svg>
|
|
6809
6809
|
</div>
|
|
6810
6810
|
<div class="command-hero-content">
|
|
6811
|
-
<h2>
|
|
6812
|
-
<p>
|
|
6811
|
+
<h2>Connect status</h2>
|
|
6812
|
+
<p>Account, scope, daemon, inbox, and runtime health for this device.</p>
|
|
6813
6813
|
<div class="command-hero-actions">
|
|
6814
|
-
<button class="primary" id="cmd-open-passports">Open
|
|
6815
|
-
<button class="secondary" id="cmd-check-status">
|
|
6814
|
+
<button class="primary" id="cmd-open-passports">Open Inbox</button>
|
|
6815
|
+
<button class="secondary" id="cmd-check-status">Open Runtime</button>
|
|
6816
6816
|
</div>
|
|
6817
6817
|
</div>
|
|
6818
6818
|
</div>
|
|
@@ -6831,8 +6831,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6831
6831
|
<div class="command-card-icon" aria-hidden="true">
|
|
6832
6832
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"><path d="M17.5 18H8a5 5 0 1 1 .9-9.9 6 6 0 0 1 11.5 2.6A3.8 3.8 0 0 1 17.5 18Z"/><path d="M9 13l2.2 2.2L16 10.5"/></svg>
|
|
6833
6833
|
</div>
|
|
6834
|
-
<h3>
|
|
6835
|
-
<div class="command-card-stat">
|
|
6834
|
+
<h3>Active Scope</h3>
|
|
6835
|
+
<div class="command-card-stat">Solo or governed scope</div>
|
|
6836
6836
|
<div class="command-card-items">
|
|
6837
6837
|
<div class="command-card-item">
|
|
6838
6838
|
<span class="command-card-item-label">Workspace</span>
|
|
@@ -6882,10 +6882,10 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6882
6882
|
<div id="view-discovery" class="view-hidden discovery-shell">
|
|
6883
6883
|
<div class="discovery-page-intro">
|
|
6884
6884
|
<div class="discovery-page-title-row">
|
|
6885
|
-
<h2>
|
|
6885
|
+
<h2>Inbox</h2>
|
|
6886
6886
|
<span class="discovery-page-count" id="discovery-page-count">0</span>
|
|
6887
6887
|
</div>
|
|
6888
|
-
<p>
|
|
6888
|
+
<p>Models, agents, and runtimes waiting for action on this device. Review them to continue registration, reuse an existing passport, or open runtime work.</p>
|
|
6889
6889
|
</div>
|
|
6890
6890
|
<div class="discovery-feedback" id="discovery-feedback" hidden></div>
|
|
6891
6891
|
|
|
@@ -6958,8 +6958,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6958
6958
|
</div>
|
|
6959
6959
|
|
|
6960
6960
|
<div class="status-line" id="discovery-last-scan">Last scan: -</div>
|
|
6961
|
-
<h3 class="discovery-side-title">
|
|
6962
|
-
<p class="discovery-side-copy">
|
|
6961
|
+
<h3 class="discovery-side-title">Inbox review</h3>
|
|
6962
|
+
<p class="discovery-side-copy">Select an inbox item and continue the exact next step Forkit Connect recommends.</p>
|
|
6963
6963
|
|
|
6964
6964
|
<section class="discovery-review-panel" id="discovery-review-panel">
|
|
6965
6965
|
<p class="discovery-review-kicker" id="discovery-review-kicker">Review item</p>
|
|
@@ -7023,7 +7023,7 @@ function renderLauncherHtml(launcherToken) {
|
|
|
7023
7023
|
<li><span class="discovery-note-label"><span class="discovery-note-icon info">i</span>Passport readiness</span><span class="discovery-note-value" id="disc-check-passport">-</span></li>
|
|
7024
7024
|
</ul>
|
|
7025
7025
|
|
|
7026
|
-
<button id="discovery-review-all" class="discovery-review-button" type="button">
|
|
7026
|
+
<button id="discovery-review-all" class="discovery-review-button" type="button">Open full inbox ↗</button>
|
|
7027
7027
|
</aside>
|
|
7028
7028
|
</div>
|
|
7029
7029
|
|
|
@@ -8944,18 +8944,16 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8944
8944
|
const boundCount = scopedPassports.filter((item) => String(item.bindingStatus || '').toLowerCase() === 'bound').length;
|
|
8945
8945
|
const subtitle = boundCount > 0
|
|
8946
8946
|
? boundCount === 1
|
|
8947
|
-
? '1 registration is already linked to the current scope.'
|
|
8948
|
-
: boundCount + ' registrations are already linked to the current scope.'
|
|
8949
|
-
: '
|
|
8947
|
+
? 'Status is healthy. 1 registration is already linked to the current scope.'
|
|
8948
|
+
: 'Status is healthy. ' + boundCount + ' registrations are already linked to the current scope.'
|
|
8949
|
+
: 'Status is healthy. Account, scope, daemon, and inbox are ready for new registrations.';
|
|
8950
8950
|
if (currentView === 'command') {
|
|
8951
8951
|
setText('activity-message', subtitle, '');
|
|
8952
8952
|
}
|
|
8953
8953
|
|
|
8954
|
-
const accountName = toDisplayName(workspaceLabel, 'Operator');
|
|
8955
|
-
const greeting = getGreetingLabel() + ', ' + accountName + '!';
|
|
8956
8954
|
if (currentView === 'command') {
|
|
8957
8955
|
const title = document.getElementById('page-title');
|
|
8958
|
-
if (title) title.textContent =
|
|
8956
|
+
if (title) title.textContent = 'Status';
|
|
8959
8957
|
}
|
|
8960
8958
|
}
|
|
8961
8959
|
|
|
@@ -9550,8 +9548,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
9550
9548
|
const VIEW_TITLES = {
|
|
9551
9549
|
login: 'Sign in',
|
|
9552
9550
|
'signed-out': 'Signed out',
|
|
9553
|
-
command: '
|
|
9554
|
-
discovery: '
|
|
9551
|
+
command: 'Status',
|
|
9552
|
+
discovery: 'Inbox',
|
|
9555
9553
|
passports: 'Passports',
|
|
9556
9554
|
runtime: 'Runtime',
|
|
9557
9555
|
diagnostics: 'Diagnostics',
|
|
@@ -9562,8 +9560,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
9562
9560
|
const VIEW_SUBTITLES = {
|
|
9563
9561
|
login: 'Authenticate with Forkit.dev to continue.',
|
|
9564
9562
|
'signed-out': 'Sign in again to restore registration sync and connected workflows.',
|
|
9565
|
-
command: '
|
|
9566
|
-
discovery: '
|
|
9563
|
+
command: 'Review account, scope, daemon, inbox, and runtime health for this device.',
|
|
9564
|
+
discovery: 'Review detected models, agents, and runtimes waiting in the local inbox.',
|
|
9567
9565
|
passports: 'Review published, draft and linked Passports from the local device state.',
|
|
9568
9566
|
runtime: 'Inspect connected runtime environments and metrics.',
|
|
9569
9567
|
diagnostics: 'Run health checks and review system diagnostics.',
|
|
@@ -10581,8 +10579,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
10581
10579
|
document.getElementById('diag-action-heartbeat').addEventListener('click', handleHeartbeat);
|
|
10582
10580
|
document.getElementById('diag-action-update').addEventListener('click', handleUpdate);
|
|
10583
10581
|
document.getElementById('activity-export-csv').addEventListener('click', handleExportActivityCsv);
|
|
10584
|
-
document.getElementById('cmd-open-passports').addEventListener('click', () => setView('
|
|
10585
|
-
document.getElementById('cmd-check-status').addEventListener('click', () => setView('
|
|
10582
|
+
document.getElementById('cmd-open-passports').addEventListener('click', () => setView('discovery'));
|
|
10583
|
+
document.getElementById('cmd-check-status').addEventListener('click', () => setView('runtime'));
|
|
10586
10584
|
|
|
10587
10585
|
function wireScopeDropdown(selectId) {
|
|
10588
10586
|
const button = document.getElementById(selectId);
|