@h-rig/contracts 0.0.6-alpha.18 → 0.0.6-alpha.181
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,476 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ValidatorCategory: Schema.Literals<readonly ["boundary", "contract", "integration", "regression", "external", "custom"]>;
|
|
3
|
+
export type ValidatorCategory = typeof ValidatorCategory.Type;
|
|
4
|
+
export declare const ValidatorRegistration: Schema.Struct<{
|
|
5
|
+
readonly id: Schema.String;
|
|
6
|
+
readonly category: Schema.Literals<readonly ["boundary", "contract", "integration", "regression", "external", "custom"]>;
|
|
7
|
+
readonly description: Schema.optional<Schema.String>;
|
|
8
|
+
}>;
|
|
9
|
+
export type ValidatorRegistration = typeof ValidatorRegistration.Type;
|
|
10
|
+
export declare const AgentSessionHookEvent: Schema.Literals<readonly ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"]>;
|
|
11
|
+
export type AgentSessionHookEvent = typeof AgentSessionHookEvent.Type;
|
|
12
|
+
export declare const HookEvent: Schema.Literals<readonly ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"]>;
|
|
13
|
+
export type HookEvent = typeof HookEvent.Type;
|
|
14
|
+
export declare const HookMatcher: Schema.Union<readonly [Schema.Struct<{
|
|
15
|
+
readonly kind: Schema.Literal<"all">;
|
|
16
|
+
}>, Schema.Struct<{
|
|
17
|
+
readonly kind: Schema.Literal<"tool">;
|
|
18
|
+
readonly name: Schema.String;
|
|
19
|
+
}>, Schema.Struct<{
|
|
20
|
+
readonly kind: Schema.Literal<"glob">;
|
|
21
|
+
readonly pattern: Schema.String;
|
|
22
|
+
}>]>;
|
|
23
|
+
export type HookMatcher = typeof HookMatcher.Type;
|
|
24
|
+
export declare const HookRegistration: Schema.Struct<{
|
|
25
|
+
readonly id: Schema.String;
|
|
26
|
+
readonly event: Schema.Literals<readonly ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"]>;
|
|
27
|
+
readonly matcher: Schema.Union<readonly [Schema.Struct<{
|
|
28
|
+
readonly kind: Schema.Literal<"all">;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly kind: Schema.Literal<"tool">;
|
|
31
|
+
readonly name: Schema.String;
|
|
32
|
+
}>, Schema.Struct<{
|
|
33
|
+
readonly kind: Schema.Literal<"glob">;
|
|
34
|
+
readonly pattern: Schema.String;
|
|
35
|
+
}>]>;
|
|
36
|
+
/**
|
|
37
|
+
* Shell command Claude Code invokes when this hook fires. Resolved as-is by
|
|
38
|
+
* Claude Code's hook runner. Use absolute paths or expand
|
|
39
|
+
* `$CLAUDE_PROJECT_DIR` for project-relative paths.
|
|
40
|
+
*
|
|
41
|
+
* Alternative: leave `command` unset and ship a typed implementation via
|
|
42
|
+
* definePlugin runtime fields (`{ hooks: { [hookId]: fn } }`) — see
|
|
43
|
+
* `HookContext`/`HookResult`/`HookImplementation` in plugin-hooks.ts. The
|
|
44
|
+
* runtime materializes a shim command for typed hooks automatically. A hook
|
|
45
|
+
* may not have both a `command` and a typed implementation.
|
|
46
|
+
*/
|
|
47
|
+
readonly command: Schema.optional<Schema.String>;
|
|
48
|
+
readonly description: Schema.optional<Schema.String>;
|
|
49
|
+
}>;
|
|
50
|
+
export type HookRegistration = typeof HookRegistration.Type;
|
|
51
|
+
export declare const SkillRegistration: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.String;
|
|
53
|
+
readonly path: Schema.String;
|
|
54
|
+
readonly description: Schema.optional<Schema.String>;
|
|
55
|
+
}>;
|
|
56
|
+
export type SkillRegistration = typeof SkillRegistration.Type;
|
|
57
|
+
export declare const RepoSourceRegistration: Schema.Struct<{
|
|
58
|
+
readonly id: Schema.String;
|
|
59
|
+
readonly url: Schema.String;
|
|
60
|
+
readonly defaultPath: Schema.optional<Schema.String>;
|
|
61
|
+
readonly description: Schema.optional<Schema.String>;
|
|
62
|
+
readonly defaultBranch: Schema.optional<Schema.String>;
|
|
63
|
+
readonly remoteEnvVar: Schema.optional<Schema.String>;
|
|
64
|
+
readonly checkoutEnvVar: Schema.optional<Schema.String>;
|
|
65
|
+
}>;
|
|
66
|
+
export type RepoSourceRegistration = typeof RepoSourceRegistration.Type;
|
|
67
|
+
export declare const AgentRoleRegistration: Schema.Struct<{
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
readonly defaultModel: Schema.optional<Schema.String>;
|
|
70
|
+
readonly description: Schema.optional<Schema.String>;
|
|
71
|
+
}>;
|
|
72
|
+
export type AgentRoleRegistration = typeof AgentRoleRegistration.Type;
|
|
73
|
+
export declare const TaskFieldExtension: Schema.Struct<{
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly fieldName: Schema.String;
|
|
76
|
+
readonly schemaJson: Schema.String;
|
|
77
|
+
}>;
|
|
78
|
+
export type TaskFieldExtension = typeof TaskFieldExtension.Type;
|
|
79
|
+
export declare const TaskSourceKind: Schema.String;
|
|
80
|
+
export type TaskSourceKind = string;
|
|
81
|
+
export declare const TaskSourceRegistration: Schema.Struct<{
|
|
82
|
+
readonly id: Schema.String;
|
|
83
|
+
readonly kind: Schema.String;
|
|
84
|
+
readonly description: Schema.optional<Schema.String>;
|
|
85
|
+
}>;
|
|
86
|
+
export type TaskSourceRegistration = typeof TaskSourceRegistration.Type;
|
|
87
|
+
export declare const CliCommandRegistration: Schema.Struct<{
|
|
88
|
+
readonly id: Schema.String;
|
|
89
|
+
readonly family: Schema.optional<Schema.String>;
|
|
90
|
+
readonly command: Schema.optional<Schema.String>;
|
|
91
|
+
readonly description: Schema.optional<Schema.String>;
|
|
92
|
+
readonly usage: Schema.optional<Schema.String>;
|
|
93
|
+
readonly aliases: Schema.optional<Schema.$Array<Schema.String>>;
|
|
94
|
+
readonly projectRequired: Schema.optional<Schema.Boolean>;
|
|
95
|
+
readonly rootDefault: Schema.optional<Schema.Boolean>;
|
|
96
|
+
readonly productRoot: Schema.optional<Schema.Boolean>;
|
|
97
|
+
readonly subcommands: Schema.optional<Schema.$Array<Schema.String>>;
|
|
98
|
+
}>;
|
|
99
|
+
export type CliCommandRegistration = typeof CliCommandRegistration.Type;
|
|
100
|
+
/**
|
|
101
|
+
* The executable resolver a capability provider contributes. ON-CONTRACT: this
|
|
102
|
+
* is the single capability channel — the impl no longer "rides alongside" the
|
|
103
|
+
* manifest, ignored by Schema decode. It is declared (not a serializable shape)
|
|
104
|
+
* because it carries a function; manifest validation accepts it, JSON
|
|
105
|
+
* serialization simply omits it (functions are not JSON), exactly mirroring the
|
|
106
|
+
* old strip-on-decode behaviour but with the field now part of the type.
|
|
107
|
+
*/
|
|
108
|
+
export interface CapabilityRun {
|
|
109
|
+
(input: unknown): Promise<unknown> | unknown;
|
|
110
|
+
}
|
|
111
|
+
/** Schema vocab for {@link CapabilityRun} — a type-guard refinement, no behaviour. */
|
|
112
|
+
export declare const CapabilityRunSchema: Schema.declare<CapabilityRun, CapabilityRun>;
|
|
113
|
+
export declare const ProductCapabilityRegistration: Schema.Struct<{
|
|
114
|
+
readonly id: Schema.String;
|
|
115
|
+
readonly title: Schema.String;
|
|
116
|
+
readonly description: Schema.optional<Schema.String>;
|
|
117
|
+
readonly commandId: Schema.optional<Schema.String>;
|
|
118
|
+
readonly panelId: Schema.optional<Schema.String>;
|
|
119
|
+
readonly run: Schema.optional<Schema.declare<CapabilityRun, CapabilityRun>>;
|
|
120
|
+
}>;
|
|
121
|
+
export type ProductCapabilityRegistration = typeof ProductCapabilityRegistration.Type;
|
|
122
|
+
export declare const PanelRegistration: Schema.Struct<{
|
|
123
|
+
readonly id: Schema.String;
|
|
124
|
+
readonly slot: Schema.String;
|
|
125
|
+
readonly title: Schema.String;
|
|
126
|
+
readonly capabilityId: Schema.optional<Schema.String>;
|
|
127
|
+
readonly badge: Schema.optional<Schema.String>;
|
|
128
|
+
readonly disabled: Schema.optional<Schema.Boolean>;
|
|
129
|
+
readonly description: Schema.optional<Schema.String>;
|
|
130
|
+
}>;
|
|
131
|
+
export type PanelRegistration = typeof PanelRegistration.Type;
|
|
132
|
+
export declare const BlockerClassifierRegistration: Schema.Struct<{
|
|
133
|
+
readonly id: Schema.String;
|
|
134
|
+
readonly description: Schema.optional<Schema.String>;
|
|
135
|
+
readonly priority: Schema.optional<Schema.Number>;
|
|
136
|
+
}>;
|
|
137
|
+
export type BlockerClassifierRegistration = typeof BlockerClassifierRegistration.Type;
|
|
138
|
+
export declare const SessionExtensionRegistration: Schema.Struct<{
|
|
139
|
+
readonly id: Schema.String;
|
|
140
|
+
readonly description: Schema.optional<Schema.String>;
|
|
141
|
+
}>;
|
|
142
|
+
export type SessionExtensionRegistration = typeof SessionExtensionRegistration.Type;
|
|
143
|
+
export declare const SeedEntrypointRegistration: Schema.Struct<{
|
|
144
|
+
readonly id: Schema.String;
|
|
145
|
+
readonly description: Schema.optional<Schema.String>;
|
|
146
|
+
readonly basename: Schema.optional<Schema.String>;
|
|
147
|
+
readonly workerArg: Schema.optional<Schema.String>;
|
|
148
|
+
readonly insidePty: Schema.optional<Schema.Boolean>;
|
|
149
|
+
}>;
|
|
150
|
+
export type SeedEntrypointRegistration = typeof SeedEntrypointRegistration.Type;
|
|
151
|
+
export declare const PluginContributes: Schema.Struct<{
|
|
152
|
+
readonly validators: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
153
|
+
readonly id: Schema.String;
|
|
154
|
+
readonly category: Schema.Literals<readonly ["boundary", "contract", "integration", "regression", "external", "custom"]>;
|
|
155
|
+
readonly description: Schema.optional<Schema.String>;
|
|
156
|
+
}>>>;
|
|
157
|
+
readonly hooks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
158
|
+
readonly id: Schema.String;
|
|
159
|
+
readonly event: Schema.Literals<readonly ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"]>;
|
|
160
|
+
readonly matcher: Schema.Union<readonly [Schema.Struct<{
|
|
161
|
+
readonly kind: Schema.Literal<"all">;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
readonly kind: Schema.Literal<"tool">;
|
|
164
|
+
readonly name: Schema.String;
|
|
165
|
+
}>, Schema.Struct<{
|
|
166
|
+
readonly kind: Schema.Literal<"glob">;
|
|
167
|
+
readonly pattern: Schema.String;
|
|
168
|
+
}>]>;
|
|
169
|
+
/**
|
|
170
|
+
* Shell command Claude Code invokes when this hook fires. Resolved as-is by
|
|
171
|
+
* Claude Code's hook runner. Use absolute paths or expand
|
|
172
|
+
* `$CLAUDE_PROJECT_DIR` for project-relative paths.
|
|
173
|
+
*
|
|
174
|
+
* Alternative: leave `command` unset and ship a typed implementation via
|
|
175
|
+
* definePlugin runtime fields (`{ hooks: { [hookId]: fn } }`) — see
|
|
176
|
+
* `HookContext`/`HookResult`/`HookImplementation` in plugin-hooks.ts. The
|
|
177
|
+
* runtime materializes a shim command for typed hooks automatically. A hook
|
|
178
|
+
* may not have both a `command` and a typed implementation.
|
|
179
|
+
*/
|
|
180
|
+
readonly command: Schema.optional<Schema.String>;
|
|
181
|
+
readonly description: Schema.optional<Schema.String>;
|
|
182
|
+
}>>>;
|
|
183
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
184
|
+
readonly id: Schema.String;
|
|
185
|
+
readonly path: Schema.String;
|
|
186
|
+
readonly description: Schema.optional<Schema.String>;
|
|
187
|
+
}>>>;
|
|
188
|
+
readonly repoSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
189
|
+
readonly id: Schema.String;
|
|
190
|
+
readonly url: Schema.String;
|
|
191
|
+
readonly defaultPath: Schema.optional<Schema.String>;
|
|
192
|
+
readonly description: Schema.optional<Schema.String>;
|
|
193
|
+
readonly defaultBranch: Schema.optional<Schema.String>;
|
|
194
|
+
readonly remoteEnvVar: Schema.optional<Schema.String>;
|
|
195
|
+
readonly checkoutEnvVar: Schema.optional<Schema.String>;
|
|
196
|
+
}>>>;
|
|
197
|
+
readonly agentRoles: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
198
|
+
readonly id: Schema.String;
|
|
199
|
+
readonly defaultModel: Schema.optional<Schema.String>;
|
|
200
|
+
readonly description: Schema.optional<Schema.String>;
|
|
201
|
+
}>>>;
|
|
202
|
+
readonly taskFieldSchemas: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
203
|
+
readonly id: Schema.String;
|
|
204
|
+
readonly fieldName: Schema.String;
|
|
205
|
+
readonly schemaJson: Schema.String;
|
|
206
|
+
}>>>;
|
|
207
|
+
readonly taskSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
208
|
+
readonly id: Schema.String;
|
|
209
|
+
readonly kind: Schema.String;
|
|
210
|
+
readonly description: Schema.optional<Schema.String>;
|
|
211
|
+
}>>>;
|
|
212
|
+
readonly cliCommands: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
213
|
+
readonly id: Schema.String;
|
|
214
|
+
readonly family: Schema.optional<Schema.String>;
|
|
215
|
+
readonly command: Schema.optional<Schema.String>;
|
|
216
|
+
readonly description: Schema.optional<Schema.String>;
|
|
217
|
+
readonly usage: Schema.optional<Schema.String>;
|
|
218
|
+
readonly aliases: Schema.optional<Schema.$Array<Schema.String>>;
|
|
219
|
+
readonly projectRequired: Schema.optional<Schema.Boolean>;
|
|
220
|
+
readonly rootDefault: Schema.optional<Schema.Boolean>;
|
|
221
|
+
readonly productRoot: Schema.optional<Schema.Boolean>;
|
|
222
|
+
readonly subcommands: Schema.optional<Schema.$Array<Schema.String>>;
|
|
223
|
+
}>>>;
|
|
224
|
+
readonly stages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
225
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
226
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
227
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
228
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
229
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
230
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
231
|
+
}>>>;
|
|
232
|
+
readonly stageMutations: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
233
|
+
readonly op: Schema.Literal<"insert">;
|
|
234
|
+
readonly stage: Schema.Struct<{
|
|
235
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
236
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
237
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
238
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
239
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
240
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
241
|
+
}>;
|
|
242
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
243
|
+
}>, Schema.Struct<{
|
|
244
|
+
readonly op: Schema.Literal<"remove">;
|
|
245
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
246
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
247
|
+
}>, Schema.Struct<{
|
|
248
|
+
readonly op: Schema.Literal<"replace">;
|
|
249
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
250
|
+
readonly stage: Schema.Struct<{
|
|
251
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
252
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
253
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
254
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
255
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
256
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
257
|
+
}>;
|
|
258
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
259
|
+
}>, Schema.Struct<{
|
|
260
|
+
readonly op: Schema.Literal<"wrap">;
|
|
261
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
262
|
+
readonly around: Schema.Struct<{
|
|
263
|
+
readonly id: Schema.Trim;
|
|
264
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
265
|
+
}>;
|
|
266
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
267
|
+
}>, Schema.Struct<{
|
|
268
|
+
readonly op: Schema.Literal<"reorder">;
|
|
269
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
270
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
271
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
272
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
273
|
+
}>]>>>;
|
|
274
|
+
readonly capabilities: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
275
|
+
readonly id: Schema.String;
|
|
276
|
+
readonly title: Schema.String;
|
|
277
|
+
readonly description: Schema.optional<Schema.String>;
|
|
278
|
+
readonly commandId: Schema.optional<Schema.String>;
|
|
279
|
+
readonly panelId: Schema.optional<Schema.String>;
|
|
280
|
+
readonly run: Schema.optional<Schema.declare<CapabilityRun, CapabilityRun>>;
|
|
281
|
+
}>>>;
|
|
282
|
+
readonly panels: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
283
|
+
readonly id: Schema.String;
|
|
284
|
+
readonly slot: Schema.String;
|
|
285
|
+
readonly title: Schema.String;
|
|
286
|
+
readonly capabilityId: Schema.optional<Schema.String>;
|
|
287
|
+
readonly badge: Schema.optional<Schema.String>;
|
|
288
|
+
readonly disabled: Schema.optional<Schema.Boolean>;
|
|
289
|
+
readonly description: Schema.optional<Schema.String>;
|
|
290
|
+
}>>>;
|
|
291
|
+
readonly blockerClassifiers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
292
|
+
readonly id: Schema.String;
|
|
293
|
+
readonly description: Schema.optional<Schema.String>;
|
|
294
|
+
readonly priority: Schema.optional<Schema.Number>;
|
|
295
|
+
}>>>;
|
|
296
|
+
readonly sessionExtensions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
297
|
+
readonly id: Schema.String;
|
|
298
|
+
readonly description: Schema.optional<Schema.String>;
|
|
299
|
+
}>>>;
|
|
300
|
+
readonly seedEntrypoints: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
301
|
+
readonly id: Schema.String;
|
|
302
|
+
readonly description: Schema.optional<Schema.String>;
|
|
303
|
+
readonly basename: Schema.optional<Schema.String>;
|
|
304
|
+
readonly workerArg: Schema.optional<Schema.String>;
|
|
305
|
+
readonly insidePty: Schema.optional<Schema.Boolean>;
|
|
306
|
+
}>>>;
|
|
307
|
+
}>;
|
|
308
|
+
export type PluginContributes = typeof PluginContributes.Type;
|
|
309
|
+
export declare const RigPlugin: Schema.Struct<{
|
|
310
|
+
readonly name: Schema.String;
|
|
311
|
+
readonly version: Schema.String;
|
|
312
|
+
readonly provides: Schema.optional<Schema.$Array<Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>>>;
|
|
313
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>>>;
|
|
314
|
+
readonly replaces: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
315
|
+
readonly capability: Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>;
|
|
316
|
+
readonly providerPluginId: Schema.Trim;
|
|
317
|
+
}>, Schema.Trim]>>>;
|
|
318
|
+
readonly contributes: Schema.optional<Schema.Struct<{
|
|
319
|
+
readonly validators: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
320
|
+
readonly id: Schema.String;
|
|
321
|
+
readonly category: Schema.Literals<readonly ["boundary", "contract", "integration", "regression", "external", "custom"]>;
|
|
322
|
+
readonly description: Schema.optional<Schema.String>;
|
|
323
|
+
}>>>;
|
|
324
|
+
readonly hooks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
325
|
+
readonly id: Schema.String;
|
|
326
|
+
readonly event: Schema.Literals<readonly ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"]>;
|
|
327
|
+
readonly matcher: Schema.Union<readonly [Schema.Struct<{
|
|
328
|
+
readonly kind: Schema.Literal<"all">;
|
|
329
|
+
}>, Schema.Struct<{
|
|
330
|
+
readonly kind: Schema.Literal<"tool">;
|
|
331
|
+
readonly name: Schema.String;
|
|
332
|
+
}>, Schema.Struct<{
|
|
333
|
+
readonly kind: Schema.Literal<"glob">;
|
|
334
|
+
readonly pattern: Schema.String;
|
|
335
|
+
}>]>;
|
|
336
|
+
/**
|
|
337
|
+
* Shell command Claude Code invokes when this hook fires. Resolved as-is by
|
|
338
|
+
* Claude Code's hook runner. Use absolute paths or expand
|
|
339
|
+
* `$CLAUDE_PROJECT_DIR` for project-relative paths.
|
|
340
|
+
*
|
|
341
|
+
* Alternative: leave `command` unset and ship a typed implementation via
|
|
342
|
+
* definePlugin runtime fields (`{ hooks: { [hookId]: fn } }`) — see
|
|
343
|
+
* `HookContext`/`HookResult`/`HookImplementation` in plugin-hooks.ts. The
|
|
344
|
+
* runtime materializes a shim command for typed hooks automatically. A hook
|
|
345
|
+
* may not have both a `command` and a typed implementation.
|
|
346
|
+
*/
|
|
347
|
+
readonly command: Schema.optional<Schema.String>;
|
|
348
|
+
readonly description: Schema.optional<Schema.String>;
|
|
349
|
+
}>>>;
|
|
350
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
351
|
+
readonly id: Schema.String;
|
|
352
|
+
readonly path: Schema.String;
|
|
353
|
+
readonly description: Schema.optional<Schema.String>;
|
|
354
|
+
}>>>;
|
|
355
|
+
readonly repoSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
356
|
+
readonly id: Schema.String;
|
|
357
|
+
readonly url: Schema.String;
|
|
358
|
+
readonly defaultPath: Schema.optional<Schema.String>;
|
|
359
|
+
readonly description: Schema.optional<Schema.String>;
|
|
360
|
+
readonly defaultBranch: Schema.optional<Schema.String>;
|
|
361
|
+
readonly remoteEnvVar: Schema.optional<Schema.String>;
|
|
362
|
+
readonly checkoutEnvVar: Schema.optional<Schema.String>;
|
|
363
|
+
}>>>;
|
|
364
|
+
readonly agentRoles: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
365
|
+
readonly id: Schema.String;
|
|
366
|
+
readonly defaultModel: Schema.optional<Schema.String>;
|
|
367
|
+
readonly description: Schema.optional<Schema.String>;
|
|
368
|
+
}>>>;
|
|
369
|
+
readonly taskFieldSchemas: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
370
|
+
readonly id: Schema.String;
|
|
371
|
+
readonly fieldName: Schema.String;
|
|
372
|
+
readonly schemaJson: Schema.String;
|
|
373
|
+
}>>>;
|
|
374
|
+
readonly taskSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
375
|
+
readonly id: Schema.String;
|
|
376
|
+
readonly kind: Schema.String;
|
|
377
|
+
readonly description: Schema.optional<Schema.String>;
|
|
378
|
+
}>>>;
|
|
379
|
+
readonly cliCommands: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
380
|
+
readonly id: Schema.String;
|
|
381
|
+
readonly family: Schema.optional<Schema.String>;
|
|
382
|
+
readonly command: Schema.optional<Schema.String>;
|
|
383
|
+
readonly description: Schema.optional<Schema.String>;
|
|
384
|
+
readonly usage: Schema.optional<Schema.String>;
|
|
385
|
+
readonly aliases: Schema.optional<Schema.$Array<Schema.String>>;
|
|
386
|
+
readonly projectRequired: Schema.optional<Schema.Boolean>;
|
|
387
|
+
readonly rootDefault: Schema.optional<Schema.Boolean>;
|
|
388
|
+
readonly productRoot: Schema.optional<Schema.Boolean>;
|
|
389
|
+
readonly subcommands: Schema.optional<Schema.$Array<Schema.String>>;
|
|
390
|
+
}>>>;
|
|
391
|
+
readonly stages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
392
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
393
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
394
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
395
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
396
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
397
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
398
|
+
}>>>;
|
|
399
|
+
readonly stageMutations: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
400
|
+
readonly op: Schema.Literal<"insert">;
|
|
401
|
+
readonly stage: Schema.Struct<{
|
|
402
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
403
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
404
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
405
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
406
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
407
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
408
|
+
}>;
|
|
409
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
410
|
+
}>, Schema.Struct<{
|
|
411
|
+
readonly op: Schema.Literal<"remove">;
|
|
412
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
413
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
414
|
+
}>, Schema.Struct<{
|
|
415
|
+
readonly op: Schema.Literal<"replace">;
|
|
416
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
417
|
+
readonly stage: Schema.Struct<{
|
|
418
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
419
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
420
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
421
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
422
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
423
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
424
|
+
}>;
|
|
425
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
426
|
+
}>, Schema.Struct<{
|
|
427
|
+
readonly op: Schema.Literal<"wrap">;
|
|
428
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
429
|
+
readonly around: Schema.Struct<{
|
|
430
|
+
readonly id: Schema.Trim;
|
|
431
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
432
|
+
}>;
|
|
433
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
434
|
+
}>, Schema.Struct<{
|
|
435
|
+
readonly op: Schema.Literal<"reorder">;
|
|
436
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
437
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
438
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
439
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
440
|
+
}>]>>>;
|
|
441
|
+
readonly capabilities: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
442
|
+
readonly id: Schema.String;
|
|
443
|
+
readonly title: Schema.String;
|
|
444
|
+
readonly description: Schema.optional<Schema.String>;
|
|
445
|
+
readonly commandId: Schema.optional<Schema.String>;
|
|
446
|
+
readonly panelId: Schema.optional<Schema.String>;
|
|
447
|
+
readonly run: Schema.optional<Schema.declare<CapabilityRun, CapabilityRun>>;
|
|
448
|
+
}>>>;
|
|
449
|
+
readonly panels: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
450
|
+
readonly id: Schema.String;
|
|
451
|
+
readonly slot: Schema.String;
|
|
452
|
+
readonly title: Schema.String;
|
|
453
|
+
readonly capabilityId: Schema.optional<Schema.String>;
|
|
454
|
+
readonly badge: Schema.optional<Schema.String>;
|
|
455
|
+
readonly disabled: Schema.optional<Schema.Boolean>;
|
|
456
|
+
readonly description: Schema.optional<Schema.String>;
|
|
457
|
+
}>>>;
|
|
458
|
+
readonly blockerClassifiers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
459
|
+
readonly id: Schema.String;
|
|
460
|
+
readonly description: Schema.optional<Schema.String>;
|
|
461
|
+
readonly priority: Schema.optional<Schema.Number>;
|
|
462
|
+
}>>>;
|
|
463
|
+
readonly sessionExtensions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
464
|
+
readonly id: Schema.String;
|
|
465
|
+
readonly description: Schema.optional<Schema.String>;
|
|
466
|
+
}>>>;
|
|
467
|
+
readonly seedEntrypoints: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
468
|
+
readonly id: Schema.String;
|
|
469
|
+
readonly description: Schema.optional<Schema.String>;
|
|
470
|
+
readonly basename: Schema.optional<Schema.String>;
|
|
471
|
+
readonly workerArg: Schema.optional<Schema.String>;
|
|
472
|
+
readonly insidePty: Schema.optional<Schema.Boolean>;
|
|
473
|
+
}>>>;
|
|
474
|
+
}>>;
|
|
475
|
+
}>;
|
|
476
|
+
export type RigPlugin = typeof RigPlugin.Type;
|