dsh-github-copilot 0.4.0-alpha.46 → 0.4.0-alpha.49

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/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as GITHUB_COPILOT_CREDENTIAL_KEY, C as currentSearchInitiator, D as isPluginPreviewProvider, E as readSettingsNamespace, M as GITHUB_COPILOT_PROVIDER_ID, O as readCopilotCatalog, S as currentChatRoute, T as onSettingsNamespaceUpdated, _ as RESPONSES_WEB_SEARCH_TOOL_TYPE, a as COPILOT_HOSTED_SEARCH_PROVIDER_ID, b as candidatesForRoute, c as abortable$1, d as readBounded, f as applyRequestAuth, h as ANTHROPIC_WEB_SEARCH_TOOL_TYPE, i as describeSearchBackend, j as GITHUB_COPILOT_PREVIEW_PROVIDER_ID, k as GITHUB_COPILOT_AUTO_MODEL_ID, l as isAbortError, m as providerRequestHeaders, n as routeSessionSearch, o as GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID, p as normalizeRequestAuth, r as DescribedSearchFallbackError, s as createTraditionalSearchProvider, t as isCopilotSearchSelection, u as providerErrorMessage, v as SearchPlan, w as currentSearchSelection, x as sameCandidates, y as WEB_SEARCH_TOOL_TYPE } from "./search-routing-D5tmOCvH.js";
1
+ import { A as GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID, C as currentSearchInitiator, D as isPluginPreviewProvider, E as readSettingsNamespace, F as autoModelPreference, M as GITHUB_COPILOT_CREDENTIAL_KEY, N as GITHUB_COPILOT_PREVIEW_PROVIDER_ID, O as readCopilotCatalog, P as GITHUB_COPILOT_PROVIDER_ID, S as currentChatRoute, T as onSettingsNamespaceUpdated, _ as RESPONSES_WEB_SEARCH_TOOL_TYPE, a as COPILOT_HOSTED_SEARCH_PROVIDER_ID, b as candidatesForRoute, c as abortable$1, d as readBounded, f as applyRequestAuth, h as ANTHROPIC_WEB_SEARCH_TOOL_TYPE, i as describeSearchBackend, j as GITHUB_COPILOT_AUTO_MODEL_ID, k as GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID, l as isAbortError, m as providerRequestHeaders, n as routeSessionSearch, o as GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID, p as normalizeRequestAuth, r as DescribedSearchFallbackError, s as createTraditionalSearchProvider, t as isCopilotSearchSelection, u as providerErrorMessage, v as SearchPlan, w as currentSearchSelection, x as sameCandidates, y as WEB_SEARCH_TOOL_TYPE } from "./search-routing-CncYAO8_.js";
2
2
  import AuthorizationService from "@deepseek-ai/dsh-authorization";
3
3
  import { createHash, randomUUID } from "node:crypto";
4
4
  import * as dshScope from "@deepseek-ai/dsh-scope";
@@ -1622,7 +1622,7 @@ let GitHubCopilotUsageController = (() => {
1622
1622
  //#endregion
1623
1623
  //#region package.json
1624
1624
  var name$1 = "dsh-github-copilot";
1625
- var version = "0.4.0-alpha.46";
1625
+ var version = "0.4.0-alpha.49";
1626
1626
  //#endregion
1627
1627
  //#region lib/types/probe.js
1628
1628
  /**
@@ -6168,29 +6168,31 @@ function reasonFor(features) {
6168
6168
  * MVP policy: filter only by account-verified hard capabilities, then choose a
6169
6169
  * deterministic capacity tier. Capacity is not a quality, latency or price claim.
6170
6170
  */
6171
- function selectAutoModel(models, messages) {
6171
+ function selectAutoModel(models, messages, preference = "balance") {
6172
6172
  const features = classifyAutoModelTurn(messages);
6173
- const eligible = models.filter((model) => model.id !== "auto" && model.input.includes("text") && (!features.requiresImage || model.input.includes("image"))).toSorted(compareCapacity);
6173
+ const eligible = models.filter((model) => autoModelPreference(model.id) === void 0 && model.input.includes("text") && (!features.requiresImage || model.input.includes("image"))).toSorted(compareCapacity);
6174
6174
  if (eligible.length === 0) throw new AutoModelRoutingError("COPILOT_AUTO_NO_ELIGIBLE_MODEL");
6175
- const index = features.taskClass === "fast" ? 0 : features.taskClass === "strong" ? eligible.length - 1 : Math.floor((eligible.length - 1) / 2);
6175
+ const middle = Math.floor((eligible.length - 1) / 2);
6176
+ const index = features.taskClass === "fast" ? preference === "intelligence" ? middle : 0 : features.taskClass === "strong" ? preference === "efficiency" ? Math.min(eligible.length - 1, Math.max(1, middle)) : eligible.length - 1 : preference === "efficiency" ? 0 : preference === "intelligence" ? eligible.length - 1 : middle;
6176
6177
  return Object.freeze({
6177
6178
  model: eligible[index],
6179
+ preference,
6178
6180
  taskClass: features.taskClass,
6179
6181
  reason: reasonFor(features),
6180
6182
  candidateCount: eligible.length
6181
6183
  });
6182
6184
  }
6183
6185
  function autoModelInputModalities(models) {
6184
- return models.filter((model) => model.id !== "auto" && model.input.includes("text")).some((model) => model.input.includes("image")) ? ["text", "image"] : ["text"];
6186
+ return models.filter((model) => autoModelPreference(model.id) === void 0 && model.input.includes("text")).some((model) => model.input.includes("image")) ? ["text", "image"] : ["text"];
6185
6187
  }
6186
6188
  //#endregion
6187
6189
  //#region lib/types/auto-model-host.js
6188
6190
  function failure$1(code) {
6189
6191
  return new LlmError(code, "INVALID_REQUEST");
6190
6192
  }
6191
- async function decide(dependencies, signal, messages) {
6193
+ async function decide(dependencies, signal, messages, preference) {
6192
6194
  try {
6193
- return selectAutoModel(await dependencies.loadModels(signal), messages);
6195
+ return selectAutoModel(await dependencies.loadModels(signal), messages, preference);
6194
6196
  } catch (cause) {
6195
6197
  if (cause instanceof AutoModelRoutingError) throw failure$1(cause.code);
6196
6198
  throw cause;
@@ -6199,16 +6201,12 @@ async function decide(dependencies, signal, messages) {
6199
6201
  function record(value) {
6200
6202
  return typeof value === "object" && value !== null;
6201
6203
  }
6202
- function autoIntent(ctx, agent) {
6204
+ function pendingAuto(ctx, agent) {
6203
6205
  const candidate = ctx.get("sessionProjections");
6204
- if (!record(candidate) || typeof candidate.stateOf !== "function") return false;
6205
- try {
6206
- const state = candidate.stateOf(agent.session, "modelSelection");
6207
- if (!record(state) || !record(state.pending)) return false;
6208
- return state.pending.provider === "github-copilot-preview" && state.pending.model === "auto";
6209
- } catch {
6210
- return false;
6211
- }
6206
+ if (!record(candidate) || typeof candidate.stateOf !== "function") return void 0;
6207
+ const state = candidate.stateOf(agent.session, "modelSelection");
6208
+ if (!record(state) || !record(state.pending) || state.pending.provider !== "github-copilot-preview") return void 0;
6209
+ return typeof state.pending.model === "string" && autoModelPreference(state.pending.model) !== void 0 ? state.pending.model : void 0;
6212
6210
  }
6213
6211
  function modelSelectionNotice(value) {
6214
6212
  return record(value) && record(value.source) && value.source.kind === "model-selection";
@@ -6244,19 +6242,34 @@ function installAutoModelRouting(ctx, dependencies) {
6244
6242
  const activeDisposers = /* @__PURE__ */ new Set();
6245
6243
  const installAgent = (agent) => {
6246
6244
  if (agentDisposers.has(agent)) return;
6247
- const dispose = agent.ctx.on("agent/pre-step", async ({ messages, turn, step, signal }, next) => {
6245
+ const removeAssembly = agent.ctx.on("system-prompt/assemble", async (_assembly, _context, next) => {
6246
+ const assembled = await next();
6247
+ const pending = pendingAuto(ctx, agent);
6248
+ if (pending === void 0) return assembled;
6249
+ return {
6250
+ ...assembled,
6251
+ variables: {
6252
+ ...assembled.variables,
6253
+ provider: GITHUB_COPILOT_PREVIEW_PROVIDER_ID,
6254
+ model: pending
6255
+ }
6256
+ };
6257
+ }, { prepend: true });
6258
+ const removePreStep = agent.ctx.on("agent/pre-step", async ({ messages, turn, step, signal }, next) => {
6248
6259
  const result = await next();
6249
6260
  const entered = result.kind === "enter" ? result.messages : messages;
6250
6261
  captured.set(agent, {
6251
6262
  turn,
6252
6263
  messages: entered
6253
6264
  });
6254
- if (result.kind !== "enter" || signal.aborted || !autoIntent(ctx, agent)) return result;
6265
+ const pending = pendingAuto(ctx, agent);
6266
+ const preference = pending === void 0 ? void 0 : autoModelPreference(pending);
6267
+ if (result.kind !== "enter" || signal.aborted || preference === void 0) return result;
6255
6268
  let state = routed.get(agent);
6256
6269
  if (state?.turn !== turn) {
6257
6270
  state = {
6258
6271
  turn,
6259
- decision: await decide(dependencies, signal, entered),
6272
+ decision: await decide(dependencies, signal, entered, preference),
6260
6273
  recorded: false
6261
6274
  };
6262
6275
  routed.set(agent, state);
@@ -6271,6 +6284,10 @@ function installAutoModelRouting(ctx, dependencies) {
6271
6284
  messages: [...filtered, notice]
6272
6285
  };
6273
6286
  }, { prepend: true });
6287
+ const dispose = () => {
6288
+ removeAssembly();
6289
+ removePreStep();
6290
+ };
6274
6291
  agentDisposers.set(agent, dispose);
6275
6292
  activeDisposers.add(dispose);
6276
6293
  };
@@ -6287,7 +6304,14 @@ function installAutoModelRouting(ctx, dependencies) {
6287
6304
  });
6288
6305
  const removeRequest = ctx.on("agent/request", async ({ agent, turn, step, signal }, next) => {
6289
6306
  const resolved = await next();
6290
- if (resolved.provider !== "github-copilot-preview" || resolved.model !== "auto") {
6307
+ const pending = pendingAuto(ctx, agent);
6308
+ const virtualPreference = resolved.provider === "github-copilot-preview" ? autoModelPreference(resolved.model) : void 0;
6309
+ const virtual = virtualPreference !== void 0;
6310
+ if (!virtual && pending === void 0) {
6311
+ routed.delete(agent);
6312
+ return resolved;
6313
+ }
6314
+ if (resolved.provider !== "github-copilot-preview") {
6291
6315
  routed.delete(agent);
6292
6316
  return resolved;
6293
6317
  }
@@ -6295,19 +6319,30 @@ function installAutoModelRouting(ctx, dependencies) {
6295
6319
  if (state?.turn !== turn) {
6296
6320
  const input = captured.get(agent);
6297
6321
  if (input?.turn !== turn) throw failure$1("COPILOT_AUTO_TURN_CONTEXT_UNAVAILABLE");
6322
+ const preference = virtualPreference ?? (pending === void 0 ? void 0 : autoModelPreference(pending));
6323
+ if (preference === void 0) throw failure$1("COPILOT_AUTO_PREFERENCE_UNAVAILABLE");
6298
6324
  state = {
6299
6325
  turn,
6300
- decision: await decide(dependencies, signal, input.messages),
6326
+ decision: await decide(dependencies, signal, input.messages, preference),
6301
6327
  recorded: false
6302
6328
  };
6303
6329
  routed.set(agent, state);
6304
6330
  }
6305
6331
  if (!state.recorded) {
6332
+ const projections = ctx.get("sessionProjections");
6333
+ if (virtual && record(projections) && typeof projections.stateOf === "function") {
6334
+ const selection = projections.stateOf(agent.session, "modelSelection");
6335
+ if (record(selection) && selection.pending === null && agent.session.requestHeader() === void 0) Reflect.apply(agent.session.append, agent.session, ["model/selection", {
6336
+ provider: GITHUB_COPILOT_PREVIEW_PROVIDER_ID,
6337
+ model: resolved.model
6338
+ }]);
6339
+ }
6306
6340
  appendAutoModelDecision(agent, {
6307
6341
  turn,
6308
6342
  step,
6309
6343
  provider: GITHUB_COPILOT_PREVIEW_PROVIDER_ID,
6310
6344
  model: state.decision.model.id,
6345
+ preference: state.decision.preference,
6311
6346
  taskClass: state.decision.taskClass,
6312
6347
  reason: state.decision.reason,
6313
6348
  candidateCount: state.decision.candidateCount
@@ -6560,19 +6595,34 @@ var PreviewAdapter = class extends PiAiAdapter {
6560
6595
  if (grant === void 0 || snapshot.accountKey !== copilotAccountKey(grant)) return [];
6561
6596
  const proof = this.lifetime.proofFor(snapshot);
6562
6597
  if (proof === void 0 || tokenFingerprint(grant.access) !== proof.tokenFingerprint || grant.expires <= Date.now()) return [];
6563
- const models = snapshot.models.filter((model) => model.id !== "auto" && model.input.includes("text"));
6598
+ const models = snapshot.models.filter((model) => autoModelPreference(model.id) === void 0 && model.input.includes("text"));
6564
6599
  if (models.length === 0) return [];
6565
- return [{
6566
- provider,
6567
- id: GITHUB_COPILOT_AUTO_MODEL_ID,
6568
- name: "Auto",
6569
- inputModalities: [...autoModelInputModalities(models)]
6570
- }, ...models.map((model) => ({
6571
- provider,
6572
- id: model.id,
6573
- name: model.name,
6574
- inputModalities: [...model.input]
6575
- }))];
6600
+ return [
6601
+ {
6602
+ provider,
6603
+ id: GITHUB_COPILOT_AUTO_MODEL_ID,
6604
+ name: "Auto · Balance",
6605
+ inputModalities: [...autoModelInputModalities(models)]
6606
+ },
6607
+ {
6608
+ provider,
6609
+ id: GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID,
6610
+ name: "Auto · Efficiency",
6611
+ inputModalities: [...autoModelInputModalities(models)]
6612
+ },
6613
+ {
6614
+ provider,
6615
+ id: GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID,
6616
+ name: "Auto · Intelligence",
6617
+ inputModalities: [...autoModelInputModalities(models)]
6618
+ },
6619
+ ...models.map((model) => ({
6620
+ provider,
6621
+ id: model.id,
6622
+ name: model.name,
6623
+ inputModalities: [...model.input]
6624
+ }))
6625
+ ];
6576
6626
  } catch {
6577
6627
  return [];
6578
6628
  }
@@ -6581,13 +6631,13 @@ var PreviewAdapter = class extends PiAiAdapter {
6581
6631
  owned(provider);
6582
6632
  const cached = this.lifetime.source.readSnapshot();
6583
6633
  const snapshot = await this.discoverSnapshot({ signal });
6584
- if (model === "auto") {
6585
- const models = snapshot.models.filter((candidate) => candidate.id !== "auto" && candidate.input.includes("text"));
6634
+ if (autoModelPreference(model) !== void 0) {
6635
+ const models = snapshot.models.filter((candidate) => autoModelPreference(candidate.id) === void 0 && candidate.input.includes("text"));
6586
6636
  if (models.length === 0) throw failure("COPILOT_AUTO_NO_ELIGIBLE_MODEL", "UNKNOWN_MODEL");
6587
6637
  return {
6588
6638
  provider,
6589
6639
  id: model,
6590
- name: "Auto",
6640
+ name: model === "auto" ? "Auto · Balance" : model === "auto-efficiency" ? "Auto · Efficiency" : "Auto · Intelligence",
6591
6641
  inputModalities: [...autoModelInputModalities(models)]
6592
6642
  };
6593
6643
  }
@@ -6596,7 +6646,7 @@ var PreviewAdapter = class extends PiAiAdapter {
6596
6646
  }
6597
6647
  async prepareCall(provider, model, signal) {
6598
6648
  owned(provider);
6599
- if (model === "auto") throw failure("COPILOT_AUTO_ROUTE_UNRESOLVED", "INVALID_REQUEST");
6649
+ if (autoModelPreference(model) !== void 0) throw failure("COPILOT_AUTO_ROUTE_UNRESOLVED", "INVALID_REQUEST");
6600
6650
  const cached = this.lifetime.source.readSnapshot();
6601
6651
  const snapshot = await this.discoverSnapshot({ signal });
6602
6652
  const lease = await this.lease(snapshot, model, signal, cached === snapshot);
@@ -6609,7 +6659,7 @@ var PreviewAdapter = class extends PiAiAdapter {
6609
6659
  const owner = this;
6610
6660
  return (async function* () {
6611
6661
  owned(options.provider);
6612
- if (options.model === "auto") throw failure("COPILOT_AUTO_ROUTE_UNRESOLVED", "INVALID_REQUEST");
6662
+ if (autoModelPreference(options.model) !== void 0) throw failure("COPILOT_AUTO_ROUTE_UNRESOLVED", "INVALID_REQUEST");
6613
6663
  const cached = owner.lifetime.source.readSnapshot();
6614
6664
  const snapshot = await owner.discoverSnapshot({ signal: options.signal });
6615
6665
  const lease = await owner.lease(snapshot, options.model, options.signal, cached === snapshot);
package/lib/routed-web.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as currentSearchInitiator, D as isPluginPreviewProvider, t as isCopilotSearchSelection, w as currentSearchSelection } from "./search-routing-D5tmOCvH.js";
1
+ import { C as currentSearchInitiator, D as isPluginPreviewProvider, t as isCopilotSearchSelection, w as currentSearchSelection } from "./search-routing-CncYAO8_.js";
2
2
  import { WebError, WebRuntime } from "@deepseek-ai/dsh-web";
3
3
  //#region lib/types/routed-web.js
4
4
  /**
@@ -8,6 +8,13 @@ const GITHUB_COPILOT_CREDENTIAL_KEY$1 = "llm-pi-ai/github-copilot";
8
8
  const GITHUB_COPILOT_PROVIDER_ID = "github-copilot";
9
9
  const GITHUB_COPILOT_PREVIEW_PROVIDER_ID = "github-copilot-preview";
10
10
  const GITHUB_COPILOT_AUTO_MODEL_ID = "auto";
11
+ const GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID = "auto-efficiency";
12
+ const GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID = "auto-intelligence";
13
+ function autoModelPreference(model) {
14
+ if (model === "auto") return "balance";
15
+ if (model === "auto-efficiency") return "efficiency";
16
+ if (model === "auto-intelligence") return "intelligence";
17
+ }
11
18
  //#endregion
12
19
  //#region lib/types/model-protocol.js
13
20
  /** Project only public leaves and the same pi library's supported wire efforts. */
@@ -788,4 +795,4 @@ async function routeSessionSearch(request, signal, deps) {
788
795
  };
789
796
  }
790
797
  //#endregion
791
- export { GITHUB_COPILOT_CREDENTIAL_KEY$1 as A, currentSearchInitiator as C, isPluginPreviewProvider as D, readSettingsNamespace as E, GITHUB_COPILOT_PROVIDER_ID as M, readCopilotCatalog as O, currentChatRoute as S, onSettingsNamespaceUpdated as T, RESPONSES_WEB_SEARCH_TOOL_TYPE as _, COPILOT_HOSTED_SEARCH_PROVIDER_ID as a, candidatesForRoute as b, abortable as c, readBounded as d, applyRequestAuth as f, GITHUB_COPILOT_CREDENTIAL_KEY as g, ANTHROPIC_WEB_SEARCH_TOOL_TYPE as h, describeSearchBackend as i, GITHUB_COPILOT_PREVIEW_PROVIDER_ID as j, GITHUB_COPILOT_AUTO_MODEL_ID as k, isAbortError as l, providerRequestHeaders as m, routeSessionSearch as n, GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID as o, normalizeRequestAuth as p, DescribedSearchFallbackError as r, createTraditionalSearchProvider as s, isCopilotSearchSelection as t, providerErrorMessage as u, SearchPlan as v, currentSearchSelection as w, sameCandidates as x, WEB_SEARCH_TOOL_TYPE as y };
798
+ export { GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID as A, currentSearchInitiator as C, isPluginPreviewProvider as D, readSettingsNamespace as E, autoModelPreference as F, GITHUB_COPILOT_CREDENTIAL_KEY$1 as M, GITHUB_COPILOT_PREVIEW_PROVIDER_ID as N, readCopilotCatalog as O, GITHUB_COPILOT_PROVIDER_ID as P, currentChatRoute as S, onSettingsNamespaceUpdated as T, RESPONSES_WEB_SEARCH_TOOL_TYPE as _, COPILOT_HOSTED_SEARCH_PROVIDER_ID as a, candidatesForRoute as b, abortable as c, readBounded as d, applyRequestAuth as f, GITHUB_COPILOT_CREDENTIAL_KEY as g, ANTHROPIC_WEB_SEARCH_TOOL_TYPE as h, describeSearchBackend as i, GITHUB_COPILOT_AUTO_MODEL_ID as j, GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID as k, isAbortError as l, providerRequestHeaders as m, routeSessionSearch as n, GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID as o, normalizeRequestAuth as p, DescribedSearchFallbackError as r, createTraditionalSearchProvider as s, isCopilotSearchSelection as t, providerErrorMessage as u, SearchPlan as v, currentSearchSelection as w, sameCandidates as x, WEB_SEARCH_TOOL_TYPE as y };
@@ -1,8 +1,10 @@
1
+ import type { AutoModelPreference } from './copilot-identity.ts';
1
2
  export declare const AUTO_MODEL_ATTRIBUTION_KEY = "github-copilot-auto-model-attribution";
2
3
  type Dispose = () => void;
3
4
  export interface AutoModelAttribution {
4
5
  readonly provider: string;
5
6
  readonly model: string;
7
+ readonly preference?: AutoModelPreference;
6
8
  readonly taskClass: 'fast' | 'balanced' | 'strong';
7
9
  readonly reason: 'short-text-turn' | 'standard-turn' | 'large-structured-turn' | 'image-capability';
8
10
  readonly candidateCount: number;
@@ -1,4 +1,5 @@
1
1
  import type { AccountModelDescriptor } from './account-model-catalog.ts';
2
+ import type { AutoModelPreference } from './copilot-identity.ts';
2
3
  export type AutoModelClass = 'fast' | 'balanced' | 'strong';
3
4
  export interface AutoModelFeatures {
4
5
  readonly taskClass: AutoModelClass;
@@ -8,6 +9,7 @@ export interface AutoModelFeatures {
8
9
  }
9
10
  export interface AutoModelDecision {
10
11
  readonly model: AccountModelDescriptor;
12
+ readonly preference: AutoModelPreference;
11
13
  readonly taskClass: AutoModelClass;
12
14
  readonly reason: 'short-text-turn' | 'standard-turn' | 'large-structured-turn' | 'image-capability';
13
15
  readonly candidateCount: number;
@@ -21,6 +23,6 @@ export declare function classifyAutoModelTurn(messages: readonly unknown[]): Aut
21
23
  * MVP policy: filter only by account-verified hard capabilities, then choose a
22
24
  * deterministic capacity tier. Capacity is not a quality, latency or price claim.
23
25
  */
24
- export declare function selectAutoModel(models: readonly AccountModelDescriptor[], messages: readonly unknown[]): AutoModelDecision;
26
+ export declare function selectAutoModel(models: readonly AccountModelDescriptor[], messages: readonly unknown[], preference?: AutoModelPreference): AutoModelDecision;
25
27
  export declare function autoModelInputModalities(models: readonly AccountModelDescriptor[]): readonly ('text' | 'image')[];
26
28
  //# sourceMappingURL=auto-model-routing.d.ts.map
@@ -4,4 +4,8 @@ export declare const GITHUB_COPILOT_PROVIDER_ID = "github-copilot";
4
4
  export declare const GITHUB_COPILOT_PREVIEW_PROVIDER_ID = "github-copilot-preview";
5
5
  export declare const GITHUB_COPILOT_PREVIEW_MODEL_ID = "gpt-6-astra";
6
6
  export declare const GITHUB_COPILOT_AUTO_MODEL_ID = "auto";
7
+ export declare const GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID = "auto-efficiency";
8
+ export declare const GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID = "auto-intelligence";
9
+ export type AutoModelPreference = 'efficiency' | 'balance' | 'intelligence';
10
+ export declare function autoModelPreference(model: string): AutoModelPreference | undefined;
7
11
  //# sourceMappingURL=copilot-identity.d.ts.map
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.46",
4
+ "version": "0.4.0-alpha.49",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",