@structured-vibe-coding/core 0.12.2 → 0.13.1

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.
@@ -3,7 +3,8 @@ import {
3
3
  isInitialized,
4
4
  loadConfig,
5
5
  saveConfig
6
- } from "./chunk-KZHNYGD6.js";
6
+ } from "./chunk-OJFMJHNL.js";
7
+ import "./chunk-67AUAGNV.js";
7
8
  import "./chunk-7MJYPJMR.js";
8
9
  import "./chunk-EPFURATC.js";
9
10
  export {
@@ -0,0 +1,23 @@
1
+ import {
2
+ findFeaturesBacklogPath,
3
+ listBacklogFeatures,
4
+ parseFeaturesBacklog,
5
+ promoteGreenfieldToMemory,
6
+ startFeatureFromBacklog,
7
+ startGreenfield,
8
+ updateFeatureStatus
9
+ } from "./chunk-SM734TFW.js";
10
+ import "./chunk-C725DWSB.js";
11
+ import "./chunk-A752UVPF.js";
12
+ import "./chunk-67AUAGNV.js";
13
+ import "./chunk-7MJYPJMR.js";
14
+ import "./chunk-EPFURATC.js";
15
+ export {
16
+ findFeaturesBacklogPath,
17
+ listBacklogFeatures,
18
+ parseFeaturesBacklog,
19
+ promoteGreenfieldToMemory,
20
+ startFeatureFromBacklog,
21
+ startGreenfield,
22
+ updateFeatureStatus
23
+ };
package/dist/index.d.ts CHANGED
@@ -1222,6 +1222,7 @@ declare function switchWorkflow(projectRoot: string, config: Config, changeId: s
1222
1222
  declare function completeChange(projectRoot: string, config: Config, changeId: string): Promise<{
1223
1223
  archivedTo: string | null;
1224
1224
  ctx: ChangeContext;
1225
+ promoted?: string[];
1225
1226
  }>;
1226
1227
 
1227
1228
  /**
@@ -1697,4 +1698,68 @@ declare function buildRefinePlan(opts: BuildRefinePlanOptions): Promise<RefinePl
1697
1698
  /** Write refine brief under the change pack (and a pointer under .sdd/). */
1698
1699
  declare function writeRefineBrief(plan: RefinePlan, projectRoot: string): Promise<string>;
1699
1700
 
1700
- export { AGENT_INTEGRATIONS, AGENT_TARGET_OPTIONS, ALL_AGENT_TARGETS, type AdapterExtractResult, AdapterRegistry, type AdvanceResult, type AgentIntegration, type AgentTarget, type AgentTargetOption, type ArtifactDef, ArtifactDefSchema, type BuildRefinePlanOptions, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type CodeContextCaps, type CodeContextGap, type CodeContextGapCode, type CodeContextRequest, type CodeContextResult, type CodeContextSummary, type CodeSlice, type Complexity, type Config, ConfigSchema, type CreateChangeInput, DEFAULT_CODE_CONTEXT_CAPS, DEFAULT_INIT_INTEGRATION, type FocusPlan, type Gate, GateSchema, type GenerateCodeContextDeps, type InitOptions, type InitResult, type InstallAgentOptions, type InstallAgentResult, type InstallAgentsOptions, type InstallAgentsResult, type InstalledAgentSnapshot, type LanguageAdapter, PROTOCOL_MD, type RefineArtifactRef, type RefineMode, type RefinePlan, SDD_AGENT_ROLES, SDD_DIR, type SddAgentRole, type SddAgentRoleId, type Stage, StageSchema, type SymbolInfo, type SymbolKind, VerifyCommandSchema, type VerifyResult, type Workflow, WorkflowSchema, activePointerPath, activeStages, advanceStage, agentHostPaths, agentKickoffMessage, approveGate, archiveDir, buildAgentPrompt, buildContext, buildRefinePlan, canLeaveStage, changeDirName, changeMetaPath, changePath, changesDir, classifyPath, clearActiveIf, completeChange, configPath, copyDir, copyDirSkipExisting, createChange, defaultConfig, defaultMemoryDir, defaultTemplatesDir, defaultWorkflowsDir, defaultsRoot, domainsDir, ensureDir, fallbackAdapter, fallbackIncompleteStageId, firstActiveStageId, formatJsonSummary, formatStatus, generateCodeContext, getActiveChangeId, getIntegration, getStage, incompletePriorStageErrors, inferComplexity, initProject, installAgentIntegration, installAgentIntegrations, integrationKeyFor, isIgnoredPath, isInitialized, isSecretPath, isStageSkipped, isSubstantiveArtifactContent, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadInstalledAgent, loadWorkflow, memoryDir, mergeCaps, nextStageId, nowIso, optionForTarget, parseAgentTargets, parseIntegration, pathExists, readText, readYaml, recommendWorkflow, refreshActiveAgentContext, removeOtherAgentHosts, removePath, renderThinAgent, resolveChangeId, resolveFocus, resolveStages, runLocalVerify, saveChangeMeta, saveConfig, sddRoot, setActiveChange, shouldAutoSkip, skipStage, slugify, switchWorkflow, templatesDir, todayIsoDate, tokenizeKeywords, typescriptAdapter, uniqueChangeDirName, workflowsDir, writeAgentHandoff, writeRefineBrief, writeText, writeTextIfMissing, writeYaml };
1701
+ /**
1702
+ * Greenfield product bootstrap: one-line idea → vision/requirements/features/architecture,
1703
+ * then implement each backlog item as a normal change pack.
1704
+ */
1705
+
1706
+ interface GreenfieldFeature {
1707
+ id: string;
1708
+ name: string;
1709
+ status: string;
1710
+ priority: string;
1711
+ workflow: string;
1712
+ summary: string;
1713
+ requirements: string;
1714
+ notes: string;
1715
+ /** Source file the feature was parsed from */
1716
+ sourcePath: string;
1717
+ }
1718
+ interface StartGreenfieldInput {
1719
+ projectRoot: string;
1720
+ config: Config;
1721
+ idea: string;
1722
+ }
1723
+ interface StartGreenfieldResult {
1724
+ ctx: ChangeContext;
1725
+ idea: string;
1726
+ visionPath: string;
1727
+ }
1728
+ interface StartFeatureInput {
1729
+ projectRoot: string;
1730
+ config: Config;
1731
+ featureId: string;
1732
+ /** Override workflow from backlog (default: feature field or "feature") */
1733
+ workflowName?: string;
1734
+ }
1735
+ /**
1736
+ * Start a greenfield discovery change from a one-line product idea.
1737
+ * Seeds vision.md with the idea; agent fills the rest via stages.
1738
+ */
1739
+ declare function startGreenfield(input: StartGreenfieldInput): Promise<StartGreenfieldResult>;
1740
+ /**
1741
+ * Parse feature backlog markdown (F-001 blocks).
1742
+ */
1743
+ declare function parseFeaturesBacklog(markdown: string, sourcePath: string): GreenfieldFeature[];
1744
+ /**
1745
+ * Locate features.md: memory/features.md, else active change, else latest greenfield pack.
1746
+ */
1747
+ declare function findFeaturesBacklogPath(projectRoot: string, config: Config): Promise<string | null>;
1748
+ declare function listBacklogFeatures(projectRoot: string, config: Config): Promise<{
1749
+ path: string;
1750
+ features: GreenfieldFeature[];
1751
+ }>;
1752
+ /**
1753
+ * Start a normal change pack from a backlog feature id (e.g. F-001).
1754
+ */
1755
+ declare function startFeatureFromBacklog(input: StartFeatureInput): Promise<{
1756
+ ctx: ChangeContext;
1757
+ feature: GreenfieldFeature;
1758
+ }>;
1759
+ declare function updateFeatureStatus(backlogPath: string, featureId: string, status: string): Promise<void>;
1760
+ /**
1761
+ * Copy greenfield change artifacts into memory/ (product spine).
1762
+ */
1763
+ declare function promoteGreenfieldToMemory(projectRoot: string, config: Config, changeId: string): Promise<string[]>;
1764
+
1765
+ export { AGENT_INTEGRATIONS, AGENT_TARGET_OPTIONS, ALL_AGENT_TARGETS, type AdapterExtractResult, AdapterRegistry, type AdvanceResult, type AgentIntegration, type AgentTarget, type AgentTargetOption, type ArtifactDef, ArtifactDefSchema, type BuildRefinePlanOptions, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type CodeContextCaps, type CodeContextGap, type CodeContextGapCode, type CodeContextRequest, type CodeContextResult, type CodeContextSummary, type CodeSlice, type Complexity, type Config, ConfigSchema, type CreateChangeInput, DEFAULT_CODE_CONTEXT_CAPS, DEFAULT_INIT_INTEGRATION, type FocusPlan, type Gate, GateSchema, type GenerateCodeContextDeps, type GreenfieldFeature, type InitOptions, type InitResult, type InstallAgentOptions, type InstallAgentResult, type InstallAgentsOptions, type InstallAgentsResult, type InstalledAgentSnapshot, type LanguageAdapter, PROTOCOL_MD, type RefineArtifactRef, type RefineMode, type RefinePlan, SDD_AGENT_ROLES, SDD_DIR, type SddAgentRole, type SddAgentRoleId, type Stage, StageSchema, type StartFeatureInput, type StartGreenfieldInput, type StartGreenfieldResult, type SymbolInfo, type SymbolKind, VerifyCommandSchema, type VerifyResult, type Workflow, WorkflowSchema, activePointerPath, activeStages, advanceStage, agentHostPaths, agentKickoffMessage, approveGate, archiveDir, buildAgentPrompt, buildContext, buildRefinePlan, canLeaveStage, changeDirName, changeMetaPath, changePath, changesDir, classifyPath, clearActiveIf, completeChange, configPath, copyDir, copyDirSkipExisting, createChange, defaultConfig, defaultMemoryDir, defaultTemplatesDir, defaultWorkflowsDir, defaultsRoot, domainsDir, ensureDir, fallbackAdapter, fallbackIncompleteStageId, findFeaturesBacklogPath, firstActiveStageId, formatJsonSummary, formatStatus, generateCodeContext, getActiveChangeId, getIntegration, getStage, incompletePriorStageErrors, inferComplexity, initProject, installAgentIntegration, installAgentIntegrations, integrationKeyFor, isIgnoredPath, isInitialized, isSecretPath, isStageSkipped, isSubstantiveArtifactContent, listBacklogFeatures, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadInstalledAgent, loadWorkflow, memoryDir, mergeCaps, nextStageId, nowIso, optionForTarget, parseAgentTargets, parseFeaturesBacklog, parseIntegration, pathExists, promoteGreenfieldToMemory, readText, readYaml, recommendWorkflow, refreshActiveAgentContext, removeOtherAgentHosts, removePath, renderThinAgent, resolveChangeId, resolveFocus, resolveStages, runLocalVerify, saveChangeMeta, saveConfig, sddRoot, setActiveChange, shouldAutoSkip, skipStage, slugify, startFeatureFromBacklog, startGreenfield, switchWorkflow, templatesDir, todayIsoDate, tokenizeKeywords, typescriptAdapter, uniqueChangeDirName, updateFeatureStatus, workflowsDir, writeAgentHandoff, writeRefineBrief, writeText, writeTextIfMissing, writeYaml };