🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@primitivedotdev/cli

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primitivedotdev/cli - npm Package Compare versions

Comparing version
1.15.0
to
1.16.0
+4
-1
package.json
{
"name": "@primitivedotdev/cli",
"version": "1.15.0",
"version": "1.16.0",
"description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.",

@@ -104,2 +104,5 @@ "type": "module",

},
"memories": {
"description": "Store durable JSON memories by key. Use `primitive memories set|get|delete|search`; pass `--function <function-id>` for function-scoped memories."
},
"org": {

@@ -106,0 +109,0 @@ "description": "Manage org-level (global) resources shared across functions"

@@ -71,2 +71,4 @@ # @primitivedotdev/cli

primitive functions logs --id <function-id>
primitive memories set thread:latest '{"email_id":"em_123"}'
primitive memories get thread:latest
primitive deliveries replay --id <delivery-id>

@@ -77,2 +79,22 @@ ```

## Primitive Memories
Memories are durable JSON key-value records scoped to your org by default. Use
`--function <function-id>` to read or write the same key under a function scope;
the value is the function id UUID, not the function name.
```bash
primitive memories set thread:latest '{"email_id":"em_123"}'
primitive memories set greeting '"hello"'
primitive memories get thread:latest
primitive memories search thread: --metadata-only
primitive memories delete thread:latest
primitive memories set state '{"step":2}' --function <function-id>
primitive memories get state --function <function-id>
```
Values must be valid JSON. Strings must be quoted as JSON strings, so use
`'"hello"'`, not `hello`.
## Recipient routing

@@ -79,0 +101,0 @@

Sorry, the diff of this file is too big to display