@rfany/rf 0.20.5 → 0.20.7
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/package.json +1 -1
- package/rf.mjs +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rfany/rf",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.7",
|
|
4
4
|
"description": "rollforward's command line for people: what its page does, from a shell or a desktop agent, as you",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/spoj/rollforward.git", "directory": "cli" },
|
package/rf.mjs
CHANGED
|
@@ -67,7 +67,7 @@ rf rename PATH NAME an instance, a series or a workspace, by its p
|
|
|
67
67
|
rf new task WORKSPACE [LABEL] [--creds OFFER,...|--clear] [--autonomous true|false] [--comment TEXT [--wake]] a one-off task, Untitled until LABEL or its
|
|
68
68
|
first comment names it; --wake starts its run on the comment; without --creds or --clear,
|
|
69
69
|
no execution consent is granted; --clear explicitly permits work with no credentials
|
|
70
|
-
rf new instance SERIES LABEL [--wake] another instance;
|
|
70
|
+
rf new instance SERIES LABEL [--wake] another instance; only the series owner creates it; --wake starts it
|
|
71
71
|
rf new series PATH NAME the task at PATH becomes the series NAME, itself its first instance
|
|
72
72
|
rf new workspace NAME yours to own, for admins and those they grant create
|
|
73
73
|
rf archive PATH [--undo] a workspace or a series leaves the sidebar, and nothing in it changes or runs, until --undo brings it back;
|
|
@@ -184,23 +184,23 @@ COMMAND gives one's usage, every read takes --json, and a failure is one line on
|
|
|
184
184
|
What there is
|
|
185
185
|
- A workspace holds series, and its people. A series is one recurring job; an instance is one period of it, labelled such as
|
|
186
186
|
2026-08-23. A task is a one-off: a series of one instance, named by its label, until someone makes it a series. PATH is workspace/series/label, as rf ls prints it; for rf pull it may go deeper, into an instance's files.
|
|
187
|
-
- An instance's screen is its items: inputs, outputs and steps, each pointing at a file, with what it's made from.
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
- An instance's screen is its items: inputs, outputs and steps, each pointing at a file, with what it's made from. Only the series
|
|
188
|
+
owner starts new instances, uploads or attaches files, posts comments, reacts, closes or abandons inside an instance. Their acts
|
|
189
|
+
and answers or decisions by whom the agent's ask named (--ask --to / --propose --to) start runs under current consent. Runs use the
|
|
190
190
|
owner's selected credentials, across every instance. Without consent, nothing runs; selecting none permits work with no
|
|
191
|
-
credentials. Scheduled and autonomous runs need a separate opt-in. Other collaborators
|
|
192
|
-
Transferring the whole series stops old runs and clears consent;
|
|
193
|
-
its author, and every run its executor.
|
|
191
|
+
credentials. Scheduled and autonomous runs need a separate opt-in. Other collaborators leave notes, files and requests at the
|
|
192
|
+
series level (Series Notes / rf comment SERIES), which start no run. Transferring the whole series stops old runs and clears consent;
|
|
193
|
+
old unread instructions become read-only context. Each act keeps its author, and every run its executor.
|
|
194
194
|
- rf is quiet: a comment, upload, approval, rejection, new instance or request it starts begins no run unless --wake, and the agent
|
|
195
195
|
reads it at its next run. The owner's rf wake PATH now starts one under current consent, without autonomous opt-in.
|
|
196
196
|
A quiet upload or comment is committed to the instance's history at once.
|
|
197
197
|
- A comment starts a thread, on the instance or on an item, at a cell such as Base!C25 or a line of a markdown file by its
|
|
198
198
|
opening words, and replies go under any comment in it, cN by its seq, a thread's id its first comment's. The agent asks
|
|
199
199
|
questions, which wait on someone, the one it names or else the series owner, until a person replies under it, and proposes what it
|
|
200
|
-
will do for its series owner, such as sending mail, which waits until
|
|
200
|
+
will do for its series owner, such as sending mail, which waits until the owner or named addressee approves or rejects it, or the agent withdraws it; a
|
|
201
201
|
proposal missing information should be rejected with feedback, so the agent can revise and propose again. Generic comments
|
|
202
202
|
are not proposal decisions. rf ls says how many asks wait in each instance. Reactions, thumbs up or down, are
|
|
203
|
-
quiet signals kept for later.
|
|
203
|
+
quiet signals kept for later. Only the series owner or the person a proposal names (--to) may approve or reject it; approval commits the instance's folder to its
|
|
204
204
|
history, .git in it, as it is then, as closing does. Whose approval counts, and for what, is the series' call.
|
|
205
205
|
|
|
206
206
|
What rf pull copies, the folders as the agent sees them
|
|
@@ -1224,7 +1224,7 @@ else if (cmd === 'kill' && args.length === 1 && /^\d+$/.test(args[0])) {
|
|
|
1224
1224
|
} else if (cmd === 'wakes' && args.length <= 1) {
|
|
1225
1225
|
const at = (args[0] ?? '').replace(/\/+$/, ''), rows = (await get('/api')).flatMap(w => w.series.filter(s => !s.archived).flatMap(s => [
|
|
1226
1226
|
...(s.single ? [] : [{ path: `${w.name}/${s.name}`, fired: s.fired, wakes: s.wakes, requests: s.requests }]),
|
|
1227
|
-
...s.instances.filter(i => i.wakes.length).map(i => ({ path: `${w.name}/${s.name}/${i.label}`, fired: i.fired, wakes: i.wakes, requests: [] })),
|
|
1227
|
+
...s.instances.filter(i => i.wakes.length || (s.single && s.requests.length)).map(i => ({ path: `${w.name}/${s.name}/${i.label}`, fired: i.fired, wakes: i.wakes, requests: s.single ? s.requests : [] })),
|
|
1228
1228
|
])).filter(r => !at || r.path === at || r.path.startsWith(at + '/'));
|
|
1229
1229
|
if (flags.json) console.log(JSON.stringify(rows, null, 1));
|
|
1230
1230
|
else for (const r of rows) {
|