@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.
Files changed (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +160 -2
  3. package/bin/ctxray.js +2 -0
  4. package/index.js +1 -0
  5. package/package.json +41 -4
  6. package/types/app/globals.d.ts +3 -0
  7. package/types/app/public-api.d.ts +3 -0
  8. package/types/entities/harness/adapters.d.ts +12 -0
  9. package/types/entities/harness/capability.d.ts +2 -0
  10. package/types/entities/harness/capture/canary.d.ts +5 -0
  11. package/types/entities/harness/capture/copy.d.ts +3 -0
  12. package/types/entities/harness/capture/isolate.d.ts +16 -0
  13. package/types/entities/harness/capture/loadout.d.ts +19 -0
  14. package/types/entities/harness/capture/mcp.d.ts +15 -0
  15. package/types/entities/harness/capture/model.d.ts +44 -0
  16. package/types/entities/harness/capture/session.d.ts +54 -0
  17. package/types/entities/harness/capture/user-scope.d.ts +12 -0
  18. package/types/entities/harness/claude-code/transcript.d.ts +8 -0
  19. package/types/entities/harness/index.d.ts +22 -0
  20. package/types/entities/harness/inventory.d.ts +54 -0
  21. package/types/entities/harness/layers/dead-rules.d.ts +3 -0
  22. package/types/entities/harness/layers/files.d.ts +8 -0
  23. package/types/entities/harness/layers/lint-config.d.ts +9 -0
  24. package/types/entities/harness/layers/lint.d.ts +5 -0
  25. package/types/entities/harness/layers/policy.d.ts +16 -0
  26. package/types/entities/harness/layers/reach.d.ts +7 -0
  27. package/types/entities/harness/profile.d.ts +22 -0
  28. package/types/entities/harness/profiles.d.ts +3 -0
  29. package/types/entities/harness/project.d.ts +26 -0
  30. package/types/entities/harness/revision.d.ts +11 -0
  31. package/types/entities/harness/static-loadout.d.ts +42 -0
  32. package/types/entities/harness-cache/dirs.d.ts +7 -0
  33. package/types/entities/harness-cache/failure.d.ts +7 -0
  34. package/types/entities/harness-cache/index.d.ts +11 -0
  35. package/types/entities/harness-cache/install.d.ts +35 -0
  36. package/types/entities/harness-cache/inventory.d.ts +15 -0
  37. package/types/entities/harness-cache/npmrc.d.ts +9 -0
  38. package/types/entities/harness-cache/pack.d.ts +8 -0
  39. package/types/entities/harness-cache/progress-view.d.ts +5 -0
  40. package/types/entities/harness-cache/provisioning.d.ts +38 -0
  41. package/types/entities/harness-cache/recipes.d.ts +18 -0
  42. package/types/entities/harness-cache/registry.d.ts +20 -0
  43. package/types/entities/harness-cache/resolve.d.ts +4 -0
  44. package/types/entities/loadout/diff.d.ts +21 -0
  45. package/types/entities/loadout/index.d.ts +1 -0
  46. package/types/entities/proxy/ask.d.ts +9 -0
  47. package/types/entities/proxy/cassette.d.ts +20 -0
  48. package/types/entities/proxy/conversation.d.ts +10 -0
  49. package/types/entities/proxy/credentials.d.ts +4 -0
  50. package/types/entities/proxy/egress.d.ts +6 -0
  51. package/types/entities/proxy/exact/attribute.d.ts +19 -0
  52. package/types/entities/proxy/exact/cache.d.ts +7 -0
  53. package/types/entities/proxy/exact/counter.d.ts +17 -0
  54. package/types/entities/proxy/exact/endpoints.d.ts +14 -0
  55. package/types/entities/proxy/exact/index.d.ts +3 -0
  56. package/types/entities/proxy/forward.d.ts +16 -0
  57. package/types/entities/proxy/index.d.ts +15 -0
  58. package/types/entities/proxy/mcp-forward.d.ts +6 -0
  59. package/types/entities/proxy/model.d.ts +16 -0
  60. package/types/entities/proxy/prices.d.ts +10 -0
  61. package/types/entities/proxy/protocols/calls.d.ts +6 -0
  62. package/types/entities/proxy/protocols/index.d.ts +6 -0
  63. package/types/entities/proxy/protocols/kit.d.ts +7 -0
  64. package/types/entities/proxy/protocols/sse.d.ts +8 -0
  65. package/types/entities/proxy/relay.d.ts +13 -0
  66. package/types/entities/proxy/server.d.ts +17 -0
  67. package/types/entities/proxy/trace.d.ts +7 -0
  68. package/types/entities/proxy/usage.d.ts +10 -0
  69. package/types/entities/user-config/config.d.ts +32 -0
  70. package/types/entities/user-config/define.d.ts +2 -0
  71. package/types/entities/user-config/index.d.ts +8 -0
  72. package/types/entities/user-config/load.d.ts +15 -0
  73. package/types/entities/user-config/merge.d.ts +3 -0
  74. package/types/entities/user-config/network.d.ts +12 -0
  75. package/types/entities/user-config/option.d.ts +2 -0
  76. package/types/entities/user-config/problem.d.ts +13 -0
  77. package/types/entities/user-config/read.d.ts +2 -0
  78. package/types/features/test-run/api/baseline-command.d.ts +10 -0
  79. package/types/features/test-run/api/command.d.ts +15 -0
  80. package/types/features/test-run/baseline.action.d.ts +11 -0
  81. package/types/features/test-run/index.d.ts +11 -0
  82. package/types/features/test-run/lib/attempt.d.ts +31 -0
  83. package/types/features/test-run/lib/backend.d.ts +39 -0
  84. package/types/features/test-run/lib/base.d.ts +10 -0
  85. package/types/features/test-run/lib/binaries.d.ts +11 -0
  86. package/types/features/test-run/lib/capture.d.ts +37 -0
  87. package/types/features/test-run/lib/captured.d.ts +47 -0
  88. package/types/features/test-run/lib/cassettes.d.ts +15 -0
  89. package/types/features/test-run/lib/corpus.d.ts +5 -0
  90. package/types/features/test-run/lib/coverage.d.ts +15 -0
  91. package/types/features/test-run/lib/dsl.d.ts +31 -0
  92. package/types/features/test-run/lib/evals.d.ts +26 -0
  93. package/types/features/test-run/lib/expect.d.ts +43 -0
  94. package/types/features/test-run/lib/failure.d.ts +15 -0
  95. package/types/features/test-run/lib/loadout.d.ts +37 -0
  96. package/types/features/test-run/lib/model.d.ts +63 -0
  97. package/types/features/test-run/lib/rules.d.ts +32 -0
  98. package/types/features/test-run/lib/run.d.ts +44 -0
  99. package/types/features/test-run/lib/runs.d.ts +25 -0
  100. package/types/features/test-run/lib/scope.d.ts +39 -0
  101. package/types/features/test-run/lib/selection.d.ts +24 -0
  102. package/types/features/test-run/lib/session.d.ts +19 -0
  103. package/types/features/test-run/lib/snapshot.d.ts +46 -0
  104. package/types/features/test-run/lib/spend.d.ts +14 -0
  105. package/types/features/test-run/lib/workspace.d.ts +3 -0
  106. package/types/features/test-run/starting-loadout.action.d.ts +8 -0
  107. package/types/features/test-run/test-run.action.d.ts +51 -0
  108. package/types/shared/cli/command.d.ts +19 -0
  109. package/types/shared/cli/index.d.ts +2 -0
  110. package/types/shared/cli/parse.d.ts +14 -0
  111. package/types/shared/codeowners/codeowners.d.ts +5 -0
  112. package/types/shared/codeowners/index.d.ts +1 -0
  113. package/types/shared/contract/activation.d.ts +8 -0
  114. package/types/shared/contract/config.d.ts +373 -0
  115. package/types/shared/contract/exit-code.d.ts +10 -0
  116. package/types/shared/contract/harness.d.ts +31 -0
  117. package/types/shared/contract/index.d.ts +15 -0
  118. package/types/shared/contract/inspection.d.ts +327 -0
  119. package/types/shared/contract/json-schema.d.ts +1572 -0
  120. package/types/shared/contract/limits.d.ts +58 -0
  121. package/types/shared/contract/lint.d.ts +272 -0
  122. package/types/shared/contract/loadout.d.ts +195 -0
  123. package/types/shared/contract/lockfile.d.ts +48 -0
  124. package/types/shared/contract/report.d.ts +1635 -0
  125. package/types/shared/contract/result.d.ts +27 -0
  126. package/types/shared/contract/session.d.ts +230 -0
  127. package/types/shared/contract/tests.d.ts +625 -0
  128. package/types/shared/contract/trace.d.ts +42 -0
  129. package/types/shared/i18n/catalog-type.d.ts +4 -0
  130. package/types/shared/i18n/catalog.d.ts +7 -0
  131. package/types/shared/i18n/format.d.ts +7 -0
  132. package/types/shared/i18n/index.d.ts +5 -0
  133. package/types/shared/i18n/locales/en/index.d.ts +637 -0
  134. package/types/shared/i18n/locales/index.d.ts +3 -0
  135. package/types/shared/i18n/resolve-locale.d.ts +9 -0
  136. package/types/shared/i18n/translate.d.ts +5 -0
  137. package/types/shared/infra/env.d.ts +3 -0
  138. package/types/shared/infra/file-lock.d.ts +6 -0
  139. package/types/shared/infra/http.d.ts +7 -0
  140. package/types/shared/infra/index.d.ts +5 -0
  141. package/types/shared/infra/parallel.d.ts +2 -0
  142. package/types/shared/infra/platform.d.ts +9 -0
  143. package/types/shared/mcp-shim/index.d.ts +2 -0
  144. package/types/shared/mcp-shim/read.d.ts +18 -0
  145. package/types/shared/mcp-shim/shim.d.ts +15 -0
  146. package/types/shared/redact/index.d.ts +2 -0
  147. package/types/shared/redact/patterns.d.ts +14 -0
  148. package/types/shared/redact/redact.d.ts +6 -0
  149. package/types/shared/render/choose.d.ts +9 -0
  150. package/types/shared/render/index.d.ts +5 -0
  151. package/types/shared/render/layout.d.ts +7 -0
  152. package/types/shared/render/plain.d.ts +2 -0
  153. package/types/shared/render/renderer.d.ts +10 -0
  154. package/types/shared/render/view.d.ts +8 -0
  155. package/types/shared/stats/index.d.ts +1 -0
  156. package/types/shared/stats/wilson.d.ts +20 -0
  157. package/types/shared/tokens/calibration/calibration.d.ts +25 -0
  158. package/types/shared/tokens/calibration/classify.d.ts +3 -0
  159. package/types/shared/tokens/calibration/index.d.ts +9 -0
  160. package/types/shared/tokens/count.d.ts +10 -0
  161. package/types/shared/tokens/index.d.ts +2 -0
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const Layer: z.ZodEnum<{
3
+ L1: "L1";
4
+ L2: "L2";
5
+ L3: "L3";
6
+ L4: "L4";
7
+ L5: "L5";
8
+ L6: "L6";
9
+ L7: "L7";
10
+ }>;
11
+ export type Layer = z.infer<typeof Layer>;
12
+ export declare const TestStatus: z.ZodEnum<{
13
+ failed: "failed";
14
+ flaky: "flaky";
15
+ inconclusive: "inconclusive";
16
+ passed: "passed";
17
+ skipped: "skipped";
18
+ }>;
19
+ export type TestStatus = z.infer<typeof TestStatus>;
20
+ export declare const SkipReason: z.ZodEnum<{
21
+ backend: "backend";
22
+ budget: "budget";
23
+ filtered: "filtered";
24
+ unavailable: "unavailable";
25
+ unsupported: "unsupported";
26
+ }>;
27
+ export type SkipReason = z.infer<typeof SkipReason>;
@@ -0,0 +1,230 @@
1
+ import { z } from "zod";
2
+ export declare const SESSION_SCHEMA_VERSION = 1;
3
+ export declare const Turn: z.ZodObject<{
4
+ index: z.ZodNumber;
5
+ loadout: z.ZodObject<{
6
+ schemaVersion: z.ZodLiteral<1>;
7
+ harness: z.ZodObject<{
8
+ name: z.ZodEnum<{
9
+ "claude-code": "claude-code";
10
+ "claude-code-desktop": "claude-code-desktop";
11
+ codex: "codex";
12
+ "cursor-cli": "cursor-cli";
13
+ "cursor-ide": "cursor-ide";
14
+ "gemini-cli": "gemini-cli";
15
+ opencode: "opencode";
16
+ }>;
17
+ version: z.ZodString;
18
+ model: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ mode: z.ZodEnum<{
21
+ capture: "capture";
22
+ observe: "observe";
23
+ static: "static";
24
+ }>;
25
+ system: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ title: z.ZodOptional<z.ZodString>;
28
+ tokens: z.ZodNumber;
29
+ }, z.core.$strip>>;
30
+ rules: z.ZodArray<z.ZodObject<{
31
+ path: z.ZodString;
32
+ activation: z.ZodEnum<{
33
+ always: "always";
34
+ intent: "intent";
35
+ manual: "manual";
36
+ path: "path";
37
+ }>;
38
+ reason: z.ZodString;
39
+ tokens: z.ZodNumber;
40
+ }, z.core.$strip>>;
41
+ skills: z.ZodObject<{
42
+ listed: z.ZodArray<z.ZodObject<{
43
+ name: z.ZodString;
44
+ path: z.ZodString;
45
+ builtin: z.ZodOptional<z.ZodBoolean>;
46
+ own: z.ZodOptional<z.ZodBoolean>;
47
+ tokens: z.ZodNumber;
48
+ }, z.core.$strip>>;
49
+ loaded: z.ZodArray<z.ZodObject<{
50
+ name: z.ZodString;
51
+ path: z.ZodString;
52
+ builtin: z.ZodOptional<z.ZodBoolean>;
53
+ own: z.ZodOptional<z.ZodBoolean>;
54
+ tokens: z.ZodNumber;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>;
57
+ mcp: z.ZodObject<{
58
+ servers: z.ZodArray<z.ZodObject<{
59
+ name: z.ZodString;
60
+ version: z.ZodOptional<z.ZodString>;
61
+ own: z.ZodOptional<z.ZodBoolean>;
62
+ }, z.core.$strip>>;
63
+ tools: z.ZodArray<z.ZodObject<{
64
+ server: z.ZodString;
65
+ name: z.ZodString;
66
+ deferred: z.ZodOptional<z.ZodBoolean>;
67
+ own: z.ZodOptional<z.ZodBoolean>;
68
+ tokens: z.ZodNumber;
69
+ }, z.core.$strip>>;
70
+ }, z.core.$strip>;
71
+ commands: z.ZodArray<z.ZodObject<{
72
+ name: z.ZodString;
73
+ path: z.ZodOptional<z.ZodString>;
74
+ own: z.ZodOptional<z.ZodBoolean>;
75
+ }, z.core.$strip>>;
76
+ tokens: z.ZodObject<{
77
+ total: z.ZodNumber;
78
+ byComponent: z.ZodRecord<z.ZodEnum<{
79
+ commands: "commands";
80
+ mcp: "mcp";
81
+ rules: "rules";
82
+ skills: "skills";
83
+ system: "system";
84
+ tools: "tools";
85
+ }> & z.core.$partial, z.ZodNumber>;
86
+ byMcpServer: z.ZodRecord<z.ZodString, z.ZodNumber>;
87
+ exact: z.ZodBoolean;
88
+ method: z.ZodString;
89
+ framing: z.ZodOptional<z.ZodNumber>;
90
+ own: z.ZodOptional<z.ZodNumber>;
91
+ }, z.core.$strip>;
92
+ provenance: z.ZodRecord<z.ZodString, z.ZodObject<{
93
+ source: z.ZodString;
94
+ reason: z.ZodString;
95
+ evidence: z.ZodEnum<{
96
+ canary: "canary";
97
+ fingerprint: "fingerprint";
98
+ marker: "marker";
99
+ static: "static";
100
+ }>;
101
+ }, z.core.$strip>>;
102
+ duplicates: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ path: z.ZodString;
104
+ sameAs: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>>>;
106
+ }, z.core.$strip>;
107
+ }, z.core.$strip>;
108
+ export declare const Session: z.ZodObject<{
109
+ schemaVersion: z.ZodLiteral<1>;
110
+ id: z.ZodString;
111
+ harness: z.ZodObject<{
112
+ name: z.ZodEnum<{
113
+ "claude-code": "claude-code";
114
+ "claude-code-desktop": "claude-code-desktop";
115
+ codex: "codex";
116
+ "cursor-cli": "cursor-cli";
117
+ "cursor-ide": "cursor-ide";
118
+ "gemini-cli": "gemini-cli";
119
+ opencode: "opencode";
120
+ }>;
121
+ version: z.ZodString;
122
+ model: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>;
124
+ turns: z.ZodArray<z.ZodObject<{
125
+ index: z.ZodNumber;
126
+ loadout: z.ZodObject<{
127
+ schemaVersion: z.ZodLiteral<1>;
128
+ harness: z.ZodObject<{
129
+ name: z.ZodEnum<{
130
+ "claude-code": "claude-code";
131
+ "claude-code-desktop": "claude-code-desktop";
132
+ codex: "codex";
133
+ "cursor-cli": "cursor-cli";
134
+ "cursor-ide": "cursor-ide";
135
+ "gemini-cli": "gemini-cli";
136
+ opencode: "opencode";
137
+ }>;
138
+ version: z.ZodString;
139
+ model: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>;
141
+ mode: z.ZodEnum<{
142
+ capture: "capture";
143
+ observe: "observe";
144
+ static: "static";
145
+ }>;
146
+ system: z.ZodArray<z.ZodObject<{
147
+ id: z.ZodString;
148
+ title: z.ZodOptional<z.ZodString>;
149
+ tokens: z.ZodNumber;
150
+ }, z.core.$strip>>;
151
+ rules: z.ZodArray<z.ZodObject<{
152
+ path: z.ZodString;
153
+ activation: z.ZodEnum<{
154
+ always: "always";
155
+ intent: "intent";
156
+ manual: "manual";
157
+ path: "path";
158
+ }>;
159
+ reason: z.ZodString;
160
+ tokens: z.ZodNumber;
161
+ }, z.core.$strip>>;
162
+ skills: z.ZodObject<{
163
+ listed: z.ZodArray<z.ZodObject<{
164
+ name: z.ZodString;
165
+ path: z.ZodString;
166
+ builtin: z.ZodOptional<z.ZodBoolean>;
167
+ own: z.ZodOptional<z.ZodBoolean>;
168
+ tokens: z.ZodNumber;
169
+ }, z.core.$strip>>;
170
+ loaded: z.ZodArray<z.ZodObject<{
171
+ name: z.ZodString;
172
+ path: z.ZodString;
173
+ builtin: z.ZodOptional<z.ZodBoolean>;
174
+ own: z.ZodOptional<z.ZodBoolean>;
175
+ tokens: z.ZodNumber;
176
+ }, z.core.$strip>>;
177
+ }, z.core.$strip>;
178
+ mcp: z.ZodObject<{
179
+ servers: z.ZodArray<z.ZodObject<{
180
+ name: z.ZodString;
181
+ version: z.ZodOptional<z.ZodString>;
182
+ own: z.ZodOptional<z.ZodBoolean>;
183
+ }, z.core.$strip>>;
184
+ tools: z.ZodArray<z.ZodObject<{
185
+ server: z.ZodString;
186
+ name: z.ZodString;
187
+ deferred: z.ZodOptional<z.ZodBoolean>;
188
+ own: z.ZodOptional<z.ZodBoolean>;
189
+ tokens: z.ZodNumber;
190
+ }, z.core.$strip>>;
191
+ }, z.core.$strip>;
192
+ commands: z.ZodArray<z.ZodObject<{
193
+ name: z.ZodString;
194
+ path: z.ZodOptional<z.ZodString>;
195
+ own: z.ZodOptional<z.ZodBoolean>;
196
+ }, z.core.$strip>>;
197
+ tokens: z.ZodObject<{
198
+ total: z.ZodNumber;
199
+ byComponent: z.ZodRecord<z.ZodEnum<{
200
+ commands: "commands";
201
+ mcp: "mcp";
202
+ rules: "rules";
203
+ skills: "skills";
204
+ system: "system";
205
+ tools: "tools";
206
+ }> & z.core.$partial, z.ZodNumber>;
207
+ byMcpServer: z.ZodRecord<z.ZodString, z.ZodNumber>;
208
+ exact: z.ZodBoolean;
209
+ method: z.ZodString;
210
+ framing: z.ZodOptional<z.ZodNumber>;
211
+ own: z.ZodOptional<z.ZodNumber>;
212
+ }, z.core.$strip>;
213
+ provenance: z.ZodRecord<z.ZodString, z.ZodObject<{
214
+ source: z.ZodString;
215
+ reason: z.ZodString;
216
+ evidence: z.ZodEnum<{
217
+ canary: "canary";
218
+ fingerprint: "fingerprint";
219
+ marker: "marker";
220
+ static: "static";
221
+ }>;
222
+ }, z.core.$strip>>;
223
+ duplicates: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
+ path: z.ZodString;
225
+ sameAs: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strip>>>;
227
+ }, z.core.$strip>;
228
+ }, z.core.$strip>>;
229
+ }, z.core.$strip>;
230
+ export type Session = z.infer<typeof Session>;