@gonovus-ai/spec-flow-cli 0.2.0 → 0.3.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 +16 -18
- package/dist/bin.js +0 -0
- package/dist/cli.js +309 -293
- package/dist/cli.js.map +1 -1
- package/dist/github-connection-commands.js +18 -14
- package/dist/github-connection-commands.js.map +1 -1
- package/dist/github-import-commands.js +13 -8
- package/dist/github-import-commands.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/product-map-commands.d.ts +17 -0
- package/dist/product-map-commands.js +48 -0
- package/dist/product-map-commands.js.map +1 -0
- package/dist/user-api-key-commands.d.ts +1 -2
- package/dist/user-api-key-commands.js +10 -9
- package/dist/user-api-key-commands.js.map +1 -1
- package/dist/work-item-asset-commands.js +7 -1
- package/dist/work-item-asset-commands.js.map +1 -1
- package/dist/work-item-resource-link-commands.js +19 -8
- package/dist/work-item-resource-link-commands.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
# SpecFlow CLI
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
pin.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
nullable response handling together. This source change does not publish either
|
|
12
|
-
artifact or change already released Skill tags.
|
|
3
|
+
The current CLI contract is **0.3.0**, coordinated with the official Skill's exact
|
|
4
|
+
pin. It breaks 0.2.0 callers: Spec, Capability, Glossary, Proposal and
|
|
5
|
+
authoring-history commands address shared knowledge with `--workspace-id` instead of
|
|
6
|
+
`--project-id`, `project directory` is replaced by `spec list`, Session grants
|
|
7
|
+
separate `WorkspaceKnowledge` and `ProjectTasks` targets, and Workspace read-only
|
|
8
|
+
Tokens replace Project Tokens. Failures also carry the public `error.code`, the HTTP
|
|
9
|
+
`error.status` and optional field-level `error.issues`, and Workspace-scoped Product
|
|
10
|
+
Map commands are new. Upgrade the Skill and the CLI together.
|
|
13
11
|
|
|
14
12
|
`@gonovus-ai/spec-flow-cli` uses OAuth Device Authorization to create an independent
|
|
15
13
|
seven-day Better Auth CLI Session. It supports the Node.js 24 runtime line;
|
|
16
14
|
Node.js 22 and unverified future major versions are intentionally unsupported.
|
|
17
15
|
|
|
18
16
|
```bash
|
|
19
|
-
npm install --global @gonovus-ai/spec-flow-cli@0.
|
|
17
|
+
npm install --global @gonovus-ai/spec-flow-cli@0.3.0
|
|
20
18
|
specflow auth login
|
|
21
19
|
specflow auth status
|
|
22
20
|
specflow auth logout
|
|
@@ -53,7 +51,7 @@ SPEC_FLOW_API_URL=https://specflow.example specflow project create --name "Payme
|
|
|
53
51
|
SPEC_FLOW_API_URL=https://specflow.example specflow project archive --project-id <project-id> --expected-version '"1"'
|
|
54
52
|
SPEC_FLOW_API_URL=https://specflow.example specflow project restore --project-id <project-id> --expected-version '"2"'
|
|
55
53
|
SPEC_FLOW_API_URL=https://specflow.example specflow project trash --project-id <project-id> --expected-version '"2"'
|
|
56
|
-
SPEC_FLOW_API_URL=https://specflow.example specflow
|
|
54
|
+
SPEC_FLOW_API_URL=https://specflow.example specflow spec list --workspace-id <workspace-id>
|
|
57
55
|
SPEC_FLOW_API_URL=https://specflow.example specflow spec read --project-id <project-id> --spec-id <spec-id>
|
|
58
56
|
SPEC_FLOW_API_URL=https://specflow.example specflow spec current --project-id <project-id> --spec-id <spec-id>
|
|
59
57
|
SPEC_FLOW_API_URL=https://specflow.example specflow spec revision --project-id <project-id> --spec-id <spec-id> --revision-id <revision-id>
|
|
@@ -62,11 +60,11 @@ SPEC_FLOW_API_URL=https://specflow.example specflow spec edit --project-id <proj
|
|
|
62
60
|
SPEC_FLOW_API_URL=https://specflow.example specflow spec assign-scenario-ids --project-id <project-id> --spec-id <spec-id>
|
|
63
61
|
SPEC_FLOW_API_URL=https://specflow.example specflow spec publish --project-id <project-id> --spec-id <spec-id>
|
|
64
62
|
SPEC_FLOW_API_URL=https://specflow.example specflow glossary edit --project-id <project-id> --entries '[{"id":"payment","canonicalTerm":"Payment","definition":"A completed transfer.","usageNote":null}]'
|
|
65
|
-
SPEC_FLOW_API_URL=https://specflow.example specflow proposal create-spec --
|
|
66
|
-
SPEC_FLOW_API_URL=https://specflow.example specflow proposal list --
|
|
67
|
-
SPEC_FLOW_API_URL=https://specflow.example specflow proposal apply --
|
|
68
|
-
SPEC_FLOW_API_URL=https://specflow.example specflow proposal discard --
|
|
69
|
-
SPEC_FLOW_API_URL=https://specflow.example specflow authoring-history --
|
|
63
|
+
SPEC_FLOW_API_URL=https://specflow.example specflow proposal create-spec --workspace-id <workspace-id> --spec-id <spec-id> --baseline-content "$(cat payments.md)" --proposed-content "$(cat payments.md)" --agent-revision <revision> --agent-model <model> --source-reference-ids '["source-id"]'
|
|
64
|
+
SPEC_FLOW_API_URL=https://specflow.example specflow proposal list --workspace-id <workspace-id> --target-kind Spec --spec-id <spec-id> --status Open
|
|
65
|
+
SPEC_FLOW_API_URL=https://specflow.example specflow proposal apply --workspace-id <workspace-id> --proposal-id <proposal-id> --change-ids '["hunk-1"]'
|
|
66
|
+
SPEC_FLOW_API_URL=https://specflow.example specflow proposal discard --workspace-id <workspace-id> --proposal-id <proposal-id>
|
|
67
|
+
SPEC_FLOW_API_URL=https://specflow.example specflow authoring-history --workspace-id <workspace-id>
|
|
70
68
|
```
|
|
71
69
|
|
|
72
70
|
Every official CLI service request sends the versioned `@gonovus-ai/spec-flow-cli/<version>`
|
|
@@ -117,7 +115,7 @@ command/result pairs are the supported schemas:
|
|
|
117
115
|
| `project restore` | `{ project: ProjectSummary }` |
|
|
118
116
|
| `project trash` | `{ project: ProjectSummary }` |
|
|
119
117
|
| `project context` | `{ project: ProjectContext, publishedGlossary: PublishedGlossary \| null }` |
|
|
120
|
-
| `
|
|
118
|
+
| `spec list` | `{ capabilities: Capability[], permissions: Permissions, specs: SpecSummary[] }` |
|
|
121
119
|
| `spec search` | `{ nextCursor: string \| null, results: SearchResult[], totalCount: number }` |
|
|
122
120
|
| `work-item resource-link list` | `{ links: WorkItemResourceLink[], canCreateLink: boolean, canReadSpecs: boolean }` |
|
|
123
121
|
| `work-item resource-link add` | `{ linkId: string, link: WorkItemResourceLink \| null, replayed: boolean }` |
|
package/dist/bin.js
CHANGED
|
File without changes
|