@start9labs/start-sdk 0.3.6-beta.0 → 0.3.6-beta.1
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 +2 -2
- package/base/lib/osBindings/BindInfo.d.ts +2 -2
- package/base/lib/osBindings/IpInfo.d.ts +3 -4
- package/base/lib/osBindings/Manifest.d.ts +2 -1
- package/base/lib/osBindings/NetworkInterfaceInfo.d.ts +1 -2
- package/base/lib/osBindings/PackageVersionInfo.d.ts +2 -1
- package/base/lib/osBindings/ServerInfo.d.ts +3 -3
- package/base/lib/osBindings/index.d.ts +5 -1
- package/package/lib/StartSdk.d.ts +1 -1
- package/package/lib/manifest/setupManifest.js +0 -12
- package/package/lib/manifest/setupManifest.js.map +1 -1
- package/package/lib/test/output.sdk.d.ts +1 -1
- package/package.json +2 -2
package/base/lib/Effects.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionId, ActionInput, ActionMetadata, SetMainStatus, DependencyRequirement, CheckDependenciesResult, SetHealth, BindParams, HostId,
|
|
1
|
+
import { ActionId, ActionInput, ActionMetadata, SetMainStatus, DependencyRequirement, CheckDependenciesResult, SetHealth, BindParams, HostId, NetInfo, Host, ExportServiceInterfaceParams, ServiceInterface, RequestActionParams, MainStatus } from "./osBindings";
|
|
2
2
|
import { StorePath } from "./util/PathBuilder";
|
|
3
3
|
import { PackageId, Dependencies, ServiceInterfaceId, SmtpValue, ActionResult } from "./types";
|
|
4
4
|
import { UrlString } from "./util/getServiceInterface";
|
|
@@ -93,7 +93,7 @@ export type Effects = {
|
|
|
93
93
|
packageId?: PackageId;
|
|
94
94
|
hostId: HostId;
|
|
95
95
|
internalPort: number;
|
|
96
|
-
}): Promise<
|
|
96
|
+
}): Promise<NetInfo>;
|
|
97
97
|
/** Removes all network bindings, called in the setupInputSpec */
|
|
98
98
|
clearBindings(options: {
|
|
99
99
|
except: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Alerts } from "./Alerts";
|
|
2
2
|
import type { Dependencies } from "./Dependencies";
|
|
3
3
|
import type { Description } from "./Description";
|
|
4
|
+
import type { GitHash } from "./GitHash";
|
|
4
5
|
import type { HardwareRequirements } from "./HardwareRequirements";
|
|
5
6
|
import type { ImageConfig } from "./ImageConfig";
|
|
6
7
|
import type { ImageId } from "./ImageId";
|
|
@@ -30,6 +31,6 @@ export type Manifest = {
|
|
|
30
31
|
alerts: Alerts;
|
|
31
32
|
dependencies: Dependencies;
|
|
32
33
|
hardwareRequirements: HardwareRequirements;
|
|
33
|
-
gitHash
|
|
34
|
+
gitHash?: GitHash;
|
|
34
35
|
osVersion: string;
|
|
35
36
|
};
|
|
@@ -2,6 +2,7 @@ import type { Alerts } from "./Alerts";
|
|
|
2
2
|
import type { DataUrl } from "./DataUrl";
|
|
3
3
|
import type { DependencyMetadata } from "./DependencyMetadata";
|
|
4
4
|
import type { Description } from "./Description";
|
|
5
|
+
import type { GitHash } from "./GitHash";
|
|
5
6
|
import type { HardwareRequirements } from "./HardwareRequirements";
|
|
6
7
|
import type { MerkleArchiveCommitment } from "./MerkleArchiveCommitment";
|
|
7
8
|
import type { PackageId } from "./PackageId";
|
|
@@ -11,7 +12,7 @@ export type PackageVersionInfo = {
|
|
|
11
12
|
icon: DataUrl;
|
|
12
13
|
description: Description;
|
|
13
14
|
releaseNotes: string;
|
|
14
|
-
gitHash:
|
|
15
|
+
gitHash: GitHash;
|
|
15
16
|
license: string;
|
|
16
17
|
wrapperRepo: string;
|
|
17
18
|
upstreamRepo: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AcmeSettings } from "./AcmeSettings";
|
|
2
2
|
import type { Governor } from "./Governor";
|
|
3
|
-
import type { IpInfo } from "./IpInfo";
|
|
4
3
|
import type { LshwDevice } from "./LshwDevice";
|
|
4
|
+
import type { NetworkInterfaceInfo } from "./NetworkInterfaceInfo";
|
|
5
5
|
import type { ServerStatus } from "./ServerStatus";
|
|
6
6
|
import type { SmtpValue } from "./SmtpValue";
|
|
7
7
|
import type { WifiInfo } from "./WifiInfo";
|
|
@@ -20,8 +20,8 @@ export type ServerInfo = {
|
|
|
20
20
|
* for backwards compatibility
|
|
21
21
|
*/
|
|
22
22
|
torAddress: string;
|
|
23
|
-
|
|
24
|
-
[key: string]:
|
|
23
|
+
networkInterfaces: {
|
|
24
|
+
[key: string]: NetworkInterfaceInfo;
|
|
25
25
|
};
|
|
26
26
|
acme: AcmeSettings | null;
|
|
27
27
|
statusInfo: ServerStatus;
|
|
@@ -90,6 +90,7 @@ export { GetSslKeyParams } from "./GetSslKeyParams";
|
|
|
90
90
|
export { GetStatusParams } from "./GetStatusParams";
|
|
91
91
|
export { GetStoreParams } from "./GetStoreParams";
|
|
92
92
|
export { GetSystemSmtpParams } from "./GetSystemSmtpParams";
|
|
93
|
+
export { GitHash } from "./GitHash";
|
|
93
94
|
export { Governor } from "./Governor";
|
|
94
95
|
export { Guid } from "./Guid";
|
|
95
96
|
export { HardwareRequirements } from "./HardwareRequirements";
|
|
@@ -112,7 +113,6 @@ export { InstallingState } from "./InstallingState";
|
|
|
112
113
|
export { InstallParams } from "./InstallParams";
|
|
113
114
|
export { IpHostname } from "./IpHostname";
|
|
114
115
|
export { IpInfo } from "./IpInfo";
|
|
115
|
-
export { LanInfo } from "./LanInfo";
|
|
116
116
|
export { ListPackageSignersParams } from "./ListPackageSignersParams";
|
|
117
117
|
export { ListServiceInterfacesParams } from "./ListServiceInterfacesParams";
|
|
118
118
|
export { ListVersionSignersParams } from "./ListVersionSignersParams";
|
|
@@ -128,6 +128,8 @@ export { MountParams } from "./MountParams";
|
|
|
128
128
|
export { MountTarget } from "./MountTarget";
|
|
129
129
|
export { NamedHealthCheckResult } from "./NamedHealthCheckResult";
|
|
130
130
|
export { NamedProgress } from "./NamedProgress";
|
|
131
|
+
export { NetInfo } from "./NetInfo";
|
|
132
|
+
export { NetworkInterfaceInfo } from "./NetworkInterfaceInfo";
|
|
131
133
|
export { OnionHostname } from "./OnionHostname";
|
|
132
134
|
export { OsIndex } from "./OsIndex";
|
|
133
135
|
export { OsVersionInfoMap } from "./OsVersionInfoMap";
|
|
@@ -172,6 +174,7 @@ export { SetIconParams } from "./SetIconParams";
|
|
|
172
174
|
export { SetMainStatusStatus } from "./SetMainStatusStatus";
|
|
173
175
|
export { SetMainStatus } from "./SetMainStatus";
|
|
174
176
|
export { SetNameParams } from "./SetNameParams";
|
|
177
|
+
export { SetPublicParams } from "./SetPublicParams";
|
|
175
178
|
export { SetStoreParams } from "./SetStoreParams";
|
|
176
179
|
export { SetupExecuteParams } from "./SetupExecuteParams";
|
|
177
180
|
export { SetupProgress } from "./SetupProgress";
|
|
@@ -181,6 +184,7 @@ export { SignAssetParams } from "./SignAssetParams";
|
|
|
181
184
|
export { SignerInfo } from "./SignerInfo";
|
|
182
185
|
export { SmtpValue } from "./SmtpValue";
|
|
183
186
|
export { StartStop } from "./StartStop";
|
|
187
|
+
export { UnsetPublicParams } from "./UnsetPublicParams";
|
|
184
188
|
export { UpdatingState } from "./UpdatingState";
|
|
185
189
|
export { VerifyCifsParams } from "./VerifyCifsParams";
|
|
186
190
|
export { VersionSignerParams } from "./VersionSignerParams";
|
|
@@ -1204,7 +1204,7 @@ export declare class StartSdk<Manifest extends T.SDKManifest, Store> {
|
|
|
1204
1204
|
packageId?: string | undefined;
|
|
1205
1205
|
hostId: string;
|
|
1206
1206
|
internalPort: number;
|
|
1207
|
-
}) => Promise<T.
|
|
1207
|
+
}) => Promise<T.NetInfo>;
|
|
1208
1208
|
clearBindings: (effects: Effects, options: {
|
|
1209
1209
|
except: {
|
|
1210
1210
|
id: string;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildManifest = exports.setupManifest = void 0;
|
|
4
4
|
const StartSdk_1 = require("../StartSdk");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
5
|
/**
|
|
7
6
|
* @description Use this function to define critical information about your package
|
|
8
7
|
*
|
|
@@ -12,16 +11,6 @@ function setupManifest(manifest) {
|
|
|
12
11
|
return manifest;
|
|
13
12
|
}
|
|
14
13
|
exports.setupManifest = setupManifest;
|
|
15
|
-
function gitHash() {
|
|
16
|
-
const hash = (0, child_process_1.execSync)("git rev-parse HEAD").toString().trim();
|
|
17
|
-
try {
|
|
18
|
-
(0, child_process_1.execSync)("git diff-index --quiet HEAD --");
|
|
19
|
-
return hash;
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
return hash + "-modified";
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
14
|
function buildManifest(versions, manifest) {
|
|
26
15
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
27
16
|
const images = Object.entries(manifest.images).reduce((images, [k, v]) => {
|
|
@@ -35,7 +24,6 @@ function buildManifest(versions, manifest) {
|
|
|
35
24
|
}, {});
|
|
36
25
|
return {
|
|
37
26
|
...manifest,
|
|
38
|
-
gitHash: gitHash(),
|
|
39
27
|
osVersion: StartSdk_1.SDKVersion,
|
|
40
28
|
version: versions.current.options.version,
|
|
41
29
|
releaseNotes: versions.current.options.releaseNotes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupManifest.js","sourceRoot":"","sources":["../../../../package/lib/manifest/setupManifest.ts"],"names":[],"mappings":";;;AAMA,0CAAwC;
|
|
1
|
+
{"version":3,"file":"setupManifest.js","sourceRoot":"","sources":["../../../../package/lib/manifest/setupManifest.ts"],"names":[],"mappings":";;;AAMA,0CAAwC;AAIxC;;;;GAIG;AACH,SAAgB,aAAa,CAS3B,QAAgC;IAChC,OAAO,QAAQ,CAAA;AACjB,CAAC;AAXD,sCAWC;AAED,SAAgB,aAAa,CAe3B,QAA+B,EAC/B,QAAgC;;IAEhC,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CACnD,C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AAM,0CAAE,KAAK,KAAI,IAAI;YACrC,IAAI,EAAE,CAAA,MAAA,QAAQ,CAAC,MAAM,0CAAE,IAAI,KAAI,IAAI;SACpC;QACD,oBAAoB,EAAE;YACpB,MAAM,EAAE,CAAA,MAAA,QAAQ,CAAC,oBAAoB,0CAAE,MAAM,KAAI,EAAE;YACnD,GAAG,EAAE,CAAA,MAAA,QAAQ,CAAC,oBAAoB,0CAAE,GAAG,KAAI,IAAI;YAC/C,IAAI,EACF,CAAA,MAAA,QAAQ,CAAC,oBAAoB,0CAAE,IAAI,MAAK,SAAS;gBAC/C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAC1B,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;oBAClB,IAAI,SAAS,CAAC,gBAAgB,EAAE;wBAC9B,OAAO,IAAI,CAAA;qBACZ;oBACD,IAAI,IAAI,KAAK,IAAI,EAAE;wBACjB,OAAO,SAAS,CAAC,IAAI,CAAA;qBACtB;oBACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;gBACvD,CAAC,EACD,IAAuB,CACxB;gBACH,CAAC,CAAC,MAAA,QAAQ,CAAC,oBAAoB,0CAAE,IAAI;SAC1C;KACF,CAAA;AACH,CAAC;AAnED,sCAmEC"}
|
|
@@ -1131,7 +1131,7 @@ export declare const sdk: {
|
|
|
1131
1131
|
packageId?: string | undefined;
|
|
1132
1132
|
hostId: string;
|
|
1133
1133
|
internalPort: number;
|
|
1134
|
-
}) => Promise<import("../../../base/lib/osBindings").
|
|
1134
|
+
}) => Promise<import("../../../base/lib/osBindings").NetInfo>;
|
|
1135
1135
|
clearBindings: (effects: import("../../../base/lib/Effects").Effects, options: {
|
|
1136
1136
|
except: {
|
|
1137
1137
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@start9labs/start-sdk",
|
|
3
|
-
"version": "0.3.6-beta.
|
|
3
|
+
"version": "0.3.6-beta.1",
|
|
4
4
|
"description": "Software development kit to facilitate packaging services for StartOS",
|
|
5
5
|
"main": "./package/lib/index.js",
|
|
6
6
|
"types": "./package/lib/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"isomorphic-fetch": "^3.0.0",
|
|
34
34
|
"lodash.merge": "^4.6.2",
|
|
35
35
|
"mime-types": "^2.1.35",
|
|
36
|
-
"ts-matches": "^6.1
|
|
36
|
+
"ts-matches": "^6.2.1",
|
|
37
37
|
"yaml": "^2.2.2",
|
|
38
38
|
"@iarna/toml": "^2.2.5",
|
|
39
39
|
"@noble/curves": "^1.4.0",
|