@simplepush/cli 0.2.1 → 0.4.0
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 +19 -2
- package/dist/main.mjs +404 -183
- package/dist/main.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ sp cancel Withdraw a pending task, subtask, or task group you sent.
|
|
|
22
22
|
sp notify Send a fire-and-forget notification.
|
|
23
23
|
sp collect Collect replies, inputs, or submissions as bounded NDJSON.
|
|
24
24
|
sp download Download one file a collect line referenced, by its ids.
|
|
25
|
+
sp get Read what came back: task listings, one task with its subtasks, a task group, submissions.
|
|
25
26
|
sp events Stream or replay the raw event feed.
|
|
26
27
|
sp auth Log in to an organization (login / logout / status).
|
|
27
28
|
sp org Administer an organization: members, invites, topics, API key, encryption.
|
|
@@ -85,7 +86,7 @@ sp cancel grptsk_0198… --reason answered --note "already handled"
|
|
|
85
86
|
sp cancel sub_0198… --reason superseded --superseded-by sub_0199…
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
Already-answered members are skipped, never failed; re-canceling is a no-op. With an API token it cancels a personal send, without one it uses the org session. `--note` is sealed under the
|
|
89
|
+
Already-answered members are skipped, never failed; re-canceling is a no-op. With an API token it cancels a personal send, without one it uses the org session. `--note` is sealed under the target's own key whenever the CLI holds it: the org vault on org cancels, or the matching `-p "pw@topic"` (topic send) / bare `-p "pw"` (send to your own devices) on personal ones; otherwise it ships plaintext with a warning.
|
|
89
90
|
|
|
90
91
|
### Download the files people upload
|
|
91
92
|
|
|
@@ -161,7 +162,7 @@ Collect its answers like any send: pipe the `sent` line, or collect after the fa
|
|
|
161
162
|
sp subtask --append-token "$TOKEN" --format json \
|
|
162
163
|
--text-input "ETA?" | sp collect --inputs
|
|
163
164
|
|
|
164
|
-
sp collect --instance
|
|
165
|
+
sp collect --instance sub_0198… --since 24h
|
|
165
166
|
```
|
|
166
167
|
|
|
167
168
|
### Watch your account live, or replay history
|
|
@@ -192,3 +193,19 @@ Bun can compile the CLI into a single-file native binary:
|
|
|
192
193
|
bun run build:binary
|
|
193
194
|
./bin/simplepush --help
|
|
194
195
|
```
|
|
196
|
+
|
|
197
|
+
### Query what came back
|
|
198
|
+
|
|
199
|
+
The read commands mirror the MCP query tools, so an agent can ask questions like "every task that expired unanswered this week, grouped by assignee":
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
sp get tasks --status expired --since 7d --format json # one JSON object per line
|
|
203
|
+
sp get tasks --status pending --member anna --all # follow cursors to the end
|
|
204
|
+
sp get tsk_… # the chain: root + subtasks, decrypted where keys are held
|
|
205
|
+
sp get sub_… # one subtask on its own
|
|
206
|
+
sp get grptsk_… # per-recipient status of a group send
|
|
207
|
+
sp get submissions --since 24h --member anna
|
|
208
|
+
sp events --since 7d --member anna # events replay, narrowed client-side
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
A page that was cut off ends with `{"type":"more","cursor":"…"}` (`json`) or an info line (`pretty`); pass the cursor back with `--cursor`, or `--all` to page automatically. `--since`/`--until` take ISO-8601 instants or relative windows (`7d`, `12h`). For personal accounts the HTTP query surface (`sp get`) is a subscription feature — `sp events`, `sp collect` and `sp download` stay free.
|