@dxos/plugin-kanban 0.8.4-main.ae835ea → 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.
- package/dist/lib/browser/blueprints/index.mjs +27 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-A3PBV3S5.mjs +105 -0
- package/dist/lib/browser/chunk-A3PBV3S5.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/delete-card-VPNVIWOA.mjs +32 -0
- package/dist/lib/browser/delete-card-VPNVIWOA.mjs.map +7 -0
- package/dist/lib/browser/delete-card-field-4HHF2GYX.mjs +50 -0
- package/dist/lib/browser/delete-card-field-4HHF2GYX.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +101 -85
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/restore-card-4GG2RYKR.mjs +29 -0
- package/dist/lib/browser/restore-card-4GG2RYKR.mjs.map +7 -0
- package/dist/lib/browser/restore-card-field-3T26ACYX.mjs +48 -0
- package/dist/lib/browser/restore-card-field-3T26ACYX.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +95 -6
- package/dist/lib/browser/types/index.mjs.map +4 -4
- package/dist/lib/node-esm/blueprints/index.mjs +28 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6LELYA2G.mjs +106 -0
- package/dist/lib/node-esm/chunk-6LELYA2G.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/delete-card-5PW5OMFN.mjs +33 -0
- package/dist/lib/node-esm/delete-card-5PW5OMFN.mjs.map +7 -0
- package/dist/lib/node-esm/delete-card-field-KPJU2AQ3.mjs +51 -0
- package/dist/lib/node-esm/delete-card-field-KPJU2AQ3.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +101 -85
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/restore-card-X2TKMU5A.mjs +30 -0
- package/dist/lib/node-esm/restore-card-X2TKMU5A.mjs.map +7 -0
- package/dist/lib/node-esm/restore-card-field-IUTL4RTR.mjs +49 -0
- package/dist/lib/node-esm/restore-card-field-IUTL4RTR.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +95 -6
- package/dist/lib/node-esm/types/index.mjs.map +4 -4
- package/dist/types/src/KanbanPlugin.d.ts +2 -1
- package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/kanban-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition.d.ts +3 -2
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -4
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +6 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +65 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts +72 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +10 -0
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +9 -0
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/index.d.ts +2 -0
- package/dist/types/src/components/KanbanBoard/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts +6 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts +79 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanContainer/index.d.ts +3 -0
- package/dist/types/src/containers/KanbanContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanViewEditor/KanbanViewEditor.d.ts +6 -0
- package/dist/types/src/containers/KanbanViewEditor/KanbanViewEditor.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanViewEditor/index.d.ts +3 -0
- package/dist/types/src/containers/KanbanViewEditor/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +6 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useEchoChangeCallback.d.ts +13 -0
- package/dist/types/src/hooks/useEchoChangeCallback.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanBoardModel.d.ts +16 -0
- package/dist/types/src/hooks/useKanbanBoardModel.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanBoardModel.test.d.ts +2 -0
- package/dist/types/src/hooks/useKanbanBoardModel.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts +22 -0
- package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts +19 -0
- package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useProjectionModel.d.ts +15 -0
- package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +52 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/delete-card-field.d.ts +5 -0
- package/dist/types/src/operations/delete-card-field.d.ts.map +1 -0
- package/dist/types/src/operations/delete-card.d.ts +5 -0
- package/dist/types/src/operations/delete-card.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/restore-card-field.d.ts +5 -0
- package/dist/types/src/operations/restore-card-field.d.ts.map +1 -0
- package/dist/types/src/operations/restore-card.d.ts +5 -0
- package/dist/types/src/operations/restore-card.d.ts.map +1 -0
- package/dist/types/src/playwright/board-manager.d.ts +5 -0
- package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
- package/dist/types/src/playwright/playwright.config.d.ts +3 -0
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
- package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
- package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
- package/dist/types/src/testing/KanbanCardTileSimple.d.ts +7 -0
- package/dist/types/src/testing/KanbanCardTileSimple.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +50 -22
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Kanban.d.ts +37 -0
- package/dist/types/src/types/Kanban.d.ts.map +1 -0
- package/dist/types/src/types/constants.d.ts +6 -0
- package/dist/types/src/types/constants.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +3 -51
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +28 -0
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util/arrangement.d.ts +68 -0
- package/dist/types/src/util/arrangement.d.ts.map +1 -0
- package/dist/types/src/util/arrangement.test.d.ts +2 -0
- package/dist/types/src/util/arrangement.test.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +84 -46
- package/src/KanbanPlugin.tsx +49 -56
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/kanban-blueprint.ts +28 -0
- package/src/capabilities/artifact-definition.ts +115 -112
- package/src/capabilities/blueprint-definition.ts +11 -24
- package/src/capabilities/index.ts +9 -4
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/react-surface.tsx +70 -68
- package/src/capabilities/undo-mappings.ts +34 -0
- package/src/components/KanbanBoard/KanbanBoard.stories.tsx +142 -0
- package/src/components/KanbanBoard/KanbanBoard.tsx +193 -0
- package/src/components/KanbanBoard/KanbanCard.tsx +86 -0
- package/src/components/KanbanBoard/KanbanColumn.tsx +69 -0
- package/src/components/KanbanBoard/index.ts +5 -0
- package/src/components/index.ts +1 -2
- package/src/containers/KanbanContainer/KanbanContainer.stories.tsx +269 -0
- package/src/containers/KanbanContainer/KanbanContainer.tsx +96 -0
- package/src/containers/KanbanContainer/index.ts +7 -0
- package/src/containers/KanbanViewEditor/KanbanViewEditor.tsx +63 -0
- package/src/containers/KanbanViewEditor/index.ts +7 -0
- package/src/containers/index.ts +8 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useEchoChangeCallback.ts +30 -0
- package/src/hooks/useKanbanBoardModel.test.ts +235 -0
- package/src/hooks/useKanbanBoardModel.ts +143 -0
- package/src/hooks/useKanbanColumnEventHandler.ts +106 -0
- package/src/hooks/useKanbanItemEventHandler.ts +133 -0
- package/src/hooks/useProjectionModel.ts +58 -0
- package/src/meta.ts +3 -3
- package/src/operations/definitions.ts +63 -0
- package/src/operations/delete-card-field.ts +47 -0
- package/src/operations/delete-card.ts +23 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/restore-card-field.ts +41 -0
- package/src/operations/restore-card.ts +21 -0
- package/src/playwright/board-manager.ts +13 -0
- package/src/playwright/playwright.config.ts +19 -0
- package/src/playwright/smoke.spec.ts +107 -0
- package/src/testing/KanbanCardTileSimple.tsx +82 -0
- package/src/testing/index.ts +5 -0
- package/src/translations.ts +28 -20
- package/src/types/Kanban.ts +71 -0
- package/src/types/constants.ts +9 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +14 -44
- package/src/types/types.ts +35 -0
- package/src/util/arrangement.test.ts +208 -0
- package/src/util/arrangement.ts +167 -0
- package/src/util/index.ts +5 -0
- package/dist/lib/browser/blueprint-definition-UYVX622Q.mjs +0 -28
- package/dist/lib/browser/blueprint-definition-UYVX622Q.mjs.map +0 -7
- package/dist/lib/browser/chunk-3UDST345.mjs +0 -85
- package/dist/lib/browser/chunk-3UDST345.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-VVBNS2TO.mjs +0 -111
- package/dist/lib/browser/intent-resolver-VVBNS2TO.mjs.map +0 -7
- package/dist/lib/browser/react-surface-FNXJ6VJX.mjs +0 -255
- package/dist/lib/browser/react-surface-FNXJ6VJX.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-42P47FUY.mjs +0 -30
- package/dist/lib/node-esm/blueprint-definition-42P47FUY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JBOARUAT.mjs +0 -87
- package/dist/lib/node-esm/chunk-JBOARUAT.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-ACN7UALP.mjs +0 -112
- package/dist/lib/node-esm/intent-resolver-ACN7UALP.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-ZHYHCV5N.mjs +0 -256
- package/dist/lib/node-esm/react-surface-ZHYHCV5N.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/KanbanContainer.d.ts +0 -7
- package/dist/types/src/components/KanbanContainer.d.ts.map +0 -1
- package/dist/types/src/components/KanbanContainer.stories.d.ts +0 -41
- package/dist/types/src/components/KanbanContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/KanbanViewEditor.d.ts +0 -8
- package/dist/types/src/components/KanbanViewEditor.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -71
- package/src/components/KanbanContainer.stories.tsx +0 -193
- package/src/components/KanbanContainer.tsx +0 -95
- package/src/components/KanbanViewEditor.tsx +0 -64
package/package.json
CHANGED
|
@@ -1,30 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-kanban",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.bcb3aa67d6",
|
|
4
4
|
"description": "Kanban DXOS Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#blueprints": "./src/blueprints/index.ts",
|
|
17
|
+
"#capabilities": "./src/capabilities/index.ts",
|
|
18
|
+
"#components": "./src/components/index.ts",
|
|
19
|
+
"#containers": "./src/containers/index.ts",
|
|
20
|
+
"#hooks": "./src/hooks/index.ts",
|
|
21
|
+
"#meta": "./src/meta.ts",
|
|
22
|
+
"#operations": "./src/operations/index.ts",
|
|
23
|
+
"#testing": "./src/testing/index.ts",
|
|
24
|
+
"#types": "./src/types/index.ts"
|
|
25
|
+
},
|
|
11
26
|
"exports": {
|
|
12
27
|
".": {
|
|
13
28
|
"source": "./src/index.ts",
|
|
14
|
-
"types": "./dist/types/src/index.d.ts",
|
|
15
29
|
"browser": "./dist/lib/browser/index.mjs",
|
|
16
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
30
|
+
"node": "./dist/lib/node-esm/index.mjs",
|
|
31
|
+
"types": "./dist/types/src/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./blueprints": {
|
|
34
|
+
"source": "./src/blueprints/index.ts",
|
|
35
|
+
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
36
|
+
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
37
|
+
"types": "./dist/types/src/blueprints/index.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./operations": {
|
|
40
|
+
"source": "./src/operations/index.ts",
|
|
41
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
42
|
+
"node": "./dist/lib/node-esm/operations/index.mjs",
|
|
43
|
+
"types": "./dist/types/src/operations/index.d.ts"
|
|
17
44
|
},
|
|
18
45
|
"./types": {
|
|
19
46
|
"source": "./src/types/index.ts",
|
|
20
|
-
"types": "./dist/types/src/types/index.d.ts",
|
|
21
47
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
22
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
48
|
+
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
49
|
+
"types": "./dist/types/src/types/index.d.ts"
|
|
23
50
|
}
|
|
24
51
|
},
|
|
25
52
|
"types": "dist/types/src/index.d.ts",
|
|
26
53
|
"typesVersions": {
|
|
27
54
|
"*": {
|
|
55
|
+
"blueprints": [
|
|
56
|
+
"dist/types/src/blueprints/index.d.ts"
|
|
57
|
+
],
|
|
28
58
|
"types": [
|
|
29
59
|
"dist/types/src/types/index.d.ts"
|
|
30
60
|
]
|
|
@@ -35,51 +65,59 @@
|
|
|
35
65
|
"src"
|
|
36
66
|
],
|
|
37
67
|
"dependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"effect": "3.
|
|
41
|
-
"@dxos/ai": "0.8.4-main.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/react-
|
|
58
|
-
"@dxos/react-ui
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/plugin-
|
|
68
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
69
|
+
"@radix-ui/react-context": "1.1.1",
|
|
70
|
+
"effect": "3.20.0",
|
|
71
|
+
"@dxos/ai": "0.8.4-main.bcb3aa67d6",
|
|
72
|
+
"@dxos/app-toolkit": "0.8.4-main.bcb3aa67d6",
|
|
73
|
+
"@dxos/app-framework": "0.8.4-main.bcb3aa67d6",
|
|
74
|
+
"@dxos/blueprints": "0.8.4-main.bcb3aa67d6",
|
|
75
|
+
"@dxos/async": "0.8.4-main.bcb3aa67d6",
|
|
76
|
+
"@dxos/echo-atom": "0.8.4-main.bcb3aa67d6",
|
|
77
|
+
"@dxos/functions": "0.8.4-main.bcb3aa67d6",
|
|
78
|
+
"@dxos/echo": "0.8.4-main.bcb3aa67d6",
|
|
79
|
+
"@dxos/effect": "0.8.4-main.bcb3aa67d6",
|
|
80
|
+
"@dxos/log": "0.8.4-main.bcb3aa67d6",
|
|
81
|
+
"@dxos/operation": "0.8.4-main.bcb3aa67d6",
|
|
82
|
+
"@dxos/assistant": "0.8.4-main.bcb3aa67d6",
|
|
83
|
+
"@dxos/plugin-client": "0.8.4-main.bcb3aa67d6",
|
|
84
|
+
"@dxos/plugin-search": "0.8.4-main.bcb3aa67d6",
|
|
85
|
+
"@dxos/plugin-space": "0.8.4-main.bcb3aa67d6",
|
|
86
|
+
"@dxos/random": "0.8.4-main.bcb3aa67d6",
|
|
87
|
+
"@dxos/react-client": "0.8.4-main.bcb3aa67d6",
|
|
88
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
89
|
+
"@dxos/react-ui-menu": "0.8.4-main.bcb3aa67d6",
|
|
90
|
+
"@dxos/react-ui-form": "0.8.4-main.bcb3aa67d6",
|
|
91
|
+
"@dxos/invariant": "0.8.4-main.bcb3aa67d6",
|
|
92
|
+
"@dxos/plugin-graph": "0.8.4-main.bcb3aa67d6",
|
|
93
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.bcb3aa67d6",
|
|
94
|
+
"@dxos/react-ui-stack": "0.8.4-main.bcb3aa67d6",
|
|
95
|
+
"@dxos/schema": "0.8.4-main.bcb3aa67d6",
|
|
96
|
+
"@dxos/types": "0.8.4-main.bcb3aa67d6",
|
|
97
|
+
"@dxos/util": "0.8.4-main.bcb3aa67d6"
|
|
63
98
|
},
|
|
64
99
|
"devDependencies": {
|
|
65
|
-
"@types/react": "~19.2.
|
|
66
|
-
"@types/react-dom": "~19.2.
|
|
67
|
-
"react": "~19.2.
|
|
68
|
-
"react-dom": "~19.2.
|
|
69
|
-
"vite": "7.1.
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
100
|
+
"@types/react": "~19.2.7",
|
|
101
|
+
"@types/react-dom": "~19.2.3",
|
|
102
|
+
"react": "~19.2.3",
|
|
103
|
+
"react-dom": "~19.2.3",
|
|
104
|
+
"vite": "^7.1.11",
|
|
105
|
+
"@dxos/keys": "0.8.4-main.bcb3aa67d6",
|
|
106
|
+
"@dxos/echo-db": "0.8.4-main.bcb3aa67d6",
|
|
107
|
+
"@dxos/plugin-preview": "0.8.4-main.bcb3aa67d6",
|
|
108
|
+
"@dxos/plugin-testing": "0.8.4-main.bcb3aa67d6",
|
|
109
|
+
"@dxos/plugin-theme": "0.8.4-main.bcb3aa67d6",
|
|
110
|
+
"@dxos/storybook-utils": "0.8.4-main.bcb3aa67d6",
|
|
111
|
+
"@dxos/test-utils": "0.8.4-main.bcb3aa67d6",
|
|
112
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.bcb3aa67d6",
|
|
113
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
|
|
76
114
|
},
|
|
77
115
|
"peerDependencies": {
|
|
78
|
-
"effect": "
|
|
79
|
-
"react": "
|
|
80
|
-
"react-dom": "
|
|
81
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
82
|
-
"@dxos/
|
|
116
|
+
"effect": "3.20.0",
|
|
117
|
+
"react": "~19.2.3",
|
|
118
|
+
"react-dom": "~19.2.3",
|
|
119
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
120
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
|
|
83
121
|
},
|
|
84
122
|
"publishConfig": {
|
|
85
123
|
"access": "public"
|
package/src/KanbanPlugin.tsx
CHANGED
|
@@ -2,63 +2,56 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
8
|
-
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
9
|
-
import { translations as kanbanTranslations } from '@dxos/react-ui-kanban';
|
|
10
|
-
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
11
7
|
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
import { Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Annotation, Type } from '@dxos/echo';
|
|
11
|
+
import { Operation } from '@dxos/operation';
|
|
12
|
+
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
13
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
14
|
+
import { ViewModel } from '@dxos/schema';
|
|
15
|
+
|
|
16
|
+
import { meta } from '#meta';
|
|
14
17
|
import { translations } from './translations';
|
|
15
|
-
import { CreateKanbanSchema,
|
|
18
|
+
import { CreateKanbanSchema, Kanban } from '#types';
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
),
|
|
48
|
-
}),
|
|
49
|
-
defineModule({
|
|
50
|
-
id: `${meta.id}/module/react-surface`,
|
|
51
|
-
activatesOn: Events.SetupReactSurface,
|
|
52
|
-
activate: ReactSurface,
|
|
53
|
-
}),
|
|
54
|
-
defineModule({
|
|
55
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
56
|
-
activatesOn: Events.SetupIntentResolver,
|
|
57
|
-
activate: IntentResolver,
|
|
58
|
-
}),
|
|
59
|
-
defineModule({
|
|
60
|
-
id: `${meta.id}/module/blueprint`,
|
|
61
|
-
activatesOn: Events.SetupArtifactDefinition,
|
|
62
|
-
activate: BlueprintDefinition,
|
|
20
|
+
import { BlueprintDefinition, OperationHandler, UndoMappings, ReactSurface } from '#capabilities';
|
|
21
|
+
|
|
22
|
+
export const KanbanPlugin = Plugin.define(meta).pipe(
|
|
23
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
24
|
+
AppPlugin.addMetadataModule({
|
|
25
|
+
metadata: {
|
|
26
|
+
id: Type.getTypename(Kanban.Kanban),
|
|
27
|
+
metadata: {
|
|
28
|
+
icon: Annotation.IconAnnotation.get(Kanban.Kanban).pipe(Option.getOrThrow).icon,
|
|
29
|
+
iconHue: Annotation.IconAnnotation.get(Kanban.Kanban).pipe(Option.getOrThrow).hue ?? 'white',
|
|
30
|
+
inputSchema: CreateKanbanSchema,
|
|
31
|
+
createObject: ((props, options) =>
|
|
32
|
+
Effect.gen(function* () {
|
|
33
|
+
const object = yield* Effect.promise(async () => {
|
|
34
|
+
const { view } = await ViewModel.makeFromDatabase({
|
|
35
|
+
db: options.db,
|
|
36
|
+
typename: props.typename,
|
|
37
|
+
pivotFieldName: props.initialPivotColumn,
|
|
38
|
+
});
|
|
39
|
+
return Kanban.make({ name: props.name, view });
|
|
40
|
+
});
|
|
41
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
42
|
+
object,
|
|
43
|
+
target: options.target,
|
|
44
|
+
hidden: true,
|
|
45
|
+
targetNodeId: options.targetNodeId,
|
|
46
|
+
});
|
|
47
|
+
})) satisfies CreateObject,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
63
50
|
}),
|
|
64
|
-
|
|
51
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
52
|
+
AppPlugin.addOperationHandlerModule({ id: 'undo-mappings', activate: UndoMappings }),
|
|
53
|
+
AppPlugin.addSchemaModule({ schema: [Kanban.Kanban] }),
|
|
54
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
55
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
56
|
+
Plugin.make,
|
|
57
|
+
);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
6
|
+
import { Blueprint, Template } from '@dxos/blueprints';
|
|
7
|
+
import { trim } from '@dxos/util';
|
|
8
|
+
|
|
9
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.kanban';
|
|
10
|
+
|
|
11
|
+
const make = () =>
|
|
12
|
+
Blueprint.make({
|
|
13
|
+
key: BLUEPRINT_KEY,
|
|
14
|
+
name: 'Kanban',
|
|
15
|
+
tools: Blueprint.toolDefinitions({ tools: [] }),
|
|
16
|
+
instructions: Template.make({
|
|
17
|
+
source: trim`
|
|
18
|
+
You can create and update kanban boards to show data in sorted columns defined by schema.
|
|
19
|
+
`,
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
24
|
+
key: BLUEPRINT_KEY,
|
|
25
|
+
make,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default blueprint;
|
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
// ISSUE(burdon): defineArtifact
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
import * as
|
|
8
|
+
import * as Effect from 'effect/Effect';
|
|
9
9
|
import * as Schema from 'effect/Schema';
|
|
10
10
|
|
|
11
11
|
import { ToolResult, createTool } from '@dxos/ai';
|
|
12
|
-
import { Capabilities, type PromiseIntentDispatcher
|
|
12
|
+
import { Capabilities, Capability, type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
13
13
|
import { createArtifactElement } from '@dxos/assistant';
|
|
14
14
|
import { defineArtifact } from '@dxos/blueprints';
|
|
15
15
|
import { Obj, Query } from '@dxos/echo';
|
|
16
|
+
import { View } from '@dxos/echo';
|
|
16
17
|
import { invariant } from '@dxos/invariant';
|
|
17
|
-
import {
|
|
18
|
-
import { Filter, type Space
|
|
19
|
-
import {
|
|
20
|
-
import { DataType } from '@dxos/schema';
|
|
18
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
19
|
+
import { Filter, type Space } from '@dxos/react-client/echo';
|
|
20
|
+
import { ViewModel } from '@dxos/schema';
|
|
21
21
|
import { isNonNullable } from '@dxos/util';
|
|
22
22
|
|
|
23
|
-
import { meta } from '
|
|
24
|
-
import {
|
|
23
|
+
import { meta } from '#meta';
|
|
24
|
+
import { Kanban } from '#types';
|
|
25
25
|
|
|
26
26
|
const QualifiedId = Schema.String.annotations({
|
|
27
27
|
description: 'The fully qualified ID of the kanban `spaceID:objectID`',
|
|
@@ -34,115 +34,118 @@ declare global {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export default () =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
export default Capability.makeModule(() =>
|
|
38
|
+
Effect.sync(() => {
|
|
39
|
+
const definition = defineArtifact({
|
|
40
|
+
id: `artifact:${meta.id}`,
|
|
41
|
+
name: meta.name,
|
|
42
|
+
instructions: `
|
|
42
43
|
- Before adding items to a kanban board, inspect the board to see its schema
|
|
43
44
|
- When adding items, you must not include the 'id' field -- it is automatically generated
|
|
44
45
|
- BEFORE adding items, always make sure the board has been shown to the user!
|
|
45
46
|
`,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
schema: Kanban.Kanban,
|
|
48
|
+
tools: [
|
|
49
|
+
createTool(meta.id, {
|
|
50
|
+
name: 'create',
|
|
51
|
+
description: `
|
|
51
52
|
Create a new kanban board using an existing schema.
|
|
52
53
|
Use schema_create first to create a schema, or schema_list to choose an existing one.`,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
pivotColumn: Schema.optional(Schema.String).annotations({
|
|
59
|
-
description: 'Optional field name to use as the column pivot.',
|
|
60
|
-
}),
|
|
61
|
-
}),
|
|
62
|
-
execute: async ({ typename, pivotColumn }, { extensions }) => {
|
|
63
|
-
invariant(extensions?.space, 'No space');
|
|
64
|
-
invariant(extensions?.dispatch, 'No intent dispatcher');
|
|
65
|
-
|
|
66
|
-
// Validate schema exists first
|
|
67
|
-
const schema = await extensions.space.db.schemaRegistry.query({ typename }).firstOrUndefined();
|
|
68
|
-
if (!schema) {
|
|
69
|
-
return ToolResult.Error(`Schema not found: ${typename}`);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const intent = Function.pipe(
|
|
73
|
-
createIntent(KanbanAction.Create, {
|
|
74
|
-
space: extensions.space,
|
|
75
|
-
typename,
|
|
76
|
-
initialPivotColumn: pivotColumn,
|
|
54
|
+
caption: 'Creating kanban board...',
|
|
55
|
+
schema: Schema.Struct({
|
|
56
|
+
typename: Schema.String.annotations({
|
|
57
|
+
description: 'The fully qualified name of the record type to use for the kanban cards.',
|
|
77
58
|
}),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const { data, error } = await extensions.dispatch(intent);
|
|
82
|
-
if (!data || error) {
|
|
83
|
-
return ToolResult.Error(error?.message ?? 'Failed to create kanban board');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return ToolResult.Success(createArtifactElement(data.id));
|
|
87
|
-
},
|
|
88
|
-
}),
|
|
89
|
-
createTool(meta.id, {
|
|
90
|
-
name: 'list',
|
|
91
|
-
description: 'List all kanban boards in the current space.',
|
|
92
|
-
caption: 'Listing kanban boards...',
|
|
93
|
-
schema: Schema.Struct({}),
|
|
94
|
-
execute: async (_input, { extensions }) => {
|
|
95
|
-
invariant(extensions?.space, 'No space');
|
|
96
|
-
const space = extensions.space;
|
|
97
|
-
const { objects } = await space.db.query(Filter.type(DataType.View)).run();
|
|
98
|
-
|
|
99
|
-
const boardInfo = await Promise.all(
|
|
100
|
-
objects.map(async (view) => {
|
|
101
|
-
const kanban = await view.presentation.load();
|
|
102
|
-
if (!Obj.instanceOf(KanbanView, kanban)) {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return {
|
|
107
|
-
id: fullyQualifiedId(view),
|
|
108
|
-
name: view.name ?? 'Unnamed Kanban',
|
|
109
|
-
typename: view.query.typename,
|
|
110
|
-
};
|
|
59
|
+
pivotColumn: Schema.optional(Schema.String).annotations({
|
|
60
|
+
description: 'Optional field name to use as the column pivot.',
|
|
111
61
|
}),
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
62
|
+
}),
|
|
63
|
+
execute: async ({ typename, pivotColumn }, { extensions }) => {
|
|
64
|
+
invariant(extensions?.space, 'No space');
|
|
65
|
+
invariant(extensions?.invoke, 'No operation invoker');
|
|
66
|
+
|
|
67
|
+
// Validate schema exists first
|
|
68
|
+
const schema = await extensions.space.db.schemaRegistry.query({ typename }).firstOrUndefined();
|
|
69
|
+
if (!schema) {
|
|
70
|
+
return ToolResult.Error(`Schema not found: ${typename}`);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const { view } = await ViewModel.makeFromDatabase({
|
|
74
|
+
db: extensions.space.db,
|
|
75
|
+
typename,
|
|
76
|
+
pivotFieldName: pivotColumn,
|
|
77
|
+
});
|
|
78
|
+
const kanban = Kanban.make({ view });
|
|
79
|
+
|
|
80
|
+
const { error } = await extensions.invoke(SpaceOperation.AddObject, {
|
|
81
|
+
target: extensions.space,
|
|
82
|
+
object: kanban,
|
|
83
|
+
});
|
|
84
|
+
if (error) {
|
|
85
|
+
return ToolResult.Error(error?.message ?? 'Failed to add kanban board to space');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return ToolResult.Success(createArtifactElement(kanban.id));
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
createTool(meta.id, {
|
|
92
|
+
name: 'list',
|
|
93
|
+
description: 'List all kanban boards in the current space.',
|
|
94
|
+
caption: 'Listing kanban boards...',
|
|
95
|
+
schema: Schema.Struct({}),
|
|
96
|
+
execute: async (_input, { extensions }) => {
|
|
97
|
+
invariant(extensions?.space, 'No space');
|
|
98
|
+
const space = extensions.space;
|
|
99
|
+
const { objects } = await space.db.query(Filter.type(View.View)).run();
|
|
100
|
+
|
|
101
|
+
const boardInfo = await Promise.all(
|
|
102
|
+
objects.map(async (view) => {
|
|
103
|
+
const kanban = await view.presentation.load();
|
|
104
|
+
if (!Obj.instanceOf(Kanban.Kanban, kanban)) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
id: Obj.getDXN(view).toString(),
|
|
110
|
+
name: view.name ?? 'Unnamed Kanban',
|
|
111
|
+
typename: view.query.typename,
|
|
112
|
+
};
|
|
113
|
+
}),
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
return ToolResult.Success(boardInfo.filter(isNonNullable));
|
|
117
|
+
},
|
|
118
|
+
}),
|
|
119
|
+
createTool(meta.id, {
|
|
120
|
+
name: 'inspect',
|
|
121
|
+
description: 'Get details about a specific kanban board.',
|
|
122
|
+
caption: 'Inspecting kanban board...',
|
|
123
|
+
schema: Schema.Struct({ id: QualifiedId }),
|
|
124
|
+
execute: async ({ id }, { extensions }) => {
|
|
125
|
+
invariant(extensions?.space, 'No space');
|
|
126
|
+
const space = extensions.space;
|
|
127
|
+
const view = (await space.db
|
|
128
|
+
// TODO(wittjosiah): Filter.and should aggregate type
|
|
129
|
+
.query(Query.select(Filter.and(Filter.type(View.View), Filter.id(id))))
|
|
130
|
+
.first()) as View.View;
|
|
131
|
+
|
|
132
|
+
const kanban = await view.presentation.load();
|
|
133
|
+
invariant(Obj.instanceOf(Kanban.Kanban, kanban));
|
|
134
|
+
|
|
135
|
+
const typename = view.query.typename;
|
|
136
|
+
const schema = await space.db.schemaRegistry.query({ typename }).firstOrUndefined();
|
|
137
|
+
invariant(schema);
|
|
138
|
+
|
|
139
|
+
return ToolResult.Success({
|
|
140
|
+
schema,
|
|
141
|
+
columnField: view.projection.pivotFieldId,
|
|
142
|
+
viewFields: view.projection.fields,
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
}),
|
|
146
|
+
],
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
return Capability.contributes(Capabilities.ArtifactDefinition, definition);
|
|
150
|
+
}),
|
|
151
|
+
);
|
|
@@ -2,29 +2,16 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { Blueprint, Template } from '@dxos/blueprints';
|
|
7
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
8
|
-
import { trim } from '@dxos/util';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
tools: Blueprint.toolDefinitions({ functions, tools }),
|
|
22
|
-
instructions: Template.make({
|
|
23
|
-
source: trim`
|
|
24
|
-
You can create and update kanban boards to show data in sorted columns defined by schema.
|
|
25
|
-
`,
|
|
26
|
-
}),
|
|
27
|
-
}),
|
|
28
|
-
),
|
|
29
|
-
];
|
|
30
|
-
};
|
|
10
|
+
import { KanbanBlueprint } from '#blueprints';
|
|
11
|
+
|
|
12
|
+
const blueprintDefinition = Capability.makeModule<
|
|
13
|
+
[],
|
|
14
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
|
|
15
|
+
>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, KanbanBlueprint)]));
|
|
16
|
+
|
|
17
|
+
export default blueprintDefinition;
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
6
7
|
|
|
7
|
-
export const BlueprintDefinition = lazy(() => import('./blueprint-definition'));
|
|
8
|
-
export const
|
|
9
|
-
|
|
8
|
+
export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
|
|
9
|
+
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
10
|
+
'OperationHandler',
|
|
11
|
+
() => import('./operation-handler'),
|
|
12
|
+
);
|
|
13
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
14
|
+
export const UndoMappings = Capability.lazy('UndoMappings', () => import('./undo-mappings'));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright 2025 DXOS.org
|
|
2
|
+
|
|
3
|
+
import * as Effect from 'effect/Effect';
|
|
4
|
+
|
|
5
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
6
|
+
import type { OperationHandlerSet } from '@dxos/operation';
|
|
7
|
+
|
|
8
|
+
import { KanbanOperationHandlerSet } from '#operations';
|
|
9
|
+
|
|
10
|
+
export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
|
|
11
|
+
Effect.fnUntraced(function* () {
|
|
12
|
+
return Capability.contributes(Capabilities.OperationHandler, KanbanOperationHandlerSet);
|
|
13
|
+
}),
|
|
14
|
+
);
|