@riddledc/riddle-proof 0.5.35 → 0.5.36
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/package.json
CHANGED
|
@@ -94,6 +94,10 @@ function normalizeBuildArgs(args) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
function normalizeJobId(args) {
|
|
98
|
+
return args.job_id ?? args.jobId ?? args.id;
|
|
99
|
+
}
|
|
100
|
+
|
|
97
101
|
async function run(tool, args) {
|
|
98
102
|
const core = await loadCore();
|
|
99
103
|
const config = buildConfig();
|
|
@@ -113,10 +117,18 @@ async function run(tool, args) {
|
|
|
113
117
|
return core.createServerPreview(config, normalizeServerArgs(args));
|
|
114
118
|
}
|
|
115
119
|
|
|
120
|
+
if (tool === "riddle_server_preview_status") {
|
|
121
|
+
return core.getServerPreviewStatus(config, normalizeJobId(args));
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
if (tool === "riddle_build_preview") {
|
|
117
125
|
return core.createBuildPreview(config, normalizeBuildArgs(args));
|
|
118
126
|
}
|
|
119
127
|
|
|
128
|
+
if (tool === "riddle_build_preview_status") {
|
|
129
|
+
return core.getBuildPreviewStatus(config, normalizeJobId(args));
|
|
130
|
+
}
|
|
131
|
+
|
|
120
132
|
if (tool === "riddle_script") {
|
|
121
133
|
return core.runWithDefaults(config, args, {
|
|
122
134
|
include: TOOL_DEFAULT_INCLUDE,
|
package/runtime/lib/util.py
CHANGED