@hachej/boring-agent 0.1.111 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +262 -51
- package/dist/agents.d.ts +75 -0
- package/dist/agents.js +91 -0
- package/dist/approval.d.ts +71 -0
- package/dist/approval.js +126 -0
- package/dist/artifacts.d.ts +53 -0
- package/dist/artifacts.js +129 -0
- package/dist/ask-user.d.ts +40 -0
- package/dist/ask-user.js +134 -0
- package/dist/attachment.d.ts +5 -0
- package/dist/attachment.js +4 -0
- package/dist/browser-task.d.ts +32 -0
- package/dist/browser-task.js +119 -0
- package/dist/chat-transport.d.ts +80 -0
- package/dist/chat-transport.js +306 -0
- package/dist/contracts.d.ts +40 -0
- package/dist/contracts.js +1 -0
- package/dist/conversations.d.ts +136 -0
- package/dist/conversations.js +366 -0
- package/dist/definitions.d.ts +37 -0
- package/dist/definitions.js +99 -0
- package/dist/delivery-input.d.ts +35 -0
- package/dist/delivery-input.js +56 -0
- package/dist/delivery.d.ts +33 -0
- package/dist/delivery.js +154 -0
- package/dist/durable-wait.d.ts +23 -0
- package/dist/durable-wait.js +79 -0
- package/dist/file-convert.d.ts +46 -0
- package/dist/file-convert.js +159 -0
- package/dist/file-guard.d.ts +50 -0
- package/dist/file-guard.js +171 -0
- package/dist/file-types.d.ts +17 -0
- package/dist/file-types.js +95 -0
- package/dist/gateway-provider.d.ts +24 -0
- package/dist/gateway-provider.js +42 -0
- package/dist/git.d.ts +34 -0
- package/dist/git.js +79 -0
- package/dist/harness-pool.d.ts +38 -0
- package/dist/harness-pool.js +134 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/json-schema-tool.d.ts +25 -0
- package/dist/json-schema-tool.js +19 -0
- package/dist/memory/optchat-core.d.ts +118 -0
- package/dist/memory/optchat-core.js +317 -0
- package/dist/memory/optchat.d.ts +156 -0
- package/dist/memory/optchat.js +432 -0
- package/dist/mentions.d.ts +56 -0
- package/dist/mentions.js +140 -0
- package/dist/metering.d.ts +183 -0
- package/dist/metering.js +443 -0
- package/dist/model-gateway.d.ts +86 -0
- package/dist/model-gateway.js +241 -0
- package/dist/native-version.d.ts +9 -0
- package/dist/native-version.js +7 -0
- package/dist/native.d.ts +4 -0
- package/dist/native.js +1 -0
- package/dist/presentation.d.ts +17 -0
- package/dist/presentation.js +39 -0
- package/dist/projection-format.d.ts +68 -0
- package/dist/projection-format.js +118 -0
- package/dist/projection-window.d.ts +9 -0
- package/dist/projection-window.js +93 -0
- package/dist/projection.d.ts +22 -0
- package/dist/projection.js +153 -0
- package/dist/question-response.d.ts +20 -0
- package/dist/question-response.js +75 -0
- package/dist/questions.d.ts +74 -0
- package/dist/questions.js +199 -0
- package/dist/self-evolving.d.ts +55 -0
- package/dist/self-evolving.js +239 -0
- package/dist/skills.d.ts +15 -0
- package/dist/skills.js +51 -0
- package/dist/tool-evidence.d.ts +14 -0
- package/dist/tool-evidence.js +54 -0
- package/dist/validation.d.ts +38 -0
- package/dist/validation.js +68 -0
- package/dist/workspaces.d.ts +107 -0
- package/dist/workspaces.js +212 -0
- package/package.json +145 -150
- package/dist/DebugDrawer-JNA43SVR.js +0 -8
- package/dist/admin-DORVQfLn.d.ts +0 -340
- package/dist/chunk-2BGLZZ7T.js +0 -10
- package/dist/chunk-42D6KAQV.js +0 -2882
- package/dist/chunk-4XOW57KJ.js +0 -343
- package/dist/chunk-72KT6VWV.js +0 -1338
- package/dist/chunk-7XAOVFSN.js +0 -28
- package/dist/chunk-KJIEMSQP.js +0 -198
- package/dist/chunk-KN72XWP7.js +0 -394
- package/dist/chunk-N6THTH7P.js +0 -110
- package/dist/chunk-V3H5A3BR.js +0 -22501
- package/dist/chunk-YGRQ4Q5P.js +0 -20
- package/dist/chunk-YTUZFKB3.js +0 -78
- package/dist/core/index.d.ts +0 -28
- package/dist/core/index.js +0 -617
- package/dist/createHarness-DOLOHA62.js +0 -18
- package/dist/eval/index.d.ts +0 -247
- package/dist/eval/index.js +0 -541
- package/dist/file-search-BUgMSKZE.d.ts +0 -289
- package/dist/front/artifacts.d.ts +0 -34
- package/dist/front/artifacts.js +0 -21
- package/dist/front/index.d.ts +0 -1082
- package/dist/front/index.js +0 -12912
- package/dist/front/styles.css +0 -5380
- package/dist/harness-qHlMJhZo.d.ts +0 -276
- package/dist/middleware-CaAEXpi5.d.ts +0 -115
- package/dist/piChatEvent-DpE0lIb9.d.ts +0 -450
- package/dist/piChatSessionService-CBct-hmz.d.ts +0 -86
- package/dist/sandbox-BMhut3kh.d.ts +0 -317
- package/dist/server/agent-host/testing/compositionRouteProof.d.ts +0 -8
- package/dist/server/agent-host/testing/compositionRouteProof.js +0 -78
- package/dist/server/agent-host/testing/gatewayConformance.d.ts +0 -43
- package/dist/server/agent-host/testing/gatewayConformance.js +0 -605
- package/dist/server/index.d.ts +0 -2278
- package/dist/server/index.js +0 -274
- package/dist/server/pi-session-readability.d.ts +0 -12
- package/dist/server/pi-session-readability.js +0 -23
- package/dist/server/worker/index.d.ts +0 -68
- package/dist/server/worker/index.js +0 -377
- package/dist/share-entry-CxS6UJ_L.d.ts +0 -330
- package/dist/shared/index.d.ts +0 -2111
- package/dist/shared/index.js +0 -262
- package/dist/types-DcWoQMn8.d.ts +0 -1377
- package/docs/ACCESSIBILITY.md +0 -52
- package/docs/AGENT_GATEWAY_V0.md +0 -212
- package/docs/AGENT_PACKAGES.md +0 -90
- package/docs/API.md +0 -123
- package/docs/AUTHORING.md +0 -68
- package/docs/CSP.md +0 -41
- package/docs/ERROR_CODES.md +0 -229
- package/docs/KNOWN_LIMITATIONS.md +0 -100
- package/docs/MIGRATION.md +0 -50
- package/docs/PERFORMANCE.md +0 -68
- package/docs/PLUGINS.md +0 -138
- package/docs/README.md +0 -98
- package/docs/RISKS-MULTI-TAB.md +0 -46
- package/docs/SESSION_IDENTITY.md +0 -91
- package/docs/STYLING.md +0 -73
- package/docs/UI-SHADCN.md +0 -56
- package/docs/VERCEL_COSTS.md +0 -103
- package/docs/plans/archive/AGENT_EVAL_FRAMEWORK.md +0 -466
- package/docs/plans/archive/agent-package-spec.md +0 -1777
- package/docs/plans/archive/harness-followup-capabilities.md +0 -440
- package/docs/plans/archive/harness-tool-ui-capabilities.md +0 -144
- package/docs/plans/archive/pi-followup-history-projection.md +0 -229
- package/docs/plans/archive/pi-tools-migration.md +0 -1061
- package/docs/plans/archive/reviews/pi-followup-history-codex-review.md +0 -11
- package/docs/plans/archive/reviews/pi-followup-history-gpt-review.md +0 -64
- package/docs/plans/archive/reviews/pi-followup-history-opus-review.md +0 -43
- package/docs/plans/archive/reviews/pi-followup-history-xai-review.md +0 -43
- package/docs/plans/archive/vercel-base-snapshot-template-plan.md +0 -527
- package/docs/plans/archive/vercel-persistent-sandbox-adapter.md +0 -553
- package/docs/runtime-provisioning.md +0 -157
- package/docs/runtime.md +0 -296
- package/docs/tools.md +0 -102
package/dist/admin-DORVQfLn.d.ts
DELETED
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
import { d as PiChatEvent, l as SessionArchiveFilter, O as OriginChannel, C as ChatModelSelection, T as ThinkingLevel, m as ChatAttachmentPayload, n as QueuedUserMessage, c as PiChatSnapshot } from './piChatEvent-DpE0lIb9.js';
|
|
2
|
-
|
|
3
|
-
/** Placement-independent event envelope. `seq` is the only replay cursor. */
|
|
4
|
-
interface AgentSessionEvent {
|
|
5
|
-
readonly ref: AgentSessionRef;
|
|
6
|
-
readonly seq: number;
|
|
7
|
-
readonly event: JsonSafe<PiChatEvent>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type WorkspaceScopeId = string;
|
|
11
|
-
type AuthSubjectId = string;
|
|
12
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
13
|
-
type JsonValue = JsonPrimitive | readonly JsonValue[] | {
|
|
14
|
-
readonly [key: string]: JsonValue;
|
|
15
|
-
};
|
|
16
|
-
/** Maps unknown event leaves onto the JSON transport boundary. */
|
|
17
|
-
type JsonSafe<T> = unknown extends T ? JsonValue : T extends JsonPrimitive ? T : T extends (...args: readonly never[]) => unknown ? never : T extends readonly (infer U)[] ? readonly JsonSafe<U>[] : T extends object ? {
|
|
18
|
-
readonly [K in keyof T]: JsonSafe<T[K]>;
|
|
19
|
-
} : never;
|
|
20
|
-
/** Verified identity facts returned only by the app-owned verifier. */
|
|
21
|
-
interface VerifiedAgentScopeClaim {
|
|
22
|
-
readonly workspaceScopeId: WorkspaceScopeId;
|
|
23
|
-
readonly authSubjectId: AuthSubjectId;
|
|
24
|
-
}
|
|
25
|
-
declare const authorizedAgentScope: unique symbol;
|
|
26
|
-
/**
|
|
27
|
-
* Issuer-owned runtime capability. It is deliberately not a transport DTO and
|
|
28
|
-
* must be checked by issuer identity and current membership on every use.
|
|
29
|
-
*/
|
|
30
|
-
interface AuthorizedAgentScope {
|
|
31
|
-
readonly workspaceScopeId: WorkspaceScopeId;
|
|
32
|
-
readonly authSubjectId: AuthSubjectId;
|
|
33
|
-
readonly [authorizedAgentScope]: true;
|
|
34
|
-
}
|
|
35
|
-
interface AgentScopeVerifier {
|
|
36
|
-
verify(scope: AuthorizedAgentScope): Promise<VerifiedAgentScopeClaim>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Product-owned access decision for one deployed Agent in one verified scope.
|
|
40
|
-
* The Host consumes this decision before session lookup, runtime binding, or
|
|
41
|
-
* effects. A host without a resolver preserves the legacy all-deployed policy.
|
|
42
|
-
*/
|
|
43
|
-
type AgentAccessDecision = {
|
|
44
|
-
readonly state: 'allowed';
|
|
45
|
-
readonly seatId?: string;
|
|
46
|
-
} | {
|
|
47
|
-
readonly state: 'not-available';
|
|
48
|
-
readonly reason: 'not-deployed' | 'not-seated';
|
|
49
|
-
} | {
|
|
50
|
-
readonly state: 'entitlement-denied';
|
|
51
|
-
readonly seatId: string;
|
|
52
|
-
readonly denial: 'subscription-required' | 'forbidden';
|
|
53
|
-
} | {
|
|
54
|
-
readonly state: 'policy-unavailable';
|
|
55
|
-
readonly retryAfterSeconds?: number;
|
|
56
|
-
};
|
|
57
|
-
type AgentAccessOperation = 'catalog' | 'session.list' | 'session.read' | 'session.create' | 'session.mutate' | 'runtime.bind' | 'runtime.effect' | 'stream.event';
|
|
58
|
-
interface ResolveAgentAccessInput {
|
|
59
|
-
readonly authorizedScope: AuthorizedAgentScope;
|
|
60
|
-
readonly verifiedClaim: VerifiedAgentScopeClaim;
|
|
61
|
-
readonly agentTypeId: string;
|
|
62
|
-
readonly operation: AgentAccessOperation;
|
|
63
|
-
}
|
|
64
|
-
type ResolveAgentAccess = (input: ResolveAgentAccessInput) => Promise<AgentAccessDecision>;
|
|
65
|
-
interface AgentSessionRef {
|
|
66
|
-
readonly agentTypeId: string;
|
|
67
|
-
readonly sessionId: string;
|
|
68
|
-
}
|
|
69
|
-
interface AgentSummary {
|
|
70
|
-
readonly agentTypeId: string;
|
|
71
|
-
readonly label: string;
|
|
72
|
-
readonly description?: string;
|
|
73
|
-
/** Runtime plugins explicitly bound to this Agent definition. */
|
|
74
|
-
readonly pluginIds?: readonly string[];
|
|
75
|
-
readonly definition?: {
|
|
76
|
-
readonly version: string;
|
|
77
|
-
readonly digest?: string;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
interface ListAgentsInput {
|
|
81
|
-
readonly scope: AuthorizedAgentScope;
|
|
82
|
-
}
|
|
83
|
-
interface AuthorizedAgentSessionQuery {
|
|
84
|
-
readonly scope: AuthorizedAgentScope;
|
|
85
|
-
readonly agentTypeId?: string;
|
|
86
|
-
readonly cursor?: string;
|
|
87
|
-
readonly limit?: number;
|
|
88
|
-
/** Defaults to `all`; archiving is a visibility flag, not a listing default. */
|
|
89
|
-
readonly archived?: SessionArchiveFilter;
|
|
90
|
-
}
|
|
91
|
-
type AgentSessionActivity = 'idle' | 'running' | 'aborting' | 'error';
|
|
92
|
-
interface AgentSessionSummary {
|
|
93
|
-
readonly ref: AgentSessionRef;
|
|
94
|
-
readonly title: string;
|
|
95
|
-
readonly status: AgentSessionActivity;
|
|
96
|
-
readonly createdAt: number;
|
|
97
|
-
readonly updatedAt: number;
|
|
98
|
-
readonly turnCount?: number;
|
|
99
|
-
/** Present only for an explicitly allowed bare native Pi transcript. */
|
|
100
|
-
readonly nativeSessionId?: string;
|
|
101
|
-
/** Native transcript metadata used to gate rename until a reply exists. */
|
|
102
|
-
readonly hasAssistantReply?: boolean;
|
|
103
|
-
/** Visibility only: present (true) exactly while the session is archived. */
|
|
104
|
-
readonly archived?: boolean;
|
|
105
|
-
}
|
|
106
|
-
interface AgentSessionPage {
|
|
107
|
-
readonly sessions: readonly AgentSessionSummary[];
|
|
108
|
-
readonly nextCursor?: string;
|
|
109
|
-
}
|
|
110
|
-
interface CreateAgentSessionInput {
|
|
111
|
-
readonly scope: AuthorizedAgentScope;
|
|
112
|
-
readonly agentTypeId: string;
|
|
113
|
-
readonly requestId: string;
|
|
114
|
-
readonly title?: string;
|
|
115
|
-
/** Trusted host-originated channel identity; browser callers normally omit it. */
|
|
116
|
-
readonly originChannel?: OriginChannel;
|
|
117
|
-
/** Boot-only intent to resume this exact tab-owned empty session. */
|
|
118
|
-
readonly resumeSessionId?: string;
|
|
119
|
-
}
|
|
120
|
-
interface ConnectAgentSessionInput {
|
|
121
|
-
readonly scope: AuthorizedAgentScope;
|
|
122
|
-
readonly ref: AgentSessionRef;
|
|
123
|
-
readonly cursor?: number;
|
|
124
|
-
}
|
|
125
|
-
interface ReadAgentSessionStateInput {
|
|
126
|
-
readonly scope: AuthorizedAgentScope;
|
|
127
|
-
readonly ref: AgentSessionRef;
|
|
128
|
-
}
|
|
129
|
-
interface RenameAgentSessionInput {
|
|
130
|
-
readonly scope: AuthorizedAgentScope;
|
|
131
|
-
readonly ref: AgentSessionRef;
|
|
132
|
-
readonly requestId: string;
|
|
133
|
-
readonly title: string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Archive is NOT delete: it hides the session from a default listing and
|
|
137
|
-
* nothing else. The transcript stays exactly where it was, and `archived:
|
|
138
|
-
* false` puts the row back.
|
|
139
|
-
*/
|
|
140
|
-
interface SetAgentSessionArchivedInput {
|
|
141
|
-
readonly scope: AuthorizedAgentScope;
|
|
142
|
-
readonly ref: AgentSessionRef;
|
|
143
|
-
readonly requestId: string;
|
|
144
|
-
readonly archived: boolean;
|
|
145
|
-
}
|
|
146
|
-
interface DeleteAgentSessionInput {
|
|
147
|
-
readonly scope: AuthorizedAgentScope;
|
|
148
|
-
readonly ref: AgentSessionRef;
|
|
149
|
-
readonly requestId: string;
|
|
150
|
-
}
|
|
151
|
-
interface AgentPromptCommand {
|
|
152
|
-
readonly kind: 'prompt';
|
|
153
|
-
readonly requestId: string;
|
|
154
|
-
readonly clientNonce: string;
|
|
155
|
-
readonly content: string;
|
|
156
|
-
readonly displayContent?: string;
|
|
157
|
-
/** Require an actually idle Pi session; busy is a retryable admission result. */
|
|
158
|
-
readonly requireIdle?: true;
|
|
159
|
-
readonly model?: ChatModelSelection;
|
|
160
|
-
readonly thinkingLevel?: ThinkingLevel;
|
|
161
|
-
readonly attachments?: readonly ChatAttachmentPayload[];
|
|
162
|
-
}
|
|
163
|
-
interface AgentFollowUpCommand {
|
|
164
|
-
readonly kind: 'followup';
|
|
165
|
-
readonly requestId: string;
|
|
166
|
-
readonly clientNonce: string;
|
|
167
|
-
readonly content: string;
|
|
168
|
-
readonly displayContent?: string;
|
|
169
|
-
readonly clientSeq: number;
|
|
170
|
-
}
|
|
171
|
-
type IdempotentAgentSend = AgentPromptCommand | AgentFollowUpCommand;
|
|
172
|
-
interface IdempotentAgentControl {
|
|
173
|
-
readonly requestId: string;
|
|
174
|
-
}
|
|
175
|
-
interface IdempotentInterruptControl extends IdempotentAgentControl {
|
|
176
|
-
/** Abort-and-queue policy specific to interrupt commands. */
|
|
177
|
-
readonly queueAction?: 'hold' | 'resume';
|
|
178
|
-
}
|
|
179
|
-
interface IdempotentQueueClear extends IdempotentAgentControl {
|
|
180
|
-
readonly clientNonce?: string;
|
|
181
|
-
readonly clientSeq?: number;
|
|
182
|
-
}
|
|
183
|
-
interface CommandReceipt {
|
|
184
|
-
readonly accepted: true;
|
|
185
|
-
readonly cursor: number;
|
|
186
|
-
}
|
|
187
|
-
interface AgentSendReceipt extends CommandReceipt {
|
|
188
|
-
readonly disposition: 'prompt' | 'followup';
|
|
189
|
-
readonly clientNonce: string;
|
|
190
|
-
readonly duplicate?: boolean;
|
|
191
|
-
readonly clientSeq?: number;
|
|
192
|
-
}
|
|
193
|
-
interface QueueClearReceipt extends CommandReceipt {
|
|
194
|
-
readonly cleared: number;
|
|
195
|
-
}
|
|
196
|
-
interface StopReceipt extends CommandReceipt {
|
|
197
|
-
readonly stopped: boolean;
|
|
198
|
-
readonly clearedQueue: readonly QueuedUserMessage[];
|
|
199
|
-
}
|
|
200
|
-
interface AgentSessionStateSnapshot {
|
|
201
|
-
readonly ref: AgentSessionRef;
|
|
202
|
-
readonly seq: number;
|
|
203
|
-
readonly summary: AgentSessionSummary;
|
|
204
|
-
readonly state: JsonSafe<PiChatSnapshot>;
|
|
205
|
-
}
|
|
206
|
-
interface AgentSessionConnection {
|
|
207
|
-
readonly ref: AgentSessionRef;
|
|
208
|
-
readonly events: AsyncIterable<AgentSessionEvent>;
|
|
209
|
-
send(input: IdempotentAgentSend): Promise<AgentSendReceipt>;
|
|
210
|
-
interrupt(input: IdempotentInterruptControl): Promise<CommandReceipt>;
|
|
211
|
-
stop(input: IdempotentAgentControl): Promise<StopReceipt>;
|
|
212
|
-
clearQueue(input: IdempotentQueueClear): Promise<QueueClearReceipt>;
|
|
213
|
-
close(): Promise<void>;
|
|
214
|
-
}
|
|
215
|
-
interface AgentGateway {
|
|
216
|
-
authorizeAgentAccess?(input: {
|
|
217
|
-
readonly scope: AuthorizedAgentScope;
|
|
218
|
-
readonly agentTypeId: string;
|
|
219
|
-
readonly operation: AgentAccessOperation;
|
|
220
|
-
}): Promise<void>;
|
|
221
|
-
listAgents(input: ListAgentsInput): Promise<readonly AgentSummary[]>;
|
|
222
|
-
listSessions(input: AuthorizedAgentSessionQuery): Promise<AgentSessionPage>;
|
|
223
|
-
createSession(input: CreateAgentSessionInput): Promise<AgentSessionRef>;
|
|
224
|
-
connectSession(input: ConnectAgentSessionInput): Promise<AgentSessionConnection>;
|
|
225
|
-
readSessionState(input: ReadAgentSessionStateInput): Promise<AgentSessionStateSnapshot>;
|
|
226
|
-
renameSession(input: RenameAgentSessionInput): Promise<AgentSessionSummary>;
|
|
227
|
-
setSessionArchived(input: SetAgentSessionArchivedInput): Promise<AgentSessionSummary>;
|
|
228
|
-
deleteSession(input: DeleteAgentSessionInput): Promise<void>;
|
|
229
|
-
close(): Promise<void>;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
declare const AgentGatewayErrorCode: {
|
|
233
|
-
readonly AGENT_TYPE_UNKNOWN: "AGENT_TYPE_UNKNOWN";
|
|
234
|
-
readonly AGENT_SESSION_NOT_FOUND: "AGENT_SESSION_NOT_FOUND";
|
|
235
|
-
readonly AGENT_SCOPE_DENIED: "AGENT_SCOPE_DENIED";
|
|
236
|
-
readonly AGENT_ENTITLEMENT_REQUIRED: "AGENT_ENTITLEMENT_REQUIRED";
|
|
237
|
-
readonly AGENT_ACCESS_FORBIDDEN: "AGENT_ACCESS_FORBIDDEN";
|
|
238
|
-
readonly AGENT_ACCESS_POLICY_UNAVAILABLE: "AGENT_ACCESS_POLICY_UNAVAILABLE";
|
|
239
|
-
readonly AGENT_SESSION_REPLAY_GAP: "AGENT_SESSION_REPLAY_GAP";
|
|
240
|
-
readonly AGENT_SESSION_CURSOR_AHEAD: "AGENT_SESSION_CURSOR_AHEAD";
|
|
241
|
-
readonly AGENT_SESSION_CURSOR_EXPIRED: "AGENT_SESSION_CURSOR_EXPIRED";
|
|
242
|
-
readonly AGENT_SESSION_CURSOR_INVALID: "AGENT_SESSION_CURSOR_INVALID";
|
|
243
|
-
readonly AGENT_REQUEST_CONFLICT: "AGENT_REQUEST_CONFLICT";
|
|
244
|
-
readonly AGENT_REQUEST_IN_PROGRESS: "AGENT_REQUEST_IN_PROGRESS";
|
|
245
|
-
readonly AGENT_REQUEST_OUTCOME_UNKNOWN: "AGENT_REQUEST_OUTCOME_UNKNOWN";
|
|
246
|
-
readonly AGENT_RUNTIME_RESTART_REQUIRED: "AGENT_RUNTIME_RESTART_REQUIRED";
|
|
247
|
-
readonly AGENT_COMMAND_INVALID_STATE: "AGENT_COMMAND_INVALID_STATE";
|
|
248
|
-
readonly AGENT_SHARED_ENVIRONMENT_UNAVAILABLE: "AGENT_SHARED_ENVIRONMENT_UNAVAILABLE";
|
|
249
|
-
readonly AGENT_GATEWAY_CLOSED: "AGENT_GATEWAY_CLOSED";
|
|
250
|
-
};
|
|
251
|
-
type AgentGatewayErrorCode = (typeof AgentGatewayErrorCode)[keyof typeof AgentGatewayErrorCode];
|
|
252
|
-
declare const AGENT_GATEWAY_ERROR_CODES: readonly ["AGENT_TYPE_UNKNOWN", "AGENT_SESSION_NOT_FOUND", "AGENT_SCOPE_DENIED", "AGENT_ENTITLEMENT_REQUIRED", "AGENT_ACCESS_FORBIDDEN", "AGENT_ACCESS_POLICY_UNAVAILABLE", "AGENT_SESSION_REPLAY_GAP", "AGENT_SESSION_CURSOR_AHEAD", "AGENT_SESSION_CURSOR_EXPIRED", "AGENT_SESSION_CURSOR_INVALID", "AGENT_REQUEST_CONFLICT", "AGENT_REQUEST_IN_PROGRESS", "AGENT_REQUEST_OUTCOME_UNKNOWN", "AGENT_RUNTIME_RESTART_REQUIRED", "AGENT_COMMAND_INVALID_STATE", "AGENT_SHARED_ENVIRONMENT_UNAVAILABLE", "AGENT_GATEWAY_CLOSED"];
|
|
253
|
-
interface AgentGatewayErrorDTO {
|
|
254
|
-
readonly code: AgentGatewayErrorCode;
|
|
255
|
-
readonly message: string;
|
|
256
|
-
readonly details?: JsonValue;
|
|
257
|
-
}
|
|
258
|
-
declare class AgentGatewayError extends Error {
|
|
259
|
-
readonly code: AgentGatewayErrorCode;
|
|
260
|
-
readonly details?: JsonValue;
|
|
261
|
-
constructor(code: AgentGatewayErrorCode, message: string, details?: JsonValue);
|
|
262
|
-
toJSON(): AgentGatewayErrorDTO;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
declare const CREDENTIAL_ERROR_CODES: {
|
|
266
|
-
readonly PROVIDER_UNKNOWN: "CREDENTIAL_PROVIDER_UNKNOWN";
|
|
267
|
-
readonly NOT_CONFIGURED: "CREDENTIAL_NOT_CONFIGURED";
|
|
268
|
-
readonly DISABLED: "CREDENTIAL_DISABLED";
|
|
269
|
-
readonly REVOKED: "CREDENTIAL_REVOKED";
|
|
270
|
-
readonly FORBIDDEN: "CREDENTIAL_FORBIDDEN";
|
|
271
|
-
readonly WORKSPACE_MISMATCH: "CREDENTIAL_WORKSPACE_MISMATCH";
|
|
272
|
-
readonly CONSUMER_MISMATCH: "CREDENTIAL_CONSUMER_MISMATCH";
|
|
273
|
-
readonly DELIVERY_FORBIDDEN: "CREDENTIAL_DELIVERY_FORBIDDEN";
|
|
274
|
-
readonly AUTHORITY_INVALID: "CREDENTIAL_AUTHORITY_INVALID";
|
|
275
|
-
readonly SCHEMA_MISMATCH: "CREDENTIAL_SCHEMA_MISMATCH";
|
|
276
|
-
readonly UNREADABLE: "CREDENTIAL_UNREADABLE";
|
|
277
|
-
readonly BACKEND_UNAVAILABLE: "CREDENTIAL_BACKEND_UNAVAILABLE";
|
|
278
|
-
readonly KEK_UNAVAILABLE: "CREDENTIAL_KEK_UNAVAILABLE";
|
|
279
|
-
readonly LEASE_EXPIRED: "CREDENTIAL_LEASE_EXPIRED";
|
|
280
|
-
readonly OAUTH_STATE_INVALID: "CREDENTIAL_OAUTH_STATE_INVALID";
|
|
281
|
-
readonly OAUTH_REFRESH_FAILED: "CREDENTIAL_OAUTH_REFRESH_FAILED";
|
|
282
|
-
readonly VALIDATION_UNAUTHORIZED: "CREDENTIAL_VALIDATION_UNAUTHORIZED";
|
|
283
|
-
readonly VALIDATION_RATE_LIMITED: "CREDENTIAL_VALIDATION_RATE_LIMITED";
|
|
284
|
-
readonly VALIDATION_UNAVAILABLE: "CREDENTIAL_VALIDATION_UNAVAILABLE";
|
|
285
|
-
readonly VALIDATION_TIMEOUT: "CREDENTIAL_VALIDATION_TIMEOUT";
|
|
286
|
-
readonly VALIDATION_UNSUPPORTED: "CREDENTIAL_VALIDATION_UNSUPPORTED";
|
|
287
|
-
};
|
|
288
|
-
type CredentialErrorCode = (typeof CREDENTIAL_ERROR_CODES)[keyof typeof CREDENTIAL_ERROR_CODES];
|
|
289
|
-
declare class CredentialResolutionError extends Error {
|
|
290
|
-
readonly code: CredentialErrorCode;
|
|
291
|
-
readonly retryable: boolean;
|
|
292
|
-
constructor(code: CredentialErrorCode, message: string, options?: Readonly<{
|
|
293
|
-
retryable?: boolean;
|
|
294
|
-
}>);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
type CredentialLifecycleStateV1 = 'active' | 'disabled' | 'revoked' | 'needs_reauth' | 'intentionally_absent' | 'instance_fallback_enabled';
|
|
298
|
-
/** Metadata-only HTTP contract. No secret-bearing property exists on response DTOs. */
|
|
299
|
-
interface OAuthRevocationReceiptV1 {
|
|
300
|
-
readonly localStatus: 'revoked';
|
|
301
|
-
/** Pending means Pi provided no verifiable upstream revocation confirmation. */
|
|
302
|
-
readonly upstreamStatus: 'pending' | 'confirmed';
|
|
303
|
-
readonly attemptedAt: string;
|
|
304
|
-
}
|
|
305
|
-
interface CredentialMetadataV1 {
|
|
306
|
-
readonly providerId: string;
|
|
307
|
-
readonly displayName: string;
|
|
308
|
-
readonly credentialType: string;
|
|
309
|
-
readonly state: CredentialLifecycleStateV1 | 'not_configured';
|
|
310
|
-
readonly credentialVersion?: number;
|
|
311
|
-
readonly maskedLastFourSuffix?: string;
|
|
312
|
-
readonly createdAt?: string;
|
|
313
|
-
readonly updatedAt?: string;
|
|
314
|
-
readonly oauthRevocation?: OAuthRevocationReceiptV1;
|
|
315
|
-
}
|
|
316
|
-
interface CredentialMetadataListResponseV1 {
|
|
317
|
-
readonly credentials: readonly CredentialMetadataV1[];
|
|
318
|
-
}
|
|
319
|
-
interface CredentialWriteRequestV1 {
|
|
320
|
-
readonly displayLabel?: string;
|
|
321
|
-
readonly fields: Readonly<Record<string, string>>;
|
|
322
|
-
}
|
|
323
|
-
type CredentialKeyLifecycleOperationV1 = 'rotate' | 'rewrap' | 'crypto-shred';
|
|
324
|
-
/** Metadata-only, caller-supplied-idempotency receipt; never includes key material. */
|
|
325
|
-
interface CredentialKeyLifecycleReceiptV1 {
|
|
326
|
-
readonly contractVersion: 'boring.credential-key-lifecycle-receipt.v1';
|
|
327
|
-
readonly operation: CredentialKeyLifecycleOperationV1;
|
|
328
|
-
readonly workspaceId: string;
|
|
329
|
-
readonly operationId: string;
|
|
330
|
-
readonly status: 'completed';
|
|
331
|
-
readonly dekGeneration?: number;
|
|
332
|
-
}
|
|
333
|
-
interface CredentialRouteErrorV1 {
|
|
334
|
-
readonly error: {
|
|
335
|
-
readonly code: CredentialErrorCode;
|
|
336
|
-
readonly message: string;
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export { type AgentGateway as A, type CredentialLifecycleStateV1 as B, CREDENTIAL_ERROR_CODES as C, type CredentialMetadataListResponseV1 as D, type CredentialMetadataV1 as E, CredentialResolutionError as F, type CredentialRouteErrorV1 as G, type CredentialWriteRequestV1 as H, type DeleteAgentSessionInput as I, type IdempotentAgentControl as J, type IdempotentAgentSend as K, type IdempotentInterruptControl as L, type IdempotentQueueClear as M, type JsonPrimitive as N, type JsonSafe as O, type JsonValue as P, type ListAgentsInput as Q, type ReadAgentSessionStateInput as R, type RenameAgentSessionInput as S, type ResolveAgentAccess as T, type ResolveAgentAccessInput as U, type VerifiedAgentScopeClaim as V, type WorkspaceScopeId as W, type AuthorizedAgentScope as a, type AgentSessionRef as b, type AgentSessionActivity as c, type AgentSendReceipt as d, AGENT_GATEWAY_ERROR_CODES as e, type AgentAccessDecision as f, type AgentAccessOperation as g, type AgentFollowUpCommand as h, AgentGatewayError as i, AgentGatewayErrorCode as j, type AgentGatewayErrorDTO as k, type AgentPromptCommand as l, type AgentScopeVerifier as m, type AgentSessionConnection as n, type AgentSessionEvent as o, type AgentSessionPage as p, type AgentSessionStateSnapshot as q, type AgentSessionSummary as r, type AgentSummary as s, type AuthSubjectId as t, type AuthorizedAgentSessionQuery as u, type ConnectAgentSessionInput as v, type CreateAgentSessionInput as w, type CredentialErrorCode as x, type CredentialKeyLifecycleOperationV1 as y, type CredentialKeyLifecycleReceiptV1 as z };
|