cc-codeconductor 1.3.0 → 1.4.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/README.md +21 -16
- package/dist/index.js +7240 -6446
- package/dist/library.js +196 -164
- package/dist/utils/cli-bin.d.ts +16 -0
- package/docs/generated/cli.md +202 -0
- package/package.json +3 -1
- package/presets/agy/skills/android-ui-design/SKILL.md +119 -0
- package/presets/agy/skills/cc-feature/SKILL.md +22 -0
- package/presets/agy/skills/cc-fix/SKILL.md +22 -0
- package/presets/agy/skills/cc-review/SKILL.md +22 -0
- package/presets/agy/skills/openspec/SKILL.md +20 -0
- package/presets/agy/skills/using-cc-skills/SKILL.md +21 -0
- package/presets/agy/skills/web-design-engineering/SKILL.md +101 -0
- package/presets/agy/workflows/cc-feature.md +22 -0
- package/presets/agy/workflows/cc-fix.md +22 -0
- package/presets/agy/workflows/cc-openspec.md +22 -0
- package/presets/agy/workflows/cc-review.md +22 -0
- package/presets/claude/commands/cc/feature.md +22 -0
- package/presets/claude/commands/cc/fix.md +22 -0
- package/presets/claude/commands/cc/openspec.md +22 -0
- package/presets/claude/commands/cc/review.md +22 -0
- package/presets/claude/skills/android/SKILL.md +4 -0
- package/presets/claude/skills/android-ui-design/SKILL.md +119 -0
- package/presets/claude/skills/openspec/SKILL.md +20 -0
- package/presets/claude/skills/using-cc-skills/SKILL.md +21 -0
- package/presets/claude/skills/web-design-engineering/SKILL.md +101 -0
- package/presets/codex/skills/android/SKILL.md +4 -0
- package/presets/codex/skills/android-ui-design/SKILL.md +119 -0
- package/presets/codex/skills/cc-feature/SKILL.md +22 -0
- package/presets/codex/skills/cc-fix/SKILL.md +22 -0
- package/presets/codex/skills/cc-openspec/SKILL.md +22 -0
- package/presets/codex/skills/cc-review/SKILL.md +22 -0
- package/presets/codex/skills/openspec/SKILL.md +20 -0
- package/presets/codex/skills/using-cc-skills/SKILL.md +21 -0
- package/presets/codex/skills/web-design-engineering/SKILL.md +101 -0
- package/presets/cursor/commands/cc/feature.md +22 -0
- package/presets/cursor/commands/cc/fix.md +22 -0
- package/presets/cursor/commands/cc/openspec.md +22 -0
- package/presets/cursor/commands/cc/review.md +22 -0
- package/presets/cursor/skills/android/SKILL.md +4 -0
- package/presets/cursor/skills/android-ui-design/SKILL.md +119 -0
- package/presets/cursor/skills/openspec/SKILL.md +20 -0
- package/presets/cursor/skills/using-cc-skills/SKILL.md +21 -0
- package/presets/cursor/skills/web-design-engineering/SKILL.md +101 -0
- package/presets/gemini/commands/cc/feature.toml +22 -0
- package/presets/gemini/commands/cc/fix.toml +22 -0
- package/presets/gemini/commands/cc/openspec.toml +22 -0
- package/presets/gemini/commands/cc/review.toml +22 -0
- package/presets/opencode/commands/cc-feature.md +22 -0
- package/presets/opencode/commands/cc-fix.md +22 -0
- package/presets/opencode/commands/cc-openspec.md +22 -0
- package/presets/opencode/commands/cc-review.md +22 -0
- package/presets/opencode/skills/android/SKILL.md +4 -0
- package/presets/opencode/skills/android-ui-design/SKILL.md +119 -0
- package/presets/opencode/skills/openspec/SKILL.md +20 -0
- package/presets/opencode/skills/using-cc-skills/SKILL.md +21 -0
- package/presets/opencode/skills/web-design-engineering/SKILL.md +101 -0
- package/src/presets/shared-skills.yml +4 -0
package/dist/library.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
2
6
|
var __export = (target, all) => {
|
|
3
7
|
for (var name in all)
|
|
4
8
|
__defProp(target, name, {
|
|
5
9
|
get: all[name],
|
|
6
10
|
enumerable: true,
|
|
7
11
|
configurable: true,
|
|
8
|
-
set: (
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
9
13
|
});
|
|
10
14
|
};
|
|
11
15
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -1042,9 +1046,9 @@ function err(error) {
|
|
|
1042
1046
|
// src/core/goal/goal-state.ts
|
|
1043
1047
|
var exports_goal_state = {};
|
|
1044
1048
|
__export(exports_goal_state, {
|
|
1045
|
-
|
|
1049
|
+
loadGoal: () => loadGoal,
|
|
1046
1050
|
markTaskBlocked: () => markTaskBlocked,
|
|
1047
|
-
|
|
1051
|
+
writeGoal: () => writeGoal
|
|
1048
1052
|
});
|
|
1049
1053
|
import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
1050
1054
|
import { resolve } from "node:path";
|
|
@@ -1130,6 +1134,34 @@ var init_goal_state = __esm(() => {
|
|
|
1130
1134
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
1131
1135
|
init_schemas();
|
|
1132
1136
|
|
|
1137
|
+
// src/utils/cli-bin.ts
|
|
1138
|
+
import { basename } from "node:path";
|
|
1139
|
+
function resolveCliBin(env = process.env, argv = process.argv) {
|
|
1140
|
+
if (env.CC_CLI_BIN) {
|
|
1141
|
+
return env.CC_CLI_BIN;
|
|
1142
|
+
}
|
|
1143
|
+
if (env.npm_lifecycle_event === "npx" || env.npm_command === "exec" || env._?.endsWith("/npx") || env._ === "npx") {
|
|
1144
|
+
return "npx cc-codeconductor";
|
|
1145
|
+
}
|
|
1146
|
+
if (env._?.endsWith("/bunx") || env._ === "bunx") {
|
|
1147
|
+
return "bunx cc-codeconductor";
|
|
1148
|
+
}
|
|
1149
|
+
if (env.npm_lifecycle_event === "dev") {
|
|
1150
|
+
return env.npm_lifecycle_script?.startsWith("bun") ? "bun run dev" : "npm run dev";
|
|
1151
|
+
}
|
|
1152
|
+
if (argv && argv.length > 1 && argv[1]) {
|
|
1153
|
+
const script = argv[1];
|
|
1154
|
+
const binName = basename(script);
|
|
1155
|
+
if (binName === "main.ts") {
|
|
1156
|
+
return "bun run dev";
|
|
1157
|
+
}
|
|
1158
|
+
if (binName === "cc-codeconductor" || binName === "codeconductor") {
|
|
1159
|
+
return binName;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
return "cc-codeconductor";
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1133
1165
|
// src/core/product-graph/paths.ts
|
|
1134
1166
|
import { join } from "node:path";
|
|
1135
1167
|
var PRODUCT_DIR = ".codeconductor";
|
|
@@ -1157,7 +1189,7 @@ async function loadGraph(projectRoot) {
|
|
|
1157
1189
|
return ok(ProductGraphSchema.parse(JSON.parse(raw)));
|
|
1158
1190
|
} catch (e) {
|
|
1159
1191
|
if (e.code === "ENOENT") {
|
|
1160
|
-
return err(new Error(
|
|
1192
|
+
return err(new Error(`Product graph not found. Run \`${resolveCliBin()} ingest\` first.`));
|
|
1161
1193
|
}
|
|
1162
1194
|
return err(e instanceof Error ? e : new Error(String(e)));
|
|
1163
1195
|
}
|
|
@@ -2669,165 +2701,165 @@ async function runLoopForProject(projectRoot, options) {
|
|
|
2669
2701
|
// src/index.ts
|
|
2670
2702
|
init_schemas();
|
|
2671
2703
|
export {
|
|
2672
|
-
|
|
2673
|
-
validateTaskOutcome,
|
|
2674
|
-
validateTargetCapabilities,
|
|
2675
|
-
validateSkillsRegistry,
|
|
2676
|
-
validateSkillFrontmatter,
|
|
2677
|
-
validateScorecardRecord,
|
|
2678
|
-
validateRunnerTarget,
|
|
2679
|
-
validateReviewerOutput,
|
|
2680
|
-
validateProjectProfile,
|
|
2681
|
-
validateProductGraph,
|
|
2682
|
-
validateProductEvent,
|
|
2683
|
-
validatePlannerOutput,
|
|
2684
|
-
validateOpenspecState,
|
|
2685
|
-
validateOpenCodeAgentFile,
|
|
2686
|
-
validateModelConfig,
|
|
2687
|
-
validateMemoryPointer,
|
|
2688
|
-
validateMemoryIndex,
|
|
2689
|
-
validateKnowledgeEntity,
|
|
2690
|
-
validateImplementerOutput,
|
|
2691
|
-
validateHarnessSuite,
|
|
2692
|
-
validateHarnessOverlay,
|
|
2693
|
-
validateHarnessExperiment,
|
|
2694
|
-
validateHarnessCatalog,
|
|
2695
|
-
validateGoalGraph,
|
|
2696
|
-
validateExecutionContext,
|
|
2697
|
-
validateEvidenceIds,
|
|
2698
|
-
validateEvidence,
|
|
2699
|
-
validateDecision,
|
|
2700
|
-
validateCouncilVerdictInput,
|
|
2701
|
-
validateCouncilVerdict,
|
|
2702
|
-
validateCouncilSpec,
|
|
2703
|
-
validateConsensusConfig,
|
|
2704
|
-
validateConfig,
|
|
2705
|
-
validateCommandFrontmatter,
|
|
2706
|
-
validateCommandEnvelope,
|
|
2707
|
-
validateClaudeAgentFile,
|
|
2708
|
-
validateCanonicalTaskCard,
|
|
2709
|
-
validateBacklogDocument,
|
|
2710
|
-
validateAgentOutput,
|
|
2711
|
-
validateAgentContract,
|
|
2712
|
-
tddCycleStateMachine,
|
|
2713
|
-
startTask,
|
|
2714
|
-
shouldRunAgentLoop,
|
|
2715
|
-
runVerification,
|
|
2716
|
-
runLoopForProject,
|
|
2717
|
-
runLoop,
|
|
2718
|
-
rollbackTaskStatus,
|
|
2719
|
-
loopStateMachine,
|
|
2720
|
-
loadTddSuiteEvidence,
|
|
2721
|
-
hasTddRunnerEvidence,
|
|
2722
|
-
goalTaskToCanonicalCard,
|
|
2723
|
-
getReadyTasks,
|
|
2724
|
-
getNextTask,
|
|
2725
|
-
gateTaskCompletion,
|
|
2726
|
-
formatGoalStatus,
|
|
2727
|
-
formatFeedback,
|
|
2728
|
-
createInitialTddState,
|
|
2729
|
-
createInitialState,
|
|
2730
|
-
completeTask,
|
|
2731
|
-
captureTddSuiteEvidence,
|
|
2732
|
-
buildTaskEnvelope,
|
|
2733
|
-
advanceTddPhase,
|
|
2734
|
-
WorkflowRiskRuleSchema,
|
|
2735
|
-
WorkflowProfileSchema,
|
|
2736
|
-
WorkflowPhaseSchema,
|
|
2737
|
-
WorkflowCommandSchema,
|
|
2738
|
-
VerificationReportSchema,
|
|
2739
|
-
ToolProviderNamesSchema,
|
|
2740
|
-
TechnicalPlanOutputSchema,
|
|
2741
|
-
TaskOutcomeStatusSchema,
|
|
2742
|
-
TaskOutcomeSourceSchema,
|
|
2743
|
-
TaskOutcomeSchema,
|
|
2744
|
-
TargetCapabilitiesSchema,
|
|
2745
|
-
StrategicMemorySchema,
|
|
2746
|
-
SpecAnalyzeReportSchema,
|
|
2747
|
-
SpecAnalyzeFindingSchema,
|
|
2748
|
-
SkillsRegistrySchema,
|
|
2749
|
-
SkillFrontmatterSchema,
|
|
2750
|
-
SentryWebhookSchema,
|
|
2751
|
-
SentryStackFrameSchema,
|
|
2752
|
-
ScorecardVerdictSchema,
|
|
2753
|
-
ScorecardRecordSchema,
|
|
2754
|
-
ScorecardCriterionSchema,
|
|
2755
|
-
ScorecardCriterionIdSchema,
|
|
2756
|
-
RunnerTargetSchema,
|
|
2757
|
-
ReviewerOutputSchema,
|
|
2758
|
-
ReviewFindingSchema,
|
|
2759
|
-
ReviewAxisSchema,
|
|
2760
|
-
ProjectProfileSchema,
|
|
2761
|
-
ProductNodeTypeSchema,
|
|
2762
|
-
ProductMetaSchema,
|
|
2763
|
-
ProductGraphSchema,
|
|
2764
|
-
ProductGraphNodeSchema,
|
|
2765
|
-
ProductGraphEdgeSchema,
|
|
2766
|
-
ProductEventTypeSchema,
|
|
2767
|
-
ProductEventSchema,
|
|
2768
|
-
PlannerOutputSchema,
|
|
2769
|
-
PermissionProviderNamesSchema,
|
|
2770
|
-
OperationalStateSchema,
|
|
2771
|
-
OpenspecTaskCardStatusSchema,
|
|
2772
|
-
OpenspecTaskCardSchema,
|
|
2773
|
-
OpenspecTaskCardPhaseSchema,
|
|
2774
|
-
OpenspecStateSchema,
|
|
2775
|
-
OpenCodeAgentFileSchema,
|
|
2776
|
-
ModelConfigSchema,
|
|
2777
|
-
MemoryPointerSchema,
|
|
2778
|
-
MemoryIndexSchema,
|
|
2779
|
-
ManifestEntrySchema,
|
|
2780
|
-
LoopEngine,
|
|
2781
|
-
LoopConfigSchema,
|
|
2782
|
-
KnowledgeEntitySchema,
|
|
2783
|
-
InstallStrategySchema,
|
|
2784
|
-
InstallManifestSchema,
|
|
2785
|
-
ImplementerTestsSchema,
|
|
2786
|
-
ImplementerOutputSchema,
|
|
2787
|
-
ImpactReportSchema,
|
|
2788
|
-
HarnessToggleKindSchema,
|
|
2789
|
-
HarnessSuiteTaskSchema,
|
|
2790
|
-
HarnessSuiteSchema,
|
|
2791
|
-
HarnessOverlaySchema,
|
|
2792
|
-
HarnessExperimentSchema,
|
|
2793
|
-
HarnessComponentLayerSchema,
|
|
2794
|
-
HarnessComponentIdSchema,
|
|
2795
|
-
HarnessCatalogSchema,
|
|
2796
|
-
HarnessCatalogEntrySchema,
|
|
2797
|
-
GraphRelationSchema,
|
|
2798
|
-
GoalTaskSchema,
|
|
2799
|
-
GoalGraphSchema,
|
|
2800
|
-
ExecutionProfileSchema,
|
|
2801
|
-
ExecutionProfileNameSchema,
|
|
2802
|
-
ExecutionContextSchema,
|
|
2803
|
-
EvidenceSchema,
|
|
2804
|
-
EvaluationIndexSchema,
|
|
2805
|
-
DecisionSchema,
|
|
2806
|
-
CouncilVerdictSchema,
|
|
2807
|
-
CouncilVerdictInputSchema,
|
|
2808
|
-
CouncilSpecSchema,
|
|
2809
|
-
CouncilFindingSchema,
|
|
2810
|
-
CouncilAgentSpecSchema,
|
|
2811
|
-
ContractTargetSchema,
|
|
2812
|
-
ContractFormatSchema,
|
|
2813
|
-
ConsensusConfigSchema,
|
|
2814
|
-
ConfidenceLevelSchema,
|
|
2815
|
-
CompileCheckConfigSchema,
|
|
2816
|
-
CommandFrontmatterSchema,
|
|
2817
|
-
CommandEnvelopeSchema,
|
|
2818
|
-
CodeConductorConfigSchema,
|
|
2819
|
-
ClaudeAgentFileSchema,
|
|
2820
|
-
CcepOutputFormatSchema,
|
|
2821
|
-
CanonicalTaskCardStatusSchema,
|
|
2822
|
-
CanonicalTaskCardSchema,
|
|
2823
|
-
BusinessReviewOutputSchema,
|
|
2824
|
-
BacklogTypeSchema,
|
|
2825
|
-
BacklogStatusSchema,
|
|
2826
|
-
BacklogPrioritySchema,
|
|
2827
|
-
BacklogItemSchema,
|
|
2828
|
-
BacklogGlobalSchema,
|
|
2829
|
-
BacklogDocumentSchema,
|
|
2830
|
-
AgentOutputSchema,
|
|
2704
|
+
AgentArtifactSchema,
|
|
2831
2705
|
AgentContractSchema,
|
|
2832
|
-
|
|
2706
|
+
AgentOutputSchema,
|
|
2707
|
+
BacklogDocumentSchema,
|
|
2708
|
+
BacklogGlobalSchema,
|
|
2709
|
+
BacklogItemSchema,
|
|
2710
|
+
BacklogPrioritySchema,
|
|
2711
|
+
BacklogStatusSchema,
|
|
2712
|
+
BacklogTypeSchema,
|
|
2713
|
+
BusinessReviewOutputSchema,
|
|
2714
|
+
CanonicalTaskCardSchema,
|
|
2715
|
+
CanonicalTaskCardStatusSchema,
|
|
2716
|
+
CcepOutputFormatSchema,
|
|
2717
|
+
ClaudeAgentFileSchema,
|
|
2718
|
+
CodeConductorConfigSchema,
|
|
2719
|
+
CommandEnvelopeSchema,
|
|
2720
|
+
CommandFrontmatterSchema,
|
|
2721
|
+
CompileCheckConfigSchema,
|
|
2722
|
+
ConfidenceLevelSchema,
|
|
2723
|
+
ConsensusConfigSchema,
|
|
2724
|
+
ContractFormatSchema,
|
|
2725
|
+
ContractTargetSchema,
|
|
2726
|
+
CouncilAgentSpecSchema,
|
|
2727
|
+
CouncilFindingSchema,
|
|
2728
|
+
CouncilSpecSchema,
|
|
2729
|
+
CouncilVerdictInputSchema,
|
|
2730
|
+
CouncilVerdictSchema,
|
|
2731
|
+
DecisionSchema,
|
|
2732
|
+
EvaluationIndexSchema,
|
|
2733
|
+
EvidenceSchema,
|
|
2734
|
+
ExecutionContextSchema,
|
|
2735
|
+
ExecutionProfileNameSchema,
|
|
2736
|
+
ExecutionProfileSchema,
|
|
2737
|
+
GoalGraphSchema,
|
|
2738
|
+
GoalTaskSchema,
|
|
2739
|
+
GraphRelationSchema,
|
|
2740
|
+
HarnessCatalogEntrySchema,
|
|
2741
|
+
HarnessCatalogSchema,
|
|
2742
|
+
HarnessComponentIdSchema,
|
|
2743
|
+
HarnessComponentLayerSchema,
|
|
2744
|
+
HarnessExperimentSchema,
|
|
2745
|
+
HarnessOverlaySchema,
|
|
2746
|
+
HarnessSuiteSchema,
|
|
2747
|
+
HarnessSuiteTaskSchema,
|
|
2748
|
+
HarnessToggleKindSchema,
|
|
2749
|
+
ImpactReportSchema,
|
|
2750
|
+
ImplementerOutputSchema,
|
|
2751
|
+
ImplementerTestsSchema,
|
|
2752
|
+
InstallManifestSchema,
|
|
2753
|
+
InstallStrategySchema,
|
|
2754
|
+
KnowledgeEntitySchema,
|
|
2755
|
+
LoopConfigSchema,
|
|
2756
|
+
LoopEngine,
|
|
2757
|
+
ManifestEntrySchema,
|
|
2758
|
+
MemoryIndexSchema,
|
|
2759
|
+
MemoryPointerSchema,
|
|
2760
|
+
ModelConfigSchema,
|
|
2761
|
+
OpenCodeAgentFileSchema,
|
|
2762
|
+
OpenspecStateSchema,
|
|
2763
|
+
OpenspecTaskCardPhaseSchema,
|
|
2764
|
+
OpenspecTaskCardSchema,
|
|
2765
|
+
OpenspecTaskCardStatusSchema,
|
|
2766
|
+
OperationalStateSchema,
|
|
2767
|
+
PermissionProviderNamesSchema,
|
|
2768
|
+
PlannerOutputSchema,
|
|
2769
|
+
ProductEventSchema,
|
|
2770
|
+
ProductEventTypeSchema,
|
|
2771
|
+
ProductGraphEdgeSchema,
|
|
2772
|
+
ProductGraphNodeSchema,
|
|
2773
|
+
ProductGraphSchema,
|
|
2774
|
+
ProductMetaSchema,
|
|
2775
|
+
ProductNodeTypeSchema,
|
|
2776
|
+
ProjectProfileSchema,
|
|
2777
|
+
ReviewAxisSchema,
|
|
2778
|
+
ReviewFindingSchema,
|
|
2779
|
+
ReviewerOutputSchema,
|
|
2780
|
+
RunnerTargetSchema,
|
|
2781
|
+
ScorecardCriterionIdSchema,
|
|
2782
|
+
ScorecardCriterionSchema,
|
|
2783
|
+
ScorecardRecordSchema,
|
|
2784
|
+
ScorecardVerdictSchema,
|
|
2785
|
+
SentryStackFrameSchema,
|
|
2786
|
+
SentryWebhookSchema,
|
|
2787
|
+
SkillFrontmatterSchema,
|
|
2788
|
+
SkillsRegistrySchema,
|
|
2789
|
+
SpecAnalyzeFindingSchema,
|
|
2790
|
+
SpecAnalyzeReportSchema,
|
|
2791
|
+
StrategicMemorySchema,
|
|
2792
|
+
TargetCapabilitiesSchema,
|
|
2793
|
+
TaskOutcomeSchema,
|
|
2794
|
+
TaskOutcomeSourceSchema,
|
|
2795
|
+
TaskOutcomeStatusSchema,
|
|
2796
|
+
TechnicalPlanOutputSchema,
|
|
2797
|
+
ToolProviderNamesSchema,
|
|
2798
|
+
VerificationReportSchema,
|
|
2799
|
+
WorkflowCommandSchema,
|
|
2800
|
+
WorkflowPhaseSchema,
|
|
2801
|
+
WorkflowProfileSchema,
|
|
2802
|
+
WorkflowRiskRuleSchema,
|
|
2803
|
+
advanceTddPhase,
|
|
2804
|
+
buildTaskEnvelope,
|
|
2805
|
+
captureTddSuiteEvidence,
|
|
2806
|
+
completeTask,
|
|
2807
|
+
createInitialState,
|
|
2808
|
+
createInitialTddState,
|
|
2809
|
+
formatFeedback,
|
|
2810
|
+
formatGoalStatus,
|
|
2811
|
+
gateTaskCompletion,
|
|
2812
|
+
getNextTask,
|
|
2813
|
+
getReadyTasks,
|
|
2814
|
+
goalTaskToCanonicalCard,
|
|
2815
|
+
hasTddRunnerEvidence,
|
|
2816
|
+
loadTddSuiteEvidence,
|
|
2817
|
+
loopStateMachine,
|
|
2818
|
+
rollbackTaskStatus,
|
|
2819
|
+
runLoop,
|
|
2820
|
+
runLoopForProject,
|
|
2821
|
+
runVerification,
|
|
2822
|
+
shouldRunAgentLoop,
|
|
2823
|
+
startTask,
|
|
2824
|
+
tddCycleStateMachine,
|
|
2825
|
+
validateAgentContract,
|
|
2826
|
+
validateAgentOutput,
|
|
2827
|
+
validateBacklogDocument,
|
|
2828
|
+
validateCanonicalTaskCard,
|
|
2829
|
+
validateClaudeAgentFile,
|
|
2830
|
+
validateCommandEnvelope,
|
|
2831
|
+
validateCommandFrontmatter,
|
|
2832
|
+
validateConfig,
|
|
2833
|
+
validateConsensusConfig,
|
|
2834
|
+
validateCouncilSpec,
|
|
2835
|
+
validateCouncilVerdict,
|
|
2836
|
+
validateCouncilVerdictInput,
|
|
2837
|
+
validateDecision,
|
|
2838
|
+
validateEvidence,
|
|
2839
|
+
validateEvidenceIds,
|
|
2840
|
+
validateExecutionContext,
|
|
2841
|
+
validateGoalGraph,
|
|
2842
|
+
validateHarnessCatalog,
|
|
2843
|
+
validateHarnessExperiment,
|
|
2844
|
+
validateHarnessOverlay,
|
|
2845
|
+
validateHarnessSuite,
|
|
2846
|
+
validateImplementerOutput,
|
|
2847
|
+
validateKnowledgeEntity,
|
|
2848
|
+
validateMemoryIndex,
|
|
2849
|
+
validateMemoryPointer,
|
|
2850
|
+
validateModelConfig,
|
|
2851
|
+
validateOpenCodeAgentFile,
|
|
2852
|
+
validateOpenspecState,
|
|
2853
|
+
validatePlannerOutput,
|
|
2854
|
+
validateProductEvent,
|
|
2855
|
+
validateProductGraph,
|
|
2856
|
+
validateProjectProfile,
|
|
2857
|
+
validateReviewerOutput,
|
|
2858
|
+
validateRunnerTarget,
|
|
2859
|
+
validateScorecardRecord,
|
|
2860
|
+
validateSkillFrontmatter,
|
|
2861
|
+
validateSkillsRegistry,
|
|
2862
|
+
validateTargetCapabilities,
|
|
2863
|
+
validateTaskOutcome,
|
|
2864
|
+
validateWorkflowProfile
|
|
2833
2865
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve the CLI command prefix based on execution context.
|
|
3
|
+
*
|
|
4
|
+
* - When invoked via npx (e.g. `npx cc-codeconductor ...`), returns `npx cc-codeconductor`.
|
|
5
|
+
* - When invoked via bunx, returns `bunx cc-codeconductor`.
|
|
6
|
+
* - When invoked during local development (`bun run dev` or executing `src/cli/main.ts`), returns `bun run dev`.
|
|
7
|
+
* - When invoked via an installed binary (`cc-codeconductor` or `codeconductor`), returns that binary name.
|
|
8
|
+
* - Respects the `CC_CLI_BIN` environment variable for testing or explicit overrides.
|
|
9
|
+
* - Defaults to `cc-codeconductor`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveCliBin(env?: NodeJS.ProcessEnv, argv?: readonly string[]): string;
|
|
12
|
+
/**
|
|
13
|
+
* Formats a command usage string replacing any legacy or alternative command prefix
|
|
14
|
+
* (`cc `, `cc-codeconductor `, or `codeconductor `) with the resolved bin prefix.
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatUsage(usage: string, bin?: string): string;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# CodeConductor CLI
|
|
2
|
+
|
|
3
|
+
## setup
|
|
4
|
+
|
|
5
|
+
Configure and install CodeConductor.
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
cc-codeconductor setup [--target <target>] [--locale en|es] [--yes] [--dry-run]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## detect
|
|
12
|
+
|
|
13
|
+
Inspect the project stack and recommended presets.
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
cc-codeconductor detect
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## init
|
|
20
|
+
|
|
21
|
+
Initialize low-level CodeConductor configuration.
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
cc-codeconductor init [--locale en|es]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## install
|
|
28
|
+
|
|
29
|
+
Install harness components.
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
cc-codeconductor install preset --target <target>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## version
|
|
36
|
+
|
|
37
|
+
Show CLI and project harness versions.
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
cc-codeconductor version [--json]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## status
|
|
44
|
+
|
|
45
|
+
Show installed harness state.
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
cc-codeconductor status [--json]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## doctor
|
|
52
|
+
|
|
53
|
+
Diagnose the installation.
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
cc-codeconductor doctor
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## update
|
|
60
|
+
|
|
61
|
+
Safely reconcile managed harness files.
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
cc-codeconductor update [--dry-run] [--force]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## migrate
|
|
68
|
+
|
|
69
|
+
Apply compatibility migrations.
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
cc-codeconductor migrate [--dry-run]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## docs
|
|
76
|
+
|
|
77
|
+
Read bundled command documentation.
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
cc-codeconductor docs [command]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## completion
|
|
84
|
+
|
|
85
|
+
Generate shell completion.
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
cc-codeconductor completion <bash|zsh|fish|powershell>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## hook
|
|
92
|
+
|
|
93
|
+
Run installed agent hooks.
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
cc-codeconductor hook <pre-tool|post-tool|session-start>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## cc-help
|
|
100
|
+
|
|
101
|
+
Show a target preset inventory.
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
cc-codeconductor cc-help --target <target>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## ask
|
|
108
|
+
|
|
109
|
+
Recommend a slash-command workflow.
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
cc-codeconductor ask "problem"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## goal
|
|
116
|
+
|
|
117
|
+
Plan a goal into dependent tasks.
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
cc-codeconductor goal "objective"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## ingest
|
|
124
|
+
|
|
125
|
+
Ingest repository knowledge into the product graph.
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
cc-codeconductor ingest
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## product
|
|
132
|
+
|
|
133
|
+
Explore the product graph and memory.
|
|
134
|
+
|
|
135
|
+
```text
|
|
136
|
+
cc-codeconductor product <subcommand>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## ccep
|
|
140
|
+
|
|
141
|
+
Run CCEP contract workflows.
|
|
142
|
+
|
|
143
|
+
```text
|
|
144
|
+
cc-codeconductor ccep <subcommand>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## openspec
|
|
148
|
+
|
|
149
|
+
Run the OpenSpec delivery loop.
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
cc-codeconductor openspec <subcommand>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## scorecard
|
|
156
|
+
|
|
157
|
+
Record and aggregate outcomes.
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
cc-codeconductor scorecard <subcommand>
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## orchestrate
|
|
164
|
+
|
|
165
|
+
Run goal execution orchestration.
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
cc-codeconductor orchestrate <subcommand>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## impact
|
|
172
|
+
|
|
173
|
+
Analyze change impact.
|
|
174
|
+
|
|
175
|
+
```text
|
|
176
|
+
cc-codeconductor impact [--files <paths>]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## verify
|
|
180
|
+
|
|
181
|
+
Verify task completion with evidence.
|
|
182
|
+
|
|
183
|
+
```text
|
|
184
|
+
cc-codeconductor verify --task <id>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## seo
|
|
188
|
+
|
|
189
|
+
Audit SEO and generate llms.txt.
|
|
190
|
+
|
|
191
|
+
```text
|
|
192
|
+
cc-codeconductor seo audit --url <url>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## debt-harvest
|
|
196
|
+
|
|
197
|
+
Scan source files for deferred debt.
|
|
198
|
+
|
|
199
|
+
```text
|
|
200
|
+
cc-codeconductor debt-harvest
|
|
201
|
+
```
|
|
202
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-codeconductor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"dist/index.js",
|
|
19
19
|
"dist/library.js",
|
|
20
20
|
"dist/**/*.d.ts",
|
|
21
|
+
"docs/generated/",
|
|
21
22
|
"policy.yml",
|
|
22
23
|
"presets/",
|
|
23
24
|
"src/presets/"
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"build:cli": "bun build src/cli/main.ts --target=node --outfile=dist/index.js",
|
|
49
50
|
"build:lib": "bun build src/index.ts --target=node --outfile=dist/library.js --packages=external",
|
|
50
51
|
"build:types": "tsc -p tsconfig.lib.json --emitDeclarationOnly",
|
|
52
|
+
"generate:cli-docs": "bun run scripts/generate-cli-docs.ts",
|
|
51
53
|
"test": "bun test",
|
|
52
54
|
"test:fast": "bun run scripts/test-fast.ts",
|
|
53
55
|
"typecheck": "tsc --noEmit",
|