@maximem/synap-js-sdk 0.2.3 → 0.2.4

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/README.md CHANGED
@@ -37,14 +37,13 @@ Windows:
37
37
  $env:USERPROFILE\.synap-js-sdk\.venv\Scripts\python.exe -c "import maximem_synap; print(maximem_synap.__version__)"
38
38
  ```
39
39
 
40
- ## Required Environment Variables
40
+ ## Required Environment Variable
41
41
 
42
42
  - `SYNAP_API_KEY` (from the Synap dashboard — Instances → Generate API Key)
43
- - `SYNAP_INSTANCE_ID`
44
- - `SYNAP_BASE_URL`
45
- - `SYNAP_GRPC_HOST`
46
- - `SYNAP_GRPC_PORT`
47
- - `SYNAP_GRPC_TLS`
43
+
44
+ The SDK uses the default Synap cloud endpoints automatically. `SYNAP_BASE_URL`,
45
+ `SYNAP_GRPC_HOST`, `SYNAP_GRPC_PORT`, and `SYNAP_GRPC_TLS` are only needed for
46
+ advanced overrides such as local development or custom environments.
48
47
 
49
48
  ## Quick Start (JavaScript)
50
49
 
@@ -52,12 +51,7 @@ $env:USERPROFILE\.synap-js-sdk\.venv\Scripts\python.exe -c "import maximem_synap
52
51
  const { createClient } = require('@maximem/synap-js-sdk');
53
52
 
54
53
  const synap = createClient({
55
- instanceId: process.env.SYNAP_INSTANCE_ID,
56
54
  apiKey: process.env.SYNAP_API_KEY,
57
- baseUrl: process.env.SYNAP_BASE_URL,
58
- grpcHost: process.env.SYNAP_GRPC_HOST,
59
- grpcPort: Number(process.env.SYNAP_GRPC_PORT || 50051),
60
- grpcUseTls: process.env.SYNAP_GRPC_TLS === 'true',
61
55
  });
62
56
 
63
57
  async function run() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maximem/synap-js-sdk",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "JavaScript wrapper around the Synap Python SDK",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -29,7 +29,6 @@ export interface BridgeLogHandler {
29
29
  }
30
30
 
31
31
  export interface SynapClientOptions {
32
- instanceId?: string;
33
32
  apiKey?: string;
34
33
  baseUrl?: string;
35
34
  grpcHost?: string;