forkit-connect 0.1.9 → 0.1.10
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/cli.js +11 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -929,6 +929,7 @@ function buildInteractiveOverviewSections(service, sessionState, accountLimits)
|
|
|
929
929
|
];
|
|
930
930
|
// Account-bound sections: only shown after login
|
|
931
931
|
if (accountTrusted) {
|
|
932
|
+
const otherReadyCount = getOtherReadyCount(overview.ready_to_connect_count, overview.draft_first_count);
|
|
932
933
|
sections.push({
|
|
933
934
|
title: 'Discovery',
|
|
934
935
|
lines: [
|
|
@@ -941,7 +942,8 @@ function buildInteractiveOverviewSections(service, sessionState, accountLimits)
|
|
|
941
942
|
sections.push({
|
|
942
943
|
title: 'Inbox',
|
|
943
944
|
lines: [
|
|
944
|
-
shellLine('
|
|
945
|
+
shellLine('Draft-first review', overview.draft_first_count),
|
|
946
|
+
shellLine('Ready to connect', otherReadyCount),
|
|
945
947
|
shellLine('Needs confirmation', overview.needs_confirmation_count),
|
|
946
948
|
shellLine('Connected', overview.connected_count),
|
|
947
949
|
...(overview.lifecycle_note ? [shellLine('Note', overview.lifecycle_note)] : []),
|
|
@@ -970,7 +972,8 @@ function buildInteractiveOverviewSections(service, sessionState, accountLimits)
|
|
|
970
972
|
lines: [
|
|
971
973
|
shellLine('Workspace', formatScopeReferenceLabel(preparedWorkspace || null, 'workspace')),
|
|
972
974
|
shellLine('Project', formatScopeReferenceLabel(preparedProject || null, 'project')),
|
|
973
|
-
shellLine('
|
|
975
|
+
shellLine('Draft-first review', overview.draft_first_count),
|
|
976
|
+
shellLine('Ready to connect', otherReadyCount),
|
|
974
977
|
shellLine('Needs confirmation', overview.needs_confirmation_count),
|
|
975
978
|
],
|
|
976
979
|
});
|
|
@@ -1479,7 +1482,7 @@ function printConnectStatusOverview(status) {
|
|
|
1479
1482
|
}, null, 2));
|
|
1480
1483
|
}
|
|
1481
1484
|
function printPublicStatusOverview(status) {
|
|
1482
|
-
const otherReadyCount =
|
|
1485
|
+
const otherReadyCount = getOtherReadyCount(status.ready_to_connect_count, status.draft_first_count);
|
|
1483
1486
|
console.log('[forkit-connect] Status');
|
|
1484
1487
|
console.log(`- device=${status.device_paired ? 'paired' : 'approval pending'}`);
|
|
1485
1488
|
console.log(`- scope=${status.workspace_id && status.project_id ? `${status.workspace_id} / ${status.project_id}` : 'not selected'}`);
|
|
@@ -1496,6 +1499,9 @@ function printPublicStatusOverview(status) {
|
|
|
1496
1499
|
console.log('- warning=Local workspace/project scope exists, but the account session is missing. Re-login is required before governed actions can continue.');
|
|
1497
1500
|
}
|
|
1498
1501
|
}
|
|
1502
|
+
function getOtherReadyCount(readyToConnectCount, draftFirstCount) {
|
|
1503
|
+
return Math.max(0, readyToConnectCount - draftFirstCount);
|
|
1504
|
+
}
|
|
1499
1505
|
function printPublicStatusGuidance(status, sessionState) {
|
|
1500
1506
|
const accountLabel = sessionState === 'authorized'
|
|
1501
1507
|
? 'connected'
|
|
@@ -2106,6 +2112,7 @@ async function run() {
|
|
|
2106
2112
|
};
|
|
2107
2113
|
const renderInteractiveWorkspaceScreen = async () => {
|
|
2108
2114
|
const payload = await buildWorkspaceStatusPayload();
|
|
2115
|
+
const otherReadyCount = getOtherReadyCount(payload.ready_to_connect_count, payload.draft_first_count);
|
|
2109
2116
|
renderInteractiveScreen('Workspace Scope', {
|
|
2110
2117
|
subtitle: 'Current workspace and project selection',
|
|
2111
2118
|
sections: [
|
|
@@ -2125,7 +2132,7 @@ async function run() {
|
|
|
2125
2132
|
title: 'Queue',
|
|
2126
2133
|
lines: [
|
|
2127
2134
|
shellLine('Draft-first review', payload.draft_first_count),
|
|
2128
|
-
shellLine('Ready to connect',
|
|
2135
|
+
shellLine('Ready to connect', otherReadyCount),
|
|
2129
2136
|
shellLine('Needs confirmation', payload.needs_confirmation_count),
|
|
2130
2137
|
shellLine('Connected', payload.connected_count),
|
|
2131
2138
|
...(payload.lifecycle_note ? [shellLine('Note', payload.lifecycle_note)] : []),
|