@pellux/goodvibes-tui 0.19.33 → 0.19.35
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/CHANGELOG.md +23 -0
- package/README.md +6 -3
- package/docs/foundation-artifacts/operator-contract.json +284 -112
- package/package.json +2 -2
- package/src/cli/management.ts +2 -2
- package/src/input/command-registry.ts +1 -0
- package/src/input/commands/cloudflare-runtime.ts +370 -0
- package/src/input/commands/local-auth-runtime.ts +4 -4
- package/src/input/commands/tts-runtime.ts +93 -10
- package/src/input/commands.ts +2 -0
- package/src/input/feed-context-factory.ts +1 -0
- package/src/input/handler-feed.ts +6 -0
- package/src/input/handler-modal-routes.ts +23 -10
- package/src/input/handler-modal-token-routes.ts +9 -0
- package/src/input/handler-onboarding-cloudflare.ts +391 -0
- package/src/input/handler-onboarding.ts +33 -0
- package/src/input/handler-picker-routes.ts +1 -1
- package/src/input/handler.ts +4 -1
- package/src/input/model-picker-types.ts +125 -0
- package/src/input/model-picker.ts +144 -135
- package/src/input/onboarding/onboarding-wizard-apply.ts +85 -0
- package/src/input/onboarding/onboarding-wizard-cloudflare-step.ts +494 -0
- package/src/input/onboarding/onboarding-wizard-cloudflare.ts +204 -0
- package/src/input/onboarding/onboarding-wizard-constants.ts +12 -1
- package/src/input/onboarding/onboarding-wizard-external-surface-extra-specs.ts +117 -0
- package/src/input/onboarding/onboarding-wizard-external-surfaces.ts +3 -41
- package/src/input/onboarding/onboarding-wizard-steps.ts +6 -6
- package/src/input/onboarding/onboarding-wizard-types.ts +8 -0
- package/src/input/settings-modal-types.ts +2 -1
- package/src/input/settings-modal.ts +30 -8
- package/src/renderer/buffer.ts +40 -2
- package/src/renderer/compositor.ts +25 -17
- package/src/renderer/model-picker-overlay.ts +70 -0
- package/src/renderer/settings-modal-helpers.ts +9 -0
- package/src/runtime/cloudflare-control-plane.ts +349 -0
- package/src/runtime/onboarding/apply.ts +9 -8
- package/src/runtime/onboarding/derivation.ts +26 -1
- package/src/runtime/onboarding/snapshot.ts +2 -0
- package/src/runtime/onboarding/types.ts +5 -1
- package/src/shell/ui-openers.ts +10 -1
- package/src/version.ts +1 -1
package/src/shell/ui-openers.ts
CHANGED
|
@@ -119,6 +119,14 @@ export function wireShellUiOpeners(options: WireShellUiOpenersOptions): void {
|
|
|
119
119
|
return runtime.model;
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
+
const getCurrentProviderForPickerTarget = (): string => {
|
|
123
|
+
const target = input.modelPicker.target;
|
|
124
|
+
if (target === 'helper') return String(configManager.get('helper.globalProvider') || runtime.provider);
|
|
125
|
+
if (target === 'tool') return String(configManager.get('tools.llmProvider') || runtime.provider);
|
|
126
|
+
if (target === 'tts') return String(configManager.get('tts.llmProvider') || runtime.provider);
|
|
127
|
+
return runtime.provider;
|
|
128
|
+
};
|
|
129
|
+
|
|
122
130
|
commandContext.openModelPicker = () => {
|
|
123
131
|
void (async () => {
|
|
124
132
|
const models = providerRegistry.getSelectableModels();
|
|
@@ -141,6 +149,7 @@ export function wireShellUiOpeners(options: WireShellUiOpenersOptions): void {
|
|
|
141
149
|
};
|
|
142
150
|
|
|
143
151
|
commandContext.openModelPickerWithTarget = (target) => input.openModelPickerWithTarget(target);
|
|
152
|
+
commandContext.openProviderModelPickerWithTarget = (target) => input.openProviderModelPickerWithTarget(target);
|
|
144
153
|
|
|
145
154
|
commandContext.openProviderPicker = () => {
|
|
146
155
|
void (async () => {
|
|
@@ -150,7 +159,7 @@ export function wireShellUiOpeners(options: WireShellUiOpenersOptions): void {
|
|
|
150
159
|
const secretProviderIds = await resolveSecretProviderIds();
|
|
151
160
|
input.modelPicker.configuredViaMap = buildConfiguredViaMap(providers, configuredIds, subscriptionManager, secretProviderIds);
|
|
152
161
|
input.modalOpened('modelPicker');
|
|
153
|
-
input.modelPicker.openProviders(providers,
|
|
162
|
+
input.modelPicker.openProviders(providers, getCurrentProviderForPickerTarget());
|
|
154
163
|
render();
|
|
155
164
|
})().catch((error: unknown) => {
|
|
156
165
|
commandContext.print?.(`Provider picker failed to open: ${error instanceof Error ? error.message : String(error)}`);
|
package/src/version.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { join } from 'node:path';
|
|
|
6
6
|
// The prebuild script updates the fallback value before compilation.
|
|
7
7
|
// Uses import.meta.dir (Bun) to locate package.json relative to this file,
|
|
8
8
|
// which is correct regardless of the process working directory.
|
|
9
|
-
let _version = '0.19.
|
|
9
|
+
let _version = '0.19.35';
|
|
10
10
|
try {
|
|
11
11
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', 'package.json'), 'utf-8'));
|
|
12
12
|
_version = pkg.version ?? _version;
|