@koda-sl/baker-cli 0.400.0-dev.7f8839959 → 0.401.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 +3 -0
- package/dist/{chunk-LOG6SURL.js → chunk-U4OKU5EF.js} +207 -118
- package/dist/chunk-U4OKU5EF.js.map +1 -0
- package/dist/cli.js +169 -172
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +8 -0
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-LOG6SURL.js.map +0 -1
package/dist/engine/index.d.ts
CHANGED
|
@@ -291,6 +291,12 @@ type ValidateExtraIssue = {
|
|
|
291
291
|
* `value` (not an asset at all), or `unknown` (only running it would tell).
|
|
292
292
|
*/
|
|
293
293
|
type StaticInputKind = AssetRef["kind"] | "list" | "value" | "unknown";
|
|
294
|
+
/** Where an input's file comes from before the run: a workspace file or a URL an `ingest` reads. */
|
|
295
|
+
type InputSource = {
|
|
296
|
+
path: string;
|
|
297
|
+
} | {
|
|
298
|
+
url: string;
|
|
299
|
+
};
|
|
294
300
|
type ValidateExtraFn = (args: {
|
|
295
301
|
rawParams: unknown;
|
|
296
302
|
rawInputs: unknown;
|
|
@@ -298,6 +304,8 @@ type ValidateExtraFn = (args: {
|
|
|
298
304
|
nodeId?: string;
|
|
299
305
|
/** Reads a raw input value's kind off the node it references. */
|
|
300
306
|
inputKindOf?: (value: unknown) => StaticInputKind;
|
|
307
|
+
/** Where a raw input's file comes from before the run; undefined for one a node generates. */
|
|
308
|
+
inputSourceOf?: (value: unknown) => InputSource | undefined;
|
|
301
309
|
}) => Promise<ValidateExtraIssue[]> | ValidateExtraIssue[];
|
|
302
310
|
/**
|
|
303
311
|
* Node-supplied cache-key extras hook. Returns extra fields the executor
|
package/dist/engine/index.js
CHANGED