@nextclaw/server 0.15.28 → 0.16.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,7 +1,7 @@
1
1
  import * as _$hono from "hono";
2
2
  import { Context, Hono } from "hono";
3
3
  import * as _$_nextclaw_kernel0 from "@nextclaw/kernel";
4
- import { AccessManager, AppPackageList, AppPackageManager, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationStatus, AppPackageOperationView, AppPackageView, InboxDeliveryManager, NextclawKernel, PanelAppAgentCapability, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppClientGrant, PanelAppEntry, PanelAppList, PanelAppManager, PanelAppPreferencesUpdate, PreferenceJsonValue, PreferenceManager, ProjectRecord, ProjectTemplate, ProjectTemplateId, ServiceAction, ServiceActionGrant, ServiceActionInvokeResult, ServiceAppDeleteResult, ServiceAppList, ServiceAppManager, ServiceAppRecord } from "@nextclaw/kernel";
4
+ import { AccessManager, AppDataDeleteResult, AppDataEntry, AppDataList, AppDataManager, AppPackageList, AppPackageManager, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationStatus, AppPackageOperationView, AppPackageView, InboxDeliveryManager, NextclawKernel, PanelAppAgentCapability, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppClientGrant, PanelAppEntry, PanelAppList, PanelAppManager, PanelAppPreferencesUpdate, PreferenceJsonValue, PreferenceManager, ProjectRecord, ProjectTemplate, ProjectTemplateId, ServiceAction, ServiceActionGrant, ServiceActionInvokeResult, ServiceAppDeleteResult, ServiceAppList, ServiceAppManager, ServiceAppRecord } from "@nextclaw/kernel";
5
5
  import { FSWatcher } from "node:fs";
6
6
  import * as NextclawCore from "@nextclaw/core";
7
7
  import { Config, ConfigActionExecuteRequest as ConfigActionExecuteRequest$1, ConfigActionExecuteResult as ConfigActionExecuteResult$1, ExtensionChannelBinding, ExtensionUiMetadata, ModelThinkingCapability, ThinkingLevel } from "@nextclaw/core";
@@ -789,6 +789,24 @@ type PreferenceDeleteResult = {
789
789
  deleted: boolean;
790
790
  };
791
791
  //#endregion
792
+ //#region ../nextclaw-app-runtime/dist/types/app-bundle.types.d.ts
793
+ //#region src/types/app-bundle.types.d.ts
794
+ type AppDistributionMode = "bundle" | "source";
795
+ //#endregion
796
+ //#region ../nextclaw-app-runtime/dist/types/app-manifest.types.d.ts
797
+ //#region src/types/app-manifest.types.d.ts
798
+ type AppDocumentAccessMode = "read" | "read-write";
799
+ type AppRuntimeProfile = "panel-only" | "wasi" | "native-process";
800
+ type AppRuntimeIsolation = "sandboxed" | "host-mediated" | "full-user";
801
+ type AppComponentKind = "panel" | "service";
802
+ //#endregion
803
+ //#region ../nextclaw-app-runtime/dist/types/app-storage.types.d.ts
804
+ type AppStorageLayout = "legacy" | "instance-v1";
805
+ //#endregion
806
+ //#region ../nextclaw-app-runtime/dist/types/app-registry.types.d.ts
807
+ //#region src/types/app-registry.types.d.ts
808
+ type AppInstallSourceKind = "bundle" | "directory" | "registry";
809
+ //#endregion
792
810
  //#region src/features/service-apps/controllers/service-apps.controller.d.ts
793
811
  declare class ServiceAppsRoutesController {
794
812
  private readonly params;
@@ -822,6 +840,20 @@ declare class ServiceAppsRoutesController {
822
840
  packageVersion?: string | undefined;
823
841
  packageDirectory?: string | undefined;
824
842
  dataDirectory?: string | undefined;
843
+ instanceId?: string | undefined;
844
+ storage?: {
845
+ layout: AppStorageLayout;
846
+ layoutVersion: 1;
847
+ instanceId: string;
848
+ instanceDirectory: string;
849
+ dataDirectory: string;
850
+ configDirectory: string;
851
+ stateDirectory: string;
852
+ cacheDirectory: string;
853
+ temporaryDirectory: string;
854
+ logsDirectory: string;
855
+ } | undefined;
856
+ isolation?: AppRuntimeIsolation | undefined;
825
857
  }[];
826
858
  };
827
859
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">>;
@@ -848,6 +880,20 @@ declare class ServiceAppsRoutesController {
848
880
  packageVersion?: string | undefined;
849
881
  packageDirectory?: string | undefined;
850
882
  dataDirectory?: string | undefined;
883
+ instanceId?: string | undefined;
884
+ storage?: {
885
+ layout: AppStorageLayout;
886
+ layoutVersion: 1;
887
+ instanceId: string;
888
+ instanceDirectory: string;
889
+ dataDirectory: string;
890
+ configDirectory: string;
891
+ stateDirectory: string;
892
+ cacheDirectory: string;
893
+ temporaryDirectory: string;
894
+ logsDirectory: string;
895
+ } | undefined;
896
+ isolation?: AppRuntimeIsolation | undefined;
851
897
  };
852
898
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">) | (Response & _$hono.TypedResponse<{
853
899
  ok: boolean;
@@ -1040,6 +1086,20 @@ declare class ServiceAppsRoutesController {
1040
1086
  packageVersion?: string | undefined;
1041
1087
  packageDirectory?: string | undefined;
1042
1088
  dataDirectory?: string | undefined;
1089
+ instanceId?: string | undefined;
1090
+ storage?: {
1091
+ layout: AppStorageLayout;
1092
+ layoutVersion: 1;
1093
+ instanceId: string;
1094
+ instanceDirectory: string;
1095
+ dataDirectory: string;
1096
+ configDirectory: string;
1097
+ stateDirectory: string;
1098
+ cacheDirectory: string;
1099
+ temporaryDirectory: string;
1100
+ logsDirectory: string;
1101
+ } | undefined;
1102
+ isolation?: AppRuntimeIsolation | undefined;
1043
1103
  };
1044
1104
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">) | (Response & _$hono.TypedResponse<{
1045
1105
  ok: boolean;
@@ -1065,6 +1125,7 @@ declare class ServiceAppsRoutesController {
1065
1125
  data: {
1066
1126
  deleted: true;
1067
1127
  id: string;
1128
+ dataRemoved: boolean;
1068
1129
  };
1069
1130
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">)>;
1070
1131
  private requireBridgeSession;
@@ -2291,7 +2352,7 @@ type UiExtensionHost = {
2291
2352
  getRuntimeStatus?: () => ReturnType<NextclawKernel["extensions"]["getRuntimeStatus"]>;
2292
2353
  getUiMetadata: () => ExtensionUiMetadata[];
2293
2354
  };
2294
- type UiKernelHost = Pick<NextclawKernel, "assetStore" | "eventBus" | "ingress" | "inboxDeliveryManager" | "systemObjectReferenceManager" | "isSessionRunning" | "listSessionTypes" | "agentRunRequestManager" | "agentContextWindowManager" | "appPackageManager" | "llmProviders" | "providerModelCatalog" | "sessionManager" | "sessionRunManager" | "panelAppManager" | "preferenceManager" | "projectManager" | "serviceAppManager" | "sessionContextCompactionManager"> & {
2355
+ type UiKernelHost = Pick<NextclawKernel, "assetStore" | "eventBus" | "ingress" | "inboxDeliveryManager" | "systemObjectReferenceManager" | "isSessionRunning" | "listSessionTypes" | "agentRunRequestManager" | "agentContextWindowManager" | "appPackageManager" | "appDataManager" | "llmProviders" | "providerModelCatalog" | "sessionManager" | "sessionRunManager" | "panelAppManager" | "preferenceManager" | "projectManager" | "serviceAppManager" | "sessionContextCompactionManager"> & {
2295
2356
  accessManager?: NextclawKernel["accessManager"];
2296
2357
  };
2297
2358
  type UiCronHost = {
@@ -3533,19 +3594,6 @@ declare function updateChannel(configPath: string, channelName: string, patch: R
3533
3594
  declare function updateRuntime(configPath: string, patch: RuntimeConfigUpdate): Pick<ConfigView, "companion" | "agents" | "bindings" | "session">;
3534
3595
  declare function updateSecrets(configPath: string, patch: SecretsConfigUpdate): SecretsView;
3535
3596
  //#endregion
3536
- //#region ../nextclaw-app-runtime/dist/types/app-bundle.types.d.ts
3537
- //#region src/types/app-bundle.types.d.ts
3538
- type AppDistributionMode = "bundle" | "source";
3539
- //#endregion
3540
- //#region ../nextclaw-app-runtime/dist/types/app-manifest.types.d.ts
3541
- //#region src/types/app-manifest.types.d.ts
3542
- type AppDocumentAccessMode = "read" | "read-write";
3543
- type AppComponentKind = "panel" | "service";
3544
- //#endregion
3545
- //#region ../nextclaw-app-runtime/dist/types/app-registry.types.d.ts
3546
- //#region src/types/app-registry.types.d.ts
3547
- type AppInstallSourceKind = "bundle" | "directory" | "registry";
3548
- //#endregion
3549
3597
  //#region src/features/app-packages/controllers/app-packages.controller.d.ts
3550
3598
  declare class AppPackagesRoutesController {
3551
3599
  private readonly manager;
@@ -3577,6 +3625,21 @@ declare class AppPackagesRoutesController {
3577
3625
  sourcePath: string;
3578
3626
  manifestPath: string;
3579
3627
  dataDirectory: string;
3628
+ instanceId: string;
3629
+ storage: {
3630
+ layout: AppStorageLayout;
3631
+ layoutVersion: 1;
3632
+ instanceId: string;
3633
+ instanceDirectory: string;
3634
+ dataDirectory: string;
3635
+ configDirectory: string;
3636
+ stateDirectory: string;
3637
+ cacheDirectory: string;
3638
+ temporaryDirectory: string;
3639
+ logsDirectory: string;
3640
+ };
3641
+ runtimeProfile: AppRuntimeProfile;
3642
+ isolation: AppRuntimeIsolation;
3580
3643
  title?: string | undefined;
3581
3644
  description?: string | undefined;
3582
3645
  icon?: string | undefined;
@@ -3588,6 +3651,30 @@ declare class AppPackagesRoutesController {
3588
3651
  } | undefined;
3589
3652
  }[];
3590
3653
  dataDirectory: string;
3654
+ instanceId: string;
3655
+ storage: {
3656
+ layout: AppStorageLayout;
3657
+ layoutVersion: 1;
3658
+ instanceId: string;
3659
+ instanceDirectory: string;
3660
+ dataDirectory: string;
3661
+ configDirectory: string;
3662
+ stateDirectory: string;
3663
+ cacheDirectory: string;
3664
+ temporaryDirectory: string;
3665
+ logsDirectory: string;
3666
+ };
3667
+ storageUsage: {
3668
+ dataBytes: number;
3669
+ configBytes: number;
3670
+ stateBytes: number;
3671
+ cacheBytes: number;
3672
+ temporaryBytes: number;
3673
+ logsBytes: number;
3674
+ totalBytes: number;
3675
+ };
3676
+ runtimeProfile: AppRuntimeProfile;
3677
+ isolation: AppRuntimeIsolation;
3591
3678
  }[];
3592
3679
  };
3593
3680
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">>;
@@ -3618,6 +3705,15 @@ declare class AppPackagesRoutesController {
3618
3705
  };
3619
3706
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">>;
3620
3707
  readonly startInstallOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3708
+ ok: boolean;
3709
+ error: {
3710
+ code: string;
3711
+ message: string;
3712
+ details: {
3713
+ [x: string]: _$hono_utils_types0.JSONValue;
3714
+ } | undefined;
3715
+ };
3716
+ }, 400 | 404 | 409, "json">) | (Response & _$hono.TypedResponse<{
3621
3717
  ok: boolean;
3622
3718
  data: {
3623
3719
  id: string;
@@ -3640,7 +3736,8 @@ declare class AppPackagesRoutesController {
3640
3736
  dataRemoved?: boolean | undefined;
3641
3737
  } | undefined;
3642
3738
  };
3643
- }, 202, "json">) | (Response & _$hono.TypedResponse<{
3739
+ }, 202, "json">)>;
3740
+ readonly startUpdateOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3644
3741
  ok: boolean;
3645
3742
  error: {
3646
3743
  code: string;
@@ -3649,8 +3746,7 @@ declare class AppPackagesRoutesController {
3649
3746
  [x: string]: _$hono_utils_types0.JSONValue;
3650
3747
  } | undefined;
3651
3748
  };
3652
- }, 400 | 404 | 409, "json">)>;
3653
- readonly startUpdateOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3749
+ }, 400 | 404 | 409, "json">) | (Response & _$hono.TypedResponse<{
3654
3750
  ok: boolean;
3655
3751
  data: {
3656
3752
  id: string;
@@ -3673,7 +3769,8 @@ declare class AppPackagesRoutesController {
3673
3769
  dataRemoved?: boolean | undefined;
3674
3770
  } | undefined;
3675
3771
  };
3676
- }, 202, "json">) | (Response & _$hono.TypedResponse<{
3772
+ }, 202, "json">)>;
3773
+ readonly startRollbackOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3677
3774
  ok: boolean;
3678
3775
  error: {
3679
3776
  code: string;
@@ -3682,8 +3779,7 @@ declare class AppPackagesRoutesController {
3682
3779
  [x: string]: _$hono_utils_types0.JSONValue;
3683
3780
  } | undefined;
3684
3781
  };
3685
- }, 400 | 404 | 409, "json">)>;
3686
- readonly startRollbackOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3782
+ }, 400 | 404 | 409, "json">) | (Response & _$hono.TypedResponse<{
3687
3783
  ok: boolean;
3688
3784
  data: {
3689
3785
  id: string;
@@ -3706,7 +3802,8 @@ declare class AppPackagesRoutesController {
3706
3802
  dataRemoved?: boolean | undefined;
3707
3803
  } | undefined;
3708
3804
  };
3709
- }, 202, "json">) | (Response & _$hono.TypedResponse<{
3805
+ }, 202, "json">)>;
3806
+ readonly startUninstallOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3710
3807
  ok: boolean;
3711
3808
  error: {
3712
3809
  code: string;
@@ -3715,8 +3812,7 @@ declare class AppPackagesRoutesController {
3715
3812
  [x: string]: _$hono_utils_types0.JSONValue;
3716
3813
  } | undefined;
3717
3814
  };
3718
- }, 400 | 404 | 409, "json">)>;
3719
- readonly startUninstallOperation: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3815
+ }, 400 | 404 | 409, "json">) | (Response & _$hono.TypedResponse<{
3720
3816
  ok: boolean;
3721
3817
  data: {
3722
3818
  id: string;
@@ -3739,16 +3835,7 @@ declare class AppPackagesRoutesController {
3739
3835
  dataRemoved?: boolean | undefined;
3740
3836
  } | undefined;
3741
3837
  };
3742
- }, 202, "json">) | (Response & _$hono.TypedResponse<{
3743
- ok: boolean;
3744
- error: {
3745
- code: string;
3746
- message: string;
3747
- details: {
3748
- [x: string]: _$hono_utils_types0.JSONValue;
3749
- } | undefined;
3750
- };
3751
- }, 400 | 404 | 409, "json">)>;
3838
+ }, 202, "json">)>;
3752
3839
  readonly get: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
3753
3840
  ok: boolean;
3754
3841
  error: {
@@ -3784,6 +3871,21 @@ declare class AppPackagesRoutesController {
3784
3871
  sourcePath: string;
3785
3872
  manifestPath: string;
3786
3873
  dataDirectory: string;
3874
+ instanceId: string;
3875
+ storage: {
3876
+ layout: AppStorageLayout;
3877
+ layoutVersion: 1;
3878
+ instanceId: string;
3879
+ instanceDirectory: string;
3880
+ dataDirectory: string;
3881
+ configDirectory: string;
3882
+ stateDirectory: string;
3883
+ cacheDirectory: string;
3884
+ temporaryDirectory: string;
3885
+ logsDirectory: string;
3886
+ };
3887
+ runtimeProfile: AppRuntimeProfile;
3888
+ isolation: AppRuntimeIsolation;
3787
3889
  title?: string | undefined;
3788
3890
  description?: string | undefined;
3789
3891
  icon?: string | undefined;
@@ -3795,6 +3897,30 @@ declare class AppPackagesRoutesController {
3795
3897
  } | undefined;
3796
3898
  }[];
3797
3899
  dataDirectory: string;
3900
+ instanceId: string;
3901
+ storage: {
3902
+ layout: AppStorageLayout;
3903
+ layoutVersion: 1;
3904
+ instanceId: string;
3905
+ instanceDirectory: string;
3906
+ dataDirectory: string;
3907
+ configDirectory: string;
3908
+ stateDirectory: string;
3909
+ cacheDirectory: string;
3910
+ temporaryDirectory: string;
3911
+ logsDirectory: string;
3912
+ };
3913
+ storageUsage: {
3914
+ dataBytes: number;
3915
+ configBytes: number;
3916
+ stateBytes: number;
3917
+ cacheBytes: number;
3918
+ temporaryBytes: number;
3919
+ logsBytes: number;
3920
+ totalBytes: number;
3921
+ };
3922
+ runtimeProfile: AppRuntimeProfile;
3923
+ isolation: AppRuntimeIsolation;
3798
3924
  };
3799
3925
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">)>;
3800
3926
  readonly install: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
@@ -3832,6 +3958,21 @@ declare class AppPackagesRoutesController {
3832
3958
  sourcePath: string;
3833
3959
  manifestPath: string;
3834
3960
  dataDirectory: string;
3961
+ instanceId: string;
3962
+ storage: {
3963
+ layout: AppStorageLayout;
3964
+ layoutVersion: 1;
3965
+ instanceId: string;
3966
+ instanceDirectory: string;
3967
+ dataDirectory: string;
3968
+ configDirectory: string;
3969
+ stateDirectory: string;
3970
+ cacheDirectory: string;
3971
+ temporaryDirectory: string;
3972
+ logsDirectory: string;
3973
+ };
3974
+ runtimeProfile: AppRuntimeProfile;
3975
+ isolation: AppRuntimeIsolation;
3835
3976
  title?: string | undefined;
3836
3977
  description?: string | undefined;
3837
3978
  icon?: string | undefined;
@@ -3843,6 +3984,30 @@ declare class AppPackagesRoutesController {
3843
3984
  } | undefined;
3844
3985
  }[];
3845
3986
  dataDirectory: string;
3987
+ instanceId: string;
3988
+ storage: {
3989
+ layout: AppStorageLayout;
3990
+ layoutVersion: 1;
3991
+ instanceId: string;
3992
+ instanceDirectory: string;
3993
+ dataDirectory: string;
3994
+ configDirectory: string;
3995
+ stateDirectory: string;
3996
+ cacheDirectory: string;
3997
+ temporaryDirectory: string;
3998
+ logsDirectory: string;
3999
+ };
4000
+ storageUsage: {
4001
+ dataBytes: number;
4002
+ configBytes: number;
4003
+ stateBytes: number;
4004
+ cacheBytes: number;
4005
+ temporaryBytes: number;
4006
+ logsBytes: number;
4007
+ totalBytes: number;
4008
+ };
4009
+ runtimeProfile: AppRuntimeProfile;
4010
+ isolation: AppRuntimeIsolation;
3846
4011
  };
3847
4012
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">)>;
3848
4013
  readonly enable: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
@@ -3880,6 +4045,21 @@ declare class AppPackagesRoutesController {
3880
4045
  sourcePath: string;
3881
4046
  manifestPath: string;
3882
4047
  dataDirectory: string;
4048
+ instanceId: string;
4049
+ storage: {
4050
+ layout: AppStorageLayout;
4051
+ layoutVersion: 1;
4052
+ instanceId: string;
4053
+ instanceDirectory: string;
4054
+ dataDirectory: string;
4055
+ configDirectory: string;
4056
+ stateDirectory: string;
4057
+ cacheDirectory: string;
4058
+ temporaryDirectory: string;
4059
+ logsDirectory: string;
4060
+ };
4061
+ runtimeProfile: AppRuntimeProfile;
4062
+ isolation: AppRuntimeIsolation;
3883
4063
  title?: string | undefined;
3884
4064
  description?: string | undefined;
3885
4065
  icon?: string | undefined;
@@ -3891,6 +4071,30 @@ declare class AppPackagesRoutesController {
3891
4071
  } | undefined;
3892
4072
  }[];
3893
4073
  dataDirectory: string;
4074
+ instanceId: string;
4075
+ storage: {
4076
+ layout: AppStorageLayout;
4077
+ layoutVersion: 1;
4078
+ instanceId: string;
4079
+ instanceDirectory: string;
4080
+ dataDirectory: string;
4081
+ configDirectory: string;
4082
+ stateDirectory: string;
4083
+ cacheDirectory: string;
4084
+ temporaryDirectory: string;
4085
+ logsDirectory: string;
4086
+ };
4087
+ storageUsage: {
4088
+ dataBytes: number;
4089
+ configBytes: number;
4090
+ stateBytes: number;
4091
+ cacheBytes: number;
4092
+ temporaryBytes: number;
4093
+ logsBytes: number;
4094
+ totalBytes: number;
4095
+ };
4096
+ runtimeProfile: AppRuntimeProfile;
4097
+ isolation: AppRuntimeIsolation;
3894
4098
  };
3895
4099
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">)>;
3896
4100
  readonly disable: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
@@ -3928,6 +4132,21 @@ declare class AppPackagesRoutesController {
3928
4132
  sourcePath: string;
3929
4133
  manifestPath: string;
3930
4134
  dataDirectory: string;
4135
+ instanceId: string;
4136
+ storage: {
4137
+ layout: AppStorageLayout;
4138
+ layoutVersion: 1;
4139
+ instanceId: string;
4140
+ instanceDirectory: string;
4141
+ dataDirectory: string;
4142
+ configDirectory: string;
4143
+ stateDirectory: string;
4144
+ cacheDirectory: string;
4145
+ temporaryDirectory: string;
4146
+ logsDirectory: string;
4147
+ };
4148
+ runtimeProfile: AppRuntimeProfile;
4149
+ isolation: AppRuntimeIsolation;
3931
4150
  title?: string | undefined;
3932
4151
  description?: string | undefined;
3933
4152
  icon?: string | undefined;
@@ -3939,6 +4158,30 @@ declare class AppPackagesRoutesController {
3939
4158
  } | undefined;
3940
4159
  }[];
3941
4160
  dataDirectory: string;
4161
+ instanceId: string;
4162
+ storage: {
4163
+ layout: AppStorageLayout;
4164
+ layoutVersion: 1;
4165
+ instanceId: string;
4166
+ instanceDirectory: string;
4167
+ dataDirectory: string;
4168
+ configDirectory: string;
4169
+ stateDirectory: string;
4170
+ cacheDirectory: string;
4171
+ temporaryDirectory: string;
4172
+ logsDirectory: string;
4173
+ };
4174
+ storageUsage: {
4175
+ dataBytes: number;
4176
+ configBytes: number;
4177
+ stateBytes: number;
4178
+ cacheBytes: number;
4179
+ temporaryBytes: number;
4180
+ logsBytes: number;
4181
+ totalBytes: number;
4182
+ };
4183
+ runtimeProfile: AppRuntimeProfile;
4184
+ isolation: AppRuntimeIsolation;
3942
4185
  };
3943
4186
  }, _$hono_utils_http_status0.ContentfulStatusCode, "json">)>;
3944
4187
  readonly update: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
@@ -3977,6 +4220,21 @@ declare class AppPackagesRoutesController {
3977
4220
  sourcePath: string;
3978
4221
  manifestPath: string;
3979
4222
  dataDirectory: string;
4223
+ instanceId: string;
4224
+ storage: {
4225
+ layout: AppStorageLayout;
4226
+ layoutVersion: 1;
4227
+ instanceId: string;
4228
+ instanceDirectory: string;
4229
+ dataDirectory: string;
4230
+ configDirectory: string;
4231
+ stateDirectory: string;
4232
+ cacheDirectory: string;
4233
+ temporaryDirectory: string;
4234
+ logsDirectory: string;
4235
+ };
4236
+ runtimeProfile: AppRuntimeProfile;
4237
+ isolation: AppRuntimeIsolation;
3980
4238
  title?: string | undefined;
3981
4239
  description?: string | undefined;
3982
4240
  icon?: string | undefined;
@@ -3988,6 +4246,30 @@ declare class AppPackagesRoutesController {
3988
4246
  } | undefined;
3989
4247
  }[];
3990
4248
  dataDirectory: string;
4249
+ instanceId: string;
4250
+ storage: {
4251
+ layout: AppStorageLayout;
4252
+ layoutVersion: 1;
4253
+ instanceId: string;
4254
+ instanceDirectory: string;
4255
+ dataDirectory: string;
4256
+ configDirectory: string;
4257
+ stateDirectory: string;
4258
+ cacheDirectory: string;
4259
+ temporaryDirectory: string;
4260
+ logsDirectory: string;
4261
+ };
4262
+ storageUsage: {
4263
+ dataBytes: number;
4264
+ configBytes: number;
4265
+ stateBytes: number;
4266
+ cacheBytes: number;
4267
+ temporaryBytes: number;
4268
+ logsBytes: number;
4269
+ totalBytes: number;
4270
+ };
4271
+ runtimeProfile: AppRuntimeProfile;
4272
+ isolation: AppRuntimeIsolation;
3991
4273
  };
3992
4274
  result: {
3993
4275
  appId: string;
@@ -3995,6 +4277,26 @@ declare class AppPackagesRoutesController {
3995
4277
  version: string;
3996
4278
  installDirectory: string;
3997
4279
  dataDirectory: string;
4280
+ instance: {
4281
+ id: string;
4282
+ publisherId?: string | undefined;
4283
+ storage: {
4284
+ layout: AppStorageLayout;
4285
+ layoutVersion: 1;
4286
+ instanceId: string;
4287
+ instanceDirectory: string;
4288
+ dataDirectory: string;
4289
+ configDirectory: string;
4290
+ stateDirectory: string;
4291
+ cacheDirectory: string;
4292
+ temporaryDirectory: string;
4293
+ logsDirectory: string;
4294
+ };
4295
+ dataSchemaVersion: number;
4296
+ createdAt: string;
4297
+ migratedAt?: string | undefined;
4298
+ legacyDataDirectory?: string | undefined;
4299
+ };
3998
4300
  sourceKind: AppInstallSourceKind;
3999
4301
  distributionMode?: AppDistributionMode | undefined;
4000
4302
  sourceRef: string;
@@ -4010,6 +4312,7 @@ declare class AppPackagesRoutesController {
4010
4312
  } | undefined;
4011
4313
  capabilities?: {
4012
4314
  hostBridge?: boolean | undefined;
4315
+ nativeProcess?: boolean | undefined;
4013
4316
  } | undefined;
4014
4317
  };
4015
4318
  registryUrl?: string | undefined;
@@ -4071,6 +4374,21 @@ declare class AppPackagesRoutesController {
4071
4374
  sourcePath: string;
4072
4375
  manifestPath: string;
4073
4376
  dataDirectory: string;
4377
+ instanceId: string;
4378
+ storage: {
4379
+ layout: AppStorageLayout;
4380
+ layoutVersion: 1;
4381
+ instanceId: string;
4382
+ instanceDirectory: string;
4383
+ dataDirectory: string;
4384
+ configDirectory: string;
4385
+ stateDirectory: string;
4386
+ cacheDirectory: string;
4387
+ temporaryDirectory: string;
4388
+ logsDirectory: string;
4389
+ };
4390
+ runtimeProfile: AppRuntimeProfile;
4391
+ isolation: AppRuntimeIsolation;
4074
4392
  title?: string | undefined;
4075
4393
  description?: string | undefined;
4076
4394
  icon?: string | undefined;
@@ -4082,6 +4400,30 @@ declare class AppPackagesRoutesController {
4082
4400
  } | undefined;
4083
4401
  }[];
4084
4402
  dataDirectory: string;
4403
+ instanceId: string;
4404
+ storage: {
4405
+ layout: AppStorageLayout;
4406
+ layoutVersion: 1;
4407
+ instanceId: string;
4408
+ instanceDirectory: string;
4409
+ dataDirectory: string;
4410
+ configDirectory: string;
4411
+ stateDirectory: string;
4412
+ cacheDirectory: string;
4413
+ temporaryDirectory: string;
4414
+ logsDirectory: string;
4415
+ };
4416
+ storageUsage: {
4417
+ dataBytes: number;
4418
+ configBytes: number;
4419
+ stateBytes: number;
4420
+ cacheBytes: number;
4421
+ temporaryBytes: number;
4422
+ logsBytes: number;
4423
+ totalBytes: number;
4424
+ };
4425
+ runtimeProfile: AppRuntimeProfile;
4426
+ isolation: AppRuntimeIsolation;
4085
4427
  };
4086
4428
  result: {
4087
4429
  appId: string;
@@ -4112,6 +4454,75 @@ declare class AppPackagesRoutesController {
4112
4454
  private handleError;
4113
4455
  }
4114
4456
  //#endregion
4457
+ //#region src/features/app-data/controllers/app-data.controller.d.ts
4458
+ declare class AppDataRoutesController {
4459
+ private readonly manager;
4460
+ constructor(manager: AppDataManager);
4461
+ readonly list: (c: Context) => Promise<Response & _$hono.TypedResponse<{
4462
+ ok: boolean;
4463
+ data: {
4464
+ entries: {
4465
+ id: string;
4466
+ appId: string;
4467
+ instanceId: string;
4468
+ publisherId?: string | undefined;
4469
+ displayName: string;
4470
+ source: _$_nextclaw_kernel0.AppDataSource;
4471
+ lifecycle: _$_nextclaw_kernel0.AppDataLifecycle;
4472
+ storage: {
4473
+ layout: AppStorageLayout;
4474
+ layoutVersion: 1;
4475
+ instanceId: string;
4476
+ instanceDirectory: string;
4477
+ dataDirectory: string;
4478
+ configDirectory: string;
4479
+ stateDirectory: string;
4480
+ cacheDirectory: string;
4481
+ temporaryDirectory: string;
4482
+ logsDirectory: string;
4483
+ };
4484
+ usage: {
4485
+ dataBytes: number;
4486
+ configBytes: number;
4487
+ stateBytes: number;
4488
+ cacheBytes: number;
4489
+ temporaryBytes: number;
4490
+ logsBytes: number;
4491
+ totalBytes: number;
4492
+ };
4493
+ createdAt: string;
4494
+ migratedAt?: string | undefined;
4495
+ actions: {
4496
+ deleteRetainedData: boolean;
4497
+ };
4498
+ }[];
4499
+ diagnostics: {
4500
+ source: _$_nextclaw_kernel0.AppDataSource;
4501
+ instanceDirectory: string;
4502
+ message: string;
4503
+ }[];
4504
+ };
4505
+ }, _$hono_utils_http_status0.ContentfulStatusCode, "json">>;
4506
+ readonly deleteRetained: (c: Context) => Promise<(Response & _$hono.TypedResponse<{
4507
+ ok: boolean;
4508
+ data: {
4509
+ deleted: true;
4510
+ id: string;
4511
+ appId: string;
4512
+ instanceId: string;
4513
+ };
4514
+ }, _$hono_utils_http_status0.ContentfulStatusCode, "json">) | (Response & _$hono.TypedResponse<{
4515
+ ok: boolean;
4516
+ error: {
4517
+ code: string;
4518
+ message: string;
4519
+ details: {
4520
+ [x: string]: _$hono_utils_types0.JSONValue;
4521
+ } | undefined;
4522
+ };
4523
+ }, 400 | 404 | 409, "json">)>;
4524
+ }
4525
+ //#endregion
4115
4526
  //#region src/features/inbox-deliveries/controllers/inbox-deliveries.controller.d.ts
4116
4527
  declare class InboxDeliveriesRoutesController {
4117
4528
  private readonly manager;
@@ -4206,5 +4617,5 @@ declare class InboxDeliveriesRoutesController {
4206
4617
  private handleManagerAction;
4207
4618
  }
4208
4619
  //#endregion
4209
- export { AgentBindingView, type AgentCreateRequest, type AgentDeleteResult, type AgentProfileView, type AgentUpdateRequest, ApiError, ApiResponse, AppMetaView, type AppPackageList, type AppPackageOperationInput, type AppPackageOperationList, type AppPackageOperationStatus, type AppPackageOperationView, type AppPackageView, AppPackagesRoutesController, AuthEnabledUpdateRequest, AuthLoginRequest, AuthPasswordUpdateRequest, AuthSetupRequest, AuthStatusView, BindingPeerView, BochaFreshnessValue, BootstrapPhase, BootstrapRemoteState, BootstrapStageState, BootstrapStatusView, ChannelAuthConnectRequest, ChannelAuthConnectResult, ChannelAuthPollRequest, ChannelAuthPollResult, ChannelAuthStartRequest, ChannelAuthStartResult, ChannelSpecView, type ChatSessionTypeCtaView, type ChatSessionTypeOptionView, type ChatSessionTypesView, ConfigActionExecuteRequest, ConfigActionExecuteResult, ConfigActionManifest, ConfigActionType, ConfigMetaView, ConfigRoutesController, ConfigSchemaResponse, ConfigUiHint, ConfigUiHints, ConfigView, CronActionResult, CronCreateRequest, CronCreateResult, CronEnableRequest, CronJobStateView, CronJobView, CronListQuery, CronListStatus, CronListSummaryView, CronListView, CronPayloadView, CronRunRequest, CronScheduleView, InboxDeliveriesRoutesController, MarketplaceApiConfig, MarketplaceInstallKind, MarketplaceInstallRequest, MarketplaceInstallResult, MarketplaceInstallSkillParams, MarketplaceInstallSpec, MarketplaceInstalledRecord, MarketplaceInstalledView, MarketplaceInstaller, MarketplaceItemSummary, MarketplaceItemType, MarketplaceItemView, MarketplaceListView, MarketplaceLocalizedTextMap, MarketplaceManageAction, MarketplaceManageRequest, MarketplaceManageResult, MarketplaceMcpContentView, MarketplaceMcpDoctorResult, MarketplaceMcpInstallKind, MarketplaceMcpInstallRequest, MarketplaceMcpInstallResult, MarketplaceMcpInstallSpec, MarketplaceMcpManageAction, MarketplaceMcpManageRequest, MarketplaceMcpManageResult, MarketplaceMcpTemplateInput, MarketplaceRecommendationView, MarketplaceSceneView, MarketplaceScenesView, MarketplaceSkillContentView, MarketplaceSkillInstallKind, MarketplaceSkillInstallRequest, MarketplaceSkillInstallResult, MarketplaceSkillManageAction, MarketplaceSkillManageRequest, MarketplaceSkillManageResult, MarketplaceSort, NcpAssetRoutesController, NcpSessionContextCompactionView, NcpSessionSkillsView, PanelAppAgentCapabilityView, PanelAppAgentGenerateObjectRequestView, PanelAppAgentGenerateObjectResultView, PanelAppAgentSendRequestView, PanelAppAgentSendResultView, PanelAppBridgeSessionCreateRequest, PanelAppBridgeSessionView, PanelAppCapabilityGrantView, PanelAppClientGrantView, PanelAppDeleteResultView, PanelAppEntryView, PanelAppListView, PanelAppPreferencesUpdateView, PanelAppsRoutesController, PreferenceDeleteResult, PreferenceEntryView, PreferenceUpdateRequest, PreferencesRoutesController, type ProjectAddExistingRequest, type ProjectCreateRequest, type ProjectListView, type ProjectTemplateView, type ProjectView, ProviderAuthImportResult, ProviderAuthPollRequest, ProviderAuthPollResult, ProviderAuthStartRequest, ProviderAuthStartResult, ProviderConfigUpdate, ProviderConfigView, ProviderConnectionTestRequest, ProviderConnectionTestResult, ProviderCreateRequest, ProviderCreateResult, ProviderDeleteResult, ProviderInstanceView, ProviderModelCatalogView, ProviderModelDiscoveryRequest, ProviderModelDiscoveryResult, ProviderTemplateView, ProviderTemplatesView, ProvidersView, RemoteAccessView, RemoteAccountProfileUpdateRequest, RemoteAccountView, RemoteBrowserAuthPollRequest, RemoteBrowserAuthPollResult, RemoteBrowserAuthStartRequest, RemoteBrowserAuthStartResult, RemoteConnectionDiagnosticsView, RemoteDisconnectView, RemoteDoctorCheckView, RemoteDoctorView, RemoteLoginRequest, RemoteRuntimeView, RemoteServiceAction, RemoteServiceActionResult, RemoteServiceView, RemoteSettingsUpdateRequest, RemoteSettingsView, RuntimeActionCapability, RuntimeActionImpact, RuntimeConfigUpdate, RuntimeControlAction, RuntimeControlActionResult, RuntimeControlEnvironment, RuntimeControlRoutesController, RuntimeControlView, RuntimeEntryView, RuntimeLifecycleState, RuntimePendingRestart, RuntimeServiceState, SearchConfigUpdate, SearchConfigView, SearchProviderConfigView, SearchProviderName, SearchProviderSpecView, SecretProviderEnvView, SecretProviderExecView, SecretProviderFileView, SecretProviderView, SecretRefView, SecretSourceView, SecretsConfigUpdate, SecretsView, ServerPathBreadcrumbView, ServerPathBrowseView, ServerPathDirectoryCreateRequest, ServerPathDirectoryCreateView, ServerPathEntryDeleteView, ServerPathEntryRenameRequest, ServerPathEntryRenameView, ServerPathEntryView, ServerPathFileCreateRequest, ServerPathFileCreateView, ServerPathFilesUploadView, ServerPathLocationView, ServerPathReadView, ServerPathSearchEntryView, ServerPathSearchView, ServerPathWatchRequest, ServerPathWatchView, ServiceActionGrantBatchRequestView, ServiceActionGrantListView, ServiceActionGrantView, ServiceActionInvokeRequestView, ServiceActionInvokeResultView, ServiceActionListView, ServiceActionView, ServiceAppDeleteResultView, ServiceAppListView, ServiceAppRecordView, ServiceAppsRoutesController, SessionConfigView, SessionEntryView, SessionEventView, SessionHistoryView, SessionMessageView, SessionPatchUpdate, SessionSkillEntryView, SessionTypeDescribeParams, SessionsListView, TavilySearchDepthValue, UiNcpAssetPutView, UiNcpAssetService, UiNcpAssetView, UiNcpSessionListView, UiNcpSessionMessagesView, UiNcpSessionQueuedInputView, UiNcpSessionQueuedInputsView, UiNcpSessionService, UiNcpStoredAssetRecord, type UiRemoteAccessHost, type UiRouterOptions, type UiRuntimeControlHost, type UiRuntimeUpdateHost, UiServerEvent, UiServerHandle, buildConfigMeta, buildConfigSchemaView, buildConfigView, buildProviderTemplatesView, buildProvidersView, createProvider, createUiRouter, deleteProvider, ensureUiBridgeSecret, executeConfigAction, getUiBridgeSecretPath, loadConfigOrDefault, readUiBridgeSecret, startUiServer, updateChannel, updateModel, updateProvider, updateRuntime, updateSearch, updateSecrets };
4620
+ export { AgentBindingView, type AgentCreateRequest, type AgentDeleteResult, type AgentProfileView, type AgentUpdateRequest, ApiError, ApiResponse, type AppDataDeleteResult, type AppDataEntry, type AppDataList, AppDataRoutesController, AppMetaView, type AppPackageList, type AppPackageOperationInput, type AppPackageOperationList, type AppPackageOperationStatus, type AppPackageOperationView, type AppPackageView, AppPackagesRoutesController, AuthEnabledUpdateRequest, AuthLoginRequest, AuthPasswordUpdateRequest, AuthSetupRequest, AuthStatusView, BindingPeerView, BochaFreshnessValue, BootstrapPhase, BootstrapRemoteState, BootstrapStageState, BootstrapStatusView, ChannelAuthConnectRequest, ChannelAuthConnectResult, ChannelAuthPollRequest, ChannelAuthPollResult, ChannelAuthStartRequest, ChannelAuthStartResult, ChannelSpecView, type ChatSessionTypeCtaView, type ChatSessionTypeOptionView, type ChatSessionTypesView, ConfigActionExecuteRequest, ConfigActionExecuteResult, ConfigActionManifest, ConfigActionType, ConfigMetaView, ConfigRoutesController, ConfigSchemaResponse, ConfigUiHint, ConfigUiHints, ConfigView, CronActionResult, CronCreateRequest, CronCreateResult, CronEnableRequest, CronJobStateView, CronJobView, CronListQuery, CronListStatus, CronListSummaryView, CronListView, CronPayloadView, CronRunRequest, CronScheduleView, InboxDeliveriesRoutesController, MarketplaceApiConfig, MarketplaceInstallKind, MarketplaceInstallRequest, MarketplaceInstallResult, MarketplaceInstallSkillParams, MarketplaceInstallSpec, MarketplaceInstalledRecord, MarketplaceInstalledView, MarketplaceInstaller, MarketplaceItemSummary, MarketplaceItemType, MarketplaceItemView, MarketplaceListView, MarketplaceLocalizedTextMap, MarketplaceManageAction, MarketplaceManageRequest, MarketplaceManageResult, MarketplaceMcpContentView, MarketplaceMcpDoctorResult, MarketplaceMcpInstallKind, MarketplaceMcpInstallRequest, MarketplaceMcpInstallResult, MarketplaceMcpInstallSpec, MarketplaceMcpManageAction, MarketplaceMcpManageRequest, MarketplaceMcpManageResult, MarketplaceMcpTemplateInput, MarketplaceRecommendationView, MarketplaceSceneView, MarketplaceScenesView, MarketplaceSkillContentView, MarketplaceSkillInstallKind, MarketplaceSkillInstallRequest, MarketplaceSkillInstallResult, MarketplaceSkillManageAction, MarketplaceSkillManageRequest, MarketplaceSkillManageResult, MarketplaceSort, NcpAssetRoutesController, NcpSessionContextCompactionView, NcpSessionSkillsView, PanelAppAgentCapabilityView, PanelAppAgentGenerateObjectRequestView, PanelAppAgentGenerateObjectResultView, PanelAppAgentSendRequestView, PanelAppAgentSendResultView, PanelAppBridgeSessionCreateRequest, PanelAppBridgeSessionView, PanelAppCapabilityGrantView, PanelAppClientGrantView, PanelAppDeleteResultView, PanelAppEntryView, PanelAppListView, PanelAppPreferencesUpdateView, PanelAppsRoutesController, PreferenceDeleteResult, PreferenceEntryView, PreferenceUpdateRequest, PreferencesRoutesController, type ProjectAddExistingRequest, type ProjectCreateRequest, type ProjectListView, type ProjectTemplateView, type ProjectView, ProviderAuthImportResult, ProviderAuthPollRequest, ProviderAuthPollResult, ProviderAuthStartRequest, ProviderAuthStartResult, ProviderConfigUpdate, ProviderConfigView, ProviderConnectionTestRequest, ProviderConnectionTestResult, ProviderCreateRequest, ProviderCreateResult, ProviderDeleteResult, ProviderInstanceView, ProviderModelCatalogView, ProviderModelDiscoveryRequest, ProviderModelDiscoveryResult, ProviderTemplateView, ProviderTemplatesView, ProvidersView, RemoteAccessView, RemoteAccountProfileUpdateRequest, RemoteAccountView, RemoteBrowserAuthPollRequest, RemoteBrowserAuthPollResult, RemoteBrowserAuthStartRequest, RemoteBrowserAuthStartResult, RemoteConnectionDiagnosticsView, RemoteDisconnectView, RemoteDoctorCheckView, RemoteDoctorView, RemoteLoginRequest, RemoteRuntimeView, RemoteServiceAction, RemoteServiceActionResult, RemoteServiceView, RemoteSettingsUpdateRequest, RemoteSettingsView, RuntimeActionCapability, RuntimeActionImpact, RuntimeConfigUpdate, RuntimeControlAction, RuntimeControlActionResult, RuntimeControlEnvironment, RuntimeControlRoutesController, RuntimeControlView, RuntimeEntryView, RuntimeLifecycleState, RuntimePendingRestart, RuntimeServiceState, SearchConfigUpdate, SearchConfigView, SearchProviderConfigView, SearchProviderName, SearchProviderSpecView, SecretProviderEnvView, SecretProviderExecView, SecretProviderFileView, SecretProviderView, SecretRefView, SecretSourceView, SecretsConfigUpdate, SecretsView, ServerPathBreadcrumbView, ServerPathBrowseView, ServerPathDirectoryCreateRequest, ServerPathDirectoryCreateView, ServerPathEntryDeleteView, ServerPathEntryRenameRequest, ServerPathEntryRenameView, ServerPathEntryView, ServerPathFileCreateRequest, ServerPathFileCreateView, ServerPathFilesUploadView, ServerPathLocationView, ServerPathReadView, ServerPathSearchEntryView, ServerPathSearchView, ServerPathWatchRequest, ServerPathWatchView, ServiceActionGrantBatchRequestView, ServiceActionGrantListView, ServiceActionGrantView, ServiceActionInvokeRequestView, ServiceActionInvokeResultView, ServiceActionListView, ServiceActionView, ServiceAppDeleteResultView, ServiceAppListView, ServiceAppRecordView, ServiceAppsRoutesController, SessionConfigView, SessionEntryView, SessionEventView, SessionHistoryView, SessionMessageView, SessionPatchUpdate, SessionSkillEntryView, SessionTypeDescribeParams, SessionsListView, TavilySearchDepthValue, UiNcpAssetPutView, UiNcpAssetService, UiNcpAssetView, UiNcpSessionListView, UiNcpSessionMessagesView, UiNcpSessionQueuedInputView, UiNcpSessionQueuedInputsView, UiNcpSessionService, UiNcpStoredAssetRecord, type UiRemoteAccessHost, type UiRouterOptions, type UiRuntimeControlHost, type UiRuntimeUpdateHost, UiServerEvent, UiServerHandle, buildConfigMeta, buildConfigSchemaView, buildConfigView, buildProviderTemplatesView, buildProvidersView, createProvider, createUiRouter, deleteProvider, ensureUiBridgeSecret, executeConfigAction, getUiBridgeSecretPath, loadConfigOrDefault, readUiBridgeSecret, startUiServer, updateChannel, updateModel, updateProvider, updateRuntime, updateSearch, updateSecrets };
4210
4621
  //# sourceMappingURL=index.d.ts.map