@hachej/boring-agent 0.1.110 → 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
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { o as InterruptReceipt, j as StopReceipt } from './piChatEvent-DpE0lIb9.js';
|
|
2
|
-
import { p as AgentSendInput, j as AgentEvent } from './harness-qHlMJhZo.js';
|
|
3
|
-
import { b as Workspace } from './sandbox-BMhut3kh.js';
|
|
4
|
-
import { b as AgentSessionRef, d as AgentSendReceipt, A as AgentGateway, a as AuthorizedAgentScope } from './admin-DORVQfLn.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Opaque, in-process Core capability. The brand symbol and constructor are not
|
|
8
|
-
* exported; Core records issued object identity in a private WeakMap.
|
|
9
|
-
*/
|
|
10
|
-
declare const authorizedWorkspaceCredentialScopeBrand: unique symbol;
|
|
11
|
-
interface AuthorizedWorkspaceCredentialScopeV1 {
|
|
12
|
-
readonly contractVersion: "boring.authorized-workspace-credential-scope.v1";
|
|
13
|
-
readonly [authorizedWorkspaceCredentialScopeBrand]: true;
|
|
14
|
-
}
|
|
15
|
-
type VerifiedWorkspaceCredentialPrincipalV1 = Readonly<{
|
|
16
|
-
kind: "user";
|
|
17
|
-
userId: string;
|
|
18
|
-
membershipRole: "owner" | "editor" | "viewer";
|
|
19
|
-
}> | Readonly<{
|
|
20
|
-
kind: "system";
|
|
21
|
-
principalId: string;
|
|
22
|
-
workspaceGrantId: string;
|
|
23
|
-
}>;
|
|
24
|
-
interface VerifiedWorkspaceCredentialAuthorityV1 {
|
|
25
|
-
readonly workspaceId: string;
|
|
26
|
-
readonly appId: string;
|
|
27
|
-
readonly principal: VerifiedWorkspaceCredentialPrincipalV1;
|
|
28
|
-
readonly authorizationReceiptId: string;
|
|
29
|
-
readonly expiresAt: string;
|
|
30
|
-
}
|
|
31
|
-
/** Core-owned verifier; a TypeScript cast or copied object is never authority. */
|
|
32
|
-
interface WorkspaceCredentialAuthorityVerifierV1 {
|
|
33
|
-
readonly contractVersion: "boring.workspace-credential-authority-verifier.v1";
|
|
34
|
-
verifyCurrent(scope: AuthorizedWorkspaceCredentialScopeV1): Promise<VerifiedWorkspaceCredentialAuthorityV1>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type ProviderId = string & {
|
|
38
|
-
readonly __providerId: unique symbol;
|
|
39
|
-
};
|
|
40
|
-
type CredentialFieldId = string & {
|
|
41
|
-
readonly __credentialFieldId: unique symbol;
|
|
42
|
-
};
|
|
43
|
-
type CredentialConsumerBindingId = string & {
|
|
44
|
-
readonly __credentialConsumerBindingId: unique symbol;
|
|
45
|
-
};
|
|
46
|
-
type ProviderCategoryV1 = "llm" | "search" | "transcription" | "mcp" | "other";
|
|
47
|
-
interface CredentialFieldDefinitionV1 {
|
|
48
|
-
readonly id: CredentialFieldId;
|
|
49
|
-
readonly label: string;
|
|
50
|
-
readonly required: boolean;
|
|
51
|
-
readonly sensitivity: "secret" | "public";
|
|
52
|
-
readonly minBytes?: number;
|
|
53
|
-
readonly maxBytes: number;
|
|
54
|
-
}
|
|
55
|
-
interface ExternalManagedAccountReferenceDefinitionV1 {
|
|
56
|
-
readonly label: string;
|
|
57
|
-
readonly maxBytes: number;
|
|
58
|
-
readonly persistence: "server-only-metadata";
|
|
59
|
-
}
|
|
60
|
-
type ProviderCredentialDefinitionV1 = Readonly<{
|
|
61
|
-
type: "api-key";
|
|
62
|
-
fields: readonly CredentialFieldDefinitionV1[];
|
|
63
|
-
}> | Readonly<{
|
|
64
|
-
type: "oauth2-authorization-code";
|
|
65
|
-
tokenCustody: "local-vault";
|
|
66
|
-
clientRegistrationRef: string;
|
|
67
|
-
authorizationEndpoint: `https://${string}`;
|
|
68
|
-
tokenEndpoint: `https://${string}`;
|
|
69
|
-
revocationEndpoint?: `https://${string}`;
|
|
70
|
-
scopes: readonly string[];
|
|
71
|
-
usePkce: true;
|
|
72
|
-
refreshTokenField: CredentialFieldDefinitionV1;
|
|
73
|
-
resolvedAccessTokenField: CredentialFieldDefinitionV1;
|
|
74
|
-
accessTokenPersistence: "memory-only";
|
|
75
|
-
}> | Readonly<{
|
|
76
|
-
type: "oauth2-authorization-code";
|
|
77
|
-
tokenCustody: "external-managed";
|
|
78
|
-
custodianAdapterId: string;
|
|
79
|
-
connectUrlOrigins: readonly `https://${string}`[];
|
|
80
|
-
scopes: readonly string[];
|
|
81
|
-
accountReference: ExternalManagedAccountReferenceDefinitionV1;
|
|
82
|
-
delivery: "host-session-adapter-only";
|
|
83
|
-
}> | Readonly<{
|
|
84
|
-
type: "none";
|
|
85
|
-
}>;
|
|
86
|
-
interface ProviderDefinitionV1 {
|
|
87
|
-
readonly contractVersion: "boring.provider.v1";
|
|
88
|
-
readonly id: ProviderId;
|
|
89
|
-
readonly displayName: string;
|
|
90
|
-
readonly category: ProviderCategoryV1;
|
|
91
|
-
readonly credential: ProviderCredentialDefinitionV1;
|
|
92
|
-
readonly consumerBindingIds: readonly CredentialConsumerBindingId[];
|
|
93
|
-
readonly sandboxEgressOrigins: readonly `https://${string}`[];
|
|
94
|
-
readonly mcp?: Readonly<{
|
|
95
|
-
transport: "streamable-http";
|
|
96
|
-
endpoint?: `https://${string}`;
|
|
97
|
-
toolkitId?: string;
|
|
98
|
-
allowedTools: readonly string[];
|
|
99
|
-
deniedTools: readonly string[];
|
|
100
|
-
}>;
|
|
101
|
-
}
|
|
102
|
-
interface ProviderRegistryV1 {
|
|
103
|
-
readonly contractVersion: "boring.provider-registry.v1";
|
|
104
|
-
list(): readonly ProviderDefinitionV1[];
|
|
105
|
-
require(providerId: ProviderId): ProviderDefinitionV1;
|
|
106
|
-
}
|
|
107
|
-
declare function createProviderRegistryV1(defs: readonly ProviderDefinitionV1[]): ProviderRegistryV1;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Ratified `KmsBackend` abstraction (docs/issues/820/byok-secret-vault-plan.md,
|
|
111
|
-
* "KmsBackend interface (pluggable KEK provider)", amendment A).
|
|
112
|
-
*
|
|
113
|
-
* This module is intentionally backend-agnostic: OVH KMS, Scaleway Key Manager,
|
|
114
|
-
* Exoscale KMS, self-run Vault/OpenBao Transit and the local-KEK envelope are
|
|
115
|
-
* all implementations of `WorkspaceKekProviderV1`. Only the KEK-holder call
|
|
116
|
-
* differs; the per-workspace DEK and the AAD-bound AES-256-GCM field crypto are
|
|
117
|
-
* identical across every backend.
|
|
118
|
-
*
|
|
119
|
-
* Shared code stays `Uint8Array`-only: no `node:*` import and no Node byte-array
|
|
120
|
-
* type may appear here. Backend-specific crypto lives under `src/server/**`.
|
|
121
|
-
*/
|
|
122
|
-
declare const WORKSPACE_KEK_PROVIDER_VERSION: "boring.workspace-kek-provider.v1";
|
|
123
|
-
declare const CREDENTIAL_ENVELOPE_VERSION: "boring.credential-envelope.v1";
|
|
124
|
-
/** Canonical AAD encoding version; changing it is a migration, not a tweak. */
|
|
125
|
-
declare const CREDENTIAL_AAD_ENCODING_VERSION: "boring.credential-aad.v1";
|
|
126
|
-
/** AES-256-GCM parameters. Fixed by the ratified design; never widened. */
|
|
127
|
-
declare const CREDENTIAL_DEK_BYTE_LENGTH_V1 = 32;
|
|
128
|
-
declare const CREDENTIAL_KEK_BYTE_LENGTH_V1 = 32;
|
|
129
|
-
declare const CREDENTIAL_NONCE_BYTE_LENGTH_V1 = 12;
|
|
130
|
-
declare const CREDENTIAL_AUTH_TAG_BYTE_LENGTH_V1 = 16;
|
|
131
|
-
interface WorkspaceKekContextV1 {
|
|
132
|
-
readonly workspaceId: string;
|
|
133
|
-
readonly dekGeneration: number;
|
|
134
|
-
readonly requestId: string;
|
|
135
|
-
}
|
|
136
|
-
type WrappedWorkspaceDekPayloadV1 = Readonly<{
|
|
137
|
-
/** Reserved for a future self-run Vault/OpenBao Transit backend. */
|
|
138
|
-
format: "vault-transit-ciphertext.v1";
|
|
139
|
-
ciphertext: Uint8Array;
|
|
140
|
-
}> | Readonly<{
|
|
141
|
-
format: "local-aes-256-gcm.v1";
|
|
142
|
-
ciphertext: Uint8Array;
|
|
143
|
-
nonce: Uint8Array;
|
|
144
|
-
authTag: Uint8Array;
|
|
145
|
-
aadContext: Uint8Array;
|
|
146
|
-
}> | Readonly<{
|
|
147
|
-
/** Reserved. A future backend must define and conformance-test this. */
|
|
148
|
-
format: "external-kms-opaque.v1";
|
|
149
|
-
payloadFormatId: string;
|
|
150
|
-
opaqueAuthenticatedPayload: Uint8Array;
|
|
151
|
-
}>;
|
|
152
|
-
interface WrappedWorkspaceDekV1 {
|
|
153
|
-
readonly providerId: string;
|
|
154
|
-
readonly keyRef: string;
|
|
155
|
-
readonly keyVersion: number;
|
|
156
|
-
readonly payload: WrappedWorkspaceDekPayloadV1;
|
|
157
|
-
}
|
|
158
|
-
interface GeneratedWorkspaceDekV1 {
|
|
159
|
-
/** Transient plaintext; the caller overwrites and drops it in `finally`. */
|
|
160
|
-
readonly plaintextDek: Uint8Array;
|
|
161
|
-
readonly wrappedDek: WrappedWorkspaceDekV1;
|
|
162
|
-
}
|
|
163
|
-
interface WorkspaceKekProviderReadinessV1 {
|
|
164
|
-
readonly ready: boolean;
|
|
165
|
-
readonly reasonCode?: string;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* `readiness()` returning `ready: false`, or any backend/KEK error, denies the
|
|
169
|
-
* credential operation (fail closed). An implementation never falls back to
|
|
170
|
-
* another backend or to plaintext.
|
|
171
|
-
*/
|
|
172
|
-
interface WorkspaceKekProviderV1 {
|
|
173
|
-
readonly contractVersion: typeof WORKSPACE_KEK_PROVIDER_VERSION;
|
|
174
|
-
readonly providerId: string;
|
|
175
|
-
generateDataKey(context: WorkspaceKekContextV1): Promise<GeneratedWorkspaceDekV1>;
|
|
176
|
-
unwrapDataKey(context: WorkspaceKekContextV1, wrapped: WrappedWorkspaceDekV1): Promise<Uint8Array>;
|
|
177
|
-
rewrapDataKey?(context: WorkspaceKekContextV1, wrapped: WrappedWorkspaceDekV1): Promise<WrappedWorkspaceDekV1>;
|
|
178
|
-
readiness(): Promise<WorkspaceKekProviderReadinessV1>;
|
|
179
|
-
close?(): Promise<void>;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* The identity a field envelope is cryptographically bound to. Every component
|
|
183
|
-
* is part of the AAD, so moving a row between workspaces, providers, fields,
|
|
184
|
-
* credential versions or DEK generations fails authentication.
|
|
185
|
-
*/
|
|
186
|
-
interface CredentialFieldAadContextV1 {
|
|
187
|
-
readonly workspaceId: string;
|
|
188
|
-
readonly credentialId: string;
|
|
189
|
-
readonly providerId: string;
|
|
190
|
-
readonly fieldId: string;
|
|
191
|
-
readonly credentialVersion: number;
|
|
192
|
-
readonly dekGeneration: number;
|
|
193
|
-
}
|
|
194
|
-
/** Logical encrypted field envelope; the DB may normalize `wrappedDek` away. */
|
|
195
|
-
interface CredentialEnvelopeV1 {
|
|
196
|
-
readonly envelopeVersion: typeof CREDENTIAL_ENVELOPE_VERSION;
|
|
197
|
-
readonly ciphertext: Uint8Array;
|
|
198
|
-
readonly nonce: Uint8Array;
|
|
199
|
-
readonly authTag: Uint8Array;
|
|
200
|
-
readonly aadContext: Uint8Array;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface WorkspaceAgentDispatcherContext {
|
|
204
|
-
workspaceId: string;
|
|
205
|
-
userId: string;
|
|
206
|
-
}
|
|
207
|
-
type WorkspaceAgentDispatcherSendInput = Omit<AgentSendInput, 'ctx'>;
|
|
208
|
-
interface WorkspaceAgentDispatcherDispatchInput extends WorkspaceAgentDispatcherSendInput {
|
|
209
|
-
/** Optional user-visible presentation when content carries hidden instructions. */
|
|
210
|
-
displayMessage?: string;
|
|
211
|
-
/** Optional title for a newly created addressed session. */
|
|
212
|
-
title?: string;
|
|
213
|
-
/** Durable caller-owned idempotency key. */
|
|
214
|
-
requestId: string;
|
|
215
|
-
/** Defaults to requestId. */
|
|
216
|
-
clientNonce?: string;
|
|
217
|
-
/** Defaults to prompt; follow-up requires a non-negative clientSeq. */
|
|
218
|
-
kind?: 'prompt' | 'followup';
|
|
219
|
-
/** Server-only atomic admission for durable background prompt delivery. */
|
|
220
|
-
requireIdle?: true;
|
|
221
|
-
clientSeq?: number;
|
|
222
|
-
}
|
|
223
|
-
interface WorkspaceAgentDispatch {
|
|
224
|
-
ref: AgentSessionRef;
|
|
225
|
-
receipt: AgentSendReceipt;
|
|
226
|
-
events: AsyncIterable<AgentEvent>;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Callback-scoped direct Agent capability. The Workspace and operations are
|
|
230
|
-
* lease guarded by the Host and must not be retained after the callback.
|
|
231
|
-
*/
|
|
232
|
-
interface LeaseBoundWorkspaceAgent {
|
|
233
|
-
readonly workspace: Workspace;
|
|
234
|
-
readonly signal: AbortSignal;
|
|
235
|
-
dispatch(input: WorkspaceAgentDispatcherDispatchInput, onEvent: (event: AgentEvent) => void | Promise<void>, onAccepted?: (accepted: {
|
|
236
|
-
readonly ref: AgentSessionRef;
|
|
237
|
-
readonly receipt: AgentSendReceipt;
|
|
238
|
-
}) => void | Promise<void>): Promise<{
|
|
239
|
-
readonly ref: AgentSessionRef;
|
|
240
|
-
readonly receipt: AgentSendReceipt;
|
|
241
|
-
}>;
|
|
242
|
-
interrupt(sessionId: string, requestId: string): Promise<InterruptReceipt>;
|
|
243
|
-
stop(sessionId: string, requestId: string): Promise<StopReceipt>;
|
|
244
|
-
}
|
|
245
|
-
type AgentInvocationFundingPolicyV1 = 'personal-subscription' | 'api-key-only';
|
|
246
|
-
interface WorkspaceAgentDirectRunInput {
|
|
247
|
-
readonly agentTypeId: string;
|
|
248
|
-
readonly context: WorkspaceAgentDispatcherContext;
|
|
249
|
-
readonly requestId: string;
|
|
250
|
-
/** Dispatcher invocations are unattended by contract and can never opt into personal OAuth. */
|
|
251
|
-
readonly fundingPolicy: 'api-key-only';
|
|
252
|
-
}
|
|
253
|
-
type WorkspaceAgentDirectRunCallback = (binding: LeaseBoundWorkspaceAgent) => Promise<void>;
|
|
254
|
-
/** Addressed gateway binding minted by the trusted composition root. */
|
|
255
|
-
interface WorkspaceAgentGatewayBinding {
|
|
256
|
-
gateway: AgentGateway;
|
|
257
|
-
scope: AuthorizedAgentScope;
|
|
258
|
-
agentTypeId: string;
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Compatibility-facing delegation surface. New durable callers use dispatch so
|
|
262
|
-
* the addressed ref and accepted Gateway receipt can be persisted before they
|
|
263
|
-
* consume events. send remains for callers that only need the legacy stream.
|
|
264
|
-
*/
|
|
265
|
-
interface WorkspaceAgentDispatcher {
|
|
266
|
-
/** Optional only for source compatibility with pre-Gateway injected resolvers. */
|
|
267
|
-
dispatch?(input: WorkspaceAgentDispatcherDispatchInput): Promise<WorkspaceAgentDispatch>;
|
|
268
|
-
send(input: WorkspaceAgentDispatcherSendInput): AsyncIterable<AgentEvent>;
|
|
269
|
-
interrupt(sessionId: string): Promise<InterruptReceipt>;
|
|
270
|
-
stop(sessionId: string): Promise<StopReceipt>;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
declare const AGENT_RESOURCES_FILESYSTEM_ID: "agent_resources";
|
|
274
|
-
/**
|
|
275
|
-
* Agent-scoped readonly filesystem carrying the knowledge/ folder shipped
|
|
276
|
-
* inside an agent definition package (gh-1107 slice 2). Generic id only —
|
|
277
|
-
* never tenant-named. The binding exists only for the owning agent.
|
|
278
|
-
*/
|
|
279
|
-
declare const AGENT_KNOWLEDGE_FILESYSTEM_ID: "agent_knowledge";
|
|
280
|
-
interface AgentSkillResource {
|
|
281
|
-
readonly filesystem: 'user' | typeof AGENT_RESOURCES_FILESYSTEM_ID | (string & {});
|
|
282
|
-
readonly path: string;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
interface FileSearch {
|
|
286
|
-
search(glob: string, limit?: number): Promise<string[]>;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export { type AuthorizedWorkspaceCredentialScopeV1 as A, type WorkspaceCredentialAuthorityVerifierV1 as B, type CredentialConsumerBindingId as C, type WorkspaceKekContextV1 as D, type ExternalManagedAccountReferenceDefinitionV1 as E, type FileSearch as F, type GeneratedWorkspaceDekV1 as G, type WorkspaceKekProviderReadinessV1 as H, type WorkspaceKekProviderV1 as I, type WrappedWorkspaceDekPayloadV1 as J, type WrappedWorkspaceDekV1 as K, type LeaseBoundWorkspaceAgent as L, createProviderRegistryV1 as M, type AgentInvocationFundingPolicyV1 as N, type ProviderId as P, type VerifiedWorkspaceCredentialAuthorityV1 as V, WORKSPACE_KEK_PROVIDER_VERSION as W, type CredentialFieldId as a, type ProviderRegistryV1 as b, type ProviderDefinitionV1 as c, type CredentialFieldDefinitionV1 as d, AGENT_KNOWLEDGE_FILESYSTEM_ID as e, AGENT_RESOURCES_FILESYSTEM_ID as f, type AgentSkillResource as g, CREDENTIAL_AAD_ENCODING_VERSION as h, CREDENTIAL_AUTH_TAG_BYTE_LENGTH_V1 as i, CREDENTIAL_DEK_BYTE_LENGTH_V1 as j, CREDENTIAL_ENVELOPE_VERSION as k, CREDENTIAL_KEK_BYTE_LENGTH_V1 as l, CREDENTIAL_NONCE_BYTE_LENGTH_V1 as m, type CredentialEnvelopeV1 as n, type CredentialFieldAadContextV1 as o, type ProviderCategoryV1 as p, type ProviderCredentialDefinitionV1 as q, type VerifiedWorkspaceCredentialPrincipalV1 as r, type WorkspaceAgentDirectRunCallback as s, type WorkspaceAgentDirectRunInput as t, type WorkspaceAgentDispatch as u, type WorkspaceAgentDispatcher as v, type WorkspaceAgentDispatcherContext as w, type WorkspaceAgentDispatcherDispatchInput as x, type WorkspaceAgentDispatcherSendInput as y, type WorkspaceAgentGatewayBinding as z };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, HTMLAttributes, ComponentProps } from 'react';
|
|
3
|
-
import { Button } from '@hachej/boring-ui-kit';
|
|
4
|
-
import { LucideIcon } from 'lucide-react';
|
|
5
|
-
|
|
6
|
-
interface OpenArtifactOptions {
|
|
7
|
-
filesystem?: string;
|
|
8
|
-
}
|
|
9
|
-
type OpenArtifactHandler = (path: string, options?: OpenArtifactOptions) => void;
|
|
10
|
-
interface ArtifactOpenProviderProps {
|
|
11
|
-
onOpenArtifact?: OpenArtifactHandler;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare function ArtifactOpenProvider({ onOpenArtifact, children }: ArtifactOpenProviderProps): react.JSX.Element;
|
|
15
|
-
declare function useOpenArtifact(): OpenArtifactHandler | null;
|
|
16
|
-
|
|
17
|
-
type ArtifactProps = HTMLAttributes<HTMLDivElement>;
|
|
18
|
-
declare const Artifact: ({ className, ...props }: ArtifactProps) => react.JSX.Element;
|
|
19
|
-
type ArtifactHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
20
|
-
declare const ArtifactHeader: ({ className, ...props }: ArtifactHeaderProps) => react.JSX.Element;
|
|
21
|
-
type ArtifactTitleProps = HTMLAttributes<HTMLParagraphElement>;
|
|
22
|
-
declare const ArtifactTitle: ({ className, ...props }: ArtifactTitleProps) => react.JSX.Element;
|
|
23
|
-
type ArtifactDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
24
|
-
declare const ArtifactDescription: ({ className, ...props }: ArtifactDescriptionProps) => react.JSX.Element;
|
|
25
|
-
type ArtifactActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
26
|
-
declare const ArtifactActions: ({ className, ...props }: ArtifactActionsProps) => react.JSX.Element;
|
|
27
|
-
type ArtifactActionProps = ComponentProps<typeof Button> & {
|
|
28
|
-
tooltip?: string;
|
|
29
|
-
label?: string;
|
|
30
|
-
icon?: LucideIcon;
|
|
31
|
-
};
|
|
32
|
-
declare const ArtifactAction: ({ tooltip, label, icon: Icon, children, className, size, variant, ...props }: ArtifactActionProps) => react.JSX.Element;
|
|
33
|
-
|
|
34
|
-
export { Artifact, ArtifactAction, ArtifactActions, ArtifactDescription, ArtifactHeader, ArtifactOpenProvider, ArtifactTitle, type OpenArtifactHandler, useOpenArtifact };
|
package/dist/front/artifacts.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Artifact,
|
|
3
|
-
ArtifactAction,
|
|
4
|
-
ArtifactActions,
|
|
5
|
-
ArtifactDescription,
|
|
6
|
-
ArtifactHeader,
|
|
7
|
-
ArtifactOpenProvider,
|
|
8
|
-
ArtifactTitle,
|
|
9
|
-
useOpenArtifact
|
|
10
|
-
} from "../chunk-N6THTH7P.js";
|
|
11
|
-
import "../chunk-2BGLZZ7T.js";
|
|
12
|
-
export {
|
|
13
|
-
Artifact,
|
|
14
|
-
ArtifactAction,
|
|
15
|
-
ArtifactActions,
|
|
16
|
-
ArtifactDescription,
|
|
17
|
-
ArtifactHeader,
|
|
18
|
-
ArtifactOpenProvider,
|
|
19
|
-
ArtifactTitle,
|
|
20
|
-
useOpenArtifact
|
|
21
|
-
};
|