@ivotoby/postgram-cli 1.31.0 → 1.32.1

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.
Files changed (3) hide show
  1. package/README.md +5 -4
  2. package/dist/pgm.js +10 -10
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # @ivotoby/postgram-cli
2
2
 
3
- Command-line client for [Postgram](https://github.com/ivo-toby/postgram/).
3
+ Command-line client for [Postgram](https://github.com/ivo-toby/postgram/) built
4
+ for both humans and agents.
4
5
 
5
6
  ## Install
6
7
 
@@ -24,10 +25,10 @@ echo '{"api_url":"http://localhost:3100","api_key":"your-api-key"}' > ~/.pgmrc
24
25
  ## Usage
25
26
 
26
27
  ```bash
27
- # Store an entity
28
+ # Store durable memory
28
29
  pgm store "decided to use pgvector" --type memory --tags "decisions,architecture"
29
30
 
30
- # Search
31
+ # Search with human output
31
32
  pgm search "pgvector decisions" --limit 5
32
33
 
33
34
  # Agent-friendly output formats
@@ -69,7 +70,7 @@ pgm sync ./notes --repo my-notes
69
70
  # Check enrichment/extraction queue status
70
71
  pgm queue
71
72
 
72
- # JSON output (all commands)
73
+ # Compact JSON output where supported
73
74
  pgm store "hello" --json
74
75
  ```
75
76
 
package/dist/pgm.js CHANGED
@@ -243,16 +243,16 @@ async function runBackup(output, encrypt) {
243
243
  const program = new Command();
244
244
  program
245
245
  .name('pgm')
246
- .description('Postgram human CLI')
246
+ .description('Postgram CLI for humans and agents')
247
247
  .version(readCliVersion())
248
- .option('--json', 'emit JSON output');
248
+ .option('--json', 'emit compact JSON for agents where supported');
249
249
  program
250
250
  .command('store')
251
251
  .alias('add')
252
- .description('Store an entity')
252
+ .description('Store durable memory/entity; use memory session-context for resumability')
253
253
  .argument('[content]', 'entity content')
254
254
  .option('--type <type>', 'entity type', 'memory')
255
- .option('--visibility <visibility>', 'entity visibility', 'shared')
255
+ .option('--visibility <visibility>', 'entity visibility (prefer personal for agent memory)', 'shared')
256
256
  .option('--owner <owner>', 'entity owner or namespace')
257
257
  .option('--status <status>', 'entity status')
258
258
  .option('--tags <tags>', 'comma-separated tags')
@@ -290,7 +290,7 @@ program
290
290
  });
291
291
  program
292
292
  .command('search')
293
- .description('Search stored entities')
293
+ .description('Search stored entities (compact JSON with --json; TOON with --toon)')
294
294
  .argument('query', 'search query')
295
295
  .option('--type <type>', 'entity type')
296
296
  .option('--tags <tags>', 'comma-separated tags')
@@ -301,7 +301,7 @@ program
301
301
  .option('--recency-weight <recencyWeight>', 'recency weight', '0.1')
302
302
  .option('--expand-graph', 'include graph-connected entities in results')
303
303
  .option('--include-archived', 'include archived entities in results')
304
- .option('--memory-role <role>', 'memory role filter: durable_memory or session_context')
304
+ .option('--memory-role <role>', 'memory role filter: session_context for continuity; durable_memory for stable facts')
305
305
  .option('--full-response', 'emit the full API response instead of compact default output when used with --json')
306
306
  .option('--toon', 'emit compact TOON output for lower agent token use; formatting is applied in the CLI, not the API')
307
307
  .action(async (query, options, command) => {
@@ -339,7 +339,7 @@ program
339
339
  });
340
340
  const memoryCommand = program
341
341
  .command('memory')
342
- .description('Memory-specific commands');
342
+ .description('Memory commands for agent session context');
343
343
  memoryCommand
344
344
  .command('groom')
345
345
  .description('Preview or archive stale session-context memories for the authenticated client')
@@ -387,12 +387,12 @@ memoryCommand
387
387
  memoryCommand
388
388
  .command('session-context')
389
389
  .alias('session')
390
- .description('Store client-scoped session-context memory')
390
+ .description('Store client-scoped session context for agent resumability')
391
391
  .argument('[content]', 'session context content')
392
- .option('--visibility <visibility>', 'entity visibility', 'shared')
392
+ .option('--visibility <visibility>', 'entity visibility (prefer personal for agent session context)', 'shared')
393
393
  .option('--owner <owner>', 'entity owner or namespace')
394
394
  .option('--session-id <sessionId>', 'external session or thread id')
395
- .option('--agent-id <agentId>', 'agent or persona id')
395
+ .option('--agent-id <agentId>', 'agent/persona metadata only; not an auth boundary')
396
396
  .option('--topic <topic>', 'topic label')
397
397
  .option('--tags <tags>', 'comma-separated tags')
398
398
  .option('--promotable', 'mark this session context as promotable')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivotoby/postgram-cli",
3
- "version": "1.31.0",
3
+ "version": "1.32.1",
4
4
  "description": "Postgram CLI — store, search, and manage entities from the command line",
5
5
  "type": "module",
6
6
  "bin": {