@dxos/plugin-deck 0.7.5-labs.a279d8c → 0.7.5-main.2567c87
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/{chunk-WUMAJGVA.mjs → chunk-2M4PXYNB.mjs} +3 -3
- package/dist/lib/browser/{chunk-WUMAJGVA.mjs.map → chunk-2M4PXYNB.mjs.map} +2 -2
- package/dist/lib/browser/index.mjs +5 -11
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{location-AIO6V3MK.mjs → location-QHRBQBQN.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-G6PDXUI5.mjs → react-context-3BDW7W2N.mjs} +2 -2
- package/dist/lib/browser/{react-root-AWYSGU4Q.mjs → react-root-UL7ZDRVZ.mjs} +2 -2
- package/dist/lib/browser/{react-surface-CLUABFNX.mjs → react-surface-VPNOGGNN.mjs} +2 -2
- package/dist/lib/browser/{url-handler-JRAQRY73.mjs → url-handler-Z5B7LD3N.mjs} +2 -2
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/layout/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/layout/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation/index.d.ts +0 -1
- package/dist/types/src/capabilities/navigation/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -31
- package/src/DeckPlugin.ts +0 -6
- package/src/capabilities/navigation/index.ts +0 -1
- package/src/components/DeckLayout/ContentEmpty.tsx +2 -2
- package/dist/lib/browser/tools-4XY7KFQF.mjs +0 -46
- package/dist/lib/browser/tools-4XY7KFQF.mjs.map +0 -7
- package/dist/types/src/capabilities/navigation/tools.d.ts +0 -9
- package/dist/types/src/capabilities/navigation/tools.d.ts.map +0 -1
- package/src/capabilities/navigation/tools.ts +0 -57
- /package/dist/lib/browser/{location-AIO6V3MK.mjs.map → location-QHRBQBQN.mjs.map} +0 -0
- /package/dist/lib/browser/{react-context-G6PDXUI5.mjs.map → react-context-3BDW7W2N.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-AWYSGU4Q.mjs.map → react-root-UL7ZDRVZ.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-CLUABFNX.mjs.map → react-surface-VPNOGGNN.mjs.map} +0 -0
- /package/dist/lib/browser/{url-handler-JRAQRY73.mjs.map → url-handler-Z5B7LD3N.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.7.5-
|
|
3
|
+
"version": "0.7.5-main.2567c87",
|
|
4
4
|
"description": "DXOS Surface plugin for the main application layout.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -32,32 +32,31 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@fluentui/react-tabster": "^9.19.0",
|
|
34
34
|
"@preact/signals-core": "^1.6.0",
|
|
35
|
-
"effect": "^3.12.
|
|
35
|
+
"effect": "^3.12.1",
|
|
36
36
|
"immer": "^10.1.1",
|
|
37
|
-
"@dxos/app-framework": "0.7.5-
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/echo-schema": "0.7.5-
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/live-object": "0.7.5-
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/log": "0.7.5-
|
|
48
|
-
"@dxos/plugin-
|
|
49
|
-
"@dxos/plugin-
|
|
50
|
-
"@dxos/plugin-
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/react-
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/react-ui-
|
|
56
|
-
"@dxos/react-ui-
|
|
57
|
-
"@dxos/react-ui-
|
|
58
|
-
"@dxos/util": "0.7.5-
|
|
59
|
-
"@dxos/react-ui-
|
|
60
|
-
"@dxos/react-ui-attention": "0.7.5-labs.a279d8c"
|
|
37
|
+
"@dxos/app-framework": "0.7.5-main.2567c87",
|
|
38
|
+
"@dxos/async": "0.7.5-main.2567c87",
|
|
39
|
+
"@dxos/debug": "0.7.5-main.2567c87",
|
|
40
|
+
"@dxos/echo-schema": "0.7.5-main.2567c87",
|
|
41
|
+
"@dxos/echo-signals": "0.7.5-main.2567c87",
|
|
42
|
+
"@dxos/invariant": "0.7.5-main.2567c87",
|
|
43
|
+
"@dxos/keyboard": "0.7.5-main.2567c87",
|
|
44
|
+
"@dxos/local-storage": "0.7.5-main.2567c87",
|
|
45
|
+
"@dxos/live-object": "0.7.5-main.2567c87",
|
|
46
|
+
"@dxos/plugin-attention": "0.7.5-main.2567c87",
|
|
47
|
+
"@dxos/log": "0.7.5-main.2567c87",
|
|
48
|
+
"@dxos/plugin-client": "0.7.5-main.2567c87",
|
|
49
|
+
"@dxos/plugin-observability": "0.7.5-main.2567c87",
|
|
50
|
+
"@dxos/plugin-graph": "0.7.5-main.2567c87",
|
|
51
|
+
"@dxos/react-client": "0.7.5-main.2567c87",
|
|
52
|
+
"@dxos/react-ui-attention": "0.7.5-main.2567c87",
|
|
53
|
+
"@dxos/plugin-theme": "0.7.5-main.2567c87",
|
|
54
|
+
"@dxos/react-ui-stack": "0.7.5-main.2567c87",
|
|
55
|
+
"@dxos/react-ui-tabs": "0.7.5-main.2567c87",
|
|
56
|
+
"@dxos/react-ui-form": "0.7.5-main.2567c87",
|
|
57
|
+
"@dxos/react-ui-mosaic": "0.7.5-main.2567c87",
|
|
58
|
+
"@dxos/util": "0.7.5-main.2567c87",
|
|
59
|
+
"@dxos/react-ui-text-tooltip": "0.7.5-main.2567c87"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
62
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -66,16 +65,16 @@
|
|
|
66
65
|
"react": "~18.2.0",
|
|
67
66
|
"react-dom": "~18.2.0",
|
|
68
67
|
"vite": "5.4.7",
|
|
69
|
-
"@dxos/react-ui": "0.7.5-
|
|
70
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
71
|
-
"@dxos/storybook-utils": "0.7.5-
|
|
68
|
+
"@dxos/react-ui": "0.7.5-main.2567c87",
|
|
69
|
+
"@dxos/react-ui-theme": "0.7.5-main.2567c87",
|
|
70
|
+
"@dxos/storybook-utils": "0.7.5-main.2567c87"
|
|
72
71
|
},
|
|
73
72
|
"peerDependencies": {
|
|
74
73
|
"@phosphor-icons/react": "^2.0.5",
|
|
75
74
|
"react": "~18.2.0",
|
|
76
75
|
"react-dom": "~18.2.0",
|
|
77
|
-
"@dxos/react-ui": "0.7.5-
|
|
78
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
76
|
+
"@dxos/react-ui": "0.7.5-main.2567c87",
|
|
77
|
+
"@dxos/react-ui-theme": "0.7.5-main.2567c87"
|
|
79
78
|
},
|
|
80
79
|
"publishConfig": {
|
|
81
80
|
"access": "public"
|
package/src/DeckPlugin.ts
CHANGED
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
DeckSettings,
|
|
22
22
|
ReactSurface,
|
|
23
23
|
UrlHandler,
|
|
24
|
-
NavigationTools,
|
|
25
24
|
} from './capabilities';
|
|
26
25
|
import { DeckEvents } from './events';
|
|
27
26
|
import { meta } from './meta';
|
|
@@ -121,9 +120,4 @@ export const DeckPlugin = () =>
|
|
|
121
120
|
activatesOn: Events.SetupIntents,
|
|
122
121
|
activate: NavigationIntentResolver,
|
|
123
122
|
}),
|
|
124
|
-
defineModule({
|
|
125
|
-
id: `${meta.id}/module/navigation-tools`,
|
|
126
|
-
activatesOn: Events.Startup,
|
|
127
|
-
activate: NavigationTools,
|
|
128
|
-
}),
|
|
129
123
|
]);
|
|
@@ -7,5 +7,4 @@ import { lazy } from '@dxos/app-framework';
|
|
|
7
7
|
export const CheckAppScheme = lazy(() => import('./check-app-scheme'));
|
|
8
8
|
export const LocationState = lazy(() => import('./location'));
|
|
9
9
|
export const NavigationIntentResolver = lazy(() => import('./intent-resolver'));
|
|
10
|
-
export const NavigationTools = lazy(() => import('./tools'));
|
|
11
10
|
export const UrlHandler = lazy(() => import('./url-handler'));
|
|
@@ -14,10 +14,10 @@ export const ContentEmpty = () => {
|
|
|
14
14
|
return (
|
|
15
15
|
<div
|
|
16
16
|
role='none'
|
|
17
|
-
className='min-bs-screen is-dvw sm:is-full p-8 grid grid-rows-[var(--rail-size)_1fr]
|
|
17
|
+
className='min-bs-screen is-dvw sm:is-full p-8 grid grid-rows-[var(--rail-size)_1fr]'
|
|
18
18
|
data-testid='layoutPlugin.firstRunMessage'
|
|
19
19
|
>
|
|
20
|
-
<div role='toolbar' className={mx(soloInlinePadding, '
|
|
20
|
+
<div role='toolbar' className={mx(soloInlinePadding, 'flex items-stretch')}>
|
|
21
21
|
<ToggleSidebarButton />
|
|
22
22
|
<span role='none' className='grow' />
|
|
23
23
|
</div>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// packages/plugins/plugin-deck/src/capabilities/navigation/tools.ts
|
|
2
|
-
import { Capabilities, contributes, createIntent, NavigationAction } from "@dxos/app-framework";
|
|
3
|
-
import { defineTool, ToolResult } from "@dxos/artifact";
|
|
4
|
-
import { S } from "@dxos/echo-schema";
|
|
5
|
-
import { invariant } from "@dxos/invariant";
|
|
6
|
-
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/navigation/tools.ts";
|
|
7
|
-
var tools_default = () => contributes(Capabilities.Tools, [
|
|
8
|
-
defineTool({
|
|
9
|
-
name: "show",
|
|
10
|
-
// TODO(ZaymonFC): We should update the prompt to teach the LLM the difference between object ids and fully qualified ids.
|
|
11
|
-
description: "Show an item in the app. Use this tool to open an artifact. When supplying IDs to show, they must be fully qualified like space:object.",
|
|
12
|
-
// TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
|
|
13
|
-
schema: S.Struct({
|
|
14
|
-
id: S.String.annotations({
|
|
15
|
-
description: "The ID of the item to show."
|
|
16
|
-
}),
|
|
17
|
-
pivotId: S.optional(S.String.annotations({
|
|
18
|
-
description: "The ID of the chat. If provided, the item will be added after the pivot item."
|
|
19
|
-
}))
|
|
20
|
-
}),
|
|
21
|
-
execute: async ({ id, pivotId }, { extensions }) => {
|
|
22
|
-
invariant(extensions?.dispatch, "No intent dispatcher", {
|
|
23
|
-
F: __dxlog_file,
|
|
24
|
-
L: 42,
|
|
25
|
-
S: void 0,
|
|
26
|
-
A: [
|
|
27
|
-
"extensions?.dispatch",
|
|
28
|
-
"'No intent dispatcher'"
|
|
29
|
-
]
|
|
30
|
-
});
|
|
31
|
-
const { data, error } = await extensions.dispatch(createIntent(NavigationAction.AddToActive, {
|
|
32
|
-
id,
|
|
33
|
-
part: "main",
|
|
34
|
-
pivotId
|
|
35
|
-
}));
|
|
36
|
-
if (error) {
|
|
37
|
-
return ToolResult.Error(error.message);
|
|
38
|
-
}
|
|
39
|
-
return ToolResult.Success(data);
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
]);
|
|
43
|
-
export {
|
|
44
|
-
tools_default as default
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=tools-4XY7KFQF.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/navigation/tools.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n Capabilities,\n contributes,\n createIntent,\n NavigationAction,\n type PromiseIntentDispatcher,\n} from '@dxos/app-framework';\nimport { defineTool, ToolResult } from '@dxos/artifact';\nimport { S } from '@dxos/echo-schema';\nimport { invariant } from '@dxos/invariant';\n\n// TODO(burdon): Factor out.\ndeclare global {\n interface ToolContextExtensions {\n dispatch?: PromiseIntentDispatcher;\n }\n}\n\nexport default () =>\n contributes(Capabilities.Tools, [\n defineTool({\n name: 'show',\n // TODO(ZaymonFC): We should update the prompt to teach the LLM the difference between object ids and fully qualified ids.\n description:\n 'Show an item in the app. Use this tool to open an artifact. When supplying IDs to show, they must be fully qualified like space:object.',\n // TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.\n schema: S.Struct({\n id: S.String.annotations({\n description: 'The ID of the item to show.',\n }),\n pivotId: S.optional(\n S.String.annotations({\n description: 'The ID of the chat. If provided, the item will be added after the pivot item.',\n }),\n ),\n }),\n execute: async ({ id, pivotId }, { extensions }) => {\n invariant(extensions?.dispatch, 'No intent dispatcher');\n const { data, error } = await extensions.dispatch(\n createIntent(NavigationAction.AddToActive, {\n id,\n part: 'main',\n pivotId,\n }),\n );\n if (error) {\n return ToolResult.Error(error.message);\n }\n\n return ToolResult.Success(data);\n },\n }),\n ]);\n"],
|
|
5
|
-
"mappings": ";AAIA,SACEA,cACAC,aACAC,cACAC,wBAEK;AACP,SAASC,YAAYC,kBAAkB;AACvC,SAASC,SAAS;AAClB,SAASC,iBAAiB;;AAS1B,IAAA,gBAAe,MACbN,YAAYD,aAAaQ,OAAO;EAC9BJ,WAAW;IACTK,MAAM;;IAENC,aACE;;IAEFC,QAAQL,EAAEM,OAAO;MACfC,IAAIP,EAAEQ,OAAOC,YAAY;QACvBL,aAAa;MACf,CAAA;MACAM,SAASV,EAAEW,SACTX,EAAEQ,OAAOC,YAAY;QACnBL,aAAa;MACf,CAAA,CAAA;IAEJ,CAAA;IACAQ,SAAS,OAAO,EAAEL,IAAIG,QAAO,GAAI,EAAEG,WAAU,MAAE;AAC7CZ,gBAAUY,YAAYC,UAAU,wBAAA;;;;;;;;;AAChC,YAAM,EAAEC,MAAMC,MAAK,IAAK,MAAMH,WAAWC,SACvClB,aAAaC,iBAAiBoB,aAAa;QACzCV;QACAW,MAAM;QACNR;MACF,CAAA,CAAA;AAEF,UAAIM,OAAO;AACT,eAAOjB,WAAWoB,MAAMH,MAAMI,OAAO;MACvC;AAEA,aAAOrB,WAAWsB,QAAQN,IAAAA;IAC5B;EACF,CAAA;CACD;",
|
|
6
|
-
"names": ["Capabilities", "contributes", "createIntent", "NavigationAction", "defineTool", "ToolResult", "S", "invariant", "Tools", "name", "description", "schema", "Struct", "id", "String", "annotations", "pivotId", "optional", "execute", "extensions", "dispatch", "data", "error", "AddToActive", "part", "Error", "message", "Success"]
|
|
7
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
2
|
-
declare global {
|
|
3
|
-
interface ToolContextExtensions {
|
|
4
|
-
dispatch?: PromiseIntentDispatcher;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/artifact").Tool[]>;
|
|
8
|
-
export default _default;
|
|
9
|
-
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/navigation/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBAkCK"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
Capabilities,
|
|
7
|
-
contributes,
|
|
8
|
-
createIntent,
|
|
9
|
-
NavigationAction,
|
|
10
|
-
type PromiseIntentDispatcher,
|
|
11
|
-
} from '@dxos/app-framework';
|
|
12
|
-
import { defineTool, ToolResult } from '@dxos/artifact';
|
|
13
|
-
import { S } from '@dxos/echo-schema';
|
|
14
|
-
import { invariant } from '@dxos/invariant';
|
|
15
|
-
|
|
16
|
-
// TODO(burdon): Factor out.
|
|
17
|
-
declare global {
|
|
18
|
-
interface ToolContextExtensions {
|
|
19
|
-
dispatch?: PromiseIntentDispatcher;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default () =>
|
|
24
|
-
contributes(Capabilities.Tools, [
|
|
25
|
-
defineTool({
|
|
26
|
-
name: 'show',
|
|
27
|
-
// TODO(ZaymonFC): We should update the prompt to teach the LLM the difference between object ids and fully qualified ids.
|
|
28
|
-
description:
|
|
29
|
-
'Show an item in the app. Use this tool to open an artifact. When supplying IDs to show, they must be fully qualified like space:object.',
|
|
30
|
-
// TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
|
|
31
|
-
schema: S.Struct({
|
|
32
|
-
id: S.String.annotations({
|
|
33
|
-
description: 'The ID of the item to show.',
|
|
34
|
-
}),
|
|
35
|
-
pivotId: S.optional(
|
|
36
|
-
S.String.annotations({
|
|
37
|
-
description: 'The ID of the chat. If provided, the item will be added after the pivot item.',
|
|
38
|
-
}),
|
|
39
|
-
),
|
|
40
|
-
}),
|
|
41
|
-
execute: async ({ id, pivotId }, { extensions }) => {
|
|
42
|
-
invariant(extensions?.dispatch, 'No intent dispatcher');
|
|
43
|
-
const { data, error } = await extensions.dispatch(
|
|
44
|
-
createIntent(NavigationAction.AddToActive, {
|
|
45
|
-
id,
|
|
46
|
-
part: 'main',
|
|
47
|
-
pivotId,
|
|
48
|
-
}),
|
|
49
|
-
);
|
|
50
|
-
if (error) {
|
|
51
|
-
return ToolResult.Error(error.message);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return ToolResult.Success(data);
|
|
55
|
-
},
|
|
56
|
-
}),
|
|
57
|
-
]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|