@opengeni/config 0.10.3 → 0.10.6
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/dist/index.d.ts +2 -0
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +18 -4
package/dist/index.d.ts
CHANGED
|
@@ -593,6 +593,7 @@ export declare const ModelCapabilitiesV1Schema: z.ZodObject<{
|
|
|
593
593
|
image: "image";
|
|
594
594
|
text: "text";
|
|
595
595
|
}>>;
|
|
596
|
+
inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
596
597
|
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
597
598
|
audio: "audio";
|
|
598
599
|
image: "image";
|
|
@@ -810,6 +811,7 @@ declare const RegistryProviderSchema: z.ZodObject<{
|
|
|
810
811
|
image: "image";
|
|
811
812
|
text: "text";
|
|
812
813
|
}>>;
|
|
814
|
+
inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
813
815
|
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
814
816
|
audio: "audio";
|
|
815
817
|
image: "image";
|
package/dist/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var DEFAULT_AGENT_INSTRUCTIONS = [
|
|
|
78
78
|
"Follow the user's task and any enabled pack or skill instructions for the current role.",
|
|
79
79
|
"Work inside the sandbox workspace and use filesystem and shell tools when useful.",
|
|
80
80
|
"Repository resources are mounted under repos/<host>/<owner>/<repo> unless the session specifies another collision-free mount path.",
|
|
81
|
-
"File resources are mounted under files/<file-id>/ unless the session specifies another mount path.",
|
|
81
|
+
"File resources are mounted under .opengeni/files/<file-id>/ unless the session specifies another mount path.",
|
|
82
82
|
"Attached files are mounted read-only; copy them before modifying.",
|
|
83
83
|
"Bundled skills are under .agents/ and can include infrastructure, marketing, or other role-specific guidance.",
|
|
84
84
|
"Use Checkov, Terraform, Azure CLI, git provider CLIs, and repository tools when relevant; gh, glab, and az repos are pre-authenticated when the host brokers matching git credentials.",
|
|
@@ -963,6 +963,8 @@ var ModelCapabilitiesV1Schema = z.object({
|
|
|
963
963
|
codeExecution: CapabilityStateV1Schema
|
|
964
964
|
}),
|
|
965
965
|
inputModalities: z.array(ModelModalityV1).min(1),
|
|
966
|
+
/** Exact MIME types accepted as typed `input_file`; `text/*` is allowed. */
|
|
967
|
+
inputFileMediaTypes: z.array(z.string()).default([]),
|
|
966
968
|
outputModalities: z.array(ModelModalityV1).min(1),
|
|
967
969
|
transports: z.object({
|
|
968
970
|
sse: CapabilityStateV1Schema,
|
|
@@ -1800,6 +1802,7 @@ function normalizeCapabilities(capabilities) {
|
|
|
1800
1802
|
inputModalities: [...parsed.inputModalities].sort(
|
|
1801
1803
|
(left, right) => (MODALITY_ORDER.get(left) ?? 0) - (MODALITY_ORDER.get(right) ?? 0)
|
|
1802
1804
|
),
|
|
1805
|
+
inputFileMediaTypes: [...new Set(parsed.inputFileMediaTypes)].sort(),
|
|
1803
1806
|
outputModalities: [...parsed.outputModalities].sort(
|
|
1804
1807
|
(left, right) => (MODALITY_ORDER.get(left) ?? 0) - (MODALITY_ORDER.get(right) ?? 0)
|
|
1805
1808
|
),
|
|
@@ -1828,7 +1831,14 @@ function legacyModelCapabilities(settings, input) {
|
|
|
1828
1831
|
xSearch: { upstream: "unknown", runnable: false },
|
|
1829
1832
|
codeExecution: { upstream: "unknown", runnable: false }
|
|
1830
1833
|
},
|
|
1831
|
-
inputModalities: ["text"],
|
|
1834
|
+
inputModalities: input.vision ? ["text", "image"] : ["text"],
|
|
1835
|
+
inputFileMediaTypes: [
|
|
1836
|
+
"application/json",
|
|
1837
|
+
"application/pdf",
|
|
1838
|
+
"application/x-yaml",
|
|
1839
|
+
"application/yaml",
|
|
1840
|
+
"text/*"
|
|
1841
|
+
],
|
|
1832
1842
|
outputModalities: ["text"],
|
|
1833
1843
|
transports: {
|
|
1834
1844
|
sse: { upstream: "unknown", runnable: true },
|
|
@@ -1861,6 +1871,7 @@ function gatewayModelCapabilities(settings, input) {
|
|
|
1861
1871
|
...legacy,
|
|
1862
1872
|
functionCalling: { upstream: "supported", runnable: true },
|
|
1863
1873
|
inputModalities: input.vision ? ["text", "image"] : ["text"],
|
|
1874
|
+
inputFileMediaTypes: input.inputFileMediaTypes ?? [],
|
|
1864
1875
|
transports: {
|
|
1865
1876
|
...legacy.transports,
|
|
1866
1877
|
sse: { upstream: "supported", runnable: true }
|
|
@@ -1881,7 +1892,8 @@ function gatewayRegistryProvider(settings, input) {
|
|
|
1881
1892
|
label: model.label,
|
|
1882
1893
|
capabilities: gatewayModelCapabilities(settings, {
|
|
1883
1894
|
implicitCaching: model.implicitCaching,
|
|
1884
|
-
vision: kimi
|
|
1895
|
+
vision: kimi,
|
|
1896
|
+
inputFileMediaTypes: kimi ? ["application/pdf"] : []
|
|
1885
1897
|
}),
|
|
1886
1898
|
contextWindowTokens: 1e6,
|
|
1887
1899
|
effectiveContextWindowTokens: 9e5,
|
|
@@ -2146,7 +2158,8 @@ function withCodexCatalogProvider(settings) {
|
|
|
2146
2158
|
const capabilities = {
|
|
2147
2159
|
...legacyModelCapabilities(settings, {
|
|
2148
2160
|
reasoningEffort: true,
|
|
2149
|
-
hostedWebSearch: true
|
|
2161
|
+
hostedWebSearch: true,
|
|
2162
|
+
vision: slug.startsWith("gpt-5.6-")
|
|
2150
2163
|
}),
|
|
2151
2164
|
...builtinPromptCachingForModel(`${CODEX_MODEL_ID_PREFIX}${slug}`) ? {
|
|
2152
2165
|
promptCaching: builtinPromptCachingForModel(`${CODEX_MODEL_ID_PREFIX}${slug}`)
|
|
@@ -2264,7 +2277,8 @@ function configuredModels(settings) {
|
|
|
2264
2277
|
const capabilities = {
|
|
2265
2278
|
...legacyModelCapabilities(settings, {
|
|
2266
2279
|
reasoningEffort: true,
|
|
2267
|
-
hostedWebSearch: settings.webSearchEnabled
|
|
2280
|
+
hostedWebSearch: settings.webSearchEnabled,
|
|
2281
|
+
vision: id.startsWith("gpt-5.6-")
|
|
2268
2282
|
}),
|
|
2269
2283
|
...builtinPromptCachingForModel(id) ? { promptCaching: builtinPromptCachingForModel(id) } : {},
|
|
2270
2284
|
latencyModes: builtinLatencyModesForModel(id)
|