@nextclaw/kernel 0.15.0-beta.0 → 0.15.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
@@ -6,7 +6,8 @@ import { ListMessagesOptions, ListSessionsOptions, NcpAgentConversationStateMana
6
6
  import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
7
7
  import { AgentRunSendIngressPayload, AppEventEmitOptions, AppEventEnvelope, AppEventHandler, AppEventKey, Contribution as Contribution$1, Disposer, Disposer as Disposer$1, EventBus, EventBus as EventBus$1, EventBusOptions, InboxDelivery, InboxDeliveryContentType, InboxDeliveryListView, InboxDeliverySource, InboxDeliveryStateAction, Ingress, Ingress as Ingress$1, IngressContext, IngressEnvelope, IngressHandler, Key, RuntimeModelSelectionMode, SystemObjectReferenceGroupDescriptor, SystemObjectReferenceItem, SystemObjectReferenceListView, SystemObjectResolvedReference, TypedKey, Unsubscribe, Unsubscribe as Unsubscribe$1, createTypedKey, eventKeys, ingressKeys } from "@nextclaw/shared";
8
8
  import { AgentSessionRecord, ChatTarget, NcpReplyInput, RuntimeFactoryParams } from "@nextclaw/ncp-toolkit";
9
- import { AppInstallProgressHandler, AppNativeArtifactTarget, AppPermissions, AppPlatformTargetService, AppRollbackResult, AppRuntimeIsolation, AppRuntimeProfile, AppSecretBinding, AppSecretSlot, AppStorageContext, AppStorageUsage, AppUninstallResult, AppUpdateResult } from "@nextclaw/app-runtime";
9
+ import * as _$_nextclaw_app_runtime0 from "@nextclaw/app-runtime";
10
+ import { AppDocumentGrantMutationResult, AppDocumentGrantState, AppInstallProgressHandler, AppInstalledPermissionState, AppNativeArtifactTarget, AppPermissions, AppPlatformTargetService, AppRollbackResult, AppRuntimeIsolation, AppRuntimeProfile, AppSecretBinding, AppSecretSlot, AppStorageContext, AppStorageUsage, AppUninstallResult, AppUpdateResult } from "@nextclaw/app-runtime";
10
11
  import * as _$_nextclaw_mcp0 from "@nextclaw/mcp";
11
12
  import { McpCatalogFilter, McpCatalogFilter as McpCatalogFilter$1, McpRegistryService, McpServerRecord, McpServerRecord as McpServerRecord$1, McpToolCatalogEntry, McpToolCatalogEntry as McpToolCatalogEntry$1 } from "@nextclaw/mcp";
12
13
 
@@ -586,6 +587,7 @@ type AgentRunSession = {
586
587
  metadata: Record<string, unknown>;
587
588
  model?: string;
588
589
  projectRoot?: string;
590
+ projectId?: string;
589
591
  workingDir: string;
590
592
  thinkingEffort?: ThinkingEffort | null;
591
593
  };
@@ -700,11 +702,16 @@ type CreateProjectInput = {
700
702
  rootPath?: string;
701
703
  template?: ProjectTemplateId;
702
704
  };
705
+ type ProjectSessionBinding = {
706
+ projectId: string;
707
+ rootPath: string;
708
+ };
703
709
  //#endregion
704
710
  //#region src/features/projects/managers/project.manager.d.ts
705
711
  type ProjectManagerOptions = {
706
712
  storePath: string;
707
713
  getDefaultWorkspacePath: () => string;
714
+ onProjectRegistered?: (project: ProjectRecord) => Promise<void>;
708
715
  };
709
716
  type ProjectErrorCode = "PROJECT_NAME_INVALID" | "PROJECT_PATH_INVALID_TYPE" | "PROJECT_PATH_NOT_FOUND" | "PROJECT_PATH_NOT_DIRECTORY" | "PROJECT_PATH_IS_DEFAULT_WORKSPACE" | "PROJECT_PATH_NOT_EMPTY" | "PROJECT_TEMPLATE_INVALID";
710
717
  declare class ProjectError extends Error {
@@ -724,6 +731,7 @@ declare class ProjectManager {
724
731
  createProject: (input: CreateProjectInput) => Promise<ProjectRecord>;
725
732
  registerExistingProject: (rootPath: unknown, name?: string) => Promise<ProjectRecord | null>;
726
733
  normalizeSessionProjectRoot: (value: unknown) => Promise<string | null>;
734
+ normalizeSessionProjectContext: (value: unknown) => Promise<ProjectSessionBinding | null>;
727
735
  resolveExistingProjectRoot: (value: unknown) => Promise<string | null>;
728
736
  importSessionProjects: (projectRoots: unknown[]) => Promise<void>;
729
737
  private upsertProject;
@@ -738,6 +746,153 @@ declare class ProjectManager {
738
746
  private isMissingFileError;
739
747
  }
740
748
  //#endregion
749
+ //#region src/features/projects/types/project-work.types.d.ts
750
+ declare const PROJECT_WORK_STATE_CATEGORIES: readonly ["backlog", "unstarted", "started", "completed", "canceled"];
751
+ type ProjectWorkStateCategory = (typeof PROJECT_WORK_STATE_CATEGORIES)[number];
752
+ declare const PROJECT_WORK_ATTENTION_VALUES: readonly ["none", "blocked", "awaiting-user"];
753
+ type ProjectWorkAttention = (typeof PROJECT_WORK_ATTENTION_VALUES)[number];
754
+ type ProjectWorkActor = {
755
+ kind: "agent" | "cli" | "system" | "user";
756
+ id?: string;
757
+ sessionId?: string;
758
+ };
759
+ type ProjectWorkState = {
760
+ id: string;
761
+ projectId: string;
762
+ name: string;
763
+ category: ProjectWorkStateCategory;
764
+ position: number;
765
+ isDefault: boolean;
766
+ createdAt: string;
767
+ updatedAt: string;
768
+ };
769
+ type ProjectWorkItem = {
770
+ id: string;
771
+ projectId: string;
772
+ title: string;
773
+ description: string;
774
+ stateId: string;
775
+ attention: ProjectWorkAttention;
776
+ version: number;
777
+ createdAt: string;
778
+ updatedAt: string;
779
+ deletedAt: string | null;
780
+ };
781
+ type ProjectWorkActivityType = "artifact-linked" | "artifact-unlinked" | "created" | "deleted" | "restored" | "state-changed" | "updated";
782
+ type ProjectWorkActivity = {
783
+ id: string;
784
+ projectId: string;
785
+ workItemId: string;
786
+ type: ProjectWorkActivityType;
787
+ actor: ProjectWorkActor;
788
+ details: Record<string, unknown>;
789
+ createdAt: string;
790
+ };
791
+ type ProjectWorkArtifactLink = {
792
+ id: string;
793
+ projectId: string;
794
+ workItemId: string;
795
+ path: string;
796
+ label: string | null;
797
+ createdAt: string;
798
+ };
799
+ type ProjectWorkItemDetail = ProjectWorkItem & {
800
+ state: ProjectWorkState;
801
+ artifacts: ProjectWorkArtifactLink[];
802
+ };
803
+ type ProjectWorkList = {
804
+ items: ProjectWorkItemDetail[];
805
+ states: ProjectWorkState[];
806
+ total: number;
807
+ };
808
+ type ProjectWorkSummary = {
809
+ active: number;
810
+ attention: number;
811
+ completed: number;
812
+ total: number;
813
+ updatedAt: string | null;
814
+ };
815
+ type ProjectWorkActivityPage = {
816
+ activities: ProjectWorkActivity[];
817
+ nextCursor: string | null;
818
+ };
819
+ type CreateProjectWorkItemInput = {
820
+ title: string;
821
+ description?: string;
822
+ stateId?: string;
823
+ attention?: ProjectWorkAttention;
824
+ };
825
+ type UpdateProjectWorkItemInput = {
826
+ title?: string;
827
+ description?: string;
828
+ stateId?: string;
829
+ attention?: ProjectWorkAttention;
830
+ expectedVersion?: number;
831
+ };
832
+ type CreateProjectWorkStateInput = {
833
+ name: string;
834
+ category: ProjectWorkStateCategory;
835
+ position?: number;
836
+ isDefault?: boolean;
837
+ };
838
+ type UpdateProjectWorkStateInput = {
839
+ name?: string;
840
+ category?: ProjectWorkStateCategory;
841
+ position?: number;
842
+ isDefault?: boolean;
843
+ };
844
+ //#endregion
845
+ //#region src/features/projects/managers/project-work.manager.d.ts
846
+ declare class ProjectWorkManager {
847
+ private readonly options;
848
+ private readonly store;
849
+ constructor(options: {
850
+ databasePath: string;
851
+ eventBus: EventBus$1;
852
+ projectManager: ProjectManager;
853
+ });
854
+ initialize: () => Promise<void>;
855
+ dispose: () => void;
856
+ ensureProject: (projectId: string) => Promise<void>;
857
+ list: (projectId: string, includeDeleted?: boolean) => Promise<ProjectWorkList>;
858
+ summary: (projectId: string) => Promise<ProjectWorkSummary>;
859
+ get: (projectId: string, workItemId: string) => Promise<ProjectWorkItemDetail>;
860
+ create: (projectId: string, input: CreateProjectWorkItemInput, actor: ProjectWorkActor) => Promise<ProjectWorkItemDetail>;
861
+ update: (projectId: string, workItemId: string, input: UpdateProjectWorkItemInput, actor: ProjectWorkActor) => Promise<ProjectWorkItemDetail>;
862
+ delete: (projectId: string, workItemId: string, actor: ProjectWorkActor) => Promise<ProjectWorkItemDetail>;
863
+ restore: (projectId: string, workItemId: string, actor: ProjectWorkActor) => Promise<ProjectWorkItemDetail>;
864
+ listActivities: (projectId: string, workItemId: string, options?: {
865
+ cursor?: string;
866
+ limit?: number;
867
+ }) => Promise<ProjectWorkActivityPage>;
868
+ listStates: (projectId: string) => Promise<ProjectWorkState[]>;
869
+ createState: (projectId: string, input: CreateProjectWorkStateInput) => Promise<ProjectWorkState>;
870
+ updateState: (projectId: string, stateId: string, input: UpdateProjectWorkStateInput) => Promise<ProjectWorkState>;
871
+ deleteState: (projectId: string, stateId: string, migrateToStateId: string | null, actor: ProjectWorkActor) => Promise<void>;
872
+ linkArtifact: (params: {
873
+ projectId: string;
874
+ workItemId: string;
875
+ path: string;
876
+ label?: string;
877
+ actor: ProjectWorkActor;
878
+ }) => Promise<ProjectWorkArtifactLink>;
879
+ unlinkArtifact: (params: {
880
+ projectId: string;
881
+ workItemId: string;
882
+ artifactLinkId: string;
883
+ actor: ProjectWorkActor;
884
+ }) => Promise<void>;
885
+ private setDeleted;
886
+ private requireProject;
887
+ private requireMappedState;
888
+ private requireName;
889
+ private assertAttention;
890
+ private assertCategory;
891
+ private normalizeActor;
892
+ private normalizeArtifactPath;
893
+ private emit;
894
+ }
895
+ //#endregion
741
896
  //#region src/features/projects/types/project-observation.types.d.ts
742
897
  declare const PROJECT_OBSERVATION_PROTOCOL: "nextclaw.project/v1";
743
898
  type ProjectObservationDataQuality = "complete" | "partial" | "unavailable";
@@ -917,6 +1072,14 @@ declare class ProjectObservationService {
917
1072
  private createSourceStatus;
918
1073
  }
919
1074
  //#endregion
1075
+ //#region src/features/projects/types/project-work-error.types.d.ts
1076
+ type ProjectWorkErrorCode = "PROJECT_NOT_FOUND" | "PROJECT_WORK_ARTIFACT_INVALID" | "PROJECT_WORK_ARTIFACT_NOT_FOUND" | "PROJECT_WORK_ITEM_NOT_FOUND" | "PROJECT_WORK_STATE_IN_USE" | "PROJECT_WORK_STATE_INVALID" | "PROJECT_WORK_STATE_NOT_FOUND" | "PROJECT_WORK_VALIDATION_FAILED" | "PROJECT_WORK_VERSION_CONFLICT";
1077
+ declare class ProjectWorkError extends Error {
1078
+ readonly code: ProjectWorkErrorCode;
1079
+ constructor(code: ProjectWorkErrorCode, message: string);
1080
+ }
1081
+ declare function isProjectWorkError(error: unknown): error is ProjectWorkError;
1082
+ //#endregion
920
1083
  //#region src/services/session-event-coordinator.service.d.ts
921
1084
  type PublishSessionEventParams = {
922
1085
  sessionId: string;
@@ -1713,6 +1876,7 @@ type AppPackageView = {
1713
1876
  readiness: AppPackageReadiness;
1714
1877
  secrets: AppPackageSecretReadiness;
1715
1878
  dependencies: AppPackageDependencyView;
1879
+ documentAccess: AppDocumentGrantState[];
1716
1880
  };
1717
1881
  type AppPackageHostTarget = {
1718
1882
  key: string;
@@ -1780,9 +1944,11 @@ type AppPackageRuntimeHooks = {
1780
1944
  assertCanActivate: (sources: AppPackageComponentSource[]) => Promise<void>;
1781
1945
  afterActivate: (sources: AppPackageComponentSource[]) => Promise<void>;
1782
1946
  beforeDeactivate: (sources: AppPackageComponentSource[]) => Promise<void>;
1947
+ prepareCapabilityChange: (sources: AppPackageComponentSource[]) => Promise<AppPackageUninstallRollback>;
1948
+ afterCapabilityChange: (sources: AppPackageComponentSource[]) => Promise<void>;
1783
1949
  beforeUninstall: (sources: AppPackageComponentSource[]) => Promise<AppPackageUninstallRollback | void>;
1784
1950
  };
1785
- type AppPackageErrorCode = "APP_PACKAGE_CONFLICT" | "APP_PACKAGE_INCOMPATIBLE" | "APP_PACKAGE_NOT_READY" | "APP_PACKAGE_NOT_FOUND" | "APP_PACKAGE_DEPENDENCY_MISSING" | "APP_PACKAGE_DEPENDENCY_INCOMPATIBLE" | "APP_PACKAGE_DEPENDENCY_CYCLE" | "APP_PACKAGE_OPERATION_FAILED" | "SECRET_SLOT_NOT_DECLARED" | "SECRET_BINDING_MISSING" | "SECRET_RESOLUTION_FAILED";
1951
+ type AppPackageErrorCode = "APP_PACKAGE_CONFLICT" | "APP_PACKAGE_INCOMPATIBLE" | "APP_PACKAGE_NOT_READY" | "APP_PACKAGE_NOT_FOUND" | "APP_PACKAGE_DEPENDENCY_MISSING" | "APP_PACKAGE_DEPENDENCY_INCOMPATIBLE" | "APP_PACKAGE_DEPENDENCY_CYCLE" | "APP_PACKAGE_OPERATION_FAILED" | "SECRET_SLOT_NOT_DECLARED" | "SECRET_BINDING_MISSING" | "SECRET_RESOLUTION_FAILED" | "DOCUMENT_SCOPE_NOT_DECLARED" | "DOCUMENT_SCOPE_NOT_GRANTED" | "DOCUMENT_SCOPE_MODE_INSUFFICIENT" | "DOCUMENT_SCOPE_UNAVAILABLE" | "DOCUMENT_SCOPE_MUTATION_FAILED";
1786
1952
  declare class AppPackageError extends Error {
1787
1953
  readonly code: AppPackageErrorCode;
1788
1954
  constructor(code: AppPackageErrorCode, message: string);
@@ -1801,6 +1967,8 @@ declare class AppPackageManager {
1801
1967
  private readonly dependencyCoordinator;
1802
1968
  private readonly runtimeActivationService;
1803
1969
  private readonly registryService;
1970
+ private readonly grantService;
1971
+ private readonly documentAccessService;
1804
1972
  private readonly readinessManager;
1805
1973
  private runtimeHooks;
1806
1974
  private builtInBootstrapPromise;
@@ -1834,6 +2002,14 @@ declare class AppPackageManager {
1834
2002
  binding: AppSecretBinding;
1835
2003
  }) => Promise<AppPackageSecretReadiness>;
1836
2004
  unbindSecret: (appId: string, slotId: string) => Promise<AppPackageSecretReadiness>;
2005
+ inspectDocumentAccess: (appId: string) => Promise<_$_nextclaw_app_runtime0.AppInstalledPermissionState>;
2006
+ assertDocumentAccess: (appId: string, scopeId: string, requestedMode: "read" | "read-write") => Promise<void>;
2007
+ grantDocumentAccess: (appId: string, input: {
2008
+ scopeId: string;
2009
+ directoryPath: string;
2010
+ mode: "read" | "read-write";
2011
+ }) => Promise<_$_nextclaw_app_runtime0.AppDocumentGrantMutationResult>;
2012
+ revokeDocumentAccess: (appId: string, scopeId: string) => Promise<_$_nextclaw_app_runtime0.AppDocumentGrantMutationResult>;
1837
2013
  listActiveComponentSources: () => Promise<AppPackageComponentSource[]>;
1838
2014
  listActiveComponentSourcesWithDiagnostics: () => Promise<AppPackageComponentSourceList>;
1839
2015
  listOperations: () => Promise<AppPackageOperationList>;
@@ -2951,222 +3127,222 @@ type PortableRuntimeAcceptanceDefinition = {
2951
3127
  declare const PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT: readonly [{
2952
3128
  titleKey: string;
2953
3129
  descriptionKey: string;
3130
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3131
+ scenarioVersion: string;
2954
3132
  id: "PRT-EXEC-001";
2955
3133
  checkerKey: string;
2956
3134
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2957
3135
  required: boolean;
2958
- scenarioVersion: string;
2959
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2960
3136
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2961
3137
  }, {
2962
3138
  titleKey: string;
2963
3139
  descriptionKey: string;
3140
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3141
+ scenarioVersion: string;
2964
3142
  id: "PRT-DATA-001";
2965
3143
  checkerKey: string;
2966
3144
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2967
3145
  required: boolean;
2968
- scenarioVersion: string;
2969
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2970
3146
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2971
3147
  }, {
2972
3148
  titleKey: string;
2973
3149
  descriptionKey: string;
3150
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3151
+ scenarioVersion: string;
2974
3152
  id: "PRT-FILE-001";
2975
3153
  checkerKey: string;
2976
3154
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2977
3155
  required: boolean;
2978
- scenarioVersion: string;
2979
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2980
3156
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2981
3157
  }, {
2982
3158
  titleKey: string;
2983
3159
  descriptionKey: string;
3160
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3161
+ scenarioVersion: string;
2984
3162
  id: "PRT-NET-001";
2985
3163
  checkerKey: string;
2986
3164
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2987
3165
  required: boolean;
2988
- scenarioVersion: string;
2989
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
2990
3166
  platforms: readonly PortableRuntimeAcceptancePlatform[];
2991
3167
  }, {
2992
3168
  titleKey: string;
2993
3169
  descriptionKey: string;
3170
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3171
+ scenarioVersion: string;
2994
3172
  id: "PRT-SECRET-001";
2995
3173
  checkerKey: string;
2996
3174
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
2997
3175
  required: boolean;
2998
- scenarioVersion: string;
2999
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3000
3176
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3001
3177
  }, {
3002
3178
  titleKey: string;
3003
3179
  descriptionKey: string;
3180
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3181
+ scenarioVersion: string;
3004
3182
  id: "PRT-RES-001";
3005
3183
  checkerKey: string;
3006
3184
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3007
3185
  required: boolean;
3008
- scenarioVersion: string;
3009
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3010
3186
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3011
3187
  }, {
3012
3188
  titleKey: string;
3013
3189
  descriptionKey: string;
3190
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3191
+ scenarioVersion: string;
3014
3192
  id: "PRT-EVENT-001";
3015
3193
  checkerKey: string;
3016
3194
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3017
3195
  required: boolean;
3018
- scenarioVersion: string;
3019
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3020
3196
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3021
3197
  }, {
3022
3198
  titleKey: string;
3023
3199
  descriptionKey: string;
3200
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3201
+ scenarioVersion: string;
3024
3202
  id: "PRT-TASK-001";
3025
3203
  checkerKey: string;
3026
3204
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3027
3205
  required: boolean;
3028
- scenarioVersion: string;
3029
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3030
3206
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3031
3207
  }, {
3032
3208
  titleKey: string;
3033
3209
  descriptionKey: string;
3210
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3211
+ scenarioVersion: string;
3034
3212
  id: "PRT-STREAM-001";
3035
3213
  checkerKey: string;
3036
3214
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3037
3215
  required: boolean;
3038
- scenarioVersion: string;
3039
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3040
3216
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3041
3217
  }, {
3042
3218
  titleKey: string;
3043
3219
  descriptionKey: string;
3220
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3221
+ scenarioVersion: string;
3044
3222
  id: "PRT-AGENT-001";
3045
3223
  checkerKey: string;
3046
3224
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3047
3225
  required: boolean;
3048
- scenarioVersion: string;
3049
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3050
3226
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3051
3227
  }, {
3052
3228
  titleKey: string;
3053
3229
  descriptionKey: string;
3230
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3231
+ scenarioVersion: string;
3054
3232
  id: "PRT-AI-001";
3055
3233
  checkerKey: string;
3056
3234
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3057
3235
  required: boolean;
3058
- scenarioVersion: string;
3059
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3060
3236
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3061
3237
  }, {
3062
3238
  titleKey: string;
3063
3239
  descriptionKey: string;
3240
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3241
+ scenarioVersion: string;
3064
3242
  id: "PRT-COMP-001";
3065
3243
  checkerKey: string;
3066
3244
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3067
3245
  required: boolean;
3068
- scenarioVersion: string;
3069
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3070
3246
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3071
3247
  }, {
3072
3248
  titleKey: string;
3073
3249
  descriptionKey: string;
3250
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3251
+ scenarioVersion: string;
3074
3252
  id: "PRT-ENTRY-001";
3075
3253
  checkerKey: string;
3076
3254
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3077
3255
  required: boolean;
3078
- scenarioVersion: string;
3079
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3080
3256
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3081
3257
  }, {
3082
3258
  titleKey: string;
3083
3259
  descriptionKey: string;
3260
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3261
+ scenarioVersion: string;
3084
3262
  id: "PRT-LIFE-001";
3085
3263
  checkerKey: string;
3086
3264
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3087
3265
  required: boolean;
3088
- scenarioVersion: string;
3089
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3090
3266
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3091
3267
  }, {
3092
3268
  titleKey: string;
3093
3269
  descriptionKey: string;
3270
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3271
+ scenarioVersion: string;
3094
3272
  id: "PRT-BOUND-001";
3095
3273
  checkerKey: string;
3096
3274
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3097
3275
  required: boolean;
3098
- scenarioVersion: string;
3099
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3100
3276
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3101
3277
  }, {
3102
3278
  titleKey: string;
3103
3279
  descriptionKey: string;
3280
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3281
+ scenarioVersion: string;
3104
3282
  id: "PRT-PERF-001";
3105
3283
  checkerKey: string;
3106
3284
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3107
3285
  required: boolean;
3108
- scenarioVersion: string;
3109
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3110
3286
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3111
3287
  }, {
3112
3288
  titleKey: string;
3113
3289
  descriptionKey: string;
3290
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3291
+ scenarioVersion: string;
3114
3292
  id: "PRT-DX-001";
3115
3293
  checkerKey: string;
3116
3294
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3117
3295
  required: boolean;
3118
- scenarioVersion: string;
3119
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3120
3296
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3121
3297
  }, {
3122
3298
  titleKey: string;
3123
3299
  descriptionKey: string;
3300
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3301
+ scenarioVersion: string;
3124
3302
  id: "PRT-DIST-001";
3125
3303
  checkerKey: string;
3126
3304
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3127
3305
  required: boolean;
3128
- scenarioVersion: string;
3129
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3130
3306
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3131
3307
  }, {
3132
3308
  titleKey: string;
3133
3309
  descriptionKey: string;
3310
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3311
+ scenarioVersion: string;
3134
3312
  id: "PRT-EVID-001";
3135
3313
  checkerKey: string;
3136
3314
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3137
3315
  required: boolean;
3138
- scenarioVersion: string;
3139
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3140
3316
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3141
3317
  }, {
3142
3318
  titleKey: string;
3143
3319
  descriptionKey: string;
3320
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3321
+ scenarioVersion: string;
3144
3322
  id: "PRT-REF-001";
3145
3323
  checkerKey: string;
3146
3324
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3147
3325
  required: boolean;
3148
- scenarioVersion: string;
3149
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3150
3326
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3151
3327
  }, {
3152
3328
  titleKey: string;
3153
3329
  descriptionKey: string;
3330
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3331
+ scenarioVersion: string;
3154
3332
  id: "PRT-DOCS-001";
3155
3333
  checkerKey: string;
3156
3334
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3157
3335
  required: boolean;
3158
- scenarioVersion: string;
3159
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3160
3336
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3161
3337
  }, {
3162
3338
  titleKey: string;
3163
3339
  descriptionKey: string;
3340
+ evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3341
+ scenarioVersion: string;
3164
3342
  id: "PRT-REL-001";
3165
3343
  checkerKey: string;
3166
3344
  category: "execution" | "capability" | "lifecycle" | "entry" | "quality" | "release";
3167
3345
  required: boolean;
3168
- scenarioVersion: string;
3169
- evidenceSource: PortableRuntimeAcceptanceEvidenceSource;
3170
3346
  platforms: readonly PortableRuntimeAcceptancePlatform[];
3171
3347
  }];
3172
3348
  type PortableRuntimeAcceptanceId = (typeof PORTABLE_RUNTIME_ACCEPTANCE_CONTRACT)[number]["id"];
@@ -4088,7 +4264,7 @@ type ServiceAppRemovalDiagnostic = {
4088
4264
  };
4089
4265
  //#endregion
4090
4266
  //#region src/utils/service-app-error.utils.d.ts
4091
- type ServiceAppErrorCode = "AUTHORIZATION_REQUIRED" | "SERVICE_APP_ACTION_NOT_DECLARED" | "SERVICE_APP_ACTION_NOT_FOUND" | "SERVICE_APP_INVALID_ACTION" | "SERVICE_APP_INVALID_CALLER" | "SERVICE_APP_INVALID_MANIFEST" | "SERVICE_APP_MANAGED_SOURCE" | "SERVICE_APP_JOB_CONFLICT" | "SERVICE_APP_JOB_CURSOR_INVALID" | "SERVICE_APP_JOB_EVENT_LIMIT" | "SERVICE_APP_JOB_NOT_FOUND" | "SERVICE_APP_JOB_TERMINAL" | "SERVICE_APP_RESIDENT_EVENT_NOT_FOUND" | "SERVICE_APP_RESIDENT_EVENT_CONFLICT" | "SERVICE_APP_RESIDENT_EVENT_LEASE_INVALID" | "SERVICE_APP_RESIDENT_INBOX_FROZEN" | "SERVICE_APP_NOT_FOUND" | "SERVICE_APP_READ_FAILED" | "SERVICE_APP_RUNTIME_FAILED" | "STREAM_BACKPRESSURE_TIMEOUT" | "STREAM_CURSOR_EXPIRED" | "WASI_ABI_VERSION_MISMATCH" | "WASI_CAPABILITY_DENIED" | "WASI_COMPONENT_FAILED" | "WASI_COMPONENT_TRAP" | "WASI_GUEST_EXPORT_MISSING" | "WASI_INPUT_SCHEMA_MISMATCH";
4267
+ type ServiceAppErrorCode = "AUTHORIZATION_REQUIRED" | "DOCUMENT_SCOPE_NOT_GRANTED" | "DOCUMENT_SCOPE_MODE_INSUFFICIENT" | "DOCUMENT_SCOPE_UNAVAILABLE" | "SERVICE_APP_ACTION_NOT_DECLARED" | "SERVICE_APP_ACTION_NOT_FOUND" | "SERVICE_APP_INVALID_ACTION" | "SERVICE_APP_INVALID_CALLER" | "SERVICE_APP_INVALID_MANIFEST" | "SERVICE_APP_MANAGED_SOURCE" | "SERVICE_APP_JOB_CONFLICT" | "SERVICE_APP_JOB_CURSOR_INVALID" | "SERVICE_APP_JOB_EVENT_LIMIT" | "SERVICE_APP_JOB_NOT_FOUND" | "SERVICE_APP_JOB_TERMINAL" | "SERVICE_APP_RESIDENT_EVENT_NOT_FOUND" | "SERVICE_APP_RESIDENT_EVENT_CONFLICT" | "SERVICE_APP_RESIDENT_EVENT_LEASE_INVALID" | "SERVICE_APP_RESIDENT_INBOX_FROZEN" | "SERVICE_APP_NOT_FOUND" | "SERVICE_APP_READ_FAILED" | "SERVICE_APP_RUNTIME_FAILED" | "STREAM_BACKPRESSURE_TIMEOUT" | "STREAM_CURSOR_EXPIRED" | "WASI_ABI_VERSION_MISMATCH" | "WASI_CAPABILITY_DENIED" | "WASI_COMPONENT_FAILED" | "WASI_COMPONENT_TRAP" | "WASI_GUEST_EXPORT_MISSING" | "WASI_INPUT_SCHEMA_MISMATCH";
4092
4268
  declare class ServiceAppError extends Error {
4093
4269
  readonly code: ServiceAppErrorCode;
4094
4270
  readonly details?: Record<string, unknown> | undefined;
@@ -4129,6 +4305,7 @@ declare class ServiceAppManager {
4129
4305
  configManager: ConfigManager;
4130
4306
  runtimeService?: ServiceAppRuntime;
4131
4307
  listPackageComponentSources?: () => Promise<AppPackageComponentSource[]>;
4308
+ assertDocumentAccess?: (appId: string, scopeId: string, mode: "read" | "read-write") => Promise<void>;
4132
4309
  capabilityGrantManager: CapabilityGrantManager;
4133
4310
  hasAgent?: (agentId: string) => boolean;
4134
4311
  providerManager?: LlmProviderRuntime;
@@ -4162,6 +4339,7 @@ declare class ServiceAppManager {
4162
4339
  * This is deliberately separate from source-tree `nextclaw app call`.
4163
4340
  */
4164
4341
  invokeInstalledServiceAction: (appId: string, actionName: string, input?: Record<string, unknown>) => Promise<ServiceActionInvokeResult>;
4342
+ private assertDocumentInputAccess;
4165
4343
  listVerificationRecords: (filters?: {
4166
4344
  acceptanceId?: string;
4167
4345
  appId?: string;
@@ -4521,6 +4699,7 @@ declare class NextclawKernel {
4521
4699
  readonly preferenceManager: PreferenceManager;
4522
4700
  readonly projectManager: ProjectManager;
4523
4701
  readonly projectObservation: ProjectObservationService;
4702
+ readonly projectWorkManager: ProjectWorkManager;
4524
4703
  readonly serviceAppManager: ServiceAppManager;
4525
4704
  readonly extensions: ExtensionManager;
4526
4705
  readonly agentRuntimeManager: AgentRuntimeManager;
@@ -5248,5 +5427,5 @@ declare function resolveLegacyEventType(message: SessionMessage): string;
5248
5427
  declare function getUiContentParamsBootstrapScript(): string;
5249
5428
  declare function injectUiContentParamsBootstrap(html: string): string;
5250
5429
  //#endregion
5251
- 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 AppEventEmitOptions, type AppEventEnvelope, type AppEventHandler, type AppEventKey, 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_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, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextBinding, type ContextBlock, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, type ContextProvider, type ContextProviderRequest, Contribution, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, 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, 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, ObservationCapabilityDescriptor, ObservationContextTail, ObservationEvent, ObservationEventAdmissionDecision, ObservationExtensionRuntime, ObservationManager, ObservationManagerOptions, ObservationRef, ObservationRelationshipStatus, ObservationState, ObservationTarget, ObservedActivity, ObservedArtifact, ObservedArtifactCategory, ObservedProjectContext, ObservedProjectContextReference, ObservedProjectRun, ObservedRequest, ObservedSignal, ObservedSkill, ObservedWorkItem, ObservedWorkItemSchedule, ObservedWorkflow, ObservedWorkflowStage, 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_OBSERVATION_PROTOCOL, PROJECT_TEMPLATE_IDS, 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, 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, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectObservationDataQuality, ProjectObservationDiagnostic, ProjectObservationError, ProjectObservationEvidenceKind, ProjectObservationReference, ProjectObservationService, ProjectObservationSnapshot, ProjectObservationSourceStatus, ProjectRecord, ProjectTemplate, ProjectTemplateId, type ProviderCatalogPlugin, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, type ProviderSpec, type ResidentEventInput, ResolvedAgentProfile, ResolvedDesktopApplicationTarget, 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, SessionModelTokenUsage, type SessionPendingInput, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, type SessionSteerQueuedInputResult, SessionTokenUsageStatus, SessionTokenUsageSummary, SessionTokenUsageTotals, SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, SubscribeEventsInput, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, type TypedKey, TypedPredicate, UnavailableDesktopHost, UnsignedUpdateManifest, type Unsubscribe, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateSnapshot, UpdateStatus, 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, isProjectObservationError, 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, resolveSessionChannelContext, runGatewayInboundLoop, runNextclawTask, sanitizeLlmUsage, serializeContextTail, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, startPromptOverNcpExecution, stripSkillFrontmatter, syncSessionThinkingPreference, toBoundedJson, toNcpMessages, waitForAgentRuntimeSessionReply };
5430
+ 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_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, 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, 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, ObservationCapabilityDescriptor, ObservationContextTail, ObservationEvent, ObservationEventAdmissionDecision, ObservationExtensionRuntime, ObservationManager, ObservationManagerOptions, ObservationRef, ObservationRelationshipStatus, ObservationState, ObservationTarget, ObservedActivity, ObservedArtifact, ObservedArtifactCategory, ObservedProjectContext, ObservedProjectContextReference, ObservedProjectRun, ObservedRequest, ObservedSignal, ObservedSkill, ObservedWorkItem, ObservedWorkItemSchedule, ObservedWorkflow, ObservedWorkflowStage, 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_OBSERVATION_PROTOCOL, 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, 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, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectObservationDataQuality, ProjectObservationDiagnostic, ProjectObservationError, ProjectObservationEvidenceKind, ProjectObservationReference, ProjectObservationService, ProjectObservationSnapshot, ProjectObservationSourceStatus, ProjectRecord, ProjectSessionBinding, ProjectTemplate, ProjectTemplateId, ProjectWorkActivity, ProjectWorkActivityPage, ProjectWorkActivityType, ProjectWorkActor, ProjectWorkArtifactLink, ProjectWorkAttention, ProjectWorkError, ProjectWorkErrorCode, ProjectWorkItem, ProjectWorkItemDetail, ProjectWorkList, ProjectWorkManager, ProjectWorkState, ProjectWorkStateCategory, ProjectWorkSummary, type ProviderCatalogPlugin, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, type ProviderSpec, type ResidentEventInput, ResolvedAgentProfile, ResolvedDesktopApplicationTarget, 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, SessionModelTokenUsage, type SessionPendingInput, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, type SessionSteerQueuedInputResult, SessionTokenUsageStatus, SessionTokenUsageSummary, SessionTokenUsageTotals, SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, SubscribeEventsInput, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, type TypedKey, TypedPredicate, UnavailableDesktopHost, UnsignedUpdateManifest, type Unsubscribe, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateProjectWorkItemInput, UpdateProjectWorkStateInput, UpdateSnapshot, UpdateStatus, 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, isProjectObservationError, 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, resolveSessionChannelContext, runGatewayInboundLoop, runNextclawTask, sanitizeLlmUsage, serializeContextTail, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, startPromptOverNcpExecution, stripSkillFrontmatter, syncSessionThinkingPreference, toBoundedJson, toNcpMessages, waitForAgentRuntimeSessionReply };
5252
5431
  //# sourceMappingURL=index.d.ts.map