@dxos/app-framework 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65
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/{capability-2GL5JAGJ.mjs → capability-6YMUBS54.mjs} +7 -7
- package/dist/lib/browser/{capability-7RLVE42K.mjs → capability-LF3OXSCV.mjs} +8 -8
- package/dist/lib/browser/{chunk-PKQT6C53.mjs → chunk-272IPLHQ.mjs} +1 -1
- package/dist/lib/browser/{chunk-PKQT6C53.mjs.map → chunk-272IPLHQ.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-HE27PNNQ.mjs → chunk-2UI6ACB5.mjs} +3 -3
- package/dist/lib/browser/{chunk-FNKT2QQ2.mjs → chunk-7M4467QR.mjs} +2 -2
- package/dist/lib/browser/{chunk-FNKT2QQ2.mjs.map → chunk-7M4467QR.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-ZRWBPIZG.mjs → chunk-JGWCBVKJ.mjs} +2 -2
- package/dist/lib/browser/chunk-M5IC326L.mjs +34 -0
- package/dist/lib/browser/{chunk-NPUEVX42.mjs.map → chunk-M5IC326L.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-4CTRO67U.mjs → chunk-NQPYE365.mjs} +8 -8
- package/dist/lib/browser/{chunk-4CTRO67U.mjs.map → chunk-NQPYE365.mjs.map} +1 -1
- package/dist/lib/browser/chunk-TGX63LTL.mjs +8 -0
- package/dist/lib/browser/{chunk-FHQTHCX7.mjs.map → chunk-TGX63LTL.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-5RJNZV7K.mjs → chunk-TIEBZMTF.mjs} +3 -3
- package/dist/lib/browser/{chunk-5RJNZV7K.mjs.map → chunk-TIEBZMTF.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-REORGDJT.mjs → chunk-WEBSGU5L.mjs} +15 -15
- package/dist/lib/browser/{chunk-REORGDJT.mjs.map → chunk-WEBSGU5L.mjs.map} +1 -1
- package/dist/lib/browser/cli/index.mjs +8 -8
- package/dist/lib/browser/cli/index.mjs.map +1 -1
- package/dist/lib/browser/common/activation-events.mjs +4 -4
- package/dist/lib/browser/common/capabilities.mjs +4 -4
- package/dist/lib/browser/core/activation-event.mjs +1 -1
- package/dist/lib/browser/core/plugin-manager.mjs +3 -3
- package/dist/lib/browser/core/plugin.mjs +1 -1
- package/dist/lib/browser/index.mjs +13 -13
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{invoker-capability-BNLVNYHU.mjs → invoker-capability-4AUGUMM5.mjs} +7 -7
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +12 -12
- package/dist/lib/browser/testing/index.mjs.map +1 -1
- package/dist/lib/browser/ui/index.mjs +8 -8
- package/dist/lib/node-esm/{capability-CHIMU6LX.mjs → capability-R5O2OYX4.mjs} +7 -7
- package/dist/lib/node-esm/{capability-EVZK4REM.mjs → capability-SA6LPYGL.mjs} +8 -8
- package/dist/lib/node-esm/{chunk-2A4PRBIX.mjs → chunk-3D66SZHP.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-7OWSHPYK.mjs → chunk-6REV5DE7.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-7OWSHPYK.mjs.map → chunk-6REV5DE7.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-7CPNAEGV.mjs → chunk-FHWPWQRJ.mjs} +8 -8
- package/dist/lib/node-esm/{chunk-7CPNAEGV.mjs.map → chunk-FHWPWQRJ.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs → chunk-FKE4Z3D6.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs.map → chunk-FKE4Z3D6.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-CJCQS2YL.mjs → chunk-JHFY3HTS.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-CJCQS2YL.mjs.map → chunk-JHFY3HTS.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-DTCHT2X2.mjs → chunk-JIVXIJ2T.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-JAZVHID3.mjs → chunk-NHXBSAQR.mjs} +8 -8
- package/dist/lib/node-esm/{chunk-JAZVHID3.mjs.map → chunk-NHXBSAQR.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-VUIUFIGT.mjs → chunk-SCDGIGGU.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-VUIUFIGT.mjs.map → chunk-SCDGIGGU.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-UFW652GS.mjs → chunk-SQICGJBW.mjs} +15 -15
- package/dist/lib/node-esm/{chunk-UFW652GS.mjs.map → chunk-SQICGJBW.mjs.map} +1 -1
- package/dist/lib/node-esm/cli/index.mjs +8 -8
- package/dist/lib/node-esm/cli/index.mjs.map +1 -1
- package/dist/lib/node-esm/common/activation-events.mjs +4 -4
- package/dist/lib/node-esm/common/capabilities.mjs +4 -4
- package/dist/lib/node-esm/core/activation-event.mjs +1 -1
- package/dist/lib/node-esm/core/plugin-manager.mjs +3 -3
- package/dist/lib/node-esm/core/plugin.mjs +1 -1
- package/dist/lib/node-esm/index.mjs +13 -13
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{invoker-capability-VF6SP44V.mjs → invoker-capability-3YDIVDWV.mjs} +7 -7
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +12 -12
- package/dist/lib/node-esm/testing/index.mjs.map +1 -1
- package/dist/lib/node-esm/ui/index.mjs +8 -8
- package/dist/types/src/common/operations.d.ts +1 -1
- package/dist/types/src/core/activation-event.d.ts +1 -1
- package/dist/types/src/core/plugin.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/cli/cli.ts +2 -2
- package/src/common/activation-events.ts +6 -6
- package/src/common/capabilities.ts +14 -14
- package/src/common/operations.ts +2 -2
- package/src/context.ts +1 -1
- package/src/core/activation-event.ts +1 -1
- package/src/core/plugin-manager.test.ts +22 -22
- package/src/core/plugin.ts +2 -2
- package/src/plugin-operation/meta.ts +1 -1
- package/src/plugin-runtime/meta.ts +1 -1
- package/src/testing/service.ts +2 -2
- package/src/testing/withPluginManager.tsx +2 -2
- package/src/ui/components/App/App.stories.tsx +2 -2
- package/src/ui/components/PluginManager/PluginManagerContext.stories.tsx +4 -4
- package/src/ui/hooks/useApp.tsx +3 -3
- package/dist/lib/browser/chunk-FHQTHCX7.mjs +0 -8
- package/dist/lib/browser/chunk-NPUEVX42.mjs +0 -34
- /package/dist/lib/browser/{capability-2GL5JAGJ.mjs.map → capability-6YMUBS54.mjs.map} +0 -0
- /package/dist/lib/browser/{capability-7RLVE42K.mjs.map → capability-LF3OXSCV.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-HE27PNNQ.mjs.map → chunk-2UI6ACB5.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-ZRWBPIZG.mjs.map → chunk-JGWCBVKJ.mjs.map} +0 -0
- /package/dist/lib/browser/{invoker-capability-BNLVNYHU.mjs.map → invoker-capability-4AUGUMM5.mjs.map} +0 -0
- /package/dist/lib/node-esm/{capability-CHIMU6LX.mjs.map → capability-R5O2OYX4.mjs.map} +0 -0
- /package/dist/lib/node-esm/{capability-EVZK4REM.mjs.map → capability-SA6LPYGL.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-2A4PRBIX.mjs.map → chunk-3D66SZHP.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-DTCHT2X2.mjs.map → chunk-JIVXIJ2T.mjs.map} +0 -0
- /package/dist/lib/node-esm/{invoker-capability-VF6SP44V.mjs.map → invoker-capability-3YDIVDWV.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/common/translations.ts", "../../../src/common/operations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\n/**\n * A Label represents translatable text - either a simple string or a tuple of [key, options].\n */\nexport const Label = Schema.Union(\n Schema.String,\n Schema.mutable(\n Schema.Tuple(\n Schema.String,\n Schema.mutable(\n Schema.Struct({\n ns: Schema.String,\n count: Schema.optional(Schema.Number),\n defaultValue: Schema.optional(Schema.String),\n }),\n ),\n ),\n ),\n);\nexport type Label = Schema.Schema.Type<typeof Label>;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Capability } from '../core';\n\nimport { Label } from './translations';\n\nconst UNDO_NAMESPACE = 'dxos.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\n/**\n * A Label represents translatable text - either a simple string or a tuple of [key, options].\n */\nexport const Label = Schema.Union(\n Schema.String,\n Schema.mutable(\n Schema.Tuple(\n Schema.String,\n Schema.mutable(\n Schema.Struct({\n ns: Schema.String,\n count: Schema.optional(Schema.Number),\n defaultValue: Schema.optional(Schema.String),\n }),\n ),\n ),\n ),\n);\nexport type Label = Schema.Schema.Type<typeof Label>;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Capability } from '../core';\n\nimport { Label } from './translations';\n\nconst UNDO_NAMESPACE = 'org.dxos.app-framework.undo';\n\n/**\n * Operations related to undo/history functionality.\n */\nexport namespace UndoOperation {\n /**\n * Show an undo toast notification.\n * Fired by HistoryTracker when an undoable operation is tracked.\n */\n export const ShowUndo = Operation.make({\n meta: {\n key: `${UNDO_NAMESPACE}.operation.show-undo`,\n name: 'Show Undo',\n description: 'Show an undo toast notification.',\n },\n executionMode: 'sync',\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n message: Schema.optional(Label.annotations({ description: 'The message to display in the undo toast.' })),\n }),\n output: Schema.Void,\n },\n });\n}\n"],
|
|
5
5
|
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAKjB,IAAMC,QAAeC,aACnBC,eACAC,eACEC,aACEF,eACAC,eACEE,cAAO;EACZC,IAAWJ;EACXK,OAAcC,gBAAgBC,aAAM;EACpCC,cAAqBF,gBAAgBN,aAAM;AAC7C,CAAA,CAAA,CAAA,CAAA,CAAA;;;ACfR,YAAYS,aAAY;AAExB,SAASC,iBAAiB;AAM1B,IAAMC,iBAAiB;UAKNC,gBAAAA;iBAKFC,WAAWC,UAAUC,KAAK;IACrCC,MAAM;MACJC,KAAK,GAAGN,cAAAA;MACRO,MAAM;MACNC,aAAa;IACf;IACAC,eAAe;IACfC,UAAU;MAACC,mBAAWC;;IACtBC,QAAQ;MACNC,OAAcC,eAAO;QACnBC,SAAgBC,iBAASC,MAAMC,YAAY;UAAEX,aAAa;QAA4C,CAAA,CAAA;MACxG,CAAA;MACAY,QAAeC;IACjB;EACF,CAAA;AACF,GApBiBpB,kBAAAA,gBAAAA,CAAAA,EAAAA;;",
|
|
6
6
|
"names": ["Schema", "Label", "Union", "String", "mutable", "Tuple", "Struct", "ns", "count", "optional", "Number", "defaultValue", "Schema", "Operation", "UNDO_NAMESPACE", "UndoOperation", "ShowUndo", "Operation", "make", "meta", "key", "name", "description", "executionMode", "services", "Capability", "Service", "schema", "input", "Struct", "message", "optional", "Label", "annotations", "output", "Void"]
|
|
7
7
|
}
|
|
@@ -27,20 +27,20 @@ __export(capabilities_exports, {
|
|
|
27
27
|
updateAtomValue: () => updateAtomValue
|
|
28
28
|
});
|
|
29
29
|
import * as Effect from "effect/Effect";
|
|
30
|
-
var Null = capability_exports.make("dxos.
|
|
31
|
-
var PluginManager = capability_exports.make("dxos.
|
|
32
|
-
var AtomRegistry = capability_exports.make("dxos.
|
|
33
|
-
var ReactContext = capability_exports.make("dxos.
|
|
34
|
-
var ReactRoot = capability_exports.make("dxos.
|
|
35
|
-
var ReactSurface = capability_exports.make("dxos.
|
|
36
|
-
var Command = capability_exports.make("dxos.
|
|
37
|
-
var Layer = capability_exports.make("dxos.
|
|
38
|
-
var ManagedRuntime = capability_exports.make("dxos.
|
|
39
|
-
var OperationResolver = capability_exports.make("dxos.
|
|
40
|
-
var UndoMapping = capability_exports.make("dxos.
|
|
41
|
-
var OperationInvoker = capability_exports.make("dxos.
|
|
42
|
-
var UndoRegistry = capability_exports.make("dxos.
|
|
43
|
-
var HistoryTracker = capability_exports.make("dxos.
|
|
30
|
+
var Null = capability_exports.make("org.dxos.app-framework.capability.null");
|
|
31
|
+
var PluginManager = capability_exports.make("org.dxos.app-framework.capability.plugin-manager");
|
|
32
|
+
var AtomRegistry = capability_exports.make("org.dxos.app-framework.capability.atom-registry");
|
|
33
|
+
var ReactContext = capability_exports.make("org.dxos.app-framework.capability.react-context");
|
|
34
|
+
var ReactRoot = capability_exports.make("org.dxos.app-framework.capability.react-root");
|
|
35
|
+
var ReactSurface = capability_exports.make("org.dxos.app-framework.common.react-surface");
|
|
36
|
+
var Command = capability_exports.make("org.dxos.app-framework.capability.command");
|
|
37
|
+
var Layer = capability_exports.make("org.dxos.app-framework.capability.layer");
|
|
38
|
+
var ManagedRuntime = capability_exports.make("org.dxos.app-framework.capability.managed-runtime");
|
|
39
|
+
var OperationResolver = capability_exports.make("org.dxos.app-framework.capability.operation-resolver");
|
|
40
|
+
var UndoMapping = capability_exports.make("org.dxos.app-framework.capability.undo-mapping");
|
|
41
|
+
var OperationInvoker = capability_exports.make("org.dxos.app-framework.capability.operation-invoker");
|
|
42
|
+
var UndoRegistry = capability_exports.make("org.dxos.app-framework.capability.undo-registry");
|
|
43
|
+
var HistoryTracker = capability_exports.make("org.dxos.app-framework.capability.history-tracker");
|
|
44
44
|
var getAtomValue = (atomCapability) => Effect.gen(function* () {
|
|
45
45
|
const registry = yield* capability_exports.get(AtomRegistry);
|
|
46
46
|
const atom = yield* capability_exports.get(atomCapability);
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
subscribeAtom,
|
|
78
78
|
capabilities_exports
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-WEBSGU5L.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/common/capabilities.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as Command$ from '@effect/cli/Command';\nimport { type Atom, type Registry } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\nimport type * as Layer$ from 'effect/Layer';\nimport type * as ManagedRuntime$ from 'effect/ManagedRuntime';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { OperationInvoker as OperationInvoker$, OperationResolver as OperationResolver$ } from '@dxos/operation';\n\nimport { Capability as Capability$, type PluginManager as PluginManager$ } from '../core';\nimport type {\n HistoryTracker as HistoryTracker$,\n UndoMapping as UndoMapping$,\n UndoRegistry as UndoRegistry$,\n} from '../plugin-operation';\nimport type { Surface } from '../ui';\n\n/**\n * Null capability.\n * @category Capability\n */\nexport const Null = Capability$.make<null>('dxos.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as Command$ from '@effect/cli/Command';\nimport { type Atom, type Registry } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\nimport type * as Layer$ from 'effect/Layer';\nimport type * as ManagedRuntime$ from 'effect/ManagedRuntime';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { OperationInvoker as OperationInvoker$, OperationResolver as OperationResolver$ } from '@dxos/operation';\n\nimport { Capability as Capability$, type PluginManager as PluginManager$ } from '../core';\nimport type {\n HistoryTracker as HistoryTracker$,\n UndoMapping as UndoMapping$,\n UndoRegistry as UndoRegistry$,\n} from '../plugin-operation';\nimport type { Surface } from '../ui';\n\n/**\n * Null capability.\n * @category Capability\n */\nexport const Null = Capability$.make<null>('org.dxos.app-framework.capability.null');\n\n/**\n * @category Capability\n */\nexport const PluginManager = Capability$.make<PluginManager$.PluginManager>(\n 'org.dxos.app-framework.capability.plugin-manager',\n);\n\n/**\n * @category Capability\n */\nexport const AtomRegistry = Capability$.make<Registry.Registry>('org.dxos.app-framework.capability.atom-registry');\n\nexport type ReactContext = Readonly<{\n id: string;\n dependsOn?: string[];\n context: FC<PropsWithChildren>;\n}>;\n\n/**\n * @category Capability\n */\nexport const ReactContext = Capability$.make<ReactContext>('org.dxos.app-framework.capability.react-context');\n\nexport type ReactRoot = Readonly<{ id: string; root: FC<PropsWithChildren> }>;\n\n/**\n * @category Capability\n */\nexport const ReactRoot = Capability$.make<ReactRoot>('org.dxos.app-framework.capability.react-root');\n\n/**\n * Surface definitions that can be either React components or Web Components.\n */\nexport type ReactSurface = Surface.Definition | readonly Surface.Definition[];\n\n/**\n * @category Capability\n */\nexport const ReactSurface = Capability$.make<ReactSurface>('org.dxos.app-framework.common.react-surface');\n\nexport type AnyCommand = Command$.Command<any, any, any, any>;\n\n/**\n * @category Capability\n */\nexport const Command = Capability$.make<AnyCommand>('org.dxos.app-framework.capability.command');\n\n/**\n * @category Capability\n */\nexport const Layer = Capability$.make<Layer$.Layer<any, any, any>>('org.dxos.app-framework.capability.layer');\n\nexport type ManagedRuntime = ManagedRuntime$.ManagedRuntime<any, any>;\n\n/**\n * @category Capability\n */\nexport const ManagedRuntime = Capability$.make<ManagedRuntime>('org.dxos.app-framework.capability.managed-runtime');\n\n//\n// Operation System Capabilities\n//\n\nexport type OperationResolver = OperationResolver$.OperationResolver<any, any, any, any>;\n\n/**\n * Handler registration for operations - contributed by plugins.\n * @category Capability\n */\nexport const OperationResolver = Capability$.make<OperationResolver[]>(\n 'org.dxos.app-framework.capability.operation-resolver',\n);\n\nexport type UndoMapping = UndoMapping$.UndoMapping;\n\n/**\n * Undo mapping registration - contributed by plugins.\n * @category Capability\n */\nexport const UndoMapping = Capability$.make<UndoMapping[]>('org.dxos.app-framework.capability.undo-mapping');\n\nexport type OperationInvoker = OperationInvoker$.OperationInvoker;\n\n/**\n * Operation invoker - provided by OperationPlugin.\n * @category Capability\n */\nexport const OperationInvoker = Capability$.make<OperationInvoker>(\n 'org.dxos.app-framework.capability.operation-invoker',\n);\n\nexport type UndoRegistry = UndoRegistry$.UndoRegistry;\n\n/**\n * Undo registry - provided by OperationPlugin.\n * @category Capability\n */\nexport const UndoRegistry = Capability$.make<UndoRegistry>('org.dxos.app-framework.capability.undo-registry');\n\nexport type HistoryTracker = HistoryTracker$.HistoryTracker;\n\n/**\n * History tracker - provided by OperationPlugin.\n * @category Capability\n */\nexport const HistoryTracker = Capability$.make<HistoryTracker>('org.dxos.app-framework.capability.history-tracker');\n\n//\n// Atom Capability Helpers\n//\n\n/**\n * Get the current value of an atom capability.\n * @example const settings = yield* Capabilities.getAtomValue(ThreadCapabilities.Settings);\n */\nexport const getAtomValue = <T>(\n atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>,\n): Effect.Effect<T, Error, Capability$.Service> =>\n Effect.gen(function* () {\n const registry = yield* Capability$.get(AtomRegistry);\n const atom = yield* Capability$.get(atomCapability);\n return registry.get(atom);\n });\n\n/**\n * Update an atom capability value (requires writable atom).\n * @example yield* Capabilities.updateAtomValue(ThreadCapabilities.Settings, (s) => ({ ...s, foo: true }));\n */\nexport const updateAtomValue = <T>(\n atomCapability: Capability$.InterfaceDef<Atom.Writable<T>>,\n fn: (current: T) => T,\n): Effect.Effect<void, Error, Capability$.Service> =>\n Effect.gen(function* () {\n const registry = yield* Capability$.get(AtomRegistry);\n const atom = yield* Capability$.get(atomCapability);\n registry.set(atom, fn(registry.get(atom)));\n });\n\n/**\n * Subscribe to an atom capability.\n * @example const unsubscribe = yield* Capabilities.subscribeAtom(ThreadCapabilities.Settings, (value) => ...);\n */\nexport const subscribeAtom = <T>(\n atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>,\n callback: (value: T) => void,\n): Effect.Effect<() => void, Error, Capability$.Service> =>\n Effect.gen(function* () {\n const registry = yield* Capability$.get(AtomRegistry);\n const atom = yield* Capability$.get(atomCapability);\n return registry.subscribe(atom, () => callback(registry.get(atom)));\n });\n"],
|
|
5
5
|
"mappings": ";;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;AAMA,YAAYA,YAAY;AAmBjB,IAAMC,OAAOC,mBAAYC,KAAW,wCAAA;AAKpC,IAAMC,gBAAgBF,mBAAYC,KACvC,kDAAA;AAMK,IAAME,eAAeH,mBAAYC,KAAwB,iDAAA;AAWzD,IAAMG,eAAeJ,mBAAYC,KAAmB,iDAAA;AAOpD,IAAMI,YAAYL,mBAAYC,KAAgB,8CAAA;AAU9C,IAAMK,eAAeN,mBAAYC,KAAmB,6CAAA;AAOpD,IAAMM,UAAUP,mBAAYC,KAAiB,2CAAA;AAK7C,IAAMO,QAAQR,mBAAYC,KAAkC,yCAAA;AAO5D,IAAMQ,iBAAiBT,mBAAYC,KAAqB,mDAAA;AAYxD,IAAMS,oBAAoBV,mBAAYC,KAC3C,sDAAA;AASK,IAAMU,cAAcX,mBAAYC,KAAoB,gDAAA;AAQpD,IAAMW,mBAAmBZ,mBAAYC,KAC1C,qDAAA;AASK,IAAMY,eAAeb,mBAAYC,KAAmB,iDAAA;AAQpD,IAAMa,iBAAiBd,mBAAYC,KAAqB,mDAAA;AAUxD,IAAMc,eAAe,CAC1BC,mBAEOC,WAAI,aAAA;AACT,QAAMC,WAAW,OAAOlB,mBAAYmB,IAAIhB,YAAAA;AACxC,QAAMiB,OAAO,OAAOpB,mBAAYmB,IAAIH,cAAAA;AACpC,SAAOE,SAASC,IAAIC,IAAAA;AACtB,CAAA;AAMK,IAAMC,kBAAkB,CAC7BL,gBACAM,OAEOL,WAAI,aAAA;AACT,QAAMC,WAAW,OAAOlB,mBAAYmB,IAAIhB,YAAAA;AACxC,QAAMiB,OAAO,OAAOpB,mBAAYmB,IAAIH,cAAAA;AACpCE,WAASK,IAAIH,MAAME,GAAGJ,SAASC,IAAIC,IAAAA,CAAAA,CAAAA;AACrC,CAAA;AAMK,IAAMI,gBAAgB,CAC3BR,gBACAS,aAEOR,WAAI,aAAA;AACT,QAAMC,WAAW,OAAOlB,mBAAYmB,IAAIhB,YAAAA;AACxC,QAAMiB,OAAO,OAAOpB,mBAAYmB,IAAIH,cAAAA;AACpC,SAAOE,SAASQ,UAAUN,MAAM,MAAMK,SAASP,SAASC,IAAIC,IAAAA,CAAAA,CAAAA;AAC9D,CAAA;",
|
|
6
6
|
"names": ["Effect", "Null", "Capability$", "make", "PluginManager", "AtomRegistry", "ReactContext", "ReactRoot", "ReactSurface", "Command", "Layer", "ManagedRuntime", "OperationResolver", "UndoMapping", "OperationInvoker", "UndoRegistry", "HistoryTracker", "getAtomValue", "atomCapability", "gen", "registry", "get", "atom", "updateAtomValue", "fn", "set", "subscribeAtom", "callback", "subscribe"]
|
|
7
7
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-TIEBZMTF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
capabilities_exports
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WEBSGU5L.mjs";
|
|
5
5
|
import {
|
|
6
6
|
activation_events_exports
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-M5IC326L.mjs";
|
|
8
8
|
import "../chunk-YAFEA4GV.mjs";
|
|
9
9
|
import {
|
|
10
10
|
plugin_manager_exports
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-2UI6ACB5.mjs";
|
|
12
|
+
import "../chunk-272IPLHQ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
plugin_exports
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-7M4467QR.mjs";
|
|
16
16
|
import {
|
|
17
17
|
capability_exports
|
|
18
18
|
} from "../chunk-YNFPIQGB.mjs";
|
|
@@ -51,12 +51,12 @@ var createCliApp = Effect.fn(function* ({ rootCommand, subCommands: subCommandsP
|
|
|
51
51
|
manager.capabilities.contribute({
|
|
52
52
|
interface: capabilities_exports.PluginManager,
|
|
53
53
|
implementation: manager,
|
|
54
|
-
module: "dxos.
|
|
54
|
+
module: "org.dxos.app-framework.plugin-manager"
|
|
55
55
|
});
|
|
56
56
|
manager.capabilities.contribute({
|
|
57
57
|
interface: capabilities_exports.AtomRegistry,
|
|
58
58
|
implementation: manager.registry,
|
|
59
|
-
module: "dxos.
|
|
59
|
+
module: "org.dxos.app-framework.atom-registry"
|
|
60
60
|
});
|
|
61
61
|
yield* manager.activate(activation_events_exports.Startup);
|
|
62
62
|
const layers = manager.capabilities.getAll(capabilities_exports.Layer);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/cli/cli.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Command from '@effect/cli/Command';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\n\nimport { invariant } from '@dxos/invariant';\n\nimport { ActivationEvents, Capabilities } from '../common';\nimport { Capability, Plugin, PluginManager } from '../core';\n\nconst defaultPluginLoader =\n (plugins: Plugin.Plugin[]): PluginManager.ManagerOptions['pluginLoader'] =>\n (id: string) =>\n Effect.sync(() => {\n const plugin = plugins.find((plugin) => plugin.meta.id === id);\n invariant(plugin, `Plugin not found: ${id}`);\n return plugin;\n });\n\ntype SubCommands = [Command.Command<any, any, any, any>, ...Array<Command.Command<any, any, any, any>>];\n\nexport type CreateCliAppOptions = {\n rootCommand: Command.Command<any, any, any, any>;\n subCommands?: SubCommands;\n pluginManager?: PluginManager.PluginManager;\n pluginLoader?: PluginManager.ManagerOptions['pluginLoader'];\n plugins?: Plugin.Plugin[];\n core?: string[];\n enabled?: string[];\n safeMode?: boolean;\n};\n\n/**\n * Creates a CLI application with plugin support.\n * Similar to useApp but for CLI environments.\n *\n * @example\n * const plugins = [ClientPluginCLI()];\n * const manager = await createCliApp({ plugins });\n * const commands = manager.capabilities.getAll(Capabilities.Command);\n *\n * @param options.pluginManager Optional existing PluginManager instance.\n * @param options.pluginLoader Function to load plugins by ID.\n * @param options.plugins All plugins available to the application.\n * @param options.core Core plugins which will always be enabled.\n * @param options.enabled Enabled plugins.\n * @param options.safeMode Whether to enable safe mode, which disables optional plugins.\n */\nexport const createCliApp = Effect.fn(function* ({\n rootCommand,\n subCommands: subCommandsProp,\n pluginManager: pluginManagerProp,\n pluginLoader: pluginLoaderProp,\n plugins: pluginsProp = [],\n core: coreProp,\n enabled: enabledProp = [],\n safeMode = false,\n}: CreateCliAppOptions) {\n const plugins = pluginsProp;\n const core = coreProp ?? plugins.map(({ meta }) => meta.id);\n const pluginLoader = pluginLoaderProp ?? defaultPluginLoader(plugins);\n const enabled = safeMode ? [] : enabledProp;\n const manager =\n pluginManagerProp ??\n PluginManager.make({\n pluginLoader,\n plugins,\n core,\n enabled,\n });\n\n manager.capabilities.contribute({\n interface: Capabilities.PluginManager,\n implementation: manager,\n module: 'dxos.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Command from '@effect/cli/Command';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\n\nimport { invariant } from '@dxos/invariant';\n\nimport { ActivationEvents, Capabilities } from '../common';\nimport { Capability, Plugin, PluginManager } from '../core';\n\nconst defaultPluginLoader =\n (plugins: Plugin.Plugin[]): PluginManager.ManagerOptions['pluginLoader'] =>\n (id: string) =>\n Effect.sync(() => {\n const plugin = plugins.find((plugin) => plugin.meta.id === id);\n invariant(plugin, `Plugin not found: ${id}`);\n return plugin;\n });\n\ntype SubCommands = [Command.Command<any, any, any, any>, ...Array<Command.Command<any, any, any, any>>];\n\nexport type CreateCliAppOptions = {\n rootCommand: Command.Command<any, any, any, any>;\n subCommands?: SubCommands;\n pluginManager?: PluginManager.PluginManager;\n pluginLoader?: PluginManager.ManagerOptions['pluginLoader'];\n plugins?: Plugin.Plugin[];\n core?: string[];\n enabled?: string[];\n safeMode?: boolean;\n};\n\n/**\n * Creates a CLI application with plugin support.\n * Similar to useApp but for CLI environments.\n *\n * @example\n * const plugins = [ClientPluginCLI()];\n * const manager = await createCliApp({ plugins });\n * const commands = manager.capabilities.getAll(Capabilities.Command);\n *\n * @param options.pluginManager Optional existing PluginManager instance.\n * @param options.pluginLoader Function to load plugins by ID.\n * @param options.plugins All plugins available to the application.\n * @param options.core Core plugins which will always be enabled.\n * @param options.enabled Enabled plugins.\n * @param options.safeMode Whether to enable safe mode, which disables optional plugins.\n */\nexport const createCliApp = Effect.fn(function* ({\n rootCommand,\n subCommands: subCommandsProp,\n pluginManager: pluginManagerProp,\n pluginLoader: pluginLoaderProp,\n plugins: pluginsProp = [],\n core: coreProp,\n enabled: enabledProp = [],\n safeMode = false,\n}: CreateCliAppOptions) {\n const plugins = pluginsProp;\n const core = coreProp ?? plugins.map(({ meta }) => meta.id);\n const pluginLoader = pluginLoaderProp ?? defaultPluginLoader(plugins);\n const enabled = safeMode ? [] : enabledProp;\n const manager =\n pluginManagerProp ??\n PluginManager.make({\n pluginLoader,\n plugins,\n core,\n enabled,\n });\n\n manager.capabilities.contribute({\n interface: Capabilities.PluginManager,\n implementation: manager,\n module: 'org.dxos.app-framework.plugin-manager',\n });\n\n manager.capabilities.contribute({\n interface: Capabilities.AtomRegistry,\n implementation: manager.registry,\n module: 'org.dxos.app-framework.atom-registry',\n });\n\n // Activate startup event to load CLI commands and Effect layers.\n yield* manager.activate(ActivationEvents.Startup);\n\n // Gather all layers and merge them into a single layer.\n const layers = manager.capabilities.getAll(Capabilities.Layer);\n const capabilityServiceLayer = Layer.succeed(Capability.Service, manager.capabilities);\n const pluginServiceLayer = Layer.succeed(Plugin.Service, manager);\n const layer = (Layer.mergeAll as (...args: Layer.Layer<any, any, any>[]) => Layer.Layer<any, any, never>)(\n capabilityServiceLayer,\n pluginServiceLayer,\n ...layers,\n );\n\n // Gather all commands and provide them to the root command.\n const pluginCommands = manager.capabilities.getAll(Capabilities.Command);\n const subCommands = subCommandsProp ? [...subCommandsProp, ...pluginCommands] : pluginCommands;\n invariant(subCommands.length > 0, 'No subcommands provided');\n const command = rootCommand.pipe(Command.withSubcommands(subCommands as SubCommands));\n\n return { command, layer };\n});\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAIA,YAAYA,aAAa;AACzB,YAAYC,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,iBAAiB;;AAK1B,IAAMC,sBACJ,CAACC,YACD,CAACC,OACQC,YAAK,MAAA;AACV,QAAMC,SAASH,QAAQI,KAAK,CAACD,YAAWA,QAAOE,KAAKJ,OAAOA,EAAAA;AAC3DK,YAAUH,QAAQ,qBAAqBF,EAAAA,IAAI;;;;;;;;;AAC3C,SAAOE;AACT,CAAA;AA+BG,IAAMI,eAAsBC,UAAG,WAAW,EAC/CC,aACAC,aAAaC,iBACbC,eAAeC,mBACfC,cAAcC,kBACdf,SAASgB,cAAc,CAAA,GACvBC,MAAMC,UACNC,SAASC,cAAc,CAAA,GACvBC,WAAW,MAAK,GACI;AACpB,QAAMrB,UAAUgB;AAChB,QAAMC,OAAOC,YAAYlB,QAAQsB,IAAI,CAAC,EAAEjB,KAAI,MAAOA,KAAKJ,EAAE;AAC1D,QAAMa,eAAeC,oBAAoBhB,oBAAoBC,OAAAA;AAC7D,QAAMmB,UAAUE,WAAW,CAAA,IAAKD;AAChC,QAAMG,UACJV,qBACAW,uBAAcC,KAAK;IACjBX;IACAd;IACAiB;IACAE;EACF,CAAA;AAEFI,UAAQG,aAAaC,WAAW;IAC9BC,WAAWC,qBAAaL;IACxBM,gBAAgBP;IAChBQ,QAAQ;EACV,CAAA;AAEAR,UAAQG,aAAaC,WAAW;IAC9BC,WAAWC,qBAAaG;IACxBF,gBAAgBP,QAAQU;IACxBF,QAAQ;EACV,CAAA;AAGA,SAAOR,QAAQW,SAASC,0BAAiBC,OAAO;AAGhD,QAAMC,SAASd,QAAQG,aAAaY,OAAOT,qBAAaU,KAAK;AAC7D,QAAMC,yBAA+BC,cAAQC,mBAAWC,SAASpB,QAAQG,YAAY;AACrF,QAAMkB,qBAA2BH,cAAQI,eAAOF,SAASpB,OAAAA;AACzD,QAAMuB,QAAeC,eACnBP,wBACAI,oBAAAA,GACGP,MAAAA;AAIL,QAAMW,iBAAiBzB,QAAQG,aAAaY,OAAOT,qBAAaoB,OAAO;AACvE,QAAMvC,cAAcC,kBAAkB;OAAIA;OAAoBqC;MAAkBA;AAChF1C,YAAUI,YAAYwC,SAAS,GAAG,2BAAA;;;;;;;;;AAClC,QAAMC,UAAU1C,YAAY2C,KAAaC,wBAAgB3C,WAAAA,CAAAA;AAEzD,SAAO;IAAEyC;IAASL;EAAM;AAC1B,CAAA;",
|
|
6
6
|
"names": ["Command", "Effect", "Layer", "invariant", "defaultPluginLoader", "plugins", "id", "sync", "plugin", "find", "meta", "invariant", "createCliApp", "fn", "rootCommand", "subCommands", "subCommandsProp", "pluginManager", "pluginManagerProp", "pluginLoader", "pluginLoaderProp", "pluginsProp", "core", "coreProp", "enabled", "enabledProp", "safeMode", "map", "manager", "PluginManager", "make", "capabilities", "contribute", "interface", "Capabilities", "implementation", "module", "AtomRegistry", "registry", "activate", "ActivationEvents", "Startup", "layers", "getAll", "Layer", "capabilityServiceLayer", "succeed", "Capability", "Service", "pluginServiceLayer", "Plugin", "layer", "mergeAll", "pluginCommands", "Command", "length", "command", "pipe", "withSubcommands"]
|
|
7
7
|
}
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
SetupOperationResolver,
|
|
6
6
|
SetupReactSurface,
|
|
7
7
|
Startup
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-M5IC326L.mjs";
|
|
9
9
|
import "../chunk-YAFEA4GV.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-2UI6ACB5.mjs";
|
|
11
|
+
import "../chunk-272IPLHQ.mjs";
|
|
12
|
+
import "../chunk-7M4467QR.mjs";
|
|
13
13
|
import "../chunk-YNFPIQGB.mjs";
|
|
14
14
|
import "../chunk-J5LGTIGS.mjs";
|
|
15
15
|
export {
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
getAtomValue,
|
|
17
17
|
subscribeAtom,
|
|
18
18
|
updateAtomValue
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-WEBSGU5L.mjs";
|
|
20
20
|
import "../chunk-YAFEA4GV.mjs";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-2UI6ACB5.mjs";
|
|
22
|
+
import "../chunk-272IPLHQ.mjs";
|
|
23
|
+
import "../chunk-7M4467QR.mjs";
|
|
24
24
|
import "../chunk-YNFPIQGB.mjs";
|
|
25
25
|
import "../chunk-J5LGTIGS.mjs";
|
|
26
26
|
export {
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
ManagerTypeId,
|
|
3
3
|
isManager,
|
|
4
4
|
make
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-2UI6ACB5.mjs";
|
|
6
|
+
import "../chunk-272IPLHQ.mjs";
|
|
7
|
+
import "../chunk-7M4467QR.mjs";
|
|
8
8
|
import "../chunk-YNFPIQGB.mjs";
|
|
9
9
|
import "../chunk-J5LGTIGS.mjs";
|
|
10
10
|
export {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PluginManagerContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TGX63LTL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
EmptyHistoryError,
|
|
6
6
|
history_tracker_exports,
|
|
7
7
|
undo_mapping_exports,
|
|
8
8
|
undo_registry_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JGWCBVKJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Label,
|
|
12
12
|
UndoOperation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TIEBZMTF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
capabilities_exports
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WEBSGU5L.mjs";
|
|
17
17
|
import {
|
|
18
18
|
activation_events_exports
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-M5IC326L.mjs";
|
|
20
20
|
import "./chunk-YAFEA4GV.mjs";
|
|
21
21
|
import {
|
|
22
22
|
capability_manager_exports,
|
|
23
23
|
plugin_manager_exports
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2UI6ACB5.mjs";
|
|
25
25
|
import {
|
|
26
26
|
activation_event_exports
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-272IPLHQ.mjs";
|
|
28
28
|
import {
|
|
29
29
|
plugin_exports
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7M4467QR.mjs";
|
|
31
31
|
import {
|
|
32
32
|
capability_exports
|
|
33
33
|
} from "./chunk-YNFPIQGB.mjs";
|
|
@@ -35,14 +35,14 @@ import "./chunk-J5LGTIGS.mjs";
|
|
|
35
35
|
|
|
36
36
|
// src/plugin-operation/meta.ts
|
|
37
37
|
var meta = {
|
|
38
|
-
id: "dxos.
|
|
38
|
+
id: "org.dxos.plugin.operation",
|
|
39
39
|
name: "Operation Plugin",
|
|
40
40
|
description: "Provides operation invocation, undo registry, and history tracking."
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
// src/plugin-operation/OperationPlugin.ts
|
|
44
|
-
var OperationInvoker = capability_exports.lazy("OperationInvoker", () => import("./invoker-capability-
|
|
45
|
-
var HistoryCapabilities = capability_exports.lazy("HistoryCapabilities", () => import("./capability-
|
|
44
|
+
var OperationInvoker = capability_exports.lazy("OperationInvoker", () => import("./invoker-capability-4AUGUMM5.mjs"));
|
|
45
|
+
var HistoryCapabilities = capability_exports.lazy("HistoryCapabilities", () => import("./capability-LF3OXSCV.mjs"));
|
|
46
46
|
var OperationPlugin = plugin_exports.define(meta).pipe(plugin_exports.addModule({
|
|
47
47
|
activatesOn: activation_events_exports.ManagedRuntimeReady,
|
|
48
48
|
activatesBefore: [
|
|
@@ -59,13 +59,13 @@ var OperationPlugin = plugin_exports.define(meta).pipe(plugin_exports.addModule(
|
|
|
59
59
|
|
|
60
60
|
// src/plugin-runtime/meta.ts
|
|
61
61
|
var meta2 = {
|
|
62
|
-
id: "dxos.
|
|
62
|
+
id: "org.dxos.plugin.runtime",
|
|
63
63
|
name: "Runtime Plugin",
|
|
64
64
|
description: "Provides a managed Effect runtime by composing contributed layers."
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// src/plugin-runtime/RuntimePlugin.ts
|
|
68
|
-
var ManagedRuntimeCapability = capability_exports.lazy("ManagedRuntime", () => import("./capability-
|
|
68
|
+
var ManagedRuntimeCapability = capability_exports.lazy("ManagedRuntime", () => import("./capability-6YMUBS54.mjs"));
|
|
69
69
|
var RuntimePlugin = plugin_exports.define(meta2).pipe(plugin_exports.addModule({
|
|
70
70
|
activatesOn: activation_events_exports.Startup,
|
|
71
71
|
activatesBefore: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/plugin-operation/meta.ts", "../../../src/plugin-operation/OperationPlugin.ts", "../../../src/plugin-runtime/meta.ts", "../../../src/plugin-runtime/RuntimePlugin.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '../core';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '../core';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.operation',\n name: 'Operation Plugin',\n description: 'Provides operation invocation, undo registry, and history tracking.',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvents } from '../common';\nimport { Capability, Plugin } from '../core';\n\nimport { meta } from './meta';\n\nconst OperationInvoker = Capability.lazy('OperationInvoker', () => import('./invoker-capability'));\nconst HistoryCapabilities = Capability.lazy('HistoryCapabilities', () => import('./history/capability'));\n\nexport const OperationPlugin = Plugin.define(meta).pipe(\n Plugin.addModule({\n activatesOn: ActivationEvents.ManagedRuntimeReady,\n activatesBefore: [ActivationEvents.SetupOperationResolver],\n activatesAfter: [ActivationEvents.OperationInvokerReady],\n activate: OperationInvoker,\n }),\n Plugin.addModule({\n activatesOn: ActivationEvents.OperationInvokerReady,\n activate: HistoryCapabilities,\n }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '../core';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.runtime',\n name: 'Runtime Plugin',\n description: 'Provides a managed Effect runtime by composing contributed layers.',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvents } from '../common';\nimport { Capability, Plugin } from '../core';\n\nimport { meta } from './meta';\n\nconst ManagedRuntimeCapability = Capability.lazy('ManagedRuntime', () => import('./capability'));\n\nexport const RuntimePlugin = Plugin.define(meta).pipe(\n Plugin.addModule({\n activatesOn: ActivationEvents.Startup,\n activatesBefore: [ActivationEvents.SetupLayer],\n activatesAfter: [ActivationEvents.ManagedRuntimeReady],\n activate: ManagedRuntimeCapability,\n }),\n Plugin.make,\n);\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAa;AACf;;;ACDA,IAAMC,mBAAmBC,mBAAWC,KAAK,oBAAoB,MAAM,OAAO,mCAAA,CAAA;AAC1E,IAAMC,sBAAsBF,mBAAWC,KAAK,uBAAuB,MAAM,OAAO,2BAAA,CAAA;AAEzE,IAAME,kBAAkBC,eAAOC,OAAOC,IAAAA,EAAMC,KACjDH,eAAOI,UAAU;EACfC,aAAaC,0BAAiBC;EAC9BC,iBAAiB;IAACF,0BAAiBG;;EACnCC,gBAAgB;IAACJ,0BAAiBK;;EAClCC,UAAUjB;AACZ,CAAA,GACAK,eAAOI,UAAU;EACfC,aAAaC,0BAAiBK;EAC9BC,UAAUd;AACZ,CAAA,GACAE,eAAOa,IAAI;;;ACjBN,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAa;AACf;;;ACDA,IAAMC,2BAA2BC,mBAAWC,KAAK,kBAAkB,MAAM,OAAO,2BAAA,CAAA;AAEzE,IAAMC,gBAAgBC,eAAOC,OAAOC,KAAAA,EAAMC,KAC/CH,eAAOI,UAAU;EACfC,aAAaC,0BAAiBC;EAC9BC,iBAAiB;IAACF,0BAAiBG;;EACnCC,gBAAgB;IAACJ,0BAAiBK;;EAClCC,UAAUhB;AACZ,CAAA,GACAI,eAAOa,IAAI;",
|
|
6
6
|
"names": ["meta", "id", "name", "description", "OperationInvoker", "Capability", "lazy", "HistoryCapabilities", "OperationPlugin", "Plugin", "define", "meta", "pipe", "addModule", "activatesOn", "ActivationEvents", "ManagedRuntimeReady", "activatesBefore", "SetupOperationResolver", "activatesAfter", "OperationInvokerReady", "activate", "make", "meta", "id", "name", "description", "ManagedRuntimeCapability", "Capability", "lazy", "RuntimePlugin", "Plugin", "define", "meta", "pipe", "addModule", "activatesOn", "ActivationEvents", "Startup", "activatesBefore", "SetupLayer", "activatesAfter", "ManagedRuntimeReady", "activate", "make"]
|
|
7
7
|
}
|
package/dist/lib/browser/{invoker-capability-BNLVNYHU.mjs → invoker-capability-4AUGUMM5.mjs}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-TIEBZMTF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
capabilities_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WEBSGU5L.mjs";
|
|
5
5
|
import {
|
|
6
6
|
activation_events_exports
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M5IC326L.mjs";
|
|
8
8
|
import "./chunk-YAFEA4GV.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2UI6ACB5.mjs";
|
|
10
|
+
import "./chunk-272IPLHQ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
plugin_exports
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7M4467QR.mjs";
|
|
14
14
|
import {
|
|
15
15
|
capability_exports
|
|
16
16
|
} from "./chunk-YNFPIQGB.mjs";
|
|
@@ -33,4 +33,4 @@ var invoker_capability_default = capability_exports.makeModule(Effect.fnUntraced
|
|
|
33
33
|
export {
|
|
34
34
|
invoker_capability_default as default
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=invoker-capability-
|
|
36
|
+
//# sourceMappingURL=invoker-capability-4AUGUMM5.mjs.map
|