@alevental/cccp 0.1.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/skills/cccp-pipeline/SKILL.md +562 -0
- package/.claude/skills/cccp-run/SKILL.md +111 -0
- package/README.md +280 -0
- package/dist/activity-bus.d.ts +9 -0
- package/dist/activity-bus.js +10 -0
- package/dist/activity-bus.js.map +1 -0
- package/dist/agent-resolver.d.ts +29 -0
- package/dist/agent-resolver.js +122 -0
- package/dist/agent-resolver.js.map +1 -0
- package/dist/agent.d.ts +39 -0
- package/dist/agent.js +117 -0
- package/dist/agent.js.map +1 -0
- package/dist/autoresearch.d.ts +11 -0
- package/dist/autoresearch.js +295 -0
- package/dist/autoresearch.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +157 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +126 -0
- package/dist/config.js +76 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +24 -0
- package/dist/context.js +82 -0
- package/dist/context.js.map +1 -0
- package/dist/contract.d.ts +26 -0
- package/dist/contract.js +65 -0
- package/dist/contract.js.map +1 -0
- package/dist/db.d.ts +70 -0
- package/dist/db.js +358 -0
- package/dist/db.js.map +1 -0
- package/dist/dispatcher.d.ts +9 -0
- package/dist/dispatcher.js +7 -0
- package/dist/dispatcher.js.map +1 -0
- package/dist/errors.d.ts +16 -0
- package/dist/errors.js +30 -0
- package/dist/errors.js.map +1 -0
- package/dist/evaluator.d.ts +23 -0
- package/dist/evaluator.js +49 -0
- package/dist/evaluator.js.map +1 -0
- package/dist/gate/auto-approve.d.ts +9 -0
- package/dist/gate/auto-approve.js +11 -0
- package/dist/gate/auto-approve.js.map +1 -0
- package/dist/gate/gate-strategy.d.ts +22 -0
- package/dist/gate/gate-strategy.js +2 -0
- package/dist/gate/gate-strategy.js.map +1 -0
- package/dist/gate/gate-watcher.d.ts +15 -0
- package/dist/gate/gate-watcher.js +64 -0
- package/dist/gate/gate-watcher.js.map +1 -0
- package/dist/logger.d.ts +24 -0
- package/dist/logger.js +22 -0
- package/dist/logger.js.map +1 -0
- package/dist/mcp/gate-notifier.d.ts +26 -0
- package/dist/mcp/gate-notifier.js +161 -0
- package/dist/mcp/gate-notifier.js.map +1 -0
- package/dist/mcp/mcp-config.d.ts +25 -0
- package/dist/mcp/mcp-config.js +80 -0
- package/dist/mcp/mcp-config.js.map +1 -0
- package/dist/mcp/mcp-server.d.ts +1 -0
- package/dist/mcp/mcp-server.js +262 -0
- package/dist/mcp/mcp-server.js.map +1 -0
- package/dist/pge.d.ts +12 -0
- package/dist/pge.js +361 -0
- package/dist/pge.js.map +1 -0
- package/dist/pipeline.d.ts +6 -0
- package/dist/pipeline.js +120 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/prompt.d.ts +67 -0
- package/dist/prompt.js +121 -0
- package/dist/prompt.js.map +1 -0
- package/dist/runner.d.ts +11 -0
- package/dist/runner.js +494 -0
- package/dist/runner.js.map +1 -0
- package/dist/scaffold/index.d.ts +14 -0
- package/dist/scaffold/index.js +260 -0
- package/dist/scaffold/index.js.map +1 -0
- package/dist/scaffold/templates.d.ts +47 -0
- package/dist/scaffold/templates.js +2177 -0
- package/dist/scaffold/templates.js.map +1 -0
- package/dist/stage-helpers.d.ts +7 -0
- package/dist/stage-helpers.js +27 -0
- package/dist/stage-helpers.js.map +1 -0
- package/dist/state.d.ts +43 -0
- package/dist/state.js +177 -0
- package/dist/state.js.map +1 -0
- package/dist/stream/stream-tail.d.ts +17 -0
- package/dist/stream/stream-tail.js +95 -0
- package/dist/stream/stream-tail.js.map +1 -0
- package/dist/stream/stream.d.ts +142 -0
- package/dist/stream/stream.js +251 -0
- package/dist/stream/stream.js.map +1 -0
- package/dist/temp-tracker.d.ts +6 -0
- package/dist/temp-tracker.js +24 -0
- package/dist/temp-tracker.js.map +1 -0
- package/dist/tui/cmux.d.ts +22 -0
- package/dist/tui/cmux.js +82 -0
- package/dist/tui/cmux.js.map +1 -0
- package/dist/tui/components.d.ts +21 -0
- package/dist/tui/components.js +108 -0
- package/dist/tui/components.js.map +1 -0
- package/dist/tui/dashboard.d.ts +6 -0
- package/dist/tui/dashboard.js +125 -0
- package/dist/tui/dashboard.js.map +1 -0
- package/dist/tui/detail-log.d.ts +10 -0
- package/dist/tui/detail-log.js +171 -0
- package/dist/tui/detail-log.js.map +1 -0
- package/dist/types.d.ts +273 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/examples/agents/diff-evaluator.md +57 -0
- package/examples/agents/prompt-tuner.md +30 -0
- package/examples/agents/summarizer.md +14 -0
- package/examples/autoresearch-artifacts/expected-output.md +17 -0
- package/examples/autoresearch-artifacts/prompt.md +35 -0
- package/examples/autoresearch-artifacts/source-material.md +28 -0
- package/examples/business-case.yaml +41 -0
- package/examples/cccp.yaml +48 -0
- package/examples/content-calendar.yaml +59 -0
- package/examples/customer-feedback-loop.yaml +44 -0
- package/examples/design-sprint.yaml +54 -0
- package/examples/feature-development.yaml +96 -0
- package/examples/growth-experiment.yaml +49 -0
- package/examples/incident-runbook.yaml +43 -0
- package/examples/product-launch.yaml +85 -0
- package/examples/prompt-tuning.yaml +25 -0
- package/examples/quarterly-planning.yaml +51 -0
- package/examples/sprint-cycle.yaml +67 -0
- package/package.json +47 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
name: product-launch
|
|
2
|
+
description: Product launch pipeline — positioning, launch plan, content creation.
|
|
3
|
+
|
|
4
|
+
stages:
|
|
5
|
+
- name: competitive-landscape
|
|
6
|
+
type: agent
|
|
7
|
+
task: "Research the competitive landscape for the product launch."
|
|
8
|
+
agent: researcher
|
|
9
|
+
output: "{artifact_dir}/competitive-research.md"
|
|
10
|
+
|
|
11
|
+
- name: positioning
|
|
12
|
+
type: pge
|
|
13
|
+
task: "Define product positioning and messaging framework."
|
|
14
|
+
inputs:
|
|
15
|
+
- "{artifact_dir}/competitive-research.md"
|
|
16
|
+
planner:
|
|
17
|
+
agent: marketer
|
|
18
|
+
operation: positioning
|
|
19
|
+
generator:
|
|
20
|
+
agent: marketer
|
|
21
|
+
operation: positioning
|
|
22
|
+
evaluator:
|
|
23
|
+
agent: exec-reviewer
|
|
24
|
+
contract:
|
|
25
|
+
deliverable: "{artifact_dir}/positioning.md"
|
|
26
|
+
guidance: "Must include target audience, value propositions, competitive differentiators, and messaging pillars."
|
|
27
|
+
max_iterations: 3
|
|
28
|
+
|
|
29
|
+
- name: positioning-approval
|
|
30
|
+
type: human_gate
|
|
31
|
+
prompt: "Review positioning and messaging. Approve to proceed with launch planning."
|
|
32
|
+
artifacts:
|
|
33
|
+
- "{artifact_dir}/positioning.md"
|
|
34
|
+
|
|
35
|
+
- name: launch-plan
|
|
36
|
+
type: pge
|
|
37
|
+
task: "Create the launch plan with timeline and channel strategy."
|
|
38
|
+
inputs:
|
|
39
|
+
- "{artifact_dir}/positioning.md"
|
|
40
|
+
planner:
|
|
41
|
+
agent: marketer
|
|
42
|
+
operation: launch-plan
|
|
43
|
+
generator:
|
|
44
|
+
agent: marketer
|
|
45
|
+
operation: launch-plan
|
|
46
|
+
evaluator:
|
|
47
|
+
agent: exec-reviewer
|
|
48
|
+
contract:
|
|
49
|
+
deliverable: "{artifact_dir}/launch-plan.md"
|
|
50
|
+
guidance: "Must include timeline, channel strategy, content deliverables, success metrics, and dependencies."
|
|
51
|
+
max_iterations: 2
|
|
52
|
+
|
|
53
|
+
- name: blog-post
|
|
54
|
+
type: pge
|
|
55
|
+
task: "Write the launch blog post."
|
|
56
|
+
inputs:
|
|
57
|
+
- "{artifact_dir}/positioning.md"
|
|
58
|
+
- "{artifact_dir}/launch-plan.md"
|
|
59
|
+
planner:
|
|
60
|
+
agent: marketer
|
|
61
|
+
operation: content
|
|
62
|
+
generator:
|
|
63
|
+
agent: copywriter
|
|
64
|
+
evaluator:
|
|
65
|
+
agent: reviewer
|
|
66
|
+
contract:
|
|
67
|
+
deliverable: "{artifact_dir}/blog-post.md"
|
|
68
|
+
guidance: "Must align with positioning. Engaging, clear, technically accurate."
|
|
69
|
+
max_iterations: 3
|
|
70
|
+
|
|
71
|
+
- name: release-notes
|
|
72
|
+
type: agent
|
|
73
|
+
task: "Write release notes based on the positioning and launch plan."
|
|
74
|
+
agent: copywriter
|
|
75
|
+
inputs:
|
|
76
|
+
- "{artifact_dir}/positioning.md"
|
|
77
|
+
output: "{artifact_dir}/release-notes.md"
|
|
78
|
+
|
|
79
|
+
- name: launch-approval
|
|
80
|
+
type: human_gate
|
|
81
|
+
prompt: "Review all launch materials. Approve to publish."
|
|
82
|
+
artifacts:
|
|
83
|
+
- "{artifact_dir}/launch-plan.md"
|
|
84
|
+
- "{artifact_dir}/blog-post.md"
|
|
85
|
+
- "{artifact_dir}/release-notes.md"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: prompt-tuning
|
|
2
|
+
description: >
|
|
3
|
+
Autoresearch loop that tunes a summarization prompt until it produces output
|
|
4
|
+
matching a known-good expected result. Runs with unlimited iterations — the
|
|
5
|
+
loop continues until the evaluator returns PASS.
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- name: tune-summarization-prompt
|
|
9
|
+
type: autoresearch
|
|
10
|
+
task: >
|
|
11
|
+
Use the prompt artifact to summarize the source material.
|
|
12
|
+
Read the prompt at the artifact path, follow its instructions,
|
|
13
|
+
and apply them to the source material to produce a summary.
|
|
14
|
+
artifact: autoresearch-artifacts/prompt.md
|
|
15
|
+
ground_truth: autoresearch-artifacts/expected-output.md
|
|
16
|
+
output: "{artifact_dir}/actual-output.md"
|
|
17
|
+
inputs:
|
|
18
|
+
- autoresearch-artifacts/source-material.md
|
|
19
|
+
adjuster:
|
|
20
|
+
agent: prompt-tuner
|
|
21
|
+
executor:
|
|
22
|
+
agent: summarizer
|
|
23
|
+
evaluator:
|
|
24
|
+
agent: diff-evaluator
|
|
25
|
+
# No max_iterations — runs until PASS
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: quarterly-planning
|
|
2
|
+
description: Quarterly planning cycle — competitive analysis, OKRs, roadmap.
|
|
3
|
+
|
|
4
|
+
stages:
|
|
5
|
+
- name: competitive-analysis
|
|
6
|
+
type: pge
|
|
7
|
+
task: "Produce a competitive landscape analysis for this quarter."
|
|
8
|
+
planner:
|
|
9
|
+
agent: strategist
|
|
10
|
+
operation: competitive-analysis
|
|
11
|
+
generator:
|
|
12
|
+
agent: researcher
|
|
13
|
+
evaluator:
|
|
14
|
+
agent: exec-reviewer
|
|
15
|
+
contract:
|
|
16
|
+
deliverable: "{artifact_dir}/competitive-analysis.md"
|
|
17
|
+
guidance: "Must cover top competitors with recent moves, market positioning, and threat assessment."
|
|
18
|
+
max_iterations: 2
|
|
19
|
+
|
|
20
|
+
- name: metrics-review
|
|
21
|
+
type: agent
|
|
22
|
+
task: "Analyze last quarter's key metrics and produce a performance summary."
|
|
23
|
+
agent: analyst
|
|
24
|
+
output: "{artifact_dir}/metrics-review.md"
|
|
25
|
+
|
|
26
|
+
- name: quarterly-plan
|
|
27
|
+
type: pge
|
|
28
|
+
task: "Write the quarterly OKR plan."
|
|
29
|
+
inputs:
|
|
30
|
+
- "{artifact_dir}/competitive-analysis.md"
|
|
31
|
+
- "{artifact_dir}/metrics-review.md"
|
|
32
|
+
planner:
|
|
33
|
+
agent: strategist
|
|
34
|
+
operation: quarterly-planning
|
|
35
|
+
generator:
|
|
36
|
+
agent: strategist
|
|
37
|
+
operation: quarterly-planning
|
|
38
|
+
evaluator:
|
|
39
|
+
agent: exec-reviewer
|
|
40
|
+
contract:
|
|
41
|
+
deliverable: "{artifact_dir}/quarterly-plan.md"
|
|
42
|
+
guidance: "OKRs must be measurable and time-bound. Include resource allocation and key initiatives."
|
|
43
|
+
max_iterations: 3
|
|
44
|
+
|
|
45
|
+
- name: exec-approval
|
|
46
|
+
type: human_gate
|
|
47
|
+
prompt: "Review quarterly plan and OKRs. Approve to finalize."
|
|
48
|
+
artifacts:
|
|
49
|
+
- "{artifact_dir}/quarterly-plan.md"
|
|
50
|
+
- "{artifact_dir}/competitive-analysis.md"
|
|
51
|
+
- "{artifact_dir}/metrics-review.md"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: sprint-cycle
|
|
2
|
+
description: Single sprint execution — brief, implement, test, review.
|
|
3
|
+
|
|
4
|
+
variables:
|
|
5
|
+
sprint: "1"
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- name: sprint-brief
|
|
9
|
+
type: agent
|
|
10
|
+
task: "Read the master plan and produce the sprint brief for sprint {sprint}."
|
|
11
|
+
agent: architect
|
|
12
|
+
operation: sprint-brief
|
|
13
|
+
output: "{artifact_dir}/sprint-{sprint}-brief.md"
|
|
14
|
+
|
|
15
|
+
- name: implement
|
|
16
|
+
type: pge
|
|
17
|
+
task: "Implement all tasks from the sprint brief."
|
|
18
|
+
plan: "{artifact_dir}/sprint-{sprint}-brief.md"
|
|
19
|
+
planner:
|
|
20
|
+
agent: architect
|
|
21
|
+
operation: task-planning
|
|
22
|
+
generator:
|
|
23
|
+
agent: implementer
|
|
24
|
+
evaluator:
|
|
25
|
+
agent: code-reviewer
|
|
26
|
+
contract:
|
|
27
|
+
deliverable: "{artifact_dir}/sprint-{sprint}-complete.md"
|
|
28
|
+
guidance: "All sprint brief tasks must be implemented with passing tests."
|
|
29
|
+
max_iterations: 5
|
|
30
|
+
on_fail: human_gate
|
|
31
|
+
|
|
32
|
+
- name: test-coverage
|
|
33
|
+
type: pge
|
|
34
|
+
task: "Verify and extend test coverage for sprint deliverables."
|
|
35
|
+
inputs:
|
|
36
|
+
- "{artifact_dir}/sprint-{sprint}-complete.md"
|
|
37
|
+
planner:
|
|
38
|
+
agent: qa-engineer
|
|
39
|
+
operation: test-planning
|
|
40
|
+
generator:
|
|
41
|
+
agent: qa-engineer
|
|
42
|
+
operation: test-authoring
|
|
43
|
+
evaluator:
|
|
44
|
+
agent: code-reviewer
|
|
45
|
+
contract:
|
|
46
|
+
deliverable: "{artifact_dir}/sprint-{sprint}-tests.md"
|
|
47
|
+
guidance: "Critical paths must be covered. No regressions introduced."
|
|
48
|
+
max_iterations: 3
|
|
49
|
+
|
|
50
|
+
- name: sprint-review
|
|
51
|
+
type: pge
|
|
52
|
+
task: "Review the sprint for quality and completeness."
|
|
53
|
+
inputs:
|
|
54
|
+
- "{artifact_dir}/sprint-{sprint}-complete.md"
|
|
55
|
+
- "{artifact_dir}/sprint-{sprint}-tests.md"
|
|
56
|
+
planner:
|
|
57
|
+
agent: architect
|
|
58
|
+
operation: sprint-review
|
|
59
|
+
generator:
|
|
60
|
+
agent: architect
|
|
61
|
+
operation: sprint-review
|
|
62
|
+
evaluator:
|
|
63
|
+
agent: reviewer
|
|
64
|
+
contract:
|
|
65
|
+
deliverable: "{artifact_dir}/sprint-{sprint}-review.md"
|
|
66
|
+
guidance: "Assess code quality, architectural consistency, test coverage, and sprint completeness."
|
|
67
|
+
max_iterations: 2
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alevental/cccp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Claude Code and Cmux Pipeline Reagent — deterministic YAML-based pipeline orchestration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"cccp": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"examples/*.yaml",
|
|
12
|
+
"examples/agents",
|
|
13
|
+
"examples/autoresearch-artifacts",
|
|
14
|
+
".claude/skills",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"dev": "tsx src/cli.ts",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"test:watch": "vitest",
|
|
23
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@inkjs/ui": "^2.0.0",
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
28
|
+
"commander": "^14.0.0",
|
|
29
|
+
"ink": "^6.0.0",
|
|
30
|
+
"ink-spinner": "^5.0.0",
|
|
31
|
+
"react": "^19.0.0",
|
|
32
|
+
"sql.js": "^1.14.1",
|
|
33
|
+
"yaml": "^2.8.0",
|
|
34
|
+
"zod": "^3.24.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^20.17.0",
|
|
38
|
+
"@types/react": "^19.0.0",
|
|
39
|
+
"@types/sql.js": "^1.4.11",
|
|
40
|
+
"tsx": "^4.19.0",
|
|
41
|
+
"typescript": "^5.9.0",
|
|
42
|
+
"vitest": "^3.1.0"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20"
|
|
46
|
+
}
|
|
47
|
+
}
|