dsh-subscriptions 0.1.5 → 0.2.0
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/README.md +31 -5
- package/lib/auth/rpc.d.ts +73 -2
- package/lib/auth/rpc.js +53 -3
- package/lib/client/ExternalUsageCards.js +1 -1
- package/lib/client/OllamaCard.d.ts +13 -0
- package/lib/client/OllamaCard.js +76 -0
- package/lib/client/OllamaSettingsManager.d.ts +24 -0
- package/lib/client/OllamaSettingsManager.js +246 -0
- package/lib/client/ProviderModelEditor.js +4 -2
- package/lib/client/SubscriptionUsageBadge.d.ts +1 -1
- package/lib/client/SubscriptionUsageBadge.js +3 -2
- package/lib/client/SubscriptionsSection.d.ts +2 -0
- package/lib/client/SubscriptionsSection.js +2 -1
- package/lib/client/UsageMeter.js +11 -7
- package/lib/client/locales.d.ts +68 -0
- package/lib/client/locales.js +77 -0
- package/lib/client/ollama-draft.d.ts +229 -0
- package/lib/client/ollama-draft.js +246 -0
- package/lib/client/usage-pace.d.ts +7 -0
- package/lib/client/usage-pace.js +15 -0
- package/lib/client.js +1385 -244
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +25 -0
- package/lib/index.js +3191 -2133
- package/lib/provider-settings.d.ts +2 -1
- package/lib/provider-settings.js +6 -4
- package/lib/providers/claude.d.ts +14 -1
- package/lib/providers/claude.js +19 -7
- package/lib/providers/common.d.ts +14 -0
- package/lib/providers/common.js +48 -0
- package/lib/providers/external-usage-controller.d.ts +9 -2
- package/lib/providers/external-usage-controller.js +19 -5
- package/lib/providers/external-usage.d.ts +8 -0
- package/lib/providers/external-usage.js +92 -8
- package/lib/providers/ollama-settings.d.ts +90 -0
- package/lib/providers/ollama-settings.js +197 -0
- package/lib/providers/ollama-web.d.ts +46 -0
- package/lib/providers/ollama-web.js +213 -0
- package/lib/providers/ollama.d.ts +107 -0
- package/lib/providers/ollama.js +545 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -60,6 +60,31 @@ export interface Config {
|
|
|
60
60
|
/** Google OAuth client secret, when required by the client registration. */
|
|
61
61
|
clientSecret?: string;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Ollama Cloud key-based route (no OAuth session). These values are the
|
|
65
|
+
* defaults for the Settings card's store (`ollama-settings.json`), which
|
|
66
|
+
* carries the user's overrides; the route itself ships no model catalog,
|
|
67
|
+
* so an unconfigured route advertises nothing.
|
|
68
|
+
*/
|
|
69
|
+
ollama?: {
|
|
70
|
+
/** Credential reference naming the Cloud API key (default OLLAMA_API_KEY). */
|
|
71
|
+
apiKeyRef?: string;
|
|
72
|
+
/** Native base URL (default https://ollama.com/api); chat maps it to /v1. */
|
|
73
|
+
baseURL?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Whole-catalog override; a non-empty list replaces the store's models
|
|
76
|
+
* and keeps its old meaning for existing profiles.
|
|
77
|
+
*/
|
|
78
|
+
models?: ModelEntry[];
|
|
79
|
+
/**
|
|
80
|
+
* Default for the card's web search/fetch switch (default false).
|
|
81
|
+
* Registration alone can divert the host's web seam when several
|
|
82
|
+
* providers look available, so it stays off until a profile pins
|
|
83
|
+
* `searchProvider`/`fetchProvider` to `ollama-cloud` or the user turns
|
|
84
|
+
* the switch on.
|
|
85
|
+
*/
|
|
86
|
+
web?: boolean;
|
|
87
|
+
};
|
|
63
88
|
/** Same-subscription account pools (and optional extra tier models). */
|
|
64
89
|
pool?: {
|
|
65
90
|
/** Enable account pooling (default true; needs ≥2 accounts of one provider). */
|