@dxos/plugin-graph 0.11.0 → 0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d

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.
@@ -1,19 +1,19 @@
1
- import { ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
2
- import { AppActivationEvents } from "@dxos/app-toolkit";
1
+ import * as Plugin from "@dxos/app-framework/Plugin";
2
+ import * as Capability from "@dxos/app-framework/Capability";
3
+ import * as Capabilities from "@dxos/app-framework/Capabilities";
4
+ import * as AppCapabilities from "@dxos/app-toolkit/AppCapabilities";
3
5
  import { meta } from "#meta";
4
6
  //#region src/GraphPlugin.ts
5
- var Graph = Capability.lazy("Graph", () => import("./chunk-graph.mjs"));
7
+ var Graph = Capability.lazyModule("Graph", {
8
+ requires: [Capabilities.AtomRegistry],
9
+ provides: [AppCapabilities.AppGraph]
10
+ }, () => import("./chunk-graph.mjs"));
6
11
  /**
7
12
  * Manages the state of the graph for the application.
8
13
  * Enables other plugins to register node builders to add nodes to the graph.
9
14
  * This includes actions and annotation each other's nodes.
10
15
  */
11
- var GraphPlugin = Plugin.define(meta).pipe(Plugin.addModule({
12
- activatesOn: ActivationEvents.Startup,
13
- firesBeforeActivation: [AppActivationEvents.SetupAppGraph],
14
- firesAfterActivation: [AppActivationEvents.AppGraphReady],
15
- activate: Graph
16
- }), Plugin.make);
16
+ var GraphPlugin = Plugin.define(meta).pipe(Plugin.addModule(Graph), Plugin.make);
17
17
  //#endregion
18
18
  export { GraphPlugin, GraphPlugin as default };
19
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"GraphPlugin.mjs","names":[],"sources":["../../src/GraphPlugin.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents } from '@dxos/app-toolkit';\n\nimport { meta } from '#meta';\n\nconst Graph = Capability.lazy('Graph', () => import('./graph'));\n\n/**\n * Manages the state of the graph for the application.\n * Enables other plugins to register node builders to add nodes to the graph.\n * This includes actions and annotation each other's nodes.\n */\nexport const GraphPlugin = Plugin.define(meta).pipe(\n Plugin.addModule({\n activatesOn: ActivationEvents.Startup,\n firesBeforeActivation: [AppActivationEvents.SetupAppGraph],\n firesAfterActivation: [AppActivationEvents.AppGraphReady],\n activate: Graph,\n }),\n Plugin.make,\n);\n\nexport default GraphPlugin;\n"],"mappings":";;;;AASA,IAAM,QAAQ,WAAW,KAAK,eAAe,OAAO,oBAAU;;;;;;AAO9D,IAAa,cAAc,OAAO,OAAO,IAAI,CAAC,CAAC,KAC7C,OAAO,UAAU;CACf,aAAa,iBAAiB;CAC9B,uBAAuB,CAAC,oBAAoB,aAAa;CACzD,sBAAsB,CAAC,oBAAoB,aAAa;CACxD,UAAU;AACZ,CAAC,GACD,OAAO,IACT"}
1
+ {"version":3,"file":"GraphPlugin.mjs","names":[],"sources":["../../src/GraphPlugin.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Capabilities from '@dxos/app-framework/Capabilities';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport * as Plugin from '@dxos/app-framework/Plugin';\nimport * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';\n\nimport { meta } from '#meta';\n\nconst Graph = Capability.lazyModule(\n 'Graph',\n { requires: [Capabilities.AtomRegistry], provides: [AppCapabilities.AppGraph] },\n () => import('./graph'),\n);\n\n/**\n * Manages the state of the graph for the application.\n * Enables other plugins to register node builders to add nodes to the graph.\n * This includes actions and annotation each other's nodes.\n */\nexport const GraphPlugin = Plugin.define(meta).pipe(Plugin.addModule(Graph), Plugin.make);\n\nexport default GraphPlugin;\n"],"mappings":";;;;;;AAWA,IAAM,QAAQ,WAAW,WACvB,SACA;CAAE,UAAU,CAAC,aAAa,YAAY;CAAG,UAAU,CAAC,gBAAgB,QAAQ;AAAE,SACxE,OAAO,oBACf;;;;;;AAOA,IAAa,cAAc,OAAO,OAAO,IAAI,CAAC,CAAC,KAAK,OAAO,UAAU,KAAK,GAAG,OAAO,IAAI"}
@@ -1,7 +1,7 @@
1
- import { Capability } from "@dxos/app-framework";
2
1
  import * as Effect from "effect/Effect";
3
2
  import * as Function from "effect/Function";
4
- import { Operation } from "@dxos/compute";
3
+ import * as Capability from "@dxos/app-framework/Capability";
4
+ import * as Operation from "@dxos/compute/Operation";
5
5
  import { EffectEx } from "@dxos/effect";
6
6
  //#region src/action.ts
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"chunk-action.mjs","names":[],"sources":["../../src/action.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\n\nimport { Capability, type CapabilityManager } from '@dxos/app-framework';\nimport { type Node } from '@dxos/app-graph';\nimport { Operation } from '@dxos/compute';\nimport { EffectEx } from '@dxos/effect';\n\n/**\n * Run an action with required layers: Operation.Service, Capability.Service, and captured context.\n * @param invoker The operation invoker to use for Operation.Service.\n * @param capabilityManager The capability manager for Capability.Service.\n * @param action The action to execute.\n * @param params Parameters to pass to the action.\n */\nexport const runAction = async (\n invoker: Operation.OperationService,\n capabilityManager: CapabilityManager.CapabilityManager,\n action: Node.Action,\n params: Node.InvokeProps = {},\n): Promise<void> =>\n EffectEx.runAndForwardErrors(\n action\n .data(params)\n .pipe(\n Effect.provideService(Operation.Service, invoker),\n Effect.provideService(Capability.Service, capabilityManager),\n action._actionContext ? Effect.provide(action._actionContext) : Function.identity,\n ),\n );\n"],"mappings":";;;;;;;;;;;;;AAmBA,IAAa,YAAY,OACvB,SACA,mBACA,QACA,SAA2B,CAAC,MAE5B,SAAS,oBACP,OACG,KAAK,MAAM,CAAA,CACX,KACC,OAAO,eAAe,UAAU,SAAS,OAAO,GAChD,OAAO,eAAe,WAAW,SAAS,iBAAiB,GAC3D,OAAO,iBAAiB,OAAO,QAAQ,OAAO,cAAc,IAAI,SAAS,QAC3E,CACJ"}
1
+ {"version":3,"file":"chunk-action.mjs","names":[],"sources":["../../src/action.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\n\nimport { type CapabilityManager } from '@dxos/app-framework';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport { type Node } from '@dxos/app-graph';\nimport * as Operation from '@dxos/compute/Operation';\nimport { EffectEx } from '@dxos/effect';\n\n/**\n * Run an action with required layers: Operation.Service, Capability.Service, and captured context.\n * @param invoker The operation invoker to use for Operation.Service.\n * @param capabilityManager The capability manager for Capability.Service.\n * @param action The action to execute.\n * @param params Parameters to pass to the action.\n */\nexport const runAction = async (\n invoker: Operation.OperationService,\n capabilityManager: CapabilityManager.CapabilityManager,\n action: Node.Action,\n params: Node.InvokeProps = {},\n): Promise<void> =>\n EffectEx.runAndForwardErrors(\n action\n .data(params)\n .pipe(\n Effect.provideService(Operation.Service, invoker),\n Effect.provideService(Capability.Service, capabilityManager),\n action._actionContext ? Effect.provide(action._actionContext) : Function.identity,\n ),\n );\n"],"mappings":";;;;;;;;;;;;;AAoBA,IAAa,YAAY,OACvB,SACA,mBACA,QACA,SAA2B,CAAC,MAE5B,SAAS,oBACP,OACG,KAAK,MAAM,CAAA,CACX,KACC,OAAO,eAAe,UAAU,SAAS,OAAO,GAChD,OAAO,eAAe,WAAW,SAAS,iBAAiB,GAC3D,OAAO,iBAAiB,OAAO,QAAQ,OAAO,cAAc,IAAI,SAAS,QAC3E,CACJ"}
@@ -1,11 +1,13 @@
1
- import { Capabilities, Capability } from "@dxos/app-framework";
2
1
  import { Graph, GraphBuilder, Node } from "@dxos/app-graph";
3
2
  import * as Effect from "effect/Effect";
4
- import { AppCapabilities, UrlPath } from "@dxos/app-toolkit";
3
+ import * as Capability from "@dxos/app-framework/Capability";
4
+ import * as Capabilities from "@dxos/app-framework/Capabilities";
5
+ import * as AppCapabilities from "@dxos/app-toolkit/AppCapabilities";
5
6
  import * as Record from "effect/Record";
7
+ import * as UrlPath from "@dxos/app-toolkit/UrlPath";
6
8
  //#region src/graph.ts
7
9
  var graph_default = Capability.makeModule(Effect.fnUntraced(function* () {
8
- const registry = yield* Capability.get(Capabilities.AtomRegistry);
10
+ const registry = yield* Capabilities.AtomRegistry;
9
11
  const extensionsByModuleAtom = yield* Capability.atomByModule(AppCapabilities.AppGraphBuilder);
10
12
  const builder = GraphBuilder.from(void 0, registry, {
11
13
  anchorKey: UrlPath.WORKSPACE_KEY,
@@ -22,9 +24,10 @@ var graph_default = Capability.makeModule(Effect.fnUntraced(function* () {
22
24
  }, { immediate: true });
23
25
  Graph.expand(builder.graph, Node.RootId, "child");
24
26
  setupDevtools(builder.graph);
25
- return Capability.contributes(AppCapabilities.AppGraph, builder, () => Effect.sync(() => {
27
+ yield* Effect.addFinalizer(() => Effect.sync(() => {
26
28
  unsubscribe();
27
29
  }));
30
+ return Capability.contribute(AppCapabilities.AppGraph, builder);
28
31
  }));
29
32
  var setupDevtools = (graph) => {
30
33
  globalThis.composer ??= {};
@@ -1 +1 @@
1
- {"version":3,"file":"chunk-graph.mjs","names":[],"sources":["../../src/graph.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Record from 'effect/Record';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Graph, GraphBuilder, Node } from '@dxos/app-graph';\nimport { AppCapabilities, UrlPath } from '@dxos/app-toolkit';\n\n// TODO(wittjosiah): Remove or restore graph caching.\n// import { meta } from './meta';\n\n// const KEY = `${meta.id}.app-graph`;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const extensionsByModuleAtom = yield* Capability.atomByModule(AppCapabilities.AppGraphBuilder);\n\n // The grammar's fixed tiers, configured here rather than declared by an extension: no connector\n // produces their nodes (see `GraphBuilder.UrlGrammar`).\n const builder = GraphBuilder.from(/* localStorage.getItem(KEY) ?? */ undefined, registry, {\n anchorKey: UrlPath.WORKSPACE_KEY,\n linkedKey: UrlPath.COMPANION_KEY,\n });\n // const interval = setInterval(() => {\n // localStorage.setItem(KEY, builder.graph.pickle());\n // }, 5_000);\n\n const unsubscribe = registry.subscribe(\n extensionsByModuleAtom,\n (extensionsByModule) => {\n const next: GraphBuilder.BuilderExtension[] = [];\n for (const [moduleId, extensions] of Object.entries(extensionsByModule)) {\n for (const ext of GraphBuilder.flattenExtensions(extensions)) {\n next.push({\n ...ext,\n id: `${moduleId}.${ext.id}`,\n });\n }\n }\n const current = Record.values(registry.get(builder.extensions));\n const removed = current.filter(({ id }) => !next.some(({ id: nextId }) => nextId === id));\n removed.forEach((extension) => GraphBuilder.removeExtension(builder, extension.id));\n next.forEach((extension) => GraphBuilder.addExtension(builder, extension));\n },\n { immediate: true },\n );\n\n // await builder.initialize();\n void Graph.expand(builder.graph, Node.RootId, 'child');\n\n setupDevtools(builder.graph);\n\n return Capability.contributes(AppCapabilities.AppGraph, builder, () =>\n Effect.sync(() => {\n // clearInterval(interval);\n unsubscribe();\n }),\n );\n }),\n);\n\n// Expose the graph to the window for debugging.\nconst setupDevtools = (graph: Graph.ExpandableGraph) => {\n (globalThis as any).composer ??= {};\n (globalThis as any).composer.graph = graph;\n};\n"],"mappings":";;;;;;AAgBA,IAAA,gBAAe,WAAW,WACxB,OAAO,WAAW,aAAa;CAC7B,MAAM,WAAW,OAAO,WAAW,IAAI,aAAa,YAAY;CAChE,MAAM,yBAAyB,OAAO,WAAW,aAAa,gBAAgB,eAAe;CAI7F,MAAM,UAAU,aAAa,KAAwC,KAAA,GAAW,UAAU;EACxF,WAAW,QAAQ;EACnB,WAAW,QAAQ;CACrB,CAAC;CAKD,MAAM,cAAc,SAAS,UAC3B,yBACC,uBAAuB;EACtB,MAAM,OAAwC,CAAC;EAC/C,KAAK,MAAM,CAAC,UAAU,eAAe,OAAO,QAAQ,kBAAkB,GACpE,KAAK,MAAM,OAAO,aAAa,kBAAkB,UAAU,GACzD,KAAK,KAAK;GACR,GAAG;GACH,IAAI,GAAG,SAAS,GAAG,IAAI;EACzB,CAAC;EAKL,OAFuB,OAAO,SAAS,IAAI,QAAQ,UAAU,CAC7C,CAAA,CAAQ,QAAQ,EAAE,SAAS,CAAC,KAAK,MAAM,EAAE,IAAI,aAAa,WAAW,EAAE,CACvF,CAAA,CAAQ,SAAS,cAAc,aAAa,gBAAgB,SAAS,UAAU,EAAE,CAAC;EAClF,KAAK,SAAS,cAAc,aAAa,aAAa,SAAS,SAAS,CAAC;CAC3E,GACA,EAAE,WAAW,KAAK,CACpB;CAGA,MAAW,OAAO,QAAQ,OAAO,KAAK,QAAQ,OAAO;CAErD,cAAc,QAAQ,KAAK;CAE3B,OAAO,WAAW,YAAY,gBAAgB,UAAU,eACtD,OAAO,WAAW;EAEhB,YAAY;CACd,CAAC,CACH;AACF,CAAC,CACH;AAGA,IAAM,iBAAiB,UAAiC;CACtD,WAAoB,aAAa,CAAC;CAClC,WAAoB,SAAS,QAAQ;AACvC"}
1
+ {"version":3,"file":"chunk-graph.mjs","names":[],"sources":["../../src/graph.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Record from 'effect/Record';\n\nimport * as Capabilities from '@dxos/app-framework/Capabilities';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport { Graph, GraphBuilder, Node } from '@dxos/app-graph';\nimport * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';\nimport * as UrlPath from '@dxos/app-toolkit/UrlPath';\n\n// TODO(wittjosiah): Remove or restore graph caching.\n// import { meta } from './meta';\n\n// const KEY = `${meta.id}.app-graph`;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const registry = yield* Capabilities.AtomRegistry;\n\n // Live view: extensions contributed by dependency-mode modules (including those enabled\n // later in the session) reach this subscription reactively.\n const extensionsByModuleAtom = yield* Capability.atomByModule(AppCapabilities.AppGraphBuilder);\n\n // The grammar's fixed tiers, configured here rather than declared by an extension: no connector\n // produces their nodes (see `GraphBuilder.UrlGrammar`).\n const builder = GraphBuilder.from(/* localStorage.getItem(KEY) ?? */ undefined, registry, {\n anchorKey: UrlPath.WORKSPACE_KEY,\n linkedKey: UrlPath.COMPANION_KEY,\n });\n // const interval = setInterval(() => {\n // localStorage.setItem(KEY, builder.graph.pickle());\n // }, 5_000);\n\n const unsubscribe = registry.subscribe(\n extensionsByModuleAtom,\n (extensionsByModule) => {\n const next: GraphBuilder.BuilderExtension[] = [];\n for (const [moduleId, extensions] of Object.entries(extensionsByModule)) {\n for (const ext of GraphBuilder.flattenExtensions(extensions)) {\n next.push({\n ...ext,\n id: `${moduleId}.${ext.id}`,\n });\n }\n }\n const current = Record.values(registry.get(builder.extensions));\n const removed = current.filter(({ id }) => !next.some(({ id: nextId }) => nextId === id));\n removed.forEach((extension) => GraphBuilder.removeExtension(builder, extension.id));\n next.forEach((extension) => GraphBuilder.addExtension(builder, extension));\n },\n { immediate: true },\n );\n\n // await builder.initialize();\n void Graph.expand(builder.graph, Node.RootId, 'child');\n\n setupDevtools(builder.graph);\n\n yield* Effect.addFinalizer(() =>\n Effect.sync(() => {\n // clearInterval(interval);\n unsubscribe();\n }),\n );\n return Capability.contribute(AppCapabilities.AppGraph, builder);\n }),\n);\n\n// Expose the graph to the window for debugging.\nconst setupDevtools = (graph: Graph.ExpandableGraph) => {\n (globalThis as any).composer ??= {};\n (globalThis as any).composer.graph = graph;\n};\n"],"mappings":";;;;;;;;AAkBA,IAAA,gBAAe,WAAW,WACxB,OAAO,WAAW,aAAa;CAC7B,MAAM,WAAW,OAAO,aAAa;CAIrC,MAAM,yBAAyB,OAAO,WAAW,aAAa,gBAAgB,eAAe;CAI7F,MAAM,UAAU,aAAa,KAAwC,KAAA,GAAW,UAAU;EACxF,WAAW,QAAQ;EACnB,WAAW,QAAQ;CACrB,CAAC;CAKD,MAAM,cAAc,SAAS,UAC3B,yBACC,uBAAuB;EACtB,MAAM,OAAwC,CAAC;EAC/C,KAAK,MAAM,CAAC,UAAU,eAAe,OAAO,QAAQ,kBAAkB,GACpE,KAAK,MAAM,OAAO,aAAa,kBAAkB,UAAU,GACzD,KAAK,KAAK;GACR,GAAG;GACH,IAAI,GAAG,SAAS,GAAG,IAAI;EACzB,CAAC;EAKL,OAFuB,OAAO,SAAS,IAAI,QAAQ,UAAU,CAC7C,CAAA,CAAQ,QAAQ,EAAE,SAAS,CAAC,KAAK,MAAM,EAAE,IAAI,aAAa,WAAW,EAAE,CACvF,CAAA,CAAQ,SAAS,cAAc,aAAa,gBAAgB,SAAS,UAAU,EAAE,CAAC;EAClF,KAAK,SAAS,cAAc,aAAa,aAAa,SAAS,SAAS,CAAC;CAC3E,GACA,EAAE,WAAW,KAAK,CACpB;CAGA,MAAW,OAAO,QAAQ,OAAO,KAAK,QAAQ,OAAO;CAErD,cAAc,QAAQ,KAAK;CAE3B,OAAO,OAAO,mBACZ,OAAO,WAAW;EAEhB,YAAY;CACd,CAAC,CACH;CACA,OAAO,WAAW,WAAW,gBAAgB,UAAU,OAAO;AAChE,CAAC,CACH;AAGA,IAAM,iBAAiB,UAAiC;CACtD,WAAoB,aAAa,CAAC;CAClC,WAAoB,SAAS,QAAQ;AACvC"}
@@ -1,4 +1,4 @@
1
- import { Plugin } from "@dxos/app-framework";
1
+ import * as Plugin from "@dxos/app-framework/Plugin";
2
2
  import { Config2 } from "@dxos/app-framework/config";
3
3
  import { trim } from "@dxos/util";
4
4
  //#region dx.config.ts
@@ -1 +1 @@
1
- {"version":3,"file":"chunk-meta.mjs","names":[],"sources":["../../dx.config.ts","../../src/meta.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Config2 } from '@dxos/app-framework/config';\nimport { trim } from '@dxos/util';\n\nexport default Config2.make({\n plugin: {\n key: 'org.dxos.plugin.graph',\n name: 'Graph',\n author: 'DXOS',\n description: trim`\n Graph database layer providing relationship modeling and queries for workspace objects.\n Build knowledge graphs and explore complex data relationships.\n `,\n tags: ['system'],\n },\n});\n","//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport config from '../dx.config';\n\nexport const meta = Plugin.getMetaFromConfig(config);\n"],"mappings":";;;;AAOA,IAAA,oBAAe,QAAQ,KAAK,EAC1B,QAAQ;CACN,KAAK;CACL,MAAM;CACN,QAAQ;CACR,aAAa,IAAI;;;;CAIjB,MAAM,CAAC,QAAQ;AACjB,EACF,CAAC;;;ACVD,IAAa,OAAO,OAAO,kBAAkB,iBAAM"}
1
+ {"version":3,"file":"chunk-meta.mjs","names":[],"sources":["../../dx.config.ts","../../src/meta.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Config2 } from '@dxos/app-framework/config';\nimport { trim } from '@dxos/util';\n\nexport default Config2.make({\n plugin: {\n key: 'org.dxos.plugin.graph',\n name: 'Graph',\n author: 'DXOS',\n description: trim`\n Graph database layer providing relationship modeling and queries for workspace objects.\n Build knowledge graphs and explore complex data relationships.\n `,\n tags: ['system'],\n },\n});\n","//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Plugin from '@dxos/app-framework/Plugin';\n\nimport config from '../dx.config';\n\nexport const meta = Plugin.getMetaFromConfig(config);\n"],"mappings":";;;;AAOA,IAAA,oBAAe,QAAQ,KAAK,EAC1B,QAAQ;CACN,KAAK;CACL,MAAM;CACN,QAAQ;CACR,aAAa,IAAI;;;;CAIjB,MAAM,CAAC,QAAQ;AACjB,EACF,CAAC;;;ACVD,IAAa,OAAO,OAAO,kBAAkB,iBAAM"}
@@ -1,5 +1,5 @@
1
1
  import { t as meta } from "./chunk-meta.mjs";
2
- import { Plugin } from "@dxos/app-framework";
2
+ import * as Plugin from "@dxos/app-framework/Plugin";
3
3
  //#region src/plugin.ts
4
4
  var GraphPlugin = Plugin.lazy(meta, () => import("#plugin"));
5
5
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/plugin.ts"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const GraphPlugin = Plugin.lazy(meta, () => import('#plugin'));\n"],"mappings":";;;AAQA,IAAa,cAAc,OAAO,KAAK,YAAY,OAAO,UAAU"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/plugin.ts"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Plugin from '@dxos/app-framework/Plugin';\n\nimport { meta } from './meta';\n\nexport const GraphPlugin = Plugin.lazy(meta, () => import('#plugin'));\n"],"mappings":";;;AAQA,IAAa,cAAc,OAAO,KAAK,YAAY,OAAO,UAAU"}
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@dxos/app-framework';
1
+ import * as Plugin from '@dxos/app-framework/Plugin';
2
2
  /**
3
3
  * Manages the state of the graph for the application.
4
4
  * Enables other plugins to register node builders to add nodes to the graph.
@@ -1 +1 @@
1
- {"version":3,"file":"GraphPlugin.d.ts","sourceRoot":"","sources":["../../../src/GraphPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgC,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO3E;;;;GAIG;AACH,eAAO,MAAM,WAAW,4BAQvB,CAAC;eAEa,WAAW"}
1
+ {"version":3,"file":"GraphPlugin.d.ts","sourceRoot":"","sources":["../../../src/GraphPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AAWrD;;;;GAIG;AACH,eAAO,MAAM,WAAW,4BAAiE,CAAC;eAE3E,WAAW"}
@@ -1,6 +1,6 @@
1
1
  import { type CapabilityManager } from '@dxos/app-framework';
2
2
  import { type Node } from '@dxos/app-graph';
3
- import { Operation } from '@dxos/compute';
3
+ import * as Operation from '@dxos/compute/Operation';
4
4
  /**
5
5
  * Run an action with required layers: Operation.Service, Capability.Service, and captured context.
6
6
  * @param invoker The operation invoker to use for Operation.Service.
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/action.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,YACX,SAAS,CAAC,gBAAgB,qBAChB,iBAAiB,CAAC,iBAAiB,UAC9C,IAAI,CAAC,MAAM,WACX,IAAI,CAAC,WAAW,KACvB,OAAO,CAAC,IAAI,CASZ,CAAC"}
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/action.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAGrD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,YACX,SAAS,CAAC,gBAAgB,qBAChB,iBAAiB,CAAC,iBAAiB,UAC9C,IAAI,CAAC,MAAM,WACX,IAAI,CAAC,WAAW,KACvB,OAAO,CAAC,IAAI,CASZ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Capability } from '@dxos/app-framework';
3
- declare const _default: (props: void) => Effect.Effect<Capability.Any, Error, import("effect/Scope").Scope | Capability.Service>;
2
+ import * as Capability from '@dxos/app-framework/Capability';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Contribution<Capability.CapabilityIdentifier<"org.dxos.app-framework.capability.appGraph", "single">>, never, Capability.CapabilityIdentifier<"org.dxos.app-framework.capability.atomRegistry", "single"> | import("effect/Scope").Scope | Capability.Service>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,UAAU,MAAM,gCAAgC,CAAC"}
@@ -1,3 +1,3 @@
1
- import { Plugin } from '@dxos/app-framework';
1
+ import * as Plugin from '@dxos/app-framework/Plugin';
2
2
  export declare const GraphPlugin: Plugin.PluginFactory<void>;
3
3
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,WAAW,4BAA6C,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AAIrD,eAAO,MAAM,WAAW,4BAA6C,CAAC"}