+57
-15
@@ -19,3 +19,3 @@ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */ | ||
| name: "@soat/cli", | ||
| version: "0.4.17", | ||
| version: "0.4.18", | ||
| type: "module", | ||
@@ -91,20 +91,20 @@ scripts: { | ||
| } | ||
| if (envBaseUrl && !envToken) { | ||
| const name = profileName ?? process.env["SOAT_PROFILE"] ?? "default"; | ||
| const config = readConfig(); | ||
| const profile = config[name]; | ||
| if (profile) { | ||
| return createClient(createConfig({ | ||
| baseUrl: envBaseUrl ?? profile.baseUrl, | ||
| headers: { | ||
| Authorization: `Bearer ${profile.token}` | ||
| } | ||
| })); | ||
| } | ||
| if (envBaseUrl) { | ||
| return createClient(createConfig({ | ||
| baseUrl: envBaseUrl | ||
| })); | ||
| } | ||
| const name = profileName ?? process.env["SOAT_PROFILE"] ?? "default"; | ||
| const config = readConfig(); | ||
| const profile = config[name]; | ||
| if (!profile) { | ||
| console.error(`Profile "${name}" not found. Run: soat configure${name !== "default" ? ` --profile ${name}` : ""}`); | ||
| process.exit(1); | ||
| } | ||
| return createClient(createConfig({ | ||
| baseUrl: profile.baseUrl, | ||
| headers: { | ||
| Authorization: `Bearer ${profile.token}` | ||
| } | ||
| })); | ||
| console.error(`Profile "${name}" not found. Run: soat configure${name !== "default" ? ` --profile ${name}` : ""}`); | ||
| process.exit(1); | ||
| }, "resolveClient"); | ||
@@ -632,2 +632,44 @@ | ||
| }, | ||
| "list-memories": { | ||
| serviceClass: "Memories", | ||
| operationId: "listMemories", | ||
| description: "List memories", | ||
| pathParams: [], | ||
| queryParams: ["project_id"] | ||
| }, | ||
| "create-memory": { | ||
| serviceClass: "Memories", | ||
| operationId: "createMemory", | ||
| description: "Create a memory", | ||
| pathParams: [], | ||
| queryParams: [] | ||
| }, | ||
| "get-memory": { | ||
| serviceClass: "Memories", | ||
| operationId: "getMemory", | ||
| description: "Get a memory", | ||
| pathParams: ["memory_id"], | ||
| queryParams: [] | ||
| }, | ||
| "update-memory": { | ||
| serviceClass: "Memories", | ||
| operationId: "updateMemory", | ||
| description: "Update a memory", | ||
| pathParams: ["memory_id"], | ||
| queryParams: [] | ||
| }, | ||
| "delete-memory": { | ||
| serviceClass: "Memories", | ||
| operationId: "deleteMemory", | ||
| description: "Delete a memory", | ||
| pathParams: ["memory_id"], | ||
| queryParams: [] | ||
| }, | ||
| "search-memory": { | ||
| serviceClass: "Memories", | ||
| operationId: "searchMemory", | ||
| description: "Search memory documents", | ||
| pathParams: ["memory_id"], | ||
| queryParams: [] | ||
| }, | ||
| "list-policies": { | ||
@@ -634,0 +676,0 @@ serviceClass: "Policies", |
+2
-2
| { | ||
| "name": "@soat/cli", | ||
| "version": "0.4.17", | ||
| "version": "0.4.18", | ||
| "type": "module", | ||
@@ -10,3 +10,3 @@ "dependencies": { | ||
| "commander": "^14.0.3", | ||
| "@soat/sdk": "0.4.17" | ||
| "@soat/sdk": "0.4.18" | ||
| }, | ||
@@ -13,0 +13,0 @@ "devDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
36762
2.94%1208
3.6%+ Added
- Removed
Updated