@h-rig/contracts 0.0.6-alpha.18 → 0.0.6-alpha.180
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/dist/index.cjs +3442 -0
- package/dist/index.mjs +3401 -0
- package/dist/src/agent-roles.d.ts +8 -0
- package/dist/src/artifact.d.ts +13 -0
- package/dist/src/artifact.js +3 -0
- package/dist/src/baseSchemas.d.ts +63 -0
- package/dist/src/baseSchemas.js +6 -0
- package/dist/src/blocker-classifier.d.ts +21 -0
- package/dist/src/blocker-classifier.js +13 -0
- package/dist/src/browser.d.ts +80 -0
- package/dist/src/browser.js +13 -0
- package/dist/src/capability-id.d.ts +22 -0
- package/dist/src/capability-id.js +8 -0
- package/dist/src/cli-output.d.ts +348 -0
- package/dist/src/cli-output.js +190 -0
- package/dist/src/cli-runner.d.ts +43 -0
- package/dist/src/cli-runner.js +13 -0
- package/dist/src/cockpit.d.ts +58 -0
- package/dist/src/cockpit.js +13 -0
- package/dist/src/collab-session-viewer.d.ts +36 -0
- package/dist/src/collab-session-viewer.js +13 -0
- package/dist/src/config.d.ts +553 -0
- package/dist/src/config.js +767 -162
- package/dist/src/control-plane-types.d.ts +323 -0
- package/dist/src/control-plane-types.js +13 -0
- package/dist/src/conversation.d.ts +50 -0
- package/dist/src/conversation.js +3 -0
- package/dist/src/dependency-preflight.d.ts +43 -0
- package/dist/src/dependency-preflight.js +13 -0
- package/dist/src/docs-drift.d.ts +10 -0
- package/dist/src/docs-drift.js +12 -0
- package/dist/src/doctor.d.ts +90 -0
- package/dist/src/doctor.js +13 -0
- package/dist/src/drift.d.ts +28 -0
- package/dist/src/drift.js +69 -0
- package/dist/src/editor.d.ts +25 -0
- package/dist/src/editor.js +3 -0
- package/dist/src/errors.d.ts +13 -0
- package/dist/src/errors.js +17 -0
- package/dist/src/git.d.ts +152 -0
- package/dist/src/git.js +3 -0
- package/dist/src/github.d.ts +295 -0
- package/dist/src/github.js +17 -0
- package/dist/src/graph.d.ts +360 -0
- package/dist/src/graph.js +137 -1
- package/dist/src/guard.d.ts +118 -0
- package/dist/src/guard.js +15 -0
- package/dist/src/harness-events.d.ts +8 -0
- package/dist/src/harness-events.js +1 -0
- package/dist/src/harness-profile-state.d.ts +10 -0
- package/dist/src/harness-profile-state.js +13 -0
- package/dist/src/help-catalog.d.ts +41 -0
- package/dist/src/help-catalog.js +13 -0
- package/dist/src/host.d.ts +41 -0
- package/dist/src/host.js +13 -0
- package/dist/src/identity.d.ts +44 -0
- package/dist/src/identity.js +1 -0
- package/dist/src/index.d.ts +98 -0
- package/dist/src/index.js +2605 -3752
- package/dist/src/isolation.d.ts +213 -0
- package/dist/src/isolation.js +13 -0
- package/dist/src/kernel.d.ts +200 -0
- package/dist/src/kernel.js +261 -0
- package/dist/src/keybindings.d.ts +71 -0
- package/dist/src/keybindings.js +3 -0
- package/dist/src/layout.d.ts +44 -0
- package/dist/src/layout.js +8 -0
- package/dist/src/lifecycle-capabilities.d.ts +224 -0
- package/dist/src/lifecycle-capabilities.js +45 -0
- package/dist/src/managed-repos.d.ts +339 -0
- package/dist/src/managed-repos.js +37 -0
- package/dist/src/memory.d.ts +199 -0
- package/dist/src/memory.js +15 -0
- package/dist/src/model.d.ts +13 -0
- package/dist/src/model.js +3 -58
- package/dist/src/native-toolchain.d.ts +46 -0
- package/dist/src/native-toolchain.js +13 -0
- package/dist/src/notify.d.ts +46 -0
- package/dist/src/notify.js +13 -0
- package/dist/src/orchestration.d.ts +43 -0
- package/dist/src/orchestration.js +28 -961
- package/dist/src/panel-protocol.d.ts +17 -0
- package/dist/src/panel-protocol.js +10 -0
- package/dist/src/pi-session.d.ts +113 -0
- package/dist/src/pi-session.js +1 -0
- package/dist/src/placement.d.ts +47 -0
- package/dist/src/placement.js +13 -0
- package/dist/src/planning.d.ts +64 -0
- package/dist/src/planning.js +90 -0
- package/dist/src/plugin-hooks.d.ts +51 -0
- package/dist/src/plugin-hooks.js +386 -0
- package/dist/src/plugin.d.ts +476 -0
- package/dist/src/plugin.js +346 -64
- package/dist/src/policy.d.ts +16 -0
- package/dist/src/policy.js +3 -0
- package/dist/src/product-entrypoint.d.ts +22 -0
- package/dist/src/product-entrypoint.js +13 -0
- package/dist/src/project.d.ts +71 -0
- package/dist/src/project.js +3 -0
- package/dist/src/prompt.d.ts +29 -0
- package/dist/src/prompt.js +13 -0
- package/dist/src/protocol-version.d.ts +21 -0
- package/dist/src/protocol-version.js +6 -0
- package/dist/src/provider-instructions.d.ts +41 -0
- package/dist/src/provider-instructions.js +13 -0
- package/dist/src/provider.d.ts +105 -0
- package/dist/src/provider.js +16 -835
- package/dist/src/remote-control.d.ts +93 -0
- package/dist/src/remote-control.js +26 -0
- package/dist/src/remote.d.ts +318 -0
- package/dist/src/remote.js +238 -1078
- package/dist/src/review.d.ts +18 -0
- package/dist/src/review.js +3 -0
- package/dist/src/rollups.d.ts +41 -0
- package/dist/src/rollups.js +70 -0
- package/dist/src/run-control.d.ts +164 -0
- package/dist/src/run-control.js +13 -0
- package/dist/src/run-discovery.d.ts +83 -0
- package/dist/src/run-discovery.js +13 -0
- package/dist/src/run-dispatch.d.ts +34 -0
- package/dist/src/run-dispatch.js +13 -0
- package/dist/src/run-identity.d.ts +47 -0
- package/dist/src/run-identity.js +13 -0
- package/dist/src/run-journal.d.ts +694 -0
- package/dist/src/run-journal.js +569 -0
- package/dist/src/run-queue.d.ts +36 -0
- package/dist/src/run-queue.js +13 -0
- package/dist/src/run-read-model.d.ts +200 -0
- package/dist/src/run-read-model.js +13 -0
- package/dist/src/run-record.d.ts +45 -0
- package/dist/src/run-record.js +1 -0
- package/dist/src/run-registry-backbone.d.ts +56 -0
- package/dist/src/run-registry-backbone.js +13 -0
- package/dist/src/run-session-journal.d.ts +154 -0
- package/dist/src/run-session-journal.js +87 -0
- package/dist/src/run-status.d.ts +10 -0
- package/dist/src/run-status.js +27 -0
- package/dist/src/run-timeline.d.ts +7 -0
- package/dist/src/run-timeline.js +1 -0
- package/dist/src/runtime-secrets.d.ts +10 -0
- package/dist/src/runtime-secrets.js +13 -0
- package/dist/src/runtime-task-context.d.ts +82 -0
- package/dist/src/runtime-task-context.js +1 -0
- package/dist/src/runtime.d.ts +103 -0
- package/dist/src/runtime.js +73 -906
- package/dist/src/session-asset-materializer.d.ts +35 -0
- package/dist/src/session-asset-materializer.js +13 -0
- package/dist/src/session-hook-materializer.d.ts +41 -0
- package/dist/src/session-hook-materializer.js +13 -0
- package/dist/src/setup.d.ts +154 -0
- package/dist/src/setup.js +13 -0
- package/dist/src/stage.d.ts +245 -0
- package/dist/src/stage.js +169 -0
- package/dist/src/supervisor-journal.d.ts +204 -0
- package/dist/src/supervisor-journal.js +336 -0
- package/dist/src/supervisor-loop.d.ts +40 -0
- package/dist/src/supervisor-loop.js +13 -0
- package/dist/src/task-artifacts.d.ts +53 -0
- package/dist/src/task-artifacts.js +13 -0
- package/dist/src/task-config.d.ts +22 -0
- package/dist/src/task-config.js +1 -0
- package/dist/src/task-context-renderer.d.ts +29 -0
- package/dist/src/task-context-renderer.js +13 -0
- package/dist/src/task-data.d.ts +196 -0
- package/dist/src/task-data.js +13 -0
- package/dist/src/task-graph-primitives.d.ts +47 -0
- package/dist/src/task-graph-primitives.js +1 -0
- package/dist/src/task-source.d.ts +167 -0
- package/dist/src/task-source.js +24 -0
- package/dist/src/task-state-metadata.d.ts +21 -0
- package/dist/src/task-state-metadata.js +1 -0
- package/dist/src/task-state-paths.d.ts +14 -0
- package/dist/src/task-state-paths.js +13 -0
- package/dist/src/task-state-store.d.ts +36 -0
- package/dist/src/task-state-store.js +17 -0
- package/dist/src/task-tracker-state.d.ts +101 -0
- package/dist/src/task-tracker-state.js +39 -0
- package/dist/src/terminal.d.ts +130 -0
- package/dist/src/terminal.js +3 -0
- package/dist/src/tool-materializer.d.ts +36 -0
- package/dist/src/tool-materializer.js +13 -0
- package/dist/src/tool-registry.d.ts +3 -0
- package/dist/src/tool-registry.js +58 -0
- package/dist/src/toolchain-sources.d.ts +54 -0
- package/dist/src/toolchain-sources.js +17 -0
- package/dist/src/transport-config.d.ts +161 -0
- package/dist/src/transport-config.js +15 -0
- package/dist/src/validation.d.ts +14 -0
- package/dist/src/validation.js +3 -0
- package/dist/src/workflow-journal.d.ts +125 -0
- package/dist/src/workflow-journal.js +27 -0
- package/dist/src/workspace-config.d.ts +18 -0
- package/dist/src/workspace-config.js +13 -0
- package/dist/src/workspace-service.d.ts +16 -0
- package/dist/src/workspace-service.js +13 -0
- package/dist/src/workspace.d.ts +204 -0
- package/dist/src/workspace.js +76 -911
- package/package.json +55 -4
- package/dist/src/engine.js +0 -2278
- package/dist/src/providerRuntime.js +0 -1630
- package/dist/src/rig.js +0 -2374
- package/dist/src/server.js +0 -1053
- package/dist/src/serviceFabric.js +0 -1066
- package/dist/src/ws.js +0 -2968
- /package/dist/src/{ipc.js → agent-roles.js} +0 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const WorkspaceIsolation: Schema.Literals<readonly ["worktree", "directory"]>;
|
|
3
|
+
export type WorkspaceIsolation = typeof WorkspaceIsolation.Type;
|
|
4
|
+
/**
|
|
5
|
+
* Git checkout strategy for agent workspaces. This is git HYGIENE (parallel
|
|
6
|
+
* runs don't trample each other), NOT a security boundary — the security
|
|
7
|
+
* boundary is `workspace.sandbox`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WorkspaceCheckout: Schema.Literals<readonly ["worktree", "directory"]>;
|
|
10
|
+
export type WorkspaceCheckout = typeof WorkspaceCheckout.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Security sandbox mode for agent processes (macOS seatbelt / Linux bwrap).
|
|
13
|
+
* "enforce" (the default) refuses to run unsandboxed when no backend is
|
|
14
|
+
* available; "auto" degrades to unsandboxed with a warning; "off" opts out
|
|
15
|
+
* explicitly.
|
|
16
|
+
*/
|
|
17
|
+
export declare const WorkspaceSandbox: Schema.Literals<readonly ["enforce", "auto", "off"]>;
|
|
18
|
+
export type WorkspaceSandbox = typeof WorkspaceSandbox.Type;
|
|
19
|
+
export declare const ScopeSearchPrefix: Schema.Struct<{
|
|
20
|
+
readonly prefix: Schema.String;
|
|
21
|
+
readonly matchStartsWith: Schema.optional<Schema.$Array<Schema.String>>;
|
|
22
|
+
readonly matchExact: Schema.optional<Schema.$Array<Schema.String>>;
|
|
23
|
+
}>;
|
|
24
|
+
export type ScopeSearchPrefix = typeof ScopeSearchPrefix.Type;
|
|
25
|
+
export declare const ScopeNormalizationRules: Schema.Struct<{
|
|
26
|
+
readonly stripPrefixes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
27
|
+
readonly searchPrefixes: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
28
|
+
readonly prefix: Schema.String;
|
|
29
|
+
readonly matchStartsWith: Schema.optional<Schema.$Array<Schema.String>>;
|
|
30
|
+
readonly matchExact: Schema.optional<Schema.$Array<Schema.String>>;
|
|
31
|
+
}>>>;
|
|
32
|
+
}>;
|
|
33
|
+
export type ScopeNormalizationRules = typeof ScopeNormalizationRules.Type;
|
|
34
|
+
export declare const WorkspaceConfig: Schema.Struct<{
|
|
35
|
+
readonly mainRepo: Schema.String;
|
|
36
|
+
/** Canonical name for the checkout axis; `isolation` is the deprecated alias. */
|
|
37
|
+
readonly checkout: Schema.optional<Schema.Literals<readonly ["worktree", "directory"]>>;
|
|
38
|
+
/** @deprecated Renamed to `checkout` — worktrees are git hygiene, not isolation. */
|
|
39
|
+
readonly isolation: Schema.optional<Schema.Literals<readonly ["worktree", "directory"]>>;
|
|
40
|
+
readonly sandbox: Schema.optional<Schema.Literals<readonly ["enforce", "auto", "off"]>>;
|
|
41
|
+
readonly scopeNormalization: Schema.optional<Schema.Struct<{
|
|
42
|
+
readonly stripPrefixes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
43
|
+
readonly searchPrefixes: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
44
|
+
readonly prefix: Schema.String;
|
|
45
|
+
readonly matchStartsWith: Schema.optional<Schema.$Array<Schema.String>>;
|
|
46
|
+
readonly matchExact: Schema.optional<Schema.$Array<Schema.String>>;
|
|
47
|
+
}>>>;
|
|
48
|
+
}>>;
|
|
49
|
+
}>;
|
|
50
|
+
export type WorkspaceConfig = typeof WorkspaceConfig.Type;
|
|
51
|
+
export declare const TaskSourceConfig: Schema.Struct<{
|
|
52
|
+
readonly kind: Schema.String;
|
|
53
|
+
readonly path: Schema.optional<Schema.String>;
|
|
54
|
+
readonly owner: Schema.optional<Schema.String>;
|
|
55
|
+
readonly repo: Schema.optional<Schema.String>;
|
|
56
|
+
readonly labels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
57
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["open", "closed", "all"]>>;
|
|
58
|
+
readonly url: Schema.optional<Schema.String>;
|
|
59
|
+
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
60
|
+
}>;
|
|
61
|
+
export type TaskSourceConfig = typeof TaskSourceConfig.Type;
|
|
62
|
+
export declare const RuntimeHarness: Schema.Literal<"pi">;
|
|
63
|
+
export type RuntimeHarness = typeof RuntimeHarness.Type;
|
|
64
|
+
export declare const RigRuntimeMode: Schema.Literals<readonly ["yolo", "approval-required"]>;
|
|
65
|
+
export type RigRuntimeMode = typeof RigRuntimeMode.Type;
|
|
66
|
+
/**
|
|
67
|
+
* Pi harness configuration. `packages` lists Pi extension packages (npm
|
|
68
|
+
* specifiers like "pi-subagents" or "pi-web-access@1.2.0", or git sources)
|
|
69
|
+
* that Rig materializes into the workspace's `.pi/settings.json`. Pi
|
|
70
|
+
* auto-installs missing packages at session start, so worker sessions on
|
|
71
|
+
* remote hosts pick them up with no extra provisioning.
|
|
72
|
+
*/
|
|
73
|
+
export declare const PiRuntimeConfig: Schema.Struct<{
|
|
74
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.String>>;
|
|
75
|
+
}>;
|
|
76
|
+
export type PiRuntimeConfig = typeof PiRuntimeConfig.Type;
|
|
77
|
+
/**
|
|
78
|
+
* Rig backbone + placement, surfaced so EVERY value Rig would otherwise compute
|
|
79
|
+
* or hardcode is settable from `rig.config.ts`. Resolution order everywhere is
|
|
80
|
+
* ambient env → `rig.config.ts` → computed default (the default is the value Rig
|
|
81
|
+
* computes today, e.g. host `where.rig-does.work`). All optional: omit and you get
|
|
82
|
+
* the computed default with zero config.
|
|
83
|
+
*
|
|
84
|
+
* - `host` : the shared collab/discovery backbone host. relayUrl + registryUrl
|
|
85
|
+
* derive from it (`wss://<host>`, `https://<host>/registry`) unless
|
|
86
|
+
* set explicitly below.
|
|
87
|
+
* - `relayUrl`/`registryUrl` : explicit overrides of the derived backbone
|
|
88
|
+
* endpoints.
|
|
89
|
+
* - `sshTarget`/`checkout` : remote run PLACEMENT (which machine executes a run,
|
|
90
|
+
* and the checkout dir there) — formerly only in endpoints.toml /
|
|
91
|
+
* connection.json, now surfaceable here too.
|
|
92
|
+
*/
|
|
93
|
+
export declare const RigServerConfig: Schema.Struct<{
|
|
94
|
+
readonly host: Schema.optional<Schema.String>;
|
|
95
|
+
readonly relayUrl: Schema.optional<Schema.String>;
|
|
96
|
+
readonly registryUrl: Schema.optional<Schema.String>;
|
|
97
|
+
readonly sshTarget: Schema.optional<Schema.String>;
|
|
98
|
+
readonly checkout: Schema.optional<Schema.String>;
|
|
99
|
+
}>;
|
|
100
|
+
export type RigServerConfig = typeof RigServerConfig.Type;
|
|
101
|
+
export declare const RuntimeSupervisorConfig: Schema.Struct<{
|
|
102
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
103
|
+
readonly pauseOnAttention: Schema.optional<Schema.Boolean>;
|
|
104
|
+
readonly stopWhen: Schema.optional<Schema.$Array<Schema.Literals<readonly ["all-done", "all-human-blocked", "blocked", "work-pending", "max-tasks", "budget", "judge-stop", "operator-stop", "source-error"]>>>;
|
|
105
|
+
readonly maxTasks: Schema.optional<Schema.Int>;
|
|
106
|
+
readonly selectionPolicy: Schema.optional<Schema.Literals<readonly ["rank", "max-unblock", "blocking-only"]>>;
|
|
107
|
+
readonly failFast: Schema.optional<Schema.Boolean>;
|
|
108
|
+
}>;
|
|
109
|
+
export type RuntimeSupervisorConfig = typeof RuntimeSupervisorConfig.Type;
|
|
110
|
+
export declare const RuntimeDriftConfig: Schema.Struct<{
|
|
111
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
112
|
+
readonly failOnDrift: Schema.optional<Schema.Boolean>;
|
|
113
|
+
readonly docsGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
114
|
+
readonly ignoreGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
115
|
+
readonly judge: Schema.optional<Schema.Boolean>;
|
|
116
|
+
}>;
|
|
117
|
+
export type RuntimeDriftConfig = typeof RuntimeDriftConfig.Type;
|
|
118
|
+
export declare const RuntimePlanningConfig: Schema.Struct<{
|
|
119
|
+
readonly architectRole: Schema.optional<Schema.String>;
|
|
120
|
+
readonly autoResolveFromCode: Schema.optional<Schema.Boolean>;
|
|
121
|
+
readonly materialize: Schema.optional<Schema.Literals<readonly ["dry-run", "create"]>>;
|
|
122
|
+
}>;
|
|
123
|
+
export type RuntimePlanningConfig = typeof RuntimePlanningConfig.Type;
|
|
124
|
+
export declare const RuntimeConfig: Schema.Struct<{
|
|
125
|
+
readonly agentRoles: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
126
|
+
readonly timeouts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
127
|
+
readonly harness: Schema.optional<Schema.Literal<"pi">>;
|
|
128
|
+
readonly model: Schema.optional<Schema.String>;
|
|
129
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["yolo", "approval-required"]>>;
|
|
130
|
+
readonly pi: Schema.optional<Schema.Struct<{
|
|
131
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.String>>;
|
|
132
|
+
}>>;
|
|
133
|
+
/** Backbone (relay/registry) + remote placement; computed defaults under the hood. */
|
|
134
|
+
readonly server: Schema.optional<Schema.Struct<{
|
|
135
|
+
readonly host: Schema.optional<Schema.String>;
|
|
136
|
+
readonly relayUrl: Schema.optional<Schema.String>;
|
|
137
|
+
readonly registryUrl: Schema.optional<Schema.String>;
|
|
138
|
+
readonly sshTarget: Schema.optional<Schema.String>;
|
|
139
|
+
readonly checkout: Schema.optional<Schema.String>;
|
|
140
|
+
}>>;
|
|
141
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
142
|
+
readonly capabilityPrecedence: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.Trim>>>;
|
|
143
|
+
readonly kernelReplacementGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
144
|
+
readonly pluginId: Schema.Trim;
|
|
145
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
146
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
147
|
+
}>>>;
|
|
148
|
+
}>>;
|
|
149
|
+
readonly supervisor: Schema.optional<Schema.Struct<{
|
|
150
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
151
|
+
readonly pauseOnAttention: Schema.optional<Schema.Boolean>;
|
|
152
|
+
readonly stopWhen: Schema.optional<Schema.$Array<Schema.Literals<readonly ["all-done", "all-human-blocked", "blocked", "work-pending", "max-tasks", "budget", "judge-stop", "operator-stop", "source-error"]>>>;
|
|
153
|
+
readonly maxTasks: Schema.optional<Schema.Int>;
|
|
154
|
+
readonly selectionPolicy: Schema.optional<Schema.Literals<readonly ["rank", "max-unblock", "blocking-only"]>>;
|
|
155
|
+
readonly failFast: Schema.optional<Schema.Boolean>;
|
|
156
|
+
}>>;
|
|
157
|
+
readonly drift: Schema.optional<Schema.Struct<{
|
|
158
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
159
|
+
readonly failOnDrift: Schema.optional<Schema.Boolean>;
|
|
160
|
+
readonly docsGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
161
|
+
readonly ignoreGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
162
|
+
readonly judge: Schema.optional<Schema.Boolean>;
|
|
163
|
+
}>>;
|
|
164
|
+
readonly planning: Schema.optional<Schema.Struct<{
|
|
165
|
+
readonly architectRole: Schema.optional<Schema.String>;
|
|
166
|
+
readonly autoResolveFromCode: Schema.optional<Schema.Boolean>;
|
|
167
|
+
readonly materialize: Schema.optional<Schema.Literals<readonly ["dry-run", "create"]>>;
|
|
168
|
+
}>>;
|
|
169
|
+
}>;
|
|
170
|
+
export type RuntimeConfig = typeof RuntimeConfig.Type;
|
|
171
|
+
export declare const ProjectIdentity: Schema.Struct<{
|
|
172
|
+
readonly name: Schema.String;
|
|
173
|
+
readonly repo: Schema.optional<Schema.String>;
|
|
174
|
+
}>;
|
|
175
|
+
export type ProjectIdentity = typeof ProjectIdentity.Type;
|
|
176
|
+
export declare const PlanningConfig: Schema.Struct<{
|
|
177
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "always", "off"]>>;
|
|
178
|
+
readonly requireForLabels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
179
|
+
readonly skipForLabels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
180
|
+
}>;
|
|
181
|
+
export type PlanningConfig = typeof PlanningConfig.Type;
|
|
182
|
+
export declare const GitHubProjectStatusConfig: Schema.Struct<{
|
|
183
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
184
|
+
readonly projectId: Schema.optional<Schema.String>;
|
|
185
|
+
readonly statusFieldId: Schema.optional<Schema.String>;
|
|
186
|
+
readonly statuses: Schema.optional<Schema.Struct<{
|
|
187
|
+
readonly running: Schema.optional<Schema.String>;
|
|
188
|
+
readonly prOpen: Schema.optional<Schema.String>;
|
|
189
|
+
readonly ciFixing: Schema.optional<Schema.String>;
|
|
190
|
+
readonly merging: Schema.optional<Schema.String>;
|
|
191
|
+
readonly done: Schema.optional<Schema.String>;
|
|
192
|
+
readonly needsAttention: Schema.optional<Schema.String>;
|
|
193
|
+
}>>;
|
|
194
|
+
}>;
|
|
195
|
+
export type GitHubProjectStatusConfig = typeof GitHubProjectStatusConfig.Type;
|
|
196
|
+
export declare const GitHubConfig: Schema.Struct<{
|
|
197
|
+
/** @deprecated Ignored. Source adapters perform mechanical IO only; lifecycle/reflection owns issue-update policy. */
|
|
198
|
+
readonly issueUpdates: Schema.optional<Schema.String>;
|
|
199
|
+
readonly projects: Schema.optional<Schema.Struct<{
|
|
200
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
201
|
+
readonly projectId: Schema.optional<Schema.String>;
|
|
202
|
+
readonly statusFieldId: Schema.optional<Schema.String>;
|
|
203
|
+
readonly statuses: Schema.optional<Schema.Struct<{
|
|
204
|
+
readonly running: Schema.optional<Schema.String>;
|
|
205
|
+
readonly prOpen: Schema.optional<Schema.String>;
|
|
206
|
+
readonly ciFixing: Schema.optional<Schema.String>;
|
|
207
|
+
readonly merging: Schema.optional<Schema.String>;
|
|
208
|
+
readonly done: Schema.optional<Schema.String>;
|
|
209
|
+
readonly needsAttention: Schema.optional<Schema.String>;
|
|
210
|
+
}>>;
|
|
211
|
+
}>>;
|
|
212
|
+
}>;
|
|
213
|
+
export type GitHubConfig = typeof GitHubConfig.Type;
|
|
214
|
+
export declare const AutomationConfig: Schema.Struct<{
|
|
215
|
+
readonly maxValidationAttempts: Schema.optional<Schema.Number>;
|
|
216
|
+
readonly maxPrFixIterations: Schema.optional<Schema.Number>;
|
|
217
|
+
}>;
|
|
218
|
+
export type AutomationConfig = typeof AutomationConfig.Type;
|
|
219
|
+
export declare const PullRequestConfig: Schema.Struct<{
|
|
220
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "ask", "off"]>>;
|
|
221
|
+
readonly watchChecks: Schema.optional<Schema.Boolean>;
|
|
222
|
+
readonly autoFixChecks: Schema.optional<Schema.Boolean>;
|
|
223
|
+
readonly autoFixReview: Schema.optional<Schema.Boolean>;
|
|
224
|
+
readonly pendingTimeoutMs: Schema.optional<Schema.Number>;
|
|
225
|
+
readonly pendingPollMs: Schema.optional<Schema.Number>;
|
|
226
|
+
}>;
|
|
227
|
+
export type PullRequestConfig = typeof PullRequestConfig.Type;
|
|
228
|
+
export declare const MergeConfig: Schema.Struct<{
|
|
229
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "off", "pr-ready"]>>;
|
|
230
|
+
readonly method: Schema.optional<Schema.Literals<readonly ["repo-default", "squash", "merge", "rebase"]>>;
|
|
231
|
+
readonly deleteBranch: Schema.optional<Schema.Union<readonly [Schema.Literal<"repo-default">, Schema.Boolean]>>;
|
|
232
|
+
readonly allowedFailures: Schema.optional<Schema.$Array<Schema.String>>;
|
|
233
|
+
readonly bypass: Schema.optional<Schema.Boolean>;
|
|
234
|
+
}>;
|
|
235
|
+
export type MergeConfig = typeof MergeConfig.Type;
|
|
236
|
+
export declare const IssueAnalysisConfig: Schema.Struct<{
|
|
237
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
238
|
+
readonly harness: Schema.optional<Schema.Literal<"pi">>;
|
|
239
|
+
readonly model: Schema.optional<Schema.String>;
|
|
240
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["continuous", "off"]>>;
|
|
241
|
+
}>;
|
|
242
|
+
export type IssueAnalysisConfig = typeof IssueAnalysisConfig.Type;
|
|
243
|
+
export declare const ReviewConfig: Schema.Struct<{
|
|
244
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["off", "advisory", "required"]>>;
|
|
245
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["greptile", "github"]>>;
|
|
246
|
+
}>;
|
|
247
|
+
export type ReviewConfig = typeof ReviewConfig.Type;
|
|
248
|
+
export declare const RigConfig: Schema.Struct<{
|
|
249
|
+
readonly project: Schema.Struct<{
|
|
250
|
+
readonly name: Schema.String;
|
|
251
|
+
readonly repo: Schema.optional<Schema.String>;
|
|
252
|
+
}>;
|
|
253
|
+
readonly plugins: Schema.$Array<Schema.Struct<{
|
|
254
|
+
readonly name: Schema.String;
|
|
255
|
+
readonly version: Schema.String;
|
|
256
|
+
readonly provides: Schema.optional<Schema.$Array<Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>>>;
|
|
257
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>>>;
|
|
258
|
+
readonly replaces: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
259
|
+
readonly capability: Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>;
|
|
260
|
+
readonly providerPluginId: Schema.Trim;
|
|
261
|
+
}>, Schema.Trim]>>>;
|
|
262
|
+
readonly contributes: Schema.optional<Schema.Struct<{
|
|
263
|
+
readonly validators: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
264
|
+
readonly id: Schema.String;
|
|
265
|
+
readonly category: Schema.Literals<readonly ["boundary", "contract", "integration", "regression", "external", "custom"]>;
|
|
266
|
+
readonly description: Schema.optional<Schema.String>;
|
|
267
|
+
}>>>;
|
|
268
|
+
readonly hooks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
269
|
+
readonly id: Schema.String;
|
|
270
|
+
readonly event: Schema.Literals<readonly ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"]>;
|
|
271
|
+
readonly matcher: Schema.Union<readonly [Schema.Struct<{
|
|
272
|
+
readonly kind: Schema.Literal<"all">;
|
|
273
|
+
}>, Schema.Struct<{
|
|
274
|
+
readonly kind: Schema.Literal<"tool">;
|
|
275
|
+
readonly name: Schema.String;
|
|
276
|
+
}>, Schema.Struct<{
|
|
277
|
+
readonly kind: Schema.Literal<"glob">;
|
|
278
|
+
readonly pattern: Schema.String;
|
|
279
|
+
}>]>;
|
|
280
|
+
readonly command: Schema.optional<Schema.String>;
|
|
281
|
+
readonly description: Schema.optional<Schema.String>;
|
|
282
|
+
}>>>;
|
|
283
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
284
|
+
readonly id: Schema.String;
|
|
285
|
+
readonly path: Schema.String;
|
|
286
|
+
readonly description: Schema.optional<Schema.String>;
|
|
287
|
+
}>>>;
|
|
288
|
+
readonly repoSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
289
|
+
readonly id: Schema.String;
|
|
290
|
+
readonly url: Schema.String;
|
|
291
|
+
readonly defaultPath: Schema.optional<Schema.String>;
|
|
292
|
+
readonly description: Schema.optional<Schema.String>;
|
|
293
|
+
readonly defaultBranch: Schema.optional<Schema.String>;
|
|
294
|
+
readonly remoteEnvVar: Schema.optional<Schema.String>;
|
|
295
|
+
readonly checkoutEnvVar: Schema.optional<Schema.String>;
|
|
296
|
+
}>>>;
|
|
297
|
+
readonly agentRoles: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
298
|
+
readonly id: Schema.String;
|
|
299
|
+
readonly defaultModel: Schema.optional<Schema.String>;
|
|
300
|
+
readonly description: Schema.optional<Schema.String>;
|
|
301
|
+
}>>>;
|
|
302
|
+
readonly taskFieldSchemas: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
303
|
+
readonly id: Schema.String;
|
|
304
|
+
readonly fieldName: Schema.String;
|
|
305
|
+
readonly schemaJson: Schema.String;
|
|
306
|
+
}>>>;
|
|
307
|
+
readonly taskSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
308
|
+
readonly id: Schema.String;
|
|
309
|
+
readonly kind: Schema.String;
|
|
310
|
+
readonly description: Schema.optional<Schema.String>;
|
|
311
|
+
}>>>;
|
|
312
|
+
readonly cliCommands: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
313
|
+
readonly id: Schema.String;
|
|
314
|
+
readonly family: Schema.optional<Schema.String>;
|
|
315
|
+
readonly command: Schema.optional<Schema.String>;
|
|
316
|
+
readonly description: Schema.optional<Schema.String>;
|
|
317
|
+
readonly usage: Schema.optional<Schema.String>;
|
|
318
|
+
readonly aliases: Schema.optional<Schema.$Array<Schema.String>>;
|
|
319
|
+
readonly projectRequired: Schema.optional<Schema.Boolean>;
|
|
320
|
+
readonly rootDefault: Schema.optional<Schema.Boolean>;
|
|
321
|
+
readonly productRoot: Schema.optional<Schema.Boolean>;
|
|
322
|
+
readonly subcommands: Schema.optional<Schema.$Array<Schema.String>>;
|
|
323
|
+
}>>>;
|
|
324
|
+
readonly stages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
325
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
326
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
327
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
328
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
329
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
330
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
331
|
+
}>>>;
|
|
332
|
+
readonly stageMutations: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
333
|
+
readonly op: Schema.Literal<"insert">;
|
|
334
|
+
readonly stage: Schema.Struct<{
|
|
335
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
336
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
337
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
338
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
339
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
340
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
341
|
+
}>;
|
|
342
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
343
|
+
}>, Schema.Struct<{
|
|
344
|
+
readonly op: Schema.Literal<"remove">;
|
|
345
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
346
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
347
|
+
}>, Schema.Struct<{
|
|
348
|
+
readonly op: Schema.Literal<"replace">;
|
|
349
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
350
|
+
readonly stage: Schema.Struct<{
|
|
351
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
352
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
353
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
354
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
355
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
356
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
357
|
+
}>;
|
|
358
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
359
|
+
}>, Schema.Struct<{
|
|
360
|
+
readonly op: Schema.Literal<"wrap">;
|
|
361
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
362
|
+
readonly around: Schema.Struct<{
|
|
363
|
+
readonly id: Schema.Trim;
|
|
364
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
365
|
+
}>;
|
|
366
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
367
|
+
}>, Schema.Struct<{
|
|
368
|
+
readonly op: Schema.Literal<"reorder">;
|
|
369
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
370
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
371
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
372
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
373
|
+
}>]>>>;
|
|
374
|
+
readonly capabilities: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
375
|
+
readonly id: Schema.String;
|
|
376
|
+
readonly title: Schema.String;
|
|
377
|
+
readonly description: Schema.optional<Schema.String>;
|
|
378
|
+
readonly commandId: Schema.optional<Schema.String>;
|
|
379
|
+
readonly panelId: Schema.optional<Schema.String>;
|
|
380
|
+
readonly run: Schema.optional<Schema.declare<import("./plugin").CapabilityRun, import("./plugin").CapabilityRun>>;
|
|
381
|
+
}>>>;
|
|
382
|
+
readonly panels: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
383
|
+
readonly id: Schema.String;
|
|
384
|
+
readonly slot: Schema.String;
|
|
385
|
+
readonly title: Schema.String;
|
|
386
|
+
readonly capabilityId: Schema.optional<Schema.String>;
|
|
387
|
+
readonly badge: Schema.optional<Schema.String>;
|
|
388
|
+
readonly disabled: Schema.optional<Schema.Boolean>;
|
|
389
|
+
readonly description: Schema.optional<Schema.String>;
|
|
390
|
+
}>>>;
|
|
391
|
+
readonly blockerClassifiers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
392
|
+
readonly id: Schema.String;
|
|
393
|
+
readonly description: Schema.optional<Schema.String>;
|
|
394
|
+
readonly priority: Schema.optional<Schema.Number>;
|
|
395
|
+
}>>>;
|
|
396
|
+
readonly sessionExtensions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
397
|
+
readonly id: Schema.String;
|
|
398
|
+
readonly description: Schema.optional<Schema.String>;
|
|
399
|
+
}>>>;
|
|
400
|
+
readonly seedEntrypoints: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
401
|
+
readonly id: Schema.String;
|
|
402
|
+
readonly description: Schema.optional<Schema.String>;
|
|
403
|
+
readonly basename: Schema.optional<Schema.String>;
|
|
404
|
+
readonly workerArg: Schema.optional<Schema.String>;
|
|
405
|
+
readonly insidePty: Schema.optional<Schema.Boolean>;
|
|
406
|
+
}>>>;
|
|
407
|
+
}>>;
|
|
408
|
+
}>>;
|
|
409
|
+
readonly taskSource: Schema.Struct<{
|
|
410
|
+
readonly kind: Schema.String;
|
|
411
|
+
readonly path: Schema.optional<Schema.String>;
|
|
412
|
+
readonly owner: Schema.optional<Schema.String>;
|
|
413
|
+
readonly repo: Schema.optional<Schema.String>;
|
|
414
|
+
readonly labels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
415
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["open", "closed", "all"]>>;
|
|
416
|
+
readonly url: Schema.optional<Schema.String>;
|
|
417
|
+
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
418
|
+
}>;
|
|
419
|
+
readonly workspace: Schema.Struct<{
|
|
420
|
+
readonly mainRepo: Schema.String;
|
|
421
|
+
/** Canonical name for the checkout axis; `isolation` is the deprecated alias. */
|
|
422
|
+
readonly checkout: Schema.optional<Schema.Literals<readonly ["worktree", "directory"]>>;
|
|
423
|
+
/** @deprecated Renamed to `checkout` — worktrees are git hygiene, not isolation. */
|
|
424
|
+
readonly isolation: Schema.optional<Schema.Literals<readonly ["worktree", "directory"]>>;
|
|
425
|
+
readonly sandbox: Schema.optional<Schema.Literals<readonly ["enforce", "auto", "off"]>>;
|
|
426
|
+
readonly scopeNormalization: Schema.optional<Schema.Struct<{
|
|
427
|
+
readonly stripPrefixes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
428
|
+
readonly searchPrefixes: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
429
|
+
readonly prefix: Schema.String;
|
|
430
|
+
readonly matchStartsWith: Schema.optional<Schema.$Array<Schema.String>>;
|
|
431
|
+
readonly matchExact: Schema.optional<Schema.$Array<Schema.String>>;
|
|
432
|
+
}>>>;
|
|
433
|
+
}>>;
|
|
434
|
+
}>;
|
|
435
|
+
readonly runtime: Schema.optional<Schema.Struct<{
|
|
436
|
+
readonly agentRoles: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
437
|
+
readonly timeouts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
438
|
+
readonly harness: Schema.optional<Schema.Literal<"pi">>;
|
|
439
|
+
readonly model: Schema.optional<Schema.String>;
|
|
440
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["yolo", "approval-required"]>>;
|
|
441
|
+
readonly pi: Schema.optional<Schema.Struct<{
|
|
442
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.String>>;
|
|
443
|
+
}>>;
|
|
444
|
+
/** Backbone (relay/registry) + remote placement; computed defaults under the hood. */
|
|
445
|
+
readonly server: Schema.optional<Schema.Struct<{
|
|
446
|
+
readonly host: Schema.optional<Schema.String>;
|
|
447
|
+
readonly relayUrl: Schema.optional<Schema.String>;
|
|
448
|
+
readonly registryUrl: Schema.optional<Schema.String>;
|
|
449
|
+
readonly sshTarget: Schema.optional<Schema.String>;
|
|
450
|
+
readonly checkout: Schema.optional<Schema.String>;
|
|
451
|
+
}>>;
|
|
452
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
453
|
+
readonly capabilityPrecedence: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.Trim>>>;
|
|
454
|
+
readonly kernelReplacementGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
455
|
+
readonly pluginId: Schema.Trim;
|
|
456
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
457
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
458
|
+
}>>>;
|
|
459
|
+
}>>;
|
|
460
|
+
readonly supervisor: Schema.optional<Schema.Struct<{
|
|
461
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
462
|
+
readonly pauseOnAttention: Schema.optional<Schema.Boolean>;
|
|
463
|
+
readonly stopWhen: Schema.optional<Schema.$Array<Schema.Literals<readonly ["all-done", "all-human-blocked", "blocked", "work-pending", "max-tasks", "budget", "judge-stop", "operator-stop", "source-error"]>>>;
|
|
464
|
+
readonly maxTasks: Schema.optional<Schema.Int>;
|
|
465
|
+
readonly selectionPolicy: Schema.optional<Schema.Literals<readonly ["rank", "max-unblock", "blocking-only"]>>;
|
|
466
|
+
readonly failFast: Schema.optional<Schema.Boolean>;
|
|
467
|
+
}>>;
|
|
468
|
+
readonly drift: Schema.optional<Schema.Struct<{
|
|
469
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
470
|
+
readonly failOnDrift: Schema.optional<Schema.Boolean>;
|
|
471
|
+
readonly docsGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
472
|
+
readonly ignoreGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
473
|
+
readonly judge: Schema.optional<Schema.Boolean>;
|
|
474
|
+
}>>;
|
|
475
|
+
readonly planning: Schema.optional<Schema.Struct<{
|
|
476
|
+
readonly architectRole: Schema.optional<Schema.String>;
|
|
477
|
+
readonly autoResolveFromCode: Schema.optional<Schema.Boolean>;
|
|
478
|
+
readonly materialize: Schema.optional<Schema.Literals<readonly ["dry-run", "create"]>>;
|
|
479
|
+
}>>;
|
|
480
|
+
}>>;
|
|
481
|
+
readonly planning: Schema.optional<Schema.Struct<{
|
|
482
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "always", "off"]>>;
|
|
483
|
+
readonly requireForLabels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
484
|
+
readonly skipForLabels: Schema.optional<Schema.$Array<Schema.String>>;
|
|
485
|
+
}>>;
|
|
486
|
+
readonly github: Schema.optional<Schema.Struct<{
|
|
487
|
+
/** @deprecated Ignored. Source adapters perform mechanical IO only; lifecycle/reflection owns issue-update policy. */
|
|
488
|
+
readonly issueUpdates: Schema.optional<Schema.String>;
|
|
489
|
+
readonly projects: Schema.optional<Schema.Struct<{
|
|
490
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
491
|
+
readonly projectId: Schema.optional<Schema.String>;
|
|
492
|
+
readonly statusFieldId: Schema.optional<Schema.String>;
|
|
493
|
+
readonly statuses: Schema.optional<Schema.Struct<{
|
|
494
|
+
readonly running: Schema.optional<Schema.String>;
|
|
495
|
+
readonly prOpen: Schema.optional<Schema.String>;
|
|
496
|
+
readonly ciFixing: Schema.optional<Schema.String>;
|
|
497
|
+
readonly merging: Schema.optional<Schema.String>;
|
|
498
|
+
readonly done: Schema.optional<Schema.String>;
|
|
499
|
+
readonly needsAttention: Schema.optional<Schema.String>;
|
|
500
|
+
}>>;
|
|
501
|
+
}>>;
|
|
502
|
+
}>>;
|
|
503
|
+
readonly automation: Schema.optional<Schema.Struct<{
|
|
504
|
+
readonly maxValidationAttempts: Schema.optional<Schema.Number>;
|
|
505
|
+
readonly maxPrFixIterations: Schema.optional<Schema.Number>;
|
|
506
|
+
}>>;
|
|
507
|
+
readonly pr: Schema.optional<Schema.Struct<{
|
|
508
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "ask", "off"]>>;
|
|
509
|
+
readonly watchChecks: Schema.optional<Schema.Boolean>;
|
|
510
|
+
readonly autoFixChecks: Schema.optional<Schema.Boolean>;
|
|
511
|
+
readonly autoFixReview: Schema.optional<Schema.Boolean>;
|
|
512
|
+
readonly pendingTimeoutMs: Schema.optional<Schema.Number>;
|
|
513
|
+
readonly pendingPollMs: Schema.optional<Schema.Number>;
|
|
514
|
+
}>>;
|
|
515
|
+
readonly merge: Schema.optional<Schema.Struct<{
|
|
516
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "off", "pr-ready"]>>;
|
|
517
|
+
readonly method: Schema.optional<Schema.Literals<readonly ["repo-default", "squash", "merge", "rebase"]>>;
|
|
518
|
+
readonly deleteBranch: Schema.optional<Schema.Union<readonly [Schema.Literal<"repo-default">, Schema.Boolean]>>;
|
|
519
|
+
readonly allowedFailures: Schema.optional<Schema.$Array<Schema.String>>;
|
|
520
|
+
readonly bypass: Schema.optional<Schema.Boolean>;
|
|
521
|
+
}>>;
|
|
522
|
+
readonly review: Schema.optional<Schema.Struct<{
|
|
523
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["off", "advisory", "required"]>>;
|
|
524
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["greptile", "github"]>>;
|
|
525
|
+
}>>;
|
|
526
|
+
readonly issueAnalysis: Schema.optional<Schema.Struct<{
|
|
527
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
528
|
+
readonly harness: Schema.optional<Schema.Literal<"pi">>;
|
|
529
|
+
readonly model: Schema.optional<Schema.String>;
|
|
530
|
+
readonly mode: Schema.optional<Schema.Literals<readonly ["continuous", "off"]>>;
|
|
531
|
+
}>>;
|
|
532
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
533
|
+
readonly capabilityPrecedence: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.Trim>>>;
|
|
534
|
+
readonly kernelReplacementGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
535
|
+
readonly pluginId: Schema.Trim;
|
|
536
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
537
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
538
|
+
}>>>;
|
|
539
|
+
}>>;
|
|
540
|
+
/**
|
|
541
|
+
* Generic env-override map: the single escape hatch that makes EVERY env-driven
|
|
542
|
+
* value (the dozens of `RIG_*` / `RIG_BAKED_*` / `RIG_BROWSER_*` knobs, plus any
|
|
543
|
+
* computed value that reads an env var) settable from `rig.config.ts` without a
|
|
544
|
+
* typed field per knob. The CLI applies these to `process.env` at startup
|
|
545
|
+
* FILL-IF-UNSET, so the precedence is:
|
|
546
|
+
* ambient process env at run time (top winner)
|
|
547
|
+
* → `rig.config.ts` (this `env` map + typed sections)
|
|
548
|
+
* → computed default / derived value (under the hood).
|
|
549
|
+
* i.e. `RIG_X=… rig …` always beats the config; the config beats the default.
|
|
550
|
+
*/
|
|
551
|
+
readonly env: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
552
|
+
}>;
|
|
553
|
+
export type RigConfig = typeof RigConfig.Type;
|