@openscout/scout 0.2.73 → 0.2.74
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/bin/scoutd +0 -0
- package/dist/build-manifest.json +9 -0
- package/dist/client/assets/{RepoDiffViewer-D8gg36W3.js → RepoDiffViewer-CTXJvjIL.js} +1 -1
- package/dist/client/assets/{addon-fit-D4KdY-pj.js → addon-fit-3IrvLm2n.js} +1 -1
- package/dist/client/assets/{addon-webgl-Bo_tmKBp.js → addon-webgl-BgxIDUI-.js} +1 -1
- package/dist/client/assets/{arc.es-D0gujIKy.js → arc.es-Bh8P_xre.js} +1 -1
- package/dist/client/assets/c-BIGW1oBm.js +1 -0
- package/dist/client/assets/cpp-DIPi6g--.js +1 -0
- package/dist/client/assets/css-CLj8gQPS.js +1 -0
- package/dist/client/assets/dart-bE4Kk8sk.js +1 -0
- package/dist/client/assets/docker-BcOcwvcX.js +1 -0
- package/dist/client/assets/{embed-entry-CUVNwyB_.js → embed-entry-wAEtYUEM.js} +1 -1
- package/dist/client/assets/go-C27-OAKa.js +1 -0
- package/dist/client/assets/html-pp8916En.js +1 -0
- package/dist/client/assets/index-BK3mRYyN.js +272 -0
- package/dist/client/assets/index-Dm1ZQS9G.css +1 -0
- package/dist/client/assets/java-CylS5w8V.js +1 -0
- package/dist/client/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/client/assets/json-Cp-IABpG.js +1 -0
- package/dist/client/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/client/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/client/assets/make-CHLpvVh8.js +1 -0
- package/dist/client/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/client/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/client/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/client/assets/python-B6aJPvgy.js +1 -0
- package/dist/client/assets/ruby-B13GW9FM.js +1 -0
- package/dist/client/assets/rust-B1yitclQ.js +1 -0
- package/dist/client/assets/scss-D5BDwBP9.js +1 -0
- package/dist/client/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/client/assets/sql-CRqJ_cUM.js +1 -0
- package/dist/client/assets/swift-D82vCrfD.js +1 -0
- package/dist/client/assets/toml-vGWfd6FD.js +1 -0
- package/dist/client/assets/tsx-COt5Ahok.js +1 -0
- package/dist/client/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/client/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/client/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/client/assets/{xterm-RfflDFod.js → xterm-CoGJTxj9.js} +1 -1
- package/dist/client/assets/yaml-Buea-lGh.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/main.mjs +887 -584
- package/dist/node/main.mjs +115 -1
- package/dist/pairing-runtime-controller.mjs +2525 -895
- package/dist/runtime/base-daemon.mjs +77 -20
- package/dist/runtime/broker-daemon.mjs +1403 -705
- package/dist/runtime/broker-process-manager.mjs +29 -0
- package/dist/runtime/mesh-discover.mjs +29 -0
- package/dist/scout-control-plane-web.mjs +2970 -1116
- package/dist/scout-web-server.mjs +2970 -1116
- package/package.json +1 -1
- package/dist/client/assets/index-CRkjiso5.js +0 -257
- package/dist/client/assets/index-D_RX2cRb.css +0 -1
|
@@ -2204,6 +2204,29 @@ function readNumber2(value) {
|
|
|
2204
2204
|
function readHealthTransport(value) {
|
|
2205
2205
|
return value === "unix_socket" || value === "http" || value === "in_process" ? value : undefined;
|
|
2206
2206
|
}
|
|
2207
|
+
function readRuntimeFreshness(value) {
|
|
2208
|
+
if (!isRecord3(value))
|
|
2209
|
+
return;
|
|
2210
|
+
const state = readString2(value.state);
|
|
2211
|
+
const basis = readString2(value.basis);
|
|
2212
|
+
const detail = readString2(value.detail);
|
|
2213
|
+
if (!state || !basis || !detail)
|
|
2214
|
+
return;
|
|
2215
|
+
return {
|
|
2216
|
+
state,
|
|
2217
|
+
intentional: readBoolean(value.intentional) ?? false,
|
|
2218
|
+
basis,
|
|
2219
|
+
artifactCommit: readString2(value.artifactCommit) ?? null,
|
|
2220
|
+
expectedCommit: readString2(value.expectedCommit) ?? null,
|
|
2221
|
+
pin: readString2(value.pin) ?? null,
|
|
2222
|
+
pinReason: readString2(value.pinReason) ?? null,
|
|
2223
|
+
manifestPath: readString2(value.manifestPath) ?? null,
|
|
2224
|
+
version: readString2(value.version) ?? null,
|
|
2225
|
+
builtAt: readString2(value.builtAt) ?? null,
|
|
2226
|
+
sourceDirty: readBoolean(value.sourceDirty) ?? null,
|
|
2227
|
+
detail
|
|
2228
|
+
};
|
|
2229
|
+
}
|
|
2207
2230
|
function normalizeNativeServiceStatus(input, config) {
|
|
2208
2231
|
const healthRecord = isRecord3(input.health) ? input.health : {};
|
|
2209
2232
|
const healthReachable = readBoolean(healthRecord.reachable) ?? readBoolean(input.reachable) ?? false;
|
|
@@ -2219,6 +2242,7 @@ function normalizeNativeServiceStatus(input, config) {
|
|
|
2219
2242
|
const stdoutLogPath = readString2(input.stdoutLogPath) ?? config.stdoutLogPath;
|
|
2220
2243
|
const stderrLogPath = readString2(input.stderrLogPath) ?? config.stderrLogPath;
|
|
2221
2244
|
const lastLogLine = readString2(input.lastLogLine) ?? (healthReachable ? readLastLogLine([stdoutLogPath, stderrLogPath]) : readLastLogLine([stderrLogPath, stdoutLogPath]));
|
|
2245
|
+
const runtimeFreshness = readRuntimeFreshness(input.runtimeFreshness);
|
|
2222
2246
|
return {
|
|
2223
2247
|
label: readString2(input.label) ?? config.label,
|
|
2224
2248
|
mode: readString2(input.mode) ?? config.mode,
|
|
@@ -2253,6 +2277,7 @@ function normalizeNativeServiceStatus(input, config) {
|
|
|
2253
2277
|
...isRecord3(healthRecord.services) ? { services: healthRecord.services } : {},
|
|
2254
2278
|
error: healthError
|
|
2255
2279
|
},
|
|
2280
|
+
...runtimeFreshness ? { runtimeFreshness } : {},
|
|
2256
2281
|
lastLogLine
|
|
2257
2282
|
};
|
|
2258
2283
|
}
|
|
@@ -2557,8 +2582,12 @@ function formatBrokerServiceStatus(status) {
|
|
|
2557
2582
|
`reachable: ${status.reachable ? "yes" : "no"}`,
|
|
2558
2583
|
`health: ${status.health.ok ? "ok" : status.health.error ?? "unreachable"}`,
|
|
2559
2584
|
`health transport: ${status.health.transport ?? "unknown"}`,
|
|
2585
|
+
`runtime freshness: ${status.runtimeFreshness?.state ?? "unavailable"}`,
|
|
2560
2586
|
`logs: ${status.stdoutLogPath}`
|
|
2561
2587
|
];
|
|
2588
|
+
if (status.runtimeFreshness) {
|
|
2589
|
+
lines.push(`runtime freshness detail: ${status.runtimeFreshness.detail}`);
|
|
2590
|
+
}
|
|
2562
2591
|
if (status.health.socketFallbackError) {
|
|
2563
2592
|
lines.push(`socket fallback: ${status.health.socketFallbackError}`);
|
|
2564
2593
|
}
|
|
@@ -2161,6 +2161,29 @@ function readNumber2(value) {
|
|
|
2161
2161
|
function readHealthTransport(value) {
|
|
2162
2162
|
return value === "unix_socket" || value === "http" || value === "in_process" ? value : undefined;
|
|
2163
2163
|
}
|
|
2164
|
+
function readRuntimeFreshness(value) {
|
|
2165
|
+
if (!isRecord3(value))
|
|
2166
|
+
return;
|
|
2167
|
+
const state = readString2(value.state);
|
|
2168
|
+
const basis = readString2(value.basis);
|
|
2169
|
+
const detail = readString2(value.detail);
|
|
2170
|
+
if (!state || !basis || !detail)
|
|
2171
|
+
return;
|
|
2172
|
+
return {
|
|
2173
|
+
state,
|
|
2174
|
+
intentional: readBoolean(value.intentional) ?? false,
|
|
2175
|
+
basis,
|
|
2176
|
+
artifactCommit: readString2(value.artifactCommit) ?? null,
|
|
2177
|
+
expectedCommit: readString2(value.expectedCommit) ?? null,
|
|
2178
|
+
pin: readString2(value.pin) ?? null,
|
|
2179
|
+
pinReason: readString2(value.pinReason) ?? null,
|
|
2180
|
+
manifestPath: readString2(value.manifestPath) ?? null,
|
|
2181
|
+
version: readString2(value.version) ?? null,
|
|
2182
|
+
builtAt: readString2(value.builtAt) ?? null,
|
|
2183
|
+
sourceDirty: readBoolean(value.sourceDirty) ?? null,
|
|
2184
|
+
detail
|
|
2185
|
+
};
|
|
2186
|
+
}
|
|
2164
2187
|
function normalizeNativeServiceStatus(input, config) {
|
|
2165
2188
|
const healthRecord = isRecord3(input.health) ? input.health : {};
|
|
2166
2189
|
const healthReachable = readBoolean(healthRecord.reachable) ?? readBoolean(input.reachable) ?? false;
|
|
@@ -2176,6 +2199,7 @@ function normalizeNativeServiceStatus(input, config) {
|
|
|
2176
2199
|
const stdoutLogPath = readString2(input.stdoutLogPath) ?? config.stdoutLogPath;
|
|
2177
2200
|
const stderrLogPath = readString2(input.stderrLogPath) ?? config.stderrLogPath;
|
|
2178
2201
|
const lastLogLine = readString2(input.lastLogLine) ?? (healthReachable ? readLastLogLine([stdoutLogPath, stderrLogPath]) : readLastLogLine([stderrLogPath, stdoutLogPath]));
|
|
2202
|
+
const runtimeFreshness = readRuntimeFreshness(input.runtimeFreshness);
|
|
2179
2203
|
return {
|
|
2180
2204
|
label: readString2(input.label) ?? config.label,
|
|
2181
2205
|
mode: readString2(input.mode) ?? config.mode,
|
|
@@ -2210,6 +2234,7 @@ function normalizeNativeServiceStatus(input, config) {
|
|
|
2210
2234
|
...isRecord3(healthRecord.services) ? { services: healthRecord.services } : {},
|
|
2211
2235
|
error: healthError
|
|
2212
2236
|
},
|
|
2237
|
+
...runtimeFreshness ? { runtimeFreshness } : {},
|
|
2213
2238
|
lastLogLine
|
|
2214
2239
|
};
|
|
2215
2240
|
}
|
|
@@ -2514,8 +2539,12 @@ function formatBrokerServiceStatus(status) {
|
|
|
2514
2539
|
`reachable: ${status.reachable ? "yes" : "no"}`,
|
|
2515
2540
|
`health: ${status.health.ok ? "ok" : status.health.error ?? "unreachable"}`,
|
|
2516
2541
|
`health transport: ${status.health.transport ?? "unknown"}`,
|
|
2542
|
+
`runtime freshness: ${status.runtimeFreshness?.state ?? "unavailable"}`,
|
|
2517
2543
|
`logs: ${status.stdoutLogPath}`
|
|
2518
2544
|
];
|
|
2545
|
+
if (status.runtimeFreshness) {
|
|
2546
|
+
lines.push(`runtime freshness detail: ${status.runtimeFreshness.detail}`);
|
|
2547
|
+
}
|
|
2519
2548
|
if (status.health.socketFallbackError) {
|
|
2520
2549
|
lines.push(`socket fallback: ${status.health.socketFallbackError}`);
|
|
2521
2550
|
}
|