@hachej/boring-agent 0.1.99 → 0.1.101

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.
@@ -1,4 +1,4 @@
1
- import { b as PiChatEvent, o as ChatModelSelection, L as ThinkingLevel, v as ChatAttachmentPayload, Q as QueuedUserMessage, n as PiChatSnapshot } from './piChatEvent-B3ehh9V0.js';
1
+ import { b as PiChatEvent, o as ChatModelSelection, L as ThinkingLevel, v as ChatAttachmentPayload, Q as QueuedUserMessage, n as PiChatSnapshot } from './piChatEvent-Bzof4IEy.js';
2
2
 
3
3
  /** Placement-independent event envelope. `seq` is the only replay cursor. */
4
4
  interface AgentSessionEvent {
@@ -188,12 +188,11 @@ declare const AgentGatewayErrorCode: {
188
188
  readonly AGENT_REQUEST_OUTCOME_UNKNOWN: "AGENT_REQUEST_OUTCOME_UNKNOWN";
189
189
  readonly AGENT_RUNTIME_RESTART_REQUIRED: "AGENT_RUNTIME_RESTART_REQUIRED";
190
190
  readonly AGENT_COMMAND_INVALID_STATE: "AGENT_COMMAND_INVALID_STATE";
191
- readonly AGENT_SESSION_RUNTIME_SCOPE_MISMATCH: "AGENT_SESSION_RUNTIME_SCOPE_MISMATCH";
192
191
  readonly AGENT_SHARED_ENVIRONMENT_UNAVAILABLE: "AGENT_SHARED_ENVIRONMENT_UNAVAILABLE";
193
192
  readonly AGENT_GATEWAY_CLOSED: "AGENT_GATEWAY_CLOSED";
194
193
  };
195
194
  type AgentGatewayErrorCode = (typeof AgentGatewayErrorCode)[keyof typeof AgentGatewayErrorCode];
196
- declare const AGENT_GATEWAY_ERROR_CODES: readonly ["AGENT_TYPE_UNKNOWN", "AGENT_SESSION_NOT_FOUND", "AGENT_SCOPE_DENIED", "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_SESSION_RUNTIME_SCOPE_MISMATCH", "AGENT_SHARED_ENVIRONMENT_UNAVAILABLE", "AGENT_GATEWAY_CLOSED"];
195
+ declare const AGENT_GATEWAY_ERROR_CODES: readonly ["AGENT_TYPE_UNKNOWN", "AGENT_SESSION_NOT_FOUND", "AGENT_SCOPE_DENIED", "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"];
197
196
  interface AgentGatewayErrorDTO {
198
197
  readonly code: AgentGatewayErrorCode;
199
198
  readonly message: string;
@@ -1,7 +1,7 @@
1
- import { D as InterruptReceipt, j as StopReceipt } from './piChatEvent-B3ehh9V0.js';
2
- import { p as AgentSendInput, j as AgentEvent } from './harness-DS8jLKIx.js';
1
+ import { D as InterruptReceipt, j as StopReceipt } from './piChatEvent-Bzof4IEy.js';
2
+ import { p as AgentSendInput, j as AgentEvent } from './harness-s-kEgJkK.js';
3
3
  import { b as Workspace } from './sandbox-KQiEdz4W.js';
4
- import { d as AgentSessionRef, o as AgentSendReceipt, b as AgentGateway, c as AuthorizedAgentScope } from './errors-cNC4HMpV.js';
4
+ import { d as AgentSessionRef, o as AgentSendReceipt, b as AgentGateway, c as AuthorizedAgentScope } from './errors-Ci0dzmcP.js';
5
5
 
6
6
  interface WorkspaceAgentDispatcherContext {
7
7
  workspaceId: string;
@@ -1,8 +1,8 @@
1
- import { T as ToolUiMetadata, B as BoringChatPart, a as BoringChatMessage, P as PiChatStatus, Q as QueuedUserMessage, C as ChatError, b as PiChatEvent, c as PromptPayload, d as PromptReceipt, F as FollowUpPayload, e as FollowUpReceipt, f as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, h as CommandReceipt, i as StopPayload, j as StopReceipt, k as SessionSummary, E as ErrorCode } from '../piChatEvent-B3ehh9V0.js';
1
+ import { T as ToolUiMetadata, B as BoringChatPart, a as BoringChatMessage, P as PiChatStatus, Q as QueuedUserMessage, C as ChatError, b as PiChatEvent, c as PromptPayload, d as PromptReceipt, F as FollowUpPayload, e as FollowUpReceipt, f as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, h as CommandReceipt, i as StopPayload, j as StopReceipt, k as SessionSummary, E as ErrorCode } from '../piChatEvent-Bzof4IEy.js';
2
2
  import * as react from 'react';
3
3
  import { ComponentProps, HTMLAttributes, FormEvent, ReactNode, ComponentType } from 'react';
4
4
  import { FileUIPart, ChatStatus, UIMessage } from 'ai';
5
- import { A as AgentSummary, a as AgentGatewayErrorCode, J as JsonValue } from '../errors-cNC4HMpV.js';
5
+ import { A as AgentSummary, a as AgentGatewayErrorCode, J as JsonValue } from '../errors-Ci0dzmcP.js';
6
6
  import { InputGroupAddon, InputGroupButton, InputGroupTextarea, Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from '@hachej/boring-ui-kit';
7
7
  import { Streamdown } from 'streamdown';
8
8
  import { StickToBottom } from 'use-stick-to-bottom';
@@ -462,7 +462,6 @@ declare class RemotePiSession {
462
462
  private sessionUrl;
463
463
  private addressedCommandPayload;
464
464
  private dispatchProtocolError;
465
- private dispatchTerminalSessionError;
466
465
  private recordEventType;
467
466
  private recordLargeStateWarning;
468
467
  private clearReconnectTimer;
@@ -696,8 +695,6 @@ interface PiChatPanelProps<TComposerBlocker extends ComposerBlocker = ComposerBl
696
695
  allowPromptDuringInitialHydration?: boolean;
697
696
  workspaceWarmupStatus?: ChatPanelWorkspaceWarmupStatus;
698
697
  onSessionReset?: () => void | Promise<void>;
699
- /** Creates and selects a session when the host controls sessionId. */
700
- onCreateSession?: () => void | Promise<void>;
701
698
  onBeforeSubmit?: (draft: string, context: ChatSubmitContext) => false | void | boolean | Promise<false | void | boolean>;
702
699
  onReloadAgentPlugins?: () => Promise<AgentPluginReloadResult | string>;
703
700
  onCommandResult?: (message: string) => void;
@@ -723,7 +720,7 @@ interface PiChatPanelProps<TComposerBlocker extends ComposerBlocker = ComposerBl
723
720
  * knowing what the code means or what the action does. */
724
721
  renderNoticeAction?: (notice: PiChatRuntimeNotice) => ReactNode;
725
722
  }
726
- declare function PiChatPanel<TComposerBlocker extends ComposerBlocker = ComposerBlocker>({ sessionId, agentTypeId, extraCommands, apiBaseUrl, workspaceId, storageScope, requestHeaders, storage, fetch, className, chrome, debug, showSessions, hotReloadEnabled, suggestions, emptyState, emptyPlacement, composerPlaceholder, initialDraft, autoSubmitInitialDraft, onDraftRestored, onAutoSubmitInitialDraftAccepted, onAutoSubmitInitialDraftSettled, model, defaultModel, availableModels, hideDefaultModelOption, hideComposerSettings, suppressPreSubmitCancelledWarning, thinkingLevel, thinkingControl, serverResourcesEnabled, mentionedFiles, commands, excludeBuiltinCommands, toolRenderers, createRemoteSession, remoteSessionOptions, hydrateMessages, allowPromptDuringInitialHydration, workspaceWarmupStatus, onSessionReset, onCreateSession, onBeforeSubmit, onReloadAgentPlugins, onCommandResult, onComposerWarning, onMentionedFilesConsumed, onPromptSubmitStarted, onData, onOpenArtifact, composerBlockers, onComposerStop, onComposerBlockerAction, onTurnComplete, renderNoticeAction, }: PiChatPanelProps<TComposerBlocker>): react.JSX.Element;
723
+ declare function PiChatPanel<TComposerBlocker extends ComposerBlocker = ComposerBlocker>({ sessionId, agentTypeId, extraCommands, apiBaseUrl, workspaceId, storageScope, requestHeaders, storage, fetch, className, chrome, debug, showSessions, hotReloadEnabled, suggestions, emptyState, emptyPlacement, composerPlaceholder, initialDraft, autoSubmitInitialDraft, onDraftRestored, onAutoSubmitInitialDraftAccepted, onAutoSubmitInitialDraftSettled, model, defaultModel, availableModels, hideDefaultModelOption, hideComposerSettings, suppressPreSubmitCancelledWarning, thinkingLevel, thinkingControl, serverResourcesEnabled, mentionedFiles, commands, excludeBuiltinCommands, toolRenderers, createRemoteSession, remoteSessionOptions, hydrateMessages, allowPromptDuringInitialHydration, workspaceWarmupStatus, onSessionReset, onBeforeSubmit, onReloadAgentPlugins, onCommandResult, onComposerWarning, onMentionedFilesConsumed, onPromptSubmitStarted, onData, onOpenArtifact, composerBlockers, onComposerStop, onComposerBlockerAction, onTurnComplete, renderNoticeAction, }: PiChatPanelProps<TComposerBlocker>): react.JSX.Element;
727
724
 
728
725
  type AddressedAgentOption = Pick<AgentSummary, 'agentTypeId' | 'label' | 'description' | 'pluginIds'>;
729
726
  interface UseAddressedAgentSelectionOptions {
@@ -742,7 +739,6 @@ interface UseAddressedAgentSelectionResult {
742
739
  }
743
740
  declare function useAddressedAgentSelection({ apiBaseUrl, requestHeaders, storageScope, fetch, enabled, }?: UseAddressedAgentSelectionOptions): UseAddressedAgentSelectionResult;
744
741
 
745
- declare const RUNTIME_SCOPE_MISMATCH_MESSAGE = "This chat belongs to a previous runtime configuration and can no longer be changed.";
746
742
  type GatewayResponseErrorCode = AgentGatewayErrorCode | ErrorCode;
747
743
  declare class GatewayResponseError extends Error {
748
744
  readonly status: number;
@@ -756,7 +752,6 @@ declare class GatewayResponseError extends Error {
756
752
  declare function gatewayResponseError(response: Response, fallbackMessage: string, operation?: string): Promise<GatewayResponseError>;
757
753
  declare function gatewayResponseErrorFromBody(status: number, body: unknown, fallbackMessage: string, operation?: string): GatewayResponseError;
758
754
  declare function errorResponseCode(error: unknown): GatewayResponseErrorCode | undefined;
759
- declare function isRuntimeScopeMismatchError(error: unknown): boolean;
760
755
 
761
756
  interface DebugDrawerProps {
762
757
  agentTypeId: string;
@@ -969,4 +964,4 @@ declare const ToolContent: ({ className, ...props }: ToolContentProps) => react.
969
964
 
970
965
  declare function cn(...inputs: ClassValue[]): string;
971
966
 
972
- export { type AddressedAgentOption, type AgentCommandContribution, type AgentCommandOptions, type AgentPluginReloadResult, ArtifactOpenProvider, type AvailableModel, BoringChatMessage, ChatEmptyState, type ChatEmptyStateProps, type ChatMessageContribution, type ChatMessageContributionProps, ChatMessageContributionProvider, PiChatPanel as ChatPanel, type PiChatPanelProps as ChatPanelProps, type ChatSuggestion, CodeBlock, type CommandRegistry, type ComposerActionContributionProps, type ComposerBlocker, type ComposerBlockerAction, type ComposerContribution, ComposerContributionProvider, type ComposerDraftUpdate, Conversation, ConversationContent, ConversationScrollButton, DebugDrawer, GatewayResponseError, type GatewayResponseErrorCode, type GroupedToolEntry, Message, MessageAction, MessageActions, MessageContent, MessageResponse, ModelPickerMenu, ModelSelect, ModelSelectTrigger, type ModelSelection, type OpenArtifactHandler, type ParsedCommand, PiChatPanel, type PiChatPanelProps, SessionBrowser as PiSessionBrowser, type PiSessionCreateInit, SessionList as PiSessionList, type PiSessionSearchItem, type PiSessionSearchOptions, type PiSessionSearchSortMode, PromptInput, PromptInputFooter, PromptInputSubmit, PromptInputTextarea, RUNTIME_SCOPE_MISMATCH_MESSAGE, Reasoning, ReasoningContent, ReasoningTrigger, type SessionListProps, type SlashCommand, type SlashCommandContext, type ThinkingLevel, ThinkingSelect, Tool, ToolCallGroup, ToolContent, ToolHeader, type ToolPart$1 as ToolPart, type ToolRenderer, type ToolRendererOverrides, type UploadFileOptions, type UploadFileResult, type UseAddressedAgentSelectionOptions, type UseAddressedAgentSelectionResult, type UsePiSessionsOptions, type UsePiSessionsResult, activeSessionStorageKey, builtinCommands, cn, createCommandRegistry, defaultChatSuggestions, defaultToolRenderers, errorResponseCode, gatewayResponseError, gatewayResponseErrorFromBody, getAgentCommands, isRuntimeScopeMismatchError, matchPiSessionSearch, mergeShadcnToolRenderers, mergeToolRenderers, parsePiSessionSearchQuery, parseSlashCommand, readActiveSessionId, resolveToolRenderer, searchPiSessions, uploadFile, useAddressedAgentSelection, useOpenArtifact, usePiSessions, writeActiveSessionId };
967
+ export { type AddressedAgentOption, type AgentCommandContribution, type AgentCommandOptions, type AgentPluginReloadResult, ArtifactOpenProvider, type AvailableModel, BoringChatMessage, ChatEmptyState, type ChatEmptyStateProps, type ChatMessageContribution, type ChatMessageContributionProps, ChatMessageContributionProvider, PiChatPanel as ChatPanel, type PiChatPanelProps as ChatPanelProps, type ChatSuggestion, CodeBlock, type CommandRegistry, type ComposerActionContributionProps, type ComposerBlocker, type ComposerBlockerAction, type ComposerContribution, ComposerContributionProvider, type ComposerDraftUpdate, Conversation, ConversationContent, ConversationScrollButton, DebugDrawer, GatewayResponseError, type GatewayResponseErrorCode, type GroupedToolEntry, Message, MessageAction, MessageActions, MessageContent, MessageResponse, ModelPickerMenu, ModelSelect, ModelSelectTrigger, type ModelSelection, type OpenArtifactHandler, type ParsedCommand, PiChatPanel, type PiChatPanelProps, SessionBrowser as PiSessionBrowser, type PiSessionCreateInit, SessionList as PiSessionList, type PiSessionSearchItem, type PiSessionSearchOptions, type PiSessionSearchSortMode, PromptInput, PromptInputFooter, PromptInputSubmit, PromptInputTextarea, Reasoning, ReasoningContent, ReasoningTrigger, type SessionListProps, type SlashCommand, type SlashCommandContext, type ThinkingLevel, ThinkingSelect, Tool, ToolCallGroup, ToolContent, ToolHeader, type ToolPart$1 as ToolPart, type ToolRenderer, type ToolRendererOverrides, type UploadFileOptions, type UploadFileResult, type UseAddressedAgentSelectionOptions, type UseAddressedAgentSelectionResult, type UsePiSessionsOptions, type UsePiSessionsResult, activeSessionStorageKey, builtinCommands, cn, createCommandRegistry, defaultChatSuggestions, defaultToolRenderers, errorResponseCode, gatewayResponseError, gatewayResponseErrorFromBody, getAgentCommands, matchPiSessionSearch, mergeShadcnToolRenderers, mergeToolRenderers, parsePiSessionSearchQuery, parseSlashCommand, readActiveSessionId, resolveToolRenderer, searchPiSessions, uploadFile, useAddressedAgentSelection, useOpenArtifact, usePiSessions, writeActiveSessionId };
@@ -8,7 +8,6 @@ import {
8
8
  } from "../chunk-46HJK2ES.js";
9
9
  import {
10
10
  AGENT_GATEWAY_ERROR_CODES,
11
- AgentGatewayErrorCode,
12
11
  CommandReceiptSchema,
13
12
  FollowUpReceiptSchema,
14
13
  PiChatSnapshotSchema,
@@ -20,7 +19,7 @@ import {
20
19
  WORKSPACE_COMMAND_NOTIFY_EVENT,
21
20
  extractToolUiMetadata,
22
21
  sanitizeToolUiMetadata
23
- } from "../chunk-LSO2AO6Q.js";
22
+ } from "../chunk-XCZBICZS.js";
24
23
  import "../chunk-YGRQ4Q5P.js";
25
24
  import {
26
25
  ErrorCode
@@ -75,7 +74,6 @@ function rawWorkspaceFileUrl(path, opts) {
75
74
 
76
75
  // src/front/chat/PiChatPanel.tsx
77
76
  import { lazy, Suspense, useCallback as useCallback18, useEffect as useEffect21, useMemo as useMemo16, useRef as useRef18, useState as useState20 } from "react";
78
- import { Button as Button12 } from "@hachej/boring-ui-kit";
79
77
 
80
78
  // src/front/ArtifactOpenContext.tsx
81
79
  import { createContext, useContext } from "react";
@@ -3414,7 +3412,6 @@ function messageCreatedAtMs(message) {
3414
3412
  }
3415
3413
 
3416
3414
  // src/front/chat/gatewayResponseError.ts
3417
- var RUNTIME_SCOPE_MISMATCH_MESSAGE = "This chat belongs to a previous runtime configuration and can no longer be changed.";
3418
3415
  var GatewayResponseError = class extends Error {
3419
3416
  constructor(status, message, code3, details, body, operation) {
3420
3417
  super(message);
@@ -3441,7 +3438,7 @@ function gatewayResponseErrorFromBody(status, body, fallbackMessage, operation)
3441
3438
  const payload = errorPayload(body);
3442
3439
  const code3 = gatewayResponseErrorCode(payload?.code);
3443
3440
  const serverMessage = typeof payload?.message === "string" && payload.message.trim().length > 0 ? payload.message : fallbackMessage;
3444
- const message = code3 === AgentGatewayErrorCode.AGENT_SESSION_RUNTIME_SCOPE_MISMATCH ? RUNTIME_SCOPE_MISMATCH_MESSAGE : serverMessage;
3441
+ const message = serverMessage;
3445
3442
  const details = isJsonValue(payload?.details) ? payload.details : void 0;
3446
3443
  return new GatewayResponseError(status, message, code3, details, body, operation);
3447
3444
  }
@@ -3455,9 +3452,6 @@ function errorResponseCode(error) {
3455
3452
  const record = typeof error === "object" && error !== null ? error : void 0;
3456
3453
  return gatewayResponseErrorCode(record?.code ?? record?.errorCode);
3457
3454
  }
3458
- function isRuntimeScopeMismatchError(error) {
3459
- return errorResponseCode(error) === AgentGatewayErrorCode.AGENT_SESSION_RUNTIME_SCOPE_MISMATCH;
3460
- }
3461
3455
  async function safeReadJson(response) {
3462
3456
  const text = await response.text();
3463
3457
  if (!text) return void 0;
@@ -3859,20 +3853,6 @@ function piChatReducer(state, action) {
3859
3853
  dismissible: true
3860
3854
  })
3861
3855
  };
3862
- case "terminal-session-error":
3863
- return {
3864
- ...state,
3865
- status: "error",
3866
- hydrated: true,
3867
- connection: { ...state.connection, state: "suspended" },
3868
- retryNotice: void 0,
3869
- notices: upsertNotice(state.notices, {
3870
- id: "terminal-session-error",
3871
- level: "error",
3872
- text: action.message,
3873
- errorCode: action.errorCode
3874
- })
3875
- };
3876
3856
  case "clear-notice":
3877
3857
  return { ...state, notices: state.notices.filter((notice) => notice.id !== action.id) };
3878
3858
  }
@@ -4798,10 +4778,6 @@ var RemotePiSession = class {
4798
4778
  this.connectEvents(snapshot.seq, generation);
4799
4779
  } catch (error) {
4800
4780
  if (!this.isHydrationActive(generation, hydrationRunId) || isAbortError(error)) return;
4801
- if (isRuntimeScopeMismatchError(error)) {
4802
- this.dispatchTerminalSessionError(error);
4803
- return;
4804
- }
4805
4781
  this.dispatchProtocolError(errorMessage(error, "Failed to hydrate Pi chat session state."));
4806
4782
  this.scheduleReconnect(generation);
4807
4783
  }
@@ -4874,12 +4850,8 @@ var RemotePiSession = class {
4874
4850
  `Pi chat event stream failed with HTTP ${response.status}.`,
4875
4851
  "events"
4876
4852
  );
4877
- if (isRuntimeScopeMismatchError(responseError)) {
4878
- this.dispatchTerminalSessionError(responseError);
4879
- } else {
4880
- this.dispatchProtocolError(responseError.message);
4881
- this.scheduleReconnect(generation);
4882
- }
4853
+ this.dispatchProtocolError(responseError.message);
4854
+ this.scheduleReconnect(generation);
4883
4855
  markOpen();
4884
4856
  return;
4885
4857
  }
@@ -5066,20 +5038,6 @@ var RemotePiSession = class {
5066
5038
  const error = { code: ErrorCode.enum.INTERNAL_ERROR, message, retryable: true };
5067
5039
  this.store.dispatch({ type: "protocol-error", error }, { flush: true });
5068
5040
  }
5069
- dispatchTerminalSessionError(error) {
5070
- if (this.disposed) return;
5071
- const errorCode = errorResponseCode(error);
5072
- if (!errorCode) {
5073
- this.dispatchProtocolError(errorMessage(error, "Chat session is unavailable."));
5074
- return;
5075
- }
5076
- this.suspendStream();
5077
- this.store.dispatch({
5078
- type: "terminal-session-error",
5079
- message: errorMessage(error, "Chat session is unavailable."),
5080
- errorCode
5081
- }, { flush: true });
5082
- }
5083
5041
  recordEventType(type) {
5084
5042
  this.recentEventTypes.push(type);
5085
5043
  if (this.recentEventTypes.length > EVENT_TYPE_RING_LIMIT) this.recentEventTypes.shift();
@@ -9892,7 +9850,7 @@ function AttachmentsList() {
9892
9850
  // src/front/chat/components/PiChatComposerSurface.tsx
9893
9851
  import { jsx as jsx35, jsxs as jsxs30 } from "react/jsx-runtime";
9894
9852
  var MAX_PROMPT_ATTACHMENTS = 2;
9895
- var MAX_PROMPT_ATTACHMENT_BYTES = 4 * 1024 * 1024;
9853
+ var MAX_PROMPT_ATTACHMENT_BYTES = 10 * 1024 * 1024;
9896
9854
  var COMPOSER_INPUT_GROUP_MIN_HEIGHT = 56;
9897
9855
  var COMPOSER_TEXTAREA_MAX_HEIGHT = 160;
9898
9856
  var COMPOSER_MULTILINE_EXTRA_HEIGHT = 8;
@@ -10163,7 +10121,7 @@ function PiChatComposerSurface({
10163
10121
  maxFileSize: MAX_PROMPT_ATTACHMENT_BYTES,
10164
10122
  onError: (err) => {
10165
10123
  if (err.code === "max_files") onAttachmentNotice(`Up to ${MAX_PROMPT_ATTACHMENTS} attachments per message.`);
10166
- else if (err.code === "max_file_size") onAttachmentNotice("Files must be under 4 MB each.");
10124
+ else if (err.code === "max_file_size") onAttachmentNotice("Files must be 10 MB or smaller.");
10167
10125
  else if (err.code === "accept") onAttachmentNotice("That file type isn't supported here.");
10168
10126
  else onAttachmentNotice(err.message || "Attachment rejected.");
10169
10127
  },
@@ -10561,7 +10519,6 @@ function PiChatPanel({
10561
10519
  allowPromptDuringInitialHydration = false,
10562
10520
  workspaceWarmupStatus,
10563
10521
  onSessionReset,
10564
- onCreateSession,
10565
10522
  onBeforeSubmit,
10566
10523
  onReloadAgentPlugins,
10567
10524
  onCommandResult,
@@ -10816,33 +10773,12 @@ function PiChatPanel({
10816
10773
  });
10817
10774
  setLocalNotices((previous) => previous.filter((notice) => notice.id !== id));
10818
10775
  }, []);
10819
- const createSessionInFlightRef = useRef18(null);
10820
- const [creatingSession, setCreatingSession] = useState20(false);
10821
10776
  const createSession = useCallback18(() => {
10822
- if (createSessionInFlightRef.current) return createSessionInFlightRef.current;
10823
- if (externalSessionId && !onCreateSession) return Promise.resolve();
10824
- setCreatingSession(true);
10825
- const operation = (async () => {
10826
- await Promise.resolve();
10827
- if (externalSessionId) await onCreateSession?.();
10828
- else await sessions.create();
10829
- })().catch((error) => {
10777
+ if (externalSessionId) return;
10778
+ void sessions.create().catch((error) => {
10830
10779
  addLocalNotice({ id: "session-create-error", level: "error", text: errorMessage2(error, "Could not create a chat session."), dismissible: true });
10831
- }).finally(() => {
10832
- if (createSessionInFlightRef.current === operation) createSessionInFlightRef.current = null;
10833
- setCreatingSession(false);
10834
10780
  });
10835
- createSessionInFlightRef.current = operation;
10836
- return operation;
10837
- }, [addLocalNotice, externalSessionId, onCreateSession, sessions.create]);
10838
- const renderRuntimeNoticeAction = useCallback18((notice) => {
10839
- const hostAction = renderNoticeAction?.(notice);
10840
- if (hostAction != null) return hostAction;
10841
- if (notice.errorCode === AgentGatewayErrorCode.AGENT_SESSION_RUNTIME_SCOPE_MISMATCH && (!externalSessionId || onCreateSession)) {
10842
- return /* @__PURE__ */ jsx36(Button12, { type: "button", size: "sm", variant: "outline", disabled: creatingSession, onClick: createSession, children: creatingSession ? "Starting new chat\u2026" : "Start new chat" });
10843
- }
10844
- return null;
10845
- }, [createSession, creatingSession, externalSessionId, onCreateSession, renderNoticeAction]);
10781
+ }, [addLocalNotice, externalSessionId, sessions.create]);
10846
10782
  useEffect21(() => {
10847
10783
  if (externalSessionId || sessionsLoading || sessionsError || activeSessionId || sessionList.length > 0) return;
10848
10784
  if (resetInProgressRef.current) return;
@@ -11453,7 +11389,7 @@ function PiChatPanel({
11453
11389
  onMentionActivate: activateAssistantMention,
11454
11390
  runtimeNotices,
11455
11391
  onDismissNotice: clearLocalNotice,
11456
- renderNoticeAction: renderRuntimeNoticeAction,
11392
+ renderNoticeAction,
11457
11393
  onScrollToBottomReady: (scrollToBottom) => {
11458
11394
  scrollToBottomRef.current = scrollToBottom;
11459
11395
  },
@@ -11692,7 +11628,6 @@ export {
11692
11628
  PromptInputFooter,
11693
11629
  PromptInputSubmit,
11694
11630
  PromptInputTextarea,
11695
- RUNTIME_SCOPE_MISMATCH_MESSAGE,
11696
11631
  Reasoning,
11697
11632
  ReasoningContent,
11698
11633
  ReasoningTrigger,
@@ -11711,7 +11646,6 @@ export {
11711
11646
  gatewayResponseError,
11712
11647
  gatewayResponseErrorFromBody,
11713
11648
  getAgentCommands,
11714
- isRuntimeScopeMismatchError,
11715
11649
  matchPiSessionSearch,
11716
11650
  mergeShadcnToolRenderers,
11717
11651
  mergeToolRenderers,
@@ -1,4 +1,4 @@
1
- import { l as SessionCtx, b as PiChatEvent, S as SessionStore } from './piChatEvent-B3ehh9V0.js';
1
+ import { l as SessionCtx, b as PiChatEvent, S as SessionStore } from './piChatEvent-Bzof4IEy.js';
2
2
  import { AgentSessionEvent, PromptOptions } from '@mariozechner/pi-coding-agent';
3
3
 
4
4
  interface TelemetrySink {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { p as AgentDefinitionErrorCode, q as AgentDeploymentErrorCode } from './piChatEvent-B3ehh9V0.js';
2
+ import { p as AgentDefinitionErrorCode, q as AgentDeploymentErrorCode } from './piChatEvent-Bzof4IEy.js';
3
3
  import { b as Workspace } from './sandbox-KQiEdz4W.js';
4
4
 
5
5
  interface SandboxHandleRecord {
@@ -15,8 +15,6 @@ interface SessionStore {
15
15
  interface SessionCtx {
16
16
  workspaceId?: string;
17
17
  userId?: string;
18
- /** Server-owned Host runtime pin; never sourced from browser input. */
19
- runtimeScopeIdentity?: string;
20
18
  }
21
19
  interface SessionListOptions {
22
20
  limit?: number;
@@ -1,4 +1,4 @@
1
- import { m as SessionListOptions, k as SessionSummary, o as ChatModelSelection, n as PiChatSnapshot, b as PiChatEvent, c as PromptPayload, d as PromptReceipt, F as FollowUpPayload, e as FollowUpReceipt, f as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, h as CommandReceipt, i as StopPayload, j as StopReceipt } from './piChatEvent-B3ehh9V0.js';
1
+ import { m as SessionListOptions, k as SessionSummary, o as ChatModelSelection, n as PiChatSnapshot, b as PiChatEvent, c as PromptPayload, d as PromptReceipt, F as FollowUpPayload, e as FollowUpReceipt, f as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, h as CommandReceipt, i as StopPayload, j as StopReceipt } from './piChatEvent-Bzof4IEy.js';
2
2
 
3
3
  interface PiSessionRequestContext {
4
4
  workspaceId?: string;
@@ -8,8 +8,6 @@ interface PiSessionRequestContext {
8
8
  authEmailVerified?: boolean;
9
9
  /** Addressed Gateway binds sessions to the verified workspace/storage scope. */
10
10
  sessionAuthority?: 'workspace-scope';
11
- /** Server-only Host pin persisted by the session store during creation. */
12
- runtimeScopeIdentity?: string;
13
11
  requestId: string;
14
12
  }
15
13
  interface PiSessionCreateInit {
@@ -1,11 +1,11 @@
1
- import { b as AgentGateway, c as AuthorizedAgentScope, d as AgentSessionRef, e as AgentSessionActivity } from '../../../errors-cNC4HMpV.js';
2
- import { A as AgentGatewayEffect } from '../../../types-BPzq-RwN.js';
3
- import '../../../piChatEvent-B3ehh9V0.js';
1
+ import { b as AgentGateway, c as AuthorizedAgentScope, d as AgentSessionRef, e as AgentSessionActivity } from '../../../errors-Ci0dzmcP.js';
2
+ import { A as AgentGatewayEffect } from '../../../types-OwI_m-2p.js';
3
+ import '../../../piChatEvent-Bzof4IEy.js';
4
4
  import 'zod';
5
5
  import 'fastify';
6
- import '../../../harness-DS8jLKIx.js';
6
+ import '../../../harness-s-kEgJkK.js';
7
7
  import '@mariozechner/pi-coding-agent';
8
- import '../../../file-search-QxnanNjO.js';
8
+ import '../../../file-search-DmoDnMan.js';
9
9
  import '../../../sandbox-KQiEdz4W.js';
10
10
  import '@hachej/boring-bash/agent';
11
11
  import '@hachej/boring-sandbox/providers/node-workspace';
@@ -5,7 +5,7 @@ import {
5
5
  AGENT_GATEWAY_ERROR_CODES,
6
6
  AgentGatewayError,
7
7
  AgentGatewayErrorCode
8
- } from "../../../chunk-LSO2AO6Q.js";
8
+ } from "../../../chunk-XCZBICZS.js";
9
9
  import "../../../chunk-YGRQ4Q5P.js";
10
10
  import "../../../chunk-VXF5DWS6.js";
11
11
 
@@ -72,7 +72,6 @@ function gatewayConformance(options) {
72
72
  "AGENT_REQUEST_OUTCOME_UNKNOWN",
73
73
  "AGENT_RUNTIME_RESTART_REQUIRED",
74
74
  "AGENT_COMMAND_INVALID_STATE",
75
- "AGENT_SESSION_RUNTIME_SCOPE_MISMATCH",
76
75
  "AGENT_SHARED_ENVIRONMENT_UNAVAILABLE",
77
76
  "AGENT_GATEWAY_CLOSED"
78
77
  ]);
@@ -1,21 +1,21 @@
1
- import { P as ProvisionWorkspaceRuntimeOptions, W as WorkspaceProvisioningResult, a as PiPackageSource, R as RuntimeModeAdapter, b as RuntimeModeId, B as BuiltinRuntimeModeId, c as AgentRuntimeHostOperations, d as RuntimeBashStrategy, e as RuntimeFilesystemStrategy, M as ModeContext, f as WorkspaceProvisioningAdapter, g as AgentInstructionFileRef, C as ConfiguredAgentHostAgentSpec, h as AgentHostAgentSpec, i as RuntimeBundle, j as PiHarnessOptions, k as AgentMeteringSink, l as RuntimeFilesystemBinding, m as CreatedAgentHost, n as MeteringErrorLogger, o as ReadyStatusTracker, p as ResolvedAgentRuntimeScope, q as CreateAgentHostOptions, r as CompiledAgentHostAgentSpec, s as AgentRequestLedger, t as AgentEffectAdmission, u as AuthorizedEnvironmentIntent, v as AgentHostEnvironmentScope, w as AgentRequestKey, x as AgentRequestLedgerPrepareResult, y as AgentRequestFailure, z as AgentRequestLedgerRecord, D as AgentFleetCompiler, E as AgentRequestTarget, F as RuntimeFilesystemAccessDecision } from '../types-BPzq-RwN.js';
2
- export { A as AgentGatewayEffect, G as AgentHostDescription, H as AgentHostDirectProjectionOptions, I as AgentHostDispatcherRunInput, J as AgentHostEnvironmentLease, K as AgentHostHandle, L as LegacyDefaultAgentHostSpec, N as MeteringReleaseInput, O as MeteringReleaseReason, Q as MeteringReservationResult, S as MeteringReserveInput, T as MeteringRunKind, U as MeteringRunScope, V as MeteringRunStatus, X as MeteringSettleInput, Y as MeteringUsage, Z as MeteringUsageInput, _ as PI_PACKAGE_RESOURCE_FILTERS, $ as PiExtensionFactory, a0 as PluginSkillSource, a1 as ResolvedEnvironmentScope, a2 as RuntimeFilesystemBindingOperations, a3 as RuntimeNodePackageSpec, a4 as RuntimeProvisioningContribution, a5 as RuntimePythonSpec, a6 as RuntimeTemplateContribution, a7 as WorkspaceProvisioningExecResult, a8 as compactPiPackages, a9 as mergePiPackageSources, aa as normalizeMeteringUsage, ab as piPackageSourceKey } from '../types-BPzq-RwN.js';
1
+ import { P as ProvisionWorkspaceRuntimeOptions, W as WorkspaceProvisioningResult, a as PiPackageSource, R as RuntimeModeAdapter, b as RuntimeModeId, B as BuiltinRuntimeModeId, c as AgentRuntimeHostOperations, d as RuntimeBashStrategy, e as RuntimeFilesystemStrategy, M as ModeContext, f as WorkspaceProvisioningAdapter, g as AgentInstructionFileRef, C as ConfiguredAgentHostAgentSpec, h as AgentHostAgentSpec, i as RuntimeBundle, j as PiHarnessOptions, k as AgentMeteringSink, l as RuntimeFilesystemBinding, m as CreatedAgentHost, n as MeteringErrorLogger, o as ReadyStatusTracker, p as CreateAgentHostOptions, q as CompiledAgentHostAgentSpec, r as AgentRequestLedger, s as AgentEffectAdmission, t as AuthorizedEnvironmentIntent, u as AgentHostEnvironmentScope, v as ResolvedAgentRuntimeScope, w as AgentRequestKey, x as AgentRequestLedgerPrepareResult, y as AgentRequestFailure, z as AgentRequestLedgerRecord, D as AgentFleetCompiler, E as AgentRequestTarget, F as RuntimeFilesystemAccessDecision } from '../types-OwI_m-2p.js';
2
+ export { A as AgentGatewayEffect, G as AgentHostDescription, H as AgentHostDirectProjectionOptions, I as AgentHostDispatcherRunInput, J as AgentHostEnvironmentLease, K as AgentHostHandle, L as LegacyDefaultAgentHostSpec, N as MeteringReleaseInput, O as MeteringReleaseReason, Q as MeteringReservationResult, S as MeteringReserveInput, T as MeteringRunKind, U as MeteringRunScope, V as MeteringRunStatus, X as MeteringSettleInput, Y as MeteringUsage, Z as MeteringUsageInput, _ as PI_PACKAGE_RESOURCE_FILTERS, $ as PiExtensionFactory, a0 as PluginSkillSource, a1 as ResolvedEnvironmentScope, a2 as RuntimeFilesystemBindingOperations, a3 as RuntimeNodePackageSpec, a4 as RuntimeProvisioningContribution, a5 as RuntimePythonSpec, a6 as RuntimeTemplateContribution, a7 as WorkspaceProvisioningExecResult, a8 as compactPiPackages, a9 as mergePiPackageSources, aa as normalizeMeteringUsage, ab as piPackageSourceKey } from '../types-OwI_m-2p.js';
3
3
  import { E as ExecOptions, a as ExecResult, W as WorkspaceChangeEvent, b as Workspace, S as Sandbox } from '../sandbox-KQiEdz4W.js';
4
4
  export { R as RuntimeFilesystemCapability } from '../sandbox-KQiEdz4W.js';
5
5
  import { R as RemoteWorkerWorkspaceOp, a as RemoteWorkerWorkspaceResult, b as RemoteWorkerExecRequest } from '../middleware-Cq_cYHjJ.js';
6
6
  export { c as REMOTE_WORKER_PROVIDER, d as REMOTE_WORKER_RUNTIME_CWD, e as RemoteWorkerErrorPayload, f as RemoteWorkerExecResponse, g as RemoteWorkerFsEventEnvelope, W as WORKER_INTERNAL_TOKEN_HEADER, h as WORKER_REQUEST_ID_HEADER, i as WORKER_WORKSPACE_ID_HEADER, j as createAgentAuthMiddleware } from '../middleware-Cq_cYHjJ.js';
7
7
  import { SandboxProviderV1, WorkspaceSandboxPairV1 } from '@hachej/boring-sandbox/shared';
8
- import { S as SandboxHandleStore, C as CompiledAgentBundle, a as Sha256Digest, A as AgentDeployment, b as ShareEntryStore, P as ProviderId, c as CredentialFieldId, R as ResolvedCredentialMaterialV1, d as AuthorizedWorkspaceCredentialScopeV1, V as VerifiedWorkspaceCredentialAuthorityV1, W as WorkspaceCredentialAuthorityVerifierV1, e as CredentialConsumerBindingRegistryV1, f as ProviderRegistryV1, g as WorkspaceCredentialResolverV1, h as ProviderCredentialRefV1, i as ResolvedCredentialLeaseV1 } from '../lease-D8WC6pQl.js';
9
- import { E as ErrorCode, l as SessionCtx, b as PiChatEvent, S as SessionStore, m as SessionListOptions, k as SessionSummary, n as PiChatSnapshot, c as PromptPayload, d as PromptReceipt, F as FollowUpPayload, e as FollowUpReceipt, f as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, i as StopPayload, j as StopReceipt } from '../piChatEvent-B3ehh9V0.js';
10
- import { J as JsonValue, b as AgentGateway, c as AuthorizedAgentScope, d as AgentSessionRef, e as AgentSessionActivity, V as VerifiedAgentScopeClaim, f as AgentGatewayErrorDTO, g as AgentSessionSummary, h as AgentSessionStateSnapshot, i as AgentSessionConnection } from '../errors-cNC4HMpV.js';
11
- import { d as AgentActor, j as AgentEvent, T as TelemetrySink, s as AgentTool, t as AgentHarnessFactory, A as AgentHarness } from '../harness-DS8jLKIx.js';
12
- export { u as AgentConfig, v as AgentHarnessFactoryInput } from '../harness-DS8jLKIx.js';
8
+ import { S as SandboxHandleStore, C as CompiledAgentBundle, a as Sha256Digest, A as AgentDeployment, b as ShareEntryStore, P as ProviderId, c as CredentialFieldId, R as ResolvedCredentialMaterialV1, d as AuthorizedWorkspaceCredentialScopeV1, V as VerifiedWorkspaceCredentialAuthorityV1, W as WorkspaceCredentialAuthorityVerifierV1, e as CredentialConsumerBindingRegistryV1, f as ProviderRegistryV1, g as WorkspaceCredentialResolverV1, h as ProviderCredentialRefV1, i as ResolvedCredentialLeaseV1 } from '../lease-D5-CBoPs.js';
9
+ import { E as ErrorCode, l as SessionCtx, b as PiChatEvent, S as SessionStore, m as SessionListOptions, k as SessionSummary, n as PiChatSnapshot, c as PromptPayload, d as PromptReceipt, F as FollowUpPayload, e as FollowUpReceipt, f as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, i as StopPayload, j as StopReceipt } from '../piChatEvent-Bzof4IEy.js';
10
+ import { J as JsonValue, b as AgentGateway, c as AuthorizedAgentScope, d as AgentSessionRef, e as AgentSessionActivity, V as VerifiedAgentScopeClaim, f as AgentGatewayErrorDTO, g as AgentSessionSummary, h as AgentSessionStateSnapshot, i as AgentSessionConnection } from '../errors-Ci0dzmcP.js';
11
+ import { d as AgentActor, j as AgentEvent, T as TelemetrySink, s as AgentTool, t as AgentHarnessFactory, A as AgentHarness } from '../harness-s-kEgJkK.js';
12
+ export { u as AgentConfig, v as AgentHarnessFactoryInput } from '../harness-s-kEgJkK.js';
13
13
  import { IncomingMessage, ServerResponse } from 'node:http';
14
14
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
15
15
  import { FastifyRequest, FastifyInstance, FastifyPluginCallback } from 'fastify';
16
- import { i as PiSessionRequestContext, g as PiChatSessionService, h as PiSessionCreateInit, e as PiChatEventSubscriber, P as PiChatEventStreamResult } from '../piChatSessionService-xnv8rcdh.js';
17
- import { W as WorkspaceAgentDirectRunInput, a as WorkspaceAgentDirectRunCallback, b as WorkspaceAgentDispatcherContext, c as WorkspaceAgentDispatcher, d as WorkspaceAgentGatewayBinding } from '../file-search-QxnanNjO.js';
18
- export { L as LeaseBoundWorkspaceAgent } from '../file-search-QxnanNjO.js';
16
+ import { i as PiSessionRequestContext, g as PiChatSessionService, h as PiSessionCreateInit, e as PiChatEventSubscriber, P as PiChatEventStreamResult } from '../piChatSessionService-BU4L5hxM.js';
17
+ import { W as WorkspaceAgentDirectRunInput, a as WorkspaceAgentDirectRunCallback, b as WorkspaceAgentDispatcherContext, c as WorkspaceAgentDispatcher, d as WorkspaceAgentGatewayBinding } from '../file-search-DmoDnMan.js';
18
+ export { L as LeaseBoundWorkspaceAgent } from '../file-search-DmoDnMan.js';
19
19
  import { SettingsManager } from '@mariozechner/pi-coding-agent';
20
20
  import '@hachej/boring-bash/agent';
21
21
  import '@hachej/boring-sandbox/providers/node-workspace';
@@ -1068,15 +1068,9 @@ interface BuiltAgentComposition {
1068
1068
  readonly tools: readonly AgentTool[];
1069
1069
  readonly runtimeBundle: RuntimeBundle;
1070
1070
  readonly readyTracker: ReadyStatusTracker;
1071
- readonly runtimeScopeIdentity: string;
1072
1071
  dispose(): Promise<void>;
1073
1072
  }
1074
1073
 
1075
- interface AgentSessionRuntimeAuthority {
1076
- readonly runtimeScope: ResolvedAgentRuntimeScope;
1077
- /** Absent only for a pre-AH0 transcript created before runtime pins existed. */
1078
- readonly runtimeScopeIdentity?: string;
1079
- }
1080
1074
  interface AgentSessionActivityUpdate {
1081
1075
  readonly ref: AgentSessionRef;
1082
1076
  readonly status: AgentSessionActivity;
@@ -1117,11 +1111,10 @@ interface AgentHostRuntime {
1117
1111
  resolveEnvironmentScope(scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, intent: AuthorizedEnvironmentIntent): Promise<AgentHostEnvironmentScope>;
1118
1112
  acquireEnvironment(scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, intent: AuthorizedEnvironmentIntent): Promise<EnvironmentLease>;
1119
1113
  acquireResolvedEnvironment(workspaceScopeId: string, environment: AgentHostEnvironmentScope): Promise<EnvironmentLease>;
1120
- resolveSessionRuntime(agentTypeId: string, scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, sessionId: string): Promise<AgentSessionRuntimeAuthority | undefined>;
1114
+ resolveSessionRuntime(agentTypeId: string, scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, sessionId: string): Promise<ResolvedAgentRuntimeScope | undefined>;
1121
1115
  resolveAgentRuntimeScope(agentTypeId: string, scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, operation: 'new-binding' | 'existing-session' | 'reload', requestId: string, sessionId?: string): Promise<ResolvedAgentRuntimeScope>;
1122
- resolveBinding(agentTypeId: string, scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, resolvedRuntimeScope?: ResolvedAgentRuntimeScope, purpose?: 'current' | 'pinned'): Promise<RuntimeBinding>;
1123
- findPublishedBinding(agentTypeId: string, workspaceScopeId: string, runtimeScopeIdentity?: string, physicalBindingIdentity?: string, provisioningFingerprint?: string): RuntimeBinding | undefined;
1124
- findPublishedCurrentBinding(agentTypeId: string, workspaceScopeId: string, physicalBindingIdentity: string, runtimeScopeIdentity?: string, provisioningFingerprint?: string): RuntimeBinding | undefined;
1116
+ resolveBinding(agentTypeId: string, scope: AuthorizedAgentScope, claim: VerifiedAgentScopeClaim, resolvedRuntimeScope?: ResolvedAgentRuntimeScope): Promise<RuntimeBinding>;
1117
+ findPublishedCurrentBinding(agentTypeId: string, workspaceScopeId: string, physicalBindingIdentity: string, bindingIdentity?: string, provisioningFingerprint?: string): RuntimeBinding | undefined;
1125
1118
  startDrain(): void;
1126
1119
  drainRuntime(): Promise<void>;
1127
1120
  registerSubscription(close: () => void | Promise<void>): () => void;
@@ -1182,10 +1175,8 @@ declare class EmbeddedAgentGateway implements AgentGateway {
1182
1175
  private readonly runtime;
1183
1176
  private readonly cursorSecret;
1184
1177
  private readonly connections;
1185
- private readonly pins;
1186
- private readonly unpinnedSessionFallbackPins;
1187
1178
  private readonly writerTails;
1188
- private sessionRuntimeResolutionObserver?;
1179
+ private readonly knownSessions;
1189
1180
  private closed;
1190
1181
  constructor(runtime: AgentHostRuntime);
1191
1182
  /** Host-owned addressed runtime-capability effect seam. */
@@ -1208,16 +1199,11 @@ declare class EmbeddedAgentGateway implements AgentGateway {
1208
1199
  claim: VerifiedAgentScopeClaim;
1209
1200
  binding: RuntimeBinding;
1210
1201
  }>;
1211
- /** Side-effect-free reload lookup: validates persisted existence/pin and requires an already-published binding. */
1202
+ /** Side-effect-free reload lookup: validates session access and requires the current binding to be published. */
1212
1203
  inspectPublishedSessionBinding(scope: AuthorizedAgentScope, ref: AgentSessionRef): Promise<{
1213
1204
  claim: VerifiedAgentScopeClaim;
1214
1205
  binding: RuntimeBinding;
1215
1206
  }>;
1216
- /** Server-only test observer for distinguishing runtime pin resolution paths. */
1217
- setSessionRuntimeResolutionObserverForTesting(observer: (input: {
1218
- readonly source: 'unpinned-session-fallback' | 'persisted-runtime-pin';
1219
- readonly runtimeScopeIdentity: string;
1220
- }) => void): void;
1221
1207
  /** Test-only activity seam used by the shared implementation conformance. */
1222
1208
  setActivityForTesting(workspaceScopeId: string, ref: AgentSessionRef, activity: AgentSessionActivity): void;
1223
1209
  private assertOpen;
@@ -88,18 +88,18 @@ import {
88
88
  shareResourceUri,
89
89
  withResolvedCredential,
90
90
  withRuntimeEnvContributions
91
- } from "../chunk-ZOHN72OS.js";
91
+ } from "../chunk-XTMY3PWI.js";
92
92
  import {
93
93
  PI_PACKAGE_RESOURCE_FILTERS,
94
94
  compactPiPackages,
95
95
  createResourceSettingsManager,
96
96
  mergePiPackageSources,
97
97
  piPackageSourceKey
98
- } from "../chunk-GRMDMWBW.js";
98
+ } from "../chunk-T37OVD6L.js";
99
99
  import "../chunk-3OEDBRKY.js";
100
100
  import "../chunk-4IQ4HHBG.js";
101
101
  import "../chunk-WSQ5QNIY.js";
102
- import "../chunk-LSO2AO6Q.js";
102
+ import "../chunk-XCZBICZS.js";
103
103
  import "../chunk-YGRQ4Q5P.js";
104
104
  import "../chunk-VXF5DWS6.js";
105
105
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  WORKER_INTERNAL_TOKEN_HEADER,
3
3
  constantTimeTokenEqual
4
- } from "../../chunk-ZOHN72OS.js";
5
- import "../../chunk-GRMDMWBW.js";
4
+ } from "../../chunk-XTMY3PWI.js";
5
+ import "../../chunk-T37OVD6L.js";
6
6
  import "../../chunk-3OEDBRKY.js";
7
7
  import "../../chunk-4IQ4HHBG.js";
8
8
  import "../../chunk-WSQ5QNIY.js";
9
- import "../../chunk-LSO2AO6Q.js";
9
+ import "../../chunk-XCZBICZS.js";
10
10
  import "../../chunk-YGRQ4Q5P.js";
11
11
  import "../../chunk-VXF5DWS6.js";
12
12
 
@@ -1,15 +1,15 @@
1
- import { s as AgentTool } from '../harness-DS8jLKIx.js';
2
- export { c as AGENT_NOT_IMPLEMENTED_UNTIL_T1, b as Agent, d as AgentActor, e as AgentCoreHarness, f as AgentCoreHarnessFactory, g as AgentCorePromptInput, h as AgentCoreSessionAdapter, i as AgentCoreSessionSnapshot, j as AgentEvent, A as AgentHarness, k as AgentMessageContent, l as AgentMessagePart, m as AgentNotImplementedError, a as AgentReadiness, n as AgentReadinessStatus, o as AgentResolveInputResponse, x as AgentRuntimeAdapter, p as AgentSendInput, q as AgentStartReceipt, r as AgentStreamOptions, u as CoreAgentConfig, J as JSONSchema, M as MessageAttachment, R as RunContext, S as SendMessageInput, y as TelemetryEvent, T as TelemetrySink, z as ToolExecContext, B as ToolResult, C as noopTelemetry, D as safeCapture, E as sessionStreamPath } from '../harness-DS8jLKIx.js';
3
- import { F as FileSearch } from '../file-search-QxnanNjO.js';
4
- export { e as AGENT_KNOWLEDGE_FILESYSTEM_ID, f as AGENT_RESOURCES_FILESYSTEM_ID, A as AgentSkillResource, L as LeaseBoundWorkspaceAgent, a as WorkspaceAgentDirectRunCallback, W as WorkspaceAgentDirectRunInput, g as WorkspaceAgentDispatch, c as WorkspaceAgentDispatcher, b as WorkspaceAgentDispatcherContext, h as WorkspaceAgentDispatcherDispatchInput, i as WorkspaceAgentDispatcherSendInput, d as WorkspaceAgentGatewayBinding } from '../file-search-QxnanNjO.js';
1
+ import { s as AgentTool } from '../harness-s-kEgJkK.js';
2
+ export { c as AGENT_NOT_IMPLEMENTED_UNTIL_T1, b as Agent, d as AgentActor, e as AgentCoreHarness, f as AgentCoreHarnessFactory, g as AgentCorePromptInput, h as AgentCoreSessionAdapter, i as AgentCoreSessionSnapshot, j as AgentEvent, A as AgentHarness, k as AgentMessageContent, l as AgentMessagePart, m as AgentNotImplementedError, a as AgentReadiness, n as AgentReadinessStatus, o as AgentResolveInputResponse, x as AgentRuntimeAdapter, p as AgentSendInput, q as AgentStartReceipt, r as AgentStreamOptions, u as CoreAgentConfig, J as JSONSchema, M as MessageAttachment, R as RunContext, S as SendMessageInput, y as TelemetryEvent, T as TelemetrySink, z as ToolExecContext, B as ToolResult, C as noopTelemetry, D as safeCapture, E as sessionStreamPath } from '../harness-s-kEgJkK.js';
3
+ import { F as FileSearch } from '../file-search-DmoDnMan.js';
4
+ export { e as AGENT_KNOWLEDGE_FILESYSTEM_ID, f as AGENT_RESOURCES_FILESYSTEM_ID, A as AgentSkillResource, L as LeaseBoundWorkspaceAgent, a as WorkspaceAgentDirectRunCallback, W as WorkspaceAgentDirectRunInput, g as WorkspaceAgentDispatch, c as WorkspaceAgentDispatcher, b as WorkspaceAgentDispatcherContext, h as WorkspaceAgentDispatcherDispatchInput, i as WorkspaceAgentDispatcherSendInput, d as WorkspaceAgentGatewayBinding } from '../file-search-DmoDnMan.js';
5
5
  import { b as Workspace, S as Sandbox } from '../sandbox-KQiEdz4W.js';
6
6
  export { e as Entry, E as ExecOptions, a as ExecResult, I as IsolatedCodeInput, f as IsolatedCodeOutput, g as READONLY_FILESYSTEM_MUTATION_CODE, h as RUNTIME_FILESYSTEM_CAPABILITIES, i as ReadonlyFilesystemMutationError, R as RuntimeFilesystemCapability, j as SandboxCapability, d as Stat, c as WorkspaceRuntimeContext, k as WorkspaceWatchControlEvent, l as isReadonlyFilesystemMutationError } from '../sandbox-KQiEdz4W.js';
7
- import { B as BoringChatPart, T as ToolUiMetadata, A as AgentConsumptionErrorCode } from '../piChatEvent-B3ehh9V0.js';
8
- export { p as AgentDefinitionErrorCode, q as AgentDeploymentErrorCode, r as ApiErrorPayload, s as ApiErrorPayloadSchema, t as ApiErrorResponse, u as ApiErrorResponseSchema, a as BoringChatMessage, v as ChatAttachmentPayload, C as ChatError, o as ChatModelSelection, w as ChatSubmitPayload, h as CommandReceipt, x as ERROR_CODES, E as ErrorCode, y as ErrorLogFields, z as ErrorLogFieldsSchema, F as FollowUpPayload, e as FollowUpReceipt, I as InterruptPayload, D as InterruptReceipt, b as PiChatEvent, G as PiChatHeartbeatFrame, n as PiChatSnapshot, P as PiChatStatus, H as PiChatStreamFrame, c as PromptPayload, d as PromptReceipt, f as QueueClearPayload, g as QueueClearReceipt, Q as QueuedUserMessage, J as SAFE_NATIVE_SESSION_ID, l as SessionCtx, K as SessionDetail, m as SessionListOptions, S as SessionStore, k as SessionSummary, i as StopPayload, j as StopReceipt, L as ThinkingLevel, M as extractToolUiMetadata, N as isToolUiMetadata } from '../piChatEvent-B3ehh9V0.js';
9
- import { j as SchemaValidationError, k as AgentSchemaIssue, a as Sha256Digest, l as AgentSchemaValidationResult, m as CredentialConsumerBindingId, c as CredentialFieldId, h as ProviderCredentialRefV1, d as AuthorizedWorkspaceCredentialScopeV1 } from '../lease-D8WC6pQl.js';
10
- export { n as AgentDefinition, o as AgentDefinitionDigestAsset, p as AgentDefinitionReference, q as AgentDefinitionValidationError, A as AgentDeployment, r as AgentDeploymentValidationError, C as CompiledAgentBundle, s as CompiledAgentDefinition, t as CreateShareEntryInput, e as CredentialConsumerBindingRegistryV1, u as CredentialConsumerBindingV1, v as CredentialConsumerKindV1, w as CredentialDeliveryV1, x as CredentialFieldDefinitionV1, E as ExternalManagedAccountReferenceDefinitionV1, I as InMemoryShareEntryStore, O as OpaqueRefSchema, y as OpaqueShareLocatorIdSchema, z as PROVIDER_CREDENTIAL_REF_VERSION, B as ProviderCategoryV1, D as ProviderCredentialDefinitionV1, F as ProviderCredentialRefFactoryV1, G as ProviderDefinitionV1, P as ProviderId, f as ProviderRegistryV1, i as ResolvedCredentialLeaseV1, R as ResolvedCredentialMaterialV1, H as SandboxHandleRecord, S as SandboxHandleStore, J as Sha256DigestSchema, K as ShareEntryErrorCode, L as ShareEntryProvenance, M as ShareEntryProvenanceSchema, N as ShareEntryResolution, b as ShareEntryStore, Q as ShareEntryTombstone, T as ShareEntryV1, U as ShareEntryV1Schema, X as ShareEntryValidationError, V as VerifiedWorkspaceCredentialAuthorityV1, Y as VerifiedWorkspaceCredentialPrincipalV1, W as WorkspaceCredentialAuthorityVerifierV1, g as WorkspaceCredentialResolverV1, Z as createAgentAssetDigest, _ as createAgentDefinitionDigest, $ as createAgentDeploymentDigest, a0 as createCredentialConsumerBindingRegistryV1, a1 as createProviderCredentialRefFactoryV1, a2 as createProviderRegistryV1, a3 as providerCredentialFieldsV1, a4 as resolveShareEntry, a5 as validateAgentDefinition, a6 as validateAgentDeployment } from '../lease-D8WC6pQl.js';
7
+ import { B as BoringChatPart, T as ToolUiMetadata, A as AgentConsumptionErrorCode } from '../piChatEvent-Bzof4IEy.js';
8
+ export { p as AgentDefinitionErrorCode, q as AgentDeploymentErrorCode, r as ApiErrorPayload, s as ApiErrorPayloadSchema, t as ApiErrorResponse, u as ApiErrorResponseSchema, a as BoringChatMessage, v as ChatAttachmentPayload, C as ChatError, o as ChatModelSelection, w as ChatSubmitPayload, h as CommandReceipt, x as ERROR_CODES, E as ErrorCode, y as ErrorLogFields, z as ErrorLogFieldsSchema, F as FollowUpPayload, e as FollowUpReceipt, I as InterruptPayload, D as InterruptReceipt, b as PiChatEvent, G as PiChatHeartbeatFrame, n as PiChatSnapshot, P as PiChatStatus, H as PiChatStreamFrame, c as PromptPayload, d as PromptReceipt, f as QueueClearPayload, g as QueueClearReceipt, Q as QueuedUserMessage, J as SAFE_NATIVE_SESSION_ID, l as SessionCtx, K as SessionDetail, m as SessionListOptions, S as SessionStore, k as SessionSummary, i as StopPayload, j as StopReceipt, L as ThinkingLevel, M as extractToolUiMetadata, N as isToolUiMetadata } from '../piChatEvent-Bzof4IEy.js';
9
+ import { j as SchemaValidationError, k as AgentSchemaIssue, a as Sha256Digest, l as AgentSchemaValidationResult, m as CredentialConsumerBindingId, c as CredentialFieldId, h as ProviderCredentialRefV1, d as AuthorizedWorkspaceCredentialScopeV1 } from '../lease-D5-CBoPs.js';
10
+ export { n as AgentDefinition, o as AgentDefinitionDigestAsset, p as AgentDefinitionReference, q as AgentDefinitionValidationError, A as AgentDeployment, r as AgentDeploymentValidationError, C as CompiledAgentBundle, s as CompiledAgentDefinition, t as CreateShareEntryInput, e as CredentialConsumerBindingRegistryV1, u as CredentialConsumerBindingV1, v as CredentialConsumerKindV1, w as CredentialDeliveryV1, x as CredentialFieldDefinitionV1, E as ExternalManagedAccountReferenceDefinitionV1, I as InMemoryShareEntryStore, O as OpaqueRefSchema, y as OpaqueShareLocatorIdSchema, z as PROVIDER_CREDENTIAL_REF_VERSION, B as ProviderCategoryV1, D as ProviderCredentialDefinitionV1, F as ProviderCredentialRefFactoryV1, G as ProviderDefinitionV1, P as ProviderId, f as ProviderRegistryV1, i as ResolvedCredentialLeaseV1, R as ResolvedCredentialMaterialV1, H as SandboxHandleRecord, S as SandboxHandleStore, J as Sha256DigestSchema, K as ShareEntryErrorCode, L as ShareEntryProvenance, M as ShareEntryProvenanceSchema, N as ShareEntryResolution, b as ShareEntryStore, Q as ShareEntryTombstone, T as ShareEntryV1, U as ShareEntryV1Schema, X as ShareEntryValidationError, V as VerifiedWorkspaceCredentialAuthorityV1, Y as VerifiedWorkspaceCredentialPrincipalV1, W as WorkspaceCredentialAuthorityVerifierV1, g as WorkspaceCredentialResolverV1, Z as createAgentAssetDigest, _ as createAgentDefinitionDigest, $ as createAgentDeploymentDigest, a0 as createCredentialConsumerBindingRegistryV1, a1 as createProviderCredentialRefFactoryV1, a2 as createProviderRegistryV1, a3 as providerCredentialFieldsV1, a4 as resolveShareEntry, a5 as validateAgentDefinition, a6 as validateAgentDeployment } from '../lease-D5-CBoPs.js';
11
11
  import { z } from 'zod';
12
- export { k as AGENT_GATEWAY_ERROR_CODES, l as AgentFollowUpCommand, b as AgentGateway, m as AgentGatewayError, a as AgentGatewayErrorCode, f as AgentGatewayErrorDTO, n as AgentPromptCommand, j as AgentScopeVerifier, o as AgentSendReceipt, e as AgentSessionActivity, i as AgentSessionConnection, p as AgentSessionEvent, q as AgentSessionPage, d as AgentSessionRef, h as AgentSessionStateSnapshot, g as AgentSessionSummary, A as AgentSummary, r as AuthSubjectId, c as AuthorizedAgentScope, s as AuthorizedAgentSessionQuery, C as ConnectAgentSessionInput, t as CreateAgentSessionInput, D as DeleteAgentSessionInput, I as IdempotentAgentControl, u as IdempotentAgentSend, v as IdempotentQueueClear, w as JsonPrimitive, x as JsonSafe, J as JsonValue, L as ListAgentsInput, R as ReadAgentSessionStateInput, y as RenameAgentSessionInput, V as VerifiedAgentScopeClaim, W as WorkspaceScopeId } from '../errors-cNC4HMpV.js';
12
+ export { k as AGENT_GATEWAY_ERROR_CODES, l as AgentFollowUpCommand, b as AgentGateway, m as AgentGatewayError, a as AgentGatewayErrorCode, f as AgentGatewayErrorDTO, n as AgentPromptCommand, j as AgentScopeVerifier, o as AgentSendReceipt, e as AgentSessionActivity, i as AgentSessionConnection, p as AgentSessionEvent, q as AgentSessionPage, d as AgentSessionRef, h as AgentSessionStateSnapshot, g as AgentSessionSummary, A as AgentSummary, r as AuthSubjectId, c as AuthorizedAgentScope, s as AuthorizedAgentSessionQuery, C as ConnectAgentSessionInput, t as CreateAgentSessionInput, D as DeleteAgentSessionInput, I as IdempotentAgentControl, u as IdempotentAgentSend, v as IdempotentQueueClear, w as JsonPrimitive, x as JsonSafe, J as JsonValue, L as ListAgentsInput, R as ReadAgentSessionStateInput, y as RenameAgentSessionInput, V as VerifiedAgentScopeClaim, W as WorkspaceScopeId } from '../errors-Ci0dzmcP.js';
13
13
  import '@mariozechner/pi-coding-agent';
14
14
 
15
15
  declare const ToolUiMetadataSchema: z.ZodObject<{
@@ -114,7 +114,7 @@ import {
114
114
  extractToolUiMetadata,
115
115
  isToolUiMetadata,
116
116
  sanitizeToolUiMetadata2 as sanitizeToolUiMetadata
117
- } from "../chunk-LSO2AO6Q.js";
117
+ } from "../chunk-XCZBICZS.js";
118
118
  import {
119
119
  safeRandomUUID
120
120
  } from "../chunk-YGRQ4Q5P.js";
@@ -1,9 +1,9 @@
1
1
  import { FastifyRequest, FastifyPluginAsync } from 'fastify';
2
- import { w as ToolReadinessRequirement, T as TelemetrySink, s as AgentTool, t as AgentHarnessFactory } from './harness-DS8jLKIx.js';
3
- import { F as FileSearch, A as AgentSkillResource, W as WorkspaceAgentDirectRunInput, L as LeaseBoundWorkspaceAgent } from './file-search-QxnanNjO.js';
2
+ import { w as ToolReadinessRequirement, T as TelemetrySink, s as AgentTool, t as AgentHarnessFactory } from './harness-s-kEgJkK.js';
3
+ import { F as FileSearch, A as AgentSkillResource, W as WorkspaceAgentDirectRunInput, L as LeaseBoundWorkspaceAgent } from './file-search-DmoDnMan.js';
4
4
  import { b as Workspace, R as RuntimeFilesystemCapability, c as WorkspaceRuntimeContext, S as Sandbox } from './sandbox-KQiEdz4W.js';
5
- import { d as AgentSessionRef, V as VerifiedAgentScopeClaim, f as AgentGatewayErrorDTO, J as JsonValue, c as AuthorizedAgentScope, b as AgentGateway, j as AgentScopeVerifier } from './errors-cNC4HMpV.js';
6
- import { o as ChatModelSelection } from './piChatEvent-B3ehh9V0.js';
5
+ import { d as AgentSessionRef, V as VerifiedAgentScopeClaim, f as AgentGatewayErrorDTO, J as JsonValue, c as AuthorizedAgentScope, b as AgentGateway, j as AgentScopeVerifier } from './errors-Ci0dzmcP.js';
6
+ import { o as ChatModelSelection } from './piChatEvent-Bzof4IEy.js';
7
7
  import { RuntimeHostOperations, RuntimeFilesystemBinding as RuntimeFilesystemBinding$1 } from '@hachej/boring-bash/agent';
8
8
  import { CreateNodeWorkspaceOptions, BoringAgentRuntimePaths } from '@hachej/boring-sandbox/providers/node-workspace';
9
9
  import { PackageSource, ExtensionFactory } from '@mariozechner/pi-coding-agent';
@@ -978,4 +978,4 @@ interface CreatedAgentHost {
978
978
  runWithWorkspaceAgent(input: AgentHostDispatcherRunInput, run: (binding: LeaseBoundWorkspaceAgent) => Promise<void>): Promise<void>;
979
979
  }
980
980
 
981
- export { type PiExtensionFactory as $, type AgentGatewayEffect as A, type BuiltinRuntimeModeId as B, type ConfiguredAgentHostAgentSpec as C, type AgentFleetCompiler as D, type AgentRequestTarget as E, type RuntimeFilesystemAccessDecision as F, type AgentHostDescription as G, type AgentHostDirectProjectionOptions as H, type AgentHostDispatcherRunInput as I, type AgentHostEnvironmentLease as J, type AgentHostHandle as K, type LegacyDefaultAgentHostSpec as L, type ModeContext as M, type MeteringReleaseInput as N, type MeteringReleaseReason as O, type ProvisionWorkspaceRuntimeOptions as P, type MeteringReservationResult as Q, type RuntimeModeAdapter as R, type MeteringReserveInput as S, type MeteringRunKind as T, type MeteringRunScope as U, type MeteringRunStatus as V, type WorkspaceProvisioningResult as W, type MeteringSettleInput as X, type MeteringUsage as Y, type MeteringUsageInput as Z, PI_PACKAGE_RESOURCE_FILTERS as _, type PiPackageSource as a, type PluginSkillSource as a0, type ResolvedEnvironmentScope as a1, type RuntimeFilesystemBindingOperations as a2, type RuntimeNodePackageSpec as a3, type RuntimeProvisioningContribution as a4, type RuntimePythonSpec as a5, type RuntimeTemplateContribution as a6, type WorkspaceProvisioningExecResult as a7, compactPiPackages as a8, mergePiPackageSources as a9, normalizeMeteringUsage as aa, piPackageSourceKey as ab, type RuntimeModeId as b, type AgentRuntimeHostOperations as c, type RuntimeBashStrategy as d, type RuntimeFilesystemStrategy as e, type WorkspaceProvisioningAdapter as f, type AgentInstructionFileRef as g, type AgentHostAgentSpec as h, type RuntimeBundle as i, type PiHarnessOptions as j, type AgentMeteringSink as k, type RuntimeFilesystemBinding as l, type CreatedAgentHost as m, type MeteringErrorLogger as n, ReadyStatusTracker as o, type ResolvedAgentRuntimeScope as p, type CreateAgentHostOptions as q, type CompiledAgentHostAgentSpec as r, type AgentRequestLedger as s, type AgentEffectAdmission as t, type AuthorizedEnvironmentIntent as u, type AgentHostEnvironmentScope as v, type AgentRequestKey as w, type AgentRequestLedgerPrepareResult as x, type AgentRequestFailure as y, type AgentRequestLedgerRecord as z };
981
+ export { type PiExtensionFactory as $, type AgentGatewayEffect as A, type BuiltinRuntimeModeId as B, type ConfiguredAgentHostAgentSpec as C, type AgentFleetCompiler as D, type AgentRequestTarget as E, type RuntimeFilesystemAccessDecision as F, type AgentHostDescription as G, type AgentHostDirectProjectionOptions as H, type AgentHostDispatcherRunInput as I, type AgentHostEnvironmentLease as J, type AgentHostHandle as K, type LegacyDefaultAgentHostSpec as L, type ModeContext as M, type MeteringReleaseInput as N, type MeteringReleaseReason as O, type ProvisionWorkspaceRuntimeOptions as P, type MeteringReservationResult as Q, type RuntimeModeAdapter as R, type MeteringReserveInput as S, type MeteringRunKind as T, type MeteringRunScope as U, type MeteringRunStatus as V, type WorkspaceProvisioningResult as W, type MeteringSettleInput as X, type MeteringUsage as Y, type MeteringUsageInput as Z, PI_PACKAGE_RESOURCE_FILTERS as _, type PiPackageSource as a, type PluginSkillSource as a0, type ResolvedEnvironmentScope as a1, type RuntimeFilesystemBindingOperations as a2, type RuntimeNodePackageSpec as a3, type RuntimeProvisioningContribution as a4, type RuntimePythonSpec as a5, type RuntimeTemplateContribution as a6, type WorkspaceProvisioningExecResult as a7, compactPiPackages as a8, mergePiPackageSources as a9, normalizeMeteringUsage as aa, piPackageSourceKey as ab, type RuntimeModeId as b, type AgentRuntimeHostOperations as c, type RuntimeBashStrategy as d, type RuntimeFilesystemStrategy as e, type WorkspaceProvisioningAdapter as f, type AgentInstructionFileRef as g, type AgentHostAgentSpec as h, type RuntimeBundle as i, type PiHarnessOptions as j, type AgentMeteringSink as k, type RuntimeFilesystemBinding as l, type CreatedAgentHost as m, type MeteringErrorLogger as n, ReadyStatusTracker as o, type CreateAgentHostOptions as p, type CompiledAgentHostAgentSpec as q, type AgentRequestLedger as r, type AgentEffectAdmission as s, type AuthorizedEnvironmentIntent as t, type AgentHostEnvironmentScope as u, type ResolvedAgentRuntimeScope as v, type AgentRequestKey as w, type AgentRequestLedgerPrepareResult as x, type AgentRequestFailure as y, type AgentRequestLedgerRecord as z };