@makaio/framework 1.0.0-dev-1783282710723 → 1.0.0-dev-1783439621927
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/dist/.makaio-build.json +2 -2
- package/dist/adapter-Lx6K7yQS.mjs +1 -0
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +229 -41
- package/dist/adapters/index.mjs +6 -6
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/{base-orchestrator-Cw0vpNgB.d.mts → base-orchestrator-ODRyDBzu.d.mts} +79 -3
- package/dist/bus/index.mjs +1 -1
- package/dist/client-n0OJiTt1.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/config/index.d.mts +6 -6
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +375 -197
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/provider/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DFcxkf2i.d.mts → definition-DpkfJi8v.d.mts} +1 -1
- package/dist/drizzle/0021_m_mr8e1j84.sql +3 -0
- package/dist/drizzle/0022_m_mr8i4ky3.sql +43 -0
- package/dist/drizzle/0023_m_mr9gc37m.sql +1 -0
- package/dist/drizzle/meta/_journal.json +21 -0
- package/dist/{handler-2bPhRn0u.mjs → handler-BFNvtv5t.mjs} +1 -1
- package/dist/handlers-B74FvKlA.mjs +57 -0
- package/dist/hooks/index.d.mts +27 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/{identity-BarL3JYI.mjs → identity-DC3Pk0ps.mjs} +1 -1
- package/dist/{index-4eP9DRL_.d.mts → index-B3fjN5HX.d.mts} +7 -7
- package/dist/{index-Bh6lHiW4.d.mts → index-B5Uczo3R.d.mts} +40 -40
- package/dist/{index-CL2T6LVv.d.mts → index-BIZeIA5k.d.mts} +8 -8
- package/dist/{index-gAFwNiJT.d.mts → index-BvTd61i5.d.mts} +212 -26
- package/dist/{index-Y2r0Zvcm.d.mts → index-BvjLe_w9.d.mts} +12 -12
- package/dist/{index-2fK9iSHI.d.mts → index-BwGfdbI0.d.mts} +9 -9
- package/dist/{index-CaOWqztb.d.mts → index-C8k2f_E0.d.mts} +1 -1
- package/dist/{index-DEzdNQum.d.mts → index-CYHWOXUm.d.mts} +1 -1
- package/dist/{index-9b2_jXxq.d.mts → index-CwHP8Jxs.d.mts} +514 -96
- package/dist/{index-D6aAzr32.d.mts → index-Cyi7y_aG.d.mts} +20 -20
- package/dist/{index-DdBRlm7m.d.mts → index-D7Fu3375.d.mts} +401 -21
- package/dist/{index-CfIW5biI.d.mts → index-D7rWAEY0.d.mts} +1 -0
- package/dist/{index-CTEsbp9H.d.mts → index-DFK3tpEY.d.mts} +83 -5
- package/dist/{index-Dg-y1mrq.d.mts → index-DS6kxiFl.d.mts} +28 -28
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-GD-i3DW7.d.mts → index-DmJ-OpTD.d.mts} +1275 -224
- package/dist/{index-DLy-tc0L.d.mts → index-Dtb2cVJz.d.mts} +260 -47
- package/dist/{index-D9-vOJvZ.d.mts → index-h5go5Dtd.d.mts} +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{lib-Ba55od_d.mjs → lib-BOmKyjWD.mjs} +1 -1
- package/dist/{lib-CM_BUxN8.mjs → lib-DLZYp5z3.mjs} +1 -1
- package/dist/{loop-gate-handlers-BLoGCWMQ.mjs → loop-gate-handlers-Bjmat-K3.mjs} +1 -1
- package/dist/{namespace-D8P8Sxce2.d.mts → namespace-6sIu5nBI2.d.mts} +2 -2
- package/dist/{namespace-CfvtDD_U.d.mts → namespace-BLER-Qom.d.mts} +2 -2
- package/dist/{namespace-B3ol3pc-.d.mts → namespace-BigVYQyx.d.mts} +12 -0
- package/dist/{namespace-j7vFsmYL.d.mts → namespace-C74bbsdZ.d.mts} +2 -2
- package/dist/{namespace-B4cV_pk3.d.mts → namespace-CGxFYDlK.d.mts} +32 -32
- package/dist/{namespace-LUNf8zo5.d.mts → namespace-D1_9WVCo.d.mts} +157 -0
- package/dist/{namespace-KMxsPJwm.d.mts → namespace-D4Uf5Mw_.d.mts} +432 -18
- package/dist/{namespace-BsYKEMd8.d.mts → namespace-DAj_riOn.d.mts} +138 -0
- package/dist/{namespace-DXW-voCe.d.mts → namespace-DRXQyBe0.d.mts} +204 -24
- package/dist/{namespace-DGAWYjbO.d.mts → namespace-JFzrlNs4.d.mts} +27 -27
- package/dist/namespace-dFBD2ZmS.mjs +1 -0
- package/dist/node/transports/index.mjs +1 -1
- package/dist/orchestrator-shared-ChygCvR1.mjs +1 -0
- package/dist/{orchestrator-shared-ChOdIgh6.d.mts → orchestrator-shared-DFLb1otg.d.mts} +9 -3
- package/dist/{package-MmQvNJ3u.d.mts → package-B6mEMD8r.d.mts} +5 -0
- package/dist/package-BQn_RTo7.mjs +1 -0
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/schema-7aKBGB7S.mjs +1 -0
- package/dist/{schema-D1HrnvT7.d.mts → schema-B9goOieO.d.mts} +50 -1
- package/dist/{schema-DHlTAy0N.mjs → schema-CHp6I33k.mjs} +1 -1
- package/dist/{schemas-D-9zNyAM2.d.mts → schemas-9S9Y9PHT2.d.mts} +7 -7
- package/dist/{schemas-CoFCV42v.d.mts → schemas-B_t6oOK-.d.mts} +2 -2
- package/dist/{schemas-lnE9YoG7.d.mts → schemas-CW6YsPT4.d.mts} +3 -3
- package/dist/schemas-CkOigLAT.mjs +1 -0
- package/dist/{schemas-BemsLc_V.d.mts → schemas-CurUbHy4.d.mts} +4 -4
- package/dist/{schemas-DMCGXlKa.d.mts → schemas-DXeGCbJ9.d.mts} +4 -4
- package/dist/schemas-DZGnr9Tl.mjs +1 -0
- package/dist/{schemas-DWfo0wp4.d.mts → schemas-DnmbwE_V.d.mts} +7 -7
- package/dist/{schemas-DmGRSeIq.d.mts → schemas-t6h9oSct.d.mts} +28 -1
- package/dist/services/adapter-runtime/index.d.mts +4 -4
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +2 -2
- package/dist/services/adapter-runtime/schemas.mjs +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/harness/index.d.mts +4 -4
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +129 -53
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +86 -6
- package/dist/services/log-import/index.mjs +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +54 -0
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +44 -0
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.mjs +10 -4
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +7 -7
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +89 -0
- package/dist/services/turn/schemas.mjs +1 -1
- package/dist/session-CZUrp7gC.mjs +69 -0
- package/dist/session-Dp7z5N1d.mjs +1 -0
- package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-C1M7-O3C.d.mts} +3 -3
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-BvRF22by.d.mts} +10 -10
- package/dist/{tool-approval-service-DEQiipxj.mjs → tool-approval-service-BIbUSuqg.mjs} +1 -1
- package/dist/tools-Yz8XyiwA.mjs +1 -0
- package/dist/{transition-DnXibkhX.d.mts → transition-DYorNHZu.d.mts} +1 -1
- package/dist/{types-Dur8EtpR.d.mts → types-9XCB1aPK.d.mts} +562 -107
- package/dist/{types-BMS6yfLS.d.mts → types-BNW5n6qm.d.mts} +1 -1
- package/dist/{types-BslClRkH.d.mts → types-BWduCvRU.d.mts} +22 -1
- package/dist/{types-Cse8s_cD.d.mts → types-N_BOtTqt.d.mts} +29 -18
- package/dist/ui-components/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{workflow-BqH6ar-D.mjs → workflow-C1z7I5CI.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +45 -45
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/dist/adapter-DaQqmKOJ.mjs +0 -1
- package/dist/client-BcfR-LJC.mjs +0 -1
- package/dist/handlers-BAycjV02.mjs +0 -41
- package/dist/namespace-C-piH3w4.mjs +0 -1
- package/dist/orchestrator-shared-Cxk3x8Vs.mjs +0 -1
- package/dist/package-B1AXe-oz.mjs +0 -1
- package/dist/schema-D6WAI8OL.mjs +0 -1
- package/dist/schemas-ArqQTC0Q.mjs +0 -1
- package/dist/schemas-uID59wR8.mjs +0 -1
- package/dist/session-0nWT4st6.mjs +0 -39
- package/dist/session-DH-ja8Ka.mjs +0 -1
- package/dist/tools-DFOsOboy.mjs +0 -1
|
@@ -90,8 +90,8 @@ declare const ActionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
90
90
|
editOf: z.ZodOptional<z.ZodString>;
|
|
91
91
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
92
92
|
text: "text";
|
|
93
|
-
voice: "voice";
|
|
94
93
|
compact: "compact";
|
|
94
|
+
voice: "voice";
|
|
95
95
|
}>>;
|
|
96
96
|
}, z.core.$strip>>;
|
|
97
97
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as LogImportMode, t as LogImporterInfo } from "./index-
|
|
1
|
+
import { r as LogImportMode, t as LogImporterInfo } from "./index-D7rWAEY0.mjs";
|
|
2
2
|
import * as _$_makaio_bus_core0 from "@makaio/framework/bus";
|
|
3
3
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
4
4
|
import { LogImportOrchestrator, LogImporter } from "@makaio/framework/adapters";
|
|
@@ -84,6 +84,7 @@ declare class LogImportRegistry implements CapabilityProviderRegistrar {
|
|
|
84
84
|
* - scan: Scan log directory for sessions (generic handler)
|
|
85
85
|
* - uploadFiles: Process uploaded files (generic handler)
|
|
86
86
|
* - importSession: Lazy-load pick-up for discovered sessions
|
|
87
|
+
* - importFile: File-path-addressable import trigger (graceful-absence contract)
|
|
87
88
|
* - capability register: Auto-register adapters that publish log-import capabilities
|
|
88
89
|
*
|
|
89
90
|
* Must be called before using the registry.
|
|
@@ -254,6 +255,26 @@ interface LogImporterRegistration {
|
|
|
254
255
|
* Defaults to true.
|
|
255
256
|
*/
|
|
256
257
|
supportsManualImport?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Stable client application id (e.g., `'claude-code'`) whose native hooks
|
|
260
|
+
* observe the sessions this importer ingests.
|
|
261
|
+
*
|
|
262
|
+
* Enables client-agnostic framework components to resolve the importer for
|
|
263
|
+
* a `client.session.*` event without hard-coding importer names. Any string
|
|
264
|
+
* is valid — framework logic never hard-codes specific client ids.
|
|
265
|
+
*/
|
|
266
|
+
clientId?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Machine identifier of the machine that owns the sessions this importer
|
|
269
|
+
* discovers and imports. Always caller-supplied by product code at
|
|
270
|
+
* registration time; never derived inside framework import handlers.
|
|
271
|
+
*
|
|
272
|
+
* When present, it is stamped on every `storage:session.importUpsert`
|
|
273
|
+
* payload emitted by the scan and full-import paths for this registration.
|
|
274
|
+
* Pass `undefined` (or omit the field) to leave the stored `machineId`
|
|
275
|
+
* untouched; pass `null` to explicitly store NULL.
|
|
276
|
+
*/
|
|
277
|
+
machineId?: string | null;
|
|
257
278
|
/**
|
|
258
279
|
* Factory for creating orchestrators for this importer.
|
|
259
280
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ExtractSubjectPayload, ExtractSubjectResponse, HandlerForSubjectDefinition, ScopedSubjectDefinition, SubjectRecord } from "@makaio/framework/core";
|
|
3
3
|
import { IFilteredBus, IMakaioBus, OnOptions, ScopedBus } from "@makaio/framework/bus";
|
|
4
|
-
import { AIModel, AIReasoningLevel, AIReasoningLevel as AIReasoningLevel$1, AgentSchemas, AgentSubjects, CacheStrategy, JsonValue, McpRuntimeSessionContext, McpSessionContext, McpToolState, Message, MessageBlock, MessageDeliveryMode, MessageDeliveryMode as MessageDeliveryMode$1, MessageInput, MessageOutcome, ProviderContext, ReasoningLevelMap as ReasoningLevelMap$1, ResponseSchemaDescriptor, SendMessageResultInnerResult, SessionContext, StructuredOutputValidation, SystemPrompt, ToolListItem } from "@makaio/framework/contracts";
|
|
4
|
+
import { AIModel, AIReasoningLevel, AIReasoningLevel as AIReasoningLevel$1, AgentSchemas, AgentSubjects, CacheStrategy, JsonValue, McpRuntimeSessionContext, McpSessionContext, McpToolState, Message, MessageBlock, MessageDeliveryMode, MessageDeliveryMode as MessageDeliveryMode$1, MessageInput, MessageOutcome, NativeForkDirective, ProviderContext, ReasoningLevelMap as ReasoningLevelMap$1, ResponseSchemaDescriptor, SendMessageResultInnerResult, SessionContext, StructuredOutputValidation, SystemPrompt, ToolListItem } from "@makaio/framework/contracts";
|
|
5
5
|
import { DeferredPromise, TimeoutConfig, TrackedTimeoutConfig } from "@makaio/framework/utils";
|
|
6
6
|
import { SetRequired } from "type-fest";
|
|
7
7
|
|
|
@@ -563,33 +563,26 @@ declare abstract class AIAgentConnector<TBus extends ScopedBus<string> = ScopedB
|
|
|
563
563
|
* @returns Session ID from provider
|
|
564
564
|
*/
|
|
565
565
|
abstract getAdapterSessionId(): Promise<string>;
|
|
566
|
+
/**
|
|
567
|
+
* Provider-confirmed adapter session ID, or `undefined` when unconfirmed.
|
|
568
|
+
* Default returns `this.adapterSessionId`; Claude connectors override to
|
|
569
|
+
* defer until `system.init` confirms the provider-side session.
|
|
570
|
+
* @returns Confirmed ID or `undefined`
|
|
571
|
+
*/
|
|
572
|
+
getConfirmedAdapterSessionId(): string | undefined;
|
|
566
573
|
/**
|
|
567
574
|
* Complete the agent session by waiting for all messages to finish.
|
|
568
575
|
* @returns Last message result or null if no messages processed
|
|
569
576
|
*/
|
|
570
577
|
abstract complete(): Promise<MessageResult | null>;
|
|
571
578
|
/**
|
|
572
|
-
* Create a MessageHandle with standard initialization.
|
|
573
|
-
*
|
|
574
|
-
* Centralizes the pattern used by all connectors:
|
|
575
|
-
* 1. Generate messageId (use provided or generate UUID)
|
|
576
|
-
* 2. Create MessageHandle instance
|
|
577
|
-
* 3. Set adapterSessionId
|
|
578
|
-
* 4. Call onMessageSent callback
|
|
579
|
+
* Create a MessageHandle with standard initialization (messageId, adapterSessionId, onMessageSent).
|
|
579
580
|
* @param message - Normalized user message
|
|
580
581
|
* @param options - Optional message options (id, delivery mode, history, and turn context)
|
|
581
|
-
* @returns Initialized MessageHandle
|
|
582
|
+
* @returns Initialized MessageHandle instance
|
|
582
583
|
*/
|
|
583
584
|
protected createMessageHandle(message: NormalizedMessageInput, options?: MessageHandleOptions): MessageHandle;
|
|
584
|
-
/**
|
|
585
|
-
* Signal that MCP tools have changed and should be refreshed at the next turn boundary.
|
|
586
|
-
*
|
|
587
|
-
* Called by the AIAgent layer when receiving MCP bus events (`mcp.tools.updated`,
|
|
588
|
-
* `mcp.tools.enabled`). Connectors that support direct-inject tool refresh (e.g.,
|
|
589
|
-
* `BaseStreamConnector`) override this to set an internal pending-refresh flag.
|
|
590
|
-
* The default implementation is a no-op so connectors that do not manage MCP tools
|
|
591
|
-
* directly are unaffected.
|
|
592
|
-
*/
|
|
585
|
+
/** Signal MCP tools changed; connectors with direct-inject refresh override this. */
|
|
593
586
|
markToolRefreshPending(): void;
|
|
594
587
|
/**
|
|
595
588
|
* Stage the canonical orchestrator-assigned turn number for consumption by the next
|
|
@@ -909,6 +902,12 @@ interface BaseAgentConnectorConfig<TBus extends ScopedBus<string> = ScopedBus<st
|
|
|
909
902
|
supportedReasoningLevels?: ReasoningLevelMap$1;
|
|
910
903
|
/** Previous adapter session ID for resume attempts. */
|
|
911
904
|
resumeAdapterSessionId?: string;
|
|
905
|
+
/**
|
|
906
|
+
* Provider-native fork directive approved by session orchestration.
|
|
907
|
+
* When present, native-fork capable connectors should branch from the source
|
|
908
|
+
* provider session instead of starting fresh with replayed history.
|
|
909
|
+
*/
|
|
910
|
+
nativeFork?: NativeForkDirective;
|
|
912
911
|
/** Resolved harness ID for tool policy lookup. */
|
|
913
912
|
harnessId?: string;
|
|
914
913
|
/** Client identifier for the application this adapter belongs to (e.g., 'claude-code', 'gemini'). */
|
|
@@ -1001,6 +1000,18 @@ interface AIAgentConfig<TBus extends ScopedBus<string> = ScopedBus<string>, TCon
|
|
|
1001
1000
|
* are not needed and would be actively harmful.
|
|
1002
1001
|
*/
|
|
1003
1002
|
ephemeral?: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* Native fork directive from the orchestrator.
|
|
1005
|
+
*
|
|
1006
|
+
* When present, the adapter should use the provider's branching API
|
|
1007
|
+
* rather than replaying history into a fresh session.
|
|
1008
|
+
* Populated by AIAdapter.createAgent when the startAgent mode is 'fork'.
|
|
1009
|
+
*
|
|
1010
|
+
* AIAgent forwards this through config-factory input so standardized adapter
|
|
1011
|
+
* config factories can carry it into connector config. Adapter code must not
|
|
1012
|
+
* derive this from raw fork-mode request fields.
|
|
1013
|
+
*/
|
|
1014
|
+
nativeFork?: NativeForkDirective;
|
|
1004
1015
|
/**
|
|
1005
1016
|
* Config factory - transforms partial input into full adapter-specific config.
|
|
1006
1017
|
* This is the seam where adapters inject their defaults (especially model).
|