@mairwunnx/ctxray 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +160 -2
- package/bin/ctxray.js +2 -0
- package/index.js +1 -0
- package/package.json +41 -4
- package/types/app/globals.d.ts +3 -0
- package/types/app/public-api.d.ts +3 -0
- package/types/entities/harness/adapters.d.ts +12 -0
- package/types/entities/harness/capability.d.ts +2 -0
- package/types/entities/harness/capture/canary.d.ts +5 -0
- package/types/entities/harness/capture/copy.d.ts +3 -0
- package/types/entities/harness/capture/isolate.d.ts +16 -0
- package/types/entities/harness/capture/loadout.d.ts +19 -0
- package/types/entities/harness/capture/mcp.d.ts +15 -0
- package/types/entities/harness/capture/model.d.ts +44 -0
- package/types/entities/harness/capture/session.d.ts +54 -0
- package/types/entities/harness/capture/user-scope.d.ts +12 -0
- package/types/entities/harness/claude-code/transcript.d.ts +8 -0
- package/types/entities/harness/index.d.ts +22 -0
- package/types/entities/harness/inventory.d.ts +54 -0
- package/types/entities/harness/layers/dead-rules.d.ts +3 -0
- package/types/entities/harness/layers/files.d.ts +8 -0
- package/types/entities/harness/layers/lint-config.d.ts +9 -0
- package/types/entities/harness/layers/lint.d.ts +5 -0
- package/types/entities/harness/layers/policy.d.ts +16 -0
- package/types/entities/harness/layers/reach.d.ts +7 -0
- package/types/entities/harness/profile.d.ts +22 -0
- package/types/entities/harness/profiles.d.ts +3 -0
- package/types/entities/harness/project.d.ts +26 -0
- package/types/entities/harness/revision.d.ts +11 -0
- package/types/entities/harness/static-loadout.d.ts +42 -0
- package/types/entities/harness-cache/dirs.d.ts +7 -0
- package/types/entities/harness-cache/failure.d.ts +7 -0
- package/types/entities/harness-cache/index.d.ts +11 -0
- package/types/entities/harness-cache/install.d.ts +35 -0
- package/types/entities/harness-cache/inventory.d.ts +15 -0
- package/types/entities/harness-cache/npmrc.d.ts +9 -0
- package/types/entities/harness-cache/pack.d.ts +8 -0
- package/types/entities/harness-cache/progress-view.d.ts +5 -0
- package/types/entities/harness-cache/provisioning.d.ts +38 -0
- package/types/entities/harness-cache/recipes.d.ts +18 -0
- package/types/entities/harness-cache/registry.d.ts +20 -0
- package/types/entities/harness-cache/resolve.d.ts +4 -0
- package/types/entities/loadout/diff.d.ts +21 -0
- package/types/entities/loadout/index.d.ts +1 -0
- package/types/entities/proxy/ask.d.ts +9 -0
- package/types/entities/proxy/cassette.d.ts +20 -0
- package/types/entities/proxy/conversation.d.ts +10 -0
- package/types/entities/proxy/credentials.d.ts +4 -0
- package/types/entities/proxy/egress.d.ts +6 -0
- package/types/entities/proxy/exact/attribute.d.ts +19 -0
- package/types/entities/proxy/exact/cache.d.ts +7 -0
- package/types/entities/proxy/exact/counter.d.ts +17 -0
- package/types/entities/proxy/exact/endpoints.d.ts +14 -0
- package/types/entities/proxy/exact/index.d.ts +3 -0
- package/types/entities/proxy/forward.d.ts +16 -0
- package/types/entities/proxy/index.d.ts +15 -0
- package/types/entities/proxy/mcp-forward.d.ts +6 -0
- package/types/entities/proxy/model.d.ts +16 -0
- package/types/entities/proxy/prices.d.ts +10 -0
- package/types/entities/proxy/protocols/calls.d.ts +6 -0
- package/types/entities/proxy/protocols/index.d.ts +6 -0
- package/types/entities/proxy/protocols/kit.d.ts +7 -0
- package/types/entities/proxy/protocols/sse.d.ts +8 -0
- package/types/entities/proxy/relay.d.ts +13 -0
- package/types/entities/proxy/server.d.ts +17 -0
- package/types/entities/proxy/trace.d.ts +7 -0
- package/types/entities/proxy/usage.d.ts +10 -0
- package/types/entities/user-config/config.d.ts +32 -0
- package/types/entities/user-config/define.d.ts +2 -0
- package/types/entities/user-config/index.d.ts +8 -0
- package/types/entities/user-config/load.d.ts +15 -0
- package/types/entities/user-config/merge.d.ts +3 -0
- package/types/entities/user-config/network.d.ts +12 -0
- package/types/entities/user-config/option.d.ts +2 -0
- package/types/entities/user-config/problem.d.ts +13 -0
- package/types/entities/user-config/read.d.ts +2 -0
- package/types/features/test-run/api/baseline-command.d.ts +10 -0
- package/types/features/test-run/api/command.d.ts +15 -0
- package/types/features/test-run/baseline.action.d.ts +11 -0
- package/types/features/test-run/index.d.ts +11 -0
- package/types/features/test-run/lib/attempt.d.ts +31 -0
- package/types/features/test-run/lib/backend.d.ts +39 -0
- package/types/features/test-run/lib/base.d.ts +10 -0
- package/types/features/test-run/lib/binaries.d.ts +11 -0
- package/types/features/test-run/lib/capture.d.ts +37 -0
- package/types/features/test-run/lib/captured.d.ts +47 -0
- package/types/features/test-run/lib/cassettes.d.ts +15 -0
- package/types/features/test-run/lib/corpus.d.ts +5 -0
- package/types/features/test-run/lib/coverage.d.ts +15 -0
- package/types/features/test-run/lib/dsl.d.ts +31 -0
- package/types/features/test-run/lib/evals.d.ts +26 -0
- package/types/features/test-run/lib/expect.d.ts +43 -0
- package/types/features/test-run/lib/failure.d.ts +15 -0
- package/types/features/test-run/lib/loadout.d.ts +37 -0
- package/types/features/test-run/lib/model.d.ts +63 -0
- package/types/features/test-run/lib/rules.d.ts +32 -0
- package/types/features/test-run/lib/run.d.ts +44 -0
- package/types/features/test-run/lib/runs.d.ts +25 -0
- package/types/features/test-run/lib/scope.d.ts +39 -0
- package/types/features/test-run/lib/selection.d.ts +24 -0
- package/types/features/test-run/lib/session.d.ts +19 -0
- package/types/features/test-run/lib/snapshot.d.ts +46 -0
- package/types/features/test-run/lib/spend.d.ts +14 -0
- package/types/features/test-run/lib/workspace.d.ts +3 -0
- package/types/features/test-run/starting-loadout.action.d.ts +8 -0
- package/types/features/test-run/test-run.action.d.ts +51 -0
- package/types/shared/cli/command.d.ts +19 -0
- package/types/shared/cli/index.d.ts +2 -0
- package/types/shared/cli/parse.d.ts +14 -0
- package/types/shared/codeowners/codeowners.d.ts +5 -0
- package/types/shared/codeowners/index.d.ts +1 -0
- package/types/shared/contract/activation.d.ts +8 -0
- package/types/shared/contract/config.d.ts +373 -0
- package/types/shared/contract/exit-code.d.ts +10 -0
- package/types/shared/contract/harness.d.ts +31 -0
- package/types/shared/contract/index.d.ts +15 -0
- package/types/shared/contract/inspection.d.ts +327 -0
- package/types/shared/contract/json-schema.d.ts +1572 -0
- package/types/shared/contract/limits.d.ts +58 -0
- package/types/shared/contract/lint.d.ts +272 -0
- package/types/shared/contract/loadout.d.ts +195 -0
- package/types/shared/contract/lockfile.d.ts +48 -0
- package/types/shared/contract/report.d.ts +1635 -0
- package/types/shared/contract/result.d.ts +27 -0
- package/types/shared/contract/session.d.ts +230 -0
- package/types/shared/contract/tests.d.ts +625 -0
- package/types/shared/contract/trace.d.ts +42 -0
- package/types/shared/i18n/catalog-type.d.ts +4 -0
- package/types/shared/i18n/catalog.d.ts +7 -0
- package/types/shared/i18n/format.d.ts +7 -0
- package/types/shared/i18n/index.d.ts +5 -0
- package/types/shared/i18n/locales/en/index.d.ts +637 -0
- package/types/shared/i18n/locales/index.d.ts +3 -0
- package/types/shared/i18n/resolve-locale.d.ts +9 -0
- package/types/shared/i18n/translate.d.ts +5 -0
- package/types/shared/infra/env.d.ts +3 -0
- package/types/shared/infra/file-lock.d.ts +6 -0
- package/types/shared/infra/http.d.ts +7 -0
- package/types/shared/infra/index.d.ts +5 -0
- package/types/shared/infra/parallel.d.ts +2 -0
- package/types/shared/infra/platform.d.ts +9 -0
- package/types/shared/mcp-shim/index.d.ts +2 -0
- package/types/shared/mcp-shim/read.d.ts +18 -0
- package/types/shared/mcp-shim/shim.d.ts +15 -0
- package/types/shared/redact/index.d.ts +2 -0
- package/types/shared/redact/patterns.d.ts +14 -0
- package/types/shared/redact/redact.d.ts +6 -0
- package/types/shared/render/choose.d.ts +9 -0
- package/types/shared/render/index.d.ts +5 -0
- package/types/shared/render/layout.d.ts +7 -0
- package/types/shared/render/plain.d.ts +2 -0
- package/types/shared/render/renderer.d.ts +10 -0
- package/types/shared/render/view.d.ts +8 -0
- package/types/shared/stats/index.d.ts +1 -0
- package/types/shared/stats/wilson.d.ts +20 -0
- package/types/shared/tokens/calibration/calibration.d.ts +25 -0
- package/types/shared/tokens/calibration/classify.d.ts +3 -0
- package/types/shared/tokens/calibration/index.d.ts +9 -0
- package/types/shared/tokens/count.d.ts +10 -0
- package/types/shared/tokens/index.d.ts +2 -0
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RegExpValue: z.ZodInstanceOf<RegExp>;
|
|
3
|
+
export declare const RedactPattern: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<RegExp>]>, z.ZodTransform<RegExp, string | RegExp>>;
|
|
4
|
+
export declare const HarnessSettings: z.ZodObject<{
|
|
5
|
+
version: z.ZodOptional<z.ZodString>;
|
|
6
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
registry: "registry";
|
|
8
|
+
system: "system";
|
|
9
|
+
}>>;
|
|
10
|
+
model: z.ZodOptional<z.ZodString>;
|
|
11
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
12
|
+
userScope: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
inherit: "inherit";
|
|
14
|
+
isolated: "isolated";
|
|
15
|
+
}>>;
|
|
16
|
+
experimental: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type HarnessSettings = z.output<typeof HarnessSettings>;
|
|
19
|
+
export declare const Backend: z.ZodEnum<{
|
|
20
|
+
mock: "mock";
|
|
21
|
+
real: "real";
|
|
22
|
+
replay: "replay";
|
|
23
|
+
}>;
|
|
24
|
+
export type Backend = z.infer<typeof Backend>;
|
|
25
|
+
export declare const POLICY_CHECKS: readonly ["maxTokens", "denyMcp", "requireMcp", "requireFiles"];
|
|
26
|
+
export declare const Policy: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
error: "error";
|
|
30
|
+
warning: "warning";
|
|
31
|
+
}>>;
|
|
32
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
33
|
+
"claude-code": "claude-code";
|
|
34
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
35
|
+
codex: "codex";
|
|
36
|
+
"cursor-cli": "cursor-cli";
|
|
37
|
+
"cursor-ide": "cursor-ide";
|
|
38
|
+
"gemini-cli": "gemini-cli";
|
|
39
|
+
opencode: "opencode";
|
|
40
|
+
}>>>;
|
|
41
|
+
maxTokens: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
system: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
rules: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
skills: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
mcp: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
commands: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
tools: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
denyMcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
requireMcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
+
requireFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type Policy = z.output<typeof Policy>;
|
|
55
|
+
export declare const Network: z.ZodObject<{
|
|
56
|
+
proxy: z.ZodOptional<z.ZodString>;
|
|
57
|
+
noProxy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
ca: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
systemCa: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export type Network = z.output<typeof Network>;
|
|
63
|
+
export declare const Price: z.ZodObject<{
|
|
64
|
+
input: z.ZodNumber;
|
|
65
|
+
output: z.ZodNumber;
|
|
66
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type Price = z.output<typeof Price>;
|
|
70
|
+
export declare const Budget: z.ZodObject<{
|
|
71
|
+
usd: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export type Budget = z.output<typeof Budget>;
|
|
75
|
+
export declare const ActivateDefaults: z.ZodObject<{
|
|
76
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
export type ActivateDefaults = z.output<typeof ActivateDefaults>;
|
|
81
|
+
export declare const Reporter: z.ZodEnum<{
|
|
82
|
+
allure: "allure";
|
|
83
|
+
console: "console";
|
|
84
|
+
html: "html";
|
|
85
|
+
json: "json";
|
|
86
|
+
junit: "junit";
|
|
87
|
+
markdown: "markdown";
|
|
88
|
+
}>;
|
|
89
|
+
export declare const UserConfig: z.ZodObject<{
|
|
90
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
91
|
+
extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
92
|
+
harnesses: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
93
|
+
"claude-code": "claude-code";
|
|
94
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
95
|
+
codex: "codex";
|
|
96
|
+
"cursor-cli": "cursor-cli";
|
|
97
|
+
"cursor-ide": "cursor-ide";
|
|
98
|
+
"gemini-cli": "gemini-cli";
|
|
99
|
+
opencode: "opencode";
|
|
100
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodObject<{
|
|
101
|
+
version: z.ZodOptional<z.ZodString>;
|
|
102
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
registry: "registry";
|
|
104
|
+
system: "system";
|
|
105
|
+
}>>;
|
|
106
|
+
model: z.ZodOptional<z.ZodString>;
|
|
107
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
108
|
+
userScope: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
inherit: "inherit";
|
|
110
|
+
isolated: "isolated";
|
|
111
|
+
}>>;
|
|
112
|
+
experimental: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>>;
|
|
114
|
+
backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
115
|
+
mock: "mock";
|
|
116
|
+
real: "real";
|
|
117
|
+
replay: "replay";
|
|
118
|
+
}>>>;
|
|
119
|
+
upstream: z.ZodOptional<z.ZodString>;
|
|
120
|
+
offline: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
proxy: z.ZodOptional<z.ZodString>;
|
|
123
|
+
noProxy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
ca: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
systemCa: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
usd: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
132
|
+
activate: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
}, z.core.$strict>>;
|
|
137
|
+
exactTokens: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
139
|
+
input: z.ZodNumber;
|
|
140
|
+
output: z.ZodNumber;
|
|
141
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
}, z.core.$strict>>>;
|
|
144
|
+
ignoreHarnessDifferences: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
error: "error";
|
|
149
|
+
warning: "warning";
|
|
150
|
+
}>>;
|
|
151
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
152
|
+
"claude-code": "claude-code";
|
|
153
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
154
|
+
codex: "codex";
|
|
155
|
+
"cursor-cli": "cursor-cli";
|
|
156
|
+
"cursor-ide": "cursor-ide";
|
|
157
|
+
"gemini-cli": "gemini-cli";
|
|
158
|
+
opencode: "opencode";
|
|
159
|
+
}>>>;
|
|
160
|
+
maxTokens: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
system: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
rules: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
skills: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
mcp: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
commands: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
tools: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
}, z.core.$strict>>;
|
|
169
|
+
denyMcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
170
|
+
requireMcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
+
requireFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
+
}, z.core.$strict>>>;
|
|
173
|
+
redact: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
patterns: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<RegExp>]>, z.ZodTransform<RegExp, string | RegExp>>>>;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
178
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
180
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
184
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
185
|
+
}, z.core.$strict>>;
|
|
186
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
188
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
189
|
+
}, z.core.$strict>>;
|
|
190
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
191
|
+
command: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
192
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
194
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
198
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
202
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
205
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
206
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
208
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
209
|
+
}, z.core.$strict>>;
|
|
210
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
211
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
212
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
213
|
+
}, z.core.$strict>>;
|
|
214
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
216
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
lint: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
222
|
+
"bad-glob": "bad-glob";
|
|
223
|
+
"bad-json": "bad-json";
|
|
224
|
+
"bad-toml": "bad-toml";
|
|
225
|
+
"broken-link": "broken-link";
|
|
226
|
+
"codex-budget": "codex-budget";
|
|
227
|
+
"dead-rule": "dead-rule";
|
|
228
|
+
"duplicate-skill": "duplicate-skill";
|
|
229
|
+
"duplicate-text": "duplicate-text";
|
|
230
|
+
"empty-file": "empty-file";
|
|
231
|
+
frontmatter: "frontmatter";
|
|
232
|
+
"harness-differences": "harness-differences";
|
|
233
|
+
"import-depth": "import-depth";
|
|
234
|
+
"import-missing": "import-missing";
|
|
235
|
+
"long-description": "long-description";
|
|
236
|
+
"loose-frontmatter": "loose-frontmatter";
|
|
237
|
+
"mcp-transport": "mcp-transport";
|
|
238
|
+
"no-description": "no-description";
|
|
239
|
+
"other-harness": "other-harness";
|
|
240
|
+
"rule-field": "rule-field";
|
|
241
|
+
"shadowed-command": "shadowed-command";
|
|
242
|
+
"shadowed-file": "shadowed-file";
|
|
243
|
+
size: "size";
|
|
244
|
+
"skill-field": "skill-field";
|
|
245
|
+
"skill-folder-name": "skill-folder-name";
|
|
246
|
+
"skill-name": "skill-name";
|
|
247
|
+
"too-large": "too-large";
|
|
248
|
+
unread: "unread";
|
|
249
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodEnum<{
|
|
250
|
+
error: "error";
|
|
251
|
+
off: "off";
|
|
252
|
+
warning: "warning";
|
|
253
|
+
}>, z.ZodObject<{
|
|
254
|
+
level: z.ZodEnum<{
|
|
255
|
+
error: "error";
|
|
256
|
+
off: "off";
|
|
257
|
+
warning: "warning";
|
|
258
|
+
}>;
|
|
259
|
+
}, z.core.$strict>]>>>;
|
|
260
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
|
+
errorOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
include: z.ZodArray<z.ZodString>;
|
|
264
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
265
|
+
"claude-code": "claude-code";
|
|
266
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
267
|
+
codex: "codex";
|
|
268
|
+
"cursor-cli": "cursor-cli";
|
|
269
|
+
"cursor-ide": "cursor-ide";
|
|
270
|
+
"gemini-cli": "gemini-cli";
|
|
271
|
+
opencode: "opencode";
|
|
272
|
+
}>>>;
|
|
273
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
274
|
+
"bad-glob": "bad-glob";
|
|
275
|
+
"bad-json": "bad-json";
|
|
276
|
+
"bad-toml": "bad-toml";
|
|
277
|
+
"broken-link": "broken-link";
|
|
278
|
+
"codex-budget": "codex-budget";
|
|
279
|
+
"dead-rule": "dead-rule";
|
|
280
|
+
"duplicate-skill": "duplicate-skill";
|
|
281
|
+
"duplicate-text": "duplicate-text";
|
|
282
|
+
"empty-file": "empty-file";
|
|
283
|
+
frontmatter: "frontmatter";
|
|
284
|
+
"harness-differences": "harness-differences";
|
|
285
|
+
"import-depth": "import-depth";
|
|
286
|
+
"import-missing": "import-missing";
|
|
287
|
+
"long-description": "long-description";
|
|
288
|
+
"loose-frontmatter": "loose-frontmatter";
|
|
289
|
+
"mcp-transport": "mcp-transport";
|
|
290
|
+
"no-description": "no-description";
|
|
291
|
+
"other-harness": "other-harness";
|
|
292
|
+
"rule-field": "rule-field";
|
|
293
|
+
"shadowed-command": "shadowed-command";
|
|
294
|
+
"shadowed-file": "shadowed-file";
|
|
295
|
+
size: "size";
|
|
296
|
+
"skill-field": "skill-field";
|
|
297
|
+
"skill-folder-name": "skill-folder-name";
|
|
298
|
+
"skill-name": "skill-name";
|
|
299
|
+
"too-large": "too-large";
|
|
300
|
+
unread: "unread";
|
|
301
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodEnum<{
|
|
302
|
+
error: "error";
|
|
303
|
+
off: "off";
|
|
304
|
+
warning: "warning";
|
|
305
|
+
}>, z.ZodObject<{
|
|
306
|
+
level: z.ZodEnum<{
|
|
307
|
+
error: "error";
|
|
308
|
+
off: "off";
|
|
309
|
+
warning: "warning";
|
|
310
|
+
}>;
|
|
311
|
+
}, z.core.$strict>]>>>;
|
|
312
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
314
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
316
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
320
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
324
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
327
|
+
command: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
328
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
330
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
331
|
+
}, z.core.$strict>>;
|
|
332
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
334
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
335
|
+
}, z.core.$strict>>;
|
|
336
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
338
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
341
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
342
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
344
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
345
|
+
}, z.core.$strict>>;
|
|
346
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
347
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
348
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
351
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
352
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
353
|
+
}, z.core.$strict>>;
|
|
354
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
355
|
+
}, z.core.$strict>>;
|
|
356
|
+
}, z.core.$strict>>>;
|
|
357
|
+
}, z.core.$strict>>;
|
|
358
|
+
reporters: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
359
|
+
allure: "allure";
|
|
360
|
+
console: "console";
|
|
361
|
+
html: "html";
|
|
362
|
+
json: "json";
|
|
363
|
+
junit: "junit";
|
|
364
|
+
markdown: "markdown";
|
|
365
|
+
}>>>;
|
|
366
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
367
|
+
report: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
langs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
}, z.core.$strict>;
|
|
372
|
+
export type UserConfigInput = z.input<typeof UserConfig>;
|
|
373
|
+
export type UserConfig = z.output<typeof UserConfig>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ExitCode: {
|
|
2
|
+
readonly ok: 0;
|
|
3
|
+
readonly failed: 1;
|
|
4
|
+
readonly usage: 2;
|
|
5
|
+
readonly config: 3;
|
|
6
|
+
readonly environment: 4;
|
|
7
|
+
readonly internal: 5;
|
|
8
|
+
readonly interrupted: 130;
|
|
9
|
+
};
|
|
10
|
+
export type ExitCode = (typeof ExitCode)[keyof typeof ExitCode];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const HarnessId: z.ZodEnum<{
|
|
3
|
+
"claude-code": "claude-code";
|
|
4
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
5
|
+
codex: "codex";
|
|
6
|
+
"cursor-cli": "cursor-cli";
|
|
7
|
+
"cursor-ide": "cursor-ide";
|
|
8
|
+
"gemini-cli": "gemini-cli";
|
|
9
|
+
opencode: "opencode";
|
|
10
|
+
}>;
|
|
11
|
+
export type HarnessId = z.infer<typeof HarnessId>;
|
|
12
|
+
export declare const CaptureMode: z.ZodEnum<{
|
|
13
|
+
capture: "capture";
|
|
14
|
+
observe: "observe";
|
|
15
|
+
static: "static";
|
|
16
|
+
}>;
|
|
17
|
+
export type CaptureMode = z.infer<typeof CaptureMode>;
|
|
18
|
+
export declare const HarnessInfo: z.ZodObject<{
|
|
19
|
+
name: z.ZodEnum<{
|
|
20
|
+
"claude-code": "claude-code";
|
|
21
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
22
|
+
codex: "codex";
|
|
23
|
+
"cursor-cli": "cursor-cli";
|
|
24
|
+
"cursor-ide": "cursor-ide";
|
|
25
|
+
"gemini-cli": "gemini-cli";
|
|
26
|
+
opencode: "opencode";
|
|
27
|
+
}>;
|
|
28
|
+
version: z.ZodString;
|
|
29
|
+
model: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type HarnessInfo = z.infer<typeof HarnessInfo>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Activation } from "./activation.js";
|
|
2
|
+
export { ActivateDefaults, Backend, Budget, HarnessSettings, Network, POLICY_CHECKS, Policy, Price, RedactPattern, Reporter, UserConfig, type UserConfigInput, } from "./config.js";
|
|
3
|
+
export { ExitCode } from "./exit-code.js";
|
|
4
|
+
export { CaptureMode, HarnessId, HarnessInfo } from "./harness.js";
|
|
5
|
+
export { HarnessInspection, INSPECTION_SCHEMA_VERSION, InspectedProblem, Inspection, StaticTokens, } from "./inspection.js";
|
|
6
|
+
export { CONFIG_SCHEMA_URL, jsonSchemas } from "./json-schema.js";
|
|
7
|
+
export { DEFAULT_LIMITS, Limits, type LimitsInput, MEASURES, type Measure, mergeLimits, type ResolvedLimits, resolveLimits, SIZE_KINDS, type SizeKind, } from "./limits.js";
|
|
8
|
+
export { LINT_RULES, LintConfig, LintLevel, LintOverride, LintRule, } from "./lint.js";
|
|
9
|
+
export { CommandEntry, Component, LOADOUT_SCHEMA_VERSION, type LoadoutPieces, LoadoutSnapshot, McpServer, McpTool, Provenance, RuleEntry, SkillEntry, SystemSection, TokenSummary, } from "./loadout.js";
|
|
10
|
+
export { LOCKFILE_NAME, LOCKFILE_VERSION, LockedHarness, LockedPackage, Lockfile, type RegistryHarness, } from "./lockfile.js";
|
|
11
|
+
export { REPORT_SCHEMA_VERSION, Report, ReportCell, ReportCoverage, ReportDiff, ReportFailure, ReportHarness, ReportProblem, ReportSession, ReportStat, ReportTest, } from "./report.js";
|
|
12
|
+
export { Layer, SkipReason, TestStatus } from "./result.js";
|
|
13
|
+
export { SESSION_SCHEMA_VERSION, Session, Turn } from "./session.js";
|
|
14
|
+
export { type Bound, DeclarativeTest, DeclarativeTests, type ListExpect, type LoadoutExpect, } from "./tests.js";
|
|
15
|
+
export { Exchange, type Json, Protocol, type Step, type ToolCall, TRACE_SCHEMA_VERSION } from "./trace.js";
|