cc-codeconductor 1.2.0 → 1.3.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/README.md +30 -10
- package/dist/core/config/codeconductor-config.d.ts +2 -1
- package/dist/core/presets/package-paths.d.ts +1 -0
- package/dist/core/runner/runner-target.d.ts +32 -0
- package/dist/index.js +1615 -546
- package/dist/library.js +75 -14
- package/dist/validation/schemas.d.ts +197 -35
- package/package.json +4 -1
- package/presets/agy/AGENTS.md +1 -1
- package/presets/agy/hooks.json +3 -3
- package/presets/agy/scripts/invoke-hook.cjs +21 -17
- package/presets/agy/workflows/cc-api-contract.md +4 -0
- package/presets/agy/workflows/cc-ask.md +10 -10
- package/presets/agy/workflows/cc-council.md +4 -0
- package/presets/agy/workflows/cc-db-migration.md +4 -0
- package/presets/agy/workflows/cc-explore.md +2 -2
- package/presets/agy/workflows/cc-feature.md +4 -0
- package/presets/agy/workflows/cc-fix.md +4 -0
- package/presets/agy/workflows/cc-handoff.md +1 -1
- package/presets/agy/workflows/cc-prototype.md +1 -1
- package/presets/agy/workflows/cc-refactor.md +5 -1
- package/presets/agy/workflows/cc-review.md +5 -1
- package/presets/agy/workflows/cc-security.md +4 -0
- package/presets/agy/workflows/cc-spec-mutation.md +4 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +1 -1
- package/presets/agy/workflows/cc-test-plan.md +5 -1
- package/presets/claude/commands/cc/api-contract.md +5 -1
- package/presets/claude/commands/cc/ask.md +1 -1
- package/presets/claude/commands/cc/backlog.md +1 -1
- package/presets/claude/commands/cc/clarify.md +1 -1
- package/presets/claude/commands/cc/council.md +4 -0
- package/presets/claude/commands/cc/db-migration.md +5 -1
- package/presets/claude/commands/cc/explore.md +1 -1
- package/presets/claude/commands/cc/feature.md +5 -1
- package/presets/claude/commands/cc/fix.md +5 -1
- package/presets/claude/commands/cc/handoff.md +1 -1
- package/presets/claude/commands/cc/iterative.md +1 -1
- package/presets/claude/commands/cc/openspec.md +1 -1
- package/presets/claude/commands/cc/prototype.md +1 -1
- package/presets/claude/commands/cc/refactor.md +5 -1
- package/presets/claude/commands/cc/review.md +5 -1
- package/presets/claude/commands/cc/scorecard.md +1 -1
- package/presets/claude/commands/cc/security.md +5 -1
- package/presets/claude/commands/cc/spec-mutation.md +5 -1
- package/presets/claude/commands/cc/tdd-cycle.md +1 -1
- package/presets/claude/commands/cc/test-plan.md +5 -1
- package/presets/claude/commands/cc/triage.md +1 -1
- package/presets/claude/skills/android/SKILL.md +0 -1
- package/presets/claude/skills/api-versioning/SKILL.md +0 -1
- package/presets/claude/skills/django-orm/SKILL.md +0 -1
- package/presets/claude/skills/django-testing/SKILL.md +0 -1
- package/presets/claude/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/claude/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/claude/skills/python/SKILL.md +0 -1
- package/presets/claude/skills/python-django-stack/SKILL.md +0 -1
- package/presets/claude/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/claude/skills/security/SKILL.md +0 -1
- package/presets/claude/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/claude/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/claude/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/claude/skills/testing-strategy/SKILL.md +0 -1
- package/presets/codex/AGENTS.md +3 -2
- package/presets/codex/commands/cc-ask.md +10 -10
- package/presets/codex/skills/android/SKILL.md +0 -1
- package/presets/codex/skills/api-versioning/SKILL.md +0 -1
- package/presets/codex/skills/cc-api-contract/SKILL.md +11 -7
- package/presets/codex/skills/cc-backlog/SKILL.md +1 -1
- package/presets/codex/skills/cc-clarify/SKILL.md +1 -1
- package/presets/codex/skills/cc-council/SKILL.md +4 -0
- package/presets/codex/skills/cc-db-migration/SKILL.md +11 -7
- package/presets/codex/skills/cc-explore/SKILL.md +3 -3
- package/presets/codex/skills/cc-feature/SKILL.md +16 -8
- package/presets/codex/skills/cc-fix/SKILL.md +14 -7
- package/presets/codex/skills/cc-handoff/SKILL.md +2 -2
- package/presets/codex/skills/cc-iterative/SKILL.md +8 -8
- package/presets/codex/skills/cc-openspec/SKILL.md +2 -2
- package/presets/codex/skills/cc-prototype/SKILL.md +2 -2
- package/presets/codex/skills/cc-refactor/SKILL.md +8 -4
- package/presets/codex/skills/cc-review/SKILL.md +6 -2
- package/presets/codex/skills/cc-scorecard/SKILL.md +1 -1
- package/presets/codex/skills/cc-security/SKILL.md +5 -1
- package/presets/codex/skills/cc-spec-mutation/SKILL.md +7 -3
- package/presets/codex/skills/cc-tdd-cycle/SKILL.md +6 -6
- package/presets/codex/skills/cc-test-plan/SKILL.md +6 -2
- package/presets/codex/skills/cc-triage/SKILL.md +1 -1
- package/presets/codex/skills/django-orm/SKILL.md +0 -1
- package/presets/codex/skills/django-testing/SKILL.md +0 -1
- package/presets/codex/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/codex/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/codex/skills/python/SKILL.md +0 -1
- package/presets/codex/skills/python-django-stack/SKILL.md +0 -1
- package/presets/codex/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/codex/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/codex/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/codex/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/codex/skills/testing-strategy/SKILL.md +0 -1
- package/presets/cursor/agents/architect.md +1 -1
- package/presets/cursor/agents/complexity-auditor.md +1 -1
- package/presets/cursor/agents/contract-builder.md +1 -1
- package/presets/cursor/agents/docs.md +1 -1
- package/presets/cursor/agents/goal-planner.md +1 -1
- package/presets/cursor/agents/implementer.md +2 -2
- package/presets/cursor/agents/orchestrator.md +3 -3
- package/presets/cursor/agents/reviewer.md +4 -4
- package/presets/cursor/agents/security-reviewer.md +1 -1
- package/presets/cursor/agents/task-coach.md +1 -1
- package/presets/cursor/agents/tester.md +1 -1
- package/presets/cursor/commands/cc/api-contract.md +5 -1
- package/presets/cursor/commands/cc/ask.md +1 -1
- package/presets/cursor/commands/cc/backlog.md +1 -1
- package/presets/cursor/commands/cc/clarify.md +1 -1
- package/presets/cursor/commands/cc/council.md +4 -0
- package/presets/cursor/commands/cc/db-migration.md +5 -1
- package/presets/cursor/commands/cc/explore.md +1 -1
- package/presets/cursor/commands/cc/feature.md +5 -1
- package/presets/cursor/commands/cc/fix.md +5 -1
- package/presets/cursor/commands/cc/handoff.md +1 -1
- package/presets/cursor/commands/cc/iterative.md +1 -1
- package/presets/cursor/commands/cc/openspec.md +1 -1
- package/presets/cursor/commands/cc/prototype.md +1 -1
- package/presets/cursor/commands/cc/refactor.md +5 -1
- package/presets/cursor/commands/cc/review.md +5 -1
- package/presets/cursor/commands/cc/scorecard.md +1 -1
- package/presets/cursor/commands/cc/security.md +5 -1
- package/presets/cursor/commands/cc/spec-mutation.md +5 -1
- package/presets/cursor/commands/cc/tdd-cycle.md +1 -1
- package/presets/cursor/commands/cc/test-plan.md +5 -1
- package/presets/cursor/commands/cc/triage.md +1 -1
- package/presets/cursor/skills/android/SKILL.md +0 -1
- package/presets/cursor/skills/api-versioning/SKILL.md +0 -1
- package/presets/cursor/skills/astro/SKILL.md +0 -1
- package/presets/cursor/skills/auth-token-inspector/SKILL.md +0 -1
- package/presets/cursor/skills/code-review/SKILL.md +0 -1
- package/presets/cursor/skills/django-orm/SKILL.md +0 -1
- package/presets/cursor/skills/django-testing/SKILL.md +0 -1
- package/presets/cursor/skills/django-uv/SKILL.md +0 -1
- package/presets/cursor/skills/drizzle-schema-architect/SKILL.md +0 -1
- package/presets/cursor/skills/fastapi-pydantic-strict/SKILL.md +0 -1
- package/presets/cursor/skills/jpa-nplusone-detector/SKILL.md +0 -1
- package/presets/cursor/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/cursor/skills/livewire-alpine-bridge/SKILL.md +0 -1
- package/presets/cursor/skills/nextjs-typescript/SKILL.md +0 -1
- package/presets/cursor/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/cursor/skills/python/SKILL.md +0 -1
- package/presets/cursor/skills/python-django-stack/SKILL.md +0 -1
- package/presets/cursor/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/cursor/skills/security/SKILL.md +0 -1
- package/presets/cursor/skills/seo-analytics-injector/SKILL.md +0 -1
- package/presets/cursor/skills/spring-auth-auditor/SKILL.md +0 -1
- package/presets/cursor/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/cursor/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/cursor/skills/spring-boot-testing-strategy/SKILL.md +0 -1
- package/presets/cursor/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/cursor/skills/tailwind-responsive-auditor/SKILL.md +0 -1
- package/presets/cursor/skills/tdd-mutation-tester/SKILL.md +0 -1
- package/presets/gemini/GEMINI.md +38 -0
- package/presets/gemini/commands/cc/api-contract.toml +10 -6
- package/presets/gemini/commands/cc/ask.toml +1 -1
- package/presets/gemini/commands/cc/backlog.toml +1 -1
- package/presets/gemini/commands/cc/clarify.toml +1 -1
- package/presets/gemini/commands/cc/council.toml +4 -0
- package/presets/gemini/commands/cc/db-migration.toml +10 -6
- package/presets/gemini/commands/cc/explore.toml +1 -1
- package/presets/gemini/commands/cc/feature.toml +11 -7
- package/presets/gemini/commands/cc/fix.toml +13 -9
- package/presets/gemini/commands/cc/handoff.toml +1 -1
- package/presets/gemini/commands/cc/iterative.toml +7 -7
- package/presets/gemini/commands/cc/openspec.toml +1 -1
- package/presets/gemini/commands/cc/prototype.toml +1 -1
- package/presets/gemini/commands/cc/refactor.toml +8 -4
- package/presets/gemini/commands/cc/review.toml +5 -4
- package/presets/gemini/commands/cc/scorecard.toml +1 -1
- package/presets/gemini/commands/cc/security.toml +5 -1
- package/presets/gemini/commands/cc/spec-mutation.toml +5 -1
- package/presets/gemini/commands/cc/tdd-cycle.toml +5 -8
- package/presets/gemini/commands/cc/test-plan.toml +6 -2
- package/presets/gemini/commands/cc/triage.toml +1 -1
- package/presets/gemini/settings.json +3 -0
- package/presets/opencode/agents/docs.md +1 -1
- package/presets/opencode/agents/reviewer.md +1 -1
- package/presets/opencode/commands/cc-api-contract.md +4 -0
- package/presets/opencode/commands/cc-ask.md +10 -10
- package/presets/opencode/commands/cc-council.md +4 -0
- package/presets/opencode/commands/cc-db-migration.md +4 -0
- package/presets/opencode/commands/cc-explore.md +2 -2
- package/presets/opencode/commands/cc-feature.md +4 -0
- package/presets/opencode/commands/cc-fix.md +4 -0
- package/presets/opencode/commands/cc-handoff.md +1 -1
- package/presets/opencode/commands/cc-prototype.md +1 -1
- package/presets/opencode/commands/cc-refactor.md +5 -1
- package/presets/opencode/commands/cc-review.md +5 -1
- package/presets/opencode/commands/cc-security.md +4 -0
- package/presets/opencode/commands/cc-spec-mutation.md +4 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +1 -1
- package/presets/opencode/commands/cc-test-plan.md +5 -1
- package/presets/opencode/prompts/v1.0.0/README.md +1 -1
- package/presets/opencode/prompts/v1.0.0/docs.md +1 -1
- package/presets/opencode/prompts/v1.0.0/reviewer.md +1 -1
- package/presets/opencode/skills/android/SKILL.md +0 -1
- package/presets/opencode/skills/api-versioning/SKILL.md +0 -1
- package/presets/opencode/skills/astro/SKILL.md +0 -1
- package/presets/opencode/skills/auth-token-inspector/SKILL.md +0 -1
- package/presets/opencode/skills/code-review/SKILL.md +0 -1
- package/presets/opencode/skills/django-orm/SKILL.md +0 -1
- package/presets/opencode/skills/django-testing/SKILL.md +0 -1
- package/presets/opencode/skills/django-uv/SKILL.md +0 -1
- package/presets/opencode/skills/drizzle-schema-architect/SKILL.md +0 -1
- package/presets/opencode/skills/fastapi-pydantic-strict/SKILL.md +0 -1
- package/presets/opencode/skills/jpa-nplusone-detector/SKILL.md +0 -1
- package/presets/opencode/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/opencode/skills/livewire-alpine-bridge/SKILL.md +0 -1
- package/presets/opencode/skills/nextjs-typescript/SKILL.md +0 -1
- package/presets/opencode/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/opencode/skills/python/SKILL.md +0 -1
- package/presets/opencode/skills/python-django-stack/SKILL.md +0 -1
- package/presets/opencode/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/opencode/skills/security/SKILL.md +0 -1
- package/presets/opencode/skills/seo-analytics-injector/SKILL.md +0 -1
- package/presets/opencode/skills/spring-auth-auditor/SKILL.md +0 -1
- package/presets/opencode/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/opencode/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/opencode/skills/spring-boot-testing-strategy/SKILL.md +0 -1
- package/presets/opencode/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/opencode/skills/tailwind-responsive-auditor/SKILL.md +0 -1
- package/presets/opencode/skills/tdd-mutation-tester/SKILL.md +0 -1
- package/presets/pi/AGENTS.md +43 -0
- package/presets/pi/settings.json +3 -0
- package/presets/seo-hotel/skills/astro-seo/SKILL.md +0 -1
- package/presets/seo-hotel/skills/geo-readiness/SKILL.md +0 -1
- package/presets/seo-hotel/skills/off-page/SKILL.md +0 -1
- package/presets/seo-hotel/skills/schema-validator/SKILL.md +0 -1
- package/presets/seo-hotel/skills/seo-audit/SKILL.md +0 -1
- package/presets/shared/invoke-hook.cjs +21 -17
- package/src/presets/council/council.yml +12 -9
- package/src/presets/manifests/agy.yml +1 -1
- package/src/presets/manifests/gemini.yml +11 -11
- package/src/presets/manifests/pi.yml +25 -0
- package/src/presets/models/agy.yml +2 -128
- package/src/presets/models/claude.yml +2 -144
- package/src/presets/models/codex.yml +2 -144
- package/src/presets/models/cursor.yml +2 -144
- package/src/presets/models/gemini.yml +2 -144
- package/src/presets/models/opencode.yml +3 -101
- package/src/presets/models/pi.yml +5 -0
- package/src/presets/models/roles.yml +193 -0
- package/src/presets/shared-skills.yml +64 -0
- package/src/presets/targets/agy.yml +11 -0
- package/src/presets/targets/claude.yml +12 -0
- package/src/presets/targets/codex.yml +14 -0
- package/src/presets/targets/cursor.yml +11 -0
- package/src/presets/targets/gemini.yml +15 -0
- package/src/presets/targets/opencode.yml +13 -0
- package/src/presets/targets/pi.yml +12 -0
- package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.1.0/architect.md +0 -213
- package/presets/opencode/prompts/v0.1.0/docs.md +0 -181
- package/presets/opencode/prompts/v0.1.0/implementer.md +0 -154
- package/presets/opencode/prompts/v0.1.0/orchestrator.md +0 -169
- package/presets/opencode/prompts/v0.1.0/repo-explorer.md +0 -102
- package/presets/opencode/prompts/v0.1.0/reviewer.md +0 -183
- package/presets/opencode/prompts/v0.1.0/task-coach.md +0 -142
- package/presets/opencode/prompts/v0.1.0/tester.md +0 -160
- package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.2.0/architect.md +0 -219
- package/presets/opencode/prompts/v0.2.0/docs.md +0 -187
- package/presets/opencode/prompts/v0.2.0/implementer.md +0 -160
- package/presets/opencode/prompts/v0.2.0/orchestrator.md +0 -238
- package/presets/opencode/prompts/v0.2.0/repo-explorer.md +0 -108
- package/presets/opencode/prompts/v0.2.0/reviewer.md +0 -190
- package/presets/opencode/prompts/v0.2.0/task-coach.md +0 -153
- package/presets/opencode/prompts/v0.2.0/tester.md +0 -249
- package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.3.0/architect.md +0 -221
- package/presets/opencode/prompts/v0.3.0/docs.md +0 -189
- package/presets/opencode/prompts/v0.3.0/implementer.md +0 -162
- package/presets/opencode/prompts/v0.3.0/orchestrator.md +0 -360
- package/presets/opencode/prompts/v0.3.0/repo-explorer.md +0 -110
- package/presets/opencode/prompts/v0.3.0/reviewer.md +0 -225
- package/presets/opencode/prompts/v0.3.0/task-coach.md +0 -155
- package/presets/opencode/prompts/v0.3.0/tester.md +0 -251
- package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.4.0/architect.md +0 -221
- package/presets/opencode/prompts/v0.4.0/complexity-auditor.md +0 -89
- package/presets/opencode/prompts/v0.4.0/docs.md +0 -189
- package/presets/opencode/prompts/v0.4.0/implementer.md +0 -162
- package/presets/opencode/prompts/v0.4.0/orchestrator.md +0 -348
- package/presets/opencode/prompts/v0.4.0/repo-explorer.md +0 -110
- package/presets/opencode/prompts/v0.4.0/reviewer.md +0 -225
- package/presets/opencode/prompts/v0.4.0/task-coach.md +0 -155
- package/presets/opencode/prompts/v0.4.0/tester.md +0 -251
- package/presets/opencode/prompts/v0.5.0/architect.md +0 -222
- package/presets/opencode/prompts/v0.5.0/complexity-auditor.md +0 -91
- package/presets/opencode/prompts/v0.5.0/contract-builder.md +0 -84
- package/presets/opencode/prompts/v0.5.0/docs.md +0 -190
- package/presets/opencode/prompts/v0.5.0/goal-planner.md +0 -80
- package/presets/opencode/prompts/v0.5.0/implementer.md +0 -171
- package/presets/opencode/prompts/v0.5.0/orchestrator.md +0 -388
- package/presets/opencode/prompts/v0.5.0/repo-explorer.md +0 -111
- package/presets/opencode/prompts/v0.5.0/reviewer.md +0 -248
- package/presets/opencode/prompts/v0.5.0/security-reviewer.md +0 -123
- package/presets/opencode/prompts/v0.5.0/task-coach.md +0 -156
- package/presets/opencode/prompts/v0.5.0/tester.md +0 -252
- package/presets/opencode/prompts/v0.6.0/implementer.md +0 -35
- package/presets/opencode/prompts/v0.6.0/planner.md +0 -36
- package/presets/opencode/prompts/v0.6.0/reviewer.md +0 -40
- package/presets/shared/__pycache__/mutation_runner.cpython-314.pyc +0 -0
|
@@ -182,15 +182,15 @@ export declare const CodeConductorConfigSchema: z.ZodObject<{
|
|
|
182
182
|
profile?: string | undefined;
|
|
183
183
|
}>;
|
|
184
184
|
defaults: z.ZodObject<{
|
|
185
|
-
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>;
|
|
185
|
+
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "pi"]>;
|
|
186
186
|
overwrite: z.ZodBoolean;
|
|
187
187
|
locale: z.ZodDefault<z.ZodOptional<z.ZodEnum<["en", "es"]>>>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
189
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
190
190
|
overwrite: boolean;
|
|
191
191
|
locale: "en" | "es";
|
|
192
192
|
}, {
|
|
193
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
193
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
194
194
|
overwrite: boolean;
|
|
195
195
|
locale?: "en" | "es" | undefined;
|
|
196
196
|
}>;
|
|
@@ -287,7 +287,7 @@ export declare const CodeConductorConfigSchema: z.ZodObject<{
|
|
|
287
287
|
profile?: string | undefined;
|
|
288
288
|
};
|
|
289
289
|
defaults: {
|
|
290
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
290
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
291
291
|
overwrite: boolean;
|
|
292
292
|
locale: "en" | "es";
|
|
293
293
|
};
|
|
@@ -322,7 +322,7 @@ export declare const CodeConductorConfigSchema: z.ZodObject<{
|
|
|
322
322
|
profile?: string | undefined;
|
|
323
323
|
};
|
|
324
324
|
defaults: {
|
|
325
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
325
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
326
326
|
overwrite: boolean;
|
|
327
327
|
locale?: "en" | "es" | undefined;
|
|
328
328
|
};
|
|
@@ -354,7 +354,7 @@ export declare const CodeConductorConfigSchema: z.ZodObject<{
|
|
|
354
354
|
/**
|
|
355
355
|
* Runner target schema
|
|
356
356
|
*/
|
|
357
|
-
export declare const RunnerTargetSchema: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "all"]>;
|
|
357
|
+
export declare const RunnerTargetSchema: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "pi", "all"]>;
|
|
358
358
|
/**
|
|
359
359
|
* Install manifest schemas
|
|
360
360
|
*/
|
|
@@ -379,7 +379,7 @@ export declare const ManifestEntrySchema: z.ZodObject<{
|
|
|
379
379
|
template?: boolean | undefined;
|
|
380
380
|
}>;
|
|
381
381
|
export declare const InstallManifestSchema: z.ZodObject<{
|
|
382
|
-
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>;
|
|
382
|
+
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "pi"]>;
|
|
383
383
|
entries: z.ZodArray<z.ZodObject<{
|
|
384
384
|
src: z.ZodString;
|
|
385
385
|
dest: z.ZodString;
|
|
@@ -407,7 +407,7 @@ export declare const InstallManifestSchema: z.ZodObject<{
|
|
|
407
407
|
globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
|
|
408
408
|
template?: boolean | undefined;
|
|
409
409
|
}[];
|
|
410
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
410
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
411
411
|
}, {
|
|
412
412
|
entries: {
|
|
413
413
|
src: string;
|
|
@@ -416,7 +416,7 @@ export declare const InstallManifestSchema: z.ZodObject<{
|
|
|
416
416
|
globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
|
|
417
417
|
template?: boolean | undefined;
|
|
418
418
|
}[];
|
|
419
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
419
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
420
420
|
}>;
|
|
421
421
|
/**
|
|
422
422
|
* Tool provider names schema — maps base tool names to provider-specific names
|
|
@@ -427,7 +427,7 @@ export declare const PermissionProviderNamesSchema: z.ZodRecord<z.ZodString, z.Z
|
|
|
427
427
|
* Model config schema — defines model names per provider per agent role
|
|
428
428
|
*/
|
|
429
429
|
export declare const ModelConfigSchema: z.ZodObject<{
|
|
430
|
-
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>;
|
|
430
|
+
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "pi"]>;
|
|
431
431
|
agents: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
432
432
|
claude: z.ZodOptional<z.ZodString>;
|
|
433
433
|
opencode: z.ZodOptional<z.ZodString>;
|
|
@@ -435,6 +435,7 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
435
435
|
gemini: z.ZodOptional<z.ZodString>;
|
|
436
436
|
cursor: z.ZodOptional<z.ZodString>;
|
|
437
437
|
agy: z.ZodOptional<z.ZodString>;
|
|
438
|
+
pi: z.ZodOptional<z.ZodString>;
|
|
438
439
|
grok: z.ZodOptional<z.ZodString>;
|
|
439
440
|
}, "strip", z.ZodTypeAny, {
|
|
440
441
|
opencode?: string | undefined;
|
|
@@ -443,6 +444,7 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
443
444
|
gemini?: string | undefined;
|
|
444
445
|
cursor?: string | undefined;
|
|
445
446
|
agy?: string | undefined;
|
|
447
|
+
pi?: string | undefined;
|
|
446
448
|
grok?: string | undefined;
|
|
447
449
|
}, {
|
|
448
450
|
opencode?: string | undefined;
|
|
@@ -451,6 +453,7 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
451
453
|
gemini?: string | undefined;
|
|
452
454
|
cursor?: string | undefined;
|
|
453
455
|
agy?: string | undefined;
|
|
456
|
+
pi?: string | undefined;
|
|
454
457
|
grok?: string | undefined;
|
|
455
458
|
}>>;
|
|
456
459
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
@@ -463,9 +466,10 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
463
466
|
gemini?: string | undefined;
|
|
464
467
|
cursor?: string | undefined;
|
|
465
468
|
agy?: string | undefined;
|
|
469
|
+
pi?: string | undefined;
|
|
466
470
|
grok?: string | undefined;
|
|
467
471
|
}>;
|
|
468
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
472
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
469
473
|
tools?: Record<string, Record<string, string>> | undefined;
|
|
470
474
|
permissions?: Record<string, string> | undefined;
|
|
471
475
|
}, {
|
|
@@ -476,13 +480,131 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
476
480
|
gemini?: string | undefined;
|
|
477
481
|
cursor?: string | undefined;
|
|
478
482
|
agy?: string | undefined;
|
|
483
|
+
pi?: string | undefined;
|
|
479
484
|
grok?: string | undefined;
|
|
480
485
|
}>;
|
|
481
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
|
|
486
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
482
487
|
tools?: Record<string, Record<string, string>> | undefined;
|
|
483
488
|
permissions?: Record<string, string> | undefined;
|
|
484
489
|
}>;
|
|
485
490
|
export type ModelConfig = z.infer<typeof ModelConfigSchema>;
|
|
491
|
+
/**
|
|
492
|
+
* Skill frontmatter — the minimal invariant every SKILL.md must satisfy
|
|
493
|
+
* regardless of which frontmatter convention it otherwise follows: the bare
|
|
494
|
+
* `{name, description}` form used by most `cc-*` and `security-*` skills, or
|
|
495
|
+
* the extended `{id, name, description, version, license, metadata, ...}`
|
|
496
|
+
* form used by language/stack skills (where `name` is a human-readable title
|
|
497
|
+
* and `id` is the kebab-case identifier). Extra fields are accepted but not
|
|
498
|
+
* required here — normalizing every skill onto one shape is a separate,
|
|
499
|
+
* larger migration than this schema exists to gate.
|
|
500
|
+
*/
|
|
501
|
+
export declare const SkillFrontmatterSchema: z.ZodObject<{
|
|
502
|
+
name: z.ZodString;
|
|
503
|
+
description: z.ZodString;
|
|
504
|
+
id: z.ZodOptional<z.ZodString>;
|
|
505
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
506
|
+
name: z.ZodString;
|
|
507
|
+
description: z.ZodString;
|
|
508
|
+
id: z.ZodOptional<z.ZodString>;
|
|
509
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
510
|
+
name: z.ZodString;
|
|
511
|
+
description: z.ZodString;
|
|
512
|
+
id: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
514
|
+
export type SkillFrontmatter = z.infer<typeof SkillFrontmatterSchema>;
|
|
515
|
+
/**
|
|
516
|
+
* Command frontmatter — every shipped `.md` command currently carries only
|
|
517
|
+
* `description`. The other fields are part of the CCHS v1 standard
|
|
518
|
+
* (docs/harness-spec.md) and are optional here on purpose: Claude Code,
|
|
519
|
+
* Cursor, and Pi already read `argument-hint`/`allowed-tools`/`model` when
|
|
520
|
+
* present, but adding them to the 126 existing command files is a separate,
|
|
521
|
+
* opt-in migration this schema does not force.
|
|
522
|
+
*/
|
|
523
|
+
export declare const CommandFrontmatterSchema: z.ZodObject<{
|
|
524
|
+
description: z.ZodString;
|
|
525
|
+
'argument-hint': z.ZodOptional<z.ZodString>;
|
|
526
|
+
'allowed-tools': z.ZodOptional<z.ZodString>;
|
|
527
|
+
model: z.ZodOptional<z.ZodString>;
|
|
528
|
+
'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
530
|
+
description: z.ZodString;
|
|
531
|
+
'argument-hint': z.ZodOptional<z.ZodString>;
|
|
532
|
+
'allowed-tools': z.ZodOptional<z.ZodString>;
|
|
533
|
+
model: z.ZodOptional<z.ZodString>;
|
|
534
|
+
'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
|
|
535
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
536
|
+
description: z.ZodString;
|
|
537
|
+
'argument-hint': z.ZodOptional<z.ZodString>;
|
|
538
|
+
'allowed-tools': z.ZodOptional<z.ZodString>;
|
|
539
|
+
model: z.ZodOptional<z.ZodString>;
|
|
540
|
+
'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
|
|
541
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
542
|
+
export type CommandFrontmatter = z.infer<typeof CommandFrontmatterSchema>;
|
|
543
|
+
/**
|
|
544
|
+
* Target capability matrix (CCHS v1, docs/harness-spec.md) — one
|
|
545
|
+
* `src/presets/targets/<target>.yml` per target, declaring facts a
|
|
546
|
+
* generator can act on mechanically instead of hand-editing prose per
|
|
547
|
+
* target. `capabilities` are scoped to what CodeConductor's own preset
|
|
548
|
+
* installs/manages for that target, not the underlying tool's full native
|
|
549
|
+
* feature set (e.g. Cursor supports MCP natively; CodeConductor's cursor
|
|
550
|
+
* preset doesn't ship an MCP config, so `mcp: false` here).
|
|
551
|
+
*/
|
|
552
|
+
export declare const TargetCapabilitiesSchema: z.ZodObject<{
|
|
553
|
+
target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "pi"]>;
|
|
554
|
+
invocation: z.ZodEnum<["colon", "hyphen", "dollar"]>;
|
|
555
|
+
commandFormat: z.ZodEnum<["markdown", "toml", "skill"]>;
|
|
556
|
+
contextFile: z.ZodString;
|
|
557
|
+
/**
|
|
558
|
+
* How this target's rendered commands phrase "run this role now":
|
|
559
|
+
* - task-tool: "Invoke the `X` subagent via the Task tool." (has one)
|
|
560
|
+
* - adopt-role: "Adopt the `X` role as defined in `<contextFile>`." (roles
|
|
561
|
+
* live in one bundled file, not separately invocable subagents)
|
|
562
|
+
* - invoke-with-context: "Invoke `X` with <step-specific context>." (no
|
|
563
|
+
* Task tool; agents are called directly with whatever the step needs)
|
|
564
|
+
*/
|
|
565
|
+
subagentInvocationStyle: z.ZodOptional<z.ZodEnum<["task-tool", "adopt-role", "invoke-with-context"]>>;
|
|
566
|
+
capabilities: z.ZodObject<{
|
|
567
|
+
subagents: z.ZodBoolean;
|
|
568
|
+
hooks: z.ZodBoolean;
|
|
569
|
+
mcp: z.ZodBoolean;
|
|
570
|
+
council: z.ZodBoolean;
|
|
571
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
|
+
council: boolean;
|
|
573
|
+
subagents: boolean;
|
|
574
|
+
hooks: boolean;
|
|
575
|
+
mcp: boolean;
|
|
576
|
+
}, {
|
|
577
|
+
council: boolean;
|
|
578
|
+
subagents: boolean;
|
|
579
|
+
hooks: boolean;
|
|
580
|
+
mcp: boolean;
|
|
581
|
+
}>;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
584
|
+
invocation: "colon" | "hyphen" | "dollar";
|
|
585
|
+
commandFormat: "markdown" | "toml" | "skill";
|
|
586
|
+
contextFile: string;
|
|
587
|
+
capabilities: {
|
|
588
|
+
council: boolean;
|
|
589
|
+
subagents: boolean;
|
|
590
|
+
hooks: boolean;
|
|
591
|
+
mcp: boolean;
|
|
592
|
+
};
|
|
593
|
+
subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
|
|
594
|
+
}, {
|
|
595
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi";
|
|
596
|
+
invocation: "colon" | "hyphen" | "dollar";
|
|
597
|
+
commandFormat: "markdown" | "toml" | "skill";
|
|
598
|
+
contextFile: string;
|
|
599
|
+
capabilities: {
|
|
600
|
+
council: boolean;
|
|
601
|
+
subagents: boolean;
|
|
602
|
+
hooks: boolean;
|
|
603
|
+
mcp: boolean;
|
|
604
|
+
};
|
|
605
|
+
subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
|
|
606
|
+
}>;
|
|
607
|
+
export type TargetCapabilities = z.infer<typeof TargetCapabilitiesSchema>;
|
|
486
608
|
/**
|
|
487
609
|
* Type exports
|
|
488
610
|
*/
|
|
@@ -504,6 +626,18 @@ export declare function validateCouncilSpec(data: unknown): CouncilSpecInput;
|
|
|
504
626
|
* Validate project profile
|
|
505
627
|
*/
|
|
506
628
|
export declare function validateProjectProfile(data: unknown): ProjectProfileInput;
|
|
629
|
+
/**
|
|
630
|
+
* Validate skill frontmatter
|
|
631
|
+
*/
|
|
632
|
+
export declare function validateSkillFrontmatter(data: unknown): SkillFrontmatter;
|
|
633
|
+
/**
|
|
634
|
+
* Validate command frontmatter
|
|
635
|
+
*/
|
|
636
|
+
export declare function validateCommandFrontmatter(data: unknown): CommandFrontmatter;
|
|
637
|
+
/**
|
|
638
|
+
* Validate a target capability matrix entry
|
|
639
|
+
*/
|
|
640
|
+
export declare function validateTargetCapabilities(data: unknown): TargetCapabilities;
|
|
507
641
|
/**
|
|
508
642
|
* Validate config
|
|
509
643
|
*/
|
|
@@ -2317,9 +2451,9 @@ export declare const WorkflowPhaseSchema: z.ZodObject<{
|
|
|
2317
2451
|
id: string;
|
|
2318
2452
|
type?: string | undefined;
|
|
2319
2453
|
agents?: string[] | undefined;
|
|
2454
|
+
skill?: string | undefined;
|
|
2320
2455
|
agent?: string | undefined;
|
|
2321
2456
|
dependsOn?: string[] | undefined;
|
|
2322
|
-
skill?: string | undefined;
|
|
2323
2457
|
outputSchema?: string | undefined;
|
|
2324
2458
|
stopGate?: string | undefined;
|
|
2325
2459
|
requires?: string | undefined;
|
|
@@ -2328,9 +2462,9 @@ export declare const WorkflowPhaseSchema: z.ZodObject<{
|
|
|
2328
2462
|
id: string;
|
|
2329
2463
|
type?: string | undefined;
|
|
2330
2464
|
agents?: string[] | undefined;
|
|
2465
|
+
skill?: string | undefined;
|
|
2331
2466
|
agent?: string | undefined;
|
|
2332
2467
|
dependsOn?: string[] | undefined;
|
|
2333
|
-
skill?: string | undefined;
|
|
2334
2468
|
outputSchema?: string | undefined;
|
|
2335
2469
|
stopGate?: string | undefined;
|
|
2336
2470
|
requires?: string | undefined;
|
|
@@ -2389,9 +2523,9 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2389
2523
|
id: string;
|
|
2390
2524
|
type?: string | undefined;
|
|
2391
2525
|
agents?: string[] | undefined;
|
|
2526
|
+
skill?: string | undefined;
|
|
2392
2527
|
agent?: string | undefined;
|
|
2393
2528
|
dependsOn?: string[] | undefined;
|
|
2394
|
-
skill?: string | undefined;
|
|
2395
2529
|
outputSchema?: string | undefined;
|
|
2396
2530
|
stopGate?: string | undefined;
|
|
2397
2531
|
requires?: string | undefined;
|
|
@@ -2400,9 +2534,9 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2400
2534
|
id: string;
|
|
2401
2535
|
type?: string | undefined;
|
|
2402
2536
|
agents?: string[] | undefined;
|
|
2537
|
+
skill?: string | undefined;
|
|
2403
2538
|
agent?: string | undefined;
|
|
2404
2539
|
dependsOn?: string[] | undefined;
|
|
2405
|
-
skill?: string | undefined;
|
|
2406
2540
|
outputSchema?: string | undefined;
|
|
2407
2541
|
stopGate?: string | undefined;
|
|
2408
2542
|
requires?: string | undefined;
|
|
@@ -2465,9 +2599,9 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2465
2599
|
id: string;
|
|
2466
2600
|
type?: string | undefined;
|
|
2467
2601
|
agents?: string[] | undefined;
|
|
2602
|
+
skill?: string | undefined;
|
|
2468
2603
|
agent?: string | undefined;
|
|
2469
2604
|
dependsOn?: string[] | undefined;
|
|
2470
|
-
skill?: string | undefined;
|
|
2471
2605
|
outputSchema?: string | undefined;
|
|
2472
2606
|
stopGate?: string | undefined;
|
|
2473
2607
|
requires?: string | undefined;
|
|
@@ -2500,9 +2634,9 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2500
2634
|
id: string;
|
|
2501
2635
|
type?: string | undefined;
|
|
2502
2636
|
agents?: string[] | undefined;
|
|
2637
|
+
skill?: string | undefined;
|
|
2503
2638
|
agent?: string | undefined;
|
|
2504
2639
|
dependsOn?: string[] | undefined;
|
|
2505
|
-
skill?: string | undefined;
|
|
2506
2640
|
outputSchema?: string | undefined;
|
|
2507
2641
|
stopGate?: string | undefined;
|
|
2508
2642
|
requires?: string | undefined;
|
|
@@ -2535,9 +2669,9 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2535
2669
|
id: string;
|
|
2536
2670
|
type?: string | undefined;
|
|
2537
2671
|
agents?: string[] | undefined;
|
|
2672
|
+
skill?: string | undefined;
|
|
2538
2673
|
agent?: string | undefined;
|
|
2539
2674
|
dependsOn?: string[] | undefined;
|
|
2540
|
-
skill?: string | undefined;
|
|
2541
2675
|
outputSchema?: string | undefined;
|
|
2542
2676
|
stopGate?: string | undefined;
|
|
2543
2677
|
requires?: string | undefined;
|
|
@@ -2570,9 +2704,9 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2570
2704
|
id: string;
|
|
2571
2705
|
type?: string | undefined;
|
|
2572
2706
|
agents?: string[] | undefined;
|
|
2707
|
+
skill?: string | undefined;
|
|
2573
2708
|
agent?: string | undefined;
|
|
2574
2709
|
dependsOn?: string[] | undefined;
|
|
2575
|
-
skill?: string | undefined;
|
|
2576
2710
|
outputSchema?: string | undefined;
|
|
2577
2711
|
stopGate?: string | undefined;
|
|
2578
2712
|
requires?: string | undefined;
|
|
@@ -2717,9 +2851,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
2717
2851
|
id: string;
|
|
2718
2852
|
type?: string | undefined;
|
|
2719
2853
|
agents?: string[] | undefined;
|
|
2854
|
+
skill?: string | undefined;
|
|
2720
2855
|
agent?: string | undefined;
|
|
2721
2856
|
dependsOn?: string[] | undefined;
|
|
2722
|
-
skill?: string | undefined;
|
|
2723
2857
|
outputSchema?: string | undefined;
|
|
2724
2858
|
stopGate?: string | undefined;
|
|
2725
2859
|
requires?: string | undefined;
|
|
@@ -2728,9 +2862,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
2728
2862
|
id: string;
|
|
2729
2863
|
type?: string | undefined;
|
|
2730
2864
|
agents?: string[] | undefined;
|
|
2865
|
+
skill?: string | undefined;
|
|
2731
2866
|
agent?: string | undefined;
|
|
2732
2867
|
dependsOn?: string[] | undefined;
|
|
2733
|
-
skill?: string | undefined;
|
|
2734
2868
|
outputSchema?: string | undefined;
|
|
2735
2869
|
stopGate?: string | undefined;
|
|
2736
2870
|
requires?: string | undefined;
|
|
@@ -2793,9 +2927,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
2793
2927
|
id: string;
|
|
2794
2928
|
type?: string | undefined;
|
|
2795
2929
|
agents?: string[] | undefined;
|
|
2930
|
+
skill?: string | undefined;
|
|
2796
2931
|
agent?: string | undefined;
|
|
2797
2932
|
dependsOn?: string[] | undefined;
|
|
2798
|
-
skill?: string | undefined;
|
|
2799
2933
|
outputSchema?: string | undefined;
|
|
2800
2934
|
stopGate?: string | undefined;
|
|
2801
2935
|
requires?: string | undefined;
|
|
@@ -2828,9 +2962,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
2828
2962
|
id: string;
|
|
2829
2963
|
type?: string | undefined;
|
|
2830
2964
|
agents?: string[] | undefined;
|
|
2965
|
+
skill?: string | undefined;
|
|
2831
2966
|
agent?: string | undefined;
|
|
2832
2967
|
dependsOn?: string[] | undefined;
|
|
2833
|
-
skill?: string | undefined;
|
|
2834
2968
|
outputSchema?: string | undefined;
|
|
2835
2969
|
stopGate?: string | undefined;
|
|
2836
2970
|
requires?: string | undefined;
|
|
@@ -2863,9 +2997,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
2863
2997
|
id: string;
|
|
2864
2998
|
type?: string | undefined;
|
|
2865
2999
|
agents?: string[] | undefined;
|
|
3000
|
+
skill?: string | undefined;
|
|
2866
3001
|
agent?: string | undefined;
|
|
2867
3002
|
dependsOn?: string[] | undefined;
|
|
2868
|
-
skill?: string | undefined;
|
|
2869
3003
|
outputSchema?: string | undefined;
|
|
2870
3004
|
stopGate?: string | undefined;
|
|
2871
3005
|
requires?: string | undefined;
|
|
@@ -2898,9 +3032,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
2898
3032
|
id: string;
|
|
2899
3033
|
type?: string | undefined;
|
|
2900
3034
|
agents?: string[] | undefined;
|
|
3035
|
+
skill?: string | undefined;
|
|
2901
3036
|
agent?: string | undefined;
|
|
2902
3037
|
dependsOn?: string[] | undefined;
|
|
2903
|
-
skill?: string | undefined;
|
|
2904
3038
|
outputSchema?: string | undefined;
|
|
2905
3039
|
stopGate?: string | undefined;
|
|
2906
3040
|
requires?: string | undefined;
|
|
@@ -3007,9 +3141,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3007
3141
|
id: string;
|
|
3008
3142
|
type?: string | undefined;
|
|
3009
3143
|
agents?: string[] | undefined;
|
|
3144
|
+
skill?: string | undefined;
|
|
3010
3145
|
agent?: string | undefined;
|
|
3011
3146
|
dependsOn?: string[] | undefined;
|
|
3012
|
-
skill?: string | undefined;
|
|
3013
3147
|
outputSchema?: string | undefined;
|
|
3014
3148
|
stopGate?: string | undefined;
|
|
3015
3149
|
requires?: string | undefined;
|
|
@@ -3092,9 +3226,9 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3092
3226
|
id: string;
|
|
3093
3227
|
type?: string | undefined;
|
|
3094
3228
|
agents?: string[] | undefined;
|
|
3229
|
+
skill?: string | undefined;
|
|
3095
3230
|
agent?: string | undefined;
|
|
3096
3231
|
dependsOn?: string[] | undefined;
|
|
3097
|
-
skill?: string | undefined;
|
|
3098
3232
|
outputSchema?: string | undefined;
|
|
3099
3233
|
stopGate?: string | undefined;
|
|
3100
3234
|
requires?: string | undefined;
|
|
@@ -3575,9 +3709,9 @@ export declare const ScorecardRecordSchema: z.ZodObject<{
|
|
|
3575
3709
|
}[];
|
|
3576
3710
|
weightedScore: number;
|
|
3577
3711
|
createdAt: string;
|
|
3712
|
+
model?: string | undefined;
|
|
3578
3713
|
source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
|
|
3579
3714
|
backlogId?: string | undefined;
|
|
3580
|
-
model?: string | undefined;
|
|
3581
3715
|
evaluator?: string | undefined;
|
|
3582
3716
|
}, {
|
|
3583
3717
|
id: string;
|
|
@@ -3595,10 +3729,10 @@ export declare const ScorecardRecordSchema: z.ZodObject<{
|
|
|
3595
3729
|
}[];
|
|
3596
3730
|
weightedScore: number;
|
|
3597
3731
|
createdAt: string;
|
|
3732
|
+
model?: string | undefined;
|
|
3598
3733
|
findings?: string[] | undefined;
|
|
3599
3734
|
source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
|
|
3600
3735
|
backlogId?: string | undefined;
|
|
3601
|
-
model?: string | undefined;
|
|
3602
3736
|
evaluator?: string | undefined;
|
|
3603
3737
|
}>;
|
|
3604
3738
|
export declare const TaskOutcomeSourceSchema: z.ZodEnum<["openspec", "review", "manual", "pipeline"]>;
|
|
@@ -3629,12 +3763,12 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
3629
3763
|
disabledComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3630
3764
|
}, "strip", z.ZodTypeAny, {
|
|
3631
3765
|
id: string;
|
|
3766
|
+
model: string;
|
|
3632
3767
|
contractVersion: string;
|
|
3633
3768
|
timestamp: string;
|
|
3634
3769
|
source: "review" | "openspec" | "manual" | "pipeline";
|
|
3635
3770
|
taskId: string;
|
|
3636
3771
|
agent: string;
|
|
3637
|
-
model: string;
|
|
3638
3772
|
status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
|
|
3639
3773
|
backlogId?: string | undefined;
|
|
3640
3774
|
phase?: string | undefined;
|
|
@@ -3653,12 +3787,12 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
3653
3787
|
disabledComponents?: string[] | undefined;
|
|
3654
3788
|
}, {
|
|
3655
3789
|
id: string;
|
|
3790
|
+
model: string;
|
|
3656
3791
|
contractVersion: string;
|
|
3657
3792
|
timestamp: string;
|
|
3658
3793
|
source: "review" | "openspec" | "manual" | "pipeline";
|
|
3659
3794
|
taskId: string;
|
|
3660
3795
|
agent: string;
|
|
3661
|
-
model: string;
|
|
3662
3796
|
status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
|
|
3663
3797
|
backlogId?: string | undefined;
|
|
3664
3798
|
phase?: string | undefined;
|
|
@@ -3926,7 +4060,7 @@ export declare const EvaluationIndexSchema: z.ZodObject<{
|
|
|
3926
4060
|
export declare const ExecutionProfileNameSchema: z.ZodEnum<["balanced", "quality", "economical"]>;
|
|
3927
4061
|
export declare const ExecutionProfileSchema: z.ZodObject<{
|
|
3928
4062
|
profile: z.ZodDefault<z.ZodEnum<["balanced", "quality", "economical"]>>;
|
|
3929
|
-
target: z.ZodOptional<z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>>;
|
|
4063
|
+
target: z.ZodOptional<z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "pi"]>>;
|
|
3930
4064
|
overrides: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3931
4065
|
subagentPolicy: z.ZodOptional<z.ZodObject<{
|
|
3932
4066
|
orchestrator: z.ZodOptional<z.ZodEnum<["primary", "delegate"]>>;
|
|
@@ -3941,14 +4075,14 @@ export declare const ExecutionProfileSchema: z.ZodObject<{
|
|
|
3941
4075
|
}, "strip", z.ZodTypeAny, {
|
|
3942
4076
|
profile: "balanced" | "quality" | "economical";
|
|
3943
4077
|
overrides: Record<string, string>;
|
|
3944
|
-
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | undefined;
|
|
4078
|
+
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | undefined;
|
|
3945
4079
|
subagentPolicy?: {
|
|
3946
4080
|
orchestrator?: "primary" | "delegate" | undefined;
|
|
3947
4081
|
testerReviewer?: "primary" | "delegate" | undefined;
|
|
3948
4082
|
} | undefined;
|
|
3949
4083
|
}, {
|
|
3950
4084
|
profile?: "balanced" | "quality" | "economical" | undefined;
|
|
3951
|
-
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | undefined;
|
|
4085
|
+
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | undefined;
|
|
3952
4086
|
overrides?: Record<string, string> | undefined;
|
|
3953
4087
|
subagentPolicy?: {
|
|
3954
4088
|
orchestrator?: "primary" | "delegate" | undefined;
|
|
@@ -4075,3 +4209,31 @@ export declare function validateDecision(data: unknown): DecisionInput;
|
|
|
4075
4209
|
export declare function validateEvidence(data: unknown): EvidenceInput;
|
|
4076
4210
|
export declare function validateCanonicalTaskCard(data: unknown): CanonicalTaskCardInput;
|
|
4077
4211
|
export declare function validateProductEvent(data: unknown): ProductEventInput;
|
|
4212
|
+
/**
|
|
4213
|
+
* Skills registry schema — the bundled registry mapping skill IDs to their versions
|
|
4214
|
+
*/
|
|
4215
|
+
export declare const SkillsRegistrySchema: z.ZodObject<{
|
|
4216
|
+
version: z.ZodLiteral<1>;
|
|
4217
|
+
skills: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4218
|
+
version: z.ZodString;
|
|
4219
|
+
}, "strip", z.ZodTypeAny, {
|
|
4220
|
+
version: string;
|
|
4221
|
+
}, {
|
|
4222
|
+
version: string;
|
|
4223
|
+
}>>;
|
|
4224
|
+
}, "strip", z.ZodTypeAny, {
|
|
4225
|
+
version: 1;
|
|
4226
|
+
skills: Record<string, {
|
|
4227
|
+
version: string;
|
|
4228
|
+
}>;
|
|
4229
|
+
}, {
|
|
4230
|
+
version: 1;
|
|
4231
|
+
skills: Record<string, {
|
|
4232
|
+
version: string;
|
|
4233
|
+
}>;
|
|
4234
|
+
}>;
|
|
4235
|
+
export type SkillsRegistry = z.infer<typeof SkillsRegistrySchema>;
|
|
4236
|
+
/**
|
|
4237
|
+
* Validate skills registry
|
|
4238
|
+
*/
|
|
4239
|
+
export declare function validateSkillsRegistry(data: unknown): SkillsRegistry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-codeconductor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
"lint": "bun run scripts/lint.ts",
|
|
55
55
|
"check:coverage": "bun run scripts/check-coverage.ts",
|
|
56
56
|
"check:prompt-changelog": "bun run scripts/check-prompt-changelog.ts",
|
|
57
|
+
"check:drift": "bun run scripts/check-drift.ts",
|
|
58
|
+
"render:commands": "bun run scripts/render-agent-commands.ts",
|
|
59
|
+
"sync:skills": "bun run scripts/sync-shared-skills.ts",
|
|
57
60
|
"release:patch": "bash release.sh patch",
|
|
58
61
|
"release:minor": "bash release.sh minor",
|
|
59
62
|
"release:major": "bash release.sh major",
|
package/presets/agy/AGENTS.md
CHANGED
|
@@ -76,7 +76,7 @@ Antigravity CLI loads custom slash commands from `.agents/workflows/*.md`. The f
|
|
|
76
76
|
| `/cc-api-contract`| Handles API contract modification and validation |
|
|
77
77
|
| `/cc-db-migration`| Coordinates database schema migrations safely |
|
|
78
78
|
| `/cc-iterative` | Advanced iterative workflow — wayfinding, grilling, TDD, council |
|
|
79
|
-
| `/cc-explore` | Map the repo and recommend the next `/cc
|
|
79
|
+
| `/cc-explore` | Map the repo and recommend the next `/cc-` command |
|
|
80
80
|
| `/cc-triage` | Classify type, risk, and destination workflow |
|
|
81
81
|
| `/cc-prototype` | Disposable spike in an isolated worktree |
|
|
82
82
|
| `/cc-handoff` | Compact the session to `.codeconductor/` Markdown |
|
package/presets/agy/hooks.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
|
-
"command": "node -e \"const fs=require('fs')
|
|
10
|
+
"command": "node -e \"const fs=require('fs');const c=['scripts/invoke-hook.cjs','.agents/scripts/invoke-hook.cjs'];const p=c.find(f=>fs.existsSync(f));if(p){require(require('path').resolve(p));}else{const body=process.argv.includes('post-tool')?{}:{decision:'allow'};process.stdout.write(JSON.stringify(body)+'\\n');process.exit(0);}\" post-tool --format=agy"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
}
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"enabled": true,
|
|
18
18
|
"PreToolUse": [
|
|
19
19
|
{
|
|
20
|
-
"matcher": "run_command|write_to_file|replace_file_content|multi_replace_file_content
|
|
20
|
+
"matcher": "run_command|write_to_file|replace_file_content|multi_replace_file_content",
|
|
21
21
|
"hooks": [
|
|
22
22
|
{
|
|
23
23
|
"type": "command",
|
|
24
|
-
"command": "node -e \"const fs=require('fs')
|
|
24
|
+
"command": "node -e \"const fs=require('fs');const c=['scripts/invoke-hook.cjs','.agents/scripts/invoke-hook.cjs'];const p=c.find(f=>fs.existsSync(f));if(p){require(require('path').resolve(p));}else{const body=process.argv.includes('post-tool')?{}:{decision:'allow'};process.stdout.write(JSON.stringify(body)+'\\n');process.exit(0);}\" pre-tool --format=agy"
|
|
25
25
|
}
|
|
26
26
|
]
|
|
27
27
|
}
|
|
@@ -41,33 +41,33 @@ function findProjectRoot() {
|
|
|
41
41
|
|
|
42
42
|
const projectRoot = findProjectRoot();
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} catch {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Run one candidate runner. Stdout/stderr are captured (not inherited) so a
|
|
46
|
+
* candidate that writes partial output before failing can never leak onto
|
|
47
|
+
* this process's real stdout ahead of a later candidate's output or the
|
|
48
|
+
* fallback JSON — every event this process ever emits on stdout must be a
|
|
49
|
+
* single clean document. Stderr is diagnostic-only and safe to relay
|
|
50
|
+
* unconditionally; stdout is only ever relayed on the two branches that
|
|
51
|
+
* immediately exit, so nothing else can write to stdout afterward.
|
|
52
|
+
*/
|
|
58
53
|
function tryRun(bin, runArgs) {
|
|
59
54
|
try {
|
|
60
55
|
const result = spawnSync(bin, runArgs, {
|
|
61
56
|
cwd: projectRoot,
|
|
62
|
-
stdio: 'inherit',
|
|
57
|
+
stdio: ['inherit', 'pipe', 'pipe'],
|
|
63
58
|
windowsHide: true,
|
|
64
59
|
env: process.env,
|
|
60
|
+
encoding: 'utf8',
|
|
65
61
|
timeout: SPAWN_TIMEOUT,
|
|
66
62
|
});
|
|
67
63
|
if (result.error) {
|
|
68
64
|
return false;
|
|
69
65
|
}
|
|
66
|
+
if (result.stderr) {
|
|
67
|
+
process.stderr.write(result.stderr);
|
|
68
|
+
}
|
|
70
69
|
if (result.status === 0) {
|
|
70
|
+
if (result.stdout) process.stdout.write(result.stdout);
|
|
71
71
|
process.exit(0);
|
|
72
72
|
}
|
|
73
73
|
if (!isAgy && result.status === 2) {
|
|
@@ -91,8 +91,13 @@ function fallback() {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
try {
|
|
94
|
+
// spawnSync('bun', ['--version']) as a pre-check before every real attempt
|
|
95
|
+
// used to cost a second subprocess on every single hook invocation. A
|
|
96
|
+
// missing/unrunnable 'bun' already surfaces as `result.error` inside
|
|
97
|
+
// tryRun(), so the pre-check is redundant — dropping it halves the spawn
|
|
98
|
+
// count (and the worst-case latency) for the common case where bun exists.
|
|
94
99
|
const srcMain = join(projectRoot, 'src', 'cli', 'main.ts');
|
|
95
|
-
if (existsSync(srcMain)
|
|
100
|
+
if (existsSync(srcMain)) {
|
|
96
101
|
tryRun('bun', ['run', srcMain, 'hook', event, ...extra]);
|
|
97
102
|
}
|
|
98
103
|
|
|
@@ -112,4 +117,3 @@ try {
|
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
fallback();
|
|
115
|
-
|