@omg-dev/protocol 0.6.69 → 0.6.71
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.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Shared, runtime-free Fast capability rules for server and native composer. */
|
|
2
|
+
export declare function codexModelSupportsFast(model: string | null | undefined): boolean;
|
|
3
|
+
export declare function agentSupportsFastMode(agent: string): boolean;
|
|
4
|
+
export declare function supportsFastMode(agent: string, model?: string | null): boolean;
|
|
5
|
+
//# sourceMappingURL=fast-mode-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-mode-support.d.ts","sourceRoot":"","sources":["../src/fast-mode-support.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAGhF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAG9E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Shared, runtime-free Fast capability rules for server and native composer. */
|
|
2
|
+
export function codexModelSupportsFast(model) {
|
|
3
|
+
if (!model)
|
|
4
|
+
return false;
|
|
5
|
+
return model === "gpt-6-astra" || /^gpt-5\.(?:6(?:-|$)|5(?:-|$)|4$)/.test(model);
|
|
6
|
+
}
|
|
7
|
+
export function agentSupportsFastMode(agent) {
|
|
8
|
+
return ["codex", "codex-aisdk", "claude", "aisdk"].includes(agent);
|
|
9
|
+
}
|
|
10
|
+
export function supportsFastMode(agent, model) {
|
|
11
|
+
return agentSupportsFastMode(agent) &&
|
|
12
|
+
(agent === "claude" || agent === "aisdk" || codexModelSupportsFast(model));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=fast-mode-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-mode-support.js","sourceRoot":"","sources":["../src/fast-mode-support.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,UAAU,sBAAsB,CAAC,KAAgC;IACrE,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,OAAO,KAAK,KAAK,aAAa,IAAI,kCAAkC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAa;IACjD,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,KAAqB;IACnE,OAAO,qBAAqB,CAAC,KAAK,CAAC;QACjC,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,OAAO,IAAI,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|