@dxos/plugin-daily-summary 0.8.3 → 0.8.4-main.bcb3aa67d6

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 (53) hide show
  1. package/dist/lib/browser/index.mjs +25 -20
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/types/src/DailySummaryPlugin.d.ts.map +1 -1
  5. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  6. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  7. package/dist/types/src/capabilities/index.d.ts +4 -3
  8. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  9. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  10. package/dist/types/src/containers/DailySummarySettings/DailySummarySettings.d.ts.map +1 -1
  11. package/dist/types/src/meta.d.ts.map +1 -1
  12. package/dist/types/src/translations.d.ts +5 -4
  13. package/dist/types/src/translations.d.ts.map +1 -1
  14. package/dist/types/tsconfig.tsbuildinfo +1 -1
  15. package/package.json +32 -25
  16. package/src/DailySummaryPlugin.tsx +3 -2
  17. package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +7 -10
  18. package/src/capabilities/{blueprint-definition/blueprint-definition.ts → blueprint-definition.ts} +1 -1
  19. package/src/capabilities/index.ts +6 -4
  20. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +3 -3
  21. package/src/containers/DailySummarySettings/DailySummarySettings.tsx +15 -14
  22. package/src/meta.test.ts +1 -1
  23. package/src/translations.test.ts +4 -4
  24. package/src/translations.ts +5 -4
  25. package/dist/lib/browser/DailySummarySettings-RF6P6R5M.mjs +0 -63
  26. package/dist/lib/browser/DailySummarySettings-RF6P6R5M.mjs.map +0 -7
  27. package/dist/lib/browser/app-graph-builder-RHJEYETQ.mjs +0 -39
  28. package/dist/lib/browser/app-graph-builder-RHJEYETQ.mjs.map +0 -7
  29. package/dist/lib/browser/blueprint-definition-XOEDPUVU.mjs +0 -53
  30. package/dist/lib/browser/blueprint-definition-XOEDPUVU.mjs.map +0 -7
  31. package/dist/lib/browser/chunk-2TNDFGQB.mjs +0 -21
  32. package/dist/lib/browser/chunk-2TNDFGQB.mjs.map +0 -7
  33. package/dist/lib/browser/chunk-UYXGTD3T.mjs +0 -40
  34. package/dist/lib/browser/chunk-UYXGTD3T.mjs.map +0 -7
  35. package/dist/lib/browser/generate-FSSCIHAO.mjs +0 -172
  36. package/dist/lib/browser/generate-FSSCIHAO.mjs.map +0 -7
  37. package/dist/lib/browser/react-surface-WCGJVZCQ.mjs +0 -36
  38. package/dist/lib/browser/react-surface-WCGJVZCQ.mjs.map +0 -7
  39. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  40. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  41. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  42. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
  43. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -3
  44. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
  45. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  46. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  47. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  48. package/src/capabilities/app-graph-builder/index.ts +0 -7
  49. package/src/capabilities/blueprint-definition/index.ts +0 -7
  50. package/src/capabilities/react-surface/index.ts +0 -7
  51. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  52. /package/dist/types/src/capabilities/{blueprint-definition/blueprint-definition.d.ts → blueprint-definition.d.ts} +0 -0
  53. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
@@ -1,172 +0,0 @@
1
- import {
2
- GenerateSummary
3
- } from "./chunk-UYXGTD3T.mjs";
4
-
5
- // src/blueprints/functions/generate.ts
6
- import * as LanguageModel from "@effect/ai/LanguageModel";
7
- import * as Prompt from "@effect/ai/Prompt";
8
- import * as Effect from "effect/Effect";
9
- import * as Layer from "effect/Layer";
10
- import * as Schema from "effect/Schema";
11
- import { AiService, ToolExecutionService, ToolResolverService } from "@dxos/ai";
12
- import { Collection, Database, Filter, Obj, Query, Ref, Type } from "@dxos/echo";
13
- import { FunctionInvocationService, TracingService } from "@dxos/functions";
14
- import { Operation } from "@dxos/operation";
15
- import { Text } from "@dxos/schema";
16
- import { CollectionModel } from "@dxos/schema";
17
- import { trim } from "@dxos/util";
18
- var DEFAULT_LOOKBACK_HOURS = 24;
19
- var SUMMARIES_COLLECTION_NAME = "Summaries";
20
- var SUMMARY_TITLE_PREFIX = "Daily Summary \u2014";
21
- var SUMMARY_STRUCTURE = trim`
22
- Given a list of recently modified objects,
23
- generate a concise daily summary in markdown,
24
- try to pull insights from the changes and the context of the changes.
25
- Focus on the meaningful changes and try to avoid changes in the system objects.
26
-
27
- Follow this exact structure:
28
-
29
- ## Highlights
30
- Bullet points capturing the most significant changes or accomplishments.
31
-
32
- ## TODOs
33
- List of TODOs that is inferred from the changes and the content of the changes.
34
- Make it short, do not force it, only strong call to action data should be included.
35
- Use - [ ] syntax for the TODOs.
36
-
37
- Rules:
38
- - Do NOT include the heading "Daily Summary" — the document already has a title.
39
- - Be concise. Each bullet should be one sentence.
40
- - If a previous summary is provided, note what changed since then.
41
- - Try to pull actionable points from the changes and the context of the changes.
42
- - Output raw markdown only, no wrapping code fences.
43
- `;
44
- var MarkdownDocument = Schema.Struct({
45
- name: Schema.optional(Schema.String),
46
- content: Ref.Ref(Text.Text)
47
- }).pipe(Type.object({
48
- typename: "org.dxos.type.document",
49
- version: "0.1.0"
50
- }));
51
- var makeMarkdownDoc = ({ name, content }) => {
52
- const doc = Obj.make(MarkdownDocument, {
53
- name,
54
- content: Ref.make(Text.make(content))
55
- });
56
- Obj.setParent(doc.content.target, doc);
57
- return doc;
58
- };
59
- var generate_default = GenerateSummary.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ previousSummary, lookbackHours }) {
60
- const hours = lookbackHours ?? DEFAULT_LOOKBACK_HOURS;
61
- const cutoff = Date.now() - hours * 60 * 60 * 1e3;
62
- const now = /* @__PURE__ */ new Date();
63
- const dateLabel = now.toLocaleDateString("en-US", {
64
- month: "long",
65
- day: "numeric"
66
- });
67
- const docName = `${SUMMARY_TITLE_PREFIX} ${dateLabel}`;
68
- const recentObjects = yield* Database.runQuery(Filter.updated({
69
- after: cutoff
70
- }));
71
- const objectDescriptions = recentObjects.map((obj) => {
72
- return JSON.stringify(Obj.toJSON(obj));
73
- });
74
- const content = yield* summarizeWithAi({
75
- dateLabel,
76
- objectDescriptions,
77
- previousSummary,
78
- hours
79
- });
80
- const existingDoc = yield* findExistingDaySummary(docName);
81
- let doc;
82
- if (existingDoc) {
83
- yield* updateDocContent(existingDoc, content);
84
- doc = existingDoc;
85
- } else {
86
- doc = makeMarkdownDoc({
87
- name: docName,
88
- content
89
- });
90
- const summariesCollection = yield* findOrCreateSummariesCollection();
91
- yield* CollectionModel.add({
92
- object: doc,
93
- target: summariesCollection
94
- });
95
- }
96
- return {
97
- id: Obj.getDXN(doc).toString(),
98
- objectCount: recentObjects.length,
99
- date: dateLabel
100
- };
101
- }, Effect.provide(Layer.mergeAll(AiService.model("@anthropic/claude-haiku-4-5"), ToolResolverService.layerEmpty, ToolExecutionService.layerEmpty, TracingService.layerNoop, FunctionInvocationService.layerNotAvailable)))));
102
- var summarizeWithAi = Effect.fn(function* ({ dateLabel, objectDescriptions, previousSummary, hours }) {
103
- const userContent = [
104
- `Date: ${dateLabel}`,
105
- `Time window: last ${hours} hours`,
106
- `Total objects modified: ${objectDescriptions.length}`,
107
- "",
108
- "Modified objects:",
109
- ...objectDescriptions,
110
- ...previousSummary ? [
111
- "",
112
- "Previous summary for context:",
113
- previousSummary
114
- ] : []
115
- ].join("\n");
116
- const { text } = yield* LanguageModel.generateText({
117
- prompt: Prompt.fromMessages([
118
- Prompt.systemMessage({
119
- content: SUMMARY_STRUCTURE
120
- }),
121
- Prompt.userMessage({
122
- content: [
123
- Prompt.makePart("text", {
124
- text: userContent
125
- })
126
- ]
127
- })
128
- ])
129
- });
130
- return text;
131
- });
132
- var findExistingDaySummary = Effect.fn(function* (docName) {
133
- const docs = yield* Database.runQuery(Query.type(MarkdownDocument, {
134
- name: docName
135
- }));
136
- return docs.length > 0 ? docs[0] : null;
137
- });
138
- var updateDocContent = Effect.fn(function* (doc, newContent) {
139
- const textRef = doc.content;
140
- if (Ref.isRef(textRef)) {
141
- const text = yield* Effect.promise(() => textRef.load());
142
- if (text) {
143
- Obj.change(text, (mutable) => {
144
- mutable.content = newContent;
145
- });
146
- return;
147
- }
148
- }
149
- Obj.change(doc, (mutable) => {
150
- mutable.content = Ref.make(Text.make(newContent));
151
- });
152
- });
153
- var findOrCreateSummariesCollection = Effect.fn(function* () {
154
- const collections = yield* Database.runQuery(Query.type(Collection.Collection, {
155
- name: SUMMARIES_COLLECTION_NAME
156
- }));
157
- if (collections.length > 0) {
158
- return collections[0];
159
- }
160
- const collection = Collection.make({
161
- name: SUMMARIES_COLLECTION_NAME
162
- });
163
- yield* CollectionModel.add({
164
- object: collection
165
- });
166
- return collection;
167
- });
168
- export {
169
- SUMMARY_STRUCTURE,
170
- generate_default as default
171
- };
172
- //# sourceMappingURL=generate-FSSCIHAO.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/blueprints/functions/generate.ts"],
4
- "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as LanguageModel from '@effect/ai/LanguageModel';\nimport * as Prompt from '@effect/ai/Prompt';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, ToolExecutionService, ToolResolverService } from '@dxos/ai';\nimport { Collection, Database, Filter, Obj, Query, Ref, Type } from '@dxos/echo';\nimport { FunctionInvocationService, TracingService } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { Text } from '@dxos/schema';\nimport { CollectionModel } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { GenerateSummary } from './definitions';\n\nconst DEFAULT_LOOKBACK_HOURS = 24;\nconst SUMMARIES_COLLECTION_NAME = 'Summaries';\nconst SUMMARY_TITLE_PREFIX = 'Daily Summary —';\n\n/**\n * Predefined structure for the AI-generated daily summary.\n * Used as the system prompt for the summarization model.\n */\nexport const SUMMARY_STRUCTURE = trim`\n Given a list of recently modified objects,\n generate a concise daily summary in markdown, \n try to pull insights from the changes and the context of the changes.\n Focus on the meaningful changes and try to avoid changes in the system objects.\n\n Follow this exact structure:\n\n ## Highlights\n Bullet points capturing the most significant changes or accomplishments.\n\n ## TODOs\n List of TODOs that is inferred from the changes and the content of the changes.\n Make it short, do not force it, only strong call to action data should be included.\n Use - [ ] syntax for the TODOs.\n\n Rules:\n - Do NOT include the heading \"Daily Summary\" — the document already has a title.\n - Be concise. Each bullet should be one sentence.\n - If a previous summary is provided, note what changed since then.\n - Try to pull actionable points from the changes and the context of the changes.\n - Output raw markdown only, no wrapping code fences.\n`;\n\nconst MarkdownDocument = Schema.Struct({\n name: Schema.optional(Schema.String),\n content: Ref.Ref(Text.Text),\n}).pipe(Type.object({ typename: 'org.dxos.type.document', version: '0.1.0' }));\n\ntype MarkdownDoc = Schema.Schema.Type<typeof MarkdownDocument>;\n\nconst makeMarkdownDoc = ({ name, content }: { name: string; content: string }) => {\n const doc = Obj.make(MarkdownDocument, { name, content: Ref.make(Text.make(content)) });\n Obj.setParent(doc.content.target!, doc);\n return doc;\n};\n\nexport default GenerateSummary.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* ({ previousSummary, lookbackHours }) {\n const hours = lookbackHours ?? DEFAULT_LOOKBACK_HOURS;\n const cutoff = Date.now() - hours * 60 * 60 * 1000;\n const now = new Date();\n const dateLabel = now.toLocaleDateString('en-US', { month: 'long', day: 'numeric' });\n const docName = `${SUMMARY_TITLE_PREFIX} ${dateLabel}`;\n\n const recentObjects = yield* Database.runQuery(Filter.updated({ after: cutoff }));\n\n const objectDescriptions = recentObjects.map((obj) => {\n return JSON.stringify(Obj.toJSON(obj));\n });\n\n const content = yield* summarizeWithAi({\n dateLabel,\n objectDescriptions,\n previousSummary,\n hours,\n });\n\n const existingDoc = yield* findExistingDaySummary(docName);\n\n let doc;\n if (existingDoc) {\n yield* updateDocContent(existingDoc, content);\n doc = existingDoc;\n } else {\n doc = makeMarkdownDoc({ name: docName, content });\n const summariesCollection = yield* findOrCreateSummariesCollection();\n yield* CollectionModel.add({ object: doc, target: summariesCollection });\n }\n\n return {\n id: Obj.getDXN(doc).toString(),\n objectCount: recentObjects.length,\n date: dateLabel,\n };\n },\n Effect.provide(\n Layer.mergeAll(\n AiService.model('@anthropic/claude-haiku-4-5'),\n ToolResolverService.layerEmpty,\n ToolExecutionService.layerEmpty,\n TracingService.layerNoop,\n FunctionInvocationService.layerNotAvailable,\n ),\n ),\n ),\n ),\n);\n\nconst summarizeWithAi = Effect.fn(function* ({\n dateLabel,\n objectDescriptions,\n previousSummary,\n hours,\n}: {\n dateLabel: string;\n objectDescriptions: string[];\n previousSummary?: string;\n hours: number;\n}) {\n const userContent = [\n `Date: ${dateLabel}`,\n `Time window: last ${hours} hours`,\n `Total objects modified: ${objectDescriptions.length}`,\n '',\n 'Modified objects:',\n ...objectDescriptions,\n ...(previousSummary ? ['', 'Previous summary for context:', previousSummary] : []),\n ].join('\\n');\n\n const { text } = yield* LanguageModel.generateText({\n prompt: Prompt.fromMessages([\n Prompt.systemMessage({ content: SUMMARY_STRUCTURE }),\n Prompt.userMessage({ content: [Prompt.makePart('text', { text: userContent })] }),\n ]),\n });\n\n return text;\n});\n\nconst findExistingDaySummary = Effect.fn(function* (docName: string) {\n const docs = yield* Database.runQuery(Query.type(MarkdownDocument, { name: docName }));\n return docs.length > 0 ? docs[0] : null;\n});\n\nconst updateDocContent = Effect.fn(function* (doc: MarkdownDoc, newContent: string) {\n const textRef = doc.content;\n if (Ref.isRef(textRef)) {\n const text: Text.Text | undefined = yield* Effect.promise(() => textRef.load());\n if (text) {\n Obj.change(text, (mutable) => {\n mutable.content = newContent;\n });\n return;\n }\n }\n Obj.change(doc, (mutable) => {\n mutable.content = Ref.make(Text.make(newContent));\n });\n});\n\nconst findOrCreateSummariesCollection = Effect.fn(function* () {\n const collections = yield* Database.runQuery(Query.type(Collection.Collection, { name: SUMMARIES_COLLECTION_NAME }));\n\n if (collections.length > 0) {\n return collections[0];\n }\n\n const collection = Collection.make({ name: SUMMARIES_COLLECTION_NAME });\n yield* CollectionModel.add({ object: collection });\n return collection;\n});\n"],
5
- "mappings": ";;;;;AAIA,YAAYA,mBAAmB;AAC/B,YAAYC,YAAY;AACxB,YAAYC,YAAY;AACxB,YAAYC,WAAW;AACvB,YAAYC,YAAY;AAExB,SAASC,WAAWC,sBAAsBC,2BAA2B;AACrE,SAASC,YAAYC,UAAUC,QAAQC,KAAKC,OAAOC,KAAKC,YAAY;AACpE,SAASC,2BAA2BC,sBAAsB;AAC1D,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAChC,SAASC,YAAY;AAIrB,IAAMC,yBAAyB;AAC/B,IAAMC,4BAA4B;AAClC,IAAMC,uBAAuB;AAMtB,IAAMC,oBAAoBC;;;;;;;;;;;;;;;;;;;;;;;AAwBjC,IAAMC,mBAA0BC,cAAO;EACrCC,MAAaC,gBAAgBC,aAAM;EACnCC,SAASC,IAAIA,IAAIC,KAAKA,IAAI;AAC5B,CAAA,EAAGC,KAAKC,KAAKC,OAAO;EAAEC,UAAU;EAA0BC,SAAS;AAAQ,CAAA,CAAA;AAI3E,IAAMC,kBAAkB,CAAC,EAAEX,MAAMG,QAAO,MAAqC;AAC3E,QAAMS,MAAMC,IAAIC,KAAKhB,kBAAkB;IAAEE;IAAMG,SAASC,I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UAAAA,CAAAA;EACvC,CAAA;AACF,CAAA;AAEA,IAAMjC,kCAAyCoB,UAAG,aAAA;AAChD,QAAMoB,cAAc,OAAOxD,SAASC,SAAS8C,MAAMC,KAAKS,WAAWA,YAAY;IAAE1F,MAAMN;EAA0B,CAAA,CAAA;AAEjH,MAAI+F,YAAYjC,SAAS,GAAG;AAC1B,WAAOiC,YAAY,CAAA;EACrB;AAEA,QAAME,aAAaD,WAAW5E,KAAK;IAAEd,MAAMN;EAA0B,CAAA;AACrE,SAAOwD,gBAAgBC,IAAI;IAAE3C,QAAQmF;EAAW,CAAA;AAChD,SAAOA;AACT,CAAA;",
6
- "names": ["LanguageModel", "Prompt", "Effect", "Layer", "Schema", "AiService", "ToolExecutionService", "ToolResolverService", "Collection", "Database", "Filter", "Obj", "Query", "Ref", "Type", "FunctionInvocationService", "TracingService", "Operation", "Text", "CollectionModel", "trim", "DEFAULT_LOOKBACK_HOURS", "SUMMARIES_COLLECTION_NAME", "SUMMARY_TITLE_PREFIX", "SUMMARY_STRUCTURE", "trim", "MarkdownDocument", "Struct", "name", "optional", "String", "content", "Ref", "Text", "pipe", "Type", "object", "typename", "version", "makeMarkdownDoc", "doc", "Obj", "make", "setParent", "target", "GenerateSummary", "Operation", "withHandler", "fnUntraced", "previousSummary", "lookbackHours", "hours", "cutoff", "Date", "now", "dateLabel", "toLocaleDateString", "month", "day", "docName", "recentObjects", "Database", "runQuery", "Filter", "updated", "after", "objectDescriptions", "map", "obj", "JSON", "stringify", "toJSON", "summarizeWithAi", "existingDoc", "findExistingDaySummary", "updateDocContent", "summariesCollection", "findOrCreateSummariesCollection", "CollectionModel", "add", "id", "getDXN", "toString", "objectCount", "length", "date", "provide", "mergeAll", "AiService", "model", "ToolResolverService", "layerEmpty", "ToolExecutionService", "TracingService", "layerNoop", "FunctionInvocationService", "layerNotAvailable", "fn", "userContent", "join", "text", "generateText", "prompt", "fromMessages", "systemMessage", "userMessage", "makePart", "docs", "Query", "type", "newContent", "textRef", "isRef", "promise", "load", "change", "mutable", "collections", "Collection", "collection"]
7
- }
@@ -1,36 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-2TNDFGQB.mjs";
4
-
5
- // src/capabilities/react-surface/react-surface.tsx
6
- import * as Effect from "effect/Effect";
7
- import React from "react";
8
- import { Capabilities, Capability } from "@dxos/app-framework";
9
- import { Surface } from "@dxos/app-framework/ui";
10
- import { useActiveSpace } from "@dxos/plugin-space";
11
-
12
- // src/containers/index.ts
13
- import { lazy } from "react";
14
- var DailySummarySettings = lazy(() => import("./DailySummarySettings-RF6P6R5M.mjs"));
15
-
16
- // src/capabilities/react-surface/react-surface.tsx
17
- var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
18
- Surface.create({
19
- id: `${meta.id}.space-settings-daily-summary`,
20
- role: "article",
21
- filter: (data) => data.subject === `${meta.id}.space-settings-daily-summary`,
22
- component: () => {
23
- const space = useActiveSpace();
24
- if (!space) {
25
- return null;
26
- }
27
- return /* @__PURE__ */ React.createElement(DailySummarySettings, {
28
- space
29
- });
30
- }
31
- })
32
- ])));
33
- export {
34
- react_surface_default as default
35
- };
36
- //# sourceMappingURL=react-surface-WCGJVZCQ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/containers/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { useActiveSpace } from '@dxos/plugin-space';\n\nimport { DailySummarySettings } from '../../containers';\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: `${meta.id}.space-settings-daily-summary`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}.space-settings-daily-summary`,\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <DailySummarySettings space={space} />;\n },\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const DailySummarySettings: ComponentType<any> = lazy(() => import('./DailySummarySettings'));\n"],
5
- "mappings": ";;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,sBAAsB;;;ACL/B,SAA6BC,YAAY;AAElC,IAAMC,uBAA2CC,KAAK,MAAM,OAAO,qCAAA,CAAA;;;ADQ1E,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,KAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,QAAQC,eAAAA;AACd,UAAI,CAACD,OAAO;AACV,eAAO;MACT;AAEA,aAAO,sBAAA,cAACE,sBAAAA;QAAqBF;;IAC/B;EACF,CAAA;CACD,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "useActiveSpace", "lazy", "DailySummarySettings", "lazy", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "subject", "component", "space", "useActiveSpace", "DailySummarySettings"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/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,wBAuBE"}
@@ -1,3 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,eAAe,qIAA0E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blueprint-definition/blueprint-definition.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,QAAA,MAAM,mBAAmB,gJAGoF,CAAC;AAE9G,eAAe,mBAAmB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const BlueprintDefinition: Capability.LazyCapability<[], Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.BlueprintDefinition>>[], Error>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blueprint-definition/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,yJAAiF,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Capability } from '@dxos/app-framework';
2
- export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAO/D,wBAkBE"}
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2026 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2026 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2026 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));