@guuey/chat 0.16.5 → 0.16.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../src/plan.ts"],"names":[],"mappings":"AAkCA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,OAAO,KAAK,EAUV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EAIf,MAAM,YAAY,CAAC;AAuqBpB,uCAAuC;AACvC,wBAAgB,cAAc,CAC5B,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,gBAAgB,EACxB,SAAS,GAAE,mBAAwB,GAClC,cAAc,CA2VhB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,cAAc,CAAC,GACxD;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,SAAS,CAiB5D"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../src/plan.ts"],"names":[],"mappings":"AAkCA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,OAAO,KAAK,EAUV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EAIf,MAAM,YAAY,CAAC;AAuqBpB,uCAAuC;AACvC,wBAAgB,cAAc,CAC5B,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,gBAAgB,EACxB,SAAS,GAAE,mBAAwB,GAClC,cAAc,CA+VhB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,cAAc,CAAC,GACxD;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,SAAS,CAiB5D"}
package/dist/plan.js CHANGED
@@ -780,7 +780,11 @@ export function planTranscript(inputs, policy, overrides = {}) {
780
780
  label: null,
781
781
  diagnosis: mount === undefined ? null : (inputs.viewDiagnoses?.[key] ?? null),
782
782
  attribution: null,
783
- toolTitle: null,
783
+ // guuey#402: the chip titles with the producing tool's humanized
784
+ // name once the read plane persists it (the platform half); absent
785
+ // keeps the generic fallback — pre-enabler rows are indistinguishable
786
+ // by construction, never by invention.
787
+ toolTitle: card.toolName !== undefined ? policy.tool.humanizeTitle(card.toolName) : null,
784
788
  actionScope: scope,
785
789
  };
786
790
  view.label = viewLabel(view, policy);
@@ -1 +1 @@
1
- {"version":3,"file":"guuey-chat.d.ts","sourceRoot":"","sources":["../../src/react/guuey-chat.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,EASL,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGtE,OAAO,KAAK,EAAsC,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAA2B,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEvF,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,eAAe,EACf,UAAU,EAEV,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EA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CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,qDAAqD;IACrD,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC1C;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACrD;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAQD,eAAO,MAAM,SAAS,4GA0hBpB,CAAC"}
@@ -131,7 +131,13 @@ export const GuueyChat = forwardRef(function GuueyChat(props, ref) {
131
131
  if (apiBaseUrl === undefined && (endpointUrl === undefined || endpointUrl === null)) {
132
132
  return undefined;
133
133
  }
134
- return async (resourceUri) => {
134
+ // guuey#421 CLOSURE FIX (the live-capture find): this wrapper used to
135
+ // take only `resourceUri`, silently DROPPING the hints param — so the
136
+ // inner reader never learned `origin: "history"` and dialed the pod
137
+ // first on every old-conversation load (the 404 pair, warm/cold
138
+ // dependent). The #421 gate lived in agent-client all along; the
139
+ // kit-default wrapper starved it. Thread the hints through.
140
+ return async (resourceUri, hints) => {
135
141
  const threadId = threadIdRef.current;
136
142
  // Assembled per read: `createUiResourceReader` is a cheap closure, and
137
143
  // the guest secret is re-resolved each call so a rotation takes
@@ -153,7 +159,7 @@ export const GuueyChat = forwardRef(function GuueyChat(props, ref) {
153
159
  ...(getToken !== undefined ? { getAccessToken: getToken } : {}),
154
160
  guestSecret: getGuest !== undefined ? getGuest() : null,
155
161
  });
156
- return read(resourceUri);
162
+ return read(resourceUri, hints);
157
163
  };
158
164
  }, [apiBaseUrl, endpointUrl]);
159
165
  const effectiveReader = reader ?? defaultReader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guuey/chat",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
4
4
  "description": "The default end-user transcript UI for guuey agents — the headless view-model (planTranscript), calm/debug presets, the GuueyChatTheme token schema, the ChatStrings i18n seam, and (at ./react) the component kit that renders it: per-category components, <Transcript>, the live + history input assemblers, and stick-to-bottom/windowed/accessible transcript behavior; at ./native, the React Native renderer over the same view-model.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "@silverprotocol/core": "0.5.2",
40
40
  "@silverprotocol/richtext": "0.5.2",
41
41
  "zod": "^4.3.6",
42
- "@guuey/agent-client": "0.16.5",
43
- "@guuey/mcp-apps-host": "0.16.5"
42
+ "@guuey/agent-client": "0.16.7",
43
+ "@guuey/mcp-apps-host": "0.16.7"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=18",
package/src/plan.ts CHANGED
@@ -903,7 +903,11 @@ export function planTranscript(
903
903
  label: null,
904
904
  diagnosis: mount === undefined ? null : (inputs.viewDiagnoses?.[key] ?? null),
905
905
  attribution: null,
906
- toolTitle: null,
906
+ // guuey#402: the chip titles with the producing tool's humanized
907
+ // name once the read plane persists it (the platform half); absent
908
+ // keeps the generic fallback — pre-enabler rows are indistinguishable
909
+ // by construction, never by invention.
910
+ toolTitle: card.toolName !== undefined ? policy.tool.humanizeTitle(card.toolName) : null,
907
911
  actionScope: scope,
908
912
  };
909
913
  view.label = viewLabel(view, policy);
@@ -394,7 +394,13 @@ export const GuueyChat = forwardRef<GuueyChatHandle, GuueyChatProps>(function Gu
394
394
  if (apiBaseUrl === undefined && (endpointUrl === undefined || endpointUrl === null)) {
395
395
  return undefined;
396
396
  }
397
- return async (resourceUri: string) => {
397
+ // guuey#421 CLOSURE FIX (the live-capture find): this wrapper used to
398
+ // take only `resourceUri`, silently DROPPING the hints param — so the
399
+ // inner reader never learned `origin: "history"` and dialed the pod
400
+ // first on every old-conversation load (the 404 pair, warm/cold
401
+ // dependent). The #421 gate lived in agent-client all along; the
402
+ // kit-default wrapper starved it. Thread the hints through.
403
+ return async (resourceUri: string, hints?: Parameters<UiResourceReader>[1]) => {
398
404
  const threadId = threadIdRef.current;
399
405
  // Assembled per read: `createUiResourceReader` is a cheap closure, and
400
406
  // the guest secret is re-resolved each call so a rotation takes
@@ -416,7 +422,7 @@ export const GuueyChat = forwardRef<GuueyChatHandle, GuueyChatProps>(function Gu
416
422
  ...(getToken !== undefined ? { getAccessToken: getToken } : {}),
417
423
  guestSecret: getGuest !== undefined ? getGuest() : null,
418
424
  });
419
- return read(resourceUri);
425
+ return read(resourceUri, hints);
420
426
  };
421
427
  }, [apiBaseUrl, endpointUrl]);
422
428
  const effectiveReader = reader ?? defaultReader;