@dxos/plugin-pipeline 0.9.1-main.c7dcc2e112 → 0.10.0
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/neutral/PipelinePlugin.mjs +2 -6
- package/dist/lib/neutral/PipelinePlugin.mjs.map +3 -3
- package/dist/lib/neutral/PipelinePlugin.node.mjs +2 -4
- package/dist/lib/neutral/PipelinePlugin.node.mjs.map +3 -3
- package/dist/lib/neutral/{PipelineProperties-JW7AWWU4.mjs → PipelineProperties-LDD4P4RA.mjs} +3 -3
- package/dist/lib/neutral/PipelineProperties-LDD4P4RA.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +2 -6
- package/dist/lib/neutral/capabilities/index.mjs.map +3 -3
- package/dist/lib/neutral/components/index.mjs.map +1 -1
- package/dist/lib/neutral/containers/index.mjs +1 -1
- package/dist/lib/neutral/{create-object-VIRI2DY5.mjs → create-object-B4FHAFWY.mjs} +2 -7
- package/dist/lib/neutral/create-object-B4FHAFWY.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{react-surface-U7OOZHUQ.mjs → react-surface-G6WO2XOI.mjs} +1 -20
- package/dist/lib/neutral/react-surface-G6WO2XOI.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +0 -2
- package/dist/lib/neutral/translations.mjs.map +2 -2
- package/dist/types/src/PipelinePlugin.d.ts.map +1 -1
- package/dist/types/src/PipelinePlugin.node.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +1 -7
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +0 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +0 -4
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.stories.d.ts +2 -19
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.stories.d.ts +0 -17
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.stories.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -4
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +44 -45
- package/src/PipelinePlugin.node.ts +1 -2
- package/src/PipelinePlugin.test.ts +2 -4
- package/src/PipelinePlugin.tsx +1 -3
- package/src/capabilities/create-object.ts +1 -4
- package/src/capabilities/index.ts +0 -2
- package/src/capabilities/react-surface.tsx +0 -21
- package/src/components/PipelineComponent/PipelineComponent.tsx +1 -1
- package/src/containers/PipelineArticle/PipelineArticle.stories.tsx +2 -7
- package/src/containers/PipelineProperties/PipelineProperties.stories.tsx +2 -7
- package/src/containers/PipelineProperties/PipelineProperties.tsx +2 -2
- package/src/translations.ts +0 -2
- package/dist/lib/neutral/PipelineProperties-JW7AWWU4.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-DULKWFOE.mjs +0 -81
- package/dist/lib/neutral/app-graph-builder-DULKWFOE.mjs.map +0 -7
- package/dist/lib/neutral/chunk-OF66INHQ.mjs +0 -9
- package/dist/lib/neutral/chunk-OF66INHQ.mjs.map +0 -7
- package/dist/lib/neutral/create-object-VIRI2DY5.mjs.map +0 -7
- package/dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs +0 -12
- package/dist/lib/neutral/navigation-resolver-PB6XKEAG.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-U7OOZHUQ.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation-resolver.d.ts +0 -6
- package/dist/types/src/capabilities/navigation-resolver.d.ts.map +0 -1
- package/dist/types/src/paths.d.ts +0 -3
- package/dist/types/src/paths.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -74
- package/src/capabilities/navigation-resolver.ts +0 -18
- package/src/paths.ts +0 -12
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Option from 'effect/Option';
|
|
7
|
-
|
|
8
|
-
import { Capability } from '@dxos/app-framework';
|
|
9
|
-
import { AppCapabilities, AppNode, TypeSection } from '@dxos/app-toolkit';
|
|
10
|
-
import { isSpace } from '@dxos/client/echo';
|
|
11
|
-
import { Operation } from '@dxos/compute';
|
|
12
|
-
import { Type } from '@dxos/echo';
|
|
13
|
-
import { GraphBuilder, Node } from '@dxos/plugin-graph';
|
|
14
|
-
import { SpaceOperation } from '@dxos/plugin-space';
|
|
15
|
-
import { Pipeline } from '@dxos/types';
|
|
16
|
-
|
|
17
|
-
import { meta } from '#meta';
|
|
18
|
-
|
|
19
|
-
import { getPipelinesPath } from '../paths';
|
|
20
|
-
|
|
21
|
-
export default Capability.makeModule(
|
|
22
|
-
Effect.fnUntraced(function* () {
|
|
23
|
-
const extensions = yield* Effect.all([
|
|
24
|
-
TypeSection.createTypeSectionExtension(Pipeline.Pipeline),
|
|
25
|
-
|
|
26
|
-
GraphBuilder.createExtension({
|
|
27
|
-
id: 'pipelinesSectionActions',
|
|
28
|
-
match: (node) => {
|
|
29
|
-
const space = isSpace(node.properties.space) ? node.properties.space : undefined;
|
|
30
|
-
return node.type === Type.getTypename(Pipeline.Pipeline) && space ? Option.some(space) : Option.none();
|
|
31
|
-
},
|
|
32
|
-
actions: (space) =>
|
|
33
|
-
Effect.succeed([
|
|
34
|
-
Node.makeAction({
|
|
35
|
-
id: 'create-pipeline',
|
|
36
|
-
data: () =>
|
|
37
|
-
Operation.invoke(SpaceOperation.OpenCreateObject, {
|
|
38
|
-
target: space.db,
|
|
39
|
-
typename: Type.getTypename(Pipeline.Pipeline),
|
|
40
|
-
targetNodeId: getPipelinesPath(space.db.spaceId),
|
|
41
|
-
}),
|
|
42
|
-
properties: {
|
|
43
|
-
label: ['add-object.label', { ns: Type.getTypename(Pipeline.Pipeline) }],
|
|
44
|
-
icon: 'ph--plus--regular',
|
|
45
|
-
disposition: 'list-item-primary',
|
|
46
|
-
},
|
|
47
|
-
}),
|
|
48
|
-
]),
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
GraphBuilder.createTypeExtension({
|
|
52
|
-
id: 'triggers',
|
|
53
|
-
type: Pipeline.Pipeline,
|
|
54
|
-
connector: () =>
|
|
55
|
-
Effect.succeed([
|
|
56
|
-
AppNode.makeCompanion({
|
|
57
|
-
id: 'invocations',
|
|
58
|
-
label: ['pipeline-invocations.label', { ns: meta.profile.key }],
|
|
59
|
-
icon: 'ph--clock-countdown--regular',
|
|
60
|
-
data: 'invocations',
|
|
61
|
-
}),
|
|
62
|
-
AppNode.makeCompanion({
|
|
63
|
-
id: 'automation',
|
|
64
|
-
label: ['pipeline-automation.label', { ns: meta.profile.key }],
|
|
65
|
-
icon: 'ph--lightning--regular',
|
|
66
|
-
data: 'automation',
|
|
67
|
-
}),
|
|
68
|
-
]),
|
|
69
|
-
}),
|
|
70
|
-
]);
|
|
71
|
-
|
|
72
|
-
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
73
|
-
}),
|
|
74
|
-
);
|
|
@@ -1,18 +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, TypeSection } from '@dxos/app-toolkit';
|
|
9
|
-
import { Pipeline } from '@dxos/types';
|
|
10
|
-
|
|
11
|
-
export default Capability.makeModule(
|
|
12
|
-
Effect.fnUntraced(function* () {
|
|
13
|
-
return Capability.contributes(
|
|
14
|
-
AppCapabilities.NavigationPathResolver,
|
|
15
|
-
TypeSection.createTypeSectionPathResolver(Pipeline.Pipeline),
|
|
16
|
-
);
|
|
17
|
-
}),
|
|
18
|
-
);
|
package/src/paths.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Paths } from '@dxos/app-toolkit';
|
|
6
|
-
import { Pipeline } from '@dxos/types';
|
|
7
|
-
|
|
8
|
-
const { getSectionPath: getPipelinesPath, getObjectPath: getPipelinePath } = Paths.createTypeSectionPaths(
|
|
9
|
-
Pipeline.Pipeline,
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export { getPipelinesPath, getPipelinePath };
|