@tangle-network/agent-app 0.60.137 → 0.60.139

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.
Files changed (57) hide show
  1. package/dist/{DesignCanvasEditor-UOOPYYYR.js → DesignCanvasEditor-UHX7YFKE.js} +3 -3
  2. package/dist/VaultPane-IJTK3BDM.js +7 -0
  3. package/dist/agent-profiles/d1.js +3 -3
  4. package/dist/agent-profiles/index.js +3 -3
  5. package/dist/assistant/index.js +1 -1
  6. package/dist/chat-routes/index.js +4 -4
  7. package/dist/{chunk-HZGKPWVA.js → chunk-2DJSGH52.js} +3 -2
  8. package/dist/chunk-2DJSGH52.js.map +1 -0
  9. package/dist/{chunk-FVI2MHUL.js → chunk-7EDNPQHW.js} +88 -8
  10. package/dist/chunk-7EDNPQHW.js.map +1 -0
  11. package/dist/{chunk-ZZACC24K.js → chunk-BUF2OCZM.js} +2 -2
  12. package/dist/{chunk-ZZACC24K.js.map → chunk-BUF2OCZM.js.map} +1 -1
  13. package/dist/{chunk-IMTU5LCF.js → chunk-CV5L2FUK.js} +2 -2
  14. package/dist/{chunk-IFK7IMHP.js → chunk-I5NRQZHR.js} +3 -3
  15. package/dist/{chunk-PQQYFADL.js → chunk-KFHLPQBY.js} +4 -4
  16. package/dist/{chunk-BMZTYGKE.js → chunk-LM5AXKKO.js} +2 -2
  17. package/dist/{chunk-Z362IHYL.js → chunk-MLVCFWEH.js} +2 -2
  18. package/dist/{chunk-MO7PDQRZ.js → chunk-N5VO46Z6.js} +3 -2
  19. package/dist/chunk-N5VO46Z6.js.map +1 -0
  20. package/dist/{chunk-TMOYOMSW.js → chunk-UGKGZHKA.js} +5 -5
  21. package/dist/{chunk-TMOYOMSW.js.map → chunk-UGKGZHKA.js.map} +1 -1
  22. package/dist/{chunk-XMIV374H.js → chunk-URV33P74.js} +2 -2
  23. package/dist/design-canvas-react/index.js +3 -3
  24. package/dist/design-canvas-react/lazy.js +1 -1
  25. package/dist/journeys/cli.js +29 -2
  26. package/dist/journeys/cli.js.map +1 -1
  27. package/dist/journeys/index.d.ts +1 -0
  28. package/dist/journeys/index.js +11 -1
  29. package/dist/journeys/index.js.map +1 -1
  30. package/dist/journeys/scoreboard.d.ts +81 -0
  31. package/dist/preset-cloudflare/index.js +2 -2
  32. package/dist/public-consultation/index.d.ts +1 -1
  33. package/dist/sandbox/index.js +4 -4
  34. package/dist/studio-react/index.js +3 -2
  35. package/dist/studio-react/index.js.map +1 -1
  36. package/dist/theme/brand.generated.d.ts +2 -2
  37. package/dist/theme/index.js +1 -1
  38. package/dist/theme/tokens.css +191 -80
  39. package/dist/tools/index.js +4 -4
  40. package/dist/vault/index.js +1 -1
  41. package/dist/vault/lazy.js +1 -1
  42. package/dist/web-react/index.js +1 -1
  43. package/dist/web-react/session-history.d.ts +7 -1
  44. package/dist/work-product/index.js +2 -2
  45. package/package.json +5 -5
  46. package/dist/VaultPane-OWOPGPXP.js +0 -7
  47. package/dist/chunk-FVI2MHUL.js.map +0 -1
  48. package/dist/chunk-HZGKPWVA.js.map +0 -1
  49. package/dist/chunk-MO7PDQRZ.js.map +0 -1
  50. /package/dist/{DesignCanvasEditor-UOOPYYYR.js.map → DesignCanvasEditor-UHX7YFKE.js.map} +0 -0
  51. /package/dist/{VaultPane-OWOPGPXP.js.map → VaultPane-IJTK3BDM.js.map} +0 -0
  52. /package/dist/{chunk-IMTU5LCF.js.map → chunk-CV5L2FUK.js.map} +0 -0
  53. /package/dist/{chunk-IFK7IMHP.js.map → chunk-I5NRQZHR.js.map} +0 -0
  54. /package/dist/{chunk-PQQYFADL.js.map → chunk-KFHLPQBY.js.map} +0 -0
  55. /package/dist/{chunk-BMZTYGKE.js.map → chunk-LM5AXKKO.js.map} +0 -0
  56. /package/dist/{chunk-Z362IHYL.js.map → chunk-MLVCFWEH.js.map} +0 -0
  57. /package/dist/{chunk-XMIV374H.js.map → chunk-URV33P74.js.map} +0 -0
@@ -0,0 +1,81 @@
1
+ /**
2
+ * The readiness scoreboard writer: one run's journey summary as the writes
3
+ * that put it on the shared board, so every app's rows land in one schema.
4
+ *
5
+ * The board is an artifact page whose shared store holds three collections:
6
+ * `flows` (one row per flow), `prs` and `meta` (one document per app; Hardware's
7
+ * is `board`, written before the board was shared). A row carries `app` and
8
+ * `flowId`; a row without `app` belongs to Hardware. Hardware's rows predate the
9
+ * shared board and live at their bare flow id and `meta/board`; its runner
10
+ * passes `legacyIds` so those rows are updated in place, never duplicated.
11
+ *
12
+ * A document that already exists is merged (`update`) and pinned to the
13
+ * version the caller read from the store (`versions`), so the text a person
14
+ * wrote for a flow (what the customer does, its pass bar) survives every run,
15
+ * and a field the run no longer has (an old blocker on a flow that now passes)
16
+ * is deleted. A document with no known version is created with `set`; the
17
+ * store refuses a `set` without a version on a document that already exists
18
+ * (version_mismatch, nothing written; checked against the board's store on
19
+ * 2026-10-12), so a row a person wrote is never replaced.
20
+ *
21
+ * Pure: the same summary and options give the same writes, in the same order.
22
+ */
23
+ export declare const SCOREBOARD_STATUSES: readonly ['pass', 'fail', 'stall', 'blocked-host', 'blocked', 'skipped', 'unrecorded'];
24
+ export type ScoreboardStatus = (typeof SCOREBOARD_STATUSES)[number];
25
+ /** Rows a store wrote before the board was shared, with no `app` field, belong to this app. */
26
+ export declare const LEGACY_SCOREBOARD_APP = "hardware";
27
+ /** One journey in a run's `summary.json`. */
28
+ export interface JourneySummaryEntry {
29
+ /** Flow id, e.g. `c2` or `C2`; written upper-case. */
30
+ id: string;
31
+ status: string;
32
+ /** Why it was blocked, skipped, stalled or failed. */
33
+ reason?: string;
34
+ firstTextS?: number;
35
+ completeS?: number;
36
+ /** Links a reviewer can open. Only http(s) URLs are written; host paths are dropped. */
37
+ videoUrl?: string;
38
+ traceUrl?: string;
39
+ evidenceUrl?: string;
40
+ }
41
+ /** A run's summary, as an app's journey runner writes it. */
42
+ export interface JourneySummary {
43
+ origin?: string;
44
+ /** Commit the run served. */
45
+ sha?: string;
46
+ model?: string;
47
+ lane?: string;
48
+ /** ISO time of the run; required, so two runs are told apart. */
49
+ updatedAt?: string;
50
+ journeys: JourneySummaryEntry[];
51
+ }
52
+ export interface ScoreboardOptions {
53
+ /** Short app name, e.g. `casework`. */
54
+ app: string;
55
+ /** Current version of each document that exists, by `collection/docId`. */
56
+ versions?: Readonly<Record<string, number>>;
57
+ /**
58
+ * Write at the ids the board used before it was shared: the bare flow id and
59
+ * `meta/board`. Only Hardware's runner sets this; every other app's rows are
60
+ * `<app>-<flowId>` and `meta/<app>`.
61
+ */
62
+ legacyIds?: boolean;
63
+ }
64
+ /** One entry of an artifact store batch, in the shape the batch write takes. */
65
+ export interface ScoreboardWrite {
66
+ op: 'update' | 'set';
67
+ collection: 'flows' | 'meta';
68
+ doc_id: string;
69
+ data: Record<string, unknown>;
70
+ if_version?: number;
71
+ }
72
+ export interface ScoreboardResult {
73
+ writes: ScoreboardWrite[];
74
+ /** Entries the writer could not take as given, each with what it did instead. */
75
+ warnings: string[];
76
+ }
77
+ /** The document id a flow row lives at. */
78
+ export declare function scoreboardDocId(app: string, flowId: string, legacyIds?: boolean): string;
79
+ /** The `meta` document an app's run facts live at. */
80
+ export declare function scoreboardMetaId(app: string, legacyIds?: boolean): string;
81
+ export declare function scoreboardRows(summary: JourneySummary, options: ScoreboardOptions): ScoreboardResult;
@@ -12,8 +12,8 @@ import {
12
12
  } from "../chunk-4LBCTFBP.js";
13
13
  import {
14
14
  assertRenderUiSchema
15
- } from "../chunk-XMIV374H.js";
16
- import "../chunk-TMOYOMSW.js";
15
+ } from "../chunk-URV33P74.js";
16
+ import "../chunk-UGKGZHKA.js";
17
17
 
18
18
  // src/preset-cloudflare/workflow-instance.ts
19
19
  async function ensureCloudflareWorkflowInstance(binding, input) {
@@ -102,8 +102,8 @@ interface GatewayConsultationContext {
102
102
  /** Compose gateway admission, scoped knowledge and the maintained persisted chat route. */
103
103
  export declare function createPublicConsultation(options: PublicConsultationOptions): {
104
104
  authorizeConsumer(agent: ConsultationAgent, consumer: ConsultationConsumer): Promise<{
105
- reason?: undefined;
106
105
  allow: true;
106
+ reason?: undefined;
107
107
  code?: undefined;
108
108
  } | {
109
109
  allow: false;
@@ -137,13 +137,13 @@ import {
137
137
  } from "../chunk-4LBCTFBP.js";
138
138
  import "../chunk-WVESWAJJ.js";
139
139
  import "../chunk-LWSJK546.js";
140
- import "../chunk-PQQYFADL.js";
140
+ import "../chunk-KFHLPQBY.js";
141
141
  import "../chunk-6A7MYOUI.js";
142
142
  import "../chunk-S5SRJJQG.js";
143
- import "../chunk-XMIV374H.js";
144
- import "../chunk-BMZTYGKE.js";
143
+ import "../chunk-URV33P74.js";
144
+ import "../chunk-LM5AXKKO.js";
145
145
  import "../chunk-UGWQLQDS.js";
146
- import "../chunk-TMOYOMSW.js";
146
+ import "../chunk-UGKGZHKA.js";
147
147
  import "../chunk-D6UJEOZQ.js";
148
148
  export {
149
149
  DEFAULT_ESCALATION_TOOLS,
@@ -39,7 +39,7 @@ import {
39
39
  } from "../chunk-6PRQ45QE.js";
40
40
  import {
41
41
  useInfiniteScroll
42
- } from "../chunk-HZGKPWVA.js";
42
+ } from "../chunk-2DJSGH52.js";
43
43
  import "../chunk-NTSZGBHZ.js";
44
44
  import "../chunk-SJWIZT7B.js";
45
45
  import {
@@ -115,6 +115,7 @@ function useStudioGenerations(loaderGenerations, options = {}) {
115
115
 
116
116
  // src/studio-react/studio-composer.tsx
117
117
  import { useEffect as useEffect3, useId as useId2, useMemo as useMemo2, useRef as useRef2, useState as useState3 } from "react";
118
+ import { focusFieldWithin } from "@tangle-network/ui/utils";
118
119
  import {
119
120
  AudioLines,
120
121
  ArrowUp,
@@ -1028,7 +1029,7 @@ function StudioComposer({
1028
1029
  "section",
1029
1030
  {
1030
1031
  "data-variant": variant,
1031
- className: `studio-composer-card @container/studio-composer rounded-2xl border border-border bg-surface-container-high p-2.5 shadow-sm transition focus-within:border-primary/60 ${className ?? ""}`,
1032
+ className: `studio-composer-card @container/studio-composer rounded-2xl border bg-[var(--well,var(--color-card))] p-2.5 shadow-raised transition ${focusFieldWithin} ${className ?? ""}`,
1032
1033
  children: [
1033
1034
  /* @__PURE__ */ jsx2(
1034
1035
  "textarea",