@structured-vibe-coding/core 0.5.0 → 0.5.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.
|
@@ -255,15 +255,6 @@ async function saveConfig(projectRoot, config) {
|
|
|
255
255
|
function defaultConfig() {
|
|
256
256
|
return ConfigSchema.parse({});
|
|
257
257
|
}
|
|
258
|
-
function projectPaths(projectRoot, config) {
|
|
259
|
-
return {
|
|
260
|
-
sdd: sddRoot(projectRoot),
|
|
261
|
-
config: configPath(projectRoot),
|
|
262
|
-
workflows: workflowsDir(projectRoot),
|
|
263
|
-
templates: templatesDir(projectRoot),
|
|
264
|
-
memory: memoryDir(projectRoot, config)
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
258
|
|
|
268
259
|
// src/change.ts
|
|
269
260
|
import { join as join3 } from "pathe";
|
|
@@ -364,17 +355,6 @@ function nextStageId(workflow, meta) {
|
|
|
364
355
|
}
|
|
365
356
|
return null;
|
|
366
357
|
}
|
|
367
|
-
function previousStageId(workflow, meta) {
|
|
368
|
-
const all = resolveStages(workflow, meta);
|
|
369
|
-
const activeIds = new Set(activeStages(workflow, meta).map((s) => s.id));
|
|
370
|
-
const start = all.findIndex((s) => s.id === meta.stage);
|
|
371
|
-
if (start <= 0) return null;
|
|
372
|
-
for (let i = start - 1; i >= 0; i--) {
|
|
373
|
-
const id = all[i].id;
|
|
374
|
-
if (activeIds.has(id)) return id;
|
|
375
|
-
}
|
|
376
|
-
return null;
|
|
377
|
-
}
|
|
378
358
|
function firstActiveStageId(workflow, meta) {
|
|
379
359
|
return activeStages(workflow, meta)[0]?.id ?? null;
|
|
380
360
|
}
|
|
@@ -518,7 +498,7 @@ async function createChange(input) {
|
|
|
518
498
|
await materializeStageArtifacts(projectRoot, config, id, workflow, meta, firstStage);
|
|
519
499
|
await setActiveChange(projectRoot, config, id);
|
|
520
500
|
try {
|
|
521
|
-
const { refreshActiveAgentContext: refreshActiveAgentContext2 } = await import("./agents-
|
|
501
|
+
const { refreshActiveAgentContext: refreshActiveAgentContext2 } = await import("./agents-MIMBQVHE.js");
|
|
522
502
|
await refreshActiveAgentContext2(projectRoot);
|
|
523
503
|
} catch {
|
|
524
504
|
}
|
|
@@ -738,7 +718,7 @@ async function advanceStage(projectRoot, config, changeId, opts) {
|
|
|
738
718
|
stage
|
|
739
719
|
);
|
|
740
720
|
try {
|
|
741
|
-
const { refreshActiveAgentContext: refreshActiveAgentContext2 } = await import("./agents-
|
|
721
|
+
const { refreshActiveAgentContext: refreshActiveAgentContext2 } = await import("./agents-MIMBQVHE.js");
|
|
742
722
|
await refreshActiveAgentContext2(projectRoot);
|
|
743
723
|
} catch {
|
|
744
724
|
}
|
|
@@ -1308,7 +1288,6 @@ export {
|
|
|
1308
1288
|
loadConfig,
|
|
1309
1289
|
saveConfig,
|
|
1310
1290
|
defaultConfig,
|
|
1311
|
-
projectPaths,
|
|
1312
1291
|
listWorkflowNames,
|
|
1313
1292
|
loadWorkflow,
|
|
1314
1293
|
resolveStages,
|
|
@@ -1317,7 +1296,6 @@ export {
|
|
|
1317
1296
|
activeStages,
|
|
1318
1297
|
getStage,
|
|
1319
1298
|
nextStageId,
|
|
1320
|
-
previousStageId,
|
|
1321
1299
|
firstActiveStageId,
|
|
1322
1300
|
inferComplexity,
|
|
1323
1301
|
recommendWorkflow,
|
package/dist/index.d.ts
CHANGED
|
@@ -1073,13 +1073,6 @@ declare function isInitialized(projectRoot: string): Promise<boolean>;
|
|
|
1073
1073
|
declare function loadConfig(projectRoot: string): Promise<Config>;
|
|
1074
1074
|
declare function saveConfig(projectRoot: string, config: Config): Promise<void>;
|
|
1075
1075
|
declare function defaultConfig(): Config;
|
|
1076
|
-
declare function projectPaths(projectRoot: string, config: Config): {
|
|
1077
|
-
sdd: string;
|
|
1078
|
-
config: string;
|
|
1079
|
-
workflows: string;
|
|
1080
|
-
templates: string;
|
|
1081
|
-
memory: string;
|
|
1082
|
-
};
|
|
1083
1076
|
|
|
1084
1077
|
declare function listWorkflowNames(projectRoot: string): Promise<string[]>;
|
|
1085
1078
|
declare function loadWorkflow(projectRoot: string, name: string): Promise<Workflow>;
|
|
@@ -1096,7 +1089,6 @@ declare function getStage(workflow: Workflow, meta: ChangeMeta, stageId: string)
|
|
|
1096
1089
|
* forward from its position in the full stage list (does not jump back to first).
|
|
1097
1090
|
*/
|
|
1098
1091
|
declare function nextStageId(workflow: Workflow, meta: ChangeMeta): string | null;
|
|
1099
|
-
declare function previousStageId(workflow: Workflow, meta: ChangeMeta): string | null;
|
|
1100
1092
|
/** First active stage (honors skip / skip_when). */
|
|
1101
1093
|
declare function firstActiveStageId(workflow: Workflow, meta: ChangeMeta): string | null;
|
|
1102
1094
|
declare function inferComplexity(title: string, hints?: {
|
|
@@ -1235,7 +1227,6 @@ declare const PROTOCOL_MD = "# SDD protocol\n\nThis repo uses **Structured Vibe
|
|
|
1235
1227
|
interface InitOptions {
|
|
1236
1228
|
projectRoot: string;
|
|
1237
1229
|
force?: boolean;
|
|
1238
|
-
pack?: "default" | "enterprise";
|
|
1239
1230
|
/**
|
|
1240
1231
|
* AI coding agents to install (copilot | claude-code). Not IDEs.
|
|
1241
1232
|
* Opt-in only — never defaults to all agents.
|
|
@@ -1300,4 +1291,4 @@ declare function listFiles(path: string): Promise<string[]>;
|
|
|
1300
1291
|
declare function copyDir(src: string, dest: string): Promise<void>;
|
|
1301
1292
|
declare function removePath(path: string): Promise<void>;
|
|
1302
1293
|
|
|
1303
|
-
export { AGENT_TARGET_OPTIONS, ALL_AGENT_TARGETS, type AdvanceResult, type AgentTarget, type AgentTargetOption, type ArtifactDef, ArtifactDefSchema, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type Complexity, type Config, ConfigSchema, type CreateChangeInput, DEFAULT_INIT_INTEGRATION, type Gate, GateSchema, type InitOptions, type InitResult, type InstallAgentsOptions, type InstallAgentsResult, PROTOCOL_MD, SDD_AGENT_ROLES, SDD_DIR, type SddAgentRole, type SddAgentRoleId, type Stage, StageSchema, VerifyCommandSchema, type VerifyResult, type Workflow, WorkflowSchema, activePointerPath, activeStages, advanceStage, approveGate, archiveDir, buildAgentPrompt, buildContext, canLeaveStage, changeDirName, changeMetaPath, changePath, changesDir, clearActiveIf, completeChange, configPath, copyDir, createChange, defaultConfig, defaultMemoryDir, defaultTemplatesDir, defaultWorkflowsDir, defaultsRoot, domainsDir, ensureDir, firstActiveStageId, formatStatus, getActiveChangeId, getStage, inferComplexity, initProject, installAgentIntegrations, integrationKeyFor, isInitialized, isStageSkipped, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadWorkflow, memoryDir, nextStageId, nowIso, optionForTarget, parseAgentTargets, parseIntegration, pathExists,
|
|
1294
|
+
export { AGENT_TARGET_OPTIONS, ALL_AGENT_TARGETS, type AdvanceResult, type AgentTarget, type AgentTargetOption, type ArtifactDef, ArtifactDefSchema, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type Complexity, type Config, ConfigSchema, type CreateChangeInput, DEFAULT_INIT_INTEGRATION, type Gate, GateSchema, type InitOptions, type InitResult, type InstallAgentsOptions, type InstallAgentsResult, PROTOCOL_MD, SDD_AGENT_ROLES, SDD_DIR, type SddAgentRole, type SddAgentRoleId, type Stage, StageSchema, VerifyCommandSchema, type VerifyResult, type Workflow, WorkflowSchema, activePointerPath, activeStages, advanceStage, approveGate, archiveDir, buildAgentPrompt, buildContext, canLeaveStage, changeDirName, changeMetaPath, changePath, changesDir, clearActiveIf, completeChange, configPath, copyDir, createChange, defaultConfig, defaultMemoryDir, defaultTemplatesDir, defaultWorkflowsDir, defaultsRoot, domainsDir, ensureDir, firstActiveStageId, formatStatus, getActiveChangeId, getStage, inferComplexity, initProject, installAgentIntegrations, integrationKeyFor, isInitialized, isStageSkipped, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadWorkflow, memoryDir, nextStageId, nowIso, optionForTarget, parseAgentTargets, parseIntegration, pathExists, readText, readYaml, recommendWorkflow, refreshActiveAgentContext, removePath, renderThinAgent, resolveChangeId, resolveStages, runLocalVerify, saveChangeMeta, saveConfig, sddRoot, setActiveChange, shouldAutoSkip, skipStage, slugify, switchWorkflow, templatesDir, todayIsoDate, uniqueChangeDirName, workflowsDir, writeText, writeYaml };
|
package/dist/index.js
CHANGED
|
@@ -55,8 +55,6 @@ import {
|
|
|
55
55
|
parseAgentTargets,
|
|
56
56
|
parseIntegration,
|
|
57
57
|
pathExists,
|
|
58
|
-
previousStageId,
|
|
59
|
-
projectPaths,
|
|
60
58
|
readText,
|
|
61
59
|
readYaml,
|
|
62
60
|
recommendWorkflow,
|
|
@@ -79,7 +77,7 @@ import {
|
|
|
79
77
|
workflowsDir,
|
|
80
78
|
writeText,
|
|
81
79
|
writeYaml
|
|
82
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-IO6AS6JI.js";
|
|
83
81
|
|
|
84
82
|
// src/init.ts
|
|
85
83
|
import { join as join2 } from "pathe";
|
|
@@ -402,8 +400,6 @@ export {
|
|
|
402
400
|
parseAgentTargets,
|
|
403
401
|
parseIntegration,
|
|
404
402
|
pathExists,
|
|
405
|
-
previousStageId,
|
|
406
|
-
projectPaths,
|
|
407
403
|
readText,
|
|
408
404
|
readYaml,
|
|
409
405
|
recommendWorkflow,
|