@sealant/sdk-next 0.40.0-next.890 → 0.40.0-next.892
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.
|
@@ -3174,6 +3174,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
|
|
|
3174
3174
|
readonly summary: import("effect/Schema").String;
|
|
3175
3175
|
readonly ref: import("effect/Schema").optional<import("effect/Schema").Unknown>;
|
|
3176
3176
|
readonly processId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3177
|
+
readonly executionId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3177
3178
|
readonly captureMethod: import("effect/Schema").Number;
|
|
3178
3179
|
readonly confidence: import("effect/Schema").Number;
|
|
3179
3180
|
}>>;
|
|
@@ -7943,6 +7944,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
|
|
|
7943
7944
|
readonly summary: import("effect/Schema").String;
|
|
7944
7945
|
readonly ref: import("effect/Schema").optional<import("effect/Schema").Unknown>;
|
|
7945
7946
|
readonly processId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
7947
|
+
readonly executionId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
7946
7948
|
readonly captureMethod: import("effect/Schema").Number;
|
|
7947
7949
|
readonly confidence: import("effect/Schema").Number;
|
|
7948
7950
|
}>>;
|
|
@@ -28,12 +28,19 @@ export const nextExecPollMs = (lastWaitMs, elapsedMs) => {
|
|
|
28
28
|
};
|
|
29
29
|
const isRecord = (value) => typeof value === "object" && value !== null;
|
|
30
30
|
/**
|
|
31
|
-
* The exec'd command's process
|
|
32
|
-
*
|
|
31
|
+
* The exec'd command's process, from the run's `processStarted` entries: of the processes this run
|
|
32
|
+
* started (the daemon stamps the run as their `executionId`), the first whose recorded executable
|
|
33
|
+
* matches, else the first. A process stamped with another execution is never it: before sealant
|
|
34
|
+
* kept them out, another exec's changes reading (`sh`, untagged) could sit in this run's record
|
|
35
|
+
* ahead of the command, and its output was returned as the command's (SLNT-956). Untagged entries
|
|
36
|
+
* are considered only when no entry carries this run's id: a daemon that ignores execution ids, or
|
|
37
|
+
* a control plane that does not report them.
|
|
33
38
|
*/
|
|
34
|
-
const findCommandProcessId = (entries, executable) => {
|
|
35
|
-
const
|
|
36
|
-
|
|
39
|
+
const findCommandProcessId = (entries, runId, executable) => {
|
|
40
|
+
const own = entries.filter((entry) => entry.executionId === runId);
|
|
41
|
+
const candidates = own.length > 0 ? own : entries.filter((entry) => entry.executionId === undefined);
|
|
42
|
+
const match = candidates.find((entry) => isRecord(entry.ref) && entry.ref["executable"] === executable);
|
|
43
|
+
return (match ?? candidates[0])?.processId;
|
|
37
44
|
};
|
|
38
45
|
const readScrollback = (runId, ownerUserId, processId, stream, deadline) => Effect.map(retryRead(getRunScrollbackOp(runId, { ownerUserId, processId, stream }), {
|
|
39
46
|
runId,
|
|
@@ -85,7 +92,7 @@ const execWorkspaceEffect = (ctx, init, argv, options) => Effect.gen(function* (
|
|
|
85
92
|
// Every record read names the owner: the control plane finds nothing for a read that does not.
|
|
86
93
|
const ownerUserId = ctx.config.hostLocal.ownerUserId;
|
|
87
94
|
const started = yield* retryRead(getRunTimelineOp(runId, { ownerUserId, kinds: "processStarted" }), { runId, what: "the timeline", deadline });
|
|
88
|
-
const processId = findCommandProcessId(started, executable);
|
|
95
|
+
const processId = findCommandProcessId(started, runId, executable);
|
|
89
96
|
// The three reads are independent: one round trip of waiting, not three.
|
|
90
97
|
const [stdout, stderr, wireChanges] = yield* Effect.all([
|
|
91
98
|
processId === undefined
|
|
@@ -979,6 +979,7 @@ export declare const getRunTimelineOp: (runId: string, query: GetRunTimelineQuer
|
|
|
979
979
|
readonly summary: string;
|
|
980
980
|
readonly ref?: unknown;
|
|
981
981
|
readonly processId?: string | undefined;
|
|
982
|
+
readonly executionId?: string | undefined;
|
|
982
983
|
readonly captureMethod: number;
|
|
983
984
|
readonly confidence: number;
|
|
984
985
|
}[], import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | Schema.SchemaError, SealantApiClient>;
|
package/dist/types.d.ts
CHANGED
|
@@ -2413,10 +2413,10 @@ export interface BoatInstallKey {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
/**
|
|
2415
2415
|
* What a key's account made in Boat before the control plane recorded wallets, that it cannot
|
|
2416
|
-
* reach: Boat
|
|
2417
|
-
*
|
|
2418
|
-
*
|
|
2419
|
-
* account has been in.
|
|
2416
|
+
* reach: Boat did not find it, and that does not prove it gone (a key without `account.read`
|
|
2417
|
+
* cannot list the wallets it can bill). What Boat's answers prove gone is recorded removed and not
|
|
2418
|
+
* listed here. It stays recorded, is never used or removed by the control plane, and holds nothing
|
|
2419
|
+
* up; look for it in Boat, in each organization the key's account has been in.
|
|
2420
2420
|
*/
|
|
2421
2421
|
export interface BoatUnreachable {
|
|
2422
2422
|
/** Saved images, by snapshot name (Saved snapshots in Boat). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/sdk-next",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.892",
|
|
4
4
|
"description": "The fluent public SDK for Sealant — create a workspace, run a harness, replay the record.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"node": ">=20"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.
|
|
29
|
+
"@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.892"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"effect": "^4.0.5"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "2b3c13d1175104019013dc32b04deb6538c05ec3",
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
}
|