dsh-github-copilot 0.4.0-alpha.58 → 0.4.0-alpha.60

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.
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import type { Context } from '@deepseek-ai/cordis';
9
9
  import type { SettingsNamespace } from '@deepseek-ai/dsh-settings';
10
- import type { InlineConfig } from './config.ts';
10
+ import type { LiveInlineConfig } from './config.ts';
11
11
  export { COPILOT_HOSTED_SEARCH_PROVIDER_ID, GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID, } from './traditional-search.ts';
12
12
  /** Cordis plugin name used by loader diagnostics. */
13
13
  export declare const name = "github-copilot";
@@ -35,5 +35,5 @@ export type { AuthorizationNoticeView, GitHubCopilotAuthorizationPhase, GitHubCo
35
35
  * registrations; both are effect-scoped and unregister on dispose.
36
36
  * @param config - the composition entry config, used as the settings base layer.
37
37
  */
38
- export declare function apply(ctx: Context, config: InlineConfig): void;
38
+ export declare function apply(ctx: Context, config: LiveInlineConfig): void;
39
39
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare const MAX_EXCLUDED_MODEL_IDS = 512;
2
+ export declare function normalizeExcludedModelIds(value: unknown): readonly string[];
3
+ export declare function excludedModelSet(value: unknown): ReadonlySet<string>;
4
+ export declare function filterExcludedModels<T extends {
5
+ readonly id: string;
6
+ }>(models: readonly T[], value: unknown): readonly T[];
7
+ //# sourceMappingURL=model-exclusions.d.ts.map
@@ -0,0 +1,9 @@
1
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
2
+ import type { ReactElement } from 'react';
3
+ import type { GitHubCopilotAuthorizationView } from './authorization-controller.ts';
4
+ export declare function GitHubCopilotModelPreferencesPanel(props: {
5
+ readonly remote: ClientContext['remote']['githubCopilot'];
6
+ readonly models: GitHubCopilotAuthorizationView['accountModels'];
7
+ readonly preferences: GitHubCopilotAuthorizationView['modelPreferences'];
8
+ }): ReactElement;
9
+ //# sourceMappingURL=model-preferences-card.d.ts.map
@@ -7,7 +7,7 @@ import type { InlineConfig } from './config.ts';
7
7
  import type { RequestBudgetPolicy } from './request-budget.ts';
8
8
  /** Safe request knobs; identities, model tables, endpoints and credentials are not configurable. */
9
9
  export type PreviewRouteConfig = Pick<PiAiProviderProfile, 'reasoning' | 'cacheRetention' | 'transport' | 'timeoutMs' | 'websocketConnectTimeoutMs' | 'streamIdleTimeoutMs' | 'maxRequestImageBytes' | 'requestImagePixelBudget' | 'requestImageMaxBytes' | 'retryPolicy'> & Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs'> & {
10
- readonly accountModelSettings?: () => Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs'>;
10
+ readonly accountModelSettings?: () => Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs' | 'excludedModelIds'>;
11
11
  readonly requestBudget?: Partial<RequestBudgetPolicy>;
12
12
  readonly requestBudgetSettings?: () => Partial<RequestBudgetPolicy>;
13
13
  };
@@ -13,6 +13,8 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
13
13
  reconcile(): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
14
14
  discoverModels(): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
15
15
  ensureModels(): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
16
+ excludeModel(modelId: string): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
17
+ restoreModel(modelId: string): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
16
18
  start(): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
17
19
  cancel(): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
18
20
  signOut(): Promise<RemoteResult<GitHubCopilotAuthorizationView>>;
@@ -74,6 +76,23 @@ export declare const GitHubCopilotAuthorizationViewSchema: z.ZodObject<{
74
76
  discoveredAt: z.ZodOptional<z.ZodNumber>;
75
77
  error: z.ZodOptional<z.ZodString>;
76
78
  }, z.core.$strict>>;
79
+ modelPreferences: z.ZodOptional<z.ZodObject<{
80
+ state: z.ZodEnum<{
81
+ error: "error";
82
+ ready: "ready";
83
+ }>;
84
+ writable: z.ZodBoolean;
85
+ revision: z.ZodOptional<z.ZodNumber>;
86
+ excludedModelIds: z.ZodArray<z.ZodString>;
87
+ lockedModelIds: z.ZodArray<z.ZodString>;
88
+ unavailableExcludedModelIds: z.ZodArray<z.ZodString>;
89
+ error: z.ZodOptional<z.ZodEnum<{
90
+ COPILOT_MODEL_PREFERENCES_UNAVAILABLE: "COPILOT_MODEL_PREFERENCES_UNAVAILABLE";
91
+ COPILOT_MODEL_EXCLUSION_SELECTED: "COPILOT_MODEL_EXCLUSION_SELECTED";
92
+ COPILOT_MODEL_EXCLUSION_CONFLICT: "COPILOT_MODEL_EXCLUSION_CONFLICT";
93
+ COPILOT_MODEL_EXCLUSION_SAVE_FAILED: "COPILOT_MODEL_EXCLUSION_SAVE_FAILED";
94
+ }>>;
95
+ }, z.core.$strict>>;
77
96
  route: z.ZodOptional<z.ZodObject<{
78
97
  state: z.ZodEnum<{
79
98
  error: "error";
@@ -1,4 +1,9 @@
1
1
  import type { Context } from '@deepseek-ai/cordis';
2
+ export interface LiveSetting<T> {
3
+ get(): T;
4
+ }
5
+ /** Capture a native volatile field for one operation, or retain a plain fixture value. */
6
+ export declare function readConfigValue<T>(value: T | LiveSetting<T>): T;
2
7
  /** Read non-secret configuration through the API available on the running Core. */
3
8
  export declare function readSettingsNamespace(ctx: Context, namespace: string): unknown;
4
9
  declare module '@deepseek-ai/cordis' {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-github-copilot",
3
3
  "description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
4
- "version": "0.4.0-alpha.58",
4
+ "version": "0.4.0-alpha.60",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",
@@ -85,7 +85,7 @@
85
85
  "dsh": "0.2.0-rc.2"
86
86
  },
87
87
  "peerDependencies": {
88
- "@deepseek-ai/cordis": "^4.0.2",
88
+ "@deepseek-ai/cordis": "^4.0.4",
89
89
  "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
90
90
  "@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
91
91
  "@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
@@ -102,7 +102,7 @@
102
102
  "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
103
103
  "@deepseek-ai/dsh-web": "0.2.0-rc.2",
104
104
  "@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
105
- "@deepseek-ai/schemastery": "^3.18.2"
105
+ "@deepseek-ai/schemastery": "^3.18.4"
106
106
  },
107
107
  "peerDependenciesMeta": {
108
108
  "@deepseek-ai/dsh-web-search-deepseek": {
@@ -133,12 +133,13 @@
133
133
  "zod": "^4.4.3"
134
134
  },
135
135
  "devDependencies": {
136
- "@deepseek-ai/cordis": "^4.0.2",
136
+ "@deepseek-ai/cordis": "~4.0.4",
137
137
  "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
138
138
  "@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
139
139
  "@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
140
140
  "@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
141
141
  "@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
142
+ "@deepseek-ai/dsh-config-editor": "0.2.0-rc.2",
142
143
  "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
143
144
  "@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
144
145
  "@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
@@ -161,7 +162,7 @@
161
162
  "@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
162
163
  "@deepseek-ai/dsh-web": "0.2.0-rc.2",
163
164
  "@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
164
- "@deepseek-ai/schemastery": "^3.18.2",
165
+ "@deepseek-ai/schemastery": "^3.18.4",
165
166
  "@types/node": "^22.0.0",
166
167
  "@types/react": "~18.3.1",
167
168
  "@types/react-dom": "18.3.7",