@dxos/plugin-observability 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51

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 (116) hide show
  1. package/dist/lib/browser/{ObservabilitySettings-EM7ABGCA.mjs → ObservabilitySettings-H6UKYDDT.mjs} +9 -13
  2. package/dist/lib/browser/ObservabilitySettings-H6UKYDDT.mjs.map +7 -0
  3. package/dist/lib/browser/{capture-user-feedback-H4KPG7PC.mjs → capture-user-feedback-3BXDUCZM.mjs} +4 -5
  4. package/dist/lib/browser/capture-user-feedback-3BXDUCZM.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-VZR3FNBD.mjs → chunk-DLBA63VM.mjs} +3 -5
  6. package/dist/lib/browser/chunk-DLBA63VM.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-6WX6ST5B.mjs → chunk-VQC6DG6V.mjs} +6 -2
  8. package/dist/lib/browser/chunk-VQC6DG6V.mjs.map +7 -0
  9. package/dist/lib/browser/cli/index.mjs +1 -1
  10. package/dist/lib/browser/cli/index.mjs.map +3 -3
  11. package/dist/lib/browser/index.mjs +21 -10
  12. package/dist/lib/browser/index.mjs.map +3 -3
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/operations/index.mjs +3 -4
  15. package/dist/lib/browser/operations/index.mjs.map +3 -3
  16. package/dist/lib/browser/{send-event-BICCRJ2W.mjs → send-event-F3D32CJX.mjs} +4 -5
  17. package/dist/lib/browser/send-event-F3D32CJX.mjs.map +7 -0
  18. package/dist/lib/browser/{toggle-NV2X62VV.mjs → toggle-PPNDFGWJ.mjs} +4 -5
  19. package/dist/lib/browser/toggle-PPNDFGWJ.mjs.map +7 -0
  20. package/dist/lib/browser/{chunk-K33HLC3Z.mjs → translations.mjs} +4 -4
  21. package/dist/lib/browser/translations.mjs.map +7 -0
  22. package/dist/lib/browser/types/index.mjs +1 -1
  23. package/dist/lib/node-esm/{ObservabilitySettings-VP4A362Z.mjs → ObservabilitySettings-HXTWPHHR.mjs} +9 -13
  24. package/dist/lib/node-esm/ObservabilitySettings-HXTWPHHR.mjs.map +7 -0
  25. package/dist/lib/node-esm/{capture-user-feedback-DTL3DUXB.mjs → capture-user-feedback-LUPWJWGK.mjs} +4 -5
  26. package/dist/lib/{browser/capture-user-feedback-H4KPG7PC.mjs.map → node-esm/capture-user-feedback-LUPWJWGK.mjs.map} +1 -1
  27. package/dist/lib/node-esm/{chunk-FZRJBWSE.mjs → chunk-3B7HMSKM.mjs} +3 -5
  28. package/dist/lib/node-esm/chunk-3B7HMSKM.mjs.map +7 -0
  29. package/dist/lib/node-esm/{chunk-QZKJ2TUU.mjs → chunk-NCIKZY6L.mjs} +6 -2
  30. package/dist/lib/node-esm/chunk-NCIKZY6L.mjs.map +7 -0
  31. package/dist/lib/node-esm/cli/index.mjs +1 -1
  32. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  33. package/dist/lib/node-esm/index.mjs +21 -10
  34. package/dist/lib/node-esm/index.mjs.map +3 -3
  35. package/dist/lib/node-esm/meta.json +1 -1
  36. package/dist/lib/node-esm/operations/index.mjs +3 -4
  37. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  38. package/dist/lib/node-esm/{send-event-IWZKYZBI.mjs → send-event-OKTEXC7M.mjs} +4 -5
  39. package/dist/lib/{browser/send-event-BICCRJ2W.mjs.map → node-esm/send-event-OKTEXC7M.mjs.map} +1 -1
  40. package/dist/lib/node-esm/{toggle-NJWUAPD4.mjs → toggle-YS2KFMXS.mjs} +4 -5
  41. package/dist/lib/node-esm/toggle-YS2KFMXS.mjs.map +7 -0
  42. package/dist/lib/node-esm/{chunk-JGHMP7UL.mjs → translations.mjs} +3 -4
  43. package/dist/lib/node-esm/translations.mjs.map +7 -0
  44. package/dist/lib/node-esm/types/index.mjs +1 -1
  45. package/dist/types/src/ObservabilityPlugin.d.ts +5 -0
  46. package/dist/types/src/ObservabilityPlugin.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/client-ready.d.ts.map +1 -1
  49. package/dist/types/src/capabilities/index.d.ts +1 -1
  50. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  51. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  52. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  53. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  54. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  56. package/dist/types/src/components/FeedbackForm/FeedbackForm.d.ts +5 -2
  57. package/dist/types/src/components/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  58. package/dist/types/src/components/FeedbackForm/FeedbackForm.stories.d.ts +19 -19
  59. package/dist/types/src/components/FeedbackForm/FeedbackForm.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.d.ts +1 -1
  61. package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.d.ts.map +1 -1
  62. package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.stories.d.ts +17 -18
  63. package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.stories.d.ts.map +1 -1
  64. package/dist/types/src/containers/HelpContainer/HelpContainer.d.ts.map +1 -1
  65. package/dist/types/src/index.d.ts +0 -1
  66. package/dist/types/src/index.d.ts.map +1 -1
  67. package/dist/types/src/operations/capture-user-feedback.d.ts +1 -1
  68. package/dist/types/src/operations/capture-user-feedback.d.ts.map +1 -1
  69. package/dist/types/src/operations/definitions.d.ts +1 -1
  70. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  71. package/dist/types/src/operations/index.d.ts +1 -1
  72. package/dist/types/src/operations/index.d.ts.map +1 -1
  73. package/dist/types/src/operations/send-event.d.ts +1 -1
  74. package/dist/types/src/operations/send-event.d.ts.map +1 -1
  75. package/dist/types/src/operations/toggle.d.ts +1 -1
  76. package/dist/types/src/operations/toggle.d.ts.map +1 -1
  77. package/dist/types/src/translations.d.ts +17 -19
  78. package/dist/types/src/translations.d.ts.map +1 -1
  79. package/dist/types/src/types/Settings.d.ts +1 -1
  80. package/dist/types/src/types/Settings.d.ts.map +1 -1
  81. package/dist/types/src/types/capabilities.d.ts +6 -0
  82. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  83. package/dist/types/src/types/events.d.ts.map +1 -1
  84. package/dist/types/tsconfig.tsbuildinfo +1 -1
  85. package/package.json +32 -25
  86. package/src/ObservabilityPlugin.ts +14 -2
  87. package/src/capabilities/client-ready.ts +23 -1
  88. package/src/capabilities/index.ts +1 -1
  89. package/src/capabilities/operation-handler.ts +1 -1
  90. package/src/cli/plugin.ts +1 -1
  91. package/src/components/FeedbackForm/FeedbackForm.stories.tsx +13 -1
  92. package/src/components/FeedbackForm/FeedbackForm.tsx +19 -3
  93. package/src/components/ObservabilitySettings/ObservabilitySettings.stories.tsx +2 -1
  94. package/src/components/ObservabilitySettings/ObservabilitySettings.tsx +8 -12
  95. package/src/containers/HelpContainer/HelpContainer.tsx +3 -2
  96. package/src/index.ts +0 -1
  97. package/src/operations/capture-user-feedback.ts +1 -1
  98. package/src/operations/definitions.ts +2 -3
  99. package/src/operations/index.ts +1 -1
  100. package/src/operations/send-event.ts +1 -1
  101. package/src/operations/toggle.ts +1 -1
  102. package/src/translations.ts +1 -2
  103. package/src/types/Settings.ts +4 -1
  104. package/src/types/capabilities.ts +7 -0
  105. package/dist/lib/browser/ObservabilitySettings-EM7ABGCA.mjs.map +0 -7
  106. package/dist/lib/browser/chunk-6WX6ST5B.mjs.map +0 -7
  107. package/dist/lib/browser/chunk-K33HLC3Z.mjs.map +0 -7
  108. package/dist/lib/browser/chunk-VZR3FNBD.mjs.map +0 -7
  109. package/dist/lib/browser/toggle-NV2X62VV.mjs.map +0 -7
  110. package/dist/lib/node-esm/ObservabilitySettings-VP4A362Z.mjs.map +0 -7
  111. package/dist/lib/node-esm/capture-user-feedback-DTL3DUXB.mjs.map +0 -7
  112. package/dist/lib/node-esm/chunk-FZRJBWSE.mjs.map +0 -7
  113. package/dist/lib/node-esm/chunk-JGHMP7UL.mjs.map +0 -7
  114. package/dist/lib/node-esm/chunk-QZKJ2TUU.mjs.map +0 -7
  115. package/dist/lib/node-esm/send-event-IWZKYZBI.mjs.map +0 -7
  116. package/dist/lib/node-esm/toggle-NJWUAPD4.mjs.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/send-event.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/operation';\n\nimport { ObservabilityCapabilities } from '../types';\nimport { SendEvent } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SendEvent> = SendEvent.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n // NOTE: This is to ensure that events fired before observability is ready are still sent.\n const observability = yield* Capability.waitFor(ObservabilityCapabilities.Observability);\n const properties = input.properties ?? {};\n observability.events.captureEvent(input.name, properties);\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { ObservabilityCapabilities } from '../types';\nimport { SendEvent } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SendEvent> = SendEvent.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n // NOTE: This is to ensure that events fired before observability is ready are still sent.\n const observability = yield* Capability.waitFor(ObservabilityCapabilities.Observability);\n const properties = input.properties ?? {};\n observability.events.captureEvent(input.name, properties);\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAK1B,IAAMC,UAAmDC,UAAUC,KACjEC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAEhC,QAAMC,gBAAgB,OAAOC,WAAWC,QAAQC,0BAA0BC,aAAa;AACvF,QAAMC,aAAaN,MAAMM,cAAc,CAAC;AACxCL,gBAAcM,OAAOC,aAAaR,MAAMS,MAAMH,UAAAA;AAChD,CAAA,CAAA,CAAA;AAIJ,IAAA,qBAAeZ;",
6
6
  "names": ["Effect", "Capability", "Operation", "handler", "SendEvent", "pipe", "Operation", "withHandler", "fnUntraced", "input", "observability", "Capability", "waitFor", "ObservabilityCapabilities", "Observability", "properties", "events", "captureEvent", "name"]
7
7
  }
@@ -1,19 +1,18 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  ObservabilityCapabilities
4
- } from "./chunk-QZKJ2TUU.mjs";
4
+ } from "./chunk-NCIKZY6L.mjs";
5
5
  import {
6
6
  Toggle
7
- } from "./chunk-FZRJBWSE.mjs";
8
- import "./chunk-JGHMP7UL.mjs";
7
+ } from "./chunk-3B7HMSKM.mjs";
9
8
  import "./chunk-HSLMI22Q.mjs";
10
9
 
11
10
  // src/operations/toggle.ts
12
11
  import * as Effect from "effect/Effect";
13
12
  import { Capabilities, Capability } from "@dxos/app-framework";
14
13
  import { AppCapabilities } from "@dxos/app-toolkit";
14
+ import { Operation } from "@dxos/compute";
15
15
  import { Observability } from "@dxos/observability";
16
- import { Operation } from "@dxos/operation";
17
16
  import { meta } from "#meta";
18
17
  var handler = Toggle.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
19
18
  const namespace = yield* Capability.get(ObservabilityCapabilities.Namespace);
@@ -46,4 +45,4 @@ var toggle_default = handler;
46
45
  export {
47
46
  toggle_default as default
48
47
  };
49
- //# sourceMappingURL=toggle-NJWUAPD4.mjs.map
48
+ //# sourceMappingURL=toggle-YS2KFMXS.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/toggle.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { Observability } from '@dxos/observability';\n\nimport { meta } from '#meta';\n\nimport { ObservabilityCapabilities, type Settings } from '../types';\nimport { Toggle } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Toggle> = Toggle.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const namespace = yield* Capability.get(ObservabilityCapabilities.Namespace);\n const observability = yield* Capability.get(ObservabilityCapabilities.Observability);\n const capabilities = yield* Capability.Service;\n const registry = capabilities.get(Capabilities.AtomRegistry);\n const allSettings = capabilities.getAll(AppCapabilities.Settings);\n const settingsObj = allSettings.find((s: AppCapabilities.Settings) => s.prefix === meta.id);\n if (!settingsObj) {\n return false;\n }\n const settings = registry.get(settingsObj.atom) as Settings.Settings;\n const newEnabled = input.state ?? !settings.enabled;\n registry.set(settingsObj.atom, { ...settings, enabled: newEnabled });\n observability.events.captureEvent('observability.toggle', {\n enabled: newEnabled,\n });\n\n if (newEnabled) {\n yield* observability.enable();\n } else {\n yield* observability.disable();\n }\n yield* Effect.promise(() => Observability.storeObservabilityDisabled(namespace, !newEnabled));\n return newEnabled;\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,qBAAqB;AAE9B,SAASC,YAAY;AAKrB,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,YAAY,OAAOC,WAAWC,IAAIC,0BAA0BC,SAAS;AAC3E,QAAMC,gBAAgB,OAAOJ,WAAWC,IAAIC,0BAA0BG,aAAa;AACnF,QAAMC,eAAe,OAAON,WAAWO;AACvC,QAAMC,WAAWF,aAAaL,IAAIQ,aAAaC,YAAY;AAC3D,QAAMC,cAAcL,aAAaM,OAAOC,gBAAgBC,QAAQ;AAChE,QAAMC,cAAcJ,YAAYK,KAAK,CAACC,MAAgCA,EAAEC,WAAWC,KAAKC,EAAE;AAC1F,MAAI,CAACL,aAAa;AAChB,WAAO;EACT;AACA,QAAMM,WAAWb,SAASP,IAAIc,YAAYO,IAAI;AAC9C,QAAMC,aAAazB,MAAM0B,SAAS,CAACH,SAASI;AAC5CjB,WAASkB,IAAIX,YAAYO,MAAM;IAAE,GAAGD;IAAUI,SAASF;EAAW,CAAA;AAClEnB,gBAAcuB,OAAOC,aAAa,wBAAwB;IACxDH,SAASF;EACX,CAAA;AAEA,MAAIA,YAAY;AACd,WAAOnB,cAAcyB,OAAM;EAC7B,OAAO;AACL,WAAOzB,cAAc0B,QAAO;EAC9B;AACA,SAAcC,eAAQ,MAAM1B,cAAc2B,2BAA2BjC,WAAW,CAACwB,UAAAA,CAAAA;AACjF,SAAOA;AACT,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAe/B;",
6
+ "names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "Operation", "Observability", "meta", "handler", "Toggle", "pipe", "Operation", "withHandler", "fnUntraced", "input", "namespace", "Capability", "get", "ObservabilityCapabilities", "Namespace", "observability", "Observability", "capabilities", "Service", "registry", "Capabilities", "AtomRegistry", "allSettings", "getAll", "AppCapabilities", "Settings", "settingsObj", "find", "s", "prefix", "meta", "id", "settings", "atom", "newEnabled", "state", "enabled", "set", "events", "captureEvent", "enable", "disable", "promise", "storeObservabilityDisabled"]
7
+ }
@@ -1,4 +1,5 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import "./chunk-HSLMI22Q.mjs";
2
3
 
3
4
  // src/translations.ts
4
5
  import { meta } from "#meta";
@@ -13,8 +14,6 @@ var translations = [
13
14
  "observability-toast-action.label": "Settings",
14
15
  "observability-toast-action.alt": "Open settings to learn more or to disable.",
15
16
  "observability-toast-close.label": "Okay",
16
- "observability-enabled.label": "Enable telemetry",
17
- "observability-enabled.description": "Send anonymous usage and performance data to help improve the product.",
18
17
  // TODO: Add link about telemetry privacy. Make it clearer that user data is not collected.
19
18
  "observability.description": "When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.",
20
19
  "help.label": "Feedback & Support",
@@ -22,14 +21,14 @@ var translations = [
22
21
  "feedback-textarea.placeholder": "Please enter your feedback, technical issue, or feature request.",
23
22
  "include-debug-logs.label": "Include debug logs",
24
23
  "send-feedback.label": "Send Feedback",
24
+ "download-logs.label": "Download logs",
25
25
  "feedback-toast.label": "Thank you for your feedback!",
26
26
  "feedback-toast.description": "We will review your feedback and get back to you as soon as possible."
27
27
  }
28
28
  }
29
29
  }
30
30
  ];
31
-
32
31
  export {
33
32
  translations
34
33
  };
35
- //# sourceMappingURL=chunk-JGHMP7UL.mjs.map
34
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Telemetry',\n 'settings.title': 'Telemetry settings',\n 'observability-toast.label': 'Privacy Notice',\n 'observability-toast.description':\n 'Composer collects usage and performance metrics to improve the product. No user data is collected.',\n 'observability-toast-action.label': 'Settings',\n 'observability-toast-action.alt': 'Open settings to learn more or to disable.',\n 'observability-toast-close.label': 'Okay',\n // TODO: Add link about telemetry privacy. Make it clearer that user data is not collected.\n 'observability.description':\n 'When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.',\n 'help.label': 'Feedback & Support',\n 'feedback-textarea.label': 'Feedback',\n 'feedback-textarea.placeholder': 'Please enter your feedback, technical issue, or feature request.',\n 'include-debug-logs.label': 'Include debug logs',\n 'send-feedback.label': 'Send Feedback',\n 'download-logs.label': 'Download logs',\n 'feedback-toast.label': 'Thank you for your feedback!',\n 'feedback-toast.description': 'We will review your feedback and get back to you as soon as possible.',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,6BAA6B;QAC7B,mCACE;QACF,oCAAoC;QACpC,kCAAkC;QAClC,mCAAmC;;QAEnC,6BACE;QACF,cAAc;QACd,2BAA2B;QAC3B,iCAAiC;QACjC,4BAA4B;QAC5B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;QACxB,8BAA8B;MAChC;IACF;EACF;;",
6
+ "names": ["meta", "translations", "id"]
7
+ }
@@ -5,7 +5,7 @@ import {
5
5
  ObservabilityCapabilities,
6
6
  ObservabilityEvents,
7
7
  Settings_exports
8
- } from "../chunk-QZKJ2TUU.mjs";
8
+ } from "../chunk-NCIKZY6L.mjs";
9
9
  import "../chunk-HSLMI22Q.mjs";
10
10
  export {
11
11
  ClientCapability,
@@ -3,6 +3,11 @@ import { type Observability } from '@dxos/observability';
3
3
  export type ObservabilityPluginOptions = {
4
4
  namespace: string;
5
5
  observability: () => Promise<Observability.Observability>;
6
+ /**
7
+ * Optional callback invoked by the help/feedback UI to download captured logs.
8
+ * When omitted the "Download logs" action is hidden.
9
+ */
10
+ downloadLogs?: () => void | Promise<void>;
6
11
  };
7
12
  export declare const ObservabilityPlugin: Plugin.PluginFactory<ObservabilityPluginOptions>;
8
13
  //# sourceMappingURL=ObservabilityPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObservabilityPlugin.d.ts","sourceRoot":"","sources":["../../../src/ObservabilityPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAgBzD,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,kDA2C/B,CAAC"}
1
+ {"version":3,"file":"ObservabilityPlugin.d.ts","sourceRoot":"","sources":["../../../src/ObservabilityPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAezD,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC1D;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,kDAmD/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;;AAK/D,wBAsBE"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"client-ready.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/client-ready.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,KAAK,aAAa,EAAyB,MAAM,qBAAqB,CAAC;AAMhF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC,aAAa,CAAC;CAC5C,CAAC;;AAEF,wBAiEE"}
1
+ {"version":3,"file":"client-ready.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/client-ready.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,KAAK,aAAa,EAAyB,MAAM,qBAAqB,CAAC;AAMhF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC,aAAa,CAAC;CAC5C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- import { OperationHandlerSet } from '@dxos/operation';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
3
  import type { ClientReadyOptions } from './client-ready';
4
4
  export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
5
5
  export declare const ClientReady: Capability.LazyCapability<ClientReadyOptions, Capability.ModuleReturn, Error>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,WAAW,+EAAqF,CAAC;AAC9G,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,qBAAqB,uTAAuE,CAAC;AAC1G,eAAO,MAAM,kBAAkB;;;;;;;;YAAiE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,WAAW,+EAAqF,CAAC;AAC9G,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,qBAAqB,uTAAuE,CAAC;AAC1G,eAAO,MAAM,kBAAkB;;;;;;;;YAAiE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import type { OperationHandlerSet } from '@dxos/operation';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
4
  declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=operation-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAU/D,wBAuBE"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,EAA6B,QAAQ,EAAE,MAAM,QAAQ,CAAC;;AAE7D,wBAmBE"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,EAA6B,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;eAQJ,MAAM;;;;;;;;AADjE,wBAeE"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;eAQJ,MAAM"}
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { type FormRootProps, type FormSubmitProps } from '@dxos/react-ui-form';
3
3
  import { UserFeedback } from '#operations';
4
- export type FeedbackFormProps = Pick<FormRootProps<UserFeedback>, 'onSave'> & Pick<FormSubmitProps, 'disabled'>;
5
- export declare const FeedbackForm: ({ onSave, disabled }: FeedbackFormProps) => React.JSX.Element;
4
+ export type FeedbackFormProps = Pick<FormRootProps<UserFeedback>, 'onSave'> & Pick<FormSubmitProps, 'disabled'> & {
5
+ /** Optional handler — when supplied a "Download logs" button is rendered below the submit action. */
6
+ onDownloadLogs?: () => void | Promise<void>;
7
+ };
8
+ export declare const FeedbackForm: ({ onSave, disabled, onDownloadLogs }: FeedbackFormProps) => React.JSX.Element;
6
9
  //# sourceMappingURL=FeedbackForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAQ,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAOhH,eAAO,MAAM,YAAY,GAAI,sBAAsB,iBAAiB,sBAanE,CAAC"}
1
+ {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAQ,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,GACzE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IAClC,qGAAqG;IACrG,cAAc,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C,CAAC;AAOJ,eAAO,MAAM,YAAY,yCAA0C,iBAAiB,sBAyBnF,CAAC"}
@@ -1,30 +1,29 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ onSave, disabled }: import("./FeedbackForm").FeedbackFormProps) => import("react").JSX.Element;
4
+ component: ({ onSave, disabled, onDownloadLogs }: import("./FeedbackForm").FeedbackFormProps) => import("react").JSX.Element;
5
5
  decorators: import("@storybook/react").Decorator[];
6
6
  parameters: {
7
7
  layout: string;
8
8
  translations: [{
9
9
  readonly 'en-US': {
10
- readonly [meta.id]: {
11
- readonly 'plugin.name': "Telemetry";
12
- readonly 'settings.title': "Telemetry settings";
13
- readonly 'observability-toast.label': "Privacy Notice";
14
- readonly 'observability-toast.description': "Composer collects usage and performance metrics to improve the product. No user data is collected.";
15
- readonly 'observability-toast-action.label': "Settings";
16
- readonly 'observability-toast-action.alt': "Open settings to learn more or to disable.";
17
- readonly 'observability-toast-close.label': "Okay";
18
- readonly 'observability-enabled.label': "Enable telemetry";
19
- readonly 'observability-enabled.description': "Send anonymous usage and performance data to help improve the product.";
20
- readonly 'observability.description': "When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.";
21
- readonly 'help.label': "Feedback & Support";
22
- readonly 'feedback-textarea.label': "Feedback";
23
- readonly 'feedback-textarea.placeholder': "Please enter your feedback, technical issue, or feature request.";
24
- readonly 'include-debug-logs.label': "Include debug logs";
25
- readonly 'send-feedback.label': "Send Feedback";
26
- readonly 'feedback-toast.label': "Thank you for your feedback!";
27
- readonly 'feedback-toast.description': "We will review your feedback and get back to you as soon as possible.";
10
+ readonly [x: string]: {
11
+ readonly 'plugin.name': 'Telemetry';
12
+ readonly 'settings.title': 'Telemetry settings';
13
+ readonly 'observability-toast.label': 'Privacy Notice';
14
+ readonly 'observability-toast.description': 'Composer collects usage and performance metrics to improve the product. No user data is collected.';
15
+ readonly 'observability-toast-action.label': 'Settings';
16
+ readonly 'observability-toast-action.alt': 'Open settings to learn more or to disable.';
17
+ readonly 'observability-toast-close.label': 'Okay';
18
+ readonly 'observability.description': 'When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.';
19
+ readonly 'help.label': 'Feedback & Support';
20
+ readonly 'feedback-textarea.label': 'Feedback';
21
+ readonly 'feedback-textarea.placeholder': 'Please enter your feedback, technical issue, or feature request.';
22
+ readonly 'include-debug-logs.label': 'Include debug logs';
23
+ readonly 'send-feedback.label': 'Send Feedback';
24
+ readonly 'download-logs.label': 'Download logs';
25
+ readonly 'feedback-toast.label': 'Thank you for your feedback!';
26
+ readonly 'feedback-toast.description': 'We will review your feedback and get back to you as soon as possible.';
28
27
  };
29
28
  };
30
29
  }];
@@ -33,4 +32,5 @@ declare const meta: {
33
32
  export default meta;
34
33
  type Story = StoryObj<typeof meta>;
35
34
  export declare const Default: Story;
35
+ export declare const WithDownloadLogs: Story;
36
36
  //# sourceMappingURL=FeedbackForm.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedbackForm/FeedbackForm.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,QAAA,MAAM,IAAI;;;;;;;;yBALmD,CAEzD,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;CAWyB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
1
+ {"version":3,"file":"FeedbackForm.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedbackForm/FeedbackForm.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAS9B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type AppSurface } from '@dxos/app-toolkit/ui';
3
- import { type Settings } from '#types';
3
+ import { Settings } from '#types';
4
4
  export type ObservabilitySettingsProps = AppSurface.SettingsArticleProps<Settings.Settings>;
5
5
  export declare const ObservabilitySettings: ({ settings, onSettingsChange }: ObservabilitySettingsProps) => React.JSX.Element;
6
6
  //# sourceMappingURL=ObservabilitySettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObservabilitySettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObservabilitySettings/ObservabilitySettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE5F,eAAO,MAAM,qBAAqB,GAAI,gCAAgC,0BAA0B,sBAsB/F,CAAC"}
1
+ {"version":3,"file":"ObservabilitySettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObservabilitySettings/ObservabilitySettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE5F,eAAO,MAAM,qBAAqB,mCAAoC,0BAA0B,sBAkB/F,CAAC"}
@@ -8,24 +8,23 @@ declare const meta: {
8
8
  layout: string;
9
9
  translations: [{
10
10
  readonly 'en-US': {
11
- readonly [meta.id]: {
12
- readonly 'plugin.name': "Telemetry";
13
- readonly 'settings.title': "Telemetry settings";
14
- readonly 'observability-toast.label': "Privacy Notice";
15
- readonly 'observability-toast.description': "Composer collects usage and performance metrics to improve the product. No user data is collected.";
16
- readonly 'observability-toast-action.label': "Settings";
17
- readonly 'observability-toast-action.alt': "Open settings to learn more or to disable.";
18
- readonly 'observability-toast-close.label': "Okay";
19
- readonly 'observability-enabled.label': "Enable telemetry";
20
- readonly 'observability-enabled.description': "Send anonymous usage and performance data to help improve the product.";
21
- readonly 'observability.description': "When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.";
22
- readonly 'help.label': "Feedback & Support";
23
- readonly 'feedback-textarea.label': "Feedback";
24
- readonly 'feedback-textarea.placeholder': "Please enter your feedback, technical issue, or feature request.";
25
- readonly 'include-debug-logs.label': "Include debug logs";
26
- readonly 'send-feedback.label': "Send Feedback";
27
- readonly 'feedback-toast.label': "Thank you for your feedback!";
28
- readonly 'feedback-toast.description': "We will review your feedback and get back to you as soon as possible.";
11
+ readonly [x: string]: {
12
+ readonly 'plugin.name': 'Telemetry';
13
+ readonly 'settings.title': 'Telemetry settings';
14
+ readonly 'observability-toast.label': 'Privacy Notice';
15
+ readonly 'observability-toast.description': 'Composer collects usage and performance metrics to improve the product. No user data is collected.';
16
+ readonly 'observability-toast-action.label': 'Settings';
17
+ readonly 'observability-toast-action.alt': 'Open settings to learn more or to disable.';
18
+ readonly 'observability-toast-close.label': 'Okay';
19
+ readonly 'observability.description': 'When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.';
20
+ readonly 'help.label': 'Feedback & Support';
21
+ readonly 'feedback-textarea.label': 'Feedback';
22
+ readonly 'feedback-textarea.placeholder': 'Please enter your feedback, technical issue, or feature request.';
23
+ readonly 'include-debug-logs.label': 'Include debug logs';
24
+ readonly 'send-feedback.label': 'Send Feedback';
25
+ readonly 'download-logs.label': 'Download logs';
26
+ readonly 'feedback-toast.label': 'Thank you for your feedback!';
27
+ readonly 'feedback-toast.description': 'We will review your feedback and get back to you as soon as possible.';
29
28
  };
30
29
  };
31
30
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"ObservabilitySettings.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObservabilitySettings/ObservabilitySettings.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,QAAA,MAAM,IAAI;;;;;;;;;yBALmD,CAEzD,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;CAYkC,CAAC;AAE/C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
1
+ {"version":3,"file":"ObservabilitySettings.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObservabilitySettings/ObservabilitySettings.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASoC,CAAC;eAEhC,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HelpContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/HelpContainer/HelpContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAarD,uFAAuF;AACvF,eAAO,MAAM,aAAa,yBAoCzB,CAAC"}
1
+ {"version":3,"file":"HelpContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/HelpContainer/HelpContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAarD,uFAAuF;AACvF,eAAO,MAAM,aAAa,yBAqCzB,CAAC"}
@@ -2,5 +2,4 @@ export { ObservabilityCapabilities, ObservabilityEvents } from './types';
2
2
  export * from './components';
3
3
  export * from './meta';
4
4
  export * from './ObservabilityPlugin';
5
- export { translations as observabilityTranslations } from './translations';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzE,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,YAAY,IAAI,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzE,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Operation } from '@dxos/operation';
1
+ import { Operation } from '@dxos/compute';
2
2
  import { CaptureUserFeedback } from './definitions';
3
3
  declare const handler: Operation.WithHandler<typeof CaptureUserFeedback>;
4
4
  export default handler;
@@ -1 +1 @@
1
- {"version":3,"file":"capture-user-feedback.d.ts","sourceRoot":"","sources":["../../../../src/operations/capture-user-feedback.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAO9D,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"capture-user-feedback.d.ts","sourceRoot":"","sources":["../../../../src/operations/capture-user-feedback.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAO9D,CAAC;eAEa,OAAO"}
@@ -1,6 +1,6 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import { Operation } from '@dxos/operation';
3
+ import { Operation } from '@dxos/compute';
4
4
  export declare const UserFeedback: Schema.Struct<{
5
5
  message: Schema.refine<string, Schema.filter<typeof Schema.String>>;
6
6
  includeLogs: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/operations/definitions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,eAAO,MAAM,YAAY;;;EAevB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAInE;;GAEG;AACH,eAAO,MAAM,MAAM;;+BAWjB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;4BAS9B,CAAC;AAEH,eAAO,MAAM,SAAS;;;4BAYpB,CAAC"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/operations/definitions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,eAAO,MAAM,YAAY;;;EAevB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAInE;;GAEG;AACH,eAAO,MAAM,MAAM;;+BAWjB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;4BAS9B,CAAC;AAEH,eAAO,MAAM,SAAS;;;4BAYpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { OperationHandlerSet } from '@dxos/operation';
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
2
  export * as ObservabilityOperation from './definitions';
3
3
  export { UserFeedback } from './definitions';
4
4
  export declare const ObservabilityOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,sBAAsB,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,gCAAgC,yCAI5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,sBAAsB,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,gCAAgC,yCAI5C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Operation } from '@dxos/operation';
1
+ import { Operation } from '@dxos/compute';
2
2
  import { SendEvent } from './definitions';
3
3
  declare const handler: Operation.WithHandler<typeof SendEvent>;
4
4
  export default handler;
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.d.ts","sourceRoot":"","sources":["../../../../src/operations/send-event.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,SAAS,CASpD,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"send-event.d.ts","sourceRoot":"","sources":["../../../../src/operations/send-event.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,SAAS,CASpD,CAAC;eAEa,OAAO"}
@@ -1,4 +1,4 @@
1
- import { Operation } from '@dxos/operation';
1
+ import { Operation } from '@dxos/compute';
2
2
  import { Toggle } from './definitions';
3
3
  declare const handler: Operation.WithHandler<typeof Toggle>;
4
4
  export default handler;
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/operations/toggle.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CA4BjD,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/operations/toggle.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CA4BjD,CAAC;eAEa,OAAO"}
@@ -1,24 +1,22 @@
1
- import { meta } from '#meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin.name': "Telemetry";
6
- readonly 'settings.title': "Telemetry settings";
7
- readonly 'observability-toast.label': "Privacy Notice";
8
- readonly 'observability-toast.description': "Composer collects usage and performance metrics to improve the product. No user data is collected.";
9
- readonly 'observability-toast-action.label': "Settings";
10
- readonly 'observability-toast-action.alt': "Open settings to learn more or to disable.";
11
- readonly 'observability-toast-close.label': "Okay";
12
- readonly 'observability-enabled.label': "Enable telemetry";
13
- readonly 'observability-enabled.description': "Send anonymous usage and performance data to help improve the product.";
14
- readonly 'observability.description': "When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.";
15
- readonly 'help.label': "Feedback & Support";
16
- readonly 'feedback-textarea.label': "Feedback";
17
- readonly 'feedback-textarea.placeholder': "Please enter your feedback, technical issue, or feature request.";
18
- readonly 'include-debug-logs.label': "Include debug logs";
19
- readonly 'send-feedback.label': "Send Feedback";
20
- readonly 'feedback-toast.label': "Thank you for your feedback!";
21
- readonly 'feedback-toast.description': "We will review your feedback and get back to you as soon as possible.";
3
+ readonly [x: string]: {
4
+ readonly 'plugin.name': 'Telemetry';
5
+ readonly 'settings.title': 'Telemetry settings';
6
+ readonly 'observability-toast.label': 'Privacy Notice';
7
+ readonly 'observability-toast.description': 'Composer collects usage and performance metrics to improve the product. No user data is collected.';
8
+ readonly 'observability-toast-action.label': 'Settings';
9
+ readonly 'observability-toast-action.alt': 'Open settings to learn more or to disable.';
10
+ readonly 'observability-toast-close.label': 'Okay';
11
+ readonly 'observability.description': 'When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.';
12
+ readonly 'help.label': 'Feedback & Support';
13
+ readonly 'feedback-textarea.label': 'Feedback';
14
+ readonly 'feedback-textarea.placeholder': 'Please enter your feedback, technical issue, or feature request.';
15
+ readonly 'include-debug-logs.label': 'Include debug logs';
16
+ readonly 'send-feedback.label': 'Send Feedback';
17
+ readonly 'download-logs.label': 'Download logs';
18
+ readonly 'feedback-toast.label': 'Thank you for your feedback!';
19
+ readonly 'feedback-toast.description': 'We will review your feedback and get back to you as soon as possible.';
22
20
  };
23
21
  };
24
22
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;UAqBR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,WAAW;uCACR,oBAAoB;kDACT,gBAAgB;wDAE3C,oGAAoG;yDAClE,UAAU;uDACZ,4CAA4C;wDAC3C,MAAM;kDAGvC,iRAAiR;mCACrQ,oBAAoB;gDACP,UAAU;sDACJ,kEAAkE;iDACvE,oBAAoB;4CACzB,eAAe;4CACf,eAAe;6CACd,8BAA8B;mDACxB,uEAAuE;;;EAI9E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  export declare const Settings: Schema.mutable<Schema.Struct<{
3
- enabled: typeof Schema.Boolean;
3
+ enabled: Schema.SchemaClass<boolean, boolean, never>;
4
4
  }>>;
5
5
  export interface Settings extends Schema.Schema.Type<typeof Settings> {
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../../src/types/Settings.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,QAAQ;;GAQpB,CAAC;AAEF,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;CAAG"}
1
+ {"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../../src/types/Settings.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,QAAQ;;GAWpB,CAAC;AAEF,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;CAAG"}
@@ -20,6 +20,12 @@ export declare namespace ObservabilityCapabilities {
20
20
  notified?: boolean | undefined;
21
21
  }>>;
22
22
  const Observability: Capability.InterfaceDef<Observability.Observability>;
23
+ /**
24
+ * Optional capability — when contributed, the help/feedback UI exposes a "Download logs" action.
25
+ * The callback is responsible for the entire download (read store, encode, save file).
26
+ */
27
+ type LogDownloader = () => void | Promise<void>;
28
+ const LogDownloader: Capability.InterfaceDef<LogDownloader>;
23
29
  }
24
30
  export declare const ClientCapability: Capability.InterfaceDef<Client>;
25
31
  //# sourceMappingURL=capabilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAEvC,yBAAiB,yBAAyB,CAAC;IAClC,MAAM,SAAS,iCAA6D,CAAC;IAE7E,MAAM,QAAQ,8EAAsF,CAAC;IAErG,MAAM,WAAW;;;OAKvB,CAAC;IAEF,KAAY,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;IAEpD,MAAM,KAAK;;;;;;OAAuE,CAAC;IAEnF,MAAM,aAAa,sDAAsF,CAAC;CAClH;AAID,eAAO,MAAM,gBAAgB,iCAAsE,CAAC"}
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAEvC,yBAAiB,yBAAyB,CAAC,CAAC;IACnC,MAAM,SAAS,iCAA6D,CAAC;IAE7E,MAAM,QAAQ,8EAAsF,CAAC;IAErG,MAAM,WAAW;;;OAKvB,CAAC;IAEF,KAAY,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;IAEpD,MAAM,KAAK;;;;;;OAAuE,CAAC;IAEnF,MAAM,aAAa,sDAAsF,CAAC;IAEjH;;;OAGG;IACH,KAAY,aAAa,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,aAAa,wCAAyE,CAAC;CACrG;AAID,eAAO,MAAM,gBAAgB,iCAAsE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD,yBAAiB,mBAAmB,CAAC;IAC5B,MAAM,UAAU,EAAE,eAAe,CAAC,eAA+D,CAAC;CAC1G;AAGD,eAAO,MAAM,gBAAgB,iCAAoE,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD,yBAAiB,mBAAmB,CAAC,CAAC;IAC7B,MAAM,UAAU,EAAE,eAAe,CAAC,eAA+D,CAAC;CAC1G;AAGD,eAAO,MAAM,gBAAgB,iCAAoE,CAAC"}