@mycadet/plugin-api 0.12.6-dev.202610091338.ee7f3e3 → 0.12.7
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/app.d.ts +1 -4
- package/index.d.ts +68 -10
- package/package.json +1 -1
package/app.d.ts
CHANGED
|
@@ -71,10 +71,7 @@ export interface CadetBridge {
|
|
|
71
71
|
* assistant's session/auth is attached — use this instead of the bare
|
|
72
72
|
* global `fetch`, which fails from the sandboxed origin.
|
|
73
73
|
*/
|
|
74
|
-
fetch(
|
|
75
|
-
path: string,
|
|
76
|
-
options?: CadetFetchInit,
|
|
77
|
-
): Promise<CadetFetchResponse>;
|
|
74
|
+
fetch(path: string, options?: CadetFetchInit): Promise<CadetFetchResponse>;
|
|
78
75
|
}
|
|
79
76
|
|
|
80
77
|
declare global {
|
package/index.d.ts
CHANGED
|
@@ -2036,12 +2036,70 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
2036
2036
|
}, z.core.$strip>>>>;
|
|
2037
2037
|
activeProfile: z.ZodOptional<z.ZodString>;
|
|
2038
2038
|
advisorProfile: z.ZodOptional<z.ZodString>;
|
|
2039
|
-
|
|
2040
|
-
provider: z.
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2039
|
+
default: z.ZodOptional<z.ZodObject<{
|
|
2040
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2043
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
2044
|
+
none: "none";
|
|
2045
|
+
low: "low";
|
|
2046
|
+
medium: "medium";
|
|
2047
|
+
high: "high";
|
|
2048
|
+
xhigh: "xhigh";
|
|
2049
|
+
max: "max";
|
|
2050
|
+
}>>;
|
|
2051
|
+
speed: z.ZodOptional<z.ZodEnum<{
|
|
2052
|
+
standard: "standard";
|
|
2053
|
+
fast: "fast";
|
|
2054
|
+
}>>;
|
|
2055
|
+
verbosity: z.ZodOptional<z.ZodEnum<{
|
|
2056
|
+
low: "low";
|
|
2057
|
+
medium: "medium";
|
|
2058
|
+
high: "high";
|
|
2059
|
+
}>>;
|
|
2060
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2061
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2062
|
+
thinking: z.ZodOptional<z.ZodObject<{
|
|
2063
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2064
|
+
streamThinking: z.ZodOptional<z.ZodBoolean>;
|
|
2065
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
2066
|
+
low: "low";
|
|
2067
|
+
medium: "medium";
|
|
2068
|
+
high: "high";
|
|
2069
|
+
minimal: "minimal";
|
|
2070
|
+
}>>;
|
|
2071
|
+
}, z.core.$strip>>;
|
|
2072
|
+
contextWindow: z.ZodOptional<z.ZodObject<{
|
|
2073
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2074
|
+
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2075
|
+
targetBudgetRatio: z.ZodOptional<z.ZodNumber>;
|
|
2076
|
+
compactThreshold: z.ZodOptional<z.ZodNumber>;
|
|
2077
|
+
summaryBudgetRatio: z.ZodOptional<z.ZodNumber>;
|
|
2078
|
+
overflowRecovery: z.ZodOptional<z.ZodObject<{
|
|
2079
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2080
|
+
safetyMarginRatio: z.ZodOptional<z.ZodNumber>;
|
|
2081
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
2082
|
+
interactiveLatestTurnCompression: z.ZodOptional<z.ZodEnum<{
|
|
2083
|
+
truncate: "truncate";
|
|
2084
|
+
summarize: "summarize";
|
|
2085
|
+
drop: "drop";
|
|
2086
|
+
}>>;
|
|
2087
|
+
nonInteractiveLatestTurnCompression: z.ZodOptional<z.ZodEnum<{
|
|
2088
|
+
truncate: "truncate";
|
|
2089
|
+
summarize: "summarize";
|
|
2090
|
+
drop: "drop";
|
|
2091
|
+
}>>;
|
|
2092
|
+
}, z.core.$strip>>;
|
|
2093
|
+
}, z.core.$strip>>;
|
|
2094
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
2095
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2096
|
+
}, z.core.$strip>>;
|
|
2097
|
+
logitBias: z.ZodOptional<z.ZodEnum<{
|
|
2098
|
+
"suppress-cjk": "suppress-cjk";
|
|
2099
|
+
}>>;
|
|
2100
|
+
disableCache: z.ZodOptional<z.ZodBoolean>;
|
|
2101
|
+
provider_connection: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
}, z.core.$strip>>;
|
|
2045
2103
|
profileSession: z.ZodDefault<z.ZodObject<{
|
|
2046
2104
|
defaultTtlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
2047
2105
|
maxTtlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
@@ -20842,13 +20900,13 @@ declare type ResolutionFallbackReason = "missing" | "disabled" | "incomplete" |
|
|
|
20842
20900
|
* user-facing chat-model selection
|
|
20843
20901
|
* 3. `llm.callSites[callSite].profile` (the call site's named profile)
|
|
20844
20902
|
* 4. `CALL_SITE_DEFAULTS[callSite].profile` intent resolved through
|
|
20845
|
-
* `llm.
|
|
20846
|
-
* 5. balanced intent through `llm.
|
|
20903
|
+
* `llm.default`
|
|
20904
|
+
* 5. balanced intent through `llm.default`: the code-owned anchor
|
|
20847
20905
|
* for profileless call sites, or when nothing above is usable
|
|
20848
20906
|
*
|
|
20849
20907
|
* A winner must carry its own `provider` AND `model`: the base layer's schema
|
|
20850
20908
|
* default identity never stands in for a selected profile. The anchor is
|
|
20851
|
-
* code-owned and resolved through `llm.
|
|
20909
|
+
* code-owned and resolved through `llm.default`, never through
|
|
20852
20910
|
* user-mutable state.
|
|
20853
20911
|
*
|
|
20854
20912
|
* `temperature`/`top_p` come only from the winner (or an explicit call-site
|
|
@@ -20860,7 +20918,7 @@ declare type ResolutionFallbackReason = "missing" | "disabled" | "incomplete" |
|
|
|
20860
20918
|
*
|
|
20861
20919
|
* Profile names are resolved against the effective profile catalog
|
|
20862
20920
|
* (code-defined defaults + workspace `llm.profiles`), with default profile
|
|
20863
|
-
* keys resolved through `llm.
|
|
20921
|
+
* keys resolved through `llm.default`'s column of the intent ×
|
|
20864
20922
|
* provider matrix (see `resolveDefaultProfileForProvider`).
|
|
20865
20923
|
* A "mix" profile is expanded to one of its arms by a seeded weighted pick (see
|
|
20866
20924
|
* `resolveProfileFragment` and `opts.selectionSeed`), uniformly wherever a name
|