Implement SPICE-0009 External Readers (#660)

This adds a new feature, which allows Pkl to read resources and modules from external processes.

Follows the design laid out in SPICE-0009.

Also, this moves most of the messaging API into pkl-core
This commit is contained in:
Josh B
2024-10-28 18:22:14 -07:00
committed by GitHub
parent 466ae6fd4c
commit 666f8c3939
110 changed files with 4368 additions and 1810 deletions

View File

@@ -25,6 +25,7 @@ import java.nio.file.Paths;
import java.time.Duration;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
@@ -170,7 +171,9 @@ public abstract class BasePklTask extends DefaultTask {
getTestPort().getOrElse(-1),
Collections.emptyList(),
getHttpProxy().getOrNull(),
getHttpNoProxy().getOrElse(List.of()));
getHttpNoProxy().getOrElse(List.of()),
Map.of(),
Map.of());
}
return cachedOptions;
}

View File

@@ -182,7 +182,9 @@ public abstract class ModulesTask extends BasePklTask {
getTestPort().getOrElse(-1),
Collections.emptyList(),
null,
List.of());
List.of(),
Map.of(),
Map.of());
}
return cachedOptions;
}