@assertrx/dino 1.0.4 → 1.0.5

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": "@assertrx/dino",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A friendly purple dinosaur pi package with a custom TUI header, theme, and Playwright skills.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -0,0 +1,9 @@
1
+ [ 296ms] [VERBOSE] [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) %o @ https://www.saucedemo.com/:0
2
+ [ 342ms] [ERROR] Failed to load resource: the server responded with a status of 401 (Unauthorized) @ https://events.backtrace.io/api/summed-events/submit?universe=UNIVERSE&token=TOKEN:0
3
+ [ 359ms] [ERROR] Failed to load resource: the server responded with a status of 401 (Unauthorized) @ https://events.backtrace.io/api/unique-events/submit?universe=UNIVERSE&token=TOKEN:0
4
+ [ 10471ms] [ERROR] Failed to load resource: the server responded with a status of 401 (Unauthorized) @ https://events.backtrace.io/api/summed-events/submit?universe=UNIVERSE&token=TOKEN:0
5
+ [ 10492ms] [ERROR] Failed to load resource: the server responded with a status of 401 (Unauthorized) @ https://events.backtrace.io/api/unique-events/submit?universe=UNIVERSE&token=TOKEN:0
6
+ [ 30601ms] [ERROR] Failed to load resource: the server responded with a status of 401 (Unauthorized) @ https://events.backtrace.io/api/summed-events/submit?universe=UNIVERSE&token=TOKEN:0
7
+ [ 30654ms] [ERROR] Failed to load resource: the server responded with a status of 401 (Unauthorized) @ https://events.backtrace.io/api/unique-events/submit?universe=UNIVERSE&token=TOKEN:0
8
+ [ 33201ms] [ERROR] Access to fetch at 'https://submit.backtrace.io/UNIVERSE/TOKEN/json' from origin 'https://www.saucedemo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. @ https://www.saucedemo.com/:0
9
+ [ 33202ms] [ERROR] Failed to load resource: net::ERR_FAILED @ https://submit.backtrace.io/UNIVERSE/TOKEN/json:0
@@ -0,0 +1 @@
1
+ [ 283ms] [VERBOSE] [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) %o @ https://www.saucedemo.com/:0
@@ -0,0 +1,3 @@
1
+ [ 230ms] [VERBOSE] [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) %o @ https://www.saucedemo.com/:0
2
+ [ 58486ms] [ERROR] Access to fetch at 'https://submit.backtrace.io/UNIVERSE/TOKEN/json' from origin 'https://www.saucedemo.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. @ https://www.saucedemo.com/:0
3
+ [ 58486ms] [ERROR] Failed to load resource: net::ERR_FAILED @ https://submit.backtrace.io/UNIVERSE/TOKEN/json:0
@@ -0,0 +1,14 @@
1
+ - generic [ref=e3]:
2
+ - generic [ref=e4]: Swag Labs
3
+ - generic [ref=e5]:
4
+ - generic [ref=e9]:
5
+ - textbox "Username" [ref=e11]
6
+ - textbox "Password" [ref=e13]
7
+ - button "Login" [ref=e15] [cursor=pointer]
8
+ - generic [ref=e17]:
9
+ - generic [ref=e18]:
10
+ - heading "Accepted usernames are:" [level=4] [ref=e19]
11
+ - text: standard_userlocked_out_userproblem_userperformance_glitch_usererror_uservisual_user
12
+ - generic [ref=e20]:
13
+ - heading "Password for all users:" [level=4] [ref=e21]
14
+ - text: secret_sauce
@@ -0,0 +1,17 @@
1
+ - generic [ref=e3]:
2
+ - generic [ref=e4]: Swag Labs
3
+ - generic [ref=e5]:
4
+ - generic [ref=e9]:
5
+ - textbox "Username" [ref=e11]: standard_user
6
+ - textbox "Password" [ref=e13]: wrong_password
7
+ - heading [level=3] [ref=e26]:
8
+ - button [ref=e27] [cursor=pointer]
9
+ - text: "Epic sadface: Username and password do not match any user in this service"
10
+ - button "Login" [active] [ref=e15] [cursor=pointer]
11
+ - generic [ref=e17]:
12
+ - generic [ref=e18]:
13
+ - heading "Accepted usernames are:" [level=4] [ref=e19]
14
+ - text: standard_userlocked_out_userproblem_userperformance_glitch_usererror_uservisual_user
15
+ - generic [ref=e20]:
16
+ - heading "Password for all users:" [level=4] [ref=e21]
17
+ - text: secret_sauce
@@ -0,0 +1,14 @@
1
+ - generic [ref=e3]:
2
+ - generic [ref=e4]: Swag Labs
3
+ - generic [ref=e5]:
4
+ - generic [ref=e9]:
5
+ - textbox "Username" [ref=e11]
6
+ - textbox "Password" [ref=e13]
7
+ - button "Login" [ref=e15] [cursor=pointer]
8
+ - generic [ref=e17]:
9
+ - generic [ref=e18]:
10
+ - heading "Accepted usernames are:" [level=4] [ref=e19]
11
+ - text: standard_userlocked_out_userproblem_userperformance_glitch_usererror_uservisual_user
12
+ - generic [ref=e20]:
13
+ - heading "Password for all users:" [level=4] [ref=e21]
14
+ - text: secret_sauce
@@ -0,0 +1,14 @@
1
+ - generic [ref=e3]:
2
+ - generic [ref=e4]: Swag Labs
3
+ - generic [ref=e5]:
4
+ - generic [ref=e9]:
5
+ - textbox "Username" [ref=e11]
6
+ - textbox "Password" [ref=e13]
7
+ - button "Login" [ref=e15] [cursor=pointer]
8
+ - generic [ref=e17]:
9
+ - generic [ref=e18]:
10
+ - heading "Accepted usernames are:" [level=4] [ref=e19]
11
+ - text: standard_userlocked_out_userproblem_userperformance_glitch_usererror_uservisual_user
12
+ - generic [ref=e20]:
13
+ - heading "Password for all users:" [level=4] [ref=e21]
14
+ - text: secret_sauce
@@ -0,0 +1,17 @@
1
+ - generic [ref=e3]:
2
+ - generic [ref=e4]: Swag Labs
3
+ - generic [ref=e5]:
4
+ - generic [ref=e9]:
5
+ - textbox "Username" [ref=e11]: standard_user
6
+ - textbox "Password" [ref=e13]: wrong_password
7
+ - heading [level=3] [ref=e26]:
8
+ - button [ref=e27] [cursor=pointer]
9
+ - text: "Epic sadface: Username and password do not match any user in this service"
10
+ - button "Login" [active] [ref=e15] [cursor=pointer]
11
+ - generic [ref=e17]:
12
+ - generic [ref=e18]:
13
+ - heading "Accepted usernames are:" [level=4] [ref=e19]
14
+ - text: standard_userlocked_out_userproblem_userperformance_glitch_usererror_uservisual_user
15
+ - generic [ref=e20]:
16
+ - heading "Password for all users:" [level=4] [ref=e21]
17
+ - text: secret_sauce
@@ -462,10 +462,19 @@ app.post("/api/prompts/:name", async (request, reply) => {
462
462
 
463
463
  await session.prompt(promptContent);
464
464
 
465
+ let stats;
466
+ try {
467
+ const s = session.getSessionStats();
468
+ stats = { tokens: s.tokens, cost: s.cost, toolCalls: s.toolCalls };
469
+ } catch {
470
+ /* stats unavailable */
471
+ }
472
+
465
473
  return {
466
474
  prompt: name,
467
475
  response: messages.join(""),
468
476
  toolCalls,
477
+ stats,
469
478
  };
470
479
  }
471
480
 
@@ -505,10 +514,22 @@ app.post("/api/prompts/:name", async (request, reply) => {
505
514
  sendSSE("tool_end", { tool: event.toolName, error: event.isError });
506
515
  break;
507
516
 
508
- case "agent_end":
509
- sendSSE("done", {});
517
+ case "agent_end": {
518
+ let stats;
519
+ try {
520
+ const s = session.getSessionStats();
521
+ stats = {
522
+ tokens: s.tokens,
523
+ cost: s.cost,
524
+ toolCalls: s.toolCalls,
525
+ };
526
+ } catch {
527
+ /* stats unavailable */
528
+ }
529
+ sendSSE("done", { stats });
510
530
  reply.raw.end();
511
531
  break;
532
+ }
512
533
  }
513
534
  });
514
535