@deslop/scope 0.1.1266 → 0.1.1267
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/server.js +10 -10
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -91568,7 +91568,7 @@ String$6.check(isPattern(/^\d+(?:,\d+)*$/u));
|
|
|
91568
91568
|
function flagsOf(settings) {
|
|
91569
91569
|
return map$9(settings, (setting, key) => pipe(String$1(setting.flag), withSchema(setting.schema), withFallbackConfig(schema$1(setting.schema, key)), withDescription(`${setting.description} [${key}]`), optional));
|
|
91570
91570
|
}
|
|
91571
|
-
const
|
|
91571
|
+
const configProvider = fnUntraced(function* (given, defaultPort) {
|
|
91572
91572
|
const port = given["PORT"] ?? `${defaultPort}`;
|
|
91573
91573
|
const url = given["APP_URL"] ?? `http://localhost:${port}`;
|
|
91574
91574
|
if (given["AUTH_URL"] !== void 0 && new URL(url).protocol !== "https:") return yield* AppError.make({ message: "With --auth, set --url to the app's HTTPS origin" });
|
|
@@ -91614,12 +91614,12 @@ function runApp(app) {
|
|
|
91614
91614
|
};
|
|
91615
91615
|
const root = pipe(make$4(name), withSharedFlags(flagsOf(settings)));
|
|
91616
91616
|
const given = map$5(root, (input) => getSomes$1(input));
|
|
91617
|
-
return yield* pipe(root, withHandler((input) => flatMap$3(
|
|
91617
|
+
return yield* pipe(root, withHandler((input) => flatMap$3(configProvider(getSomes$1(input), metadata.config.port), (values) => provideService(server(app), ConfigProvider, values))), withSubcommands([pipe(make$4("service"), withSubcommands([
|
|
91618
91618
|
make$4("install", {}, fnUntraced(function* () {
|
|
91619
91619
|
const fs = yield* FileSystem;
|
|
91620
91620
|
const path = yield* Path$1;
|
|
91621
91621
|
const flags = yield* given;
|
|
91622
|
-
yield*
|
|
91622
|
+
yield* configProvider(flags, metadata.config.port);
|
|
91623
91623
|
const entry = path.join(yield* activate(name, yield* fs.realPath(packageRoot)), "dist", "server.js");
|
|
91624
91624
|
const args = flatten$3(collect$1(flags, (key, value) => [`--${settings[key]?.flag ?? key}`, value]));
|
|
91625
91625
|
yield* output(yield* install(name, [
|
|
@@ -91912,7 +91912,7 @@ function newestVersions(entries, known) {
|
|
|
91912
91912
|
})), (item) => item.version !== "");
|
|
91913
91913
|
return union$2(known, map$9(groupBy(versioned, (item) => item.service), (group) => max$2(map$8(group, (item) => item.version), byRelease)), max$3(byRelease));
|
|
91914
91914
|
}
|
|
91915
|
-
function
|
|
91915
|
+
function isSuperseded(entry, newest) {
|
|
91916
91916
|
const version = releaseOf(entry);
|
|
91917
91917
|
return version !== "" && exists(get$10(newest, entry.service), (latest) => isLessThan$1(byRelease)(version, latest));
|
|
91918
91918
|
}
|
|
@@ -91928,7 +91928,7 @@ function retentionOf(current, newest, receivedAt, retentionMs) {
|
|
|
91928
91928
|
return match$8(fromUndefinedOr(entry.receivedAt), {
|
|
91929
91929
|
onNone: () => BigInt(entry.time),
|
|
91930
91930
|
onSome: (time) => BigInt(time) * 1000000n
|
|
91931
|
-
}) < cutoff ||
|
|
91931
|
+
}) < cutoff || isSuperseded(entry, newest);
|
|
91932
91932
|
});
|
|
91933
91933
|
return {
|
|
91934
91934
|
expired,
|
|
@@ -91938,11 +91938,11 @@ function retentionOf(current, newest, receivedAt, retentionMs) {
|
|
|
91938
91938
|
}
|
|
91939
91939
|
function reconcileReleases(current, entries, known) {
|
|
91940
91940
|
const newest = newestVersions(entries, known);
|
|
91941
|
-
const accepted = filter$3(entries, (entry) => !
|
|
91941
|
+
const accepted = filter$3(entries, (entry) => !isSuperseded(entry, newest));
|
|
91942
91942
|
const replaced = filter$3(match$1(isEmptyRecord(filter$4(newest, (latest, name) => known[name] !== latest)), {
|
|
91943
91943
|
onFalse: () => fromIterable$6(values(current)),
|
|
91944
91944
|
onTrue: () => []
|
|
91945
|
-
}), (entry) =>
|
|
91945
|
+
}), (entry) => isSuperseded(entry, newest));
|
|
91946
91946
|
return {
|
|
91947
91947
|
accepted,
|
|
91948
91948
|
newest,
|
|
@@ -92432,7 +92432,7 @@ function text(key, value) {
|
|
|
92432
92432
|
value: { stringValue: value }
|
|
92433
92433
|
};
|
|
92434
92434
|
}
|
|
92435
|
-
function
|
|
92435
|
+
function repositoryTraces(repository, spans) {
|
|
92436
92436
|
return TracesRequest.make({ resourceSpans: [{
|
|
92437
92437
|
resource: { attributes: [text("service.name", repository), text("scope.runtime", "ci")] },
|
|
92438
92438
|
scopeSpans: [{
|
|
@@ -92449,7 +92449,7 @@ function runIds(event) {
|
|
|
92449
92449
|
}
|
|
92450
92450
|
function runTrace(event) {
|
|
92451
92451
|
const run = event.workflow_run;
|
|
92452
|
-
return
|
|
92452
|
+
return repositoryTraces(event.repository.full_name, [{
|
|
92453
92453
|
attributes: [
|
|
92454
92454
|
text("github.title", run.display_title),
|
|
92455
92455
|
text("github.event", run.event),
|
|
@@ -92481,7 +92481,7 @@ function jobTrace(event) {
|
|
|
92481
92481
|
...times
|
|
92482
92482
|
})))));
|
|
92483
92483
|
const failed = findFirst(steps, (step) => statusOf(step.conclusion, "").code === 2);
|
|
92484
|
-
return
|
|
92484
|
+
return repositoryTraces(event.repository.full_name, [{
|
|
92485
92485
|
attributes: [
|
|
92486
92486
|
text("github.runner", job.runner_name ?? ""),
|
|
92487
92487
|
text("github.conclusion", job.conclusion ?? ""),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/scope",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1267",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=26"
|
|
34
34
|
},
|
|
35
|
-
"fingerprint": "
|
|
35
|
+
"fingerprint": "2d2df69df9e433df54a12ab0b6dc01897a90915d57eab87df73afb8e8006ac44"
|
|
36
36
|
}
|