@ottocode/sdk 0.1.175 → 0.1.177
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 +130 -126
- package/src/providers/src/setu-client.ts +1 -1
package/package.json
CHANGED
|
@@ -1,128 +1,132 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
2
|
+
"name": "@ottocode/sdk",
|
|
3
|
+
"version": "0.1.177",
|
|
4
|
+
"description": "AI agent SDK for building intelligent assistants - tree-shakable and comprehensive",
|
|
5
|
+
"author": "nitishxyz",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/nitishxyz/otto#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/nitishxyz/otto.git",
|
|
11
|
+
"directory": "packages/sdk"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/nitishxyz/otto/issues"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./src/index.ts",
|
|
18
|
+
"types": "./src/index.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./src/index.ts",
|
|
22
|
+
"types": "./src/index.ts"
|
|
23
|
+
},
|
|
24
|
+
"./browser": {
|
|
25
|
+
"import": "./src/browser.ts",
|
|
26
|
+
"types": "./src/browser.ts"
|
|
27
|
+
},
|
|
28
|
+
"./tools/builtin/fs": {
|
|
29
|
+
"import": "./src/core/src/tools/builtin/fs/index.ts",
|
|
30
|
+
"types": "./src/core/src/tools/builtin/fs/index.ts"
|
|
31
|
+
},
|
|
32
|
+
"./tools/builtin/git": {
|
|
33
|
+
"import": "./src/core/src/tools/builtin/git.ts",
|
|
34
|
+
"types": "./src/core/src/tools/builtin/git.ts"
|
|
35
|
+
},
|
|
36
|
+
"./tools/builtin/bash": {
|
|
37
|
+
"import": "./src/core/src/tools/builtin/bash.ts",
|
|
38
|
+
"types": "./src/core/src/tools/builtin/bash.ts"
|
|
39
|
+
},
|
|
40
|
+
"./tools/builtin/edit": {
|
|
41
|
+
"import": "./src/core/src/tools/builtin/edit.ts",
|
|
42
|
+
"types": "./src/core/src/tools/builtin/edit.ts"
|
|
43
|
+
},
|
|
44
|
+
"./tools/builtin/finish": {
|
|
45
|
+
"import": "./src/core/src/tools/builtin/finish.ts",
|
|
46
|
+
"types": "./src/core/src/tools/builtin/finish.ts"
|
|
47
|
+
},
|
|
48
|
+
"./tools/builtin/grep": {
|
|
49
|
+
"import": "./src/core/src/tools/builtin/grep.ts",
|
|
50
|
+
"types": "./src/core/src/tools/builtin/grep.ts"
|
|
51
|
+
},
|
|
52
|
+
"./tools/builtin/patch": {
|
|
53
|
+
"import": "./src/core/src/tools/builtin/patch.ts",
|
|
54
|
+
"types": "./src/core/src/tools/builtin/patch.ts"
|
|
55
|
+
},
|
|
56
|
+
"./tools/builtin/plan": {
|
|
57
|
+
"import": "./src/core/src/tools/builtin/plan.ts",
|
|
58
|
+
"types": "./src/core/src/tools/builtin/plan.ts"
|
|
59
|
+
},
|
|
60
|
+
"./tools/builtin/progress": {
|
|
61
|
+
"import": "./src/core/src/tools/builtin/progress.ts",
|
|
62
|
+
"types": "./src/core/src/tools/builtin/progress.ts"
|
|
63
|
+
},
|
|
64
|
+
"./tools/builtin/ripgrep": {
|
|
65
|
+
"import": "./src/core/src/tools/builtin/ripgrep.ts",
|
|
66
|
+
"types": "./src/core/src/tools/builtin/ripgrep.ts"
|
|
67
|
+
},
|
|
68
|
+
"./tools/builtin/websearch": {
|
|
69
|
+
"import": "./src/core/src/tools/builtin/websearch.ts",
|
|
70
|
+
"types": "./src/core/src/tools/builtin/websearch.ts"
|
|
71
|
+
},
|
|
72
|
+
"./tools/builtin/terminal": {
|
|
73
|
+
"import": "./src/core/src/tools/builtin/terminal.ts",
|
|
74
|
+
"types": "./src/core/src/tools/builtin/terminal.ts"
|
|
75
|
+
},
|
|
76
|
+
"./tools/error": {
|
|
77
|
+
"import": "./src/core/src/tools/error.ts",
|
|
78
|
+
"types": "./src/core/src/tools/error.ts"
|
|
79
|
+
},
|
|
80
|
+
"./tools/bin-manager": {
|
|
81
|
+
"import": "./src/core/src/tools/bin-manager.ts",
|
|
82
|
+
"types": "./src/core/src/tools/bin-manager.ts"
|
|
83
|
+
},
|
|
84
|
+
"./prompts/*": "./src/prompts/src/*"
|
|
85
|
+
},
|
|
86
|
+
"files": [
|
|
87
|
+
"src",
|
|
88
|
+
"README.md",
|
|
89
|
+
"LICENSE"
|
|
90
|
+
],
|
|
91
|
+
"scripts": {
|
|
92
|
+
"dev": "bun run src/index.ts",
|
|
93
|
+
"test": "bun test",
|
|
94
|
+
"typecheck": "tsc --noEmit"
|
|
95
|
+
},
|
|
96
|
+
"dependencies": {
|
|
97
|
+
"@ai-sdk/anthropic": "^3.0.0",
|
|
98
|
+
"@ai-sdk/google": "^3.0.0",
|
|
99
|
+
"@ai-sdk/openai": "^3.0.0",
|
|
100
|
+
"@ai-sdk/openai-compatible": "^2.0.0",
|
|
101
|
+
"@openauthjs/openauth": "^0.4.3",
|
|
102
|
+
"@openrouter/ai-sdk-provider": "^1.2.0",
|
|
103
|
+
"@solana/web3.js": "^1.95.2",
|
|
104
|
+
"ai": "^6.0.0",
|
|
105
|
+
"bs58": "^6.0.0",
|
|
106
|
+
"bun-pty": "^0.3.2",
|
|
107
|
+
"diff": "^8.0.2",
|
|
108
|
+
"fast-glob": "^3.3.2",
|
|
109
|
+
"hono": "^4.9.9",
|
|
110
|
+
"opencode-anthropic-auth": "^0.0.2",
|
|
111
|
+
"tweetnacl": "^1.0.3",
|
|
112
|
+
"x402": "^1.1.0",
|
|
113
|
+
"zod": "^4.1.8"
|
|
114
|
+
},
|
|
115
|
+
"devDependencies": {
|
|
116
|
+
"@types/bun": "latest",
|
|
117
|
+
"typescript": "^5"
|
|
118
|
+
},
|
|
119
|
+
"keywords": [
|
|
120
|
+
"ai",
|
|
121
|
+
"sdk",
|
|
122
|
+
"agents",
|
|
123
|
+
"tools",
|
|
124
|
+
"llm",
|
|
125
|
+
"anthropic",
|
|
126
|
+
"openai",
|
|
127
|
+
"development",
|
|
128
|
+
"assistant",
|
|
129
|
+
"tree-shakable",
|
|
130
|
+
"typescript"
|
|
131
|
+
]
|
|
128
132
|
}
|
|
@@ -39,7 +39,7 @@ function simplifyPaymentError(errMsg: string): string {
|
|
|
39
39
|
return short.length < errMsg.length ? `${short}...` : errMsg;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
const DEFAULT_BASE_URL = 'https://api.setu.
|
|
42
|
+
const DEFAULT_BASE_URL = 'https://api.setu.ottocode.io';
|
|
43
43
|
const DEFAULT_RPC_URL = 'https://api.mainnet-beta.solana.com';
|
|
44
44
|
const DEFAULT_MAX_ATTEMPTS = 3;
|
|
45
45
|
const DEFAULT_MAX_PAYMENT_ATTEMPTS = 20;
|