@mycadet/plugin-api 0.12.6-dev.202610091338.ee7f3e3 → 0.12.7-dev.202610102207.24bf931

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.
Files changed (3) hide show
  1. package/app.d.ts +1 -4
  2. package/index.d.ts +71 -12
  3. 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
- defaultProvider: z.ZodCatch<z.ZodOptional<z.ZodObject<{
2040
- provider: z.ZodEnum<{
2041
- [x: string]: string;
2042
- }>;
2043
- connectionName: z.ZodOptional<z.ZodString>;
2044
- }, z.core.$strip>>>;
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>;
@@ -2205,6 +2263,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
2205
2263
  accountSid: z.ZodDefault<z.ZodString>;
2206
2264
  phoneNumber: z.ZodDefault<z.ZodString>;
2207
2265
  setupStarted: z.ZodDefault<z.ZodBoolean>;
2266
+ assistantPhoneNumbers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2208
2267
  }, z.core.$strip>>;
2209
2268
  calls: z.ZodDefault<z.ZodObject<{
2210
2269
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -2359,7 +2418,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
2359
2418
  shutdownDrainMs: number;
2360
2419
  enabled?: boolean | undefined;
2361
2420
  }>>;
2362
- platform: z.ZodDefault<z.ZodObject<{
2421
+ cloud: z.ZodDefault<z.ZodObject<{
2363
2422
  baseUrl: z.ZodDefault<z.ZodString>;
2364
2423
  subdomain: z.ZodDefault<z.ZodString>;
2365
2424
  }, z.core.$strip>>;
@@ -20842,13 +20901,13 @@ declare type ResolutionFallbackReason = "missing" | "disabled" | "incomplete" |
20842
20901
  * user-facing chat-model selection
20843
20902
  * 3. `llm.callSites[callSite].profile` (the call site's named profile)
20844
20903
  * 4. `CALL_SITE_DEFAULTS[callSite].profile` intent resolved through
20845
- * `llm.defaultProvider`
20846
- * 5. balanced intent through `llm.defaultProvider`: the code-owned anchor
20904
+ * `llm.default`
20905
+ * 5. balanced intent through `llm.default`: the code-owned anchor
20847
20906
  * for profileless call sites, or when nothing above is usable
20848
20907
  *
20849
20908
  * A winner must carry its own `provider` AND `model`: the base layer's schema
20850
20909
  * default identity never stands in for a selected profile. The anchor is
20851
- * code-owned and resolved through `llm.defaultProvider`, never through
20910
+ * code-owned and resolved through `llm.default`, never through
20852
20911
  * user-mutable state.
20853
20912
  *
20854
20913
  * `temperature`/`top_p` come only from the winner (or an explicit call-site
@@ -20860,7 +20919,7 @@ declare type ResolutionFallbackReason = "missing" | "disabled" | "incomplete" |
20860
20919
  *
20861
20920
  * Profile names are resolved against the effective profile catalog
20862
20921
  * (code-defined defaults + workspace `llm.profiles`), with default profile
20863
- * keys resolved through `llm.defaultProvider`'s column of the intent ×
20922
+ * keys resolved through `llm.default`'s column of the intent ×
20864
20923
  * provider matrix (see `resolveDefaultProfileForProvider`).
20865
20924
  * A "mix" profile is expanded to one of its arms by a seeded weighted pick (see
20866
20925
  * `resolveProfileFragment` and `opts.selectionSeed`), uniformly wherever a name
@@ -24199,7 +24258,7 @@ export declare interface ToolContext {
24199
24258
  * True when the assistant is running as a platform-managed remote instance. Used to auto-approve sandboxed bash tools.
24200
24259
  * @legacy
24201
24260
  */
24202
- isPlatformHosted?: boolean;
24261
+ isCloudHosted?: boolean;
24203
24262
  /**
24204
24263
  * The interface ID of the connected client driving the current turn (e.g.
24205
24264
  * "macos", "chrome-extension"). Browser backend policy uses this to decide
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycadet/plugin-api",
3
- "version": "0.12.6-dev.202610091338.ee7f3e3",
3
+ "version": "0.12.7-dev.202610102207.24bf931",
4
4
  "description": "Public TypeScript authoring contract for Cadet assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",