@dxos/plugin-debug 0.8.4-main.c85a9c8dae → 0.8.4-main.d9fc60f731
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/LICENSE +102 -5
- package/PLUGIN.mdl +373 -0
- package/README.md +1 -1
- package/dist/lib/{browser/DebugGraph-7HXJ2PS2.mjs → neutral/DebugGraph-G4FWS57E.mjs} +4 -5
- package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs.map +7 -0
- package/dist/lib/neutral/DebugObjectPanel-OS65NC4M.mjs +59 -0
- package/dist/lib/neutral/DebugObjectPanel-OS65NC4M.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.mjs +59 -0
- package/dist/lib/neutral/DebugPlugin.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs +18 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs +12 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs +223 -0
- package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs.map +7 -0
- package/dist/lib/{browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs → neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs} +10 -26
- package/dist/lib/neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs.map +7 -0
- package/dist/lib/{browser/DebugStatus-COQGH37G.mjs → neutral/DebugStatus-H2BAHN26.mjs} +36 -39
- package/dist/lib/neutral/DebugStatus-H2BAHN26.mjs.map +7 -0
- package/dist/lib/{browser/DevtoolsOverviewContainer-C75NFVER.mjs → neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs} +9 -6
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs.map +7 -0
- package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs +177 -0
- package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPanel-64GIYJHN.mjs +161 -0
- package/dist/lib/neutral/RegistryPanel-64GIYJHN.mjs.map +7 -0
- package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.mjs +146 -0
- package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.mjs.map +7 -0
- package/dist/lib/{browser/Wireframe-KAGOKEFW.mjs → neutral/Wireframe-WD7S2AUU.mjs} +9 -10
- package/dist/lib/neutral/Wireframe-WD7S2AUU.mjs.map +7 -0
- package/dist/lib/{browser/app-graph-builder-LGUQNXHD.mjs → neutral/app-graph-builder-XYLTBYKN.mjs} +246 -259
- package/dist/lib/neutral/app-graph-builder-XYLTBYKN.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +15 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HOV6MV5B.mjs +43 -0
- package/dist/lib/neutral/chunk-HOV6MV5B.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/{browser/chunk-4UFQXPP7.mjs → neutral/chunk-UAAGABXZ.mjs} +24 -12
- package/dist/lib/neutral/chunk-UAAGABXZ.mjs.map +7 -0
- package/dist/lib/{browser/SpaceGenerator-SWSGJEEL.mjs → neutral/components/index.mjs} +90 -292
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +25 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +18 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +12 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/{browser/react-context-I3USIAF6.mjs → neutral/react-context-MUZ3KVLU.mjs} +6 -6
- package/dist/lib/neutral/react-context-MUZ3KVLU.mjs.map +7 -0
- package/dist/lib/{browser/react-surface-BTVNKKVQ.mjs → neutral/react-surface-3MDMZGCA.mjs} +162 -180
- package/dist/lib/neutral/react-surface-3MDMZGCA.mjs.map +7 -0
- package/dist/lib/{browser/settings-SLTQJJNF.mjs → neutral/settings-MPM6YUP4.mjs} +7 -11
- package/dist/lib/neutral/settings-MPM6YUP4.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +91 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +2 -5
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/DebugPlugin.node.d.ts +5 -0
- package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.test.d.ts +2 -0
- package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.workerd.d.ts +5 -0
- package/dist/types/src/DebugPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +11 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/{settings/settings.d.ts → settings.d.ts} +2 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +106 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
- package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +3 -4
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +2 -2
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/index.d.ts +1 -2
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +3 -4
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +1 -2
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +1 -2
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -1
- package/dist/types/src/containers/DebugStatus/index.d.ts +1 -2
- package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +1 -2
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts +15 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts +106 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts +3 -0
- package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/index.d.ts +2 -0
- package/dist/types/src/containers/GithubPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts +3 -0
- package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryPanel/index.d.ts +2 -0
- package/dist/types/src/containers/RegistryPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +3 -1
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +1 -2
- package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -1
- package/dist/types/src/containers/Wireframe/index.d.ts +1 -2
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +2 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +87 -61
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +8 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +70 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +112 -71
- package/src/DebugPlugin.node.ts +18 -0
- package/src/DebugPlugin.test.ts +29 -0
- package/src/DebugPlugin.tsx +14 -10
- package/src/DebugPlugin.workerd.ts +12 -0
- package/src/capabilities/app-graph-builder.ts +433 -0
- package/src/capabilities/index.ts +6 -4
- package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +7 -2
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +179 -161
- package/src/capabilities/{settings/settings.ts → settings.ts} +4 -4
- package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
- package/src/components/DebugSettings/DebugSettings.tsx +259 -0
- package/src/components/DebugSettings/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +28 -28
- package/src/components/SpaceGenerator/draw-util.ts +8 -8
- package/src/components/SpaceGenerator/presets.ts +39 -62
- package/src/components/index.ts +4 -0
- package/src/containers/DebugGraph/DebugGraph.tsx +3 -2
- package/src/containers/DebugGraph/index.ts +1 -3
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +49 -18
- package/src/containers/DebugObjectPanel/index.ts +1 -3
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +11 -24
- package/src/containers/DebugSpaceObjectsPanel/index.ts +1 -3
- package/src/containers/DebugStatus/DebugStatus.tsx +42 -19
- package/src/containers/DebugStatus/index.ts +1 -3
- package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +8 -1
- package/src/containers/DevtoolsOverviewContainer/index.ts +1 -3
- package/src/containers/GithubPanel/GithubComponent.stories.tsx +38 -0
- package/src/containers/GithubPanel/GithubComponent.tsx +192 -0
- package/src/containers/GithubPanel/GithubPanel.tsx +17 -0
- package/src/containers/GithubPanel/index.ts +5 -0
- package/src/containers/RegistryPanel/RegistryPanel.tsx +150 -0
- package/src/containers/RegistryPanel/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +104 -104
- package/src/containers/SpaceGenerator/index.ts +1 -3
- package/src/containers/Wireframe/Wireframe.tsx +3 -7
- package/src/containers/Wireframe/index.ts +1 -3
- package/src/containers/index.ts +2 -1
- package/src/index.ts +1 -1
- package/src/meta.ts +26 -6
- package/src/plugin.ts +10 -0
- package/src/translations.ts +83 -60
- package/src/types/Settings.ts +16 -0
- package/src/{types.ts → types/index.ts} +16 -14
- package/src/vite-env.d.ts +10 -0
- package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +0 -7
- package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs +0 -33
- package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs.map +0 -7
- package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs +0 -174
- package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs.map +0 -7
- package/dist/lib/browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs.map +0 -7
- package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +0 -7
- package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-SWSGJEEL.mjs.map +0 -7
- package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-LGUQNXHD.mjs.map +0 -7
- package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
- package/dist/lib/browser/chunk-A5H5GRV6.mjs +0 -20
- package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -132
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-context-I3USIAF6.mjs.map +0 -7
- package/dist/lib/browser/react-surface-BTVNKKVQ.mjs.map +0 -7
- package/dist/lib/browser/settings-SLTQJJNF.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
- package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -3
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +0 -10
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +0 -1
- package/dist/types/src/containers/DebugSettings/index.d.ts +0 -3
- package/dist/types/src/containers/DebugSettings/index.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -68
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -441
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/react-context/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/settings/index.ts +0 -7
- package/src/containers/DebugSettings/DebugSettings.tsx +0 -201
- package/src/containers/DebugSettings/index.ts +0 -7
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +0 -0
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import { Filter as Filter3, Obj as Obj2 } from "@dxos/echo";
|
|
6
|
-
import { Markdown as Markdown3 } from "@dxos/plugin-markdown/types";
|
|
7
|
-
import { Sheet as Sheet2 } from "@dxos/plugin-sheet/types";
|
|
8
|
-
import { Diagram as Diagram2 } from "@dxos/plugin-sketch/types";
|
|
9
|
-
import { useClient } from "@dxos/react-client";
|
|
10
|
-
import { IconButton as IconButton2, Input, Panel, ScrollArea, Toolbar, useAsyncEffect } from "@dxos/react-ui";
|
|
11
|
-
import { SyntaxHighlighter } from "@dxos/react-ui-syntax-highlighter";
|
|
12
|
-
import { Organization as Organization2, Person as Person2, Task } from "@dxos/types";
|
|
13
|
-
import { jsonKeyReplacer, sortKeys } from "@dxos/util";
|
|
1
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/components/index.ts
|
|
4
|
+
import { lazy } from "react";
|
|
14
5
|
|
|
15
6
|
// src/components/SchemaTable/SchemaTable.tsx
|
|
16
7
|
import React from "react";
|
|
@@ -38,16 +29,16 @@ var SchemaTable = ({ types, objects = {}, label, onClick }) => {
|
|
|
38
29
|
|
|
39
30
|
// src/components/SpaceGenerator/presets.ts
|
|
40
31
|
import * as Schema from "effect/Schema";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
32
|
+
import { AgentPrompt, WebSearchBlueprint } from "@dxos/assistant-toolkit";
|
|
33
|
+
import { Routine, Trigger, Operation } from "@dxos/compute";
|
|
43
34
|
import { NODE_INPUT } from "@dxos/conductor";
|
|
44
|
-
import {
|
|
45
|
-
import { Trigger, serializeFunction } from "@dxos/functions";
|
|
35
|
+
import { Feed, Filter, JsonSchema, Key, Obj, Query, Ref, Scope, Tag } from "@dxos/echo";
|
|
46
36
|
import { invariant } from "@dxos/invariant";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
37
|
+
import { EID } from "@dxos/keys";
|
|
38
|
+
import { InboxOperation } from "@dxos/plugin-inbox";
|
|
39
|
+
import { Mailbox } from "@dxos/plugin-inbox";
|
|
40
|
+
import { Markdown } from "@dxos/plugin-markdown";
|
|
41
|
+
import { createAppend, createChat, createComputeGraph, createConstant, createFeed, createFunction, createGpt, createRandom, createSurface, createTemplate, createText, createTrigger } from "@dxos/react-ui-canvas-compute";
|
|
51
42
|
import { CanvasBoard, CanvasGraphModel, pointMultiply, pointsToRect, rectToPoints } from "@dxos/react-ui-canvas-editor";
|
|
52
43
|
import { ViewModel } from "@dxos/schema";
|
|
53
44
|
import { Message, Organization, Person, Pipeline } from "@dxos/types";
|
|
@@ -88,16 +79,16 @@ var generator = () => ({
|
|
|
88
79
|
const tag = space.db.add(Tag.make({
|
|
89
80
|
label: "Investor"
|
|
90
81
|
}));
|
|
91
|
-
const
|
|
92
|
-
Obj.
|
|
93
|
-
Obj.getMeta(
|
|
94
|
-
|
|
82
|
+
const tagRef = Ref.make(tag);
|
|
83
|
+
Obj.update(doc, (doc2) => {
|
|
84
|
+
Obj.getMeta(doc2).tags = [
|
|
85
|
+
tagRef
|
|
95
86
|
];
|
|
96
87
|
});
|
|
97
88
|
space.db.add(Obj.make(Person.Person, {
|
|
98
89
|
[Obj.Meta]: {
|
|
99
90
|
tags: [
|
|
100
|
-
|
|
91
|
+
tagRef
|
|
101
92
|
]
|
|
102
93
|
},
|
|
103
94
|
fullName: "Rich",
|
|
@@ -124,59 +115,30 @@ var generator = () => ({
|
|
|
124
115
|
[
|
|
125
116
|
"org-research-project",
|
|
126
117
|
async (space, n, cb) => {
|
|
127
|
-
const
|
|
128
|
-
const mailbox =
|
|
129
|
-
invariant(mailbox, "Mailbox
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"mailbox",
|
|
135
|
-
"'Mailbox feed not found'"
|
|
136
|
-
]
|
|
137
|
-
});
|
|
138
|
-
const queueDxn = Feed.getQueueDxn(mailbox)?.toString();
|
|
139
|
-
invariant(queueDxn, "Mailbox feed missing queue DXN key", {
|
|
140
|
-
F: __dxlog_file,
|
|
141
|
-
L: 123,
|
|
142
|
-
S: void 0,
|
|
143
|
-
A: [
|
|
144
|
-
"queueDxn",
|
|
145
|
-
"'Mailbox feed missing queue DXN key'"
|
|
146
|
-
]
|
|
147
|
-
});
|
|
118
|
+
const mailboxes = await space.db.query(Filter.type(Mailbox.Mailbox)).run();
|
|
119
|
+
const mailbox = mailboxes[0];
|
|
120
|
+
invariant(mailbox, "Mailbox not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 101, S: void 0, A: ["mailbox", "'Mailbox not found'"] });
|
|
121
|
+
const mailboxFeed = await mailbox.feed?.tryLoad();
|
|
122
|
+
invariant(mailboxFeed, "Mailbox missing feed reference", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 103, S: void 0, A: ["mailboxFeed", "'Mailbox missing feed reference'"] });
|
|
123
|
+
const queueDxn = Feed.getQueueUri(mailboxFeed);
|
|
124
|
+
invariant(queueDxn, "Mailbox feed missing queue DXN key", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 105, S: void 0, A: ["queueDxn", "'Mailbox feed missing queue DXN key'"] });
|
|
148
125
|
const tag = await space.db.query(Filter.type(Tag.Tag, {
|
|
149
126
|
label: "Investor"
|
|
150
127
|
})).first();
|
|
151
|
-
const
|
|
128
|
+
const tagUri = Obj.getURI(tag);
|
|
152
129
|
const objects = range(n, () => {
|
|
153
|
-
const contactsQuery = Query.select(Filter.type(Person.Person)).select(Filter.tag(
|
|
154
|
-
const organizationsQuery = Query.select(Filter.type(Organization.Organization)).select(Filter.tag(
|
|
155
|
-
const notesQuery = Query.select(Filter.type(Markdown.Document)).select(Filter.tag(
|
|
130
|
+
const contactsQuery = Query.select(Filter.type(Person.Person)).select(Filter.tag(tagUri));
|
|
131
|
+
const organizationsQuery = Query.select(Filter.type(Organization.Organization)).select(Filter.tag(tagUri));
|
|
132
|
+
const notesQuery = Query.select(Filter.type(Markdown.Document)).select(Filter.tag(tagUri));
|
|
156
133
|
space.db.add(Trigger.make({
|
|
157
134
|
enabled: true,
|
|
158
|
-
spec:
|
|
159
|
-
|
|
160
|
-
cron: "* * * * *"
|
|
161
|
-
},
|
|
162
|
-
function: Ref.make(serializeFunction(GmailFunctions.Sync)),
|
|
135
|
+
spec: Trigger.specTimer("* * * * *"),
|
|
136
|
+
function: Ref.make(Operation.serialize(InboxOperation.GoogleMailSync)),
|
|
163
137
|
input: {
|
|
164
138
|
mailbox: Ref.make(mailbox)
|
|
165
139
|
}
|
|
166
140
|
}));
|
|
167
|
-
space.db.add(
|
|
168
|
-
enabled: true,
|
|
169
|
-
// TODO(wittjosiah): Queue trigger doesn't support matching query of the column.
|
|
170
|
-
spec: {
|
|
171
|
-
kind: "queue",
|
|
172
|
-
queue: queueDxn
|
|
173
|
-
},
|
|
174
|
-
function: Ref.make(serializeFunction(EntityExtractionFunctions.Extract)),
|
|
175
|
-
input: {
|
|
176
|
-
source: "{{event.item}}"
|
|
177
|
-
}
|
|
178
|
-
}));
|
|
179
|
-
const researchPrompt = space.db.add(Prompt.make({
|
|
141
|
+
const researchPrompt = space.db.add(Routine.make({
|
|
180
142
|
name: "Research",
|
|
181
143
|
description: "Research organization",
|
|
182
144
|
input: Schema.Struct({
|
|
@@ -191,18 +153,13 @@ var generator = () => ({
|
|
|
191
153
|
NOTE: Do mocked reseach (set mockSearch to true).
|
|
192
154
|
`,
|
|
193
155
|
blueprints: [
|
|
194
|
-
Ref.make(
|
|
156
|
+
Ref.make(WebSearchBlueprint.make())
|
|
195
157
|
]
|
|
196
158
|
}));
|
|
197
159
|
space.db.add(Trigger.make({
|
|
198
160
|
enabled: true,
|
|
199
|
-
spec:
|
|
200
|
-
|
|
201
|
-
query: {
|
|
202
|
-
ast: organizationsQuery.ast
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
function: Ref.make(serializeFunction(AgentFunctions.Prompt)),
|
|
161
|
+
spec: Trigger.specSubscription(organizationsQuery),
|
|
162
|
+
function: Ref.make(Operation.serialize(AgentPrompt)),
|
|
206
163
|
input: {
|
|
207
164
|
prompt: Ref.make(researchPrompt),
|
|
208
165
|
input: "{{event.subject}}"
|
|
@@ -213,11 +170,7 @@ var generator = () => ({
|
|
|
213
170
|
properties: {
|
|
214
171
|
labels: Filter.contains("investor")
|
|
215
172
|
}
|
|
216
|
-
})).from(
|
|
217
|
-
queues: [
|
|
218
|
-
queueDxn
|
|
219
|
-
]
|
|
220
|
-
}),
|
|
173
|
+
})).from(Scope.feed(Obj.getURI(mailboxFeed))),
|
|
221
174
|
jsonSchema: JsonSchema.toJsonSchema(Message.Message)
|
|
222
175
|
});
|
|
223
176
|
const contactsView = ViewModel.make({
|
|
@@ -327,7 +280,7 @@ var generator = () => ({
|
|
|
327
280
|
async (space, n, cb) => {
|
|
328
281
|
const objects = range(n, () => {
|
|
329
282
|
const { canvasModel, computeModel } = createQueueSinkPreset(space, "subscription", (triggerSpec) => triggerSpec.query = {
|
|
330
|
-
ast: Query.select(Filter.typename("dxos.
|
|
283
|
+
ast: Query.select(Filter.typename("org.dxos.type.chess")).ast
|
|
331
284
|
}, "type");
|
|
332
285
|
return addToSpace("objectChange-queue", space, canvasModel, computeModel);
|
|
333
286
|
});
|
|
@@ -605,11 +558,10 @@ var generator = () => ({
|
|
|
605
558
|
})
|
|
606
559
|
}));
|
|
607
560
|
const queueId = canvasModel.createNode(createConstant({
|
|
608
|
-
value:
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
]).toString(),
|
|
561
|
+
value: EID.make({
|
|
562
|
+
spaceId: space.id,
|
|
563
|
+
entityId: Key.EntityId.random()
|
|
564
|
+
}),
|
|
613
565
|
...position({
|
|
614
566
|
x: -10,
|
|
615
567
|
y: 5
|
|
@@ -623,7 +575,7 @@ var generator = () => ({
|
|
|
623
575
|
x: 12,
|
|
624
576
|
y: 0
|
|
625
577
|
})));
|
|
626
|
-
const queue = canvasModel.createNode(
|
|
578
|
+
const queue = canvasModel.createNode(createFeed(position({
|
|
627
579
|
x: 0,
|
|
628
580
|
y: 12
|
|
629
581
|
})));
|
|
@@ -698,7 +650,7 @@ var createQueueSinkPreset = (space, triggerKind, initSpec, triggerOutputName) =>
|
|
|
698
650
|
width: 128,
|
|
699
651
|
height: 122
|
|
700
652
|
})));
|
|
701
|
-
const
|
|
653
|
+
const random2 = canvasModel.createNode(createRandom(rawPosition({
|
|
702
654
|
centerX: -509,
|
|
703
655
|
centerY: -30,
|
|
704
656
|
width: 64,
|
|
@@ -718,36 +670,20 @@ var createQueueSinkPreset = (space, triggerKind, initSpec, triggerOutputName) =>
|
|
|
718
670
|
output: triggerOutputName,
|
|
719
671
|
input: "type"
|
|
720
672
|
}).createEdge({
|
|
721
|
-
source:
|
|
673
|
+
source: random2.id,
|
|
722
674
|
target: template.id,
|
|
723
675
|
input: "changeId"
|
|
724
676
|
});
|
|
725
677
|
functionTrigger = triggerShape.functionTrigger.target;
|
|
726
678
|
const triggerSpec = functionTrigger.spec;
|
|
727
|
-
invariant(triggerSpec && triggerSpec.kind === triggerKind, "No trigger spec.", {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
S: void 0,
|
|
731
|
-
A: [
|
|
732
|
-
"triggerSpec && triggerSpec.kind === triggerKind",
|
|
733
|
-
"'No trigger spec.'"
|
|
734
|
-
]
|
|
735
|
-
});
|
|
736
|
-
Obj.change(functionTrigger, (ft) => {
|
|
737
|
-
initSpec(ft.spec);
|
|
679
|
+
invariant(triggerSpec && triggerSpec.kind === triggerKind, "No trigger spec.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 661, S: void 0, A: ["triggerSpec && triggerSpec.kind === triggerKind", "'No trigger spec.'"] });
|
|
680
|
+
Obj.update(functionTrigger, (functionTrigger2) => {
|
|
681
|
+
initSpec(functionTrigger2.spec);
|
|
738
682
|
});
|
|
739
683
|
});
|
|
740
684
|
const computeModel = createComputeGraph(canvasModel);
|
|
741
685
|
const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);
|
|
742
|
-
invariant(templateComputeNode, "Template compute node was not created.", {
|
|
743
|
-
F: __dxlog_file,
|
|
744
|
-
L: 771,
|
|
745
|
-
S: void 0,
|
|
746
|
-
A: [
|
|
747
|
-
"templateComputeNode",
|
|
748
|
-
"'Template compute node was not created.'"
|
|
749
|
-
]
|
|
750
|
-
});
|
|
686
|
+
invariant(templateComputeNode, "Template compute node was not created.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 668, S: void 0, A: ["templateComputeNode", "'Template compute node was not created.'"] });
|
|
751
687
|
templateComputeNode.value = [
|
|
752
688
|
"{",
|
|
753
689
|
' "@type": "{{type}}",',
|
|
@@ -773,11 +709,10 @@ var addToSpace = (name, space, canvas, compute) => {
|
|
|
773
709
|
};
|
|
774
710
|
var setupQueue = (space, canvasModel, args) => {
|
|
775
711
|
const queueId = canvasModel.createNode(createConstant({
|
|
776
|
-
value:
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
]).toString(),
|
|
712
|
+
value: EID.make({
|
|
713
|
+
spaceId: space.id,
|
|
714
|
+
entityId: Key.EntityId.random()
|
|
715
|
+
}),
|
|
781
716
|
...args?.idPosition ? rawPosition(args.idPosition) : position({
|
|
782
717
|
x: -18,
|
|
783
718
|
y: 5,
|
|
@@ -785,7 +720,7 @@ var setupQueue = (space, canvasModel, args) => {
|
|
|
785
720
|
height: 6
|
|
786
721
|
})
|
|
787
722
|
}));
|
|
788
|
-
const queue = canvasModel.createNode(
|
|
723
|
+
const queue = canvasModel.createNode(createFeed(args?.queuePosition ? rawPosition(args.queuePosition) : position({
|
|
789
724
|
x: -3,
|
|
790
725
|
y: 3,
|
|
791
726
|
width: 14,
|
|
@@ -801,19 +736,11 @@ var setupQueue = (space, canvasModel, args) => {
|
|
|
801
736
|
};
|
|
802
737
|
};
|
|
803
738
|
var attachTrigger = (functionTrigger, computeModel) => {
|
|
804
|
-
invariant(functionTrigger, void 0, {
|
|
805
|
-
F: __dxlog_file,
|
|
806
|
-
L: 813,
|
|
807
|
-
S: void 0,
|
|
808
|
-
A: [
|
|
809
|
-
"functionTrigger",
|
|
810
|
-
""
|
|
811
|
-
]
|
|
812
|
-
});
|
|
739
|
+
invariant(functionTrigger, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 722, S: void 0, A: ["functionTrigger", ""] });
|
|
813
740
|
const inputNode = computeModel.nodes.find((node) => node.type === NODE_INPUT);
|
|
814
|
-
Obj.
|
|
815
|
-
|
|
816
|
-
|
|
741
|
+
Obj.update(functionTrigger, (functionTrigger2) => {
|
|
742
|
+
functionTrigger2.function = Ref.make(computeModel.root);
|
|
743
|
+
functionTrigger2.inputNodeId = inputNode.id;
|
|
817
744
|
});
|
|
818
745
|
};
|
|
819
746
|
var rawPosition = (args) => {
|
|
@@ -861,40 +788,31 @@ var position = (rect) => {
|
|
|
861
788
|
};
|
|
862
789
|
|
|
863
790
|
// src/components/SpaceGenerator/ObjectGenerator.tsx
|
|
864
|
-
import { addressToA1Notation } from "@dxos/compute";
|
|
791
|
+
import { addressToA1Notation } from "@dxos/compute-hyperformula";
|
|
865
792
|
import { ComputeGraph, ComputeGraphModel, DEFAULT_OUTPUT, NODE_INPUT as NODE_INPUT2, NODE_OUTPUT } from "@dxos/conductor";
|
|
866
|
-
import {
|
|
867
|
-
import {
|
|
868
|
-
import {
|
|
869
|
-
import {
|
|
870
|
-
import {
|
|
871
|
-
import {
|
|
872
|
-
import { faker } from "@dxos/random";
|
|
793
|
+
import { EID as EID2, Filter as Filter2, Key as Key2, Type, View } from "@dxos/echo";
|
|
794
|
+
import { Markdown as Markdown2 } from "@dxos/plugin-markdown";
|
|
795
|
+
import { Sheet } from "@dxos/plugin-sheet";
|
|
796
|
+
import { Sketch } from "@dxos/plugin-sketch";
|
|
797
|
+
import { SpaceOperation } from "@dxos/plugin-space";
|
|
798
|
+
import { random } from "@dxos/random";
|
|
873
799
|
import { getTypenameFromQuery } from "@dxos/schema";
|
|
874
800
|
import { createAsyncGenerator } from "@dxos/schema/testing";
|
|
875
801
|
import { range as range2 } from "@dxos/util";
|
|
876
|
-
var generator2 =
|
|
802
|
+
var generator2 = random;
|
|
877
803
|
var findViewByTypename = async (views, typename) => {
|
|
878
804
|
return views.find((view) => getTypenameFromQuery(view.query.ast) === typename);
|
|
879
805
|
};
|
|
880
806
|
var createGenerator = (client, invokePromise, schema) => {
|
|
881
807
|
return async (space, n) => {
|
|
882
|
-
const typename = schema
|
|
808
|
+
const typename = Type.getTypename(schema);
|
|
883
809
|
const views = await space.db.query(Filter2.type(View.View)).run();
|
|
884
810
|
const view = await findViewByTypename(views, typename);
|
|
885
|
-
const staticSchema = client
|
|
886
|
-
typename
|
|
887
|
-
}).runSync()[0];
|
|
811
|
+
const staticSchema = client ? client.graph.registry.list().filter(Type.isType).find((s) => Type.getTypename(s) === typename) : void 0;
|
|
888
812
|
if (!view && !staticSchema) {
|
|
889
|
-
await invokePromise(SpaceOperation.
|
|
890
|
-
db: space.db,
|
|
891
|
-
schema,
|
|
892
|
-
show: false
|
|
893
|
-
});
|
|
894
|
-
} else if (!view && staticSchema) {
|
|
895
|
-
await invokePromise(SpaceOperation.UseStaticSchema, {
|
|
813
|
+
await invokePromise(SpaceOperation.AddType, {
|
|
896
814
|
db: space.db,
|
|
897
|
-
|
|
815
|
+
type: schema,
|
|
898
816
|
show: false
|
|
899
817
|
});
|
|
900
818
|
}
|
|
@@ -906,12 +824,12 @@ var createGenerator = (client, invokePromise, schema) => {
|
|
|
906
824
|
};
|
|
907
825
|
var staticGenerators = /* @__PURE__ */ new Map([
|
|
908
826
|
[
|
|
909
|
-
Markdown2.Document
|
|
827
|
+
Type.getTypename(Markdown2.Document),
|
|
910
828
|
async (space, n, cb) => {
|
|
911
829
|
const objects = range2(n).map(() => {
|
|
912
830
|
return space.db.add(Markdown2.make({
|
|
913
|
-
name:
|
|
914
|
-
content:
|
|
831
|
+
name: random.commerce.productName(),
|
|
832
|
+
content: random.lorem.sentences(5)
|
|
915
833
|
}));
|
|
916
834
|
});
|
|
917
835
|
cb?.(objects);
|
|
@@ -919,11 +837,11 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
919
837
|
}
|
|
920
838
|
],
|
|
921
839
|
[
|
|
922
|
-
|
|
840
|
+
Type.getTypename(Sketch.Sketch),
|
|
923
841
|
async (space, n, cb) => {
|
|
924
842
|
const objects = range2(n).map(() => {
|
|
925
|
-
const obj = space.db.add(
|
|
926
|
-
name:
|
|
843
|
+
const obj = space.db.add(Sketch.make({
|
|
844
|
+
name: random.commerce.productName()
|
|
927
845
|
}));
|
|
928
846
|
return obj;
|
|
929
847
|
});
|
|
@@ -933,7 +851,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
933
851
|
],
|
|
934
852
|
// TODO(burdon): Create unit tests.
|
|
935
853
|
[
|
|
936
|
-
Sheet.Sheet
|
|
854
|
+
Type.getTypename(Sheet.Sheet),
|
|
937
855
|
async (space, n, cb) => {
|
|
938
856
|
const objects = range2(n).map(() => {
|
|
939
857
|
const cells = {};
|
|
@@ -970,7 +888,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
970
888
|
}
|
|
971
889
|
}
|
|
972
890
|
return space.db.add(Sheet.make({
|
|
973
|
-
name:
|
|
891
|
+
name: random.commerce.productName(),
|
|
974
892
|
cells
|
|
975
893
|
}));
|
|
976
894
|
});
|
|
@@ -979,7 +897,7 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
979
897
|
}
|
|
980
898
|
],
|
|
981
899
|
[
|
|
982
|
-
ComputeGraph
|
|
900
|
+
Type.getTypename(ComputeGraph),
|
|
983
901
|
async (space, n, cb) => {
|
|
984
902
|
const objects = range2(n, () => {
|
|
985
903
|
const model = ComputeGraphModel.create();
|
|
@@ -992,11 +910,10 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
992
910
|
}).createNode({
|
|
993
911
|
id: "gpt-QUEUE_ID",
|
|
994
912
|
type: "constant",
|
|
995
|
-
value:
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
]).toString()
|
|
913
|
+
value: EID2.make({
|
|
914
|
+
spaceId: space.id,
|
|
915
|
+
entityId: Key2.EntityId.random()
|
|
916
|
+
})
|
|
1000
917
|
}).createNode({
|
|
1001
918
|
id: "gpt-APPEND",
|
|
1002
919
|
type: "append"
|
|
@@ -1042,133 +959,14 @@ var staticGenerators = /* @__PURE__ */ new Map([
|
|
|
1042
959
|
]
|
|
1043
960
|
]);
|
|
1044
961
|
|
|
1045
|
-
// src/
|
|
1046
|
-
var
|
|
1047
|
-
const { invokePromise } = useOperationInvoker();
|
|
1048
|
-
const client = useClient();
|
|
1049
|
-
const staticTypes = [
|
|
1050
|
-
Markdown3.Document,
|
|
1051
|
-
Diagram2.Diagram,
|
|
1052
|
-
Sheet2.Sheet,
|
|
1053
|
-
ComputeGraph2
|
|
1054
|
-
];
|
|
1055
|
-
const recordTypes = [
|
|
1056
|
-
Organization2.Organization,
|
|
1057
|
-
Person2.Person,
|
|
1058
|
-
Task.Task
|
|
1059
|
-
];
|
|
1060
|
-
const [count, setCount] = useState(1);
|
|
1061
|
-
const [info, setInfo] = useState({});
|
|
1062
|
-
const presets = useMemo(() => generator(), []);
|
|
1063
|
-
useAsyncEffect(async () => {
|
|
1064
|
-
await client.addTypes([
|
|
1065
|
-
...staticTypes,
|
|
1066
|
-
...recordTypes,
|
|
1067
|
-
...presets.schemas
|
|
1068
|
-
]);
|
|
1069
|
-
}, [
|
|
1070
|
-
client
|
|
1071
|
-
]);
|
|
1072
|
-
const typeMap = useMemo(() => {
|
|
1073
|
-
const recordGenerators = new Map(recordTypes.map((type) => [
|
|
1074
|
-
type.typename,
|
|
1075
|
-
createGenerator(client, invokePromise, type)
|
|
1076
|
-
]));
|
|
1077
|
-
return new Map([
|
|
1078
|
-
...staticGenerators,
|
|
1079
|
-
...presets.items,
|
|
1080
|
-
...recordGenerators
|
|
1081
|
-
]);
|
|
1082
|
-
}, [
|
|
1083
|
-
client,
|
|
1084
|
-
recordTypes,
|
|
1085
|
-
invokePromise
|
|
1086
|
-
]);
|
|
1087
|
-
const updateInfo = async () => {
|
|
1088
|
-
const echoSchema = await space.db.schemaRegistry.query().run();
|
|
1089
|
-
const staticSchema = await space.db.graph.schemaRegistry.query().run();
|
|
1090
|
-
const objects = await space.db.query(Filter3.everything()).run();
|
|
1091
|
-
const objectMap = sortKeys(objects.reduce((map, obj) => {
|
|
1092
|
-
const type = Obj2.getTypename(obj);
|
|
1093
|
-
if (type) {
|
|
1094
|
-
const count2 = map[type] ?? 0;
|
|
1095
|
-
map[type] = count2 + 1;
|
|
1096
|
-
}
|
|
1097
|
-
return map;
|
|
1098
|
-
}, {}));
|
|
1099
|
-
setInfo({
|
|
1100
|
-
schema: {
|
|
1101
|
-
static: staticSchema.length,
|
|
1102
|
-
mutable: echoSchema.length
|
|
1103
|
-
},
|
|
1104
|
-
objects: objectMap
|
|
1105
|
-
});
|
|
1106
|
-
};
|
|
1107
|
-
useAsyncEffect(updateInfo, [
|
|
1108
|
-
space
|
|
1109
|
-
]);
|
|
1110
|
-
const handleCreateData = useCallback(async (typename) => {
|
|
1111
|
-
const constructor = typeMap.get(typename);
|
|
1112
|
-
if (constructor) {
|
|
1113
|
-
await constructor(space, count, onCreateObjects);
|
|
1114
|
-
await updateInfo();
|
|
1115
|
-
}
|
|
1116
|
-
}, [
|
|
1117
|
-
typeMap,
|
|
1118
|
-
count
|
|
1119
|
-
]);
|
|
1120
|
-
return /* @__PURE__ */ React2.createElement(Panel.Root, null, /* @__PURE__ */ React2.createElement(Panel.Toolbar, {
|
|
1121
|
-
asChild: true
|
|
1122
|
-
}, /* @__PURE__ */ React2.createElement(Toolbar.Root, null, /* @__PURE__ */ React2.createElement(IconButton2, {
|
|
1123
|
-
icon: "ph--arrow-clockwise--regular",
|
|
1124
|
-
iconOnly: true,
|
|
1125
|
-
label: "Refresh",
|
|
1126
|
-
onClick: updateInfo
|
|
1127
|
-
}), /* @__PURE__ */ React2.createElement(Toolbar.Separator, null), /* @__PURE__ */ React2.createElement(Input.Root, null, /* @__PURE__ */ React2.createElement(Input.TextInput, {
|
|
1128
|
-
type: "number",
|
|
1129
|
-
placeholder: "Count",
|
|
1130
|
-
classNames: "w-[4rem] text-right",
|
|
1131
|
-
min: 1,
|
|
1132
|
-
max: 100,
|
|
1133
|
-
size: 8,
|
|
1134
|
-
value: count,
|
|
1135
|
-
onChange: (event) => setCount(parseInt(event.target.value))
|
|
1136
|
-
})))), /* @__PURE__ */ React2.createElement(Panel.Content, {
|
|
1137
|
-
asChild: true
|
|
1138
|
-
}, /* @__PURE__ */ React2.createElement(ScrollArea.Root, {
|
|
1139
|
-
thin: true,
|
|
1140
|
-
orientation: "vertical"
|
|
1141
|
-
}, /* @__PURE__ */ React2.createElement(ScrollArea.Viewport, {
|
|
1142
|
-
classNames: "gap-4 divide-y divide-subdued-separator"
|
|
1143
|
-
}, /* @__PURE__ */ React2.createElement(SchemaTable, {
|
|
1144
|
-
types: staticTypes,
|
|
1145
|
-
objects: info.objects,
|
|
1146
|
-
label: "Static Types",
|
|
1147
|
-
onClick: handleCreateData
|
|
1148
|
-
}), /* @__PURE__ */ React2.createElement(SchemaTable, {
|
|
1149
|
-
types: recordTypes,
|
|
1150
|
-
objects: info.objects,
|
|
1151
|
-
label: "Record Types",
|
|
1152
|
-
onClick: handleCreateData
|
|
1153
|
-
}), /* @__PURE__ */ React2.createElement(SchemaTable, {
|
|
1154
|
-
types: presets.types,
|
|
1155
|
-
objects: info.objects,
|
|
1156
|
-
label: "Presets",
|
|
1157
|
-
onClick: handleCreateData
|
|
1158
|
-
}), /* @__PURE__ */ React2.createElement(SyntaxHighlighter, {
|
|
1159
|
-
language: "json",
|
|
1160
|
-
classNames: "text-xs"
|
|
1161
|
-
}, JSON.stringify({
|
|
1162
|
-
space,
|
|
1163
|
-
...info
|
|
1164
|
-
}, jsonKeyReplacer({
|
|
1165
|
-
truncate: true
|
|
1166
|
-
}), 2))))));
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
// src/containers/SpaceGenerator/index.ts
|
|
1170
|
-
var SpaceGenerator_default = SpaceGenerator;
|
|
962
|
+
// src/components/index.ts
|
|
963
|
+
var DebugSettings = lazy(() => import("../DebugSettings-RKYNQIKH.mjs"));
|
|
1171
964
|
export {
|
|
1172
|
-
|
|
965
|
+
DebugSettings,
|
|
966
|
+
PresetName,
|
|
967
|
+
SchemaTable,
|
|
968
|
+
createGenerator,
|
|
969
|
+
generator,
|
|
970
|
+
staticGenerators
|
|
1173
971
|
};
|
|
1174
|
-
//# sourceMappingURL=
|
|
972
|
+
//# sourceMappingURL=index.mjs.map
|