@dxos/plugin-pipeline 0.8.4-main.c85a9c8dae → 0.8.4-main.fcfe5033a5

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 (101) hide show
  1. package/dist/lib/browser/index.mjs +63 -74
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/types/index.mjs +0 -9
  5. package/dist/types/src/PipelinePlugin.d.ts.map +1 -1
  6. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  7. package/dist/types/src/capabilities/index.d.ts +3 -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/components/PipelineComponent/PipelineColumn.d.ts.map +1 -0
  11. package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +49 -0
  12. package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -0
  13. package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +43 -0
  14. package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -0
  15. package/dist/types/src/components/PipelineComponent/index.d.ts +3 -0
  16. package/dist/types/src/components/PipelineComponent/index.d.ts.map +1 -0
  17. package/dist/types/src/components/index.d.ts +0 -1
  18. package/dist/types/src/components/index.d.ts.map +1 -1
  19. package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts +3 -3
  20. package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts.map +1 -1
  21. package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts +29 -28
  22. package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts.map +1 -1
  23. package/dist/types/src/containers/PipelineContainer/index.d.ts +1 -2
  24. package/dist/types/src/containers/PipelineContainer/index.d.ts.map +1 -1
  25. package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts +11 -0
  26. package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts.map +1 -0
  27. package/dist/types/src/containers/PipelineProperties/index.d.ts +2 -0
  28. package/dist/types/src/containers/PipelineProperties/index.d.ts.map +1 -0
  29. package/dist/types/src/containers/index.d.ts +1 -1
  30. package/dist/types/src/containers/index.d.ts.map +1 -1
  31. package/dist/types/src/hooks/usePipelineBoardModel.d.ts.map +1 -1
  32. package/dist/types/src/templates/research.d.ts.map +1 -1
  33. package/dist/types/src/translations.d.ts +22 -21
  34. package/dist/types/src/translations.d.ts.map +1 -1
  35. package/dist/types/src/types/index.d.ts +0 -2
  36. package/dist/types/src/types/index.d.ts.map +1 -1
  37. package/dist/types/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +52 -43
  39. package/src/PipelinePlugin.tsx +20 -19
  40. package/src/capabilities/app-graph-builder.ts +40 -0
  41. package/src/capabilities/index.ts +4 -3
  42. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +16 -15
  43. package/src/components/{PipelineColumn.tsx → PipelineComponent/PipelineColumn.tsx} +64 -33
  44. package/src/components/{PipelineComponent.stories.tsx → PipelineComponent/PipelineComponent.stories.tsx} +20 -18
  45. package/src/components/{PipelineComponent.tsx → PipelineComponent/PipelineComponent.tsx} +22 -13
  46. package/src/components/PipelineComponent/index.ts +6 -0
  47. package/src/components/index.ts +0 -1
  48. package/src/containers/PipelineContainer/PipelineContainer.stories.tsx +30 -30
  49. package/src/containers/PipelineContainer/PipelineContainer.tsx +12 -13
  50. package/src/containers/PipelineContainer/index.ts +1 -3
  51. package/src/containers/{PipelineObjectSettings/PipelineObjectSettings.tsx → PipelineProperties/PipelineProperties.tsx} +16 -16
  52. package/src/containers/PipelineProperties/index.ts +5 -0
  53. package/src/containers/index.ts +1 -1
  54. package/src/hooks/usePipelineBoardModel.ts +1 -1
  55. package/src/meta.ts +1 -1
  56. package/src/templates/research.ts +6 -5
  57. package/src/translations.ts +22 -21
  58. package/src/types/index.ts +0 -3
  59. package/dist/lib/browser/PipelineContainer-2ZYSZATA.mjs +0 -320
  60. package/dist/lib/browser/PipelineContainer-2ZYSZATA.mjs.map +0 -7
  61. package/dist/lib/browser/PipelineObjectSettings-D36OYVHW.mjs +0 -224
  62. package/dist/lib/browser/PipelineObjectSettings-D36OYVHW.mjs.map +0 -7
  63. package/dist/lib/browser/app-graph-builder-NUJB33F7.mjs +0 -65
  64. package/dist/lib/browser/app-graph-builder-NUJB33F7.mjs.map +0 -7
  65. package/dist/lib/browser/chunk-N6FZHYWT.mjs +0 -42
  66. package/dist/lib/browser/chunk-N6FZHYWT.mjs.map +0 -7
  67. package/dist/lib/browser/chunk-QWNKLHBY.mjs +0 -28
  68. package/dist/lib/browser/chunk-QWNKLHBY.mjs.map +0 -7
  69. package/dist/lib/browser/react-surface-ZGQVH4VX.mjs +0 -60
  70. package/dist/lib/browser/react-surface-ZGQVH4VX.mjs.map +0 -7
  71. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  72. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  73. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  74. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -2
  75. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  76. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  77. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  78. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  79. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  80. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  81. package/dist/types/src/components/PipelineColumn.d.ts.map +0 -1
  82. package/dist/types/src/components/PipelineComponent.d.ts +0 -47
  83. package/dist/types/src/components/PipelineComponent.d.ts.map +0 -1
  84. package/dist/types/src/components/PipelineComponent.stories.d.ts +0 -42
  85. package/dist/types/src/components/PipelineComponent.stories.d.ts.map +0 -1
  86. package/dist/types/src/containers/PipelineObjectSettings/PipelineObjectSettings.d.ts +0 -11
  87. package/dist/types/src/containers/PipelineObjectSettings/PipelineObjectSettings.d.ts.map +0 -1
  88. package/dist/types/src/containers/PipelineObjectSettings/index.d.ts +0 -3
  89. package/dist/types/src/containers/PipelineObjectSettings/index.d.ts.map +0 -1
  90. package/dist/types/src/types/PipelineAction.d.ts +0 -25
  91. package/dist/types/src/types/PipelineAction.d.ts.map +0 -1
  92. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -51
  93. package/src/capabilities/app-graph-builder/index.ts +0 -7
  94. package/src/capabilities/operation-resolver/index.ts +0 -5
  95. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -29
  96. package/src/capabilities/react-surface/index.ts +0 -7
  97. package/src/containers/PipelineObjectSettings/index.ts +0 -7
  98. package/src/types/PipelineAction.ts +0 -29
  99. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  100. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  101. /package/dist/types/src/components/{PipelineColumn.d.ts → PipelineComponent/PipelineColumn.d.ts} +0 -0
@@ -1,65 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-QWNKLHBY.mjs";
4
-
5
- // src/capabilities/app-graph-builder/app-graph-builder.ts
6
- import * as Effect from "effect/Effect";
7
- import { Capability } from "@dxos/app-framework";
8
- import { AppCapabilities } from "@dxos/app-toolkit";
9
- import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
10
- import { GraphBuilder } from "@dxos/plugin-graph";
11
- import { Pipeline } from "@dxos/types";
12
- var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
13
- const extensions = yield* Effect.all([
14
- GraphBuilder.createTypeExtension({
15
- id: `${meta.id}/triggers`,
16
- type: Pipeline.Pipeline,
17
- connector: (pipeline) => {
18
- const nodeId = pipeline.id;
19
- return Effect.succeed([
20
- {
21
- id: [
22
- nodeId,
23
- "invocations"
24
- ].join(ATTENDABLE_PATH_SEPARATOR),
25
- type: PLANK_COMPANION_TYPE,
26
- data: "invocations",
27
- properties: {
28
- label: [
29
- "pipeline invocations label",
30
- {
31
- ns: meta.id
32
- }
33
- ],
34
- icon: "ph--clock-countdown--regular",
35
- disposition: "hidden"
36
- }
37
- },
38
- {
39
- id: [
40
- nodeId,
41
- "automation"
42
- ].join(ATTENDABLE_PATH_SEPARATOR),
43
- type: PLANK_COMPANION_TYPE,
44
- data: "automation",
45
- properties: {
46
- label: [
47
- "pipeline automation label",
48
- {
49
- ns: meta.id
50
- }
51
- ],
52
- icon: "ph--lightning--regular",
53
- disposition: "hidden"
54
- }
55
- }
56
- ]);
57
- }
58
- })
59
- ]);
60
- return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
61
- }));
62
- export {
63
- app_graph_builder_default as default
64
- };
65
- //# sourceMappingURL=app-graph-builder-NUJB33F7.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { GraphBuilder } from '@dxos/plugin-graph';\nimport { Pipeline } from '@dxos/types';\n\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n GraphBuilder.createTypeExtension({\n id: `${meta.id}/triggers`,\n type: Pipeline.Pipeline,\n connector: (pipeline) => {\n const nodeId = pipeline.id;\n return Effect.succeed([\n {\n id: [nodeId, 'invocations'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'invocations',\n properties: {\n label: ['pipeline invocations label', { ns: meta.id }],\n icon: 'ph--clock-countdown--regular',\n disposition: 'hidden',\n },\n },\n {\n id: [nodeId, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'automation',\n properties: {\n label: ['pipeline automation label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n disposition: 'hidden',\n },\n },\n ]);\n },\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
5
- "mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,2BAA2BC,4BAA4B;AAChE,SAASC,oBAAoB;AAC7B,SAASC,gBAAgB;AAIzB,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCC,aAAaC,oBAAoB;MAC/BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,MAAMC,SAASA;MACfC,WAAW,CAACC,aAAAA;AACV,cAAMC,SAASD,SAASL;AACxB,eAAcO,eAAQ;UACpB;YACEP,IAAI;cAACM;cAAQ;cAAeE,KAAKC,yBAAAA;YACjCP,MAAMQ;YACNC,MAAM;YACNC,YAAY;cACVC,OAAO;gBAAC;gBAA8B;kBAAEC,IAAIb,KAAKD;gBAAG;;cACpDe,MAAM;cACNC,aAAa;YACf;UACF;UACA;YACEhB,IAAI;cAACM;cAAQ;cAAcE,KAAKC,yBAAAA;YAChCP,MAAMQ;YACNC,MAAM;YACNC,YAAY;cACVC,OAAO;gBAAC;gBAA6B;kBAAEC,IAAIb,KAAKD;gBAAG;;cACnDe,MAAM;cACNC,aAAa;YACf;UACF;SACD;MACH;IACF,CAAA;GACD;AAED,SAAOvB,WAAWwB,YAAYC,gBAAgBC,iBAAiBvB,UAAAA;AACjE,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "AppCapabilities", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "GraphBuilder", "Pipeline", "Capability", "makeModule", "fnUntraced", "extensions", "all", "GraphBuilder", "createTypeExtension", "id", "meta", "type", "Pipeline", "connector", "pipeline", "nodeId", "succeed", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "data", "properties", "label", "ns", "icon", "disposition", "contributes", "AppCapabilities", "AppGraphBuilder"]
7
- }
@@ -1,42 +0,0 @@
1
- import {
2
- __export,
3
- meta
4
- } from "./chunk-QWNKLHBY.mjs";
5
-
6
- // src/types/PipelineAction.ts
7
- var PipelineAction_exports = {};
8
- __export(PipelineAction_exports, {
9
- PipelineOperation: () => PipelineOperation
10
- });
11
- import * as Schema from "effect/Schema";
12
- import { Capability } from "@dxos/app-framework";
13
- import { Collection } from "@dxos/echo";
14
- import { Operation } from "@dxos/operation";
15
- import { SpaceSchema } from "@dxos/react-client/echo";
16
- var PIPELINE_OPERATION = `${meta.id}/operation`;
17
- (function(PipelineOperation2) {
18
- PipelineOperation2.OnCreateSpace = Operation.make({
19
- meta: {
20
- key: `${PIPELINE_OPERATION}/on-create-space`,
21
- name: "On Create Space"
22
- },
23
- services: [
24
- Capability.Service
25
- ],
26
- schema: {
27
- input: Schema.Struct({
28
- space: SpaceSchema,
29
- rootCollection: Collection.Collection,
30
- isDefault: Schema.optional(Schema.Boolean)
31
- }),
32
- output: Schema.Void
33
- }
34
- });
35
- })(PipelineOperation || (PipelineOperation = {}));
36
- var PipelineOperation;
37
-
38
- export {
39
- PipelineOperation,
40
- PipelineAction_exports
41
- };
42
- //# sourceMappingURL=chunk-N6FZHYWT.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/PipelineAction.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Collection } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { SpaceSchema } from '@dxos/react-client/echo';\n\nimport { meta } from '../meta';\n\nconst PIPELINE_OPERATION = `${meta.id}/operation`;\n\nexport namespace PipelineOperation {\n export const OnCreateSpace = Operation.make({\n meta: { key: `${PIPELINE_OPERATION}/on-create-space`, name: 'On Create Space' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n space: SpaceSchema,\n rootCollection: Collection.Collection,\n isDefault: Schema.optional(Schema.Boolean),\n }),\n output: Schema.Void,\n },\n });\n}\n"],
5
- "mappings": ";;;;;;AAAA;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,mBAAmB;AAI5B,IAAMC,qBAAqB,GAAGC,KAAKC,EAAE;UAEpBC,oBAAAA;qBACFC,gBAAgBC,UAAUC,KAAK;IAC1CL,MAAM;MAAEM,KAAK,GAAGP,kBAAAA;MAAsCQ,MAAM;IAAkB;IAC9EC,UAAU;MAACC,WAAWC;;IACtBC,QAAQ;MACNC,OAAcC,cAAO;QACnBC,OAAOC;QACPC,gBAAgBC,WAAWA;QAC3BC,WAAkBC,gBAAgBC,cAAO;MAC3C,CAAA;MACAC,QAAeC;IACjB;EACF,CAAA;AACF,GAbiBpB,sBAAAA,oBAAAA,CAAAA,EAAAA;;",
6
- "names": ["Schema", "Capability", "Collection", "Operation", "SpaceSchema", "PIPELINE_OPERATION", "meta", "id", "PipelineOperation", "OnCreateSpace", "Operation", "make", "key", "name", "services", "Capability", "Service", "schema", "input", "Struct", "space", "SpaceSchema", "rootCollection", "Collection", "isDefault", "optional", "Boolean", "output", "Void"]
7
- }
@@ -1,28 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- // src/meta.ts
8
- import { trim } from "@dxos/util";
9
- var meta = {
10
- id: "dxos.org/plugin/pipeline",
11
- name: "Pipelines",
12
- description: trim`
13
- Pipelines for organizing tasks, milestones, and deliverables.
14
- Track progress across multiple pipelines and coordinate team activities in a structured environment.
15
- `,
16
- icon: "ph--path--regular",
17
- iconHue: "purple",
18
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-pipeline",
19
- tags: [
20
- "labs"
21
- ]
22
- };
23
-
24
- export {
25
- __export,
26
- meta
27
- };
28
- //# sourceMappingURL=chunk-QWNKLHBY.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/pipeline',\n name: 'Pipelines',\n description: trim`\n Pipelines for organizing tasks, milestones, and deliverables.\n Track progress across multiple pipelines and coordinate team activities in a structured environment.\n `,\n icon: 'ph--path--regular',\n iconHue: 'purple',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-pipeline',\n tags: ['labs'],\n};\n"],
5
- "mappings": ";;;;;;;AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;AACT;",
6
- "names": ["trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "tags"]
7
- }
@@ -1,60 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-QWNKLHBY.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 { InvocationTraceContainer } from "@dxos/devtools";
11
- import { Obj } from "@dxos/echo";
12
- import { Panel } from "@dxos/react-ui";
13
- import { Pipeline } from "@dxos/types";
14
-
15
- // src/containers/index.ts
16
- import { lazy } from "react";
17
- var PipelineContainer = lazy(() => import("./PipelineContainer-2ZYSZATA.mjs"));
18
- var PipelineObjectSettings = lazy(() => import("./PipelineObjectSettings-D36OYVHW.mjs"));
19
-
20
- // src/capabilities/react-surface/react-surface.tsx
21
- var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
22
- Surface.create({
23
- id: meta.id,
24
- role: "article",
25
- filter: (data) => Obj.instanceOf(Pipeline.Pipeline, data.subject),
26
- component: ({ data, role }) => /* @__PURE__ */ React.createElement(PipelineContainer, {
27
- role,
28
- subject: data.subject
29
- })
30
- }),
31
- Surface.create({
32
- id: `${meta.id}/companion/invocations`,
33
- role: "article",
34
- filter: (data) => Obj.instanceOf(Pipeline.Pipeline, data.companionTo) && data.subject === "invocations",
35
- component: ({ data, role }) => {
36
- const db = Obj.getDatabase(data.companionTo);
37
- return /* @__PURE__ */ React.createElement(Panel.Root, {
38
- role,
39
- className: "dx-article"
40
- }, /* @__PURE__ */ React.createElement(Panel.Content, {
41
- asChild: true
42
- }, /* @__PURE__ */ React.createElement(InvocationTraceContainer, {
43
- db,
44
- detailAxis: "block"
45
- })));
46
- }
47
- }),
48
- Surface.create({
49
- id: `${meta.id}/object-settings`,
50
- role: "object-settings",
51
- filter: (data) => Obj.instanceOf(Pipeline.Pipeline, data.subject),
52
- component: ({ data }) => /* @__PURE__ */ React.createElement(PipelineObjectSettings, {
53
- pipeline: data.subject
54
- })
55
- })
56
- ])));
57
- export {
58
- react_surface_default as default
59
- };
60
- //# sourceMappingURL=react-surface-ZGQVH4VX.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 2025 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 { InvocationTraceContainer } from '@dxos/devtools';\nimport { Obj } from '@dxos/echo';\nimport { Panel } from '@dxos/react-ui';\nimport { Pipeline } from '@dxos/types';\n\nimport { PipelineContainer, PipelineObjectSettings } 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,\n role: 'article',\n filter: (data): data is { subject: Pipeline.Pipeline } => Obj.instanceOf(Pipeline.Pipeline, data.subject),\n component: ({ data, role }) => <PipelineContainer role={role} subject={data.subject} />,\n }),\n Surface.create({\n id: `${meta.id}/companion/invocations`,\n role: 'article',\n filter: (data): data is { companionTo: Pipeline.Pipeline } =>\n Obj.instanceOf(Pipeline.Pipeline, data.companionTo) && data.subject === 'invocations',\n component: ({ data, role }) => {\n const db = Obj.getDatabase(data.companionTo);\n // TODO(wittjosiah): Filter the invocations to those relevant to the project.\n return (\n <Panel.Root role={role} className='dx-article'>\n <Panel.Content asChild>\n <InvocationTraceContainer db={db} detailAxis='block' />\n </Panel.Content>\n </Panel.Root>\n );\n },\n }),\n Surface.create({\n id: `${meta.id}/object-settings`,\n role: 'object-settings',\n filter: (data): data is { subject: Pipeline.Pipeline } => Obj.instanceOf(Pipeline.Pipeline, data.subject),\n component: ({ data }) => <PipelineObjectSettings pipeline={data.subject} />,\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const PipelineContainer: ComponentType<any> = lazy(() => import('./PipelineContainer'));\nexport const PipelineObjectSettings: ComponentType<any> = lazy(() => import('./PipelineObjectSettings'));\n"],
5
- "mappings": ";;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,gCAAgC;AACzC,SAASC,WAAW;AACpB,SAASC,aAAa;AACtB,SAASC,gBAAgB;;;ACRzB,SAA6BC,YAAY;AAElC,IAAMC,oBAAwCC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAChE,IAAMC,yBAA6CD,KAAK,MAAM,OAAO,uCAAA,CAAA;;;ADU5E,IAAA,wBAAeE,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;IACNC,QAAQ,CAACC,SAAiDC,IAAIC,WAAWC,SAASA,UAAUH,KAAKI,OAAO;IACxGC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAO,sBAAA,cAACQ,mBAAAA;MAAkBR;MAAYM,SAASJ,KAAKI;;EAC9E,CAAA;EACAV,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SACPC,IAAIC,WAAWC,SAASA,UAAUH,KAAKO,WAAW,KAAKP,KAAKI,YAAY;IAC1EC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAE;AACxB,YAAMU,KAAKP,IAAIQ,YAAYT,KAAKO,WAAW;AAE3C,aACE,sBAAA,cAACG,MAAMC,MAAI;QAACb;QAAYc,WAAU;SAChC,sBAAA,cAACF,MAAMG,SAAO;QAACC,SAAAA;SACb,sBAAA,cAACC,0BAAAA;QAAyBP;QAAQQ,YAAW;;IAIrD;EACF,CAAA;EACAtB,QAAQC,OAAO;IACbC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAiDC,IAAIC,WAAWC,SAASA,UAAUH,KAAKI,OAAO;IACxGC,WAAW,CAAC,EAAEL,KAAI,MAAO,sBAAA,cAACiB,wBAAAA;MAAuBC,UAAUlB,KAAKI;;EAClE,CAAA;CACD,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "InvocationTraceContainer", "Obj", "Panel", "Pipeline", "lazy", "PipelineContainer", "lazy", "PipelineObjectSettings", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "Pipeline", "subject", "component", "PipelineContainer", "companionTo", "db", "getDatabase", "Panel", "Root", "className", "Content", "asChild", "InvocationTraceContainer", "detailAxis", "PipelineObjectSettings", "pipeline"]
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;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;;AAKlD,wBAoCE"}
@@ -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,2 +0,0 @@
1
- export { default as OperationResolver } from './operation-resolver';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,5 +0,0 @@
1
- import * as Effect from 'effect/Effect';
2
- import { Capabilities, Capability } from '@dxos/app-framework';
3
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.OperationResolver[]>>, never, never>;
4
- export default _default;
5
- //# sourceMappingURL=operation-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAQ/D,wBAcE"}
@@ -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;;AAU/D,wBAkCE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PipelineColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/PipelineColumn.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAQrE,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEnF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAY5C,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAGvH,eAAO,MAAM,cAAc;oDAAmD,mBAAmB;;CA6DhG,CAAC"}
@@ -1,47 +0,0 @@
1
- import React, { type FC, type PropsWithChildren } from 'react';
2
- import { Obj } from '@dxos/echo';
3
- import { type ToolbarRootProps } from '@dxos/react-ui';
4
- import { type BoardModel } from '@dxos/react-ui-mosaic';
5
- import { type ProjectionModel } from '@dxos/schema';
6
- import { type Pipeline } from '@dxos/types';
7
- type ItemProps = {
8
- item: Obj.Unknown;
9
- projectionModel?: ProjectionModel;
10
- };
11
- type PipelineContextValue = {
12
- Item: FC<ItemProps>;
13
- onAddColumn?: () => void;
14
- };
15
- type PipelineRootProps = PropsWithChildren<PipelineContextValue>;
16
- declare const usePipeline: (consumerName: string) => PipelineContextValue;
17
- type PipelineContentProps = PropsWithChildren<{
18
- model: BoardModel<Pipeline.Column, Obj.Unknown>;
19
- }>;
20
- type PipelineColumnsProps = {
21
- pipeline: Pipeline.Pipeline;
22
- };
23
- export declare const PipelineToolbar: {
24
- (props: ToolbarRootProps): React.JSX.Element;
25
- displayName: string;
26
- };
27
- export declare const PipelineComponent: {
28
- Root: {
29
- ({ children, ...contextValue }: PipelineRootProps): React.JSX.Element;
30
- displayName: string;
31
- };
32
- Content: {
33
- ({ model, children, ...props }: PipelineContentProps): React.JSX.Element;
34
- displayName: string;
35
- };
36
- Columns: {
37
- ({ pipeline }: PipelineColumnsProps): React.JSX.Element;
38
- displayName: string;
39
- };
40
- Toolbar: {
41
- (props: ToolbarRootProps): React.JSX.Element;
42
- displayName: string;
43
- };
44
- };
45
- export { usePipeline };
46
- export type { ItemProps, PipelineContextValue, PipelineRootProps, PipelineContentProps, PipelineColumnsProps };
47
- //# sourceMappingURL=PipelineComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PipelineComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/PipelineComponent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAW,KAAK,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAS,KAAK,UAAU,EAAoC,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAM5C,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAQF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC;IAIpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,KAAK,iBAAiB,GAAG,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;AAIjE,QAAA,MAA4B,WAAW,gDAErC,CAAC;AAcH,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACjD,CAAC,CAAC;AAgBH,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;CAC7B,CAAC;AA2BF,eAAO,MAAM,eAAe;YAAW,gBAAgB;;CAStD,CAAC;AAQF,eAAO,MAAM,iBAAiB;;wCA5EuB,iBAAiB;;;;wCAgBd,oBAAoB;;;;uBAkBrC,oBAAoB;;;;gBAyBpB,gBAAgB;;;CAsBtD,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,42 +0,0 @@
1
- import { type StoryObj } from '@storybook/react-vite';
2
- import { Pipeline } from '@dxos/types';
3
- declare const meta: {
4
- title: string;
5
- decorators: import("@storybook/react").Decorator[];
6
- parameters: {
7
- layout: string;
8
- translations: [{
9
- readonly 'en-US': {
10
- readonly [Pipeline.Pipeline.typename]: {
11
- readonly 'typename label': "Pipeline";
12
- readonly 'typename label_zero': "Pipelines";
13
- readonly 'typename label_one': "Pipeline";
14
- readonly 'typename label_other': "Pipelines";
15
- readonly 'object name placeholder': "New pipeline";
16
- readonly 'rename object label': "Rename pipeline";
17
- readonly 'delete object label': "Delete pipeline";
18
- readonly 'object deleted label': "Pipeline deleted";
19
- };
20
- readonly [meta.id]: {
21
- readonly 'plugin name': "Pipelines";
22
- readonly 'add column label': "Add column";
23
- readonly 'add card label': "Add object";
24
- readonly 'untitled view title': "New view";
25
- readonly 'enumerating tab label': "List";
26
- readonly 'editing tab label': "Edit";
27
- readonly 'views label': "Views";
28
- readonly 'pipeline invocations label': "Invocations";
29
- readonly 'pipeline automation label': "Automations";
30
- readonly 'toggle expand label': "Toggle expand";
31
- readonly 'delete view label': "Delete view";
32
- readonly 'add view label': "Add view";
33
- };
34
- };
35
- }];
36
- };
37
- };
38
- export default meta;
39
- type Story = StoryObj<typeof meta>;
40
- export declare const Default: Story;
41
- export declare const Mutations: Story;
42
- //# sourceMappingURL=PipelineComponent.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PipelineComponent.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/PipelineComponent.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAejE,OAAO,EAAU,QAAQ,EAAE,MAAM,aAAa,CAAC;AA6I/C,QAAA,MAAM,IAAI;;;;;;;yBA3JiC,CAAQ,QAAQ,CAAC,QAE5D,CAAC,QAAQ,CAAC;;;;;;;;;;yBAOA,CAAQ,IAAI,CAAE,EAAC,CAAC;;;;;;;;;;;;;;;;;CA6LgB,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { type ThemedClassName } from '@dxos/react-ui';
3
- import { Pipeline } from '@dxos/types';
4
- export type PipelineObjectSettingsProps = ThemedClassName<{
5
- pipeline: Pipeline.Pipeline;
6
- }>;
7
- /**
8
- * Supports editing the pipeline view.
9
- */
10
- export declare const PipelineObjectSettings: ({ classNames, pipeline }: PipelineObjectSettingsProps) => React.JSX.Element;
11
- //# sourceMappingURL=PipelineObjectSettings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PipelineObjectSettings.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineObjectSettings/PipelineObjectSettings.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAOtE,OAAO,EAAc,KAAK,eAAe,EAAkC,MAAM,gBAAgB,CAAC;AAIlG,OAAO,EAAE,QAAQ,EAAQ,MAAM,aAAa,CAAC;AAY7C,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC;IACxD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;CAC7B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,0BAA0B,2BAA2B,sBA8M3F,CAAC"}
@@ -1,3 +0,0 @@
1
- import { PipelineObjectSettings } from './PipelineObjectSettings';
2
- export default PipelineObjectSettings;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineObjectSettings/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAe,sBAAsB,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import { Capability } from '@dxos/app-framework';
3
- export declare namespace PipelineOperation {
4
- const OnCreateSpace: Omit<{
5
- readonly meta: {
6
- readonly key: `${string}/on-create-space`;
7
- readonly name: "On Create Space";
8
- };
9
- readonly services: readonly [typeof Capability.Service];
10
- readonly schema: {
11
- readonly input: Schema.Struct<{
12
- space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
13
- rootCollection: import("@dxos/echo/Type").Obj<{
14
- readonly name?: string | undefined;
15
- readonly objects: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>[];
16
- }, Schema.Struct.Fields>;
17
- isDefault: Schema.optional<typeof Schema.Boolean>;
18
- }>;
19
- readonly output: typeof Schema.Void;
20
- };
21
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
22
- readonly executionMode: "sync" | "async";
23
- };
24
- }
25
- //# sourceMappingURL=PipelineAction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PipelineAction.d.ts","sourceRoot":"","sources":["../../../../src/types/PipelineAction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AASjD,yBAAiB,iBAAiB,CAAC;IAC1B,MAAM,aAAa;;;;;;;;;;;;;;;;;;;KAWxB,CAAC;CACJ"}
@@ -1,51 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
-
7
- import { Capability } from '@dxos/app-framework';
8
- import { AppCapabilities } from '@dxos/app-toolkit';
9
- import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
10
- import { GraphBuilder } from '@dxos/plugin-graph';
11
- import { Pipeline } from '@dxos/types';
12
-
13
- import { meta } from '../../meta';
14
-
15
- export default Capability.makeModule(
16
- Effect.fnUntraced(function* () {
17
- const extensions = yield* Effect.all([
18
- GraphBuilder.createTypeExtension({
19
- id: `${meta.id}/triggers`,
20
- type: Pipeline.Pipeline,
21
- connector: (pipeline) => {
22
- const nodeId = pipeline.id;
23
- return Effect.succeed([
24
- {
25
- id: [nodeId, 'invocations'].join(ATTENDABLE_PATH_SEPARATOR),
26
- type: PLANK_COMPANION_TYPE,
27
- data: 'invocations',
28
- properties: {
29
- label: ['pipeline invocations label', { ns: meta.id }],
30
- icon: 'ph--clock-countdown--regular',
31
- disposition: 'hidden',
32
- },
33
- },
34
- {
35
- id: [nodeId, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),
36
- type: PLANK_COMPANION_TYPE,
37
- data: 'automation',
38
- properties: {
39
- label: ['pipeline automation label', { ns: meta.id }],
40
- icon: 'ph--lightning--regular',
41
- disposition: 'hidden',
42
- },
43
- },
44
- ]);
45
- },
46
- }),
47
- ]);
48
-
49
- return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
50
- }),
51
- );
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
@@ -1,5 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- export { default as OperationResolver } from './operation-resolver';
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
-
7
- import { Capabilities, Capability } from '@dxos/app-framework';
8
- import { Obj, Ref, Type } from '@dxos/echo';
9
- import { OperationResolver } from '@dxos/operation';
10
- import { ManagedCollection } from '@dxos/schema';
11
- import { Pipeline } from '@dxos/types';
12
-
13
- import { PipelineOperation } from '../../types';
14
-
15
- export default Capability.makeModule(() =>
16
- Effect.succeed(
17
- Capability.contributes(Capabilities.OperationResolver, [
18
- OperationResolver.make({
19
- operation: PipelineOperation.OnCreateSpace,
20
- handler: Effect.fnUntraced(function* ({ rootCollection }) {
21
- const collection = ManagedCollection.makeManagedCollection({ key: Type.getTypename(Pipeline.Pipeline) });
22
- Obj.change(rootCollection, (c) => {
23
- c.objects.push(Ref.make(collection));
24
- });
25
- }),
26
- }),
27
- ]),
28
- ),
29
- );
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { PipelineObjectSettings } from './PipelineObjectSettings';
6
-
7
- export default PipelineObjectSettings;
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Schema from 'effect/Schema';
6
-
7
- import { Capability } from '@dxos/app-framework';
8
- import { Collection } from '@dxos/echo';
9
- import { Operation } from '@dxos/operation';
10
- import { SpaceSchema } from '@dxos/react-client/echo';
11
-
12
- import { meta } from '../meta';
13
-
14
- const PIPELINE_OPERATION = `${meta.id}/operation`;
15
-
16
- export namespace PipelineOperation {
17
- export const OnCreateSpace = Operation.make({
18
- meta: { key: `${PIPELINE_OPERATION}/on-create-space`, name: 'On Create Space' },
19
- services: [Capability.Service],
20
- schema: {
21
- input: Schema.Struct({
22
- space: SpaceSchema,
23
- rootCollection: Collection.Collection,
24
- isDefault: Schema.optional(Schema.Boolean),
25
- }),
26
- output: Schema.Void,
27
- },
28
- });
29
- }