intentdna 1.7.4 → 1.8.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/LICENSE +201 -0
- package/README.md +143 -194
- package/dist/assets/candidates.d.ts +124 -0
- package/dist/assets/candidates.js +1249 -0
- package/dist/assets/catalog.d.ts +101 -0
- package/dist/assets/catalog.js +311 -0
- package/dist/assets/evidence.d.ts +93 -0
- package/dist/assets/evidence.js +391 -0
- package/dist/assets/index.d.ts +4 -0
- package/dist/assets/index.js +4 -0
- package/dist/assets/metadata.d.ts +19 -0
- package/dist/assets/metadata.js +227 -0
- package/dist/cli/commands/assets.d.ts +65 -0
- package/dist/cli/commands/assets.js +2871 -0
- package/dist/cli/commands/auth.d.ts +322 -0
- package/dist/cli/commands/auth.js +1592 -0
- package/dist/cli/commands/cloud-auth-guidance.d.ts +2 -0
- package/dist/cli/commands/cloud-auth-guidance.js +4 -0
- package/dist/cli/commands/cloud.d.ts +1359 -0
- package/dist/cli/commands/cloud.js +8364 -0
- package/dist/cli/commands/evolve.js +18 -2
- package/dist/cli/commands/generate.js +25 -2
- package/dist/cli/commands/guard.d.ts +1 -1
- package/dist/cli/commands/guard.js +1 -1
- package/dist/cli/commands/guide.d.ts +15 -0
- package/dist/cli/commands/guide.js +1747 -0
- package/dist/cli/commands/init.d.ts +12 -0
- package/dist/cli/commands/init.js +95 -60
- package/dist/cli/commands/org.d.ts +16 -0
- package/dist/cli/commands/org.js +2393 -0
- package/dist/cli/commands/release.d.ts +59 -0
- package/dist/cli/commands/release.js +716 -0
- package/dist/cli/commands/report.d.ts +82 -0
- package/dist/cli/commands/report.js +1516 -0
- package/dist/cli/commands/run.d.ts +6 -1
- package/dist/cli/commands/run.js +95 -26
- package/dist/cli/commands/sync.d.ts +8 -1
- package/dist/cli/commands/sync.js +436 -141
- package/dist/cli/commands/templates.d.ts +64 -0
- package/dist/cli/commands/templates.js +2151 -1
- package/dist/cli/commands/workflow.d.ts +26 -0
- package/dist/cli/commands/workflow.js +3053 -0
- package/dist/cli/index.js +719 -42
- package/dist/compiler/cascade.js +4 -9
- package/dist/compiler/compile.js +1 -0
- package/dist/governance/evidence-capture-attribution.d.ts +12 -0
- package/dist/governance/evidence-capture-attribution.js +46 -0
- package/dist/governance/index.d.ts +2 -0
- package/dist/governance/index.js +1 -0
- package/dist/hooks/cli.d.ts +6 -0
- package/dist/hooks/cli.js +168 -12
- package/dist/hooks/enforce.d.ts +1 -0
- package/dist/hooks/protocol.d.ts +1 -1
- package/dist/hooks/protocol.js +1 -1
- package/dist/hooks/state.d.ts +41 -0
- package/dist/hooks/state.js +126 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/mcp/tools-state.js +2 -0
- package/dist/organization/index.d.ts +121 -0
- package/dist/organization/index.js +413 -0
- package/dist/runtime/claude-sync-target.d.ts +49 -0
- package/dist/runtime/claude-sync-target.js +280 -0
- package/dist/runtime/codex-adapter.d.ts +254 -0
- package/dist/runtime/codex-adapter.js +1204 -0
- package/dist/runtime/codex-sync-target.d.ts +33 -0
- package/dist/runtime/codex-sync-target.js +241 -0
- package/dist/runtime/index.d.ts +8 -0
- package/dist/runtime/index.js +4 -0
- package/dist/runtime/output-artifact-registry.d.ts +1 -1
- package/dist/runtime/output-artifact-registry.js +2 -0
- package/dist/runtime/settings-adapter.d.ts +1 -1
- package/dist/runtime/settings-adapter.js +1 -1
- package/dist/runtime/skill-adapter.d.ts +5 -1
- package/dist/runtime/skill-adapter.js +120 -34
- package/dist/runtime/sync-artifact-registry.d.ts +99 -0
- package/dist/runtime/sync-artifact-registry.js +194 -0
- package/dist/runtime/sync-target-plan.d.ts +45 -0
- package/dist/runtime/sync-target-plan.js +19 -0
- package/dist/schema/controller-registry.d.ts +8 -1
- package/dist/schema/controller-registry.js +8 -0
- package/dist/schema/types.d.ts +35 -23
- package/dist/schema/types.js +10 -1
- package/dist/schema/validate.js +22 -22
- package/dist/schema/validators/controllers.js +38 -20
- package/dist/schema/workflow-authoring-contract.d.ts +29 -0
- package/dist/schema/workflow-authoring-contract.js +109 -0
- package/dist/schema/yaml-parser.js +18 -0
- package/dist/templates/api-backend.dna.yaml +19 -0
- package/dist/templates/brainstorming-first.dna.yaml +19 -0
- package/dist/templates/code-cleanup.dna.yaml +19 -0
- package/dist/templates/code-review-pipeline.dna.yaml +18 -0
- package/dist/templates/documentation-writer.dna.yaml +19 -0
- package/dist/templates/flutter-behavior-lock.dna.yaml +19 -0
- package/dist/templates/flutter-refactoring-rescue.dna.yaml +19 -0
- package/dist/templates/flutter-rewrite-diagnosis-review.dna.yaml +210 -0
- package/dist/templates/flutter-rewrite-fix-review-loop.dna.yaml +260 -0
- package/dist/templates/flutter-rewrite-new.dna.yaml +506 -0
- package/dist/templates/flutter-rewrite.dna.yaml +20 -0
- package/dist/templates/frontend-quality.dna.yaml +19 -0
- package/dist/templates/full-pipeline.dna.yaml +20 -0
- package/dist/templates/marketplace.d.ts +92 -0
- package/dist/templates/marketplace.js +502 -0
- package/dist/templates/metadata.d.ts +25 -0
- package/dist/templates/metadata.js +136 -3
- package/dist/templates/mobile-dev.dna.yaml +19 -0
- package/dist/templates/multi-agent-handoff-coordination.dna.yaml +156 -0
- package/dist/templates/multi-perspective-review.dna.yaml +19 -0
- package/dist/templates/persistent-executor.dna.yaml +19 -0
- package/dist/templates/qa-loop.dna.yaml +18 -0
- package/dist/templates/release-evidence-gate.dna.yaml +131 -0
- package/dist/templates/requirements-gate.dna.yaml +19 -0
- package/dist/templates/research-orchestration.dna.yaml +19 -0
- package/dist/templates/root-cause-analysis.dna.yaml +19 -0
- package/dist/templates/safe-refactoring.dna.yaml +321 -0
- package/dist/templates/secure-dev.dna.yaml +19 -0
- package/dist/templates/subagent-parallel.dna.yaml +19 -0
- package/dist/templates/systematic-debugging.dna.yaml +19 -0
- package/dist/templates/tdd-strict.dna.yaml +19 -0
- package/dist/templates/ui-visual-regression-qa.dna.yaml +133 -0
- package/dist/templates/workflow-author.dna.yaml +302 -0
- package/dist/templates/workflow-blocked-scope-triage.dna.yaml +242 -0
- package/dist/templates/workflow-completion-audit.dna.yaml +254 -0
- package/dist/templates/workflow-cross-boundary-resource-approval.dna.yaml +249 -0
- package/dist/templates/workflow-evidence-review.dna.yaml +198 -0
- package/dist/templates/workflow-module-inventory.dna.yaml +257 -0
- package/dist/templates/workflow-runtime-smoke-review.dna.yaml +252 -0
- package/dist/templates/workflow-verification-command-routing.dna.yaml +278 -0
- package/dist/workflow/authoring-packet.d.ts +67 -0
- package/dist/workflow/authoring-packet.js +218 -0
- package/dist/workflow/draft.d.ts +159 -0
- package/dist/workflow/draft.js +800 -0
- package/dist/workflow/index.d.ts +3 -0
- package/dist/workflow/index.js +3 -0
- package/dist/workflow/suggestion-review.d.ts +65 -0
- package/dist/workflow/suggestion-review.js +245 -0
- package/package.json +1 -1
- package/spec/README.md +15 -48
- package/spec/codex-adapter-contract.md +176 -0
- package/spec/sync-target-plan.md +158 -0
- package/spec/workflow-capability-ir.md +153 -0
- package/spec/agent-dispatch-fix.md +0 -116
- package/spec/control-plane-convergence-handoff-2026-04-24.md +0 -432
- package/spec/flutter-rewrite-template-optimization.md +0 -301
- package/spec/foundation-hardening.md +0 -178
- package/spec/hooks-infra-harness-hardening.md +0 -741
- package/spec/multi-config.md +0 -172
- package/spec/parallel-isolation.md +0 -268
- package/spec/template-version-namespace-fix.md +0 -653
- package/spec/workflow-pipeline.md +0 -101
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type WorkflowAssetSummary } from "./catalog.js";
|
|
2
|
+
import { type WorkflowAssetEvidenceIndex, type WorkflowAssetEvidenceModule } from "./evidence.js";
|
|
3
|
+
export type AssetCandidateType = "stabilize_current_asset" | "extract_workflow" | "evidence_infrastructure" | "active_evidence_followup" | "captured_run_fact_bootstrap" | "captured_run_fact_review";
|
|
4
|
+
export type WorkflowCandidateEditOperation = "insert_step" | "add_verifier" | "tighten_boundary" | "split_step" | "replace_role";
|
|
5
|
+
export type WorkflowCandidateActionPathStepId = "source_lineage" | "source_evidence" | "candidate_action" | "candidate_inspect" | "candidate_governance" | "candidate_diff" | "manager_rationale" | "adoption_review" | "evolution_preview" | "organization_bind" | "local_init" | "sync_dry_run" | "sync_apply" | "rerun_suggestions" | "rerun_mine" | "rollout_review";
|
|
6
|
+
export type WorkflowCandidateActionPathStatus = "ready" | "current" | "later";
|
|
7
|
+
export interface WorkflowCandidateActionPathStep {
|
|
8
|
+
id: WorkflowCandidateActionPathStepId;
|
|
9
|
+
label: string;
|
|
10
|
+
command: string;
|
|
11
|
+
purpose: string;
|
|
12
|
+
writes: boolean;
|
|
13
|
+
status: WorkflowCandidateActionPathStatus;
|
|
14
|
+
}
|
|
15
|
+
export type WorkflowCandidateAction = {
|
|
16
|
+
kind: "review";
|
|
17
|
+
command: string;
|
|
18
|
+
reason: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: "draft";
|
|
21
|
+
goal: string;
|
|
22
|
+
example: "dev_pipeline" | "evidence_review" | "rewrite_governance";
|
|
23
|
+
strictness: "high";
|
|
24
|
+
saveTemplate: string;
|
|
25
|
+
command: string;
|
|
26
|
+
scaffold: true;
|
|
27
|
+
deprecatedPrimaryCreationPath: "dna workflow authoring-packet";
|
|
28
|
+
} | {
|
|
29
|
+
kind: "edit_plan";
|
|
30
|
+
instruction: string;
|
|
31
|
+
fromTemplate: string;
|
|
32
|
+
workflow: string;
|
|
33
|
+
operation: WorkflowCandidateEditOperation;
|
|
34
|
+
targetStep: string;
|
|
35
|
+
saveTemplate: string;
|
|
36
|
+
command: string;
|
|
37
|
+
};
|
|
38
|
+
export interface AssetWorkflowCandidate {
|
|
39
|
+
id: string;
|
|
40
|
+
type: AssetCandidateType;
|
|
41
|
+
priority: "high" | "medium" | "low";
|
|
42
|
+
title: string;
|
|
43
|
+
candidateAssetName: string;
|
|
44
|
+
sourceAsset: string;
|
|
45
|
+
evidence: string;
|
|
46
|
+
rationale: string;
|
|
47
|
+
sourceModules: string[];
|
|
48
|
+
sourceWorkflows: string[];
|
|
49
|
+
nextCommand: string;
|
|
50
|
+
reviewCommands: string[];
|
|
51
|
+
actionPath: WorkflowCandidateActionPathStep[];
|
|
52
|
+
mutationBoundary: string;
|
|
53
|
+
plainLanguage?: {
|
|
54
|
+
label: string;
|
|
55
|
+
purpose: string;
|
|
56
|
+
workflowImprovement: string;
|
|
57
|
+
preserves: string[];
|
|
58
|
+
requiredBeforeUse: string[];
|
|
59
|
+
};
|
|
60
|
+
continuityBoundary?: string;
|
|
61
|
+
action: WorkflowCandidateAction;
|
|
62
|
+
}
|
|
63
|
+
export interface AssetCandidateReviewPacket {
|
|
64
|
+
currentState: string;
|
|
65
|
+
primaryAction: string;
|
|
66
|
+
decision: "review_active_evidence_first" | "review_candidates" | "no_candidates";
|
|
67
|
+
reason: string;
|
|
68
|
+
allowedNow: string[];
|
|
69
|
+
blockedNow: string[];
|
|
70
|
+
reviewPath: string[];
|
|
71
|
+
}
|
|
72
|
+
export interface AssetCandidateBacklog {
|
|
73
|
+
mode: "workflow_candidate_backlog";
|
|
74
|
+
scope: "asset" | "all_assets";
|
|
75
|
+
focusAsset?: string;
|
|
76
|
+
summary: {
|
|
77
|
+
assetsScanned: number;
|
|
78
|
+
dogfoodAssets: number;
|
|
79
|
+
evidenceModules: number;
|
|
80
|
+
pass: number;
|
|
81
|
+
activeModules: number;
|
|
82
|
+
captureFacts: number;
|
|
83
|
+
captureGaps: number;
|
|
84
|
+
candidates: number;
|
|
85
|
+
};
|
|
86
|
+
reviewPacket: AssetCandidateReviewPacket;
|
|
87
|
+
candidates: AssetWorkflowCandidate[];
|
|
88
|
+
nextCommands: string[];
|
|
89
|
+
mutation: {
|
|
90
|
+
writes: false;
|
|
91
|
+
note: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export type ActiveEvidenceFollowupRouteStatus = "draft_missing" | "draft_incomplete" | "draft_structural_drift" | "draft_reviewable";
|
|
95
|
+
export interface ActiveEvidenceFollowupReviewRoute {
|
|
96
|
+
candidateId: string;
|
|
97
|
+
sourceAsset: string;
|
|
98
|
+
candidateAssetName: string;
|
|
99
|
+
status: ActiveEvidenceFollowupRouteStatus;
|
|
100
|
+
candidateAsset?: WorkflowAssetSummary;
|
|
101
|
+
currentEvidence?: string;
|
|
102
|
+
createCommand: string;
|
|
103
|
+
inspectCommand: string;
|
|
104
|
+
governanceCommand: string;
|
|
105
|
+
diffCommand: string;
|
|
106
|
+
adoptionCommand: string;
|
|
107
|
+
bindCommand: string;
|
|
108
|
+
rolloutCommand: string;
|
|
109
|
+
currentCommand: string;
|
|
110
|
+
currentWrites: boolean;
|
|
111
|
+
reason: string;
|
|
112
|
+
reviewCommands: string[];
|
|
113
|
+
}
|
|
114
|
+
export declare function activeEvidenceModules(index: WorkflowAssetEvidenceIndex): WorkflowAssetEvidenceModule[];
|
|
115
|
+
export declare function activeEvidenceFollowupRoute(asset: string): {
|
|
116
|
+
candidateId: string;
|
|
117
|
+
assetName: string;
|
|
118
|
+
command: string;
|
|
119
|
+
};
|
|
120
|
+
export declare function activeEvidenceFollowupReviewRoute(sourceAsset: string, assets: WorkflowAssetSummary[], evidenceIndex?: WorkflowAssetEvidenceIndex): ActiveEvidenceFollowupReviewRoute;
|
|
121
|
+
export declare function buildWorkflowAssetCandidateBacklog(opts: {
|
|
122
|
+
name?: string;
|
|
123
|
+
projectDir?: string;
|
|
124
|
+
}): Promise<AssetCandidateBacklog | undefined>;
|