@opengeni/runtime 6.7.0 → 6.8.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.
Files changed (49) hide show
  1. package/dist/anthropic-messages.d.ts +14 -1
  2. package/dist/assets/codemode-client.json +1 -1
  3. package/dist/{chunk-3MNZZ2B4.js → chunk-2MBI6D2F.js} +2 -2
  4. package/dist/{chunk-JY5NSZ37.js → chunk-5K2NI7NX.js} +15 -13
  5. package/dist/chunk-5K2NI7NX.js.map +1 -0
  6. package/dist/{chunk-77NQGL66.js → chunk-6MHS5OUN.js} +1 -1
  7. package/dist/chunk-6MHS5OUN.js.map +1 -0
  8. package/dist/{chunk-RZJXTSVA.js → chunk-E2YB7OIA.js} +2 -2
  9. package/dist/{chunk-JF5UTPEU.js → chunk-JRM6HEPY.js} +2 -2
  10. package/dist/{chunk-GFAFQMZV.js → chunk-QNQGZKHJ.js} +3 -3
  11. package/dist/{chunk-FNAYH3SN.js → chunk-RXCYGCX7.js} +1282 -477
  12. package/dist/chunk-RXCYGCX7.js.map +1 -0
  13. package/dist/{chunk-OAW6MMSY.js → chunk-V7MCFH4O.js} +3 -3
  14. package/dist/gmail-rest-mcp.js +3 -3
  15. package/dist/google-calendar-rest-mcp.js +2 -2
  16. package/dist/index.js +8 -8
  17. package/dist/metrics.d.ts +15 -0
  18. package/dist/model-call.js +1 -1
  19. package/dist/model-provider-client.d.ts +3 -0
  20. package/dist/provider-history-adapter.d.ts +0 -6
  21. package/dist/provider-invalid-request.d.ts +12 -0
  22. package/dist/provider-request-tool-names.d.ts +134 -0
  23. package/dist/provider-tool-names.d.ts +4 -5
  24. package/dist/replayable-json-body.d.ts +5 -1
  25. package/dist/sandbox/index.js +2 -2
  26. package/dist/sandbox/routing/backend-resolver.d.ts +6 -5
  27. package/dist/slack-rest-mcp.js +3 -3
  28. package/dist/workspace-tool-gateway.js +8 -8
  29. package/package.json +15 -15
  30. package/src/anthropic-messages.ts +98 -11
  31. package/src/index.ts +2 -1
  32. package/src/metrics.ts +15 -0
  33. package/src/model-provider-client.ts +16 -0
  34. package/src/model-provider-routing.ts +2 -3
  35. package/src/provider-history-adapter.ts +6 -21
  36. package/src/provider-invalid-request.ts +90 -19
  37. package/src/provider-request-tool-names.ts +900 -0
  38. package/src/provider-tool-names.ts +14 -20
  39. package/src/replayable-json-body.ts +171 -3
  40. package/src/sandbox/routing/backend-resolver.ts +9 -9
  41. package/src/single-model-call.ts +2 -1
  42. package/dist/chunk-77NQGL66.js.map +0 -1
  43. package/dist/chunk-FNAYH3SN.js.map +0 -1
  44. package/dist/chunk-JY5NSZ37.js.map +0 -1
  45. /package/dist/{chunk-3MNZZ2B4.js.map → chunk-2MBI6D2F.js.map} +0 -0
  46. /package/dist/{chunk-RZJXTSVA.js.map → chunk-E2YB7OIA.js.map} +0 -0
  47. /package/dist/{chunk-JF5UTPEU.js.map → chunk-JRM6HEPY.js.map} +0 -0
  48. /package/dist/{chunk-GFAFQMZV.js.map → chunk-QNQGZKHJ.js.map} +0 -0
  49. /package/dist/{chunk-OAW6MMSY.js.map → chunk-V7MCFH4O.js.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  connectorAttachmentFileName
3
- } from "./chunk-JF5UTPEU.js";
3
+ } from "./chunk-JRM6HEPY.js";
4
4
  import {
5
5
  MCP_MAX_TOOL_RESULT_BYTES,
6
6
  mcpSerializedSizeBytes
7
7
  } from "./chunk-LJNCGUMB.js";
8
8
  import {
9
9
  isRoutingMutationOutcomeUnknownError
10
- } from "./chunk-77NQGL66.js";
10
+ } from "./chunk-6MHS5OUN.js";
11
11
 
12
12
  // src/gmail-rest-mcp.ts
13
13
  import {
@@ -2960,4 +2960,4 @@ export {
2960
2960
  gmailRestToolIsMutation,
2961
2961
  gmailRestResultOutcome
2962
2962
  };
2963
- //# sourceMappingURL=chunk-OAW6MMSY.js.map
2963
+ //# sourceMappingURL=chunk-V7MCFH4O.js.map
@@ -11,10 +11,10 @@ import {
11
11
  gmailToolAvailableOnDeployment,
12
12
  gmailToolSupportsScopes,
13
13
  isOfficialGmailMcpConfig
14
- } from "./chunk-OAW6MMSY.js";
15
- import "./chunk-JF5UTPEU.js";
14
+ } from "./chunk-V7MCFH4O.js";
15
+ import "./chunk-JRM6HEPY.js";
16
16
  import "./chunk-LJNCGUMB.js";
17
- import "./chunk-77NQGL66.js";
17
+ import "./chunk-6MHS5OUN.js";
18
18
  import "./chunk-4A4XTKKX.js";
19
19
  import "./chunk-N4AM4WCV.js";
20
20
  import "./chunk-LEGQDWKE.js";
@@ -10,8 +10,8 @@ import {
10
10
  googleCalendarRestToolIsMutation,
11
11
  googleCalendarToolSupportsScopes,
12
12
  isOfficialGoogleCalendarMcpConfig
13
- } from "./chunk-RZJXTSVA.js";
14
- import "./chunk-77NQGL66.js";
13
+ } from "./chunk-E2YB7OIA.js";
14
+ import "./chunk-6MHS5OUN.js";
15
15
  import "./chunk-4A4XTKKX.js";
16
16
  import "./chunk-N4AM4WCV.js";
17
17
  import "./chunk-LEGQDWKE.js";
package/dist/index.js CHANGED
@@ -217,7 +217,7 @@ import {
217
217
  withoutAppendedCommandCompletions,
218
218
  withoutAppendedText,
219
219
  workspaceEnvironmentInstructions
220
- } from "./chunk-JY5NSZ37.js";
220
+ } from "./chunk-5K2NI7NX.js";
221
221
  import {
222
222
  OFFICIAL_SLACK_MCP_URL,
223
223
  SLACK_REST_API_BASE,
@@ -225,7 +225,7 @@ import {
225
225
  SlackRestMcpServer,
226
226
  isOfficialSlackMcpConfig,
227
227
  slackRestToolIsMutation
228
- } from "./chunk-GFAFQMZV.js";
228
+ } from "./chunk-QNQGZKHJ.js";
229
229
  import {
230
230
  BROWSER_CONTROL_ADMIN_TOKEN_FILE,
231
231
  BROWSER_CONTROL_PORT,
@@ -428,7 +428,7 @@ import {
428
428
  withRunCredentialsSession,
429
429
  withoutSandboxProviderIdentity,
430
430
  workspaceArchiveDownloadTemporaryDirectory
431
- } from "./chunk-3MNZZ2B4.js";
431
+ } from "./chunk-2MBI6D2F.js";
432
432
  import {
433
433
  SANDBOX_OPERATION_PURPOSES,
434
434
  currentSandboxOperationPurpose,
@@ -648,7 +648,7 @@ import {
648
648
  withInferenceResidency,
649
649
  withModelTransportStartedObserver,
650
650
  withPromptCacheFingerprintObserver
651
- } from "./chunk-FNAYH3SN.js";
651
+ } from "./chunk-RXCYGCX7.js";
652
652
  import {
653
653
  UnsupportedProtocolJsonValueError,
654
654
  normalizeProtocolJsonValue
@@ -669,14 +669,14 @@ import {
669
669
  spilledModelToolResult,
670
670
  wrapAttemptToolDefinitions,
671
671
  wrapAttemptToolExecute
672
- } from "./chunk-OAW6MMSY.js";
672
+ } from "./chunk-V7MCFH4O.js";
673
673
  import {
674
674
  CONNECTOR_ATTACHMENT_PROVIDER_RESULT_MAX_BYTES,
675
675
  CONNECTOR_ATTACHMENT_SANITIZED_RESULT_MAX_BYTES,
676
676
  ConnectorAttachmentTransferError,
677
677
  connectorAttachmentSandboxPath,
678
678
  projectConnectorAttachmentTransfers
679
- } from "./chunk-JF5UTPEU.js";
679
+ } from "./chunk-JRM6HEPY.js";
680
680
  import "./chunk-LJNCGUMB.js";
681
681
  import {
682
682
  GOOGLE_CALENDAR_REST_API_BASE,
@@ -686,7 +686,7 @@ import {
686
686
  googleCalendarRestToolIsMutation,
687
687
  googleCalendarToolSupportsScopes,
688
688
  isOfficialGoogleCalendarMcpConfig
689
- } from "./chunk-RZJXTSVA.js";
689
+ } from "./chunk-E2YB7OIA.js";
690
690
  import {
691
691
  AGENT_LINK_LOST_HEADER,
692
692
  AGENT_UNANSWERED_DETAIL_KEY,
@@ -851,7 +851,7 @@ import {
851
851
  withModalCommandStartSignal,
852
852
  withRoutingMutationOutputRejectionFence,
853
853
  withoutWaking
854
- } from "./chunk-77NQGL66.js";
854
+ } from "./chunk-6MHS5OUN.js";
855
855
  import "./chunk-4A4XTKKX.js";
856
856
  import "./chunk-N4AM4WCV.js";
857
857
  import "./chunk-LEGQDWKE.js";
package/dist/metrics.d.ts CHANGED
@@ -61,6 +61,21 @@ export type RuntimeMetricsHooks = {
61
61
  path: string;
62
62
  code: string;
63
63
  }) => void;
64
+ /**
65
+ * The outbound tool-name guard changed a tool name a provider could reject,
66
+ * once per request and field (`tools`, `tool_choice`, `history`).
67
+ */
68
+ onModelToolNameRepair?: (input: {
69
+ provider: string;
70
+ api: "responses" | "chat" | "anthropic-messages";
71
+ field: "tools" | "tool_choice" | "history";
72
+ }) => void;
73
+ /** The one strict resend after a provider still rejected a tool name, by its outcome. */
74
+ onModelToolNameRetry?: (input: {
75
+ provider: string;
76
+ api: "responses" | "chat" | "anthropic-messages";
77
+ outcome: "completed" | "failed";
78
+ }) => void;
64
79
  onSandboxCreate?: (input: {
65
80
  backend: string;
66
81
  imageSource: "logical" | "provider_immutable";
@@ -12,7 +12,7 @@ import {
12
12
  sideFeatureRouteFetch,
13
13
  sideFeatureRouteRunnable,
14
14
  withInferenceResidency
15
- } from "./chunk-FNAYH3SN.js";
15
+ } from "./chunk-RXCYGCX7.js";
16
16
  import "./chunk-V6YVIEUE.js";
17
17
  import "./chunk-LJNCGUMB.js";
18
18
  import "./chunk-AHS7OPK2.js";
@@ -2,7 +2,10 @@ import { type InferenceResidencyRequirement } from "./inference-residency.js";
2
2
  import { type ResolvedModelProvider, type Settings } from "@opengeni/config";
3
3
  import OpenAI from "openai";
4
4
  import type { McpLifecycleOutcome, McpLifecyclePhase, McpLifecyclePolicy, McpToolCallOutcome, RuntimeMetricsHooks } from "./metrics.js";
5
+ import type { ToolNameObservers } from "./provider-request-tool-names.js";
5
6
  export declare function configureRuntimeMetricsHooks(hooks: RuntimeMetricsHooks | null | undefined): void;
7
+ /** The outbound tool-name guard's observations for one provider, as metrics. */
8
+ export declare function modelToolNameObservers(provider: string): ToolNameObservers;
6
9
  export declare function recordRuntimeMcpToolCallMetric(outcome: McpToolCallOutcome, tool: string, startedAt: number): void;
7
10
  export declare function recordRuntimeMcpLifecycleMetric(phase: McpLifecyclePhase, policy: McpLifecyclePolicy, outcome: McpLifecycleOutcome, startedAt: number): void;
8
11
  /**
@@ -22,12 +22,6 @@ export type ProviderHistoryOptions = {
22
22
  * replay them natively.
23
23
  */
24
24
  searchRecordForm?: SearchRecordForm;
25
- /**
26
- * The request's function tool names, which history keeps as written. Any
27
- * other history tool name a provider would reject gets its stable alias
28
- * (see withProviderValidToolNames).
29
- */
30
- knownToolNames?: readonly string[];
31
25
  };
32
26
  /** Marks a request-local item that declares tools newly available to the model. */
33
27
  export declare const TOOL_DISCLOSURE_KEY = "opengeni.tool_disclosure.v1";
@@ -10,7 +10,19 @@ export type InvalidRequestSignature = {
10
10
  path: string;
11
11
  code: string;
12
12
  };
13
+ /** The message of a parsed provider error body, never recorded. */
14
+ export declare function invalidRequestMessage(body: unknown): string;
15
+ /**
16
+ * The request path a parsed provider error body names, as written
17
+ * (`input[26].tools[1].name`), or null. Used to find the rejected value in
18
+ * the request; never recorded.
19
+ */
20
+ export declare function invalidRequestRawPath(body: unknown): string | null;
13
21
  /** The signature of a parsed provider error body (OpenAI, Claude, gateways). */
14
22
  export declare function invalidRequestSignature(body: unknown): InvalidRequestSignature;
23
+ /** A provider error body's text, parsed; text that is not JSON is its message. */
24
+ export declare function parseInvalidRequestText(text: string): unknown;
25
+ /** A 400 response's error body, read from a bounded clone; null when unreadable. */
26
+ export declare function invalidRequestBodyOfResponse(response: Response): Promise<unknown>;
15
27
  /** The signature of a 400 response's body, read from a clone; null when unreadable. */
16
28
  export declare function invalidRequestSignatureOfResponse(response: Response): Promise<InvalidRequestSignature | null>;
@@ -0,0 +1,134 @@
1
+ /**
2
+ * The outbound tool-name guard (docs/model-providers.md, "Tool names on the
3
+ * wire").
4
+ *
5
+ * Every model request passes through it once, as the last step before its
6
+ * body is serialized: Responses (HTTP, the Codex WebSocket `response.create`
7
+ * payload, xAI, Azure and gateways), Chat Completions (OpenRouter, Opper,
8
+ * Gemini and other compatible gateways) and Claude Messages. It visits every
9
+ * position a provider validates as a tool name: the request's tool
10
+ * definitions and namespaces, `tool_choice`, and every history item that
11
+ * names a tool or carries definitions (`function_call`, `custom_tool_call`,
12
+ * `tool_search_output`, `additional_tools`, MCP items, Chat `tool_calls`,
13
+ * Claude `tool_use`).
14
+ *
15
+ * A name every provider accepts (`^[a-zA-Z0-9_-]{1,64}$`) is sent byte for
16
+ * byte, and a request without any other name is returned unchanged, so prompt
17
+ * caches never move. Any other name gets its stable alias
18
+ * (`providerToolNameAlias`): the same in every position of the request, never
19
+ * equal to another name of the request (a numeric suffix settles the
20
+ * vanishingly rare clash), and a definition that comes to repeat an earlier
21
+ * name in the same list is dropped. The aliases are remembered for the
22
+ * request, and the provider's answer is mapped back before anything reads
23
+ * it, so a call to an alias runs, is approved and is shown as the original
24
+ * tool.
25
+ *
26
+ * Strict mode, used once after a provider still rejects a tool name, aliases
27
+ * every name, valid or not, to a name of letters, digits and `_` that starts
28
+ * with a letter. When that resend succeeds, the client remembers the one name
29
+ * the provider's error pointed at, for that model (`RejectedToolNames`), so
30
+ * its later requests alias it straight away instead of paying the rejection
31
+ * again; every other name stays byte for byte.
32
+ */
33
+ export type ToolNameWireApi = "responses" | "chat" | "anthropic-messages";
34
+ /** Where a repaired name sat: the request's tools, `tool_choice`, or history. */
35
+ export type ToolNameField = "tools" | "tool_choice" | "history";
36
+ /** A request's aliases, by the name the provider saw. */
37
+ export declare class ToolNameAliases {
38
+ private readonly flat;
39
+ private readonly namespaces;
40
+ private readonly leaves;
41
+ constructor(flat?: ReadonlyMap<string, string>, namespaces?: ReadonlyMap<string, string>, leaves?: ReadonlyMap<string, string>);
42
+ get size(): number;
43
+ /** The original of a tool name the provider saw (unchanged when it is no alias). */
44
+ restoreFlat(name: string): string;
45
+ restoreNamespace(name: string): string;
46
+ /** The original of a name inside a namespace, given the namespace's original. */
47
+ restoreLeaf(namespace: string, name: string): string;
48
+ }
49
+ /**
50
+ * The tool names a client's route rejected, per model: after a strict
51
+ * resend succeeded, the one name at the path the provider's 400 named.
52
+ * Later requests for that model through the client alias it without a
53
+ * failed attempt first; every other name stays byte for byte. Bounded; the
54
+ * oldest name is forgotten first.
55
+ */
56
+ export declare class RejectedToolNames {
57
+ private readonly entries;
58
+ get size(): number;
59
+ /** The names rejected for one model, as the guard's `rejected` option. */
60
+ forModel(model: unknown): RejectedToolNameSet;
61
+ /**
62
+ * Remember the tool name at the path a provider's error names, in the
63
+ * body that was sent, when it is one of the request's tool names. A path
64
+ * that names no tool name of the request is ignored.
65
+ */
66
+ rememberRejection(api: ToolNameWireApi, sent: Record<string, unknown>, aliases: ToolNameAliases, error: unknown): string | null;
67
+ }
68
+ export type RejectedToolNameSet = {
69
+ has(name: string): boolean;
70
+ };
71
+ /** Monitoring-only observations of the guard; they never affect a request. */
72
+ export type ToolNameObservers = {
73
+ /** The guard changed a tool name: once per request and field. */
74
+ onToolNameRepair?: (observation: {
75
+ api: ToolNameWireApi;
76
+ field: ToolNameField;
77
+ }) => void;
78
+ /** The one strict resend after a provider rejected a tool name. */
79
+ onToolNameRetry?: (observation: {
80
+ api: ToolNameWireApi;
81
+ outcome: "completed" | "failed";
82
+ }) => void;
83
+ };
84
+ /** Call an observer; a failing one never affects the model call. */
85
+ export declare function observeToolNames<T>(observer: ((observation: T) => void) | undefined, observation: T): void;
86
+ export type GuardedToolNames<T> = {
87
+ /** The request body, the same object when no name changed. */
88
+ body: T;
89
+ aliases: ToolNameAliases;
90
+ /** The fields in which a name changed, for the repair counter. */
91
+ repaired: ToolNameField[];
92
+ };
93
+ export type ToolNameGuardOptions = {
94
+ /** Alias every name, valid or not (the one retry after a rejected name). */
95
+ strict?: boolean;
96
+ /** Names the client's route rejected before; they are aliased too. */
97
+ rejected?: RejectedToolNameSet;
98
+ };
99
+ /**
100
+ * The request body with every tool name a provider could reject replaced by
101
+ * its alias, consistently across the request, and the aliases to map the
102
+ * answer back with (see the module comment).
103
+ */
104
+ export declare function guardRequestToolNames<T extends Record<string, unknown>>(api: ToolNameWireApi, body: T, options?: ToolNameGuardOptions): GuardedToolNames<T>;
105
+ /**
106
+ * A Responses answer with its tool names restored: a response (`output`),
107
+ * or a stream event (`item`, `response`, or a call event's `name`).
108
+ */
109
+ export declare function restoreResponsesToolNames<T>(payload: T, aliases: ToolNameAliases): T;
110
+ /** A Chat completion or stream chunk with its tool call names restored. */
111
+ export declare function restoreChatToolNames<T>(payload: T, aliases: ToolNameAliases): T;
112
+ /** A Claude message (`content`) or stream event (`content_block`) with tool names restored. */
113
+ export declare function restoreClaudeToolNames<T>(payload: T, aliases: ToolNameAliases): T;
114
+ /** The tool names an answer of this API carries, restored. */
115
+ export declare function restoreToolNames<T>(api: ToolNameWireApi, payload: T, aliases: ToolNameAliases): T;
116
+ /**
117
+ * Whether a provider's 400 says a tool name (a `…name` or `…namespace` field,
118
+ * or `tool_choice`) breaks its string constraints: the one rejection the
119
+ * strict retry can fix. Its path is read as the invalid-request counter reads
120
+ * it (`invalidRequestSignature`).
121
+ */
122
+ export declare function isToolNameRejection(signature: {
123
+ path: string;
124
+ code: string;
125
+ }, message: string): boolean;
126
+ /** Whether a provider error body rejects a tool name (see isToolNameRejection). */
127
+ export declare function rejectsToolName(body: unknown): boolean;
128
+ /**
129
+ * The error body of a 400 response that rejects a tool name, read from a
130
+ * bounded clone; null for every other response.
131
+ */
132
+ export declare function toolNameRejectionOfResponse(response: Response): Promise<unknown>;
133
+ /** Whether a 400 response rejects a tool name; its body is read from a clone. */
134
+ export declare function responseRejectsToolName(response: Response): Promise<boolean>;
@@ -1,9 +1,10 @@
1
1
  /** Whether every provider accepts this tool name. */
2
2
  export declare function isProviderToolName(name: string): boolean;
3
3
  /**
4
- * The stable alias of a name no authorized tool answers to: its readable
5
- * part with every other character replaced, and a digest of the whole name,
6
- * so two different names never share an alias. At most 57 characters.
4
+ * The stable alias of a tool name: its readable part with every other
5
+ * character replaced, starting with a letter, and a digest of the whole
6
+ * name, so two different names never share an alias. Only letters, digits
7
+ * and `_`, at most 57 characters: narrower than any provider's own format.
7
8
  */
8
9
  export declare function providerToolNameAlias(name: string): string;
9
10
  /**
@@ -19,8 +20,6 @@ export declare function providerToolNameAlias(name: string): string;
19
20
  * Any other invalid character means no known tool is guessed.
20
21
  */
21
22
  export declare function knownToolNameFor(name: string, known: readonly string[]): string | null;
22
- /** The model names of a request's function tools. */
23
- export declare function requestFunctionToolNames(tools: readonly unknown[] | undefined): string[];
24
23
  /** The tools history names are checked against. */
25
24
  export type ToolNameCatalog = {
26
25
  /** Model names of the tools; a history name equal to one is never rewritten. */
@@ -1,5 +1,6 @@
1
1
  import OpenAI, { type APIError } from "openai";
2
2
  import type { APIPromise } from "openai/core/api-promise";
3
+ import { type ToolNameObservers } from "./provider-request-tool-names.js";
3
4
  /** Internal fetch-init hook used only when a transport performs its own retry. */
4
5
  export declare const REPLAYABLE_REQUEST_BODY_FACTORY: unique symbol;
5
6
  /**
@@ -25,7 +26,7 @@ export type ModelJsonRequestPolicy = (request: {
25
26
  path: string;
26
27
  body: Readonly<Record<string, unknown>>;
27
28
  }) => ModelJsonRequestPolicyResult | undefined;
28
- export type ReplayableJsonOpenAIHooks = {
29
+ export type ReplayableJsonOpenAIHooks = ToolNameObservers & {
29
30
  /** Synchronous object-stage policy, run exactly once before serialization. */
30
31
  modelRequestPolicy?: ModelJsonRequestPolicy;
31
32
  };
@@ -53,6 +54,9 @@ export declare function requestBodyText(body: BodyInit | null | undefined): Prom
53
54
  */
54
55
  export declare class ReplayableJsonOpenAI extends OpenAI {
55
56
  private readonly modelRequestPolicy;
57
+ private readonly onToolNameRepair;
58
+ /** Names this client's route rejected (see RejectedToolNames). */
59
+ private readonly rejectedToolNames;
56
60
  constructor(options: OpenAIOptions, hooks?: ReplayableJsonOpenAIHooks);
57
61
  protected makeStatusError(status: number, error: NonNullable<Parameters<typeof APIError.generate>[1]>, message: string | undefined, headers: Headers): APIError;
58
62
  post<Rsp>(path: string, opts?: OpenAIPostOptions): APIPromise<Rsp>;
@@ -197,7 +197,7 @@ import {
197
197
  withRunCredentialsSession,
198
198
  withoutSandboxProviderIdentity,
199
199
  workspaceArchiveDownloadTemporaryDirectory
200
- } from "../chunk-3MNZZ2B4.js";
200
+ } from "../chunk-2MBI6D2F.js";
201
201
  import {
202
202
  SANDBOX_OPERATION_PURPOSES,
203
203
  currentSandboxOperationPurpose,
@@ -371,7 +371,7 @@ import {
371
371
  withModalCommandStartSignal,
372
372
  withRoutingMutationOutputRejectionFence,
373
373
  withoutWaking
374
- } from "../chunk-77NQGL66.js";
374
+ } from "../chunk-6MHS5OUN.js";
375
375
  import "../chunk-4A4XTKKX.js";
376
376
  import "../chunk-N4AM4WCV.js";
377
377
  import "../chunk-LEGQDWKE.js";
@@ -123,11 +123,12 @@ export interface ActiveBackendResolverDeps {
123
123
  };
124
124
  /**
125
125
  * Whether `defaultBackend` IS the session's home box — i.e. whether the null pointer
126
- * (== home) may resolve to it. Defaults to TRUE (omitted): a genuine machine-HOME turn
127
- * (home IS the machine) and a Modal-home turn established on its group box both pass/omit
128
- * true, so null resolves to `defaultBackend` as before. Set explicitly FALSE only for a
129
- * machine-primary turn of a Modal-HOME session (pinned to a machine, group box never
130
- * established this turn): the null pointer then has nothing to resolve to THIS turn, so
126
+ * (== home) may resolve to it. Defaults to TRUE (omitted): a turn established on its
127
+ * group box omits it, so null resolves to `defaultBackend` as before. Set explicitly
128
+ * FALSE for every machine-primary turn (pinned to a machine, group box never established
129
+ * this turn). The null pointer is the chat's managed box even when the chat's durable
130
+ * home label is a machine; turn start never resolves null to a machine. It therefore
131
+ * has nothing to resolve to THIS turn, so
131
132
  * rather than silently keep serving the pinned machine as if the detach never happened,
132
133
  * the null branch throws a typed `home_unavailable_this_turn` transition — the detach's
133
134
  * pointer commit stands, and worker failure settlement checkpoints completed work before
@@ -8,10 +8,10 @@ import {
8
8
  SlackRestMcpServer,
9
9
  isOfficialSlackMcpConfig,
10
10
  slackRestToolIsMutation
11
- } from "./chunk-GFAFQMZV.js";
12
- import "./chunk-JF5UTPEU.js";
11
+ } from "./chunk-QNQGZKHJ.js";
12
+ import "./chunk-JRM6HEPY.js";
13
13
  import "./chunk-LJNCGUMB.js";
14
- import "./chunk-77NQGL66.js";
14
+ import "./chunk-6MHS5OUN.js";
15
15
  import "./chunk-4A4XTKKX.js";
16
16
  import "./chunk-N4AM4WCV.js";
17
17
  import "./chunk-LEGQDWKE.js";
@@ -6,19 +6,19 @@ import {
6
6
  prepareAgentTools,
7
7
  secretArgumentMode,
8
8
  sessionMcpApprovalConnectionId
9
- } from "./chunk-JY5NSZ37.js";
10
- import "./chunk-GFAFQMZV.js";
11
- import "./chunk-3MNZZ2B4.js";
9
+ } from "./chunk-5K2NI7NX.js";
10
+ import "./chunk-QNQGZKHJ.js";
11
+ import "./chunk-2MBI6D2F.js";
12
12
  import "./chunk-ZOKELPV6.js";
13
13
  import "./chunk-P2QDPLC3.js";
14
14
  import "./chunk-LDH5UPCG.js";
15
- import "./chunk-FNAYH3SN.js";
15
+ import "./chunk-RXCYGCX7.js";
16
16
  import "./chunk-V6YVIEUE.js";
17
- import "./chunk-OAW6MMSY.js";
18
- import "./chunk-JF5UTPEU.js";
17
+ import "./chunk-V7MCFH4O.js";
18
+ import "./chunk-JRM6HEPY.js";
19
19
  import "./chunk-LJNCGUMB.js";
20
- import "./chunk-RZJXTSVA.js";
21
- import "./chunk-77NQGL66.js";
20
+ import "./chunk-E2YB7OIA.js";
21
+ import "./chunk-6MHS5OUN.js";
22
22
  import "./chunk-4A4XTKKX.js";
23
23
  import "./chunk-N4AM4WCV.js";
24
24
  import "./chunk-LEGQDWKE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/runtime",
3
- "version": "6.7.0",
3
+ "version": "6.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,20 +84,20 @@
84
84
  "@openai/agents": "0.14.3",
85
85
  "@openai/agents-core": "0.14.3",
86
86
  "@openai/agents-extensions": "0.14.3",
87
- "@opengeni/agent-proto": "6.7.0",
88
- "@opengeni/capabilities": "6.7.0",
89
- "@opengeni/codemode": "6.7.0",
90
- "@opengeni/codex": "6.7.0",
91
- "@opengeni/config": "6.7.0",
92
- "@opengeni/contracts": "6.7.0",
93
- "@opengeni/decisions": "6.7.0",
94
- "@opengeni/interaction": "6.7.0",
95
- "@opengeni/network": "6.7.0",
96
- "@opengeni/observability": "6.7.0",
97
- "@opengeni/sdk": "6.7.0",
98
- "@opengeni/tool-gateway": "6.7.0",
99
- "@opengeni/vaults": "6.7.0",
100
- "@opengeni/xai-subscription": "6.7.0",
87
+ "@opengeni/agent-proto": "6.8.0",
88
+ "@opengeni/capabilities": "6.8.0",
89
+ "@opengeni/codemode": "6.8.0",
90
+ "@opengeni/codex": "6.8.0",
91
+ "@opengeni/config": "6.8.0",
92
+ "@opengeni/contracts": "6.8.0",
93
+ "@opengeni/decisions": "6.8.0",
94
+ "@opengeni/interaction": "6.8.0",
95
+ "@opengeni/network": "6.8.0",
96
+ "@opengeni/observability": "6.8.0",
97
+ "@opengeni/sdk": "6.8.0",
98
+ "@opengeni/tool-gateway": "6.8.0",
99
+ "@opengeni/vaults": "6.8.0",
100
+ "@opengeni/xai-subscription": "6.8.0",
101
101
  "debug": "4.4.3",
102
102
  "e2b": "2.56.0",
103
103
  "modal": "0.9.0",