@gonovus-ai/spec-flow-cli 1.3.1 → 1.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 +17 -3
- package/dist/cli.js +113 -22
- package/dist/cli.js.map +1 -1
- package/dist/commands/work-item-output.d.ts +18 -0
- package/dist/discuss-commands.d.ts +3 -0
- package/dist/discuss-commands.js +763 -0
- package/dist/discuss-commands.js.map +1 -0
- package/dist/member-references.d.ts +28 -0
- package/dist/member-references.js +94 -0
- package/dist/member-references.js.map +1 -0
- package/dist/runner/orchestrator.d.ts +1 -1
- package/dist/runner/orchestrator.js +6 -0
- package/dist/runner/orchestrator.js.map +1 -1
- package/dist/runner/telemetry-bridge.d.ts +2 -2
- package/dist/runner/telemetry-bridge.js.map +1 -1
- package/dist/runner/types.d.ts +8 -2
- package/dist/runner/types.js +7 -1
- package/dist/runner/types.js.map +1 -1
- package/guides/agent-sessions.md +5 -2
- package/guides/discuss.md +72 -0
- package/guides/search.md +4 -2
- package/guides/work-items.md +13 -3
- package/guides/workspace-admin.md +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# discuss
|
|
2
|
+
|
|
3
|
+
Workspace Discussion Board channels, threads, private Agent direct chats, attachments, and event streaming.
|
|
4
|
+
|
|
5
|
+
Use `discuss` commands for Workspace-level human+Agent discussions (separate from `board`, which edits Context Document Excalidraw boards). Pass `--workspace-id W` on every command, and pass `--agent <slug|id>` or set `SPEC_FLOW_AGENT` when acting as an owned active CLI Agent.
|
|
6
|
+
|
|
7
|
+
## Channels and Threads
|
|
8
|
+
|
|
9
|
+
List accessible public channels, private direct chats, and Workspace Agents:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
specflow discuss channels --workspace-id W
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Create or administer public channels (`channel create` requires `board:write`; `channel update` requires human Owner/Admin `board:manageChannels`, and `#general` cannot be archived):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
specflow discuss channel create --workspace-id W --slug architecture --name "Architecture"
|
|
19
|
+
specflow discuss channel update --workspace-id W --channel-id architecture --name "Arch & Design"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Browse or read threads (`read` is a pure read and never mutates human read cursors):
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
specflow discuss threads --workspace-id W --channel general --scope all
|
|
26
|
+
specflow discuss read --workspace-id W --thread-id THREAD_ID
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Post a new thread or reply (`--body` or `--body-file <path|->`; repeat `--mention` and `--attachment-id`; reuse `--idempotency-key` on retries):
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
specflow discuss post --workspace-id W --channel general --title "API design" --body "Please review" --mention @codex-mac
|
|
33
|
+
specflow discuss reply --workspace-id W --thread-id THREAD_ID --body "Looks good" --idempotency-key KEY
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Edit with optimistic concurrency, soft-delete, or react:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
specflow discuss edit --workspace-id W --thread-id THREAD_ID --message-id MSG_ID --expected-version 1 --body "Updated text"
|
|
40
|
+
specflow discuss delete --workspace-id W --thread-id THREAD_ID --message-id MSG_ID
|
|
41
|
+
specflow discuss react --workspace-id W --thread-id THREAD_ID --message-id MSG_ID --emoji thumbsup
|
|
42
|
+
specflow discuss unreact --workspace-id W --thread-id THREAD_ID --message-id MSG_ID --emoji thumbsup
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Private Direct Chats (Human-Initiated)
|
|
46
|
+
|
|
47
|
+
Start a private direct chat with any Workspace CLI Agent (Webhook Agents are unsupported in M2) and manage participants or auto-wake settings:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
specflow discuss dm create --workspace-id W --target-agent codex-mac --body "Quick private question"
|
|
51
|
+
specflow discuss dm add-participant --workspace-id W --thread-id THREAD_ID --agent-id claude-bot
|
|
52
|
+
specflow discuss dm remove-participant --workspace-id W --thread-id THREAD_ID --agent-id claude-bot
|
|
53
|
+
specflow discuss dm settings --workspace-id W --thread-id THREAD_ID --auto-wake false
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Attachments and Streaming
|
|
57
|
+
|
|
58
|
+
Upload a local file (<= 10MB) via presigned URL and finalize it, or download an authorized attachment:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
specflow discuss asset upload --workspace-id W --channel-id general --file ./notes.txt
|
|
62
|
+
specflow discuss asset download --workspace-id W --channel-id general --asset-id ASSET_UUID --output-file ./downloaded.txt
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Wait for new messages (bounded `<25s` long-poll) or stream NDJSON continuously:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
specflow discuss wait --workspace-id W --thread-id THREAD_ID --wait 20
|
|
69
|
+
specflow discuss tail --workspace-id W --thread-id THREAD_ID --wait 20
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Related guides: Agent wakeups and durable cursor polling (`agent listen` / `agent run`) are in `agent-sessions`.
|
package/guides/search.md
CHANGED
|
@@ -5,5 +5,7 @@ Global object search and Published Spec search.
|
|
|
5
5
|
Use `specflow search-global --query 'payment' --limit 20 [--cursor '<nextCursor>']`
|
|
6
6
|
for tasks, Specs, Screens and Journeys across currently accessible resources.
|
|
7
7
|
Preserve returned object identities and totalCount; follow nextCursor with the
|
|
8
|
-
same query for complete results.
|
|
9
|
-
|
|
8
|
+
same query for complete results. `--types` narrows the kinds; people appear only
|
|
9
|
+
with `--types user`, which matches display names and Member Aliases and returns each
|
|
10
|
+
person's `alias` in that Workspace. Dedicated `specflow spec search` still searches
|
|
11
|
+
published Spec content only.
|
package/guides/work-items.md
CHANGED
|
@@ -116,9 +116,19 @@ specflow work-item subtask link --project-id PROJECT --parent GON-78 --child GON
|
|
|
116
116
|
`auth whoami` returns `{ user: { id }, credentialKind }` for the selected Session or
|
|
117
117
|
User API Key (`session` or `api-key`). `--assignee me` on create/assign resolves that
|
|
118
118
|
same credential once, without printing the intermediate identity. Read-only Tokens
|
|
119
|
-
cannot resolve `me`;
|
|
120
|
-
credential failure never falls back to another
|
|
121
|
-
the identity route require an upgrade or an
|
|
119
|
+
cannot resolve `me`; bulk assignment, `--query` JSON and `--initial-watcher-ids`
|
|
120
|
+
accept User IDs only. Explicit credential failure never falls back to another
|
|
121
|
+
credential. Older servers without the identity route require an upgrade or an
|
|
122
|
+
explicit User ID.
|
|
123
|
+
|
|
124
|
+
`--assignee` on create/assign/list/board/export, `--creator` and `--watcher`
|
|
125
|
+
also accept an exact Member Alias or display name (SPF-51), for example
|
|
126
|
+
`--assignee 纪睿`. The CLI looks it up in `work-item assignees`, reports the match
|
|
127
|
+
as an info diagnostic on stderr, and sends the User ID; an unknown name fails with
|
|
128
|
+
`MEMBER_NOT_FOUND` and one matching several Members with `MEMBER_AMBIGUOUS` — never
|
|
129
|
+
an empty result. Matching is exact and case-insensitive, never fuzzy: confirm a
|
|
130
|
+
misspelled name with the User instead of guessing. Scripts and automation keep User
|
|
131
|
+
IDs, because an administrator can change or clear an Alias and free the name.
|
|
122
132
|
|
|
123
133
|
Descriptions accept exactly one of inline `--description`, `--description-file`
|
|
124
134
|
(regular UTF-8 file, or `-` for explicit piped stdin), and update's
|
|
@@ -85,6 +85,10 @@ Workspace read-only Tokens do not gain personal account capabilities.
|
|
|
85
85
|
Workspace's Projects with `specflow project list --workspace-id <workspaceId>` —
|
|
86
86
|
an explicit, stateless filter combinable with `--status`; an unknown or
|
|
87
87
|
inaccessible Workspace returns an empty list, and discovery reflects the current User membership and Role.
|
|
88
|
+
- Member Aliases (SPF-51) are administrator-set, Workspace-unique display names.
|
|
89
|
+
`specflow workspace member alias set --workspace-id ID --user-id USER --alias 纪睿`
|
|
90
|
+
sets or changes one, and `--alias ''` clears it, freeing the name. `member list`
|
|
91
|
+
returns each Member's `alias`. Change Aliases only when the User asks.
|
|
88
92
|
- Administer Workspace membership and Roles only when the User asks. `specflow workspace member list|search|add|set-role|remove` governs who holds access —
|
|
89
93
|
`search` reads the identity directory and `add` provisions the selected User
|
|
90
94
|
by exact issuer+subject identity, including before first login; there is no
|