dsh-github-copilot 0.4.0-alpha.48 → 0.4.0-alpha.50
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 +11 -0
- package/README.md +12 -11
- package/README.zh.md +12 -11
- package/deployment-baseline.json +1 -1
- package/docs/automatic-model-routing.md +30 -4
- package/docs/copilot-usage.md +1 -1
- package/lib/client.js +33 -9
- package/lib/client.js.map +1 -1
- package/lib/index.js +61 -36
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-D5tmOCvH.js → search-routing-CncYAO8_.js} +8 -1
- package/lib/types/auto-model-presentation.d.ts +2 -0
- package/lib/types/auto-model-routing.d.ts +3 -1
- package/lib/types/copilot-identity.d.ts +4 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
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.
|
|
1625
|
+
var version = "0.4.0-alpha.50";
|
|
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
|
|
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
|
|
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
|
|
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;
|
|
@@ -6201,10 +6203,10 @@ function record(value) {
|
|
|
6201
6203
|
}
|
|
6202
6204
|
function pendingAuto(ctx, agent) {
|
|
6203
6205
|
const candidate = ctx.get("sessionProjections");
|
|
6204
|
-
if (!record(candidate) || typeof candidate.stateOf !== "function") return
|
|
6206
|
+
if (!record(candidate) || typeof candidate.stateOf !== "function") return void 0;
|
|
6205
6207
|
const state = candidate.stateOf(agent.session, "modelSelection");
|
|
6206
|
-
if (!record(state)) return
|
|
6207
|
-
return
|
|
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;
|
|
6208
6210
|
}
|
|
6209
6211
|
function modelSelectionNotice(value) {
|
|
6210
6212
|
return record(value) && record(value.source) && value.source.kind === "model-selection";
|
|
@@ -6242,13 +6244,14 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
6242
6244
|
if (agentDisposers.has(agent)) return;
|
|
6243
6245
|
const removeAssembly = agent.ctx.on("system-prompt/assemble", async (_assembly, _context, next) => {
|
|
6244
6246
|
const assembled = await next();
|
|
6245
|
-
|
|
6247
|
+
const pending = pendingAuto(ctx, agent);
|
|
6248
|
+
if (pending === void 0) return assembled;
|
|
6246
6249
|
return {
|
|
6247
6250
|
...assembled,
|
|
6248
6251
|
variables: {
|
|
6249
6252
|
...assembled.variables,
|
|
6250
6253
|
provider: GITHUB_COPILOT_PREVIEW_PROVIDER_ID,
|
|
6251
|
-
model:
|
|
6254
|
+
model: pending
|
|
6252
6255
|
}
|
|
6253
6256
|
};
|
|
6254
6257
|
}, { prepend: true });
|
|
@@ -6259,12 +6262,14 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
6259
6262
|
turn,
|
|
6260
6263
|
messages: entered
|
|
6261
6264
|
});
|
|
6262
|
-
|
|
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;
|
|
6263
6268
|
let state = routed.get(agent);
|
|
6264
6269
|
if (state?.turn !== turn) {
|
|
6265
6270
|
state = {
|
|
6266
6271
|
turn,
|
|
6267
|
-
decision: await decide(dependencies, signal, entered),
|
|
6272
|
+
decision: await decide(dependencies, signal, entered, preference),
|
|
6268
6273
|
recorded: false
|
|
6269
6274
|
};
|
|
6270
6275
|
routed.set(agent, state);
|
|
@@ -6299,8 +6304,10 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
6299
6304
|
});
|
|
6300
6305
|
const removeRequest = ctx.on("agent/request", async ({ agent, turn, step, signal }, next) => {
|
|
6301
6306
|
const resolved = await next();
|
|
6302
|
-
const
|
|
6303
|
-
|
|
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) {
|
|
6304
6311
|
routed.delete(agent);
|
|
6305
6312
|
return resolved;
|
|
6306
6313
|
}
|
|
@@ -6312,9 +6319,11 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
6312
6319
|
if (state?.turn !== turn) {
|
|
6313
6320
|
const input = captured.get(agent);
|
|
6314
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");
|
|
6315
6324
|
state = {
|
|
6316
6325
|
turn,
|
|
6317
|
-
decision: await decide(dependencies, signal, input.messages),
|
|
6326
|
+
decision: await decide(dependencies, signal, input.messages, preference),
|
|
6318
6327
|
recorded: false
|
|
6319
6328
|
};
|
|
6320
6329
|
routed.set(agent, state);
|
|
@@ -6325,7 +6334,7 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
6325
6334
|
const selection = projections.stateOf(agent.session, "modelSelection");
|
|
6326
6335
|
if (record(selection) && selection.pending === null && agent.session.requestHeader() === void 0) Reflect.apply(agent.session.append, agent.session, ["model/selection", {
|
|
6327
6336
|
provider: GITHUB_COPILOT_PREVIEW_PROVIDER_ID,
|
|
6328
|
-
model:
|
|
6337
|
+
model: resolved.model
|
|
6329
6338
|
}]);
|
|
6330
6339
|
}
|
|
6331
6340
|
appendAutoModelDecision(agent, {
|
|
@@ -6333,6 +6342,7 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
6333
6342
|
step,
|
|
6334
6343
|
provider: GITHUB_COPILOT_PREVIEW_PROVIDER_ID,
|
|
6335
6344
|
model: state.decision.model.id,
|
|
6345
|
+
preference: state.decision.preference,
|
|
6336
6346
|
taskClass: state.decision.taskClass,
|
|
6337
6347
|
reason: state.decision.reason,
|
|
6338
6348
|
candidateCount: state.decision.candidateCount
|
|
@@ -6585,19 +6595,34 @@ var PreviewAdapter = class extends PiAiAdapter {
|
|
|
6585
6595
|
if (grant === void 0 || snapshot.accountKey !== copilotAccountKey(grant)) return [];
|
|
6586
6596
|
const proof = this.lifetime.proofFor(snapshot);
|
|
6587
6597
|
if (proof === void 0 || tokenFingerprint(grant.access) !== proof.tokenFingerprint || grant.expires <= Date.now()) return [];
|
|
6588
|
-
const models = snapshot.models.filter((model) => model.id
|
|
6598
|
+
const models = snapshot.models.filter((model) => autoModelPreference(model.id) === void 0 && model.input.includes("text"));
|
|
6589
6599
|
if (models.length === 0) return [];
|
|
6590
|
-
return [
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
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
|
+
];
|
|
6601
6626
|
} catch {
|
|
6602
6627
|
return [];
|
|
6603
6628
|
}
|
|
@@ -6606,13 +6631,13 @@ var PreviewAdapter = class extends PiAiAdapter {
|
|
|
6606
6631
|
owned(provider);
|
|
6607
6632
|
const cached = this.lifetime.source.readSnapshot();
|
|
6608
6633
|
const snapshot = await this.discoverSnapshot({ signal });
|
|
6609
|
-
if (model
|
|
6610
|
-
const models = snapshot.models.filter((candidate) => candidate.id
|
|
6634
|
+
if (autoModelPreference(model) !== void 0) {
|
|
6635
|
+
const models = snapshot.models.filter((candidate) => autoModelPreference(candidate.id) === void 0 && candidate.input.includes("text"));
|
|
6611
6636
|
if (models.length === 0) throw failure("COPILOT_AUTO_NO_ELIGIBLE_MODEL", "UNKNOWN_MODEL");
|
|
6612
6637
|
return {
|
|
6613
6638
|
provider,
|
|
6614
6639
|
id: model,
|
|
6615
|
-
name: "Auto",
|
|
6640
|
+
name: model === "auto" ? "Auto · Balance" : model === "auto-efficiency" ? "Auto · Efficiency" : "Auto · Intelligence",
|
|
6616
6641
|
inputModalities: [...autoModelInputModalities(models)]
|
|
6617
6642
|
};
|
|
6618
6643
|
}
|
|
@@ -6621,7 +6646,7 @@ var PreviewAdapter = class extends PiAiAdapter {
|
|
|
6621
6646
|
}
|
|
6622
6647
|
async prepareCall(provider, model, signal) {
|
|
6623
6648
|
owned(provider);
|
|
6624
|
-
if (model
|
|
6649
|
+
if (autoModelPreference(model) !== void 0) throw failure("COPILOT_AUTO_ROUTE_UNRESOLVED", "INVALID_REQUEST");
|
|
6625
6650
|
const cached = this.lifetime.source.readSnapshot();
|
|
6626
6651
|
const snapshot = await this.discoverSnapshot({ signal });
|
|
6627
6652
|
const lease = await this.lease(snapshot, model, signal, cached === snapshot);
|
|
@@ -6634,7 +6659,7 @@ var PreviewAdapter = class extends PiAiAdapter {
|
|
|
6634
6659
|
const owner = this;
|
|
6635
6660
|
return (async function* () {
|
|
6636
6661
|
owned(options.provider);
|
|
6637
|
-
if (options.model
|
|
6662
|
+
if (autoModelPreference(options.model) !== void 0) throw failure("COPILOT_AUTO_ROUTE_UNRESOLVED", "INVALID_REQUEST");
|
|
6638
6663
|
const cached = owner.lifetime.source.readSnapshot();
|
|
6639
6664
|
const snapshot = await owner.discoverSnapshot({ signal: options.signal });
|
|
6640
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-
|
|
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 {
|
|
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.
|
|
4
|
+
"version": "0.4.0-alpha.50",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|