dsh-github-copilot 0.4.0-alpha.132 → 0.4.0-alpha.134
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/AGENTS.md +2 -2
- package/CHANGELOG.md +19 -7
- package/README.md +8 -7
- package/README.zh.md +8 -7
- package/deployment-baseline.json +16 -9
- package/docs/auto-review-sampling.md +60 -0
- package/docs/model-compatibility-acceptance.md +2 -2
- package/docs/official-first-020-rc2.md +1 -1
- package/lib/client.js +1 -1
- package/lib/index.js +200 -102
- package/lib/types/account-model-catalog.d.ts +0 -7
- package/lib/types/auto-review-sampling.d.ts +6 -0
- package/lib/types/config.d.ts +2 -0
- package/lib/types/preview-provider.d.ts +2 -1
- package/lib/types/preview-route.d.ts +1 -1
- package/package.json +2 -1
|
@@ -33,13 +33,6 @@ export interface AccountModelDescriptor {
|
|
|
33
33
|
readonly input: readonly ('text' | 'image')[];
|
|
34
34
|
readonly category?: AccountModelCategory;
|
|
35
35
|
readonly reasoning: AccountModelReasoning;
|
|
36
|
-
readonly sampling: {
|
|
37
|
-
/**
|
|
38
|
-
* GitHub's explicit thinking capability is the supplier-owned compatibility
|
|
39
|
-
* fact used by its official OpenAI endpoint to omit temperature.
|
|
40
|
-
*/
|
|
41
|
-
readonly temperature: 'supported' | 'unsupported' | 'unknown';
|
|
42
|
-
};
|
|
43
36
|
readonly evidence: {
|
|
44
37
|
/** Recognized endpoint literals only, never arbitrary URLs or query strings. */
|
|
45
38
|
readonly endpoints: readonly RecognizedEndpoint[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
/** Resolve the published callback, never the configured entry's display name. */
|
|
3
|
+
export declare function isNativeReviewerContext(caller: Context): Promise<boolean>;
|
|
4
|
+
/** Reversible service-read delegation; neither the native service nor its context is changed. */
|
|
5
|
+
export declare function installAutoReviewSampling(ctx: Context): () => void;
|
|
6
|
+
//# sourceMappingURL=auto-review-sampling.d.ts.map
|
package/lib/types/config.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface InlineConfig {
|
|
|
35
35
|
chatMaxRequestImageBytes?: number;
|
|
36
36
|
/** Default-off lossless gzip for eligible managed Responses HTTP requests. */
|
|
37
37
|
responsesRequestCompression?: boolean;
|
|
38
|
+
/** Default-off override omitting temperature from all managed Responses requests. */
|
|
39
|
+
responsesOmitTemperature?: boolean;
|
|
38
40
|
/** Verify the endpoint executes native search before serving. */
|
|
39
41
|
probe: boolean;
|
|
40
42
|
/** Bound on one probe request, in milliseconds. */
|
|
@@ -37,6 +37,8 @@ export interface PreviewProviderGuard {
|
|
|
37
37
|
export interface AccountProviderGuard extends PreviewProviderGuard {
|
|
38
38
|
/** Explicit lossless HTTP encoding; default-off and independent of context admission. */
|
|
39
39
|
readonly responsesRequestCompression?: boolean;
|
|
40
|
+
/** Explicit compatibility override for all managed Responses requests. */
|
|
41
|
+
readonly responsesOmitTemperature?: boolean;
|
|
40
42
|
/** Explicit, request-admitted recovery; absent by default. */
|
|
41
43
|
recoverReplay?(payload: unknown): unknown;
|
|
42
44
|
/** Only exact verified scope HTTP failures may offer recovery evidence. */
|
|
@@ -56,7 +58,6 @@ export type AccountPiModel = Model<AccountModelApi> & {
|
|
|
56
58
|
readonly unmappedReasoningEfforts: readonly string[];
|
|
57
59
|
readonly minThinkingBudget?: number;
|
|
58
60
|
readonly maxThinkingBudget?: number;
|
|
59
|
-
readonly temperatureCompatibility: AccountModelDescriptor['sampling']['temperature'];
|
|
60
61
|
};
|
|
61
62
|
export declare function copilotPublicHeaders(): Readonly<Record<string, string>>;
|
|
62
63
|
/** Materialize advertised capabilities only; model names and the local static catalog never select the API. */
|
|
@@ -9,7 +9,7 @@ import type { RequestBudgetPolicy } from './request-budget.ts';
|
|
|
9
9
|
/** Safe request knobs; identities, model tables, endpoints and credentials are not configurable. */
|
|
10
10
|
export type PreviewRouteConfig = Pick<PiAiProviderProfile, 'reasoning' | 'cacheRetention' | 'transport' | 'timeoutMs' | 'websocketConnectTimeoutMs' | 'streamIdleTimeoutMs' | 'maxRequestImageBytes' | 'requestImagePixelBudget' | 'requestImageMaxBytes' | 'retryPolicy'> & Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs'> & {
|
|
11
11
|
readonly streamLiveness?: boolean;
|
|
12
|
-
readonly chatRequestSettings?: () => Pick<InlineConfig, 'chatStreamIdleTimeoutMs' | 'chatStreamLiveness' | 'chatMaxRequestImageBytes' | 'responsesRequestCompression'>;
|
|
12
|
+
readonly chatRequestSettings?: () => Pick<InlineConfig, 'chatStreamIdleTimeoutMs' | 'chatStreamLiveness' | 'chatMaxRequestImageBytes' | 'responsesRequestCompression' | 'responsesOmitTemperature'>;
|
|
13
13
|
readonly accountModelSettings?: () => Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'autoSemanticAssessment' | 'autoAllocationEvidence'>;
|
|
14
14
|
readonly requestBudget?: Partial<RequestBudgetPolicy>;
|
|
15
15
|
readonly requestBudgetSettings?: () => Partial<RequestBudgetPolicy>;
|
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.134",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"AGENTS.md",
|
|
55
55
|
"docs/agent-readiness.md",
|
|
56
56
|
"docs/model-compatibility-acceptance.md",
|
|
57
|
+
"docs/auto-review-sampling.md",
|
|
57
58
|
"docs/single-route-migration.md",
|
|
58
59
|
"docs/session-search-routing.md",
|
|
59
60
|
"docs/npm-distribution.md",
|