@farmslot/protocol 0.21.0 → 0.26.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 +115 -0
- package/dist/contracts/agents.d.ts +33 -0
- package/dist/contracts/agents.d.ts.map +1 -1
- package/dist/contracts/backlog.d.ts +8 -0
- package/dist/contracts/backlog.d.ts.map +1 -1
- package/dist/contracts/backlog.js.map +1 -1
- package/dist/contracts/device-inventory.d.ts +118 -0
- package/dist/contracts/device-inventory.d.ts.map +1 -0
- package/dist/contracts/device-inventory.js +51 -0
- package/dist/contracts/device-inventory.js.map +1 -0
- package/dist/contracts/dispatch.d.ts +4 -0
- package/dist/contracts/dispatch.d.ts.map +1 -1
- package/dist/contracts/execution-templates.d.ts +16 -0
- package/dist/contracts/execution-templates.d.ts.map +1 -1
- package/dist/contracts/execution-templates.js +6 -0
- package/dist/contracts/execution-templates.js.map +1 -1
- package/dist/contracts/gate-park.d.ts +284 -0
- package/dist/contracts/gate-park.d.ts.map +1 -0
- package/dist/contracts/gate-park.js +415 -0
- package/dist/contracts/gate-park.js.map +1 -0
- package/dist/contracts/index.d.ts +8 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +8 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/pr-monitoring.d.ts +167 -0
- package/dist/contracts/pr-monitoring.d.ts.map +1 -0
- package/dist/contracts/pr-monitoring.js +2 -0
- package/dist/contracts/pr-monitoring.js.map +1 -0
- package/dist/contracts/pr-rules.d.ts +350 -0
- package/dist/contracts/pr-rules.d.ts.map +1 -0
- package/dist/contracts/pr-rules.js +6 -0
- package/dist/contracts/pr-rules.js.map +1 -0
- package/dist/contracts/pressure-admission.d.ts +175 -0
- package/dist/contracts/pressure-admission.d.ts.map +1 -0
- package/dist/contracts/pressure-admission.js +26 -0
- package/dist/contracts/pressure-admission.js.map +1 -0
- package/dist/contracts/readiness.d.ts +37 -0
- package/dist/contracts/readiness.d.ts.map +1 -0
- package/dist/contracts/readiness.js +8 -0
- package/dist/contracts/readiness.js.map +1 -0
- package/dist/contracts/resource-posture.d.ts +379 -0
- package/dist/contracts/resource-posture.d.ts.map +1 -0
- package/dist/contracts/resource-posture.js +293 -0
- package/dist/contracts/resource-posture.js.map +1 -0
- package/dist/contracts/resources.d.ts +27 -1
- package/dist/contracts/resources.d.ts.map +1 -1
- package/dist/contracts/resources.js +1 -1
- package/dist/contracts/resources.js.map +1 -1
- package/dist/contracts/reviews.d.ts +3 -0
- package/dist/contracts/reviews.d.ts.map +1 -1
- package/dist/contracts/reviews.js.map +1 -1
- package/dist/contracts/runs.d.ts +501 -12
- package/dist/contracts/runs.d.ts.map +1 -1
- package/dist/contracts/runs.js +148 -5
- package/dist/contracts/runs.js.map +1 -1
- package/dist/contracts/runtime-capabilities.d.ts +255 -3
- package/dist/contracts/runtime-capabilities.d.ts.map +1 -1
- package/dist/contracts/runtime-capabilities.js +113 -1
- package/dist/contracts/runtime-capabilities.js.map +1 -1
- package/dist/contracts/slots.d.ts +53 -1
- package/dist/contracts/slots.d.ts.map +1 -1
- package/dist/contracts/template-placeholders.d.ts +16 -0
- package/dist/contracts/template-placeholders.d.ts.map +1 -0
- package/dist/contracts/template-placeholders.js +39 -0
- package/dist/contracts/template-placeholders.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/pr-monitoring.d.ts +13 -0
- package/dist/integrations/pr-monitoring.d.ts.map +1 -0
- package/dist/integrations/pr-monitoring.js +160 -0
- package/dist/integrations/pr-monitoring.js.map +1 -0
- package/dist/integrations/pr-project-import.d.ts +12 -0
- package/dist/integrations/pr-project-import.d.ts.map +1 -0
- package/dist/integrations/pr-project-import.js +279 -0
- package/dist/integrations/pr-project-import.js.map +1 -0
- package/dist/integrations/pr-review-requirements.d.ts +4 -0
- package/dist/integrations/pr-review-requirements.d.ts.map +1 -0
- package/dist/integrations/pr-review-requirements.js +21 -0
- package/dist/integrations/pr-review-requirements.js.map +1 -0
- package/dist/integrations/pr-rule-config.d.ts +6 -0
- package/dist/integrations/pr-rule-config.d.ts.map +1 -0
- package/dist/integrations/pr-rule-config.js +217 -0
- package/dist/integrations/pr-rule-config.js.map +1 -0
- package/dist/integrations/pr-rule-predicates.d.ts +9 -0
- package/dist/integrations/pr-rule-predicates.d.ts.map +1 -0
- package/dist/integrations/pr-rule-predicates.js +223 -0
- package/dist/integrations/pr-rule-predicates.js.map +1 -0
- package/dist/recipes/step-io.d.ts +10 -1
- package/dist/recipes/step-io.d.ts.map +1 -1
- package/dist/rpc/backlog.d.ts +2 -2
- package/dist/rpc/backlog.d.ts.map +1 -1
- package/dist/rpc/backlog.js +2 -1
- package/dist/rpc/backlog.js.map +1 -1
- package/dist/rpc/config.d.ts +22 -2
- package/dist/rpc/config.d.ts.map +1 -1
- package/dist/rpc/config.js +1 -0
- package/dist/rpc/config.js.map +1 -1
- package/dist/rpc/copilot-runtime.d.ts +17 -0
- package/dist/rpc/copilot-runtime.d.ts.map +1 -1
- package/dist/rpc/copilot-runtime.js +5 -0
- package/dist/rpc/copilot-runtime.js.map +1 -1
- package/dist/rpc/dispatch.d.ts +39 -1
- package/dist/rpc/dispatch.d.ts.map +1 -1
- package/dist/rpc/dispatch.js +2 -0
- package/dist/rpc/dispatch.js.map +1 -1
- package/dist/rpc/git.d.ts +35 -0
- package/dist/rpc/git.d.ts.map +1 -1
- package/dist/rpc/index.d.ts +7 -0
- package/dist/rpc/index.d.ts.map +1 -1
- package/dist/rpc/index.js +7 -0
- package/dist/rpc/index.js.map +1 -1
- package/dist/rpc/machine-pause.d.ts +158 -0
- package/dist/rpc/machine-pause.d.ts.map +1 -0
- package/dist/rpc/machine-pause.js +8 -0
- package/dist/rpc/machine-pause.js.map +1 -0
- package/dist/rpc/native-session.d.ts +193 -0
- package/dist/rpc/native-session.d.ts.map +1 -0
- package/dist/rpc/native-session.js +2 -0
- package/dist/rpc/native-session.js.map +1 -0
- package/dist/rpc/pr-push.d.ts +56 -0
- package/dist/rpc/pr-push.d.ts.map +1 -0
- package/dist/rpc/pr-push.js +2 -0
- package/dist/rpc/pr-push.js.map +1 -0
- package/dist/rpc/pr-rules.d.ts +72 -0
- package/dist/rpc/pr-rules.d.ts.map +1 -0
- package/dist/rpc/pr-rules.js +2 -0
- package/dist/rpc/pr-rules.js.map +1 -0
- package/dist/rpc/pr-watch.d.ts +43 -0
- package/dist/rpc/pr-watch.d.ts.map +1 -0
- package/dist/rpc/pr-watch.js +2 -0
- package/dist/rpc/pr-watch.js.map +1 -0
- package/dist/rpc/registry.d.ts +56 -0
- package/dist/rpc/registry.d.ts.map +1 -1
- package/dist/rpc/registry.js +57 -0
- package/dist/rpc/registry.js.map +1 -1
- package/dist/rpc/resource-posture.d.ts +36 -0
- package/dist/rpc/resource-posture.d.ts.map +1 -0
- package/dist/rpc/resource-posture.js +7 -0
- package/dist/rpc/resource-posture.js.map +1 -0
- package/dist/rpc/resource-pressure-selection.d.ts +4 -0
- package/dist/rpc/resource-pressure-selection.d.ts.map +1 -0
- package/dist/rpc/resource-pressure-selection.js +21 -0
- package/dist/rpc/resource-pressure-selection.js.map +1 -0
- package/dist/rpc/resources.d.ts +176 -1
- package/dist/rpc/resources.d.ts.map +1 -1
- package/dist/rpc/resources.js +6 -0
- package/dist/rpc/resources.js.map +1 -1
- package/dist/rpc/roadmap.d.ts +1 -1
- package/dist/rpc/roadmap.d.ts.map +1 -1
- package/dist/rpc/roadmap.js +2 -1
- package/dist/rpc/roadmap.js.map +1 -1
- package/dist/rpc/run.d.ts +122 -5
- package/dist/rpc/run.d.ts.map +1 -1
- package/dist/rpc/run.js +1 -0
- package/dist/rpc/run.js.map +1 -1
- package/dist/rpc/runtime-capabilities.d.ts +73 -3
- package/dist/rpc/runtime-capabilities.d.ts.map +1 -1
- package/dist/rpc/runtime-capabilities.js +11 -0
- package/dist/rpc/runtime-capabilities.js.map +1 -1
- package/dist/rpc/slot.d.ts +9 -1
- package/dist/rpc/slot.d.ts.map +1 -1
- package/dist/rpc/slot.js.map +1 -1
- package/dist/rpc/tmux.d.ts +4 -0
- package/dist/rpc/tmux.d.ts.map +1 -1
- package/dist/rpc/worker-session-history.d.ts +1 -1
- package/dist/rpc/worker-session-history.d.ts.map +1 -1
- package/dist/runs/decision-resolution.d.ts +7 -0
- package/dist/runs/decision-resolution.d.ts.map +1 -1
- package/dist/runs/decision-resolution.js +1 -0
- package/dist/runs/decision-resolution.js.map +1 -1
- package/dist/runs/interactive-handoff.d.ts +14 -0
- package/dist/runs/interactive-handoff.d.ts.map +1 -0
- package/dist/runs/interactive-handoff.js +69 -0
- package/dist/runs/interactive-handoff.js.map +1 -0
- package/dist/runs/portable-bundle.d.ts +2 -0
- package/dist/runs/portable-bundle.d.ts.map +1 -1
- package/dist/runs/portable-bundle.js +14 -1
- package/dist/runs/portable-bundle.js.map +1 -1
- package/dist/runs/review-chain.d.ts +3 -2
- package/dist/runs/review-chain.d.ts.map +1 -1
- package/dist/runs/review-chain.js +4 -2
- package/dist/runs/review-chain.js.map +1 -1
- package/dist/slots/tracking-branch.d.ts +12 -0
- package/dist/slots/tracking-branch.d.ts.map +1 -1
- package/dist/slots/tracking-branch.js +12 -0
- package/dist/slots/tracking-branch.js.map +1 -1
- package/dist/transport/events.d.ts +19 -2
- package/dist/transport/events.d.ts.map +1 -1
- package/dist/transport/events.js +6 -0
- package/dist/transport/events.js.map +1 -1
- package/dist/transport/signal.d.ts +11 -0
- package/dist/transport/signal.d.ts.map +1 -1
- package/dist/transport/signal.js +19 -1
- package/dist/transport/signal.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/** Native sessions are opt-in. Authentication and agent execution remain runner-owned. */
|
|
2
|
+
export interface NativeSessionCapabilities {
|
|
3
|
+
modes: Array<'default' | 'plan'>;
|
|
4
|
+
streaming: boolean;
|
|
5
|
+
tools: boolean;
|
|
6
|
+
approvals: boolean;
|
|
7
|
+
questions: boolean;
|
|
8
|
+
interrupt: boolean;
|
|
9
|
+
resume: boolean;
|
|
10
|
+
resumeUnavailableReason?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface NativeSessionCreateParams {
|
|
13
|
+
/** Omitted or local selects the gateway host; otherwise an authenticated execution node. */
|
|
14
|
+
executionNodeId?: string;
|
|
15
|
+
runner: string;
|
|
16
|
+
cwd: string;
|
|
17
|
+
model?: string;
|
|
18
|
+
mode?: 'default' | 'plan';
|
|
19
|
+
/** Exact native identity, never a live TUI takeover. */
|
|
20
|
+
resumeSessionId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface NativeSessionTargetParams {
|
|
23
|
+
sessionId: string;
|
|
24
|
+
executionNodeId?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Idempotent initial creation. Older runtimes reject this operation without launching. */
|
|
27
|
+
export interface NativeSessionEnsureParams extends Omit<NativeSessionCreateParams, 'resumeSessionId'> {
|
|
28
|
+
/** Lowercase UUID prevents journal aliases on case-insensitive filesystems. */
|
|
29
|
+
sessionId: string;
|
|
30
|
+
}
|
|
31
|
+
/** Opt-in declaration made by an authenticated node, not a client-supplied account claim. */
|
|
32
|
+
export interface NativeExecutionNodeDeclaration {
|
|
33
|
+
ownerPrincipalId: string;
|
|
34
|
+
/** The node routes reserved creation; its retained host is checked separately at invocation. */
|
|
35
|
+
supportsEnsure?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface NativeSessionListResult {
|
|
38
|
+
sessions: NativeSessionInfo[];
|
|
39
|
+
unavailableExecutionNodes?: Array<{
|
|
40
|
+
executionNodeId: string;
|
|
41
|
+
message: string;
|
|
42
|
+
}>;
|
|
43
|
+
}
|
|
44
|
+
export interface NativeSessionReadParams extends NativeSessionTargetParams {
|
|
45
|
+
after?: number;
|
|
46
|
+
/** 1..500 events per page, default 200. */
|
|
47
|
+
limit?: number;
|
|
48
|
+
}
|
|
49
|
+
export interface NativeSessionSendParams extends NativeSessionTargetParams {
|
|
50
|
+
commandId: string;
|
|
51
|
+
text: string;
|
|
52
|
+
}
|
|
53
|
+
export interface NativeSessionSendResult {
|
|
54
|
+
commandId: string;
|
|
55
|
+
/** Submission was attempted or may have occurred; this is not native acceptance. */
|
|
56
|
+
submitted: boolean;
|
|
57
|
+
state: NativeCommandState;
|
|
58
|
+
/** True only after native protocol evidence confirms acceptance. */
|
|
59
|
+
accepted: boolean;
|
|
60
|
+
}
|
|
61
|
+
export type NativeCommandState = 'pending' | 'unknown' | 'accepted' | 'failed' | 'completed';
|
|
62
|
+
export interface NativeCommandReceipt {
|
|
63
|
+
generation: string;
|
|
64
|
+
commandId: string;
|
|
65
|
+
state: NativeCommandState;
|
|
66
|
+
submitted: boolean;
|
|
67
|
+
accepted: boolean;
|
|
68
|
+
outcome?: 'completed' | 'failed' | 'interrupted';
|
|
69
|
+
}
|
|
70
|
+
export interface NativeSessionResponse {
|
|
71
|
+
decision?: 'approve' | 'deny';
|
|
72
|
+
answers?: Record<string, string[]>;
|
|
73
|
+
}
|
|
74
|
+
export interface NativeSessionRespondParams extends NativeSessionTargetParams, NativeSessionResponse {
|
|
75
|
+
requestId: string;
|
|
76
|
+
}
|
|
77
|
+
export interface NativeSessionInfo {
|
|
78
|
+
id: string;
|
|
79
|
+
/** Host generation, distinct from the native conversation identity. */
|
|
80
|
+
generation: string;
|
|
81
|
+
hostPid: number;
|
|
82
|
+
/** Process group leader. Retained as historical evidence after cleanup. */
|
|
83
|
+
processPid?: number;
|
|
84
|
+
/** Non-secret argv marker for verifying process ownership before delayed cleanup. */
|
|
85
|
+
processIdentity?: string;
|
|
86
|
+
/** Wrapper group and observed descendants stopped; not exhaustive OS containment. */
|
|
87
|
+
processStopped?: boolean;
|
|
88
|
+
recovery?: string;
|
|
89
|
+
runner: string;
|
|
90
|
+
nativeSessionId: string;
|
|
91
|
+
ownerPrincipalId: string;
|
|
92
|
+
executionNodeId: string;
|
|
93
|
+
accountContextId: string;
|
|
94
|
+
cwd: string;
|
|
95
|
+
executable: string;
|
|
96
|
+
version: string;
|
|
97
|
+
model?: string;
|
|
98
|
+
mode: 'default' | 'plan';
|
|
99
|
+
accountMode: 'native';
|
|
100
|
+
capabilities: NativeSessionCapabilities;
|
|
101
|
+
state: 'starting' | 'idle' | 'waiting' | 'running' | 'closing' | 'closed' | 'failed';
|
|
102
|
+
}
|
|
103
|
+
export interface NativeSessionEvent {
|
|
104
|
+
sessionId: string;
|
|
105
|
+
sequence: number;
|
|
106
|
+
generation: string;
|
|
107
|
+
at: string;
|
|
108
|
+
type: 'session.started' | 'command.submitted' | 'command.accepted' | 'turn.started' | 'text.delta' | 'tool.started' | 'tool.completed' | 'approval.requested' | 'approval.resolved' | 'question.requested' | 'turn.completed' | 'session.closed' | 'error';
|
|
109
|
+
commandId?: string;
|
|
110
|
+
turnId?: string;
|
|
111
|
+
nativeId?: string;
|
|
112
|
+
text?: string;
|
|
113
|
+
tool?: {
|
|
114
|
+
name: string;
|
|
115
|
+
input?: unknown;
|
|
116
|
+
output?: unknown;
|
|
117
|
+
status?: string;
|
|
118
|
+
};
|
|
119
|
+
responseState?: 'unknown';
|
|
120
|
+
request?: {
|
|
121
|
+
id: string;
|
|
122
|
+
title: string;
|
|
123
|
+
detail?: string;
|
|
124
|
+
/** Proposed action captured from the native tool event for this request. */
|
|
125
|
+
tool?: NativeSessionEvent['tool'];
|
|
126
|
+
questions?: Array<{
|
|
127
|
+
id: string;
|
|
128
|
+
prompt: string;
|
|
129
|
+
options: Array<{
|
|
130
|
+
label: string;
|
|
131
|
+
description?: string;
|
|
132
|
+
}>;
|
|
133
|
+
multiSelect?: boolean;
|
|
134
|
+
}>;
|
|
135
|
+
};
|
|
136
|
+
status?: 'completed' | 'failed' | 'interrupted';
|
|
137
|
+
/** Runner-specific diagnostics; clients render normalized fields above. */
|
|
138
|
+
data?: Record<string, unknown>;
|
|
139
|
+
}
|
|
140
|
+
export interface NativeSessionReadResult {
|
|
141
|
+
session: NativeSessionInfo;
|
|
142
|
+
events: NativeSessionEvent[];
|
|
143
|
+
cursor: number;
|
|
144
|
+
hasMore: boolean;
|
|
145
|
+
/** Most recent 100 receipts. Older command IDs remain durably deduplicated. */
|
|
146
|
+
commands: NativeCommandReceipt[];
|
|
147
|
+
pendingRequests: NativeSessionEvent[];
|
|
148
|
+
}
|
|
149
|
+
/** Curated native choices; availability and billing remain account-owned. */
|
|
150
|
+
export interface NativeRunnerOption {
|
|
151
|
+
runner: string;
|
|
152
|
+
models: string[];
|
|
153
|
+
defaultModel: string;
|
|
154
|
+
modes: Array<'default' | 'plan'>;
|
|
155
|
+
}
|
|
156
|
+
export interface NativeSessionCatalogResult {
|
|
157
|
+
runners: NativeRunnerOption[];
|
|
158
|
+
contexts: Array<{
|
|
159
|
+
cwd: string;
|
|
160
|
+
label: string;
|
|
161
|
+
slotId?: string;
|
|
162
|
+
project?: string;
|
|
163
|
+
executionNodeId?: string;
|
|
164
|
+
}>;
|
|
165
|
+
}
|
|
166
|
+
export interface NativeWorkspacePathParams extends NativeSessionTargetParams {
|
|
167
|
+
/** Relative to the session's recorded working directory. */
|
|
168
|
+
path: string;
|
|
169
|
+
}
|
|
170
|
+
export interface NativeWorkspaceListResult {
|
|
171
|
+
entries: Array<{
|
|
172
|
+
path: string;
|
|
173
|
+
name: string;
|
|
174
|
+
directory: boolean;
|
|
175
|
+
}>;
|
|
176
|
+
truncated: boolean;
|
|
177
|
+
}
|
|
178
|
+
export interface NativeWorkspaceChangesResult {
|
|
179
|
+
files: Array<{
|
|
180
|
+
path: string;
|
|
181
|
+
status: string;
|
|
182
|
+
}>;
|
|
183
|
+
truncated?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export interface NativeWorkspaceReadResult {
|
|
186
|
+
path: string;
|
|
187
|
+
content: string;
|
|
188
|
+
}
|
|
189
|
+
export interface NativeWorkspaceDiffResult {
|
|
190
|
+
path: string;
|
|
191
|
+
diff: string;
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=native-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-session.d.ts","sourceRoot":"","sources":["../../src/rpc/native-session.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACxC,4FAA4F;IAC5F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2FAA2F;AAC3F,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACrD,yBAAyB,EACzB,iBAAiB,CAClB;IACC,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,6FAA6F;AAC7F,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,gGAAgG;IAChG,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,yBAAyB,CAAC,EAAE,KAAK,CAA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,0BAA0B;IACzC,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC,CAAC;CACJ;AACD,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-session.js","sourceRoot":"","sources":["../../src/rpc/native-session.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface PRPushRegisterParams {
|
|
2
|
+
installationId: string;
|
|
3
|
+
/** Required when updating an existing registration. Fences stale token refreshes. */
|
|
4
|
+
expectedRevision?: number;
|
|
5
|
+
token: string;
|
|
6
|
+
platform: 'ios' | 'android';
|
|
7
|
+
/** Device-local gateway profile used when opening the notification. */
|
|
8
|
+
profileId: string;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
sound: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface PRPushDevice {
|
|
13
|
+
id: string;
|
|
14
|
+
installationId: string;
|
|
15
|
+
platform: 'ios' | 'android';
|
|
16
|
+
profileId: string;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
sound: boolean;
|
|
19
|
+
revision: number;
|
|
20
|
+
registeredAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PRPushDelivery {
|
|
25
|
+
id: string;
|
|
26
|
+
deviceId: string;
|
|
27
|
+
deviceRevision: number;
|
|
28
|
+
deviceTokenRevision?: number;
|
|
29
|
+
sourceId: string;
|
|
30
|
+
state: 'queued' | 'sending' | 'ticket' | 'delivered' | 'retry' | 'unknown' | 'failed' | 'cancelled';
|
|
31
|
+
attempts: number;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
nextAttemptAt?: string;
|
|
35
|
+
ticketId?: string;
|
|
36
|
+
error?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PRPushListResult {
|
|
39
|
+
attention: PRPushAttention[];
|
|
40
|
+
devices: PRPushDevice[];
|
|
41
|
+
deliveries: PRPushDelivery[];
|
|
42
|
+
schedulerError?: string;
|
|
43
|
+
}
|
|
44
|
+
/** Recipient-scoped attention. It conveys no monitor policy or execution authority. */
|
|
45
|
+
export interface PRPushAttention {
|
|
46
|
+
id: string;
|
|
47
|
+
kind: 'monitor' | 'rule';
|
|
48
|
+
teamId?: string;
|
|
49
|
+
title: string;
|
|
50
|
+
body: string;
|
|
51
|
+
route: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
current: boolean;
|
|
54
|
+
acknowledgedAt?: string;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=pr-push.d.ts.map
|
|
@@ -0,0 +1 @@
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;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-push.js","sourceRoot":"","sources":["../../src/rpc/pr-push.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { MonitoredPRIdentity, PRSourceAccount } from '../contracts/pr-monitoring.js';
|
|
2
|
+
import type { PRProjectCatalog, PRReviewIntent, PRReviewRequest, PRReviewSubmission, PRRuleActionRecord, PRRuleNotification, PRRulePreview, PRRuleSource, PRTeamConfig, PRTeamProfile, PRTriggerRule, PRTriggerRuleConfig } from '../contracts/pr-rules.js';
|
|
3
|
+
export interface PRProjectImportParams {
|
|
4
|
+
account: PRSourceAccount;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PRProjectImportResult {
|
|
8
|
+
project: PRProjectCatalog;
|
|
9
|
+
source: Extract<PRRuleSource, {
|
|
10
|
+
kind: 'github-project';
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface PRRulesListResult {
|
|
14
|
+
teams: PRTeamProfile[];
|
|
15
|
+
rules: PRTriggerRule[];
|
|
16
|
+
intents: PRReviewIntent[];
|
|
17
|
+
submissions?: PRReviewSubmission[];
|
|
18
|
+
actions?: PRRuleActionRecord[];
|
|
19
|
+
notifications?: PRRuleNotification[];
|
|
20
|
+
schedulerError?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PRReviewRequestParams {
|
|
23
|
+
request: PRReviewRequest;
|
|
24
|
+
}
|
|
25
|
+
export interface PRReviewRequestResult {
|
|
26
|
+
submission: PRReviewSubmission;
|
|
27
|
+
intent?: PRReviewIntent;
|
|
28
|
+
schedulerError?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface PRReviewRequestGetParams {
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
export interface PRReviewRequestCancelParams extends PRReviewRequestGetParams {
|
|
34
|
+
revision: number;
|
|
35
|
+
}
|
|
36
|
+
export interface PRTeamSaveParams {
|
|
37
|
+
config: PRTeamConfig;
|
|
38
|
+
id?: string;
|
|
39
|
+
revision?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface PRTeamSaveResult {
|
|
42
|
+
team: PRTeamProfile;
|
|
43
|
+
}
|
|
44
|
+
export interface PRRuleSaveParams {
|
|
45
|
+
config: PRTriggerRuleConfig;
|
|
46
|
+
id?: string;
|
|
47
|
+
revision?: number;
|
|
48
|
+
}
|
|
49
|
+
export interface PRRuleSaveResult {
|
|
50
|
+
rule: PRTriggerRule;
|
|
51
|
+
}
|
|
52
|
+
export interface PRRulePreviewParams {
|
|
53
|
+
id: string;
|
|
54
|
+
/** Fresh eligibility check for one PR, independent of discovery traversal checkpoints. */
|
|
55
|
+
pr?: MonitoredPRIdentity;
|
|
56
|
+
}
|
|
57
|
+
export interface PRReviewDecisionParams {
|
|
58
|
+
id: string;
|
|
59
|
+
}
|
|
60
|
+
export interface PRReviewDecisionResult {
|
|
61
|
+
intent: PRReviewIntent;
|
|
62
|
+
}
|
|
63
|
+
export interface PRRulePreviewResult {
|
|
64
|
+
preview: PRRulePreview;
|
|
65
|
+
}
|
|
66
|
+
export interface PRRuleSetEnabledParams {
|
|
67
|
+
id: string;
|
|
68
|
+
revision: number;
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
backfill: boolean;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=pr-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-rules.d.ts","sourceRoot":"","sources":["../../src/rpc/pr-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,eAAe,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,eAAe,CAAC;CAC1B;AACD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IAC3E,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,YAAY,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;CACrB;AACD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;CACrB;AACD,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,0FAA0F;IAC1F,EAAE,CAAC,EAAE,mBAAmB,CAAC;CAC1B;AACD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,cAAc,CAAC;CACxB;AACD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,aAAa,CAAC;CACxB;AACD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-rules.js","sourceRoot":"","sources":["../../src/rpc/pr-rules.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { PRExecutionProfile, PRMonitor, PRMonitorConfig, PRProjectMonitorPolicy } from '../contracts/pr-monitoring.js';
|
|
2
|
+
export interface PRWatchListResult {
|
|
3
|
+
monitors: PRMonitor[];
|
|
4
|
+
schedulerError?: string;
|
|
5
|
+
projectPolicies?: PRProjectMonitorPolicy[];
|
|
6
|
+
publicationErrors?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export interface PRWatchSubscribeParams {
|
|
9
|
+
config: PRMonitorConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface PRWatchGetParams {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PRWatchConfigureParams extends PRWatchSubscribeParams, PRWatchGetParams {
|
|
15
|
+
revision: number;
|
|
16
|
+
}
|
|
17
|
+
export interface PRWatchLifecycleParams extends PRWatchGetParams {
|
|
18
|
+
revision: number;
|
|
19
|
+
lifecycle: 'active' | 'paused' | 'stopped';
|
|
20
|
+
}
|
|
21
|
+
export interface PRWatchAcknowledgeParams extends PRWatchGetParams {
|
|
22
|
+
revision: number;
|
|
23
|
+
incidentId: string;
|
|
24
|
+
snoozedUntil?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PRWatchResult {
|
|
27
|
+
monitor: PRMonitor;
|
|
28
|
+
}
|
|
29
|
+
export interface PRWatchRepairParams extends PRWatchGetParams {
|
|
30
|
+
revision: number;
|
|
31
|
+
project?: string;
|
|
32
|
+
execution?: PRExecutionProfile;
|
|
33
|
+
}
|
|
34
|
+
export interface PRWatchProjectPolicySetParams {
|
|
35
|
+
project: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
config: PRProjectMonitorPolicy['config'];
|
|
38
|
+
revision?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface PRWatchProjectPolicySetResult {
|
|
41
|
+
policy: PRProjectMonitorPolicy;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=pr-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-watch.d.ts","sourceRoot":"","sources":["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,CAAC;CACnB;AACD,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,sBAAsB,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-watch.js","sourceRoot":"","sources":["../../src/rpc/pr-watch.ts"],"names":[],"mappings":""}
|
package/dist/rpc/registry.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export declare const Methods: {
|
|
|
32
32
|
readonly FLEET_REFRESH_SLOTS_CANCEL: "fleet.refreshSlots.cancel";
|
|
33
33
|
readonly FLEET_PR_SUMMARY: "fleet.prSummary";
|
|
34
34
|
readonly DISPATCH_PREVIEW: "dispatch.preview";
|
|
35
|
+
readonly DISPATCH_PRESSURE_ADMISSION_GET: "dispatch.pressureAdmission.get";
|
|
36
|
+
readonly DISPATCH_PRESSURE_ADMISSION_SET_ENABLED: "dispatch.pressureAdmission.setEnabled";
|
|
35
37
|
readonly DISPATCH_MATCH_PROJECT: "dispatch.matchProject";
|
|
36
38
|
readonly DISPATCH_CANDIDATES: "dispatch.candidates";
|
|
37
39
|
readonly DISPATCH_QUEUE_ADD: "dispatch.queue.add";
|
|
@@ -98,12 +100,51 @@ export declare const Methods: {
|
|
|
98
100
|
readonly TERMINAL_WORKER_INPUT: "terminal.worker.input";
|
|
99
101
|
readonly TERMINAL_WORKER_RESIZE: "terminal.worker.resize";
|
|
100
102
|
readonly TERMINAL_WORKER_SNAPSHOT: "terminal.worker.snapshot";
|
|
103
|
+
readonly NATIVE_SESSION_CREATE: "native.session.create";
|
|
104
|
+
readonly NATIVE_SESSION_ENSURE: "native.session.ensure";
|
|
105
|
+
readonly NATIVE_SESSION_READ: "native.session.read";
|
|
106
|
+
readonly NATIVE_SESSION_LIST: "native.session.list";
|
|
107
|
+
readonly NATIVE_SESSION_SEND: "native.session.send";
|
|
108
|
+
readonly NATIVE_SESSION_RESPOND: "native.session.respond";
|
|
109
|
+
readonly NATIVE_SESSION_INTERRUPT: "native.session.interrupt";
|
|
110
|
+
readonly NATIVE_SESSION_CLOSE: "native.session.close";
|
|
111
|
+
readonly NATIVE_SESSION_CATALOG: "native.session.catalog";
|
|
112
|
+
readonly NATIVE_SESSION_WORKSPACE_LIST: "native.session.workspace.list";
|
|
113
|
+
readonly NATIVE_SESSION_WORKSPACE_READ: "native.session.workspace.read";
|
|
114
|
+
readonly NATIVE_SESSION_WORKSPACE_CHANGES: "native.session.workspace.changes";
|
|
115
|
+
readonly NATIVE_SESSION_WORKSPACE_DIFF: "native.session.workspace.diff";
|
|
101
116
|
readonly WORKER_SESSION_HISTORY_GET: "worker.session.history.get";
|
|
102
117
|
readonly WORKER_SESSION_HISTORY_SUBSCRIBE: "worker.session.history.subscribe";
|
|
103
118
|
readonly WORKER_SESSION_HISTORY_UNSUBSCRIBE: "worker.session.history.unsubscribe";
|
|
119
|
+
readonly PR_PUSH_REGISTER: "prPush.register";
|
|
120
|
+
readonly PR_PUSH_UNREGISTER: "prPush.unregister";
|
|
121
|
+
readonly PR_PUSH_LIST: "prPush.list";
|
|
122
|
+
readonly PR_PUSH_ACKNOWLEDGE: "prPush.acknowledge";
|
|
104
123
|
readonly PR_STATUS: "pr.status";
|
|
105
124
|
readonly PR_LIST: "pr.list";
|
|
106
125
|
readonly PR_MONITOR: "pr.monitor";
|
|
126
|
+
readonly PR_WATCH_LIST: "prWatch.list";
|
|
127
|
+
readonly PR_WATCH_GET: "prWatch.get";
|
|
128
|
+
readonly PR_WATCH_SUBSCRIBE: "prWatch.subscribe";
|
|
129
|
+
readonly PR_WATCH_CONFIGURE: "prWatch.configure";
|
|
130
|
+
readonly PR_WATCH_LIFECYCLE: "prWatch.lifecycle";
|
|
131
|
+
readonly PR_WATCH_ACKNOWLEDGE: "prWatch.acknowledge";
|
|
132
|
+
readonly PR_WATCH_REFRESH: "prWatch.refresh";
|
|
133
|
+
readonly PR_WATCH_REPAIR: "prWatch.repair";
|
|
134
|
+
readonly PR_WATCH_PROJECT_POLICY_SET: "prWatch.projectPolicy.set";
|
|
135
|
+
readonly PR_RULES_LIST: "prRules.list";
|
|
136
|
+
readonly PR_RULE_PROJECT_IMPORT: "prRules.projectImport";
|
|
137
|
+
readonly PR_TEAM_SAVE: "prRules.teamSave";
|
|
138
|
+
readonly PR_RULE_SAVE: "prRules.ruleSave";
|
|
139
|
+
readonly PR_RULE_PREVIEW: "prRules.preview";
|
|
140
|
+
readonly PR_RULE_SET_ENABLED: "prRules.setEnabled";
|
|
141
|
+
readonly PR_RULE_SCAN: "prRules.scan";
|
|
142
|
+
readonly PR_RULE_ACTION_ACKNOWLEDGE: "prRules.acknowledgeAction";
|
|
143
|
+
readonly PR_REVIEW_ACCEPT: "prRules.accept";
|
|
144
|
+
readonly PR_REVIEW_DEFER: "prRules.defer";
|
|
145
|
+
readonly PR_REVIEW_REQUEST: "prReview.submit";
|
|
146
|
+
readonly PR_REVIEW_REQUEST_GET: "prReview.get";
|
|
147
|
+
readonly PR_REVIEW_REQUEST_CANCEL: "prReview.cancel";
|
|
107
148
|
readonly PR_REVIEW_COMMENTS: "pr.reviewComments";
|
|
108
149
|
readonly PR_ADD_COMMENT: "pr.addComment";
|
|
109
150
|
readonly PR_RESOLVE_THREAD: "pr.resolveThread";
|
|
@@ -127,11 +168,13 @@ export declare const Methods: {
|
|
|
127
168
|
readonly TMUX_WORKER_RESTORE: "tmux.worker.restore";
|
|
128
169
|
readonly TMUX_RENAME_WINDOW: "tmux.renameWindow";
|
|
129
170
|
readonly TMUX_SEND_KEYS: "tmux.sendKeys";
|
|
171
|
+
readonly TMUX_PASTE_TEXT: "tmux.pasteText";
|
|
130
172
|
readonly TMUX_SYNCHRONIZE_PANES: "tmux.synchronizePanes";
|
|
131
173
|
readonly SLOT_OPEN_EDITOR: "slot.openEditor";
|
|
132
174
|
readonly CONFIG_POOLS: "config.pools";
|
|
133
175
|
readonly CONFIG_POOL: "config.pool";
|
|
134
176
|
readonly CONFIG_PROJECTS: "config.projects";
|
|
177
|
+
readonly CONFIG_GITHUB_ACCOUNTS: "config.githubAccounts";
|
|
135
178
|
readonly CONFIG_PROJECT: "config.project";
|
|
136
179
|
readonly CONFIG_POOL_RAW: "config.pool.raw";
|
|
137
180
|
readonly CONFIG_TEMPLATES: "config.templates";
|
|
@@ -172,12 +215,23 @@ export declare const Methods: {
|
|
|
172
215
|
readonly RESOURCE_HEALTH: "resource.health";
|
|
173
216
|
readonly RESOURCE_CLEANUP: "resource.cleanup";
|
|
174
217
|
readonly RESOURCE_WATCH_SET_ENABLED: "resource.watch.setEnabled";
|
|
218
|
+
readonly RESOURCE_PRESSURE_SNAPSHOT: "resource.pressure.snapshot";
|
|
219
|
+
readonly RESOURCE_PRESSURE_HISTORY: "resource.pressure.history";
|
|
220
|
+
readonly RESOURCE_DEVICE_INVENTORY: "resource.device.inventory";
|
|
175
221
|
readonly SLOT_ACTION_LIST: "slot.action.list";
|
|
176
222
|
readonly SLOT_ACTION_RUN: "slot.action.run";
|
|
223
|
+
readonly MACHINE_PAUSE_PREVIEW: "machine.pause.preview";
|
|
224
|
+
readonly MACHINE_PAUSE_EXECUTE: "machine.pause.execute";
|
|
225
|
+
readonly MACHINE_PAUSE_STATUS: "machine.pause.status";
|
|
226
|
+
readonly MACHINE_PAUSE_RESTORE: "machine.pause.restore";
|
|
177
227
|
readonly RUNTIME_CAPABILITY_LIST: "runtime.capability.list";
|
|
178
228
|
readonly RUNTIME_CAPABILITY_ACQUIRE: "runtime.capability.acquire";
|
|
179
229
|
readonly RUNTIME_CAPABILITY_RELEASE: "runtime.capability.release";
|
|
180
230
|
readonly RUNTIME_CAPABILITY_STATUS: "runtime.capability.status";
|
|
231
|
+
readonly RUNTIME_CAPABILITY_STOP_WARM: "runtime.capability.stopWarm";
|
|
232
|
+
readonly RUNTIME_POSTURE_STATUS: "runtime.posture.status";
|
|
233
|
+
readonly RUNTIME_POSTURE_PREVIEW: "runtime.posture.preview";
|
|
234
|
+
readonly RUNTIME_POSTURE_APPLY: "runtime.posture.apply";
|
|
181
235
|
readonly RUN_BUNDLE_EXPORT: "run.bundle.export";
|
|
182
236
|
readonly RUN_BUNDLE_IMPORT: "run.bundle.import";
|
|
183
237
|
readonly RUN_BUNDLE_LIST: "run.bundle.list";
|
|
@@ -203,6 +257,7 @@ export declare const Methods: {
|
|
|
203
257
|
readonly RUN_FOR_SLOT: "run.forSlot";
|
|
204
258
|
readonly RUN_RESOLVE_DECISION: "run.resolveDecision";
|
|
205
259
|
readonly RUN_PROBE_WORKER_SIGNAL: "run.probeWorkerSignal";
|
|
260
|
+
readonly RUN_SESSION_COMMAND: "run.sessionCommand";
|
|
206
261
|
readonly RUN_GRADE: "run.grade";
|
|
207
262
|
readonly RUN_GET_GRADE: "run.getGrade";
|
|
208
263
|
readonly RUN_PROPOSE_IMPROVEMENT: "run.proposeImprovement";
|
|
@@ -259,6 +314,7 @@ export declare const Methods: {
|
|
|
259
314
|
readonly CHAT_SESSION_CONTEXT: "chat.sessionContext";
|
|
260
315
|
readonly COPILOT_FORMAT_INSTRUCTION: "copilot.formatInstruction";
|
|
261
316
|
readonly COPILOT_STATUS: "copilot.status";
|
|
317
|
+
readonly COPILOT_CONFIGURE: "copilot.configure";
|
|
262
318
|
readonly COPILOT_START: "copilot.start";
|
|
263
319
|
readonly COPILOT_STOP: "copilot.stop";
|
|
264
320
|
readonly NODE_HEALTH: "node.health";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/rpc/registry.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/rpc/registry.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ZV,CAAC"}
|
package/dist/rpc/registry.js
CHANGED
|
@@ -39,6 +39,8 @@ export const Methods = {
|
|
|
39
39
|
FLEET_PR_SUMMARY: 'fleet.prSummary',
|
|
40
40
|
// Dispatch
|
|
41
41
|
DISPATCH_PREVIEW: 'dispatch.preview',
|
|
42
|
+
DISPATCH_PRESSURE_ADMISSION_GET: 'dispatch.pressureAdmission.get',
|
|
43
|
+
DISPATCH_PRESSURE_ADMISSION_SET_ENABLED: 'dispatch.pressureAdmission.setEnabled',
|
|
42
44
|
DISPATCH_MATCH_PROJECT: 'dispatch.matchProject',
|
|
43
45
|
DISPATCH_CANDIDATES: 'dispatch.candidates',
|
|
44
46
|
DISPATCH_QUEUE_ADD: 'dispatch.queue.add',
|
|
@@ -111,13 +113,52 @@ export const Methods = {
|
|
|
111
113
|
TERMINAL_WORKER_RESIZE: 'terminal.worker.resize',
|
|
112
114
|
TERMINAL_WORKER_SNAPSHOT: 'terminal.worker.snapshot',
|
|
113
115
|
// Worker session history (read-only transcript projection)
|
|
116
|
+
NATIVE_SESSION_CREATE: 'native.session.create',
|
|
117
|
+
NATIVE_SESSION_ENSURE: 'native.session.ensure',
|
|
118
|
+
NATIVE_SESSION_READ: 'native.session.read',
|
|
119
|
+
NATIVE_SESSION_LIST: 'native.session.list',
|
|
120
|
+
NATIVE_SESSION_SEND: 'native.session.send',
|
|
121
|
+
NATIVE_SESSION_RESPOND: 'native.session.respond',
|
|
122
|
+
NATIVE_SESSION_INTERRUPT: 'native.session.interrupt',
|
|
123
|
+
NATIVE_SESSION_CLOSE: 'native.session.close',
|
|
124
|
+
NATIVE_SESSION_CATALOG: 'native.session.catalog',
|
|
125
|
+
NATIVE_SESSION_WORKSPACE_LIST: 'native.session.workspace.list',
|
|
126
|
+
NATIVE_SESSION_WORKSPACE_READ: 'native.session.workspace.read',
|
|
127
|
+
NATIVE_SESSION_WORKSPACE_CHANGES: 'native.session.workspace.changes',
|
|
128
|
+
NATIVE_SESSION_WORKSPACE_DIFF: 'native.session.workspace.diff',
|
|
114
129
|
WORKER_SESSION_HISTORY_GET: 'worker.session.history.get',
|
|
115
130
|
WORKER_SESSION_HISTORY_SUBSCRIBE: 'worker.session.history.subscribe',
|
|
116
131
|
WORKER_SESSION_HISTORY_UNSUBSCRIBE: 'worker.session.history.unsubscribe',
|
|
117
132
|
// PR
|
|
133
|
+
PR_PUSH_REGISTER: 'prPush.register',
|
|
134
|
+
PR_PUSH_UNREGISTER: 'prPush.unregister',
|
|
135
|
+
PR_PUSH_LIST: 'prPush.list',
|
|
136
|
+
PR_PUSH_ACKNOWLEDGE: 'prPush.acknowledge',
|
|
118
137
|
PR_STATUS: 'pr.status',
|
|
119
138
|
PR_LIST: 'pr.list',
|
|
120
139
|
PR_MONITOR: 'pr.monitor',
|
|
140
|
+
PR_WATCH_LIST: 'prWatch.list',
|
|
141
|
+
PR_WATCH_GET: 'prWatch.get',
|
|
142
|
+
PR_WATCH_SUBSCRIBE: 'prWatch.subscribe',
|
|
143
|
+
PR_WATCH_CONFIGURE: 'prWatch.configure',
|
|
144
|
+
PR_WATCH_LIFECYCLE: 'prWatch.lifecycle',
|
|
145
|
+
PR_WATCH_ACKNOWLEDGE: 'prWatch.acknowledge',
|
|
146
|
+
PR_WATCH_REFRESH: 'prWatch.refresh',
|
|
147
|
+
PR_WATCH_REPAIR: 'prWatch.repair',
|
|
148
|
+
PR_WATCH_PROJECT_POLICY_SET: 'prWatch.projectPolicy.set',
|
|
149
|
+
PR_RULES_LIST: 'prRules.list',
|
|
150
|
+
PR_RULE_PROJECT_IMPORT: 'prRules.projectImport',
|
|
151
|
+
PR_TEAM_SAVE: 'prRules.teamSave',
|
|
152
|
+
PR_RULE_SAVE: 'prRules.ruleSave',
|
|
153
|
+
PR_RULE_PREVIEW: 'prRules.preview',
|
|
154
|
+
PR_RULE_SET_ENABLED: 'prRules.setEnabled',
|
|
155
|
+
PR_RULE_SCAN: 'prRules.scan',
|
|
156
|
+
PR_RULE_ACTION_ACKNOWLEDGE: 'prRules.acknowledgeAction',
|
|
157
|
+
PR_REVIEW_ACCEPT: 'prRules.accept',
|
|
158
|
+
PR_REVIEW_DEFER: 'prRules.defer',
|
|
159
|
+
PR_REVIEW_REQUEST: 'prReview.submit',
|
|
160
|
+
PR_REVIEW_REQUEST_GET: 'prReview.get',
|
|
161
|
+
PR_REVIEW_REQUEST_CANCEL: 'prReview.cancel',
|
|
121
162
|
PR_REVIEW_COMMENTS: 'pr.reviewComments',
|
|
122
163
|
PR_ADD_COMMENT: 'pr.addComment',
|
|
123
164
|
PR_RESOLVE_THREAD: 'pr.resolveThread',
|
|
@@ -145,6 +186,7 @@ export const Methods = {
|
|
|
145
186
|
TMUX_WORKER_RESTORE: 'tmux.worker.restore',
|
|
146
187
|
TMUX_RENAME_WINDOW: 'tmux.renameWindow',
|
|
147
188
|
TMUX_SEND_KEYS: 'tmux.sendKeys',
|
|
189
|
+
TMUX_PASTE_TEXT: 'tmux.pasteText',
|
|
148
190
|
TMUX_SYNCHRONIZE_PANES: 'tmux.synchronizePanes',
|
|
149
191
|
// Editor
|
|
150
192
|
SLOT_OPEN_EDITOR: 'slot.openEditor',
|
|
@@ -152,6 +194,7 @@ export const Methods = {
|
|
|
152
194
|
CONFIG_POOLS: 'config.pools',
|
|
153
195
|
CONFIG_POOL: 'config.pool',
|
|
154
196
|
CONFIG_PROJECTS: 'config.projects',
|
|
197
|
+
CONFIG_GITHUB_ACCOUNTS: 'config.githubAccounts',
|
|
155
198
|
CONFIG_PROJECT: 'config.project',
|
|
156
199
|
CONFIG_POOL_RAW: 'config.pool.raw',
|
|
157
200
|
CONFIG_TEMPLATES: 'config.templates',
|
|
@@ -201,13 +244,25 @@ export const Methods = {
|
|
|
201
244
|
RESOURCE_HEALTH: 'resource.health',
|
|
202
245
|
RESOURCE_CLEANUP: 'resource.cleanup',
|
|
203
246
|
RESOURCE_WATCH_SET_ENABLED: 'resource.watch.setEnabled',
|
|
247
|
+
RESOURCE_PRESSURE_SNAPSHOT: 'resource.pressure.snapshot',
|
|
248
|
+
RESOURCE_PRESSURE_HISTORY: 'resource.pressure.history',
|
|
249
|
+
RESOURCE_DEVICE_INVENTORY: 'resource.device.inventory',
|
|
204
250
|
SLOT_ACTION_LIST: 'slot.action.list',
|
|
205
251
|
SLOT_ACTION_RUN: 'slot.action.run',
|
|
252
|
+
// Machine-scoped run parking
|
|
253
|
+
MACHINE_PAUSE_PREVIEW: 'machine.pause.preview',
|
|
254
|
+
MACHINE_PAUSE_EXECUTE: 'machine.pause.execute',
|
|
255
|
+
MACHINE_PAUSE_STATUS: 'machine.pause.status',
|
|
256
|
+
MACHINE_PAUSE_RESTORE: 'machine.pause.restore',
|
|
206
257
|
// Proof-plan-driven runtime capability leases
|
|
207
258
|
RUNTIME_CAPABILITY_LIST: 'runtime.capability.list',
|
|
208
259
|
RUNTIME_CAPABILITY_ACQUIRE: 'runtime.capability.acquire',
|
|
209
260
|
RUNTIME_CAPABILITY_RELEASE: 'runtime.capability.release',
|
|
210
261
|
RUNTIME_CAPABILITY_STATUS: 'runtime.capability.status',
|
|
262
|
+
RUNTIME_CAPABILITY_STOP_WARM: 'runtime.capability.stopWarm',
|
|
263
|
+
RUNTIME_POSTURE_STATUS: 'runtime.posture.status',
|
|
264
|
+
RUNTIME_POSTURE_PREVIEW: 'runtime.posture.preview',
|
|
265
|
+
RUNTIME_POSTURE_APPLY: 'runtime.posture.apply',
|
|
211
266
|
// Runs
|
|
212
267
|
RUN_BUNDLE_EXPORT: 'run.bundle.export',
|
|
213
268
|
RUN_BUNDLE_IMPORT: 'run.bundle.import',
|
|
@@ -234,6 +289,7 @@ export const Methods = {
|
|
|
234
289
|
RUN_FOR_SLOT: 'run.forSlot',
|
|
235
290
|
RUN_RESOLVE_DECISION: 'run.resolveDecision',
|
|
236
291
|
RUN_PROBE_WORKER_SIGNAL: 'run.probeWorkerSignal',
|
|
292
|
+
RUN_SESSION_COMMAND: 'run.sessionCommand',
|
|
237
293
|
RUN_GRADE: 'run.grade',
|
|
238
294
|
RUN_GET_GRADE: 'run.getGrade',
|
|
239
295
|
RUN_PROPOSE_IMPROVEMENT: 'run.proposeImprovement',
|
|
@@ -297,6 +353,7 @@ export const Methods = {
|
|
|
297
353
|
CHAT_SESSION_CONTEXT: 'chat.sessionContext',
|
|
298
354
|
COPILOT_FORMAT_INSTRUCTION: 'copilot.formatInstruction',
|
|
299
355
|
COPILOT_STATUS: 'copilot.status',
|
|
356
|
+
COPILOT_CONFIGURE: 'copilot.configure',
|
|
300
357
|
COPILOT_START: 'copilot.start',
|
|
301
358
|
COPILOT_STOP: 'copilot.stop',
|
|
302
359
|
// Node Health
|