@le-space/node 0.1.18 → 0.1.19
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/README.md +1 -2
- package/index.d.ts +8 -8
- package/index.js +9 -9
- package/package.json +4 -4
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { MessageSigner, InstanceAllocation, PortMapping, RuntimeDiagnostics, CrnRecord, RootfsRequiredPortForward, MessageHasher, RootfsManifest as RootfsManifest$1 } from '@
|
|
1
|
+
import * as _le_space_shared_types from '@le-space/shared-types';
|
|
2
|
+
import { MessageSigner, InstanceAllocation, PortMapping, RuntimeDiagnostics, CrnRecord, RootfsRequiredPortForward, MessageHasher, RootfsManifest as RootfsManifest$1 } from '@le-space/shared-types';
|
|
3
3
|
|
|
4
4
|
declare function requiredEnv(name: string, env?: NodeJS.ProcessEnv): string;
|
|
5
5
|
declare function optionalEnv(name: string, fallback?: string, env?: NodeJS.ProcessEnv): string;
|
|
@@ -175,9 +175,9 @@ declare function forgetAlephMessages(args: {
|
|
|
175
175
|
}): Promise<{
|
|
176
176
|
sender: string;
|
|
177
177
|
itemHash: string;
|
|
178
|
-
response:
|
|
178
|
+
response: _le_space_shared_types.AlephBroadcastResponse;
|
|
179
179
|
httpStatus: number;
|
|
180
|
-
status:
|
|
180
|
+
status: _le_space_shared_types.MessageStatus;
|
|
181
181
|
}>;
|
|
182
182
|
|
|
183
183
|
interface RetentionRecord {
|
|
@@ -210,8 +210,8 @@ declare function retainSuccessfulDeployments(args: {
|
|
|
210
210
|
keepCount: number;
|
|
211
211
|
aggregatePublication: {
|
|
212
212
|
itemHash: string;
|
|
213
|
-
status:
|
|
214
|
-
response:
|
|
213
|
+
status: _le_space_shared_types.MessageStatus;
|
|
214
|
+
response: _le_space_shared_types.AlephBroadcastResponse;
|
|
215
215
|
httpStatus: number;
|
|
216
216
|
};
|
|
217
217
|
retainedRecords: RetentionRecord[];
|
|
@@ -223,9 +223,9 @@ declare function retainSuccessfulDeployments(args: {
|
|
|
223
223
|
forgetResult: {
|
|
224
224
|
sender: string;
|
|
225
225
|
itemHash: string;
|
|
226
|
-
response:
|
|
226
|
+
response: _le_space_shared_types.AlephBroadcastResponse;
|
|
227
227
|
httpStatus: number;
|
|
228
|
-
status:
|
|
228
|
+
status: _le_space_shared_types.MessageStatus;
|
|
229
229
|
} | null;
|
|
230
230
|
followUpForgetResults: {
|
|
231
231
|
hash: string;
|
package/index.js
CHANGED
|
@@ -2285,7 +2285,7 @@ async function runActionMode(env = process.env, hooks = {}) {
|
|
|
2285
2285
|
return;
|
|
2286
2286
|
}
|
|
2287
2287
|
if (mode !== "deploy") {
|
|
2288
|
-
throw new Error(`Unsupported ALEPH_VM_MODE "${mode}" in
|
|
2288
|
+
throw new Error(`Unsupported ALEPH_VM_MODE "${mode}" in Aleph action runner.`);
|
|
2289
2289
|
}
|
|
2290
2290
|
const providedDeployResult = parseOptionalJson(env.ALEPH_VM_DEPLOY_RESULT_JSON);
|
|
2291
2291
|
let deployResult = providedDeployResult;
|
|
@@ -2301,19 +2301,19 @@ async function runActionMode(env = process.env, hooks = {}) {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
2303
|
if (!deployResult) {
|
|
2304
|
-
throw new Error("
|
|
2304
|
+
throw new Error("Aleph action runner did not produce a deploy result.");
|
|
2305
2305
|
}
|
|
2306
2306
|
await emitDeployOutputs(deployResult, env);
|
|
2307
2307
|
await appendGithubOutput("action_runner_mode", mode, env);
|
|
2308
2308
|
await appendGithubOutput("action_runner_profile", optionalEnv("ALEPH_VM_PROFILE", "uc-go-peer", env), env);
|
|
2309
2309
|
await appendGithubSummary([
|
|
2310
2310
|
"",
|
|
2311
|
-
"###
|
|
2311
|
+
"### Aleph Action Runner",
|
|
2312
2312
|
"",
|
|
2313
2313
|
`- Mode: \`${mode}\``,
|
|
2314
2314
|
`- Profile: \`${optionalEnv("ALEPH_VM_PROFILE", "uc-go-peer", env)}\``
|
|
2315
2315
|
], env);
|
|
2316
|
-
actionLog("notice", `
|
|
2316
|
+
actionLog("notice", `Aleph action runner executed in ${mode} mode for profile ${optionalEnv("ALEPH_VM_PROFILE", "uc-go-peer", env)}.`);
|
|
2317
2317
|
stdout(`${JSON.stringify(deployResult)}
|
|
2318
2318
|
`);
|
|
2319
2319
|
}
|
|
@@ -2949,7 +2949,7 @@ async function emitRootfsOutputs(result, env = process.env) {
|
|
|
2949
2949
|
await appendGithubOutput("rootfs_source_size_bytes", result.finalized.publication.sourceSizeBytes, env);
|
|
2950
2950
|
}
|
|
2951
2951
|
await appendGithubSummary([
|
|
2952
|
-
"##
|
|
2952
|
+
"## Aleph Rootfs Runner",
|
|
2953
2953
|
"",
|
|
2954
2954
|
`- Version: \`${result.finalized.manifest.version}\``,
|
|
2955
2955
|
`- Execution mode: \`${result.pipeline.executionPlan.mode}\``,
|
|
@@ -2993,7 +2993,7 @@ async function runRootfsMode(env = process.env, hooks = {}) {
|
|
|
2993
2993
|
`);
|
|
2994
2994
|
return;
|
|
2995
2995
|
}
|
|
2996
|
-
throw new Error(`Unsupported ALEPH_VM_MODE "${mode}" in
|
|
2996
|
+
throw new Error(`Unsupported ALEPH_VM_MODE "${mode}" in Aleph rootfs runner.`);
|
|
2997
2997
|
}
|
|
2998
2998
|
async function rootfsMain() {
|
|
2999
2999
|
await runRootfsMode(process.env);
|
|
@@ -3117,7 +3117,7 @@ async function runSitePublishMode(env = process2.env) {
|
|
|
3117
3117
|
await waitForAlephMessage(itemHash, env);
|
|
3118
3118
|
}
|
|
3119
3119
|
await appendGithubSummary([
|
|
3120
|
-
"##
|
|
3120
|
+
"## Aleph Site Runner",
|
|
3121
3121
|
"",
|
|
3122
3122
|
`- Site directory: \`${siteDirectory}\``,
|
|
3123
3123
|
`- IPFS CID v0: \`${cidV0}\``,
|
|
@@ -3144,7 +3144,7 @@ async function runDomainLinkMode(env = process2.env) {
|
|
|
3144
3144
|
await appendGithubOutput("item_hash", itemHash, env);
|
|
3145
3145
|
await appendGithubOutput("url", `https://${domain}`, env);
|
|
3146
3146
|
await appendGithubSummary([
|
|
3147
|
-
"##
|
|
3147
|
+
"## Aleph Site Runner",
|
|
3148
3148
|
"",
|
|
3149
3149
|
`- Linked domain: \`${domain}\``,
|
|
3150
3150
|
`- Aleph item hash: \`${itemHash}\``,
|
|
@@ -3185,7 +3185,7 @@ async function runSiteMode(env = process2.env) {
|
|
|
3185
3185
|
if (mode === "site-domain-link") return await runDomainLinkMode(env);
|
|
3186
3186
|
if (mode === "relay-probe") return await runProbeMode(env);
|
|
3187
3187
|
if (mode === "bootstrap-env") return await runBootstrapEnvMode(env);
|
|
3188
|
-
throw new Error(`Unsupported ALEPH_VM_MODE "${mode}" in
|
|
3188
|
+
throw new Error(`Unsupported ALEPH_VM_MODE "${mode}" in Aleph site runner.`);
|
|
3189
3189
|
}
|
|
3190
3190
|
export {
|
|
3191
3191
|
actionLog,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Node and GitHub Actions adapters for shared Aleph tooling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@le-space/core": "0.1.
|
|
20
|
-
"@le-space/shared-types": "0.1.
|
|
21
|
-
"@le-space/rootfs": "0.1.
|
|
19
|
+
"@le-space/core": "0.1.19",
|
|
20
|
+
"@le-space/shared-types": "0.1.19",
|
|
21
|
+
"@le-space/rootfs": "0.1.19",
|
|
22
22
|
"ethers": "^6.15.0"
|
|
23
23
|
}
|
|
24
24
|
}
|