featureparity 0.0.31 → 0.0.32
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.
- checksums.yaml +4 -4
- data/lib/fp/cli.rb +4 -1
- data/lib/fp/commands/analyze.rb +2 -2
- data/lib/fp/commands/attach.rb +2 -2
- data/lib/fp/commands/attachments.rb +1 -1
- data/lib/fp/commands/ci_report.rb +1 -1
- data/lib/fp/commands/comment.rb +1 -1
- data/lib/fp/commands/comments.rb +1 -1
- data/lib/fp/commands/export.rb +2 -2
- data/lib/fp/commands/help.rb +61 -48
- data/lib/fp/commands/history.rb +2 -2
- data/lib/fp/commands/init.rb +26 -8
- data/lib/fp/commands/list.rb +3 -3
- data/lib/fp/commands/mark.rb +3 -0
- data/lib/fp/commands/matrix.rb +2 -2
- data/lib/fp/commands/profile.rb +2 -1
- data/lib/fp/commands/propose.rb +1 -1
- data/lib/fp/commands/propose_change.rb +1 -1
- data/lib/fp/commands/report.rb +2 -2
- data/lib/fp/commands/repos.rb +6 -6
- data/lib/fp/commands/setup.rb +2 -1
- data/lib/fp/commands/show.rb +7 -2
- data/lib/fp/commands/showroom.rb +6 -6
- data/lib/fp/commands/surfaces.rb +5 -5
- data/lib/fp/config.rb +16 -6
- data/lib/fp/version.rb +1 -1
- data/skills/fp/SKILL.md +25 -25
- data/skills/fp/references/cli.md +79 -73
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc148bcfad876dfa40128241e661004d4469788e2c943263446513fa2023c61a
|
|
4
|
+
data.tar.gz: 1dc7dd025ad5e7d228cdefa76d2c40ccdbbd7a74ab1ff8a64e642f05625cdaf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e66acc239526910b5a67ea8436f056b4437ce2292cc825e367671e15b936e11cbb43a83bf2417e894901bd2203ecf0caefb9763adc4f25e1e1fb58c55587c5d
|
|
7
|
+
data.tar.gz: a63607ba0033c147e8ed262eee5d484b0026c56e46c17d097d6a349b06cec43aae472347d0e744fa04486110ffb7e842907f78d8c211fe4a66fb64f9e72da915
|
data/lib/fp/cli.rb
CHANGED
|
@@ -60,6 +60,9 @@ module Fp
|
|
|
60
60
|
# reported "Unknown command: --version".
|
|
61
61
|
command_name = 'version' if %w[--version -v].include?(command_name)
|
|
62
62
|
|
|
63
|
+
# `fp --help` / `fp -h` are aliases for `fp help`, for the same reason.
|
|
64
|
+
command_name = 'help' if %w[--help -h].include?(command_name)
|
|
65
|
+
|
|
63
66
|
command_class = COMMANDS[command_name]
|
|
64
67
|
|
|
65
68
|
unless command_class
|
|
@@ -80,7 +83,7 @@ module Fp
|
|
|
80
83
|
|
|
81
84
|
# Profile/config commands don't need auth. `init` is here too: it only writes
|
|
82
85
|
# files into the repo, and onboarding a repo must work before anyone has a key.
|
|
83
|
-
needs_auth = !%w[init doctor profile config repos setup whoami version help mark].include?(command_name)
|
|
86
|
+
needs_auth = !%w[init doctor profile config repos setup whoami version help mark tutorial].include?(command_name)
|
|
84
87
|
|
|
85
88
|
if needs_auth
|
|
86
89
|
config = Config.new(profile: global_opts[:profile], api_url: global_opts[:api_url])
|
data/lib/fp/commands/analyze.rb
CHANGED
|
@@ -22,8 +22,8 @@ module Fp
|
|
|
22
22
|
help_flag :conflicts, 'Include cross-requirement conflict findings'
|
|
23
23
|
help_flag :force, 'Re-analyze even cached (unchanged) requirements'
|
|
24
24
|
help_flag :cached, 'Read cached analyses only; do not spend model calls'
|
|
25
|
-
help_example 'fp analyze --project
|
|
26
|
-
help_example 'fp analyze print_container_qr --project
|
|
25
|
+
help_example 'fp analyze --project acme'
|
|
26
|
+
help_example 'fp analyze print_container_qr --project acme --conflicts'
|
|
27
27
|
|
|
28
28
|
KNOWN_FLAGS = {
|
|
29
29
|
project: :string,
|
data/lib/fp/commands/attach.rb
CHANGED
|
@@ -18,8 +18,8 @@ module Fp
|
|
|
18
18
|
help_flag :sha, 'Commit SHA the capture observed'
|
|
19
19
|
help_flag :example_title, 'Name of the individual test this media proves'
|
|
20
20
|
help_flag :evidence_key, 'Composite receipt key (surface:repo:test_type) to bind to'
|
|
21
|
-
help_example 'fp attach print_qr e2e-run.webm --project
|
|
22
|
-
help_example 'fp attach rm print_qr <attachment-id> --project
|
|
21
|
+
help_example 'fp attach print_qr e2e-run.webm --project acme --surface customer_web --example-title "prints a QR code onto the container label"'
|
|
22
|
+
help_example 'fp attach rm print_qr <attachment-id> --project acme'
|
|
23
23
|
help_note 'Visual: png, jpg, gif, webp, mp4, webm, mov. Text/docs: txt, md, json, svg, pdf. Max 100 MB.'
|
|
24
24
|
|
|
25
25
|
CONTENT_TYPES = {
|
|
@@ -10,7 +10,7 @@ module Fp
|
|
|
10
10
|
help_usage 'fp attachments <slug> --project <slug>',
|
|
11
11
|
'fp attachments <slug> <attachment-id> --project <slug>'
|
|
12
12
|
help_flag :project, 'Project slug (falls back to .featureparity.yml)'
|
|
13
|
-
help_example 'fp attachments print_container_qr --project
|
|
13
|
+
help_example 'fp attachments print_container_qr --project acme'
|
|
14
14
|
|
|
15
15
|
KNOWN_FLAGS = { project: :string }.freeze
|
|
16
16
|
|
|
@@ -69,7 +69,7 @@ module Fp
|
|
|
69
69
|
help_flag :sha, 'Checkout commit SHA'
|
|
70
70
|
help_flag :allow_empty, 'Do not error when a report resolves no fp:<slug> markers'
|
|
71
71
|
help_flag :local, 'No CI available: report a suite a person ran locally at a clean, committed HEAD (--ci-url optional)'
|
|
72
|
-
help_example 'fp ci-report --junit junit.xml --project
|
|
72
|
+
help_example 'fp ci-report --junit junit.xml --project acme --surface api --ci-url "$CI_RUN_URL"'
|
|
73
73
|
help_example 'fp ci-report --junit web.xml --surface web --base-dir frontend --pr "$PR_URL"'
|
|
74
74
|
help_example 'fp ci-report --local --junit junit.xml --surface api'
|
|
75
75
|
help_note "This is CI's command, not an agent's: only it writes passing/failing. Run it on both\n" \
|
data/lib/fp/commands/comment.rb
CHANGED
|
@@ -27,7 +27,7 @@ module Fp
|
|
|
27
27
|
help_flag :source_type, "Origin type: #{VALID_SOURCE_TYPES.join(', ')}"
|
|
28
28
|
help_flag :source_url, 'Origin URL'
|
|
29
29
|
help_flag :source_context, 'Free-form origin note'
|
|
30
|
-
help_example 'fp comment print_qr --body "This conflicts with the freezer label requirement" --project
|
|
30
|
+
help_example 'fp comment print_qr --body "This conflicts with the freezer label requirement" --project acme'
|
|
31
31
|
|
|
32
32
|
def run(args)
|
|
33
33
|
opts, positional = parse_flags(args, KNOWN_FLAGS)
|
data/lib/fp/commands/comments.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Fp
|
|
|
19
19
|
help_flag :project, 'Project slug (falls back to .featureparity.yml)'
|
|
20
20
|
help_flag :body, 'Post this comment (omit to list the comments)'
|
|
21
21
|
help_flag :tag, 'Comma-separated people (email or name) or agents (name or key name) to tag'
|
|
22
|
-
help_example 'fp comments print_qr --project
|
|
22
|
+
help_example 'fp comments print_qr --project acme'
|
|
23
23
|
help_example 'fp comments print_qr --body "The redesign dropped this screen — retire it?" --tag andy@example.com'
|
|
24
24
|
|
|
25
25
|
def run(args)
|
data/lib/fp/commands/export.rb
CHANGED
|
@@ -18,8 +18,8 @@ module Fp
|
|
|
18
18
|
help_flag :category, 'Only requirements in this category'
|
|
19
19
|
help_flag :surface, 'Only requirements that name this surface'
|
|
20
20
|
help_flag :output, 'Write to this file instead of stdout'
|
|
21
|
-
help_example 'fp export --project
|
|
22
|
-
help_example 'fp export --project
|
|
21
|
+
help_example 'fp export --project acme > requirements.md'
|
|
22
|
+
help_example 'fp export --project acme --status active --surface customer_android --output reqs.md'
|
|
23
23
|
|
|
24
24
|
KNOWN_FLAGS = {
|
|
25
25
|
project: :string,
|
data/lib/fp/commands/help.rb
CHANGED
|
@@ -9,6 +9,8 @@ module Fp
|
|
|
9
9
|
class Help < Base
|
|
10
10
|
def run(args)
|
|
11
11
|
topic = args.first
|
|
12
|
+
return print_index if output&.json? && (topic.nil? || topic.start_with?('-'))
|
|
13
|
+
|
|
12
14
|
if topic && Fp::CLI::COMMANDS.key?(topic)
|
|
13
15
|
puts Fp::CLI::COMMANDS[topic].help_text(topic)
|
|
14
16
|
return
|
|
@@ -26,6 +28,17 @@ module Fp
|
|
|
26
28
|
|
|
27
29
|
private
|
|
28
30
|
|
|
31
|
+
# `fp help --json`: every command with its summary and usage, from the same
|
|
32
|
+
# metadata `fp <cmd> --help --json` reads. A command with no declared summary
|
|
33
|
+
# still appears by name (summary nil, usage the generic line).
|
|
34
|
+
def print_index
|
|
35
|
+
commands = Fp::CLI::COMMANDS.map do |name, klass|
|
|
36
|
+
schema = klass.help_schema(name)
|
|
37
|
+
{ 'name' => name, 'summary' => schema['summary'], 'usage' => schema['usage'] }
|
|
38
|
+
end
|
|
39
|
+
output.success({ 'version' => Fp::VERSION, 'commands' => commands })
|
|
40
|
+
end
|
|
41
|
+
|
|
29
42
|
def print_overview
|
|
30
43
|
puts <<~HELP
|
|
31
44
|
fp - FeatureParity CLI for agents
|
|
@@ -222,13 +235,13 @@ module Fp
|
|
|
222
235
|
# Onboard a repo onto FeatureParity: writes .featureparity.yml, a CI gate
|
|
223
236
|
# workflow, and a FeatureParity section in AGENTS.md telling agents to mark
|
|
224
237
|
# and report their tests. Needs no API key.
|
|
225
|
-
fp init --project
|
|
226
|
-
fp init --project
|
|
227
|
-
fp init --project
|
|
238
|
+
fp init --project acme --surface api
|
|
239
|
+
fp init --project acme --no-workflow # skip the CI workflow
|
|
240
|
+
fp init --project acme --force # refresh previously written files
|
|
228
241
|
|
|
229
242
|
# Enforce parity. Exits 1 on violations, so CI blocks the merge.
|
|
230
243
|
fp check # project from .featureparity.yml
|
|
231
|
-
fp check --project
|
|
244
|
+
fp check --project acme --surface api # gate one surface only
|
|
232
245
|
fp check --level covered # demand coverage, not just no regressions
|
|
233
246
|
fp check --warn-only # report violations but exit 0
|
|
234
247
|
fp check --json # machine-readable violations
|
|
@@ -260,38 +273,38 @@ module Fp
|
|
|
260
273
|
fp projects delete calib-rate --yes
|
|
261
274
|
|
|
262
275
|
# List the surfaces a project tracks (requirements may only name these)
|
|
263
|
-
fp surfaces --project
|
|
276
|
+
fp surfaces --project acme
|
|
264
277
|
|
|
265
278
|
# View a single surface's details (owner, repo, kind, test globs)
|
|
266
|
-
fp surfaces show customer_android --project
|
|
279
|
+
fp surfaces show customer_android --project acme
|
|
267
280
|
|
|
268
281
|
# Create a surface (agents can do this — no need to wait on the web app)
|
|
269
|
-
fp surfaces add customer_android --project
|
|
282
|
+
fp surfaces add customer_android --project acme \\
|
|
270
283
|
--name "Customer Android App" \\
|
|
271
284
|
--kind android \\
|
|
272
|
-
--repo
|
|
285
|
+
--repo acme/customer-android
|
|
273
286
|
|
|
274
287
|
# Fix up an existing surface (add refuses a key that already exists)
|
|
275
|
-
fp surfaces edit web --project
|
|
288
|
+
fp surfaces edit web --project acme --kind web --repo acme/web
|
|
276
289
|
|
|
277
290
|
# Delete a surface (type the key back, or --yes non-interactively)
|
|
278
|
-
fp surfaces delete web --project
|
|
291
|
+
fp surfaces delete web --project acme --yes
|
|
279
292
|
|
|
280
293
|
# List requirements for a project
|
|
281
|
-
fp list --project
|
|
294
|
+
fp list --project acme
|
|
282
295
|
|
|
283
296
|
# List requirements filtered by category
|
|
284
|
-
fp list --project
|
|
297
|
+
fp list --project acme --category security
|
|
285
298
|
|
|
286
299
|
# List requirements filtered by tag (free-form label)
|
|
287
|
-
fp list --project
|
|
300
|
+
fp list --project acme --tag mobile
|
|
288
301
|
|
|
289
302
|
# Show gaps: requirements with a required surface that has no real evidence
|
|
290
303
|
# (missing, stubbed, or failing). Unlike `fp list`, this reads evidence.
|
|
291
|
-
fp list --project
|
|
304
|
+
fp list --project acme --gaps --surface customer_android
|
|
292
305
|
|
|
293
306
|
# Show a specific requirement
|
|
294
|
-
fp show print_container_qr --project
|
|
307
|
+
fp show print_container_qr --project acme
|
|
295
308
|
|
|
296
309
|
# Propose a new requirement (creates as draft).
|
|
297
310
|
# A requirement records the current shared understanding, not a decree handed from
|
|
@@ -352,7 +365,7 @@ module Fp
|
|
|
352
365
|
# vague, revise or ask. Then read it as a manager deciding scope: is the value clear,
|
|
353
366
|
# is the result observable, are decisions separated from guesses, and does every
|
|
354
367
|
# sentence earn its place? Do not save until the draft passes this review.
|
|
355
|
-
fp propose --project
|
|
368
|
+
fp propose --project acme \\
|
|
356
369
|
--slug print_container_qr \\
|
|
357
370
|
--name "Print QR code on container label" \\
|
|
358
371
|
--why "Staff scan the label to find a container; without a QR they key the ID by hand and mis-type it" \\
|
|
@@ -363,7 +376,7 @@ module Fp
|
|
|
363
376
|
|
|
364
377
|
# Nest a requirement under a parent (--parent takes the parent's SLUG).
|
|
365
378
|
# A child's --required surfaces must be a subset of its parent's.
|
|
366
|
-
fp propose --project
|
|
379
|
+
fp propose --project acme \\
|
|
367
380
|
--slug print_container_qr_ios \\
|
|
368
381
|
--name "Print QR on iOS" \\
|
|
369
382
|
--parent print_container_qr \\
|
|
@@ -372,7 +385,7 @@ module Fp
|
|
|
372
385
|
# Propose a change to a requirement that already exists. Say what prompted it
|
|
373
386
|
# — the card, the thread, the issue. The requirement drops back to DRAFT and a
|
|
374
387
|
# human reviews the old-vs-new diff before it counts again.
|
|
375
|
-
fp propose-change print_container_qr --project
|
|
388
|
+
fp propose-change print_container_qr --project acme \\
|
|
376
389
|
--name "Print a scannable container QR" \\
|
|
377
390
|
--slug print_scannable_container_qr \\
|
|
378
391
|
--why "Labels must survive a freezer" \\
|
|
@@ -382,27 +395,27 @@ module Fp
|
|
|
382
395
|
--source-url https://app.fizzy.do/6098707/cards/1377
|
|
383
396
|
|
|
384
397
|
# Propose deleting a requirement (nothing is destroyed — a human decides)
|
|
385
|
-
fp propose-change print_container_qr --project
|
|
398
|
+
fp propose-change print_container_qr --project acme \\
|
|
386
399
|
--removal \\
|
|
387
400
|
--reason "Superseded by print_container_label"
|
|
388
401
|
|
|
389
402
|
# Un-nest a child back to the top level (clears its parent)
|
|
390
|
-
fp propose-change print_container_qr_ios --project
|
|
403
|
+
fp propose-change print_container_qr_ios --project acme --no-parent \\
|
|
391
404
|
--reason "Promoted to a top-level promise"
|
|
392
405
|
|
|
393
406
|
# Amend a proposal you already opened: the single-open-proposal rule won't let
|
|
394
407
|
# you open a second, so withdraw yours (restoring the requirement) and propose
|
|
395
408
|
# again. Only the author can withdraw; someone else's proposal goes to review.
|
|
396
|
-
fp propose-change print_container_qr --project
|
|
409
|
+
fp propose-change print_container_qr --project acme --withdraw
|
|
397
410
|
|
|
398
411
|
# See what changed, why, and who asked for it
|
|
399
|
-
fp history print_container_qr --project
|
|
400
|
-
fp history print_container_qr --project
|
|
412
|
+
fp history print_container_qr --project acme
|
|
413
|
+
fp history print_container_qr --project acme --pending
|
|
401
414
|
|
|
402
415
|
# Triage the catalog's quality: duplicates, fragments, vague wording, conflicts.
|
|
403
416
|
# One model call per uncached requirement; unchanged ones are read back free.
|
|
404
|
-
fp analyze --project
|
|
405
|
-
fp analyze print_container_qr --project
|
|
417
|
+
fp analyze --project acme
|
|
418
|
+
fp analyze print_container_qr --project acme --conflicts
|
|
406
419
|
|
|
407
420
|
# Upload visual test evidence to a requirement. Images and videos require
|
|
408
421
|
# --surface; deployment fields let reviewers verify exactly what build the
|
|
@@ -416,28 +429,28 @@ module Fp
|
|
|
416
429
|
# Text formats: txt, md, json (render inline as code blocks for API evidence)
|
|
417
430
|
# Documents: svg, pdf (downloadable)
|
|
418
431
|
# Max 100 MB.
|
|
419
|
-
fp attach print_container_qr e2e-run.webm --project
|
|
432
|
+
fp attach print_container_qr e2e-run.webm --project acme \\
|
|
420
433
|
--surface customer_web \\
|
|
421
434
|
--example-title "prints a QR code onto the container label" \\
|
|
422
435
|
--captured-at 2026-10-15T01:42:00Z \\
|
|
423
436
|
--deployed-at 2026-10-15T01:30:00Z \\
|
|
424
437
|
--sha abc1234 \\
|
|
425
438
|
--deployment-url https://preview.example.test \\
|
|
426
|
-
--test-run-url https://github.com/
|
|
439
|
+
--test-run-url https://github.com/acme/app/actions/runs/123
|
|
427
440
|
|
|
428
441
|
# For API tests, attach the JSON response as inline evidence
|
|
429
|
-
fp attach api_returns_order_details response.json --project
|
|
442
|
+
fp attach api_returns_order_details response.json --project acme \\
|
|
430
443
|
--surface api \\
|
|
431
|
-
--evidence-key "api:
|
|
444
|
+
--evidence-key "api:acme/api:e2e"
|
|
432
445
|
|
|
433
446
|
# List attachments and their capture/deployment context
|
|
434
|
-
fp attachments print_container_qr --project
|
|
447
|
+
fp attachments print_container_qr --project acme
|
|
435
448
|
|
|
436
449
|
# Get a download URL for a specific attachment
|
|
437
|
-
fp attachments print_container_qr <attachment-id> --project
|
|
450
|
+
fp attachments print_container_qr <attachment-id> --project acme
|
|
438
451
|
|
|
439
452
|
# Delete an attachment
|
|
440
|
-
fp attach rm print_container_qr <attachment-id> --project
|
|
453
|
+
fp attach rm print_container_qr <attachment-id> --project acme
|
|
441
454
|
|
|
442
455
|
# Read a Pari conversation so an agent can review AI suggestions.
|
|
443
456
|
# A conversation is just a record identified by its id — no --project
|
|
@@ -446,12 +459,12 @@ module Fp
|
|
|
446
459
|
fp conversation 03h0abc123xyz
|
|
447
460
|
|
|
448
461
|
# Report evidence for a requirement
|
|
449
|
-
fp report print_container_qr --project
|
|
462
|
+
fp report print_container_qr --project acme \\
|
|
450
463
|
--surface customer_android \\
|
|
451
464
|
--file app/src/test/java/PrintQrTest.kt \\
|
|
452
465
|
--line 42 \\
|
|
453
|
-
--repo
|
|
454
|
-
--pr https://github.com/
|
|
466
|
+
--repo acme/customer-android \\
|
|
467
|
+
--pr https://github.com/acme/customer-android/pull/123 \\
|
|
455
468
|
--work-item https://app.fizzy.do/123/cards/456 \\
|
|
456
469
|
--title "prints a QR code onto the container label"
|
|
457
470
|
|
|
@@ -461,10 +474,10 @@ module Fp
|
|
|
461
474
|
# rspec --format RspecJunitFormatter --out junit.xml # (or your runner's equivalent)
|
|
462
475
|
# RSpec's own `--format json --out rspec.json` works as --junit too, with no extra gem.
|
|
463
476
|
# Or let fp add the formatter and report in one step (rspec, pytest, vitest, playwright):
|
|
464
|
-
# fp run --surface api --repo
|
|
465
|
-
fp report --junit junit.xml --project
|
|
477
|
+
# fp run --surface api --repo acme/marketplace -- bundle exec rspec
|
|
478
|
+
fp report --junit junit.xml --project acme \\
|
|
466
479
|
--surface api \\
|
|
467
|
-
--repo
|
|
480
|
+
--repo acme/marketplace \\
|
|
468
481
|
--work-item https://app.fizzy.do/123/cards/456
|
|
469
482
|
# --base-dir sets where relative test file paths in the report resolve from
|
|
470
483
|
# Skipped tests are reported as 'stub'; everything else as 'present'.
|
|
@@ -478,15 +491,15 @@ module Fp
|
|
|
478
491
|
# runner's testDir is searched for under base-dir, and --attach-media uploads
|
|
479
492
|
# the videos/screenshots the run recorded ([[ATTACHMENT|…]]) as visual
|
|
480
493
|
# evidence, each nested under the test it proves.
|
|
481
|
-
fp report --junit junit.xml --project
|
|
482
|
-
--surface web --repo
|
|
494
|
+
fp report --junit junit.xml --project acme \\
|
|
495
|
+
--surface web --repo acme/app --base-dir frontend --attach-media
|
|
483
496
|
|
|
484
497
|
# CI ONLY: ingest real pass/fail results. Run in your CI pipeline after
|
|
485
498
|
# the suite (on green AND red builds). Unlike `fp report`, this writes
|
|
486
499
|
# passing/failing evidence and marks vanished-but-previously-passing
|
|
487
500
|
# slugs as failing. This is the half of the loop that turns the matrix
|
|
488
501
|
# circles into ✓ / ✗.
|
|
489
|
-
fp ci-report --junit junit.xml --project
|
|
502
|
+
fp ci-report --junit junit.xml --project acme \\
|
|
490
503
|
--surface api \\
|
|
491
504
|
--ci-url "$CI_RUN_URL"
|
|
492
505
|
# Pass --junit more than once to ingest several reports for one surface.
|
|
@@ -497,25 +510,25 @@ module Fp
|
|
|
497
510
|
# --allow-empty when a suite genuinely has none.
|
|
498
511
|
|
|
499
512
|
# Show the parity matrix
|
|
500
|
-
fp matrix --project
|
|
513
|
+
fp matrix --project acme
|
|
501
514
|
|
|
502
515
|
# Export matrix as CSV
|
|
503
|
-
fp matrix --project
|
|
516
|
+
fp matrix --project acme --csv > matrix.csv
|
|
504
517
|
|
|
505
518
|
# Export the full requirements document as Markdown
|
|
506
|
-
fp export --project
|
|
519
|
+
fp export --project acme > requirements.md
|
|
507
520
|
|
|
508
521
|
# Export only active requirements for one surface, written to a file
|
|
509
|
-
fp export --project
|
|
522
|
+
fp export --project acme --status active \\
|
|
510
523
|
--surface customer_android --output requirements.md
|
|
511
524
|
|
|
512
525
|
# Map a surface to a local repo on this machine
|
|
513
526
|
fp repos set customer_android ~/code/customer-android \\
|
|
514
|
-
--project
|
|
527
|
+
--project acme --repo acme/customer-android
|
|
515
528
|
|
|
516
529
|
# Find where a surface's code lives locally (for agents)
|
|
517
|
-
fp repos get customer_android --project
|
|
518
|
-
cd "$(fp repos get customer_android --project
|
|
530
|
+
fp repos get customer_android --project acme
|
|
531
|
+
cd "$(fp repos get customer_android --project acme)"
|
|
519
532
|
|
|
520
533
|
MARKER CONVENTION
|
|
521
534
|
Tests are bound to requirements using the fp:<slug> marker in the test file.
|
data/lib/fp/commands/history.rb
CHANGED
|
@@ -14,8 +14,8 @@ module Fp
|
|
|
14
14
|
help_flag :project, 'Project slug (falls back to .featureparity.yml)'
|
|
15
15
|
help_flag :pending, 'Show only the open proposal, if any'
|
|
16
16
|
help_flag :limit, 'Cap the number of events shown'
|
|
17
|
-
help_example 'fp history print_container_qr --project
|
|
18
|
-
help_example 'fp history print_container_qr --project
|
|
17
|
+
help_example 'fp history print_container_qr --project acme'
|
|
18
|
+
help_example 'fp history print_container_qr --project acme --pending'
|
|
19
19
|
|
|
20
20
|
KNOWN_FLAGS = { project: :string, pending: :boolean, limit: :string }.freeze
|
|
21
21
|
|
data/lib/fp/commands/init.rb
CHANGED
|
@@ -34,8 +34,8 @@ module Fp
|
|
|
34
34
|
help_flag :force, 'Refresh files fp previously wrote'
|
|
35
35
|
help_flag :no_workflow, 'Skip writing the CI workflow'
|
|
36
36
|
help_flag :no_agents, 'Skip appending the AGENTS.md section'
|
|
37
|
-
help_example 'fp init --project
|
|
38
|
-
help_example 'fp init --project
|
|
37
|
+
help_example 'fp init --project acme --surface api'
|
|
38
|
+
help_example 'fp init --project acme --no-workflow'
|
|
39
39
|
help_example 'fp init --detect', 'See what fp makes of this repo before choosing a slug and surfaces'
|
|
40
40
|
help_note "Makes no API calls, so a repo can be onboarded before anyone has a key.\n" \
|
|
41
41
|
'Committing the workflow before the FP_API_KEY secret exists is fine: the gate skips with an explanation.'
|
|
@@ -183,10 +183,11 @@ module Fp
|
|
|
183
183
|
next
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
refreshed = content.include?(AGENTS_MARKER)
|
|
187
|
+
content = strip_existing_section(content) if refreshed
|
|
187
188
|
separator = content.end_with?("\n") ? "\n" : "\n\n"
|
|
188
189
|
File.write(path, "#{content}#{separator}#{section}")
|
|
189
|
-
written << [relative(root, path), 'appended FeatureParity section']
|
|
190
|
+
written << [relative(root, path), refreshed ? 'refreshed FeatureParity section' : 'appended FeatureParity section']
|
|
190
191
|
else
|
|
191
192
|
File.write(path, section)
|
|
192
193
|
written << [relative(root, path), 'created']
|
|
@@ -514,6 +515,24 @@ module Fp
|
|
|
514
515
|
# The agent-facing brief. Written as instructions rather than description, because
|
|
515
516
|
# this text is read by something that is about to write a test and needs to know
|
|
516
517
|
# exactly what to do.
|
|
518
|
+
# The first marker example in the section, in the language of the repo's first
|
|
519
|
+
# detected test runner (nothing detected, or a runner we have no example for, keeps
|
|
520
|
+
# the Ruby/RSpec one). A pytest repo reading `it '...' do` first was misled.
|
|
521
|
+
def marker_example
|
|
522
|
+
name = ((@detection || {})['test_runners'] || []).first&.fetch('name', nil)
|
|
523
|
+
case name
|
|
524
|
+
when 'pytest'
|
|
525
|
+
{ lang: 'python', comment: '#',
|
|
526
|
+
code: "# fp:print_container_qr\ndef test_prints_a_qr_code_onto_the_container_label():" }
|
|
527
|
+
when 'jest', 'vitest', 'playwright'
|
|
528
|
+
{ lang: 'javascript', comment: '//',
|
|
529
|
+
code: "// fp:print_container_qr\nit('prints a QR code onto the container label', () => {" }
|
|
530
|
+
else
|
|
531
|
+
{ lang: 'ruby', comment: '#',
|
|
532
|
+
code: "# fp:print_container_qr\nit 'prints a QR code onto the container label' do" }
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
517
536
|
def agents_section(project_slug)
|
|
518
537
|
<<~MARKDOWN
|
|
519
538
|
#{AGENTS_MARKER}
|
|
@@ -602,13 +621,12 @@ module Fp
|
|
|
602
621
|
Add an `fp:<slug>` comment directly above the test. Keep the test's own name
|
|
603
622
|
readable — the marker is the join, not the name.
|
|
604
623
|
|
|
605
|
-
|
|
606
|
-
#
|
|
607
|
-
it 'prints a QR code onto the container label' do
|
|
624
|
+
```#{marker_example[:lang]}
|
|
625
|
+
#{marker_example[:code]}
|
|
608
626
|
```
|
|
609
627
|
|
|
610
628
|
Pin surfaces in the marker when one test satisfies more than one:
|
|
611
|
-
`# fp:print_container_qr@api,web`.
|
|
629
|
+
`#{marker_example[:comment]} fp:print_container_qr@api,web`.
|
|
612
630
|
|
|
613
631
|
Every feature needs one. A requirement with no marked test is a gap, and gaps are
|
|
614
632
|
what the gate is eventually going to fail on.
|
data/lib/fp/commands/list.rb
CHANGED
|
@@ -13,9 +13,9 @@ module Fp
|
|
|
13
13
|
help_flag :tag, 'Filter by a free-form tag'
|
|
14
14
|
help_flag :status, 'Filter by status: active (default), draft, archived'
|
|
15
15
|
help_flag :gaps, 'Show only requirements with an uncovered required surface (reads evidence)'
|
|
16
|
-
help_example 'fp list --project
|
|
17
|
-
help_example 'fp list --project
|
|
18
|
-
help_example 'fp list --project
|
|
16
|
+
help_example 'fp list --project acme'
|
|
17
|
+
help_example 'fp list --project acme --status draft', 'Drafts are hidden by default'
|
|
18
|
+
help_example 'fp list --project acme --gaps --surface customer_android'
|
|
19
19
|
help_example 'fp list --status draft --gaps', 'Drafts lacking evidence on a required surface'
|
|
20
20
|
|
|
21
21
|
KNOWN_FLAGS = {
|
data/lib/fp/commands/mark.rb
CHANGED
|
@@ -19,6 +19,9 @@ module Fp
|
|
|
19
19
|
help_example 'fp mark academic_experience_required_fields spec/models/academic_experience_spec.rb:52'
|
|
20
20
|
help_example 'fp mark checkout_flow e2e/checkout.spec.ts:10 --surface web --type e2e'
|
|
21
21
|
help_note "<line> is the test's own line (the `it`/`test`/`def test_` line); the marker goes directly above it.\n" \
|
|
22
|
+
"Each insert shifts every line below it down by one. Marking several tests in one file from a single read of it?\n" \
|
|
23
|
+
"Mark from the bottom of the file upward, or re-read the line numbers between marks. The \"It binds to:\" line is the check:\n" \
|
|
24
|
+
"if it names the wrong test, or fp warns that no test declaration was recognised, the marker landed on the wrong line.\n" \
|
|
22
25
|
'Marking a test binds it to a requirement: never mark a test that is currently failing to make it count.'
|
|
23
26
|
|
|
24
27
|
KNOWN_FLAGS = {
|
data/lib/fp/commands/matrix.rb
CHANGED
|
@@ -19,8 +19,8 @@ module Fp
|
|
|
19
19
|
help_flag :surface, 'Limit to one surface'
|
|
20
20
|
help_flag :level, 'Evaluate against this enforcement level (off/regression/covered/strict)'
|
|
21
21
|
help_flag :csv, 'Emit CSV instead of the ASCII table'
|
|
22
|
-
help_example 'fp matrix --project
|
|
23
|
-
help_example 'fp matrix --project
|
|
22
|
+
help_example 'fp matrix --project acme'
|
|
23
|
+
help_example 'fp matrix --project acme --csv > matrix.csv'
|
|
24
24
|
|
|
25
25
|
KNOWN_FLAGS = {
|
|
26
26
|
project: :string,
|
data/lib/fp/commands/profile.rb
CHANGED
|
@@ -54,7 +54,8 @@ module Fp
|
|
|
54
54
|
|
|
55
55
|
# The global CLI parser consumes --api-url before the command runs, so
|
|
56
56
|
# honor it via the config object when the local flag wasn't captured.
|
|
57
|
-
|
|
57
|
+
# Saved without a trailing /api: the website used to hand that form out (Fizzy #1980).
|
|
58
|
+
api_url = Config.normalize_api_url(opts[:api_url] || config&.explicit_api_url)
|
|
58
59
|
Config.save_profile(name, api_key: opts[:api_key], api_url: api_url, environment: opts[:environment])
|
|
59
60
|
|
|
60
61
|
effective_url = api_url || Config.get_setting('api_url') || Config::DEFAULT_API_URL
|
data/lib/fp/commands/propose.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Fp
|
|
|
33
33
|
help_flag :source_ref, 'A place in the repo it was read from, e.g. app/models/order.rb:42 (repeatable)'
|
|
34
34
|
help_flag :file, 'YAML or JSON file of requirements to propose in one batch (validated all-or-nothing)'
|
|
35
35
|
help_flag :dry_run, 'Validate and lint the wording; write nothing'
|
|
36
|
-
help_example 'fp propose --project
|
|
36
|
+
help_example 'fp propose --project acme --slug print_qr --name "Print QR on container label" --why "Staff mis-type the ID without a scannable code" --required api,customer_ios --acceptance "QR scans to the container detail page"'
|
|
37
37
|
help_example 'fp propose --file requirements.yml --dry-run', 'Lint a batch and show what would be created'
|
|
38
38
|
help_example 'fp propose --file requirements.yml --source-type repo_scan', 'Create the batch; flags are defaults for every entry'
|
|
39
39
|
help_note "Agents can only create drafts. A human activates it in the web app.\n" \
|
|
@@ -31,7 +31,7 @@ module Fp
|
|
|
31
31
|
help_flag :source_url, 'URL of the card/issue/thread that prompted this proposal'
|
|
32
32
|
help_flag :source_context, 'Free-form note about what prompted this proposal'
|
|
33
33
|
help_flag :source_ref, 'A place in the repo that prompted it, e.g. app/models/order.rb:42 (repeatable)'
|
|
34
|
-
help_example 'fp propose-change print_qr --project
|
|
34
|
+
help_example 'fp propose-change print_qr --project acme --acceptance "QR scans after 24h at -20C" --reason "Cold-chain rollout"'
|
|
35
35
|
help_example 'fp propose-change summon_can_be_undone --tags rules,units --reason "Rulebook check reads the first tag"'
|
|
36
36
|
help_example 'fp propose-change print_qr --removal --reason "Superseded by print_container_label"'
|
|
37
37
|
help_note "Applies the change and drops the requirement to draft for a human to review. --reason and\n" \
|
data/lib/fp/commands/report.rb
CHANGED
|
@@ -40,8 +40,8 @@ module Fp
|
|
|
40
40
|
help_flag :base_dir, 'Where relative test-file paths in the report resolve from'
|
|
41
41
|
help_flag :attach_media, 'With --junit: upload the videos/screenshots the run recorded ([[ATTACHMENT|…]]) as visual evidence'
|
|
42
42
|
help_flag :stamp_all, 'With --junit: put --pr/--work-item on every receipt, not only on tests in files this branch changed'
|
|
43
|
-
help_example 'fp report print_container_qr --project
|
|
44
|
-
help_example 'fp report --junit junit.xml --project
|
|
43
|
+
help_example 'fp report print_container_qr --project acme --surface api --file spec/qr_spec.rb --repo acme/app'
|
|
44
|
+
help_example 'fp report --junit junit.xml --project acme --surface api --repo acme/app',
|
|
45
45
|
'Batch-upload from a JUnit report (slugs come from fp:<slug> markers)'
|
|
46
46
|
help_note "Agents report 'present' or 'stub' only. CI writes 'passing'/'failing' via fp ci-report.\n" \
|
|
47
47
|
"Always pass --test-type when a surface has more than one suite, or they overwrite each other.\n" \
|
data/lib/fp/commands/repos.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Fp
|
|
|
8
8
|
# ~/.config/fp/config.yml under `repos`, scoped by project slug. This is a
|
|
9
9
|
# per-installation convenience (not stored in the FP web app): when an agent
|
|
10
10
|
# picks up a requirement affecting, say, the `customer_android` surface, it can
|
|
11
|
-
# run `fp repos get customer_android --project
|
|
11
|
+
# run `fp repos get customer_android --project acme` to learn which local
|
|
12
12
|
# directory to work in. Analogous to how `brainiac projects` maps repos to names.
|
|
13
13
|
#
|
|
14
14
|
# fp repos set <surface> <path> --project <slug> [--repo org/repo]
|
|
@@ -23,8 +23,8 @@ module Fp
|
|
|
23
23
|
'fp repos unset <surface> --project <slug>'
|
|
24
24
|
help_flag :project, 'Project slug (falls back to .featureparity.yml)'
|
|
25
25
|
help_flag :repo, 'Optional org/repo to record alongside the local path (set only)'
|
|
26
|
-
help_example 'fp repos set customer_android ~/code/customer-android --project
|
|
27
|
-
help_example 'cd "$(fp repos get customer_android --project
|
|
26
|
+
help_example 'fp repos set customer_android ~/code/customer-android --project acme --repo acme/customer-android'
|
|
27
|
+
help_example 'cd "$(fp repos get customer_android --project acme)"'
|
|
28
28
|
help_note 'Stored per-installation in ~/.config/fp/config.yml, not in the web app.'
|
|
29
29
|
|
|
30
30
|
KNOWN_FLAGS = {
|
|
@@ -170,9 +170,9 @@ module Fp
|
|
|
170
170
|
puts
|
|
171
171
|
puts 'Examples:'
|
|
172
172
|
puts ' fp repos set customer_android ~/code/customer-android \\'
|
|
173
|
-
puts ' --project
|
|
174
|
-
puts ' fp repos get customer_android --project
|
|
175
|
-
puts ' cd "$(fp repos get customer_android --project
|
|
173
|
+
puts ' --project acme --repo acme/customer-android'
|
|
174
|
+
puts ' fp repos get customer_android --project acme'
|
|
175
|
+
puts ' cd "$(fp repos get customer_android --project acme)"'
|
|
176
176
|
exit 1
|
|
177
177
|
end
|
|
178
178
|
end
|
data/lib/fp/commands/setup.rb
CHANGED
|
@@ -34,7 +34,8 @@ module Fp
|
|
|
34
34
|
|
|
35
35
|
api_key = resolve_api_key(opts)
|
|
36
36
|
profile_name = resolve_profile_name(opts)
|
|
37
|
-
|
|
37
|
+
# Without a trailing /api: the key check and every later call add it themselves.
|
|
38
|
+
api_url = Config.normalize_api_url(resolve_api_url(opts))
|
|
38
39
|
environment = opts[:environment] || Config.environment_for(api_url || Config::DEFAULT_API_URL)
|
|
39
40
|
|
|
40
41
|
puts "Validating API key..."
|
data/lib/fp/commands/show.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Fp
|
|
|
8
8
|
help_summary 'Show a requirement, its acceptance criteria, and evidence receipts'
|
|
9
9
|
help_usage 'fp show <slug> --project <slug>'
|
|
10
10
|
help_flag :project, 'Project slug (falls back to .featureparity.yml)'
|
|
11
|
-
help_example 'fp show print_container_qr --project
|
|
11
|
+
help_example 'fp show print_container_qr --project acme'
|
|
12
12
|
|
|
13
13
|
def run(args)
|
|
14
14
|
opts, positional = parse_flags(args)
|
|
@@ -163,7 +163,12 @@ module Fp
|
|
|
163
163
|
# change to this requirement, oldest first. Derived from events so the history is
|
|
164
164
|
# additive — older sources aren't lost when a new one is recorded.
|
|
165
165
|
puts 'Source Trail:'
|
|
166
|
-
|
|
166
|
+
own_type = req['source_type']
|
|
167
|
+
own_context = req['source_context']
|
|
168
|
+
if source_history.empty? && (own_type || own_context)
|
|
169
|
+
puts " - #{own_type}" if own_type
|
|
170
|
+
puts " #{own_context}" if own_context
|
|
171
|
+
elsif source_history.empty?
|
|
167
172
|
puts ' (no sources recorded)'
|
|
168
173
|
else
|
|
169
174
|
source_history.each do |src|
|
data/lib/fp/commands/showroom.rb
CHANGED
|
@@ -31,12 +31,12 @@ module Fp
|
|
|
31
31
|
help_flag :caption, 'media add/edit: text shown under the image or video (edit: empty clears)'
|
|
32
32
|
help_flag :position, 'media add/edit: slot within its card or the gallery, 1 is first; others shift (edit: empty moves it last)'
|
|
33
33
|
help_flag :yes, 'media remove: skip the typed-filename confirmation'
|
|
34
|
-
help_example 'fp showroom --project
|
|
35
|
-
help_example 'fp showroom media add e2e/checkout.webm --project
|
|
36
|
-
help_example 'fp showroom media add overview.png --project
|
|
37
|
-
help_example 'fp showroom media add app-icon.png --project
|
|
38
|
-
help_example 'fp showroom media edit <id> --project
|
|
39
|
-
help_example 'fp showroom media remove <id> --project
|
|
34
|
+
help_example 'fp showroom --project acme'
|
|
35
|
+
help_example 'fp showroom media add e2e/checkout.webm --project acme --surface web --caption "Checking out"'
|
|
36
|
+
help_example 'fp showroom media add overview.png --project acme --position 1'
|
|
37
|
+
help_example 'fp showroom media add app-icon.png --project acme --surface ios --icon'
|
|
38
|
+
help_example 'fp showroom media edit <id> --project acme --caption ""'
|
|
39
|
+
help_example 'fp showroom media remove <id> --project acme --yes'
|
|
40
40
|
help_note "Prints the welcome note, the gallery, and each surface's card, then the surfaces that are NOT shown and why.\n" \
|
|
41
41
|
"Write the content with `fp projects edit --showroom-welcome` and `fp surfaces edit --showroom-*`.\n" \
|
|
42
42
|
"Media: png, jpg, gif, webp, mp4, webm, mov; max 100 MB. SVG and PDF are refused.\n" \
|
data/lib/fp/commands/surfaces.rb
CHANGED
|
@@ -71,11 +71,11 @@ module Fp
|
|
|
71
71
|
help_flag :showroom_instructions_file, 'Read --showroom-instructions from a file (multi-line)'
|
|
72
72
|
help_flag :showroom_position, 'Client showroom order: 1 is first; empty clears (unplaced surfaces follow, A-Z) (edit)'
|
|
73
73
|
help_flag :yes, 'Skip the typed-key confirmation on delete'
|
|
74
|
-
help_example 'fp surfaces --project
|
|
75
|
-
help_example 'fp surfaces add customer_android --project
|
|
76
|
-
help_example 'fp surfaces delete web --project
|
|
77
|
-
help_example 'fp surfaces edit web --project
|
|
78
|
-
help_example 'fp surfaces edit web --project
|
|
74
|
+
help_example 'fp surfaces --project acme'
|
|
75
|
+
help_example 'fp surfaces add customer_android --project acme --kind android --repo acme/customer-android'
|
|
76
|
+
help_example 'fp surfaces delete web --project acme --yes'
|
|
77
|
+
help_example 'fp surfaces edit web --project acme --showroom-url https://dev.example.com --showroom-instructions-file docs/showroom/web.txt'
|
|
78
|
+
help_example 'fp surfaces edit web --project acme --showroom-position 1'
|
|
79
79
|
|
|
80
80
|
def run(args)
|
|
81
81
|
# Subcommand dispatch. Bare `fp surfaces --project X` stays a list, so existing
|
data/lib/fp/config.rb
CHANGED
|
@@ -116,6 +116,16 @@ module Fp
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
class << self
|
|
119
|
+
# The base URL has no path: Client adds "/api/..." itself. People are handed
|
|
120
|
+
# "https://api.featureparity.dev/api" though, so strip trailing slashes and then
|
|
121
|
+
# one trailing "/api" path segment, and nothing else. Only a path segment that is
|
|
122
|
+
# exactly "api" goes ("https://x/v2/api" -> "https://x/v2", an "api" host is untouched).
|
|
123
|
+
def normalize_api_url(url)
|
|
124
|
+
return url unless url.is_a?(String)
|
|
125
|
+
|
|
126
|
+
url.strip.sub(%r{/+\z}, '').sub(%r{/api\z}i, '').sub(%r{/+\z}, '')
|
|
127
|
+
end
|
|
128
|
+
|
|
119
129
|
def load_config
|
|
120
130
|
return {} unless File.exist?(CONFIG_FILE)
|
|
121
131
|
|
|
@@ -241,10 +251,10 @@ module Fp
|
|
|
241
251
|
# Stored under a top-level `repos` key in config.yml, scoped by project slug:
|
|
242
252
|
#
|
|
243
253
|
# repos:
|
|
244
|
-
#
|
|
254
|
+
# acme:
|
|
245
255
|
# customer_android:
|
|
246
256
|
# path: /home/dev/code/customer-android
|
|
247
|
-
# repo:
|
|
257
|
+
# repo: acme/customer-android
|
|
248
258
|
#
|
|
249
259
|
# This is intentionally local (per fp installation) — it maps FeatureParity
|
|
250
260
|
# surfaces to wherever the code lives on THIS machine, so an agent working a
|
|
@@ -371,13 +381,13 @@ module Fp
|
|
|
371
381
|
# 1. Explicit --api-url flag
|
|
372
382
|
if @explicit_api_url && !@explicit_api_url.empty?
|
|
373
383
|
@api_url_source = 'flag'
|
|
374
|
-
return @explicit_api_url
|
|
384
|
+
return self.class.normalize_api_url(@explicit_api_url)
|
|
375
385
|
end
|
|
376
386
|
|
|
377
387
|
# 2. FP_API_URL env var
|
|
378
388
|
if ENV['FP_API_URL'] && !ENV['FP_API_URL'].empty?
|
|
379
389
|
@api_url_source = 'env (FP_API_URL)'
|
|
380
|
-
return ENV['FP_API_URL']
|
|
390
|
+
return self.class.normalize_api_url(ENV['FP_API_URL'])
|
|
381
391
|
end
|
|
382
392
|
|
|
383
393
|
# 3. Profile-specific URL
|
|
@@ -386,7 +396,7 @@ module Fp
|
|
|
386
396
|
profile = profiles[@profile_name]
|
|
387
397
|
if profile && profile['api_url']
|
|
388
398
|
@api_url_source = "profile (#{@profile_name})"
|
|
389
|
-
return profile['api_url']
|
|
399
|
+
return self.class.normalize_api_url(profile['api_url'])
|
|
390
400
|
end
|
|
391
401
|
end
|
|
392
402
|
|
|
@@ -394,7 +404,7 @@ module Fp
|
|
|
394
404
|
global_url = self.class.get_setting('api_url')
|
|
395
405
|
if global_url && !global_url.empty?
|
|
396
406
|
@api_url_source = 'global setting'
|
|
397
|
-
return global_url
|
|
407
|
+
return self.class.normalize_api_url(global_url)
|
|
398
408
|
end
|
|
399
409
|
|
|
400
410
|
# 5. Default
|
data/lib/fp/version.rb
CHANGED
data/skills/fp/SKILL.md
CHANGED
|
@@ -54,17 +54,17 @@ every project the user belongs to; never ask for a per-project key.
|
|
|
54
54
|
### 1. Inventory and model the complete requirement scope
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
fp list --project
|
|
58
|
-
fp list --project
|
|
59
|
-
fp list --project
|
|
60
|
-
fp list --project
|
|
61
|
-
fp coverage --project
|
|
62
|
-
fp show <slug> --project
|
|
63
|
-
fp history <slug> --project
|
|
57
|
+
fp list --project acme # All active requirements
|
|
58
|
+
fp list --project acme --status draft # Proposed work; avoid duplicates
|
|
59
|
+
fp list --project acme --gaps # Requirements with a required surface lacking evidence
|
|
60
|
+
fp list --project acme --status draft --gaps # Drafts with a required surface lacking evidence
|
|
61
|
+
fp coverage --project acme # Drafts × surfaces, then the drafts with no evidence
|
|
62
|
+
fp show <slug> --project acme # Requirement details and evidence
|
|
63
|
+
fp history <slug> --project acme # Origins and pending changes
|
|
64
64
|
fp changes --source-url <work-item-url> # Activity prompted by one card, issue, or thread
|
|
65
|
-
fp matrix --project
|
|
66
|
-
fp matrix --project
|
|
67
|
-
fp check --project
|
|
65
|
+
fp matrix --project acme # ASCII parity matrix
|
|
66
|
+
fp matrix --project acme --csv # Export as CSV
|
|
67
|
+
fp check --project acme # Enforce parity (exits 1 on violations)
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
<!-- fp-shared:begin modeling -->
|
|
@@ -150,10 +150,10 @@ end
|
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
152
|
fp report <slug> \
|
|
153
|
-
--project
|
|
153
|
+
--project acme \
|
|
154
154
|
--surface api \
|
|
155
155
|
--file spec/qr_spec.rb \
|
|
156
|
-
--repo
|
|
156
|
+
--repo acme/marketplace \
|
|
157
157
|
--work-item https://app.fizzy.do/123/cards/456
|
|
158
158
|
```
|
|
159
159
|
|
|
@@ -179,7 +179,7 @@ report formatter to rspec, pytest, vitest or playwright itself, so the project n
|
|
|
179
179
|
new dependency, then reports exactly as `fp report --junit` would:
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
|
-
fp run --surface api --repo
|
|
182
|
+
fp run --surface api --repo acme/marketplace \
|
|
183
183
|
--work-item https://app.fizzy.do/123/cards/456 -- bundle exec rspec
|
|
184
184
|
```
|
|
185
185
|
|
|
@@ -192,9 +192,9 @@ bundle exec rspec --format progress --format json --out rspec.json
|
|
|
192
192
|
|
|
193
193
|
# 2. Upload — one call covers every marked test
|
|
194
194
|
fp report --junit rspec.json \
|
|
195
|
-
--project
|
|
195
|
+
--project acme \
|
|
196
196
|
--surface api \
|
|
197
|
-
--repo
|
|
197
|
+
--repo acme/marketplace \
|
|
198
198
|
--work-item https://app.fizzy.do/123/cards/456
|
|
199
199
|
```
|
|
200
200
|
|
|
@@ -297,7 +297,7 @@ this review, revise it or ask before writing the record.
|
|
|
297
297
|
Then create the proposal as a draft:
|
|
298
298
|
|
|
299
299
|
```bash
|
|
300
|
-
fp propose --project
|
|
300
|
+
fp propose --project acme \
|
|
301
301
|
--slug current_shipment_status \
|
|
302
302
|
--name "Dispatchers see current shipment status" \
|
|
303
303
|
--why "Dispatchers need to spot delayed shipments before they miss a delivery window" \
|
|
@@ -347,7 +347,7 @@ change and say what prompted it. The requirement drops back to **draft** and a h
|
|
|
347
347
|
reviews the old-vs-new diff before it counts again.
|
|
348
348
|
|
|
349
349
|
```bash
|
|
350
|
-
fp propose-change print_container_qr --project
|
|
350
|
+
fp propose-change print_container_qr --project acme \
|
|
351
351
|
--why "Labels must survive a freezer" \
|
|
352
352
|
--acceptance "QR scans after 24h at -20C" \
|
|
353
353
|
--reason "Cold-chain rollout changed the requirement" \
|
|
@@ -358,7 +358,7 @@ fp propose-change print_container_qr --project stowzilla \
|
|
|
358
358
|
To propose deleting one instead (nothing is destroyed — a human decides):
|
|
359
359
|
|
|
360
360
|
```bash
|
|
361
|
-
fp propose-change print_container_qr --project
|
|
361
|
+
fp propose-change print_container_qr --project acme \
|
|
362
362
|
--removal --reason "Superseded by print_container_label"
|
|
363
363
|
```
|
|
364
364
|
|
|
@@ -375,8 +375,8 @@ Rules:
|
|
|
375
375
|
### 7. See what changed and why
|
|
376
376
|
|
|
377
377
|
```bash
|
|
378
|
-
fp history print_container_qr --project
|
|
379
|
-
fp history print_container_qr --project
|
|
378
|
+
fp history print_container_qr --project acme
|
|
379
|
+
fp history print_container_qr --project acme --pending # just what's awaiting review
|
|
380
380
|
```
|
|
381
381
|
|
|
382
382
|
Shows the timeline (who changed what, when, and what prompted it), the field-by-field
|
|
@@ -585,11 +585,11 @@ and marks its evidence `suspect`, and a requirement holds one open proposal at a
|
|
|
585
585
|
proposing on every flag could put dozens of requirements in review at once.
|
|
586
586
|
|
|
587
587
|
```bash
|
|
588
|
-
fp analyze --project
|
|
589
|
-
fp analyze print_container_qr --project
|
|
590
|
-
fp analyze --project
|
|
591
|
-
fp analyze --project
|
|
592
|
-
fp analyze --project
|
|
588
|
+
fp analyze --project acme # sweep active + draft requirements
|
|
589
|
+
fp analyze print_container_qr --project acme # one requirement, with suggestions
|
|
590
|
+
fp analyze --project acme --conflicts # also check for contradictions (slower)
|
|
591
|
+
fp analyze --project acme --cached # read saved results only, no model calls
|
|
592
|
+
fp analyze --project acme --json
|
|
593
593
|
```
|
|
594
594
|
|
|
595
595
|
It goes one requirement at a time. Results are cached until the wording changes, so a
|
data/skills/fp/references/cli.md
CHANGED
|
@@ -57,13 +57,13 @@ owner — or a key minted by one — may delete; a member's key gets 403.
|
|
|
57
57
|
List, view, create, edit and delete a project's surfaces.
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
fp surfaces --project
|
|
61
|
-
fp surfaces --project
|
|
62
|
-
fp surfaces show <key> --project
|
|
63
|
-
fp surfaces add <key> --project
|
|
64
|
-
fp surfaces edit <key> --project
|
|
65
|
-
fp surfaces edit <key> --project
|
|
66
|
-
fp surfaces delete <key> --project
|
|
60
|
+
fp surfaces --project acme
|
|
61
|
+
fp surfaces --project acme --json
|
|
62
|
+
fp surfaces show <key> --project acme
|
|
63
|
+
fp surfaces add <key> --project acme [--name "..."] [--kind api|web|android|ios|other] [--audience ...] [--repo org/repo] [--default-branch main]
|
|
64
|
+
fp surfaces edit <key> --project acme [--name "..."] [--kind ...] [--audience ...] [--repo ...] [--default-branch ...] [--key new_key]
|
|
65
|
+
fp surfaces edit <key> --project acme [--showroom-url URL] [--showroom-label "..."] [--showroom-instructions "..." | --showroom-instructions-file PATH] [--showroom-position N]
|
|
66
|
+
fp surfaces delete <key> --project acme [--yes]
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
A key is unique within a project. `add` on a key that already exists fails and points
|
|
@@ -84,36 +84,36 @@ media. The team's agents keep that content; this command
|
|
|
84
84
|
shows the result.
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
fp showroom --project
|
|
88
|
-
fp showroom --project
|
|
87
|
+
fp showroom --project acme # what a client sees, plus which surfaces are hidden and why
|
|
88
|
+
fp showroom --project acme --json # { showroom, hidden, share_link }; showroom.gallery and each surface's media
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
Writing the content:
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
|
-
fp projects edit
|
|
95
|
-
fp projects edit
|
|
96
|
-
fp surfaces edit web --project
|
|
94
|
+
fp projects edit acme --showroom-welcome "Hi Sam, here's what we built."
|
|
95
|
+
fp projects edit acme --showroom-welcome-file docs/showroom/welcome.txt
|
|
96
|
+
fp surfaces edit web --project acme \
|
|
97
97
|
--showroom-url https://dev.example.com \
|
|
98
98
|
--showroom-label "Open the web app" \
|
|
99
99
|
--showroom-instructions-file docs/showroom/web.txt
|
|
100
|
-
fp surfaces edit ios --project
|
|
101
|
-
fp surfaces edit web --project
|
|
102
|
-
fp surfaces edit web --project
|
|
100
|
+
fp surfaces edit ios --project acme --showroom-url "" --showroom-instructions "" # take the card down
|
|
101
|
+
fp surfaces edit web --project acme --showroom-position 1 # clients see web first
|
|
102
|
+
fp surfaces edit web --project acme --showroom-position "" # back to alphabetical
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
Media — screenshots and videos on a surface's card, or in the project gallery under the
|
|
106
106
|
welcome note when `--surface` is omitted:
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
|
-
fp showroom media --project
|
|
110
|
-
fp showroom media --project
|
|
111
|
-
fp showroom media add e2e/results/checkout.webm --project
|
|
109
|
+
fp showroom media --project acme # gallery, then each surface in showroom order: id, kind, file, caption, position
|
|
110
|
+
fp showroom media --project acme --json # { media: [...each with surface_key (null = gallery)], project }
|
|
111
|
+
fp showroom media add e2e/results/checkout.webm --project acme --surface web \
|
|
112
112
|
--caption "Checking out with a saved card" --position 1
|
|
113
|
-
fp showroom media add docs/showroom/overview.png --project
|
|
114
|
-
fp showroom media edit <id> --project
|
|
115
|
-
fp showroom media edit <id> --project
|
|
116
|
-
fp showroom media remove <id> --project
|
|
113
|
+
fp showroom media add docs/showroom/overview.png --project acme # the gallery
|
|
114
|
+
fp showroom media edit <id> --project acme --caption "New words" --position 2
|
|
115
|
+
fp showroom media edit <id> --project acme --caption "" --position "" # clear the caption, move it last
|
|
116
|
+
fp showroom media remove <id> --project acme --yes
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
Accepted: png, jpg/jpeg, gif, webp, mp4, webm, mov, up to 100 MB. Anything else — SVG
|
|
@@ -142,10 +142,10 @@ that reason; a human checks it under Project Settings → Showroom in the web ap
|
|
|
142
142
|
List requirements.
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
fp list --project
|
|
146
|
-
fp list --project
|
|
147
|
-
fp list --project
|
|
148
|
-
fp list --project
|
|
145
|
+
fp list --project acme # All active requirements
|
|
146
|
+
fp list --project acme --gaps # Requirements with a required surface lacking evidence
|
|
147
|
+
fp list --project acme --status draft
|
|
148
|
+
fp list --project acme --json
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
| Flag | Description |
|
|
@@ -165,8 +165,8 @@ state.
|
|
|
165
165
|
Show requirement details.
|
|
166
166
|
|
|
167
167
|
```bash
|
|
168
|
-
fp show print_container_qr --project
|
|
169
|
-
fp show print_container_qr --project
|
|
168
|
+
fp show print_container_qr --project acme
|
|
169
|
+
fp show print_container_qr --project acme --json
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
### fp report
|
|
@@ -177,10 +177,10 @@ Report evidence linking a test to a requirement.
|
|
|
177
177
|
|
|
178
178
|
```bash
|
|
179
179
|
fp report <slug> \
|
|
180
|
-
--project
|
|
180
|
+
--project acme \
|
|
181
181
|
--surface api \
|
|
182
182
|
--file spec/qr_spec.rb \
|
|
183
|
-
--repo
|
|
183
|
+
--repo acme/marketplace \
|
|
184
184
|
[--pr URL] [--sha COMMIT] [--work-item URL] [--ci-url URL] [--title "..."] [--state present|stub]
|
|
185
185
|
```
|
|
186
186
|
|
|
@@ -202,9 +202,9 @@ fp report <slug> \
|
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
204
|
fp report --junit junit.xml \
|
|
205
|
-
--project
|
|
205
|
+
--project acme \
|
|
206
206
|
--surface api \
|
|
207
|
-
--repo
|
|
207
|
+
--repo acme/marketplace \
|
|
208
208
|
[--base-dir DIR] [--pr URL] [--sha COMMIT] [--work-item URL] [--ci-url URL]
|
|
209
209
|
```
|
|
210
210
|
|
|
@@ -232,10 +232,10 @@ Run a test command with a report formatter fp adds itself, then report the resul
|
|
|
232
232
|
as `fp report --junit` would. Nothing is added to the project under test.
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
|
-
fp run --surface api --repo
|
|
236
|
-
fp run --surface api --repo
|
|
237
|
-
(cd frontend && fp run --surface web --repo
|
|
238
|
-
fp run --surface web --repo
|
|
235
|
+
fp run --surface api --repo acme/marketplace -- bundle exec rspec
|
|
236
|
+
fp run --surface api --repo acme/marketplace -- pytest tests/
|
|
237
|
+
(cd frontend && fp run --surface web --repo acme/marketplace -- npx vitest run)
|
|
238
|
+
fp run --surface web --repo acme/marketplace -- npx playwright test
|
|
239
239
|
```
|
|
240
240
|
|
|
241
241
|
| Runner | What fp adds |
|
|
@@ -260,11 +260,11 @@ client showroom. This is optional and stores the file in FeatureParity, so an ag
|
|
|
260
260
|
only with permission from the person it works for, and never captures someone's own screen.
|
|
261
261
|
|
|
262
262
|
```bash
|
|
263
|
-
fp attach checkout_flow e2e/results/checkout.webm --project
|
|
263
|
+
fp attach checkout_flow e2e/results/checkout.webm --project acme --surface web \
|
|
264
264
|
--example-title "pays by card" --sha $(git rev-parse HEAD)
|
|
265
|
-
fp attachments checkout_flow --project
|
|
266
|
-
fp attachments checkout_flow <id> --project
|
|
267
|
-
fp attach rm checkout_flow <id> --project
|
|
265
|
+
fp attachments checkout_flow --project acme # list
|
|
266
|
+
fp attachments checkout_flow <id> --project acme # download URL
|
|
267
|
+
fp attach rm checkout_flow <id> --project acme # delete
|
|
268
268
|
```
|
|
269
269
|
|
|
270
270
|
| Flag | Required | Description |
|
|
@@ -304,7 +304,7 @@ failing test merely because the requirement was drafted or activated. Surface th
|
|
|
304
304
|
do not change or adopt the old test as proof without explicit human approval.
|
|
305
305
|
|
|
306
306
|
```bash
|
|
307
|
-
fp propose --project
|
|
307
|
+
fp propose --project acme \
|
|
308
308
|
--slug current_shipment_status \
|
|
309
309
|
--name "Dispatchers see current shipment status" \
|
|
310
310
|
--why "Dispatchers need to spot delayed shipments before they miss a delivery window" \
|
|
@@ -418,6 +418,12 @@ prefix for an extension fp doesn't know, and `--dry-run` shows the line without
|
|
|
418
418
|
This is purely local and needs no API key. Never mark a failing test to make a requirement
|
|
419
419
|
look covered.
|
|
420
420
|
|
|
421
|
+
Each insert shifts every line below it down by one. When you mark several tests in one file
|
|
422
|
+
from a single read of it, mark from the bottom of the file upward, or re-read the line numbers
|
|
423
|
+
between marks. The `It binds to:` line is the check: if it names a different test than you
|
|
424
|
+
meant, or fp warns that no test declaration was recognised, the marker landed on the wrong
|
|
425
|
+
line (it is still written, and the exit code is 0, so fix it by hand).
|
|
426
|
+
|
|
421
427
|
### fp propose-change
|
|
422
428
|
|
|
423
429
|
Propose a change to a requirement that already exists — or propose deleting it.
|
|
@@ -425,7 +431,7 @@ Recorded with what the requirement *was*, a field-by-field diff, and what prompt
|
|
|
425
431
|
change. The requirement drops back to **draft** until a human approves or rejects.
|
|
426
432
|
|
|
427
433
|
```bash
|
|
428
|
-
fp propose-change print_container_qr --project
|
|
434
|
+
fp propose-change print_container_qr --project acme \
|
|
429
435
|
--why "Labels must survive a freezer" \
|
|
430
436
|
--acceptance "QR scans after 24h at -20C" \
|
|
431
437
|
--reason "Cold-chain rollout" \
|
|
@@ -433,7 +439,7 @@ fp propose-change print_container_qr --project stowzilla \
|
|
|
433
439
|
--source-url https://app.fizzy.do/6098707/cards/1377
|
|
434
440
|
|
|
435
441
|
# Propose deletion instead
|
|
436
|
-
fp propose-change print_container_qr --project
|
|
442
|
+
fp propose-change print_container_qr --project acme \
|
|
437
443
|
--removal --reason "Superseded by print_container_label"
|
|
438
444
|
```
|
|
439
445
|
|
|
@@ -477,10 +483,10 @@ Show a requirement's change history: what changed, who changed it, what prompted
|
|
|
477
483
|
how the test evidence moved.
|
|
478
484
|
|
|
479
485
|
```bash
|
|
480
|
-
fp history print_container_qr --project
|
|
481
|
-
fp history print_container_qr --project
|
|
482
|
-
fp history print_container_qr --project
|
|
483
|
-
fp history print_container_qr --project
|
|
486
|
+
fp history print_container_qr --project acme
|
|
487
|
+
fp history print_container_qr --project acme --pending # only what awaits review
|
|
488
|
+
fp history print_container_qr --project acme --limit 5 # most recent 5 entries
|
|
489
|
+
fp history print_container_qr --project acme --json
|
|
484
490
|
```
|
|
485
491
|
|
|
486
492
|
Entries are printed oldest first. Each shows the event (created, edited, approved,
|
|
@@ -497,7 +503,7 @@ Use it for the decisions a draft can't settle by itself, instead of leaving them
|
|
|
497
503
|
|
|
498
504
|
```bash
|
|
499
505
|
fp question upload_limits "Is the 5 MB cap per file or per upload?"
|
|
500
|
-
fp question upload_limits --body "Does the cap apply to admins?" --project
|
|
506
|
+
fp question upload_limits --body "Does the cap apply to admins?" --project acme
|
|
501
507
|
fp questions upload_limits # every question, open and resolved, with answers
|
|
502
508
|
fp questions upload_limits --open --json # only the open ones
|
|
503
509
|
```
|
|
@@ -522,7 +528,7 @@ proposed change. Refusals, printed verbatim:
|
|
|
522
528
|
Read or join the team's conversation on a requirement, and tag people or agents in it.
|
|
523
529
|
|
|
524
530
|
```bash
|
|
525
|
-
fp comments print_container_qr --project
|
|
531
|
+
fp comments print_container_qr --project acme # comments + who can be tagged
|
|
526
532
|
fp comments print_container_qr --body "The label redesign dropped this — retire it?" \
|
|
527
533
|
--tag andy@example.com
|
|
528
534
|
fp comments print_container_qr --body "Can you re-check this against the new label?" --tag claude
|
|
@@ -545,13 +551,13 @@ possible conflicts. **Read-only — it never files a proposal.** Report first; a
|
|
|
545
551
|
picks which proposals to file (each moves its requirement to draft).
|
|
546
552
|
|
|
547
553
|
```bash
|
|
548
|
-
fp analyze --project
|
|
549
|
-
fp analyze print_container_qr --project
|
|
550
|
-
fp analyze --project
|
|
551
|
-
fp analyze --project
|
|
552
|
-
fp analyze --project
|
|
553
|
-
fp analyze --project
|
|
554
|
-
fp analyze --project
|
|
554
|
+
fp analyze --project acme # active + draft requirements
|
|
555
|
+
fp analyze print_container_qr --project acme # one requirement, with suggestions
|
|
556
|
+
fp analyze --project acme --status active # narrow the sweep
|
|
557
|
+
fp analyze --project acme --conflicts # also check contradictions (slower)
|
|
558
|
+
fp analyze --project acme --force # re-run even if the result is current
|
|
559
|
+
fp analyze --project acme --cached # saved results only, no model calls
|
|
560
|
+
fp analyze --project acme --json
|
|
555
561
|
```
|
|
556
562
|
|
|
557
563
|
Analysis costs one model call per requirement, so the sweep runs one request at a time
|
|
@@ -576,7 +582,7 @@ history separately.
|
|
|
576
582
|
|
|
577
583
|
```bash
|
|
578
584
|
fp changes --source-url https://app.fizzy.do/6098707/cards/1434
|
|
579
|
-
fp changes --project
|
|
585
|
+
fp changes --project acme --source-url https://github.com/acme/app/issues/42
|
|
580
586
|
fp changes --github-pr --github-summary
|
|
581
587
|
```
|
|
582
588
|
|
|
@@ -602,7 +608,7 @@ and from `suspect` evidence caused by changed requirement wording.
|
|
|
602
608
|
|
|
603
609
|
```bash
|
|
604
610
|
fp changed-tests # project from .featureparity.yml
|
|
605
|
-
fp changed-tests --project
|
|
611
|
+
fp changed-tests --project acme --surface api
|
|
606
612
|
fp changed-tests --json # complete machine-readable queue
|
|
607
613
|
```
|
|
608
614
|
|
|
@@ -700,10 +706,10 @@ Display the parity matrix. Cells show the state of the evidence filed for each
|
|
|
700
706
|
(requirement, surface) pair.
|
|
701
707
|
|
|
702
708
|
```bash
|
|
703
|
-
fp matrix --project
|
|
704
|
-
fp matrix --project
|
|
705
|
-
fp matrix --project
|
|
706
|
-
fp matrix --project
|
|
709
|
+
fp matrix --project acme # ASCII table
|
|
710
|
+
fp matrix --project acme --csv # CSV export (state names, not glyphs)
|
|
711
|
+
fp matrix --project acme --json # JSON
|
|
712
|
+
fp matrix --project acme --surface api
|
|
707
713
|
```
|
|
708
714
|
|
|
709
715
|
| Glyph | State | Meaning |
|
|
@@ -766,7 +772,7 @@ can be a required status check on a pull request.
|
|
|
766
772
|
|
|
767
773
|
```bash
|
|
768
774
|
fp check # project from .featureparity.yml
|
|
769
|
-
fp check --project
|
|
775
|
+
fp check --project acme --surface api
|
|
770
776
|
fp check --level covered # override the project's level for this run
|
|
771
777
|
fp check --warn-only # print violations, still exit 0
|
|
772
778
|
fp check --json
|
|
@@ -872,11 +878,11 @@ before a key is configured).
|
|
|
872
878
|
```bash
|
|
873
879
|
fp init --detect # suggest slug, surfaces, test commands; writes nothing
|
|
874
880
|
fp init --detect --json
|
|
875
|
-
fp init --project
|
|
876
|
-
fp init --project
|
|
877
|
-
fp init --project
|
|
878
|
-
fp init --project
|
|
879
|
-
fp init --project
|
|
881
|
+
fp init --project acme --surface api
|
|
882
|
+
fp init --project acme --no-workflow # skip the CI workflow
|
|
883
|
+
fp init --project acme --no-agents # skip the AGENTS.md section
|
|
884
|
+
fp init --project acme --force # refresh files written previously
|
|
885
|
+
fp init --project acme --dir path/to/repo
|
|
880
886
|
```
|
|
881
887
|
|
|
882
888
|
| File | Purpose |
|
|
@@ -992,10 +998,10 @@ fp --api-url http://localhost:9292 whoami
|
|
|
992
998
|
Map surfaces to local repo paths (stored locally, not in the web app).
|
|
993
999
|
|
|
994
1000
|
```bash
|
|
995
|
-
fp repos list --project
|
|
996
|
-
fp repos set customer_android ~/code/customer-android --project
|
|
997
|
-
fp repos get customer_android --project
|
|
998
|
-
fp repos unset customer_android --project
|
|
1001
|
+
fp repos list --project acme
|
|
1002
|
+
fp repos set customer_android ~/code/customer-android --project acme --repo org/repo
|
|
1003
|
+
fp repos get customer_android --project acme
|
|
1004
|
+
fp repos unset customer_android --project acme
|
|
999
1005
|
```
|
|
1000
1006
|
|
|
1001
1007
|
## Exit codes
|
|
@@ -1025,7 +1031,7 @@ request failure (`ok: false`).
|
|
|
1025
1031
|
### .featureparity.yml
|
|
1026
1032
|
|
|
1027
1033
|
```yaml
|
|
1028
|
-
project:
|
|
1034
|
+
project: acme # required — the project slug
|
|
1029
1035
|
enforcement: regression # optional — usually omit; the level lives on the project
|
|
1030
1036
|
surface: api # optional — default surface for a single-surface repo
|
|
1031
1037
|
```
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: featureparity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.32
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stowzilla
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http
|