rl-simulator-core 1.0.2 → 1.0.3

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/index.d.mts CHANGED
@@ -528,7 +528,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
528
528
 
529
529
  // 2. Setup Task
530
530
  console.log(`Setup for session ${sessionId}...`);
531
- const setupUrl = `${targetServer}/api/tasks/setup`;
531
+ const setupUrl = `${targetServer}/api/setup/run`;
532
532
  await fetchJson(setupUrl, {
533
533
  method: 'POST',
534
534
  headers: { 'Content-Type': 'application/json' },
@@ -546,7 +546,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
546
546
 
547
547
  // 4. Verify Task
548
548
  console.log("Verifying result...");
549
- const verifyUrl = `${targetServer}/api/tasks/verify`;
549
+ const verifyUrl = `${targetServer}/api/verify/run`;
550
550
  const verifyData = await fetchJson(verifyUrl, {
551
551
  method: 'POST',
552
552
  headers: { 'Content-Type': 'application/json' },
package/dist/index.d.ts CHANGED
@@ -528,7 +528,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
528
528
 
529
529
  // 2. Setup Task
530
530
  console.log(`Setup for session ${sessionId}...`);
531
- const setupUrl = `${targetServer}/api/tasks/setup`;
531
+ const setupUrl = `${targetServer}/api/setup/run`;
532
532
  await fetchJson(setupUrl, {
533
533
  method: 'POST',
534
534
  headers: { 'Content-Type': 'application/json' },
@@ -546,7 +546,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
546
546
 
547
547
  // 4. Verify Task
548
548
  console.log("Verifying result...");
549
- const verifyUrl = `${targetServer}/api/tasks/verify`;
549
+ const verifyUrl = `${targetServer}/api/verify/run`;
550
550
  const verifyData = await fetchJson(verifyUrl, {
551
551
  method: 'POST',
552
552
  headers: { 'Content-Type': 'application/json' },
package/dist/index.js CHANGED
@@ -476,7 +476,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
476
476
  }
477
477
  const { session_id: sessionId, TaskJson } = startData.data;
478
478
  console.log(`Setup for session ${sessionId}...`);
479
- const setupUrl = `${targetServer}/api/tasks/setup`;
479
+ const setupUrl = `${targetServer}/api/setup/run`;
480
480
  await fetchJson(setupUrl, {
481
481
  method: "POST",
482
482
  headers: { "Content-Type": "application/json" },
@@ -490,7 +490,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
490
490
  simulatedUserKnownInfo: TaskJson.task.simulated_user_known_info
491
491
  });
492
492
  console.log("Verifying result...");
493
- const verifyUrl = `${targetServer}/api/tasks/verify`;
493
+ const verifyUrl = `${targetServer}/api/verify/run`;
494
494
  const verifyData = await fetchJson(verifyUrl, {
495
495
  method: "POST",
496
496
  headers: { "Content-Type": "application/json" },
package/dist/index.mjs CHANGED
@@ -442,7 +442,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
442
442
  }
443
443
  const { session_id: sessionId, TaskJson } = startData.data;
444
444
  console.log(`Setup for session ${sessionId}...`);
445
- const setupUrl = `${targetServer}/api/tasks/setup`;
445
+ const setupUrl = `${targetServer}/api/setup/run`;
446
446
  await fetchJson(setupUrl, {
447
447
  method: "POST",
448
448
  headers: { "Content-Type": "application/json" },
@@ -456,7 +456,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
456
456
  simulatedUserKnownInfo: TaskJson.task.simulated_user_known_info
457
457
  });
458
458
  console.log("Verifying result...");
459
- const verifyUrl = `${targetServer}/api/tasks/verify`;
459
+ const verifyUrl = `${targetServer}/api/verify/run`;
460
460
  const verifyData = await fetchJson(verifyUrl, {
461
461
  method: "POST",
462
462
  headers: { "Content-Type": "application/json" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rl-simulator-core",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
package/src/index.js CHANGED
@@ -120,7 +120,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
120
120
 
121
121
  // 2. Setup Task
122
122
  console.log(`Setup for session ${sessionId}...`);
123
- const setupUrl = `${targetServer}/api/tasks/setup`;
123
+ const setupUrl = `${targetServer}/api/setup/run`;
124
124
  await fetchJson(setupUrl, {
125
125
  method: 'POST',
126
126
  headers: { 'Content-Type': 'application/json' },
@@ -138,7 +138,7 @@ async function executeSingleCycle(targetWeb, targetServer, taskId, iteration) {
138
138
 
139
139
  // 4. Verify Task
140
140
  console.log("Verifying result...");
141
- const verifyUrl = `${targetServer}/api/tasks/verify`;
141
+ const verifyUrl = `${targetServer}/api/verify/run`;
142
142
  const verifyData = await fetchJson(verifyUrl, {
143
143
  method: 'POST',
144
144
  headers: { 'Content-Type': 'application/json' },