cc-codeconductor 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.d.ts +1 -0
- package/dist/index.js +8527 -1109
- package/dist/library.js +1462 -738
- package/dist/validation/schemas.d.ts +927 -146
- package/dist/validation/scoped-context-schemas.d.ts +1074 -0
- package/docs/generated/cli.md +11 -1
- package/package.json +5 -2
- package/presets/agy/scripts/invoke-hook.cjs +15 -2
- package/presets/agy/skills/database-migrations/SKILL.md +64 -0
- package/presets/agy/skills/rust-async/SKILL.md +64 -0
- package/presets/agy/skills/rust-engineering/SKILL.md +69 -0
- package/presets/agy/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/claude/settings.json +34 -8
- package/presets/claude/skills/database-migrations/SKILL.md +64 -0
- package/presets/claude/skills/rust-async/SKILL.md +64 -0
- package/presets/claude/skills/rust-engineering/SKILL.md +69 -0
- package/presets/claude/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/codex/skills/database-migrations/SKILL.md +64 -0
- package/presets/codex/skills/rust-async/SKILL.md +64 -0
- package/presets/codex/skills/rust-engineering/SKILL.md +69 -0
- package/presets/codex/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/cursor/skills/database-migrations/SKILL.md +64 -0
- package/presets/cursor/skills/rust-async/SKILL.md +64 -0
- package/presets/cursor/skills/rust-engineering/SKILL.md +69 -0
- package/presets/cursor/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/opencode/skills/database-migrations/SKILL.md +64 -0
- package/presets/opencode/skills/rust-async/SKILL.md +64 -0
- package/presets/opencode/skills/rust-engineering/SKILL.md +69 -0
- package/presets/opencode/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/shared/invoke-hook.cjs +15 -2
- package/pricing/pricing.v1.json +130 -0
- package/schemas/harness-telemetry.v1.json +239 -0
- package/src/presets/shared-skills.yml +8 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: rust-engineering
|
|
3
|
+
name: rust-engineering
|
|
4
|
+
description: >
|
|
5
|
+
Rust engineering baseline: Cargo workspaces and features, error types,
|
|
6
|
+
unsafe, public API, lints and verification.
|
|
7
|
+
Trigger: When editing .rs files, Cargo.toml or Cargo.lock in a Rust package.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Rust engineering
|
|
11
|
+
|
|
12
|
+
## Activation
|
|
13
|
+
|
|
14
|
+
Apply to any `.rs`, `Cargo.toml` or `Cargo.lock` change. Rules are defaults;
|
|
15
|
+
a repository rule with the same id wins over this skill.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
- Nearest `Cargo.toml` (package, `[features]`, `[lints]`) and workspace root.
|
|
20
|
+
- `rust-toolchain.toml`, `clippy.toml`, `rustfmt.toml` when present.
|
|
21
|
+
- The repository's existing error type and module layout.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. **Locate the package.** Condition: a change spans crates. Action: resolve the
|
|
26
|
+
owning package per file and run checks with `-p <package>`. Exception: a
|
|
27
|
+
workspace-wide refactor named in the Task Card. Verify: `cargo metadata
|
|
28
|
+
--no-deps --format-version 1` lists the package.
|
|
29
|
+
2. **Errors.** Condition: a function can fail. Action: return `Result` with the
|
|
30
|
+
crate's existing error type; add context where the error crosses a module
|
|
31
|
+
boundary. Exception: tests and examples may `unwrap`/`expect`. Verify:
|
|
32
|
+
`cargo clippy -- -D clippy::unwrap_used` on touched non-test code, or a grep
|
|
33
|
+
of the diff.
|
|
34
|
+
3. **Public API.** Condition: a `pub` item changes. Action: treat as a breaking
|
|
35
|
+
change unless it only adds; update docs and CHANGELOG. Exception: crate is
|
|
36
|
+
`publish = false` and private to the workspace. Verify: `cargo doc --no-deps`
|
|
37
|
+
and, for published crates, `cargo semver-checks` if installed.
|
|
38
|
+
4. **unsafe.** Condition: `unsafe` is needed. Action: smallest block, a `// SAFETY:`
|
|
39
|
+
comment stating the invariant, a safe wrapper. Exception: none for new
|
|
40
|
+
`unsafe` without an owner approval in the Task Card. Verify: Miri when the
|
|
41
|
+
toolchain has it, else a test of the invariant.
|
|
42
|
+
5. **Features** (`cargo.feature-unification`). Condition: a dependency or
|
|
43
|
+
feature changes. Action: remember Cargo unifies features across the build;
|
|
44
|
+
never rely on a feature being off. Features must be additive. Exception:
|
|
45
|
+
mutually exclusive features guarded by `compile_error!`. Verify: `cargo check
|
|
46
|
+
-p <package>` and `cargo check --workspace --all-targets`.
|
|
47
|
+
6. **Lockfile.** Condition: a dependency changes. Action: commit `Cargo.lock` for
|
|
48
|
+
binaries; justify each new dependency. Exception: libraries that gitignore
|
|
49
|
+
the lockfile. Verify: `cargo check --locked`.
|
|
50
|
+
|
|
51
|
+
## Decisions and exceptions
|
|
52
|
+
|
|
53
|
+
- Match the repository's formatting, naming and error style; do not import
|
|
54
|
+
personal preferences. Edition and MSRV come from `Cargo.toml`, not this skill.
|
|
55
|
+
- Do not add `anyhow`/`thiserror` unless already used or approved.
|
|
56
|
+
- Dependency added "just in case": reject; prefer `std`.
|
|
57
|
+
|
|
58
|
+
## Evidence
|
|
59
|
+
|
|
60
|
+
Report each command run with its exit code, per package: `cargo fmt --check`,
|
|
61
|
+
`cargo clippy --all-targets -- -D warnings`, `cargo test -p <package>`. A
|
|
62
|
+
check that was not run is reported as not run, never as passed.
|
|
63
|
+
|
|
64
|
+
## References
|
|
65
|
+
|
|
66
|
+
- Cargo features: https://doc.rust-lang.org/cargo/reference/features.html
|
|
67
|
+
- Cargo workspaces: https://doc.rust-lang.org/cargo/reference/workspaces.html
|
|
68
|
+
- Rust API Guidelines: https://rust-lang.github.io/api-guidelines/
|
|
69
|
+
- Unsafe code guidelines: https://doc.rust-lang.org/nomicon/
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: rust-sqlx
|
|
3
|
+
name: rust-sqlx
|
|
4
|
+
description: >
|
|
5
|
+
sqlx in Rust: query macros and offline metadata, pool acquisition,
|
|
6
|
+
transactions and migrations.
|
|
7
|
+
Trigger: When touching sqlx queries, pools, transactions, .sqlx metadata or migrations in a Rust package.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Rust sqlx
|
|
11
|
+
|
|
12
|
+
## Activation
|
|
13
|
+
|
|
14
|
+
Apply when the owning package declares `sqlx` (normal dependency) and the
|
|
15
|
+
change touches queries, pool/transaction code, `.sqlx/` or `migrations/`. For a
|
|
16
|
+
dev-only `sqlx`, apply to tests only.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
- `sqlx` features (database driver, `migrate`, `offline`, runtime).
|
|
21
|
+
- `DATABASE_URL` source, `.sqlx/` directory, `migrations/` directory.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. **Query macros.** Condition: `query!`/`query_as!` are used. Action: they check
|
|
26
|
+
against `DATABASE_URL` or the `.sqlx` metadata at build time. Any query or
|
|
27
|
+
schema change requires regenerating metadata. Exception: queries built with
|
|
28
|
+
non-macro `query()` are not checked at build. Verify: `cargo sqlx prepare
|
|
29
|
+
--check` (add `--workspace` in a workspace).
|
|
30
|
+
2. **Stale metadata** (`sqlx.metadata-stale`). Condition: queries or migrations
|
|
31
|
+
changed. Action: run `cargo sqlx prepare` against a database migrated to the
|
|
32
|
+
current schema and commit `.sqlx/`. Exception: repository builds only online.
|
|
33
|
+
Verify: `cargo sqlx prepare --check` exits 0; CI builds with `DATABASE_URL`
|
|
34
|
+
unset.
|
|
35
|
+
3. **Nested acquisition** (`sqlx.nested-acquisition`). Condition: code holds a
|
|
36
|
+
pooled connection or transaction and calls something that acquires another.
|
|
37
|
+
Action: pass the held `&mut` connection/transaction down; never acquire from
|
|
38
|
+
the pool while holding one. Exception: a pool sized above the maximum nesting,
|
|
39
|
+
documented. Verify: a test with `max_connections(1)` that does not time out
|
|
40
|
+
(`acquire_timeout` bounds the wait).
|
|
41
|
+
4. **Transactions.** Condition: several statements must succeed together.
|
|
42
|
+
Action: one transaction, explicit `commit()`; drop without commit rolls
|
|
43
|
+
back. Exception: independent idempotent statements. Verify: a test forcing
|
|
44
|
+
an error between statements and asserting no partial write.
|
|
45
|
+
5. **Migrations.** Apply `database-migrations` for content; here only: embed
|
|
46
|
+
with `sqlx::migrate!` and run once at startup or deploy, not per request.
|
|
47
|
+
|
|
48
|
+
## Decisions and exceptions
|
|
49
|
+
|
|
50
|
+
- Do not edit an applied migration; add a new one (checksums are validated).
|
|
51
|
+
- Do not widen pool size to hide a nested-acquisition bug.
|
|
52
|
+
- Unknown boundary (is this a data-access layer?): ask or report it; do not guess.
|
|
53
|
+
|
|
54
|
+
## Evidence
|
|
55
|
+
|
|
56
|
+
Exit code of `cargo sqlx prepare --check` and of `cargo test -p <package>`
|
|
57
|
+
with a database available. Without a database, report macros as unverified.
|
|
58
|
+
|
|
59
|
+
## References
|
|
60
|
+
|
|
61
|
+
- https://docs.rs/sqlx/latest/sqlx/macro.query.html (offline mode)
|
|
62
|
+
- https://github.com/launchbadge/sqlx/blob/main/sqlx-cli/README.md
|
|
63
|
+
- https://docs.rs/sqlx/latest/sqlx/macro.migrate.html
|
|
64
|
+
- https://docs.rs/sqlx/latest/sqlx/pool/struct.PoolOptions.html
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "harness-telemetry/v1",
|
|
4
|
+
"title": "HarnessTelemetryEvent",
|
|
5
|
+
"description": "One JSONL line per harness telemetry event. Common to CodeConductor and microsdd.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema", "ts", "harness", "runId", "event"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": {
|
|
11
|
+
"const": "harness-telemetry/v1"
|
|
12
|
+
},
|
|
13
|
+
"ts": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "ISO-8601 timestamp with offset (not Z-only preferred)."
|
|
16
|
+
},
|
|
17
|
+
"harness": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["name"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"name": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["codeconductor", "microsdd"]
|
|
25
|
+
},
|
|
26
|
+
"version": {
|
|
27
|
+
"type": ["string", "null"]
|
|
28
|
+
},
|
|
29
|
+
"commit": {
|
|
30
|
+
"type": ["string", "null"]
|
|
31
|
+
},
|
|
32
|
+
"promptCompilerVersion": {
|
|
33
|
+
"type": ["string", "null"]
|
|
34
|
+
},
|
|
35
|
+
"promptFingerprint": {
|
|
36
|
+
"type": ["string", "null"],
|
|
37
|
+
"description": "sha256 of concatenated per-layer hashes"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"runId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
45
|
+
"taskId": {
|
|
46
|
+
"type": ["string", "null"]
|
|
47
|
+
},
|
|
48
|
+
"agent": {
|
|
49
|
+
"type": ["object", "null"],
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"role": {
|
|
53
|
+
"type": ["string", "null"]
|
|
54
|
+
},
|
|
55
|
+
"agentId": {
|
|
56
|
+
"type": ["string", "null"]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"event": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": [
|
|
63
|
+
"run.start",
|
|
64
|
+
"run.end",
|
|
65
|
+
"task.start",
|
|
66
|
+
"task.end",
|
|
67
|
+
"agent.end",
|
|
68
|
+
"model.call",
|
|
69
|
+
"verification",
|
|
70
|
+
"retry",
|
|
71
|
+
"iteration"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"host": {
|
|
75
|
+
"type": ["object", "null"],
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"properties": {
|
|
78
|
+
"name": {
|
|
79
|
+
"type": ["string", "null"],
|
|
80
|
+
"enum": ["claude-code", "codex", "opencode", "openrouter-direct", "other", null]
|
|
81
|
+
},
|
|
82
|
+
"version": {
|
|
83
|
+
"type": ["string", "null"]
|
|
84
|
+
},
|
|
85
|
+
"mode": {
|
|
86
|
+
"type": ["string", "null"],
|
|
87
|
+
"enum": ["headless", "interactive", null]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"model": {
|
|
92
|
+
"type": ["object", "null"],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"properties": {
|
|
95
|
+
"id": {
|
|
96
|
+
"type": ["string", "null"]
|
|
97
|
+
},
|
|
98
|
+
"provider": {
|
|
99
|
+
"type": ["string", "null"],
|
|
100
|
+
"enum": ["anthropic", "openrouter", "openai", "other", null]
|
|
101
|
+
},
|
|
102
|
+
"effort": {
|
|
103
|
+
"type": ["string", "null"],
|
|
104
|
+
"enum": ["low", "medium", "high", "xhigh", "max", null]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"usage": {
|
|
109
|
+
"type": ["object", "null"],
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"properties": {
|
|
112
|
+
"input": {
|
|
113
|
+
"type": ["integer", "null"],
|
|
114
|
+
"minimum": 0
|
|
115
|
+
},
|
|
116
|
+
"output": {
|
|
117
|
+
"type": ["integer", "null"],
|
|
118
|
+
"minimum": 0
|
|
119
|
+
},
|
|
120
|
+
"cacheRead": {
|
|
121
|
+
"type": ["integer", "null"],
|
|
122
|
+
"minimum": 0
|
|
123
|
+
},
|
|
124
|
+
"cacheWrite": {
|
|
125
|
+
"type": ["integer", "null"],
|
|
126
|
+
"minimum": 0
|
|
127
|
+
},
|
|
128
|
+
"reasoning": {
|
|
129
|
+
"type": ["integer", "null"],
|
|
130
|
+
"minimum": 0
|
|
131
|
+
},
|
|
132
|
+
"calls": {
|
|
133
|
+
"type": ["integer", "null"],
|
|
134
|
+
"minimum": 0
|
|
135
|
+
},
|
|
136
|
+
"apiRetries": {
|
|
137
|
+
"type": ["integer", "null"],
|
|
138
|
+
"minimum": 0
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"cost": {
|
|
143
|
+
"type": ["object", "null"],
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"properties": {
|
|
146
|
+
"usd": {
|
|
147
|
+
"type": ["number", "null"]
|
|
148
|
+
},
|
|
149
|
+
"basis": {
|
|
150
|
+
"type": ["string", "null"],
|
|
151
|
+
"enum": ["provider-billed", "host-estimate", "pricing-table", "unknown", "none", null]
|
|
152
|
+
},
|
|
153
|
+
"pricingVersion": {
|
|
154
|
+
"type": ["string", "null"]
|
|
155
|
+
},
|
|
156
|
+
"isRealSpend": {
|
|
157
|
+
"type": ["boolean", "null"]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"loop": {
|
|
162
|
+
"type": ["object", "null"],
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"properties": {
|
|
165
|
+
"iteration": {
|
|
166
|
+
"type": ["integer", "null"],
|
|
167
|
+
"minimum": 0
|
|
168
|
+
},
|
|
169
|
+
"retryReason": {
|
|
170
|
+
"type": ["string", "null"]
|
|
171
|
+
},
|
|
172
|
+
"maxIterations": {
|
|
173
|
+
"type": ["integer", "null"],
|
|
174
|
+
"minimum": 0
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"verification": {
|
|
179
|
+
"type": ["object", "null"],
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"properties": {
|
|
182
|
+
"gate": {
|
|
183
|
+
"type": ["string", "null"]
|
|
184
|
+
},
|
|
185
|
+
"passed": {
|
|
186
|
+
"type": ["boolean", "null"]
|
|
187
|
+
},
|
|
188
|
+
"durationMs": {
|
|
189
|
+
"type": ["integer", "null"],
|
|
190
|
+
"minimum": 0
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"durationMs": {
|
|
195
|
+
"type": ["integer", "null"],
|
|
196
|
+
"minimum": 0
|
|
197
|
+
},
|
|
198
|
+
"outcome": {
|
|
199
|
+
"type": ["object", "null"],
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"properties": {
|
|
202
|
+
"status": {
|
|
203
|
+
"type": ["string", "null"],
|
|
204
|
+
"enum": ["done", "failed", "escalated", "aborted", null]
|
|
205
|
+
},
|
|
206
|
+
"firstTry": {
|
|
207
|
+
"type": ["boolean", "null"]
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"source": {
|
|
212
|
+
"type": ["object", "null"],
|
|
213
|
+
"additionalProperties": false,
|
|
214
|
+
"properties": {
|
|
215
|
+
"usage": {
|
|
216
|
+
"type": ["string", "null"],
|
|
217
|
+
"enum": [
|
|
218
|
+
"cc-json",
|
|
219
|
+
"cc-otel",
|
|
220
|
+
"cc-transcript",
|
|
221
|
+
"openrouter-usage",
|
|
222
|
+
"codex-json",
|
|
223
|
+
"harness",
|
|
224
|
+
"none",
|
|
225
|
+
null
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"reliability": {
|
|
229
|
+
"type": ["string", "null"],
|
|
230
|
+
"enum": ["high", "medium", "low", null]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"privacy": {
|
|
235
|
+
"type": ["string", "null"],
|
|
236
|
+
"enum": ["standard", "strict", null]
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -132,3 +132,11 @@ skills:
|
|
|
132
132
|
targets: [claude, codex, opencode]
|
|
133
133
|
- name: security
|
|
134
134
|
targets: [claude, opencode]
|
|
135
|
+
- name: rust-engineering
|
|
136
|
+
targets: [claude, codex, cursor, opencode, agy]
|
|
137
|
+
- name: rust-async
|
|
138
|
+
targets: [claude, codex, cursor, opencode, agy]
|
|
139
|
+
- name: rust-sqlx
|
|
140
|
+
targets: [claude, codex, cursor, opencode, agy]
|
|
141
|
+
- name: database-migrations
|
|
142
|
+
targets: [claude, codex, cursor, opencode, agy]
|