mthds 0.8.1 → 0.10.0
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 +43 -21
- package/dist/agent/commands/api-commands.js +290 -93
- package/dist/agent/commands/api-commands.js.map +1 -1
- package/dist/agent/commands/config.js +2 -2
- package/dist/agent/commands/config.js.map +1 -1
- package/dist/agent/commands/update-check.d.ts +14 -1
- package/dist/agent/commands/update-check.js +238 -16
- package/dist/agent/commands/update-check.js.map +1 -1
- package/dist/agent/commands/validate.js +5 -13
- package/dist/agent/commands/validate.js.map +1 -1
- package/dist/agent/plugin-version.d.ts +1 -1
- package/dist/agent/plugin-version.js +1 -1
- package/dist/agent/remote-version.d.ts +31 -0
- package/dist/agent/remote-version.js +74 -0
- package/dist/agent/remote-version.js.map +1 -0
- package/dist/agent/update-cache.d.ts +41 -0
- package/dist/agent/update-cache.js +129 -0
- package/dist/agent/update-cache.js.map +1 -1
- package/dist/agent-cli.js +5 -5
- package/dist/agent-cli.js.map +1 -1
- package/dist/cli/commands/config.js +2 -2
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/install.js +19 -39
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/run.js +82 -69
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/setup.js +22 -23
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/utils.d.ts +1 -1
- package/dist/cli/commands/validate.js +10 -14
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/config/config.d.ts +14 -1
- package/dist/config/config.js +31 -6
- package/dist/config/config.js.map +1 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/protocol/concept.d.ts +14 -0
- package/dist/protocol/concept.js +10 -0
- package/dist/protocol/concept.js.map +1 -0
- package/dist/protocol/exceptions.d.ts +10 -0
- package/dist/protocol/exceptions.js +12 -0
- package/dist/protocol/exceptions.js.map +1 -0
- package/dist/protocol/models.d.ts +95 -0
- package/dist/protocol/models.js +24 -0
- package/dist/protocol/models.js.map +1 -0
- package/dist/protocol/options.d.ts +60 -0
- package/dist/protocol/options.js +11 -0
- package/dist/protocol/options.js.map +1 -0
- package/dist/protocol/pipe_output.d.ts +11 -0
- package/dist/protocol/pipe_output.js +7 -0
- package/dist/protocol/pipe_output.js.map +1 -0
- package/dist/protocol/pipeline_inputs.d.ts +8 -0
- package/dist/protocol/pipeline_inputs.js +7 -0
- package/dist/protocol/pipeline_inputs.js.map +1 -0
- package/dist/protocol/protocol.d.ts +47 -0
- package/dist/{client → protocol}/protocol.js.map +1 -1
- package/dist/protocol/stuff.d.ts +16 -0
- package/dist/protocol/stuff.js +8 -0
- package/dist/{client/models → protocol}/stuff.js.map +1 -1
- package/dist/protocol/working_memory.d.ts +10 -0
- package/dist/protocol/working_memory.js +7 -0
- package/dist/protocol/working_memory.js.map +1 -0
- package/dist/runners/api/client.d.ts +170 -0
- package/dist/runners/api/client.js +653 -0
- package/dist/runners/api/client.js.map +1 -0
- package/dist/runners/api/exceptions.d.ts +106 -0
- package/dist/runners/api/exceptions.js +141 -0
- package/dist/runners/api/exceptions.js.map +1 -0
- package/dist/runners/api/models.d.ts +38 -0
- package/dist/runners/api/models.js +13 -0
- package/dist/runners/api/models.js.map +1 -0
- package/dist/runners/api/runs.d.ts +130 -0
- package/dist/runners/api/runs.js +93 -0
- package/dist/runners/api/runs.js.map +1 -0
- package/dist/runners/base-runner.d.ts +27 -0
- package/dist/runners/base-runner.js +25 -0
- package/dist/runners/base-runner.js.map +1 -0
- package/dist/runners/pipelex/runner.d.ts +38 -0
- package/dist/runners/{pipelex-runner.js → pipelex/runner.js} +168 -83
- package/dist/runners/pipelex/runner.js.map +1 -0
- package/dist/runners/registry.js +10 -4
- package/dist/runners/registry.js.map +1 -1
- package/dist/runners/types.d.ts +13 -71
- package/dist/runners/types.js.map +1 -1
- package/package.json +6 -3
- package/dist/client/client.d.ts +0 -15
- package/dist/client/client.js +0 -127
- package/dist/client/client.js.map +0 -1
- package/dist/client/exceptions.d.ts +0 -46
- package/dist/client/exceptions.js +0 -61
- package/dist/client/exceptions.js.map +0 -1
- package/dist/client/index.d.ts +0 -5
- package/dist/client/index.js +0 -3
- package/dist/client/index.js.map +0 -1
- package/dist/client/models/index.d.ts +0 -4
- package/dist/client/models/index.js +0 -2
- package/dist/client/models/index.js.map +0 -1
- package/dist/client/models/pipe_output.d.ts +0 -2
- package/dist/client/models/pipe_output.js +0 -2
- package/dist/client/models/pipe_output.js.map +0 -1
- package/dist/client/models/pipeline_inputs.d.ts +0 -3
- package/dist/client/models/pipeline_inputs.js +0 -2
- package/dist/client/models/pipeline_inputs.js.map +0 -1
- package/dist/client/models/stuff.d.ts +0 -1
- package/dist/client/models/stuff.js +0 -2
- package/dist/client/models/working_memory.d.ts +0 -1
- package/dist/client/models/working_memory.js +0 -2
- package/dist/client/models/working_memory.js.map +0 -1
- package/dist/client/pipeline.d.ts +0 -36
- package/dist/client/pipeline.js +0 -2
- package/dist/client/pipeline.js.map +0 -1
- package/dist/client/protocol.d.ts +0 -5
- package/dist/runners/api-runner.d.ts +0 -24
- package/dist/runners/api-runner.js +0 -91
- package/dist/runners/api-runner.js.map +0 -1
- package/dist/runners/pipelex-runner.d.ts +0 -30
- package/dist/runners/pipelex-runner.js.map +0 -1
- /package/dist/{client → protocol}/protocol.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/runners/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA6BtC,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,iBAAiB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AAO,KAAK,QAAQ;YAAE,aAAa,GAAG,CAAC,CAAC,OAAO,CAAC;IAC/D,CAAC;SAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtC,aAAa,GAAG,MAAM,CAAC;IACzB,CAAC;IACD,IAAI,SAAS,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ;QAAE,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;IAChG,IAAI,aAAa,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;QAAE,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC;IAClG,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API-runner exceptions — transport and run-lifecycle errors raised by
|
|
3
|
+
* `MthdsApiClient`. All derive from the protocol-level `PipelineRequestError`
|
|
4
|
+
* (`protocol/exceptions.ts`), except `ClientAuthenticationError`. Mirrors
|
|
5
|
+
* `mthds/runners/api/exceptions.py`.
|
|
6
|
+
*/
|
|
7
|
+
import { PipelineRequestError } from "../../protocol/exceptions.js";
|
|
8
|
+
export { PipelineRequestError };
|
|
9
|
+
export declare class ClientAuthenticationError extends Error {
|
|
10
|
+
constructor(message: string);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Thrown when the MTHDS API host cannot be reached at all (DNS failure,
|
|
14
|
+
* connection refused, TLS handshake failure, request timeout). The HTTP
|
|
15
|
+
* exchange never produced a response — distinguish from `ApiResponseError`,
|
|
16
|
+
* which represents a non-2xx response that did come back.
|
|
17
|
+
*
|
|
18
|
+
* `code` is the underlying network error code when available
|
|
19
|
+
* (`ECONNREFUSED`, `ENOTFOUND`, `ETIMEDOUT`, `EAI_AGAIN`, `ABORT_TIMEOUT`).
|
|
20
|
+
*/
|
|
21
|
+
export declare class ApiUnreachableError extends PipelineRequestError {
|
|
22
|
+
readonly apiUrl: string;
|
|
23
|
+
readonly code: string | undefined;
|
|
24
|
+
constructor(message: string, apiUrl: string, code: string | undefined, options?: {
|
|
25
|
+
cause?: unknown;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Thrown when the blocking `execute` (`POST /v1/execute`) is killed by the
|
|
30
|
+
* hosted gateway's ~30s synchronous-request limit. The blocking path cannot
|
|
31
|
+
* run methods longer than 30s behind the hosted gateway — use the durable run
|
|
32
|
+
* lifecycle (start + poll) instead.
|
|
33
|
+
*/
|
|
34
|
+
export declare class PipelineExecuteTimeoutError extends PipelineRequestError {
|
|
35
|
+
readonly elapsedMs: number;
|
|
36
|
+
constructor(elapsedMs: number, options?: {
|
|
37
|
+
cause?: unknown;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Thrown when a run reaches a terminal state that is not `COMPLETED`
|
|
42
|
+
* (`FAILED`, `CANCELLED`, `TERMINATED`, `TIMED_OUT`) — surfaced from
|
|
43
|
+
* `waitForResult`/`getRunResult` when the server answers a result lookup with
|
|
44
|
+
* HTTP 409. `runId` and `status` let callers report the outcome precisely.
|
|
45
|
+
*/
|
|
46
|
+
export declare class RunFailedError extends PipelineRequestError {
|
|
47
|
+
readonly runId: string;
|
|
48
|
+
readonly status: string;
|
|
49
|
+
constructor(message: string, runId: string, status: string, options?: {
|
|
50
|
+
cause?: unknown;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Thrown when `waitForResult` exceeds its `timeoutMs` before the run reaches a
|
|
55
|
+
* terminal state. The run is NOT cancelled — it keeps executing server-side and
|
|
56
|
+
* can be resumed later by `runId` (the poll loop just stopped waiting).
|
|
57
|
+
*/
|
|
58
|
+
export declare class RunTimeoutError extends PipelineRequestError {
|
|
59
|
+
readonly runId: string;
|
|
60
|
+
readonly timeoutMs: number;
|
|
61
|
+
constructor(message: string, runId: string, timeoutMs: number);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Thrown when `execute()` receives a 202 instead of a final result.
|
|
65
|
+
*
|
|
66
|
+
* The MTHDS Protocol permits an implementation to degrade a synchronous
|
|
67
|
+
* `/execute` into an accepted-async response (202 with a `Location` header)
|
|
68
|
+
* when it cannot hold the connection open. The run keeps executing
|
|
69
|
+
* server-side — resume by `runId` (`getRunResult` / `waitForResult` on a
|
|
70
|
+
* hosted deployment, or the `location` status resource when provided).
|
|
71
|
+
*/
|
|
72
|
+
export declare class RunStillRunningError extends PipelineRequestError {
|
|
73
|
+
readonly runId: string;
|
|
74
|
+
readonly retryAfterSeconds: number | null;
|
|
75
|
+
readonly location: string | null;
|
|
76
|
+
constructor(message: string, runId: string, retryAfterSeconds?: number | null, location?: string | null, options?: {
|
|
77
|
+
cause?: unknown;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Thrown when the durable run lifecycle (`/v1/runs/*`) is not served by the
|
|
82
|
+
* configured `MTHDS_API_URL`.
|
|
83
|
+
*
|
|
84
|
+
* Run polling is a hosted-API extension, not part of the MTHDS Protocol: the
|
|
85
|
+
* open-source `pipelex-api` runner executes methods but has no run store, so
|
|
86
|
+
* it 404s those routes; only a deployment that includes the platform block
|
|
87
|
+
* (the hosted MTHDS API) serves status/results. Distinguished from a genuine
|
|
88
|
+
* run-not-found 404, which carries the server's structured error envelope.
|
|
89
|
+
*/
|
|
90
|
+
export declare class RunLifecycleUnavailableError extends PipelineRequestError {
|
|
91
|
+
readonly apiUrl: string;
|
|
92
|
+
constructor(message: string, apiUrl: string, options?: {
|
|
93
|
+
cause?: unknown;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
export declare class ApiResponseError extends PipelineRequestError {
|
|
97
|
+
readonly apiUrl: string;
|
|
98
|
+
readonly status: number;
|
|
99
|
+
readonly statusText: string;
|
|
100
|
+
readonly responseBody: string;
|
|
101
|
+
readonly errorType: string | undefined;
|
|
102
|
+
readonly serverMessage: string | undefined;
|
|
103
|
+
constructor(message: string, apiUrl: string, status: number, statusText: string, responseBody: string, errorType: string | undefined, serverMessage: string | undefined, options?: {
|
|
104
|
+
cause?: unknown;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API-runner exceptions — transport and run-lifecycle errors raised by
|
|
3
|
+
* `MthdsApiClient`. All derive from the protocol-level `PipelineRequestError`
|
|
4
|
+
* (`protocol/exceptions.ts`), except `ClientAuthenticationError`. Mirrors
|
|
5
|
+
* `mthds/runners/api/exceptions.py`.
|
|
6
|
+
*/
|
|
7
|
+
import { PipelineRequestError } from "../../protocol/exceptions.js";
|
|
8
|
+
export { PipelineRequestError };
|
|
9
|
+
export class ClientAuthenticationError extends Error {
|
|
10
|
+
constructor(message) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.name = "ClientAuthenticationError";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Thrown when the MTHDS API host cannot be reached at all (DNS failure,
|
|
17
|
+
* connection refused, TLS handshake failure, request timeout). The HTTP
|
|
18
|
+
* exchange never produced a response — distinguish from `ApiResponseError`,
|
|
19
|
+
* which represents a non-2xx response that did come back.
|
|
20
|
+
*
|
|
21
|
+
* `code` is the underlying network error code when available
|
|
22
|
+
* (`ECONNREFUSED`, `ENOTFOUND`, `ETIMEDOUT`, `EAI_AGAIN`, `ABORT_TIMEOUT`).
|
|
23
|
+
*/
|
|
24
|
+
export class ApiUnreachableError extends PipelineRequestError {
|
|
25
|
+
apiUrl;
|
|
26
|
+
code;
|
|
27
|
+
constructor(message, apiUrl, code, options) {
|
|
28
|
+
super(message, options);
|
|
29
|
+
this.name = "ApiUnreachableError";
|
|
30
|
+
this.apiUrl = apiUrl;
|
|
31
|
+
this.code = code;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Thrown when the blocking `execute` (`POST /v1/execute`) is killed by the
|
|
36
|
+
* hosted gateway's ~30s synchronous-request limit. The blocking path cannot
|
|
37
|
+
* run methods longer than 30s behind the hosted gateway — use the durable run
|
|
38
|
+
* lifecycle (start + poll) instead.
|
|
39
|
+
*/
|
|
40
|
+
export class PipelineExecuteTimeoutError extends PipelineRequestError {
|
|
41
|
+
elapsedMs;
|
|
42
|
+
constructor(elapsedMs, options) {
|
|
43
|
+
const seconds = Math.round(elapsedMs / 1000);
|
|
44
|
+
super(`The hosted MTHDS API times out synchronous requests after ~30s — this run took ${seconds}s. ` +
|
|
45
|
+
"The blocking execute path can't run methods longer than 30s behind the gateway. " +
|
|
46
|
+
"Start the run and poll for its result instead: " +
|
|
47
|
+
"`start()` then `waitForResult(runId)` (SDK), " +
|
|
48
|
+
"or `mthds-agent run start …` then `mthds-agent run poll <pipeline_run_id>` (CLI).", options);
|
|
49
|
+
this.name = "PipelineExecuteTimeoutError";
|
|
50
|
+
this.elapsedMs = elapsedMs;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Thrown when a run reaches a terminal state that is not `COMPLETED`
|
|
55
|
+
* (`FAILED`, `CANCELLED`, `TERMINATED`, `TIMED_OUT`) — surfaced from
|
|
56
|
+
* `waitForResult`/`getRunResult` when the server answers a result lookup with
|
|
57
|
+
* HTTP 409. `runId` and `status` let callers report the outcome precisely.
|
|
58
|
+
*/
|
|
59
|
+
export class RunFailedError extends PipelineRequestError {
|
|
60
|
+
runId;
|
|
61
|
+
status;
|
|
62
|
+
constructor(message, runId, status, options) {
|
|
63
|
+
super(message, options);
|
|
64
|
+
this.name = "RunFailedError";
|
|
65
|
+
this.runId = runId;
|
|
66
|
+
this.status = status;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Thrown when `waitForResult` exceeds its `timeoutMs` before the run reaches a
|
|
71
|
+
* terminal state. The run is NOT cancelled — it keeps executing server-side and
|
|
72
|
+
* can be resumed later by `runId` (the poll loop just stopped waiting).
|
|
73
|
+
*/
|
|
74
|
+
export class RunTimeoutError extends PipelineRequestError {
|
|
75
|
+
runId;
|
|
76
|
+
timeoutMs;
|
|
77
|
+
constructor(message, runId, timeoutMs) {
|
|
78
|
+
super(message);
|
|
79
|
+
this.name = "RunTimeoutError";
|
|
80
|
+
this.runId = runId;
|
|
81
|
+
this.timeoutMs = timeoutMs;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Thrown when `execute()` receives a 202 instead of a final result.
|
|
86
|
+
*
|
|
87
|
+
* The MTHDS Protocol permits an implementation to degrade a synchronous
|
|
88
|
+
* `/execute` into an accepted-async response (202 with a `Location` header)
|
|
89
|
+
* when it cannot hold the connection open. The run keeps executing
|
|
90
|
+
* server-side — resume by `runId` (`getRunResult` / `waitForResult` on a
|
|
91
|
+
* hosted deployment, or the `location` status resource when provided).
|
|
92
|
+
*/
|
|
93
|
+
export class RunStillRunningError extends PipelineRequestError {
|
|
94
|
+
runId;
|
|
95
|
+
retryAfterSeconds;
|
|
96
|
+
location;
|
|
97
|
+
constructor(message, runId, retryAfterSeconds = null, location = null, options) {
|
|
98
|
+
super(message, options);
|
|
99
|
+
this.name = "RunStillRunningError";
|
|
100
|
+
this.runId = runId;
|
|
101
|
+
this.retryAfterSeconds = retryAfterSeconds;
|
|
102
|
+
this.location = location;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Thrown when the durable run lifecycle (`/v1/runs/*`) is not served by the
|
|
107
|
+
* configured `MTHDS_API_URL`.
|
|
108
|
+
*
|
|
109
|
+
* Run polling is a hosted-API extension, not part of the MTHDS Protocol: the
|
|
110
|
+
* open-source `pipelex-api` runner executes methods but has no run store, so
|
|
111
|
+
* it 404s those routes; only a deployment that includes the platform block
|
|
112
|
+
* (the hosted MTHDS API) serves status/results. Distinguished from a genuine
|
|
113
|
+
* run-not-found 404, which carries the server's structured error envelope.
|
|
114
|
+
*/
|
|
115
|
+
export class RunLifecycleUnavailableError extends PipelineRequestError {
|
|
116
|
+
apiUrl;
|
|
117
|
+
constructor(message, apiUrl, options) {
|
|
118
|
+
super(message, options);
|
|
119
|
+
this.name = "RunLifecycleUnavailableError";
|
|
120
|
+
this.apiUrl = apiUrl;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export class ApiResponseError extends PipelineRequestError {
|
|
124
|
+
apiUrl;
|
|
125
|
+
status;
|
|
126
|
+
statusText;
|
|
127
|
+
responseBody;
|
|
128
|
+
errorType;
|
|
129
|
+
serverMessage;
|
|
130
|
+
constructor(message, apiUrl, status, statusText, responseBody, errorType, serverMessage, options) {
|
|
131
|
+
super(message, options);
|
|
132
|
+
this.name = "ApiResponseError";
|
|
133
|
+
this.apiUrl = apiUrl;
|
|
134
|
+
this.status = status;
|
|
135
|
+
this.statusText = statusText;
|
|
136
|
+
this.responseBody = responseBody;
|
|
137
|
+
this.errorType = errorType;
|
|
138
|
+
this.serverMessage = serverMessage;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=exceptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../../src/runners/api/exceptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;IAC1C,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,OAAO,mBAAoB,SAAQ,oBAAoB;IAC3C,MAAM,CAAS;IACf,IAAI,CAAqB;IAEzC,YACE,OAAe,EACf,MAAc,EACd,IAAwB,EACxB,OAA6B;QAE7B,KAAK,CAAC,OAAO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,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dict-serialized wire models — the SDK's concrete JSON materialization of the
|
|
3
|
+
* protocol's domain shapes. The single home (parity D8) for `DictStuff` /
|
|
4
|
+
* `DictWorkingMemory` / `DictPipeOutput` and the default `RunResultExecute`
|
|
5
|
+
* binding. Mirrors `mthds/runners/api/models.py`.
|
|
6
|
+
*
|
|
7
|
+
* These are the JSON forms the runners deal in: each `Stuff` reduced to
|
|
8
|
+
* `{ concept: <ref>, content }`, working memory as a flat root + aliases, the
|
|
9
|
+
* pipe-output as that working memory + a run id, and `DictRunResultExecute` as
|
|
10
|
+
* the protocol's `RunResultExecute` carrying a `DictPipeOutput`.
|
|
11
|
+
*/
|
|
12
|
+
import type { RunResultExecute } from "../../protocol/models.js";
|
|
13
|
+
export interface DictStuff {
|
|
14
|
+
concept: string;
|
|
15
|
+
content: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface DictWorkingMemory {
|
|
18
|
+
root: Record<string, DictStuff>;
|
|
19
|
+
aliases: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Serialized pipe output — exact mirror of python's `DictPipeOutputAbstract`
|
|
23
|
+
* (`{working_memory, pipeline_run_id}`). NOTE: the inner `pipeline_run_id` is a
|
|
24
|
+
* runtime-internal field produced by the pipelex runtime inside the
|
|
25
|
+
* `pipe_output` payload — it deliberately keeps its name (master plan D1:
|
|
26
|
+
* runtime internals are out of the wire-rename scope, matching mthds-python).
|
|
27
|
+
*/
|
|
28
|
+
export interface DictPipeOutput {
|
|
29
|
+
working_memory: DictWorkingMemory;
|
|
30
|
+
pipeline_run_id: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The default `RunResultExecute` binding — the concrete execute result with a
|
|
34
|
+
* Dict-serialized output. `RunResultExecute<DictPipeOutput>` is what both
|
|
35
|
+
* runners (API + pipelex CLI) produce; extension fields (e.g.
|
|
36
|
+
* `main_stuff_name`) ride the protocol's extension-open response.
|
|
37
|
+
*/
|
|
38
|
+
export type DictRunResultExecute = RunResultExecute<DictPipeOutput>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dict-serialized wire models — the SDK's concrete JSON materialization of the
|
|
3
|
+
* protocol's domain shapes. The single home (parity D8) for `DictStuff` /
|
|
4
|
+
* `DictWorkingMemory` / `DictPipeOutput` and the default `RunResultExecute`
|
|
5
|
+
* binding. Mirrors `mthds/runners/api/models.py`.
|
|
6
|
+
*
|
|
7
|
+
* These are the JSON forms the runners deal in: each `Stuff` reduced to
|
|
8
|
+
* `{ concept: <ref>, content }`, working memory as a flat root + aliases, the
|
|
9
|
+
* pipe-output as that working memory + a run id, and `DictRunResultExecute` as
|
|
10
|
+
* the protocol's `RunResultExecute` carrying a `DictPipeOutput`.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/api/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run-lifecycle types + polling for the hosted polling surface (`/v1/runs/*`).
|
|
3
|
+
* Mirrors `mthds/runners/api/runs.py`.
|
|
4
|
+
*
|
|
5
|
+
* Long method runs outlive the hosted gateway's ~30s synchronous cap, so the
|
|
6
|
+
* SDK submits a run (`POST /v1/start`), then polls a self-healing endpoint by
|
|
7
|
+
* bare `pipeline_run_id` until the run reaches a terminal state. All state lives behind
|
|
8
|
+
* the id (DynamoDB + Temporal on the platform), so an agent can drop the poll
|
|
9
|
+
* loop and resume later with just the id.
|
|
10
|
+
*
|
|
11
|
+
* Polling is NOT part of the MTHDS Protocol — it is a hosted-API extension. A
|
|
12
|
+
* bare runner 404s these routes, which the client translates into
|
|
13
|
+
* `RunLifecycleUnavailableError`.
|
|
14
|
+
*
|
|
15
|
+
* Wire contract mirrors the hosted MTHDS API:
|
|
16
|
+
* POST /v1/start → RunResultStart (start, 202)
|
|
17
|
+
* GET /v1/runs/{pipeline_run_id}/status → RunRead (status, self-healing)
|
|
18
|
+
* GET /v1/runs/{pipeline_run_id}/results → 202 / 200 / 409 (results)
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Hosted run lifecycle status. Mirrors `pipelex_shared.schemas.run.RunStatus`
|
|
22
|
+
* — run states are a hosted-implementation concept; the protocol defines none (the hosted store tracks
|
|
23
|
+
* states like `PENDING`). `STARTED` is deprecated server-side but kept here
|
|
24
|
+
* for historical rows.
|
|
25
|
+
*/
|
|
26
|
+
export type RunStatus = "PENDING" | "STARTED" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED" | "TERMINATED" | "TIMED_OUT";
|
|
27
|
+
/** A terminal status means the run is done and will not transition again. */
|
|
28
|
+
export declare function isTerminalRunStatus(status: RunStatus): boolean;
|
|
29
|
+
/** Only `COMPLETED` has a result; every other terminal status is a failure. */
|
|
30
|
+
export declare function isSuccessRunStatus(status: RunStatus): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* A run record — the BASE shape of the run-lifecycle read surface.
|
|
33
|
+
*
|
|
34
|
+
* Only the base fields are declared. An implementation may return more
|
|
35
|
+
* (identity, workflow ids, storage URLs, anything else) — those are
|
|
36
|
+
* server-specific response fields, never named in this SDK; the index
|
|
37
|
+
* signature keeps them accessible, mirroring the request-side `extra`
|
|
38
|
+
* passthrough.
|
|
39
|
+
*/
|
|
40
|
+
export interface RunPublic {
|
|
41
|
+
pipeline_run_id: string;
|
|
42
|
+
pipe_code?: string | null;
|
|
43
|
+
status: RunStatus;
|
|
44
|
+
created_at: string;
|
|
45
|
+
finished_at?: string | null;
|
|
46
|
+
/** Server-specific response fields (defined by the server you call). */
|
|
47
|
+
[extension: string]: unknown;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A run read through the self-healing path (`RunPublic` + `degraded`).
|
|
51
|
+
* When `degraded` is true, Temporal was unreachable and `status` is the
|
|
52
|
+
* last-known DB value, not a freshly-derived one — pair with
|
|
53
|
+
* `retry_after_seconds` (parsed from the `Retry-After` header).
|
|
54
|
+
*/
|
|
55
|
+
export interface RunRead extends RunPublic {
|
|
56
|
+
degraded: boolean;
|
|
57
|
+
retry_after_seconds?: number | null;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Result artifacts for a completed run — `GET /v1/runs/{pipeline_run_id}/results`.
|
|
61
|
+
*
|
|
62
|
+
* Hosted: `main_stuff` + `graph_spec` (S3 artifacts relayed verbatim;
|
|
63
|
+
* `main_stuff` is polymorphic — a list output renders to a top-level array —
|
|
64
|
+
* so both are typed as opaque JSON). Bare-runner blocking fallback: the
|
|
65
|
+
* runner's native execute response, so `pipe_output` carries the output.
|
|
66
|
+
* Consumers read `main_stuff ?? pipe_output` (the documented output-shape
|
|
67
|
+
* difference between the two tiers).
|
|
68
|
+
*/
|
|
69
|
+
export interface RunResults {
|
|
70
|
+
pipeline_run_id: string;
|
|
71
|
+
/** Method graph spec (`graphspec.json`); null if missing mid-write. */
|
|
72
|
+
graph_spec?: unknown;
|
|
73
|
+
/** Main output stuff (`main_stuff.json`); null if missing mid-write. */
|
|
74
|
+
main_stuff?: unknown;
|
|
75
|
+
/** Bare runner's native pipe output (blocking-execute fallback only). */
|
|
76
|
+
pipe_output?: Record<string, unknown> | null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Single-shot result lookup outcome, discriminated on `state`:
|
|
80
|
+
* - `running` — HTTP 202; poll again after `retry_after_seconds`.
|
|
81
|
+
* - `completed` — HTTP 200; `result` carries the artifacts.
|
|
82
|
+
* - `failed` — HTTP 409; run reached a terminal non-`COMPLETED` status.
|
|
83
|
+
*/
|
|
84
|
+
export type RunResultState = {
|
|
85
|
+
state: "running";
|
|
86
|
+
pipeline_run_id: string;
|
|
87
|
+
retry_after_seconds: number | null;
|
|
88
|
+
} | {
|
|
89
|
+
state: "completed";
|
|
90
|
+
pipeline_run_id: string;
|
|
91
|
+
result: RunResults;
|
|
92
|
+
} | {
|
|
93
|
+
state: "failed";
|
|
94
|
+
pipeline_run_id: string;
|
|
95
|
+
status: RunStatus;
|
|
96
|
+
message: string;
|
|
97
|
+
};
|
|
98
|
+
export interface WaitForResultOptions {
|
|
99
|
+
/**
|
|
100
|
+
* Base poll interval in ms (default 2000). The server's `Retry-After`
|
|
101
|
+
* header overrides this when it asks for a longer wait.
|
|
102
|
+
*/
|
|
103
|
+
intervalMs?: number;
|
|
104
|
+
/** Max ms to wait before throwing `RunTimeoutError` (default 1_200_000 — 20 min). */
|
|
105
|
+
timeoutMs?: number;
|
|
106
|
+
/** Abort the poll loop (Ctrl-C / agent walk-away). */
|
|
107
|
+
signal?: AbortSignal;
|
|
108
|
+
/** Invoked before each sleep so callers can drive a spinner / progress line. */
|
|
109
|
+
onPoll?: (info: {
|
|
110
|
+
attempt: number;
|
|
111
|
+
elapsedMs: number;
|
|
112
|
+
}) => void;
|
|
113
|
+
}
|
|
114
|
+
export declare const DEFAULT_POLL_INTERVAL_MS = 2000;
|
|
115
|
+
export declare const DEFAULT_WAIT_TIMEOUT_MS = 1200000;
|
|
116
|
+
/** A single result lookup — the primitive the poll loop drives. */
|
|
117
|
+
export type FetchResultOnce = (runId: string, options?: {
|
|
118
|
+
signal?: AbortSignal;
|
|
119
|
+
}) => Promise<RunResultState>;
|
|
120
|
+
/**
|
|
121
|
+
* Poll a single-shot result lookup (`fetchOnce`) until the run reaches a
|
|
122
|
+
* terminal state. Returns the artifacts on `COMPLETED`, throws `RunFailedError`
|
|
123
|
+
* on any other terminal status, and throws `RunTimeoutError` if `timeoutMs`
|
|
124
|
+
* elapses first (the run keeps executing server-side — re-poll by id later).
|
|
125
|
+
*
|
|
126
|
+
* The single owner of the wait/poll/Retry-After/abort logic. Both
|
|
127
|
+
* `MthdsApiClient.waitForResult` and `BaseRunner.waitForResult` delegate here,
|
|
128
|
+
* so the behavior can never drift between the wire client and the runner layer.
|
|
129
|
+
*/
|
|
130
|
+
export declare function pollUntilResult(fetchOnce: FetchResultOnce, runId: string, options?: WaitForResultOptions): Promise<RunResults>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { RunFailedError, RunTimeoutError } from "./exceptions.js";
|
|
2
|
+
const TERMINAL_RUN_STATUSES = new Set([
|
|
3
|
+
"COMPLETED",
|
|
4
|
+
"FAILED",
|
|
5
|
+
"CANCELLED",
|
|
6
|
+
"TERMINATED",
|
|
7
|
+
"TIMED_OUT",
|
|
8
|
+
]);
|
|
9
|
+
/** A terminal status means the run is done and will not transition again. */
|
|
10
|
+
export function isTerminalRunStatus(status) {
|
|
11
|
+
return TERMINAL_RUN_STATUSES.has(status);
|
|
12
|
+
}
|
|
13
|
+
/** Only `COMPLETED` has a result; every other terminal status is a failure. */
|
|
14
|
+
export function isSuccessRunStatus(status) {
|
|
15
|
+
return status === "COMPLETED";
|
|
16
|
+
}
|
|
17
|
+
// ── Poll loop ───────────────────────────────────────────────────────
|
|
18
|
+
export const DEFAULT_POLL_INTERVAL_MS = 2_000;
|
|
19
|
+
export const DEFAULT_WAIT_TIMEOUT_MS = 1_200_000; // 20 min — matches the runner's blocking execute ceiling.
|
|
20
|
+
/**
|
|
21
|
+
* Poll a single-shot result lookup (`fetchOnce`) until the run reaches a
|
|
22
|
+
* terminal state. Returns the artifacts on `COMPLETED`, throws `RunFailedError`
|
|
23
|
+
* on any other terminal status, and throws `RunTimeoutError` if `timeoutMs`
|
|
24
|
+
* elapses first (the run keeps executing server-side — re-poll by id later).
|
|
25
|
+
*
|
|
26
|
+
* The single owner of the wait/poll/Retry-After/abort logic. Both
|
|
27
|
+
* `MthdsApiClient.waitForResult` and `BaseRunner.waitForResult` delegate here,
|
|
28
|
+
* so the behavior can never drift between the wire client and the runner layer.
|
|
29
|
+
*/
|
|
30
|
+
export async function pollUntilResult(fetchOnce, runId, options = {}) {
|
|
31
|
+
const intervalMs = options.intervalMs ?? DEFAULT_POLL_INTERVAL_MS;
|
|
32
|
+
const timeoutMs = options.timeoutMs ?? DEFAULT_WAIT_TIMEOUT_MS;
|
|
33
|
+
const startedAt = Date.now();
|
|
34
|
+
let attempt = 0;
|
|
35
|
+
for (;;) {
|
|
36
|
+
throwIfAborted(options.signal);
|
|
37
|
+
// Enforce the deadline BEFORE each lookup, so a poll is never issued past the
|
|
38
|
+
// timeout (the previous wait is clamped to the deadline, so the next loop
|
|
39
|
+
// would otherwise fire one extra fetch right at it).
|
|
40
|
+
const elapsedMs = Date.now() - startedAt;
|
|
41
|
+
if (elapsedMs >= timeoutMs) {
|
|
42
|
+
throw new RunTimeoutError(`Run ${runId} did not reach a terminal state within ${timeoutMs}ms.`, runId, timeoutMs);
|
|
43
|
+
}
|
|
44
|
+
const state = await fetchOnce(runId, { signal: options.signal });
|
|
45
|
+
if (state.state === "completed") {
|
|
46
|
+
return state.result;
|
|
47
|
+
}
|
|
48
|
+
if (state.state === "failed") {
|
|
49
|
+
throw new RunFailedError(state.message, runId, state.status);
|
|
50
|
+
}
|
|
51
|
+
attempt += 1;
|
|
52
|
+
options.onPoll?.({ attempt, elapsedMs });
|
|
53
|
+
const retryMs = state.retry_after_seconds != null ? state.retry_after_seconds * 1000 : 0;
|
|
54
|
+
const waitMs = Math.min(Math.max(intervalMs, retryMs), timeoutMs - elapsedMs);
|
|
55
|
+
await sleep(waitMs, options.signal);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function throwIfAborted(signal) {
|
|
59
|
+
if (signal?.aborted)
|
|
60
|
+
throw abortError(signal);
|
|
61
|
+
}
|
|
62
|
+
function abortError(signal) {
|
|
63
|
+
const reason = signal?.reason;
|
|
64
|
+
if (reason instanceof Error)
|
|
65
|
+
return reason;
|
|
66
|
+
return new DOMException("The run poll was aborted.", "AbortError");
|
|
67
|
+
}
|
|
68
|
+
/** Sleep that resolves after `ms`, or rejects immediately if `signal` aborts. */
|
|
69
|
+
function sleep(ms, signal) {
|
|
70
|
+
if (ms <= 0) {
|
|
71
|
+
throwIfAborted(signal);
|
|
72
|
+
return Promise.resolve();
|
|
73
|
+
}
|
|
74
|
+
return new Promise((resolve, reject) => {
|
|
75
|
+
const onAbort = () => {
|
|
76
|
+
clearTimeout(timer);
|
|
77
|
+
reject(abortError(signal));
|
|
78
|
+
};
|
|
79
|
+
const timer = setTimeout(() => {
|
|
80
|
+
signal?.removeEventListener("abort", onAbort);
|
|
81
|
+
resolve();
|
|
82
|
+
}, ms);
|
|
83
|
+
if (signal) {
|
|
84
|
+
if (signal.aborted) {
|
|
85
|
+
clearTimeout(timer);
|
|
86
|
+
reject(abortError(signal));
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../src/runners/api/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAwClE,MAAM,qBAAqB,GAA2B,IAAI,GAAG,CAAY;IACvE,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,WAAW;CACZ,CAAC,CAAC;AAEH,6EAA6E;AAC7E,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,OAAO,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,kBAAkB,CAAC,MAAiB;IAClD,OAAO,MAAM,KAAK,WAAW,CAAC;AAChC,CAAC;AAiFD,uEAA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O,EAAE,CAAC;QACZ,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO;YACT,CAAC;YACD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type RunResults, type RunResultState, type WaitForResultOptions } from "./api/runs.js";
|
|
2
|
+
import type { StartOptions } from "../protocol/options.js";
|
|
3
|
+
import type { RunResultStart } from "../protocol/models.js";
|
|
4
|
+
/**
|
|
5
|
+
* Shared base for every runner. Provides the two run-lifecycle COMPOSITES —
|
|
6
|
+
* `waitForResult` (poll an existing run to completion) and
|
|
7
|
+
* `startAndWaitForResult` (start a run, then wait for its result) — implemented
|
|
8
|
+
* once over the abstract primitives `start` / `getRunResult`. Concrete runners
|
|
9
|
+
* implement the primitives; a runtime with a faster blocking path (a bare
|
|
10
|
+
* runner, the local pipelex CLI) overrides `startAndWaitForResult`.
|
|
11
|
+
*
|
|
12
|
+
* The composites are deliberately NOT part of the `Runner` contract's "must
|
|
13
|
+
* implement" surface — every runner gets them for free here, so they can never
|
|
14
|
+
* drift between runtimes.
|
|
15
|
+
*/
|
|
16
|
+
export declare abstract class BaseRunner {
|
|
17
|
+
/** Start a run and return its 202 ack immediately (no waiting; no output yet). The returned `pipeline_run_id` is authoritative. */
|
|
18
|
+
abstract start(options: StartOptions): Promise<RunResultStart>;
|
|
19
|
+
/** Single-shot result lookup: running (202) / completed (200) / failed (409). */
|
|
20
|
+
abstract getRunResult(runId: string, options?: {
|
|
21
|
+
signal?: AbortSignal;
|
|
22
|
+
}): Promise<RunResultState>;
|
|
23
|
+
/** Poll an already-started run (by id) until it reaches a terminal state. */
|
|
24
|
+
waitForResult(runId: string, options?: WaitForResultOptions): Promise<RunResults>;
|
|
25
|
+
/** Start a run, then wait for its result — the one-call convenience. */
|
|
26
|
+
startAndWaitForResult(options: StartOptions, pollOptions?: WaitForResultOptions): Promise<RunResults>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { pollUntilResult, } from "./api/runs.js";
|
|
2
|
+
/**
|
|
3
|
+
* Shared base for every runner. Provides the two run-lifecycle COMPOSITES —
|
|
4
|
+
* `waitForResult` (poll an existing run to completion) and
|
|
5
|
+
* `startAndWaitForResult` (start a run, then wait for its result) — implemented
|
|
6
|
+
* once over the abstract primitives `start` / `getRunResult`. Concrete runners
|
|
7
|
+
* implement the primitives; a runtime with a faster blocking path (a bare
|
|
8
|
+
* runner, the local pipelex CLI) overrides `startAndWaitForResult`.
|
|
9
|
+
*
|
|
10
|
+
* The composites are deliberately NOT part of the `Runner` contract's "must
|
|
11
|
+
* implement" surface — every runner gets them for free here, so they can never
|
|
12
|
+
* drift between runtimes.
|
|
13
|
+
*/
|
|
14
|
+
export class BaseRunner {
|
|
15
|
+
/** Poll an already-started run (by id) until it reaches a terminal state. */
|
|
16
|
+
async waitForResult(runId, options) {
|
|
17
|
+
return pollUntilResult((id, opts) => this.getRunResult(id, opts), runId, options);
|
|
18
|
+
}
|
|
19
|
+
/** Start a run, then wait for its result — the one-call convenience. */
|
|
20
|
+
async startAndWaitForResult(options, pollOptions) {
|
|
21
|
+
const ack = await this.start(options);
|
|
22
|
+
return this.waitForResult(ack.pipeline_run_id, pollOptions);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=base-runner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-runner.js","sourceRoot":"","sources":["../../src/runners/base-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,GAIhB,MAAM,eAAe,CAAC;AAIvB;;;;;;;;;;;GAWG;AACH,MAAM,OAAgB,UAAU;IAU9B,6EAA6E;IAC7E,KAAK,CAAC,aAAa,CACjB,KAAa,EACb,OAA8B;QAE9B,OAAO,eAAe,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED,wEAAwE;IACxE,KAAK,CAAC,qBAAqB,CACzB,OAAqB,EACrB,WAAkC;QAElC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;IAC9D,CAAC;CACF"}
|