starcite 0.0.6 → 0.0.8

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Built for multi-agent systems.
4
4
 
5
- Use `starcite` to create sessions, append events, and tail shared event streams from your terminal.
5
+ Use `starcite` to create sessions, append events, tail shared event streams, and inspect session listings from your terminal.
6
6
 
7
7
  For multi-agent systems:
8
8
 
@@ -68,20 +68,12 @@ starcite append ses_demo --agent researcher --text "Found 8 relevant cases..."
68
68
  starcite tail ses_demo --cursor 0 --limit 1
69
69
  ```
70
70
 
71
- ## Cloud Setup
72
-
73
- ```bash
74
- starcite config set endpoint https://<your-instance>.starcite.io
75
- starcite config set api-key <YOUR_KEY>
76
- ```
77
-
78
71
  ## Global Options
79
72
 
80
73
  - `-u, --base-url <url>`: Starcite API base URL (highest precedence)
81
74
  - `-k, --token <key>`: Starcite API key or session token (highest precedence)
82
75
  - `--config-dir <path>`: Starcite CLI config directory (defaults to `~/.starcite`)
83
76
  - `--json`: machine-readable JSON output
84
- - `-v, --version`: show CLI version and exit
85
77
  - `-h, --help`: show help text
86
78
 
87
79
  Base URL resolution order:
@@ -99,14 +91,21 @@ API key resolution order:
99
91
 
100
92
  ## Commands
101
93
 
102
- ### `version`
94
+ ### `config`
103
95
 
104
- Print the installed CLI version.
96
+ Manage local configuration.
105
97
 
106
98
  ```bash
107
- starcite version
99
+ starcite config set endpoint https://<your-instance>.starcite.io
100
+ starcite config set api-key <YOUR_API_KEY>
101
+ starcite config show
108
102
  ```
109
103
 
104
+ Key aliases accepted by `config set`:
105
+
106
+ - endpoint: `endpoint`, `base-url`, `base_url`
107
+ - API key: `api-key`, `api_key`
108
+
110
109
  ### `create`
111
110
 
112
111
  Create a session.
@@ -121,6 +120,8 @@ starcite create --id ses_demo --title "Draft contract" --metadata '{"tenant_id":
121
120
  List sessions from the API catalog.
122
121
  Uses the resolved API credential context.
123
122
 
123
+ This command prints a warning because it is a bad call to use in production.
124
+
124
125
  ```bash
125
126
  starcite sessions list
126
127
  starcite sessions list --limit 20
@@ -134,92 +135,41 @@ Useful flags:
134
135
  - `--cursor <cursor>`: pagination cursor from previous result
135
136
  - `--metadata <json>`: flat JSON object of exact-match metadata filters
136
137
 
137
- ### `config`
138
-
139
- Manage local configuration.
140
-
141
- ```bash
142
- starcite config set endpoint https://<your-instance>.starcite.io
143
- starcite config set producer-id producer:my-agent
144
- starcite config show
145
- ```
146
-
147
- Key aliases accepted by `config set`:
148
-
149
- - endpoint: `endpoint`, `base-url`, `base_url`
150
- - producer id: `producer-id`, `producer_id`
151
- - API key: `api-key`, `api_key`
152
-
153
- ### `up`
154
-
155
- Start local Starcite containers through an interactive wizard (Docker required).
156
-
157
- Wizard flow:
158
-
159
- - checks Docker / Docker Compose availability
160
- - asks for confirmation before creating containers
161
- - asks for API port (default from your configured base URL, fallback `45187`)
162
- - writes compose files to `~/.starcite/runtime` (or `--config-dir`)
163
- - runs `docker compose up -d`
164
-
165
- Useful flags:
166
-
167
- - `-y, --yes`: skip prompts and use defaults
168
- - `--port <port>`: set API port
169
- - `--db-port <port>`: set Postgres port (default `5433`)
170
- - `--image <image>`: override Starcite Docker image
171
-
172
- ### `down`
173
-
174
- Stop local Starcite containers.
175
-
176
- By default this command is destructive:
177
-
178
- - runs `docker compose down --remove-orphans -v`
179
- - removes container volumes (`-v`) to fully reset local state
180
-
181
- Useful flags:
182
-
183
- - `-y, --yes`: skip confirmation prompt
184
- - `--no-volumes`: keep Postgres volume data
185
-
186
138
  ### `append <sessionId>`
187
139
 
188
140
  Append an event.
189
- `--producer-id` and `--producer-seq` are optional.
190
- If omitted, CLI rehydrates from `~/.starcite`:
191
141
 
192
- - producer id: config (`producerId`/`producer_id`) or generated identity
193
- - producer seq: persisted `nextSeq` per `(baseUrl, sessionId, producerId)` context
194
- - first sequence for a new context starts at `1`
142
+ The CLI always appends through SDK session objects. Producer identity and
143
+ sequence are managed by the SDK store automatically; the CLI does not expose
144
+ producer controls.
195
145
 
196
- High-level mode (`--agent` + `--text`):
146
+ Append input shorthands:
197
147
 
198
- ```bash
199
- starcite append ses_demo --agent drafter --text "Reviewing clause 4.2..."
200
- ```
201
-
202
- Raw mode (`--actor` + `--payload`):
148
+ - `--text <text>` is shorthand for `--payload '{"text":"..."}'`
149
+ - choose one identity source: `--agent` or `--user`
150
+ - choose one payload source: `--text` or `--payload`
203
151
 
204
152
  ```bash
153
+ starcite append ses_demo --agent drafter --text "Reviewing clause 4.2..."
154
+ starcite append ses_demo --agent drafter --payload '{"text":"Reviewing clause 4.2...","section":"4.2"}'
205
155
  starcite append ses_demo \
206
- --actor agent:drafter \
207
- --producer-id producer:drafter \
208
- --producer-seq 3 \
209
- --type content \
210
- --payload '{"text":"Reviewing clause 4.2..."}' \
156
+ --user alice \
157
+ --text "Reviewing clause 4.2..." \
211
158
  --idempotency-key req-123 \
212
159
  --expected-seq 3
160
+ starcite append ses_demo \
161
+ --user alice \
162
+ --type content \
163
+ --payload '{"text":"Reviewing clause 4.2...","reviewer":"alice"}'
213
164
  ```
214
165
 
215
166
  ## Config and State Files
216
167
 
217
168
  By default the CLI uses `~/.starcite`:
218
169
 
219
- - `config.json` or `config.toml`: optional defaults (`baseUrl`, `producerId`, `apiKey`)
220
- - `credentials.json`: saved API key (`apiKey`)
221
- - `identity.json`: generated stable default producer id (`cli:<hostname>:<uuid>`)
222
- - `state.json`: persisted `nextSeqByContext` dictionary
170
+ - `config.json` or `config.toml`: optional defaults (`baseUrl`, `apiKey`)
171
+ - `credentials.json`: saved API key plus cached session tokens
172
+ - `state.json`: session-scoped store state (retained events, cursors, and producer state)
223
173
 
224
174
  Use `--config-dir <path>` to override the directory for testing or isolated runs.
225
175