@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.5.35",
3
+ "version": "0.5.36",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",
@@ -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,
@@ -10,7 +10,9 @@ RIDDLE_DIRECT_TOOLS = {
10
10
  'riddle_preview',
11
11
  'riddle_preview_delete',
12
12
  'riddle_server_preview',
13
+ 'riddle_server_preview_status',
13
14
  'riddle_build_preview',
15
+ 'riddle_build_preview_status',
14
16
  'riddle_script',
15
17
  'riddle_run',
16
18
  }