@testsprite/testsprite-cli 0.11.0 → 0.13.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 (99) hide show
  1. package/README.md +52 -44
  2. package/dist/commands/agent.js +16 -13
  3. package/dist/commands/auth.d.ts +19 -0
  4. package/dist/commands/auth.js +60 -24
  5. package/dist/commands/ci.d.ts +86 -1
  6. package/dist/commands/ci.js +470 -9
  7. package/dist/commands/doctor.d.ts +2 -0
  8. package/dist/commands/doctor.js +22 -9
  9. package/dist/commands/init.js +14 -11
  10. package/dist/commands/project-env.d.ts +90 -0
  11. package/dist/commands/project-env.js +486 -0
  12. package/dist/commands/project.d.ts +15 -5
  13. package/dist/commands/project.js +88 -92
  14. package/dist/commands/schedule.d.ts +2 -0
  15. package/dist/commands/schedule.js +18 -10
  16. package/dist/commands/test.d.ts +102 -30
  17. package/dist/commands/test.js +1949 -419
  18. package/dist/commands/testlist.js +77 -21
  19. package/dist/commands/tunnel.d.ts +26 -3
  20. package/dist/commands/tunnel.js +211 -14
  21. package/dist/commands/usage.d.ts +3 -0
  22. package/dist/commands/usage.js +12 -5
  23. package/dist/index.js +47 -23
  24. package/dist/lib/agent-targets.d.ts +3 -3
  25. package/dist/lib/agent-targets.js +2 -2
  26. package/dist/lib/billing-refusal.d.ts +43 -0
  27. package/dist/lib/billing-refusal.js +171 -0
  28. package/dist/lib/bundle.d.ts +5 -0
  29. package/dist/lib/bundle.js +43 -13
  30. package/dist/lib/ci-linkage.d.ts +90 -0
  31. package/dist/lib/ci-linkage.js +181 -0
  32. package/dist/lib/client-factory.d.ts +4 -1
  33. package/dist/lib/client-factory.js +25 -2
  34. package/dist/lib/client-tag.d.ts +13 -0
  35. package/dist/lib/client-tag.js +44 -0
  36. package/dist/lib/config.d.ts +17 -0
  37. package/dist/lib/config.js +20 -1
  38. package/dist/lib/conflict-reason.d.ts +67 -2
  39. package/dist/lib/conflict-reason.js +148 -13
  40. package/dist/lib/credentials.js +56 -14
  41. package/dist/lib/cron.js +8 -1
  42. package/dist/lib/dry-run/samples.d.ts +13 -1
  43. package/dist/lib/dry-run/samples.js +51 -7
  44. package/dist/lib/errors.d.ts +62 -12
  45. package/dist/lib/errors.js +180 -25
  46. package/dist/lib/failing-fe-resolver.d.ts +1 -1
  47. package/dist/lib/failing-fe-resolver.js +3 -3
  48. package/dist/lib/gh-output.d.ts +26 -11
  49. package/dist/lib/gh-output.js +47 -15
  50. package/dist/lib/history-retention.d.ts +8 -0
  51. package/dist/lib/history-retention.js +24 -0
  52. package/dist/lib/http.d.ts +44 -19
  53. package/dist/lib/http.js +53 -26
  54. package/dist/lib/interrupt.d.ts +21 -13
  55. package/dist/lib/interrupt.js +32 -21
  56. package/dist/lib/junit-report.d.ts +11 -1
  57. package/dist/lib/junit-report.js +15 -3
  58. package/dist/lib/local-target.d.ts +33 -1
  59. package/dist/lib/local-target.js +78 -1
  60. package/dist/lib/output.d.ts +27 -1
  61. package/dist/lib/output.js +22 -3
  62. package/dist/lib/plan-poll.d.ts +11 -11
  63. package/dist/lib/plan-poll.js +12 -12
  64. package/dist/lib/plans.types.d.ts +9 -9
  65. package/dist/lib/plans.types.js +3 -3
  66. package/dist/lib/poll.d.ts +2 -2
  67. package/dist/lib/poll.js +9 -3
  68. package/dist/lib/render-error.d.ts +2 -0
  69. package/dist/lib/render-error.js +13 -0
  70. package/dist/lib/response-schemas.d.ts +54 -12
  71. package/dist/lib/response-schemas.js +106 -7
  72. package/dist/lib/runs.types.d.ts +92 -6
  73. package/dist/lib/secret-file.js +72 -14
  74. package/dist/lib/skill-nudge.d.ts +6 -1
  75. package/dist/lib/skill-nudge.js +32 -5
  76. package/dist/lib/target-url-preflight.d.ts +6 -4
  77. package/dist/lib/target-url-preflight.js +64 -51
  78. package/dist/lib/target-url.js +31 -12
  79. package/dist/lib/telemetry.d.ts +172 -3
  80. package/dist/lib/telemetry.js +276 -15
  81. package/dist/lib/ticker.js +93 -4
  82. package/dist/lib/tunnel-session.d.ts +13 -0
  83. package/dist/lib/tunnel-session.js +4 -1
  84. package/dist/lib/tunnel.types.d.ts +12 -2
  85. package/dist/lib/tunnel.types.js +2 -2
  86. package/dist/lib/version-notice.d.ts +20 -1
  87. package/dist/lib/version-notice.js +59 -12
  88. package/dist/lib/wait-exit.d.ts +8 -0
  89. package/dist/lib/wait-exit.js +76 -4
  90. package/dist/lib/workspace-status.d.ts +23 -0
  91. package/dist/lib/workspace-status.js +15 -0
  92. package/dist/version-guard.d.ts +7 -1
  93. package/dist/version-guard.js +19 -1
  94. package/dist/version.d.ts +1 -1
  95. package/dist/version.js +1 -1
  96. package/package.json +4 -4
  97. package/skills/testsprite-onboard.skill.md +4 -4
  98. package/skills/testsprite-verify.codex.md +59 -57
  99. package/skills/testsprite-verify.skill.md +53 -36
@@ -6,9 +6,9 @@ import { ApiError, InterruptError } from '../lib/errors.js';
6
6
  import { type ShutdownHandle } from '../lib/interrupt.js';
7
7
  import type { FetchImpl } from '../lib/http.js';
8
8
  import { type Page } from '../lib/pagination.js';
9
- import type { WaitTimeoutTelemetry } from '../lib/telemetry.js';
9
+ import { type WaitTimeoutTelemetry } from '../lib/telemetry.js';
10
10
  import type { CliGetPlansResponse } from '../lib/plans.types.js';
11
- import type { RunResponse, RunStatus, TriggerRunResponse, RerunResponse, BatchRerunResponse, ListRunsResponse, RunSource, BatchRunFreshResponse, CancelRunResponse } from '../lib/runs.types.js';
11
+ import type { RunResponse, RunStatus, TriggerRunResponse, RerunResponse, BatchRerunResponse, ListRunsResponse, RunSource, BatchRunFreshResponse, CancelRunResponse, RunEnvironmentRef } from '../lib/runs.types.js';
12
12
  import { type LoopbackHost } from '../lib/local-target.js';
13
13
  import { type TunnelClientHandle } from '../lib/tunnel-session.js';
14
14
  import { type TunnelClientOptions } from '../vendor/tunnel-client/index.js';
@@ -184,6 +184,11 @@ export interface CliLatestResult {
184
184
  * (semantically equivalent to `'unresolved'`).
185
185
  */
186
186
  targetUrlSource?: 'run' | 'project-default' | 'unresolved' | null;
187
+ /**
188
+ * The environment the latest run resolved to. Absent on an older backend;
189
+ * `null` when the row names no environment.
190
+ */
191
+ environment?: RunEnvironmentRef | null;
187
192
  failedStepIndex: number | null;
188
193
  failureKind: CliFailureKind;
189
194
  /**
@@ -336,14 +341,14 @@ export interface TestDeps {
336
341
  */
337
342
  sleep?: (ms: number) => Promise<void>;
338
343
  /**
339
- * Graceful-detach coordinator for the `--wait` paths (DEV-331 piece 1).
344
+ * Graceful-detach coordinator for the `--wait` paths.
340
345
  * Defaults to the process-wide `globalShutdown`; tests inject their own
341
346
  * controller and abort it to simulate Ctrl-C deterministically (same
342
347
  * pattern as `sleep` / `fetchImpl`).
343
348
  */
344
349
  shutdown?: ShutdownHandle;
345
350
  /**
346
- * Tunnel-client factory for `test run --local` (DEV-747 piece 3). Defaults
351
+ * Tunnel-client factory for `test run --local`. Defaults
347
352
  * to the vendored `TunnelClient`; tests inject a fake so the command's
348
353
  * contract can be exercised without a real control plane — same pattern as
349
354
  * `sleep` / `fetchImpl` / `shutdown`.
@@ -420,7 +425,7 @@ export interface CliCreateTestResponse {
420
425
  */
421
426
  warnings?: string[];
422
427
  /**
423
- * Server-built Portal deep link for the created test (DEV-737). Same
428
+ * Server-built Portal deep link for the created test. Same
424
429
  * presence/absence contract as `RunResponse.dashboardUrl`
425
430
  * (`withRunDashboardUrl` below): PRESENT (string or falsy) on a backend
426
431
  * that resolved the question at all — a falsy value means "there is no
@@ -435,6 +440,7 @@ export interface CliCreateTestResponse {
435
440
  export declare const CLI_CREATE_PRIORITIES: readonly ["p0", "p1", "p2", "p3"];
436
441
  export type CliCreatePriority = (typeof CLI_CREATE_PRIORITIES)[number];
437
442
  interface CreateOptions extends CommonOptions {
443
+ environment?: string;
438
444
  projectId?: string;
439
445
  type: 'frontend' | 'backend';
440
446
  name: string;
@@ -751,7 +757,7 @@ export interface CliCreateFromPlanResponse extends CliCreateTestResponse {
751
757
  * Caveat: the pinned tag only resolves once that version is actually
752
758
  * released — a locally-built/pre-release checkout may see a 404 until then.
753
759
  */
754
- export declare const PLAN_SCHEMA_URL = "https://raw.githubusercontent.com/TestSprite/testsprite-cli/v0.11.0/schemas/plan.schema.json";
760
+ export declare const PLAN_SCHEMA_URL = "https://raw.githubusercontent.com/TestSprite/testsprite-cli/v0.13.0/schemas/plan.schema.json";
755
761
  /**
756
762
  * The SINGLE canonical example plan. This
757
763
  * exact value (via `PLAN_TEMPLATE_TEXT` below) is:
@@ -799,7 +805,7 @@ export interface CliBatchSpecResult {
799
805
  field?: string;
800
806
  };
801
807
  /**
802
- * Server-built Portal deep link for this created item (DEV-737). Same
808
+ * Server-built Portal deep link for this created item. Same
803
809
  * presence/absence contract as `CliCreateTestResponse.dashboardUrl` —
804
810
  * see that field's doc.
805
811
  */
@@ -870,6 +876,22 @@ export interface CliCreateBatchRunResponse {
870
876
  export declare const DEFAULT_BATCH_RUN_CONCURRENCY = 50;
871
877
  /** Hard upper bound for --max-concurrency. Values above this are rejected with exit 5 (VALIDATION_ERROR). */
872
878
  export declare const MAX_BATCH_CONCURRENCY = 100;
879
+ /**
880
+ * The server's DEFAULT in-flight run cap. Runs from every source count
881
+ * toward it (CLI, portal, schedules, CI), but only CLI run triggers are
882
+ * refused on it; a portal or schedule run over the cap is not. Exceeding it
883
+ * answers RATE_LIMITED with `details.reason: "inflight_cap"`, whose details
884
+ * carry the account's real `cap` and `current`.
885
+ *
886
+ * Quoted in help text only — the server owns the real number and rejects on
887
+ * its own value, so this is documentation, never a client-side gate.
888
+ *
889
+ * Distinct from `--max-concurrency`, whose meaning differs per command: on
890
+ * `create --run` it bounds in-flight triggers, and with `--wait` a slot is
891
+ * held until that run finishes, so lowering it there does bound how many runs
892
+ * are in flight. On `run --all` it bounds the `--wait` poll fan-out only.
893
+ */
894
+ export declare const SERVER_INFLIGHT_RUN_CAP = 50;
873
895
  /** Client-side run-trigger throttle: 50 triggers per 60-second rolling window per key (sits just under the server's 60/min/key cap). */
874
896
  export declare const BATCH_RUN_RATE_LIMIT = 50;
875
897
  /** Rolling window duration (ms) for the client-side trigger rate throttle. */
@@ -900,14 +922,12 @@ export declare const WAIT_POLL_RATE_MAX_OUTER_RETRIES = 3;
900
922
  */
901
923
  /**
902
924
  * Sleep that a termination signal cuts short by rejecting with the signal's
903
- * `InterruptError`, so the caller's existing DEV-331 catch owns the detach UX.
925
+ * `InterruptError`, so the caller's existing catch owns the detach UX.
904
926
  *
905
927
  * Mirrors `HttpClient.sleepBeforeRetry` — an in-flight backoff must not be a
906
- * window where a first Ctrl-C hard-exits with empty stdout. The caller is
907
- * responsible for having ARMED the shutdown scope; a disarmed controller never
908
- * aborts its signal, so this would otherwise sleep straight through the signal.
928
+ * window where a first Ctrl-C waits for a timer before the command exits.
909
929
  */
910
- export declare function sleepUntilOrInterrupt(ms: number, signal: AbortSignal | undefined, sleep: (ms: number) => Promise<void>): Promise<void>;
930
+ export declare function sleepUntilOrInterrupt(ms: number, signal: AbortSignal | undefined, sleep: (ms: number, signal?: AbortSignal) => Promise<void>): Promise<void>;
911
931
  export declare function resolveRateLimitRetryMs(err: ApiError): number;
912
932
  /**
913
933
  * D3: max automatic retry attempts for deferred tests under `--wait`.
@@ -952,6 +972,7 @@ export declare const DEFERRED_RETRY_DEFAULT_SLEEP_MS = 61000;
952
972
  */
953
973
  export declare function isTransientRateLimit(err: ApiError): boolean;
954
974
  interface CreateFromPlanOptions extends CommonOptions {
975
+ environment?: string;
955
976
  /** Path to the JSON file containing one `CliPlanInput`. */
956
977
  planFrom: string;
957
978
  /** Caller-supplied idempotency token; UUIDv4 minted client-side if absent. */
@@ -1006,6 +1027,7 @@ interface CreateFromPlanOptions extends CommonOptions {
1006
1027
  */
1007
1028
  export declare function runCreateFromPlan(opts: CreateFromPlanOptions, deps?: TestDeps): Promise<CliCreateFromPlanResponse>;
1008
1029
  interface CreateBatchOptions extends CommonOptions {
1030
+ environment?: string;
1009
1031
  /** Path to the JSONL file containing one `CliPlanInput` per line. */
1010
1032
  plans: string;
1011
1033
  /**
@@ -1383,6 +1405,8 @@ interface ResultHistoryOptions extends CommonOptions {
1383
1405
  * fresh runs, `undefined` → no filter. Applied to each page after the fetch.
1384
1406
  */
1385
1407
  rerun?: boolean;
1408
+ /** `--env <name>`: only runs whose credentials came from this environment (server-side filter). */
1409
+ environment?: string;
1386
1410
  columns?: string;
1387
1411
  noHeader?: boolean;
1388
1412
  }
@@ -1461,6 +1485,13 @@ export declare function runFailureGet(opts: FailureGetOptions, deps?: TestDeps):
1461
1485
  interface RunTestRunOptions extends CommonOptions {
1462
1486
  testId: string;
1463
1487
  targetUrl?: string;
1488
+ /**
1489
+ * `false` only when the caller passed `--no-auto-heal`. Anything
1490
+ * else leaves the field off the wire, which is how the server's protected
1491
+ * default ("heal, but replay a user-authored body") is requested; see
1492
+ * `TriggerRunBody.autoHeal` for why an explicit `true` is never sent.
1493
+ */
1494
+ autoHeal?: false;
1464
1495
  /**
1465
1496
  * Skip the pre-charge --target-url reachability preflight (zero
1466
1497
  * network calls). Also set by a delegating caller (`runCreate`/
@@ -1532,6 +1563,14 @@ interface RunTestRunOptions extends CommonOptions {
1532
1563
  * ordinary runs, where detaching leaves a run that can still pass.
1533
1564
  */
1534
1565
  cancelOnInterrupt?: boolean;
1566
+ /**
1567
+ * `--env <name>` — the project environment whose credentials, auto-auth and
1568
+ * OTP settings this run uses. Composes with `--local` / `--target-url` (those
1569
+ * choose WHERE the browser goes; this chooses WHOSE login it uses). Absent →
1570
+ * the project's default environment, byte-identical to today. Feature-gated
1571
+ * per workspace: checked client-side before anything is minted or billed.
1572
+ */
1573
+ environment?: string;
1535
1574
  }
1536
1575
  interface RunTestWaitOptions extends CommonOptions {
1537
1576
  runId: string;
@@ -1567,6 +1606,8 @@ interface RunTestRerunOptions extends CommonOptions {
1567
1606
  autoHealExplicit: boolean;
1568
1607
  /** --skip-dependencies: BE only. Don't expand the producer/teardown closure. */
1569
1608
  skipDependencies: boolean;
1609
+ /** `--env <name>`: see `RunTestRunOptions.environment` — the environment to replay against. */
1610
+ environment?: string;
1570
1611
  /** --max-concurrency: bounds the --wait poll fan-out (batch / BE closure). */
1571
1612
  maxConcurrency: number;
1572
1613
  /** --idempotency-key: caller-supplied; auto-minted UUID when absent. */
@@ -1602,6 +1643,13 @@ interface RunTestRerunOptions extends CommonOptions {
1602
1643
  ghOutput?: boolean;
1603
1644
  /** --summary-file: also write the reduced machine summary JSON to this path. */
1604
1645
  summaryFile?: string;
1646
+ /**
1647
+ * --allow-empty: with --all, exit 0 (instead of failing with exit 5) when the
1648
+ * resolved test set is EMPTY — no tests match --filter/--status/--skip-terminal,
1649
+ * or the project has none. Mirrors `test run --all --allow-empty`;
1650
+ * it does NOT cover ids the server rejected (notFound still gates, exit 4).
1651
+ */
1652
+ allowEmpty?: boolean;
1605
1653
  }
1606
1654
  /** Minimal client surface the backend-test wait fallback needs. */
1607
1655
  interface ResultReadClient {
@@ -1649,14 +1697,6 @@ export declare function makeBackendWaitFallback(args: {
1649
1697
  resolveNotBefore: (run: RunResponse) => string | undefined;
1650
1698
  onResolved?: (testId: string, status: CliPublicStatus) => void;
1651
1699
  }): (run: RunResponse, elapsedMs: number, signal: AbortSignal) => Promise<RunResponse | null>;
1652
- /**
1653
- * `test run <test-id>` — M3.3 piece-3.
1654
- *
1655
- * Triggers a run via `POST /api/cli/v1/tests/{testId}/runs`. With
1656
- * `--wait`, polls until terminal status (via `pollRunUntilTerminal`).
1657
- * Exit code is 0 on `passed`, 1 on `failed`/`blocked`/`cancelled`,
1658
- * 7 on timeout.
1659
- */
1660
1700
  export declare function runTestRun(opts: RunTestRunOptions, deps?: TestDeps): Promise<TriggerRunResponse | RunResponse>;
1661
1701
  /** One row of the `test wait <run-id...>` multi-run payload. */
1662
1702
  export interface CliMultiWaitResult {
@@ -1698,7 +1738,7 @@ export interface CliCancelResultRow {
1698
1738
  conflictStatus?: string;
1699
1739
  error?: string;
1700
1740
  }
1701
- /** JSON payload for a multi-id `test cancel` — per piece-3 CXL-11. */
1741
+ /** JSON payload for a multi-id `test cancel`. */
1702
1742
  export interface CliCancelSummary {
1703
1743
  cancelled: string[];
1704
1744
  alreadyCancelled: string[];
@@ -1710,7 +1750,7 @@ export interface CliCancelSummary {
1710
1750
  /**
1711
1751
  * Runs that errored for a reason other than 404/409 (e.g. auth, transport).
1712
1752
  * Always present — an empty array on full success — so machine consumers
1713
- * can rely on a stable shape (DEV-331 codex finding 2).
1753
+ * can rely on a stable shape.
1714
1754
  */
1715
1755
  errors: Array<{
1716
1756
  runId: string;
@@ -1718,13 +1758,13 @@ export interface CliCancelSummary {
1718
1758
  }>;
1719
1759
  }
1720
1760
  /**
1721
- * `test cancel <run-id...>` — DEV-331 piece 3.
1761
+ * `test cancel <run-id...>`.
1722
1762
  *
1723
1763
  * User-initiated cancel of one or more queued/running runs via
1724
- * `POST /api/cli/v1/runs/{runId}/cancel`. Naturally idempotent (D10): a
1764
+ * `POST /api/cli/v1/runs/{runId}/cancel`. Naturally idempotent: a
1725
1765
  * repeat cancel of the same run is a 200 `alreadyCancelled` success, not an
1726
- * error. Dispatches serially (per-id volume is tiny — no batch endpoint,
1727
- * D8 "Batch-level cancel endpoint... YAGNI").
1766
+ * error. Dispatches serially (per-id volume is tiny — no batch endpoint;
1767
+ * a batch-level cancel endpoint would be YAGNI).
1728
1768
  *
1729
1769
  * Single id: renders the returned run card (`status cancelled`); an
1730
1770
  * `alreadyCancelled` response adds an `[advisory]` line. Exit code mirrors
@@ -1771,9 +1811,17 @@ interface RunTestRunAllOptions extends CommonOptions {
1771
1811
  * --allow-empty: exit 0 (instead of failing) when the batch dispatches ZERO
1772
1812
  * tests (all skipped / empty project / --filter matched nothing). Default off:
1773
1813
  * a zero-dispatch `--all` is a CI false-green, so it fails with exit 5 by
1774
- * default and still emits the summary / annotation / JUnit report (DEV-1046).
1814
+ * default and still emits the summary / annotation / JUnit report.
1775
1815
  */
1776
1816
  allowEmpty?: boolean;
1817
+ /** See `RunTestRunOptions.autoHeal`. */
1818
+ autoHeal?: false;
1819
+ /** `--env <name>`: see `RunTestRunOptions.environment` — applied to every test in the batch. */
1820
+ environment?: string;
1821
+ /** Per-run URL override for every frontend test in the batch. */
1822
+ targetUrl?: string;
1823
+ /** Skip the pre-charge target URL reachability probe. */
1824
+ skipPreflight?: boolean;
1777
1825
  }
1778
1826
  export declare function writeBatchJUnitReportIfRequested(opts: {
1779
1827
  report?: JUnitReportFormat;
@@ -1793,6 +1841,30 @@ export declare function writeBatchJUnitReportIfRequested(opts: {
1793
1841
  * With `--wait`, polls each accepted runId.
1794
1842
  */
1795
1843
  export declare function runTestRunAll(opts: RunTestRunAllOptions, deps?: TestDeps): Promise<BatchRunFreshResponse | undefined>;
1844
+ interface RunTestRunLocalBatchOptions extends CommonOptions {
1845
+ testIds: string[];
1846
+ all: boolean;
1847
+ projectId?: string;
1848
+ nameFilter?: string;
1849
+ localPort: number;
1850
+ localHost: LoopbackHost;
1851
+ skipPreflight: boolean;
1852
+ tunnelClientId?: string;
1853
+ cancelOnInterrupt: boolean;
1854
+ timeoutSeconds: number;
1855
+ maxConcurrency: number;
1856
+ idempotencyKey?: string;
1857
+ report?: JUnitReportFormat;
1858
+ reportFile?: string;
1859
+ reportSuiteName?: string;
1860
+ ghOutput?: boolean;
1861
+ summaryFile?: string;
1862
+ allowEmpty: boolean;
1863
+ autoHeal?: false;
1864
+ environment?: string;
1865
+ }
1866
+ /** One bounded trigger-and-wait pool shares one local tunnel for its full lifetime. */
1867
+ export declare function runTestRunLocalBatch(opts: RunTestRunLocalBatchOptions, deps?: TestDeps): Promise<void>;
1796
1868
  /**
1797
1869
  * `test rerun` — M3.4 piece-3.
1798
1870
  *
@@ -1908,7 +1980,7 @@ interface PlanAcceptOptions extends CommonOptions {
1908
1980
  * polls until staged/failed/timeout), so it is pinned directly. */
1909
1981
  export declare function renderPlanGenerateResultText(plans: CliGetPlansResponse, projectId: string, creditsUsed: number | null, skippedCategories?: number | null): string;
1910
1982
  /**
1911
- * `test plan generate --project <id>` — DEV-384 V3-B.
1983
+ * `test plan generate --project <id>`.
1912
1984
  *
1913
1985
  * Drives the server's generation ladder (exploration → strategy →
1914
1986
  * proposals) through `runGenerationLadder` and renders the staged
@@ -1922,7 +1994,7 @@ export declare function runPlanGenerate(opts: PlanGenerateOptions, deps?: TestDe
1922
1994
  /** Derived, additive result the CLI prints for `accept` — the server truth
1923
1995
  * (`acceptedCount`, `caseKeys`) plus the client-side discard count. A
1924
1996
  * frontend/API split used to be derived from the selected proposals' `type`
1925
- * fields; it was dropped (DEV-384 review F10) — the backend fills every
1997
+ * fields; it was dropped — the backend fills every
1926
1998
  * proposal's `type` from the PROJECT, so the split was always (all, 0) or
1927
1999
  * (0, all) and would be actively wrong for mixed projects. */
1928
2000
  interface PlanAcceptResult {
@@ -1932,7 +2004,7 @@ interface PlanAcceptResult {
1932
2004
  discardedCount: number;
1933
2005
  }
1934
2006
  /**
1935
- * `test plan accept --project <id> [--only <ids...>]` — DEV-384 V3-B.
2007
+ * `test plan accept --project <id> [--only <ids...>]`.
1936
2008
  *
1937
2009
  * Reads the staged batch, selects all of it (or the `--only` subset),
1938
2010
  * and POSTs an EXPLICIT id list. Free — the generation charge already