@arbidocs/blocks 0.5.5 → 0.5.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.
Files changed (34) hide show
  1. package/dist/{ConnectedCallDock-Q7GSQICC.cjs → ConnectedCallDock-R3SJLBDY.cjs} +3 -3
  2. package/dist/{ConnectedCallDock-Q7GSQICC.cjs.map → ConnectedCallDock-R3SJLBDY.cjs.map} +1 -1
  3. package/dist/{ConnectedCallDock-XCTBUJOT.js → ConnectedCallDock-W6MVKME2.js} +3 -3
  4. package/dist/{ConnectedCallDock-XCTBUJOT.js.map → ConnectedCallDock-W6MVKME2.js.map} +1 -1
  5. package/dist/{ConnectedCallRoom-W2AHTPYR.js → ConnectedCallRoom-C6PP45LE.js} +3 -3
  6. package/dist/{ConnectedCallRoom-W2AHTPYR.js.map → ConnectedCallRoom-C6PP45LE.js.map} +1 -1
  7. package/dist/{ConnectedCallRoom-T6PGW6VC.cjs → ConnectedCallRoom-EKC7RFYF.cjs} +3 -3
  8. package/dist/{ConnectedCallRoom-T6PGW6VC.cjs.map → ConnectedCallRoom-EKC7RFYF.cjs.map} +1 -1
  9. package/dist/calls/index.cjs +2 -2
  10. package/dist/calls/index.js +2 -2
  11. package/dist/chat/DraftingDocChip.d.ts +7 -2
  12. package/dist/chat/index.cjs +63 -63
  13. package/dist/chat/index.js +1 -1
  14. package/dist/{chunk-PU7CEHTL.cjs → chunk-OBAVNGTL.cjs} +16 -7
  15. package/dist/chunk-OBAVNGTL.cjs.map +1 -0
  16. package/dist/{chunk-3FKM4G2T.js → chunk-VDXVTQOF.js} +16 -7
  17. package/dist/chunk-VDXVTQOF.js.map +1 -0
  18. package/dist/connect/index.cjs +74 -52
  19. package/dist/connect/index.cjs.map +1 -1
  20. package/dist/connect/index.js +32 -10
  21. package/dist/connect/index.js.map +1 -1
  22. package/dist/connect/viewer.cjs +2 -2
  23. package/dist/connect/viewer.cjs.map +1 -1
  24. package/dist/connect/viewer.js +2 -2
  25. package/dist/connect/viewer.js.map +1 -1
  26. package/dist/connection/config/useDeveloperConfig.d.ts +3 -0
  27. package/dist/connection/config/useModelPicker.d.ts +12 -0
  28. package/dist/index.cjs +63 -63
  29. package/dist/index.js +1 -1
  30. package/node_modules/@arbidocs/coedit/package.json +1 -1
  31. package/package.json +5 -5
  32. package/src/docx/README.md +4 -1
  33. package/dist/chunk-3FKM4G2T.js.map +0 -1
  34. package/dist/chunk-PU7CEHTL.cjs.map +0 -1
@@ -68,7 +68,7 @@ var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
68
68
  require('../chunk-ZW6FPIFC.cjs');
69
69
  var chunk6TJQTDQI_cjs = require('../chunk-6TJQTDQI.cjs');
70
70
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
71
- var chunkPU7CEHTL_cjs = require('../chunk-PU7CEHTL.cjs');
71
+ var chunkOBAVNGTL_cjs = require('../chunk-OBAVNGTL.cjs');
72
72
  var chunkLHWKA2XI_cjs = require('../chunk-LHWKA2XI.cjs');
73
73
  var chunkZ2XZ2D4N_cjs = require('../chunk-Z2XZ2D4N.cjs');
74
74
  require('../chunk-B6MVQCXW.cjs');
@@ -26761,12 +26761,15 @@ function useModelPicker({
26761
26761
  for (const m of premiumMembers) tierMemberNames.add(m.model_name);
26762
26762
  const seen = /* @__PURE__ */ new Set();
26763
26763
  const developer = isDeveloper ? availableModels.models.filter((m) => {
26764
- if (tierMemberNames.has(m.model_name)) return false;
26764
+ if (m.connection_scope || tierMemberNames.has(m.model_name)) return false;
26765
26765
  if (!m.model_name.includes("@") || seen.has(m.model_name)) return false;
26766
26766
  seen.add(m.model_name);
26767
26767
  return true;
26768
26768
  }).sort((a, b) => a.model_name.localeCompare(b.model_name)) : [];
26769
- return { standardTier: standardTier2, premiumTier: premiumTier2, developerModels: developer };
26769
+ const custom = availableModels.models.filter(
26770
+ (m) => m.connection_scope === "personal" || m.connection_scope === "box"
26771
+ );
26772
+ return { standardTier: standardTier2, premiumTier: premiumTier2, developerModels: [...custom, ...developer] };
26770
26773
  }, [availableModels, isDeveloper, premiumModelPref]);
26771
26774
  const selectedModel = (isControlled ? controlledValue : currentConversationModel || sendConfigModel) || react.AUTO_CHAT_MODEL;
26772
26775
  const selectedModelInfo = React7.useMemo(
@@ -26861,13 +26864,13 @@ function ConnectedModelSelector({
26861
26864
  }
26862
26865
  }
26863
26866
  }
26864
- return tier ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelTierIcon, { tier }) : /* @__PURE__ */ jsxRuntime.jsx(ArbiLogo, {});
26867
+ return tier ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelTierIcon, { tier }) : /* @__PURE__ */ jsxRuntime.jsx(ArbiLogo, {});
26865
26868
  };
26866
26869
  const isSelectedStandard = !!selectedModelInfo?.tags?.includes(STANDARD_TIER_TAG);
26867
26870
  const isSelectedPremium = !!selectedModelInfo?.tags?.includes(PREMIUM_TIER_TAG);
26868
- const triggerLabel = isAuto ? "Autoselect" : isSelectedPremium ? "Premium" : selectedModelInfo?.model_name || selectedModel;
26871
+ const triggerLabel = isAuto ? "Autoselect" : isSelectedPremium ? "Premium" : selectedModelInfo?.display_name || selectedModelInfo?.model_name || selectedModel;
26869
26872
  const firstTag = selectedModelInfo?.tags?.[0];
26870
- const triggerIcon = isAuto ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelAutoIcon, {}) : isSelectedPremium ? premiumDisabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelTierIcon, { tier: "premium", isGreyed: true }) : /* @__PURE__ */ jsxRuntime.jsx(
26873
+ const triggerIcon = isAuto ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelAutoIcon, {}) : isSelectedPremium ? premiumDisabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelTierIcon, { tier: "premium", isGreyed: true }) : /* @__PURE__ */ jsxRuntime.jsx(
26871
26874
  ui.ProviderIcon,
26872
26875
  {
26873
26876
  modelName: selectedModelInfo?.model_name,
@@ -26875,16 +26878,16 @@ function ConnectedModelSelector({
26875
26878
  size: 14,
26876
26879
  className: "shrink-0"
26877
26880
  }
26878
- ) : isSelectedStandard && selectedModelInfo ? standardIcon(selectedModelInfo) : firstTag && TAG_TIER[firstTag] ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelTierIcon, { tier: TAG_TIER[firstTag] }) : selectedModelInfo ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelDot, {}) : null;
26881
+ ) : isSelectedStandard && selectedModelInfo ? standardIcon(selectedModelInfo) : firstTag && TAG_TIER[firstTag] ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelTierIcon, { tier: TAG_TIER[firstTag] }) : selectedModelInfo ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelDot, {}) : null;
26879
26882
  const tooltip = isAuto ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", children: "Automatically selects the best model" }) : pricing ? /* @__PURE__ */ jsxRuntime.jsx(
26880
- chunkPU7CEHTL_cjs.ModelPricingTip,
26883
+ chunkOBAVNGTL_cjs.ModelPricingTip,
26881
26884
  {
26882
26885
  modelName: pricing.modelName,
26883
26886
  inputPrice: pricing.inputPrice,
26884
26887
  outputPrice: pricing.outputPrice
26885
26888
  }
26886
26889
  ) : null;
26887
- const hasTiers = !!(standardTier || premiumTier);
26890
+ const hasTiers = !!(standardTier || premiumTier || developerModels.length);
26888
26891
  if (variant === "compact") {
26889
26892
  const choose = (name) => {
26890
26893
  handleModelChange(name);
@@ -26894,30 +26897,30 @@ function ConnectedModelSelector({
26894
26897
  (m) => m.model_name === premiumTier.resolvedModelName
26895
26898
  );
26896
26899
  return /* @__PURE__ */ jsxRuntime.jsxs(
26897
- chunkPU7CEHTL_cjs.ModelPickerPopover,
26900
+ chunkOBAVNGTL_cjs.ModelPickerPopover,
26898
26901
  {
26899
26902
  open: isOpen,
26900
26903
  onOpenChange: setIsOpen,
26901
26904
  tooltip,
26902
- trigger: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelPickerTrigger, { icon: triggerIcon, label: triggerLabel, className }),
26905
+ trigger: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelPickerTrigger, { icon: triggerIcon, label: triggerLabel, className }),
26903
26906
  children: [
26904
26907
  /* @__PURE__ */ jsxRuntime.jsx(
26905
- chunkPU7CEHTL_cjs.ModelOption,
26908
+ chunkOBAVNGTL_cjs.ModelOption,
26906
26909
  {
26907
- icon: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelAutoIcon, {}),
26910
+ icon: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelAutoIcon, {}),
26908
26911
  label: "Autoselect",
26909
26912
  isSelected: isAuto,
26910
26913
  onSelect: () => choose(react.AUTO_CHAT_MODEL),
26911
26914
  testId: "model-option-auto"
26912
26915
  }
26913
26916
  ),
26914
- /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelMenuDivider, {}),
26917
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelMenuDivider, {}),
26915
26918
  hasTiers ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
26916
26919
  standardTier?.members.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
26917
- chunkPU7CEHTL_cjs.ModelOption,
26920
+ chunkOBAVNGTL_cjs.ModelOption,
26918
26921
  {
26919
26922
  icon: standardIcon(m),
26920
- label: m.model_name,
26923
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name,
26921
26924
  isSelected: selectedModel === m.model_name,
26922
26925
  onSelect: () => choose(m.model_name),
26923
26926
  testId: `model-option-${m.model_name}`,
@@ -26926,9 +26929,9 @@ function ConnectedModelSelector({
26926
26929
  `standard-${m.model_name}`
26927
26930
  )),
26928
26931
  premiumTier && /* @__PURE__ */ jsxRuntime.jsx(
26929
- chunkPU7CEHTL_cjs.ModelTierOption,
26932
+ chunkOBAVNGTL_cjs.ModelTierOption,
26930
26933
  {
26931
- icon: premiumDisabled || !premiumMember ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelTierIcon, { tier: "premium", isGreyed: premiumDisabled }) : (
26934
+ icon: premiumDisabled || !premiumMember ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelTierIcon, { tier: "premium", isGreyed: premiumDisabled }) : (
26932
26935
  // The resolved Premium model's provider is the row's brand icon, so the pick
26933
26936
  // is recognisable without a model_name suffix.
26934
26937
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -26947,7 +26950,7 @@ function ConnectedModelSelector({
26947
26950
  onSelect: () => choose(premiumTier.resolvedModelName),
26948
26951
  testId: "model-option-tier-Premium",
26949
26952
  action: /* @__PURE__ */ jsxRuntime.jsx(
26950
- chunkPU7CEHTL_cjs.ModelConfigureButton,
26953
+ chunkOBAVNGTL_cjs.ModelConfigureButton,
26951
26954
  {
26952
26955
  label: "Configure Premium tier",
26953
26956
  tooltip: "Configure Premium",
@@ -26962,14 +26965,14 @@ function ConnectedModelSelector({
26962
26965
  "tier-Premium"
26963
26966
  ),
26964
26967
  developerModels.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
26965
- /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelMenuDivider, {}),
26968
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelMenuDivider, {}),
26966
26969
  developerModels.map((m) => {
26967
26970
  const tag = m.tags?.[0];
26968
26971
  return /* @__PURE__ */ jsxRuntime.jsx(
26969
- chunkPU7CEHTL_cjs.ModelOption,
26972
+ chunkOBAVNGTL_cjs.ModelOption,
26970
26973
  {
26971
- icon: tag && TAG_TIER[tag] ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelTierIcon, { tier: TAG_TIER[tag] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelDot, {}),
26972
- label: m.model_name,
26974
+ icon: tag && TAG_TIER[tag] ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelTierIcon, { tier: TAG_TIER[tag] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelDot, {}),
26975
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name,
26973
26976
  isSelected: selectedModel === m.model_name,
26974
26977
  onSelect: () => choose(m.model_name),
26975
26978
  testId: `model-option-${m.model_name}`
@@ -26978,7 +26981,7 @@ function ConnectedModelSelector({
26978
26981
  );
26979
26982
  })
26980
26983
  ] })
26981
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelMenuMessage, { children: "Loading models..." })
26984
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelMenuMessage, { children: "Loading models..." })
26982
26985
  ]
26983
26986
  }
26984
26987
  );
@@ -26990,18 +26993,24 @@ function ConnectedModelSelector({
26990
26993
  {
26991
26994
  className: ui.cn("h-8 w-[200px] text-sm", className),
26992
26995
  "data-testid": "model-selector",
26993
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelTriggerContent, { icon: triggerIcon, label: triggerLabel })
26996
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelTriggerContent, { icon: triggerIcon, label: triggerLabel })
26994
26997
  }
26995
26998
  ),
26996
26999
  /* @__PURE__ */ jsxRuntime.jsxs(ui.SelectContent, { className: "z-50", children: [
26997
- /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: react.AUTO_CHAT_MODEL, "data-testid": "model-option-auto", children: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelOptionLabel, { icon: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelAutoIcon, {}), label: "Autoselect" }) }),
27000
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: react.AUTO_CHAT_MODEL, "data-testid": "model-option-auto", children: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelOptionLabel, { icon: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelAutoIcon, {}), label: "Autoselect" }) }),
26998
27001
  hasTiers ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
26999
27002
  standardTier?.members.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
27000
27003
  ui.SelectItem,
27001
27004
  {
27002
27005
  value: m.model_name,
27003
27006
  "data-testid": `model-option-${m.model_name}`,
27004
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelOptionLabel, { icon: standardIcon(m), label: m.model_name })
27007
+ children: /* @__PURE__ */ jsxRuntime.jsx(
27008
+ chunkOBAVNGTL_cjs.ModelOptionLabel,
27009
+ {
27010
+ icon: standardIcon(m),
27011
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name
27012
+ }
27013
+ )
27005
27014
  },
27006
27015
  `standard-${m.model_name}`
27007
27016
  )),
@@ -27010,7 +27019,7 @@ function ConnectedModelSelector({
27010
27019
  {
27011
27020
  value: premiumTier.resolvedModelName,
27012
27021
  "data-testid": "model-option-tier-Premium",
27013
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelOptionLabel, { icon: /* @__PURE__ */ jsxRuntime.jsx(ArbiLogo, {}), label: "Premium" })
27022
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelOptionLabel, { icon: /* @__PURE__ */ jsxRuntime.jsx(ArbiLogo, {}), label: "Premium" })
27014
27023
  },
27015
27024
  "tier-Premium"
27016
27025
  ),
@@ -27019,7 +27028,13 @@ function ConnectedModelSelector({
27019
27028
  {
27020
27029
  value: m.model_name,
27021
27030
  "data-testid": `model-option-${m.model_name}`,
27022
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelOptionLabel, { icon: /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ModelDot, {}), label: m.model_name })
27031
+ children: /* @__PURE__ */ jsxRuntime.jsx(
27032
+ chunkOBAVNGTL_cjs.ModelOptionLabel,
27033
+ {
27034
+ icon: /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ModelDot, {}),
27035
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name
27036
+ }
27037
+ )
27023
27038
  },
27024
27039
  m.model_name
27025
27040
  ))
@@ -30627,7 +30642,7 @@ function AnswerTable({
30627
30642
  const table = wrapperRef.current?.querySelector("table");
30628
30643
  if (!table || !wrapperRef.current) return;
30629
30644
  try {
30630
- const filename = await chunkPU7CEHTL_cjs.downloadTableAsCsv(table, wrapperRef.current);
30645
+ const filename = await chunkOBAVNGTL_cjs.downloadTableAsCsv(table, wrapperRef.current);
30631
30646
  shell.notify.success(`Saved ${filename}`);
30632
30647
  } catch (error) {
30633
30648
  console.error("Failed to download table as CSV", error);
@@ -30925,9 +30940,9 @@ function useSlashItems(text2, builtinSkills = []) {
30925
30940
  const { data: listings } = react.useSkills();
30926
30941
  const skillsEnabled = react.useUserSettings().data?.show_skills ?? false;
30927
30942
  const { commands } = react.useBuiltinCommands();
30928
- const slashToken = chunkPU7CEHTL_cjs.parseSlashTokenInProgress(text2);
30943
+ const slashToken = chunkOBAVNGTL_cjs.parseSlashTokenInProgress(text2);
30929
30944
  const slashItems = React7.useMemo(
30930
- () => chunkPU7CEHTL_cjs.buildSlashItems(
30945
+ () => chunkOBAVNGTL_cjs.buildSlashItems(
30931
30946
  commands.map((c) => ({
30932
30947
  name: c.name,
30933
30948
  description: c.description,
@@ -30939,7 +30954,7 @@ function useSlashItems(text2, builtinSkills = []) {
30939
30954
  [commands, listings, skillsEnabled, builtinSkills]
30940
30955
  );
30941
30956
  const filteredItems = React7.useMemo(
30942
- () => slashToken !== null ? chunkPU7CEHTL_cjs.filterSlashItems(slashItems, slashToken) : [],
30957
+ () => slashToken !== null ? chunkOBAVNGTL_cjs.filterSlashItems(slashItems, slashToken) : [],
30943
30958
  [slashItems, slashToken]
30944
30959
  );
30945
30960
  return {
@@ -30999,7 +31014,7 @@ var ConversationComposerComponent = function ConversationComposer({
30999
31014
  const suggestedQuery = react.useArbiSessionState((s) => s.suggestedQuery);
31000
31015
  const currentConversationId = react.useArbiSessionState((s) => s.conversationId);
31001
31016
  const workspaceId = react.useArbiSessionState((s) => s.workspaceId);
31002
- const longPaste = chunkPU7CEHTL_cjs.useLongPaste(newMessage);
31017
+ const longPaste = chunkOBAVNGTL_cjs.useLongPaste(newMessage);
31003
31018
  const textareaRef = React7.useRef(null);
31004
31019
  const formRef = React7.useRef(null);
31005
31020
  React7.useLayoutEffect(() => {
@@ -31056,7 +31071,7 @@ var ConversationComposerComponent = function ConversationComposer({
31056
31071
  const { data: conversations } = react.useConversations(workspaceId ?? void 0);
31057
31072
  const isThread = conversations?.find((conversation) => conversation.external_id === currentConversationId)?.is_shared ?? false;
31058
31073
  const prefillsAssistant = isThread && !isBranching;
31059
- const recipient = chunkPU7CEHTL_cjs.useRecipientDraft({
31074
+ const recipient = chunkOBAVNGTL_cjs.useRecipientDraft({
31060
31075
  value: newMessage,
31061
31076
  onValueChange: setNewMessage,
31062
31077
  contextKey: currentConversationId,
@@ -31102,7 +31117,7 @@ var ConversationComposerComponent = function ConversationComposer({
31102
31117
  notice: isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.Composer.Notice, { onCancel: onCancelBranching }) : void 0,
31103
31118
  children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLHWKA2XI_cjs.Composer.Frame, { children: [
31104
31119
  /* @__PURE__ */ jsxRuntime.jsx(
31105
- chunkPU7CEHTL_cjs.SlashMenu,
31120
+ chunkOBAVNGTL_cjs.SlashMenu,
31106
31121
  {
31107
31122
  open: isSlashMenuOpen,
31108
31123
  items: filteredItems,
@@ -31211,7 +31226,7 @@ var ConversationComposerComponent = function ConversationComposer({
31211
31226
  ] })
31212
31227
  }
31213
31228
  ),
31214
- /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ContextUsageBar, { contextUsage, draftLength: newMessage.length })
31229
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ContextUsageBar, { contextUsage, draftLength: newMessage.length })
31215
31230
  ] })
31216
31231
  }
31217
31232
  ) });
@@ -31392,7 +31407,7 @@ var MessageComponent = ({
31392
31407
  const linkedArtifact = React7.useMemo(() => {
31393
31408
  if (!message.external_id) return void 0;
31394
31409
  if (streaming) return streaming;
31395
- const doc = chunkPU7CEHTL_cjs.findMessageDocument(workspaceDocs, message.external_id);
31410
+ const doc = chunkOBAVNGTL_cjs.findMessageDocument(workspaceDocs, message.external_id);
31396
31411
  if (!doc) return void 0;
31397
31412
  const kind = artifacts.artifactKindFromFileName(doc.file_name);
31398
31413
  return {
@@ -31581,7 +31596,7 @@ var MessageComponent = ({
31581
31596
  precedingUserMessage = parentMessage.content;
31582
31597
  }
31583
31598
  }
31584
- await chunkPU7CEHTL_cjs.copyMessageToClipboard({
31599
+ await chunkOBAVNGTL_cjs.copyMessageToClipboard({
31585
31600
  messageRef,
31586
31601
  responseContent,
31587
31602
  messageContent: message.content,
@@ -32094,7 +32109,7 @@ var ConnectedBranchControls = ({
32094
32109
  onPreview
32095
32110
  }) => {
32096
32111
  return /* @__PURE__ */ jsxRuntime.jsx(chunkTM2D4XT4_cjs.ErrorBoundary, { testId: "branch-controls-error-boundary", children: /* @__PURE__ */ jsxRuntime.jsx(
32097
- chunkPU7CEHTL_cjs.BranchControls,
32112
+ chunkOBAVNGTL_cjs.BranchControls,
32098
32113
  {
32099
32114
  index: branchPoint.currentBranchIndex,
32100
32115
  count: branchPoint.branches.length,
@@ -32155,7 +32170,7 @@ function ThreadsPreviewDialog({
32155
32170
  }
32156
32171
  ),
32157
32172
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 min-h-0", style: { height: "70vh" }, children: /* @__PURE__ */ jsxRuntime.jsx(
32158
- chunkPU7CEHTL_cjs.ThreadVisualizer,
32173
+ chunkOBAVNGTL_cjs.ThreadVisualizer,
32159
32174
  {
32160
32175
  threads: threads || [],
32161
32176
  switchToThread: (threadId) => {
@@ -32241,7 +32256,7 @@ function ConnectedMessageList({ messages }) {
32241
32256
  const session = react.useArbiSessionStore();
32242
32257
  const [previewOpen, setPreviewOpen] = React7.useState(false);
32243
32258
  const participantTints = React7.useMemo(
32244
- () => chunkPU7CEHTL_cjs.getParticipantTints(
32259
+ () => chunkOBAVNGTL_cjs.getParticipantTints(
32245
32260
  messages.map(
32246
32261
  (message) => message.role === "assistant" ? "" : message.created_by_ext_id ?? ""
32247
32262
  )
@@ -32350,7 +32365,7 @@ function ConnectedMessageList({ messages }) {
32350
32365
  const target = document.querySelector(`[data-message-id="${deepLinkMessageId}"]`);
32351
32366
  if (!target) return;
32352
32367
  target.scrollIntoView({ behavior: "smooth", block: "center" });
32353
- chunkPU7CEHTL_cjs.flashMessage(target);
32368
+ chunkOBAVNGTL_cjs.flashMessage(target);
32354
32369
  session.setDeepLinkMessageId(null);
32355
32370
  }, [deepLinkMessageId, virtualItems, session]);
32356
32371
  const status = /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageList.Status, { message: statusMessage });
@@ -32883,7 +32898,7 @@ function useThreadScroll({
32883
32898
  followerRef.current?.stop();
32884
32899
  userHasScrolledRef.current = true;
32885
32900
  messageEl.scrollIntoView({ behavior: "smooth", block: "center" });
32886
- chunkPU7CEHTL_cjs.flashMessage(messageEl);
32901
+ chunkOBAVNGTL_cjs.flashMessage(messageEl);
32887
32902
  deepLinkPlacedRef.current = openKeyRef.current;
32888
32903
  holdDeepLinkTarget(deepLinkMessageId);
32889
32904
  }
@@ -33306,8 +33321,8 @@ function ConnectedConversation({
33306
33321
  });
33307
33322
  react.useAutoSendDraft(handleComposerSend, !isLoadingWorkspaceDocuments);
33308
33323
  const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
33309
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkPU7CEHTL_cjs.ConversationBody, { children: [
33310
- /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkZOUVLJLV_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
33324
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkOBAVNGTL_cjs.ConversationBody, { children: [
33325
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkZOUVLJLV_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
33311
33326
  meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
33312
33327
  chunkZPOUFEZI_cjs.ConversationFilter,
33313
33328
  {
@@ -33376,7 +33391,7 @@ function ConnectedConversation({
33376
33391
  }
33377
33392
  ) : null,
33378
33393
  pendingAnswer && /* @__PURE__ */ jsxRuntime.jsx(
33379
- chunkPU7CEHTL_cjs.PendingAnswerBar,
33394
+ chunkOBAVNGTL_cjs.PendingAnswerBar,
33380
33395
  {
33381
33396
  question: pendingAnswer.request.question,
33382
33397
  options: pendingAnswer.request.options,
@@ -33418,16 +33433,23 @@ function ConnectedConversation({
33418
33433
  onBrowseSkills: browseSkills,
33419
33434
  contextUsage: latestContextUsage,
33420
33435
  isConversationEmpty: messageHistory.length === 0 && !isBranching,
33421
- leftButton: paMode ? /* @__PURE__ */ jsxRuntime.jsx(chunkPU7CEHTL_cjs.PaModeBadge, { icon: /* @__PURE__ */ jsxRuntime.jsx(react.ArbiBotHeadIcon, { size: 16, className: "shrink-0" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(chunkPU7CEHTL_cjs.ComposerAccessories, { children: [
33436
+ leftButton: paMode ? /* @__PURE__ */ jsxRuntime.jsx(chunkOBAVNGTL_cjs.PaModeBadge, { icon: /* @__PURE__ */ jsxRuntime.jsx(react.ArbiBotHeadIcon, { size: 16, className: "shrink-0" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(chunkOBAVNGTL_cjs.ComposerAccessories, { children: [
33422
33437
  composerAccessory,
33423
- draftingDocument ? /* @__PURE__ */ jsxRuntime.jsx(
33424
- chunkPU7CEHTL_cjs.DraftingDocChip,
33438
+ threadDocument.unavailable ? /* @__PURE__ */ jsxRuntime.jsx(
33439
+ chunkOBAVNGTL_cjs.DraftingDocChip,
33440
+ {
33441
+ state: "unavailable",
33442
+ title: "",
33443
+ onDetach: () => threadDocument.bind(null)
33444
+ }
33445
+ ) : draftingDocument ? /* @__PURE__ */ jsxRuntime.jsx(
33446
+ chunkOBAVNGTL_cjs.DraftingDocChip,
33425
33447
  {
33426
33448
  title: ui.getDocumentTitle(draftingDocument),
33427
33449
  onDetach: threadDocument.documentId ? () => threadDocument.bind(null) : void 0
33428
33450
  }
33429
33451
  ) : attachableDocument && /* @__PURE__ */ jsxRuntime.jsx(
33430
- chunkPU7CEHTL_cjs.DraftingDocChip,
33452
+ chunkOBAVNGTL_cjs.DraftingDocChip,
33431
33453
  {
33432
33454
  state: "attach",
33433
33455
  title: ui.getDocumentTitle(attachableDocument),
@@ -33435,7 +33457,7 @@ function ConnectedConversation({
33435
33457
  }
33436
33458
  )
33437
33459
  ] }),
33438
- rightButton: /* @__PURE__ */ jsxRuntime.jsxs(chunkPU7CEHTL_cjs.ComposerTools, { children: [
33460
+ rightButton: /* @__PURE__ */ jsxRuntime.jsxs(chunkOBAVNGTL_cjs.ComposerTools, { children: [
33439
33461
  composerTools,
33440
33462
  /* @__PURE__ */ jsxRuntime.jsx(MicButton, { inputRef }),
33441
33463
  /* @__PURE__ */ jsxRuntime.jsx(