forkit-connect 0.1.19 → 0.1.20
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 -20
- package/package.json +1 -1
package/dist/launcher.js
CHANGED
|
@@ -7085,16 +7085,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
7085
7085
|
<h4 class="discovery-review-title" id="discovery-review-title">Select a discovery item</h4>
|
|
7086
7086
|
<p class="discovery-review-meta" id="discovery-review-meta">Choose a model, agent, or runtime to review it here.</p>
|
|
7087
7087
|
<p class="discovery-review-detail" id="discovery-review-detail">Registering creates or updates a Forkit Passport. Nothing is published automatically.</p>
|
|
7088
|
-
<div class="review-summary-grid">
|
|
7089
|
-
<div class="review-summary-pill">
|
|
7090
|
-
<span class="review-summary-label">Action</span>
|
|
7091
|
-
<span class="review-summary-value" id="discovery-review-action-summary">Select an item</span>
|
|
7092
|
-
</div>
|
|
7093
|
-
<div class="review-summary-pill">
|
|
7094
|
-
<span class="review-summary-label">Scope</span>
|
|
7095
|
-
<span class="review-summary-value" id="discovery-review-scope-summary">Review</span>
|
|
7096
|
-
</div>
|
|
7097
|
-
</div>
|
|
7098
7088
|
<div class="review-recommendation-card">
|
|
7099
7089
|
<p class="review-recommendation-kicker">Recommended next step</p>
|
|
7100
7090
|
<h4 class="review-recommendation-title" id="discovery-review-recommendation-title">Select an item</h4>
|
|
@@ -7968,6 +7958,31 @@ function renderLauncherHtml(launcherToken) {
|
|
|
7968
7958
|
return '';
|
|
7969
7959
|
}
|
|
7970
7960
|
|
|
7961
|
+
function getDiscoveryReviewDetailText(item) {
|
|
7962
|
+
if (!item) return 'Registering creates or updates a Forkit Passport. Nothing is published automatically.';
|
|
7963
|
+
if (item.kind === 'runtime') {
|
|
7964
|
+
return item.statusTone === 'error'
|
|
7965
|
+
? 'Open runtime review to fix health before linked registrations continue.'
|
|
7966
|
+
: '';
|
|
7967
|
+
}
|
|
7968
|
+
if (item.statusLabel === 'Registration in progress') {
|
|
7969
|
+
return '';
|
|
7970
|
+
}
|
|
7971
|
+
if (item.statusLabel === 'Finish privately first') {
|
|
7972
|
+
return '';
|
|
7973
|
+
}
|
|
7974
|
+
if (item.matchedPassportGaid && !item.passportGaid) {
|
|
7975
|
+
return '';
|
|
7976
|
+
}
|
|
7977
|
+
if (item.passportGaid) {
|
|
7978
|
+
return '';
|
|
7979
|
+
}
|
|
7980
|
+
if (item.actionLabel === 'Retry') {
|
|
7981
|
+
return 'Review the latest local metadata before retrying registration.';
|
|
7982
|
+
}
|
|
7983
|
+
return '';
|
|
7984
|
+
}
|
|
7985
|
+
|
|
7971
7986
|
function getQuickReviewStatusText(item) {
|
|
7972
7987
|
if (!item) return 'Waiting for review.';
|
|
7973
7988
|
const meta = typeof item.statusMeta === 'string' ? item.statusMeta.trim() : '';
|
|
@@ -8476,14 +8491,11 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8476
8491
|
return;
|
|
8477
8492
|
}
|
|
8478
8493
|
if (!workspaceId) {
|
|
8479
|
-
setText('discovery-review-scope-summary', 'Choose governed workspace');
|
|
8480
8494
|
return;
|
|
8481
8495
|
}
|
|
8482
8496
|
if (!projectId) {
|
|
8483
|
-
setText('discovery-review-scope-summary', workspaceLabel ? (workspaceLabel + ' · choose project') : 'Choose project');
|
|
8484
8497
|
return;
|
|
8485
8498
|
}
|
|
8486
|
-
setText('discovery-review-scope-summary', [workspaceLabel, projectLabel].filter(Boolean).join(' · ') || 'Governed project');
|
|
8487
8499
|
}
|
|
8488
8500
|
|
|
8489
8501
|
function syncDiscoveryReviewRegistrationMode(item, mode) {
|
|
@@ -8503,7 +8515,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8503
8515
|
deferEnabled: canReviewDefer(item),
|
|
8504
8516
|
ignoreEnabled: canReviewIgnore(item),
|
|
8505
8517
|
});
|
|
8506
|
-
setText('discovery-review-action-summary', getReviewActionSummary(item, reviewScopeMode));
|
|
8507
8518
|
updateReviewRecommendation('discovery-review', item, reviewScopeMode);
|
|
8508
8519
|
}
|
|
8509
8520
|
updateDiscoveryReviewScopeSummary(reviewScopeMode);
|
|
@@ -8564,8 +8575,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8564
8575
|
setText('discovery-review-title', 'Select a discovery item');
|
|
8565
8576
|
setText('discovery-review-meta', 'Choose a model, agent, or runtime to review it here.');
|
|
8566
8577
|
setText('discovery-review-detail', 'Registering creates or updates a Forkit Passport. Nothing is published automatically.');
|
|
8567
|
-
setText('discovery-review-action-summary', 'Select an item');
|
|
8568
|
-
setText('discovery-review-scope-summary', 'Review');
|
|
8569
8578
|
setText('discovery-review-recommendation-title', 'Select an item');
|
|
8570
8579
|
setText('discovery-review-recommendation-detail', 'Connect will show the best next step after you choose a model, agent, or runtime.');
|
|
8571
8580
|
if (scopeWrap) scopeWrap.hidden = true;
|
|
@@ -8582,10 +8591,9 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8582
8591
|
setText('discovery-review-kicker', typeLabel);
|
|
8583
8592
|
setText('discovery-review-title', item.name);
|
|
8584
8593
|
setText('discovery-review-meta', item.subtitle + ' · ' + item.source);
|
|
8585
|
-
|
|
8586
|
-
setText('discovery-review-action-summary', getReviewActionSummary(item, 'solo'));
|
|
8594
|
+
setOptionalDetail('discovery-review-detail', getDiscoveryReviewDetailText(item));
|
|
8587
8595
|
updateReviewRecommendation('discovery-review', item, 'solo');
|
|
8588
|
-
setDiscoveryReviewStatus(
|
|
8596
|
+
setDiscoveryReviewStatus(getQuickReviewStatusText(item), item.statusTone === 'muted' ? '' : item.statusTone);
|
|
8589
8597
|
resetReviewResolutionActions('discovery-review');
|
|
8590
8598
|
setDiscoveryReviewButtons({
|
|
8591
8599
|
primaryLabel: getReviewPrimaryLabel(item, 'solo'),
|
|
@@ -8598,7 +8606,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8598
8606
|
if (scopeWrap) scopeWrap.hidden = true;
|
|
8599
8607
|
setReviewRegistrationMode('discovery-review', 'solo');
|
|
8600
8608
|
reviewScopeCacheKey = null;
|
|
8601
|
-
setText('discovery-review-scope-summary', getPassiveReviewScopeSummary(item));
|
|
8602
8609
|
updateReviewRecommendation('discovery-review', item, 'solo');
|
|
8603
8610
|
return;
|
|
8604
8611
|
}
|