@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,7 @@
1
+ export type Plural = Partial<Record<Intl.LDMLPluralRule, string>> & {
2
+ other: string;
3
+ };
4
+ export type Message = string | Plural;
5
+ export type CatalogShape<Source extends Record<string, Message>> = {
6
+ readonly [Key in keyof Source]: Source[Key] extends string ? string : Plural;
7
+ };
@@ -0,0 +1,7 @@
1
+ export type Formatters = {
2
+ number: (value: number) => string;
3
+ compact: (value: number) => string;
4
+ percent: (fraction: number, digits?: number) => string;
5
+ date: (value: Date) => string;
6
+ };
7
+ export declare const createFormatters: (lang: string) => Formatters;
@@ -0,0 +1,5 @@
1
+ export type { Catalog, MessageKey } from "./catalog-type.js";
2
+ export { createFormatters, type Formatters } from "./format.js";
3
+ export { CATALOGS, DEFAULT_LANG } from "./locales/index.js";
4
+ export { type LocaleSources, languageOf, resolveLocale } from "./resolve-locale.js";
5
+ export { createTranslator, type OnMissing, type Params, type Translate } from "./translate.js";