@nextclaw/app-runtime 0.12.2 → 0.13.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 +7 -4
- package/dist/index.js +4 -1
- package/dist/package.js +1 -1
- package/dist/services/app-artifact-validation.service.d.ts +4 -0
- package/dist/services/app-artifact-validation.service.d.ts.map +1 -1
- package/dist/services/app-artifact-validation.service.js +16 -2
- package/dist/services/app-artifact-validation.service.js.map +1 -1
- package/dist/services/app-bundle.service.d.ts +4 -0
- package/dist/services/app-bundle.service.d.ts.map +1 -1
- package/dist/services/app-bundle.service.js +26 -4
- package/dist/services/app-bundle.service.js.map +1 -1
- package/dist/services/app-installation-lifecycle.service.js +1 -0
- package/dist/services/app-installation-lifecycle.service.js.map +1 -1
- package/dist/services/app-installation.service.d.ts +1 -0
- package/dist/services/app-installation.service.d.ts.map +1 -1
- package/dist/services/app-installation.service.js +10 -12
- package/dist/services/app-installation.service.js.map +1 -1
- package/dist/services/app-manifest.service.d.ts +3 -0
- package/dist/services/app-manifest.service.d.ts.map +1 -1
- package/dist/services/app-manifest.service.js +6 -0
- package/dist/services/app-manifest.service.js.map +1 -1
- package/dist/services/app-platform-target.service.d.ts +43 -0
- package/dist/services/app-platform-target.service.d.ts.map +1 -0
- package/dist/services/app-platform-target.service.js +164 -0
- package/dist/services/app-platform-target.service.js.map +1 -0
- package/dist/services/app-publish-artifact.service.d.ts +26 -0
- package/dist/services/app-publish-artifact.service.d.ts.map +1 -0
- package/dist/services/app-publish-artifact.service.js +55 -0
- package/dist/services/app-publish-artifact.service.js.map +1 -0
- package/dist/services/app-publish-validation.service.d.ts +15 -1
- package/dist/services/app-publish-validation.service.d.ts.map +1 -1
- package/dist/services/app-publish-validation.service.js +39 -1
- package/dist/services/app-publish-validation.service.js.map +1 -1
- package/dist/services/app-publish.service.d.ts +6 -1
- package/dist/services/app-publish.service.d.ts.map +1 -1
- package/dist/services/app-publish.service.js +43 -11
- package/dist/services/app-publish.service.js.map +1 -1
- package/dist/services/app-registry.service.d.ts +2 -0
- package/dist/services/app-registry.service.d.ts.map +1 -1
- package/dist/services/app-registry.service.js +4 -0
- package/dist/services/app-registry.service.js.map +1 -1
- package/dist/services/app-remote-registry-client.service.d.ts +7 -1
- package/dist/services/app-remote-registry-client.service.d.ts.map +1 -1
- package/dist/services/app-remote-registry-client.service.js +74 -7
- package/dist/services/app-remote-registry-client.service.js.map +1 -1
- package/dist/services/app-service-launch.service.d.ts +19 -0
- package/dist/services/app-service-launch.service.d.ts.map +1 -0
- package/dist/services/app-service-launch.service.js +54 -0
- package/dist/services/app-service-launch.service.js.map +1 -0
- package/dist/types/app-bundle.types.d.ts +3 -0
- package/dist/types/app-bundle.types.d.ts.map +1 -1
- package/dist/types/app-installation.types.d.ts +3 -1
- package/dist/types/app-installation.types.d.ts.map +1 -1
- package/dist/types/app-manifest.types.d.ts +32 -1
- package/dist/types/app-manifest.types.d.ts.map +1 -1
- package/dist/types/app-manifest.types.js.map +1 -1
- package/dist/types/app-publish.types.d.ts +26 -7
- package/dist/types/app-publish.types.d.ts.map +1 -1
- package/dist/types/app-publish.types.js.map +1 -1
- package/dist/types/app-registry.types.d.ts +2 -1
- package/dist/types/app-registry.types.d.ts.map +1 -1
- package/dist/types/app-remote-registry.types.d.ts +12 -2
- package/dist/types/app-remote-registry.types.d.ts.map +1 -1
- package/dist/types/app-remote-registry.types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-service-launch.service.js","names":[],"sources":["../../src/services/app-service-launch.service.ts"],"sourcesContent":["import { AppPlatformTargetService } from \"./app-platform-target.service.js\";\nimport type { AppNativeArtifactTarget } from \"#app-runtime/types/app-manifest.types.js\";\n\nexport type AppServiceLaunch = {\n command: string;\n args: string[];\n};\n\nexport class AppServiceLaunchService {\n constructor(\n private readonly platformTargetService = new AppPlatformTargetService(),\n ) {}\n\n resolve = (\n manifest: Record<string, unknown>,\n target?: AppNativeArtifactTarget,\n ): AppServiceLaunch => {\n const hasCommand = manifest.command !== undefined;\n const hasLaunch = manifest.launch !== undefined;\n if (hasCommand === hasLaunch) {\n throw new Error(\n \"service app 必须且只能声明 command/args 或 launch.targets 其中一种启动方式。\",\n );\n }\n if (hasCommand) {\n return {\n command: this.readRequiredString(manifest.command, \"service app command\"),\n args: this.readStringArray(manifest.args, \"service app args\"),\n };\n }\n\n const launch = this.assertObject(manifest.launch, \"service app launch\");\n if (!Array.isArray(launch.targets) || launch.targets.length === 0) {\n throw new Error(\"service app launch.targets 必须是非空数组。\");\n }\n const targets = launch.targets.map((rawTarget, index) => {\n const candidate = this.assertObject(\n rawTarget,\n `service app launch.targets[${index}]`,\n );\n const parsedTarget = this.platformTargetService.parseArtifactTarget(\n candidate.target,\n `service app launch.targets[${index}].target`,\n );\n if (parsedTarget.kind !== \"native\") {\n throw new Error(\n `service app launch.targets[${index}].target 必须是 native target。`,\n );\n }\n return {\n target: parsedTarget,\n command: this.readRequiredString(\n candidate.command,\n `service app launch.targets[${index}].command`,\n ),\n args: this.readStringArray(\n candidate.args,\n `service app launch.targets[${index}].args`,\n ),\n };\n });\n const targetKeys = targets.map((entry) =>\n this.platformTargetService.toTargetKey(entry.target),\n );\n const duplicate = targetKeys.find(\n (targetKey, index) => targetKeys.indexOf(targetKey) !== index,\n );\n if (duplicate) {\n throw new Error(`service app launch.targets 包含重复 target:${duplicate}`);\n }\n const selectedTarget = target ?? this.platformTargetService.readHostTarget();\n const selected = this.platformTargetService.selectArtifact(targets, selectedTarget);\n if (!selected) {\n throw new Error(\n `service app 不支持当前 target:${this.platformTargetService.toTargetKey(selectedTarget)}。`,\n );\n }\n return { command: selected.command, args: selected.args };\n };\n\n private readRequiredString = (value: unknown, fieldName: string): string => {\n if (typeof value !== \"string\" || !value.trim()) {\n throw new Error(`${fieldName} 必须是非空字符串。`);\n }\n return value.trim();\n };\n\n private readStringArray = (value: unknown, fieldName: string): string[] => {\n if (value === undefined) {\n return [];\n }\n if (!Array.isArray(value) || value.some((entry) => typeof entry !== \"string\")) {\n throw new Error(`${fieldName} 必须是字符串数组。`);\n }\n return value;\n };\n\n private assertObject = (\n value: unknown,\n fieldName: string,\n ): Record<string, unknown> => {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) {\n throw new Error(`${fieldName} 必须是对象。`);\n }\n return value as Record<string, unknown>;\n };\n}\n"],"mappings":";;AAQA,IAAa,0BAAb,MAAqC;CACnC,YACE,wBAAyC,IAAI,0BAA0B,EACvE;AADiB,OAAA,wBAAA;;CAGnB,WACE,UACA,WACqB;EACrB,MAAM,aAAa,SAAS,YAAY,KAAA;AAExC,MAAI,gBADc,SAAS,WAAW,KAAA,GAEpC,OAAM,IAAI,MACR,8DACD;AAEH,MAAI,WACF,QAAO;GACL,SAAS,KAAK,mBAAmB,SAAS,SAAS,sBAAsB;GACzE,MAAM,KAAK,gBAAgB,SAAS,MAAM,mBAAmB;GAC9D;EAGH,MAAM,SAAS,KAAK,aAAa,SAAS,QAAQ,qBAAqB;AACvE,MAAI,CAAC,MAAM,QAAQ,OAAO,QAAQ,IAAI,OAAO,QAAQ,WAAW,EAC9D,OAAM,IAAI,MAAM,sCAAsC;EAExD,MAAM,UAAU,OAAO,QAAQ,KAAK,WAAW,UAAU;GACvD,MAAM,YAAY,KAAK,aACrB,WACA,8BAA8B,MAAM,GACrC;GACD,MAAM,eAAe,KAAK,sBAAsB,oBAC9C,UAAU,QACV,8BAA8B,MAAM,UACrC;AACD,OAAI,aAAa,SAAS,SACxB,OAAM,IAAI,MACR,8BAA8B,MAAM,6BACrC;AAEH,UAAO;IACL,QAAQ;IACR,SAAS,KAAK,mBACZ,UAAU,SACV,8BAA8B,MAAM,WACrC;IACD,MAAM,KAAK,gBACT,UAAU,MACV,8BAA8B,MAAM,QACrC;IACF;IACD;EACF,MAAM,aAAa,QAAQ,KAAK,UAC9B,KAAK,sBAAsB,YAAY,MAAM,OAAO,CACrD;EACD,MAAM,YAAY,WAAW,MAC1B,WAAW,UAAU,WAAW,QAAQ,UAAU,KAAK,MACzD;AACD,MAAI,UACF,OAAM,IAAI,MAAM,0CAA0C,YAAY;EAExE,MAAM,iBAAiB,UAAU,KAAK,sBAAsB,gBAAgB;EAC5E,MAAM,WAAW,KAAK,sBAAsB,eAAe,SAAS,eAAe;AACnF,MAAI,CAAC,SACH,OAAM,IAAI,MACR,4BAA4B,KAAK,sBAAsB,YAAY,eAAe,CAAC,GACpF;AAEH,SAAO;GAAE,SAAS,SAAS;GAAS,MAAM,SAAS;GAAM;;CAG3D,sBAA8B,OAAgB,cAA8B;AAC1E,MAAI,OAAO,UAAU,YAAY,CAAC,MAAM,MAAM,CAC5C,OAAM,IAAI,MAAM,GAAG,UAAU,YAAY;AAE3C,SAAO,MAAM,MAAM;;CAGrB,mBAA2B,OAAgB,cAAgC;AACzE,MAAI,UAAU,KAAA,EACZ,QAAO,EAAE;AAEX,MAAI,CAAC,MAAM,QAAQ,MAAM,IAAI,MAAM,MAAM,UAAU,OAAO,UAAU,SAAS,CAC3E,OAAM,IAAI,MAAM,GAAG,UAAU,YAAY;AAE3C,SAAO;;CAGT,gBACE,OACA,cAC4B;AAC5B,MAAI,CAAC,SAAS,OAAO,UAAU,YAAY,MAAM,QAAQ,MAAM,CAC7D,OAAM,IAAI,MAAM,GAAG,UAAU,SAAS;AAExC,SAAO"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AppArtifactTarget } from "./app-manifest.types.js";
|
|
2
|
+
|
|
1
3
|
//#region src/types/app-bundle.types.d.ts
|
|
2
4
|
type AppDistributionMode = "bundle" | "source";
|
|
3
5
|
type AppBundleMetadata = {
|
|
@@ -6,6 +8,7 @@ type AppBundleMetadata = {
|
|
|
6
8
|
appId: string;
|
|
7
9
|
name: string;
|
|
8
10
|
version: string;
|
|
11
|
+
target?: AppArtifactTarget;
|
|
9
12
|
entryManifest: "manifest.json";
|
|
10
13
|
checksumsFile: ".napp/checksums.json";
|
|
11
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bundle.types.d.ts","names":[],"sources":["../../src/types/app-bundle.types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-bundle.types.d.ts","names":[],"sources":["../../src/types/app-bundle.types.ts"],"mappings":";;;KAEY,mBAAA;AAAA,KAEA,iBAAA;EACV,mBAAA;EACA,gBAAA,EAAkB,mBAAA;EAClB,KAAA;EACA,IAAA;EACA,OAAA;EACA,MAAA,GAAS,iBAAA;EACT,aAAA;EACA,aAAA;AAAA;AAAA,KAGU,kBAAA;EACV,SAAA;EACA,KAAA,EAAO,MAAA;AAAA;AAAA,KAGG,mBAAA;EACV,UAAA;EACA,QAAA,EAAU,iBAAA;EACV,SAAA;EACA,SAAA;AAAA;AAAA,KAGU,sBAAA;EACV,YAAA;EACA,QAAA,EAAU,iBAAA;EACV,SAAA,EAAW,kBAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AppArtifactTarget, AppPermissions, AppResolvedComponent } from "./app-manifest.types.js";
|
|
1
2
|
import { AppDistributionMode } from "./app-bundle.types.js";
|
|
2
|
-
import { AppPermissions, AppResolvedComponent } from "./app-manifest.types.js";
|
|
3
3
|
import { AppDocumentGrantMap } from "./app-permissions.types.js";
|
|
4
4
|
import { AppInstanceRecord, AppStorageContext, AppStorageUsage } from "./app-storage.types.js";
|
|
5
5
|
import { AppPublisher } from "./app-remote-registry.types.js";
|
|
@@ -22,6 +22,7 @@ type AppInstallResult = {
|
|
|
22
22
|
registryUrl?: string;
|
|
23
23
|
bundleUrl?: string;
|
|
24
24
|
sha256?: string;
|
|
25
|
+
target?: AppArtifactTarget;
|
|
25
26
|
publisher?: AppPublisher;
|
|
26
27
|
enabled: boolean;
|
|
27
28
|
manifestSchemaVersion: 1 | 2;
|
|
@@ -49,6 +50,7 @@ type AppInfoResult = {
|
|
|
49
50
|
registryUrl?: string;
|
|
50
51
|
bundleUrl?: string;
|
|
51
52
|
sha256?: string;
|
|
53
|
+
target?: AppArtifactTarget;
|
|
52
54
|
publisher?: AppPublisher;
|
|
53
55
|
manifestSchemaVersion: 1 | 2;
|
|
54
56
|
components?: AppResolvedComponent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-installation.types.d.ts","names":[],"sources":["../../src/types/app-installation.types.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"app-installation.types.d.ts","names":[],"sources":["../../src/types/app-installation.types.ts"],"mappings":";;;;;;;;KAeY,uBAAA;AAAA,KAOA,yBAAA,IACV,KAAA,EAAO,uBAAA,YACG,OAAA;AAAA,KAEA,gBAAA;EACV,KAAA;EACA,IAAA;EACA,OAAA;EACA,gBAAA;EACA,aAAA;EACA,QAAA,EAAU,iBAAA;EACV,UAAA,EAAY,oBAAA;EACZ,gBAAA,GAAmB,mBAAA;EACnB,SAAA;EACA,WAAA,EAAa,cAAA;EACb,WAAA;EACA,SAAA;EACA,MAAA;EACA,MAAA,GAAS,iBAAA;EACT,SAAA,GAAY,YAAA;EACZ,OAAA;EACA,qBAAA;EACA,UAAA,GAAa,oBAAA;EACb,cAAA;AAAA;AAAA,KAGU,aAAA;EACV,KAAA;EACA,IAAA;EACA,WAAA;EACA,aAAA;EACA,OAAA;EACA,aAAA;EACA,QAAA,EAAU,iBAAA;EACV,OAAA,EAAS,iBAAA;EACT,YAAA,GAAe,eAAA;EACf,iBAAA,EAAmB,KAAA;IACjB,OAAA;IACA,gBAAA;IACA,UAAA,EAAY,oBAAA;IACZ,gBAAA,GAAmB,mBAAA;IACnB,SAAA;IACA,WAAA;IACA,WAAA,EAAa,cAAA;IACb,WAAA;IACA,SAAA;IACA,MAAA;IACA,MAAA,GAAS,iBAAA;IACT,SAAA,GAAY,YAAA;IACZ,qBAAA;IACA,UAAA,GAAa,oBAAA;IACb,cAAA;IACA,aAAA;EAAA;EAEF,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,oBAAA;EACV,KAAA;EACA,IAAA;EACA,aAAA;EACA,UAAA,EAAY,oBAAA;EACZ,gBAAA,GAAmB,mBAAA;EACnB,OAAA;EACA,qBAAA;EACA,cAAA;AAAA;AAAA,KAGU,kBAAA;EACV,KAAA;EACA,eAAA;EACA,WAAA;AAAA;AAAA,KAGU,mBAAA;EACV,YAAA;EACA,KAAA;EACA,aAAA;EACA,OAAA,GAAU,iBAAA;EACV,gBAAA,EAAkB,mBAAA;AAAA;AAAA,KAGR,eAAA,GAAkB,gBAAA;EAC5B,eAAA;EACA,OAAA;AAAA;AAAA,KAGU,mBAAA;EACV,KAAA;EACA,aAAA;EACA,OAAA;AAAA;AAAA,KAGU,iBAAA,GAAoB,mBAAA;EAC9B,eAAA;EACA,UAAA;AAAA"}
|
|
@@ -21,6 +21,35 @@ type AppRuntimeIsolation = "sandboxed" | "host-mediated" | "full-user";
|
|
|
21
21
|
type AppRuntimeDeclaration = {
|
|
22
22
|
profile: AppRuntimeProfile;
|
|
23
23
|
};
|
|
24
|
+
type AppArtifactArchitecture = "x64" | "arm64";
|
|
25
|
+
type AppDarwinArtifactTarget = {
|
|
26
|
+
kind: "native";
|
|
27
|
+
os: "darwin";
|
|
28
|
+
arch: AppArtifactArchitecture;
|
|
29
|
+
};
|
|
30
|
+
type AppLinuxArtifactTarget = {
|
|
31
|
+
kind: "native";
|
|
32
|
+
os: "linux";
|
|
33
|
+
arch: AppArtifactArchitecture;
|
|
34
|
+
abi: "gnu" | "musl";
|
|
35
|
+
};
|
|
36
|
+
type AppWindowsArtifactTarget = {
|
|
37
|
+
kind: "native";
|
|
38
|
+
os: "win32";
|
|
39
|
+
arch: AppArtifactArchitecture;
|
|
40
|
+
abi: "msvc";
|
|
41
|
+
};
|
|
42
|
+
type AppNativeArtifactTarget = AppDarwinArtifactTarget | AppLinuxArtifactTarget | AppWindowsArtifactTarget;
|
|
43
|
+
type AppUniversalArtifactTarget = {
|
|
44
|
+
kind: "universal";
|
|
45
|
+
};
|
|
46
|
+
type AppArtifactTarget = AppUniversalArtifactTarget | AppNativeArtifactTarget;
|
|
47
|
+
type AppDistributionDeclaration = {
|
|
48
|
+
mode: "universal";
|
|
49
|
+
} | {
|
|
50
|
+
mode: "targeted";
|
|
51
|
+
targets: AppNativeArtifactTarget[];
|
|
52
|
+
};
|
|
24
53
|
type AppStorageDeclaration = {
|
|
25
54
|
scope: "global";
|
|
26
55
|
schemaVersion: number;
|
|
@@ -76,6 +105,7 @@ type AppComponentManifest = {
|
|
|
76
105
|
primaryPanel?: string;
|
|
77
106
|
};
|
|
78
107
|
runtime?: AppRuntimeDeclaration;
|
|
108
|
+
distribution?: AppDistributionDeclaration;
|
|
79
109
|
storage?: AppStorageDeclaration;
|
|
80
110
|
permissions?: AppPermissions;
|
|
81
111
|
components: AppComponentReference[];
|
|
@@ -130,11 +160,12 @@ type AppComponentManifestSummary = {
|
|
|
130
160
|
iconPath?: string;
|
|
131
161
|
primaryPanelId?: string;
|
|
132
162
|
components: AppResolvedComponent[];
|
|
163
|
+
distribution: AppDistributionDeclaration;
|
|
133
164
|
security: AppPlatformSecuritySummary;
|
|
134
165
|
};
|
|
135
166
|
type AppManifestSummary = AppStandaloneManifestSummary | AppComponentManifestSummary;
|
|
136
167
|
declare function isAppStandaloneManifestBundle(bundle: AppManifestBundle): bundle is AppStandaloneManifestBundle;
|
|
137
168
|
declare function isAppComponentManifestBundle(bundle: AppManifestBundle): bundle is AppComponentManifestBundle;
|
|
138
169
|
//#endregion
|
|
139
|
-
export { AppComponentKind, AppComponentManifest, AppComponentManifestBundle, AppComponentManifestSummary, AppComponentReference, AppCoreWasmMainManifest, AppDocumentAccessMode, AppDocumentAccessScope, AppMainManifest, AppManifest, AppManifestBundle, AppManifestSummary, AppPermissions, AppPlatformSecuritySummary, AppResolvedComponent, AppRuntimeDeclaration, AppRuntimeIsolation, AppRuntimeProfile, AppStandaloneManifest, AppStandaloneManifestBundle, AppStandaloneManifestSummary, AppStorageDeclaration, AppUiManifest, AppWasiHttpComponentMainManifest, isAppComponentManifestBundle, isAppStandaloneManifestBundle };
|
|
170
|
+
export { AppArtifactArchitecture, AppArtifactTarget, AppComponentKind, AppComponentManifest, AppComponentManifestBundle, AppComponentManifestSummary, AppComponentReference, AppCoreWasmMainManifest, AppDarwinArtifactTarget, AppDistributionDeclaration, AppDocumentAccessMode, AppDocumentAccessScope, AppLinuxArtifactTarget, AppMainManifest, AppManifest, AppManifestBundle, AppManifestSummary, AppNativeArtifactTarget, AppPermissions, AppPlatformSecuritySummary, AppResolvedComponent, AppRuntimeDeclaration, AppRuntimeIsolation, AppRuntimeProfile, AppStandaloneManifest, AppStandaloneManifestBundle, AppStandaloneManifestSummary, AppStorageDeclaration, AppUiManifest, AppUniversalArtifactTarget, AppWasiHttpComponentMainManifest, AppWindowsArtifactTarget, isAppComponentManifestBundle, isAppStandaloneManifestBundle };
|
|
140
171
|
//# sourceMappingURL=app-manifest.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-manifest.types.d.ts","names":[],"sources":["../../src/types/app-manifest.types.ts"],"mappings":";KAAY,qBAAA;AAAA,KAEA,sBAAA;EACV,EAAA;EACA,IAAA,EAAM,qBAAA;EACN,WAAA;AAAA;AAAA,KAGU,cAAA;EACV,cAAA,GAAiB,sBAAA;EACjB,cAAA;EACA,OAAA;IAAsB,SAAA;EAAA;EACtB,YAAA;IACE,UAAA;IACA,aAAA;EAAA;AAAA;AAAA,KAIQ,iBAAA;AAAA,KACA,mBAAA;AAAA,KAEA,qBAAA;EACV,OAAA,EAAS,iBAAA;AAAA;AAAA,KAGC,qBAAA;EACV,KAAA;EACA,aAAA;AAAA;AAAA,KAGU,0BAAA;EACV,cAAA,EAAgB,iBAAA;EAChB,SAAA,EAAW,mBAAA;EACX,oBAAA;EACA,QAAA;EACA,WAAA,EAAa,cAAA;AAAA;AAAA,KAGH,uBAAA;EACV,IAAA;EACA,KAAA;EACA,MAAA;EACA,MAAA;AAAA;AAAA,KAGU,gCAAA;EACV,IAAA;EACA,KAAA;AAAA;AAAA,KAGU,eAAA,GAAkB,uBAAA,GAA0B,gCAAA;AAAA,KAE5C,aAAA;EACV,KAAA;AAAA;AAAA,KAGU,qBAAA;EACV,aAAA;EACA,EAAA;EACA,IAAA;EACA,OAAA;EACA,WAAA;EACA,IAAA;EACA,IAAA,EAAM,eAAA;EACN,EAAA,EAAI,aAAA;EACJ,WAAA,GAAc,cAAA;AAAA;AAAA,KAGJ,gBAAA;AAAA,KAEA,qBAAA;EACV,IAAA,EAAM,gBAAA;EACN,IAAA;AAAA;AAAA,KAGU,oBAAA;EACV,aAAA;EACA,EAAA;EACA,IAAA;EACA,OAAA;EACA,WAAA;EACA,IAAA;EACA,OAAA;IACE,QAAA;EAAA;EAEF,YAAA;IACE,YAAA;EAAA;EAEF,OAAA,GAAU,qBAAA;EACV,OAAA,GAAU,qBAAA;EACV,WAAA,GAAc,cAAA;EACd,UAAA,EAAY,qBAAA;AAAA;AAAA,KAGF,WAAA,GAAc,qBAAA,GAAwB,oBAAA;AAAA,KAEtC,oBAAA,GAAuB,qBAAA;EACjC,EAAA;EACA,kBAAA;EACA,YAAA;AAAA;AAAA,KAGU,2BAAA;EACV,YAAA;EACA,YAAA;EACA,QAAA,EAAU,qBAAA;EACV,aAAA;EACA,WAAA;EACA,eAAA;EACA,mBAAA;EACA,QAAA;AAAA;AAAA,KAGU,0BAAA;EACV,YAAA;EACA,YAAA;EACA,QAAA,EAAU,oBAAA;EACV,UAAA,EAAY,oBAAA;EACZ,mBAAA;EACA,QAAA;EACA,cAAA;AAAA;AAAA,KAGU,iBAAA,GAAoB,2BAAA,GAA8B,0BAAA;AAAA,KAElD,4BAAA;EACV,aAAA;EACA,EAAA;EACA,IAAA;EACA,OAAA;EACA,WAAA;EACA,QAAA,EAAU,eAAA;EACV,MAAA;EACA,YAAA;EACA,aAAA;EACA,WAAA;EACA,QAAA;EACA,WAAA,EAAa,cAAA;AAAA;AAAA,KAGH,2BAAA;EACV,aAAA;EACA,EAAA;EACA,IAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,QAAA;EACA,cAAA;EACA,UAAA,EAAY,oBAAA;EACZ,QAAA,EAAU,0BAAA;AAAA;AAAA,KAGA,kBAAA,GAAqB,4BAAA,GAA+B,2BAAA;AAAA,iBAEhD,6BAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,IAAU,2BAAA;AAAA,iBAIG,4BAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,IAAU,0BAAA"}
|
|
1
|
+
{"version":3,"file":"app-manifest.types.d.ts","names":[],"sources":["../../src/types/app-manifest.types.ts"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-manifest.types.js","names":[],"sources":["../../src/types/app-manifest.types.ts"],"sourcesContent":["export type AppDocumentAccessMode = \"read\" | \"read-write\";\n\nexport type AppDocumentAccessScope = {\n id: string;\n mode: AppDocumentAccessMode;\n description?: string;\n};\n\nexport type AppPermissions = {\n documentAccess?: AppDocumentAccessScope[];\n allowedDomains?: string[];\n storage?: boolean | { namespace?: string };\n capabilities?: {\n hostBridge?: boolean;\n nativeProcess?: boolean;\n };\n};\n\nexport type AppRuntimeProfile = \"panel-only\" | \"wasi\" | \"native-process\";\nexport type AppRuntimeIsolation = \"sandboxed\" | \"host-mediated\" | \"full-user\";\n\nexport type AppRuntimeDeclaration = {\n profile: AppRuntimeProfile;\n};\n\nexport type AppStorageDeclaration = {\n scope: \"global\";\n schemaVersion: number;\n};\n\nexport type AppPlatformSecuritySummary = {\n runtimeProfile: AppRuntimeProfile;\n isolation: AppRuntimeIsolation;\n hasServiceComponents: boolean;\n inferred: boolean;\n permissions: AppPermissions;\n};\n\nexport type AppCoreWasmMainManifest = {\n kind: \"wasm\";\n entry: string;\n export: string;\n action: string;\n};\n\nexport type AppWasiHttpComponentMainManifest = {\n kind: \"wasi-http-component\";\n entry: string;\n};\n\nexport type AppMainManifest = AppCoreWasmMainManifest | AppWasiHttpComponentMainManifest;\n\nexport type AppUiManifest = {\n entry: string;\n};\n\nexport type AppStandaloneManifest = {\n schemaVersion: 1;\n id: string;\n name: string;\n version: string;\n description?: string;\n icon?: string;\n main: AppMainManifest;\n ui: AppUiManifest;\n permissions?: AppPermissions;\n};\n\nexport type AppComponentKind = \"panel\" | \"service\";\n\nexport type AppComponentReference = {\n kind: AppComponentKind;\n path: string;\n};\n\nexport type AppComponentManifest = {\n schemaVersion: 2;\n id: string;\n name: string;\n version: string;\n description?: string;\n icon?: string;\n engines?: {\n nextclaw?: string;\n };\n presentation?: {\n primaryPanel?: string;\n };\n runtime?: AppRuntimeDeclaration;\n storage?: AppStorageDeclaration;\n permissions?: AppPermissions;\n components: AppComponentReference[];\n};\n\nexport type AppManifest = AppStandaloneManifest | AppComponentManifest;\n\nexport type AppResolvedComponent = AppComponentReference & {\n id: string;\n componentDirectory: string;\n manifestPath: string;\n};\n\nexport type AppStandaloneManifestBundle = {\n appDirectory: string;\n manifestPath: string;\n manifest: AppStandaloneManifest;\n mainEntryPath: string;\n uiEntryPath: string;\n uiDirectoryPath: string;\n assetsDirectoryPath: string;\n iconPath?: string;\n};\n\nexport type AppComponentManifestBundle = {\n appDirectory: string;\n manifestPath: string;\n manifest: AppComponentManifest;\n components: AppResolvedComponent[];\n assetsDirectoryPath: string;\n iconPath?: string;\n primaryPanelId?: string;\n};\n\nexport type AppManifestBundle = AppStandaloneManifestBundle | AppComponentManifestBundle;\n\nexport type AppStandaloneManifestSummary = {\n schemaVersion: 1;\n id: string;\n name: string;\n version: string;\n description?: string;\n mainKind: AppMainManifest[\"kind\"];\n action?: string;\n manifestPath: string;\n mainEntryPath: string;\n uiEntryPath: string;\n iconPath?: string;\n permissions: AppPermissions;\n};\n\nexport type AppComponentManifestSummary = {\n schemaVersion: 2;\n id: string;\n name: string;\n version: string;\n description?: string;\n manifestPath: string;\n iconPath?: string;\n primaryPanelId?: string;\n components: AppResolvedComponent[];\n security: AppPlatformSecuritySummary;\n};\n\nexport type AppManifestSummary = AppStandaloneManifestSummary | AppComponentManifestSummary;\n\nexport function isAppStandaloneManifestBundle(\n bundle: AppManifestBundle,\n): bundle is AppStandaloneManifestBundle {\n return bundle.manifest.schemaVersion === 1;\n}\n\nexport function isAppComponentManifestBundle(\n bundle: AppManifestBundle,\n): bundle is AppComponentManifestBundle {\n return bundle.manifest.schemaVersion === 2;\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app-manifest.types.js","names":[],"sources":["../../src/types/app-manifest.types.ts"],"sourcesContent":["export type AppDocumentAccessMode = \"read\" | \"read-write\";\n\nexport type AppDocumentAccessScope = {\n id: string;\n mode: AppDocumentAccessMode;\n description?: string;\n};\n\nexport type AppPermissions = {\n documentAccess?: AppDocumentAccessScope[];\n allowedDomains?: string[];\n storage?: boolean | { namespace?: string };\n capabilities?: {\n hostBridge?: boolean;\n nativeProcess?: boolean;\n };\n};\n\nexport type AppRuntimeProfile = \"panel-only\" | \"wasi\" | \"native-process\";\nexport type AppRuntimeIsolation = \"sandboxed\" | \"host-mediated\" | \"full-user\";\n\nexport type AppRuntimeDeclaration = {\n profile: AppRuntimeProfile;\n};\n\nexport type AppArtifactArchitecture = \"x64\" | \"arm64\";\n\nexport type AppDarwinArtifactTarget = {\n kind: \"native\";\n os: \"darwin\";\n arch: AppArtifactArchitecture;\n};\n\nexport type AppLinuxArtifactTarget = {\n kind: \"native\";\n os: \"linux\";\n arch: AppArtifactArchitecture;\n abi: \"gnu\" | \"musl\";\n};\n\nexport type AppWindowsArtifactTarget = {\n kind: \"native\";\n os: \"win32\";\n arch: AppArtifactArchitecture;\n abi: \"msvc\";\n};\n\nexport type AppNativeArtifactTarget =\n | AppDarwinArtifactTarget\n | AppLinuxArtifactTarget\n | AppWindowsArtifactTarget;\n\nexport type AppUniversalArtifactTarget = {\n kind: \"universal\";\n};\n\nexport type AppArtifactTarget =\n | AppUniversalArtifactTarget\n | AppNativeArtifactTarget;\n\nexport type AppDistributionDeclaration =\n | { mode: \"universal\" }\n | {\n mode: \"targeted\";\n targets: AppNativeArtifactTarget[];\n };\n\nexport type AppStorageDeclaration = {\n scope: \"global\";\n schemaVersion: number;\n};\n\nexport type AppPlatformSecuritySummary = {\n runtimeProfile: AppRuntimeProfile;\n isolation: AppRuntimeIsolation;\n hasServiceComponents: boolean;\n inferred: boolean;\n permissions: AppPermissions;\n};\n\nexport type AppCoreWasmMainManifest = {\n kind: \"wasm\";\n entry: string;\n export: string;\n action: string;\n};\n\nexport type AppWasiHttpComponentMainManifest = {\n kind: \"wasi-http-component\";\n entry: string;\n};\n\nexport type AppMainManifest = AppCoreWasmMainManifest | AppWasiHttpComponentMainManifest;\n\nexport type AppUiManifest = {\n entry: string;\n};\n\nexport type AppStandaloneManifest = {\n schemaVersion: 1;\n id: string;\n name: string;\n version: string;\n description?: string;\n icon?: string;\n main: AppMainManifest;\n ui: AppUiManifest;\n permissions?: AppPermissions;\n};\n\nexport type AppComponentKind = \"panel\" | \"service\";\n\nexport type AppComponentReference = {\n kind: AppComponentKind;\n path: string;\n};\n\nexport type AppComponentManifest = {\n schemaVersion: 2;\n id: string;\n name: string;\n version: string;\n description?: string;\n icon?: string;\n engines?: {\n nextclaw?: string;\n };\n presentation?: {\n primaryPanel?: string;\n };\n runtime?: AppRuntimeDeclaration;\n distribution?: AppDistributionDeclaration;\n storage?: AppStorageDeclaration;\n permissions?: AppPermissions;\n components: AppComponentReference[];\n};\n\nexport type AppManifest = AppStandaloneManifest | AppComponentManifest;\n\nexport type AppResolvedComponent = AppComponentReference & {\n id: string;\n componentDirectory: string;\n manifestPath: string;\n};\n\nexport type AppStandaloneManifestBundle = {\n appDirectory: string;\n manifestPath: string;\n manifest: AppStandaloneManifest;\n mainEntryPath: string;\n uiEntryPath: string;\n uiDirectoryPath: string;\n assetsDirectoryPath: string;\n iconPath?: string;\n};\n\nexport type AppComponentManifestBundle = {\n appDirectory: string;\n manifestPath: string;\n manifest: AppComponentManifest;\n components: AppResolvedComponent[];\n assetsDirectoryPath: string;\n iconPath?: string;\n primaryPanelId?: string;\n};\n\nexport type AppManifestBundle = AppStandaloneManifestBundle | AppComponentManifestBundle;\n\nexport type AppStandaloneManifestSummary = {\n schemaVersion: 1;\n id: string;\n name: string;\n version: string;\n description?: string;\n mainKind: AppMainManifest[\"kind\"];\n action?: string;\n manifestPath: string;\n mainEntryPath: string;\n uiEntryPath: string;\n iconPath?: string;\n permissions: AppPermissions;\n};\n\nexport type AppComponentManifestSummary = {\n schemaVersion: 2;\n id: string;\n name: string;\n version: string;\n description?: string;\n manifestPath: string;\n iconPath?: string;\n primaryPanelId?: string;\n components: AppResolvedComponent[];\n distribution: AppDistributionDeclaration;\n security: AppPlatformSecuritySummary;\n};\n\nexport type AppManifestSummary = AppStandaloneManifestSummary | AppComponentManifestSummary;\n\nexport function isAppStandaloneManifestBundle(\n bundle: AppManifestBundle,\n): bundle is AppStandaloneManifestBundle {\n return bundle.manifest.schemaVersion === 1;\n}\n\nexport function isAppComponentManifestBundle(\n bundle: AppManifestBundle,\n): bundle is AppComponentManifestBundle {\n return bundle.manifest.schemaVersion === 2;\n}\n"],"mappings":";AAuMA,SAAgB,8BACd,QACuC;AACvC,QAAO,OAAO,SAAS,kBAAkB;;AAG3C,SAAgB,6BACd,QACsC;AACtC,QAAO,OAAO,SAAS,kBAAkB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AppArtifactTarget, AppManifest, AppPermissions } from "./app-manifest.types.js";
|
|
1
2
|
import { AppDistributionMode } from "./app-bundle.types.js";
|
|
2
|
-
import { AppManifest, AppPermissions } from "./app-manifest.types.js";
|
|
3
3
|
import { AppPublisher } from "./app-remote-registry.types.js";
|
|
4
4
|
|
|
5
5
|
//#region src/types/app-publish.types.d.ts
|
|
@@ -26,7 +26,13 @@ type AppPublishFile = {
|
|
|
26
26
|
path: string;
|
|
27
27
|
contentBase64: string;
|
|
28
28
|
};
|
|
29
|
-
type
|
|
29
|
+
type AppPublishArtifact = {
|
|
30
|
+
target: AppArtifactTarget;
|
|
31
|
+
bundleBase64: string;
|
|
32
|
+
bundleSha256: string;
|
|
33
|
+
sizeBytes: number;
|
|
34
|
+
};
|
|
35
|
+
type AppPublishPayloadBase = {
|
|
30
36
|
slug: string;
|
|
31
37
|
appId: string;
|
|
32
38
|
name: string;
|
|
@@ -45,10 +51,17 @@ type AppPublishPayload = {
|
|
|
45
51
|
distributionMode: AppDistributionMode;
|
|
46
52
|
manifest: AppManifest;
|
|
47
53
|
permissions: AppPermissions;
|
|
48
|
-
bundleBase64: string;
|
|
49
|
-
bundleSha256: string;
|
|
50
54
|
files: AppPublishFile[];
|
|
51
55
|
};
|
|
56
|
+
type AppPublishPayload = AppPublishPayloadBase & ({
|
|
57
|
+
bundleBase64: string;
|
|
58
|
+
bundleSha256: string;
|
|
59
|
+
artifacts?: never;
|
|
60
|
+
} | {
|
|
61
|
+
bundleBase64?: never;
|
|
62
|
+
bundleSha256?: never;
|
|
63
|
+
artifacts: AppPublishArtifact[];
|
|
64
|
+
});
|
|
52
65
|
type AppPublishResult = {
|
|
53
66
|
created: boolean;
|
|
54
67
|
item: {
|
|
@@ -68,12 +81,18 @@ type AppPublishResult = {
|
|
|
68
81
|
};
|
|
69
82
|
};
|
|
70
83
|
distribution: {
|
|
71
|
-
path
|
|
72
|
-
sha256
|
|
84
|
+
path?: string;
|
|
85
|
+
sha256?: string;
|
|
73
86
|
mode: AppDistributionMode;
|
|
87
|
+
artifacts?: Array<{
|
|
88
|
+
target: AppArtifactTarget;
|
|
89
|
+
path?: string;
|
|
90
|
+
sha256: string;
|
|
91
|
+
sizeBytes: number;
|
|
92
|
+
}>;
|
|
74
93
|
};
|
|
75
94
|
fileCount: number;
|
|
76
95
|
};
|
|
77
96
|
//#endregion
|
|
78
|
-
export { AppMarketplaceMetadata, AppMarketplaceVisuals, AppPublishFile, AppPublishPayload, AppPublishResult, DEFAULT_APP_MARKETPLACE_API_BASE };
|
|
97
|
+
export { AppMarketplaceMetadata, AppMarketplaceVisuals, AppPublishArtifact, AppPublishFile, AppPublishPayload, AppPublishResult, DEFAULT_APP_MARKETPLACE_API_BASE };
|
|
79
98
|
//# sourceMappingURL=app-publish.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-publish.types.d.ts","names":[],"sources":["../../src/types/app-publish.types.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"app-publish.types.d.ts","names":[],"sources":["../../src/types/app-publish.types.ts"],"mappings":";;;;;cAQa,gCAAA;AAAA,KAGD,qBAAA;EACV,KAAA;EACA,WAAA;AAAA;AAAA,KAGU,sBAAA;EACV,IAAA;EACA,OAAA;EACA,WAAA,EAAa,MAAA;EACb,WAAA;EACA,eAAA,GAAkB,MAAA;EAClB,MAAA;EACA,IAAA;EACA,UAAA;EACA,QAAA;EACA,QAAA;EACA,SAAA,GAAY,YAAA;EACZ,OAAA,GAAU,qBAAA;AAAA;AAAA,KAGA,cAAA;EACV,IAAA;EACA,aAAA;AAAA;AAAA,KAGU,kBAAA;EACV,MAAA,EAAQ,iBAAA;EACR,YAAA;EACA,YAAA;EACA,SAAA;AAAA;AAAA,KAGG,qBAAA;EACH,IAAA;EACA,KAAA;EACA,IAAA;EACA,OAAA;EACA,OAAA;EACA,WAAA,EAAa,MAAA;EACb,WAAA;EACA,eAAA,GAAkB,MAAA;EAClB,MAAA;EACA,IAAA;EACA,UAAA;EACA,QAAA;EACA,QAAA;EACA,SAAA,EAAW,YAAA;EACX,OAAA,GAAU,qBAAA;EACV,gBAAA,EAAkB,mBAAA;EAClB,QAAA,EAAU,WAAA;EACV,WAAA,EAAa,cAAA;EACb,KAAA,EAAO,cAAA;AAAA;AAAA,KAGG,iBAAA,GAAoB,qBAAA;EAE1B,YAAA;EACA,YAAA;EACA,SAAA;AAAA;EAGA,YAAA;EACA,YAAA;EACA,SAAA,EAAW,kBAAA;AAAA;AAAA,KAIL,gBAAA;EACV,OAAA;EACA,IAAA;IACE,IAAA;IACA,KAAA;IACA,UAAA;IACA,OAAA;IACA,aAAA;IACA,IAAA;IACA,aAAA;IACA,MAAA;IACA,OAAA;MACE,IAAA;MACA,IAAA;MACA,OAAA;MACA,QAAA;IAAA;EAAA;EAGJ,YAAA;IACE,IAAA;IACA,MAAA;IACA,IAAA,EAAM,mBAAA;IACN,SAAA,GAAY,KAAA;MACV,MAAA,EAAQ,iBAAA;MACR,IAAA;MACA,MAAA;MACA,SAAA;IAAA;EAAA;EAGJ,SAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-publish.types.js","names":[],"sources":["../../src/types/app-publish.types.ts"],"sourcesContent":["import type { AppDistributionMode } from \"#app-runtime/types/app-bundle.types.js\";\nimport type {\n AppManifest,\n AppPermissions,\n} from \"#app-runtime/types/app-manifest.types.js\";\nimport type { AppPublisher } from \"#app-runtime/types/app-remote-registry.types.js\";\n\nexport const DEFAULT_APP_MARKETPLACE_API_BASE =\n \"https://apps-registry.nextclaw.io\";\n\nexport type AppMarketplaceVisuals = {\n cover: string;\n accentColor: string;\n};\n\nexport type AppMarketplaceMetadata = {\n slug: string;\n summary: string;\n summaryI18n: Record<string, string>;\n description?: string;\n descriptionI18n?: Record<string, string>;\n author: string;\n tags: string[];\n sourceRepo?: string;\n homepage?: string;\n featured?: boolean;\n publisher?: AppPublisher;\n visuals?: AppMarketplaceVisuals;\n};\n\nexport type AppPublishFile = {\n path: string;\n contentBase64: string;\n};\n\nexport type
|
|
1
|
+
{"version":3,"file":"app-publish.types.js","names":[],"sources":["../../src/types/app-publish.types.ts"],"sourcesContent":["import type { AppDistributionMode } from \"#app-runtime/types/app-bundle.types.js\";\nimport type {\n AppArtifactTarget,\n AppManifest,\n AppPermissions,\n} from \"#app-runtime/types/app-manifest.types.js\";\nimport type { AppPublisher } from \"#app-runtime/types/app-remote-registry.types.js\";\n\nexport const DEFAULT_APP_MARKETPLACE_API_BASE =\n \"https://apps-registry.nextclaw.io\";\n\nexport type AppMarketplaceVisuals = {\n cover: string;\n accentColor: string;\n};\n\nexport type AppMarketplaceMetadata = {\n slug: string;\n summary: string;\n summaryI18n: Record<string, string>;\n description?: string;\n descriptionI18n?: Record<string, string>;\n author: string;\n tags: string[];\n sourceRepo?: string;\n homepage?: string;\n featured?: boolean;\n publisher?: AppPublisher;\n visuals?: AppMarketplaceVisuals;\n};\n\nexport type AppPublishFile = {\n path: string;\n contentBase64: string;\n};\n\nexport type AppPublishArtifact = {\n target: AppArtifactTarget;\n bundleBase64: string;\n bundleSha256: string;\n sizeBytes: number;\n};\n\ntype AppPublishPayloadBase = {\n slug: string;\n appId: string;\n name: string;\n version: string;\n summary: string;\n summaryI18n: Record<string, string>;\n description?: string;\n descriptionI18n?: Record<string, string>;\n author: string;\n tags: string[];\n sourceRepo?: string;\n homepage?: string;\n featured: boolean;\n publisher: AppPublisher;\n visuals?: AppMarketplaceVisuals;\n distributionMode: AppDistributionMode;\n manifest: AppManifest;\n permissions: AppPermissions;\n files: AppPublishFile[];\n};\n\nexport type AppPublishPayload = AppPublishPayloadBase & (\n | {\n bundleBase64: string;\n bundleSha256: string;\n artifacts?: never;\n }\n | {\n bundleBase64?: never;\n bundleSha256?: never;\n artifacts: AppPublishArtifact[];\n }\n);\n\nexport type AppPublishResult = {\n created: boolean;\n item: {\n slug: string;\n appId: string;\n ownerScope: string;\n appName: string;\n publishStatus: \"pending\" | \"published\";\n name: string;\n latestVersion: string;\n webUrl?: string;\n install: {\n kind: \"registry\";\n spec: string;\n command: string;\n registry: string;\n };\n };\n distribution: {\n path?: string;\n sha256?: string;\n mode: AppDistributionMode;\n artifacts?: Array<{\n target: AppArtifactTarget;\n path?: string;\n sha256: string;\n sizeBytes: number;\n }>;\n };\n fileCount: number;\n};\n"],"mappings":";AAQA,MAAa,mCACX"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AppArtifactTarget, AppPermissions, AppPlatformSecuritySummary, AppResolvedComponent } from "./app-manifest.types.js";
|
|
1
2
|
import { AppDistributionMode } from "./app-bundle.types.js";
|
|
2
|
-
import { AppPermissions, AppPlatformSecuritySummary, AppResolvedComponent } from "./app-manifest.types.js";
|
|
3
3
|
import { AppDocumentGrantMap } from "./app-permissions.types.js";
|
|
4
4
|
import { AppInstanceRecord } from "./app-storage.types.js";
|
|
5
5
|
import { AppPublisher } from "./app-remote-registry.types.js";
|
|
@@ -17,6 +17,7 @@ type AppRegistryInstalledVersion = {
|
|
|
17
17
|
registryUrl?: string;
|
|
18
18
|
bundleUrl?: string;
|
|
19
19
|
sha256?: string;
|
|
20
|
+
target?: AppArtifactTarget;
|
|
20
21
|
publisher?: AppPublisher;
|
|
21
22
|
manifestSchemaVersion: 1 | 2;
|
|
22
23
|
components?: AppResolvedComponent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-registry.types.d.ts","names":[],"sources":["../../src/types/app-registry.types.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"app-registry.types.d.ts","names":[],"sources":["../../src/types/app-registry.types.ts"],"mappings":";;;;;;;KAWY,oBAAA;AAAA,KAEA,2BAAA;EACV,OAAA;EACA,gBAAA;EACA,UAAA,EAAY,oBAAA;EACZ,SAAA;EACA,WAAA;EACA,gBAAA,GAAmB,mBAAA;EACnB,WAAA,EAAa,cAAA;EACb,WAAA;EACA,SAAA;EACA,MAAA;EACA,MAAA,GAAS,iBAAA;EACT,SAAA,GAAY,YAAA;EACZ,qBAAA;EACA,UAAA,GAAa,oBAAA;EACb,cAAA;EACA,QAAA,GAAW,0BAAA;EACX,iBAAA;EACA,aAAA;AAAA;AAAA,KAGU,oBAAA;EACV,KAAA;EACA,IAAA;EACA,WAAA;EACA,SAAA,GAAY,YAAA;EACZ,aAAA;EACA,OAAA;EACA,aAAA;EACA,eAAA,EAAiB,iBAAA;EACjB,iBAAA,EAAmB,MAAA,SAAe,2BAAA;EAClC,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,WAAA;EACV,aAAA;EACA,IAAA,EAAM,MAAA,SAAe,oBAAA;EACrB,kBAAA,EAAoB,MAAA;IAClB,YAAA;EAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AppArtifactTarget, AppPermissions } from "./app-manifest.types.js";
|
|
1
2
|
import { AppDistributionMode } from "./app-bundle.types.js";
|
|
2
|
-
import { AppPermissions } from "./app-manifest.types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/types/app-remote-registry.types.d.ts
|
|
5
5
|
declare const DEFAULT_APP_REGISTRY_URL = "https://apps-registry.nextclaw.io/api/v1/apps/registry/";
|
|
@@ -31,8 +31,17 @@ type AppRemoteRegistryVersion = {
|
|
|
31
31
|
bundle: string;
|
|
32
32
|
source?: string;
|
|
33
33
|
sha256: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: "targeted-bundle";
|
|
36
|
+
artifacts: AppRemoteRegistryArtifact[];
|
|
34
37
|
};
|
|
35
38
|
};
|
|
39
|
+
type AppRemoteRegistryArtifact = {
|
|
40
|
+
target: AppArtifactTarget;
|
|
41
|
+
bundle: string;
|
|
42
|
+
sha256: string;
|
|
43
|
+
sizeBytes?: number;
|
|
44
|
+
};
|
|
36
45
|
type AppRemoteRegistryDocument = {
|
|
37
46
|
name: string;
|
|
38
47
|
description?: string;
|
|
@@ -50,9 +59,10 @@ type AppRemoteRegistryResolution = {
|
|
|
50
59
|
publisher?: AppPublisher;
|
|
51
60
|
permissions?: AppPermissions;
|
|
52
61
|
distributionMode: AppDistributionMode;
|
|
62
|
+
target: AppArtifactTarget;
|
|
53
63
|
bundleUrl: string;
|
|
54
64
|
sha256: string;
|
|
55
65
|
};
|
|
56
66
|
//#endregion
|
|
57
|
-
export { AppPublisher, AppRegistryConfig, AppRegistryConfigSnapshot, AppRemoteRegistryDocument, AppRemoteRegistryResolution, AppRemoteRegistryVersion, DEFAULT_APP_REGISTRY_URL };
|
|
67
|
+
export { AppPublisher, AppRegistryConfig, AppRegistryConfigSnapshot, AppRemoteRegistryArtifact, AppRemoteRegistryDocument, AppRemoteRegistryResolution, AppRemoteRegistryVersion, DEFAULT_APP_REGISTRY_URL };
|
|
58
68
|
//# sourceMappingURL=app-remote-registry.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-remote-registry.types.d.ts","names":[],"sources":["../../src/types/app-remote-registry.types.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"app-remote-registry.types.d.ts","names":[],"sources":["../../src/types/app-remote-registry.types.ts"],"mappings":";;;;cAMa,wBAAA;AAAA,KAGD,YAAA;EACV,EAAA;EACA,IAAA;EACA,GAAA;AAAA;AAAA,KAGU,iBAAA;EACV,aAAA;EACA,QAAA;IACE,GAAA;EAAA;AAAA;AAAA,KAIQ,yBAAA;EACV,UAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;EACA,OAAA;EACA,WAAA;EACA,SAAA,GAAY,YAAA;EACZ,WAAA,GAAc,cAAA;EACd,IAAA;IAEM,IAAA,GAAO,mBAAA;IACP,QAAA;IACA,MAAA;IACA,MAAA;IACA,MAAA;EAAA;IAGA,IAAA;IACA,SAAA,EAAW,yBAAA;EAAA;AAAA;AAAA,KAIP,yBAAA;EACV,MAAA,EAAQ,iBAAA;EACR,MAAA;EACA,MAAA;EACA,SAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;EACA,WAAA;EACA,WAAA;IACE,MAAA;EAAA;EAEF,QAAA,EAAU,MAAA,SAAe,wBAAA;AAAA;AAAA,KAGf,2BAAA;EACV,WAAA;EACA,WAAA;EACA,KAAA;EACA,OAAA;EACA,WAAA;EACA,SAAA,GAAY,YAAA;EACZ,WAAA,GAAc,cAAA;EACd,gBAAA,EAAkB,mBAAA;EAClB,MAAA,EAAQ,iBAAA;EACR,SAAA;EACA,MAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-remote-registry.types.js","names":[],"sources":["../../src/types/app-remote-registry.types.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"app-remote-registry.types.js","names":[],"sources":["../../src/types/app-remote-registry.types.ts"],"sourcesContent":["import type {\n AppArtifactTarget,\n AppPermissions,\n} from \"#app-runtime/types/app-manifest.types.js\";\nimport type { AppDistributionMode } from \"#app-runtime/types/app-bundle.types.js\";\n\nexport const DEFAULT_APP_REGISTRY_URL =\n \"https://apps-registry.nextclaw.io/api/v1/apps/registry/\";\n\nexport type AppPublisher = {\n id: string;\n name: string;\n url?: string;\n};\n\nexport type AppRegistryConfig = {\n schemaVersion: 1;\n registry: {\n url: string;\n };\n};\n\nexport type AppRegistryConfigSnapshot = {\n defaultUrl: string;\n currentUrl: string;\n source: \"default\" | \"config\" | \"env\";\n};\n\nexport type AppRemoteRegistryVersion = {\n name: string;\n version: string;\n description?: string;\n publisher?: AppPublisher;\n permissions?: AppPermissions;\n dist:\n | {\n kind?: AppDistributionMode;\n artifact?: string;\n bundle: string;\n source?: string;\n sha256: string;\n }\n | {\n kind: \"targeted-bundle\";\n artifacts: AppRemoteRegistryArtifact[];\n };\n};\n\nexport type AppRemoteRegistryArtifact = {\n target: AppArtifactTarget;\n bundle: string;\n sha256: string;\n sizeBytes?: number;\n};\n\nexport type AppRemoteRegistryDocument = {\n name: string;\n description?: string;\n \"dist-tags\": {\n latest: string;\n };\n versions: Record<string, AppRemoteRegistryVersion>;\n};\n\nexport type AppRemoteRegistryResolution = {\n registryUrl: string;\n metadataUrl: string;\n appId: string;\n version: string;\n description?: string;\n publisher?: AppPublisher;\n permissions?: AppPermissions;\n distributionMode: AppDistributionMode;\n target: AppArtifactTarget;\n bundleUrl: string;\n sha256: string;\n};\n"],"mappings":";AAMA,MAAa,2BACX"}
|