@adonis-agora/agent 0.81.1 → 0.82.0

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/src/index.js CHANGED
@@ -8,7 +8,7 @@ export * from './action-proposal-text.js';
8
8
  export * from './action-proposal-worker.js';
9
9
  export * from './spi/action-proposal-outcome-store.js';
10
10
  export * from './spi/background-actor-resolver.js';
11
- export const VERSION = '0.81.1';
11
+ export const VERSION = '0.82.0';
12
12
  // Re-export the configure hook from the package root so `node ace configure` finds it.
13
13
  // AdonisJS imports the package MAIN and reads `configure` off the module namespace —
14
14
  // the `./configure` subpath alone is never consulted.
@@ -0,0 +1,11 @@
1
+ import type { SinkWriter } from './spi/token-stream-sink.js';
2
+ /**
3
+ * Wraps the turn's stream writer to note when the first `text` frame goes out: the time to first
4
+ * token as the reader sees it (a frame an output gate held back counts when it was released). The
5
+ * clock is this process's, so a run resumed elsewhere measures from its resume.
6
+ */
7
+ export declare function observeFirstText(writer: SinkWriter, now?: () => number): {
8
+ writer: SinkWriter;
9
+ firstTextAt: () => number | undefined;
10
+ };
11
+ //# sourceMappingURL=turn-timing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turn-timing.d.ts","sourceRoot":"","sources":["../../src/turn-timing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,4BAA4B,CAAC;AAE1E;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,EAClB,GAAG,GAAE,MAAM,MAAiB,GAC3B;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,WAAW,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CAAE,CAY/D"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Wraps the turn's stream writer to note when the first `text` frame goes out: the time to first
3
+ * token as the reader sees it (a frame an output gate held back counts when it was released). The
4
+ * clock is this process's, so a run resumed elsewhere measures from its resume.
5
+ */
6
+ export function observeFirstText(writer, now = Date.now) {
7
+ let firstTextAt;
8
+ const wrapped = Object.create(writer);
9
+ wrapped.write = (frame) => {
10
+ if (firstTextAt === undefined && frame.t === 'text' && frame.v.length > 0)
11
+ firstTextAt = now();
12
+ return writer.write(frame);
13
+ };
14
+ wrapped.end = () => writer.end();
15
+ if (typeof writer.flush === 'function') {
16
+ wrapped.flush = () => writer.flush.call(writer);
17
+ }
18
+ return { writer: wrapped, firstTextAt: () => firstTextAt };
19
+ }
20
+ //# sourceMappingURL=turn-timing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turn-timing.js","sourceRoot":"","sources":["../../src/turn-timing.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAkB,EAClB,GAAG,GAAiB,IAAI,CAAC,GAAG;IAE5B,IAAI,WAA+B,CAAC;IACpC,MAAM,OAAO,GAAe,MAAM,CAAC,MAAM,CAAC,MAAM,CAAe,CAAC;IAChE,OAAO,CAAC,KAAK,GAAG,CAAC,KAAkB,EAAE,EAAE;QACrC,IAAI,WAAW,KAAK,SAAS,IAAI,KAAK,CAAC,CAAC,KAAK,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC;YAAE,WAAW,GAAG,GAAG,EAAE,CAAC;QAC/F,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IACF,OAAO,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;IACjC,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QACvC,OAAO,CAAC,KAAK,GAAG,GAAG,EAAE,CAAE,MAAM,CAAC,KAAoC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClF,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;AAC7D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/agent",
3
- "version": "0.81.1",
3
+ "version": "0.82.0",
4
4
  "description": "Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -452,33 +452,33 @@
452
452
  "devDependencies": {
453
453
  "@a2ui/react": "0.12.0",
454
454
  "@a2ui/web_core": "0.12.0",
455
- "@adonis-agora/authz": "0.18.0",
455
+ "@adonis-agora/authz": "0.19.0",
456
456
  "@adonis-agora/diagnostics": "0.2.10",
457
- "@adonis-agora/durable": "0.43.3",
457
+ "@adonis-agora/durable": "0.43.5",
458
458
  "@adonis-agora/telescope": "0.21.1",
459
459
  "@adonisjs/assembler": "8.5.2",
460
460
  "@adonisjs/core": "7.5.2",
461
461
  "@adonisjs/lucid": "22.4.2",
462
462
  "@adonisjs/redis": "11.0.0",
463
- "@ag-ui/client": "1.0.2",
464
- "@ag-ui/core": "1.0.2",
465
- "@ai-sdk/react": "4.0.143",
463
+ "@ag-ui/client": "1.0.3",
464
+ "@ag-ui/core": "1.0.3",
465
+ "@ai-sdk/react": "4.0.147",
466
466
  "@emotion/react": "11.14.0",
467
467
  "@emotion/styled": "11.14.1",
468
468
  "@fontsource-variable/geist": "5.3.0",
469
469
  "@json-render/core": "0.21.1",
470
470
  "@json-render/react": "0.21.1",
471
471
  "@mui/material": "7.3.11",
472
- "@opencode/client": "2.0.29",
472
+ "@opencode/client": "2.0.32",
473
473
  "@qdrant/js-client-rest": "1.19.0",
474
- "@resvg/resvg-js": "^2.6.2",
474
+ "@resvg/resvg-js": "2.6.2",
475
475
  "@streamdown/code": "1.1.1",
476
476
  "@streamdown/math": "1.0.3",
477
477
  "@streamdown/mermaid": "1.0.3",
478
478
  "@tailwindcss/vite": "4.3.3",
479
479
  "@tanstack/intent": "0.5.5",
480
- "@testcontainers/mysql": "12.2.0",
481
- "@testcontainers/postgresql": "12.2.0",
480
+ "@testcontainers/mysql": "12.2.1",
481
+ "@testcontainers/postgresql": "12.2.1",
482
482
  "@testing-library/dom": "10.4.2",
483
483
  "@testing-library/react": "16.3.3",
484
484
  "@types/node": "26.6.5",
@@ -488,22 +488,22 @@
488
488
  "agent-0-56": "npm:@adonis-agora/agent@0.56.0",
489
489
  "agent-0-58": "npm:@adonis-agora/agent@0.58.0",
490
490
  "agent-0-59": "npm:@adonis-agora/agent@0.59.0",
491
- "ai": "7.0.140",
492
- "ajv": "^8.20.0",
491
+ "ai": "7.0.143",
492
+ "ajv": "8.20.0",
493
493
  "better-sqlite3": "13.0.3",
494
494
  "bootstrap": "5.3.8",
495
495
  "esbuild": "0.28.2",
496
- "jsdom": "30.1.2",
496
+ "jsdom": "30.1.3",
497
497
  "katex": "0.19.0",
498
498
  "luxon": "3.7.2",
499
499
  "mysql2": "3.24.6",
500
500
  "node-sql-parser": "5.4.0",
501
501
  "pg": "8.23.1",
502
- "playwright-core": "^1.63.0",
502
+ "playwright-core": "1.64.1",
503
503
  "prism-react-renderer": "2.4.1",
504
504
  "prop-types": "15.8.1",
505
- "react": "19.3.0",
506
- "react-dom": "19.3.0",
505
+ "react": "19.3.1",
506
+ "react-dom": "19.3.1",
507
507
  "react-markdown": "10.1.0",
508
508
  "react-native": "0.87.1",
509
509
  "react-native-webview": "14.0.1",
@@ -511,17 +511,17 @@
511
511
  "rehype-sanitize": "6.0.0",
512
512
  "remark-gfm": "4.0.1",
513
513
  "remark-math": "6.0.0",
514
- "rxjs": "^7.8.1",
515
- "sass": "1.105.1",
514
+ "rxjs": "7.8.2",
515
+ "sass": "1.105.2",
516
516
  "streamdown": "2.6.0",
517
517
  "tailwindcss": "4.3.3",
518
- "testcontainers": "12.2.0",
518
+ "testcontainers": "12.2.1",
519
519
  "typescript": "7.0.2",
520
520
  "typescript5": "npm:typescript@5.9.3",
521
521
  "unist-util-visit": "5.1.0",
522
- "vite": "8.3.2",
523
- "vitest": "5.0.3",
524
- "zod": "4.6.5"
522
+ "vite": "8.3.4",
523
+ "vitest": "5.0.5",
524
+ "zod": "4.6.7"
525
525
  },
526
526
  "engines": {
527
527
  "node": ">=24"