sequant 2.1.0 → 2.1.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sequant",
3
3
  "description": "Structured workflow system for Claude Code - GitHub issue resolution with spec, exec, test, and QA phases",
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "author": {
6
6
  "name": "sequant-io",
7
7
  "email": "hello@sequant.io"
@@ -8,7 +8,7 @@ import { detectStack, detectAllStacks, getStackConfig, detectPackageManager, get
8
8
  import { copyTemplates } from "../lib/templates.js";
9
9
  import { createManifest } from "../lib/manifest.js";
10
10
  import { saveConfig } from "../lib/config.js";
11
- import { createDefaultSettings } from "../lib/settings.js";
11
+ import { createDefaultSettings, generateSettingsReference, } from "../lib/settings.js";
12
12
  import { detectAndSaveConventions } from "../lib/conventions-detector.js";
13
13
  import { fileExists, ensureDir, readFile, writeFile } from "../lib/fs.js";
14
14
  import { generateAgentsMd, writeAgentsMd } from "../lib/agents-md.js";
@@ -348,11 +348,12 @@ export async function initCommand(options) {
348
348
  await saveStackConfig(stackConfig);
349
349
  console.log(chalk.blue("📋 Saved multi-stack configuration"));
350
350
  }
351
- // Create default settings
351
+ // Create default settings + reference doc (AC-4)
352
352
  const settingsSpinner = ui.spinner("Creating default settings...");
353
353
  settingsSpinner.start();
354
354
  await createDefaultSettings();
355
- settingsSpinner.succeed("Created default settings");
355
+ await writeFile(".sequant/settings.reference.md", generateSettingsReference());
356
+ settingsSpinner.succeed("Created default settings + reference doc");
356
357
  // Detect codebase conventions
357
358
  const conventionsSpinner = ui.spinner("Detecting codebase conventions...");
358
359
  conventionsSpinner.start();
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Backward-compatible re-exports from run.ts.
3
+ *
4
+ * Consumers that import workflow utilities from "commands/run" continue to work.
5
+ * New code should import directly from the source modules.
6
+ */
7
+ export { normalizeCommanderOptions } from "../lib/workflow/config-resolver.js";
8
+ export { parseQaVerdict, formatDuration, executePhaseWithRetry, } from "../lib/workflow/phase-executor.js";
9
+ export { detectDefaultBranch, checkWorktreeFreshness, removeStaleWorktree, listWorktrees, getWorktreeChangedFiles, getWorktreeDiffStats, readCacheMetrics, filterResumedPhases, ensureWorktree, createCheckpointCommit, reinstallIfLockfileChanged, rebaseBeforePR, createPR, } from "../lib/workflow/worktree-manager.js";
10
+ export type { WorktreeInfo, RebaseResult, PRCreationResult, } from "../lib/workflow/worktree-manager.js";
11
+ export { detectPhasesFromLabels, parseRecommendedWorkflow, determinePhasesForIssue, } from "../lib/workflow/phase-mapper.js";
12
+ export { getIssueInfo, sortByDependencies, parseBatches, getEnvConfig, executeBatch, runIssueWithLogging, } from "../lib/workflow/batch-executor.js";
13
+ export type { RunOptions } from "../lib/workflow/types.js";
14
+ export { logNonFatalWarning } from "../lib/workflow/run-orchestrator.js";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Backward-compatible re-exports from run.ts.
3
+ *
4
+ * Consumers that import workflow utilities from "commands/run" continue to work.
5
+ * New code should import directly from the source modules.
6
+ */
7
+ export { normalizeCommanderOptions } from "../lib/workflow/config-resolver.js";
8
+ export { parseQaVerdict, formatDuration, executePhaseWithRetry, } from "../lib/workflow/phase-executor.js";
9
+ export { detectDefaultBranch, checkWorktreeFreshness, removeStaleWorktree, listWorktrees, getWorktreeChangedFiles, getWorktreeDiffStats, readCacheMetrics, filterResumedPhases, ensureWorktree, createCheckpointCommit, reinstallIfLockfileChanged, rebaseBeforePR, createPR, } from "../lib/workflow/worktree-manager.js";
10
+ export { detectPhasesFromLabels, parseRecommendedWorkflow, determinePhasesForIssue, } from "../lib/workflow/phase-mapper.js";
11
+ export { getIssueInfo, sortByDependencies, parseBatches, getEnvConfig, executeBatch, runIssueWithLogging, } from "../lib/workflow/batch-executor.js";
12
+ export { logNonFatalWarning } from "../lib/workflow/run-orchestrator.js";
@@ -1,27 +1,5 @@
1
- /**
2
- * sequant run - Execute workflow for GitHub issues
3
- *
4
- * Orchestrator module that composes focused workflow modules:
5
- * - worktree-manager: Worktree lifecycle (ensure, list, cleanup, changed files)
6
- * - phase-executor: Phase execution with retry and failure handling
7
- * - phase-mapper: Label-to-phase detection and workflow parsing
8
- * - batch-executor: Batch execution, dependency sorting, issue logging
9
- */
10
- /** @internal Log a non-fatal warning: one-line summary always, detail in verbose. */
11
- export declare function logNonFatalWarning(message: string, error: unknown, verbose: boolean): void;
12
- import type { RunOptions } from "../lib/workflow/batch-executor.js";
13
- export { parseQaVerdict, formatDuration, executePhaseWithRetry, } from "../lib/workflow/phase-executor.js";
14
- export { detectDefaultBranch, checkWorktreeFreshness, removeStaleWorktree, listWorktrees, getWorktreeChangedFiles, getWorktreeDiffStats, readCacheMetrics, filterResumedPhases, ensureWorktree, createCheckpointCommit, reinstallIfLockfileChanged, rebaseBeforePR, createPR, } from "../lib/workflow/worktree-manager.js";
15
- export type { WorktreeInfo, RebaseResult, PRCreationResult, } from "../lib/workflow/worktree-manager.js";
16
- export { detectPhasesFromLabels, parseRecommendedWorkflow, determinePhasesForIssue, } from "../lib/workflow/phase-mapper.js";
17
- export { getIssueInfo, sortByDependencies, parseBatches, getEnvConfig, executeBatch, runIssueWithLogging, } from "../lib/workflow/batch-executor.js";
18
- export type { RunOptions } from "../lib/workflow/batch-executor.js";
19
- /**
20
- * Normalize Commander.js --no-X flags into typed RunOptions fields.
21
- * Replaces the `as any` cast (#402 AC-4).
22
- */
23
- export declare function normalizeCommanderOptions(options: RunOptions): RunOptions;
24
- /**
25
- * Main run command
26
- */
1
+ /** sequant run — Thin CLI adapter that delegates to RunOrchestrator. */
2
+ import type { RunOptions } from "../lib/workflow/types.js";
3
+ export * from "./run-compat.js";
4
+ /** Parse CLI args validate delegate to RunOrchestrator.run() → display summary. */
27
5
  export declare function runCommand(issues: string[], options: RunOptions): Promise<void>;