@gonovus-ai/spec-flow-cli 1.3.0 → 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/guides/boards.md CHANGED
@@ -84,12 +84,28 @@ specflow board import --workspace-id WORKSPACE --document-id PAY-D3 --file topol
84
84
 
85
85
  Run the replace write only after the User agrees to lose the existing layout.
86
86
  `--file` is a Mermaid flowchart (`.mmd`: `flowchart LR`, `subgraph`, node shapes
87
- `[box]`, `(round)`, `{decision}`, `[(database)]`, edges `-->` with `|label|`) or
88
- topology JSON (`.json`, also a `board read` result). `new` adds a board, `append`
87
+ `[box]`, `(round)`, `{decision}`, `[(database)]`, edges `-->`, `-.->` dashed, `==>`
88
+ thick with `|label|`, plus `classDef`, `class`, `:::class`, `style`, and `linkStyle`)
89
+ or topology JSON (`.json`, also a `board read` result). `new` adds a board, `append`
89
90
  lays new nodes beside an existing board and may connect them to its node IDs,
90
91
  `replace` keeps the board's ID and title and lays it out anew (the old picture stays
91
92
  in earlier Revisions).
92
93
 
94
+ ## Colors and styles
95
+
96
+ Colors align directly with the Web board (Excalidraw) palette so light and dark themes
97
+ match manual drawings:
98
+
99
+ - Built-in `color` presets: `gray`, `bronze`, `cyan`, `blue`, `violet`, `grape`, `pink`,
100
+ `green`, `teal`, `yellow`, `orange`, `red`. Pass `null` in `board edit` to reset to
101
+ the default board color.
102
+ - Exact passthrough fields for custom Web pairings: `strokeColor` and `backgroundColor`
103
+ (`#rrggbb`, `black`, `white`, or `transparent`), `fillStyle` (`solid`, `hachure`,
104
+ `cross-hatch`) on nodes and groups, `strokeStyle` (`solid`, `dashed`, `dotted`) on
105
+ edges, and `strokeWidth` (`1`, `2`, `4`) on nodes, groups, and edges.
106
+ - In Mermaid `.mmd`, external Hex colors in `classDef` / `style` / `linkStyle` map to
107
+ the nearest Excalidraw palette swatch and report the mapping in `warnings`.
108
+
93
109
  ## Edit
94
110
 
95
111
  ```sh
@@ -98,10 +114,13 @@ specflow board edit --workspace-id WORKSPACE --document-id PAY-D3 --board-id BOA
98
114
  ```
99
115
 
100
116
  `--ops` is a JSON array (or `{"operations": [...]}`) applied in order, all or
101
- nothing: `setNodeLabel`, `setNodeShape`, `removeNode` (also removes its edges),
102
- `addEdge` (between existing nodes), `removeEdge`, `setEdgeLabel`, `moveNodeToGroup`,
103
- `removeNodeFromGroup`, `setGroupLabel`, `renameBoard`, `deleteBoard`. For example
104
- `[{"op": "setNodeLabel", "nodeId": "api", "label": "Gateway"}]`. A refused operation
117
+ nothing: `setNodeLabel`, `setNodeShape`, `setNodeColor`, `removeNode` (also removes
118
+ its edges), `addEdge` (between existing nodes; accepts optional `color`, `strokeColor`,
119
+ `strokeStyle`, `strokeWidth`), `removeEdge`, `setEdgeLabel`, `setEdgeStyle`,
120
+ `moveNodeToGroup`, `removeNodeFromGroup`, `setGroupLabel`, `setGroupColor`,
121
+ `renameBoard`, `deleteBoard`. For example:
122
+ `[{"op": "setNodeColor", "nodeId": "api", "color": "blue"}, {"op": "setEdgeStyle", "edgeId": "e1", "color": "red", "strokeStyle": "dashed"}]`.
123
+ Style operations preserve existing coordinates and routing. A refused operation
105
124
  is named in the error; nothing is applied. Ask the User before `deleteBoard`.
106
125
 
107
126
  ## Dry runs, keys and versions
@@ -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. No type filter is supported. Dedicated
9
- `specflow spec search` still searches published Spec content only.
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.
@@ -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`; filters and bulk assignment accept User IDs only. Explicit
120
- credential failure never falls back to another credential. Older servers without
121
- the identity route require an upgrade or an explicit User ID.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonovus-ai/spec-flow-cli",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "SpecFlow supported command-line client",
5
5
  "repository": {
6
6
  "type": "git",