@ottocode/sdk 0.1.216 → 0.1.217

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ottocode/sdk",
3
- "version": "0.1.216",
3
+ "version": "0.1.217",
4
4
  "description": "AI agent SDK for building intelligent assistants - tree-shakable and comprehensive",
5
5
  "author": "nitishxyz",
6
6
  "license": "MIT",
@@ -101,7 +101,7 @@
101
101
  "@modelcontextprotocol/sdk": "^1.12",
102
102
  "@openauthjs/openauth": "^0.4.3",
103
103
  "@openrouter/ai-sdk-provider": "^1.2.0",
104
- "@ottocode/ai-sdk": "0.1.4",
104
+ "@ottocode/ai-sdk": "0.1.8",
105
105
  "@solana/web3.js": "^1.98.0",
106
106
  "ai": "^6.0.0",
107
107
  "bs58": "^6.0.0",
@@ -16,6 +16,7 @@ const DEFAULTS: { defaults: OttoConfig['defaults'] } = {
16
16
  model: 'kimi-k2.5',
17
17
  toolApproval: 'auto',
18
18
  guidedMode: false,
19
+ reasoningText: true,
19
20
  },
20
21
  };
21
22
 
@@ -65,6 +65,7 @@ export async function writeDefaults(
65
65
  model: string;
66
66
  toolApproval: 'auto' | 'dangerous' | 'all';
67
67
  guidedMode: boolean;
68
+ theme: string;
68
69
  }>,
69
70
  projectRoot?: string,
70
71
  ) {
@@ -93,7 +93,16 @@ export async function fetchSolanaUsdcBalance(
93
93
  auth: SetuAuth,
94
94
  network: 'mainnet' | 'devnet' = 'mainnet',
95
95
  ): Promise<SolanaUsdcBalanceResponse | null> {
96
- return fetchWalletUsdcBalance(auth, network);
96
+ if (auth.privateKey) {
97
+ return fetchWalletUsdcBalance({ privateKey: auth.privateKey }, network);
98
+ }
99
+ if (auth.signer?.walletAddress) {
100
+ return fetchWalletUsdcBalance(
101
+ { walletAddress: auth.signer.walletAddress },
102
+ network,
103
+ );
104
+ }
105
+ return null;
97
106
  }
98
107
 
99
108
  export { createSetu, type SetuInstance };
@@ -14,6 +14,8 @@ export type DefaultConfig = {
14
14
  model: string;
15
15
  toolApproval?: ToolApprovalMode;
16
16
  guidedMode?: boolean;
17
+ reasoningText?: boolean;
18
+ theme?: string;
17
19
  };
18
20
 
19
21
  /**