sequant 2.1.1 → 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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/src/commands/init.js +4 -3
- package/dist/src/commands/run-compat.d.ts +14 -0
- package/dist/src/commands/run-compat.js +12 -0
- package/dist/src/commands/run.d.ts +4 -26
- package/dist/src/commands/run.js +92 -765
- package/dist/src/commands/status.js +9 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +9 -0
- package/dist/src/lib/errors.d.ts +93 -0
- package/dist/src/lib/errors.js +97 -0
- package/dist/src/lib/settings.d.ts +236 -0
- package/dist/src/lib/settings.js +482 -37
- package/dist/src/lib/workflow/batch-executor.js +12 -4
- package/dist/src/lib/workflow/config-resolver.d.ts +50 -0
- package/dist/src/lib/workflow/config-resolver.js +167 -0
- package/dist/src/lib/workflow/error-classifier.d.ts +17 -7
- package/dist/src/lib/workflow/error-classifier.js +113 -15
- package/dist/src/lib/workflow/phase-executor.js +14 -2
- package/dist/src/lib/workflow/run-log-schema.d.ts +12 -0
- package/dist/src/lib/workflow/run-log-schema.js +7 -1
- package/dist/src/lib/workflow/run-orchestrator.d.ts +124 -0
- package/dist/src/lib/workflow/run-orchestrator.js +482 -0
- package/package.json +1 -1
- package/templates/skills/assess/SKILL.md +84 -35
- package/templates/skills/exec/SKILL.md +7 -27
- package/templates/skills/fullsolve/SKILL.md +329 -137
- package/templates/skills/qa/SKILL.md +23 -46
|
@@ -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
|
-
|
|
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
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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>;
|