@bastani/pi-ai 0.9.71 → 0.9.72-alpha.1
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 +56 -0
- package/README.md +78 -8
- package/dist/api/anthropic-messages.d.ts.map +1 -1
- package/dist/api/anthropic-messages.js +50 -10
- package/dist/api/anthropic-messages.js.map +1 -1
- package/dist/api/azure-openai-responses.d.ts.map +1 -1
- package/dist/api/azure-openai-responses.js +7 -2
- package/dist/api/azure-openai-responses.js.map +1 -1
- package/dist/api/bedrock-converse-stream.d.ts.map +1 -1
- package/dist/api/bedrock-converse-stream.js +28 -1
- package/dist/api/bedrock-converse-stream.js.map +1 -1
- package/dist/api/bedrock-converse-stream.lazy.d.ts +7 -0
- package/dist/api/bedrock-converse-stream.lazy.d.ts.map +1 -1
- package/dist/api/bedrock-converse-stream.lazy.js +18 -5
- package/dist/api/bedrock-converse-stream.lazy.js.map +1 -1
- package/dist/api/google-generative-ai.d.ts +3 -1
- package/dist/api/google-generative-ai.d.ts.map +1 -1
- package/dist/api/google-generative-ai.js +4 -2
- package/dist/api/google-generative-ai.js.map +1 -1
- package/dist/api/google-shared.d.ts +10 -2
- package/dist/api/google-shared.d.ts.map +1 -1
- package/dist/api/google-shared.js +31 -9
- package/dist/api/google-shared.js.map +1 -1
- package/dist/api/google-vertex.d.ts +3 -1
- package/dist/api/google-vertex.d.ts.map +1 -1
- package/dist/api/google-vertex.js +4 -2
- package/dist/api/google-vertex.js.map +1 -1
- package/dist/api/lazy.d.ts +2 -2
- package/dist/api/lazy.d.ts.map +1 -1
- package/dist/api/lazy.js +10 -9
- package/dist/api/lazy.js.map +1 -1
- package/dist/api/mistral-conversations.d.ts.map +1 -1
- package/dist/api/mistral-conversations.js +12 -1
- package/dist/api/mistral-conversations.js.map +1 -1
- package/dist/api/openai-codex-responses.d.ts.map +1 -1
- package/dist/api/openai-codex-responses.js +6 -1
- package/dist/api/openai-codex-responses.js.map +1 -1
- package/dist/api/openai-completions.d.ts +2 -1
- package/dist/api/openai-completions.d.ts.map +1 -1
- package/dist/api/openai-completions.js +112 -15
- package/dist/api/openai-completions.js.map +1 -1
- package/dist/api/openai-images-options.d.ts +107 -0
- package/dist/api/openai-images-options.d.ts.map +1 -0
- package/dist/api/openai-images-options.js +106 -0
- package/dist/api/openai-images-options.js.map +1 -0
- package/dist/api/openai-images.d.ts +3 -11
- package/dist/api/openai-images.d.ts.map +1 -1
- package/dist/api/openai-images.js +117 -16
- package/dist/api/openai-images.js.map +1 -1
- package/dist/api/openai-responses-shared.js +6 -2
- package/dist/api/openai-responses-shared.js.map +1 -1
- package/dist/api/openai-responses.d.ts.map +1 -1
- package/dist/api/openai-responses.js +29 -7
- package/dist/api/openai-responses.js.map +1 -1
- package/dist/auth/oauth/load.d.ts.map +1 -1
- package/dist/auth/oauth/load.js +5 -2
- package/dist/auth/oauth/load.js.map +1 -1
- package/dist/env-api-keys.d.ts.map +1 -1
- package/dist/env-api-keys.js +1 -0
- package/dist/env-api-keys.js.map +1 -1
- package/dist/image-generation-error.d.ts +203 -0
- package/dist/image-generation-error.d.ts.map +1 -0
- package/dist/image-generation-error.js +441 -0
- package/dist/image-generation-error.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-bedrock-provider.d.ts +10 -0
- package/dist/lazy-bedrock-provider.d.ts.map +1 -0
- package/dist/lazy-bedrock-provider.js +13 -0
- package/dist/lazy-bedrock-provider.js.map +1 -0
- package/dist/lazy-oauth.d.ts +10 -0
- package/dist/lazy-oauth.d.ts.map +1 -0
- package/dist/lazy-oauth.js +23 -0
- package/dist/lazy-oauth.js.map +1 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/models.generated.d.ts +4 -0
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +4 -0
- package/dist/models.generated.js.map +1 -1
- package/dist/models.js +8 -8
- package/dist/models.js.map +1 -1
- package/dist/providers/all.d.ts.map +1 -1
- package/dist/providers/all.js +2 -0
- package/dist/providers/all.js.map +1 -1
- package/dist/providers/azure.d.ts.map +1 -1
- package/dist/providers/azure.js +2 -2
- package/dist/providers/azure.js.map +1 -1
- package/dist/providers/compat-schema.d.ts +15 -0
- package/dist/providers/compat-schema.d.ts.map +1 -1
- package/dist/providers/compat-schema.js +19 -1
- package/dist/providers/compat-schema.js.map +1 -1
- package/dist/providers/data/.manifest.json +1 -1
- package/dist/providers/data/anthropic.json +1 -1
- package/dist/providers/data/azure.json +1 -1
- package/dist/providers/data/baseten.json +1 -1
- package/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/dist/providers/data/fireworks.json +1 -1
- package/dist/providers/data/github-copilot.json +1 -1
- package/dist/providers/data/google-vertex.json +1 -1
- package/dist/providers/data/google.json +1 -1
- package/dist/providers/data/nvidia.json +1 -1
- package/dist/providers/data/openai-images.json +1 -1
- package/dist/providers/data/opencode-go.json +1 -1
- package/dist/providers/data/opencode.json +1 -1
- package/dist/providers/data/openrouter.json +1 -1
- package/dist/providers/data/qwen-token-plan-individual-cn.json +1 -0
- package/dist/providers/data/qwen-token-plan-individual.json +1 -1
- package/dist/providers/data/together.json +1 -1
- package/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/dist/providers/github-copilot-capabilities.d.ts +67 -0
- package/dist/providers/github-copilot-capabilities.d.ts.map +1 -0
- package/dist/providers/github-copilot-capabilities.js +81 -0
- package/dist/providers/github-copilot-capabilities.js.map +1 -0
- package/dist/providers/github-copilot-errors.d.ts +243 -0
- package/dist/providers/github-copilot-errors.d.ts.map +1 -0
- package/dist/providers/github-copilot-errors.js +720 -0
- package/dist/providers/github-copilot-errors.js.map +1 -0
- package/dist/providers/github-copilot.d.ts +1 -2
- package/dist/providers/github-copilot.d.ts.map +1 -1
- package/dist/providers/github-copilot.js +29 -4
- package/dist/providers/github-copilot.js.map +1 -1
- package/dist/providers/openai-codex.js +1 -1
- package/dist/providers/openai-codex.js.map +1 -1
- package/dist/providers/qwen-token-plan-individual-cn.d.ts +3 -0
- package/dist/providers/qwen-token-plan-individual-cn.d.ts.map +1 -0
- package/dist/providers/qwen-token-plan-individual-cn.js +15 -0
- package/dist/providers/qwen-token-plan-individual-cn.js.map +1 -0
- package/dist/providers/qwen-token-plan-individual-cn.models.d.ts +5 -0
- package/dist/providers/qwen-token-plan-individual-cn.models.d.ts.map +1 -0
- package/dist/providers/qwen-token-plan-individual-cn.models.js +8 -0
- package/dist/providers/qwen-token-plan-individual-cn.models.js.map +1 -0
- package/dist/types.d.ts +29 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/error-body.d.ts +8 -0
- package/dist/utils/error-body.d.ts.map +1 -1
- package/dist/utils/error-body.js +28 -1
- package/dist/utils/error-body.js.map +1 -1
- package/dist/utils/model-operations.d.ts.map +1 -1
- package/dist/utils/model-operations.js +6 -0
- package/dist/utils/model-operations.js.map +1 -1
- package/dist/utils/overflow.d.ts +4 -0
- package/dist/utils/overflow.d.ts.map +1 -1
- package/dist/utils/overflow.js +16 -3
- package/dist/utils/overflow.js.map +1 -1
- package/dist/utils/provider-retry.d.ts +2 -0
- package/dist/utils/provider-retry.d.ts.map +1 -1
- package/dist/utils/provider-retry.js +2 -0
- package/dist/utils/provider-retry.js.map +1 -1
- package/dist/utils/retry.d.ts +3 -1
- package/dist/utils/retry.d.ts.map +1 -1
- package/dist/utils/retry.js +9 -0
- package/dist/utils/retry.js.map +1 -1
- package/dist/utils/thinking-off.d.ts +23 -0
- package/dist/utils/thinking-off.d.ts.map +1 -0
- package/dist/utils/thinking-off.js +51 -0
- package/dist/utils/thinking-off.js.map +1 -0
- package/dist/utils/version.d.ts +1 -1
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/utils/version.js.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Api, Model, ModelThinkingLevel } from "../types.ts";
|
|
2
|
+
/** The API surfaces Atomic calls GitHub Copilot models on. */
|
|
3
|
+
export type GitHubCopilotApi = "anthropic-messages" | "openai-completions" | "openai-responses";
|
|
4
|
+
/**
|
|
5
|
+
* How a model's reasoning returns to it on the next turn, when the model returns reasoning: Responses sends back the
|
|
6
|
+
* encrypted reasoning item; Chat Completions sends back the field the response used (Gemini's opaque
|
|
7
|
+
* `reasoning_opaque`, or readable `reasoning_content`, `reasoning` or `reasoning_text`); Messages sends back signed
|
|
8
|
+
* thinking blocks. `none` for a model without reasoning.
|
|
9
|
+
*/
|
|
10
|
+
export type GitHubCopilotReasoningReplay = "encrypted-reasoning-item" | "returned-reasoning-field" | "signed-thinking-block" | "none";
|
|
11
|
+
/** What one GitHub Copilot model supports and how Atomic talks to it, derived from the model's metadata. */
|
|
12
|
+
export interface GitHubCopilotModelCapabilities {
|
|
13
|
+
readonly modelId: string;
|
|
14
|
+
readonly api: GitHubCopilotApi;
|
|
15
|
+
/** `discovered` when the account's model list described the model; `catalog` for the built-in catalog. */
|
|
16
|
+
readonly source: "catalog" | "discovered";
|
|
17
|
+
readonly reasoning: {
|
|
18
|
+
/** Thinking levels Atomic offers, `off` included when the model can run without reasoning. */
|
|
19
|
+
readonly levels: readonly ModelThinkingLevel[];
|
|
20
|
+
readonly replay: GitHubCopilotReasoningReplay;
|
|
21
|
+
};
|
|
22
|
+
readonly toolCalls: {
|
|
23
|
+
/** Several calls in one turn are accepted on every surface. */
|
|
24
|
+
readonly parallel: true;
|
|
25
|
+
/** Tool schemas are sent strict. */
|
|
26
|
+
readonly strictSchemas: boolean;
|
|
27
|
+
/** Responses calls keep `call_id|item_id`; Chat calls keep the call ID; Messages keeps the `tool_use` ID. */
|
|
28
|
+
readonly idFormat: "call-and-item-id" | "call-id" | "tool-use-id";
|
|
29
|
+
/** How arguments stream: indexed Chat chunks, Responses argument deltas, or Messages input JSON deltas. */
|
|
30
|
+
readonly argumentDeltas: "indexed-chunks" | "output-item-deltas" | "input-json-deltas";
|
|
31
|
+
/** A call with no arguments arrives as `{}`. */
|
|
32
|
+
readonly emptyArguments: "empty-object";
|
|
33
|
+
};
|
|
34
|
+
readonly completion: {
|
|
35
|
+
/** The event that ends a complete turn; a stream without it fails as `stream-ended-early`. */
|
|
36
|
+
readonly finishSignal: "finish-reason" | "terminal-response-event" | "message-stop";
|
|
37
|
+
/** A Chat or Responses turn with no text and no tool call fails as `empty-response`. */
|
|
38
|
+
readonly emptyTurn: "empty-response-error" | "accepted";
|
|
39
|
+
};
|
|
40
|
+
readonly usage: {
|
|
41
|
+
/** Where reasoning tokens are read from; they are always counted in `usage.output`. */
|
|
42
|
+
readonly reasoningTokens: "completion-details-or-top-level" | "output-details" | "output-tokens";
|
|
43
|
+
};
|
|
44
|
+
readonly input: {
|
|
45
|
+
readonly images: boolean;
|
|
46
|
+
readonly maxImagesPerRequest: number | undefined;
|
|
47
|
+
/** Largest base64 image payload Atomic sends after resizing. */
|
|
48
|
+
readonly maxImageBytes: number | undefined;
|
|
49
|
+
};
|
|
50
|
+
readonly limits: {
|
|
51
|
+
readonly contextWindow: number;
|
|
52
|
+
readonly maxOutputTokens: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The Copilot API a catalog entry is served on, from the SDK its metadata names (models.dev's per-model
|
|
57
|
+
* `provider.npm`): the Anthropic SDK means Copilot's Messages endpoint, the OpenAI SDK its Responses endpoint, and no
|
|
58
|
+
* per-model SDK (the provider's OpenAI-compatible default) its Chat Completions endpoint. Never the model's ID.
|
|
59
|
+
*/
|
|
60
|
+
export declare function githubCopilotApiForSdk(sdk: string | undefined): GitHubCopilotApi;
|
|
61
|
+
/**
|
|
62
|
+
* Describe a GitHub Copilot model from its metadata: the API surface it is routed to, its thinking levels and how
|
|
63
|
+
* reasoning is replayed, tool-call and stream behaviour, usage accounting, image input and limits. Returns undefined
|
|
64
|
+
* for a model of another provider or on an API Atomic does not call Copilot with.
|
|
65
|
+
*/
|
|
66
|
+
export declare function describeGitHubCopilotModel(model: Model<Api>): GitHubCopilotModelCapabilities | undefined;
|
|
67
|
+
//# sourceMappingURL=github-copilot-capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-copilot-capabilities.d.ts","sourceRoot":"","sources":["../../src/providers/github-copilot-capabilities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAElE,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAEhG;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GACrC,0BAA0B,GAC1B,0BAA0B,GAC1B,uBAAuB,GACvB,MAAM,CAAC;AAEV,4GAA4G;AAC5G,MAAM,WAAW,8BAA8B;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;IAC/B,0GAA0G;IAC1G,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,YAAY,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE;QACnB,8FAA8F;QAC9F,QAAQ,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC;QAC/C,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;KAC9C,CAAC;IACF,QAAQ,CAAC,SAAS,EAAE;QACnB,+DAA+D;QAC/D,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;QACxB,oCAAoC;QACpC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;QAChC,6GAA6G;QAC7G,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,GAAG,SAAS,GAAG,aAAa,CAAC;QAClE,2GAA2G;QAC3G,QAAQ,CAAC,cAAc,EAAE,gBAAgB,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;QACvF,gDAAgD;QAChD,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;KACxC,CAAC;IACF,QAAQ,CAAC,UAAU,EAAE;QACpB,8FAA8F;QAC9F,QAAQ,CAAC,YAAY,EAAE,eAAe,GAAG,yBAAyB,GAAG,cAAc,CAAC;QACpF,wFAAwF;QACxF,QAAQ,CAAC,SAAS,EAAE,sBAAsB,GAAG,UAAU,CAAC;KACxD,CAAC;IACF,QAAQ,CAAC,KAAK,EAAE;QACf,uFAAuF;QACvF,QAAQ,CAAC,eAAe,EAAE,iCAAiC,GAAG,gBAAgB,GAAG,eAAe,CAAC;KACjG,CAAC;IACF,QAAQ,CAAC,KAAK,EAAE;QACf,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;QACjD,gEAAgE;QAChE,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;KAC3C,CAAC;IACF,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;KACjC,CAAC;CACF;AA6BD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,CAIhF;AAcD;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,8BAA8B,GAAG,SAAS,CA0BxG"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { getSupportedThinkingLevels } from "../models.js";
|
|
2
|
+
const SURFACES = {
|
|
3
|
+
"openai-completions": {
|
|
4
|
+
replay: "returned-reasoning-field",
|
|
5
|
+
idFormat: "call-id",
|
|
6
|
+
argumentDeltas: "indexed-chunks",
|
|
7
|
+
finishSignal: "finish-reason",
|
|
8
|
+
emptyTurn: "empty-response-error",
|
|
9
|
+
reasoningTokens: "completion-details-or-top-level",
|
|
10
|
+
},
|
|
11
|
+
"openai-responses": {
|
|
12
|
+
replay: "encrypted-reasoning-item",
|
|
13
|
+
idFormat: "call-and-item-id",
|
|
14
|
+
argumentDeltas: "output-item-deltas",
|
|
15
|
+
finishSignal: "terminal-response-event",
|
|
16
|
+
emptyTurn: "empty-response-error",
|
|
17
|
+
reasoningTokens: "output-details",
|
|
18
|
+
},
|
|
19
|
+
"anthropic-messages": {
|
|
20
|
+
replay: "signed-thinking-block",
|
|
21
|
+
idFormat: "tool-use-id",
|
|
22
|
+
argumentDeltas: "input-json-deltas",
|
|
23
|
+
finishSignal: "message-stop",
|
|
24
|
+
emptyTurn: "accepted",
|
|
25
|
+
reasoningTokens: "output-tokens",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The Copilot API a catalog entry is served on, from the SDK its metadata names (models.dev's per-model
|
|
30
|
+
* `provider.npm`): the Anthropic SDK means Copilot's Messages endpoint, the OpenAI SDK its Responses endpoint, and no
|
|
31
|
+
* per-model SDK (the provider's OpenAI-compatible default) its Chat Completions endpoint. Never the model's ID.
|
|
32
|
+
*/
|
|
33
|
+
export function githubCopilotApiForSdk(sdk) {
|
|
34
|
+
if (sdk === "@ai-sdk/anthropic")
|
|
35
|
+
return "anthropic-messages";
|
|
36
|
+
if (sdk === "@ai-sdk/openai")
|
|
37
|
+
return "openai-responses";
|
|
38
|
+
return "openai-completions";
|
|
39
|
+
}
|
|
40
|
+
function isGitHubCopilotApi(api) {
|
|
41
|
+
return api === "openai-completions" || api === "openai-responses" || api === "anthropic-messages";
|
|
42
|
+
}
|
|
43
|
+
/** Messages models name strict tools `supportsStrictTools`; Chat Completions and Responses models `supportsStrictMode`. */
|
|
44
|
+
function strictSchemas(model) {
|
|
45
|
+
const compat = model.compat;
|
|
46
|
+
return (model.api === "anthropic-messages" ? compat?.supportsStrictTools : compat?.supportsStrictMode) === true;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Describe a GitHub Copilot model from its metadata: the API surface it is routed to, its thinking levels and how
|
|
50
|
+
* reasoning is replayed, tool-call and stream behaviour, usage accounting, image input and limits. Returns undefined
|
|
51
|
+
* for a model of another provider or on an API Atomic does not call Copilot with.
|
|
52
|
+
*/
|
|
53
|
+
export function describeGitHubCopilotModel(model) {
|
|
54
|
+
if (model.provider !== "github-copilot" || !isGitHubCopilotApi(model.api))
|
|
55
|
+
return undefined;
|
|
56
|
+
const surface = SURFACES[model.api];
|
|
57
|
+
const images = model.input.includes("image");
|
|
58
|
+
const levels = getSupportedThinkingLevels(model);
|
|
59
|
+
return {
|
|
60
|
+
modelId: model.id,
|
|
61
|
+
api: model.api,
|
|
62
|
+
source: model.discovered === true ? "discovered" : "catalog",
|
|
63
|
+
reasoning: { levels, replay: model.reasoning ? surface.replay : "none" },
|
|
64
|
+
toolCalls: {
|
|
65
|
+
parallel: true,
|
|
66
|
+
strictSchemas: strictSchemas(model),
|
|
67
|
+
idFormat: surface.idFormat,
|
|
68
|
+
argumentDeltas: surface.argumentDeltas,
|
|
69
|
+
emptyArguments: "empty-object",
|
|
70
|
+
},
|
|
71
|
+
completion: { finishSignal: surface.finishSignal, emptyTurn: surface.emptyTurn },
|
|
72
|
+
usage: { reasoningTokens: surface.reasoningTokens },
|
|
73
|
+
input: {
|
|
74
|
+
images,
|
|
75
|
+
maxImagesPerRequest: images ? model.inputLimits?.images?.maxPerRequest : undefined,
|
|
76
|
+
maxImageBytes: images ? model.inputLimits?.images?.resize?.maxBytes : undefined,
|
|
77
|
+
},
|
|
78
|
+
limits: { contextWindow: model.contextWindow, maxOutputTokens: model.maxTokens },
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=github-copilot-capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-copilot-capabilities.js","sourceRoot":"","sources":["../../src/providers/github-copilot-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0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E,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;SAC/E;QACD,MAAM,EAAE,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,eAAe,EAAE,KAAK,CAAC,SAAS,EAAE;KAChF,CAAC;AACH,CAAC","sourcesContent":["import { getSupportedThinkingLevels } from \"../models.ts\";\nimport type { Api, Model, ModelThinkingLevel } from \"../types.ts\";\n\n/** The API surfaces Atomic calls GitHub Copilot models on. */\nexport type GitHubCopilotApi = \"anthropic-messages\" | \"openai-completions\" | \"openai-responses\";\n\n/**\n * How a model's reasoning returns to it on the next turn, when the model returns reasoning: Responses sends back the\n * encrypted reasoning item; Chat Completions sends back the field the response used (Gemini's opaque\n * `reasoning_opaque`, or readable `reasoning_content`, `reasoning` or `reasoning_text`); Messages sends back signed\n * thinking blocks. `none` for a model without reasoning.\n */\nexport type GitHubCopilotReasoningReplay =\n\t| \"encrypted-reasoning-item\"\n\t| \"returned-reasoning-field\"\n\t| \"signed-thinking-block\"\n\t| \"none\";\n\n/** What one GitHub Copilot model supports and how Atomic talks to it, derived from the model's metadata. */\nexport interface GitHubCopilotModelCapabilities {\n\treadonly modelId: string;\n\treadonly api: GitHubCopilotApi;\n\t/** `discovered` when the account's model list described the model; `catalog` for the built-in catalog. */\n\treadonly source: \"catalog\" | \"discovered\";\n\treadonly reasoning: {\n\t\t/** Thinking levels Atomic offers, `off` included when the model can run without reasoning. */\n\t\treadonly levels: readonly ModelThinkingLevel[];\n\t\treadonly replay: GitHubCopilotReasoningReplay;\n\t};\n\treadonly toolCalls: {\n\t\t/** Several calls in one turn are accepted on every surface. */\n\t\treadonly parallel: true;\n\t\t/** Tool schemas are sent strict. */\n\t\treadonly strictSchemas: boolean;\n\t\t/** Responses calls keep `call_id|item_id`; Chat calls keep the call ID; Messages keeps the `tool_use` ID. */\n\t\treadonly idFormat: \"call-and-item-id\" | \"call-id\" | \"tool-use-id\";\n\t\t/** How arguments stream: indexed Chat chunks, Responses argument deltas, or Messages input JSON deltas. */\n\t\treadonly argumentDeltas: \"indexed-chunks\" | \"output-item-deltas\" | \"input-json-deltas\";\n\t\t/** A call with no arguments arrives as `{}`. */\n\t\treadonly emptyArguments: \"empty-object\";\n\t};\n\treadonly completion: {\n\t\t/** The event that ends a complete turn; a stream without it fails as `stream-ended-early`. */\n\t\treadonly finishSignal: \"finish-reason\" | \"terminal-response-event\" | \"message-stop\";\n\t\t/** A Chat or Responses turn with no text and no tool call fails as `empty-response`. */\n\t\treadonly emptyTurn: \"empty-response-error\" | \"accepted\";\n\t};\n\treadonly usage: {\n\t\t/** Where reasoning tokens are read from; they are always counted in `usage.output`. */\n\t\treadonly reasoningTokens: \"completion-details-or-top-level\" | \"output-details\" | \"output-tokens\";\n\t};\n\treadonly input: {\n\t\treadonly images: boolean;\n\t\treadonly maxImagesPerRequest: number | undefined;\n\t\t/** Largest base64 image payload Atomic sends after resizing. */\n\t\treadonly maxImageBytes: number | undefined;\n\t};\n\treadonly limits: {\n\t\treadonly contextWindow: number;\n\t\treadonly maxOutputTokens: number;\n\t};\n}\n\nconst SURFACES = {\n\t\"openai-completions\": {\n\t\treplay: \"returned-reasoning-field\",\n\t\tidFormat: \"call-id\",\n\t\targumentDeltas: \"indexed-chunks\",\n\t\tfinishSignal: \"finish-reason\",\n\t\temptyTurn: \"empty-response-error\",\n\t\treasoningTokens: \"completion-details-or-top-level\",\n\t},\n\t\"openai-responses\": {\n\t\treplay: \"encrypted-reasoning-item\",\n\t\tidFormat: \"call-and-item-id\",\n\t\targumentDeltas: \"output-item-deltas\",\n\t\tfinishSignal: \"terminal-response-event\",\n\t\temptyTurn: \"empty-response-error\",\n\t\treasoningTokens: \"output-details\",\n\t},\n\t\"anthropic-messages\": {\n\t\treplay: \"signed-thinking-block\",\n\t\tidFormat: \"tool-use-id\",\n\t\targumentDeltas: \"input-json-deltas\",\n\t\tfinishSignal: \"message-stop\",\n\t\temptyTurn: \"accepted\",\n\t\treasoningTokens: \"output-tokens\",\n\t},\n} as const satisfies Record<GitHubCopilotApi, object>;\n\n/**\n * The Copilot API a catalog entry is served on, from the SDK its metadata names (models.dev's per-model\n * `provider.npm`): the Anthropic SDK means Copilot's Messages endpoint, the OpenAI SDK its Responses endpoint, and no\n * per-model SDK (the provider's OpenAI-compatible default) its Chat Completions endpoint. Never the model's ID.\n */\nexport function githubCopilotApiForSdk(sdk: string | undefined): GitHubCopilotApi {\n\tif (sdk === \"@ai-sdk/anthropic\") return \"anthropic-messages\";\n\tif (sdk === \"@ai-sdk/openai\") return \"openai-responses\";\n\treturn \"openai-completions\";\n}\n\nfunction isGitHubCopilotApi(api: Api): api is GitHubCopilotApi {\n\treturn api === \"openai-completions\" || api === \"openai-responses\" || api === \"anthropic-messages\";\n}\n\n/** Messages models name strict tools `supportsStrictTools`; Chat Completions and Responses models `supportsStrictMode`. */\nfunction strictSchemas(model: Model<Api>): boolean {\n\tconst compat = model.compat as\n\t\t| { readonly supportsStrictMode?: boolean; readonly supportsStrictTools?: boolean }\n\t\t| undefined;\n\treturn (model.api === \"anthropic-messages\" ? compat?.supportsStrictTools : compat?.supportsStrictMode) === true;\n}\n\n/**\n * Describe a GitHub Copilot model from its metadata: the API surface it is routed to, its thinking levels and how\n * reasoning is replayed, tool-call and stream behaviour, usage accounting, image input and limits. Returns undefined\n * for a model of another provider or on an API Atomic does not call Copilot with.\n */\nexport function describeGitHubCopilotModel(model: Model<Api>): GitHubCopilotModelCapabilities | undefined {\n\tif (model.provider !== \"github-copilot\" || !isGitHubCopilotApi(model.api)) return undefined;\n\tconst surface = SURFACES[model.api];\n\tconst images = model.input.includes(\"image\");\n\tconst levels = getSupportedThinkingLevels(model);\n\treturn {\n\t\tmodelId: model.id,\n\t\tapi: model.api,\n\t\tsource: model.discovered === true ? \"discovered\" : \"catalog\",\n\t\treasoning: { levels, replay: model.reasoning ? surface.replay : \"none\" },\n\t\ttoolCalls: {\n\t\t\tparallel: true,\n\t\t\tstrictSchemas: strictSchemas(model),\n\t\t\tidFormat: surface.idFormat,\n\t\t\targumentDeltas: surface.argumentDeltas,\n\t\t\temptyArguments: \"empty-object\",\n\t\t},\n\t\tcompletion: { finishSignal: surface.finishSignal, emptyTurn: surface.emptyTurn },\n\t\tusage: { reasoningTokens: surface.reasoningTokens },\n\t\tinput: {\n\t\t\timages,\n\t\t\tmaxImagesPerRequest: images ? model.inputLimits?.images?.maxPerRequest : undefined,\n\t\t\tmaxImageBytes: images ? model.inputLimits?.images?.resize?.maxBytes : undefined,\n\t\t},\n\t\tlimits: { contextWindow: model.contextWindow, maxOutputTokens: model.maxTokens },\n\t};\n}\n"]}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { AssistantMessage } from "../types.ts";
|
|
2
|
+
/** Stable codes of every GitHub Copilot request failure. Public API: never renamed or reused. */
|
|
3
|
+
export type GitHubCopilotErrorCode = "model-unavailable" | "rate-limited" | "quota-exhausted" | "content-filtered" | "prompt-too-large" | "invalid-request" | "authentication-failed" | "service-unavailable" | "stream-ended-early" | "empty-response" | "unrecognized-response";
|
|
4
|
+
declare const MODEL_UNAVAILABLE_REASONS: readonly ["integration", "not-supported", "wrong-api", "no-endpoint", "not-found"];
|
|
5
|
+
declare const INVALID_REQUEST_REASONS: readonly ["reasoning-effort", "integration-id", "rejected"];
|
|
6
|
+
declare const UNRECOGNIZED_REASONS: readonly ["unknown-status", "unknown-error-event", "malformed-body"];
|
|
7
|
+
/** Why Copilot refused to serve the model. */
|
|
8
|
+
export type GitHubCopilotModelUnavailableReason = (typeof MODEL_UNAVAILABLE_REASONS)[number];
|
|
9
|
+
/** Which part of the request Copilot rejected. */
|
|
10
|
+
export type GitHubCopilotInvalidRequestReason = (typeof INVALID_REQUEST_REASONS)[number];
|
|
11
|
+
/** What Atomic could not interpret. */
|
|
12
|
+
export type GitHubCopilotUnrecognizedReason = (typeof UNRECOGNIZED_REASONS)[number];
|
|
13
|
+
export type GitHubCopilotErrorName = "GitHubCopilotError" | "GitHubCopilotModelUnavailableError" | "GitHubCopilotRateLimitError" | "GitHubCopilotQuotaExhaustedError" | "GitHubCopilotContentFilterError" | "GitHubCopilotPromptTooLargeError" | "GitHubCopilotInvalidRequestError" | "GitHubCopilotAuthenticationError" | "GitHubCopilotServiceUnavailableError" | "GitHubCopilotStreamEndedEarlyError" | "GitHubCopilotEmptyResponseError" | "GitHubCopilotUnrecognizedResponseError";
|
|
14
|
+
export type GitHubCopilotErrorFieldValue = string | number | null;
|
|
15
|
+
export type GitHubCopilotErrorFields = Readonly<Record<string, GitHubCopilotErrorFieldValue>>;
|
|
16
|
+
/** The request a failure belongs to, and what the provider reported about it. No prompt text, tokens or bodies. */
|
|
17
|
+
export interface GitHubCopilotErrorContext {
|
|
18
|
+
readonly modelId: string;
|
|
19
|
+
readonly api: string;
|
|
20
|
+
/** HTTP status, when the failure was an HTTP response. */
|
|
21
|
+
readonly status?: number;
|
|
22
|
+
/** The provider's own error code, such as `model_not_supported`. */
|
|
23
|
+
readonly providerCode?: string;
|
|
24
|
+
/** The provider's `x-request-id`, for support requests. */
|
|
25
|
+
readonly requestId?: string;
|
|
26
|
+
/** The provider's short error text, truncated. */
|
|
27
|
+
readonly detail?: string;
|
|
28
|
+
}
|
|
29
|
+
/** A cause in wire form, bounded in depth. */
|
|
30
|
+
export interface SerializedGitHubCopilotErrorCause {
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly message: string;
|
|
33
|
+
readonly code?: string;
|
|
34
|
+
readonly cause?: SerializedGitHubCopilotErrorCause;
|
|
35
|
+
}
|
|
36
|
+
/** Wire form of a GitHub Copilot error, as an assistant message's diagnostics carry it across processes. */
|
|
37
|
+
export interface SerializedGitHubCopilotError {
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly code: GitHubCopilotErrorCode;
|
|
40
|
+
readonly message: string;
|
|
41
|
+
readonly hint: string;
|
|
42
|
+
readonly retryable: boolean;
|
|
43
|
+
readonly fields: GitHubCopilotErrorFields;
|
|
44
|
+
readonly cause?: SerializedGitHubCopilotErrorCause;
|
|
45
|
+
}
|
|
46
|
+
/** `AssistantMessageDiagnostic.type` of the diagnostic that carries a serialized GitHub Copilot error. */
|
|
47
|
+
export declare const GITHUB_COPILOT_ERROR_DIAGNOSTIC = "github_copilot_error";
|
|
48
|
+
interface GitHubCopilotErrorOptions {
|
|
49
|
+
readonly hint?: string;
|
|
50
|
+
readonly cause?: unknown;
|
|
51
|
+
}
|
|
52
|
+
/** Base of every GitHub Copilot request failure. Catch this to handle the whole family. */
|
|
53
|
+
export declare class GitHubCopilotError extends Error {
|
|
54
|
+
readonly name: string;
|
|
55
|
+
readonly code: GitHubCopilotErrorCode;
|
|
56
|
+
readonly retryable: boolean;
|
|
57
|
+
readonly hint: string;
|
|
58
|
+
readonly modelId: string;
|
|
59
|
+
readonly api: string;
|
|
60
|
+
readonly status: number | undefined;
|
|
61
|
+
readonly providerCode: string | undefined;
|
|
62
|
+
readonly requestId: string | undefined;
|
|
63
|
+
readonly detail: string | undefined;
|
|
64
|
+
constructor(code: GitHubCopilotErrorCode, context: GitHubCopilotErrorContext, options?: GitHubCopilotErrorOptions);
|
|
65
|
+
/** JSON-safe context fields; subclasses add their own. */
|
|
66
|
+
fields(): GitHubCopilotErrorFields;
|
|
67
|
+
}
|
|
68
|
+
/** Copilot will not serve this model to this account, integration or API. Not retryable; a fallback model may work. */
|
|
69
|
+
export declare class GitHubCopilotModelUnavailableError extends GitHubCopilotError {
|
|
70
|
+
readonly name: "GitHubCopilotModelUnavailableError";
|
|
71
|
+
readonly code: "model-unavailable";
|
|
72
|
+
readonly reason: GitHubCopilotModelUnavailableReason;
|
|
73
|
+
constructor(reason: GitHubCopilotModelUnavailableReason, context: GitHubCopilotErrorContext, options?: {
|
|
74
|
+
readonly cause?: unknown;
|
|
75
|
+
});
|
|
76
|
+
fields(): GitHubCopilotErrorFields;
|
|
77
|
+
}
|
|
78
|
+
/** Copilot throttled the request. Retryable after `retryAfterMs` when the server sent a delay. */
|
|
79
|
+
export declare class GitHubCopilotRateLimitError extends GitHubCopilotError {
|
|
80
|
+
readonly name: "GitHubCopilotRateLimitError";
|
|
81
|
+
readonly code: "rate-limited";
|
|
82
|
+
readonly retryAfterMs: number | undefined;
|
|
83
|
+
constructor(context: GitHubCopilotErrorContext, retryAfterMs?: number, options?: {
|
|
84
|
+
readonly cause?: unknown;
|
|
85
|
+
});
|
|
86
|
+
fields(): GitHubCopilotErrorFields;
|
|
87
|
+
}
|
|
88
|
+
/** The plan's quota or billing allowance for the model is used up. Not retryable until it resets. */
|
|
89
|
+
export declare class GitHubCopilotQuotaExhaustedError extends GitHubCopilotError {
|
|
90
|
+
readonly name: "GitHubCopilotQuotaExhaustedError";
|
|
91
|
+
readonly code: "quota-exhausted";
|
|
92
|
+
constructor(context: GitHubCopilotErrorContext, options?: {
|
|
93
|
+
readonly cause?: unknown;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/** A content or safety filter blocked the request or the response. The same request is refused again. */
|
|
97
|
+
export declare class GitHubCopilotContentFilterError extends GitHubCopilotError {
|
|
98
|
+
readonly name: "GitHubCopilotContentFilterError";
|
|
99
|
+
readonly code: "content-filtered";
|
|
100
|
+
constructor(context: GitHubCopilotErrorContext, options?: {
|
|
101
|
+
readonly cause?: unknown;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/** The prompt exceeds the model's prompt-token limit. Compact the conversation instead of retrying. */
|
|
105
|
+
export declare class GitHubCopilotPromptTooLargeError extends GitHubCopilotError {
|
|
106
|
+
readonly name: "GitHubCopilotPromptTooLargeError";
|
|
107
|
+
readonly code: "prompt-too-large";
|
|
108
|
+
readonly promptTokens: number | undefined;
|
|
109
|
+
readonly limitTokens: number | undefined;
|
|
110
|
+
constructor(context: GitHubCopilotErrorContext, tokens?: {
|
|
111
|
+
readonly promptTokens?: number;
|
|
112
|
+
readonly limitTokens?: number;
|
|
113
|
+
}, options?: {
|
|
114
|
+
readonly cause?: unknown;
|
|
115
|
+
});
|
|
116
|
+
fields(): GitHubCopilotErrorFields;
|
|
117
|
+
}
|
|
118
|
+
/** Copilot rejected the request's shape or settings. Sending it again fails the same way. */
|
|
119
|
+
export declare class GitHubCopilotInvalidRequestError extends GitHubCopilotError {
|
|
120
|
+
readonly name: "GitHubCopilotInvalidRequestError";
|
|
121
|
+
readonly code: "invalid-request";
|
|
122
|
+
readonly reason: GitHubCopilotInvalidRequestReason;
|
|
123
|
+
constructor(reason: GitHubCopilotInvalidRequestReason, context: GitHubCopilotErrorContext, options?: {
|
|
124
|
+
readonly cause?: unknown;
|
|
125
|
+
});
|
|
126
|
+
fields(): GitHubCopilotErrorFields;
|
|
127
|
+
}
|
|
128
|
+
/** Copilot refused the credential. Sign in again; another provider's model may still work. */
|
|
129
|
+
export declare class GitHubCopilotAuthenticationError extends GitHubCopilotError {
|
|
130
|
+
readonly name: "GitHubCopilotAuthenticationError";
|
|
131
|
+
readonly code: "authentication-failed";
|
|
132
|
+
constructor(context: GitHubCopilotErrorContext, options?: {
|
|
133
|
+
readonly cause?: unknown;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/** Copilot or the model behind it is down, overloaded or timed out. Retryable. */
|
|
137
|
+
export declare class GitHubCopilotServiceUnavailableError extends GitHubCopilotError {
|
|
138
|
+
readonly name: "GitHubCopilotServiceUnavailableError";
|
|
139
|
+
readonly code: "service-unavailable";
|
|
140
|
+
constructor(context: GitHubCopilotErrorContext, options?: {
|
|
141
|
+
readonly cause?: unknown;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/** The response stream stopped before its finish reason or terminal event. Retryable. */
|
|
145
|
+
export declare class GitHubCopilotStreamEndedEarlyError extends GitHubCopilotError {
|
|
146
|
+
readonly name: "GitHubCopilotStreamEndedEarlyError";
|
|
147
|
+
readonly code: "stream-ended-early";
|
|
148
|
+
constructor(context: GitHubCopilotErrorContext, options?: {
|
|
149
|
+
readonly cause?: unknown;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/** The model finished with no text and no tool call, as Copilot's Gemini models sometimes do. Retryable. */
|
|
153
|
+
export declare class GitHubCopilotEmptyResponseError extends GitHubCopilotError {
|
|
154
|
+
readonly name: "GitHubCopilotEmptyResponseError";
|
|
155
|
+
readonly code: "empty-response";
|
|
156
|
+
constructor(context: GitHubCopilotErrorContext, options?: {
|
|
157
|
+
readonly cause?: unknown;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/** Copilot answered with a status, error event or body Atomic does not recognize. Retryable a bounded number of times. */
|
|
161
|
+
export declare class GitHubCopilotUnrecognizedResponseError extends GitHubCopilotError {
|
|
162
|
+
readonly name: "GitHubCopilotUnrecognizedResponseError";
|
|
163
|
+
readonly code: "unrecognized-response";
|
|
164
|
+
readonly reason: GitHubCopilotUnrecognizedReason;
|
|
165
|
+
constructor(reason: GitHubCopilotUnrecognizedReason, context: GitHubCopilotErrorContext, options?: {
|
|
166
|
+
readonly cause?: unknown;
|
|
167
|
+
});
|
|
168
|
+
fields(): GitHubCopilotErrorFields;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* True when the error, anything in its cause chain, or a failed assistant message in that chain holds a GitHub Copilot
|
|
172
|
+
* error. A plain boolean, not a type predicate: use `findGitHubCopilotError()` for the instance.
|
|
173
|
+
*/
|
|
174
|
+
export declare function isGitHubCopilotError(error: unknown): boolean;
|
|
175
|
+
/**
|
|
176
|
+
* First GitHub Copilot error in the cause chain, as an instance of its class: a link that is one, rebuilt when it was
|
|
177
|
+
* relayed from another process, or the error a failed assistant message's diagnostics carry. The chain is walked to a
|
|
178
|
+
* bounded depth, through JSON round-tripped links too.
|
|
179
|
+
*/
|
|
180
|
+
export declare function findGitHubCopilotError(error: unknown): GitHubCopilotError | undefined;
|
|
181
|
+
/** True when the first GitHub Copilot error in the cause chain says the same request may be sent again. */
|
|
182
|
+
export declare function isRetryableGitHubCopilotError(error: unknown): boolean;
|
|
183
|
+
export declare const isGitHubCopilotModelUnavailableError: (error: unknown) => boolean;
|
|
184
|
+
export declare const isGitHubCopilotRateLimitError: (error: unknown) => boolean;
|
|
185
|
+
export declare const isGitHubCopilotQuotaExhaustedError: (error: unknown) => boolean;
|
|
186
|
+
export declare const isGitHubCopilotContentFilterError: (error: unknown) => boolean;
|
|
187
|
+
export declare const isGitHubCopilotPromptTooLargeError: (error: unknown) => boolean;
|
|
188
|
+
export declare const isGitHubCopilotInvalidRequestError: (error: unknown) => boolean;
|
|
189
|
+
export declare const isGitHubCopilotAuthenticationError: (error: unknown) => boolean;
|
|
190
|
+
export declare const isGitHubCopilotServiceUnavailableError: (error: unknown) => boolean;
|
|
191
|
+
export declare const isGitHubCopilotStreamEndedEarlyError: (error: unknown) => boolean;
|
|
192
|
+
export declare const isGitHubCopilotEmptyResponseError: (error: unknown) => boolean;
|
|
193
|
+
export declare const isGitHubCopilotUnrecognizedResponseError: (error: unknown) => boolean;
|
|
194
|
+
/** Wire form for crossing a process boundary; the cause chain is kept to a bounded depth. */
|
|
195
|
+
export declare function serializeGitHubCopilotError(error: GitHubCopilotError): SerializedGitHubCopilotError;
|
|
196
|
+
/**
|
|
197
|
+
* Rebuild a serialized GitHub Copilot error as its own class. An unknown name becomes the family base with the
|
|
198
|
+
* original name, code, message, hint and retryability kept. Returns undefined for anything that is not a serialized
|
|
199
|
+
* GitHub Copilot error: a code this version does not know, a class name that does not go with its code, or a reason
|
|
200
|
+
* that class does not have.
|
|
201
|
+
*/
|
|
202
|
+
export declare function deserializeGitHubCopilotError(value: unknown): GitHubCopilotError | undefined;
|
|
203
|
+
/** Record `error` on a failed assistant message: its diagnostics carry the typed error across processes. */
|
|
204
|
+
export declare function recordGitHubCopilotError(output: AssistantMessage, error: GitHubCopilotError, providerText?: string): void;
|
|
205
|
+
/**
|
|
206
|
+
* The GitHub Copilot error an assistant message's diagnostics carry, rebuilt as its class: the latest valid one.
|
|
207
|
+
* Accepts a message read back from JSON, whose diagnostics are validated here.
|
|
208
|
+
*/
|
|
209
|
+
export declare function getGitHubCopilotError(message: {
|
|
210
|
+
readonly diagnostics?: unknown;
|
|
211
|
+
} | undefined): GitHubCopilotError | undefined;
|
|
212
|
+
/** Where a Copilot request was when it failed. */
|
|
213
|
+
export interface GitHubCopilotFailureContext {
|
|
214
|
+
readonly modelId: string;
|
|
215
|
+
readonly api: string;
|
|
216
|
+
/** True once Copilot answered with HTTP success and the response stream started. */
|
|
217
|
+
readonly streamStarted: boolean;
|
|
218
|
+
/** The provider's raw finish or stop reason, when the stream reported one. */
|
|
219
|
+
readonly finishReason?: string;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Translate a failed Copilot request into its typed error, once, at the provider boundary.
|
|
223
|
+
*
|
|
224
|
+
* HTTP failures are classified by the provider's code first, then on a 400 by Copilot's prompt-token overflow text
|
|
225
|
+
* and the exact plain-text bodies it sends without a code, then by status (a 429 that reports a used-up quota is
|
|
226
|
+
* `quota-exhausted`). A failure after the stream started is a content-filter stop for its API, an in-stream error
|
|
227
|
+
* event, a malformed body, or a stream that ended early. Returns undefined for a failure that never reached Copilot (a
|
|
228
|
+
* connection error before any response), which keeps Atomic's generic network handling. Never call it for a
|
|
229
|
+
* cancelled request: cancellation is not a failure.
|
|
230
|
+
*/
|
|
231
|
+
export declare function classifyGitHubCopilotFailure(error: unknown, failure: GitHubCopilotFailureContext): GitHubCopilotError | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* Type a failed Copilot assistant message at the provider boundary: classify `error` and record it on `output`,
|
|
234
|
+
* keeping the provider's text after the typed message. A cancelled message is left alone.
|
|
235
|
+
*/
|
|
236
|
+
export declare function recordGitHubCopilotFailure(output: AssistantMessage, error: unknown, streamStarted: boolean): void;
|
|
237
|
+
/**
|
|
238
|
+
* The typed failure for a completed Copilot turn that has no text and no tool call, as Copilot's Gemini models
|
|
239
|
+
* sometimes return; undefined for any other turn. A length stop is left to the caller's length handling.
|
|
240
|
+
*/
|
|
241
|
+
export declare function githubCopilotEmptyResponse(output: AssistantMessage): GitHubCopilotEmptyResponseError | undefined;
|
|
242
|
+
export {};
|
|
243
|
+
//# sourceMappingURL=github-copilot-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-copilot-errors.d.ts","sourceRoot":"","sources":["../../src/providers/github-copilot-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,aAAa,CAAC;AAIhE,iGAAiG;AACjG,MAAM,MAAM,sBAAsB,GAC/B,mBAAmB,GACnB,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,oBAAoB,GACpB,gBAAgB,GAChB,uBAAuB,CAAC;AAE3B,QAAA,MAAM,yBAAyB,YAAI,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,CAAU,CAAC;AACrH,QAAA,MAAM,uBAAuB,YAAI,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,CAAU,CAAC;AAC5F,QAAA,MAAM,oBAAoB,YAAI,gBAAgB,EAAE,qBAAqB,EAAE,gBAAgB,CAAU,CAAC;AAElG,8CAA8C;AAC9C,MAAM,MAAM,mCAAmC,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7F,kDAAkD;AAClD,MAAM,MAAM,iCAAiC,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF,uCAAuC;AACvC,MAAM,MAAM,+BAA+B,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpF,MAAM,MAAM,sBAAsB,GAC/B,oBAAoB,GACpB,oCAAoC,GACpC,6BAA6B,GAC7B,kCAAkC,GAClC,iCAAiC,GACjC,kCAAkC,GAClC,kCAAkC,GAClC,kCAAkC,GAClC,sCAAsC,GACtC,oCAAoC,GACpC,iCAAiC,GACjC,wCAAwC,CAAC;AAE5C,MAAM,MAAM,4BAA4B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