@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,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SIZE_KINDS: readonly ["skill", "command", "instruction"];
|
|
3
|
+
export type SizeKind = (typeof SIZE_KINDS)[number];
|
|
4
|
+
export declare const MEASURES: readonly ["lines", "chars", "tokens"];
|
|
5
|
+
export type Measure = (typeof MEASURES)[number];
|
|
6
|
+
export declare const Limits: z.ZodObject<{
|
|
7
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
10
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
11
|
+
}, z.core.$strict>>;
|
|
12
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
14
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
15
|
+
}, z.core.$strict>>;
|
|
16
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
21
|
+
command: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
22
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
24
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
28
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
32
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
35
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
36
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
38
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
42
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
46
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export type LimitsInput = z.output<typeof Limits>;
|
|
51
|
+
export declare const mergeLimits: (base: LimitsInput | undefined, over: LimitsInput | undefined) => LimitsInput;
|
|
52
|
+
export type ResolvedThreshold = {
|
|
53
|
+
warning: number | undefined;
|
|
54
|
+
error: number | undefined;
|
|
55
|
+
};
|
|
56
|
+
export type ResolvedLimits = Record<SizeKind, Record<Measure, ResolvedThreshold>>;
|
|
57
|
+
export declare const resolveLimits: (limits: LimitsInput | undefined) => ResolvedLimits;
|
|
58
|
+
export declare const DEFAULT_LIMITS: ResolvedLimits;
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LINT_RULES: readonly ["frontmatter", "loose-frontmatter", "rule-field", "too-large", "import-missing", "import-depth", "shadowed-command", "no-description", "long-description", "bad-json", "bad-toml", "mcp-transport", "empty-file", "shadowed-file", "skill-field", "codex-budget", "bad-glob", "skill-name", "skill-folder-name", "duplicate-skill", "duplicate-text", "broken-link", "dead-rule", "size", "unread", "other-harness", "harness-differences"];
|
|
3
|
+
export declare const LintRule: z.ZodEnum<{
|
|
4
|
+
"bad-glob": "bad-glob";
|
|
5
|
+
"bad-json": "bad-json";
|
|
6
|
+
"bad-toml": "bad-toml";
|
|
7
|
+
"broken-link": "broken-link";
|
|
8
|
+
"codex-budget": "codex-budget";
|
|
9
|
+
"dead-rule": "dead-rule";
|
|
10
|
+
"duplicate-skill": "duplicate-skill";
|
|
11
|
+
"duplicate-text": "duplicate-text";
|
|
12
|
+
"empty-file": "empty-file";
|
|
13
|
+
frontmatter: "frontmatter";
|
|
14
|
+
"harness-differences": "harness-differences";
|
|
15
|
+
"import-depth": "import-depth";
|
|
16
|
+
"import-missing": "import-missing";
|
|
17
|
+
"long-description": "long-description";
|
|
18
|
+
"loose-frontmatter": "loose-frontmatter";
|
|
19
|
+
"mcp-transport": "mcp-transport";
|
|
20
|
+
"no-description": "no-description";
|
|
21
|
+
"other-harness": "other-harness";
|
|
22
|
+
"rule-field": "rule-field";
|
|
23
|
+
"shadowed-command": "shadowed-command";
|
|
24
|
+
"shadowed-file": "shadowed-file";
|
|
25
|
+
size: "size";
|
|
26
|
+
"skill-field": "skill-field";
|
|
27
|
+
"skill-folder-name": "skill-folder-name";
|
|
28
|
+
"skill-name": "skill-name";
|
|
29
|
+
"too-large": "too-large";
|
|
30
|
+
unread: "unread";
|
|
31
|
+
}>;
|
|
32
|
+
export type LintRule = z.infer<typeof LintRule>;
|
|
33
|
+
export declare const LintLevel: z.ZodEnum<{
|
|
34
|
+
error: "error";
|
|
35
|
+
off: "off";
|
|
36
|
+
warning: "warning";
|
|
37
|
+
}>;
|
|
38
|
+
export type LintLevel = z.infer<typeof LintLevel>;
|
|
39
|
+
export declare const LintOverride: z.ZodObject<{
|
|
40
|
+
include: z.ZodArray<z.ZodString>;
|
|
41
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
+
"claude-code": "claude-code";
|
|
43
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
44
|
+
codex: "codex";
|
|
45
|
+
"cursor-cli": "cursor-cli";
|
|
46
|
+
"cursor-ide": "cursor-ide";
|
|
47
|
+
"gemini-cli": "gemini-cli";
|
|
48
|
+
opencode: "opencode";
|
|
49
|
+
}>>>;
|
|
50
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
51
|
+
"bad-glob": "bad-glob";
|
|
52
|
+
"bad-json": "bad-json";
|
|
53
|
+
"bad-toml": "bad-toml";
|
|
54
|
+
"broken-link": "broken-link";
|
|
55
|
+
"codex-budget": "codex-budget";
|
|
56
|
+
"dead-rule": "dead-rule";
|
|
57
|
+
"duplicate-skill": "duplicate-skill";
|
|
58
|
+
"duplicate-text": "duplicate-text";
|
|
59
|
+
"empty-file": "empty-file";
|
|
60
|
+
frontmatter: "frontmatter";
|
|
61
|
+
"harness-differences": "harness-differences";
|
|
62
|
+
"import-depth": "import-depth";
|
|
63
|
+
"import-missing": "import-missing";
|
|
64
|
+
"long-description": "long-description";
|
|
65
|
+
"loose-frontmatter": "loose-frontmatter";
|
|
66
|
+
"mcp-transport": "mcp-transport";
|
|
67
|
+
"no-description": "no-description";
|
|
68
|
+
"other-harness": "other-harness";
|
|
69
|
+
"rule-field": "rule-field";
|
|
70
|
+
"shadowed-command": "shadowed-command";
|
|
71
|
+
"shadowed-file": "shadowed-file";
|
|
72
|
+
size: "size";
|
|
73
|
+
"skill-field": "skill-field";
|
|
74
|
+
"skill-folder-name": "skill-folder-name";
|
|
75
|
+
"skill-name": "skill-name";
|
|
76
|
+
"too-large": "too-large";
|
|
77
|
+
unread: "unread";
|
|
78
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodEnum<{
|
|
79
|
+
error: "error";
|
|
80
|
+
off: "off";
|
|
81
|
+
warning: "warning";
|
|
82
|
+
}>, z.ZodObject<{
|
|
83
|
+
level: z.ZodEnum<{
|
|
84
|
+
error: "error";
|
|
85
|
+
off: "off";
|
|
86
|
+
warning: "warning";
|
|
87
|
+
}>;
|
|
88
|
+
}, z.core.$strict>]>>>;
|
|
89
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
91
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
93
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
97
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
101
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
104
|
+
command: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
105
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
107
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
111
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
115
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
118
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
119
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
121
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
122
|
+
}, z.core.$strict>>;
|
|
123
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
125
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
129
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
132
|
+
}, z.core.$strict>>;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
export declare const LintConfig: z.ZodObject<{
|
|
135
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
136
|
+
"bad-glob": "bad-glob";
|
|
137
|
+
"bad-json": "bad-json";
|
|
138
|
+
"bad-toml": "bad-toml";
|
|
139
|
+
"broken-link": "broken-link";
|
|
140
|
+
"codex-budget": "codex-budget";
|
|
141
|
+
"dead-rule": "dead-rule";
|
|
142
|
+
"duplicate-skill": "duplicate-skill";
|
|
143
|
+
"duplicate-text": "duplicate-text";
|
|
144
|
+
"empty-file": "empty-file";
|
|
145
|
+
frontmatter: "frontmatter";
|
|
146
|
+
"harness-differences": "harness-differences";
|
|
147
|
+
"import-depth": "import-depth";
|
|
148
|
+
"import-missing": "import-missing";
|
|
149
|
+
"long-description": "long-description";
|
|
150
|
+
"loose-frontmatter": "loose-frontmatter";
|
|
151
|
+
"mcp-transport": "mcp-transport";
|
|
152
|
+
"no-description": "no-description";
|
|
153
|
+
"other-harness": "other-harness";
|
|
154
|
+
"rule-field": "rule-field";
|
|
155
|
+
"shadowed-command": "shadowed-command";
|
|
156
|
+
"shadowed-file": "shadowed-file";
|
|
157
|
+
size: "size";
|
|
158
|
+
"skill-field": "skill-field";
|
|
159
|
+
"skill-folder-name": "skill-folder-name";
|
|
160
|
+
"skill-name": "skill-name";
|
|
161
|
+
"too-large": "too-large";
|
|
162
|
+
unread: "unread";
|
|
163
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodEnum<{
|
|
164
|
+
error: "error";
|
|
165
|
+
off: "off";
|
|
166
|
+
warning: "warning";
|
|
167
|
+
}>, z.ZodObject<{
|
|
168
|
+
level: z.ZodEnum<{
|
|
169
|
+
error: "error";
|
|
170
|
+
off: "off";
|
|
171
|
+
warning: "warning";
|
|
172
|
+
}>;
|
|
173
|
+
}, z.core.$strict>]>>>;
|
|
174
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
|
+
errorOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
177
|
+
include: z.ZodArray<z.ZodString>;
|
|
178
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
179
|
+
"claude-code": "claude-code";
|
|
180
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
181
|
+
codex: "codex";
|
|
182
|
+
"cursor-cli": "cursor-cli";
|
|
183
|
+
"cursor-ide": "cursor-ide";
|
|
184
|
+
"gemini-cli": "gemini-cli";
|
|
185
|
+
opencode: "opencode";
|
|
186
|
+
}>>>;
|
|
187
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
188
|
+
"bad-glob": "bad-glob";
|
|
189
|
+
"bad-json": "bad-json";
|
|
190
|
+
"bad-toml": "bad-toml";
|
|
191
|
+
"broken-link": "broken-link";
|
|
192
|
+
"codex-budget": "codex-budget";
|
|
193
|
+
"dead-rule": "dead-rule";
|
|
194
|
+
"duplicate-skill": "duplicate-skill";
|
|
195
|
+
"duplicate-text": "duplicate-text";
|
|
196
|
+
"empty-file": "empty-file";
|
|
197
|
+
frontmatter: "frontmatter";
|
|
198
|
+
"harness-differences": "harness-differences";
|
|
199
|
+
"import-depth": "import-depth";
|
|
200
|
+
"import-missing": "import-missing";
|
|
201
|
+
"long-description": "long-description";
|
|
202
|
+
"loose-frontmatter": "loose-frontmatter";
|
|
203
|
+
"mcp-transport": "mcp-transport";
|
|
204
|
+
"no-description": "no-description";
|
|
205
|
+
"other-harness": "other-harness";
|
|
206
|
+
"rule-field": "rule-field";
|
|
207
|
+
"shadowed-command": "shadowed-command";
|
|
208
|
+
"shadowed-file": "shadowed-file";
|
|
209
|
+
size: "size";
|
|
210
|
+
"skill-field": "skill-field";
|
|
211
|
+
"skill-folder-name": "skill-folder-name";
|
|
212
|
+
"skill-name": "skill-name";
|
|
213
|
+
"too-large": "too-large";
|
|
214
|
+
unread: "unread";
|
|
215
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodEnum<{
|
|
216
|
+
error: "error";
|
|
217
|
+
off: "off";
|
|
218
|
+
warning: "warning";
|
|
219
|
+
}>, z.ZodObject<{
|
|
220
|
+
level: z.ZodEnum<{
|
|
221
|
+
error: "error";
|
|
222
|
+
off: "off";
|
|
223
|
+
warning: "warning";
|
|
224
|
+
}>;
|
|
225
|
+
}, z.core.$strict>]>>>;
|
|
226
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
228
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
230
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
231
|
+
}, z.core.$strict>>;
|
|
232
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
234
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
238
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
239
|
+
}, z.core.$strict>>;
|
|
240
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
241
|
+
command: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
242
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
244
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
245
|
+
}, z.core.$strict>>;
|
|
246
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
248
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
249
|
+
}, z.core.$strict>>;
|
|
250
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
252
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
255
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
256
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
258
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
259
|
+
}, z.core.$strict>>;
|
|
260
|
+
chars: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
262
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
263
|
+
}, z.core.$strict>>;
|
|
264
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
warning: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
266
|
+
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
268
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
}, z.core.$strict>>>;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
export type LintConfig = z.output<typeof LintConfig>;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LOADOUT_SCHEMA_VERSION = 1;
|
|
3
|
+
export declare const Component: z.ZodEnum<{
|
|
4
|
+
commands: "commands";
|
|
5
|
+
mcp: "mcp";
|
|
6
|
+
rules: "rules";
|
|
7
|
+
skills: "skills";
|
|
8
|
+
system: "system";
|
|
9
|
+
tools: "tools";
|
|
10
|
+
}>;
|
|
11
|
+
export type Component = z.infer<typeof Component>;
|
|
12
|
+
export declare const SystemSection: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
title: z.ZodOptional<z.ZodString>;
|
|
15
|
+
tokens: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type SystemSection = z.infer<typeof SystemSection>;
|
|
18
|
+
export declare const RuleEntry: z.ZodObject<{
|
|
19
|
+
path: z.ZodString;
|
|
20
|
+
activation: z.ZodEnum<{
|
|
21
|
+
always: "always";
|
|
22
|
+
intent: "intent";
|
|
23
|
+
manual: "manual";
|
|
24
|
+
path: "path";
|
|
25
|
+
}>;
|
|
26
|
+
reason: z.ZodString;
|
|
27
|
+
tokens: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type RuleEntry = z.infer<typeof RuleEntry>;
|
|
30
|
+
export declare const SkillEntry: z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
path: z.ZodString;
|
|
33
|
+
builtin: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
tokens: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type SkillEntry = z.infer<typeof SkillEntry>;
|
|
38
|
+
export declare const McpServer: z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
version: z.ZodOptional<z.ZodString>;
|
|
41
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type McpServer = z.infer<typeof McpServer>;
|
|
44
|
+
export declare const McpTool: z.ZodObject<{
|
|
45
|
+
server: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
tokens: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type McpTool = z.infer<typeof McpTool>;
|
|
52
|
+
export declare const CommandEntry: z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
path: z.ZodOptional<z.ZodString>;
|
|
55
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type CommandEntry = z.infer<typeof CommandEntry>;
|
|
58
|
+
export declare const TokenSummary: z.ZodObject<{
|
|
59
|
+
total: z.ZodNumber;
|
|
60
|
+
byComponent: z.ZodRecord<z.ZodEnum<{
|
|
61
|
+
commands: "commands";
|
|
62
|
+
mcp: "mcp";
|
|
63
|
+
rules: "rules";
|
|
64
|
+
skills: "skills";
|
|
65
|
+
system: "system";
|
|
66
|
+
tools: "tools";
|
|
67
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
68
|
+
byMcpServer: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
69
|
+
exact: z.ZodBoolean;
|
|
70
|
+
method: z.ZodString;
|
|
71
|
+
framing: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
own: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const Provenance: z.ZodObject<{
|
|
75
|
+
source: z.ZodString;
|
|
76
|
+
reason: z.ZodString;
|
|
77
|
+
evidence: z.ZodEnum<{
|
|
78
|
+
canary: "canary";
|
|
79
|
+
fingerprint: "fingerprint";
|
|
80
|
+
marker: "marker";
|
|
81
|
+
static: "static";
|
|
82
|
+
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type Provenance = z.infer<typeof Provenance>;
|
|
85
|
+
export declare const LoadoutSnapshot: z.ZodObject<{
|
|
86
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
87
|
+
harness: z.ZodObject<{
|
|
88
|
+
name: z.ZodEnum<{
|
|
89
|
+
"claude-code": "claude-code";
|
|
90
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
91
|
+
codex: "codex";
|
|
92
|
+
"cursor-cli": "cursor-cli";
|
|
93
|
+
"cursor-ide": "cursor-ide";
|
|
94
|
+
"gemini-cli": "gemini-cli";
|
|
95
|
+
opencode: "opencode";
|
|
96
|
+
}>;
|
|
97
|
+
version: z.ZodString;
|
|
98
|
+
model: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
mode: z.ZodEnum<{
|
|
101
|
+
capture: "capture";
|
|
102
|
+
observe: "observe";
|
|
103
|
+
static: "static";
|
|
104
|
+
}>;
|
|
105
|
+
system: z.ZodArray<z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
title: z.ZodOptional<z.ZodString>;
|
|
108
|
+
tokens: z.ZodNumber;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
111
|
+
path: z.ZodString;
|
|
112
|
+
activation: z.ZodEnum<{
|
|
113
|
+
always: "always";
|
|
114
|
+
intent: "intent";
|
|
115
|
+
manual: "manual";
|
|
116
|
+
path: "path";
|
|
117
|
+
}>;
|
|
118
|
+
reason: z.ZodString;
|
|
119
|
+
tokens: z.ZodNumber;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
skills: z.ZodObject<{
|
|
122
|
+
listed: z.ZodArray<z.ZodObject<{
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
path: z.ZodString;
|
|
125
|
+
builtin: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
tokens: z.ZodNumber;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
loaded: z.ZodArray<z.ZodObject<{
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
path: z.ZodString;
|
|
132
|
+
builtin: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
tokens: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
mcp: z.ZodObject<{
|
|
138
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
version: z.ZodOptional<z.ZodString>;
|
|
141
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
144
|
+
server: z.ZodString;
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
tokens: z.ZodNumber;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
path: z.ZodOptional<z.ZodString>;
|
|
154
|
+
own: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
156
|
+
tokens: z.ZodObject<{
|
|
157
|
+
total: z.ZodNumber;
|
|
158
|
+
byComponent: z.ZodRecord<z.ZodEnum<{
|
|
159
|
+
commands: "commands";
|
|
160
|
+
mcp: "mcp";
|
|
161
|
+
rules: "rules";
|
|
162
|
+
skills: "skills";
|
|
163
|
+
system: "system";
|
|
164
|
+
tools: "tools";
|
|
165
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
166
|
+
byMcpServer: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
167
|
+
exact: z.ZodBoolean;
|
|
168
|
+
method: z.ZodString;
|
|
169
|
+
framing: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
own: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
provenance: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
173
|
+
source: z.ZodString;
|
|
174
|
+
reason: z.ZodString;
|
|
175
|
+
evidence: z.ZodEnum<{
|
|
176
|
+
canary: "canary";
|
|
177
|
+
fingerprint: "fingerprint";
|
|
178
|
+
marker: "marker";
|
|
179
|
+
static: "static";
|
|
180
|
+
}>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
duplicates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
|
+
path: z.ZodString;
|
|
184
|
+
sameAs: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>>>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type LoadoutSnapshot = z.infer<typeof LoadoutSnapshot>;
|
|
188
|
+
export type LoadoutPieces = {
|
|
189
|
+
total: number;
|
|
190
|
+
byComponent: Partial<Record<Component, number>>;
|
|
191
|
+
items: Record<Component, {
|
|
192
|
+
id: string;
|
|
193
|
+
tokens: number;
|
|
194
|
+
}[]>;
|
|
195
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LOCKFILE_VERSION = 1;
|
|
3
|
+
export declare const LOCKFILE_NAME = "ctxray.lock";
|
|
4
|
+
export declare const LockedPackage: z.ZodObject<{
|
|
5
|
+
package: z.ZodString;
|
|
6
|
+
integrity: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export type LockedPackage = z.output<typeof LockedPackage>;
|
|
9
|
+
export declare const LockedHarness: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
source: z.ZodLiteral<"registry">;
|
|
11
|
+
range: z.ZodString;
|
|
12
|
+
version: z.ZodString;
|
|
13
|
+
platforms: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
|
+
package: z.ZodString;
|
|
15
|
+
integrity: z.ZodString;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
source: z.ZodLiteral<"system">;
|
|
19
|
+
version: z.ZodString;
|
|
20
|
+
}, z.core.$strict>], "source">;
|
|
21
|
+
export type LockedHarness = z.output<typeof LockedHarness>;
|
|
22
|
+
export type RegistryHarness = Extract<LockedHarness, {
|
|
23
|
+
source: "registry";
|
|
24
|
+
}>;
|
|
25
|
+
export declare const Lockfile: z.ZodObject<{
|
|
26
|
+
lockfileVersion: z.ZodLiteral<1>;
|
|
27
|
+
harnesses: z.ZodRecord<z.ZodEnum<{
|
|
28
|
+
"claude-code": "claude-code";
|
|
29
|
+
"claude-code-desktop": "claude-code-desktop";
|
|
30
|
+
codex: "codex";
|
|
31
|
+
"cursor-cli": "cursor-cli";
|
|
32
|
+
"cursor-ide": "cursor-ide";
|
|
33
|
+
"gemini-cli": "gemini-cli";
|
|
34
|
+
opencode: "opencode";
|
|
35
|
+
}> & z.core.$partial, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
source: z.ZodLiteral<"registry">;
|
|
37
|
+
range: z.ZodString;
|
|
38
|
+
version: z.ZodString;
|
|
39
|
+
platforms: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
40
|
+
package: z.ZodString;
|
|
41
|
+
integrity: z.ZodString;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
+
source: z.ZodLiteral<"system">;
|
|
45
|
+
version: z.ZodString;
|
|
46
|
+
}, z.core.$strict>], "source">>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export type Lockfile = z.output<typeof Lockfile>;
|