@start9labs/start-sdk 0.4.0-beta.47 → 0.4.0-beta.48
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/base/lib/Effects.d.ts +1 -1
- package/base/lib/osBindings/AddCategoryParams.d.ts +2 -1
- package/base/lib/osBindings/AddCategoryParams.js +0 -1
- package/base/lib/osBindings/AddCategoryParams.js.map +1 -1
- package/base/lib/osBindings/AddMirrorParams.d.ts +7 -0
- package/base/lib/osBindings/AddMirrorParams.js +3 -0
- package/base/lib/osBindings/AddMirrorParams.js.map +1 -0
- package/base/lib/osBindings/AddPackageParams.d.ts +1 -1
- package/base/lib/osBindings/Alerts.d.ts +6 -5
- package/base/lib/osBindings/Alerts.js +0 -1
- package/base/lib/osBindings/Alerts.js.map +1 -1
- package/base/lib/osBindings/AttachParams.d.ts +1 -1
- package/base/lib/osBindings/Category.d.ts +2 -1
- package/base/lib/osBindings/Category.js +0 -1
- package/base/lib/osBindings/Category.js.map +1 -1
- package/base/lib/osBindings/CurrentDependencyInfo.d.ts +2 -1
- package/base/lib/osBindings/DependencyMetadata.d.ts +3 -2
- package/base/lib/osBindings/Description.d.ts +3 -2
- package/base/lib/osBindings/Description.js +0 -1
- package/base/lib/osBindings/Description.js.map +1 -1
- package/base/lib/osBindings/DeviceFilter.d.ts +5 -2
- package/base/lib/osBindings/GetPackageParams.d.ts +1 -1
- package/base/lib/osBindings/GetServiceManifestParams.d.ts +1 -1
- package/base/lib/osBindings/ImageConfig.d.ts +1 -0
- package/base/lib/osBindings/KeyboardOptions.d.ts +7 -0
- package/base/lib/osBindings/KeyboardOptions.js +4 -0
- package/base/lib/osBindings/KeyboardOptions.js.map +1 -0
- package/base/lib/osBindings/LocaleString.d.ts +1 -0
- package/base/lib/osBindings/LocaleString.js +4 -0
- package/base/lib/osBindings/LocaleString.js.map +1 -0
- package/base/lib/osBindings/LshwDisplay.d.ts +4 -1
- package/base/lib/osBindings/LshwProcessor.d.ts +3 -1
- package/base/lib/osBindings/Manifest.d.ts +3 -1
- package/base/lib/osBindings/Metadata.d.ts +2 -1
- package/base/lib/osBindings/PackageVersionInfo.d.ts +5 -4
- package/base/lib/osBindings/Pem.d.ts +1 -0
- package/base/lib/osBindings/Pem.js +4 -0
- package/base/lib/osBindings/Pem.js.map +1 -0
- package/base/lib/osBindings/RegistryAsset.d.ts +1 -1
- package/base/lib/osBindings/RemoveMirrorParams.d.ts +7 -0
- package/base/lib/osBindings/RemoveMirrorParams.js +3 -0
- package/base/lib/osBindings/RemoveMirrorParams.js.map +1 -0
- package/base/lib/osBindings/RemovePackageParams.d.ts +2 -0
- package/base/lib/osBindings/ServerInfo.d.ts +3 -0
- package/base/lib/osBindings/SetupExecuteParams.d.ts +2 -2
- package/base/lib/osBindings/SetupInfo.d.ts +4 -0
- package/base/lib/osBindings/SetupInfo.js +4 -0
- package/base/lib/osBindings/SetupInfo.js.map +1 -0
- package/base/lib/osBindings/SetupResult.d.ts +3 -3
- package/base/lib/osBindings/SetupResult.js +0 -1
- package/base/lib/osBindings/SetupResult.js.map +1 -1
- package/base/lib/osBindings/SetupStatusRes.d.ts +9 -4
- package/base/lib/osBindings/index.d.ts +6 -0
- package/base/lib/types/ManifestTypes.d.ts +18 -12
- package/base/lib/util/getServiceInterface.js +5 -2
- package/base/lib/util/getServiceInterface.js.map +1 -1
- package/base/lib/util/getServiceInterfaces.js +5 -2
- package/base/lib/util/getServiceInterfaces.js.map +1 -1
- package/package/lib/StartSdk.d.ts +1 -1
- package/package/lib/StartSdk.js +1 -1
- package/package/lib/i18n/index.d.ts +24 -0
- package/package/lib/i18n/index.js +59 -0
- package/package/lib/i18n/index.js.map +1 -0
- package/package/lib/index.d.ts +1 -0
- package/package/lib/index.js +3 -1
- package/package/lib/index.js.map +1 -1
- package/package/lib/manifest/setupManifest.js +2 -0
- package/package/lib/manifest/setupManifest.js.map +1 -1
- package/package/lib/test/output.js +390 -301
- package/package/lib/test/output.js.map +1 -1
- package/package/lib/util/GetServiceManifest.js +5 -2
- package/package/lib/util/GetServiceManifest.js.map +1 -1
- package/package/lib/util/fileHelper.js +6 -2
- package/package/lib/util/fileHelper.js.map +1 -1
- package/package/lib/version/VersionInfo.d.ts +1 -1
- package/package/package.json +1 -1
- package/package.json +1 -1
package/base/lib/Effects.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export type Effects = {
|
|
|
65
65
|
getInstalledPackages(): Promise<string[]>;
|
|
66
66
|
/** Returns the manifest of a service */
|
|
67
67
|
getServiceManifest(options: {
|
|
68
|
-
packageId
|
|
68
|
+
packageId: PackageId;
|
|
69
69
|
callback?: () => void;
|
|
70
70
|
}): Promise<Manifest>;
|
|
71
71
|
/** sets the result of a health check */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCategoryParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/AddCategoryParams.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddCategoryParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/AddCategoryParams.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddMirrorParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/AddMirrorParams.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnySignature } from "./AnySignature";
|
|
2
2
|
import type { MerkleArchiveCommitment } from "./MerkleArchiveCommitment";
|
|
3
3
|
export type AddPackageParams = {
|
|
4
|
-
|
|
4
|
+
urls: string[];
|
|
5
5
|
commitment: MerkleArchiveCommitment;
|
|
6
6
|
signature: AnySignature;
|
|
7
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { LocaleString } from "./LocaleString";
|
|
1
2
|
export type Alerts = {
|
|
2
|
-
install:
|
|
3
|
-
uninstall:
|
|
4
|
-
restore:
|
|
5
|
-
start:
|
|
6
|
-
stop:
|
|
3
|
+
install: LocaleString | null;
|
|
4
|
+
uninstall: LocaleString | null;
|
|
5
|
+
restore: LocaleString | null;
|
|
6
|
+
start: LocaleString | null;
|
|
7
|
+
stop: LocaleString | null;
|
|
7
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Alerts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Alerts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Category.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Category.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { DataUrl } from "./DataUrl";
|
|
2
|
+
import type { LocaleString } from "./LocaleString";
|
|
2
3
|
export type DependencyMetadata = {
|
|
3
|
-
title:
|
|
4
|
+
title: LocaleString | null;
|
|
4
5
|
icon: DataUrl | null;
|
|
5
|
-
description:
|
|
6
|
+
description: LocaleString | null;
|
|
6
7
|
optional: boolean;
|
|
7
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Description.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Description.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardOptions.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/KeyboardOptions.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type LocaleString = string | Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocaleString.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/LocaleString.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
|
|
@@ -5,6 +5,7 @@ import type { GitHash } from "./GitHash";
|
|
|
5
5
|
import type { HardwareRequirements } from "./HardwareRequirements";
|
|
6
6
|
import type { ImageConfig } from "./ImageConfig";
|
|
7
7
|
import type { ImageId } from "./ImageId";
|
|
8
|
+
import type { LocaleString } from "./LocaleString";
|
|
8
9
|
import type { PackageId } from "./PackageId";
|
|
9
10
|
import type { Version } from "./Version";
|
|
10
11
|
import type { VolumeId } from "./VolumeId";
|
|
@@ -13,7 +14,7 @@ export type Manifest = {
|
|
|
13
14
|
title: string;
|
|
14
15
|
version: Version;
|
|
15
16
|
satisfies: Array<Version>;
|
|
16
|
-
releaseNotes:
|
|
17
|
+
releaseNotes: LocaleString;
|
|
17
18
|
canMigrateTo: string;
|
|
18
19
|
canMigrateFrom: string;
|
|
19
20
|
license: string;
|
|
@@ -31,6 +32,7 @@ export type Manifest = {
|
|
|
31
32
|
alerts: Alerts;
|
|
32
33
|
dependencies: Dependencies;
|
|
33
34
|
hardwareRequirements: HardwareRequirements;
|
|
35
|
+
hardwareAcceleration: boolean;
|
|
34
36
|
gitHash: GitHash | null;
|
|
35
37
|
osVersion: string;
|
|
36
38
|
sdkVersion: string | null;
|
|
@@ -4,14 +4,17 @@ import type { DependencyMetadata } from "./DependencyMetadata";
|
|
|
4
4
|
import type { Description } from "./Description";
|
|
5
5
|
import type { GitHash } from "./GitHash";
|
|
6
6
|
import type { HardwareRequirements } from "./HardwareRequirements";
|
|
7
|
+
import type { LocaleString } from "./LocaleString";
|
|
7
8
|
import type { MerkleArchiveCommitment } from "./MerkleArchiveCommitment";
|
|
8
9
|
import type { PackageId } from "./PackageId";
|
|
9
10
|
import type { RegistryAsset } from "./RegistryAsset";
|
|
10
11
|
export type PackageVersionInfo = {
|
|
12
|
+
sourceVersion: string | null;
|
|
13
|
+
s9pks: Array<[HardwareRequirements, RegistryAsset<MerkleArchiveCommitment>]>;
|
|
11
14
|
title: string;
|
|
12
15
|
icon: DataUrl;
|
|
13
16
|
description: Description;
|
|
14
|
-
releaseNotes:
|
|
17
|
+
releaseNotes: LocaleString;
|
|
15
18
|
gitHash: GitHash | null;
|
|
16
19
|
license: string;
|
|
17
20
|
wrapperRepo: string;
|
|
@@ -26,7 +29,5 @@ export type PackageVersionInfo = {
|
|
|
26
29
|
};
|
|
27
30
|
osVersion: string;
|
|
28
31
|
sdkVersion: string | null;
|
|
29
|
-
|
|
30
|
-
sourceVersion: string | null;
|
|
31
|
-
s9pk: RegistryAsset<MerkleArchiveCommitment>;
|
|
32
|
+
hardwareAcceleration: boolean;
|
|
32
33
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Pem = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pem.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/Pem.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
|
|
@@ -2,7 +2,7 @@ import type { AnySignature } from "./AnySignature";
|
|
|
2
2
|
import type { AnyVerifyingKey } from "./AnyVerifyingKey";
|
|
3
3
|
export type RegistryAsset<Commitment> = {
|
|
4
4
|
publishedAt: string;
|
|
5
|
-
|
|
5
|
+
urls: string[];
|
|
6
6
|
commitment: Commitment;
|
|
7
7
|
signatures: {
|
|
8
8
|
[key: AnyVerifyingKey]: AnySignature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMirrorParams.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/RemoveMirrorParams.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Governor } from "./Governor";
|
|
2
|
+
import type { KeyboardOptions } from "./KeyboardOptions";
|
|
2
3
|
import type { LshwDevice } from "./LshwDevice";
|
|
3
4
|
import type { NetworkInfo } from "./NetworkInfo";
|
|
4
5
|
import type { ServerStatus } from "./ServerStatus";
|
|
@@ -25,4 +26,6 @@ export type ServerInfo = {
|
|
|
25
26
|
ram: number;
|
|
26
27
|
devices: Array<LshwDevice>;
|
|
27
28
|
kiosk: boolean | null;
|
|
29
|
+
language: string | null;
|
|
30
|
+
keyboard: KeyboardOptions | null;
|
|
28
31
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EncryptedWire } from "./EncryptedWire";
|
|
2
2
|
import type { RecoverySource } from "./RecoverySource";
|
|
3
3
|
export type SetupExecuteParams = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
guid: string;
|
|
5
|
+
password: EncryptedWire;
|
|
6
6
|
recoverySource: RecoverySource<EncryptedWire> | null;
|
|
7
7
|
kiosk?: boolean;
|
|
8
8
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetupInfo.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/SetupInfo.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetupResult.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/SetupResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SetupResult.js","sourceRoot":"","sources":["../../../../base/lib/osBindings/SetupResult.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import type { SetupInfo } from "./SetupInfo";
|
|
1
2
|
import type { SetupProgress } from "./SetupProgress";
|
|
2
3
|
import type { SetupResult } from "./SetupResult";
|
|
3
|
-
export type SetupStatusRes =
|
|
4
|
-
status: "
|
|
5
|
-
}
|
|
4
|
+
export type SetupStatusRes = {
|
|
5
|
+
status: "needs-install";
|
|
6
|
+
} | ({
|
|
7
|
+
status: "incomplete";
|
|
8
|
+
} & SetupInfo) | ({
|
|
6
9
|
status: "running";
|
|
7
|
-
} & SetupProgress)
|
|
10
|
+
} & SetupProgress) | ({
|
|
11
|
+
status: "complete";
|
|
12
|
+
} & SetupResult);
|
|
@@ -13,6 +13,7 @@ export { ActionVisibility } from "./ActionVisibility";
|
|
|
13
13
|
export { AddAdminParams } from "./AddAdminParams";
|
|
14
14
|
export { AddAssetParams } from "./AddAssetParams";
|
|
15
15
|
export { AddCategoryParams } from "./AddCategoryParams";
|
|
16
|
+
export { AddMirrorParams } from "./AddMirrorParams";
|
|
16
17
|
export { AddPackageParams } from "./AddPackageParams";
|
|
17
18
|
export { AddPackageSignerParams } from "./AddPackageSignerParams";
|
|
18
19
|
export { AddPackageToCategoryParams } from "./AddPackageToCategoryParams";
|
|
@@ -120,9 +121,11 @@ export { InstallingState } from "./InstallingState";
|
|
|
120
121
|
export { InstallParams } from "./InstallParams";
|
|
121
122
|
export { IpHostname } from "./IpHostname";
|
|
122
123
|
export { IpInfo } from "./IpInfo";
|
|
124
|
+
export { KeyboardOptions } from "./KeyboardOptions";
|
|
123
125
|
export { ListPackageSignersParams } from "./ListPackageSignersParams";
|
|
124
126
|
export { ListServiceInterfacesParams } from "./ListServiceInterfacesParams";
|
|
125
127
|
export { ListVersionSignersParams } from "./ListVersionSignersParams";
|
|
128
|
+
export { LocaleString } from "./LocaleString";
|
|
126
129
|
export { LoginParams } from "./LoginParams";
|
|
127
130
|
export { LshwDevice } from "./LshwDevice";
|
|
128
131
|
export { LshwDisplay } from "./LshwDisplay";
|
|
@@ -160,6 +163,7 @@ export { PackageState } from "./PackageState";
|
|
|
160
163
|
export { PackageVersionInfo } from "./PackageVersionInfo";
|
|
161
164
|
export { PasswordType } from "./PasswordType";
|
|
162
165
|
export { PathOrUrl } from "./PathOrUrl";
|
|
166
|
+
export { Pem } from "./Pem";
|
|
163
167
|
export { Percentage } from "./Percentage";
|
|
164
168
|
export { Progress } from "./Progress";
|
|
165
169
|
export { ProgressUnits } from "./ProgressUnits";
|
|
@@ -171,6 +175,7 @@ export { RegistryInfo } from "./RegistryInfo";
|
|
|
171
175
|
export { RemoveAdminParams } from "./RemoveAdminParams";
|
|
172
176
|
export { RemoveAssetParams } from "./RemoveAssetParams";
|
|
173
177
|
export { RemoveCategoryParams } from "./RemoveCategoryParams";
|
|
178
|
+
export { RemoveMirrorParams } from "./RemoveMirrorParams";
|
|
174
179
|
export { RemovePackageFromCategoryParams } from "./RemovePackageFromCategoryParams";
|
|
175
180
|
export { RemovePackageParams } from "./RemovePackageParams";
|
|
176
181
|
export { RemovePackageSignerParams } from "./RemovePackageSignerParams";
|
|
@@ -197,6 +202,7 @@ export { SetMainStatusStatus } from "./SetMainStatusStatus";
|
|
|
197
202
|
export { SetMainStatus } from "./SetMainStatus";
|
|
198
203
|
export { SetNameParams } from "./SetNameParams";
|
|
199
204
|
export { SetupExecuteParams } from "./SetupExecuteParams";
|
|
205
|
+
export { SetupInfo } from "./SetupInfo";
|
|
200
206
|
export { SetupProgress } from "./SetupProgress";
|
|
201
207
|
export { SetupResult } from "./SetupResult";
|
|
202
208
|
export { SetupStatusRes } from "./SetupStatusRes";
|
|
@@ -47,9 +47,9 @@ export type SDKManifest = {
|
|
|
47
47
|
readonly docsUrl: string;
|
|
48
48
|
readonly description: {
|
|
49
49
|
/** Short description to display on the marketplace list page. Max length 80 chars. */
|
|
50
|
-
readonly short:
|
|
50
|
+
readonly short: T.LocaleString;
|
|
51
51
|
/** Long description to display on the marketplace details page for this service. Max length 500 chars. */
|
|
52
|
-
readonly long:
|
|
52
|
+
readonly long: T.LocaleString;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* override the StartOS version this package was made for
|
|
@@ -94,17 +94,17 @@ export type SDKManifest = {
|
|
|
94
94
|
readonly volumes: string[];
|
|
95
95
|
readonly alerts?: {
|
|
96
96
|
/** An warning alert requiring user confirmation before proceeding with initial installation of this service. */
|
|
97
|
-
readonly install?:
|
|
97
|
+
readonly install?: T.LocaleString | null;
|
|
98
98
|
/** An warning alert requiring user confirmation before updating this service. */
|
|
99
|
-
readonly update?:
|
|
99
|
+
readonly update?: T.LocaleString | null;
|
|
100
100
|
/** An warning alert requiring user confirmation before uninstalling this service. */
|
|
101
|
-
readonly uninstall?:
|
|
101
|
+
readonly uninstall?: T.LocaleString | null;
|
|
102
102
|
/** An warning alert requiring user confirmation before restoring this service from backup. */
|
|
103
|
-
readonly restore?:
|
|
103
|
+
readonly restore?: T.LocaleString | null;
|
|
104
104
|
/** An warning alert requiring user confirmation before starting this service. */
|
|
105
|
-
readonly start?:
|
|
105
|
+
readonly start?: T.LocaleString | null;
|
|
106
106
|
/** An warning alert requiring user confirmation before stopping this service. */
|
|
107
|
-
readonly stop?:
|
|
107
|
+
readonly stop?: T.LocaleString | null;
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
110
|
* @description A mapping of service dependencies to be displayed to users when viewing the Marketplace
|
|
@@ -126,16 +126,17 @@ export type SDKManifest = {
|
|
|
126
126
|
/**
|
|
127
127
|
* @description (optional) A set of hardware requirements for this service. If the user's machine
|
|
128
128
|
* does not meet these requirements, they will not be able to install this service.
|
|
129
|
-
* @property {object[]} devices -
|
|
129
|
+
* @property {object[]} devices - List of required devices (display or processor).
|
|
130
|
+
* `pattern` refers to a regular expression that at least one device of the specified class must match
|
|
131
|
+
* `patternDescription` is what will be displayed to the user about what kind of device is required
|
|
130
132
|
* @property {number} ram - Minimum RAM requirement (in megabytes MB)
|
|
131
133
|
* @property {string[]} arch - List of supported arches
|
|
132
134
|
* @example
|
|
133
135
|
* ```
|
|
134
|
-
TODO Aiden verify below and provide examples for devices
|
|
135
136
|
hardwareRequirements: {
|
|
136
137
|
devices: [
|
|
137
|
-
{ class: 'display',
|
|
138
|
-
{ class: 'processor',
|
|
138
|
+
{ class: 'display', pattern: 'CometLake', patternDescription: 'A CometLake (10th generation) Intel Integrated GPU' },
|
|
139
|
+
{ class: 'processor', pattern: 'i[3579]-10[0-9]{3}U CPU', patternDescription: 'A 10th Generation Intel i-Series processor' },
|
|
139
140
|
],
|
|
140
141
|
ram: 8192,
|
|
141
142
|
arch: ['x86-64'],
|
|
@@ -147,6 +148,10 @@ export type SDKManifest = {
|
|
|
147
148
|
readonly ram?: number | null;
|
|
148
149
|
readonly arch?: string[] | null;
|
|
149
150
|
};
|
|
151
|
+
/**
|
|
152
|
+
* @description Enable access to hardware acceleration devices (such as /dev/dri, or /dev/nvidia*)
|
|
153
|
+
*/
|
|
154
|
+
readonly hardwareAcceleration?: boolean;
|
|
150
155
|
};
|
|
151
156
|
type ArchOptions = {
|
|
152
157
|
0: ["x86_64", "aarch64", "riscv64"];
|
|
@@ -170,6 +175,7 @@ export type SDKImageInputSpec = {
|
|
|
170
175
|
source: Exclude<ImageSource, "packed">;
|
|
171
176
|
arch?: ArchOptions[A];
|
|
172
177
|
emulateMissingAs?: ArchOptions[A][number] | null;
|
|
178
|
+
nvidiaContainer?: boolean;
|
|
173
179
|
};
|
|
174
180
|
}[keyof ArchOptions];
|
|
175
181
|
export type ManifestDependency = T.Manifest["dependencies"][string];
|
|
@@ -186,10 +186,13 @@ class GetServiceInterface {
|
|
|
186
186
|
const watch = this.watch(abort.signal);
|
|
187
187
|
const res = await watch.next();
|
|
188
188
|
if (this.effects.constRetry) {
|
|
189
|
-
watch
|
|
189
|
+
watch
|
|
190
|
+
.next()
|
|
191
|
+
.then(() => {
|
|
190
192
|
abort.abort();
|
|
191
193
|
this.effects.constRetry && this.effects.constRetry();
|
|
192
|
-
})
|
|
194
|
+
})
|
|
195
|
+
.catch();
|
|
193
196
|
}
|
|
194
197
|
return res.value;
|
|
195
198
|
}
|