@uipath/maestro-sdk 1.204.0 → 1.205.0-preview.258
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/THIRD-PARTY-NOTICES.md +181 -7
- package/dist/bpmn-packaging/index.js +1690 -459
- package/dist/bpmn-validation/project-validator.js +1836 -538
- package/dist/debug-http-client.js +53 -4
- package/dist/debug-service.js +100 -8
- package/dist/index.js +87218 -57874
- package/dist/json-input.js +53 -4
- package/dist/manifest/bpmn-spec.js +1682 -459
- package/dist/registry/command.js +49170 -19049
- package/dist/registry/snapshot.js +53 -4
- package/dist/shared-commands/index.js +746 -44
- package/dist/shared-utils.js +53 -4
- package/dist/src/bpmn-packaging/package-metadata.d.ts +1 -0
- package/dist/src/bpmn-validation/project-validator.d.ts +1 -0
- package/dist/src/debug-service.d.ts +15 -2
- package/dist/src/debug-types.d.ts +80 -0
- package/dist/src/index.d.ts +3 -3
- package/dist/src/manifest/bpmn-spec.d.ts +23 -2
- package/dist/src/manifest/types.d.ts +63 -0
- package/dist/src/registry/index.d.ts +3 -3
- package/dist/src/registry/node-storage.d.ts +75 -2
- package/dist/src/registry/node-sync-service.d.ts +98 -1
- package/dist/src/registry/registry-service.d.ts +10 -13
- package/dist/src/registry/solution-discovery.d.ts +116 -4
- package/dist/src/shared-commands/examples.d.ts +8 -0
- package/dist/src/types.d.ts +7 -0
- package/dist/with-pims-call.js +172 -32
- package/package.json +2 -2
package/dist/shared-utils.js
CHANGED
|
@@ -876,6 +876,16 @@ class NodeFileSystem {
|
|
|
876
876
|
async rename(oldPath, newPath) {
|
|
877
877
|
await fs6.rename(oldPath, newPath);
|
|
878
878
|
}
|
|
879
|
+
async isSymbolicLink(filePath) {
|
|
880
|
+
try {
|
|
881
|
+
return (await fs6.lstat(filePath)).isSymbolicLink();
|
|
882
|
+
} catch (error) {
|
|
883
|
+
if (this.isEnoent(error) || this.hasErrnoCode(error, "ENOTDIR")) {
|
|
884
|
+
return false;
|
|
885
|
+
}
|
|
886
|
+
throw error;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
879
889
|
async realpath(filePath) {
|
|
880
890
|
try {
|
|
881
891
|
return await fs6.realpath(filePath);
|
|
@@ -1935,7 +1945,7 @@ function getGlobalLogFilePath() {
|
|
|
1935
1945
|
function getLogFilePath() {
|
|
1936
1946
|
return logger.getLogFilePath();
|
|
1937
1947
|
}
|
|
1938
|
-
var logFilePathSlot, DEFAULT_LOG_LEVEL =
|
|
1948
|
+
var logFilePathSlot, DEFAULT_LOG_LEVEL = 2 /* WARN */, SimpleLogger, loggerSingleton, logger;
|
|
1939
1949
|
var init_logger = __esm(() => {
|
|
1940
1950
|
init_src();
|
|
1941
1951
|
init_catch_error();
|
|
@@ -6823,7 +6833,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
6823
6833
|
Result: "Result",
|
|
6824
6834
|
ErrorCode: "ErrorCode",
|
|
6825
6835
|
Retry: "Retry",
|
|
6826
|
-
ErrorMessage: "ErrorMessage"
|
|
6836
|
+
ErrorMessage: "ErrorMessage",
|
|
6837
|
+
HttpStatus: "HttpStatus",
|
|
6838
|
+
UpstreamErrorCode: "UpstreamErrorCode"
|
|
6827
6839
|
};
|
|
6828
6840
|
AuthDimensions = {
|
|
6829
6841
|
AuthenticationMethod: "AuthenticationMethod",
|
|
@@ -8788,7 +8800,9 @@ var init_formatter = __esm(() => {
|
|
|
8788
8800
|
"timeout",
|
|
8789
8801
|
"server_error",
|
|
8790
8802
|
"method_not_allowed",
|
|
8803
|
+
"not_supported",
|
|
8791
8804
|
"configuration_error",
|
|
8805
|
+
"execution_failed",
|
|
8792
8806
|
"unknown_error"
|
|
8793
8807
|
];
|
|
8794
8808
|
RETRY_HINTS = [
|
|
@@ -8902,7 +8916,9 @@ var init_formatter = __esm(() => {
|
|
|
8902
8916
|
[ErrorDimensions.Result]: data.Result,
|
|
8903
8917
|
[ErrorDimensions.ErrorCode]: data.ErrorCode,
|
|
8904
8918
|
[ErrorDimensions.Retry]: data.Retry,
|
|
8905
|
-
[ErrorDimensions.ErrorMessage]: data.Message
|
|
8919
|
+
[ErrorDimensions.ErrorMessage]: data.Message,
|
|
8920
|
+
[ErrorDimensions.HttpStatus]: data.Context?.httpStatus?.toString(),
|
|
8921
|
+
[ErrorDimensions.UpstreamErrorCode]: data.Context?.errorCode
|
|
8906
8922
|
});
|
|
8907
8923
|
}
|
|
8908
8924
|
logOutput(normalizeOutputKeys(envelope), getOutputFormat());
|
|
@@ -11635,6 +11651,9 @@ async function hashContent(content) {
|
|
|
11635
11651
|
throw new Error("Unable to compute SHA-256 hash in this environment.");
|
|
11636
11652
|
}
|
|
11637
11653
|
|
|
11654
|
+
// ../common/src/entity-field-rules.ts
|
|
11655
|
+
var init_entity_field_rules = () => {};
|
|
11656
|
+
|
|
11638
11657
|
// ../common/src/entity-name-rules.ts
|
|
11639
11658
|
var RESERVED_SQL_KEYWORDS_LOWER, RESERVED_FIELD_NAMES_LOWER, RESERVED_KEYWORDS_LOWER;
|
|
11640
11659
|
var init_entity_name_rules = __esm(() => {
|
|
@@ -11869,6 +11888,17 @@ var init_host_global_options = __esm(() => {
|
|
|
11869
11888
|
BOOLEAN_FLAGS = new Set(HOST_GLOBAL_FLAGS);
|
|
11870
11889
|
});
|
|
11871
11890
|
|
|
11891
|
+
// ../common/src/http-status.ts
|
|
11892
|
+
function httpStatusOf(error) {
|
|
11893
|
+
if (!error || typeof error !== "object") {
|
|
11894
|
+
return;
|
|
11895
|
+
}
|
|
11896
|
+
if ("response" in error && error.response && typeof error.response === "object" && "status" in error.response && typeof error.response.status === "number") {
|
|
11897
|
+
return error.response.status;
|
|
11898
|
+
}
|
|
11899
|
+
return "status" in error && typeof error.status === "number" ? error.status : undefined;
|
|
11900
|
+
}
|
|
11901
|
+
|
|
11872
11902
|
// ../common/src/interactivity-context.ts
|
|
11873
11903
|
var modeSlot, interactiveFlagSlot;
|
|
11874
11904
|
var init_interactivity_context = __esm(() => {
|
|
@@ -11878,6 +11908,11 @@ var init_interactivity_context = __esm(() => {
|
|
|
11878
11908
|
interactiveFlagSlot = singleton("InteractiveFlag");
|
|
11879
11909
|
});
|
|
11880
11910
|
|
|
11911
|
+
// ../common/src/json-option.ts
|
|
11912
|
+
var init_json_option = __esm(() => {
|
|
11913
|
+
init_src();
|
|
11914
|
+
});
|
|
11915
|
+
|
|
11881
11916
|
// ../common/src/mime-types.ts
|
|
11882
11917
|
var MIME_TYPES_BY_EXTENSION;
|
|
11883
11918
|
var init_mime_types = __esm(() => {
|
|
@@ -11919,9 +11954,15 @@ var init_mime_types = __esm(() => {
|
|
|
11919
11954
|
// ../common/src/option-aliases.ts
|
|
11920
11955
|
var init_option_aliases = __esm(() => {
|
|
11921
11956
|
init_esm();
|
|
11957
|
+
init_formatter();
|
|
11922
11958
|
init_output_context();
|
|
11923
11959
|
});
|
|
11924
11960
|
|
|
11961
|
+
// ../common/src/option-groups.ts
|
|
11962
|
+
var init_option_groups = __esm(() => {
|
|
11963
|
+
init_formatter();
|
|
11964
|
+
});
|
|
11965
|
+
|
|
11925
11966
|
// ../common/src/option-validators.ts
|
|
11926
11967
|
function parseLimit(raw, _previous) {
|
|
11927
11968
|
return parseBoundedInt(raw, "--limit", { min: 1, max: 1e4 });
|
|
@@ -12111,6 +12152,11 @@ var init_sdk_user_agent = __esm(() => {
|
|
|
12111
12152
|
AGENT_PROPERTY = BaseDimensions.Agent;
|
|
12112
12153
|
sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
12113
12154
|
});
|
|
12155
|
+
|
|
12156
|
+
// ../common/src/shell-quote.ts
|
|
12157
|
+
function quoteForShell(value) {
|
|
12158
|
+
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
12159
|
+
}
|
|
12114
12160
|
// ../common/src/stdin.ts
|
|
12115
12161
|
async function readStdin() {
|
|
12116
12162
|
if (process.stdin.isTTY) {
|
|
@@ -12167,6 +12213,7 @@ var init_src2 = __esm(() => {
|
|
|
12167
12213
|
init_completer();
|
|
12168
12214
|
init_confirmation();
|
|
12169
12215
|
init_constants();
|
|
12216
|
+
init_entity_field_rules();
|
|
12170
12217
|
init_entity_name_rules();
|
|
12171
12218
|
init_error_handler();
|
|
12172
12219
|
init_error_instructions();
|
|
@@ -12174,9 +12221,11 @@ var init_src2 = __esm(() => {
|
|
|
12174
12221
|
init_guid();
|
|
12175
12222
|
init_host_global_options();
|
|
12176
12223
|
init_interactivity_context();
|
|
12224
|
+
init_json_option();
|
|
12177
12225
|
init_logger();
|
|
12178
12226
|
init_mime_types();
|
|
12179
12227
|
init_option_aliases();
|
|
12228
|
+
init_option_groups();
|
|
12180
12229
|
init_option_validators();
|
|
12181
12230
|
init_output_codecs();
|
|
12182
12231
|
init_output_context();
|
|
@@ -12227,4 +12276,4 @@ export {
|
|
|
12227
12276
|
readStdin
|
|
12228
12277
|
};
|
|
12229
12278
|
|
|
12230
|
-
//# debugId=
|
|
12279
|
+
//# debugId=BBC23D7E9AB008B064756E2164756E21
|
|
@@ -71,6 +71,7 @@ export declare class BpmnValidateService {
|
|
|
71
71
|
private validateUiPathTags;
|
|
72
72
|
private validatePayload;
|
|
73
73
|
private validateContractPlacement;
|
|
74
|
+
private validatePlacementEventDefinition;
|
|
74
75
|
private validateContext;
|
|
75
76
|
private validateActivityExecutionV1Bindings;
|
|
76
77
|
private validateTriggerConnectionBinding;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type FailureOutput } from "@uipath/common";
|
|
6
6
|
import type { IFileSystem } from "@uipath/filesystem";
|
|
7
|
-
import type { BeginSessionResponse, DebugCallbacks, DebugIncidentResponse, DebugInstanceResponse, DebugInstanceStatusResponse, DebugResult, DebugVariablesFetchError, DebugVariablesResponse, InlineAgentDescriptor, OrchestratorApiConfig, SolutionProjectDescriptor, StudioWebDebugConfig } from "./debug-types";
|
|
7
|
+
import type { BeginSessionResponse, DebugCallbacks, DebugIncidentResponse, DebugInstanceResponse, DebugInstanceStatusResponse, DebugResult, DebugVariablesFetch, DebugVariablesFetchError, DebugVariablesResponse, InlineAgentDescriptor, OrchestratorApiConfig, SolutionProjectDescriptor, StudioWebDebugConfig } from "./debug-types";
|
|
8
8
|
/**
|
|
9
9
|
* Thrown by {@link injectInlineAgentProcessEntries} when `FpsProperties`
|
|
10
10
|
* is not valid JSON and inline agents need to be injected.
|
|
@@ -230,11 +230,24 @@ export declare class DebugVariablesFetchFailedError extends Error {
|
|
|
230
230
|
* every failure (any HTTP status, network error, per-attempt timeout) is retried
|
|
231
231
|
* per {@link FETCH_VARIABLES_RETRY_DELAYS_MS}; when all attempts fail this throws
|
|
232
232
|
* {@link DebugVariablesFetchFailedError} for the caller to surface as
|
|
233
|
-
* `DebugResult.variablesError` — never to swallow.
|
|
233
|
+
* `DebugResult.variablesError` — never to swallow.
|
|
234
|
+
*
|
|
235
|
+
* `expectGlobals`: ids of the output variables the instance's definition
|
|
236
|
+
* declares. The runtime defines each of them on the instance, so a 200 whose
|
|
237
|
+
* `globalDefinitions` leaves any undefined is a record that has not
|
|
238
|
+
* materialized yet (it trails the status flip) and is retried like a failure,
|
|
239
|
+
* not returned as missing outputs. A response without the field is not
|
|
240
|
+
* checked. `onFetched` reports the successful read: attempts, why each earlier
|
|
241
|
+
* attempt failed, and its timing (see {@link DebugVariablesFetch} for what the
|
|
242
|
+
* timings bound). `terminalStatusAt` (epoch ms the poll saw the terminal
|
|
243
|
+
* status) adds `sinceTerminalMs`. `delays` and `attemptTimeoutMs` are for tests.
|
|
234
244
|
*/
|
|
235
245
|
export declare function fetchDebugInstanceVariables(config: OrchestratorApiConfig, instanceId: string, options?: {
|
|
236
246
|
delays?: readonly number[];
|
|
237
247
|
attemptTimeoutMs?: number;
|
|
248
|
+
expectGlobals?: readonly string[];
|
|
249
|
+
terminalStatusAt?: number;
|
|
250
|
+
onFetched?: (fetch: DebugVariablesFetch) => void;
|
|
238
251
|
}): Promise<DebugVariablesResponse>;
|
|
239
252
|
/**
|
|
240
253
|
* True when a poll-loop terminal status should pull incidents inline so the
|
|
@@ -122,11 +122,58 @@ export interface DebugResult {
|
|
|
122
122
|
/** Studio Web project id of the uploaded project — the id in `studioWebUrl`. */
|
|
123
123
|
projectId?: string;
|
|
124
124
|
studioWebUrl?: string;
|
|
125
|
+
/** Trigger node id the run started from. */
|
|
126
|
+
entryPoint?: string;
|
|
125
127
|
/** Absent only when {@link variablesError} is set (no globals still yields `variables`). */
|
|
126
128
|
variables?: DebugVariablesResponse;
|
|
127
129
|
/** The variables fetch failed after every retry: outputs are unknown, not empty. */
|
|
128
130
|
variablesError?: DebugVariablesFetchError;
|
|
131
|
+
/**
|
|
132
|
+
* Set when the variables read needed more than one attempt: why each
|
|
133
|
+
* earlier attempt failed and how long the read took. Sizes the retry
|
|
134
|
+
* window from run data.
|
|
135
|
+
*/
|
|
136
|
+
variablesFetch?: DebugVariablesFetch;
|
|
129
137
|
incidents?: DebugIncidentResponse[];
|
|
138
|
+
/**
|
|
139
|
+
* When the poll first saw the terminal status (epoch ms, client clock).
|
|
140
|
+
* The status flipped at most one poll interval before this.
|
|
141
|
+
*/
|
|
142
|
+
terminalStatusAt?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Ids of the flow's declared output variables (`direction` `out` or
|
|
145
|
+
* `inout`), in declaration order. Lets a caller pick the flow's outputs
|
|
146
|
+
* out of {@link DebugVariablesResponse.globals}, which also holds every
|
|
147
|
+
* node's output.
|
|
148
|
+
*/
|
|
149
|
+
declaredOutputIds?: string[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Why one variables attempt failed: a 200 whose record had not materialized
|
|
153
|
+
* (declared outputs undefined), an HTTP error status, the per-attempt
|
|
154
|
+
* timeout, or any other error (network, parse).
|
|
155
|
+
*/
|
|
156
|
+
export type DebugVariablesAttemptFailure = "unmaterialized" | "http" | "timeout" | "network";
|
|
157
|
+
/**
|
|
158
|
+
* A variables read that succeeded after `attempts` tries. Only `failures`
|
|
159
|
+
* entries of `"unmaterialized"` are materialization lag; the others are
|
|
160
|
+
* transport failures.
|
|
161
|
+
*
|
|
162
|
+
* Both durations end at the successful read, so they are upper bounds on the
|
|
163
|
+
* lag, quantized by the backoff: a success on attempt 2 or 3 lands at about
|
|
164
|
+
* 2 s or 6 s plus round trips, whatever the real lag was.
|
|
165
|
+
*/
|
|
166
|
+
export interface DebugVariablesFetch {
|
|
167
|
+
attempts: number;
|
|
168
|
+
/** One entry per failed attempt before the success, in order. */
|
|
169
|
+
failures: DebugVariablesAttemptFailure[];
|
|
170
|
+
/** From the first GET to the successful one. */
|
|
171
|
+
elapsedMs: number;
|
|
172
|
+
/**
|
|
173
|
+
* From the poll that saw the terminal status to the successful GET, when
|
|
174
|
+
* the caller passed that time. Includes the gap before the first GET.
|
|
175
|
+
*/
|
|
176
|
+
sinceTerminalMs?: number;
|
|
130
177
|
}
|
|
131
178
|
/** Terminal failure of the output-variables fetch (see {@link DebugResult.variablesError}). */
|
|
132
179
|
export interface DebugVariablesFetchError {
|
|
@@ -138,6 +185,28 @@ export interface DebugVariablesFetchError {
|
|
|
138
185
|
/** Backend trace ids collected across attempts. */
|
|
139
186
|
traceIds: string[];
|
|
140
187
|
endpoint: string;
|
|
188
|
+
/**
|
|
189
|
+
* Declared output ids that the latest unmaterialized 200 did not define.
|
|
190
|
+
* Kept when a later attempt failed over HTTP or timed out, so a by-hand
|
|
191
|
+
* re-read can still apply the same check.
|
|
192
|
+
*/
|
|
193
|
+
missingGlobals?: string[];
|
|
194
|
+
/**
|
|
195
|
+
* Every declared output id the fetch checked, set alongside
|
|
196
|
+
* {@link missingGlobals}. A by-hand re-read passes all of them, not only
|
|
197
|
+
* the missing ones, so it applies the same check as the original fetch.
|
|
198
|
+
*/
|
|
199
|
+
expectedGlobals?: string[];
|
|
200
|
+
/** Why each attempt failed, in order (see {@link DebugVariablesFetch.failures}). */
|
|
201
|
+
failures?: DebugVariablesAttemptFailure[];
|
|
202
|
+
/**
|
|
203
|
+
* Time from the first attempt to giving up, retries included: about 6 s
|
|
204
|
+
* plus round trips on every failure. A lower bound on the lag only; how
|
|
205
|
+
* much later the record arrives, if ever, is not measured.
|
|
206
|
+
*/
|
|
207
|
+
elapsedMs?: number;
|
|
208
|
+
/** From the poll that saw the terminal status to giving up, when known. */
|
|
209
|
+
sinceTerminalMs?: number;
|
|
141
210
|
}
|
|
142
211
|
export interface DebugVariablesResponse {
|
|
143
212
|
instanceId: string;
|
|
@@ -150,6 +219,17 @@ export interface DebugVariablesResponse {
|
|
|
150
219
|
elementId: string;
|
|
151
220
|
source: string;
|
|
152
221
|
}>;
|
|
222
|
+
/**
|
|
223
|
+
* Values of the instance's globals by id: declared output variables and
|
|
224
|
+
* node outputs. Trigger-scoped `in` variables are not included.
|
|
225
|
+
*/
|
|
226
|
+
globals?: Record<string, unknown>;
|
|
227
|
+
/**
|
|
228
|
+
* Definitions of the same globals, by id. Empty is valid for a flow that
|
|
229
|
+
* declares no outputs; a declared output missing here means the record has
|
|
230
|
+
* not materialized yet.
|
|
231
|
+
*/
|
|
232
|
+
globalDefinitions?: Record<string, unknown>;
|
|
153
233
|
elements: Array<{
|
|
154
234
|
elementId: string;
|
|
155
235
|
elementRunId: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ export type { DebugApiService, MaestroHttpErrorDetails, } from "./debug-http-cli
|
|
|
6
6
|
export { debugPimsGet, debugPimsPatch, debugPimsPost, debugPimsPut, MaestroHttpError, orchestratorGet, orchestratorPost, parseBackendErrorBody, studioWebDelete, studioWebPost, } from "./debug-http-client";
|
|
7
7
|
export type { BeginDebugSessionOptions, PersonalFolderInfo, PrepareForCustomDebugParams, PrepareForCustomDebugResponse, UploadAndDebugParams, } from "./debug-service";
|
|
8
8
|
export { beginDebugSession, buildPollTimeoutFailureOutput, buildStudioWebDesignerUrl, createDebugInstance, DebugPollTimeoutError, DebugProvisioningFailedError, extractStartEventId, FpsPropertiesInjectionError, fetchDebugInstanceIncidents, getFolderInfoById, getPersonalFolderInfo, getPersonalFolderKey, injectInlineAgentProcessEntries, injectSolutionProjectProcessEntries, isFaultedDebugStatus, isSuccessfulDebugStatus, patchConnectionOverwrites, pollDebugInstanceStatus, prepareForCustomDebug, resolveFaultIncidents, uploadAndDebugSolution, } from "./debug-service";
|
|
9
|
-
export type { BeginSessionResponse, BreakpointUpdateRequest, ContinueOnBreakpointRequest, DebugCallbacks, DebugGetAllVariablesResponse, DebugGetVariablesResponse, DebugIncidentResponse, DebugInstanceResponse, DebugInstanceStatusResponse, DebugInstanceStatusResult, DebugResult, DebugVariablesResponse, ElementExecution, InlineAgentDescriptor, OrchestratorApiConfig, PatchVariablesRequest, SolutionProjectDescriptor, StudioWebDebugConfig, } from "./debug-types";
|
|
9
|
+
export type { BeginSessionResponse, BreakpointUpdateRequest, ContinueOnBreakpointRequest, DebugCallbacks, DebugGetAllVariablesResponse, DebugGetVariablesResponse, DebugIncidentResponse, DebugInstanceResponse, DebugInstanceStatusResponse, DebugInstanceStatusResult, DebugResult, DebugVariablesAttemptFailure, DebugVariablesFetch, DebugVariablesFetchError, DebugVariablesResponse, ElementExecution, InlineAgentDescriptor, OrchestratorApiConfig, PatchVariablesRequest, SolutionProjectDescriptor, StudioWebDebugConfig, } from "./debug-types";
|
|
10
10
|
export { parseJsonInputOrFile, readJsonFile, resolveJsonInput, } from "./json-input";
|
|
11
11
|
export { BPMN_SPEC, SUPPORTED_UIPATH_EXTENSION_TAG_NAMES, SUPPORTED_UIPATH_EXTENSION_TAGS, } from "./manifest/bpmn-spec";
|
|
12
12
|
export type { BpmnExtensionType, DiscoveredConnector, DiscoveredProcess, MaestroRegistry, RegistryMetadata, } from "./manifest/types";
|
|
13
13
|
export { buildQueryString } from "./query-string";
|
|
14
14
|
export type { CompactField, ConnectorInfo, ConnectorMethodInfo, ContextEntry, FieldReference, FilterCondition, FilterField, FilterOperator, ISField, ISFieldMethod, ISMetadata, ISMetadataParam, ParsedFilters, SolutionContext, SyncMetadata, TriggerField, TriggerFieldEvent, TriggerObjectMetadata, } from "./registry/index.js";
|
|
15
|
-
export { ACTIVITY_VERSION_V4, type AgentProjectMetadataReader, applySavedFilterTree, assertActivityMetadataResolved, buildActivityEssentialConfiguration, buildInputMetadata, buildManagedHttpEssentialConfiguration, createConfiguredActivityClient, enrichConnectorNode, extractActivityFilterFields, extractMultipartParameters, extractTriggerEventParameters, extractTriggerFilterFields, FilterParseError, fetchConnectionInfo, fetchConnectorActivityMetadataV4, fetchConnectorMetadata, fetchConnectorTriggerMetadata, filterNodes, findSolutionFromCwd, getConnectorConfiguration, getConnectorInfo, getNode, getNodeEnriched, inlineMultipartFileValues, isConnectorNode, isConnectorTriggerNode, isKnownSdkNodeType, isV4ActivityConfiguration, listKnownSdkNodes, listNodes, loadIndexMetadata, loadNodeIndex, MANAGED_HTTP_CONNECTOR_KEY, parseFilterString, pullNodes, pullRemoteNodes, registerRegistryCommand, resolveNodeStorageDir, SUPPORTED_ACTIVITY_VERSIONS, saveIndexMetadata, saveNodeIndex, searchNodes, searchNodesWithFilters, searchWithFilters, setAgentProjectMetadataReader, } from "./registry/index.js";
|
|
15
|
+
export { ACTIVITY_VERSION_V4, type AgentProjectMetadataReader, applySavedFilterTree, assertActivityMetadataResolved, buildActivityEssentialConfiguration, buildInputMetadata, buildManagedHttpEssentialConfiguration, createConfiguredActivityClient, enrichConnectorNode, explainNodeTypeWithoutProcessResource, extractActivityFilterFields, extractMultipartParameters, extractTriggerEventParameters, extractTriggerFilterFields, FilterParseError, fetchConnectionInfo, fetchConnectorActivityMetadataV4, fetchConnectorMetadata, fetchConnectorTriggerMetadata, filterNodes, findProjectsWithoutProcessResource, findSolutionFromCwd, getConnectorConfiguration, getConnectorInfo, getNode, getNodeEnriched, inlineMultipartFileValues, isConnectorNode, isConnectorTriggerNode, isKnownSdkNodeType, isTenantManifestInvalidError, isV4ActivityConfiguration, listKnownSdkNodes, listNodes, loadCurrentTenantNodes, loadIndexMetadata, loadNodeIndex, loadResourceKeyMap, MANAGED_HTTP_CONNECTOR_KEY, parseFilterString, pullNodes, pullRemoteNodes, readSolutionAt, registerRegistryCommand, resolveNodeStorageDir, resourcesRefreshCommand, SUPPORTED_ACTIVITY_VERSIONS, saveIndexMetadata, saveNodeIndex, searchNodes, searchNodesWithFilters, searchWithFilters, setAgentProjectMetadataReader, solutionSearchDirs, TenantManifestInvalidError, } from "./registry/index.js";
|
|
16
16
|
export { countProcessesByType, type EnrichActivityOptions, getEnrichedActivityMetadata, getExtensionType, getRegistry, ORCHESTRATOR_RESOURCE_TYPES, type OrchestratorResourceType, pullRegistry, searchRegistry, } from "./registry/registry-service";
|
|
17
17
|
export { CACHE_EXPIRATION_MS, loadRegistry, loadRegistryMetadata, saveRegistry, } from "./registry/storage";
|
|
18
18
|
export type { DebugInstanceCommandsConfig } from "./shared-commands/debug-instances";
|
|
@@ -27,6 +27,6 @@ export type { ProcessesCommandsConfig } from "./shared-commands/processes";
|
|
|
27
27
|
export { registerSharedProcessesCommands } from "./shared-commands/processes";
|
|
28
28
|
export type { TraceEvent } from "./shared-utils";
|
|
29
29
|
export { formatTraceLine, formatTraceStatus, readStdin, VALID_PACKAGE_NAME_REGEX, VALID_PROJECT_NAME_REGEX, } from "./shared-utils";
|
|
30
|
-
export type { BpmnElementTags, BpmnOutputTags, BpmnProcessVariableTags, ElementExecutionApi, ElementMetaData, ErrorCodeItem, ErrorCodesResponse, GetAllVariablesResponse, GetGlobalVariablesResponse, GetInstanceElementExecutionsResponse, GlobalVariableMetaData, GoToCursorsResponse, GoToTransition, MaestroMessageSendRequest, MaestroMessageSendResponse, MaestroProcessSummary, PimsApiConfig, PimsRequestOptions, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessInstance, ProcessInstanceGetVariablesResponse, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessSettings, } from "./types";
|
|
30
|
+
export type { BpmnElementTags, BpmnOutputTags, BpmnProcessVariableTags, ElementExecutionApi, ElementMetaData, ErrorCodeItem, ErrorCodesResponse, GetAllVariablesResponse, GetGlobalVariablesResponse, GetInstanceElementExecutionsResponse, GlobalVariableMetaData, GoToCursorsResponse, GoToTransition, MaestroMessageSendRequest, MaestroMessageSendResponse, MaestroProcessSummary, MaestroProcessSummaryPage, PimsApiConfig, PimsRequestOptions, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessInstance, ProcessInstanceGetVariablesResponse, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessSettings, } from "./types";
|
|
31
31
|
export { withDebugPimsCall } from "./with-debug-pims-call";
|
|
32
32
|
export { withPimsCall } from "./with-pims-call";
|
|
@@ -5,13 +5,20 @@
|
|
|
5
5
|
* `bpmn-spec.json`. This module re-exports it as a typed constant so the
|
|
6
6
|
* rest of the registry layer can consume it without additional parsing.
|
|
7
7
|
*/
|
|
8
|
-
import type { BpmnExtensionType } from "./types.js";
|
|
8
|
+
import type { BpmnExtensionType, BpmnSerializationRules } from "./types.js";
|
|
9
|
+
export type { BpmnSerializationRules } from "./types.js";
|
|
9
10
|
export interface BpmnSpec {
|
|
10
11
|
version: string;
|
|
11
12
|
source: string;
|
|
12
13
|
extractedFrom?: Record<string, string>;
|
|
13
14
|
extensionTypes: Record<string, BpmnExtensionType>;
|
|
14
15
|
bpmnElements: Record<string, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Kept broad on purpose: `BpmnSpec` is a published export
|
|
18
|
+
* (`@uipath/maestro-sdk/manifest/bpmn-spec`), so narrowing this would
|
|
19
|
+
* break a caller that builds one by hand. `BPMN_SPEC` below carries the
|
|
20
|
+
* strict `BpmnSerializationRules` shape for the bundled spec.
|
|
21
|
+
*/
|
|
15
22
|
serializationRules: Record<string, unknown>;
|
|
16
23
|
}
|
|
17
24
|
/**
|
|
@@ -19,7 +26,9 @@ export interface BpmnSpec {
|
|
|
19
26
|
* Contains all OOTB extension types, BPMN element definitions, and
|
|
20
27
|
* serialization rules extracted from the frontend codebase.
|
|
21
28
|
*/
|
|
22
|
-
export declare const BPMN_SPEC: BpmnSpec
|
|
29
|
+
export declare const BPMN_SPEC: BpmnSpec & {
|
|
30
|
+
serializationRules: BpmnSerializationRules;
|
|
31
|
+
};
|
|
23
32
|
/**
|
|
24
33
|
* Input patterns that merge every input field into one JSON payload at
|
|
25
34
|
* serialization time: `mergedBody` -> `body`, `splitInputsItemData` ->
|
|
@@ -29,6 +38,18 @@ export declare const BPMN_SPEC: BpmnSpec;
|
|
|
29
38
|
* (`separateInputs`, `none`) keeps its input fields as separate elements.
|
|
30
39
|
*/
|
|
31
40
|
export declare const MERGED_INPUT_PATTERNS: ReadonlySet<BpmnExtensionType["inputPattern"]>;
|
|
41
|
+
/**
|
|
42
|
+
* The `{token}` placeholders in an `xmlTemplate` that do not name a declared
|
|
43
|
+
* input or context field.
|
|
44
|
+
*
|
|
45
|
+
* `registry get` hands the template out verbatim as fill-in-the-blank
|
|
46
|
+
* scaffolding: a consumer substitutes `{fieldName}` for every field the record
|
|
47
|
+
* declares, plus these, which come from the surrounding document rather than
|
|
48
|
+
* from a field. A token that is neither leaks into the generated BPMN as
|
|
49
|
+
* literal text, so this is the allow-list the spec tests check templates
|
|
50
|
+
* against — one list, not a copy per test file.
|
|
51
|
+
*/
|
|
52
|
+
export declare const STRUCTURAL_TEMPLATE_TOKENS: readonly string[];
|
|
32
53
|
/**
|
|
33
54
|
* UiPath BPMN extension element names supported by Maestro exports.
|
|
34
55
|
*
|
|
@@ -5,6 +5,22 @@
|
|
|
5
5
|
* serialization rules) with dynamically discovered resources (IS connectors,
|
|
6
6
|
* Orchestrator processes) into a single queryable cache.
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* Rules the frontend serializer (PO.Frontend `bpmn-moddle.ts`) uses to decide
|
|
10
|
+
* which XML extension tag a node gets and how its inputs are written. Each
|
|
11
|
+
* `*Array` field is a list of `BpmnExtensionType` keys (service types); see
|
|
12
|
+
* `extensionTagResolution.rules` for the plain-language version of the same
|
|
13
|
+
* logic.
|
|
14
|
+
*/
|
|
15
|
+
export interface BpmnSerializationRules {
|
|
16
|
+
extensionTagResolution: {
|
|
17
|
+
description: string;
|
|
18
|
+
rules: string[];
|
|
19
|
+
};
|
|
20
|
+
isEventsArray: string[];
|
|
21
|
+
isExecutionArray: string[];
|
|
22
|
+
isSplitInputsEventsArray: string[];
|
|
23
|
+
}
|
|
8
24
|
/** Describes a single field in contextFields or inputFields. */
|
|
9
25
|
export interface BpmnFieldDefinition {
|
|
10
26
|
/** Field name as it appears in BPMN XML context/input */
|
|
@@ -86,6 +102,44 @@ export interface BpmnExtensionType {
|
|
|
86
102
|
* output is gated on name, type, source and presence.
|
|
87
103
|
*/
|
|
88
104
|
additionalOutputs?: BpmnOutputDefinition[];
|
|
105
|
+
/**
|
|
106
|
+
* The generator builds this element's output list per diagram, so the
|
|
107
|
+
* contract cannot pin a specific name, type or source — but every
|
|
108
|
+
* generated output still carries a nonblank `name` (the output schema
|
|
109
|
+
* label) and binds a process variable. Validation requires at least one
|
|
110
|
+
* `uipath:output`, and a nonblank `name` and `var` on each; it checks
|
|
111
|
+
* nothing else about it. Without this flag a contract that declares no
|
|
112
|
+
* output metadata skips output validation entirely.
|
|
113
|
+
*/
|
|
114
|
+
generatedOutputs?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Set on a contract whose real, converter-written output can itself
|
|
117
|
+
* carry custom="true" (a converter detail, not a panel-added
|
|
118
|
+
* narrowing). Without this flag the single-output shape check drops
|
|
119
|
+
* every custom="true" output before checking it, so a contract whose
|
|
120
|
+
* real output always carries custom="true" would always report "is
|
|
121
|
+
* missing an output payload".
|
|
122
|
+
*
|
|
123
|
+
* The contract's own output is whichever `uipath:output` has
|
|
124
|
+
* name === outputName — custom or not; this flag only stops that one
|
|
125
|
+
* output from being dropped on account of custom="true", it never
|
|
126
|
+
* excludes a non-custom match. Any OTHER custom="true" output (a
|
|
127
|
+
* genuine panel addition) is still dropped as before.
|
|
128
|
+
*
|
|
129
|
+
* If no output on the element has name === outputName (for example the
|
|
130
|
+
* contract's own output renamed by hand), there is nothing to single
|
|
131
|
+
* out: every custom="true" output then falls back to being
|
|
132
|
+
* shape-checked instead of silently dropped — the same safety net the
|
|
133
|
+
* validator applied before this flag existed.
|
|
134
|
+
*
|
|
135
|
+
* Only set this alongside a nonblank outputName. Without one, the
|
|
136
|
+
* match above (`name === outputName`) becomes `undefined ===
|
|
137
|
+
* undefined`, which is true for any output with no name — so a
|
|
138
|
+
* nameless output matches as the contract's own output (the match
|
|
139
|
+
* path, not the no-match fallback above) and never gets a
|
|
140
|
+
* missing-name check.
|
|
141
|
+
*/
|
|
142
|
+
contractOutputMayBeCustom?: boolean;
|
|
89
143
|
bindingPattern: "connection" | "process" | "queue" | "businessRule" | "ixpDeployment" | "none";
|
|
90
144
|
bindingInfo?: {
|
|
91
145
|
resource: string;
|
|
@@ -158,6 +212,15 @@ export interface MaestroRegistry {
|
|
|
158
212
|
static: {
|
|
159
213
|
extensionTypes: Record<string, BpmnExtensionType>;
|
|
160
214
|
bpmnElements: Record<string, unknown>;
|
|
215
|
+
/**
|
|
216
|
+
* Kept broad on purpose. `MaestroRegistry` is re-exported from the
|
|
217
|
+
* package root and accepted by the public `saveRegistry` API, so
|
|
218
|
+
* narrowing this to `BpmnSerializationRules` would break an existing
|
|
219
|
+
* caller that builds a registry by hand with a different (or empty)
|
|
220
|
+
* shape here. `BPMN_SPEC.serializationRules` (bpmn-spec.ts) carries
|
|
221
|
+
* the strict `BpmnSerializationRules` type; the typed reads happen
|
|
222
|
+
* there, not on this cached copy.
|
|
223
|
+
*/
|
|
161
224
|
serializationRules: Record<string, unknown>;
|
|
162
225
|
};
|
|
163
226
|
discovered: {
|
|
@@ -4,8 +4,8 @@ export { FilterParseError, parseFilterString } from "./filter-parser.js";
|
|
|
4
4
|
export { ACTIVITY_VERSION_V4, applySavedFilterTree, assertActivityMetadataResolved, buildActivityEssentialConfiguration, buildInputMetadata, buildManagedHttpEssentialConfiguration, createConfiguredActivityClient, enrichConnectorNode, extractActivityFilterFields, extractMultipartParameters, extractTriggerEventParameters, extractTriggerFilterFields, fetchConnectionInfo, fetchConnectorActivityMetadataV4, fetchConnectorMetadata, fetchConnectorTriggerMetadata, getConnectorConfiguration, getConnectorInfo, inlineMultipartFileValues, isConnectorNode, isConnectorTriggerNode, isV4ActivityConfiguration, MANAGED_HTTP_CONNECTOR_KEY, SUPPORTED_ACTIVITY_VERSIONS, } from "./integration-service-fetcher.js";
|
|
5
5
|
export type { CompactField, ConnectorInfo, ConnectorMethodInfo, ContextEntry, FieldReference, ISField, ISFieldMethod, ISMetadata, ISMetadataParam, TriggerField, TriggerFieldEvent, TriggerObjectMetadata, } from "./integration-service-metadata.types";
|
|
6
6
|
export { isKnownSdkNodeType, listKnownSdkNodes } from "./known-types.js";
|
|
7
|
-
export { areDerivedArtifactsCurrent, buildEssentialsIndex, buildSearchIndex, CACHE_FORMAT_VERSION, type DerivedArtifact, isEssentialNodeType, loadIndexMetadata, loadNodeIndex, loadValidEssentialsIndex, loadValidSearchIndex, type NodeSearchSummary, rederiveNodeIndexArtifacts, resolveNodeStorageDir, type SearchableNode, type SyncMetadata, saveIndexMetadata, saveNodeIndex, } from "./node-storage.js";
|
|
8
|
-
export { getNode, getNodeEnriched, listNodes, pullNodes, pullRemoteNodes, searchNodes, searchNodesWithFilters, } from "./node-sync-service.js";
|
|
7
|
+
export { areDerivedArtifactsCurrent, buildEssentialsIndex, buildSearchIndex, CACHE_FORMAT_VERSION, commitNodeIndex, type DerivedArtifact, isEssentialNodeType, loadIndexMetadata, loadNodeIndex, loadScopedNodeIndex, loadValidEssentialsIndex, loadValidSearchIndex, type NodeSearchSummary, nodeCacheScope, rederiveNodeIndexArtifacts, resolveNodeStorageDir, type SearchableNode, type SyncMetadata, saveIndexMetadata, saveNodeIndex, } from "./node-storage.js";
|
|
8
|
+
export { type CurrentTenantNodesResult, filterNodesByKeyword, findNodeByType, getLocalNodeEnriched, getLocalSolutionSnapshot, getNode, getNodeEnriched, isTenantManifestInvalidError, listNodes, loadCurrentTenantNodes, localContractWarning, pullNodes, pullRemoteNodes, searchNodes, searchNodesWithFilters, TenantManifestInvalidError, } from "./node-sync-service.js";
|
|
9
9
|
export type { SolutionContext } from "./solution-discovery.js";
|
|
10
|
-
export { type AgentProjectMetadataReader,
|
|
10
|
+
export { type AgentProjectMetadataReader, buildInSolutionNodes, type ContractState, explainNodeTypeWithoutProcessResource, findProjectsWithoutProcessResource, findSolutionFromCwd, type InSolutionNodes, loadResourceKeyMap, readSolutionAt, resolveProjectEntryPointIO, resourcesRefreshCommand, setAgentProjectMetadataReader, solutionSearchDirs, type UnknownContractProject, unknownContractWarning, } from "./solution-discovery.js";
|
|
11
11
|
export type { FilterCondition, FilterField, FilterOperator, ParsedFilters, } from "./types";
|
|
@@ -4,8 +4,12 @@ import type { NodeManifest } from "@uipath/flow-core";
|
|
|
4
4
|
* flag the CLI starts asking for. Otherwise caches written before the change
|
|
5
5
|
* stay valid for their full 30 minutes, so the nodes a fix just unblocked
|
|
6
6
|
* keep reading as "not found".
|
|
7
|
+
*
|
|
8
|
+
* 6: the metadata records the tenant the nodes were fetched for (`scope`).
|
|
9
|
+
* Older caches carry no scope, so the bump discards them instead of letting
|
|
10
|
+
* them pass as belonging to whichever tenant is logged in now.
|
|
7
11
|
*/
|
|
8
|
-
export declare const CACHE_FORMAT_VERSION =
|
|
12
|
+
export declare const CACHE_FORMAT_VERSION = 6;
|
|
9
13
|
export interface SearchableNode {
|
|
10
14
|
nodeType?: string;
|
|
11
15
|
category?: string;
|
|
@@ -33,7 +37,39 @@ export interface SyncMetadata {
|
|
|
33
37
|
nodeCount: number;
|
|
34
38
|
hash: string;
|
|
35
39
|
cacheVersion?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Which tenant the nodes were fetched for — see {@link nodeCacheScope}.
|
|
42
|
+
* The dynamic part of the manifest (connectors, processes, agents) is
|
|
43
|
+
* tenant data, so a reader must only trust the cache when this matches
|
|
44
|
+
* the tenant it is acting for. Absent on caches written without a login.
|
|
45
|
+
*/
|
|
46
|
+
scope?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Node sources the cached manifest is missing (a scoped token that could
|
|
49
|
+
* not read them). Kept so a pull served from the cache still says so.
|
|
50
|
+
*/
|
|
51
|
+
missingSources?: Array<{
|
|
52
|
+
source: string;
|
|
53
|
+
reason: string;
|
|
54
|
+
}>;
|
|
36
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* The cache key for a tenant's node manifest: platform URL, organization and
|
|
58
|
+
* tenant. The manifest request carries no folder (flow-core's `AuthContext`
|
|
59
|
+
* is org + tenant only), so the folder is not part of the key.
|
|
60
|
+
*
|
|
61
|
+
* Returns `undefined` when any part is missing — an unauthenticated caller
|
|
62
|
+
* has no tenant, and must never read a logged-in tenant's nodes.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* nodeCacheScope({ baseUrl: "https://cloud.uipath.com/", organizationId: "Org-1", tenantId: "T-1" })
|
|
66
|
+
* // => "https://cloud.uipath.com|org-1|t-1"
|
|
67
|
+
*/
|
|
68
|
+
export declare function nodeCacheScope(login: {
|
|
69
|
+
baseUrl?: string;
|
|
70
|
+
organizationId?: string;
|
|
71
|
+
tenantId?: string;
|
|
72
|
+
}): string | undefined;
|
|
37
73
|
/**
|
|
38
74
|
* Resolve the absolute path to the nodes storage directory.
|
|
39
75
|
* Default location: ~/.uipath/nodes/
|
|
@@ -50,9 +86,35 @@ export declare function buildEssentialsIndex(nodes: NodeManifest[]): NodeManifes
|
|
|
50
86
|
* Also updates the index metadata and derived read-path artifacts.
|
|
51
87
|
*
|
|
52
88
|
* @param nodes - Array of nodes to save
|
|
89
|
+
* @param scope - Tenant the nodes were fetched for ({@link nodeCacheScope})
|
|
53
90
|
* @returns Number of nodes saved
|
|
54
91
|
*/
|
|
55
|
-
export declare function saveNodeIndex(nodes: NodeManifest[]): Promise<number>;
|
|
92
|
+
export declare function saveNodeIndex(nodes: NodeManifest[], scope?: string, missingSources?: SyncMetadata["missingSources"]): Promise<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Commit freshly fetched nodes for `scope`, deciding under the write lock.
|
|
95
|
+
*
|
|
96
|
+
* The "unchanged, just bump the timestamp" shortcut compares against the
|
|
97
|
+
* metadata as it is on disk *while the lock is held*, never a copy read
|
|
98
|
+
* before the fetch. Otherwise a refresh for tenant A that started before
|
|
99
|
+
* tenant B replaced the index could see A's old hash, stamp the metadata
|
|
100
|
+
* with A's scope, and leave B's nodes in place labelled as A's.
|
|
101
|
+
*
|
|
102
|
+
* @returns Number of nodes the cache now holds
|
|
103
|
+
*/
|
|
104
|
+
export declare function commitNodeIndex(nodes: NodeManifest[], scope: string | undefined, missingSources?: SyncMetadata["missingSources"]): Promise<number>;
|
|
105
|
+
/**
|
|
106
|
+
* Load the node index only when it is a consistent snapshot fetched for
|
|
107
|
+
* `scope`; `null` means "treat as a miss and refetch".
|
|
108
|
+
*
|
|
109
|
+
* Readers take no lock, and a writer swaps the index before its metadata, so
|
|
110
|
+
* metadata for one tenant can briefly sit next to another tenant's index.
|
|
111
|
+
* The index content is therefore checked against the metadata's hash: a
|
|
112
|
+
* mismatch is a write in flight (or a damaged cache), never a hit.
|
|
113
|
+
*/
|
|
114
|
+
export declare function loadScopedNodeIndex(scope: string): Promise<{
|
|
115
|
+
nodes: NodeManifest[];
|
|
116
|
+
metadata: SyncMetadata;
|
|
117
|
+
} | null>;
|
|
56
118
|
/**
|
|
57
119
|
* Load the aggregated node index
|
|
58
120
|
*
|
|
@@ -75,4 +137,15 @@ export declare function loadIndexMetadata(): Promise<SyncMetadata | null>;
|
|
|
75
137
|
export declare function loadValidSearchIndex(): Promise<NodeSearchSummary[] | null>;
|
|
76
138
|
export declare function loadValidEssentialsIndex(): Promise<NodeManifest[] | null>;
|
|
77
139
|
export declare function areDerivedArtifactsCurrent(): Promise<boolean>;
|
|
140
|
+
/**
|
|
141
|
+
* Rebuild the derived search/essentials artifacts (and the metadata hash)
|
|
142
|
+
* from the index on disk.
|
|
143
|
+
*
|
|
144
|
+
* Runs under the write lock. The tenant `scope` is carried over only when the
|
|
145
|
+
* index content still matches the metadata's hash. A mismatch means the index
|
|
146
|
+
* is not the snapshot the metadata describes — say another tenant's writer
|
|
147
|
+
* swapped the index and stopped before its metadata — so the repair keeps the
|
|
148
|
+
* index usable but unlabelled: no tenant-checked reader will take it as its
|
|
149
|
+
* own, and the next one refetches.
|
|
150
|
+
*/
|
|
78
151
|
export declare function rederiveNodeIndexArtifacts(): Promise<number>;
|