@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.
Files changed (94) hide show
  1. package/README.md +58 -7
  2. package/dist/authentication-command-topology.js.map +1 -1
  3. package/dist/bin.js.map +1 -1
  4. package/dist/cli.d.ts +1 -1
  5. package/dist/cli.js +864 -287
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client-identity.d.ts +1 -1
  8. package/dist/client-identity.js +3 -1
  9. package/dist/client-identity.js.map +1 -1
  10. package/dist/commands/client-compatibility.d.ts +3 -0
  11. package/dist/commands/client-compatibility.js +191 -0
  12. package/dist/commands/client-compatibility.js.map +1 -0
  13. package/dist/commands/guide.d.ts +2 -0
  14. package/dist/commands/guide.js +35 -0
  15. package/dist/commands/guide.js.map +1 -0
  16. package/dist/commands/work-item-output.d.ts +15 -5
  17. package/dist/commands/work-item-output.js +47 -9
  18. package/dist/commands/work-item-output.js.map +1 -1
  19. package/dist/credential-store.js +6 -7
  20. package/dist/credential-store.js.map +1 -1
  21. package/dist/custom-field-color-commands.js +13 -3
  22. package/dist/custom-field-color-commands.js.map +1 -1
  23. package/dist/default-api-origin.js.map +1 -1
  24. package/dist/github-account-commands.js +116 -20
  25. package/dist/github-account-commands.js.map +1 -1
  26. package/dist/github-connection-commands.js +284 -36
  27. package/dist/github-connection-commands.js.map +1 -1
  28. package/dist/github-import-commands.js +41 -11
  29. package/dist/github-import-commands.js.map +1 -1
  30. package/dist/http-origin.js +1 -1
  31. package/dist/http-origin.js.map +1 -1
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +125 -35
  34. package/dist/index.js.map +1 -1
  35. package/dist/input/text-source.js +8 -2
  36. package/dist/input/text-source.js.map +1 -1
  37. package/dist/node-version.js.map +1 -1
  38. package/dist/product-map-commands.js +220 -37
  39. package/dist/product-map-commands.js.map +1 -1
  40. package/dist/program.js +9 -3
  41. package/dist/program.js.map +1 -1
  42. package/dist/project-administration-commands.js +36 -8
  43. package/dist/project-administration-commands.js.map +1 -1
  44. package/dist/runtime/client-compatibility.d.ts +13 -0
  45. package/dist/runtime/client-compatibility.js +79 -0
  46. package/dist/runtime/client-compatibility.js.map +1 -0
  47. package/dist/runtime/errors.js +21 -3
  48. package/dist/runtime/errors.js.map +1 -1
  49. package/dist/runtime/execute.js +16 -2
  50. package/dist/runtime/execute.js.map +1 -1
  51. package/dist/runtime/identity.d.ts +8 -80
  52. package/dist/runtime/identity.js +21 -4
  53. package/dist/runtime/identity.js.map +1 -1
  54. package/dist/runtime/npm-upgrade.d.ts +32 -0
  55. package/dist/runtime/npm-upgrade.js +132 -0
  56. package/dist/runtime/npm-upgrade.js.map +1 -0
  57. package/dist/runtime/output.js +6 -1
  58. package/dist/runtime/output.js.map +1 -1
  59. package/dist/runtime/session.js +44 -11
  60. package/dist/runtime/session.js.map +1 -1
  61. package/dist/screen-image-commands.js +66 -14
  62. package/dist/screen-image-commands.js.map +1 -1
  63. package/dist/spec-discussion-commands.js +87 -24
  64. package/dist/spec-discussion-commands.js.map +1 -1
  65. package/dist/spec-owner-commands.js +22 -7
  66. package/dist/spec-owner-commands.js.map +1 -1
  67. package/dist/user-api-key-commands.js +92 -20
  68. package/dist/user-api-key-commands.js.map +1 -1
  69. package/dist/work-item-asset-commands.js +23 -6
  70. package/dist/work-item-asset-commands.js.map +1 -1
  71. package/dist/work-item-delivery-commands.js +97 -31
  72. package/dist/work-item-delivery-commands.js.map +1 -1
  73. package/dist/work-item-exchange-file.js +22 -8
  74. package/dist/work-item-exchange-file.js.map +1 -1
  75. package/dist/work-item-query-commands.js +403 -35
  76. package/dist/work-item-query-commands.js.map +1 -1
  77. package/dist/work-item-resource-link-commands.js +105 -28
  78. package/dist/work-item-resource-link-commands.js.map +1 -1
  79. package/dist/work-item-thread-commands.d.ts +3 -0
  80. package/dist/work-item-thread-commands.js +101 -0
  81. package/dist/work-item-thread-commands.js.map +1 -0
  82. package/dist/work-item-watcher-commands.d.ts +20 -0
  83. package/dist/work-item-watcher-commands.js +93 -0
  84. package/dist/work-item-watcher-commands.js.map +1 -0
  85. package/guides/authoring.md +178 -0
  86. package/guides/delivery.md +60 -0
  87. package/guides/discussions-audit.md +32 -0
  88. package/guides/errors.md +41 -0
  89. package/guides/glossary.md +40 -0
  90. package/guides/map-and-screens.md +31 -0
  91. package/guides/search.md +9 -0
  92. package/guides/work-items.md +195 -0
  93. package/guides/workspace-admin.md +130 -0
  94. package/package.json +8 -3
package/README.md CHANGED
@@ -22,8 +22,11 @@ accepts signed S3 and Azure BlockBlob reservations, including reservations from
22
22
  its URL out of logs. Uploading bytes alone does not attach an asset; complete the
23
23
  matching task or Screen finalization command separately.
24
24
 
25
- The current CLI contract is **0.6.2**, coordinated with the official Skill's exact
26
- pin. It breaks 0.2.0 callers: Spec, Capability, Glossary, Proposal and
25
+ CLI Contract 1.0.0 starts the stable release series. Breaking changes require a
26
+ new major version. The official Skill declares a compatible CLI range and an
27
+ exact npm bootstrap version.
28
+
29
+ The Workspace knowledge contract introduced in CLI 0.6.2 breaks 0.2.0 callers: Spec, Capability, Glossary, Proposal and
27
30
  authoring-history commands address shared knowledge with `--workspace-id` instead of
28
31
  `--project-id`, `project directory` is replaced by `spec list`, Session grants
29
32
  separate `WorkspaceKnowledge` and `ProjectTasks` targets, and Workspace read-only
@@ -36,7 +39,7 @@ seven-day Better Auth CLI Session. It supports the Node.js 24 runtime line;
36
39
  Node.js 22 and unverified future major versions are intentionally unsupported.
37
40
 
38
41
  ```bash
39
- npm install --global @gonovus-ai/spec-flow-cli@0.6.2
42
+ npm install --global @gonovus-ai/spec-flow-cli@1.0.0
40
43
  specflow auth login
41
44
  specflow auth status
42
45
  specflow auth logout
@@ -58,6 +61,34 @@ default, provide `SPEC_FLOW_DEFAULT_API_URL` to the CLI build command. The packe
58
61
  installation smoke uses an isolated `.invalid` test origin when no build value is
59
62
  provided; it never substitutes a deployment URL into source.
60
63
 
64
+ ## Compatibility and upgrades
65
+
66
+ ```bash
67
+ specflow version --json --skill-version 0.6.0 --compatible-cli "^1.0.0"
68
+ specflow upgrade
69
+ specflow upgrade --yes
70
+ specflow upgrade --to 1.0.0
71
+ ```
72
+
73
+ `version` shows the installed CLI and public advice from the selected origin.
74
+ With `--skill-version`, it also reports the Skill's status and update commands.
75
+ With `--compatible-cli`, it classifies the installed CLI against that range as
76
+ `in-range`, `older` or `newer` and returns the recommended version as `target`
77
+ only when it satisfies the range.
78
+ Older or unreachable servers yield an `unknown` compatibility status.
79
+ `specflow --version` prints only the installed CLI version without a network request.
80
+
81
+ `upgrade` previews the exact npm command. `--yes` applies it only to an
82
+ installation owned by the active npm global prefix and verifies the resulting
83
+ package version. Other installation methods and permission errors return a
84
+ Skill Error with the manual command. Give `--to` to choose an exact version,
85
+ including when intentionally downgrading or working without server advice.
86
+ Use `--json` for structured results and check stderr for Skill Errors.
87
+
88
+ Ordinary HTTP commands may print one upgrade recommendation per origin every
89
+ 24 hours as an NDJSON warning diagnostic. Set `SPECFLOW_NO_UPDATE_CHECK=1` or a non-empty `CI` to disable these
90
+ stderr messages.
91
+
61
92
  After login, resource commands reuse the stored CLI Session and emit structured JSON
62
93
  on stdout. Existing-Project commands always require an explicit `--project-id`:
63
94
 
@@ -88,7 +119,7 @@ SPEC_FLOW_API_URL=https://specflow.example specflow proposal discard --workspace
88
119
  SPEC_FLOW_API_URL=https://specflow.example specflow authoring-history --workspace-id <workspace-id>
89
120
  ```
90
121
 
91
- Every official CLI service request sends the versioned `@gonovus-ai/spec-flow-cli/<version>`
122
+ Every official CLI service request sends the versioned `@ztalkai/spec-flow-cli/<version>`
92
123
  User-Agent. Diagnostics use stderr, and stable Skill Errors use documented reason and
93
124
  exit-status categories.
94
125
 
@@ -560,9 +591,19 @@ Source Reference URLs accept only HTTP or HTTPS and must not contain URL userinf
560
591
  (`username` or `password`). Keep external credentials in the Agent's own authorized
561
592
  source-reading tool; never embed them in SpecFlow metadata.
562
593
 
563
- The repository-owned official Skill is `skills/specflow/SKILL.md`. It pins this exact
564
- CLI release, requires explicit User confirmation immediately before Spec or Glossary
565
- Publish and Rollback, and does not send proof of that confirmation to the CLI or API.
594
+ The repository-owned official Skill at `skills/specflow/SKILL.md` declares a
595
+ bootstrap CLI and a compatible version range. It requires explicit User
596
+ confirmation immediately before Spec or Glossary Publish and Rollback. The
597
+ CLI and API accept no proof of that confirmation.
598
+
599
+ ### Command reference
600
+
601
+ Run `specflow guide` to list the topics shipped with the installed CLI, or
602
+ `specflow guide authoring` to print a topic in Markdown. Use `--json` to read
603
+ the list as `{ topics: [{ topic, summary }] }` or a topic as
604
+ `{ topic, summary, markdown }`. The command reads local package files and
605
+ requires no credentials or server connection. Unknown topics return
606
+ `Invalid Operation` with exit status 2.
566
607
 
567
608
  The CLI stores its Session credential in macOS Keychain, Windows Credential
568
609
  Manager, or Linux Secret Service. It does not print or persist the credential in
@@ -1022,3 +1063,13 @@ identity or falls back to the first unstarted column. If no such column exists,
1022
1063
  read the workflow and fix it before retrying. Numeric status keys belong to the
1023
1064
  frontend and bind stable default slugs, not column order. Personal status queries
1024
1065
  use the column name `Backlog`; only archive retains the virtual filter syntax.
1066
+
1067
+ ### Agent display identity
1068
+
1069
+ `specflow --server https://your-specflow.example auth login --agent cursor`
1070
+ records the host on the new CLI Session. Supported display identifiers are
1071
+ `claude-code`, `codex`, `cursor`, `gemini-cli`, and `other`. The explicit option
1072
+ overrides environment detection. It is optional client-reported provenance, not
1073
+ an authenticated Agent identity or permission grant; every operation still acts
1074
+ with the approving User's current authority. Account Connect an Agent displays
1075
+ this metadata and can revoke that Session independently.
@@ -1 +1 @@
1
- {"version":3,"file":"authentication-command-topology.js","sourceRoot":"","sources":["../src/authentication-command-topology.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,gCAAgC,CAC9C,OAAgB;IAEhB,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAC5E,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC;QACvE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,gCAAgC,CAAC;QAC5E,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,iCAAiC,CAAC;KAC9E,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"authentication-command-topology.js","sourceRoot":"","sources":["../src/authentication-command-topology.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,gCAAgC,CAAC,OAAgB;IAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAC5E,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC;QACvE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,gCAAgC,CAAC;QAC5E,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,iCAAiC,CAAC;KAC9E,CAAC;AACJ,CAAC"}
package/dist/bin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;IAC9B,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,oGAAoG,EAAE,MAAM,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AACxP,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,QAAQ,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;IAC9B,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,oGAAoG,EAAE,MAAM,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAChO,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,QAAQ,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
package/dist/cli.d.ts CHANGED
@@ -16,4 +16,4 @@ export interface CliDependencies {
16
16
  readonly stdout: (value: string) => void;
17
17
  }
18
18
  export declare function formatResourceDiagnostic(message: string): string;
19
- export declare function runCli(arguments_: readonly string[], dependencies: CliDependencies): Promise<number>;
19
+ export declare function runCli(arguments_: readonly string[], originalDependencies: CliDependencies): Promise<number>;