@aexol/opencode-wizard 0.1.9 → 0.1.11
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/server.js +19 -3
- package/dist/server.js.map +1 -1
- package/dist/tui.d.ts +8 -20
- package/dist/tui.js +434 -150
- package/dist/tui.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1798,14 +1798,30 @@ const OpencodeWizardSkillsPlugin = async input => {
|
|
|
1798
1798
|
})
|
|
1799
1799
|
},
|
|
1800
1800
|
'experimental.chat.system.transform': async (_hookInput, output) => {
|
|
1801
|
-
|
|
1801
|
+
let publishedSkillsResult = await loadPublishedSkillCatalog({
|
|
1802
1802
|
directory: input.directory,
|
|
1803
1803
|
useCache: true,
|
|
1804
1804
|
signal: AbortSignal.timeout(5_000)
|
|
1805
1805
|
});
|
|
1806
1806
|
if (!publishedSkillsResult.fetchResult.ok && publishedSkillsResult.fetchResult.status === 'missing_auth') {
|
|
1807
|
-
|
|
1808
|
-
|
|
1807
|
+
try {
|
|
1808
|
+
await startLoginCompletion('status').then(async authState => {
|
|
1809
|
+
await schedulePresenceStart(authState);
|
|
1810
|
+
});
|
|
1811
|
+
publishedSkillsResult = await loadPublishedSkillCatalog({
|
|
1812
|
+
directory: input.directory,
|
|
1813
|
+
useCache: false,
|
|
1814
|
+
signal: AbortSignal.timeout(5_000)
|
|
1815
|
+
});
|
|
1816
|
+
} catch {
|
|
1817
|
+
const loginMessage = loginBootstrap.snapshot.message ? ` Last login status: ${loginBootstrap.snapshot.message}` : '';
|
|
1818
|
+
output.system.push(`opencode-wizard plugin stored auth is missing, expired, or rejected. Startup browser login was started but did not complete successfully.${loginMessage} Use opencode_wizard_status or opencode_wizard_published_skills_fetch to retry authentication when published skills are needed. No tokens are exposed.`);
|
|
1819
|
+
return;
|
|
1820
|
+
}
|
|
1821
|
+
if (!publishedSkillsResult.fetchResult.ok) {
|
|
1822
|
+
output.system.push(`opencode-wizard plugin startup login completed, but published skills are still unavailable: ${publishedSkillsResult.fetchResult.message} No tokens are exposed.`);
|
|
1823
|
+
return;
|
|
1824
|
+
}
|
|
1809
1825
|
}
|
|
1810
1826
|
const details = await loadSystemNoteDetails({
|
|
1811
1827
|
publishedSkillsResult,
|