buildanything 2.0.0 → 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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +9 -1
- package/README.md +57 -61
- package/agents/a11y-architect.md +2 -0
- package/agents/briefing-officer.md +172 -0
- package/agents/business-model.md +14 -12
- package/agents/code-architect.md +6 -1
- package/agents/code-reviewer.md +3 -2
- package/agents/code-simplifier.md +12 -4
- package/agents/design-brand-guardian.md +19 -0
- package/agents/design-critic.md +16 -11
- package/agents/design-inclusive-visuals-specialist.md +2 -0
- package/agents/design-ui-designer.md +17 -0
- package/agents/design-ux-architect.md +15 -0
- package/agents/design-ux-researcher.md +102 -7
- package/agents/engineering-ai-engineer.md +2 -0
- package/agents/engineering-backend-architect.md +2 -0
- package/agents/engineering-data-engineer.md +2 -0
- package/agents/engineering-devops-automator.md +2 -0
- package/agents/engineering-frontend-developer.md +13 -0
- package/agents/engineering-mobile-app-builder.md +2 -0
- package/agents/engineering-rapid-prototyper.md +15 -2
- package/agents/engineering-security-engineer.md +2 -0
- package/agents/engineering-senior-developer.md +13 -0
- package/agents/engineering-sre.md +2 -0
- package/agents/engineering-technical-writer.md +2 -0
- package/agents/feature-intel.md +8 -7
- package/agents/ios-app-review-guardian.md +2 -0
- package/agents/ios-foundation-models-specialist.md +2 -0
- package/agents/ios-product-reality-auditor.md +292 -0
- package/agents/ios-storekit-specialist.md +2 -0
- package/agents/ios-swift-architect.md +1 -0
- package/agents/ios-swift-search.md +1 -0
- package/agents/ios-swift-ui-design.md +7 -4
- package/agents/marketing-app-store-optimizer.md +2 -0
- package/agents/planner.md +6 -1
- package/agents/pr-test-analyzer.md +3 -2
- package/agents/product-feedback-synthesizer.md +62 -0
- package/agents/product-owner.md +163 -0
- package/agents/product-reality-auditor.md +216 -0
- package/agents/product-spec-writer.md +176 -0
- package/agents/refactor-cleaner.md +9 -1
- package/agents/security-reviewer.md +2 -1
- package/agents/silent-failure-hunter.md +2 -1
- package/agents/swift-build-resolver.md +2 -0
- package/agents/swift-reviewer.md +2 -1
- package/agents/tech-feasibility.md +5 -3
- package/agents/testing-api-tester.md +2 -0
- package/agents/testing-evidence-collector.md +24 -0
- package/agents/testing-performance-benchmarker.md +2 -0
- package/agents/testing-reality-checker.md +2 -1
- package/agents/visual-research.md +7 -5
- package/bin/adapters/scribe-tool.ts +4 -2
- package/bin/adapters/write-lease-tool.ts +1 -1
- package/bin/buildanything-runtime.ts +20 -107
- package/bin/graph-index.js +24 -0
- package/bin/graph-index.ts +340 -0
- package/bin/mcp-servers/graph-mcp.js +26 -0
- package/bin/mcp-servers/graph-mcp.ts +481 -0
- package/bin/mcp-servers/orchestrator-mcp.js +26 -0
- package/bin/mcp-servers/orchestrator-mcp.ts +361 -0
- package/bin/setup.js +272 -111
- package/commands/build.md +424 -177
- package/commands/idea-sweep.md +2 -2
- package/commands/setup.md +15 -4
- package/commands/ux-review.md +3 -3
- package/commands/verify.md +3 -0
- package/docs/migration/phase-graph.yaml +573 -157
- package/hooks/design-md-lint +4 -0
- package/hooks/design-md-lint.ts +295 -0
- package/hooks/pre-tool-use.ts +37 -6
- package/hooks/record-mode-transitions.ts +63 -6
- package/hooks/subagent-start.ts +3 -2
- package/package.json +3 -1
- package/protocols/agent-prompt-authoring.md +165 -0
- package/protocols/architecture-schema.md +10 -3
- package/protocols/cleanup.md +4 -0
- package/protocols/decision-log.md +8 -4
- package/protocols/design-md-authoring.md +520 -0
- package/protocols/design-md-spec.md +362 -0
- package/protocols/fake-data-detector.md +1 -1
- package/protocols/ios-fake-data-detector.md +65 -0
- package/protocols/ios-phase-branches.md +128 -43
- package/protocols/launch-readiness.md +9 -5
- package/protocols/metric-loop.md +1 -1
- package/protocols/page-spec-schema.md +234 -0
- package/protocols/product-spec-schema.md +354 -0
- package/protocols/sprint-tasks-schema.md +53 -0
- package/protocols/state-schema.json +38 -3
- package/protocols/state-schema.md +32 -2
- package/protocols/verify.md +29 -1
- package/protocols/web-phase-branches.md +246 -76
- package/skills/ios/ios-bootstrap/SKILL.md +1 -1
- package/src/graph/ids.ts +86 -0
- package/src/graph/index.ts +32 -0
- package/src/graph/parser/architecture.ts +603 -0
- package/src/graph/parser/component-manifest.ts +268 -0
- package/src/graph/parser/decisions-jsonl.ts +407 -0
- package/src/graph/parser/design-md-pass2.ts +253 -0
- package/src/graph/parser/design-md.ts +477 -0
- package/src/graph/parser/page-spec.ts +496 -0
- package/src/graph/parser/product-spec.ts +930 -0
- package/src/graph/parser/screenshot.ts +342 -0
- package/src/graph/parser/sprint-tasks.ts +317 -0
- package/src/graph/storage/index.ts +1154 -0
- package/src/graph/types.ts +432 -0
- package/src/graph/util/dhash.ts +84 -0
- package/src/lrr/aggregator.ts +105 -10
- package/src/orchestrator/hooks/context-header.ts +34 -10
- package/src/orchestrator/hooks/token-accounting.ts +25 -14
- package/src/orchestrator/mcp/cycle-counter.ts +2 -1
- package/src/orchestrator/mcp/scribe.ts +27 -16
- package/src/orchestrator/mcp/write-lease.ts +30 -13
- package/src/orchestrator/phase4-shared-context.ts +20 -4
- package/protocols/visual-dna.md +0 -185
|
@@ -41,7 +41,7 @@ If missing or older: fail with `"Install Xcode 26.3 from the Mac App Store, then
|
|
|
41
41
|
|
|
42
42
|
### 3. Create project directory structure
|
|
43
43
|
From project root, create:
|
|
44
|
-
- `docs/plans/` — holds `.build-state.md`, `
|
|
44
|
+
- `docs/plans/` — holds `.build-state.md`, task lists (note: `DESIGN.md` lives at the repo root, not under `docs/plans/`)
|
|
45
45
|
- `maestro/` — canonical name for Maestro YAML flows
|
|
46
46
|
|
|
47
47
|
### 4. User-assisted Xcode New Project dialog
|
package/src/graph/ids.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Stable ID generation for Slice 1 nodes. Determinism matters: same
|
|
2
|
+
// product-spec.md → identical IDs → SHA256 cache hits. Source of truth for
|
|
3
|
+
// the rules: docs/graph/04-slice1-schema.md §3.
|
|
4
|
+
|
|
5
|
+
import { createHash } from "node:crypto";
|
|
6
|
+
|
|
7
|
+
const KEBAB_REPLACE = /[^a-z0-9]+/g;
|
|
8
|
+
const KEBAB_TRIM = /^-+|-+$/g;
|
|
9
|
+
|
|
10
|
+
export function kebab(input: string): string {
|
|
11
|
+
return input
|
|
12
|
+
.toLowerCase()
|
|
13
|
+
.replace(KEBAB_REPLACE, "-")
|
|
14
|
+
.replace(KEBAB_TRIM, "");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Strip-and-normalize before hashing so trivial wording changes (whitespace,
|
|
18
|
+
// punctuation) don't churn IDs. Internal whitespace collapses to single
|
|
19
|
+
// spaces; surrounding whitespace and trailing punctuation are dropped.
|
|
20
|
+
export function normalizeForHash(input: string): string {
|
|
21
|
+
return input.trim().replace(/\s+/g, " ");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function sha256_8(input: string): string {
|
|
25
|
+
return createHash("sha256")
|
|
26
|
+
.update(normalizeForHash(input))
|
|
27
|
+
.digest("hex")
|
|
28
|
+
.slice(0, 8);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function sha256Hex(input: string): string {
|
|
32
|
+
return createHash("sha256").update(input).digest("hex");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const ids = {
|
|
36
|
+
feature: (name: string): string => `feature__${kebab(name)}`,
|
|
37
|
+
screen: (name: string): string => `screen__${kebab(name)}`,
|
|
38
|
+
state: (featureName: string, stateName: string): string =>
|
|
39
|
+
`state__${kebab(featureName)}__${kebab(stateName)}`,
|
|
40
|
+
transition: (featureName: string, fromState: string, toState: string): string =>
|
|
41
|
+
`transition__${kebab(featureName)}__${kebab(fromState)}__${kebab(toState)}`,
|
|
42
|
+
businessRule: (featureName: string, text: string): string =>
|
|
43
|
+
`rule__${kebab(featureName)}__${sha256_8(text)}`,
|
|
44
|
+
failureMode: (featureName: string, trigger: string): string =>
|
|
45
|
+
`failure__${kebab(featureName)}__${sha256_8(trigger)}`,
|
|
46
|
+
acceptanceCriterion: (featureName: string, text: string): string =>
|
|
47
|
+
`accept__${kebab(featureName)}__${sha256_8(text)}`,
|
|
48
|
+
persona: (label: string): string => `persona__${kebab(label)}`,
|
|
49
|
+
personaConstraint: (featureName: string, text: string): string =>
|
|
50
|
+
`pconstraint__${kebab(featureName)}__${sha256_8(text)}`,
|
|
51
|
+
// Slice 2 additions. Source of truth: docs/graph/05-slice2-schema.md.
|
|
52
|
+
designDocRoot: (): string => "design_md__root",
|
|
53
|
+
dnaAxis: (axisName: string): string => `dna_axis__${kebab(axisName)}`,
|
|
54
|
+
dnaGuideline: (polarity: "do" | "dont", text: string): string =>
|
|
55
|
+
`dna_guideline__${polarity}__${sha256_8(text)}`,
|
|
56
|
+
brandReference: (urlOrLabel: string): string =>
|
|
57
|
+
`brand_reference__${sha256_8(urlOrLabel)}`,
|
|
58
|
+
manifestEntry: (slot: string): string => `manifest_entry__${kebab(slot)}`,
|
|
59
|
+
componentSlot: (slot: string): string => `slot__${kebab(slot)}`,
|
|
60
|
+
// Slice 3 additions. Source of truth: docs/graph/07-slice3-schema.md.
|
|
61
|
+
token: (layer: string, name: string): string =>
|
|
62
|
+
`token__${kebab(layer)}__${kebab(name)}`,
|
|
63
|
+
pageSpec: (screenName: string): string =>
|
|
64
|
+
`page_spec__${kebab(screenName)}`,
|
|
65
|
+
wireframeSection: (screenName: string, sectionName: string, order: number): string =>
|
|
66
|
+
`wireframe_section__${kebab(screenName)}__${kebab(sectionName)}__${order}`,
|
|
67
|
+
screenStateSlot: (screenName: string, stateName: string): string =>
|
|
68
|
+
`screen_state_slot__${kebab(screenName)}__${kebab(stateName)}`,
|
|
69
|
+
screenComponentUse: (screenName: string, slot: string, position: string): string =>
|
|
70
|
+
`screen_component_use__${kebab(screenName)}__${kebab(slot)}__${kebab(position)}`,
|
|
71
|
+
keyCopy: (screenName: string, text: string): string =>
|
|
72
|
+
`key_copy__${kebab(screenName)}__${sha256_8(text)}`,
|
|
73
|
+
// Slice 4 additions. Source of truth: docs/graph/09-slice4-schema.md.
|
|
74
|
+
architectureModule: (name: string): string => `module__${kebab(name)}`,
|
|
75
|
+
apiContract: (endpoint: string): string => `api_contract__${kebab(endpoint)}`,
|
|
76
|
+
dataModel: (entityName: string): string => `data_model__${kebab(entityName)}`,
|
|
77
|
+
task: (taskId: string): string => `task__${kebab(taskId)}`,
|
|
78
|
+
decision: (decisionId: string): string => `decision__${kebab(decisionId)}`,
|
|
79
|
+
// Slice 5 additions. Source of truth: docs/graph/11-slice5-schema.md.
|
|
80
|
+
screenshot: (basenameKebab: string, contentSha256First8: string): string =>
|
|
81
|
+
`screenshot__${basenameKebab}__${contentSha256First8}`,
|
|
82
|
+
imageComponentDetection: (screenshotId: string, label: string, order: number): string =>
|
|
83
|
+
`image_component_detection__${screenshotId.replace(/^screenshot__/, "")}__${kebab(label)}__${order}`,
|
|
84
|
+
dogfoodFinding: (findingId: string): string => `dogfood_finding__${kebab(findingId)}`,
|
|
85
|
+
brandDriftObservation: (observationId: string): string => `brand_drift_observation__${kebab(observationId)}`,
|
|
86
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Slice 1 module barrel. Public surface for orchestrator + MCP handlers.
|
|
2
|
+
|
|
3
|
+
export * from "./types.js";
|
|
4
|
+
export { ids, kebab, sha256_8, sha256Hex, normalizeForHash } from "./ids.js";
|
|
5
|
+
export { extractProductSpec } from "./parser/product-spec.js";
|
|
6
|
+
export { extractDesignMd } from "./parser/design-md.js";
|
|
7
|
+
export { extractComponentManifest } from "./parser/component-manifest.js";
|
|
8
|
+
export { extractPageSpec } from "./parser/page-spec.js";
|
|
9
|
+
export { extractDesignMdTokens } from "./parser/design-md-pass2.js";
|
|
10
|
+
export { extractArchitecture } from "./parser/architecture.js";
|
|
11
|
+
export { extractSprintTasks } from "./parser/sprint-tasks.js";
|
|
12
|
+
export { extractDecisionsJsonl } from "./parser/decisions-jsonl.js";
|
|
13
|
+
export { extractScreenshot } from "./parser/screenshot.js";
|
|
14
|
+
export {
|
|
15
|
+
loadGraph,
|
|
16
|
+
loadAllGraphs,
|
|
17
|
+
saveGraph,
|
|
18
|
+
queryFeature,
|
|
19
|
+
queryScreen,
|
|
20
|
+
queryAcceptance,
|
|
21
|
+
queryDna,
|
|
22
|
+
queryManifest,
|
|
23
|
+
queryToken,
|
|
24
|
+
queryScreenFull,
|
|
25
|
+
queryDependencies,
|
|
26
|
+
queryCrossContracts,
|
|
27
|
+
queryDecisions,
|
|
28
|
+
queryScreenshot,
|
|
29
|
+
queryScreenshotSimilar,
|
|
30
|
+
queryBrandDrift,
|
|
31
|
+
graphPath,
|
|
32
|
+
} from "./storage/index.js";
|