@nextclaw/kernel 0.19.1 → 0.19.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as ContextCompactionTrigger, i as ContextCompactionPreflightService, n as ContextCompactionPreflightBeginResult, o as CompactionSummaryProvider, r as ContextCompactionPreflightResult, t as CompactionProfileResolver } from "./context-compaction-preflight.service-ClJEGWKS.js";
2
2
  import { _ as readContextCompactionCheckpoint, a as CONTEXT_COMPACTION_SYSTEM_PREAMBLE, b as shouldRefreshContextWindowDuringStream, c as ContextCompactionTimelineCheckpoint, d as buildContextCompactionTimelineNcpMessage, f as createContextCompactionMessageId, g as isContextWindowSnapshot, h as isContextCompactionTimelineMessage, i as CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, l as NEXTCLAW_TIMELINE_KIND_METADATA_KEY, m as isContextCompactionProjectionMessage, n as CONTEXT_COMPACTION_PART_START, o as CONTEXT_COMPACTION_TIMELINE_KIND, p as createContextWindowSignature, r as CONTEXT_COMPACTION_PROJECTION_KIND, s as ContextCompactionModelProjection, t as CONTEXT_COMPACTION_CONTINUATION_TEXT, u as buildContextCompactionModelProjection, v as readContextWindowEventSessionId, x as shouldRefreshContextWindowImmediately, y as readLatestContextCompactionCheckpoint } from "./context-compaction.utils-Csf80mdq.js";
3
- import { $ as CreateProjectInput, A as ProjectRecentArtifact, At as PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS, B as ProjectWorkItemListEntry, C as ProjectAgreementMaterial, Ct as AgentManager, D as CreateProjectWorkStateInput, Dt as ConfigManagerOptions, E as CreateProjectWorkItemInput, Et as ConfigManager, F as ProjectWorkActor, Ft as LlmProviderRuntime, G as ProjectWorkSummary, H as ProjectWorkListInput, I as ProjectWorkArtifactLink, It as ProviderModelsDiscoverInput, J as ProjectError, K as UpdateProjectWorkItemInput, L as ProjectWorkAttention, Lt as ChannelManager, M as ProjectWorkActivity, Mt as ProviderModelCatalogManager, N as ProjectWorkActivityPage, Nt as ProviderModelCatalogSnapshot, O as PROJECT_WORK_ATTENTION_VALUES, Ot as ConfigManagerRuntimeHooks, P as ProjectWorkActivityType, Pt as LlmProviderManager, Q as isProjectError, R as ProjectWorkItem, S as ProjectMaterialService, St as ContextProviderManager, T as ProjectWorkManager, Tt as ResolvedAgentProfile, U as ProjectWorkState, V as ProjectWorkItemPage, W as ProjectWorkStateCategory, X as ProjectManager, Y as ProjectErrorCode, Z as ProjectManagerOptions, _ as SessionManager, _t as isSessionMessageCursorError, a as AgentRunClient, at as NcpAgentSessionJournalStore, b as ProjectWorkErrorCode, bt as ToolProviderManager, c as AgentRunReplyOptions, ct as SessionMessageCursorError, d as SessionRunManager, dt as SessionModelTokenUsage, et as PROJECT_TEMPLATE_IDS, f as SessionRunPendingRequest, ft as SessionSettingsError, g as ProductActivitySource, gt as SessionTokenUsageTotals, h as ProductActivitySink, ht as SessionTokenUsageSummary, i as UserQuestionResolution, it as ProjectTemplateId, j as ProjectRecentArtifactPage, jt as ProviderModelCatalogEntry, k as PROJECT_WORK_STATE_CATEGORIES, kt as ConfigMutationResult, l as AgentRunStreamOptions, lt as SessionMessagePage, m as ProductActivitySignal, mt as SessionTokenUsageStatus, n as UserQuestionManager, nt as ProjectSessionBinding, o as AgentRunExecution, ot as AgentRunSession, p as ProductActivityKind, pt as SessionSettingsPatch, q as UpdateProjectWorkStateInput, r as UserQuestionReplyResolution, rt as ProjectTemplate, s as AgentRunReply, st as CreateAgentRunSessionParams, t as UserQuestionError, tt as ProjectRecord, u as SessionRun, ut as SessionMetadataUpdate, v as SessionManagerOptions, vt as isSessionSettingsError, w as ProjectSkillMaterial, wt as AgentManagerOptions, x as isProjectWorkError, xt as ToolRunContext, y as ProjectWorkError, yt as AgentContextWindowManager, z as ProjectWorkItemDetail } from "./user-question.manager-BSpxlV5l.js";
3
+ import { $ as CreateProjectInput, A as ProjectRecentArtifact, At as PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS, B as ProjectWorkItemListEntry, C as ProjectAgreementMaterial, Ct as AgentManager, D as CreateProjectWorkStateInput, Dt as ConfigManagerOptions, E as CreateProjectWorkItemInput, Et as ConfigManager, F as ProjectWorkActor, Ft as LlmProviderRuntime, G as ProjectWorkSummary, H as ProjectWorkListInput, I as ProjectWorkArtifactLink, It as ProviderModelsDiscoverInput, J as ProjectError, K as UpdateProjectWorkItemInput, L as ProjectWorkAttention, Lt as ChannelManager, M as ProjectWorkActivity, Mt as ProviderModelCatalogManager, N as ProjectWorkActivityPage, Nt as ProviderModelCatalogSnapshot, O as PROJECT_WORK_ATTENTION_VALUES, Ot as ConfigManagerRuntimeHooks, P as ProjectWorkActivityType, Pt as LlmProviderManager, Q as isProjectError, R as ProjectWorkItem, S as ProjectMaterialService, St as ContextProviderManager, T as ProjectWorkManager, Tt as ResolvedAgentProfile, U as ProjectWorkState, V as ProjectWorkItemPage, W as ProjectWorkStateCategory, X as ProjectManager, Y as ProjectErrorCode, Z as ProjectManagerOptions, _ as SessionManager, _t as isSessionMessageCursorError, a as AgentRunClient, at as NcpAgentSessionJournalStore, b as ProjectWorkErrorCode, bt as ToolProviderManager, c as AgentRunReplyOptions, ct as SessionMessageCursorError, d as SessionRunManager, dt as SessionModelTokenUsage, et as PROJECT_TEMPLATE_IDS, f as SessionRunPendingRequest, ft as SessionSettingsError, g as ProductActivitySource, gt as SessionTokenUsageTotals, h as ProductActivitySink, ht as SessionTokenUsageSummary, i as UserQuestionResolution, it as ProjectTemplateId, j as ProjectRecentArtifactPage, jt as ProviderModelCatalogEntry, k as PROJECT_WORK_STATE_CATEGORIES, kt as ConfigMutationResult, l as AgentRunStreamOptions, lt as SessionMessagePage, m as ProductActivitySignal, mt as SessionTokenUsageStatus, n as UserQuestionManager, nt as ProjectSessionBinding, o as AgentRunExecution, ot as AgentRunSession, p as ProductActivityKind, pt as SessionSettingsPatch, q as UpdateProjectWorkStateInput, r as UserQuestionReplyResolution, rt as ProjectTemplate, s as AgentRunReply, st as CreateAgentRunSessionParams, t as UserQuestionError, tt as ProjectRecord, u as SessionRun, ut as SessionMetadataUpdate, v as SessionManagerOptions, vt as isSessionSettingsError, w as ProjectSkillMaterial, wt as AgentManagerOptions, x as isProjectWorkError, xt as ToolRunContext, y as ProjectWorkError, yt as AgentContextWindowManager, z as ProjectWorkItemDetail } from "./user-question.manager-38KBgZCg.js";
4
4
  import { a as ContextBlock$1, c as SessionQueuedInput, i as AgentRunSpec, l as SessionSteerQueuedInputResult, n as AgentRunContinueRequest, s as SessionPendingInput, t as AgentRunAccepted } from "./agent-run.types-CNVBBJnd.js";
5
5
  import { n as AgentRunContextCompactionManager } from "./agent-run-context-compaction.manager-BV6tB0wL.js";
6
6
  import { t as RequestContextTailManager } from "./request-context-tail.manager-DXC4rdAP.js";
@@ -11,6 +11,7 @@ import { AgentRunSendIngressPayload, AppEventEmitOptions, AppEventEnvelope, AppE
11
11
  import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
12
12
  import * as _$_nextclaw_core0 from "@nextclaw/core";
13
13
  import { BaseChannel, Config, CronService, DiagnosticRuntime, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMResponse, LLMResponse as LLMResponse$1, LLMStreamEvent, LLMStreamEvent as LLMStreamEvent$1, LocalExecutionClaimService, LocalizedTextMap, LocalizedTextMap as LocalizedTextMap$1, McpServerDefinition, McpServerDefinition as McpServerDefinition$1, MessageBus, ModelThinkingCapability, ProviderCatalogPlugin, ProviderCatalogPlugin as ProviderCatalogPlugin$1, ProviderSpec, ProviderSpec as ProviderSpec$1, RUNTIME_INSTANCE_DESKTOP_DATA_DIRECTORY_ENV, RUNTIME_INSTANCE_DESKTOP_LOGS_DIRECTORY_ENV, RUNTIME_INSTANCE_DISTRIBUTION_ENV, RUNTIME_INSTANCE_INSTALLATION_KIND_ENV, RUNTIME_INSTANCE_PORTABLE_DATA_ROOT_ENV, RequestSessionParams, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestSourceNotifier, SessionRequestToolResult, SessionSearchService, SkillFrontmatter, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, buildLocalizedTextMap, parseSkillFrontmatter, resolveThinkingLevel, stripSkillFrontmatter } from "@nextclaw/core";
14
+ import * as _$_nextclaw_ncp0 from "@nextclaw/ncp";
14
15
  import { NcpAgentRuntime, NcpEndpointEvent, NcpEndpointEvent as NcpEndpointEvent$1, NcpJsonValue, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpMessage as NcpMessage$1, NcpMessagePart, NcpResolvedInputDelivery, NcpRunHandle, NcpTool, NcpTool as NcpTool$1, OpenAIChatChunk, OpenAIChatMessage } from "@nextclaw/ncp";
15
16
  import { ChatTarget, NcpReplyInput, RuntimeFactoryParams } from "@nextclaw/ncp-toolkit";
16
17
  import * as _$_nextclaw_app_runtime0 from "@nextclaw/app-runtime";
@@ -2029,222 +2030,222 @@ type PortableRuntimeAcceptanceDefinition = {
2029
2030
  declare const PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT: readonly [{
2030
2031
  titleKey: string;
2031
2032
  descriptionKey: string;
2032
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2033
- scenarioVersion: string;
2034
2033
  id: "PRT-EXEC-001";
2035
2034
  checkerKey: string;
2036
2035
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2037
2036
  required: boolean;
2037
+ scenarioVersion: string;
2038
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2038
2039
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2039
2040
  }, {
2040
2041
  titleKey: string;
2041
2042
  descriptionKey: string;
2042
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2043
- scenarioVersion: string;
2044
2043
  id: "PRT-DATA-001";
2045
2044
  checkerKey: string;
2046
2045
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2047
2046
  required: boolean;
2047
+ scenarioVersion: string;
2048
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2048
2049
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2049
2050
  }, {
2050
2051
  titleKey: string;
2051
2052
  descriptionKey: string;
2052
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2053
- scenarioVersion: string;
2054
2053
  id: "PRT-FILE-001";
2055
2054
  checkerKey: string;
2056
2055
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2057
2056
  required: boolean;
2057
+ scenarioVersion: string;
2058
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2058
2059
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2059
2060
  }, {
2060
2061
  titleKey: string;
2061
2062
  descriptionKey: string;
2062
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2063
- scenarioVersion: string;
2064
2063
  id: "PRT-NET-001";
2065
2064
  checkerKey: string;
2066
2065
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2067
2066
  required: boolean;
2067
+ scenarioVersion: string;
2068
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2068
2069
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2069
2070
  }, {
2070
2071
  titleKey: string;
2071
2072
  descriptionKey: string;
2072
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2073
- scenarioVersion: string;
2074
2073
  id: "PRT-SECRET-001";
2075
2074
  checkerKey: string;
2076
2075
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2077
2076
  required: boolean;
2077
+ scenarioVersion: string;
2078
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2078
2079
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2079
2080
  }, {
2080
2081
  titleKey: string;
2081
2082
  descriptionKey: string;
2082
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2083
- scenarioVersion: string;
2084
2083
  id: "PRT-RES-001";
2085
2084
  checkerKey: string;
2086
2085
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2087
2086
  required: boolean;
2087
+ scenarioVersion: string;
2088
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2088
2089
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2089
2090
  }, {
2090
2091
  titleKey: string;
2091
2092
  descriptionKey: string;
2092
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2093
- scenarioVersion: string;
2094
2093
  id: "PRT-EVENT-001";
2095
2094
  checkerKey: string;
2096
2095
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2097
2096
  required: boolean;
2097
+ scenarioVersion: string;
2098
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2098
2099
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2099
2100
  }, {
2100
2101
  titleKey: string;
2101
2102
  descriptionKey: string;
2102
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2103
- scenarioVersion: string;
2104
2103
  id: "PRT-TASK-001";
2105
2104
  checkerKey: string;
2106
2105
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2107
2106
  required: boolean;
2107
+ scenarioVersion: string;
2108
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2108
2109
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2109
2110
  }, {
2110
2111
  titleKey: string;
2111
2112
  descriptionKey: string;
2112
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2113
- scenarioVersion: string;
2114
2113
  id: "PRT-STREAM-001";
2115
2114
  checkerKey: string;
2116
2115
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2117
2116
  required: boolean;
2117
+ scenarioVersion: string;
2118
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2118
2119
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2119
2120
  }, {
2120
2121
  titleKey: string;
2121
2122
  descriptionKey: string;
2122
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2123
- scenarioVersion: string;
2124
2123
  id: "PRT-AGENT-001";
2125
2124
  checkerKey: string;
2126
2125
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2127
2126
  required: boolean;
2127
+ scenarioVersion: string;
2128
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2128
2129
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2129
2130
  }, {
2130
2131
  titleKey: string;
2131
2132
  descriptionKey: string;
2132
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2133
- scenarioVersion: string;
2134
2133
  id: "PRT-AI-001";
2135
2134
  checkerKey: string;
2136
2135
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2137
2136
  required: boolean;
2137
+ scenarioVersion: string;
2138
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2138
2139
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2139
2140
  }, {
2140
2141
  titleKey: string;
2141
2142
  descriptionKey: string;
2142
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2143
- scenarioVersion: string;
2144
2143
  id: "PRT-COMP-001";
2145
2144
  checkerKey: string;
2146
2145
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2147
2146
  required: boolean;
2147
+ scenarioVersion: string;
2148
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2148
2149
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2149
2150
  }, {
2150
2151
  titleKey: string;
2151
2152
  descriptionKey: string;
2152
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2153
- scenarioVersion: string;
2154
2153
  id: "PRT-ENTRY-001";
2155
2154
  checkerKey: string;
2156
2155
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2157
2156
  required: boolean;
2157
+ scenarioVersion: string;
2158
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2158
2159
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2159
2160
  }, {
2160
2161
  titleKey: string;
2161
2162
  descriptionKey: string;
2162
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2163
- scenarioVersion: string;
2164
2163
  id: "PRT-LIFE-001";
2165
2164
  checkerKey: string;
2166
2165
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2167
2166
  required: boolean;
2167
+ scenarioVersion: string;
2168
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2168
2169
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2169
2170
  }, {
2170
2171
  titleKey: string;
2171
2172
  descriptionKey: string;
2172
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2173
- scenarioVersion: string;
2174
2173
  id: "PRT-BOUND-001";
2175
2174
  checkerKey: string;
2176
2175
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2177
2176
  required: boolean;
2177
+ scenarioVersion: string;
2178
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2178
2179
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2179
2180
  }, {
2180
2181
  titleKey: string;
2181
2182
  descriptionKey: string;
2182
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2183
- scenarioVersion: string;
2184
2183
  id: "PRT-PERF-001";
2185
2184
  checkerKey: string;
2186
2185
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2187
2186
  required: boolean;
2187
+ scenarioVersion: string;
2188
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2188
2189
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2189
2190
  }, {
2190
2191
  titleKey: string;
2191
2192
  descriptionKey: string;
2192
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2193
- scenarioVersion: string;
2194
2193
  id: "PRT-DX-001";
2195
2194
  checkerKey: string;
2196
2195
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2197
2196
  required: boolean;
2197
+ scenarioVersion: string;
2198
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2198
2199
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2199
2200
  }, {
2200
2201
  titleKey: string;
2201
2202
  descriptionKey: string;
2202
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2203
- scenarioVersion: string;
2204
2203
  id: "PRT-DIST-001";
2205
2204
  checkerKey: string;
2206
2205
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2207
2206
  required: boolean;
2207
+ scenarioVersion: string;
2208
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2208
2209
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2209
2210
  }, {
2210
2211
  titleKey: string;
2211
2212
  descriptionKey: string;
2212
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2213
- scenarioVersion: string;
2214
2213
  id: "PRT-EVID-001";
2215
2214
  checkerKey: string;
2216
2215
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2217
2216
  required: boolean;
2217
+ scenarioVersion: string;
2218
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2218
2219
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2219
2220
  }, {
2220
2221
  titleKey: string;
2221
2222
  descriptionKey: string;
2222
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2223
- scenarioVersion: string;
2224
2223
  id: "PRT-REF-001";
2225
2224
  checkerKey: string;
2226
2225
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2227
2226
  required: boolean;
2227
+ scenarioVersion: string;
2228
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2228
2229
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2229
2230
  }, {
2230
2231
  titleKey: string;
2231
2232
  descriptionKey: string;
2232
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2233
- scenarioVersion: string;
2234
2233
  id: "PRT-DOCS-001";
2235
2234
  checkerKey: string;
2236
2235
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2237
2236
  required: boolean;
2237
+ scenarioVersion: string;
2238
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2238
2239
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2239
2240
  }, {
2240
2241
  titleKey: string;
2241
2242
  descriptionKey: string;
2242
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2243
- scenarioVersion: string;
2244
2243
  id: "PRT-REL-001";
2245
2244
  checkerKey: string;
2246
2245
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2247
2246
  required: boolean;
2247
+ scenarioVersion: string;
2248
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2248
2249
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2249
2250
  }];
2250
2251
  type PortableRuntimeAcceptanceId = (typeof PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT)[number]["id"];
@@ -2813,6 +2814,13 @@ declare class ServiceAppJobJournalService {
2813
2814
  }
2814
2815
  //#endregion
2815
2816
  //#region src/types/portable-service-app-runtime.types.d.ts
2817
+ type PortableRuntimeState = {
2818
+ status: ServiceAppRuntimeStatus;
2819
+ lastError?: string;
2820
+ lastStartedAt?: string;
2821
+ lastReadyAt?: string;
2822
+ lastFailedAt?: string;
2823
+ };
2816
2824
  type PortableServiceAppHostCall = {
2817
2825
  app: ServiceAppRecord;
2818
2826
  manifest: ServiceAppManifest;
@@ -2982,13 +2990,7 @@ declare class ServiceAppRuntimeService {
2982
2990
  portableServiceRunnerPath?: string;
2983
2991
  residentInbox?: ServiceAppResidentEventInboxService;
2984
2992
  });
2985
- getStatus: (appId: string) => {
2986
- status: ServiceAppRuntimeStatus;
2987
- lastError?: string;
2988
- lastStartedAt?: string;
2989
- lastReadyAt?: string;
2990
- lastFailedAt?: string;
2991
- };
2993
+ getStatus: (appId: string) => PortableRuntimeState;
2992
2994
  getLastObservation: () => PortableRunnerObservation | undefined;
2993
2995
  /** One kernel-owned callback path for Guest host calls; MCP never receives it. */
2994
2996
  setPortableHostCallHandler: (handler: PortableServiceAppHostCallHandler | undefined) => void;
@@ -3648,6 +3650,36 @@ declare class NextclawKernel {
3648
3650
  dispose: () => Promise<void>;
3649
3651
  }
3650
3652
  //#endregion
3653
+ //#region src/stores/session-journal-maintenance.store.d.ts
3654
+ type SessionJournalCompactionResult = {
3655
+ sessionId: string;
3656
+ applied: boolean;
3657
+ inputBytes: number;
3658
+ outputBytes: number;
3659
+ inputLines: number;
3660
+ outputLines: number;
3661
+ };
3662
+ /** Refuse to append after a partial write: another JSONL entry would hide the torn tail. */
3663
+ declare function assertSessionJournalTailComplete(source: string): Promise<void>;
3664
+ /** Runs before the catalog opens. An interrupted switch always rolls back to the untouched backup. */
3665
+ declare function recoverSessionJournalMaintenance(journalDir: string): Promise<void>;
3666
+ /** Restores the original v1 journal after a successful offline compaction. All writers must be stopped. */
3667
+ declare function restoreSessionJournalBackup(input: {
3668
+ journalDir: string;
3669
+ sessionId: string;
3670
+ writersStopped?: true;
3671
+ }): Promise<{
3672
+ sessionId: string;
3673
+ restored: true;
3674
+ }>;
3675
+ /** Explicit offline operation. The caller must stop every writer for this HOME before apply. */
3676
+ declare function compactSessionJournal(input: {
3677
+ journalDir: string;
3678
+ sessionId: string;
3679
+ apply: boolean;
3680
+ writersStopped?: true;
3681
+ }): Promise<SessionJournalCompactionResult>;
3682
+ //#endregion
3651
3683
  //#region src/contributions/learning-loop/config.d.ts
3652
3684
  type LearningLoopRuntimeConfig = {
3653
3685
  enabled: boolean;
@@ -4009,6 +4041,7 @@ interface INextclawHarness {
4009
4041
  readonly contributions: INextclawContributionRegistry;
4010
4042
  start(): Promise<void>;
4011
4043
  runTask(input: NextclawTaskInput): Promise<NextclawTaskResult>;
4044
+ listSessionMessages(sessionId: string): Promise<NcpMessage$1[]>;
4012
4045
  listUserQuestions(sessionId: string): Promise<NextclawUserQuestion[]>;
4013
4046
  answerUserQuestion(input: {
4014
4047
  sessionId: string;
@@ -4036,6 +4069,7 @@ declare class NextclawHarness implements INextclawHarness {
4036
4069
  constructor(options?: NextclawHarnessOptions);
4037
4070
  start: () => Promise<void>;
4038
4071
  runTask: (input: NextclawTaskInput) => Promise<NextclawTaskResult>;
4072
+ listSessionMessages: (sessionId: string) => Promise<_$_nextclaw_ncp0.NcpMessage[]>;
4039
4073
  listUserQuestions: (sessionId: string) => Promise<NextclawUserQuestion[]>;
4040
4074
  answerUserQuestion: (input: {
4041
4075
  sessionId: string;
@@ -4301,5 +4335,5 @@ declare function resolveLegacyEventType(message: SessionMessage): string;
4301
4335
  declare function getUiContentParamsBootstrapScript(): string;
4302
4336
  declare function injectUiContentParamsBootstrap(html: string): string;
4303
4337
  //#endregion
4304
- export { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, AccessLoginResult, AccessManager, AccessManagerOptions, AccessPasswordStatus, AccessPrincipal, AccessRole, AccessSessionRecord, AccessSessionState, AgentManager, AgentManagerOptions, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, type AgentRuntimeEntry, type AgentRuntimeProviderRegistration, AgentRuntimeSessionRequestDispatcherOptions, type AgentRuntimeSessionTypeCatalog, type AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, type AgentRuntimeSessionTypeOption, AgentRuntimeSessionTypeProvider, AgentServiceActionCaller, AppDataDeleteResult, AppDataDiagnostic, AppDataEntry, AppDataError, AppDataErrorCode, AppDataLifecycle, AppDataList, AppDataManager, AppDataSource, type AppDocumentGrantMutationResult, type AppEventEmitOptions, type AppEventEnvelope, type AppEventHandler, type AppEventKey, type AppInstalledPermissionState, AppPackageComponentKind, AppPackageComponentSource, AppPackageComponentSourceList, AppPackageComponentView, AppPackageConflict, AppPackageDependencyBinding, AppPackageDependencyBindingInput, AppPackageDependencyCandidate, AppPackageDependencyCycle, AppPackageDependencyDiagnostic, AppPackageDependencyDiagnosticCode, AppPackageDependencyView, AppPackageError, AppPackageErrorCode, AppPackageHostTarget, AppPackageList, AppPackageManager, AppPackageOperationAction, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationResult, AppPackageOperationStatus, AppPackageOperationView, AppPackageReadiness, AppPackageReadinessRequirement, AppPackageReadinessStatus, AppPackageRuntimeHooks, AppPackageSecretReadiness, AppPackageSecretSlotView, AppPackageSecretStatus, AppPackageUnavailableDiagnostic, AppPackageUninstallRollback, AppPackageView, type AssetApi, AutomationManager, AutomationManagerOptions, BindContextInput, type BuildAgentRunSendPayloadParams, BuildContextTailInput, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_CONTINUATION_TEXT, CONTEXT_COMPACTION_PART_START, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_SYSTEM_PREAMBLE, CONTEXT_COMPACTION_TIMELINE_KIND, CapabilityGrant, CapabilityGrantDecision, CapabilityGrantFilter, CapabilityGrantLegacyMigrationService, CapabilityGrantListener, CapabilityGrantManager, CapabilityGrantRequest, CapabilityGrantResource, CapabilityGrantRevocationListener, CapabilityGrantStore, CapabilityGrantSubject, CapabilityProviderView, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, CompactionProfileResolver, CompactionSummaryProvider, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextBinding, type ContextBlock, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, type ContextProvider, type ContextProviderRequest, Contribution, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, CreateProjectWorkItemInput, CreateProjectWorkStateInput, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DEFAULT_SERVICE_ACTION_RISK, DESKTOP_HOST_ACCESS, DESKTOP_HOST_PROTOCOL_VERSION, DesktopApplicationTarget, DesktopCapabilityError, DesktopCapabilityErrorCode, DesktopHost, DesktopHostAccess, DesktopHostCaller, DesktopHostCapabilityDeclaration, DesktopHostCapabilityManager, DesktopHostEvent, DesktopHostEventListener, DesktopHostManifest, DesktopHostMethod, DesktopHostRequest, DesktopHostResponse, DesktopHostStatus, DesktopNodeReplService, DesktopSessionCaller, DesktopSessionStateService, DesktopSnapshotOptions, DirectPromptDispatchExecution, DirectPromptDispatchParams, DirectPromptDispatchResult, type Disposer, EventAdmissionPolicy, EventBus, type EventBusOptions, EventDelivery, EventSubscription, EventSubscriptionBudget, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, type ExtensionRuntimeStatus, FeatureControlsService, GatewayInboundLoopRuntime, GatewayInboundProcessor, type IContextRegistry, type IKernel, type IMcpRegistry, type IModelRegistry, type INextclawAgent, type INextclawAgentRegistry, type INextclawAgentSessions, type INextclawContributionRegistry, type INextclawHarness, type INextclawRun, type INextclawSession, type INextclawSessionRegistry, type IRuntimeRegistry, type IToolRegistry, InboxDeliveryError, InboxDeliveryErrorCode, InboxDeliveryManager, InboxDeliveryManagerOptions, Ingress, type IngressContext, type IngressEnvelope, type IngressHandler, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, JsonPointer, JsonValue, type Key, type LLMResponse, type LLMStreamEvent, type LearningLoopRuntimeConfig, type LeasedResidentEvent, LegacyVerificationRecord, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, type LocalizedTextMap, MAX_INBOX_DELIVERY_CONTENT_LENGTH, type McpCatalogFilter, McpManager, type McpServerDefinition, type McpServerRecord, McpServiceAppRuntimeService, type McpToolCallInput, type McpToolCatalogEntry, type ModelChatInput, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, type NcpEndpointEvent, type NcpMessage, type NcpTool, type NextclawAgentDefinition, type NextclawContributionDescriptor, NextclawHarness, NextclawHarnessError, type NextclawHarnessErrorCode, type NextclawHarnessOptions, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextResolveParams, type NextclawRunStatus, type NextclawSessionCreateInput, type NextclawSessionRunInput, type NextclawTaskInput, type NextclawTaskResult, type NextclawUserQuestion, type NextclawUserQuestionReply, ObservationCapabilityDescriptor, ObservationContextTail, ObservationEvent, ObservationEventAdmissionDecision, ObservationExtensionRuntime, ObservationManager, ObservationManagerOptions, ObservationRef, ObservationRelationshipStatus, ObservationState, ObservationTarget, PANEL_APP_AGENT_CAPABILITIES, PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT, PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT_FINGERPRINT, PORTABLE_RUNTIME_ACCEPTANCE_LOCALES, PORTABLE_RUNTIME_ACCEPTANCE_PLATFORMS, PORTABLE_RUNTIME_ACCEPTANCE_PRESENTATION, PORTABLE_RUNTIME_ACCEPTANCE_REFERENCE_APP_ID, PROJECT_TEMPLATE_IDS, PROJECT_WORK_ATTENTION_VALUES, PROJECT_WORK_STATE_CATEGORIES, PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS, PanelAppAgentCapability, PanelAppAgentGenerateObjectInput, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentRunClient, PanelAppAgentSendPayload, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppAssetTokenService, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppCapabilityGrantCaller, PanelAppClientGrant, PanelAppContent, PanelAppDeleteResult, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, PanelServiceActionCaller, PlannedRestartRecovery, PlannedRestartRecoveryManager, PlannedRestartRecoveryResult, PlannedRestartRecoveryTicket, type PortableRunnerObservation, type PortableRuntimeAcceptanceContractView, PortableRuntimeAcceptanceDefinition, type PortableRuntimeAcceptanceDefinitionView, type PortableRuntimeAcceptanceEvaluationContext, type PortableRuntimeAcceptanceEvidence, type PortableRuntimeAcceptanceEvidenceArtifact, PortableRuntimeAcceptanceEvidenceSource, PortableRuntimeAcceptanceId, type PortableRuntimeAcceptanceIdentity, type PortableRuntimeAcceptanceIdentityResult, PortableRuntimeAcceptanceIdentityService, type PortableRuntimeAcceptanceLocale, PortableRuntimeAcceptanceManager, PortableRuntimeAcceptancePlatform, type PortableRuntimeAcceptancePresentation, type PortableRuntimeAcceptanceResult, type PortableRuntimeAcceptanceResultStatus, type PortableRuntimeAcceptanceStatusEntry, type PortableRuntimeAcceptanceStatusView, type PortableRuntimeAcceptanceSurfaceResult, type PortableRuntimeAcceptanceUnavailableIdentity, PreferenceEntry, PreferenceError, PreferenceErrorCode, PreferenceJsonValue, PreferenceManager, PreferenceManagerOptions, ProductActivityKind, ProductActivitySignal, ProductActivitySink, ProductActivitySource, type ProductFeatureControls, ProjectAgreementMaterial, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectMaterialService, ProjectRecentArtifact, ProjectRecentArtifactPage, ProjectRecord, ProjectSessionBinding, ProjectSkillMaterial, ProjectTemplate, ProjectTemplateId, ProjectWorkActivity, ProjectWorkActivityPage, ProjectWorkActivityType, ProjectWorkActor, ProjectWorkArtifactLink, ProjectWorkAttention, ProjectWorkError, ProjectWorkErrorCode, ProjectWorkItem, ProjectWorkItemDetail, ProjectWorkItemListEntry, ProjectWorkItemPage, ProjectWorkListInput, ProjectWorkManager, ProjectWorkState, ProjectWorkStateCategory, ProjectWorkSummary, type ProviderCatalogPlugin, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, type ProviderSpec, RUNTIME_INSTANCE_DESKTOP_DATA_DIRECTORY_ENV, RUNTIME_INSTANCE_DESKTOP_LOGS_DIRECTORY_ENV, RUNTIME_INSTANCE_DISTRIBUTION_ENV, RUNTIME_INSTANCE_INSTALLATION_KIND_ENV, RUNTIME_INSTANCE_PORTABLE_DATA_ROOT_ENV, type ResidentEventInput, ResolveRuntimeInstanceSnapshotParams, ResolvedAgentProfile, ResolvedDesktopApplicationTarget, RuntimeDistribution, RuntimeInstallationKind, RuntimeInstanceSnapshot, SERVICE_APP_MANIFEST_FILE_NAME, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvocationFacts, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppAgentCapabilitySlot, ServiceAppAiCapabilityService, ServiceAppCapabilityProvision, ServiceAppCapabilityRequirement, ServiceAppDeleteResult, ServiceAppError, type ServiceAppErrorCode, ServiceAppExternalRemediation, ServiceAppJobCaller, ServiceAppJobChunkEvent, ServiceAppJobEvent, type ServiceAppJobEventSink, ServiceAppJobJournalService, ServiceAppJobList, ServiceAppJobProgressEvent, type ServiceAppJobScope, ServiceAppJobStatus, ServiceAppJobTerminalEvent, ServiceAppJobView, ServiceAppJobWatch, ServiceAppLifecycle, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppModelCapabilitySlot, ServiceAppProtocol, ServiceAppProvides, ServiceAppRecord, ServiceAppRequirements, ServiceAppResidentEventDisposition, ServiceAppResidentEventInboxService, ServiceAppResidentEventList, type ServiceAppResidentEventScope, ServiceAppResidentEventStatus, ServiceAppResidentEventView, ServiceAppResourceRequirement, ServiceAppRuntimeService, ServiceAppRuntimeStatus, ServiceAppTerminalJobStatus, ServiceAppWitContract, SessionContextCompactionError, SessionContextCompactionErrorCode, SessionContextCompactionManager, SessionContextCompactionResult, SessionManager, SessionManagerOptions, SessionMessageCursorError, SessionMessagePage, SessionMetadataUpdate, SessionModelTokenUsage, type SessionPendingInput, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, type SessionSteerQueuedInputResult, SessionTokenUsageStatus, SessionTokenUsageSummary, SessionTokenUsageTotals, type SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, SubscribeEventsInput, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, type TypedKey, TypedPredicate, USER_QUESTION_EXTENSION_TYPE, UnavailableDesktopHost, UnsignedUpdateManifest, type Unsubscribe, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateProjectWorkItemInput, UpdateProjectWorkStateInput, UpdateSnapshot, UpdateStatus, UserQuestionError, UserQuestionManager, UserQuestionPrompt, UserQuestionReplyResolution, UserQuestionResolution, UserQuestionView, VerificationEvidenceRecord, VerificationRecord, VerificationRecordEntrySurface, VerificationRecordError, VerificationRecordInput, VerificationRecordList, VerificationRecordObservation, VerificationRecordRole, VerificationRecordService, VerificationRecordStatus, type WorkspaceServiceDataOwner, assertObservationJsonValue, assertObservationPredicate, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildObservationEventModelMessage, buildServiceActionId, buildSessionRequestCompletionMessage, capabilityGrantCovers, createAgentRuntimeSessionRequestDispatcher, createAgentRuntimeSessionRequestSourceNotifier, createAssetTools, createCapabilityDeclarationFingerprint, createContextCompactionMessageId, createContextWindowSignature, createCronJobSystemObjectProvider, createDesktopHostError, createInboxDeliverySystemObjectProvider, createLlmUsageRecord, createPanelAppAgentGrantRequest, createPanelAppClientGrantRequest, createServiceActionGrantRequest, createServiceAppAgentSlotGrantRequest, createServiceAppModelSlotGrantRequest, createTypedKey, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, dispatchPromptOverNcpResult, evaluateObservationEventAdmission, evaluatePortableRuntimeAcceptance, evaluatePortableRuntimeAcceptanceArtifact, eventKeys, getAutomaticUpdateCheckDelay, getCapabilityGrantKey, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, ingressKeys, injectUiContentParamsBootstrap, isAppDataError, isAppPackageError, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isProjectWorkError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, isSystemObjectReferenceError, listExtensionChannelIds, listServiceAppManifestActions, matchesCapabilityGrantFilter, matchesObservationPredicate, mergeServiceAppRuntimeActions, normalizeAgentRuntimeSessionTypeIcon, normalizeCapabilityGrantRequest, normalizeLlmUsageModel, normalizeOptionalString, normalizePortableRuntimeEnvironment, parseObservationDuration, parsePortableRuntimeAcceptanceEvidenceArtifact, parseServiceAppManifest, parseSkillFrontmatter, presentPortableRuntimeAcceptanceDefinition, readContextCompactionCheckpoint, readContextWindowEventSessionId, readJsonPointer, readLatestContextCompactionCheckpoint, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, readServiceActionTargetId, readServiceAppManifest, readServiceAppSlotTarget, resolveAgentRuntimeEntries, resolveAutomaticUpdateCheckIntervalMs, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolvePortableRuntimeAcceptanceLocale, resolveRuntimeInstanceSnapshot, resolveSessionChannelContext, runGatewayInboundLoop, runNextclawTask, sanitizeLlmUsage, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, startPromptOverNcpExecution, stripSkillFrontmatter, syncSessionThinkingPreference, toBoundedJson, toNcpMessages, waitForAgentRuntimeSessionReply };
4338
+ export { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, AccessLoginResult, AccessManager, AccessManagerOptions, AccessPasswordStatus, AccessPrincipal, AccessRole, AccessSessionRecord, AccessSessionState, AgentManager, AgentManagerOptions, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, type AgentRuntimeEntry, type AgentRuntimeProviderRegistration, AgentRuntimeSessionRequestDispatcherOptions, type AgentRuntimeSessionTypeCatalog, type AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, type AgentRuntimeSessionTypeOption, AgentRuntimeSessionTypeProvider, AgentServiceActionCaller, AppDataDeleteResult, AppDataDiagnostic, AppDataEntry, AppDataError, AppDataErrorCode, AppDataLifecycle, AppDataList, AppDataManager, AppDataSource, type AppDocumentGrantMutationResult, type AppEventEmitOptions, type AppEventEnvelope, type AppEventHandler, type AppEventKey, type AppInstalledPermissionState, AppPackageComponentKind, AppPackageComponentSource, AppPackageComponentSourceList, AppPackageComponentView, AppPackageConflict, AppPackageDependencyBinding, AppPackageDependencyBindingInput, AppPackageDependencyCandidate, AppPackageDependencyCycle, AppPackageDependencyDiagnostic, AppPackageDependencyDiagnosticCode, AppPackageDependencyView, AppPackageError, AppPackageErrorCode, AppPackageHostTarget, AppPackageList, AppPackageManager, AppPackageOperationAction, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationResult, AppPackageOperationStatus, AppPackageOperationView, AppPackageReadiness, AppPackageReadinessRequirement, AppPackageReadinessStatus, AppPackageRuntimeHooks, AppPackageSecretReadiness, AppPackageSecretSlotView, AppPackageSecretStatus, AppPackageUnavailableDiagnostic, AppPackageUninstallRollback, AppPackageView, type AssetApi, AutomationManager, AutomationManagerOptions, BindContextInput, type BuildAgentRunSendPayloadParams, BuildContextTailInput, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_CONTINUATION_TEXT, CONTEXT_COMPACTION_PART_START, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_SYSTEM_PREAMBLE, CONTEXT_COMPACTION_TIMELINE_KIND, CapabilityGrant, CapabilityGrantDecision, CapabilityGrantFilter, CapabilityGrantLegacyMigrationService, CapabilityGrantListener, CapabilityGrantManager, CapabilityGrantRequest, CapabilityGrantResource, CapabilityGrantRevocationListener, CapabilityGrantStore, CapabilityGrantSubject, CapabilityProviderView, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, CompactionProfileResolver, CompactionSummaryProvider, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextBinding, type ContextBlock, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, type ContextProvider, type ContextProviderRequest, Contribution, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, CreateProjectWorkItemInput, CreateProjectWorkStateInput, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DEFAULT_SERVICE_ACTION_RISK, DESKTOP_HOST_ACCESS, DESKTOP_HOST_PROTOCOL_VERSION, DesktopApplicationTarget, DesktopCapabilityError, DesktopCapabilityErrorCode, DesktopHost, DesktopHostAccess, DesktopHostCaller, DesktopHostCapabilityDeclaration, DesktopHostCapabilityManager, DesktopHostEvent, DesktopHostEventListener, DesktopHostManifest, DesktopHostMethod, DesktopHostRequest, DesktopHostResponse, DesktopHostStatus, DesktopNodeReplService, DesktopSessionCaller, DesktopSessionStateService, DesktopSnapshotOptions, DirectPromptDispatchExecution, DirectPromptDispatchParams, DirectPromptDispatchResult, type Disposer, EventAdmissionPolicy, EventBus, type EventBusOptions, EventDelivery, EventSubscription, EventSubscriptionBudget, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, type ExtensionRuntimeStatus, FeatureControlsService, GatewayInboundLoopRuntime, GatewayInboundProcessor, type IContextRegistry, type IKernel, type IMcpRegistry, type IModelRegistry, type INextclawAgent, type INextclawAgentRegistry, type INextclawAgentSessions, type INextclawContributionRegistry, type INextclawHarness, type INextclawRun, type INextclawSession, type INextclawSessionRegistry, type IRuntimeRegistry, type IToolRegistry, InboxDeliveryError, InboxDeliveryErrorCode, InboxDeliveryManager, InboxDeliveryManagerOptions, Ingress, type IngressContext, type IngressEnvelope, type IngressHandler, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, JsonPointer, JsonValue, type Key, type LLMResponse, type LLMStreamEvent, type LearningLoopRuntimeConfig, type LeasedResidentEvent, LegacyVerificationRecord, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, type LocalizedTextMap, MAX_INBOX_DELIVERY_CONTENT_LENGTH, type McpCatalogFilter, McpManager, type McpServerDefinition, type McpServerRecord, McpServiceAppRuntimeService, type McpToolCallInput, type McpToolCatalogEntry, type ModelChatInput, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, type NcpEndpointEvent, type NcpMessage, type NcpTool, type NextclawAgentDefinition, type NextclawContributionDescriptor, NextclawHarness, NextclawHarnessError, type NextclawHarnessErrorCode, type NextclawHarnessOptions, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextResolveParams, type NextclawRunStatus, type NextclawSessionCreateInput, type NextclawSessionRunInput, type NextclawTaskInput, type NextclawTaskResult, type NextclawUserQuestion, type NextclawUserQuestionReply, ObservationCapabilityDescriptor, ObservationContextTail, ObservationEvent, ObservationEventAdmissionDecision, ObservationExtensionRuntime, ObservationManager, ObservationManagerOptions, ObservationRef, ObservationRelationshipStatus, ObservationState, ObservationTarget, PANEL_APP_AGENT_CAPABILITIES, PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT, PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT_FINGERPRINT, PORTABLE_RUNTIME_ACCEPTANCE_LOCALES, PORTABLE_RUNTIME_ACCEPTANCE_PLATFORMS, PORTABLE_RUNTIME_ACCEPTANCE_PRESENTATION, PORTABLE_RUNTIME_ACCEPTANCE_REFERENCE_APP_ID, PROJECT_TEMPLATE_IDS, PROJECT_WORK_ATTENTION_VALUES, PROJECT_WORK_STATE_CATEGORIES, PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS, PanelAppAgentCapability, PanelAppAgentGenerateObjectInput, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentRunClient, PanelAppAgentSendPayload, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppAssetTokenService, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppCapabilityGrantCaller, PanelAppClientGrant, PanelAppContent, PanelAppDeleteResult, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, PanelServiceActionCaller, PlannedRestartRecovery, PlannedRestartRecoveryManager, PlannedRestartRecoveryResult, PlannedRestartRecoveryTicket, type PortableRunnerObservation, type PortableRuntimeAcceptanceContractView, PortableRuntimeAcceptanceDefinition, type PortableRuntimeAcceptanceDefinitionView, type PortableRuntimeAcceptanceEvaluationContext, type PortableRuntimeAcceptanceEvidence, type PortableRuntimeAcceptanceEvidenceArtifact, PortableRuntimeAcceptanceEvidenceSource, PortableRuntimeAcceptanceId, type PortableRuntimeAcceptanceIdentity, type PortableRuntimeAcceptanceIdentityResult, PortableRuntimeAcceptanceIdentityService, type PortableRuntimeAcceptanceLocale, PortableRuntimeAcceptanceManager, PortableRuntimeAcceptancePlatform, type PortableRuntimeAcceptancePresentation, type PortableRuntimeAcceptanceResult, type PortableRuntimeAcceptanceResultStatus, type PortableRuntimeAcceptanceStatusEntry, type PortableRuntimeAcceptanceStatusView, type PortableRuntimeAcceptanceSurfaceResult, type PortableRuntimeAcceptanceUnavailableIdentity, PreferenceEntry, PreferenceError, PreferenceErrorCode, PreferenceJsonValue, PreferenceManager, PreferenceManagerOptions, ProductActivityKind, ProductActivitySignal, ProductActivitySink, ProductActivitySource, type ProductFeatureControls, ProjectAgreementMaterial, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectMaterialService, ProjectRecentArtifact, ProjectRecentArtifactPage, ProjectRecord, ProjectSessionBinding, ProjectSkillMaterial, ProjectTemplate, ProjectTemplateId, ProjectWorkActivity, ProjectWorkActivityPage, ProjectWorkActivityType, ProjectWorkActor, ProjectWorkArtifactLink, ProjectWorkAttention, ProjectWorkError, ProjectWorkErrorCode, ProjectWorkItem, ProjectWorkItemDetail, ProjectWorkItemListEntry, ProjectWorkItemPage, ProjectWorkListInput, ProjectWorkManager, ProjectWorkState, ProjectWorkStateCategory, ProjectWorkSummary, type ProviderCatalogPlugin, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, type ProviderSpec, RUNTIME_INSTANCE_DESKTOP_DATA_DIRECTORY_ENV, RUNTIME_INSTANCE_DESKTOP_LOGS_DIRECTORY_ENV, RUNTIME_INSTANCE_DISTRIBUTION_ENV, RUNTIME_INSTANCE_INSTALLATION_KIND_ENV, RUNTIME_INSTANCE_PORTABLE_DATA_ROOT_ENV, type ResidentEventInput, ResolveRuntimeInstanceSnapshotParams, ResolvedAgentProfile, ResolvedDesktopApplicationTarget, RuntimeDistribution, RuntimeInstallationKind, RuntimeInstanceSnapshot, SERVICE_APP_MANIFEST_FILE_NAME, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvocationFacts, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppAgentCapabilitySlot, ServiceAppAiCapabilityService, ServiceAppCapabilityProvision, ServiceAppCapabilityRequirement, ServiceAppDeleteResult, ServiceAppError, type ServiceAppErrorCode, ServiceAppExternalRemediation, ServiceAppJobCaller, ServiceAppJobChunkEvent, ServiceAppJobEvent, type ServiceAppJobEventSink, ServiceAppJobJournalService, ServiceAppJobList, ServiceAppJobProgressEvent, type ServiceAppJobScope, ServiceAppJobStatus, ServiceAppJobTerminalEvent, ServiceAppJobView, ServiceAppJobWatch, ServiceAppLifecycle, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppModelCapabilitySlot, ServiceAppProtocol, ServiceAppProvides, ServiceAppRecord, ServiceAppRequirements, ServiceAppResidentEventDisposition, ServiceAppResidentEventInboxService, ServiceAppResidentEventList, type ServiceAppResidentEventScope, ServiceAppResidentEventStatus, ServiceAppResidentEventView, ServiceAppResourceRequirement, ServiceAppRuntimeService, ServiceAppRuntimeStatus, ServiceAppTerminalJobStatus, ServiceAppWitContract, SessionContextCompactionError, SessionContextCompactionErrorCode, SessionContextCompactionManager, SessionContextCompactionResult, SessionJournalCompactionResult, SessionManager, SessionManagerOptions, SessionMessageCursorError, SessionMessagePage, SessionMetadataUpdate, SessionModelTokenUsage, type SessionPendingInput, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, type SessionSteerQueuedInputResult, SessionTokenUsageStatus, SessionTokenUsageSummary, SessionTokenUsageTotals, type SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, SubscribeEventsInput, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, type TypedKey, TypedPredicate, USER_QUESTION_EXTENSION_TYPE, UnavailableDesktopHost, UnsignedUpdateManifest, type Unsubscribe, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateProjectWorkItemInput, UpdateProjectWorkStateInput, UpdateSnapshot, UpdateStatus, UserQuestionError, UserQuestionManager, UserQuestionPrompt, UserQuestionReplyResolution, UserQuestionResolution, UserQuestionView, VerificationEvidenceRecord, VerificationRecord, VerificationRecordEntrySurface, VerificationRecordError, VerificationRecordInput, VerificationRecordList, VerificationRecordObservation, VerificationRecordRole, VerificationRecordService, VerificationRecordStatus, type WorkspaceServiceDataOwner, assertObservationJsonValue, assertObservationPredicate, assertSessionJournalTailComplete, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildObservationEventModelMessage, buildServiceActionId, buildSessionRequestCompletionMessage, capabilityGrantCovers, compactSessionJournal, createAgentRuntimeSessionRequestDispatcher, createAgentRuntimeSessionRequestSourceNotifier, createAssetTools, createCapabilityDeclarationFingerprint, createContextCompactionMessageId, createContextWindowSignature, createCronJobSystemObjectProvider, createDesktopHostError, createInboxDeliverySystemObjectProvider, createLlmUsageRecord, createPanelAppAgentGrantRequest, createPanelAppClientGrantRequest, createServiceActionGrantRequest, createServiceAppAgentSlotGrantRequest, createServiceAppModelSlotGrantRequest, createTypedKey, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, dispatchPromptOverNcpResult, evaluateObservationEventAdmission, evaluatePortableRuntimeAcceptance, evaluatePortableRuntimeAcceptanceArtifact, eventKeys, getAutomaticUpdateCheckDelay, getCapabilityGrantKey, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, ingressKeys, injectUiContentParamsBootstrap, isAppDataError, isAppPackageError, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isProjectWorkError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, isSystemObjectReferenceError, listExtensionChannelIds, listServiceAppManifestActions, matchesCapabilityGrantFilter, matchesObservationPredicate, mergeServiceAppRuntimeActions, normalizeAgentRuntimeSessionTypeIcon, normalizeCapabilityGrantRequest, normalizeLlmUsageModel, normalizeOptionalString, normalizePortableRuntimeEnvironment, parseObservationDuration, parsePortableRuntimeAcceptanceEvidenceArtifact, parseServiceAppManifest, parseSkillFrontmatter, presentPortableRuntimeAcceptanceDefinition, readContextCompactionCheckpoint, readContextWindowEventSessionId, readJsonPointer, readLatestContextCompactionCheckpoint, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, readServiceActionTargetId, readServiceAppManifest, readServiceAppSlotTarget, recoverSessionJournalMaintenance, resolveAgentRuntimeEntries, resolveAutomaticUpdateCheckIntervalMs, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolvePortableRuntimeAcceptanceLocale, resolveRuntimeInstanceSnapshot, resolveSessionChannelContext, restoreSessionJournalBackup, runGatewayInboundLoop, runNextclawTask, sanitizeLlmUsage, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, startPromptOverNcpExecution, stripSkillFrontmatter, syncSessionThinkingPreference, toBoundedJson, toNcpMessages, waitForAgentRuntimeSessionReply };
4305
4339
  //# sourceMappingURL=index.d.ts.map