@gonovus-ai/spec-flow-cli 1.2.0 → 1.2.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.
- package/README.md +2 -2
- package/guides/agent-sessions.md +15 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ seven-day Better Auth CLI Session. It supports the Node.js 24 runtime line;
|
|
|
39
39
|
Node.js 22 and unverified future major versions are intentionally unsupported.
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npm install --global @gonovus-ai/spec-flow-cli@1.2.
|
|
42
|
+
npm install --global @gonovus-ai/spec-flow-cli@1.2.1
|
|
43
43
|
specflow auth login
|
|
44
44
|
specflow auth status
|
|
45
45
|
specflow auth logout
|
|
@@ -88,7 +88,7 @@ review in the Web application, and publishing waits until then (`REVIEW_PENDING`
|
|
|
88
88
|
specflow version --json --skill-version 0.8.0 --compatible-cli "^1.2.0"
|
|
89
89
|
specflow upgrade
|
|
90
90
|
specflow upgrade --yes
|
|
91
|
-
specflow upgrade --to 1.2.
|
|
91
|
+
specflow upgrade --to 1.2.1
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
`version` shows the installed CLI and public advice from the selected origin.
|
package/guides/agent-sessions.md
CHANGED
|
@@ -33,13 +33,15 @@ specflow agent listen --workspace-id WORKSPACE_ID --agent my-agent --wait 15 --c
|
|
|
33
33
|
page.
|
|
34
34
|
- `agent listen` streams NDJSON events to stdout (one event per line in continuous mode,
|
|
35
35
|
full page JSON with `--once`). Event types include:
|
|
36
|
-
- `work_item.assigned` and
|
|
37
|
-
|
|
38
|
-
- `
|
|
39
|
-
- `
|
|
40
|
-
|
|
41
|
-
- `
|
|
42
|
-
- `
|
|
36
|
+
- `work_item.assigned` (delegation and retry entry points; inspect the Work Item,
|
|
37
|
+
comments, and any `sessionId` carried on the event before acting)
|
|
38
|
+
- `work_item.unassigned` (Agent delegation removed from a Work Item)
|
|
39
|
+
- `work_item.mentioned` and `work_item.comment_created` (discussion mentions and
|
|
40
|
+
follow-up comment activity)
|
|
41
|
+
- `session.prompted` (human live steering instruction scoped to `sessionId`)
|
|
42
|
+
- `session.elicitation_answered` (human answered an open confirmation card)
|
|
43
|
+
- `session.auth_completed` (human completed an external authorization step)
|
|
44
|
+
- `session.stop_requested` (human requested cooperative stop)
|
|
43
45
|
|
|
44
46
|
## Streaming a live execution session (SPF-73 M1.5)
|
|
45
47
|
|
|
@@ -60,7 +62,7 @@ SPEC_FLOW_AGENT=my-agent specflow agent session complete --project-id PROJECT_ID
|
|
|
60
62
|
Agent on that Work Item (for example, a session created by `retry`) unless `--new` is
|
|
61
63
|
passed.
|
|
62
64
|
- Report failure with `specflow agent session fail --project-id PROJECT_ID --session-id RUN_ID --message 'Sanitized failure reason' [--code CODE]`.
|
|
63
|
-
- When `
|
|
65
|
+
- When `session.stop_requested` arrives, wrap up safely and acknowledge with
|
|
64
66
|
`specflow agent session stop-ack --project-id PROJECT_ID --session-id RUN_ID --summary 'Stopped cleanly' [--rollback-summary 'Reverted local temp edits']`.
|
|
65
67
|
- Sanitization boundary: never write raw secrets, API keys, OAuth tokens, cookies, or
|
|
66
68
|
unredacted external credentials into `--summary`, `--body`, `--command`,
|
|
@@ -77,10 +79,10 @@ SPEC_FLOW_AGENT=my-agent specflow agent session request-auth --project-id PROJEC
|
|
|
77
79
|
```
|
|
78
80
|
|
|
79
81
|
- `ask` moves the session to `awaiting_input` (`elicitation`). Pass `--no-free-text` to
|
|
80
|
-
restrict answers to the listed options. Wait for `
|
|
82
|
+
restrict answers to the listed options. Wait for `session.elicitation_answered`
|
|
81
83
|
and read the response via `specflow agent session read`.
|
|
82
84
|
- `request-auth` moves the session to `awaiting_input` (`auth_required`) so a human can
|
|
83
|
-
complete GitHub authorization in the browser. Wait for `
|
|
85
|
+
complete GitHub authorization in the browser. Wait for `session.auth_completed`
|
|
84
86
|
before retrying the external action.
|
|
85
87
|
|
|
86
88
|
## Reading sessions and running human controls
|
|
@@ -106,5 +108,6 @@ specflow agent session retry --project-id PROJECT_ID --session-id RUN_ID
|
|
|
106
108
|
```
|
|
107
109
|
|
|
108
110
|
- `stop --force` is accepted only after 30 seconds have elapsed in the `stopping` state.
|
|
109
|
-
- `retry` spawns a new `pending` `
|
|
110
|
-
and notifies the target Agent with `
|
|
111
|
+
- `retry` spawns a new `pending` `sessionId` from a `failed`, `stopped`, or `stale`
|
|
112
|
+
session and notifies the target Agent with `work_item.assigned` carrying the new
|
|
113
|
+
`sessionId`.
|