@structured-vibe-coding/core 0.2.2 → 0.3.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.
- package/dist/agents-AIH2DNH3.js +16 -0
- package/dist/chunk-ANNG5SIL.js +1282 -0
- package/dist/index.d.ts +44 -1
- package/dist/index.js +118 -972
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1164,14 +1164,57 @@ declare function completeChange(projectRoot: string, config: Config, changeId: s
|
|
|
1164
1164
|
declare function formatStatus(ctx: ChangeContext): string;
|
|
1165
1165
|
declare function buildAgentPrompt(ctx: ChangeContext, config: Config, projectRoot: string): Promise<string>;
|
|
1166
1166
|
|
|
1167
|
+
type AgentTarget = "copilot" | "claude-code" | "intellij";
|
|
1168
|
+
declare const ALL_AGENT_TARGETS: AgentTarget[];
|
|
1169
|
+
/** Roles emitted as thin agents (shared body generator — no skill files). */
|
|
1170
|
+
type SddAgentRoleId = "sdd" | "sdd-planner" | "sdd-implementer" | "sdd-reviewer";
|
|
1171
|
+
interface SddAgentRole {
|
|
1172
|
+
id: SddAgentRoleId;
|
|
1173
|
+
description: string;
|
|
1174
|
+
roleLine: string;
|
|
1175
|
+
/** Extra one-liner constraints for this role only */
|
|
1176
|
+
roleRules: string[];
|
|
1177
|
+
}
|
|
1178
|
+
declare const SDD_AGENT_ROLES: SddAgentRole[];
|
|
1179
|
+
interface InstallAgentsOptions {
|
|
1180
|
+
projectRoot: string;
|
|
1181
|
+
targets?: AgentTarget[];
|
|
1182
|
+
force?: boolean;
|
|
1183
|
+
}
|
|
1184
|
+
interface InstallAgentsResult {
|
|
1185
|
+
created: string[];
|
|
1186
|
+
skipped: string[];
|
|
1187
|
+
targets: AgentTarget[];
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Install **agents only** (no skills, no fat instructions).
|
|
1191
|
+
*
|
|
1192
|
+
* Single playbook: `.sdd/protocol.md`
|
|
1193
|
+
* Live state: `.sdd/active-context.md`
|
|
1194
|
+
* Thin agents: `.claude/agents/*` and `.github/agents/*` (pointers + role)
|
|
1195
|
+
*/
|
|
1196
|
+
declare function installAgentIntegrations(opts: InstallAgentsOptions): Promise<InstallAgentsResult>;
|
|
1197
|
+
/** Thin agent body shared by Claude Code and GitHub Copilot (same text). */
|
|
1198
|
+
declare function renderThinAgent(role: SddAgentRole): string;
|
|
1199
|
+
/** Write .sdd/active-context.md for the current change (all agents read this). */
|
|
1200
|
+
declare function refreshActiveAgentContext(projectRoot: string): Promise<string | null>;
|
|
1201
|
+
/** Single playbook — only long agent-facing content we author once. */
|
|
1202
|
+
declare const PROTOCOL_MD = "# SDD protocol\n\nThis repo uses **Structured Vibe Coding** (`sdd`). Agents must follow this file plus `.sdd/active-context.md`. Do not invent a parallel process.\n\n## Source of truth\n\n| What | Where |\n|------|--------|\n| Process state | `changes/<id>/meta.yaml` (workflow, stage, gates) |\n| Current task snapshot | `.sdd/active-context.md` |\n| Stable product/tech rules | `memory/*.md` |\n| Stage artifacts | files in `changes/<id>/` for the active change |\n\n## Required read order\n\n1. `.sdd/active-context.md`\n2. This file (`.sdd/protocol.md`)\n3. `meta.yaml` + artifacts for the **current stage** (and prior stages if needed)\n4. `memory/` when architecture or conventions matter\n\n## Stage behavior\n\n| Stage kind | Agent focus |\n|------------|-------------|\n| intent / feature / stories | Clarify scope; write short artifacts |\n| design / lld / db / research / hl_arb | Specs and decisions; minimal product code |\n| tasks | Break work into implementable checklist |\n| implement | Code only for this change; follow tasks/acceptance |\n| local_verify | Check acceptance; fix only; prepare for complete |\n\n## Hard rules\n\n1. **Do not skip hard gates.** If blocked, tell the human to run `sdd gate approve` (or fix the gate).\n2. **Stay in scope** of the active change title/intent. No drive-by refactors or new features.\n3. **Honor constraints** in `arb-decision.md`, design, and memory non-negotiables.\n4. **Local verify** is part of done when the workflow has a verify stage: `sdd verify`.\n5. Prefer small, reviewable diffs.\n\n## Commands (human / shell)\n\n```bash\nsdd status\nsdd next\nsdd agent # print handoff\nsdd agents refresh # refresh active-context.md\nsdd verify\nsdd complete\n```\n\n## Out of scope for agents\n\n- Replacing CI/CD or team process tools\n- Deleting `.sdd` / archive history\n- Claiming complete without verify when required\n";
|
|
1203
|
+
|
|
1167
1204
|
interface InitOptions {
|
|
1168
1205
|
projectRoot: string;
|
|
1169
1206
|
force?: boolean;
|
|
1170
1207
|
pack?: "default" | "enterprise";
|
|
1208
|
+
/** Install Copilot / Claude Code / IntelliJ agent files (default: all). */
|
|
1209
|
+
agents?: boolean | AgentTarget[];
|
|
1171
1210
|
}
|
|
1172
1211
|
interface InitResult {
|
|
1173
1212
|
created: string[];
|
|
1174
1213
|
config: Config;
|
|
1214
|
+
agents?: {
|
|
1215
|
+
created: string[];
|
|
1216
|
+
skipped: string[];
|
|
1217
|
+
};
|
|
1175
1218
|
}
|
|
1176
1219
|
declare function initProject(opts: InitOptions): Promise<InitResult>;
|
|
1177
1220
|
|
|
@@ -1221,4 +1264,4 @@ declare function listFiles(path: string): Promise<string[]>;
|
|
|
1221
1264
|
declare function copyDir(src: string, dest: string): Promise<void>;
|
|
1222
1265
|
declare function removePath(path: string): Promise<void>;
|
|
1223
1266
|
|
|
1224
|
-
export { type AdvanceResult, type ArtifactDef, ArtifactDefSchema, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type Complexity, type Config, ConfigSchema, type CreateChangeInput, type Gate, GateSchema, type InitOptions, type InitResult, SDD_DIR, 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, isInitialized, isStageSkipped, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadWorkflow, memoryDir, nextStageId, nowIso, pathExists, previousStageId, projectPaths, readText, readYaml, recommendWorkflow, removePath, resolveChangeId, resolveStages, runLocalVerify, saveChangeMeta, saveConfig, sddRoot, setActiveChange, shouldAutoSkip, skipStage, slugify, switchWorkflow, templatesDir, todayIsoDate, uniqueChangeDirName, workflowsDir, writeText, writeYaml };
|
|
1267
|
+
export { ALL_AGENT_TARGETS, type AdvanceResult, type AgentTarget, type ArtifactDef, ArtifactDefSchema, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type Complexity, type Config, ConfigSchema, type CreateChangeInput, 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, isInitialized, isStageSkipped, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadWorkflow, memoryDir, nextStageId, nowIso, pathExists, previousStageId, projectPaths, readText, readYaml, recommendWorkflow, refreshActiveAgentContext, removePath, renderThinAgent, resolveChangeId, resolveStages, runLocalVerify, saveChangeMeta, saveConfig, sddRoot, setActiveChange, shouldAutoSkip, skipStage, slugify, switchWorkflow, templatesDir, todayIsoDate, uniqueChangeDirName, workflowsDir, writeText, writeYaml };
|