@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,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";
|