@structured-vibe-coding/core 0.12.2 → 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.
- package/README.md +1 -0
- package/defaults/memory/index.md +3 -0
- package/defaults/templates/features.md +42 -0
- package/defaults/templates/greenfield-architecture.md +39 -0
- package/defaults/templates/requirements.md +29 -0
- package/defaults/templates/vision.md +34 -0
- package/defaults/workflows/greenfield.yaml +92 -0
- package/dist/{agents-R4RMNXOS.js → agents-WL3PNTJL.js} +5 -2
- package/dist/change-context-W4HDO2IK.js +23 -0
- package/dist/{chunk-KZHNYGD6.js → chunk-67AUAGNV.js} +1 -38
- package/dist/chunk-A752UVPF.js +317 -0
- package/dist/chunk-C725DWSB.js +122 -0
- package/dist/chunk-OJFMJHNL.js +42 -0
- package/dist/{chunk-24S2YWWL.js → chunk-S7SHVKG4.js} +22 -435
- package/dist/chunk-SM734TFW.js +784 -0
- package/dist/{config-4QZMRSL3.js → config-ZYEEIRXJ.js} +2 -1
- package/dist/greenfield-NTLW6XBL.js +23 -0
- package/dist/index.d.ts +66 -1
- package/dist/index.js +103 -537
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 };
|