cc-codeconductor 1.7.2 → 1.9.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 +6 -6
- package/dist/core/goal/goal-state.d.ts +18 -0
- package/dist/core/hooks/hook-runner.d.ts +75 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +11 -3
- package/dist/core/telemetry/hook-telemetry.d.ts +55 -0
- package/dist/core/telemetry/schema.d.ts +94 -0
- package/dist/core/telemetry/store.d.ts +43 -0
- package/dist/index.js +7292 -1030
- package/dist/library.js +605 -25
- package/dist/validation/schemas.d.ts +143 -8
- package/docs/generated/cli.md +32 -1
- package/package.json +9 -4
- package/presets/agy/scripts/invoke-hook.cjs +15 -2
- package/presets/claude/settings.json +33 -0
- package/presets/shared/invoke-hook.cjs +15 -2
- package/pricing/pricing.v1.json +130 -0
- package/schemas/harness-telemetry.v1.json +239 -0
|
@@ -1455,6 +1455,63 @@ export declare const MemoryIndexSchema: z.ZodObject<{
|
|
|
1455
1455
|
tags?: string[] | undefined;
|
|
1456
1456
|
}[];
|
|
1457
1457
|
}>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Code index schema — structural symbol map persisted as plain JSON.
|
|
1460
|
+
*/
|
|
1461
|
+
export declare const CodeIndexSymbolSchema: z.ZodObject<{
|
|
1462
|
+
name: z.ZodString;
|
|
1463
|
+
kind: z.ZodEnum<["function", "class", "interface", "type", "const"]>;
|
|
1464
|
+
startLine: z.ZodNumber;
|
|
1465
|
+
endLine: z.ZodNumber;
|
|
1466
|
+
}, "strip", z.ZodTypeAny, {
|
|
1467
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1468
|
+
name: string;
|
|
1469
|
+
startLine: number;
|
|
1470
|
+
endLine: number;
|
|
1471
|
+
}, {
|
|
1472
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1473
|
+
name: string;
|
|
1474
|
+
startLine: number;
|
|
1475
|
+
endLine: number;
|
|
1476
|
+
}>;
|
|
1477
|
+
export declare const CodeIndexSchema: z.ZodObject<{
|
|
1478
|
+
version: z.ZodLiteral<1>;
|
|
1479
|
+
generatedAt: z.ZodString;
|
|
1480
|
+
files: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1481
|
+
name: z.ZodString;
|
|
1482
|
+
kind: z.ZodEnum<["function", "class", "interface", "type", "const"]>;
|
|
1483
|
+
startLine: z.ZodNumber;
|
|
1484
|
+
endLine: z.ZodNumber;
|
|
1485
|
+
}, "strip", z.ZodTypeAny, {
|
|
1486
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1487
|
+
name: string;
|
|
1488
|
+
startLine: number;
|
|
1489
|
+
endLine: number;
|
|
1490
|
+
}, {
|
|
1491
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1492
|
+
name: string;
|
|
1493
|
+
startLine: number;
|
|
1494
|
+
endLine: number;
|
|
1495
|
+
}>, "many">>;
|
|
1496
|
+
}, "strip", z.ZodTypeAny, {
|
|
1497
|
+
files: Record<string, {
|
|
1498
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1499
|
+
name: string;
|
|
1500
|
+
startLine: number;
|
|
1501
|
+
endLine: number;
|
|
1502
|
+
}[]>;
|
|
1503
|
+
version: 1;
|
|
1504
|
+
generatedAt: string;
|
|
1505
|
+
}, {
|
|
1506
|
+
files: Record<string, {
|
|
1507
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1508
|
+
name: string;
|
|
1509
|
+
startLine: number;
|
|
1510
|
+
endLine: number;
|
|
1511
|
+
}[]>;
|
|
1512
|
+
version: 1;
|
|
1513
|
+
generatedAt: string;
|
|
1514
|
+
}>;
|
|
1458
1515
|
/**
|
|
1459
1516
|
* Goal task schema — a single task in a goal graph
|
|
1460
1517
|
*/
|
|
@@ -1469,6 +1526,8 @@ export declare const GoalTaskSchema: z.ZodObject<{
|
|
|
1469
1526
|
acceptance_criteria: z.ZodArray<z.ZodString, "many">;
|
|
1470
1527
|
blocked_reason: z.ZodOptional<z.ZodString>;
|
|
1471
1528
|
context_scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>>;
|
|
1529
|
+
consecutive_failures: z.ZodOptional<z.ZodNumber>;
|
|
1530
|
+
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
1472
1531
|
}, "strip", z.ZodTypeAny, {
|
|
1473
1532
|
id: string;
|
|
1474
1533
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1480,6 +1539,8 @@ export declare const GoalTaskSchema: z.ZodObject<{
|
|
|
1480
1539
|
context_scope: "isolated" | "continuation" | "full";
|
|
1481
1540
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
1482
1541
|
blocked_reason?: string | undefined;
|
|
1542
|
+
consecutive_failures?: number | undefined;
|
|
1543
|
+
frozen?: boolean | undefined;
|
|
1483
1544
|
}, {
|
|
1484
1545
|
id: string;
|
|
1485
1546
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1491,6 +1552,8 @@ export declare const GoalTaskSchema: z.ZodObject<{
|
|
|
1491
1552
|
depends_on?: string[] | undefined;
|
|
1492
1553
|
blocked_reason?: string | undefined;
|
|
1493
1554
|
context_scope?: "isolated" | "continuation" | "full" | undefined;
|
|
1555
|
+
consecutive_failures?: number | undefined;
|
|
1556
|
+
frozen?: boolean | undefined;
|
|
1494
1557
|
}>;
|
|
1495
1558
|
/**
|
|
1496
1559
|
* Goal graph schema — a complete goal with task dependencies
|
|
@@ -1508,6 +1571,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1508
1571
|
acceptance_criteria: z.ZodArray<z.ZodString, "many">;
|
|
1509
1572
|
blocked_reason: z.ZodOptional<z.ZodString>;
|
|
1510
1573
|
context_scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>>;
|
|
1574
|
+
consecutive_failures: z.ZodOptional<z.ZodNumber>;
|
|
1575
|
+
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
1511
1576
|
}, "strip", z.ZodTypeAny, {
|
|
1512
1577
|
id: string;
|
|
1513
1578
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1519,6 +1584,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1519
1584
|
context_scope: "isolated" | "continuation" | "full";
|
|
1520
1585
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
1521
1586
|
blocked_reason?: string | undefined;
|
|
1587
|
+
consecutive_failures?: number | undefined;
|
|
1588
|
+
frozen?: boolean | undefined;
|
|
1522
1589
|
}, {
|
|
1523
1590
|
id: string;
|
|
1524
1591
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1530,6 +1597,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1530
1597
|
depends_on?: string[] | undefined;
|
|
1531
1598
|
blocked_reason?: string | undefined;
|
|
1532
1599
|
context_scope?: "isolated" | "continuation" | "full" | undefined;
|
|
1600
|
+
consecutive_failures?: number | undefined;
|
|
1601
|
+
frozen?: boolean | undefined;
|
|
1533
1602
|
}>, "many">;
|
|
1534
1603
|
created_at: z.ZodString;
|
|
1535
1604
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1545,6 +1614,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1545
1614
|
context_scope: "isolated" | "continuation" | "full";
|
|
1546
1615
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
1547
1616
|
blocked_reason?: string | undefined;
|
|
1617
|
+
consecutive_failures?: number | undefined;
|
|
1618
|
+
frozen?: boolean | undefined;
|
|
1548
1619
|
}[];
|
|
1549
1620
|
created_at: string;
|
|
1550
1621
|
}, {
|
|
@@ -1560,6 +1631,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1560
1631
|
depends_on?: string[] | undefined;
|
|
1561
1632
|
blocked_reason?: string | undefined;
|
|
1562
1633
|
context_scope?: "isolated" | "continuation" | "full" | undefined;
|
|
1634
|
+
consecutive_failures?: number | undefined;
|
|
1635
|
+
frozen?: boolean | undefined;
|
|
1563
1636
|
}[];
|
|
1564
1637
|
created_at: string;
|
|
1565
1638
|
}>;
|
|
@@ -4313,21 +4386,61 @@ export declare const ReviewerOutputSchema: z.ZodObject<{
|
|
|
4313
4386
|
}[] | undefined;
|
|
4314
4387
|
next_actions?: string[] | undefined;
|
|
4315
4388
|
}>;
|
|
4389
|
+
export declare const EdgeCaseSchema: z.ZodObject<{
|
|
4390
|
+
scenario: z.ZodString;
|
|
4391
|
+
input: z.ZodString;
|
|
4392
|
+
expected: z.ZodString;
|
|
4393
|
+
}, "strip", z.ZodTypeAny, {
|
|
4394
|
+
expected: string;
|
|
4395
|
+
scenario: string;
|
|
4396
|
+
input: string;
|
|
4397
|
+
}, {
|
|
4398
|
+
expected: string;
|
|
4399
|
+
scenario: string;
|
|
4400
|
+
input: string;
|
|
4401
|
+
}>;
|
|
4402
|
+
export type EdgeCaseInput = z.infer<typeof EdgeCaseSchema>;
|
|
4316
4403
|
export declare const TechnicalPlanOutputSchema: z.ZodObject<{
|
|
4317
4404
|
approach: z.ZodString;
|
|
4318
4405
|
filesAffected: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4319
4406
|
risks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4320
4407
|
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4408
|
+
edgeCases: z.ZodArray<z.ZodObject<{
|
|
4409
|
+
scenario: z.ZodString;
|
|
4410
|
+
input: z.ZodString;
|
|
4411
|
+
expected: z.ZodString;
|
|
4412
|
+
}, "strip", z.ZodTypeAny, {
|
|
4413
|
+
expected: string;
|
|
4414
|
+
scenario: string;
|
|
4415
|
+
input: string;
|
|
4416
|
+
}, {
|
|
4417
|
+
expected: string;
|
|
4418
|
+
scenario: string;
|
|
4419
|
+
input: string;
|
|
4420
|
+
}>, "many">;
|
|
4421
|
+
symbolsAffected: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
4321
4422
|
}, "strip", z.ZodTypeAny, {
|
|
4322
4423
|
risks: string[];
|
|
4323
4424
|
approach: string;
|
|
4324
4425
|
filesAffected: string[];
|
|
4426
|
+
edgeCases: {
|
|
4427
|
+
expected: string;
|
|
4428
|
+
scenario: string;
|
|
4429
|
+
input: string;
|
|
4430
|
+
}[];
|
|
4431
|
+
symbolsAffected: Record<string, string[]>;
|
|
4325
4432
|
openQuestions?: string[] | undefined;
|
|
4326
4433
|
}, {
|
|
4327
4434
|
approach: string;
|
|
4435
|
+
edgeCases: {
|
|
4436
|
+
expected: string;
|
|
4437
|
+
scenario: string;
|
|
4438
|
+
input: string;
|
|
4439
|
+
}[];
|
|
4328
4440
|
risks?: string[] | undefined;
|
|
4329
4441
|
filesAffected?: string[] | undefined;
|
|
4330
4442
|
openQuestions?: string[] | undefined;
|
|
4443
|
+
symbolsAffected?: Record<string, string[]> | undefined;
|
|
4331
4444
|
}>;
|
|
4332
4445
|
export declare const FixIntakeOutputSchema: z.ZodObject<{
|
|
4333
4446
|
actualBehavior: z.ZodString;
|
|
@@ -5080,6 +5193,14 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
5080
5193
|
contextBytes?: number | undefined;
|
|
5081
5194
|
handoffs?: number | undefined;
|
|
5082
5195
|
}>>;
|
|
5196
|
+
/** Optional telemetry fields fed by harness-telemetry/v1 task.end (M1). */
|
|
5197
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5198
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5199
|
+
calls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5200
|
+
iterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5201
|
+
retries: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5202
|
+
usageSource: z.ZodOptional<z.ZodNullable<z.ZodEnum<["cc-json", "cc-otel", "cc-transcript", "openrouter-usage", "codex-json", "harness", "none"]>>>;
|
|
5203
|
+
pricingVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5083
5204
|
}, "strip", z.ZodTypeAny, {
|
|
5084
5205
|
id: string;
|
|
5085
5206
|
source: "review" | "openspec" | "manual" | "pipeline";
|
|
@@ -5116,6 +5237,13 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
5116
5237
|
contextBytes?: number | undefined;
|
|
5117
5238
|
handoffs?: number | undefined;
|
|
5118
5239
|
} | undefined;
|
|
5240
|
+
cacheRead?: number | null | undefined;
|
|
5241
|
+
cacheWrite?: number | null | undefined;
|
|
5242
|
+
calls?: number | null | undefined;
|
|
5243
|
+
iterations?: number | null | undefined;
|
|
5244
|
+
retries?: number | null | undefined;
|
|
5245
|
+
usageSource?: "cc-json" | "cc-otel" | "cc-transcript" | "openrouter-usage" | "codex-json" | "harness" | "none" | null | undefined;
|
|
5246
|
+
pricingVersion?: string | null | undefined;
|
|
5119
5247
|
}, {
|
|
5120
5248
|
id: string;
|
|
5121
5249
|
source: "review" | "openspec" | "manual" | "pipeline";
|
|
@@ -5152,6 +5280,13 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
5152
5280
|
contextBytes?: number | undefined;
|
|
5153
5281
|
handoffs?: number | undefined;
|
|
5154
5282
|
} | undefined;
|
|
5283
|
+
cacheRead?: number | null | undefined;
|
|
5284
|
+
cacheWrite?: number | null | undefined;
|
|
5285
|
+
calls?: number | null | undefined;
|
|
5286
|
+
iterations?: number | null | undefined;
|
|
5287
|
+
retries?: number | null | undefined;
|
|
5288
|
+
usageSource?: "cc-json" | "cc-otel" | "cc-transcript" | "openrouter-usage" | "codex-json" | "harness" | "none" | null | undefined;
|
|
5289
|
+
pricingVersion?: string | null | undefined;
|
|
5155
5290
|
}>;
|
|
5156
5291
|
export declare const HarnessComponentIdSchema: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
|
|
5157
5292
|
export declare const HarnessComponentLayerSchema: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
|
|
@@ -5304,7 +5439,7 @@ export declare const HarnessExperimentSchema: z.ZodObject<{
|
|
|
5304
5439
|
export declare const HarnessSuiteTaskSchema: z.ZodObject<{
|
|
5305
5440
|
id: z.ZodString;
|
|
5306
5441
|
title: z.ZodString;
|
|
5307
|
-
type: z.ZodEnum<["feature", "fix", "refactor"]>;
|
|
5442
|
+
type: z.ZodEnum<["feature", "fix", "refactor", "review"]>;
|
|
5308
5443
|
risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
5309
5444
|
prompt: z.ZodString;
|
|
5310
5445
|
scope: z.ZodString;
|
|
@@ -5312,7 +5447,7 @@ export declare const HarnessSuiteTaskSchema: z.ZodObject<{
|
|
|
5312
5447
|
testCommand: z.ZodOptional<z.ZodString>;
|
|
5313
5448
|
}, "strip", z.ZodTypeAny, {
|
|
5314
5449
|
id: string;
|
|
5315
|
-
type: "feature" | "fix" | "refactor";
|
|
5450
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5316
5451
|
scope: string;
|
|
5317
5452
|
title: string;
|
|
5318
5453
|
risk: "low" | "medium" | "high";
|
|
@@ -5321,7 +5456,7 @@ export declare const HarnessSuiteTaskSchema: z.ZodObject<{
|
|
|
5321
5456
|
testCommand?: string | undefined;
|
|
5322
5457
|
}, {
|
|
5323
5458
|
id: string;
|
|
5324
|
-
type: "feature" | "fix" | "refactor";
|
|
5459
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5325
5460
|
scope: string;
|
|
5326
5461
|
title: string;
|
|
5327
5462
|
acceptanceCriteria: string[];
|
|
@@ -5336,7 +5471,7 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
5336
5471
|
tasks: z.ZodArray<z.ZodObject<{
|
|
5337
5472
|
id: z.ZodString;
|
|
5338
5473
|
title: z.ZodString;
|
|
5339
|
-
type: z.ZodEnum<["feature", "fix", "refactor"]>;
|
|
5474
|
+
type: z.ZodEnum<["feature", "fix", "refactor", "review"]>;
|
|
5340
5475
|
risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
5341
5476
|
prompt: z.ZodString;
|
|
5342
5477
|
scope: z.ZodString;
|
|
@@ -5344,7 +5479,7 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
5344
5479
|
testCommand: z.ZodOptional<z.ZodString>;
|
|
5345
5480
|
}, "strip", z.ZodTypeAny, {
|
|
5346
5481
|
id: string;
|
|
5347
|
-
type: "feature" | "fix" | "refactor";
|
|
5482
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5348
5483
|
scope: string;
|
|
5349
5484
|
title: string;
|
|
5350
5485
|
risk: "low" | "medium" | "high";
|
|
@@ -5353,7 +5488,7 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
5353
5488
|
testCommand?: string | undefined;
|
|
5354
5489
|
}, {
|
|
5355
5490
|
id: string;
|
|
5356
|
-
type: "feature" | "fix" | "refactor";
|
|
5491
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5357
5492
|
scope: string;
|
|
5358
5493
|
title: string;
|
|
5359
5494
|
acceptanceCriteria: string[];
|
|
@@ -5366,7 +5501,7 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
5366
5501
|
version: number;
|
|
5367
5502
|
tasks: {
|
|
5368
5503
|
id: string;
|
|
5369
|
-
type: "feature" | "fix" | "refactor";
|
|
5504
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5370
5505
|
scope: string;
|
|
5371
5506
|
title: string;
|
|
5372
5507
|
risk: "low" | "medium" | "high";
|
|
@@ -5380,7 +5515,7 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
5380
5515
|
version: number;
|
|
5381
5516
|
tasks: {
|
|
5382
5517
|
id: string;
|
|
5383
|
-
type: "feature" | "fix" | "refactor";
|
|
5518
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5384
5519
|
scope: string;
|
|
5385
5520
|
title: string;
|
|
5386
5521
|
acceptanceCriteria: string[];
|
package/docs/generated/cli.md
CHANGED
|
@@ -101,7 +101,17 @@ cc-codeconductor completion <bash|zsh|fish|powershell>
|
|
|
101
101
|
Run installed agent hooks.
|
|
102
102
|
|
|
103
103
|
```text
|
|
104
|
-
cc-codeconductor hook <pre-tool|post-tool|session-start>
|
|
104
|
+
cc-codeconductor hook <pre-tool|post-tool|session-start|session-end|subagent-stop|stop>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## telemetry
|
|
108
|
+
|
|
109
|
+
Harness telemetry helpers (OTLP env, show, purge).
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
cc-codeconductor telemetry otel-env [--port <n>] [--with-tool-details]
|
|
113
|
+
cc-codeconductor telemetry show [--run <id>]
|
|
114
|
+
cc-codeconductor telemetry purge [--all]
|
|
105
115
|
```
|
|
106
116
|
|
|
107
117
|
## cc-help
|
|
@@ -120,6 +130,14 @@ Recommend a slash-command workflow.
|
|
|
120
130
|
cc-codeconductor ask "problem"
|
|
121
131
|
```
|
|
122
132
|
|
|
133
|
+
## correct
|
|
134
|
+
|
|
135
|
+
Recommend a correction layer and existing owner command.
|
|
136
|
+
|
|
137
|
+
```text
|
|
138
|
+
cc-codeconductor correct "mistake signal"
|
|
139
|
+
```
|
|
140
|
+
|
|
123
141
|
## goal
|
|
124
142
|
|
|
125
143
|
Plan a goal into dependent tasks.
|
|
@@ -220,6 +238,19 @@ cc-codeconductor rdd git-check
|
|
|
220
238
|
cc-codeconductor rdd install-hooks
|
|
221
239
|
```
|
|
222
240
|
|
|
241
|
+
## harness
|
|
242
|
+
|
|
243
|
+
Seal tests and gate code for the SDD/TDD harness.
|
|
244
|
+
|
|
245
|
+
```text
|
|
246
|
+
cc-codeconductor harness seal --paths <dirs|files> [--force]
|
|
247
|
+
cc-codeconductor harness verify-seal --paths <dirs|files> [--expected-hash <sha256>]
|
|
248
|
+
cc-codeconductor harness check-code --paths <files>
|
|
249
|
+
cc-codeconductor harness check-tests --paths <files>
|
|
250
|
+
cc-codeconductor harness index [--out <file>]
|
|
251
|
+
cc-codeconductor harness collisions --paths <files>
|
|
252
|
+
```
|
|
253
|
+
|
|
223
254
|
## seo
|
|
224
255
|
|
|
225
256
|
Audit SEO and generate llms.txt.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-codeconductor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"docs/generated/",
|
|
22
22
|
"policy.yml",
|
|
23
23
|
"presets/",
|
|
24
|
+
"pricing/",
|
|
25
|
+
"schemas/",
|
|
24
26
|
"src/presets/"
|
|
25
27
|
],
|
|
26
28
|
"repository": {
|
|
@@ -45,8 +47,9 @@
|
|
|
45
47
|
},
|
|
46
48
|
"scripts": {
|
|
47
49
|
"dev": "bun run src/cli/main.ts",
|
|
50
|
+
"ab:run": "bun run scripts/ab-run.ts",
|
|
48
51
|
"build": "bun run scripts/build.ts",
|
|
49
|
-
"build:cli": "bun build src/cli/main.ts --target=node --outfile=dist/index.js",
|
|
52
|
+
"build:cli": "bun build src/cli/main.ts --target=node --external typescript --outfile=dist/index.js",
|
|
50
53
|
"build:lib": "bun build src/index.ts --target=node --outfile=dist/library.js --packages=external",
|
|
51
54
|
"build:types": "tsc -p tsconfig.lib.json --emitDeclarationOnly",
|
|
52
55
|
"generate:cli-docs": "bun run scripts/generate-cli-docs.ts",
|
|
@@ -54,6 +57,8 @@
|
|
|
54
57
|
"test:fast": "bun run scripts/test-fast.ts",
|
|
55
58
|
"typecheck": "tsc --noEmit",
|
|
56
59
|
"lint": "bun run scripts/lint.ts",
|
|
60
|
+
"rework:rate": "bun run scripts/rework-rate.ts",
|
|
61
|
+
"bench:local": "bun run scripts/bench-local.ts",
|
|
57
62
|
"check:council-redirect": "bun run scripts/check-council-redirect.ts",
|
|
58
63
|
"check:coverage": "bun run scripts/check-coverage.ts",
|
|
59
64
|
"check:prompt-changelog": "bun run scripts/check-prompt-changelog.ts",
|
|
@@ -68,11 +73,11 @@
|
|
|
68
73
|
},
|
|
69
74
|
"dependencies": {
|
|
70
75
|
"zod": "^3.23.8",
|
|
76
|
+
"typescript": "^5.5.3",
|
|
71
77
|
"yaml": "^2.4.5",
|
|
72
78
|
"smol-toml": "^1.9.1"
|
|
73
79
|
},
|
|
74
80
|
"devDependencies": {
|
|
75
|
-
"@types/bun": "^1.1.8"
|
|
76
|
-
"typescript": "^5.5.3"
|
|
81
|
+
"@types/bun": "^1.1.8"
|
|
77
82
|
}
|
|
78
83
|
}
|
|
@@ -5,7 +5,14 @@ const { spawnSync } = require('node:child_process');
|
|
|
5
5
|
const { existsSync, readFileSync, realpathSync } = require('node:fs');
|
|
6
6
|
const { delimiter, dirname, join, resolve } = require('node:path');
|
|
7
7
|
|
|
8
|
-
const VALID_EVENTS = [
|
|
8
|
+
const VALID_EVENTS = [
|
|
9
|
+
'pre-tool',
|
|
10
|
+
'post-tool',
|
|
11
|
+
'session-start',
|
|
12
|
+
'session-end',
|
|
13
|
+
'subagent-stop',
|
|
14
|
+
'stop',
|
|
15
|
+
];
|
|
9
16
|
const SPAWN_TIMEOUT = 10000;
|
|
10
17
|
|
|
11
18
|
const rawArgs = process.argv.slice(1);
|
|
@@ -99,7 +106,13 @@ function fallback() {
|
|
|
99
106
|
process.stderr.write('CodeConductor guard unavailable: install cc-codeconductor locally or enable CC_DEV=1 for trusted development.\n');
|
|
100
107
|
}
|
|
101
108
|
if (isAgy) {
|
|
102
|
-
if (
|
|
109
|
+
if (
|
|
110
|
+
event === 'post-tool' ||
|
|
111
|
+
event === 'session-start' ||
|
|
112
|
+
event === 'session-end' ||
|
|
113
|
+
event === 'subagent-stop' ||
|
|
114
|
+
event === 'stop'
|
|
115
|
+
) {
|
|
103
116
|
process.stdout.write('{}\n');
|
|
104
117
|
} else {
|
|
105
118
|
process.stdout.write(JSON.stringify(denied ? { decision: 'deny', reason: 'CodeConductor guard unavailable' } : { decision: 'allow' }) + '\n');
|
|
@@ -95,6 +95,39 @@
|
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
|
+
],
|
|
99
|
+
"SessionEnd": [
|
|
100
|
+
{
|
|
101
|
+
"hooks": [
|
|
102
|
+
{
|
|
103
|
+
"type": "command",
|
|
104
|
+
"command": "node .claude/hooks/invoke-hook.cjs session-end",
|
|
105
|
+
"async": true
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"SubagentStop": [
|
|
111
|
+
{
|
|
112
|
+
"hooks": [
|
|
113
|
+
{
|
|
114
|
+
"type": "command",
|
|
115
|
+
"command": "node .claude/hooks/invoke-hook.cjs subagent-stop",
|
|
116
|
+
"async": true
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"Stop": [
|
|
122
|
+
{
|
|
123
|
+
"hooks": [
|
|
124
|
+
{
|
|
125
|
+
"type": "command",
|
|
126
|
+
"command": "node .claude/hooks/invoke-hook.cjs stop",
|
|
127
|
+
"async": true
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
98
131
|
]
|
|
99
132
|
}
|
|
100
133
|
}
|
|
@@ -5,7 +5,14 @@ const { spawnSync } = require('node:child_process');
|
|
|
5
5
|
const { existsSync, readFileSync, realpathSync } = require('node:fs');
|
|
6
6
|
const { delimiter, dirname, join, resolve } = require('node:path');
|
|
7
7
|
|
|
8
|
-
const VALID_EVENTS = [
|
|
8
|
+
const VALID_EVENTS = [
|
|
9
|
+
'pre-tool',
|
|
10
|
+
'post-tool',
|
|
11
|
+
'session-start',
|
|
12
|
+
'session-end',
|
|
13
|
+
'subagent-stop',
|
|
14
|
+
'stop',
|
|
15
|
+
];
|
|
9
16
|
const SPAWN_TIMEOUT = 10000;
|
|
10
17
|
|
|
11
18
|
const rawArgs = process.argv.slice(1);
|
|
@@ -99,7 +106,13 @@ function fallback() {
|
|
|
99
106
|
process.stderr.write('CodeConductor guard unavailable: install cc-codeconductor locally or enable CC_DEV=1 for trusted development.\n');
|
|
100
107
|
}
|
|
101
108
|
if (isAgy) {
|
|
102
|
-
if (
|
|
109
|
+
if (
|
|
110
|
+
event === 'post-tool' ||
|
|
111
|
+
event === 'session-start' ||
|
|
112
|
+
event === 'session-end' ||
|
|
113
|
+
event === 'subagent-stop' ||
|
|
114
|
+
event === 'stop'
|
|
115
|
+
) {
|
|
103
116
|
process.stdout.write('{}\n');
|
|
104
117
|
} else {
|
|
105
118
|
process.stdout.write(JSON.stringify(denied ? { decision: 'deny', reason: 'CodeConductor guard unavailable' } : { decision: 'allow' }) + '\n');
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "pricing/v1",
|
|
3
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
4
|
+
"notes": [
|
|
5
|
+
"Anthropic figures copied from https://platform.claude.com/docs/en/about-claude/pricing on 2026-10-19 (UTC).",
|
|
6
|
+
"Model IDs from https://platform.claude.com/docs/en/about-claude/models/overview (Claude API alias column).",
|
|
7
|
+
"OpenAI figures copied from https://developers.openai.com/api/docs/pricing.md Standard short-context column on 2026-10-19 (UTC).",
|
|
8
|
+
"OpenRouter per-model list prices and :free data/retention policy: pending — not copied in this PR.",
|
|
9
|
+
"Haiku 5.5 has tiered long-context pricing; the ≤100k row is the default entry. See note on the >100k entry."
|
|
10
|
+
],
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"provider": "anthropic",
|
|
14
|
+
"modelId": "claude-fable-5-1",
|
|
15
|
+
"unit": "per_mtok",
|
|
16
|
+
"input": 10,
|
|
17
|
+
"output": 50,
|
|
18
|
+
"cacheRead": 0.25,
|
|
19
|
+
"cacheWrite5m": 12.5,
|
|
20
|
+
"cacheWrite1h": 20,
|
|
21
|
+
"sourceUrl": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
22
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
23
|
+
"note": null
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"provider": "anthropic",
|
|
27
|
+
"modelId": "claude-opus-5-5",
|
|
28
|
+
"unit": "per_mtok",
|
|
29
|
+
"input": 4,
|
|
30
|
+
"output": 20,
|
|
31
|
+
"cacheRead": 0.2,
|
|
32
|
+
"cacheWrite5m": 5,
|
|
33
|
+
"cacheWrite1h": 8,
|
|
34
|
+
"sourceUrl": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
35
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
36
|
+
"note": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"provider": "anthropic",
|
|
40
|
+
"modelId": "claude-sonnet-5-5",
|
|
41
|
+
"unit": "per_mtok",
|
|
42
|
+
"input": 2,
|
|
43
|
+
"output": 10,
|
|
44
|
+
"cacheRead": 0.1,
|
|
45
|
+
"cacheWrite5m": 2.5,
|
|
46
|
+
"cacheWrite1h": 4,
|
|
47
|
+
"sourceUrl": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
48
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
49
|
+
"note": null
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"provider": "anthropic",
|
|
53
|
+
"modelId": "claude-haiku-5-5",
|
|
54
|
+
"unit": "per_mtok",
|
|
55
|
+
"input": 0.1,
|
|
56
|
+
"output": 0.5,
|
|
57
|
+
"cacheRead": 0.01,
|
|
58
|
+
"cacheWrite5m": 0.125,
|
|
59
|
+
"cacheWrite1h": 0.2,
|
|
60
|
+
"sourceUrl": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
61
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
62
|
+
"note": "Prompts ≤ 100,000 tokens (default entry)."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"provider": "anthropic",
|
|
66
|
+
"modelId": "claude-haiku-5-5>100k",
|
|
67
|
+
"unit": "per_mtok",
|
|
68
|
+
"input": 0.5,
|
|
69
|
+
"output": 2.5,
|
|
70
|
+
"cacheRead": 0.05,
|
|
71
|
+
"cacheWrite5m": 0.625,
|
|
72
|
+
"cacheWrite1h": 1,
|
|
73
|
+
"sourceUrl": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
74
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
75
|
+
"note": "Prompts over 100,000 tokens. Lookup key is synthetic; callers must select by prompt length."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"provider": "anthropic",
|
|
79
|
+
"modelId": "claude-haiku-4-5-20251001",
|
|
80
|
+
"unit": "per_mtok",
|
|
81
|
+
"input": 1,
|
|
82
|
+
"output": 5,
|
|
83
|
+
"cacheRead": 0.1,
|
|
84
|
+
"cacheWrite5m": 1.25,
|
|
85
|
+
"cacheWrite1h": 2,
|
|
86
|
+
"sourceUrl": "https://platform.claude.com/docs/en/about-claude/pricing",
|
|
87
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
88
|
+
"note": "Listed as Claude Haiku 4.5 on the pricing table."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"provider": "openai",
|
|
92
|
+
"modelId": "gpt-5",
|
|
93
|
+
"unit": "per_mtok",
|
|
94
|
+
"input": 1.25,
|
|
95
|
+
"output": 10,
|
|
96
|
+
"cacheRead": 0.125,
|
|
97
|
+
"cacheWrite5m": null,
|
|
98
|
+
"cacheWrite1h": null,
|
|
99
|
+
"sourceUrl": "https://developers.openai.com/api/docs/pricing",
|
|
100
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
101
|
+
"note": "Standard short-context. cacheWrite* not listed on this row → null."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"provider": "openai",
|
|
105
|
+
"modelId": "o4-mini",
|
|
106
|
+
"unit": "per_mtok",
|
|
107
|
+
"input": 1.1,
|
|
108
|
+
"output": 4.4,
|
|
109
|
+
"cacheRead": 0.275,
|
|
110
|
+
"cacheWrite5m": null,
|
|
111
|
+
"cacheWrite1h": null,
|
|
112
|
+
"sourceUrl": "https://developers.openai.com/api/docs/pricing",
|
|
113
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
114
|
+
"note": "Standard short-context. cacheWrite* not listed on this row → null."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"provider": "openai",
|
|
118
|
+
"modelId": "o3",
|
|
119
|
+
"unit": "per_mtok",
|
|
120
|
+
"input": 2,
|
|
121
|
+
"output": 8,
|
|
122
|
+
"cacheRead": 0.5,
|
|
123
|
+
"cacheWrite5m": null,
|
|
124
|
+
"cacheWrite1h": null,
|
|
125
|
+
"sourceUrl": "https://developers.openai.com/api/docs/pricing",
|
|
126
|
+
"fetchedAt": "2026-10-19T04:10:25Z",
|
|
127
|
+
"note": "Standard short-context. cacheWrite* not listed on this row → null."
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|