@dxos/plugin-debug 0.7.5-labs.8a82073 → 0.7.5-labs.c0e040f

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.
@@ -239,7 +239,7 @@ import { invariant } from "@dxos/invariant";
239
239
  import { DXN as DXN2, SpaceId as SpaceId2 } from "@dxos/keys";
240
240
  import { create as create2, makeRef as makeRef2 } from "@dxos/live-object";
241
241
  import { Filter as Filter2 } from "@dxos/react-client/echo";
242
- import { createAppend, createChat, createComputeGraph, createConstant, createGpt, createQueue, createTemplate, createText, createTrigger } from "@dxos/react-ui-canvas-compute";
242
+ import { createAppend, createChat, createComputeGraph, createConstant, createFunction, createGpt, createQueue, createSurface, createTemplate, createText, createTrigger } from "@dxos/react-ui-canvas-compute";
243
243
  import { CanvasBoardType, CanvasGraphModel, pointMultiply, pointsToRect, rectToPoints } from "@dxos/react-ui-canvas-editor";
244
244
  import { TableType as TableType2 } from "@dxos/react-ui-table";
245
245
  import { range as range2 } from "@dxos/util";
@@ -250,6 +250,9 @@ var PresetName;
250
250
  PresetName2["GPT_QUEUE"] = "webhook-gpt-queue";
251
251
  PresetName2["CHAT_GPT"] = "chat-gpt-text";
252
252
  PresetName2["EMAIL_WITH_SUMMARY"] = "email-gptSummary-table";
253
+ PresetName2["OBJECT_CHANGE_QUEUE"] = "objectChange-queue";
254
+ PresetName2["FOREX_FUNCTION_CALL"] = "forex-function-call";
255
+ PresetName2["DISCORD_MESSAGES"] = "discord-messages";
253
256
  })(PresetName || (PresetName = {}));
254
257
  var presets = {
255
258
  schemas: [
@@ -294,7 +297,7 @@ var presets = {
294
297
  source: trigger.id,
295
298
  target: gpt.id,
296
299
  input: "prompt",
297
- output: "body"
300
+ output: "bodyText"
298
301
  }).createEdge({
299
302
  source: gpt.id,
300
303
  target: text.id,
@@ -319,6 +322,106 @@ var presets = {
319
322
  return objects;
320
323
  }
321
324
  ],
325
+ [
326
+ "objectChange-queue",
327
+ async (space, n, cb) => {
328
+ const objects = range2(n, () => {
329
+ const canvasModel = CanvasGraphModel.create();
330
+ const template = canvasModel.createNode(createTemplate({
331
+ valueType: "object",
332
+ ...rawPosition({
333
+ centerX: -64,
334
+ centerY: -79,
335
+ width: 320,
336
+ height: 320
337
+ })
338
+ }));
339
+ let functionTrigger;
340
+ canvasModel.builder.call((builder) => {
341
+ const triggerShape = createTrigger({
342
+ triggerKind: TriggerKind.Subscription,
343
+ ...position({
344
+ x: -18,
345
+ y: -2
346
+ })
347
+ });
348
+ const trigger = canvasModel.createNode(triggerShape);
349
+ const { queueId } = setupQueue(canvasModel, {
350
+ queuePosition: {
351
+ centerX: -80,
352
+ centerY: 378,
353
+ width: 320,
354
+ height: 448
355
+ }
356
+ });
357
+ const append = canvasModel.createNode(createAppend(rawPosition({
358
+ centerX: 320,
359
+ centerY: 192,
360
+ width: 128,
361
+ height: 122
362
+ })));
363
+ builder.createEdge({
364
+ source: queueId.id,
365
+ target: append.id,
366
+ input: "id"
367
+ }).createEdge({
368
+ source: template.id,
369
+ target: append.id,
370
+ input: "items"
371
+ }).createEdge({
372
+ source: trigger.id,
373
+ target: template.id,
374
+ output: "type",
375
+ input: "type"
376
+ }).createEdge({
377
+ source: trigger.id,
378
+ target: template.id,
379
+ output: "changedObjectId",
380
+ input: "changedObjectId"
381
+ });
382
+ functionTrigger = triggerShape.functionTrigger.target;
383
+ const triggerSpec = functionTrigger.spec;
384
+ invariant(triggerSpec && triggerSpec.type === TriggerKind.Subscription, "No trigger spec.", {
385
+ F: __dxlog_file,
386
+ L: 127,
387
+ S: void 0,
388
+ A: [
389
+ "triggerSpec && triggerSpec.type === TriggerKind.Subscription",
390
+ "'No trigger spec.'"
391
+ ]
392
+ });
393
+ triggerSpec.filter = {
394
+ type: "dxn:type:dxos.org/type/Chess"
395
+ };
396
+ });
397
+ const computeModel = createComputeGraph(canvasModel);
398
+ const templateComputeNode = computeModel.nodes.find((n2) => n2.id === template.node);
399
+ invariant(templateComputeNode, "Template compute node was not created.", {
400
+ F: __dxlog_file,
401
+ L: 134,
402
+ S: void 0,
403
+ A: [
404
+ "templateComputeNode",
405
+ "'Template compute node was not created.'"
406
+ ]
407
+ });
408
+ templateComputeNode.value = [
409
+ "{",
410
+ ' "@type": "{{type}}",',
411
+ ' "id": "{{changedObjectId}}"',
412
+ "}"
413
+ ].join("\n");
414
+ templateComputeNode.inputSchema = toJsonSchema(S.Struct({
415
+ type: S.String,
416
+ changedObjectId: S.String
417
+ }));
418
+ attachTrigger(functionTrigger, computeModel);
419
+ return addToSpace("objectChange-queue", space, canvasModel, computeModel);
420
+ });
421
+ cb?.(objects);
422
+ return objects;
423
+ }
424
+ ],
322
425
  [
323
426
  "email-table",
324
427
  async (space, n, cb) => {
@@ -328,7 +431,7 @@ var presets = {
328
431
  const emailTable = results.find((r) => r.object?.view?.target?.query?.type?.endsWith("Email"));
329
432
  invariant(emailTable, "Email table not found.", {
330
433
  F: __dxlog_file,
331
- L: 90,
434
+ L: 155,
332
435
  S: void 0,
333
436
  A: [
334
437
  "emailTable",
@@ -397,7 +500,7 @@ var presets = {
397
500
  const templateComputeNode = computeModel.nodes.find((n2) => n2.id === template.node);
398
501
  invariant(templateComputeNode, "Template compute node was not created.", {
399
502
  F: __dxlog_file,
400
- L: 132,
503
+ L: 197,
401
504
  S: void 0,
402
505
  A: [
403
506
  "templateComputeNode",
@@ -473,7 +576,7 @@ var presets = {
473
576
  const emailTable = results.find((r) => r.object?.view?.target?.query?.type?.endsWith("Email"));
474
577
  invariant(emailTable, "Email table not found.", {
475
578
  F: __dxlog_file,
476
- L: 183,
579
+ L: 248,
477
580
  S: void 0,
478
581
  A: [
479
582
  "emailTable",
@@ -606,7 +709,7 @@ var presets = {
606
709
  const templateComputeNode = computeModel.nodes.find((n2) => n2.id === template.node);
607
710
  invariant(templateComputeNode, "Template compute node was not created.", {
608
711
  F: __dxlog_file,
609
- L: 254,
712
+ L: 319,
610
713
  S: void 0,
611
714
  A: [
612
715
  "templateComputeNode",
@@ -624,6 +727,116 @@ var presets = {
624
727
  cb?.(objects);
625
728
  return objects;
626
729
  }
730
+ ],
731
+ [
732
+ "forex-function-call",
733
+ async (space, n, cb) => {
734
+ const objects = range2(n, () => {
735
+ const canvasModel = CanvasGraphModel.create();
736
+ canvasModel.builder.call((builder) => {
737
+ const sourceCurrency = canvasModel.createNode(createConstant({
738
+ value: "USD",
739
+ ...position({
740
+ x: -10,
741
+ y: -5
742
+ })
743
+ }));
744
+ const targetCurrency = canvasModel.createNode(createConstant({
745
+ value: "EUR",
746
+ ...position({
747
+ x: -10,
748
+ y: 5
749
+ })
750
+ }));
751
+ const converter = canvasModel.createNode(createFunction(position({
752
+ x: 0,
753
+ y: 0
754
+ })));
755
+ const view = canvasModel.createNode(createSurface(position({
756
+ x: 12,
757
+ y: 0
758
+ })));
759
+ builder.createEdge({
760
+ source: sourceCurrency.id,
761
+ target: converter.id,
762
+ input: "from"
763
+ }).createEdge({
764
+ source: targetCurrency.id,
765
+ target: converter.id,
766
+ input: "to"
767
+ }).createEdge({
768
+ source: converter.id,
769
+ target: view.id,
770
+ output: "rate"
771
+ });
772
+ });
773
+ const computeModel = createComputeGraph(canvasModel);
774
+ return addToSpace("forex-function-call", space, canvasModel, computeModel);
775
+ });
776
+ cb?.(objects);
777
+ return objects;
778
+ }
779
+ ],
780
+ [
781
+ "discord-messages",
782
+ async (space, n, cb) => {
783
+ const objects = range2(n, () => {
784
+ const canvasModel = CanvasGraphModel.create();
785
+ canvasModel.builder.call((builder) => {
786
+ const channelId = canvasModel.createNode(createConstant({
787
+ value: "837138313172353098",
788
+ ...position({
789
+ x: -10,
790
+ y: -5
791
+ })
792
+ }));
793
+ const queueId = canvasModel.createNode(createConstant({
794
+ value: new DXN2(DXN2.kind.QUEUE, [
795
+ "data",
796
+ SpaceId2.random(),
797
+ ObjectId2.random()
798
+ ]).toString(),
799
+ ...position({
800
+ x: -10,
801
+ y: 5
802
+ })
803
+ }));
804
+ const converter = canvasModel.createNode(createFunction(position({
805
+ x: 0,
806
+ y: 0
807
+ })));
808
+ const view = canvasModel.createNode(createText(position({
809
+ x: 12,
810
+ y: 0
811
+ })));
812
+ const queue = canvasModel.createNode(createQueue(position({
813
+ x: 0,
814
+ y: 12
815
+ })));
816
+ builder.createEdge({
817
+ source: queueId.id,
818
+ target: converter.id,
819
+ input: "queueId"
820
+ }).createEdge({
821
+ source: channelId.id,
822
+ target: converter.id,
823
+ input: "channelId"
824
+ }).createEdge({
825
+ source: converter.id,
826
+ target: view.id,
827
+ output: "newMessages"
828
+ }).createEdge({
829
+ source: queueId.id,
830
+ target: queue.id,
831
+ input: "input"
832
+ });
833
+ });
834
+ const computeModel = createComputeGraph(canvasModel);
835
+ return addToSpace("discord-messages", space, canvasModel, computeModel);
836
+ });
837
+ cb?.(objects);
838
+ return objects;
839
+ }
627
840
  ]
628
841
  ]
629
842
  };
@@ -666,7 +879,7 @@ var setupQueue = (canvasModel, args) => {
666
879
  var attachTrigger = (functionTrigger, computeModel) => {
667
880
  invariant(functionTrigger, void 0, {
668
881
  F: __dxlog_file,
669
- L: 300,
882
+ L: 431,
670
883
  S: void 0,
671
884
  A: [
672
885
  "functionTrigger",
@@ -843,4 +1056,4 @@ var SpaceGenerator_default = SpaceGenerator;
843
1056
  export {
844
1057
  SpaceGenerator_default as default
845
1058
  };
846
- //# sourceMappingURL=SpaceGenerator-4VO7E5P2.mjs.map
1059
+ //# sourceMappingURL=SpaceGenerator-OIDM3MIN.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/SpaceGenerator/SpaceGenerator.tsx", "../../../src/components/SpaceGenerator/ObjectGenerator.tsx", "../../../src/components/SpaceGenerator/SchemaTable.tsx", "../../../src/components/SpaceGenerator/presets.ts", "../../../src/components/SpaceGenerator/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useMemo, useState } from 'react';\n\nimport { ComputeGraph } from '@dxos/conductor';\nimport { type ReactiveObject } from '@dxos/live-object';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { SheetType } from '@dxos/plugin-sheet/types';\nimport { DiagramType } from '@dxos/plugin-sketch/types';\nimport { useClient } from '@dxos/react-client';\nimport { getTypename, type Space } from '@dxos/react-client/echo';\nimport { IconButton, Input, Toolbar, useAsyncEffect } from '@dxos/react-ui';\nimport { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';\nimport { Testing } from '@dxos/schema/testing';\nimport { jsonKeyReplacer, sortKeys } from '@dxos/util';\n\nimport { type ObjectGenerator, createGenerator, staticGenerators } from './ObjectGenerator';\nimport { SchemaTable } from './SchemaTable';\nimport { presets } from './presets';\n\nexport type SpaceGeneratorProps = {\n space: Space;\n onCreateObjects?: (objects: ReactiveObject<any>[]) => void;\n};\n\nexport const SpaceGenerator = ({ space, onCreateObjects }: SpaceGeneratorProps) => {\n const client = useClient();\n const staticTypes = [DocumentType, DiagramType, SheetType, ComputeGraph]; // TODO(burdon): Make extensible.\n const mutableTypes = [Testing.OrgType, Testing.ProjectType, Testing.ContactType, Testing.EmailType];\n const [count, setCount] = useState(1);\n const [info, setInfo] = useState<any>({});\n\n // Create type generators.\n const typeMap = useMemo(() => {\n client.addTypes([...staticTypes, ...presets.schemas]);\n const mutableGenerators = new Map<string, ObjectGenerator<any>>(\n mutableTypes.map((type) => [type.typename, createGenerator(type as any)]),\n );\n\n return new Map([...staticGenerators, ...presets.items, ...mutableGenerators]);\n }, [client, mutableTypes]);\n\n // Query space to get info.\n const updateInfo = async () => {\n // Create schema map.\n const echoSchema = await space.db.schemaRegistry.query().run();\n const staticSchema = space.db.graph.schemaRegistry.schemas;\n\n // Create object map.\n const { objects } = await space.db.query().run();\n const objectMap = sortKeys(\n objects.reduce<Record<string, number>>((map, obj) => {\n const type = getTypename(obj);\n if (type) {\n const count = map[type] ?? 0;\n map[type] = count + 1;\n }\n return map;\n }, {}),\n );\n\n setInfo({\n schema: {\n static: staticSchema.length,\n mutable: echoSchema.length,\n },\n objects: objectMap,\n });\n };\n\n useAsyncEffect(updateInfo, [space]);\n\n const handleCreateData = useCallback(\n async (typename: string) => {\n const constructor = typeMap.get(typename);\n if (constructor) {\n // TODO(burdon): Input to specify number of objects.\n await constructor(space, count, onCreateObjects);\n await updateInfo();\n }\n },\n [typeMap, count],\n );\n\n return (\n <div role='none' className='flex flex-col divide-y divide-separator'>\n <Toolbar.Root classNames='p-1'>\n <IconButton icon='ph--arrow-clockwise--regular' iconOnly label='Refresh' onClick={updateInfo} />\n <Toolbar.Separator variant='gap' />\n <div className='flex'>\n <Input.Root>\n <Input.TextInput\n type='number'\n min={1}\n max={100}\n placeholder={'Count'}\n classNames='w-[80px]'\n value={count}\n onChange={(ev) => setCount(parseInt(ev.target.value))}\n />\n </Input.Root>\n </div>\n </Toolbar.Root>\n\n <SchemaTable types={staticTypes} objects={info.objects} label='Static Types' onClick={handleCreateData} />\n <SchemaTable types={mutableTypes} objects={info.objects} label='Mutable Types' onClick={handleCreateData} />\n <SchemaTable types={presets.types} objects={info.objects} label='Presets' onClick={handleCreateData} />\n\n <SyntaxHighlighter classNames='flex text-xs' language='json'>\n {JSON.stringify({ space, ...info }, jsonKeyReplacer({ truncate: true }), 2)}\n </SyntaxHighlighter>\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { addressToA1Notation } from '@dxos/compute';\nimport { ComputeGraph, ComputeGraphModel, DEFAULT_OUTPUT, NODE_INPUT, NODE_OUTPUT } from '@dxos/conductor';\nimport { ObjectId, type BaseObject, type TypedObject } from '@dxos/echo-schema';\nimport { DXN, SpaceId } from '@dxos/keys';\nimport { create, makeRef, type ReactiveObject } from '@dxos/live-object';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { createSheet } from '@dxos/plugin-sheet/types';\nimport { SheetType, type CellValue } from '@dxos/plugin-sheet/types';\nimport { CanvasType, DiagramType } from '@dxos/plugin-sketch/types';\nimport { faker } from '@dxos/random';\nimport { Filter, type Space } from '@dxos/react-client/echo';\nimport { TableType } from '@dxos/react-ui-table';\nimport { createView, TextType } from '@dxos/schema';\nimport { createAsyncGenerator, type ValueGenerator } from '@dxos/schema/testing';\nimport { range } from '@dxos/util';\n\nconst generator: ValueGenerator = faker as any;\n\n// TODO(burdon): Add objects to collections.\n// TODO(burdon): Create docs.\n// TODO(burdon): Create sketches.\n// TODO(burdon): Create sheets.\n// TODO(burdon): Create comments.\n// TODO(burdon): Reuse in testbench-app.\n// TODO(burdon): Mutator running in background (factor out): from echo-generator.\n\nexport type ObjectGenerator<T extends BaseObject> = (\n space: Space,\n n: number,\n cb?: (objects: ReactiveObject<any>[]) => void,\n) => Promise<ReactiveObject<T>[]>;\n\nexport const staticGenerators = new Map<string, ObjectGenerator<any>>([\n [\n DocumentType.typename,\n async (space, n, cb) => {\n const objects = range(n).map(() => {\n return space.db.add(\n create(DocumentType, {\n name: faker.commerce.productName(),\n content: makeRef(create(TextType, { content: faker.lorem.sentences(5) })),\n threads: [],\n }),\n );\n });\n\n cb?.(objects);\n return objects;\n },\n ],\n [\n DiagramType.typename,\n async (space, n, cb) => {\n const objects = range(n).map(() => {\n // TODO(burdon): Generate diagram.\n const obj = space.db.add(\n create(DiagramType, {\n name: faker.commerce.productName(),\n canvas: makeRef(create(CanvasType, { content: {} })),\n }),\n );\n\n return obj;\n });\n\n cb?.(objects);\n return objects;\n },\n ],\n // TODO(burdon): Create unit tests.\n [\n SheetType.typename,\n async (space, n, cb) => {\n const objects = range(n).map(() => {\n const cells: Record<string, CellValue> = {};\n const year = new Date().getFullYear();\n const cols = 4;\n const rows = 16;\n for (let col = 1; col <= cols; col++) {\n for (let row = 1; row <= rows; row++) {\n const cell = addressToA1Notation({ col, row });\n if (row === 1) {\n cells[cell] = { value: `${year} Q${col}` };\n } else if (row === rows) {\n const from = addressToA1Notation({ col, row: 2 });\n const to = addressToA1Notation({ col, row: rows - 1 });\n cells[cell] = { value: `=SUM(${from}:${to})` };\n } else if (row > 2 && row < rows - 1) {\n cells[cell] = { value: Math.floor(Math.random() * 10_000) };\n }\n }\n }\n\n // TODO(burdon): Set width.\n // TODO(burdon): Set formatting for columns.\n return space.db.add(\n createSheet({\n name: faker.commerce.productName(),\n cells,\n }),\n );\n });\n\n cb?.(objects);\n return objects;\n },\n ],\n [\n ComputeGraph.typename,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const model = ComputeGraphModel.create();\n model.builder\n .createNode({ id: 'gpt-INPUT', type: NODE_INPUT })\n .createNode({ id: 'gpt-GPT', type: 'gpt' })\n .createNode({\n id: 'gpt-QUEUE_ID',\n type: 'constant',\n value: new DXN(DXN.kind.QUEUE, ['data', SpaceId.random(), ObjectId.random()]).toString(),\n })\n .createNode({ id: 'gpt-APPEND', type: 'append' })\n .createNode({ id: 'gpt-OUTPUT', type: NODE_OUTPUT })\n .createEdge({ node: 'gpt-INPUT', property: 'prompt' }, { node: 'gpt-GPT', property: 'prompt' })\n .createEdge({ node: 'gpt-GPT', property: 'text' }, { node: 'gpt-OUTPUT', property: 'text' })\n .createEdge({ node: 'gpt-QUEUE_ID', property: DEFAULT_OUTPUT }, { node: 'gpt-APPEND', property: 'id' })\n .createEdge({ node: 'gpt-GPT', property: 'messages' }, { node: 'gpt-APPEND', property: 'items' })\n .createEdge({ node: 'gpt-QUEUE_ID', property: DEFAULT_OUTPUT }, { node: 'gpt-OUTPUT', property: 'queue' });\n\n return space.db.add(model.root);\n });\n cb?.(objects);\n return objects;\n },\n ],\n]);\n\nexport const createGenerator = <T extends BaseObject>(type: TypedObject<T>): ObjectGenerator<T> => {\n return async (\n space: Space,\n n: number,\n cb?: (objects: ReactiveObject<any>[]) => void,\n ): Promise<ReactiveObject<T>[]> => {\n // Find or create mutable schema.\n const schema =\n (await space.db.schemaRegistry.query({ typename: type.typename }).firstOrUndefined()) ??\n (await space.db.schemaRegistry.register([type]))[0];\n\n // Create objects.\n const generate = createAsyncGenerator(generator, schema.getSchemaSnapshot(), { db: space.db });\n const objects = await generate.createObjects(n);\n\n // Find or create table and view.\n const { objects: tables } = await space.db.query(Filter.schema(TableType)).run();\n const table = tables.find((table) => table.view?.target?.query?.type === type.typename);\n if (!table) {\n const name = type.typename.split('/').pop() ?? type.typename;\n const view = createView({ name, typename: type.typename, jsonSchema: schema.jsonSchema });\n const table = space.db.add(create(TableType, { name, view: makeRef(view) }));\n cb?.([table]);\n }\n\n return objects;\n };\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { IconButton } from '@dxos/react-ui';\n\nexport type SchemaTableProps = {\n types: any[];\n objects?: Record<string, number | undefined>;\n label: string;\n onClick: (typename: string) => void;\n};\n\nexport const SchemaTable = ({ types, objects = {}, label, onClick }: SchemaTableProps) => {\n return (\n <div className='grid grid-cols-[1fr_80px_40px] gap-1 overflow-hidden'>\n <div className='grid grid-cols-subgrid col-span-3'>\n <div className='px-2 text-sm text-primary-500'>{label}</div>\n <div className='px-2 text-xs text-subdued text-right'>count</div>\n </div>\n {types.map((type) => (\n <div key={type.typename} className='grid grid-cols-subgrid col-span-3 items-center'>\n <div className='px-2 text-sm font-mono text-green-500'>{type.typename}</div>\n <div className='px-2 text-right font-mono'>{objects[type.typename] ?? 0}</div>\n <IconButton\n variant='ghost'\n icon='ph--plus--regular'\n iconOnly\n label='Create data'\n onClick={() => onClick(type.typename)}\n />\n </div>\n ))}\n </div>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ComputeGraphModel, EmailTriggerOutput, NODE_INPUT } from '@dxos/conductor';\nimport { AST, ObjectId, S, toJsonSchema } from '@dxos/echo-schema';\nimport { FunctionTrigger, TriggerKind } from '@dxos/functions/types';\nimport { invariant } from '@dxos/invariant';\nimport { DXN, SpaceId } from '@dxos/keys';\nimport { create, makeRef } from '@dxos/live-object';\nimport { Filter, type Space } from '@dxos/react-client/echo';\nimport {\n type ComputeShape,\n createAppend,\n createChat,\n createComputeGraph,\n createConstant,\n createFunction,\n createGpt,\n createQueue,\n createSurface,\n createTemplate,\n createText,\n createTrigger,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n CanvasBoardType,\n CanvasGraphModel,\n pointMultiply,\n pointsToRect,\n rectToPoints,\n} from '@dxos/react-ui-canvas-editor';\nimport { TableType } from '@dxos/react-ui-table';\nimport { range } from '@dxos/util';\n\nimport { type ObjectGenerator } from './ObjectGenerator';\n\nexport enum PresetName {\n EMAIL_TABLE = 'email-table',\n GPT_QUEUE = 'webhook-gpt-queue',\n CHAT_GPT = 'chat-gpt-text',\n EMAIL_WITH_SUMMARY = 'email-gptSummary-table',\n OBJECT_CHANGE_QUEUE = 'objectChange-queue',\n FOREX_FUNCTION_CALL = 'forex-function-call',\n DISCORD_MESSAGES = 'discord-messages',\n}\n\nexport const presets = {\n schemas: [CanvasBoardType, FunctionTrigger],\n types: Object.values(PresetName).map((name) => ({ typename: name })),\n items: [\n [\n PresetName.GPT_QUEUE,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const gpt = canvasModel.createNode(createGpt(position({ x: 0, y: -14 })));\n const triggerShape = createTrigger({ triggerKind: TriggerKind.Webhook, ...position({ x: -18, y: -2 }) });\n const trigger = canvasModel.createNode(triggerShape);\n const text = canvasModel.createNode(createText(position({ x: 19, y: 3, width: 10, height: 10 })));\n const { queueId } = setupQueue(canvasModel);\n const append = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));\n\n builder\n .createEdge({ source: trigger.id, target: gpt.id, input: 'prompt', output: 'bodyText' })\n .createEdge({ source: gpt.id, target: text.id, output: 'text' })\n .createEdge({ source: queueId.id, target: append.id, input: 'id' })\n .createEdge({ source: gpt.id, target: append.id, output: 'messages', input: 'items' });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.GPT_QUEUE, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.OBJECT_CHANGE_QUEUE,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n const template = canvasModel.createNode(\n createTemplate({\n valueType: 'object',\n ...rawPosition({ centerX: -64, centerY: -79, width: 320, height: 320 }),\n }),\n );\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const triggerShape = createTrigger({\n triggerKind: TriggerKind.Subscription,\n ...position({ x: -18, y: -2 }),\n });\n const trigger = canvasModel.createNode(triggerShape);\n const { queueId } = setupQueue(canvasModel, {\n queuePosition: { centerX: -80, centerY: 378, width: 320, height: 448 },\n });\n const append = canvasModel.createNode(\n createAppend(rawPosition({ centerX: 320, centerY: 192, width: 128, height: 122 })),\n );\n\n builder\n .createEdge({ source: queueId.id, target: append.id, input: 'id' })\n .createEdge({ source: template.id, target: append.id, input: 'items' })\n .createEdge({ source: trigger.id, target: template.id, output: 'type', input: 'type' })\n .createEdge({\n source: trigger.id,\n target: template.id,\n output: 'changedObjectId',\n input: 'changedObjectId',\n });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n const triggerSpec = functionTrigger.spec;\n invariant(triggerSpec && triggerSpec.type === TriggerKind.Subscription, 'No trigger spec.');\n triggerSpec.filter = { type: 'dxn:type:dxos.org/type/Chess' };\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);\n invariant(templateComputeNode, 'Template compute node was not created.');\n templateComputeNode.value = ['{', ' \"@type\": \"{{type}}\",', ' \"id\": \"{{changedObjectId}}\"', '}'].join('\\n');\n templateComputeNode.inputSchema = toJsonSchema(S.Struct({ type: S.String, changedObjectId: S.String }));\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.OBJECT_CHANGE_QUEUE, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.EMAIL_TABLE,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n const results = space.db.query(Filter.schema(TableType)).runSync();\n const emailTable = results.find((r) => r.object?.view?.target?.query?.type?.endsWith('Email'));\n invariant(emailTable, 'Email table not found.');\n\n const template = canvasModel.createNode(\n createTemplate({\n valueType: 'object',\n ...rawPosition({ centerX: -80, centerY: -64, width: 320, height: 320 }),\n }),\n );\n const templateContent = ['{'];\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const triggerShape = createTrigger({ triggerKind: TriggerKind.Email, ...position({ x: -18, y: -2 }) });\n const trigger = canvasModel.createNode(triggerShape);\n\n const tableId = canvasModel.createNode(\n createConstant({\n value: DXN.fromLocalObjectId(emailTable.id).toString(),\n ...position({ x: -18, y: 5, width: 8, height: 6 }),\n }),\n );\n\n const appendToTable = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));\n\n const properties = AST.getPropertySignatures(EmailTriggerOutput.ast);\n for (let i = 0; i < properties.length; i++) {\n const propName = properties[i].name.toString();\n builder.createEdge({ source: trigger.id, target: template.id, input: propName, output: propName });\n templateContent.push(` \"${propName}\": \"{{${propName}}}\"` + (i === properties.length - 1 ? '' : ','));\n }\n templateContent.push('}');\n\n builder\n .createEdge({ source: tableId.id, target: appendToTable.id, input: 'id' })\n .createEdge({ source: template.id, target: appendToTable.id, input: 'items' });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);\n invariant(templateComputeNode, 'Template compute node was not created.');\n templateComputeNode.value = templateContent.join('\\n');\n templateComputeNode.inputSchema = toJsonSchema(EmailTriggerOutput);\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.EMAIL_TABLE, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.CHAT_GPT,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n canvasModel.builder.call((builder) => {\n const gpt = canvasModel.createNode(createGpt(position({ x: 0, y: -14 })));\n const chat = canvasModel.createNode(createChat(position({ x: -18, y: -2 })));\n const text = canvasModel.createNode(createText(position({ x: 19, y: 3, width: 10, height: 10 })));\n const { queueId } = setupQueue(canvasModel);\n\n const append = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));\n\n builder\n .createEdge({ source: chat.id, target: gpt.id, input: 'prompt' })\n .createEdge({ source: gpt.id, target: text.id, output: 'text' })\n .createEdge({ source: queueId.id, target: append.id, input: 'id' })\n .createEdge({ source: gpt.id, target: append.id, output: 'messages', input: 'items' });\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n return addToSpace(PresetName.CHAT_GPT, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.EMAIL_WITH_SUMMARY,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n const results = space.db.query(Filter.schema(TableType)).runSync();\n const emailTable = results.find((r) => r.object?.view?.target?.query?.type?.endsWith('Email'));\n invariant(emailTable, 'Email table not found.');\n\n const template = canvasModel.createNode(\n createTemplate({\n valueType: 'object',\n ...rawPosition({ centerX: 192, centerY: -176, width: 320, height: 320 }),\n }),\n );\n const templateContent = ['{'];\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const gpt = canvasModel.createNode(\n createGpt(rawPosition({ centerX: -400, centerY: -112, width: 256, height: 202 })),\n );\n const systemPrompt = canvasModel.createNode(\n createConstant({\n value: \"use one word to describe content category. don't write anything else\",\n ...rawPosition({ centerX: -800, centerY: -160, width: 192, height: 128 }),\n }),\n );\n const triggerShape = createTrigger({\n triggerKind: TriggerKind.Email,\n ...rawPosition({ centerX: -736, centerY: -384, width: 182, height: 192 }),\n });\n const trigger = canvasModel.createNode(triggerShape);\n\n const { queueId } = setupQueue(canvasModel, {\n idPosition: { centerX: -720, centerY: 224, width: 192, height: 256 },\n queuePosition: { centerX: -144, centerY: 416, width: 320, height: 448 },\n });\n const appendToQueue = canvasModel.createNode(\n createAppend(rawPosition({ centerX: -80, centerY: 96, width: 122, height: 128 })),\n );\n\n const tableId = canvasModel.createNode(\n createConstant({\n value: DXN.fromLocalObjectId(emailTable.id).toString(),\n ...rawPosition({ centerX: -112, centerY: -544, width: 192, height: 256 }),\n }),\n );\n\n const appendToTable = canvasModel.createNode(\n createAppend(rawPosition({ centerX: 560, centerY: -416, width: 128, height: 122 })),\n );\n\n templateContent.push(' \"category\": \"{{text}}\",');\n builder.createEdge({ source: gpt.id, target: template.id, input: 'text', output: 'text' });\n\n const properties = AST.getPropertySignatures(EmailTriggerOutput.ast);\n for (let i = 0; i < properties.length; i++) {\n const propName = properties[i].name.toString();\n builder.createEdge({ source: trigger.id, target: template.id, input: propName, output: propName });\n templateContent.push(` \"${propName}\": \"{{${propName}}}\"` + (i === properties.length - 1 ? '' : ','));\n }\n templateContent.push('}');\n\n builder\n .createEdge({ source: tableId.id, target: appendToTable.id, input: 'id' })\n .createEdge({ source: queueId.id, target: appendToQueue.id, input: 'id' })\n .createEdge({ source: gpt.id, target: appendToQueue.id, output: 'messages', input: 'items' })\n .createEdge({ source: systemPrompt.id, target: gpt.id, input: 'systemPrompt' })\n .createEdge({ source: trigger.id, target: gpt.id, input: 'prompt', output: 'body' })\n .createEdge({ source: template.id, target: appendToTable.id, input: 'items' });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);\n invariant(templateComputeNode, 'Template compute node was not created.');\n templateComputeNode.value = templateContent.join('\\n');\n const extendedSchema = S.extend(EmailTriggerOutput, S.Struct({ text: S.String }));\n templateComputeNode.inputSchema = toJsonSchema(extendedSchema);\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.EMAIL_WITH_SUMMARY, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n [\n PresetName.FOREX_FUNCTION_CALL,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n canvasModel.builder.call((builder) => {\n const sourceCurrency = canvasModel.createNode(\n createConstant({ value: 'USD', ...position({ x: -10, y: -5 }) }),\n );\n const targetCurrency = canvasModel.createNode(\n createConstant({ value: 'EUR', ...position({ x: -10, y: 5 }) }),\n );\n const converter = canvasModel.createNode(createFunction(position({ x: 0, y: 0 })));\n const view = canvasModel.createNode(createSurface(position({ x: 12, y: 0 })));\n\n builder\n .createEdge({ source: sourceCurrency.id, target: converter.id, input: 'from' })\n .createEdge({ source: targetCurrency.id, target: converter.id, input: 'to' })\n .createEdge({ source: converter.id, target: view.id, output: 'rate' });\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n return addToSpace(PresetName.FOREX_FUNCTION_CALL, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n [\n PresetName.DISCORD_MESSAGES,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n canvasModel.builder.call((builder) => {\n // DXOS general channel.\n const channelId = canvasModel.createNode(\n createConstant({ value: '837138313172353098', ...position({ x: -10, y: -5 }) }),\n );\n const queueId = canvasModel.createNode(\n createConstant({\n value: new DXN(DXN.kind.QUEUE, ['data', SpaceId.random(), ObjectId.random()]).toString(),\n ...position({ x: -10, y: 5 }),\n }),\n );\n const converter = canvasModel.createNode(createFunction(position({ x: 0, y: 0 })));\n const view = canvasModel.createNode(createText(position({ x: 12, y: 0 })));\n const queue = canvasModel.createNode(createQueue(position({ x: 0, y: 12 })));\n\n builder\n .createEdge({ source: queueId.id, target: converter.id, input: 'queueId' })\n .createEdge({ source: channelId.id, target: converter.id, input: 'channelId' })\n .createEdge({ source: converter.id, target: view.id, output: 'newMessages' })\n .createEdge({ source: queueId.id, target: queue.id, input: 'input' });\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n return addToSpace(PresetName.DISCORD_MESSAGES, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n ] as [PresetName, ObjectGenerator<any>][],\n};\n\nconst addToSpace = (name: string, space: Space, canvas: CanvasGraphModel, compute: ComputeGraphModel) => {\n return space.db.add(\n create(CanvasBoardType, {\n name,\n computeGraph: makeRef(compute.root),\n layout: canvas.graph,\n }),\n );\n};\n\nconst setupQueue = (\n canvasModel: CanvasGraphModel,\n args?: { idPosition?: RawPositionInput; queuePosition?: RawPositionInput },\n) => {\n const queueId = canvasModel.createNode(\n createConstant({\n value: new DXN(DXN.kind.QUEUE, ['data', SpaceId.random(), ObjectId.random()]).toString(),\n ...(args?.idPosition ? rawPosition(args.idPosition) : position({ x: -18, y: 5, width: 8, height: 6 })),\n }),\n );\n const queue = canvasModel.createNode(\n createQueue(\n args?.queuePosition ? rawPosition(args.queuePosition) : position({ x: -3, y: 3, width: 14, height: 10 }),\n ),\n );\n canvasModel.createEdge({ source: queueId.id, target: queue.id });\n return { queue, queueId };\n};\n\nconst attachTrigger = (functionTrigger: FunctionTrigger | undefined, computeModel: ComputeGraphModel) => {\n invariant(functionTrigger);\n functionTrigger.function = DXN.fromLocalObjectId(computeModel.root.id).toString();\n functionTrigger.meta ??= {};\n const inputNode = computeModel.nodes.find((node) => node.type === NODE_INPUT)!;\n functionTrigger.meta.computeNodeId = inputNode.id;\n};\n\ntype RawPositionInput = { centerX: number; centerY: number; width: number; height: number };\n\nconst rawPosition = (args: RawPositionInput) => {\n return { center: { x: args.centerX, y: args.centerY }, size: { width: args.width, height: args.height } };\n};\n\nconst position = (rect: { x: number; y: number; width?: number; height?: number }) => {\n const snap = 32;\n const [center, size] = rectToPoints({ width: 0, height: 0, ...rect });\n const { x, y, width, height } = pointsToRect([pointMultiply(center, snap), pointMultiply(size, snap)]);\n if (width && height) {\n return { center: { x, y }, size: width && height ? { width, height } : undefined };\n } else {\n return { center: { x, y } };\n }\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { SpaceGenerator } from './SpaceGenerator';\n\nexport default SpaceGenerator;\n"],
5
+ "mappings": ";AAIA,OAAOA,UAASC,aAAaC,SAASC,gBAAgB;AAEtD,SAASC,gBAAAA,qBAAoB;AAE7B,SAASC,gBAAAA,qBAAoB;AAC7B,SAASC,aAAAA,kBAAiB;AAC1B,SAASC,eAAAA,oBAAmB;AAC5B,SAASC,iBAAiB;AAC1B,SAASC,mBAA+B;AACxC,SAASC,cAAAA,aAAYC,OAAOC,SAASC,sBAAsB;AAC3D,SAASC,yBAAyB;AAClC,SAASC,eAAe;AACxB,SAASC,iBAAiBC,gBAAgB;;;ACZ1C,SAASC,2BAA2B;AACpC,SAASC,cAAcC,mBAAmBC,gBAAgBC,YAAYC,mBAAmB;AACzF,SAASC,gBAAmD;AAC5D,SAASC,KAAKC,eAAe;AAC7B,SAASC,QAAQC,eAAoC;AACrD,SAASC,oBAAoB;AAC7B,SAASC,mBAAmB;AAC5B,SAASC,iBAAiC;AAC1C,SAASC,YAAYC,mBAAmB;AACxC,SAASC,aAAa;AACtB,SAASC,cAA0B;AACnC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,gBAAgB;AACrC,SAASC,4BAAiD;AAC1D,SAASC,aAAa;AAEtB,IAAMC,YAA4BC;AAgB3B,IAAMC,mBAAmB,oBAAIC,IAAkC;EACpE;IACEC,aAAaC;IACb,OAAOC,OAAOC,GAAGC,OAAAA;AACf,YAAMC,UAAUC,MAAMH,CAAAA,EAAGI,IAAI,MAAA;AAC3B,eAAOL,MAAMM,GAAGC,IACdC,OAAOV,cAAc;UACnBW,MAAMd,MAAMe,SAASC,YAAW;UAChCC,SAASC,QAAQL,OAAOM,UAAU;YAAEF,SAASjB,MAAMoB,MAAMC,UAAU,CAAA;UAAG,CAAA,CAAA;UAC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;IAACC,YAAW;KACvB,gBAAAN,OAAA,cAACO,aAAAA;IAAWC,MAAK;IAA+BC,UAAAA;IAASC,OAAM;IAAUC,SAASlC;MAClF,gBAAAuB,OAAA,cAACI,QAAQQ,WAAS;IAACC,SAAQ;MAC3B,gBAAAb,OAAA,cAACC,OAAAA;IAAIE,WAAU;KACb,gBAAAH,OAAA,cAACc,MAAMT,MAAI,MACT,gBAAAL,OAAA,cAACc,MAAMC,WAAS;IACd3C,MAAK;IACL4C,KAAK;IACLC,KAAK;IACLC,aAAa;IACbZ,YAAW;IACXa,OAAO5D;IACP6D,UAAU,CAACC,OAAO7D,SAAS8D,SAASD,GAAGE,OAAOJ,KAAK,CAAA;SAM3D,gBAAAnB,OAAA,cAACwB,aAAAA;IAAYC,OAAO7E;IAAaqC,SAASvB,KAAKuB;IAASyB,OAAM;IAAeC,SAASf;MACtF,gBAAAI,OAAA,cAACwB,aAAAA;IAAYC,OAAOxE;IAAcgC,SAASvB,KAAKuB;IAASyB,OAAM;IAAgBC,SAASf;MACxF,gBAAAI,OAAA,cAACwB,aAAAA;IAAYC,OAAO1D,QAAQ0D;IAAOxC,SAASvB,KAAKuB;IAASyB,OAAM;IAAUC,SAASf;MAEnF,gBAAAI,OAAA,cAAC0B,mBAAAA;IAAkBpB,YAAW;IAAeqB,UAAS;KACnDC,KAAKC,UAAU;IAAErF;IAAO,GAAGkB;EAAK,GAAGoE,gBAAgB;IAAEC,UAAU;EAAK,CAAA,GAAI,CAAA,CAAA,CAAA;AAIjF;;;AI7GA,IAAA,yBAAeC;",
6
+ "names": ["React", "useCallback", "useMemo", "useState", "ComputeGraph", "DocumentType", "SheetType", "DiagramType", "useClient", "getTypename", "IconButton", "Input", "Toolbar", "useAsyncEffect", "SyntaxHighlighter", "Testing", "jsonKeyReplacer", "sortKeys", "addressToA1Notation", "ComputeGraph", "ComputeGraphModel", "DEFAULT_OUTPUT", "NODE_INPUT", "NODE_OUTPUT", "ObjectId", "DXN", "SpaceId", "create", "makeRef", "DocumentType", "createSheet", "SheetType", "CanvasType", "DiagramType", "faker", "Filter", "TableType", "createView", "TextType", "createAsyncGenerator", "range", "generator", "faker", "staticGenerators", "Map", "DocumentType", "typename", "space", "n", "cb", "objects", "range", "map", "db", "add", "create", "name", "commerce", "productName", "content", "makeRef", "TextType", "lorem", "sentences", "threads", "DiagramType", "obj", "canvas", "CanvasType", "SheetType", "cells", "year", "Date", "getFullYear", "cols", "rows", "col", "row", "cell", "addressToA1Notation", "value", "from", "to", "Math", "floor", "random", "createSheet", "ComputeGraph", "model", "ComputeGraphModel", "builder", "createNode", "id", "type", "NODE_INPUT", "DXN", "kind", "QUEUE", "SpaceId", "ObjectId", "toString", "NODE_OUTPUT", "createEdge", "node", "property", "DEFAULT_OUTPUT", "root", "createGenerator", "schema", "schemaRegistry", "query", "firstOrUndefined", "register", "generate", "createAsyncGenerator", "getSchemaSnapshot", "createObjects", "tables", "Filter", "TableType", "run", "table", "find", "view", "target", "split", "pop", "createView", "jsonSchema", "React", "IconButton", "SchemaTable", "types", "objects", "label", "onClick", "div", "className", "map", "type", "key", "typename", "IconButton", "variant", "icon", "iconOnly", "EmailTriggerOutput", "NODE_INPUT", "AST", "ObjectId", "S", "toJsonSchema", "FunctionTrigger", "TriggerKind", "invariant", "DXN", "SpaceId", "create", "makeRef", "Filter", "createAppend", "createChat", "createComputeGraph", "createConstant", "createFunction", "createGpt", "createQueue", "createSurface", "createTemplate", "createText", "createTrigger", "CanvasBoardType", "CanvasGraphModel", "pointMultiply", "pointsToRect", "rectToPoints", "TableType", "range", "PresetName", "presets", "schemas", "types", "Object", "values", "map", "name", "typename", "items", "space", "n", "cb", "objects", "canvasModel", "functionTrigger", "builder", "call", "gpt", "createNode", "position", "x", "y", "triggerShape", "triggerKind", "Webhook", "trigger", "text", "width", "height", "queueId", "setupQueue", "append", "createEdge", "source", "id", "target", "input", "output", "computeModel", "attachTrigger", "addToSpace", "template", "valueType", "rawPosition", "centerX", "centerY", "Subscription", "queuePosition", "triggerSpec", "spec", "type", "filter", "templateComputeNode", "nodes", "find", "node", "value", "join", "inputSchema", "Struct", "String", "changedObjectId", "results", "db", "query", "schema", "runSync", "emailTable", "r", "object", "view", "endsWith", "templateContent", "Email", "tableId", "fromLocalObjectId", "toString", "appendToTable", "properties", "getPropertySignatures", "ast", "i", "length", "propName", "push", "chat", "systemPrompt", "idPosition", "appendToQueue", "extendedSchema", "extend", "sourceCurrency", "targetCurrency", "converter", "channelId", "kind", "QUEUE", "random", "queue", "canvas", "compute", "add", "computeGraph", "root", "layout", "graph", "args", "function", "meta", "inputNode", "computeNodeId", "center", "size", "rect", "snap", "undefined", "SpaceGenerator", "space", "onCreateObjects", "client", "useClient", "staticTypes", "DocumentType", "DiagramType", "SheetType", "ComputeGraph", "mutableTypes", "Testing", "OrgType", "ProjectType", "ContactType", "EmailType", "count", "setCount", "useState", "info", "setInfo", "typeMap", "useMemo", "addTypes", "presets", "schemas", "mutableGenerators", "Map", "map", "type", "typename", "createGenerator", "staticGenerators", "items", "updateInfo", "echoSchema", "db", "schemaRegistry", "query", "run", "staticSchema", "graph", "objects", "objectMap", "sortKeys", "reduce", "obj", "getTypename", "schema", "static", "length", "mutable", "useAsyncEffect", "handleCreateData", "useCallback", "constructor", "get", "React", "div", "role", "className", "Toolbar", "Root", "classNames", "IconButton", "icon", "iconOnly", "label", "onClick", "Separator", "variant", "Input", "TextInput", "min", "max", "placeholder", "value", "onChange", "ev", "parseInt", "target", "SchemaTable", "types", "SyntaxHighlighter", "language", "JSON", "stringify", "jsonKeyReplacer", "truncate", "SpaceGenerator"]
7
+ }
@@ -10,7 +10,7 @@ import { DeckCapabilities } from "@dxos/plugin-deck";
10
10
  // packages/plugins/plugin-debug/src/capabilities/index.ts
11
11
  import { lazy } from "@dxos/app-framework";
12
12
  var AppGraphBuilder = lazy(() => import("./app-graph-builder-DCMGZAT3.mjs"));
13
- var ReactSurface = lazy(() => import("./react-surface-ZRQ4TPNG.mjs"));
13
+ var ReactSurface = lazy(() => import("./react-surface-YAJPSHG4.mjs"));
14
14
  var DebugSettings = lazy(() => import("./settings-OIMSBZUC.mjs"));
15
15
 
16
16
  // packages/plugins/plugin-debug/src/translations.ts
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-debug/src/meta.ts":{"bytes":2435,"imports":[],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts":{"bytes":21920,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugObjectPanel.tsx":{"bytes":3940,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSettings.tsx":{"bytes":22141,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugStatus.tsx":{"bytes":22224,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-status-bar","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/Wireframe.tsx":{"bytes":6439,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugApp/Tree.tsx":{"bytes":10017,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/Container.tsx":{"bytes":1751,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugApp/DebugApp.tsx":{"bytes":10768,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/DebugApp/Tree.tsx","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/plugin-debug/src/components/Container.tsx","kind":"import-statement","original":"../Container"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugApp/index.ts":{"bytes":661,"imports":[{"path":"packages/plugins/plugin-debug/src/components/DebugApp/DebugApp.tsx","kind":"import-statement","original":"./DebugApp"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSpace/ObjectCreator.tsx":{"bytes":11994,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table/deprecated","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/types.ts":{"bytes":2408,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSpace/DebugSpace.tsx":{"bytes":22785,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/invitations","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/DebugSpace/ObjectCreator.tsx","kind":"import-statement","original":"./ObjectCreator"},{"path":"packages/plugins/plugin-debug/src/types.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-debug/src/components/Container.tsx","kind":"import-statement","original":"../Container"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts":{"bytes":681,"imports":[{"path":"packages/plugins/plugin-debug/src/components/DebugSpace/DebugSpace.tsx","kind":"import-statement","original":"./DebugSpace"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/ObjectGenerator.tsx":{"bytes":23013,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/SchemaTable.tsx":{"bytes":4311,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/presets.ts":{"bytes":55095,"imports":[{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/SpaceGenerator.tsx":{"bytes":15752,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/ObjectGenerator.tsx","kind":"import-statement","original":"./ObjectGenerator"},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/SchemaTable.tsx","kind":"import-statement","original":"./SchemaTable"},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/presets.ts","kind":"import-statement","original":"./presets"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts":{"bytes":721,"imports":[{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/SpaceGenerator.tsx","kind":"import-statement","original":"./SpaceGenerator"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/index.ts":{"bytes":1651,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/DebugObjectPanel.tsx","kind":"import-statement","original":"./DebugObjectPanel"},{"path":"packages/plugins/plugin-debug/src/components/DebugSettings.tsx","kind":"import-statement","original":"./DebugSettings"},{"path":"packages/plugins/plugin-debug/src/components/DebugStatus.tsx","kind":"import-statement","original":"./DebugStatus"},{"path":"packages/plugins/plugin-debug/src/components/Wireframe.tsx","kind":"import-statement","original":"./Wireframe"},{"path":"packages/plugins/plugin-debug/src/components/DebugApp/index.ts","kind":"dynamic-import","original":"./DebugApp"},{"path":"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts","kind":"dynamic-import","original":"./DebugSpace"},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts","kind":"dynamic-import","original":"./SpaceGenerator"}],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx":{"bytes":16096,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/settings.ts":{"bytes":2115,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-debug/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/index.ts":{"bytes":1324,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-debug/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"}],"format":"esm"},"packages/plugins/plugin-debug/src/translations.ts":{"bytes":4484,"imports":[{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/DebugPlugin.tsx":{"bytes":8332,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-debug/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"@dxos/echo-pipeline/testing","kind":"dynamic-import","external":true},{"path":"@dxos/client-services","kind":"dynamic-import","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/index.ts":{"bytes":592,"imports":[{"path":"packages/plugins/plugin-debug/src/DebugPlugin.tsx","kind":"import-statement","original":"./DebugPlugin"},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-debug/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6507},"packages/plugins/plugin-debug/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/dist/lib/browser/app-graph-builder-DCMGZAT3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/react-surface-ZRQ4TPNG.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/settings-OIMSBZUC.mjs","kind":"dynamic-import"},{"path":"@dxos/echo-pipeline/testing","kind":"dynamic-import","external":true},{"path":"@dxos/client-services","kind":"dynamic-import","external":true}],"exports":["DEBUG_PLUGIN","DebugPlugin","meta"],"entryPoint":"packages/plugins/plugin-debug/src/index.ts","inputs":{"packages/plugins/plugin-debug/src/DebugPlugin.tsx":{"bytesInOutput":1814},"packages/plugins/plugin-debug/src/capabilities/index.ts":{"bytesInOutput":260},"packages/plugins/plugin-debug/src/translations.ts":{"bytesInOutput":1345},"packages/plugins/plugin-debug/src/index.ts":{"bytesInOutput":0}},"bytes":3789},"packages/plugins/plugin-debug/dist/lib/browser/app-graph-builder-DCMGZAT3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10088},"packages/plugins/plugin-debug/dist/lib/browser/app-graph-builder-DCMGZAT3.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts":{"bytesInOutput":5441}},"bytes":5675},"packages/plugins/plugin-debug/dist/lib/browser/DebugApp-LQHFFK3Y.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11005},"packages/plugins/plugin-debug/dist/lib/browser/DebugApp-LQHFFK3Y.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/components/DebugApp/index.ts","inputs":{"packages/plugins/plugin-debug/src/components/DebugApp/DebugApp.tsx":{"bytesInOutput":2996},"packages/plugins/plugin-debug/src/components/DebugApp/Tree.tsx":{"bytesInOutput":2647},"packages/plugins/plugin-debug/src/components/DebugApp/index.ts":{"bytesInOutput":33}},"bytes":6093},"packages/plugins/plugin-debug/dist/lib/browser/DebugSpace-4JHYA7FG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":18490},"packages/plugins/plugin-debug/dist/lib/browser/DebugSpace-4JHYA7FG.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/invitations","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table/deprecated","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts","inputs":{"packages/plugins/plugin-debug/src/components/DebugSpace/DebugSpace.tsx":{"bytesInOutput":6011},"packages/plugins/plugin-debug/src/components/DebugSpace/ObjectCreator.tsx":{"bytesInOutput":2896},"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts":{"bytesInOutput":37}},"bytes":9441},"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":851},"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true}],"exports":["Container"],"inputs":{"packages/plugins/plugin-debug/src/components/Container.tsx":{"bytesInOutput":351}},"bytes":482},"packages/plugins/plugin-debug/dist/lib/browser/SpaceGenerator-4VO7E5P2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":46339},"packages/plugins/plugin-debug/dist/lib/browser/SpaceGenerator-4VO7E5P2.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts","inputs":{"packages/plugins/plugin-debug/src/components/SpaceGenerator/SpaceGenerator.tsx":{"bytesInOutput":3933},"packages/plugins/plugin-debug/src/components/SpaceGenerator/ObjectGenerator.tsx":{"bytesInOutput":5593},"packages/plugins/plugin-debug/src/components/SpaceGenerator/SchemaTable.tsx":{"bytesInOutput":1192},"packages/plugins/plugin-debug/src/components/SpaceGenerator/presets.ts":{"bytesInOutput":16143},"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts":{"bytesInOutput":45}},"bytes":27484},"packages/plugins/plugin-debug/dist/lib/browser/react-surface-ZRQ4TPNG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":36263},"packages/plugins/plugin-debug/dist/lib/browser/react-surface-ZRQ4TPNG.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-status-bar","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/dist/lib/browser/DebugApp-LQHFFK3Y.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/DebugSpace-4JHYA7FG.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/SpaceGenerator-4VO7E5P2.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx":{"bytesInOutput":3765},"packages/plugins/plugin-debug/src/components/index.ts":{"bytesInOutput":232},"packages/plugins/plugin-debug/src/components/DebugObjectPanel.tsx":{"bytesInOutput":972},"packages/plugins/plugin-debug/src/components/DebugSettings.tsx":{"bytesInOutput":6175},"packages/plugins/plugin-debug/src/components/DebugStatus.tsx":{"bytesInOutput":4974},"packages/plugins/plugin-debug/src/components/Wireframe.tsx":{"bytesInOutput":1742}},"bytes":18533},"packages/plugins/plugin-debug/dist/lib/browser/settings-OIMSBZUC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1052},"packages/plugins/plugin-debug/dist/lib/browser/settings-OIMSBZUC.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-debug/src/capabilities/settings.ts":{"bytesInOutput":350}},"bytes":619},"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1372},"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["DebugContext","DebugSettingsSchema"],"inputs":{"packages/plugins/plugin-debug/src/types.ts":{"bytesInOutput":331}},"bytes":472},"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1120},"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs":{"imports":[],"exports":["DEBUG_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-debug/src/meta.ts":{"bytesInOutput":643}},"bytes":768}}}
1
+ {"inputs":{"packages/plugins/plugin-debug/src/meta.ts":{"bytes":2435,"imports":[],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts":{"bytes":21920,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugObjectPanel.tsx":{"bytes":3940,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSettings.tsx":{"bytes":22141,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugStatus.tsx":{"bytes":22224,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-status-bar","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/Wireframe.tsx":{"bytes":6439,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugApp/Tree.tsx":{"bytes":10017,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/Container.tsx":{"bytes":1751,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugApp/DebugApp.tsx":{"bytes":10768,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/DebugApp/Tree.tsx","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/plugin-debug/src/components/Container.tsx","kind":"import-statement","original":"../Container"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugApp/index.ts":{"bytes":661,"imports":[{"path":"packages/plugins/plugin-debug/src/components/DebugApp/DebugApp.tsx","kind":"import-statement","original":"./DebugApp"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSpace/ObjectCreator.tsx":{"bytes":11994,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table/deprecated","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/types.ts":{"bytes":2408,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSpace/DebugSpace.tsx":{"bytes":22785,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/invitations","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/DebugSpace/ObjectCreator.tsx","kind":"import-statement","original":"./ObjectCreator"},{"path":"packages/plugins/plugin-debug/src/types.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-debug/src/components/Container.tsx","kind":"import-statement","original":"../Container"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts":{"bytes":681,"imports":[{"path":"packages/plugins/plugin-debug/src/components/DebugSpace/DebugSpace.tsx","kind":"import-statement","original":"./DebugSpace"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/ObjectGenerator.tsx":{"bytes":23013,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/SchemaTable.tsx":{"bytes":4311,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/presets.ts":{"bytes":78134,"imports":[{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/SpaceGenerator.tsx":{"bytes":15752,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/ObjectGenerator.tsx","kind":"import-statement","original":"./ObjectGenerator"},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/SchemaTable.tsx","kind":"import-statement","original":"./SchemaTable"},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/presets.ts","kind":"import-statement","original":"./presets"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts":{"bytes":721,"imports":[{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/SpaceGenerator.tsx","kind":"import-statement","original":"./SpaceGenerator"}],"format":"esm"},"packages/plugins/plugin-debug/src/components/index.ts":{"bytes":1651,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/DebugObjectPanel.tsx","kind":"import-statement","original":"./DebugObjectPanel"},{"path":"packages/plugins/plugin-debug/src/components/DebugSettings.tsx","kind":"import-statement","original":"./DebugSettings"},{"path":"packages/plugins/plugin-debug/src/components/DebugStatus.tsx","kind":"import-statement","original":"./DebugStatus"},{"path":"packages/plugins/plugin-debug/src/components/Wireframe.tsx","kind":"import-statement","original":"./Wireframe"},{"path":"packages/plugins/plugin-debug/src/components/DebugApp/index.ts","kind":"dynamic-import","original":"./DebugApp"},{"path":"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts","kind":"dynamic-import","original":"./DebugSpace"},{"path":"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts","kind":"dynamic-import","original":"./SpaceGenerator"}],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx":{"bytes":16096,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/settings.ts":{"bytes":2115,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-debug/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-debug/src/capabilities/index.ts":{"bytes":1324,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-debug/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"}],"format":"esm"},"packages/plugins/plugin-debug/src/translations.ts":{"bytes":4484,"imports":[{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-debug/src/DebugPlugin.tsx":{"bytes":8332,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-debug/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"@dxos/echo-pipeline/testing","kind":"dynamic-import","external":true},{"path":"@dxos/client-services","kind":"dynamic-import","external":true}],"format":"esm"},"packages/plugins/plugin-debug/src/index.ts":{"bytes":592,"imports":[{"path":"packages/plugins/plugin-debug/src/DebugPlugin.tsx","kind":"import-statement","original":"./DebugPlugin"},{"path":"packages/plugins/plugin-debug/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-debug/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6507},"packages/plugins/plugin-debug/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/dist/lib/browser/app-graph-builder-DCMGZAT3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/react-surface-YAJPSHG4.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/settings-OIMSBZUC.mjs","kind":"dynamic-import"},{"path":"@dxos/echo-pipeline/testing","kind":"dynamic-import","external":true},{"path":"@dxos/client-services","kind":"dynamic-import","external":true}],"exports":["DEBUG_PLUGIN","DebugPlugin","meta"],"entryPoint":"packages/plugins/plugin-debug/src/index.ts","inputs":{"packages/plugins/plugin-debug/src/DebugPlugin.tsx":{"bytesInOutput":1814},"packages/plugins/plugin-debug/src/capabilities/index.ts":{"bytesInOutput":260},"packages/plugins/plugin-debug/src/translations.ts":{"bytesInOutput":1345},"packages/plugins/plugin-debug/src/index.ts":{"bytesInOutput":0}},"bytes":3789},"packages/plugins/plugin-debug/dist/lib/browser/app-graph-builder-DCMGZAT3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10088},"packages/plugins/plugin-debug/dist/lib/browser/app-graph-builder-DCMGZAT3.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts":{"bytesInOutput":5441}},"bytes":5675},"packages/plugins/plugin-debug/dist/lib/browser/DebugApp-LQHFFK3Y.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11005},"packages/plugins/plugin-debug/dist/lib/browser/DebugApp-LQHFFK3Y.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/components/DebugApp/index.ts","inputs":{"packages/plugins/plugin-debug/src/components/DebugApp/DebugApp.tsx":{"bytesInOutput":2996},"packages/plugins/plugin-debug/src/components/DebugApp/Tree.tsx":{"bytesInOutput":2647},"packages/plugins/plugin-debug/src/components/DebugApp/index.ts":{"bytesInOutput":33}},"bytes":6093},"packages/plugins/plugin-debug/dist/lib/browser/DebugSpace-4JHYA7FG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":18490},"packages/plugins/plugin-debug/dist/lib/browser/DebugSpace-4JHYA7FG.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/invitations","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-generator","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table/deprecated","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts","inputs":{"packages/plugins/plugin-debug/src/components/DebugSpace/DebugSpace.tsx":{"bytesInOutput":6011},"packages/plugins/plugin-debug/src/components/DebugSpace/ObjectCreator.tsx":{"bytesInOutput":2896},"packages/plugins/plugin-debug/src/components/DebugSpace/index.ts":{"bytesInOutput":37}},"bytes":9441},"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":851},"packages/plugins/plugin-debug/dist/lib/browser/chunk-GSJS3HEM.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true}],"exports":["Container"],"inputs":{"packages/plugins/plugin-debug/src/components/Container.tsx":{"bytesInOutput":351}},"bytes":482},"packages/plugins/plugin-debug/dist/lib/browser/SpaceGenerator-OIDM3MIN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":55968},"packages/plugins/plugin-debug/dist/lib/browser/SpaceGenerator-OIDM3MIN.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sheet/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-sketch/types","kind":"import-statement","external":true},{"path":"@dxos/random","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-table","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts","inputs":{"packages/plugins/plugin-debug/src/components/SpaceGenerator/SpaceGenerator.tsx":{"bytesInOutput":3933},"packages/plugins/plugin-debug/src/components/SpaceGenerator/ObjectGenerator.tsx":{"bytesInOutput":5593},"packages/plugins/plugin-debug/src/components/SpaceGenerator/SchemaTable.tsx":{"bytesInOutput":1192},"packages/plugins/plugin-debug/src/components/SpaceGenerator/presets.ts":{"bytesInOutput":23271},"packages/plugins/plugin-debug/src/components/SpaceGenerator/index.ts":{"bytesInOutput":45}},"bytes":34612},"packages/plugins/plugin-debug/dist/lib/browser/react-surface-YAJPSHG4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":36263},"packages/plugins/plugin-debug/dist/lib/browser/react-surface-YAJPSHG4.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/devtools","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-status-bar","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-debug/dist/lib/browser/DebugApp-LQHFFK3Y.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/DebugSpace-4JHYA7FG.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/SpaceGenerator-OIDM3MIN.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-debug/src/capabilities/react-surface.tsx":{"bytesInOutput":3765},"packages/plugins/plugin-debug/src/components/index.ts":{"bytesInOutput":232},"packages/plugins/plugin-debug/src/components/DebugObjectPanel.tsx":{"bytesInOutput":972},"packages/plugins/plugin-debug/src/components/DebugSettings.tsx":{"bytesInOutput":6175},"packages/plugins/plugin-debug/src/components/DebugStatus.tsx":{"bytesInOutput":4974},"packages/plugins/plugin-debug/src/components/Wireframe.tsx":{"bytesInOutput":1742}},"bytes":18533},"packages/plugins/plugin-debug/dist/lib/browser/settings-OIMSBZUC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1052},"packages/plugins/plugin-debug/dist/lib/browser/settings-OIMSBZUC.mjs":{"imports":[{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-debug/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-debug/src/capabilities/settings.ts":{"bytesInOutput":350}},"bytes":619},"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1372},"packages/plugins/plugin-debug/dist/lib/browser/chunk-P7GHHMDB.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["DebugContext","DebugSettingsSchema"],"inputs":{"packages/plugins/plugin-debug/src/types.ts":{"bytesInOutput":331}},"bytes":472},"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1120},"packages/plugins/plugin-debug/dist/lib/browser/chunk-EF3UVAVI.mjs":{"imports":[],"exports":["DEBUG_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-debug/src/meta.ts":{"bytesInOutput":643}},"bytes":768}}}
@@ -383,7 +383,7 @@ var Wireframe = ({ classNames, label, object }) => {
383
383
  // packages/plugins/plugin-debug/src/components/index.ts
384
384
  var DebugApp = lazy(() => import("./DebugApp-LQHFFK3Y.mjs"));
385
385
  var DebugSpace = lazy(() => import("./DebugSpace-4JHYA7FG.mjs"));
386
- var SpaceGenerator = lazy(() => import("./SpaceGenerator-4VO7E5P2.mjs"));
386
+ var SpaceGenerator = lazy(() => import("./SpaceGenerator-OIDM3MIN.mjs"));
387
387
 
388
388
  // packages/plugins/plugin-debug/src/capabilities/react-surface.tsx
389
389
  var isSpaceDebug = (data) => data.type === `${DEBUG_PLUGIN}/space` && isSpace(data.space);
@@ -481,4 +481,4 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
481
481
  export {
482
482
  react_surface_default as default
483
483
  };
484
- //# sourceMappingURL=react-surface-ZRQ4TPNG.mjs.map
484
+ //# sourceMappingURL=react-surface-YAJPSHG4.mjs.map
@@ -5,7 +5,10 @@ export declare enum PresetName {
5
5
  EMAIL_TABLE = "email-table",
6
6
  GPT_QUEUE = "webhook-gpt-queue",
7
7
  CHAT_GPT = "chat-gpt-text",
8
- EMAIL_WITH_SUMMARY = "email-gptSummary-table"
8
+ EMAIL_WITH_SUMMARY = "email-gptSummary-table",
9
+ OBJECT_CHANGE_QUEUE = "objectChange-queue",
10
+ FOREX_FUNCTION_CALL = "forex-function-call",
11
+ DISCORD_MESSAGES = "discord-messages"
9
12
  }
10
13
  export declare const presets: {
11
14
  schemas: (typeof CanvasBoardType | typeof FunctionTrigger)[];
@@ -1 +1 @@
1
- {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../../src/components/SpaceGenerator/presets.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAe,MAAM,uBAAuB,CAAC;AAiBrE,OAAO,EACL,eAAe,EAKhB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,oBAAY,UAAU;IACpB,WAAW,gBAAgB;IAC3B,SAAS,sBAAsB;IAC/B,QAAQ,kBAAkB;IAC1B,kBAAkB,2BAA2B;CAC9C;AAED,eAAO,MAAM,OAAO;;;;;WAgOb,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE;CAC1C,CAAC"}
1
+ {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../../src/components/SpaceGenerator/presets.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAe,MAAM,uBAAuB,CAAC;AAmBrE,OAAO,EACL,eAAe,EAKhB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,oBAAY,UAAU;IACpB,WAAW,gBAAgB;IAC3B,SAAS,sBAAsB;IAC/B,QAAQ,kBAAkB;IAC1B,kBAAkB,2BAA2B;IAC7C,mBAAmB,uBAAuB;IAC1C,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;CACtC;AAED,eAAO,MAAM,OAAO;;;;;WA8Vb,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE;CAC1C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-debug",
3
- "version": "0.7.5-labs.8a82073",
3
+ "version": "0.7.5-labs.c0e040f",
4
4
  "description": "DXOS Surface plugin for testing.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -32,46 +32,46 @@
32
32
  "react-json-tree": "^0.18.0",
33
33
  "react-resize-detector": "^11.0.1",
34
34
  "workerize-loader": "^2.0.2",
35
- "@dxos/app-framework": "0.7.5-labs.8a82073",
36
- "@dxos/async": "0.7.5-labs.8a82073",
37
- "@dxos/automerge": "0.7.5-labs.8a82073",
38
- "@dxos/compute": "0.7.5-labs.8a82073",
39
- "@dxos/client-services": "0.7.5-labs.8a82073",
40
- "@dxos/conductor": "0.7.5-labs.8a82073",
41
- "@dxos/config": "0.7.5-labs.8a82073",
42
- "@dxos/devtools": "0.7.5-labs.8a82073",
43
- "@dxos/echo-pipeline": "0.7.5-labs.8a82073",
44
- "@dxos/echo-generator": "0.7.5-labs.8a82073",
45
- "@dxos/echo-schema": "0.7.5-labs.8a82073",
46
- "@dxos/functions": "0.7.5-labs.8a82073",
47
- "@dxos/invariant": "0.7.5-labs.8a82073",
48
- "@dxos/keys": "0.7.5-labs.8a82073",
49
- "@dxos/local-storage": "0.7.5-labs.8a82073",
50
- "@dxos/log": "0.7.5-labs.8a82073",
51
- "@dxos/live-object": "0.7.5-labs.8a82073",
52
- "@dxos/plugin-client": "0.7.5-labs.8a82073",
53
- "@dxos/plugin-deck": "0.7.5-labs.8a82073",
54
- "@dxos/plugin-graph": "0.7.5-labs.8a82073",
55
- "@dxos/plugin-sheet": "0.7.5-labs.8a82073",
56
- "@dxos/plugin-sketch": "0.7.5-labs.8a82073",
57
- "@dxos/plugin-markdown": "0.7.5-labs.8a82073",
58
- "@dxos/plugin-space": "0.7.5-labs.8a82073",
59
- "@dxos/plugin-status-bar": "0.7.5-labs.8a82073",
60
- "@dxos/plugin-table": "0.7.5-labs.8a82073",
61
- "@dxos/plugin-theme": "0.7.5-labs.8a82073",
62
- "@dxos/protocols": "0.7.5-labs.8a82073",
63
- "@dxos/random": "0.7.5-labs.8a82073",
64
- "@dxos/react-client": "0.7.5-labs.8a82073",
65
- "@dxos/react-hooks": "0.7.5-labs.8a82073",
66
- "@dxos/react-ui-attention": "0.7.5-labs.8a82073",
67
- "@dxos/react-ui-canvas-editor": "0.7.5-labs.8a82073",
68
- "@dxos/react-ui-canvas-compute": "0.7.5-labs.8a82073",
69
- "@dxos/react-ui-form": "0.7.5-labs.8a82073",
70
- "@dxos/react-ui-stack": "0.7.5-labs.8a82073",
71
- "@dxos/react-ui-syntax-highlighter": "0.7.5-labs.8a82073",
72
- "@dxos/react-ui-table": "0.7.5-labs.8a82073",
73
- "@dxos/schema": "0.7.5-labs.8a82073",
74
- "@dxos/util": "0.7.5-labs.8a82073"
35
+ "@dxos/async": "0.7.5-labs.c0e040f",
36
+ "@dxos/client-services": "0.7.5-labs.c0e040f",
37
+ "@dxos/automerge": "0.7.5-labs.c0e040f",
38
+ "@dxos/conductor": "0.7.5-labs.c0e040f",
39
+ "@dxos/config": "0.7.5-labs.c0e040f",
40
+ "@dxos/compute": "0.7.5-labs.c0e040f",
41
+ "@dxos/app-framework": "0.7.5-labs.c0e040f",
42
+ "@dxos/echo-generator": "0.7.5-labs.c0e040f",
43
+ "@dxos/echo-pipeline": "0.7.5-labs.c0e040f",
44
+ "@dxos/devtools": "0.7.5-labs.c0e040f",
45
+ "@dxos/echo-schema": "0.7.5-labs.c0e040f",
46
+ "@dxos/functions": "0.7.5-labs.c0e040f",
47
+ "@dxos/invariant": "0.7.5-labs.c0e040f",
48
+ "@dxos/keys": "0.7.5-labs.c0e040f",
49
+ "@dxos/live-object": "0.7.5-labs.c0e040f",
50
+ "@dxos/local-storage": "0.7.5-labs.c0e040f",
51
+ "@dxos/log": "0.7.5-labs.c0e040f",
52
+ "@dxos/plugin-client": "0.7.5-labs.c0e040f",
53
+ "@dxos/plugin-deck": "0.7.5-labs.c0e040f",
54
+ "@dxos/plugin-markdown": "0.7.5-labs.c0e040f",
55
+ "@dxos/plugin-graph": "0.7.5-labs.c0e040f",
56
+ "@dxos/plugin-sheet": "0.7.5-labs.c0e040f",
57
+ "@dxos/plugin-space": "0.7.5-labs.c0e040f",
58
+ "@dxos/plugin-sketch": "0.7.5-labs.c0e040f",
59
+ "@dxos/plugin-status-bar": "0.7.5-labs.c0e040f",
60
+ "@dxos/plugin-theme": "0.7.5-labs.c0e040f",
61
+ "@dxos/plugin-table": "0.7.5-labs.c0e040f",
62
+ "@dxos/protocols": "0.7.5-labs.c0e040f",
63
+ "@dxos/random": "0.7.5-labs.c0e040f",
64
+ "@dxos/react-client": "0.7.5-labs.c0e040f",
65
+ "@dxos/react-hooks": "0.7.5-labs.c0e040f",
66
+ "@dxos/react-ui-attention": "0.7.5-labs.c0e040f",
67
+ "@dxos/react-ui-canvas-compute": "0.7.5-labs.c0e040f",
68
+ "@dxos/react-ui-canvas-editor": "0.7.5-labs.c0e040f",
69
+ "@dxos/react-ui-form": "0.7.5-labs.c0e040f",
70
+ "@dxos/react-ui-stack": "0.7.5-labs.c0e040f",
71
+ "@dxos/react-ui-syntax-highlighter": "0.7.5-labs.c0e040f",
72
+ "@dxos/schema": "0.7.5-labs.c0e040f",
73
+ "@dxos/react-ui-table": "0.7.5-labs.c0e040f",
74
+ "@dxos/util": "0.7.5-labs.c0e040f"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@phosphor-icons/react": "^2.1.5",
@@ -81,17 +81,17 @@
81
81
  "react": "~18.2.0",
82
82
  "react-dom": "~18.2.0",
83
83
  "vite": "5.4.7",
84
- "@dxos/react-ui-theme": "0.7.5-labs.8a82073",
85
- "@dxos/storybook-utils": "0.7.5-labs.8a82073",
86
- "@dxos/react-ui": "0.7.5-labs.8a82073"
84
+ "@dxos/react-ui": "0.7.5-labs.c0e040f",
85
+ "@dxos/react-ui-theme": "0.7.5-labs.c0e040f",
86
+ "@dxos/storybook-utils": "0.7.5-labs.c0e040f"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@phosphor-icons/react": "^2.1.5",
90
90
  "react": "~18.2.0",
91
91
  "react-dom": "~18.2.0",
92
- "@dxos/random": "0.7.5-labs.8a82073",
93
- "@dxos/react-ui-theme": "0.7.5-labs.8a82073",
94
- "@dxos/react-ui": "0.7.5-labs.8a82073"
92
+ "@dxos/random": "0.7.5-labs.c0e040f",
93
+ "@dxos/react-ui-theme": "0.7.5-labs.c0e040f",
94
+ "@dxos/react-ui": "0.7.5-labs.c0e040f"
95
95
  },
96
96
  "publishConfig": {
97
97
  "access": "public"
@@ -15,8 +15,10 @@ import {
15
15
  createChat,
16
16
  createComputeGraph,
17
17
  createConstant,
18
+ createFunction,
18
19
  createGpt,
19
20
  createQueue,
21
+ createSurface,
20
22
  createTemplate,
21
23
  createText,
22
24
  createTrigger,
@@ -38,6 +40,9 @@ export enum PresetName {
38
40
  GPT_QUEUE = 'webhook-gpt-queue',
39
41
  CHAT_GPT = 'chat-gpt-text',
40
42
  EMAIL_WITH_SUMMARY = 'email-gptSummary-table',
43
+ OBJECT_CHANGE_QUEUE = 'objectChange-queue',
44
+ FOREX_FUNCTION_CALL = 'forex-function-call',
45
+ DISCORD_MESSAGES = 'discord-messages',
41
46
  }
42
47
 
43
48
  export const presets = {
@@ -60,7 +65,7 @@ export const presets = {
60
65
  const append = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));
61
66
 
62
67
  builder
63
- .createEdge({ source: trigger.id, target: gpt.id, input: 'prompt', output: 'body' })
68
+ .createEdge({ source: trigger.id, target: gpt.id, input: 'prompt', output: 'bodyText' })
64
69
  .createEdge({ source: gpt.id, target: text.id, output: 'text' })
65
70
  .createEdge({ source: queueId.id, target: append.id, input: 'id' })
66
71
  .createEdge({ source: gpt.id, target: append.id, output: 'messages', input: 'items' });
@@ -79,6 +84,66 @@ export const presets = {
79
84
  },
80
85
  ],
81
86
 
87
+ [
88
+ PresetName.OBJECT_CHANGE_QUEUE,
89
+ async (space, n, cb) => {
90
+ const objects = range(n, () => {
91
+ const canvasModel = CanvasGraphModel.create<ComputeShape>();
92
+
93
+ const template = canvasModel.createNode(
94
+ createTemplate({
95
+ valueType: 'object',
96
+ ...rawPosition({ centerX: -64, centerY: -79, width: 320, height: 320 }),
97
+ }),
98
+ );
99
+
100
+ let functionTrigger: FunctionTrigger | undefined;
101
+ canvasModel.builder.call((builder) => {
102
+ const triggerShape = createTrigger({
103
+ triggerKind: TriggerKind.Subscription,
104
+ ...position({ x: -18, y: -2 }),
105
+ });
106
+ const trigger = canvasModel.createNode(triggerShape);
107
+ const { queueId } = setupQueue(canvasModel, {
108
+ queuePosition: { centerX: -80, centerY: 378, width: 320, height: 448 },
109
+ });
110
+ const append = canvasModel.createNode(
111
+ createAppend(rawPosition({ centerX: 320, centerY: 192, width: 128, height: 122 })),
112
+ );
113
+
114
+ builder
115
+ .createEdge({ source: queueId.id, target: append.id, input: 'id' })
116
+ .createEdge({ source: template.id, target: append.id, input: 'items' })
117
+ .createEdge({ source: trigger.id, target: template.id, output: 'type', input: 'type' })
118
+ .createEdge({
119
+ source: trigger.id,
120
+ target: template.id,
121
+ output: 'changedObjectId',
122
+ input: 'changedObjectId',
123
+ });
124
+
125
+ functionTrigger = triggerShape.functionTrigger!.target!;
126
+ const triggerSpec = functionTrigger.spec;
127
+ invariant(triggerSpec && triggerSpec.type === TriggerKind.Subscription, 'No trigger spec.');
128
+ triggerSpec.filter = { type: 'dxn:type:dxos.org/type/Chess' };
129
+ });
130
+
131
+ const computeModel = createComputeGraph(canvasModel);
132
+
133
+ const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);
134
+ invariant(templateComputeNode, 'Template compute node was not created.');
135
+ templateComputeNode.value = ['{', ' "@type": "{{type}}",', ' "id": "{{changedObjectId}}"', '}'].join('\n');
136
+ templateComputeNode.inputSchema = toJsonSchema(S.Struct({ type: S.String, changedObjectId: S.String }));
137
+
138
+ attachTrigger(functionTrigger, computeModel);
139
+
140
+ return addToSpace(PresetName.OBJECT_CHANGE_QUEUE, space, canvasModel, computeModel);
141
+ });
142
+ cb?.(objects);
143
+ return objects;
144
+ },
145
+ ],
146
+
82
147
  [
83
148
  PresetName.EMAIL_TABLE,
84
149
  async (space, n, cb) => {
@@ -264,6 +329,72 @@ export const presets = {
264
329
  return objects;
265
330
  },
266
331
  ],
332
+ [
333
+ PresetName.FOREX_FUNCTION_CALL,
334
+ async (space, n, cb) => {
335
+ const objects = range(n, () => {
336
+ const canvasModel = CanvasGraphModel.create<ComputeShape>();
337
+
338
+ canvasModel.builder.call((builder) => {
339
+ const sourceCurrency = canvasModel.createNode(
340
+ createConstant({ value: 'USD', ...position({ x: -10, y: -5 }) }),
341
+ );
342
+ const targetCurrency = canvasModel.createNode(
343
+ createConstant({ value: 'EUR', ...position({ x: -10, y: 5 }) }),
344
+ );
345
+ const converter = canvasModel.createNode(createFunction(position({ x: 0, y: 0 })));
346
+ const view = canvasModel.createNode(createSurface(position({ x: 12, y: 0 })));
347
+
348
+ builder
349
+ .createEdge({ source: sourceCurrency.id, target: converter.id, input: 'from' })
350
+ .createEdge({ source: targetCurrency.id, target: converter.id, input: 'to' })
351
+ .createEdge({ source: converter.id, target: view.id, output: 'rate' });
352
+ });
353
+
354
+ const computeModel = createComputeGraph(canvasModel);
355
+
356
+ return addToSpace(PresetName.FOREX_FUNCTION_CALL, space, canvasModel, computeModel);
357
+ });
358
+ cb?.(objects);
359
+ return objects;
360
+ },
361
+ ],
362
+ [
363
+ PresetName.DISCORD_MESSAGES,
364
+ async (space, n, cb) => {
365
+ const objects = range(n, () => {
366
+ const canvasModel = CanvasGraphModel.create<ComputeShape>();
367
+
368
+ canvasModel.builder.call((builder) => {
369
+ // DXOS general channel.
370
+ const channelId = canvasModel.createNode(
371
+ createConstant({ value: '837138313172353098', ...position({ x: -10, y: -5 }) }),
372
+ );
373
+ const queueId = canvasModel.createNode(
374
+ createConstant({
375
+ value: new DXN(DXN.kind.QUEUE, ['data', SpaceId.random(), ObjectId.random()]).toString(),
376
+ ...position({ x: -10, y: 5 }),
377
+ }),
378
+ );
379
+ const converter = canvasModel.createNode(createFunction(position({ x: 0, y: 0 })));
380
+ const view = canvasModel.createNode(createText(position({ x: 12, y: 0 })));
381
+ const queue = canvasModel.createNode(createQueue(position({ x: 0, y: 12 })));
382
+
383
+ builder
384
+ .createEdge({ source: queueId.id, target: converter.id, input: 'queueId' })
385
+ .createEdge({ source: channelId.id, target: converter.id, input: 'channelId' })
386
+ .createEdge({ source: converter.id, target: view.id, output: 'newMessages' })
387
+ .createEdge({ source: queueId.id, target: queue.id, input: 'input' });
388
+ });
389
+
390
+ const computeModel = createComputeGraph(canvasModel);
391
+
392
+ return addToSpace(PresetName.DISCORD_MESSAGES, space, canvasModel, computeModel);
393
+ });
394
+ cb?.(objects);
395
+ return objects;
396
+ },
397
+ ],
267
398
  ] as [PresetName, ObjectGenerator<any>][],
268
399
  };
269
400
 
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/SpaceGenerator/SpaceGenerator.tsx", "../../../src/components/SpaceGenerator/ObjectGenerator.tsx", "../../../src/components/SpaceGenerator/SchemaTable.tsx", "../../../src/components/SpaceGenerator/presets.ts", "../../../src/components/SpaceGenerator/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useMemo, useState } from 'react';\n\nimport { ComputeGraph } from '@dxos/conductor';\nimport { type ReactiveObject } from '@dxos/live-object';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { SheetType } from '@dxos/plugin-sheet/types';\nimport { DiagramType } from '@dxos/plugin-sketch/types';\nimport { useClient } from '@dxos/react-client';\nimport { getTypename, type Space } from '@dxos/react-client/echo';\nimport { IconButton, Input, Toolbar, useAsyncEffect } from '@dxos/react-ui';\nimport { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';\nimport { Testing } from '@dxos/schema/testing';\nimport { jsonKeyReplacer, sortKeys } from '@dxos/util';\n\nimport { type ObjectGenerator, createGenerator, staticGenerators } from './ObjectGenerator';\nimport { SchemaTable } from './SchemaTable';\nimport { presets } from './presets';\n\nexport type SpaceGeneratorProps = {\n space: Space;\n onCreateObjects?: (objects: ReactiveObject<any>[]) => void;\n};\n\nexport const SpaceGenerator = ({ space, onCreateObjects }: SpaceGeneratorProps) => {\n const client = useClient();\n const staticTypes = [DocumentType, DiagramType, SheetType, ComputeGraph]; // TODO(burdon): Make extensible.\n const mutableTypes = [Testing.OrgType, Testing.ProjectType, Testing.ContactType, Testing.EmailType];\n const [count, setCount] = useState(1);\n const [info, setInfo] = useState<any>({});\n\n // Create type generators.\n const typeMap = useMemo(() => {\n client.addTypes([...staticTypes, ...presets.schemas]);\n const mutableGenerators = new Map<string, ObjectGenerator<any>>(\n mutableTypes.map((type) => [type.typename, createGenerator(type as any)]),\n );\n\n return new Map([...staticGenerators, ...presets.items, ...mutableGenerators]);\n }, [client, mutableTypes]);\n\n // Query space to get info.\n const updateInfo = async () => {\n // Create schema map.\n const echoSchema = await space.db.schemaRegistry.query().run();\n const staticSchema = space.db.graph.schemaRegistry.schemas;\n\n // Create object map.\n const { objects } = await space.db.query().run();\n const objectMap = sortKeys(\n objects.reduce<Record<string, number>>((map, obj) => {\n const type = getTypename(obj);\n if (type) {\n const count = map[type] ?? 0;\n map[type] = count + 1;\n }\n return map;\n }, {}),\n );\n\n setInfo({\n schema: {\n static: staticSchema.length,\n mutable: echoSchema.length,\n },\n objects: objectMap,\n });\n };\n\n useAsyncEffect(updateInfo, [space]);\n\n const handleCreateData = useCallback(\n async (typename: string) => {\n const constructor = typeMap.get(typename);\n if (constructor) {\n // TODO(burdon): Input to specify number of objects.\n await constructor(space, count, onCreateObjects);\n await updateInfo();\n }\n },\n [typeMap, count],\n );\n\n return (\n <div role='none' className='flex flex-col divide-y divide-separator'>\n <Toolbar.Root classNames='p-1'>\n <IconButton icon='ph--arrow-clockwise--regular' iconOnly label='Refresh' onClick={updateInfo} />\n <Toolbar.Separator variant='gap' />\n <div className='flex'>\n <Input.Root>\n <Input.TextInput\n type='number'\n min={1}\n max={100}\n placeholder={'Count'}\n classNames='w-[80px]'\n value={count}\n onChange={(ev) => setCount(parseInt(ev.target.value))}\n />\n </Input.Root>\n </div>\n </Toolbar.Root>\n\n <SchemaTable types={staticTypes} objects={info.objects} label='Static Types' onClick={handleCreateData} />\n <SchemaTable types={mutableTypes} objects={info.objects} label='Mutable Types' onClick={handleCreateData} />\n <SchemaTable types={presets.types} objects={info.objects} label='Presets' onClick={handleCreateData} />\n\n <SyntaxHighlighter classNames='flex text-xs' language='json'>\n {JSON.stringify({ space, ...info }, jsonKeyReplacer({ truncate: true }), 2)}\n </SyntaxHighlighter>\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { addressToA1Notation } from '@dxos/compute';\nimport { ComputeGraph, ComputeGraphModel, DEFAULT_OUTPUT, NODE_INPUT, NODE_OUTPUT } from '@dxos/conductor';\nimport { ObjectId, type BaseObject, type TypedObject } from '@dxos/echo-schema';\nimport { DXN, SpaceId } from '@dxos/keys';\nimport { create, makeRef, type ReactiveObject } from '@dxos/live-object';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { createSheet } from '@dxos/plugin-sheet/types';\nimport { SheetType, type CellValue } from '@dxos/plugin-sheet/types';\nimport { CanvasType, DiagramType } from '@dxos/plugin-sketch/types';\nimport { faker } from '@dxos/random';\nimport { Filter, type Space } from '@dxos/react-client/echo';\nimport { TableType } from '@dxos/react-ui-table';\nimport { createView, TextType } from '@dxos/schema';\nimport { createAsyncGenerator, type ValueGenerator } from '@dxos/schema/testing';\nimport { range } from '@dxos/util';\n\nconst generator: ValueGenerator = faker as any;\n\n// TODO(burdon): Add objects to collections.\n// TODO(burdon): Create docs.\n// TODO(burdon): Create sketches.\n// TODO(burdon): Create sheets.\n// TODO(burdon): Create comments.\n// TODO(burdon): Reuse in testbench-app.\n// TODO(burdon): Mutator running in background (factor out): from echo-generator.\n\nexport type ObjectGenerator<T extends BaseObject> = (\n space: Space,\n n: number,\n cb?: (objects: ReactiveObject<any>[]) => void,\n) => Promise<ReactiveObject<T>[]>;\n\nexport const staticGenerators = new Map<string, ObjectGenerator<any>>([\n [\n DocumentType.typename,\n async (space, n, cb) => {\n const objects = range(n).map(() => {\n return space.db.add(\n create(DocumentType, {\n name: faker.commerce.productName(),\n content: makeRef(create(TextType, { content: faker.lorem.sentences(5) })),\n threads: [],\n }),\n );\n });\n\n cb?.(objects);\n return objects;\n },\n ],\n [\n DiagramType.typename,\n async (space, n, cb) => {\n const objects = range(n).map(() => {\n // TODO(burdon): Generate diagram.\n const obj = space.db.add(\n create(DiagramType, {\n name: faker.commerce.productName(),\n canvas: makeRef(create(CanvasType, { content: {} })),\n }),\n );\n\n return obj;\n });\n\n cb?.(objects);\n return objects;\n },\n ],\n // TODO(burdon): Create unit tests.\n [\n SheetType.typename,\n async (space, n, cb) => {\n const objects = range(n).map(() => {\n const cells: Record<string, CellValue> = {};\n const year = new Date().getFullYear();\n const cols = 4;\n const rows = 16;\n for (let col = 1; col <= cols; col++) {\n for (let row = 1; row <= rows; row++) {\n const cell = addressToA1Notation({ col, row });\n if (row === 1) {\n cells[cell] = { value: `${year} Q${col}` };\n } else if (row === rows) {\n const from = addressToA1Notation({ col, row: 2 });\n const to = addressToA1Notation({ col, row: rows - 1 });\n cells[cell] = { value: `=SUM(${from}:${to})` };\n } else if (row > 2 && row < rows - 1) {\n cells[cell] = { value: Math.floor(Math.random() * 10_000) };\n }\n }\n }\n\n // TODO(burdon): Set width.\n // TODO(burdon): Set formatting for columns.\n return space.db.add(\n createSheet({\n name: faker.commerce.productName(),\n cells,\n }),\n );\n });\n\n cb?.(objects);\n return objects;\n },\n ],\n [\n ComputeGraph.typename,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const model = ComputeGraphModel.create();\n model.builder\n .createNode({ id: 'gpt-INPUT', type: NODE_INPUT })\n .createNode({ id: 'gpt-GPT', type: 'gpt' })\n .createNode({\n id: 'gpt-QUEUE_ID',\n type: 'constant',\n value: new DXN(DXN.kind.QUEUE, ['data', SpaceId.random(), ObjectId.random()]).toString(),\n })\n .createNode({ id: 'gpt-APPEND', type: 'append' })\n .createNode({ id: 'gpt-OUTPUT', type: NODE_OUTPUT })\n .createEdge({ node: 'gpt-INPUT', property: 'prompt' }, { node: 'gpt-GPT', property: 'prompt' })\n .createEdge({ node: 'gpt-GPT', property: 'text' }, { node: 'gpt-OUTPUT', property: 'text' })\n .createEdge({ node: 'gpt-QUEUE_ID', property: DEFAULT_OUTPUT }, { node: 'gpt-APPEND', property: 'id' })\n .createEdge({ node: 'gpt-GPT', property: 'messages' }, { node: 'gpt-APPEND', property: 'items' })\n .createEdge({ node: 'gpt-QUEUE_ID', property: DEFAULT_OUTPUT }, { node: 'gpt-OUTPUT', property: 'queue' });\n\n return space.db.add(model.root);\n });\n cb?.(objects);\n return objects;\n },\n ],\n]);\n\nexport const createGenerator = <T extends BaseObject>(type: TypedObject<T>): ObjectGenerator<T> => {\n return async (\n space: Space,\n n: number,\n cb?: (objects: ReactiveObject<any>[]) => void,\n ): Promise<ReactiveObject<T>[]> => {\n // Find or create mutable schema.\n const schema =\n (await space.db.schemaRegistry.query({ typename: type.typename }).firstOrUndefined()) ??\n (await space.db.schemaRegistry.register([type]))[0];\n\n // Create objects.\n const generate = createAsyncGenerator(generator, schema.getSchemaSnapshot(), { db: space.db });\n const objects = await generate.createObjects(n);\n\n // Find or create table and view.\n const { objects: tables } = await space.db.query(Filter.schema(TableType)).run();\n const table = tables.find((table) => table.view?.target?.query?.type === type.typename);\n if (!table) {\n const name = type.typename.split('/').pop() ?? type.typename;\n const view = createView({ name, typename: type.typename, jsonSchema: schema.jsonSchema });\n const table = space.db.add(create(TableType, { name, view: makeRef(view) }));\n cb?.([table]);\n }\n\n return objects;\n };\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { IconButton } from '@dxos/react-ui';\n\nexport type SchemaTableProps = {\n types: any[];\n objects?: Record<string, number | undefined>;\n label: string;\n onClick: (typename: string) => void;\n};\n\nexport const SchemaTable = ({ types, objects = {}, label, onClick }: SchemaTableProps) => {\n return (\n <div className='grid grid-cols-[1fr_80px_40px] gap-1 overflow-hidden'>\n <div className='grid grid-cols-subgrid col-span-3'>\n <div className='px-2 text-sm text-primary-500'>{label}</div>\n <div className='px-2 text-xs text-subdued text-right'>count</div>\n </div>\n {types.map((type) => (\n <div key={type.typename} className='grid grid-cols-subgrid col-span-3 items-center'>\n <div className='px-2 text-sm font-mono text-green-500'>{type.typename}</div>\n <div className='px-2 text-right font-mono'>{objects[type.typename] ?? 0}</div>\n <IconButton\n variant='ghost'\n icon='ph--plus--regular'\n iconOnly\n label='Create data'\n onClick={() => onClick(type.typename)}\n />\n </div>\n ))}\n </div>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ComputeGraphModel, EmailTriggerOutput, NODE_INPUT } from '@dxos/conductor';\nimport { AST, ObjectId, S, toJsonSchema } from '@dxos/echo-schema';\nimport { FunctionTrigger, TriggerKind } from '@dxos/functions/types';\nimport { invariant } from '@dxos/invariant';\nimport { DXN, SpaceId } from '@dxos/keys';\nimport { create, makeRef } from '@dxos/live-object';\nimport { Filter, type Space } from '@dxos/react-client/echo';\nimport {\n type ComputeShape,\n createAppend,\n createChat,\n createComputeGraph,\n createConstant,\n createGpt,\n createQueue,\n createTemplate,\n createText,\n createTrigger,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n CanvasBoardType,\n CanvasGraphModel,\n pointMultiply,\n pointsToRect,\n rectToPoints,\n} from '@dxos/react-ui-canvas-editor';\nimport { TableType } from '@dxos/react-ui-table';\nimport { range } from '@dxos/util';\n\nimport { type ObjectGenerator } from './ObjectGenerator';\n\nexport enum PresetName {\n EMAIL_TABLE = 'email-table',\n GPT_QUEUE = 'webhook-gpt-queue',\n CHAT_GPT = 'chat-gpt-text',\n EMAIL_WITH_SUMMARY = 'email-gptSummary-table',\n}\n\nexport const presets = {\n schemas: [CanvasBoardType, FunctionTrigger],\n types: Object.values(PresetName).map((name) => ({ typename: name })),\n items: [\n [\n PresetName.GPT_QUEUE,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const gpt = canvasModel.createNode(createGpt(position({ x: 0, y: -14 })));\n const triggerShape = createTrigger({ triggerKind: TriggerKind.Webhook, ...position({ x: -18, y: -2 }) });\n const trigger = canvasModel.createNode(triggerShape);\n const text = canvasModel.createNode(createText(position({ x: 19, y: 3, width: 10, height: 10 })));\n const { queueId } = setupQueue(canvasModel);\n const append = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));\n\n builder\n .createEdge({ source: trigger.id, target: gpt.id, input: 'prompt', output: 'body' })\n .createEdge({ source: gpt.id, target: text.id, output: 'text' })\n .createEdge({ source: queueId.id, target: append.id, input: 'id' })\n .createEdge({ source: gpt.id, target: append.id, output: 'messages', input: 'items' });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.GPT_QUEUE, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.EMAIL_TABLE,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n const results = space.db.query(Filter.schema(TableType)).runSync();\n const emailTable = results.find((r) => r.object?.view?.target?.query?.type?.endsWith('Email'));\n invariant(emailTable, 'Email table not found.');\n\n const template = canvasModel.createNode(\n createTemplate({\n valueType: 'object',\n ...rawPosition({ centerX: -80, centerY: -64, width: 320, height: 320 }),\n }),\n );\n const templateContent = ['{'];\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const triggerShape = createTrigger({ triggerKind: TriggerKind.Email, ...position({ x: -18, y: -2 }) });\n const trigger = canvasModel.createNode(triggerShape);\n\n const tableId = canvasModel.createNode(\n createConstant({\n value: DXN.fromLocalObjectId(emailTable.id).toString(),\n ...position({ x: -18, y: 5, width: 8, height: 6 }),\n }),\n );\n\n const appendToTable = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));\n\n const properties = AST.getPropertySignatures(EmailTriggerOutput.ast);\n for (let i = 0; i < properties.length; i++) {\n const propName = properties[i].name.toString();\n builder.createEdge({ source: trigger.id, target: template.id, input: propName, output: propName });\n templateContent.push(` \"${propName}\": \"{{${propName}}}\"` + (i === properties.length - 1 ? '' : ','));\n }\n templateContent.push('}');\n\n builder\n .createEdge({ source: tableId.id, target: appendToTable.id, input: 'id' })\n .createEdge({ source: template.id, target: appendToTable.id, input: 'items' });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);\n invariant(templateComputeNode, 'Template compute node was not created.');\n templateComputeNode.value = templateContent.join('\\n');\n templateComputeNode.inputSchema = toJsonSchema(EmailTriggerOutput);\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.EMAIL_TABLE, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.CHAT_GPT,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n canvasModel.builder.call((builder) => {\n const gpt = canvasModel.createNode(createGpt(position({ x: 0, y: -14 })));\n const chat = canvasModel.createNode(createChat(position({ x: -18, y: -2 })));\n const text = canvasModel.createNode(createText(position({ x: 19, y: 3, width: 10, height: 10 })));\n const { queueId } = setupQueue(canvasModel);\n\n const append = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));\n\n builder\n .createEdge({ source: chat.id, target: gpt.id, input: 'prompt' })\n .createEdge({ source: gpt.id, target: text.id, output: 'text' })\n .createEdge({ source: queueId.id, target: append.id, input: 'id' })\n .createEdge({ source: gpt.id, target: append.id, output: 'messages', input: 'items' });\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n return addToSpace(PresetName.CHAT_GPT, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n\n [\n PresetName.EMAIL_WITH_SUMMARY,\n async (space, n, cb) => {\n const objects = range(n, () => {\n const canvasModel = CanvasGraphModel.create<ComputeShape>();\n\n const results = space.db.query(Filter.schema(TableType)).runSync();\n const emailTable = results.find((r) => r.object?.view?.target?.query?.type?.endsWith('Email'));\n invariant(emailTable, 'Email table not found.');\n\n const template = canvasModel.createNode(\n createTemplate({\n valueType: 'object',\n ...rawPosition({ centerX: 192, centerY: -176, width: 320, height: 320 }),\n }),\n );\n const templateContent = ['{'];\n\n let functionTrigger: FunctionTrigger | undefined;\n canvasModel.builder.call((builder) => {\n const gpt = canvasModel.createNode(\n createGpt(rawPosition({ centerX: -400, centerY: -112, width: 256, height: 202 })),\n );\n const systemPrompt = canvasModel.createNode(\n createConstant({\n value: \"use one word to describe content category. don't write anything else\",\n ...rawPosition({ centerX: -800, centerY: -160, width: 192, height: 128 }),\n }),\n );\n const triggerShape = createTrigger({\n triggerKind: TriggerKind.Email,\n ...rawPosition({ centerX: -736, centerY: -384, width: 182, height: 192 }),\n });\n const trigger = canvasModel.createNode(triggerShape);\n\n const { queueId } = setupQueue(canvasModel, {\n idPosition: { centerX: -720, centerY: 224, width: 192, height: 256 },\n queuePosition: { centerX: -144, centerY: 416, width: 320, height: 448 },\n });\n const appendToQueue = canvasModel.createNode(\n createAppend(rawPosition({ centerX: -80, centerY: 96, width: 122, height: 128 })),\n );\n\n const tableId = canvasModel.createNode(\n createConstant({\n value: DXN.fromLocalObjectId(emailTable.id).toString(),\n ...rawPosition({ centerX: -112, centerY: -544, width: 192, height: 256 }),\n }),\n );\n\n const appendToTable = canvasModel.createNode(\n createAppend(rawPosition({ centerX: 560, centerY: -416, width: 128, height: 122 })),\n );\n\n templateContent.push(' \"category\": \"{{text}}\",');\n builder.createEdge({ source: gpt.id, target: template.id, input: 'text', output: 'text' });\n\n const properties = AST.getPropertySignatures(EmailTriggerOutput.ast);\n for (let i = 0; i < properties.length; i++) {\n const propName = properties[i].name.toString();\n builder.createEdge({ source: trigger.id, target: template.id, input: propName, output: propName });\n templateContent.push(` \"${propName}\": \"{{${propName}}}\"` + (i === properties.length - 1 ? '' : ','));\n }\n templateContent.push('}');\n\n builder\n .createEdge({ source: tableId.id, target: appendToTable.id, input: 'id' })\n .createEdge({ source: queueId.id, target: appendToQueue.id, input: 'id' })\n .createEdge({ source: gpt.id, target: appendToQueue.id, output: 'messages', input: 'items' })\n .createEdge({ source: systemPrompt.id, target: gpt.id, input: 'systemPrompt' })\n .createEdge({ source: trigger.id, target: gpt.id, input: 'prompt', output: 'body' })\n .createEdge({ source: template.id, target: appendToTable.id, input: 'items' });\n\n functionTrigger = triggerShape.functionTrigger!.target!;\n });\n\n const computeModel = createComputeGraph(canvasModel);\n\n const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);\n invariant(templateComputeNode, 'Template compute node was not created.');\n templateComputeNode.value = templateContent.join('\\n');\n const extendedSchema = S.extend(EmailTriggerOutput, S.Struct({ text: S.String }));\n templateComputeNode.inputSchema = toJsonSchema(extendedSchema);\n\n attachTrigger(functionTrigger, computeModel);\n\n return addToSpace(PresetName.EMAIL_WITH_SUMMARY, space, canvasModel, computeModel);\n });\n cb?.(objects);\n return objects;\n },\n ],\n ] as [PresetName, ObjectGenerator<any>][],\n};\n\nconst addToSpace = (name: string, space: Space, canvas: CanvasGraphModel, compute: ComputeGraphModel) => {\n return space.db.add(\n create(CanvasBoardType, {\n name,\n computeGraph: makeRef(compute.root),\n layout: canvas.graph,\n }),\n );\n};\n\nconst setupQueue = (\n canvasModel: CanvasGraphModel,\n args?: { idPosition?: RawPositionInput; queuePosition?: RawPositionInput },\n) => {\n const queueId = canvasModel.createNode(\n createConstant({\n value: new DXN(DXN.kind.QUEUE, ['data', SpaceId.random(), ObjectId.random()]).toString(),\n ...(args?.idPosition ? rawPosition(args.idPosition) : position({ x: -18, y: 5, width: 8, height: 6 })),\n }),\n );\n const queue = canvasModel.createNode(\n createQueue(\n args?.queuePosition ? rawPosition(args.queuePosition) : position({ x: -3, y: 3, width: 14, height: 10 }),\n ),\n );\n canvasModel.createEdge({ source: queueId.id, target: queue.id });\n return { queue, queueId };\n};\n\nconst attachTrigger = (functionTrigger: FunctionTrigger | undefined, computeModel: ComputeGraphModel) => {\n invariant(functionTrigger);\n functionTrigger.function = DXN.fromLocalObjectId(computeModel.root.id).toString();\n functionTrigger.meta ??= {};\n const inputNode = computeModel.nodes.find((node) => node.type === NODE_INPUT)!;\n functionTrigger.meta.computeNodeId = inputNode.id;\n};\n\ntype RawPositionInput = { centerX: number; centerY: number; width: number; height: number };\n\nconst rawPosition = (args: RawPositionInput) => {\n return { center: { x: args.centerX, y: args.centerY }, size: { width: args.width, height: args.height } };\n};\n\nconst position = (rect: { x: number; y: number; width?: number; height?: number }) => {\n const snap = 32;\n const [center, size] = rectToPoints({ width: 0, height: 0, ...rect });\n const { x, y, width, height } = pointsToRect([pointMultiply(center, snap), pointMultiply(size, snap)]);\n if (width && height) {\n return { center: { x, y }, size: width && height ? { width, height } : undefined };\n } else {\n return { center: { x, y } };\n }\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { SpaceGenerator } from './SpaceGenerator';\n\nexport default SpaceGenerator;\n"],
5
- "mappings": ";AAIA,OAAOA,UAASC,aAAaC,SAASC,gBAAgB;AAEtD,SAASC,gBAAAA,qBAAoB;AAE7B,SAASC,gBAAAA,qBAAoB;AAC7B,SAASC,aAAAA,kBAAiB;AAC1B,SAASC,eAAAA,oBAAmB;AAC5B,SAASC,iBAAiB;AAC1B,SAASC,mBAA+B;AACxC,SAASC,cAAAA,aAAYC,OAAOC,SAASC,sBAAsB;AAC3D,SAASC,yBAAyB;AAClC,SAASC,eAAe;AACxB,SAASC,iBAAiBC,gBAAgB;;;ACZ1C,SAASC,2BAA2B;AACpC,SAASC,cAAcC,mBAAmBC,gBAAgBC,YAAYC,mBAAmB;AACzF,SAASC,gBAAmD;AAC5D,SAASC,KAAKC,eAAe;AAC7B,SAASC,QAAQC,eAAoC;AACrD,SAASC,oBAAoB;AAC7B,SAASC,mBAAmB;AAC5B,SAASC,iBAAiC;AAC1C,SAASC,YAAYC,mBAAmB;AACxC,SAASC,aAAa;AACtB,SAASC,cAA0B;AACnC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,gBAAgB;AACrC,SAASC,4BAAiD;AAC1D,SAASC,aAAa;AAEtB,IAAMC,YAA4BC;AAgB3B,IAAMC,mBAAmB,oBAA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aAAa;IACbZ,YAAW;IACXa,OAAO5D;IACP6D,UAAU,CAACC,OAAO7D,SAAS8D,SAASD,GAAGE,OAAOJ,KAAK,CAAA;SAM3D,gBAAAnB,OAAA,cAACwB,aAAAA;IAAYC,OAAO7E;IAAaqC,SAASvB,KAAKuB;IAASyB,OAAM;IAAeC,SAASf;MACtF,gBAAAI,OAAA,cAACwB,aAAAA;IAAYC,OAAOxE;IAAcgC,SAASvB,KAAKuB;IAASyB,OAAM;IAAgBC,SAASf;MACxF,gBAAAI,OAAA,cAACwB,aAAAA;IAAYC,OAAO1D,QAAQ0D;IAAOxC,SAASvB,KAAKuB;IAASyB,OAAM;IAAUC,SAASf;MAEnF,gBAAAI,OAAA,cAAC0B,mBAAAA;IAAkBpB,YAAW;IAAeqB,UAAS;KACnDC,KAAKC,UAAU;IAAErF;IAAO,GAAGkB;EAAK,GAAGoE,gBAAgB;IAAEC,UAAU;EAAK,CAAA,GAAI,CAAA,CAAA,CAAA;AAIjF;;;AI7GA,IAAA,yBAAeC;",
6
- "names": ["React", "useCallback", "useMemo", "useState", "ComputeGraph", "DocumentType", "SheetType", "DiagramType", "useClient", "getTypename", "IconButton", "Input", "Toolbar", "useAsyncEffect", "SyntaxHighlighter", "Testing", "jsonKeyReplacer", "sortKeys", "addressToA1Notation", "ComputeGraph", "ComputeGraphModel", "DEFAULT_OUTPUT", "NODE_INPUT", "NODE_OUTPUT", "ObjectId", "DXN", "SpaceId", "create", "makeRef", "DocumentType", "createSheet", "SheetType", "CanvasType", "DiagramType", "faker", "Filter", "TableType", "createView", "TextType", "createAsyncGenerator", "range", "generator", "faker", "staticGenerators", "Map", "DocumentType", "typename", "space", "n", "cb", "objects", "range", "map", "db", "add", "create", "name", "commerce", "productName", "content", "makeRef", "TextType", "lorem", "sentences", "threads", "DiagramType", "obj", "canvas", "CanvasType", "SheetType", "cells", "year", "Date", "getFullYear", "cols", "rows", "col", "row", "cell", "addressToA1Notation", "value", "from", "to", "Math", "floor", "random", "createSheet", "ComputeGraph", "model", "ComputeGraphModel", "builder", "createNode", "id", "type", "NODE_INPUT", "DXN", "kind", "QUEUE", "SpaceId", "ObjectId", "toString", "NODE_OUTPUT", "createEdge", "node", "property", "DEFAULT_OUTPUT", "root", "createGenerator", "schema", "schemaRegistry", "query", "firstOrUndefined", "register", "generate", "createAsyncGenerator", "getSchemaSnapshot", "createObjects", "tables", "Filter", "TableType", "run", "table", "find", "view", "target", "split", "pop", "createView", "jsonSchema", "React", "IconButton", "SchemaTable", "types", "objects", "label", "onClick", "div", "className", "map", "type", "key", "typename", "IconButton", "variant", "icon", "iconOnly", "EmailTriggerOutput", "NODE_INPUT", "AST", "ObjectId", "S", "toJsonSchema", "FunctionTrigger", "TriggerKind", "invariant", "DXN", "SpaceId", "create", "makeRef", "Filter", "createAppend", "createChat", "createComputeGraph", "createConstant", "createGpt", "createQueue", "createTemplate", "createText", "createTrigger", "CanvasBoardType", "CanvasGraphModel", "pointMultiply", "pointsToRect", "rectToPoints", "TableType", "range", "PresetName", "presets", "schemas", "types", "Object", "values", "map", "name", "typename", "items", "space", "n", "cb", "objects", "canvasModel", "functionTrigger", "builder", "call", "gpt", "createNode", "position", "x", "y", "triggerShape", "triggerKind", "Webhook", "trigger", "text", "width", "height", "queueId", "setupQueue", "append", "createEdge", "source", "id", "target", "input", "output", "computeModel", "attachTrigger", "addToSpace", "results", "db", "query", "schema", "runSync", "emailTable", "find", "r", "object", "view", "type", "endsWith", "template", "valueType", "rawPosition", "centerX", "centerY", "templateContent", "Email", "tableId", "value", "fromLocalObjectId", "toString", "appendToTable", "properties", "getPropertySignatures", "ast", "i", "length", "propName", "push", "templateComputeNode", "nodes", "node", "join", "inputSchema", "chat", "systemPrompt", "idPosition", "queuePosition", "appendToQueue", "extendedSchema", "extend", "Struct", "String", "canvas", "compute", "add", "computeGraph", "root", "layout", "graph", "args", "kind", "QUEUE", "random", "queue", "function", "meta", "inputNode", "computeNodeId", "center", "size", "rect", "snap", "undefined", "SpaceGenerator", "space", "onCreateObjects", "client", "useClient", "staticTypes", "DocumentType", "DiagramType", "SheetType", "ComputeGraph", "mutableTypes", "Testing", "OrgType", "ProjectType", "ContactType", "EmailType", "count", "setCount", "useState", "info", "setInfo", "typeMap", "useMemo", "addTypes", "presets", "schemas", "mutableGenerators", "Map", "map", "type", "typename", "createGenerator", "staticGenerators", "items", "updateInfo", "echoSchema", "db", "schemaRegistry", "query", "run", "staticSchema", "graph", "objects", "objectMap", "sortKeys", "reduce", "obj", "getTypename", "schema", "static", "length", "mutable", "useAsyncEffect", "handleCreateData", "useCallback", "constructor", "get", "React", "div", "role", "className", "Toolbar", "Root", "classNames", "IconButton", "icon", "iconOnly", "label", "onClick", "Separator", "variant", "Input", "TextInput", "min", "max", "placeholder", "value", "onChange", "ev", "parseInt", "target", "SchemaTable", "types", "SyntaxHighlighter", "language", "JSON", "stringify", "jsonKeyReplacer", "truncate", "SpaceGenerator"]
7
- }