@agentskit/harness 0.6.0 → 0.8.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/CHANGELOG.md +11 -0
- package/capabilities/public-surface.json +106 -77
- package/dist/cli.js +789 -163
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +241 -75
- package/dist/index.js +795 -169
- package/dist/index.js.map +1 -1
- package/docs/LOOP.md +33 -0
- package/loop.config.example.yaml +10 -0
- package/package.json +1 -1
- package/release/manifest.json +1 -1
- package/release/notes.md +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -772,6 +772,73 @@ declare const parseJsonEnvelope: (stdout: string) => {
|
|
|
772
772
|
readonly error?: string;
|
|
773
773
|
} | null;
|
|
774
774
|
|
|
775
|
+
type UsageWindowKind = 'session' | 'weekly' | 'monthly' | string;
|
|
776
|
+
interface UsageWindow {
|
|
777
|
+
readonly kind: UsageWindowKind;
|
|
778
|
+
readonly usedPercent: number;
|
|
779
|
+
readonly windowMinutes: number | null;
|
|
780
|
+
readonly resetsAt: string | null;
|
|
781
|
+
}
|
|
782
|
+
interface ProviderUsage {
|
|
783
|
+
/** `ok` when Orca reported live usage, `unavailable` when Orca could not, `unknown` when Orca did not mention the provider. */
|
|
784
|
+
readonly status: 'ok' | 'unavailable' | 'unknown';
|
|
785
|
+
readonly error: string | null;
|
|
786
|
+
readonly windows: readonly UsageWindow[];
|
|
787
|
+
readonly exhausted: boolean;
|
|
788
|
+
/** Earliest reset among exhausted windows, ISO-8601. */
|
|
789
|
+
readonly resetsAt: string | null;
|
|
790
|
+
readonly hasAuth: boolean | null;
|
|
791
|
+
}
|
|
792
|
+
type ProviderAuthStatus = 'ok' | 'unknown' | 'missing';
|
|
793
|
+
interface ProviderAvailability {
|
|
794
|
+
readonly id: string;
|
|
795
|
+
readonly binary: string | null;
|
|
796
|
+
readonly hookState: 'installed' | 'not_installed' | 'unknown';
|
|
797
|
+
readonly auth: ProviderAuthStatus;
|
|
798
|
+
readonly usage: ProviderUsage;
|
|
799
|
+
readonly probe: 'passed' | 'failed' | 'skipped';
|
|
800
|
+
readonly coolingDownUntil: string | null;
|
|
801
|
+
readonly available: boolean;
|
|
802
|
+
readonly reasons: readonly string[];
|
|
803
|
+
}
|
|
804
|
+
interface ProviderSpec {
|
|
805
|
+
readonly id: string;
|
|
806
|
+
readonly bin: string;
|
|
807
|
+
readonly auth: 'subscription' | 'api-key' | 'none';
|
|
808
|
+
readonly envKeys: readonly string[];
|
|
809
|
+
readonly orcaUsageKey: string;
|
|
810
|
+
readonly probe?: readonly string[];
|
|
811
|
+
}
|
|
812
|
+
interface DetectProvidersInput {
|
|
813
|
+
readonly providers: readonly ProviderSpec[];
|
|
814
|
+
readonly accountList: unknown;
|
|
815
|
+
readonly agentHooks: Readonly<Record<string, 'installed' | 'not_installed' | 'unknown'>>;
|
|
816
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
817
|
+
readonly platform?: NodeJS.Platform;
|
|
818
|
+
readonly exhaustedPercent?: number;
|
|
819
|
+
readonly cooldowns?: Readonly<Record<string, string>>;
|
|
820
|
+
readonly now?: () => Date;
|
|
821
|
+
readonly runner?: CommandRunner;
|
|
822
|
+
readonly probeTimeoutMs?: number;
|
|
823
|
+
}
|
|
824
|
+
declare const parseUsageWindows: (entry: unknown) => readonly UsageWindow[];
|
|
825
|
+
/** Read one provider's usage out of `orca account list --json` → `result`. */
|
|
826
|
+
declare const parseProviderUsage: (accountList: unknown, usageKey: string, exhaustedPercent?: number) => ProviderUsage;
|
|
827
|
+
declare const authStatusFor: (spec: ProviderSpec, usage: ProviderUsage, env: NodeJS.ProcessEnv) => ProviderAuthStatus;
|
|
828
|
+
/** Detect which coding-agent CLIs can take work right now. Pure over its inputs except the optional probe. */
|
|
829
|
+
declare const detectProviders: (input: DetectProvidersInput) => Promise<readonly ProviderAvailability[]>;
|
|
830
|
+
/** Exponential cooldown: initial × 2^attempts, capped. Returns the ISO instant the provider may be retried. */
|
|
831
|
+
declare const cooldownUntil: (attempt: number, initialMin: number, maxMin: number, from: Date, resetsAt?: string | null) => string;
|
|
832
|
+
type UsageMetric = 'max' | 'session' | 'weekly' | 'monthly';
|
|
833
|
+
/** Remaining capacity 0–100 from usage windows, or null when unknown. `max` = most constrained window. */
|
|
834
|
+
declare const remainingUsagePercent: (usage: ProviderUsage, metric?: UsageMetric) => number | null;
|
|
835
|
+
/** Sort key for usage-aware ranking: higher remaining first; known before unknown when preferKnownUsage. */
|
|
836
|
+
declare const usageRankTuple: (usage: ProviderUsage, metric: UsageMetric, preferKnownUsage: boolean) => readonly [number, number, number];
|
|
837
|
+
/** Warn when Orca shows an integration that has no `models.providers` entry. */
|
|
838
|
+
declare const undeclaredOrcaProviders: (accountList: unknown, declared: Readonly<Record<string, {
|
|
839
|
+
readonly orcaUsageKey?: string;
|
|
840
|
+
}>>) => readonly string[];
|
|
841
|
+
|
|
775
842
|
interface RagQueryResult {
|
|
776
843
|
readonly references: readonly ContextReference[];
|
|
777
844
|
readonly sourceHash: string;
|
|
@@ -2423,64 +2490,6 @@ declare const orcaAutomationRemove: (runner: CommandRunner, id: string, options?
|
|
|
2423
2490
|
declare const orcaAutomationRun: (runner: CommandRunner, id: string, options?: OrcaCliOptions) => Promise<unknown>;
|
|
2424
2491
|
declare const orcaAutomationRuns: (runner: CommandRunner, id: string, options?: OrcaCliOptions) => Promise<unknown>;
|
|
2425
2492
|
|
|
2426
|
-
type UsageWindowKind = 'session' | 'weekly' | 'monthly' | string;
|
|
2427
|
-
interface UsageWindow {
|
|
2428
|
-
readonly kind: UsageWindowKind;
|
|
2429
|
-
readonly usedPercent: number;
|
|
2430
|
-
readonly windowMinutes: number | null;
|
|
2431
|
-
readonly resetsAt: string | null;
|
|
2432
|
-
}
|
|
2433
|
-
interface ProviderUsage {
|
|
2434
|
-
/** `ok` when Orca reported live usage, `unavailable` when Orca could not, `unknown` when Orca did not mention the provider. */
|
|
2435
|
-
readonly status: 'ok' | 'unavailable' | 'unknown';
|
|
2436
|
-
readonly error: string | null;
|
|
2437
|
-
readonly windows: readonly UsageWindow[];
|
|
2438
|
-
readonly exhausted: boolean;
|
|
2439
|
-
/** Earliest reset among exhausted windows, ISO-8601. */
|
|
2440
|
-
readonly resetsAt: string | null;
|
|
2441
|
-
readonly hasAuth: boolean | null;
|
|
2442
|
-
}
|
|
2443
|
-
type ProviderAuthStatus = 'ok' | 'unknown' | 'missing';
|
|
2444
|
-
interface ProviderAvailability {
|
|
2445
|
-
readonly id: string;
|
|
2446
|
-
readonly binary: string | null;
|
|
2447
|
-
readonly hookState: 'installed' | 'not_installed' | 'unknown';
|
|
2448
|
-
readonly auth: ProviderAuthStatus;
|
|
2449
|
-
readonly usage: ProviderUsage;
|
|
2450
|
-
readonly probe: 'passed' | 'failed' | 'skipped';
|
|
2451
|
-
readonly coolingDownUntil: string | null;
|
|
2452
|
-
readonly available: boolean;
|
|
2453
|
-
readonly reasons: readonly string[];
|
|
2454
|
-
}
|
|
2455
|
-
interface ProviderSpec {
|
|
2456
|
-
readonly id: string;
|
|
2457
|
-
readonly bin: string;
|
|
2458
|
-
readonly auth: 'subscription' | 'api-key' | 'none';
|
|
2459
|
-
readonly envKeys: readonly string[];
|
|
2460
|
-
readonly orcaUsageKey: string;
|
|
2461
|
-
readonly probe?: readonly string[];
|
|
2462
|
-
}
|
|
2463
|
-
interface DetectProvidersInput {
|
|
2464
|
-
readonly providers: readonly ProviderSpec[];
|
|
2465
|
-
readonly accountList: unknown;
|
|
2466
|
-
readonly agentHooks: Readonly<Record<string, 'installed' | 'not_installed' | 'unknown'>>;
|
|
2467
|
-
readonly env?: NodeJS.ProcessEnv;
|
|
2468
|
-
readonly platform?: NodeJS.Platform;
|
|
2469
|
-
readonly exhaustedPercent?: number;
|
|
2470
|
-
readonly cooldowns?: Readonly<Record<string, string>>;
|
|
2471
|
-
readonly now?: () => Date;
|
|
2472
|
-
readonly runner?: CommandRunner;
|
|
2473
|
-
readonly probeTimeoutMs?: number;
|
|
2474
|
-
}
|
|
2475
|
-
declare const parseUsageWindows: (entry: unknown) => readonly UsageWindow[];
|
|
2476
|
-
/** Read one provider's usage out of `orca account list --json` → `result`. */
|
|
2477
|
-
declare const parseProviderUsage: (accountList: unknown, usageKey: string, exhaustedPercent?: number) => ProviderUsage;
|
|
2478
|
-
declare const authStatusFor: (spec: ProviderSpec, usage: ProviderUsage, env: NodeJS.ProcessEnv) => ProviderAuthStatus;
|
|
2479
|
-
/** Detect which coding-agent CLIs can take work right now. Pure over its inputs except the optional probe. */
|
|
2480
|
-
declare const detectProviders: (input: DetectProvidersInput) => Promise<readonly ProviderAvailability[]>;
|
|
2481
|
-
/** Exponential cooldown: initial × 2^attempts, capped. Returns the ISO instant the provider may be retried. */
|
|
2482
|
-
declare const cooldownUntil: (attempt: number, initialMin: number, maxMin: number, from: Date, resetsAt?: string | null) => string;
|
|
2483
|
-
|
|
2484
2493
|
interface LoopIssue {
|
|
2485
2494
|
readonly id: string;
|
|
2486
2495
|
readonly identifier: string;
|
|
@@ -2641,6 +2650,77 @@ declare const LoopConfigSchema: z.ZodObject<{
|
|
|
2641
2650
|
reviewer: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
2642
2651
|
builder: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
2643
2652
|
watcher: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
2653
|
+
routing: z.ZodPrefault<z.ZodObject<{
|
|
2654
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
2655
|
+
tiers: "tiers";
|
|
2656
|
+
hybrid: "hybrid";
|
|
2657
|
+
dynamic: "dynamic";
|
|
2658
|
+
catalog: "catalog";
|
|
2659
|
+
}>>;
|
|
2660
|
+
usageMetric: z.ZodDefault<z.ZodEnum<{
|
|
2661
|
+
session: "session";
|
|
2662
|
+
weekly: "weekly";
|
|
2663
|
+
monthly: "monthly";
|
|
2664
|
+
max: "max";
|
|
2665
|
+
}>>;
|
|
2666
|
+
preferKnownUsage: z.ZodDefault<z.ZodBoolean>;
|
|
2667
|
+
excludeProviders: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2668
|
+
includeProviders: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2669
|
+
pin: z.ZodPrefault<z.ZodObject<{
|
|
2670
|
+
orchestrator: z.ZodOptional<z.ZodString>;
|
|
2671
|
+
reviewer: z.ZodOptional<z.ZodString>;
|
|
2672
|
+
builder: z.ZodOptional<z.ZodString>;
|
|
2673
|
+
watcher: z.ZodOptional<z.ZodString>;
|
|
2674
|
+
}, z.core.$strip>>;
|
|
2675
|
+
pinStrict: z.ZodDefault<z.ZodBoolean>;
|
|
2676
|
+
}, z.core.$strip>>;
|
|
2677
|
+
roles: z.ZodPrefault<z.ZodObject<{
|
|
2678
|
+
orchestrator: z.ZodPrefault<z.ZodObject<{
|
|
2679
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2680
|
+
frontier: "frontier";
|
|
2681
|
+
balanced: "balanced";
|
|
2682
|
+
fast: "fast";
|
|
2683
|
+
}>>;
|
|
2684
|
+
preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2685
|
+
}, z.core.$strip>>;
|
|
2686
|
+
reviewer: z.ZodPrefault<z.ZodObject<{
|
|
2687
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2688
|
+
frontier: "frontier";
|
|
2689
|
+
balanced: "balanced";
|
|
2690
|
+
fast: "fast";
|
|
2691
|
+
}>>;
|
|
2692
|
+
preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2693
|
+
}, z.core.$strip>>;
|
|
2694
|
+
builder: z.ZodPrefault<z.ZodObject<{
|
|
2695
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2696
|
+
frontier: "frontier";
|
|
2697
|
+
balanced: "balanced";
|
|
2698
|
+
fast: "fast";
|
|
2699
|
+
}>>;
|
|
2700
|
+
preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2701
|
+
}, z.core.$strip>>;
|
|
2702
|
+
watcher: z.ZodPrefault<z.ZodObject<{
|
|
2703
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2704
|
+
frontier: "frontier";
|
|
2705
|
+
balanced: "balanced";
|
|
2706
|
+
fast: "fast";
|
|
2707
|
+
}>>;
|
|
2708
|
+
preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2709
|
+
}, z.core.$strip>>;
|
|
2710
|
+
}, z.core.$strip>>;
|
|
2711
|
+
catalog: z.ZodPrefault<z.ZodObject<{
|
|
2712
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2713
|
+
cli: "cli";
|
|
2714
|
+
"artificial-analysis": "artificial-analysis";
|
|
2715
|
+
builtin: "builtin";
|
|
2716
|
+
}>>>;
|
|
2717
|
+
artificialAnalysis: z.ZodPrefault<z.ZodObject<{
|
|
2718
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2719
|
+
apiKeyEnv: z.ZodDefault<z.ZodString>;
|
|
2720
|
+
cacheHours: z.ZodDefault<z.ZodNumber>;
|
|
2721
|
+
endpoint: z.ZodDefault<z.ZodString>;
|
|
2722
|
+
}, z.core.$strip>>;
|
|
2723
|
+
}, z.core.$strip>>;
|
|
2644
2724
|
cooldown: z.ZodPrefault<z.ZodObject<{
|
|
2645
2725
|
initialMin: z.ZodDefault<z.ZodNumber>;
|
|
2646
2726
|
maxMin: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2736,6 +2816,11 @@ declare const LoopConfigSchema: z.ZodObject<{
|
|
|
2736
2816
|
}, z.core.$strip>>;
|
|
2737
2817
|
maxFixRounds: z.ZodDefault<z.ZodNumber>;
|
|
2738
2818
|
workerIdleTimeoutMin: z.ZodDefault<z.ZodNumber>;
|
|
2819
|
+
handoff: z.ZodPrefault<z.ZodObject<{
|
|
2820
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2821
|
+
maxHandoffs: z.ZodDefault<z.ZodNumber>;
|
|
2822
|
+
onlyWhenProviderUnavailable: z.ZodDefault<z.ZodBoolean>;
|
|
2823
|
+
}, z.core.$strip>>;
|
|
2739
2824
|
selfEditPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2740
2825
|
ignoreChecks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2741
2826
|
requiredChecks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -2928,25 +3013,77 @@ interface RoutingSkip {
|
|
|
2928
3013
|
readonly ref: ModelReference;
|
|
2929
3014
|
readonly reasons: readonly string[];
|
|
2930
3015
|
}
|
|
2931
|
-
interface RoutingDecision {
|
|
2932
|
-
readonly role: ModelRole;
|
|
2933
|
-
readonly selected: (ModelReference & {
|
|
2934
|
-
readonly tier: number;
|
|
2935
|
-
readonly orcaAgent: string;
|
|
2936
|
-
readonly tui: string;
|
|
2937
|
-
}) | null;
|
|
2938
|
-
readonly skipped: readonly RoutingSkip[];
|
|
2939
|
-
}
|
|
2940
|
-
/** Walk the role's tiers in order; inside a tier keep declaration order; first available provider wins. */
|
|
2941
|
-
declare const selectModel: (config: LoopConfig, role: ModelRole, availability: readonly ProviderAvailability[]) => RoutingDecision;
|
|
2942
|
-
declare const routeAllRoles: (config: LoopConfig, availability: readonly ProviderAvailability[]) => Readonly<Record<ModelRole, RoutingDecision>>;
|
|
2943
3016
|
interface RankedModel extends ModelReference {
|
|
2944
3017
|
readonly tier: number;
|
|
2945
3018
|
readonly orcaAgent: string;
|
|
2946
3019
|
readonly tui: string;
|
|
3020
|
+
readonly remainingPercent: number | null;
|
|
3021
|
+
readonly reason: string;
|
|
3022
|
+
readonly preferenceIndex: number;
|
|
2947
3023
|
}
|
|
2948
|
-
|
|
2949
|
-
|
|
3024
|
+
interface RoutingDecision {
|
|
3025
|
+
readonly role: ModelRole;
|
|
3026
|
+
readonly selected: RankedModel | null;
|
|
3027
|
+
readonly skipped: readonly RoutingSkip[];
|
|
3028
|
+
}
|
|
3029
|
+
/**
|
|
3030
|
+
* Walk the role's candidates according to `models.routing.mode`.
|
|
3031
|
+
* - tiers: declaration order (0.6 behaviour)
|
|
3032
|
+
* - hybrid: keep tier bands; within a tier pick highest remaining usage
|
|
3033
|
+
* - dynamic: flatten all YAML candidates; sort by remaining usage
|
|
3034
|
+
* - catalog: same as dynamic over YAML seeds for now; catalog enrichment is applied by `rankModels` callers that pass extra refs via `extraCandidates`
|
|
3035
|
+
*/
|
|
3036
|
+
declare const selectModel: (config: LoopConfig, role: ModelRole, availability: readonly ProviderAvailability[], extraCandidates?: readonly ModelReference[]) => RoutingDecision;
|
|
3037
|
+
declare const routeAllRoles: (config: LoopConfig, availability: readonly ProviderAvailability[], extrasByRole?: Partial<Record<ModelRole, readonly ModelReference[]>>) => Readonly<Record<ModelRole, RoutingDecision>>;
|
|
3038
|
+
/** Every available candidate for a role in preference / usage order. */
|
|
3039
|
+
declare const rankModels: (config: LoopConfig, role: ModelRole, availability: readonly ProviderAvailability[], extraCandidates?: readonly ModelReference[]) => readonly RankedModel[];
|
|
3040
|
+
|
|
3041
|
+
type ModelQuality = 'frontier' | 'balanced' | 'fast';
|
|
3042
|
+
interface CatalogModel {
|
|
3043
|
+
readonly id: string;
|
|
3044
|
+
readonly quality: ModelQuality;
|
|
3045
|
+
readonly codingScore: number;
|
|
3046
|
+
readonly source: 'cli' | 'artificial-analysis' | 'builtin' | 'yaml';
|
|
3047
|
+
readonly creator?: string;
|
|
3048
|
+
}
|
|
3049
|
+
interface ProviderCatalog {
|
|
3050
|
+
readonly creator?: string;
|
|
3051
|
+
readonly models: readonly CatalogModel[];
|
|
3052
|
+
}
|
|
3053
|
+
declare const loadBuiltinCatalog: () => Readonly<Record<string, ProviderCatalog>>;
|
|
3054
|
+
declare const loadAliases: () => Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
3055
|
+
declare const resolveAlias: (provider: string, modelId: string, aliases?: Readonly<Record<string, Readonly<Record<string, string>>>>) => string;
|
|
3056
|
+
/** Parse `grok models` human output into model ids. */
|
|
3057
|
+
declare const parseGrokModelsOutput: (stdout: string) => readonly string[];
|
|
3058
|
+
declare const listCliModels: (provider: string, bin: string, runner: CommandRunner, timeoutMs?: number) => Promise<readonly string[]>;
|
|
3059
|
+
interface ArtificialAnalysisModel {
|
|
3060
|
+
readonly slug: string;
|
|
3061
|
+
readonly name: string;
|
|
3062
|
+
readonly creatorSlug: string;
|
|
3063
|
+
readonly codingIndex: number | null;
|
|
3064
|
+
readonly intelligenceIndex: number | null;
|
|
3065
|
+
}
|
|
3066
|
+
declare const parseArtificialAnalysisPayload: (payload: unknown) => readonly ArtificialAnalysisModel[];
|
|
3067
|
+
declare const readAaCache: (stateDir: string) => {
|
|
3068
|
+
readonly fetchedAt: string;
|
|
3069
|
+
readonly models: readonly ArtificialAnalysisModel[];
|
|
3070
|
+
} | null;
|
|
3071
|
+
declare const writeAaCache: (stateDir: string, models: readonly ArtificialAnalysisModel[]) => void;
|
|
3072
|
+
declare const fetchArtificialAnalysisModels: (input: {
|
|
3073
|
+
readonly endpoint: string;
|
|
3074
|
+
readonly apiKey: string;
|
|
3075
|
+
readonly timeoutMs?: number;
|
|
3076
|
+
}) => Promise<readonly ArtificialAnalysisModel[]>;
|
|
3077
|
+
/** Build catalog candidates for a role from CLI + builtin + optional AA, filtered by quality band. */
|
|
3078
|
+
declare const resolveCatalogCandidates: (input: {
|
|
3079
|
+
readonly config: LoopConfig;
|
|
3080
|
+
readonly role: ModelRole;
|
|
3081
|
+
readonly availableProviderIds: readonly string[];
|
|
3082
|
+
readonly runner?: CommandRunner;
|
|
3083
|
+
readonly stateDir?: string;
|
|
3084
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
3085
|
+
readonly now?: () => Date;
|
|
3086
|
+
}) => Promise<readonly ModelReference[]>;
|
|
2950
3087
|
|
|
2951
3088
|
interface CooldownEntry {
|
|
2952
3089
|
readonly attempts: number;
|
|
@@ -3286,6 +3423,24 @@ interface WorkerBriefInput {
|
|
|
3286
3423
|
/** Doc Bridge playbook/for-agents refs (titles/paths only). */
|
|
3287
3424
|
readonly guidanceRefs?: readonly ContextReference[];
|
|
3288
3425
|
}
|
|
3426
|
+
interface HandoffBriefInput {
|
|
3427
|
+
readonly issue: string;
|
|
3428
|
+
readonly issueUrl: string;
|
|
3429
|
+
readonly config: LoopConfig;
|
|
3430
|
+
readonly branch: string;
|
|
3431
|
+
readonly worktree: string;
|
|
3432
|
+
readonly previousProvider: string;
|
|
3433
|
+
readonly previousModel: string;
|
|
3434
|
+
readonly provider: string;
|
|
3435
|
+
readonly model: string;
|
|
3436
|
+
readonly contractDigest: string;
|
|
3437
|
+
readonly reason: string;
|
|
3438
|
+
}
|
|
3439
|
+
/**
|
|
3440
|
+
* Continuation brief for a handoff: same worktree/branch, new provider.
|
|
3441
|
+
* Instructs the worker to resume from git state — do not recreate the branch.
|
|
3442
|
+
*/
|
|
3443
|
+
declare const renderHandoffBrief: (input: HandoffBriefInput) => string;
|
|
3289
3444
|
/** The prompt a worker receives in its Orca terminal. Issue text is data; the contract and the rules are the instructions. */
|
|
3290
3445
|
declare const renderWorkerBrief: (input: WorkerBriefInput) => string;
|
|
3291
3446
|
|
|
@@ -3375,6 +3530,7 @@ declare const branchFor: (issue: Pick<LoopIssue, "identifier" | "branchName">, p
|
|
|
3375
3530
|
declare const busyIssues: (queue: readonly LoopIssue[], leases: readonly DispatchLease[], worktrees: readonly OrcaWorktree[], person: string) => ReadonlySet<string>;
|
|
3376
3531
|
declare const dispatchRecordPath: (stateDir: string, identifier: string) => string;
|
|
3377
3532
|
declare const readDispatchRecord: (stateDir: string, identifier: string) => DispatchRecordFile | null;
|
|
3533
|
+
declare const writeDispatchRecord: (stateDir: string, record: DispatchRecordFile) => string;
|
|
3378
3534
|
declare const appendLoopEvent: (stateDir: string, event: Record<string, unknown>) => void;
|
|
3379
3535
|
interface LoopState {
|
|
3380
3536
|
readonly providers: readonly ProviderAvailability[];
|
|
@@ -3463,7 +3619,7 @@ declare const runCodeReview: (runner: CommandRunner, input: CodeReviewInput) =>
|
|
|
3463
3619
|
/** Compact, worker-facing rendering of blocking findings for a fix round. */
|
|
3464
3620
|
declare const renderFindingsForWorker: (findings: readonly ReviewFinding[], max?: number) => string;
|
|
3465
3621
|
|
|
3466
|
-
type DeliverOutcome = 'waiting' | 'reviewed' | 'fix-round' | 'nudged' | 'merged' | 'held' | 'blocked' | 'stuck' | 'abandoned' | 'failed' | 'dry-run';
|
|
3622
|
+
type DeliverOutcome = 'waiting' | 'reviewed' | 'fix-round' | 'nudged' | 'handed-off' | 'merged' | 'held' | 'blocked' | 'stuck' | 'abandoned' | 'failed' | 'dry-run';
|
|
3467
3623
|
interface DeliverResult {
|
|
3468
3624
|
readonly issue: string;
|
|
3469
3625
|
readonly outcome: DeliverOutcome;
|
|
@@ -3481,6 +3637,15 @@ interface DeliverReport {
|
|
|
3481
3637
|
readonly results: readonly DeliverResult[];
|
|
3482
3638
|
readonly notes: readonly string[];
|
|
3483
3639
|
}
|
|
3640
|
+
interface DeliveryHandoff {
|
|
3641
|
+
readonly at: string;
|
|
3642
|
+
readonly fromProvider: string;
|
|
3643
|
+
readonly fromModel: string;
|
|
3644
|
+
readonly toProvider: string;
|
|
3645
|
+
readonly toModel: string;
|
|
3646
|
+
readonly reason: string;
|
|
3647
|
+
readonly terminal: string | null;
|
|
3648
|
+
}
|
|
3484
3649
|
interface DeliveryState {
|
|
3485
3650
|
readonly issue: string;
|
|
3486
3651
|
readonly prNumber: number | null;
|
|
@@ -3494,10 +3659,11 @@ interface DeliveryState {
|
|
|
3494
3659
|
}>>;
|
|
3495
3660
|
readonly fixRounds: number;
|
|
3496
3661
|
readonly nudges: readonly {
|
|
3497
|
-
readonly kind: 'idle' | 'conflict' | 'ci' | 'review';
|
|
3662
|
+
readonly kind: 'idle' | 'conflict' | 'ci' | 'review' | 'handoff';
|
|
3498
3663
|
readonly at: string;
|
|
3499
3664
|
readonly head: string | null;
|
|
3500
3665
|
}[];
|
|
3666
|
+
readonly handoffs: readonly DeliveryHandoff[];
|
|
3501
3667
|
readonly heldFor: string | null;
|
|
3502
3668
|
readonly finishedAt: string | null;
|
|
3503
3669
|
readonly finalOutcome: DeliverOutcome | null;
|
|
@@ -3939,4 +4105,4 @@ declare const runRetroStage: (input: {
|
|
|
3939
4105
|
readonly dryRun?: boolean;
|
|
3940
4106
|
}) => Promise<RetroStageReport>;
|
|
3941
4107
|
|
|
3942
|
-
export { AGENT_REGISTRY_SCHEMA_VERSION, ARTIFACT_SCHEMA_VERSION, ARTIFACT_TYPES, ASSURANCE_LEVELS, type AdapterMetadata, type AdapterTelemetry, type AdversarialReviewResult, type AgentAdapter, type AgentEvalCase, type AgentEvalReport, type AgentEvalSuite, type AgentMemoryAdapter, type AgentMemoryHit, type AgentMemoryKvStore, type AgentMemoryRecord, type AgentRegistry, type AgentRegistryEntry, AgentRegistryEntrySchema, AgentRegistrySchema, type AgentSessionOptions, type AgentUsage, type ApprovedAssumption, type ArgvRagContextProviderOptions, type ArtifactBinding, type ArtifactEnvelope, type ArtifactEnvelopeInput, type ArtifactType, type AssuranceLevel, type AutomationStatus, type AutonomyMode, BENCHMARK_SCHEMA_VERSION, BLOCK_STATUSES, type BenchmarkBinding, type BenchmarkComparison, type BenchmarkImprovementDirection, type BenchmarkManifest, type BenchmarkObservation, type BenchmarkObservationEvidence, type BenchmarkObservationInput, type BenchmarkObservationStatus, type BenchmarkReport, type BenchmarkRun, type BenchmarkSummary, type BenchmarkTask, type BlockAssessment, type BlockManifest, type BlockStatus, CAPABILITY_KINDS, CAPABILITY_MANIFEST_SCHEMA_VERSION, CHECK_CATEGORIES, COMPATIBILITY_COMPONENTS, COMPATIBILITY_SCHEMA_VERSION, CONTEXT_PROVIDER_SLOT, CONTRACT_CLOSE, CONTRACT_OPEN, CONTRACT_SCHEMA_VERSION, type CacheUsage, type CapabilityDescriptor, type CapabilityKind, type CapabilityManifest, type CapabilityManifestInput, type ChangedFile, type CheckCategory, type CheckOutcome, type CheckResult, type ChecksAssessment, type ClaimResult, type CodeReviewInput, type CodeReviewOutcome, type CodingAgentAdapter, type CodingAgentHandlerResult, type CodingAgentRequest, type CodingAgentResult, type CommandResult, type CommandRunOptions, type CommandRunner, type CompatibilityComponent, type CompatibilityComponentId, type CompatibilityManifest, type CompatibilityObservation, type CompatibilityReport, type CompatibilityStatus, type ContextProvider, type ContextQuery, type ContextReference, type ContextSnapshot, type ContractAssessment, type ContractOutcome, ContractOutcomeSchema, type ContractScope, type CooldownEntry, type CooldownState, type CoordinationIdentity, type CriterionStatus, type CycleIterationMetrics, type CycleMatrixRow, type CycleStepResult, type CycleStepStatus, type DebriefInput, type DebriefIssueRow, type DebriefReport, type DecisionPacket, type DeliverInput, type DeliverOutcome, type DeliverReport, type DeliverResult, type DeliveryState, type DetectProvidersInput, type DiscoveryAmbiguity, type DiscoveryCurrentInput, type DiscoveryCurrentResult, type DiscoveryDecisionLogEntry, type DiscoveryInput, type DiscoveryOption, type DiscoveryResult, type DispatchLease, type DispatchLedger, type DispatchRecord, type DispatchRecordFile, type Disposer, type DocBridgeIndexInspection, type DockerMount, type DockerRuntimeEvidence, type DockerToolDefinition, type DoctorCheck, type DoctorCheckStatus, EVAL_COMPONENTS, EVAL_LAYERS, EVAL_MANIFEST_SCHEMA_VERSION, EVENT_LOG_GENESIS, EVIDENCE_BUNDLE_SCHEMA_VERSION, type EvalBatteryReport, type EvalCaseDefinition, type EvalCaseReport, type EvalComponent, type EvalExpectation, type EvalLayer, type EvalManifest, type EvalObservation, type EvalObservationStatus, type EventLogLock, type EventLogLockRecovery, type EventLogLockStatus, type EventLogVerification, type EventStore, type EvidenceArtifact, type EvidenceBundle, type EvidenceBundleFile, type EvidenceBundleSignature, type EvidenceBundleVerification, type EvidenceReference, type ExecutePhaseProfileOptions, type FailureClass, type FailureClassification, type FetchQueueInput, FileArtifactStore, FileEventStore, type FilePreflightPlan, type GateAssessment, type GateBinding, type GateCriterion, type GenerateContractInput, type GitHubCliOptions, type GuidedInstallIO, type GuidedInstallInput, type GuidedInstallReport, HARNESS_ERROR_CATALOG, HARNESS_ERROR_CODES, HARNESS_EVENT_ENVELOPE_SCHEMA_VERSION, HARNESS_EVENT_SCHEMA_VERSION, HARNESS_EVENT_TYPES, HARNESS_PLUGIN_API_VERSION, HARNESS_REPO_URL, HarnessError, type HarnessErrorClassification, type HarnessErrorDisposition, type HarnessEvent, type HarnessEventContext, type HarnessEventEnvelope, type HarnessEventEnvelopeInput, type HarnessEventInput, type HarnessEventListener, type HarnessEventPayloads, type HarnessEventProvenance, type HarnessEventType, type HarnessPlugin, type HarnessPluginContext, IMPROVEMENT_CYCLE_STEPS, type ImprovementCycleAssessment, type ImprovementCycleInput, type ImprovementCycleIteration, type ImprovementCycleStep, type InstallAction, type InstallInput, type InstallReport, LEARNING_STATUSES, LEGAL_TRANSITIONS, LOOP_CONFIG_FILE, LOOP_CONFIG_SCHEMA_VERSION, LOOP_LOCAL_CONFIG_FILE, LOOP_STAGES, type LearningRecord, type LearningStatus, type LearningsLedger, type LinearIssueDetail, type LinearListInput, type LinearQueueFilter, type LinearWriteOptions, type LlmCache, type LlmCacheKeyInput, type LlmCacheStats, type LoadedConfig, type LoadedLoopConfig, type LocalConfigAnswers, type LocalConfigPrompter, type LoopConfig, type LoopConfigInput, LoopConfigSchema, type LoopDoctorInput, type LoopDoctorReport, type LoopEvent, type LoopIssue, type LoopProviderConfig, type LoopStage, type LoopState, type LoopStatusReport, MEMORY_SCOPES, MODEL_ROLES, type MachineMetrics, type MachineSample, type MachineThresholds, type McpPolicy, type McpToolBridge, type McpToolBridgeOptions, type McpToolCallInput, type McpToolCallResult, type MemoryContextPlan, type MemoryPromptSelection, type MemoryScope, type MemoryUsage, type MetricStatus, type ModelBinding, type ModelPolicy, type ModelReference, type ModelRole, type NormalizedPhaseProfile, type OptimizationComparison, type OptimizationObservation, type OrcaAgentHookState, type OrcaAutomation, type OrcaAutomationSpec, type OrcaCliOptions, type OrcaCreatedWorktree, type OrcaDispatchInput, type OrcaDispatchPlan, type OrcaLeaseState, type OrcaLifecycleInput, type OrcaLifecycleProjection, type OrcaStatus as OrcaRuntimeStatus, type OrcaSendReceipt, type OrcaTerminal, type OrcaWorktree, PHASE_DECISIONS, PHASE_EFFECTS, PHASE_EFFECT_ACTIONS, PHASE_MODES, PR_FIELDS, type ParallelismUsage, type PhaseAmbiguity, type PhaseContext, type PhaseDecision, type PhaseDecisionPacket, type PhaseDefinition, type PhaseEffect, type PhaseEffectAction, type PhaseEffectPolicy, type PhaseExecution, type PhaseExecutionReport, type PhaseGateEvaluator, type PhaseGateResult, type PhaseHandler, type PhaseHandlerResult, type PhaseMachineMetrics, type PhaseMode, type PhasePreflight, type PhasePreflightResult, type PhaseProfile, type PhaseResumeState, type PhaseRetryPolicy, type PhaseRoutePlan, type PhaseTelemetry, type PhaseTokenMetrics, type PilotAssessment, type PilotEntry, type PilotManifest, type PluginContribution, type PluginRegistry, type PluginSlot, type PolicyDecision, type PolicyGate, type PolicyRequest, type PolicyRule, type ProcessToolDefinition, type ProductionEvidence, type ProviderAuthStatus, type ProviderAvailability, type ProviderFailure, type ProviderSpec, type ProviderUsage, type PullRequestApproval, type PullRequestCheck, type PullRequestDraft, type PullRequestSnapshot, QUALITY_DIMENSIONS, type QaTransitionAssessment, type QualityDimension, type QualityDimensionScore, type QualityMatrix, REVIEW_SEVERITIES, RUN_STATES, type RagContextProviderOptions, type RagQueryResult, type RankedModel, type RecoveryObservation, type RecoveryPolicy, type RecoveryResult, type RepositoryProfile, type ResolvedAgent, type RetroInput, type RetroIssueRow, type RetroReport, type RetroStageReport, type RetroSuggestion, type RetroTarget, type RetroWindow, type ReviewFinding, type ReviewLens, type ReviewSeverity, type ReviewVerdict, type RichIO, type RoutingDecision, type RoutingSkip, type RunOutcome, type RunReconciliation, type RunState, type RuntimeConfig, type RuntimeExperimentCandidate, type RuntimeExperimentResult, STATES, SURFACE_NAMES, type SessionRecorder, type SlotAssessment, type SlotInput, type SourceSnapshot, type StateTransition, type StatusBlock, type StatusSnapshot, type StoredContract, type StructuredEvidence, type SurfaceName, type SurfaceRequirement, type TaskContract, TaskContractSchema, type TeamMember, type TickCandidateResult, type TickInput, type TickOutcome, type TickReport, type TokenUsage, type ToolDefinition, type ToolExecutionRequest, type ToolExecutionResult, type ToolRuntime, type TrackingAdapter, type TrackingConfig, type TrackingTransition, type TrustedEvidenceKey, type UsageWindow, type VerificationCheck, type VerificationConfig, type VerificationRun, WIP_STATES, type WatchEvent, type WatchEventKind, type WatchInput, type WatchReport, type WatchTargetSnapshot, type WatchdogBlocker, type WatchdogBudget, type WatchdogResult, type WipAssessment, type WipAssessmentInput, type WipEntry, type WipState, type WorkerBriefInput, type WorkflowNode, type WorkflowResult, activeCooldowns, adaptiveConcurrency, appendLoopEvent, approveRun, approvedDecision, artifactDigest, artifactFilePath, artifactIsFresh, artifactMarkdownPath, assertHuman, assessAcceptance, assessAgentEval, assessBlock, assessChecks, assessCompatibility, assessContract, assessDiscovery, assessImprovementCycle, assessIntegration, assessPilot, assessPreflight, assessProduction, assessQaTransition, assessSlots, assessWip, assessWorktreeCleanup, atLeast, authStatusFor, authorizeRun, automationName, automationPrompt, automationSpecs, availableMemoryBytes, benchmarkRuns, branchFor, buildDebriefReport, buildListIssuesArgv, buildRetroReport, buildReviewArgv, buildSuggestions, busyIssues, cancelRun, classifyFailure, classifyHarnessError, classifyProviderFailure, classifyWatchEvent, classifyWatchPhase, cleanTaskArtifacts, clearProviderCooldown, compareOptimization, compareVersions, composePullRequest, contractIsFresh, contractPath, cooldownPath, cooldownUntil, countRunningWorkers, createArgvRagContextProvider, createArtifactEnvelope, createCapabilityManifest, createCodingAgentAdapter, createCompatibilityManifest, createConfiguredToolRuntime, createDispatchLedger, createDocBridgeContextProvider, createDockerToolRuntime, createEvalManifest, createFileMemoryAdapter, createFileMemoryKvStore, createHarnessEventEnvelope, createInMemoryMemoryAdapter, createKvMemoryAdapter, createLinearTrackingAdapter, createLlmCache, createLlmCacheKey, createMachineMonitor, createMcpToolBridge, createModelPolicy, createOrcaDispatchPlan, createOrcaLifecycleProjection, createPhaseArtifact, createPhaseProfile, createPluginRegistry, createPluginSlot, createPolicyGate, createProcessRunner, createProcessToolRuntime, createPullRequestApproval, createQualityMatrix, createRagContextProvider, createRichIO, createSessionRecorder, createStatusSnapshot, createToolRuntime, createTrackingAdapter, createTrackingTransition, deliveryStatePath, detectProviders, dispatchRecordPath, evaluateWatchdog, executePhaseProfile, exportEvidenceBundle, fetchLinearIssue, fetchLinearQueue, fetchTeamMembers, filterAndOrderQueue, findExecutable, formatWatchEvent, gatherLoopState, generateContract, githubComment, githubCommentArgv, githubCommentExists, githubMerge, githubMergeArgv, githubOpenPullRequests, githubPullRequest, githubPullRequestsForBranch, hasLocalConfig, hashContextSnapshot, hashContextSnapshots, hashMcpArgs, inspectDocBridgeIndex, inspectEventLogLock, installLoopAutomations, installPreflight, isDiscoveryCurrent, isWsl, launchWorkerTerminal, learningToMemoryRecord, learningsPath, linearAttach, linearAttachArgv, linearCommentAdd, linearCommentAddArgv, linearLabelAdd, linearLabelArgv, linearLabelRemove, linearStatusSet, linearStatusSetArgv, listDispatched, loadAgentRegistry, loadBenchmarkManifest, loadConfig, loadLatestRun, loadLoopConfig, localConfigPath, loopStatus, markProviderExhausted, memoryDigestOf, mergeLoopConfig, modelFor, normalizeReason, openLoopMemory, orcaAccountList, orcaAgentHooks, orcaAutomationCreateArgv, orcaAutomationEditArgv, orcaAutomationRemove, orcaAutomationRun, orcaAutomationRuns, orcaAutomationsList, orcaJson, orcaStatus, orcaTerminalCreate, orcaTerminalList, orcaTerminalScreen, orcaTerminalSend, orcaTerminalWait, orcaVersion, orcaWorktreeCreate, orcaWorktreeRemove, orcaWorktreeSet, orcaWorktreeSetArgv, orcaWorktrees, parseAgentRegistryText, parseAutomationRuns, parseContractOutput, parseJsonEnvelope, parseLinearIssueDetail, parseLinearIssues, parseLoopConfigText, parseMemInfo, parseModelRef, parseOrcaAgentHooks, parseOrcaAutomations, parseOrcaSendReceipt, parseOrcaStatus, parseOrcaTerminals, parseOrcaVersion, parseOrcaWorktreeCreate, parseOrcaWorktrees, parseProviderUsage, parsePullRequest, parseRagQueryOutput, parseRetro, parseReviewResult, parseSince, parseTeamMembers, parseUsageWindows, parseVmStat, planFilePreflight, planMemoryContext, planPhaseProfile, planRun, precheckCommand, precheckDeliver, precheckTick, preferMemoryOverDocBridge, promoteLearnings, promoteLearningsToMemory, promptLocalConfig, providerIdentity, providerSpecs, rankModels, readArtifactFile, readContextSnapshots, readCooldowns, readDeliveryState, readDispatchRecord, readEvidenceTrustStore, readLearningsLedger, readLoopEvents, readStoredContract, reconcileRun, recordBenchmarkObservation, recoverEventLogLock, recoveryDelayMs, renderArtifactMarkdown, renderContractPrompt, renderDebriefMarkdown, renderFindingsForWorker, renderHeadlessArgv, renderLocalConfig, renderRetroMarkdown, renderTuiCommand, renderWorkerBrief, resolveAgentForRole, resolveDocContext, resumeStateFromArtifacts, retroLearnings, retryRun, routeAllRoles, runAdversarialReview, runAgentEval, runCodeReview, runDeliver, runEvalBattery, runGuidedInstall, runLoopDoctor, runRetroStage, runTick, runWithRecovery, runWorkflow, sampleMachine, selectMemoryForPrompt, selectModel, selectRuntime, severityRank, shellQuote, snapshotWatchTargets, startRun, summarizeMachine, tiersFor, touchesProtectedPaths, transition, uninstallLoopAutomations, unknownTelemetry, untrusted, upsertProposedLearnings, validateAdapterMetadata, validateArtifactEnvelope, validateBenchmarkManifest, validateBlockManifest, validateCacheableOperation, validateCapabilityManifest, validateCompatibilityManifest, validateConfig, validateContextSnapshot, validateContextSnapshots, validateEvalManifest, validateHarnessErrorClassification, validateHarnessEventEnvelope, validateLoopConfig, validateMemoryRecord, validateOptimizationObservation, validatePhaseTelemetry, validateSafeCommand, validateStatusSnapshot, verifyEvidenceBundle, verifyPullRequestApproval, verifyRun, watchDeliveries, worktreeNameFor, writeIdFor, writeLearningsLedger, writeLocalConfig, writeStoredContract };
|
|
4108
|
+
export { AGENT_REGISTRY_SCHEMA_VERSION, ARTIFACT_SCHEMA_VERSION, ARTIFACT_TYPES, ASSURANCE_LEVELS, type AdapterMetadata, type AdapterTelemetry, type AdversarialReviewResult, type AgentAdapter, type AgentEvalCase, type AgentEvalReport, type AgentEvalSuite, type AgentMemoryAdapter, type AgentMemoryHit, type AgentMemoryKvStore, type AgentMemoryRecord, type AgentRegistry, type AgentRegistryEntry, AgentRegistryEntrySchema, AgentRegistrySchema, type AgentSessionOptions, type AgentUsage, type ApprovedAssumption, type ArgvRagContextProviderOptions, type ArtifactBinding, type ArtifactEnvelope, type ArtifactEnvelopeInput, type ArtifactType, type ArtificialAnalysisModel, type AssuranceLevel, type AutomationStatus, type AutonomyMode, BENCHMARK_SCHEMA_VERSION, BLOCK_STATUSES, type BenchmarkBinding, type BenchmarkComparison, type BenchmarkImprovementDirection, type BenchmarkManifest, type BenchmarkObservation, type BenchmarkObservationEvidence, type BenchmarkObservationInput, type BenchmarkObservationStatus, type BenchmarkReport, type BenchmarkRun, type BenchmarkSummary, type BenchmarkTask, type BlockAssessment, type BlockManifest, type BlockStatus, CAPABILITY_KINDS, CAPABILITY_MANIFEST_SCHEMA_VERSION, CHECK_CATEGORIES, COMPATIBILITY_COMPONENTS, COMPATIBILITY_SCHEMA_VERSION, CONTEXT_PROVIDER_SLOT, CONTRACT_CLOSE, CONTRACT_OPEN, CONTRACT_SCHEMA_VERSION, type CacheUsage, type CapabilityDescriptor, type CapabilityKind, type CapabilityManifest, type CapabilityManifestInput, type CatalogModel, type ChangedFile, type CheckCategory, type CheckOutcome, type CheckResult, type ChecksAssessment, type ClaimResult, type CodeReviewInput, type CodeReviewOutcome, type CodingAgentAdapter, type CodingAgentHandlerResult, type CodingAgentRequest, type CodingAgentResult, type CommandResult, type CommandRunOptions, type CommandRunner, type CompatibilityComponent, type CompatibilityComponentId, type CompatibilityManifest, type CompatibilityObservation, type CompatibilityReport, type CompatibilityStatus, type ContextProvider, type ContextQuery, type ContextReference, type ContextSnapshot, type ContractAssessment, type ContractOutcome, ContractOutcomeSchema, type ContractScope, type CooldownEntry, type CooldownState, type CoordinationIdentity, type CriterionStatus, type CycleIterationMetrics, type CycleMatrixRow, type CycleStepResult, type CycleStepStatus, type DebriefInput, type DebriefIssueRow, type DebriefReport, type DecisionPacket, type DeliverInput, type DeliverOutcome, type DeliverReport, type DeliverResult, type DeliveryState, type DetectProvidersInput, type DiscoveryAmbiguity, type DiscoveryCurrentInput, type DiscoveryCurrentResult, type DiscoveryDecisionLogEntry, type DiscoveryInput, type DiscoveryOption, type DiscoveryResult, type DispatchLease, type DispatchLedger, type DispatchRecord, type DispatchRecordFile, type Disposer, type DocBridgeIndexInspection, type DockerMount, type DockerRuntimeEvidence, type DockerToolDefinition, type DoctorCheck, type DoctorCheckStatus, EVAL_COMPONENTS, EVAL_LAYERS, EVAL_MANIFEST_SCHEMA_VERSION, EVENT_LOG_GENESIS, EVIDENCE_BUNDLE_SCHEMA_VERSION, type EvalBatteryReport, type EvalCaseDefinition, type EvalCaseReport, type EvalComponent, type EvalExpectation, type EvalLayer, type EvalManifest, type EvalObservation, type EvalObservationStatus, type EventLogLock, type EventLogLockRecovery, type EventLogLockStatus, type EventLogVerification, type EventStore, type EvidenceArtifact, type EvidenceBundle, type EvidenceBundleFile, type EvidenceBundleSignature, type EvidenceBundleVerification, type EvidenceReference, type ExecutePhaseProfileOptions, type FailureClass, type FailureClassification, type FetchQueueInput, FileArtifactStore, FileEventStore, type FilePreflightPlan, type GateAssessment, type GateBinding, type GateCriterion, type GenerateContractInput, type GitHubCliOptions, type GuidedInstallIO, type GuidedInstallInput, type GuidedInstallReport, HARNESS_ERROR_CATALOG, HARNESS_ERROR_CODES, HARNESS_EVENT_ENVELOPE_SCHEMA_VERSION, HARNESS_EVENT_SCHEMA_VERSION, HARNESS_EVENT_TYPES, HARNESS_PLUGIN_API_VERSION, HARNESS_REPO_URL, type HandoffBriefInput, HarnessError, type HarnessErrorClassification, type HarnessErrorDisposition, type HarnessEvent, type HarnessEventContext, type HarnessEventEnvelope, type HarnessEventEnvelopeInput, type HarnessEventInput, type HarnessEventListener, type HarnessEventPayloads, type HarnessEventProvenance, type HarnessEventType, type HarnessPlugin, type HarnessPluginContext, IMPROVEMENT_CYCLE_STEPS, type ImprovementCycleAssessment, type ImprovementCycleInput, type ImprovementCycleIteration, type ImprovementCycleStep, type InstallAction, type InstallInput, type InstallReport, LEARNING_STATUSES, LEGAL_TRANSITIONS, LOOP_CONFIG_FILE, LOOP_CONFIG_SCHEMA_VERSION, LOOP_LOCAL_CONFIG_FILE, LOOP_STAGES, type LearningRecord, type LearningStatus, type LearningsLedger, type LinearIssueDetail, type LinearListInput, type LinearQueueFilter, type LinearWriteOptions, type LlmCache, type LlmCacheKeyInput, type LlmCacheStats, type LoadedConfig, type LoadedLoopConfig, type LocalConfigAnswers, type LocalConfigPrompter, type LoopConfig, type LoopConfigInput, LoopConfigSchema, type LoopDoctorInput, type LoopDoctorReport, type LoopEvent, type LoopIssue, type LoopProviderConfig, type LoopStage, type LoopState, type LoopStatusReport, MEMORY_SCOPES, MODEL_ROLES, type MachineMetrics, type MachineSample, type MachineThresholds, type McpPolicy, type McpToolBridge, type McpToolBridgeOptions, type McpToolCallInput, type McpToolCallResult, type MemoryContextPlan, type MemoryPromptSelection, type MemoryScope, type MemoryUsage, type MetricStatus, type ModelBinding, type ModelPolicy, type ModelQuality, type ModelReference, type ModelRole, type NormalizedPhaseProfile, type OptimizationComparison, type OptimizationObservation, type OrcaAgentHookState, type OrcaAutomation, type OrcaAutomationSpec, type OrcaCliOptions, type OrcaCreatedWorktree, type OrcaDispatchInput, type OrcaDispatchPlan, type OrcaLeaseState, type OrcaLifecycleInput, type OrcaLifecycleProjection, type OrcaStatus as OrcaRuntimeStatus, type OrcaSendReceipt, type OrcaTerminal, type OrcaWorktree, PHASE_DECISIONS, PHASE_EFFECTS, PHASE_EFFECT_ACTIONS, PHASE_MODES, PR_FIELDS, type ParallelismUsage, type PhaseAmbiguity, type PhaseContext, type PhaseDecision, type PhaseDecisionPacket, type PhaseDefinition, type PhaseEffect, type PhaseEffectAction, type PhaseEffectPolicy, type PhaseExecution, type PhaseExecutionReport, type PhaseGateEvaluator, type PhaseGateResult, type PhaseHandler, type PhaseHandlerResult, type PhaseMachineMetrics, type PhaseMode, type PhasePreflight, type PhasePreflightResult, type PhaseProfile, type PhaseResumeState, type PhaseRetryPolicy, type PhaseRoutePlan, type PhaseTelemetry, type PhaseTokenMetrics, type PilotAssessment, type PilotEntry, type PilotManifest, type PluginContribution, type PluginRegistry, type PluginSlot, type PolicyDecision, type PolicyGate, type PolicyRequest, type PolicyRule, type ProcessToolDefinition, type ProductionEvidence, type ProviderAuthStatus, type ProviderAvailability, type ProviderCatalog, type ProviderFailure, type ProviderSpec, type ProviderUsage, type PullRequestApproval, type PullRequestCheck, type PullRequestDraft, type PullRequestSnapshot, QUALITY_DIMENSIONS, type QaTransitionAssessment, type QualityDimension, type QualityDimensionScore, type QualityMatrix, REVIEW_SEVERITIES, RUN_STATES, type RagContextProviderOptions, type RagQueryResult, type RankedModel, type RecoveryObservation, type RecoveryPolicy, type RecoveryResult, type RepositoryProfile, type ResolvedAgent, type RetroInput, type RetroIssueRow, type RetroReport, type RetroStageReport, type RetroSuggestion, type RetroTarget, type RetroWindow, type ReviewFinding, type ReviewLens, type ReviewSeverity, type ReviewVerdict, type RichIO, type RoutingDecision, type RoutingSkip, type RunOutcome, type RunReconciliation, type RunState, type RuntimeConfig, type RuntimeExperimentCandidate, type RuntimeExperimentResult, STATES, SURFACE_NAMES, type SessionRecorder, type SlotAssessment, type SlotInput, type SourceSnapshot, type StateTransition, type StatusBlock, type StatusSnapshot, type StoredContract, type StructuredEvidence, type SurfaceName, type SurfaceRequirement, type TaskContract, TaskContractSchema, type TeamMember, type TickCandidateResult, type TickInput, type TickOutcome, type TickReport, type TokenUsage, type ToolDefinition, type ToolExecutionRequest, type ToolExecutionResult, type ToolRuntime, type TrackingAdapter, type TrackingConfig, type TrackingTransition, type TrustedEvidenceKey, type UsageMetric, type UsageWindow, type VerificationCheck, type VerificationConfig, type VerificationRun, WIP_STATES, type WatchEvent, type WatchEventKind, type WatchInput, type WatchReport, type WatchTargetSnapshot, type WatchdogBlocker, type WatchdogBudget, type WatchdogResult, type WipAssessment, type WipAssessmentInput, type WipEntry, type WipState, type WorkerBriefInput, type WorkflowNode, type WorkflowResult, activeCooldowns, adaptiveConcurrency, appendLoopEvent, approveRun, approvedDecision, artifactDigest, artifactFilePath, artifactIsFresh, artifactMarkdownPath, assertHuman, assessAcceptance, assessAgentEval, assessBlock, assessChecks, assessCompatibility, assessContract, assessDiscovery, assessImprovementCycle, assessIntegration, assessPilot, assessPreflight, assessProduction, assessQaTransition, assessSlots, assessWip, assessWorktreeCleanup, atLeast, authStatusFor, authorizeRun, automationName, automationPrompt, automationSpecs, availableMemoryBytes, benchmarkRuns, branchFor, buildDebriefReport, buildListIssuesArgv, buildRetroReport, buildReviewArgv, buildSuggestions, busyIssues, cancelRun, classifyFailure, classifyHarnessError, classifyProviderFailure, classifyWatchEvent, classifyWatchPhase, cleanTaskArtifacts, clearProviderCooldown, compareOptimization, compareVersions, composePullRequest, contractIsFresh, contractPath, cooldownPath, cooldownUntil, countRunningWorkers, createArgvRagContextProvider, createArtifactEnvelope, createCapabilityManifest, createCodingAgentAdapter, createCompatibilityManifest, createConfiguredToolRuntime, createDispatchLedger, createDocBridgeContextProvider, createDockerToolRuntime, createEvalManifest, createFileMemoryAdapter, createFileMemoryKvStore, createHarnessEventEnvelope, createInMemoryMemoryAdapter, createKvMemoryAdapter, createLinearTrackingAdapter, createLlmCache, createLlmCacheKey, createMachineMonitor, createMcpToolBridge, createModelPolicy, createOrcaDispatchPlan, createOrcaLifecycleProjection, createPhaseArtifact, createPhaseProfile, createPluginRegistry, createPluginSlot, createPolicyGate, createProcessRunner, createProcessToolRuntime, createPullRequestApproval, createQualityMatrix, createRagContextProvider, createRichIO, createSessionRecorder, createStatusSnapshot, createToolRuntime, createTrackingAdapter, createTrackingTransition, deliveryStatePath, detectProviders, dispatchRecordPath, evaluateWatchdog, executePhaseProfile, exportEvidenceBundle, fetchArtificialAnalysisModels, fetchLinearIssue, fetchLinearQueue, fetchTeamMembers, filterAndOrderQueue, findExecutable, formatWatchEvent, gatherLoopState, generateContract, githubComment, githubCommentArgv, githubCommentExists, githubMerge, githubMergeArgv, githubOpenPullRequests, githubPullRequest, githubPullRequestsForBranch, hasLocalConfig, hashContextSnapshot, hashContextSnapshots, hashMcpArgs, inspectDocBridgeIndex, inspectEventLogLock, installLoopAutomations, installPreflight, isDiscoveryCurrent, isWsl, launchWorkerTerminal, learningToMemoryRecord, learningsPath, linearAttach, linearAttachArgv, linearCommentAdd, linearCommentAddArgv, linearLabelAdd, linearLabelArgv, linearLabelRemove, linearStatusSet, linearStatusSetArgv, listCliModels, listDispatched, loadAgentRegistry, loadAliases, loadBenchmarkManifest, loadBuiltinCatalog, loadConfig, loadLatestRun, loadLoopConfig, localConfigPath, loopStatus, markProviderExhausted, memoryDigestOf, mergeLoopConfig, modelFor, normalizeReason, openLoopMemory, orcaAccountList, orcaAgentHooks, orcaAutomationCreateArgv, orcaAutomationEditArgv, orcaAutomationRemove, orcaAutomationRun, orcaAutomationRuns, orcaAutomationsList, orcaJson, orcaStatus, orcaTerminalCreate, orcaTerminalList, orcaTerminalScreen, orcaTerminalSend, orcaTerminalWait, orcaVersion, orcaWorktreeCreate, orcaWorktreeRemove, orcaWorktreeSet, orcaWorktreeSetArgv, orcaWorktrees, parseAgentRegistryText, parseArtificialAnalysisPayload, parseAutomationRuns, parseContractOutput, parseGrokModelsOutput, parseJsonEnvelope, parseLinearIssueDetail, parseLinearIssues, parseLoopConfigText, parseMemInfo, parseModelRef, parseOrcaAgentHooks, parseOrcaAutomations, parseOrcaSendReceipt, parseOrcaStatus, parseOrcaTerminals, parseOrcaVersion, parseOrcaWorktreeCreate, parseOrcaWorktrees, parseProviderUsage, parsePullRequest, parseRagQueryOutput, parseRetro, parseReviewResult, parseSince, parseTeamMembers, parseUsageWindows, parseVmStat, planFilePreflight, planMemoryContext, planPhaseProfile, planRun, precheckCommand, precheckDeliver, precheckTick, preferMemoryOverDocBridge, promoteLearnings, promoteLearningsToMemory, promptLocalConfig, providerIdentity, providerSpecs, rankModels, readAaCache, readArtifactFile, readContextSnapshots, readCooldowns, readDeliveryState, readDispatchRecord, readEvidenceTrustStore, readLearningsLedger, readLoopEvents, readStoredContract, reconcileRun, recordBenchmarkObservation, recoverEventLogLock, recoveryDelayMs, remainingUsagePercent, renderArtifactMarkdown, renderContractPrompt, renderDebriefMarkdown, renderFindingsForWorker, renderHandoffBrief, renderHeadlessArgv, renderLocalConfig, renderRetroMarkdown, renderTuiCommand, renderWorkerBrief, resolveAgentForRole, resolveAlias, resolveCatalogCandidates, resolveDocContext, resumeStateFromArtifacts, retroLearnings, retryRun, routeAllRoles, runAdversarialReview, runAgentEval, runCodeReview, runDeliver, runEvalBattery, runGuidedInstall, runLoopDoctor, runRetroStage, runTick, runWithRecovery, runWorkflow, sampleMachine, selectMemoryForPrompt, selectModel, selectRuntime, severityRank, shellQuote, snapshotWatchTargets, startRun, summarizeMachine, tiersFor, touchesProtectedPaths, transition, undeclaredOrcaProviders, uninstallLoopAutomations, unknownTelemetry, untrusted, upsertProposedLearnings, usageRankTuple, validateAdapterMetadata, validateArtifactEnvelope, validateBenchmarkManifest, validateBlockManifest, validateCacheableOperation, validateCapabilityManifest, validateCompatibilityManifest, validateConfig, validateContextSnapshot, validateContextSnapshots, validateEvalManifest, validateHarnessErrorClassification, validateHarnessEventEnvelope, validateLoopConfig, validateMemoryRecord, validateOptimizationObservation, validatePhaseTelemetry, validateSafeCommand, validateStatusSnapshot, verifyEvidenceBundle, verifyPullRequestApproval, verifyRun, watchDeliveries, worktreeNameFor, writeAaCache, writeDispatchRecord, writeIdFor, writeLearningsLedger, writeLocalConfig, writeStoredContract };
|