rice-node-sdk 1.0.2 → 1.0.3
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/Client.js +4 -1
- package/dist/index.d.ts +839 -0
- package/dist/state/index.d.ts +90 -1
- package/dist/state/index.js +322 -1
- package/dist/state/proto/state.proto +198 -4
- package/dist/state/tools.d.ts +839 -0
- package/dist/storage/client/BaseClient.d.ts +1 -0
- package/dist/storage/client/GrpcClient.js +15 -6
- package/dist/storage/client/HttpClient.js +13 -3
- package/dist/tools/anthropic.d.ts +271 -0
- package/dist/tools/anthropic.js +148 -0
- package/dist/tools/execute.d.ts +1 -1
- package/dist/tools/execute.js +22 -0
- package/dist/tools/google.d.ts +273 -0
- package/dist/tools/google.js +150 -0
- package/dist/tools/openai.d.ts +295 -0
- package/dist/tools/openai.js +175 -0
- package/package.json +1 -1
package/dist/Client.js
CHANGED
|
@@ -74,9 +74,12 @@ class Client {
|
|
|
74
74
|
}
|
|
75
75
|
const token = process.env.STORAGE_AUTH_TOKEN;
|
|
76
76
|
const user = process.env.STORAGE_USER || "admin";
|
|
77
|
+
const httpPort = process.env.STORAGE_HTTP_PORT
|
|
78
|
+
? parseInt(process.env.STORAGE_HTTP_PORT, 10)
|
|
79
|
+
: 3000;
|
|
77
80
|
// We assume STORAGE_INSTANCE_URL points to the gRPC port
|
|
78
81
|
// Pass token to constructor initially (if it's a valid token, it works; if it's a password, we login)
|
|
79
|
-
this._storage = new RiceDBClient_1.RiceDBClient(host, "auto", port,
|
|
82
|
+
this._storage = new RiceDBClient_1.RiceDBClient(host, "auto", port, httpPort, token);
|
|
80
83
|
await this._storage.connect();
|
|
81
84
|
if (token) {
|
|
82
85
|
try {
|