@pylonsync/sdk 0.9.2 → 0.10.0

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 CHANGED
@@ -943,7 +943,12 @@ export type AuthConfig = {
943
943
  export type LlmConfig = {
944
944
  /** Provider name. Default: env detection. */
945
945
  provider?: "anthropic" | "openai";
946
- /** Default model when the caller doesn't pass `model`. */
946
+ /**
947
+ * Model used when a `ctx.llm` call doesn't pass its own `model`.
948
+ * There is no built-in fallback — declare it here or pass `model`
949
+ * at each call site. A hardcoded default would go stale the moment
950
+ * the provider ships a new generation.
951
+ */
947
952
  defaultModel?: string;
948
953
  /**
949
954
  * Allowlist of models callers may request via the `model` field.
@@ -1019,8 +1024,8 @@ export declare function defineConnection(cfg: ConnectionConfig): ManifestConnect
1019
1024
  * export default {
1020
1025
  * llm: llm({
1021
1026
  * provider: "anthropic",
1022
- * defaultModel: "claude-sonnet-4-5",
1023
- * allowedModels: ["claude-sonnet-4-5", "claude-haiku-4-5"],
1027
+ * defaultModel: "claude-opus-5",
1028
+ * allowedModels: ["claude-opus-5", "claude-haiku-4-5"],
1024
1029
  * }),
1025
1030
  * }
1026
1031
  * ```
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.9.2",
6
+ "version": "0.10.0",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "types": "./dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1765,7 +1765,12 @@ export type AuthConfig = {
1765
1765
  export type LlmConfig = {
1766
1766
  /** Provider name. Default: env detection. */
1767
1767
  provider?: "anthropic" | "openai";
1768
- /** Default model when the caller doesn't pass `model`. */
1768
+ /**
1769
+ * Model used when a `ctx.llm` call doesn't pass its own `model`.
1770
+ * There is no built-in fallback — declare it here or pass `model`
1771
+ * at each call site. A hardcoded default would go stale the moment
1772
+ * the provider ships a new generation.
1773
+ */
1769
1774
  defaultModel?: string;
1770
1775
  /**
1771
1776
  * Allowlist of models callers may request via the `model` field.
@@ -1856,8 +1861,8 @@ export function defineConnection(cfg: ConnectionConfig): ManifestConnection {
1856
1861
  * export default {
1857
1862
  * llm: llm({
1858
1863
  * provider: "anthropic",
1859
- * defaultModel: "claude-sonnet-4-5",
1860
- * allowedModels: ["claude-sonnet-4-5", "claude-haiku-4-5"],
1864
+ * defaultModel: "claude-opus-5",
1865
+ * allowedModels: ["claude-opus-5", "claude-haiku-4-5"],
1861
1866
  * }),
1862
1867
  * }
1863
1868
  * ```