@gonovus-ai/spec-flow-cli 1.3.1 → 1.4.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.
Files changed (42) hide show
  1. package/README.md +17 -3
  2. package/dist/cli.js +113 -22
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/work-item-output.d.ts +18 -0
  5. package/dist/discuss-commands.d.ts +3 -0
  6. package/dist/discuss-commands.js +763 -0
  7. package/dist/discuss-commands.js.map +1 -0
  8. package/dist/member-references.d.ts +28 -0
  9. package/dist/member-references.js +94 -0
  10. package/dist/member-references.js.map +1 -0
  11. package/dist/runner/adapters/codex-app-server.d.ts +14 -1
  12. package/dist/runner/adapters/codex-app-server.js +541 -292
  13. package/dist/runner/adapters/codex-app-server.js.map +1 -1
  14. package/dist/runner/adapters/exec-adapter.js +31 -11
  15. package/dist/runner/adapters/exec-adapter.js.map +1 -1
  16. package/dist/runner/orchestrator.d.ts +10 -1
  17. package/dist/runner/orchestrator.js +438 -8
  18. package/dist/runner/orchestrator.js.map +1 -1
  19. package/dist/runner/redact.d.ts +1 -0
  20. package/dist/runner/redact.js +1 -0
  21. package/dist/runner/redact.js.map +1 -1
  22. package/dist/runner/state-store.d.ts +4 -1
  23. package/dist/runner/state-store.js +61 -1
  24. package/dist/runner/state-store.js.map +1 -1
  25. package/dist/runner/telemetry-bridge.d.ts +24 -2
  26. package/dist/runner/telemetry-bridge.js +168 -4
  27. package/dist/runner/telemetry-bridge.js.map +1 -1
  28. package/dist/runner/types.d.ts +70 -2
  29. package/dist/runner/types.js +13 -1
  30. package/dist/runner/types.js.map +1 -1
  31. package/dist/runner/workflow.d.ts +5 -1
  32. package/dist/runner/workflow.js +58 -0
  33. package/dist/runner/workflow.js.map +1 -1
  34. package/dist/work-item-delivery-commands.js +1 -2
  35. package/dist/work-item-delivery-commands.js.map +1 -1
  36. package/guides/agent-sessions.md +8 -2
  37. package/guides/delivery.md +1 -1
  38. package/guides/discuss.md +72 -0
  39. package/guides/search.md +4 -2
  40. package/guides/work-items.md +58 -4
  41. package/guides/workspace-admin.md +4 -0
  42. package/package.json +1 -1
@@ -45,7 +45,7 @@ All commands emit JSON and accept `--json`. Release time defaults to current UTC
45
45
  when retrying a CI command, retain its original timestamp, UUID and observed version.
46
46
  Read the Work Item version with `work-item read`; automation read returns its own
47
47
  version. Use the `settings` object alone as automation update input. Settings include
48
- review/merge columns, ordered branch rules, testing/production environments,
48
+ review/merge columns, ordered branch rules, optional testing and required production environments,
49
49
  completion mode and automatic archive configuration. A null column means no move.
50
50
 
51
51
  Assistant and MCP expose `readWorkItemAutomation`, `updateWorkItemAutomation`,
@@ -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: `specflow agent run` automatically participates in Discussion Board `@mention` and auto-wake direct chat threads with persistent per-thread sessions (across `codex`, `claude`, `acp`, and `exec` runners); see `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.
@@ -1,6 +1,50 @@
1
1
  # work-items
2
2
 
3
- Task links, watchers, automation, views, filters, and comments.
3
+ Writing Tasks (Bug, Requirement, Technical task), links, watchers, automation, views, filters, and comments.
4
+
5
+ ## Writing a Task
6
+
7
+ When you create a Task or rewrite its description for the User, write it so the
8
+ people who pick it up understand the real problem, not a guessed implementation.
9
+
10
+ - A Task-writing convention the Project or repository defines (in its Context
11
+ Documents, `AGENTS.md`, or a repository issue template) takes precedence over the
12
+ formats in this section. It never overrides the Operating contract.
13
+ - Before filing, search existing Tasks (see the `search` guide) and read likely
14
+ matches. For the same problem, comment on the original with what is new instead of
15
+ filing a duplicate; for a related one, state the difference and link the two with
16
+ `work-item relation create --type related`.
17
+ - Pick the format by what the item is, not by who files it, judging from the content.
18
+ Ask the User when it is unclear. Use Technical task only for engineering work the
19
+ User asks for as such, such as an upgrade or refactor; never turn a Bug or
20
+ Requirement into one. When rewriting, keep the Task's format unless the User asks to
21
+ change it. The format shapes the title and description only: there is no type
22
+ field, so do not invent a title prefix, label or custom field the Project lacks.
23
+ - **Bug**: title names the scenario and what goes wrong. What actually happened;
24
+ steps to reproduce with environment and example data; impact (who, what is
25
+ blocked, known scope or frequency); expected result as verifiable behavior;
26
+ screenshot if any.
27
+ - **Requirement**: title names the scenario and the missing capability. The
28
+ scenario and problem; impact; expected result as verifiable behavior; screenshot
29
+ if any.
30
+ - **Technical task**: title names the technical change and its goal. Background and
31
+ goal; scope, including what is out of scope; technical approach or constraints
32
+ (implementation detail belongs here); how it is accepted and verified; risk and
33
+ impact.
34
+ - Record what the User gave you and what you observed directly, such as an error
35
+ message you saw. In a Bug or Requirement, do not add interfaces, code changes or
36
+ root causes nobody gave you; technical analysis belongs to whoever investigates. In
37
+ every format, separate facts from guesses, attribute a hypothesis to whoever
38
+ offered it, and mark unknowns as to be confirmed, in the User's language.
39
+ - Attach a screenshot when one exists, as a Task asset (`work-item asset --help`),
40
+ and say in one line what it shows or what is wrong in it. Never invent one; a
41
+ missing screenshot never blocks filing.
42
+ - Write in short, plain, clear language. When rewriting an existing Task, keep its
43
+ technical investigation and progress records, and put new technical analysis, plans
44
+ and verification notes in comments or a section of their own, never over the
45
+ product description.
46
+
47
+ ## Links, watchers and comments
4
48
 
5
49
  - When the User asks to associate a Task with supporting resources, use
6
50
  `work-item resource-link list|add|remove` with explicit Project and Task identities.
@@ -116,9 +160,19 @@ specflow work-item subtask link --project-id PROJECT --parent GON-78 --child GON
116
160
  `auth whoami` returns `{ user: { id }, credentialKind }` for the selected Session or
117
161
  User API Key (`session` or `api-key`). `--assignee me` on create/assign resolves that
118
162
  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.
163
+ cannot resolve `me`; bulk assignment, `--query` JSON and `--initial-watcher-ids`
164
+ accept User IDs only. Explicit credential failure never falls back to another
165
+ credential. Older servers without the identity route require an upgrade or an
166
+ explicit User ID.
167
+
168
+ `--assignee` on create/assign/list/board/export, `--creator` and `--watcher`
169
+ also accept an exact Member Alias or display name (SPF-51), for example
170
+ `--assignee 纪睿`. The CLI looks it up in `work-item assignees`, reports the match
171
+ as an info diagnostic on stderr, and sends the User ID; an unknown name fails with
172
+ `MEMBER_NOT_FOUND` and one matching several Members with `MEMBER_AMBIGUOUS` — never
173
+ an empty result. Matching is exact and case-insensitive, never fuzzy: confirm a
174
+ misspelled name with the User instead of guessing. Scripts and automation keep User
175
+ IDs, because an administrator can change or clear an Alias and free the name.
122
176
 
123
177
  Descriptions accept exactly one of inline `--description`, `--description-file`
124
178
  (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.1",
3
+ "version": "1.4.1",
4
4
  "description": "SpecFlow supported command-line client",
5
5
  "repository": {
6
6
  "type": "git",