@dxos/plugin-observability 0.8.2-main.f11618f → 0.8.2-main.fbd8ed0

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 (91) hide show
  1. package/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs +43 -0
  2. package/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-DWLES54T.mjs → chunk-LIQQMROG.mjs} +5 -5
  4. package/dist/lib/browser/{chunk-DWLES54T.mjs.map → chunk-LIQQMROG.mjs.map} +3 -3
  5. package/dist/lib/browser/chunk-VJOTUVP6.mjs +179 -0
  6. package/dist/lib/browser/chunk-VJOTUVP6.mjs.map +7 -0
  7. package/dist/lib/browser/{client-ready-LRY24QM5.mjs → client-ready-SPQ37TSN.mjs} +6 -6
  8. package/dist/lib/browser/client-ready-SPQ37TSN.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +7 -7
  10. package/dist/lib/browser/{intent-resolver-ZKNJCLDV.mjs → intent-resolver-WIABW2ED.mjs} +7 -7
  11. package/dist/lib/browser/intent-resolver-WIABW2ED.mjs.map +7 -0
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/{react-surface-QMP4YECT.mjs → react-surface-KCDNYTFB.mjs} +3 -3
  14. package/dist/lib/browser/{settings-V5C5V5EJ.mjs → settings-GNURBGMS.mjs} +3 -3
  15. package/dist/lib/browser/types.mjs +1 -1
  16. package/dist/lib/node/{app-graph-builder-JPUTX4LQ.cjs → app-graph-builder-EXZP366Q.cjs} +28 -25
  17. package/dist/lib/node/app-graph-builder-EXZP366Q.cjs.map +7 -0
  18. package/dist/lib/node/{chunk-HF4SL56O.cjs → chunk-53PICBRX.cjs} +11 -11
  19. package/dist/lib/node/{chunk-HF4SL56O.cjs.map → chunk-53PICBRX.cjs.map} +3 -3
  20. package/dist/lib/node/chunk-BPWXRLLR.cjs +199 -0
  21. package/dist/lib/node/chunk-BPWXRLLR.cjs.map +7 -0
  22. package/dist/lib/node/{client-ready-KHGLQOQZ.cjs → client-ready-ZWYA3DIS.cjs} +10 -10
  23. package/dist/lib/node/client-ready-ZWYA3DIS.cjs.map +7 -0
  24. package/dist/lib/node/index.cjs +11 -11
  25. package/dist/lib/node/{intent-resolver-5SANBSGX.cjs → intent-resolver-RFEYBIAO.cjs} +13 -13
  26. package/dist/lib/node/intent-resolver-RFEYBIAO.cjs.map +7 -0
  27. package/dist/lib/node/meta.json +1 -1
  28. package/dist/lib/node/{react-surface-O6M5TFVP.cjs → react-surface-OO2LWKVU.cjs} +8 -8
  29. package/dist/lib/node/{settings-CWIX7OVJ.cjs → settings-4JLLQAVK.cjs} +7 -7
  30. package/dist/lib/node/types.cjs +3 -3
  31. package/dist/lib/node/types.cjs.map +1 -1
  32. package/dist/lib/node-esm/app-graph-builder-T7J46NSQ.mjs +44 -0
  33. package/dist/lib/node-esm/app-graph-builder-T7J46NSQ.mjs.map +7 -0
  34. package/dist/lib/node-esm/chunk-QBN3AIYD.mjs +180 -0
  35. package/dist/lib/node-esm/chunk-QBN3AIYD.mjs.map +7 -0
  36. package/dist/lib/node-esm/{chunk-Z22V3GLC.mjs → chunk-UBJECDGC.mjs} +5 -5
  37. package/dist/lib/node-esm/{chunk-Z22V3GLC.mjs.map → chunk-UBJECDGC.mjs.map} +3 -3
  38. package/dist/lib/node-esm/{client-ready-4BUMAISA.mjs → client-ready-TPMUYLT3.mjs} +6 -6
  39. package/dist/lib/node-esm/client-ready-TPMUYLT3.mjs.map +7 -0
  40. package/dist/lib/node-esm/index.mjs +7 -7
  41. package/dist/lib/node-esm/{intent-resolver-5EFEXLWX.mjs → intent-resolver-BLGADJN2.mjs} +7 -7
  42. package/dist/lib/node-esm/intent-resolver-BLGADJN2.mjs.map +7 -0
  43. package/dist/lib/node-esm/meta.json +1 -1
  44. package/dist/lib/node-esm/{react-surface-JP4SJGWP.mjs → react-surface-7MITMWY2.mjs} +3 -3
  45. package/dist/lib/node-esm/{settings-ZOKCFJET.mjs → settings-VK3GEOYK.mjs} +3 -3
  46. package/dist/lib/node-esm/types.mjs +1 -1
  47. package/dist/types/src/ObservabilityPlugin.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
  49. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  50. package/dist/types/src/capabilities/client-ready.d.ts +2 -2
  51. package/dist/types/src/capabilities/client-ready.d.ts.map +1 -1
  52. package/dist/types/src/capabilities/index.d.ts +3 -179
  53. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  54. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  55. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  56. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  57. package/dist/types/src/components/FeedbackForm.d.ts.map +1 -1
  58. package/dist/types/src/components/ObservabilitySettings.d.ts +4 -4
  59. package/dist/types/src/components/ObservabilitySettings.d.ts.map +1 -1
  60. package/dist/types/src/types.d.ts +241 -145
  61. package/dist/types/src/types.d.ts.map +1 -1
  62. package/dist/types/tsconfig.tsbuildinfo +1 -1
  63. package/package.json +29 -23
  64. package/src/capabilities/app-graph-builder.ts +29 -17
  65. package/src/capabilities/client-ready.ts +6 -6
  66. package/src/capabilities/intent-resolver.ts +7 -7
  67. package/src/components/ObservabilitySettings.tsx +5 -5
  68. package/src/types.ts +128 -126
  69. package/dist/lib/browser/app-graph-builder-OCAR3KUZ.mjs +0 -40
  70. package/dist/lib/browser/app-graph-builder-OCAR3KUZ.mjs.map +0 -7
  71. package/dist/lib/browser/chunk-RI4RE346.mjs +0 -178
  72. package/dist/lib/browser/chunk-RI4RE346.mjs.map +0 -7
  73. package/dist/lib/browser/client-ready-LRY24QM5.mjs.map +0 -7
  74. package/dist/lib/browser/intent-resolver-ZKNJCLDV.mjs.map +0 -7
  75. package/dist/lib/node/app-graph-builder-JPUTX4LQ.cjs.map +0 -7
  76. package/dist/lib/node/chunk-V4ZLLL5M.cjs +0 -198
  77. package/dist/lib/node/chunk-V4ZLLL5M.cjs.map +0 -7
  78. package/dist/lib/node/client-ready-KHGLQOQZ.cjs.map +0 -7
  79. package/dist/lib/node/intent-resolver-5SANBSGX.cjs.map +0 -7
  80. package/dist/lib/node-esm/app-graph-builder-RKURIIFT.mjs +0 -41
  81. package/dist/lib/node-esm/app-graph-builder-RKURIIFT.mjs.map +0 -7
  82. package/dist/lib/node-esm/chunk-M3MGU3DN.mjs +0 -179
  83. package/dist/lib/node-esm/chunk-M3MGU3DN.mjs.map +0 -7
  84. package/dist/lib/node-esm/client-ready-4BUMAISA.mjs.map +0 -7
  85. package/dist/lib/node-esm/intent-resolver-5EFEXLWX.mjs.map +0 -7
  86. /package/dist/lib/browser/{react-surface-QMP4YECT.mjs.map → react-surface-KCDNYTFB.mjs.map} +0 -0
  87. /package/dist/lib/browser/{settings-V5C5V5EJ.mjs.map → settings-GNURBGMS.mjs.map} +0 -0
  88. /package/dist/lib/node/{react-surface-O6M5TFVP.cjs.map → react-surface-OO2LWKVU.cjs.map} +0 -0
  89. /package/dist/lib/node/{settings-CWIX7OVJ.cjs.map → settings-4JLLQAVK.cjs.map} +0 -0
  90. /package/dist/lib/node-esm/{react-surface-JP4SJGWP.mjs.map → react-surface-7MITMWY2.mjs.map} +0 -0
  91. /package/dist/lib/node-esm/{settings-ZOKCFJET.mjs.map → settings-VK3GEOYK.mjs.map} +0 -0
@@ -1,169 +1,265 @@
1
- import { S } from '@dxos/echo-schema';
2
- export declare const UserFeedback: S.Struct<{
3
- message: S.filter<S.filter<typeof S.String>>;
1
+ import { Schema } from 'effect';
2
+ export declare const UserFeedback: Schema.Struct<{
3
+ message: Schema.filter<Schema.filter<typeof Schema.String>>;
4
4
  }>;
5
- export type UserFeedback = S.Schema.Type<typeof UserFeedback>;
5
+ export type UserFeedback = Schema.Schema.Type<typeof UserFeedback>;
6
6
  export declare namespace ObservabilityAction {
7
- const Toggle_base: S.TaggedClass<Toggle, "dxos.org/plugin/observability/action/toggle", {
8
- readonly _tag: S.tag<"dxos.org/plugin/observability/action/toggle">;
7
+ const Toggle_base: Schema.TaggedClass<Toggle, "dxos.org/plugin/observability/action/toggle", {
8
+ readonly _tag: Schema.tag<"dxos.org/plugin/observability/action/toggle">;
9
9
  } & {
10
- input: S.Struct<{
11
- state: S.optional<typeof S.Boolean>;
10
+ input: Schema.Struct<{
11
+ state: Schema.optional<typeof Schema.Boolean>;
12
12
  }>;
13
- output: typeof S.Boolean;
13
+ output: typeof Schema.Boolean;
14
14
  }>;
15
15
  export class Toggle extends Toggle_base {
16
16
  }
17
- const CaptureUserFeedback_base: S.TaggedClass<CaptureUserFeedback, "dxos.org/plugin/observability/action/capture-feedback", {
18
- readonly _tag: S.tag<"dxos.org/plugin/observability/action/capture-feedback">;
17
+ const CaptureUserFeedback_base: Schema.TaggedClass<CaptureUserFeedback, "dxos.org/plugin/observability/action/capture-feedback", {
18
+ readonly _tag: Schema.tag<"dxos.org/plugin/observability/action/capture-feedback">;
19
19
  } & {
20
- input: S.Struct<{
21
- message: S.filter<S.filter<typeof S.String>>;
20
+ input: Schema.Struct<{
21
+ message: Schema.filter<Schema.filter<typeof Schema.String>>;
22
22
  }>;
23
- output: typeof S.Void;
23
+ output: typeof Schema.Void;
24
24
  }>;
25
25
  export class CaptureUserFeedback extends CaptureUserFeedback_base {
26
26
  }
27
- const BaseSendEvent_base: S.TaggedClass<BaseSendEvent, "dxos.org/plugin/observability/action/send-event", {
28
- readonly _tag: S.tag<"dxos.org/plugin/observability/action/send-event">;
27
+ const BaseSendEvent_base: Schema.TaggedClass<BaseSendEvent, "dxos.org/plugin/observability/action/send-event", {
28
+ readonly _tag: Schema.tag<"dxos.org/plugin/observability/action/send-event">;
29
29
  } & {
30
- input: S.Struct<{
31
- name: typeof S.String;
32
- properties: S.optional<typeof S.Object>;
30
+ input: Schema.Struct<{
31
+ name: typeof Schema.String;
32
+ properties: Schema.optional<typeof Schema.Object>;
33
33
  }>;
34
- output: typeof S.Void;
34
+ output: typeof Schema.Void;
35
35
  }>;
36
36
  /** Base intent for sending events. */
37
37
  export class BaseSendEvent extends BaseSendEvent_base {
38
38
  }
39
- const SendEvent_base: S.TaggedClass<SendEvent, "dxos.org/plugin/observability/action/send-event", {
40
- readonly _tag: S.tag<"dxos.org/plugin/observability/action/send-event">;
39
+ const SendEvent_base: Schema.TaggedClass<SendEvent, "dxos.org/plugin/observability/action/send-event", {
40
+ readonly _tag: Schema.tag<"dxos.org/plugin/observability/action/send-event">;
41
41
  } & {
42
- input: S.Union<[S.Struct<{
43
- name: S.Literal<["identity.create"]>;
44
- }>, S.Struct<{
45
- name: S.Literal<["identity.join"]>;
46
- }>, S.Struct<{
47
- name: S.Literal<["identity.recover"]>;
48
- }>, S.Struct<{
49
- name: S.Literal<["identity.share"]>;
50
- }>, S.Struct<{
51
- name: S.Literal<["navigation.activate"]>;
52
- properties: S.Struct<{
53
- subjectId: typeof S.String;
54
- typename: S.optional<typeof S.String>;
55
- }>;
56
- }>, S.Struct<{
57
- name: S.Literal<["page.load"]>;
58
- properties: S.Struct<{
59
- loadDuration: typeof S.Number;
60
- }>;
61
- }>, S.Struct<{
62
- name: S.Literal<["plugins.toggle"]>;
63
- properties: S.Struct<{
64
- plugin: typeof S.String;
65
- enabled: typeof S.Boolean;
66
- }>;
67
- }>, S.Struct<{
68
- name: S.Literal<["space.create"]>;
69
- properties: S.Struct<{
70
- spaceId: typeof S.String;
71
- }>;
72
- }>, S.Struct<{
73
- name: S.Literal<["space.join"]>;
74
- properties: S.Struct<{
75
- spaceId: typeof S.String;
76
- }>;
77
- }>, S.Struct<{
78
- name: S.Literal<["space.limit"]>;
79
- properties: S.Struct<{
80
- spaceId: typeof S.String;
81
- }>;
82
- }>, S.Struct<{
83
- name: S.Literal<["space.lock"]>;
84
- properties: S.Struct<{
85
- spaceId: typeof S.String;
86
- }>;
87
- }>, S.Struct<{
88
- name: S.Literal<["space.migrate"]>;
89
- properties: S.Struct<{
90
- spaceId: typeof S.String;
91
- targetVersion: S.optional<typeof S.String>;
92
- version: S.optional<typeof S.String>;
93
- }>;
94
- }>, S.Struct<{
95
- name: S.Literal<["space.object.add"]>;
96
- properties: S.Struct<{
97
- spaceId: typeof S.String;
98
- objectId: typeof S.String;
99
- typename: S.optional<typeof S.String>;
100
- }>;
101
- }>, S.Struct<{
102
- name: S.Literal<["space.share"]>;
103
- properties: S.Struct<{
104
- spaceId: typeof S.String;
105
- }>;
106
- }>, S.Struct<{
107
- name: S.Literal<["space.unlock"]>;
108
- properties: S.Struct<{
109
- spaceId: typeof S.String;
110
- }>;
111
- }>, S.Struct<{
112
- name: S.Literal<["threads.create"]>;
113
- properties: S.Struct<{
114
- spaceId: typeof S.String;
115
- threadId: typeof S.String;
116
- }>;
117
- }>, S.Struct<{
118
- name: S.Literal<["threads.delete"]>;
119
- properties: S.Struct<{
120
- spaceId: typeof S.String;
121
- threadId: typeof S.String;
122
- }>;
123
- }>, S.Struct<{
124
- name: S.Literal<["threads.message.add"]>;
125
- properties: S.Struct<{
126
- spaceId: typeof S.String;
127
- threadId: typeof S.String;
128
- threadLength: typeof S.Number;
129
- messageId: typeof S.String;
130
- messageLength: typeof S.Number;
131
- }>;
132
- }>, S.Struct<{
133
- name: S.Literal<["threads.message.delete"]>;
134
- properties: S.Struct<{
135
- spaceId: typeof S.String;
136
- threadId: typeof S.String;
137
- messageId: typeof S.String;
138
- }>;
139
- }>, S.Struct<{
140
- name: S.Literal<["threads.message.undo-delete"]>;
141
- properties: S.Struct<{
142
- spaceId: typeof S.String;
143
- threadId: typeof S.String;
144
- messageId: typeof S.String;
145
- }>;
146
- }>, S.Struct<{
147
- name: S.Literal<["threads.message.update"]>;
148
- properties: S.Struct<{
149
- spaceId: typeof S.String;
150
- messageId: typeof S.String;
151
- messageLength: typeof S.Number;
152
- }>;
153
- }>, S.Struct<{
154
- name: S.Literal<["threads.toggle-resolved"]>;
155
- properties: S.Struct<{
156
- spaceId: typeof S.String;
157
- threadId: typeof S.String;
158
- }>;
159
- }>, S.Struct<{
160
- name: S.Literal<["threads.undo-delete"]>;
161
- properties: S.Struct<{
162
- spaceId: typeof S.String;
163
- threadId: typeof S.String;
42
+ input: Schema.Union<[Schema.Struct<{
43
+ name: Schema.Literal<["identity.create"]>;
44
+ }>, Schema.Struct<{
45
+ name: Schema.Literal<["identity.join"]>;
46
+ }>, Schema.Struct<{
47
+ name: Schema.Literal<["identity.recover"]>;
48
+ }>, Schema.Struct<{
49
+ name: Schema.Literal<["identity.share"]>;
50
+ }>, Schema.Struct<{
51
+ name: Schema.Literal<["navigation.activate"]>;
52
+ properties: Schema.Struct<{
53
+ subjectId: typeof Schema.String;
54
+ typename: Schema.optional<typeof Schema.String>;
55
+ }>;
56
+ }>, Schema.Struct<{
57
+ name: Schema.Literal<["page.load"]>;
58
+ properties: Schema.Struct<{
59
+ loadDuration: typeof Schema.Number;
60
+ }>;
61
+ }>, Schema.Struct<{
62
+ name: Schema.Literal<["plugins.toggle"]>;
63
+ properties: Schema.Struct<{
64
+ plugin: typeof Schema.String;
65
+ enabled: typeof Schema.Boolean;
66
+ }>;
67
+ }>, Schema.Struct<{
68
+ name: Schema.Literal<["space.create"]>;
69
+ properties: Schema.Struct<{
70
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
71
+ byteLength: number;
72
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
73
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
74
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
75
+ random: () => import("@dxos/keys").SpaceId;
76
+ };
77
+ }>;
78
+ }>, Schema.Struct<{
79
+ name: Schema.Literal<["space.join"]>;
80
+ properties: Schema.Struct<{
81
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
82
+ byteLength: number;
83
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
84
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
85
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
86
+ random: () => import("@dxos/keys").SpaceId;
87
+ };
88
+ }>;
89
+ }>, Schema.Struct<{
90
+ name: Schema.Literal<["space.limit"]>;
91
+ properties: Schema.Struct<{
92
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
93
+ byteLength: number;
94
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
95
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
96
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
97
+ random: () => import("@dxos/keys").SpaceId;
98
+ };
99
+ }>;
100
+ }>, Schema.Struct<{
101
+ name: Schema.Literal<["space.lock"]>;
102
+ properties: Schema.Struct<{
103
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
104
+ byteLength: number;
105
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
106
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
107
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
108
+ random: () => import("@dxos/keys").SpaceId;
109
+ };
110
+ }>;
111
+ }>, Schema.Struct<{
112
+ name: Schema.Literal<["space.migrate"]>;
113
+ properties: Schema.Struct<{
114
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
115
+ byteLength: number;
116
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
117
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
118
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
119
+ random: () => import("@dxos/keys").SpaceId;
120
+ };
121
+ targetVersion: Schema.optional<typeof Schema.String>;
122
+ version: Schema.optional<typeof Schema.String>;
123
+ }>;
124
+ }>, Schema.Struct<{
125
+ name: Schema.Literal<["space.object.add"]>;
126
+ properties: Schema.Struct<{
127
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
128
+ byteLength: number;
129
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
130
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
131
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
132
+ random: () => import("@dxos/keys").SpaceId;
133
+ };
134
+ objectId: typeof Schema.String;
135
+ typename: Schema.optional<typeof Schema.String>;
136
+ }>;
137
+ }>, Schema.Struct<{
138
+ name: Schema.Literal<["space.share"]>;
139
+ properties: Schema.Struct<{
140
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
141
+ byteLength: number;
142
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
143
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
144
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
145
+ random: () => import("@dxos/keys").SpaceId;
146
+ };
147
+ }>;
148
+ }>, Schema.Struct<{
149
+ name: Schema.Literal<["space.unlock"]>;
150
+ properties: Schema.Struct<{
151
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
152
+ byteLength: number;
153
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
154
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
155
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
156
+ random: () => import("@dxos/keys").SpaceId;
157
+ };
158
+ }>;
159
+ }>, Schema.Struct<{
160
+ name: Schema.Literal<["threads.create"]>;
161
+ properties: Schema.Struct<{
162
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
163
+ byteLength: number;
164
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
165
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
166
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
167
+ random: () => import("@dxos/keys").SpaceId;
168
+ };
169
+ threadId: typeof Schema.String;
170
+ }>;
171
+ }>, Schema.Struct<{
172
+ name: Schema.Literal<["threads.delete"]>;
173
+ properties: Schema.Struct<{
174
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
175
+ byteLength: number;
176
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
177
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
178
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
179
+ random: () => import("@dxos/keys").SpaceId;
180
+ };
181
+ threadId: typeof Schema.String;
182
+ }>;
183
+ }>, Schema.Struct<{
184
+ name: Schema.Literal<["threads.message.add"]>;
185
+ properties: Schema.Struct<{
186
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
187
+ byteLength: number;
188
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
189
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
190
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
191
+ random: () => import("@dxos/keys").SpaceId;
192
+ };
193
+ threadId: typeof Schema.String;
194
+ threadLength: typeof Schema.Number;
195
+ messageId: typeof Schema.String;
196
+ messageLength: typeof Schema.Number;
197
+ }>;
198
+ }>, Schema.Struct<{
199
+ name: Schema.Literal<["threads.message.delete"]>;
200
+ properties: Schema.Struct<{
201
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
202
+ byteLength: number;
203
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
204
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
205
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
206
+ random: () => import("@dxos/keys").SpaceId;
207
+ };
208
+ threadId: typeof Schema.String;
209
+ messageId: typeof Schema.String;
210
+ }>;
211
+ }>, Schema.Struct<{
212
+ name: Schema.Literal<["threads.message.undo-delete"]>;
213
+ properties: Schema.Struct<{
214
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
215
+ byteLength: number;
216
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
217
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
218
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
219
+ random: () => import("@dxos/keys").SpaceId;
220
+ };
221
+ threadId: typeof Schema.String;
222
+ messageId: typeof Schema.String;
223
+ }>;
224
+ }>, Schema.Struct<{
225
+ name: Schema.Literal<["threads.message.update"]>;
226
+ properties: Schema.Struct<{
227
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
228
+ byteLength: number;
229
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
230
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
231
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
232
+ random: () => import("@dxos/keys").SpaceId;
233
+ };
234
+ messageId: typeof Schema.String;
235
+ messageLength: typeof Schema.Number;
236
+ }>;
237
+ }>, Schema.Struct<{
238
+ name: Schema.Literal<["threads.toggle-resolved"]>;
239
+ properties: Schema.Struct<{
240
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
241
+ byteLength: number;
242
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
243
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
244
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
245
+ random: () => import("@dxos/keys").SpaceId;
246
+ };
247
+ threadId: typeof Schema.String;
248
+ }>;
249
+ }>, Schema.Struct<{
250
+ name: Schema.Literal<["threads.undo-delete"]>;
251
+ properties: Schema.Struct<{
252
+ spaceId: Schema.Schema<import("@dxos/keys").SpaceId, string, never> & {
253
+ byteLength: number;
254
+ encode: (value: Uint8Array) => import("@dxos/keys").SpaceId;
255
+ decode: (value: import("@dxos/keys").SpaceId) => Uint8Array;
256
+ isValid: (value: string) => value is import("@dxos/keys").SpaceId;
257
+ random: () => import("@dxos/keys").SpaceId;
258
+ };
259
+ threadId: typeof Schema.String;
164
260
  }>;
165
261
  }>]>;
166
- output: typeof S.Void;
262
+ output: typeof Schema.Void;
167
263
  }>;
168
264
  /** Intent with strict types for first-party events. */
169
265
  export class SendEvent extends SendEvent_base {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAUtC,eAAO,MAAM,YAAY;;EAEvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAI9D,yBAAiB,mBAAmB,CAAC;;;;;;;;;IACnC,MAAM,OAAO,MAAO,SAAQ,WAK1B;KAAG;;;;;;;;;IAEL,MAAM,OAAO,mBAAoB,SAAQ,wBAMxC;KAAG;;;;;;;;;;IAEJ,sCAAsC;IACtC,MAAM,OAAO,aAAc,SAAQ,kBAMjC;KAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEL,uDAAuD;IACvD,MAAM,OAAO,SAAU,SAAQ,cAuJ7B;KAAG;;CACN"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAYhC,eAAO,MAAM,YAAY;;EAEvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAInE,yBAAiB,mBAAmB,CAAC;;;;;;;;;IACnC,MAAM,OAAO,MAAO,SAAQ,WAK1B;KAAG;;;;;;;;;IAEL,MAAM,OAAO,mBAAoB,SAAQ,wBAMxC;KAAG;;;;;;;;;;IAEJ,sCAAsC;IACtC,MAAM,OAAO,aAAc,SAAQ,kBAMjC;KAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEL,uDAAuD;IACvD,MAAM,OAAO,SAAU,SAAQ,cAuJ7B;KAAG;;CACN"}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-observability",
3
- "version": "0.8.2-main.f11618f",
3
+ "version": "0.8.2-main.fbd8ed0",
4
4
  "description": "DXOS app framework plugin for hooking up app observability",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -34,39 +34,45 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@preact/signals-core": "^1.6.0",
37
+ "effect": "^3.13.3",
37
38
  "localforage": "^1.10.0",
38
- "@dxos/app-framework": "0.8.2-main.f11618f",
39
- "@dxos/context": "0.8.2-main.f11618f",
40
- "@dxos/async": "0.8.2-main.f11618f",
41
- "@dxos/echo-schema": "0.8.2-main.f11618f",
42
- "@dxos/live-object": "0.8.2-main.f11618f",
43
- "@dxos/invariant": "0.8.2-main.f11618f",
44
- "@dxos/local-storage": "0.8.2-main.f11618f",
45
- "@dxos/log": "0.8.2-main.f11618f",
46
- "@dxos/observability": "0.8.2-main.f11618f",
47
- "@dxos/protocols": "0.8.2-main.f11618f",
48
- "@dxos/react-client": "0.8.2-main.f11618f",
49
- "@dxos/react-ui-form": "0.8.2-main.f11618f",
50
- "@dxos/plugin-graph": "0.8.2-main.f11618f",
51
- "@dxos/react-ui-stack": "0.8.2-main.f11618f",
52
- "@dxos/util": "0.8.2-main.f11618f"
39
+ "@dxos/app-framework": "0.8.2-main.fbd8ed0",
40
+ "@dxos/async": "0.8.2-main.fbd8ed0",
41
+ "@dxos/context": "0.8.2-main.fbd8ed0",
42
+ "@dxos/echo": "0.8.2-main.fbd8ed0",
43
+ "@dxos/echo-schema": "0.8.2-main.fbd8ed0",
44
+ "@dxos/invariant": "0.8.2-main.fbd8ed0",
45
+ "@dxos/live-object": "0.8.2-main.fbd8ed0",
46
+ "@dxos/log": "0.8.2-main.fbd8ed0",
47
+ "@dxos/observability": "0.8.2-main.fbd8ed0",
48
+ "@dxos/plugin-graph": "0.8.2-main.fbd8ed0",
49
+ "@dxos/protocols": "0.8.2-main.fbd8ed0",
50
+ "@dxos/react-client": "0.8.2-main.fbd8ed0",
51
+ "@dxos/react-ui-form": "0.8.2-main.fbd8ed0",
52
+ "@dxos/local-storage": "0.8.2-main.fbd8ed0",
53
+ "@dxos/react-ui-stack": "0.8.2-main.fbd8ed0",
54
+ "@dxos/util": "0.8.2-main.fbd8ed0"
53
55
  },
54
56
  "devDependencies": {
57
+ "@effect-rx/rx-react": "^0.34.1",
58
+ "@effect/platform": "0.80.12",
55
59
  "@phosphor-icons/react": "^2.1.5",
56
60
  "@types/react": "~18.2.0",
57
- "effect": "3.13.3",
58
61
  "react": "~18.2.0",
59
62
  "vite": "5.4.7",
60
- "@dxos/react-ui-theme": "0.8.2-main.f11618f",
61
- "@dxos/storybook-utils": "0.8.2-main.f11618f",
62
- "@dxos/react-ui": "0.8.2-main.f11618f"
63
+ "@dxos/react-ui": "0.8.2-main.fbd8ed0",
64
+ "@dxos/react-ui-theme": "0.8.2-main.fbd8ed0",
65
+ "@dxos/storybook-utils": "0.8.2-main.fbd8ed0"
63
66
  },
64
67
  "peerDependencies": {
68
+ "@effect-rx/rx-react": "^0.34.1",
69
+ "@effect/platform": "0.80.12",
65
70
  "@phosphor-icons/react": "^2.1.5",
66
- "effect": "3.13.3",
71
+ "effect": "^3.13.3",
67
72
  "react": "~18.2.0",
68
- "@dxos/react-ui": "0.8.2-main.f11618f",
69
- "@dxos/react-ui-theme": "0.8.2-main.f11618f"
73
+ "react-dom": "~18.2.0",
74
+ "@dxos/react-ui": "0.8.2-main.fbd8ed0",
75
+ "@dxos/react-ui-theme": "0.8.2-main.fbd8ed0"
70
76
  },
71
77
  "publishConfig": {
72
78
  "access": "public"
@@ -2,8 +2,11 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';
6
- import { createExtension, type Node } from '@dxos/plugin-graph';
5
+ import { Rx } from '@effect-rx/rx-react';
6
+ import { Option, pipe } from 'effect';
7
+
8
+ import { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';
9
+ import { createExtension, ROOT_ID } from '@dxos/plugin-graph';
7
10
 
8
11
  import { OBSERVABILITY_PLUGIN } from '../meta';
9
12
 
@@ -11,23 +14,32 @@ import { OBSERVABILITY_PLUGIN } from '../meta';
11
14
  const ATTENDABLE_PATH_SEPARATOR = '~';
12
15
  const DECK_COMPANION_TYPE = 'dxos.org/plugin/deck/deck-companion';
13
16
 
14
- export default (context: PluginsContext) =>
17
+ export default (context: PluginContext) =>
15
18
  contributes(Capabilities.AppGraphBuilder, [
16
19
  createExtension({
17
20
  id: `${OBSERVABILITY_PLUGIN}/help`,
18
- filter: (node): node is Node<null> => node.id === 'root',
19
- connector: ({ node }) => [
20
- {
21
- id: [node.id, 'help'].join(ATTENDABLE_PATH_SEPARATOR),
22
- type: DECK_COMPANION_TYPE,
23
- data: null,
24
- properties: {
25
- label: ['help label', { ns: OBSERVABILITY_PLUGIN }],
26
- icon: 'ph--question--regular',
27
- disposition: 'hidden',
28
- position: 'hoist',
29
- },
30
- },
31
- ],
21
+ connector: (node) =>
22
+ Rx.make((get) =>
23
+ pipe(
24
+ get(node),
25
+ Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
26
+ Option.map((node) => {
27
+ return [
28
+ {
29
+ id: [node.id, 'help'].join(ATTENDABLE_PATH_SEPARATOR),
30
+ type: DECK_COMPANION_TYPE,
31
+ data: null,
32
+ properties: {
33
+ label: ['help label', { ns: OBSERVABILITY_PLUGIN }],
34
+ icon: 'ph--question--regular',
35
+ disposition: 'hidden',
36
+ position: 'hoist',
37
+ },
38
+ },
39
+ ];
40
+ }),
41
+ Option.getOrElse(() => []),
42
+ ),
43
+ ),
32
44
  }),
33
45
  ]);
@@ -8,7 +8,7 @@ import {
8
8
  createIntent,
9
9
  LayoutAction,
10
10
  SettingsAction,
11
- type PluginsContext,
11
+ type PluginContext,
12
12
  } from '@dxos/app-framework';
13
13
  import { setupTelemetryListeners, type Observability } from '@dxos/observability';
14
14
 
@@ -17,16 +17,16 @@ import { OBSERVABILITY_PLUGIN } from '../meta';
17
17
  import { ObservabilityAction } from '../types';
18
18
 
19
19
  type ClientReadyOptions = {
20
- context: PluginsContext;
20
+ context: PluginContext;
21
21
  namespace: string;
22
22
  observability: Observability;
23
23
  };
24
24
 
25
25
  export default async ({ context, namespace, observability }: ClientReadyOptions) => {
26
- const manager = context.requestCapability(Capabilities.PluginManager);
27
- const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
28
- const state = context.requestCapability(ObservabilityCapabilities.State);
29
- const client = context.requestCapability(ClientCapability);
26
+ const manager = context.getCapability(Capabilities.PluginManager);
27
+ const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
28
+ const state = context.getCapability(ObservabilityCapabilities.State);
29
+ const client = context.getCapability(ClientCapability);
30
30
 
31
31
  const sendPrivacyNotice = async () => {
32
32
  const environment = client?.config?.values.runtime?.app?.env?.DX_ENVIRONMENT;