@gonovus-ai/spec-flow-cli 0.6.3 → 1.0.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 +58 -7
- package/dist/authentication-command-topology.js.map +1 -1
- package/dist/bin.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +864 -287
- package/dist/cli.js.map +1 -1
- package/dist/client-identity.d.ts +1 -1
- package/dist/client-identity.js +3 -1
- package/dist/client-identity.js.map +1 -1
- package/dist/commands/client-compatibility.d.ts +3 -0
- package/dist/commands/client-compatibility.js +191 -0
- package/dist/commands/client-compatibility.js.map +1 -0
- package/dist/commands/guide.d.ts +2 -0
- package/dist/commands/guide.js +35 -0
- package/dist/commands/guide.js.map +1 -0
- package/dist/commands/work-item-output.d.ts +15 -5
- package/dist/commands/work-item-output.js +47 -9
- package/dist/commands/work-item-output.js.map +1 -1
- package/dist/credential-store.js +6 -7
- package/dist/credential-store.js.map +1 -1
- package/dist/custom-field-color-commands.js +13 -3
- package/dist/custom-field-color-commands.js.map +1 -1
- package/dist/default-api-origin.js.map +1 -1
- package/dist/github-account-commands.js +116 -20
- package/dist/github-account-commands.js.map +1 -1
- package/dist/github-connection-commands.js +284 -36
- package/dist/github-connection-commands.js.map +1 -1
- package/dist/github-import-commands.js +41 -11
- package/dist/github-import-commands.js.map +1 -1
- package/dist/http-origin.js +1 -1
- package/dist/http-origin.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +125 -35
- package/dist/index.js.map +1 -1
- package/dist/input/text-source.js +8 -2
- package/dist/input/text-source.js.map +1 -1
- package/dist/node-version.js.map +1 -1
- package/dist/product-map-commands.js +220 -37
- package/dist/product-map-commands.js.map +1 -1
- package/dist/program.js +9 -3
- package/dist/program.js.map +1 -1
- package/dist/project-administration-commands.js +36 -8
- package/dist/project-administration-commands.js.map +1 -1
- package/dist/runtime/client-compatibility.d.ts +13 -0
- package/dist/runtime/client-compatibility.js +79 -0
- package/dist/runtime/client-compatibility.js.map +1 -0
- package/dist/runtime/errors.js +21 -3
- package/dist/runtime/errors.js.map +1 -1
- package/dist/runtime/execute.js +16 -2
- package/dist/runtime/execute.js.map +1 -1
- package/dist/runtime/identity.d.ts +8 -80
- package/dist/runtime/identity.js +21 -4
- package/dist/runtime/identity.js.map +1 -1
- package/dist/runtime/npm-upgrade.d.ts +32 -0
- package/dist/runtime/npm-upgrade.js +132 -0
- package/dist/runtime/npm-upgrade.js.map +1 -0
- package/dist/runtime/output.js +6 -1
- package/dist/runtime/output.js.map +1 -1
- package/dist/runtime/session.js +44 -11
- package/dist/runtime/session.js.map +1 -1
- package/dist/screen-image-commands.js +66 -14
- package/dist/screen-image-commands.js.map +1 -1
- package/dist/spec-discussion-commands.js +87 -24
- package/dist/spec-discussion-commands.js.map +1 -1
- package/dist/spec-owner-commands.js +22 -7
- package/dist/spec-owner-commands.js.map +1 -1
- package/dist/user-api-key-commands.js +92 -20
- package/dist/user-api-key-commands.js.map +1 -1
- package/dist/work-item-asset-commands.js +23 -6
- package/dist/work-item-asset-commands.js.map +1 -1
- package/dist/work-item-delivery-commands.js +97 -31
- package/dist/work-item-delivery-commands.js.map +1 -1
- package/dist/work-item-exchange-file.js +22 -8
- package/dist/work-item-exchange-file.js.map +1 -1
- package/dist/work-item-query-commands.js +403 -35
- package/dist/work-item-query-commands.js.map +1 -1
- package/dist/work-item-resource-link-commands.js +105 -28
- package/dist/work-item-resource-link-commands.js.map +1 -1
- package/dist/work-item-thread-commands.d.ts +3 -0
- package/dist/work-item-thread-commands.js +101 -0
- package/dist/work-item-thread-commands.js.map +1 -0
- package/dist/work-item-watcher-commands.d.ts +20 -0
- package/dist/work-item-watcher-commands.js +93 -0
- package/dist/work-item-watcher-commands.js.map +1 -0
- package/guides/authoring.md +178 -0
- package/guides/delivery.md +60 -0
- package/guides/discussions-audit.md +32 -0
- package/guides/errors.md +41 -0
- package/guides/glossary.md +40 -0
- package/guides/map-and-screens.md +31 -0
- package/guides/search.md +9 -0
- package/guides/work-items.md +195 -0
- package/guides/workspace-admin.md +130 -0
- package/package.json +8 -3
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# authoring
|
|
2
|
+
|
|
3
|
+
Spec authoring, canonical Markdown, Scenario IDs, and draft proposals.
|
|
4
|
+
|
|
5
|
+
- Read and author shared Specs with `specflow spec list|read|create|edit` and
|
|
6
|
+
`specflow capability create|update|delete`, passing `--workspace-id <workspaceId>`.
|
|
7
|
+
Read the Capability tree from `specflow spec list --workspace-id <workspaceId>`.
|
|
8
|
+
Use the same Workspace for draft, owner, publish, rollback, state and delete commands.
|
|
9
|
+
A Project filter selects Specs linked from its Work Items, never Project-owned copies.
|
|
10
|
+
|
|
11
|
+
- Organize Capability and Spec resources, persist only bounded Source References, and
|
|
12
|
+
edit Spec or Glossary Working Drafts through the logical CLI commands. Do not
|
|
13
|
+
implement a collaboration protocol or connect to the collaboration gateway.
|
|
14
|
+
- Read shared Spec provenance with `specflow authoring-history --workspace-id <workspaceId>`.
|
|
15
|
+
- Use `proposal create-spec` or `proposal create-glossary` only when preview-before-apply
|
|
16
|
+
is useful. Bind it to the exact logical baseline you read, report only available
|
|
17
|
+
Agent revision/model and Source Reference IDs, and use `proposal list`, `apply`, or
|
|
18
|
+
`discard` as independent resource operations. Direct `spec edit` and `workspace glossary edit`
|
|
19
|
+
remain the default and may report the same bounded provenance fields.
|
|
20
|
+
- Treat `Resource Changed` from Proposal apply as a protected Human edit: reread the
|
|
21
|
+
Working Draft and Proposal, then require deliberate conflict resolution. Never
|
|
22
|
+
convert it into a blind direct edit or silently recreate the Proposal.
|
|
23
|
+
- Apply the current Workspace Role to Finding operations. Never attempt
|
|
24
|
+
to turn a Permission Denied result into broader authority.
|
|
25
|
+
|
|
26
|
+
Before deciding Spec boundaries, use current Workspace knowledge context already supplied by the
|
|
27
|
+
task. When authoring against SpecFlow, read any missing Capability tree, Published
|
|
28
|
+
Glossary, and relevant existing Specs through the CLI. Use that context to choose one
|
|
29
|
+
of four outcomes: create a Spec, update or reuse an existing Spec, avoid a duplicate,
|
|
30
|
+
or report a conflict that needs resolution.
|
|
31
|
+
|
|
32
|
+
For each new Spec, write its title and all authored Spec prose (titles,
|
|
33
|
+
Goals, Rules, Scenario lines, and explanatory table content) in the User's language.
|
|
34
|
+
Use the User's explicit output-language request first, then their established
|
|
35
|
+
language preference, and otherwise the language of their own task instructions.
|
|
36
|
+
Reference material and this Skill do not determine the Spec's prose language.
|
|
37
|
+
Use Published Canonical Terms verbatim even when the surrounding prose uses
|
|
38
|
+
another language, and preserve literal values.
|
|
39
|
+
|
|
40
|
+
Workspace creation accepts `--spec-language zh-CN|en` (default `zh-CN`). `workspace settings read|update --workspace-id <workspaceId>` owns subsequent language changes; published Revisions keep their language; unpublished outlines serialize with the new labels. Read `specLanguage` from Workspace knowledge context. Project-shaped adapters read that same value. This controls syntax, not authored prose.
|
|
41
|
+
|
|
42
|
+
Consult the Glossary guide for normative vocabulary and terminology conflict handling before drafting.
|
|
43
|
+
|
|
44
|
+
When a provided Capability owns the goal's business object and changed state, use
|
|
45
|
+
that placement. Otherwise create the Spec without `--capability-id`; Unassigned is
|
|
46
|
+
not a hidden Capability. Move an existing Spec to Unassigned with `spec update
|
|
47
|
+
--capability-id none` and its observed version. Choose one existing Capability when
|
|
48
|
+
organizing later; an actor's account does not determine placement.
|
|
49
|
+
|
|
50
|
+
Use Example Mapping before writing Spec Content:
|
|
51
|
+
|
|
52
|
+
1. Identify each distinct User goal by the outcome the User wants to complete, not by
|
|
53
|
+
each step, command, or state on the way to that outcome.
|
|
54
|
+
2. List the business Rules governing each goal.
|
|
55
|
+
3. Give each Rule concrete success, rejection, failure, and boundary Examples.
|
|
56
|
+
4. Record unresolved Questions instead of inventing answers.
|
|
57
|
+
|
|
58
|
+
Map one User goal to one Spec with one Title and Goal. Keep that goal's success, rejection,
|
|
59
|
+
failure, and boundary paths in the same Spec. Split independent goals into separate
|
|
60
|
+
Specs even when they share a page, API, actor, or implementation; shared
|
|
61
|
+
surfaces are not a reason to merge goals. A behavior is an independent goal only when
|
|
62
|
+
it has a useful completion outcome apart from the end-to-end journey.
|
|
63
|
+
|
|
64
|
+
A step that only creates pending work and the later authorized step that accepts,
|
|
65
|
+
rejects, or realizes it remain one end-to-end goal when the requirement describes one
|
|
66
|
+
business result. A handoff between actors does not by itself create another goal.
|
|
67
|
+
|
|
68
|
+
A setting and the behavior it enables or disables remain one goal when the setting
|
|
69
|
+
has no useful outcome apart from controlling that behavior. Keep enabling, disabling,
|
|
70
|
+
and the resulting execution or suppression in the same Spec.
|
|
71
|
+
|
|
72
|
+
For example, starting checkout, completing payment, and handling a declined payment
|
|
73
|
+
remain one purchase Spec. Viewing past orders is a separate goal even on the same
|
|
74
|
+
page.
|
|
75
|
+
|
|
76
|
+
Write canonical Markdown in this fixed order: Title, Goal, optional Rules,
|
|
77
|
+
optional Shared Preconditions, Scenarios, and optional Open Questions. Goal is one
|
|
78
|
+
paragraph saying who wants what and why. Rules are numbered normative statements;
|
|
79
|
+
they have no IDs. Shared Preconditions are a bullet list that holds for every
|
|
80
|
+
Scenario. Each Scenario has a heading, an optional explanation, and ordered
|
|
81
|
+
Precondition, Action, or Outcome lines. At least one Outcome is required. One
|
|
82
|
+
optional pipe table records example values. Open Questions are a numbered list;
|
|
83
|
+
they never block Publish and are supplied to Review as context.
|
|
84
|
+
|
|
85
|
+
Use `#` for the Title, `##` for sections, and `###` for each Scenario heading.
|
|
86
|
+
English line labels are `Given`, `When`, and `Then`, followed by `: `.
|
|
87
|
+
Chinese sections are `目标 / 规则 / 共同前提 / 情形 / 待确认`; line labels are
|
|
88
|
+
`前提 / 操作 / 结果`, followed by `:`, as in `- 操作:顾客确认使用已保存的卡。`.
|
|
89
|
+
Sentences use natural language without step-matching rules. Escape structural
|
|
90
|
+
prefixes in authored text with a backslash and escape pipes inside table cells.
|
|
91
|
+
Use one blank line between blocks and exactly one trailing newline.
|
|
92
|
+
|
|
93
|
+
For example, an English Spec after Scenario ID assignment reads:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
# Pay for an order
|
|
97
|
+
|
|
98
|
+
## Goal
|
|
99
|
+
|
|
100
|
+
A customer pays for an order to complete checkout.
|
|
101
|
+
|
|
102
|
+
## Rules
|
|
103
|
+
|
|
104
|
+
1. The customer must be charged at most once.
|
|
105
|
+
|
|
106
|
+
## Shared Preconditions
|
|
107
|
+
|
|
108
|
+
- The order is unpaid.
|
|
109
|
+
|
|
110
|
+
## Scenarios
|
|
111
|
+
|
|
112
|
+
### PAY-S123-4 Pay with a saved card
|
|
113
|
+
|
|
114
|
+
- Given: The customer has a saved card.
|
|
115
|
+
- When: The customer confirms payment.
|
|
116
|
+
- Then: The order is paid.
|
|
117
|
+
|
|
118
|
+
## Open Questions
|
|
119
|
+
|
|
120
|
+
1. How long may payment confirmation take?
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Every Scenario carries a stable Spec-scoped Scenario ID in its heading, such as
|
|
124
|
+
`PAY-S123-4`, that SpecFlow assigns, never the Agent. When editing a Working Draft,
|
|
125
|
+
preserve each existing Scenario ID verbatim: never invent, renumber, reorder, or
|
|
126
|
+
hand-assign Scenario IDs, and never put test-case-document numbering into Scenario
|
|
127
|
+
titles. Keep the ID when reordering or editing a Scenario inside the same Spec; when
|
|
128
|
+
copying a Scenario from another Spec, remove its Scenario ID before saving so
|
|
129
|
+
assignment issues fresh IDs. After editing and before Publish, run
|
|
130
|
+
`specflow spec assign-scenario-ids --workspace-id <workspace-id> --spec-id <spec-id>`
|
|
131
|
+
to fill missing IDs and repair invalid, duplicate, or foreign ones while leaving
|
|
132
|
+
valid IDs unchanged. Refer to scenarios by their Scenario ID in questions,
|
|
133
|
+
findings, and reports. Spec Content has no tags.
|
|
134
|
+
|
|
135
|
+
Read Markdown with `specflow spec read --workspace-id <workspace-id> --spec-id
|
|
136
|
+
<spec-id>`: `workingDraftSource` holds the current Draft and
|
|
137
|
+
`currentRevision.content` holds Published Content. Start a Draft when needed with
|
|
138
|
+
`specflow spec draft --workspace-id <workspace-id> --spec-id <spec-id>
|
|
139
|
+
--expected-version <version>`. Write it with `specflow spec edit
|
|
140
|
+
--workspace-id <workspace-id> --spec-id <spec-id> --content <markdown>`; its response
|
|
141
|
+
contains `draft.content`. Content that does not parse as canonical Markdown is
|
|
142
|
+
rejected as a whole with `Invalid Operation` diagnostics and leaves the Working
|
|
143
|
+
Draft unchanged; correct the reported lines and send the full content again.
|
|
144
|
+
Workspace knowledge context returns `specLanguage`; Project-shaped adapters read the same value. A Spec Proposal
|
|
145
|
+
uses `proposal create-spec --workspace-id <workspace-id> --spec-id <spec-id>
|
|
146
|
+
--baseline-content <baseline> --proposed-content <markdown>` and carries
|
|
147
|
+
`baselineContent` and `proposedContent`. Keep the baseline exactly as read.
|
|
148
|
+
|
|
149
|
+
Ask the smallest focused Question before editing only when a missing goal, acting
|
|
150
|
+
authority, or business policy prevents a correct Spec boundary, Rule, or observable
|
|
151
|
+
outcome without choosing among plausible answers. Otherwise continue directly without
|
|
152
|
+
asking or recording a Question. Keep details abstract when the requested behavior is
|
|
153
|
+
already clear without them. A stated actor is sufficient unless multiple plausible
|
|
154
|
+
authority levels would change the behavior. Stop asking once every goal, required
|
|
155
|
+
authority, and outcome-changing policy is known; wording and other reversible
|
|
156
|
+
authoring choices do not block drafting.
|
|
157
|
+
|
|
158
|
+
Phrase each blocking Question as one direct choice using the requirement's own domain
|
|
159
|
+
terms and the same language as the requirement. Use the compact form that matches the
|
|
160
|
+
missing decision: who may perform the named action for authority; after the named
|
|
161
|
+
state, whether the named action is allowed and how rejection is handled for policy;
|
|
162
|
+
whether named goal A and named goal B are the same goal or independent goals for a
|
|
163
|
+
boundary; or, for a meaning conflict between a requirement and a term the Published
|
|
164
|
+
Glossary defines, "the Published Glossary defines the named Canonical Term as the
|
|
165
|
+
quoted Definition; this requirement uses it as the quoted meaning; which governs, the
|
|
166
|
+
Glossary or the requirement?". That conflict form asks only the one governing choice
|
|
167
|
+
and never asks whether the Glossary should change. Replace every generic placeholder
|
|
168
|
+
with the exact actor, action, object, goal, or term from the requirement; never
|
|
169
|
+
return template wording literally. Do not replace the choice
|
|
170
|
+
with a menu of examples or a broader process question. When the current
|
|
171
|
+
step asks only for clarification, return the blocking Questions and no Specs or
|
|
172
|
+
Spec Content until the answers are supplied.
|
|
173
|
+
|
|
174
|
+
A Workspace read-only Token (`SPEC_FLOW_WORKSPACE_READ_TOKEN`) can read `spec
|
|
175
|
+
current` and `spec revision` without a Session; see the workspace-admin guide for its
|
|
176
|
+
scope. When reporting an authoring outcome, list the Canonical Term substitutions
|
|
177
|
+
made, undefined material terms suggested as Glossary candidates, and existing Specs
|
|
178
|
+
that disagree with the Published Glossary.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# delivery
|
|
2
|
+
|
|
3
|
+
Development branches, releases, acceptance, and transfers.
|
|
4
|
+
|
|
5
|
+
## Development branches
|
|
6
|
+
|
|
7
|
+
Before creating a branch for an approved Work Item, use the CLI branch-name
|
|
8
|
+
command and create the Git branch using its returned `branchName` exactly:
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
specflow work-item branch-name --project-id PROJECT --work-item-id GON-78
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This writes the branch claim on the server. Do not derive the branch name from
|
|
15
|
+
the title yourself: Projects configure their branch template, and the exact claim
|
|
16
|
+
links a subsequent PR even when its title has no Work Item number. Claiming the
|
|
17
|
+
same branch again assigns it to the most recently selected Work Item. PR titles
|
|
18
|
+
may identify multiple Work Items with complete IDs; PR bodies and comments do not
|
|
19
|
+
associate Work Items. Use `work-item github-link-pr` for a manual PR association;
|
|
20
|
+
`resource-link add --kind other` is for ordinary reference URLs and rejects GitHub
|
|
21
|
+
pull-request URLs. Manual PR associations default to `closes`; `references`
|
|
22
|
+
never changes Work Item status.
|
|
23
|
+
|
|
24
|
+
## Delivery and acceptance (ADR 0143)
|
|
25
|
+
|
|
26
|
+
Merging enters delivery rather than completing a Work Item. CI or signed GitHub
|
|
27
|
+
successful deployment status records releases; manual completion requires a User
|
|
28
|
+
with `workItem:update` to accept an In QA Work Item. Return requires a reason and
|
|
29
|
+
moves it to In Progress, recording the reason as a comment. Acceptance is attributed
|
|
30
|
+
to the authenticated human, including when an Agent acts on that User's behalf.
|
|
31
|
+
Automation changes require `project:update` and replace the complete settings.
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
specflow work-item delivery --project-id PROJECT --work-item-id PAY-1 --json
|
|
35
|
+
specflow work-item accept --project-id PROJECT --work-item-id PAY-1 --expected-version '"7"' --idempotency-key UUID
|
|
36
|
+
specflow work-item return --project-id PROJECT --work-item-id PAY-1 --reason 'Missing acceptance criterion' --expected-version '"7"' --idempotency-key UUID
|
|
37
|
+
specflow work-item release --project-id PROJECT --work-item-id PAY-1 --environment staging --released-at 2026-11-08T00:00:00Z --expected-version '"7"' --idempotency-key UUID
|
|
38
|
+
specflow project work-item-automation read --project-id PROJECT
|
|
39
|
+
specflow project work-item-automation update --project-id PROJECT --input '<complete settings JSON>' --expected-version '"1"' --idempotency-key UUID
|
|
40
|
+
specflow work-item transfer-preview --project-id PROJECT --work-item-id PAY-1 --destination-project-id TARGET
|
|
41
|
+
specflow work-item location --project-id PROJECT --work-item-id PAY-1
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
All commands emit JSON and accept `--json`. Release time defaults to current UTC;
|
|
45
|
+
when retrying a CI command, retain its original timestamp, UUID and observed version.
|
|
46
|
+
Read the Work Item version with `work-item read`; automation read returns its own
|
|
47
|
+
version. Use the `settings` object alone as automation update input. Settings include
|
|
48
|
+
review/merge columns, ordered branch rules, testing/production environments,
|
|
49
|
+
completion mode and automatic archive configuration. A null column means no move.
|
|
50
|
+
|
|
51
|
+
Assistant and MCP expose `readWorkItemAutomation`, `updateWorkItemAutomation`,
|
|
52
|
+
`readWorkItemDelivery`, `recordWorkItemAcceptance`, `recordWorkItemRelease`,
|
|
53
|
+
`previewWorkItemTransfer` and `resolveWorkItemLocation`. Reads execute as reads.
|
|
54
|
+
Assistant writes require the conversation owner's approval; MCP uses existing
|
|
55
|
+
OAuth authority and routine `call_write`, original version preconditions and native
|
|
56
|
+
idempotency receipts. No additional connector admission reservation is needed.
|
|
57
|
+
The release operation reports an already successful release, like other explicit
|
|
58
|
+
integration commands; it does not deploy or impersonate a GitHub webhook. Only
|
|
59
|
+
report an actual release requested by the User. No automatic acceptance follows a
|
|
60
|
+
merge; production-mode completion is a separate Project setting.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# discussions-audit
|
|
2
|
+
|
|
3
|
+
Spec responsibility, Scenario discussion threads, and audit history.
|
|
4
|
+
|
|
5
|
+
Use `spec owner read|candidates|assign|clear --workspace-id W --spec-id SPEC`
|
|
6
|
+
when the User asks to inspect or change responsibility. Assignment requires an
|
|
7
|
+
eligible candidate's `--user-id`; clearing is explicit. Both writes require the
|
|
8
|
+
Owner read's `--expected-version` and a retained `--idempotency-key` UUID.
|
|
9
|
+
Responsibility never grants access.
|
|
10
|
+
|
|
11
|
+
Use `spec discussion targets` before starting or replying to a Scenario thread.
|
|
12
|
+
Pass explicit Workspace/Spec IDs and `--context-kind Published|WorkingDraft`
|
|
13
|
+
(default Published). Preserve allocated Scenario IDs and the selected target's
|
|
14
|
+
`context.hash` as `--context-hash`; never invent them. Read paginated threads with
|
|
15
|
+
`list` and comments with `comments --thread-id UUID`, following `nextCursor` via
|
|
16
|
+
`--cursor` with the same view/filter. Use `start --scenario-id ID --context-hash HASH
|
|
17
|
+
--content TEXT` or `reply --thread-id UUID --context-hash HASH --content TEXT`.
|
|
18
|
+
On `SPEC_DISCUSSION_CONTEXT_CHANGED`, reread the selected view and deliberately
|
|
19
|
+
reapply intent; never replace the hash silently.
|
|
20
|
+
|
|
21
|
+
Use `edit-comment` or `delete-comment` only for the User's own comment, passing
|
|
22
|
+
`--thread-id`, `--comment-id`, and that comment's observed version. Edits retain
|
|
23
|
+
original context and deletion leaves a tombstone. `resolve` / `reopen` use the
|
|
24
|
+
thread's observed version, independently of comment versions. Every discussion
|
|
25
|
+
write requires the same retained UUID `--idempotency-key` for retries.
|
|
26
|
+
|
|
27
|
+
Read authorized audit pages with `project audit-log
|
|
28
|
+
--project-id ID` or `workspace audit-log --workspace-id ID`, using `--limit 1..100`
|
|
29
|
+
and `--cursor` for further pages. Preserve source and actor attribution in reports.
|
|
30
|
+
|
|
31
|
+
Related guides: Spec authoring history (`authoring-history`) and Findings are in
|
|
32
|
+
authoring.
|
package/guides/errors.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# errors
|
|
2
|
+
|
|
3
|
+
Skill Errors, stale versions, and uncertain outcomes.
|
|
4
|
+
|
|
5
|
+
Use the singular resource commands shown by `specflow --help`. A successful
|
|
6
|
+
resource command emits one JSON object on stdout. Diagnostics and the final
|
|
7
|
+
Skill Error are NDJSON on stderr.
|
|
8
|
+
|
|
9
|
+
Handle the final `error.reason` exactly. Newer CLI responses also carry the public
|
|
10
|
+
`error.code`, HTTP `error.status` when a response exists, and optional `error.issues`
|
|
11
|
+
with `location`, `path`, `rule` and `message`. Use those fields to correct input;
|
|
12
|
+
never assume a missing HTTP status means the server accepted the command. Existing
|
|
13
|
+
`reason`, exit codes and Markdown `diagnostics` remain the compatibility contract.
|
|
14
|
+
If `code=EXECUTION_OUTCOME_UNKNOWN`, first reread the target resource; do not create
|
|
15
|
+
a new command identity and blindly repeat the write. A 413 requires smaller input;
|
|
16
|
+
a 428 requires the current observed version, not waiting and retrying unchanged.
|
|
17
|
+
|
|
18
|
+
- `Authentication Failed`: stop and ask the User to authenticate again.
|
|
19
|
+
- `Project Not Accessible`: stop; do not probe the Project with another identifier.
|
|
20
|
+
- `Permission Denied`: stop; the current User Role does not allow the operation.
|
|
21
|
+
- `Resource Not Found`: reread the selected Project directory or resource identity.
|
|
22
|
+
- `Resource Changed`: reread the resource before deliberately reapplying the User's
|
|
23
|
+
intent with its new opaque version.
|
|
24
|
+
- `Invalid Operation`: correct the domain input; never auto-restore, auto-publish, or
|
|
25
|
+
bypass the stated rule. When `error.diagnostics` is present, each entry names the
|
|
26
|
+
`reason`, `message`, and the `line`/`column` of one problem in the Markdown
|
|
27
|
+
content. For `scenario-id-*` reasons on Spec Publish, run `specflow spec assign-scenario-ids --workspace-id <workspace-id> --spec-id <spec-id>` to repair the
|
|
28
|
+
Working Draft, then retry the Publish. For `scenario-id-*` reasons on Spec
|
|
29
|
+
Rollback, the stored Revision cannot be repaired in place: read its source, save
|
|
30
|
+
it to the Working Draft, run `specflow spec assign-scenario-ids`, and Publish
|
|
31
|
+
instead. Never hand-edit Scenario IDs; assignment is the only repair path.
|
|
32
|
+
- `Temporary Failure`: retry only when `retryable` is true, and honor `retryAfter` when
|
|
33
|
+
present.
|
|
34
|
+
|
|
35
|
+
Disabled Users, revoked or expired Sessions, Role downgrade, Project Archive, and
|
|
36
|
+
stale expected versions are authoritative current-state failures. Do not reuse cached
|
|
37
|
+
authority or silently broaden the credential's explicit grants.
|
|
38
|
+
|
|
39
|
+
`LOCAL_OUTPUT_FAILED` means local formatting or output failed after possible server
|
|
40
|
+
success: read the resource before deliberately retrying. It never permits a blind
|
|
41
|
+
write retry. Diagnostics stay on stderr and stdout remains business JSON.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# glossary
|
|
2
|
+
|
|
3
|
+
Published vocabulary, terminology conflicts, and Glossary drafts.
|
|
4
|
+
|
|
5
|
+
The current Published Workspace Glossary is the only normative vocabulary for
|
|
6
|
+
shared Spec authoring. Read it with `specflow workspace glossary read --workspace-id <workspaceId>`.
|
|
7
|
+
Treat Glossary Working Draft entries like undefined terms: usable, never normative.
|
|
8
|
+
When the Published Glossary defines the concept a requirement refers to, write
|
|
9
|
+
the Canonical Term in Title, Goal, Rule, Scenario, and line text even when the
|
|
10
|
+
requirement uses a different word for the same meaning. Substituting a
|
|
11
|
+
requirement synonym is not a blocking Question.
|
|
12
|
+
|
|
13
|
+
When the requirement uses a term the Published Glossary defines with a meaning
|
|
14
|
+
that differs from its Definition, ask one blocking Question using the conflict form in
|
|
15
|
+
the authoring guide and draft nothing for the affected goal until the answer arrives. When the
|
|
16
|
+
requirement governs, write the Spec per the requirement and report that the
|
|
17
|
+
named Glossary Entry now disagrees with it; do not edit the Glossary or create a
|
|
18
|
+
Terminology Finding.
|
|
19
|
+
|
|
20
|
+
A material term the Published Glossary lacks never blocks drafting and never
|
|
21
|
+
causes a Glossary Working Draft edit or Glossary Proposal on the Agent's own
|
|
22
|
+
initiative. Materiality follows the Terminology Finding definition: the term
|
|
23
|
+
must affect behavioral interpretation, so an unfamiliar ordinary word is not
|
|
24
|
+
sufficient. When an existing Spec read for context disagrees with the Published
|
|
25
|
+
Glossary, report the Spec and the Glossary Entry, and create a Terminology
|
|
26
|
+
Finding only when the User asks. Keep each required conflict report
|
|
27
|
+
self-contained: retain both source meanings or concrete conflicting values, even
|
|
28
|
+
when a Question also quotes them. When reporting an authoring outcome to the
|
|
29
|
+
User, list the Canonical Term substitutions made, the undefined material terms
|
|
30
|
+
suggested as Glossary candidates, and the existing Specs that disagree with the
|
|
31
|
+
Published Glossary.
|
|
32
|
+
|
|
33
|
+
Use `specflow workspace glossary edit` for a direct Working Draft edit, or `specflow proposal create-glossary` when preview-before-apply is useful. See the authoring guide for exact baseline and conflict handling. Request explicit User confirmation immediately before Glossary Publish or Rollback.
|
|
34
|
+
|
|
35
|
+
Do not implement a collaboration protocol or connect to the collaboration gateway;
|
|
36
|
+
edit Glossary drafts only through these logical commands. A Workspace read-only
|
|
37
|
+
Token (`SPEC_FLOW_WORKSPACE_READ_TOKEN`) can read `workspace glossary revision`; see
|
|
38
|
+
the workspace-admin guide for its scope. When reporting an outcome, list the
|
|
39
|
+
Canonical Term substitutions made, undefined material terms suggested as Glossary
|
|
40
|
+
candidates, and existing Specs that disagree with the Published Glossary.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# map-and-screens
|
|
2
|
+
|
|
3
|
+
Product Map, screen placement, and local image files.
|
|
4
|
+
|
|
5
|
+
Read the shared map with `specflow map read --workspace-id <workspaceId>`. Its screen, journey, place, unplace and backstage commands use Workspace identity and the current Screen/Journey/Spec version. Task resource links use `--workspace-id` for the shared Spec target while the task retains `--project-id`.
|
|
6
|
+
|
|
7
|
+
For a local Screen image, reserve it with `map screen image-reserve`, save the
|
|
8
|
+
returned JSON to an owner-only file, and upload bytes with `work-item asset put
|
|
9
|
+
--reservation-file <path> --file <path>`. That byte-only command supports signed
|
|
10
|
+
S3 and Azure BlockBlob reservations and does not attach an image. Attach it with
|
|
11
|
+
`map screen image-finalize`, retaining the observed Screen version and original
|
|
12
|
+
command keys after an uncertain response. Never print a signed upload URL.
|
|
13
|
+
|
|
14
|
+
## Local Screen image files (ZTA-881 CLI)
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
specflow map screen image-upload --workspace-id WORKSPACE --screen-id SCREEN --file ./image.png --content-type image/png --expected-version '"1"' --idempotency-key RESERVE_KEY --finalize-key FINALIZE_KEY
|
|
18
|
+
specflow map screen image-download --workspace-id WORKSPACE --screen-id SCREEN --asset-id ASSET_UUID --output-file ./download.png
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Upload reserves against the observed Screen version, validates the returned fresh
|
|
22
|
+
HTTP(S) reservation, PUTs bytes without Session credentials or redirects, and
|
|
23
|
+
finalizes using a separate retained key and the same version. Local files must be
|
|
24
|
+
nonempty regular files of at most 10 MiB; server MIME/size checks still apply.
|
|
25
|
+
Retain both phase keys and identical inputs after failures. Once finalized, a new
|
|
26
|
+
reservation attempt with the old reserve key returns upload-expired; reread the
|
|
27
|
+
Screen to resolve an ambiguous completion. Existing image-reserve/image-finalize/
|
|
28
|
+
image-remove commands remain available for explicit phase control.
|
|
29
|
+
Download accepts only authorized Workspace/Screen/asset identities, never an
|
|
30
|
+
arbitrary URL, and creates a new owner-only file without overwriting existing files.
|
|
31
|
+
Assistant image handling is outside this CLI slice.
|
package/guides/search.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# search
|
|
2
|
+
|
|
3
|
+
Global object search and Published Spec search.
|
|
4
|
+
|
|
5
|
+
Use `specflow search-global --query 'payment' --limit 20 [--cursor '<nextCursor>']`
|
|
6
|
+
for tasks, Specs, Screens and Journeys across currently accessible resources.
|
|
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.
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# work-items
|
|
2
|
+
|
|
3
|
+
Task links, watchers, automation, views, filters, and comments.
|
|
4
|
+
|
|
5
|
+
- When the User asks to associate a Task with supporting resources, use
|
|
6
|
+
`work-item resource-link list|add|remove` with explicit Project and Task identities.
|
|
7
|
+
For GitHub PR URLs, use `work-item github-link-pr` and verify the result with
|
|
8
|
+
`work-item github-links`. Choose `--role references` for supporting evidence or
|
|
9
|
+
`--role closes` for completion work. Ordinary resource links reject PR URLs.
|
|
10
|
+
A `spec` target uses its stable `--spec-id` and required `--workspace-id`;
|
|
11
|
+
`document` and `other` targets use a User-authored name and HTTP/HTTPS locator.
|
|
12
|
+
Adds and removals take an explicit UUID command key; retain it after an ambiguous
|
|
13
|
+
outcome. Removal also takes the association's opaque expected version. Read
|
|
14
|
+
reverse Task references through `spec work-items`, following its cursor when
|
|
15
|
+
present. Both endpoints require current access in the same Workspace and current User authority. A link records reference metadata and leaves Task completion, Spec
|
|
16
|
+
publication, and external content authorization independent.
|
|
17
|
+
|
|
18
|
+
- Task creation automatically watches as creator and initial assignee. Use
|
|
19
|
+
`work-item create --initial-watcher-ids '["USER_ID"]'` to select initial watchers;
|
|
20
|
+
an explicit array omitting yourself (including `[]`) records your unwatch tombstone.
|
|
21
|
+
Commenting and new mentions enroll participants without clearing tombstones;
|
|
22
|
+
explicit watching or a fresh assignment restores watching. Progress notifications
|
|
23
|
+
exclude the actor and follow current effective watchers and personal preferences.
|
|
24
|
+
- Manage Task watchers with `work-item watchers`, `work-item watcher-candidates`,
|
|
25
|
+
`work-item watch`, and `work-item unwatch`. Read effective watchers with
|
|
26
|
+
`work-item watchers --project-id <id> --work-item-id <taskId>`. In an Active
|
|
27
|
+
Project, watching or unwatching yourself (`--idempotency-key <uuid>`, omitting
|
|
28
|
+
`--user-id` or passing `me`) requires `workItem:read` on an interactive CLI
|
|
29
|
+
Session; listing candidates (`work-item watcher-candidates --project-id <id>`) or
|
|
30
|
+
adding/removing another enabled Workspace member (`--user-id <userId>`) requires
|
|
31
|
+
`workItem:update`. Retain `--idempotency-key` after an uncertain response. Watcher
|
|
32
|
+
changes do not take `--expected-version` or advance Task version.
|
|
33
|
+
|
|
34
|
+
## Shared task views, statistics, colors and personal tasks (ZTA-875/876/878)
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
specflow work-item view list --project-id PROJECT
|
|
38
|
+
specflow work-item view save --project-id PROJECT --input '{"id":"UUID","name":"Mine","layout":"list","groupedByStatus":false,"filters":{"assignees":[],"customFields":{},"dueDates":[],"labels":[],"priorities":[],"search":"","sortBy":"number","sortOrder":"asc","statuses":[]}}'
|
|
39
|
+
specflow work-item view save --project-id PROJECT --input '<complete view JSON without version>' --expected-version '"1"'
|
|
40
|
+
specflow work-item statistics --project-id PROJECT --query '{"view":"list","assignee":"USER_ID","priority":"high,urgent"}'
|
|
41
|
+
specflow workspace my-work-items --workspace-id WORKSPACE --limit 50 [--cursor CURSOR] [--query '{"scope":"created","project":"PAY,CHK","status":["In review",{"virtual":"planned"}],"completed":"pastWeek"}']
|
|
42
|
+
specflow workspace my-work-items-statistics --workspace-id WORKSPACE [--query '<same selection>']
|
|
43
|
+
specflow workspace my-work-items-filter-options --workspace-id WORKSPACE
|
|
44
|
+
specflow workspace my-work-items-view list --workspace-id WORKSPACE
|
|
45
|
+
specflow workspace my-work-items-view save --workspace-id WORKSPACE --view-id UUID --input '{"name":"Mine","layout":"board","position":0,"filters":{"scope":"assigned","projects":[],"assignees":[],"customFields":{},"dueDates":[],"labels":[],"priorities":[],"search":"","sortBy":"dueDate","sortOrder":"asc","statuses":[]},"display":null}' [--expected-version 1]
|
|
46
|
+
specflow workspace my-work-items-view delete --workspace-id WORKSPACE --view-id UUID --expected-version 2
|
|
47
|
+
specflow work-item-custom-field create --project-id PROJECT --name Risk --type dropdown --option High --option Low --option-colors '["danger",null]'
|
|
48
|
+
specflow work-item-custom-field option-colors --project-id PROJECT --field-id FIELD --colors '["warning",null]' --expected-version '"1"' --idempotency-key UUID
|
|
49
|
+
specflow work-item-custom-field option-colors --project-id PROJECT --field-id FIELD --clear --expected-version '"2"' --idempotency-key UUID
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Views retain the existing board/list layout and complete filters, including optional
|
|
53
|
+
`repositoryConnectionId`, plus an optional `display` object (null keeps defaults):
|
|
54
|
+
`grouping` and `subgrouping` (`status`, `assignee`, `priority`, `label`, `dueDate`,
|
|
55
|
+
`spec`, `none`), `completed` (`all`, `pastDay`, `pastWeek`, `pastMonth`, `none`),
|
|
56
|
+
`showSubtasks`, `subtaskNesting` (`expanded`, `collapsed`), `showEmptyGroups`,
|
|
57
|
+
`showCounts`, optional `orderCompletedByRecency` and `properties`. Save the complete
|
|
58
|
+
display read from the view.
|
|
59
|
+
`work-item list` and `work-item board` accept `--completed FILTER`; the default
|
|
60
|
+
`all` keeps completed Work Items, and `hiddenCompleted` reports per final status
|
|
61
|
+
how many the filter hid. List and board items carry `completedAt`. Save omits the expected version only for a new ID.
|
|
62
|
+
Identical immediate retries use the same ID, content and observed version; the
|
|
63
|
+
server owns replay and stale-version behavior. No view Idempotency-Key is invented.
|
|
64
|
+
Statistics returns the server aggregate, including trends at `overview.timeline`;
|
|
65
|
+
there is no client page counting. Query accepts existing server selection keys:
|
|
66
|
+
`view`, `repositoryConnectionId`, `assignee`, `watcher`, `customFields`, `due`, `dueAfter`,
|
|
67
|
+
`dueBefore`, `label`, `priority`, `search`, `sortBy`, `sortOrder`, `startAfter`,
|
|
68
|
+
`startBefore`, `status`. CSV and customFields JSON strings retain server semantics.
|
|
69
|
+
My Work Items reads the current User's work in every readable Active Project as one
|
|
70
|
+
`workItems` page in a global order, with `nextCursor` and `hiddenCompleted`; retain the
|
|
71
|
+
server cursor. `scope` is `assigned` (default), `created`, or `watched`; `completed` defaults to
|
|
72
|
+
`none` (unfinished work). Statuses are merged names (same-named columns across
|
|
73
|
+
Projects are one status) and `customFields` keys are `type:name`. `watcher` accepts
|
|
74
|
+
User ids or `me`; set `operators.watchers` to `include` or `exclude`. Statistics and
|
|
75
|
+
filter options use the same selection. Personal views belong to the caller alone;
|
|
76
|
+
`--view-id` is a new UUID or a built-in id (`assigned`, `created`, `watched`, `due-this-week`)
|
|
77
|
+
whose saved row overrides that built-in view.
|
|
78
|
+
Colors align one-to-one with dropdown options; null entries clear individual colors,
|
|
79
|
+
`--clear` clears all. The server validates color values, lengths and field type.
|
|
80
|
+
Assistant can discover views, statistics/trends, option colors and my unfinished
|
|
81
|
+
Work Items. View and color writes wait for approval and retain version preconditions.
|
|
82
|
+
|
|
83
|
+
Connector also exposes My Work Items queries, personal views and display overrides.
|
|
84
|
+
Supply the explicit Workspace path parameter for personal operations; they act as
|
|
85
|
+
the connected User. Use call_read for reads, call_write for saves and display PUT,
|
|
86
|
+
and delete_resource for view deletion and display clearing. Versioned view mutations
|
|
87
|
+
use at-most-once admission; inspect current state after an uncertain outcome.
|
|
88
|
+
Display replacement and clearing are naturally idempotent.
|
|
89
|
+
|
|
90
|
+
## Work Item automation (ZTA-911, CLI 0.6.0)
|
|
91
|
+
|
|
92
|
+
Existing commands keep full JSON by default. Use `--output summary` for Work Item
|
|
93
|
+
create/read/update/assign/list and relation create/list to omit descriptions while
|
|
94
|
+
retaining IDs, versions, permissions, cursors and replay receipts. Grouped pages
|
|
95
|
+
are summarized too. Summary does not fetch further pages. `relation: null` remains
|
|
96
|
+
null. Unsupported summary commands reject before sending a mutation.
|
|
97
|
+
|
|
98
|
+
Work Item `url` is the server-authorized SpecFlow page URL; `githubIssue.url` remains
|
|
99
|
+
the external GitHub URL. Do not construct links from the API origin. An older server
|
|
100
|
+
that omits `url` still yields a successful business result with one stderr warning.
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
specflow auth whoami
|
|
104
|
+
specflow work-item create --project-id PROJECT --title 'Prepare release' --assignee me --description-file ./release.md --output summary
|
|
105
|
+
cat ./release.md | specflow work-item update --project-id PROJECT --work-item-id GON-78 --expected-version '"3"' --description-file - --output summary
|
|
106
|
+
specflow work-item subtask link --project-id PROJECT --parent GON-78 --child GON-79 --child-project-id OTHER_PROJECT --idempotency-key KEY
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`auth whoami` returns `{ user: { id }, credentialKind }` for the selected Session or
|
|
110
|
+
User API Key (`session` or `api-key`). `--assignee me` on create/assign resolves that
|
|
111
|
+
same credential once, without printing the intermediate identity. Read-only Tokens
|
|
112
|
+
cannot resolve `me`; filters and bulk assignment accept User IDs only. Explicit
|
|
113
|
+
credential failure never falls back to another credential. Older servers without
|
|
114
|
+
the identity route require an upgrade or an explicit User ID.
|
|
115
|
+
|
|
116
|
+
Descriptions accept exactly one of inline `--description`, `--description-file`
|
|
117
|
+
(regular UTF-8 file, or `-` for explicit piped stdin), and update's
|
|
118
|
+
`--clear-description` (null). Omission leaves update unchanged and preserves create's
|
|
119
|
+
default. No shell expansion or Markdown parsing occurs. Empty/whitespace content,
|
|
120
|
+
invalid UTF-8, nonregular files and input above 80,000 bytes are rejected locally;
|
|
121
|
+
text must contain 1–20,000 UTF-16 code units after trimming. Interactive stdin is
|
|
122
|
+
rejected: pipe the text or select a file.
|
|
123
|
+
|
|
124
|
+
Subtask source is always parent and target is child. `subtask link` defaults to
|
|
125
|
+
summary; `--project-id` owns the parent and `--child-project-id` defaults to it.
|
|
126
|
+
The existing `relation create --type subtask` remains available:
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
specflow work-item relation create --project-id PROJECT --work-item-id GON-78 --target-project-id PROJECT --target-work-item-id GON-79 --type subtask --idempotency-key KEY
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Retain the same relation key and body after an uncertain response; full/summary
|
|
133
|
+
never change server intent. Create retains its automatically generated key within
|
|
134
|
+
one invocation. Transport retries reuse that key and body once; version conflicts
|
|
135
|
+
never fetch a newer version and overwrite automatically. Honor `retryAfter` on 429.
|
|
136
|
+
`LOCAL_OUTPUT_FAILED` means local formatting/output failed after possible server
|
|
137
|
+
success: read the resource before deliberately retrying. It never permits a blind
|
|
138
|
+
write retry. Diagnostics stay on stderr and stdout remains business JSON.
|
|
139
|
+
|
|
140
|
+
### Work Item selection and view settings
|
|
141
|
+
|
|
142
|
+
`work-item list`, `board` and `export` share these additional flags:
|
|
143
|
+
`--creator USER_ID` (repeatable), `--operators JSON`, `--created FILTER`,
|
|
144
|
+
`--updated FILTER`, `--relations CSV`, `--specs CSV`, and `--pull-requests CSV`.
|
|
145
|
+
Both `--assignee me` and `--creator me` resolve the current credential's User.
|
|
146
|
+
Saved views retain `me` as a symbolic current-viewer token.
|
|
147
|
+
|
|
148
|
+
Operators are a JSON object mapping `created`, `updated`, `statuses`, `assignees`, `creators`,
|
|
149
|
+
`priorities`, `labels`, `projects` (My Work Items), `dueDates`, `relations`, `specs`,
|
|
150
|
+
`pullRequests`, or `customField:<fieldId>` to `include` or `exclude`. Omitted means
|
|
151
|
+
include. Values match any within a category; categories AND together; exclude
|
|
152
|
+
means none of the selected values. There are no condition groups.
|
|
153
|
+
|
|
154
|
+
Created/updated filters are `today`, `pastWeek`, `past2Weeks`, `pastMonth`,
|
|
155
|
+
`past3Months`, or `YYYY-MM-DD` (on/after inclusive UTC midnight). Relations are
|
|
156
|
+
`blocked`, `blocking`, `hasParent`, `hasChildren`, `related`. Specs use linked Spec
|
|
157
|
+
IDs or `none`. PR states are `none`, `draft`, `open`, `merged`, `closed`, evaluated
|
|
158
|
+
from synchronized active associations without a GitHub request. Added sort keys
|
|
159
|
+
are `status`, `startDate`, `updatedAt`, `assignee`; existing sorts remain supported.
|
|
160
|
+
Statistics and My Work Items `--query` accept the same camelCase wire parameters
|
|
161
|
+
(`operators` is a JSON-encoded string, array categories are CSV strings).
|
|
162
|
+
|
|
163
|
+
Saved filters use `operators`, `created`, `updated`, `relations`, `specs`, and
|
|
164
|
+
`pullRequests` directly, with array categories as JSON arrays. Display grouping
|
|
165
|
+
adds `creator`, `startDate`, `parent` and `customField:<fieldId>`; only dropdown and
|
|
166
|
+
multi-select fields have option groups. A `multi-select` field value is a JSON
|
|
167
|
+
string array of declared options. Personal views use merged `type:name` keys.
|
|
168
|
+
|
|
169
|
+
A Project view's optional `visibility` is `project` (default) or `private`.
|
|
170
|
+
Readers can create private views, only the creator can read/change/delete them,
|
|
171
|
+
and shared writes require task update permission. Copy by saving a fresh UUID
|
|
172
|
+
without an expected version. Delete a non-built-in view with
|
|
173
|
+
`work-item view delete --project-id ID --view-id UUID --expected-version VERSION`.
|
|
174
|
+
|
|
175
|
+
`work-item view display read|save|clear --project-id ID --view-id UUID` manages
|
|
176
|
+
only the caller's display override. Save takes `--input '<display JSON>'`.
|
|
177
|
+
`workspace my-work-items-view display read|save|clear --workspace-id ID --view-id ID`
|
|
178
|
+
does the same for personal views, including built-ins. Clear restores the view
|
|
179
|
+
settings; saving the view itself changes its default. Filters are never stored in
|
|
180
|
+
the display override. Reauthorize every operation; a view grants no task access.
|
|
181
|
+
|
|
182
|
+
### Work Item comment thread read projections
|
|
183
|
+
|
|
184
|
+
`work-item thread list|show` returns the API JSON unchanged, including `generation`,
|
|
185
|
+
`anchorState`, `anchorStart` and `anchorEnd`. Attached description threads carry
|
|
186
|
+
opaque endpoint tokens that only the Web editor resolves; never decode or rewrite
|
|
187
|
+
them. Describe a thread's passage with `quote` and `anchorState`, and treat a
|
|
188
|
+
`generation` other than the current description generation as historical.
|
|
189
|
+
Detached/general threads return null endpoints. Discussion state
|
|
190
|
+
activities expose an optional explicit `threadId`; historical events without it
|
|
191
|
+
have no thread target. Imported GitHub flat comments also expose their thread ID.
|
|
192
|
+
|
|
193
|
+
Related guides: public Task sharing is in workspace-admin; uploading Task asset
|
|
194
|
+
bytes with `work-item asset put` is in map-and-screens; Spec links target shared
|
|
195
|
+
Specs described in authoring.
|