@schlenkr/ragents 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/server/src/host-api.json +6 -2
- package/apps/server/src/host-api.ts +3 -2
- package/apps/server/src/host-web.ts +3 -0
- package/apps/server/src/plugin-support/actor-programs/contract.ts +0 -3
- package/apps/server/src/plugin-support/removed-layout.ts +94 -0
- package/apps/server/src/ragents/engine.ts +2 -1
- package/apps/server/src/title-compactor.ts +5 -7
- package/apps/web/dist/assets/highlighted-body-KPVGNVTW-k67VKdbw.js +1 -0
- package/apps/web/dist/assets/main-CVjIz7BS.js +674 -0
- package/apps/web/dist/help/guide-clients.html +22 -42
- package/apps/web/dist/help/guide-clients.md +24 -45
- package/apps/web/dist/help/guide-functions.html +1 -1
- package/apps/web/dist/help/guide-functions.md +1 -1
- package/apps/web/dist/help/guide-getting-started.html +14 -22
- package/apps/web/dist/help/guide-getting-started.md +17 -24
- package/apps/web/dist/help/guide-ideas.html +1 -1
- package/apps/web/dist/help/guide-ideas.md +1 -1
- package/apps/web/dist/help/guide-plugins.html +1 -1
- package/apps/web/dist/help/guide-plugins.md +1 -1
- package/apps/web/dist/help/guide-programs.html +1 -1
- package/apps/web/dist/help/guide-programs.md +1 -1
- package/apps/web/dist/help/index.html +12 -79
- package/apps/web/dist/help/mini-app.css +8 -502
- package/apps/web/dist/host-web.json +28 -23
- package/apps/web/dist/index.html +2 -3
- package/apps/web/dist/run-panel.html +3 -4
- package/apps/web/src/Overview.tsx +4 -143
- package/apps/web/src/PluginChat.tsx +22 -116
- package/apps/web/src/PluginRegistry.tsx +4 -9
- package/apps/web/src/RunPreparationChat.tsx +4 -1
- package/apps/web/src/host-modules.ts +2 -0
- package/apps/web/src/main.tsx +23 -3
- package/apps/web/src/panel/RunLine.tsx +5 -2
- package/apps/web/src/panel/RunsPage.tsx +6 -6
- package/apps/web/src/panel/StartPage.tsx +6 -5
- package/apps/web/src/panel/contract.ts +3 -0
- package/apps/web/src/panel/page-props.ts +2 -0
- package/apps/web/src/run-apps.ts +34 -0
- package/apps/web/src/run-overview.ts +0 -27
- package/apps/web/src/run-panel/PanelContributions.tsx +41 -0
- package/apps/web/src/run-panel/RunPanelApp.tsx +172 -91
- package/apps/web/src/run-panel/RunPanelMenu.tsx +4 -3
- package/apps/web/src/run-panel/RunPanelWorkspace.tsx +8 -2
- package/apps/web/src/run-panel/clipboard.ts +17 -14
- package/apps/web/src/run-panel/host-contract.ts +8 -9
- package/apps/web/src/run-panel/host.ts +5 -31
- package/apps/web/src/run-panel/input-bridge.ts +15 -7
- package/bundles/ragents.activity/ragents-bundle.json +2 -2
- package/bundles/ragents.actor-programs/prompt.hbs +4 -5
- package/bundles/ragents.actor-programs/ragents-bundle.json +4 -14
- package/bundles/ragents.actor-programs/server/index.js +2 -14
- package/bundles/ragents.actor-programs/server/index.js.map +2 -2
- package/bundles/ragents.actor-programs/web/classes.json +1 -1
- package/bundles/ragents.actor-programs/web/index.js +1 -3
- package/bundles/ragents.actor-programs/web/index.js.map +4 -4
- package/bundles/ragents.ask/ragents-bundle.json +2 -2
- package/bundles/ragents.browser/ragents-bundle.json +2 -2
- package/bundles/ragents.documents/ragents-bundle.json +2 -2
- package/bundles/ragents.lsp-fsharp/ragents-bundle.json +2 -2
- package/bundles/ragents.lsp-roslyn/ragents-bundle.json +2 -2
- package/bundles/ragents.lsp-typescript/ragents-bundle.json +2 -2
- package/bundles/ragents.model-relay/ragents-bundle.json +2 -2
- package/bundles/ragents.orchestration/ragents-bundle.json +15 -41
- package/bundles/ragents.orchestration/server/index.js +10 -249
- package/bundles/ragents.orchestration/server/index.js.map +4 -4
- package/bundles/ragents.orchestration/web/chunks/chunk-KU7O6MEX.js +2 -0
- package/bundles/ragents.orchestration/web/chunks/chunk-KU7O6MEX.js.map +7 -0
- package/bundles/ragents.orchestration/web/classes.json +1 -1
- package/bundles/ragents.orchestration/web/exports/web/program-slot.js +1 -1
- package/bundles/ragents.orchestration/web/index.js +10 -18
- package/bundles/ragents.orchestration/web/index.js.map +4 -4
- package/bundles/ragents.overseer/ragents-bundle.json +3 -3
- package/bundles/ragents.overseer/server/index.js +0 -1
- package/bundles/ragents.overseer/server/index.js.map +2 -2
- package/bundles/ragents.processes/ragents-bundle.json +2 -2
- package/bundles/ragents.product/ragents-bundle.json +2 -2
- package/bundles/ragents.profile-distribution/ragents-bundle.json +2 -2
- package/bundles/ragents.reference/ragents-bundle.json +3 -3
- package/bundles/ragents.reference/run-scripts/balcony-wizard/RUN.md +1 -1
- package/bundles/ragents.reference/run-scripts/balcony-wizard/src/server.ts +1 -2
- package/bundles/ragents.reference/run-scripts/balcony-wizard/tests/program.test.ts +6 -7
- package/bundles/ragents.reference/run-scripts/conversation-circle/RUN.md +3 -3
- package/bundles/ragents.reference/run-scripts/conversation-circle/src/server.ts +3 -13
- package/bundles/ragents.reference/run-scripts/conversation-circle/tests/helpers.ts +1 -1
- package/bundles/ragents.reference/run-scripts/conversation-circle/tests/program.test.ts +1 -6
- package/bundles/ragents.reference/run-scripts/learning-afternoon/src/server.ts +1 -15
- package/bundles/ragents.reference/run-scripts/learning-afternoon/tests/program.test.ts +1 -1
- package/bundles/ragents.reference/run-scripts/moderated-round/tests/helpers.ts +1 -1
- package/bundles/ragents.reference/run-scripts/quick-note/RUN.md +1 -1
- package/bundles/ragents.reference/run-scripts/quick-note/src/server.ts +1 -2
- package/bundles/ragents.reference/run-scripts/quick-note/tests/program.test.ts +0 -2
- package/bundles/ragents.reference/run-scripts/run-roster/RUN.md +2 -2
- package/bundles/ragents.reference/run-scripts/run-roster/src/server.ts +1 -2
- package/bundles/ragents.reference/run-scripts/run-roster/tests/program.test.ts +0 -2
- package/bundles/ragents.reference/run-scripts/shared-actor-list/src/server.ts +1 -1
- package/bundles/ragents.reference/run-scripts/shared-actor-list/tests/helpers.ts +1 -1
- package/bundles/ragents.reference/run-scripts/word-game/src/contract.ts +1 -1
- package/bundles/ragents.reference/run-scripts/word-game/src/server.ts +0 -1
- package/bundles/ragents.reference/run-scripts/word-game/tests/program.test.ts +1 -2
- package/bundles/ragents.reference/skills/80-actor-text-analysis/SKILL.md +1 -1
- package/bundles/ragents.reference/skills/90-actor-notes/SKILL.md +1 -1
- package/bundles/ragents.todo/ragents-bundle.json +2 -2
- package/bundles/ragents.transcript/ragents-bundle.json +2 -2
- package/bundles/ragents.watch/ragents-bundle.json +2 -2
- package/bundles/ragents.workspace/ragents-bundle.json +2 -2
- package/package.json +8 -8
- package/packages/agent/dist/core/agent-settings.d.ts +1 -1
- package/packages/ai/dist/types.d.ts +2 -1
- package/packages/ragents/src/runtime/journal.ts +4 -0
- package/plugins/ragents.actor-programs/prompt.hbs +4 -5
- package/plugins/ragents.actor-programs/server/access-projections.ts +1 -1
- package/plugins/ragents.actor-programs/server/index.ts +0 -2
- package/plugins/ragents.actor-programs/server/runtime.ts +2 -10
- package/plugins/ragents.actor-programs/web/ActorViewFrame.tsx +5 -20
- package/plugins/ragents.actor-programs/web/AppsPanel.tsx +3 -79
- package/plugins/ragents.actor-programs/web/EmbeddedApps.tsx +0 -9
- package/plugins/ragents.actor-programs/web/api.ts +0 -20
- package/plugins/ragents.actor-programs/web/context.ts +0 -3
- package/plugins/ragents.actor-programs/web/index.tsx +0 -9
- package/plugins/ragents.orchestration/ragents-plugin.json +1 -2
- package/plugins/ragents.orchestration/server/index.ts +1 -11
- package/plugins/ragents.orchestration/web/ActorChat.tsx +1 -1
- package/plugins/ragents.orchestration/web/ActorChatControls.tsx +1 -1
- package/plugins/ragents.orchestration/web/FlowInspector.tsx +2 -4
- package/plugins/ragents.orchestration/web/InspectionPanel.tsx +21 -0
- package/plugins/ragents.orchestration/web/index.tsx +13 -9
- package/plugins/ragents.orchestration/web/program-slot.ts +0 -3
- package/plugins/ragents.orchestration/web/run-panel/AddresseeControl.tsx +15 -36
- package/plugins/ragents.orchestration/web/run-panel/RunPanel.tsx +76 -451
- package/plugins/ragents.orchestration/web/run-panel/run-panel-actors.ts +0 -27
- package/plugins/ragents.orchestration/web/run-panel/run-panel-state.ts +7 -40
- package/plugins/ragents.overseer/server/coordinator-prompt.ts +0 -1
- package/plugins/ragents.reference/examples.ts +1 -2
- package/plugins/ragents.reference/run-scripts/balcony-wizard/RUN.md +1 -1
- package/plugins/ragents.reference/run-scripts/balcony-wizard/src/server.ts +1 -2
- package/plugins/ragents.reference/run-scripts/balcony-wizard/tests/program.test.ts +6 -7
- package/plugins/ragents.reference/run-scripts/conversation-circle/RUN.md +3 -3
- package/plugins/ragents.reference/run-scripts/conversation-circle/src/server.ts +3 -13
- package/plugins/ragents.reference/run-scripts/conversation-circle/tests/helpers.ts +1 -1
- package/plugins/ragents.reference/run-scripts/conversation-circle/tests/program.test.ts +1 -6
- package/plugins/ragents.reference/run-scripts/learning-afternoon/src/server.ts +1 -15
- package/plugins/ragents.reference/run-scripts/learning-afternoon/tests/program.test.ts +1 -1
- package/plugins/ragents.reference/run-scripts/moderated-round/tests/helpers.ts +1 -1
- package/plugins/ragents.reference/run-scripts/quick-note/RUN.md +1 -1
- package/plugins/ragents.reference/run-scripts/quick-note/src/server.ts +1 -2
- package/plugins/ragents.reference/run-scripts/quick-note/tests/program.test.ts +0 -2
- package/plugins/ragents.reference/run-scripts/run-roster/RUN.md +2 -2
- package/plugins/ragents.reference/run-scripts/run-roster/src/server.ts +1 -2
- package/plugins/ragents.reference/run-scripts/run-roster/tests/program.test.ts +0 -2
- package/plugins/ragents.reference/run-scripts/shared-actor-list/src/server.ts +1 -1
- package/plugins/ragents.reference/run-scripts/shared-actor-list/tests/helpers.ts +1 -1
- package/plugins/ragents.reference/run-scripts/word-game/src/contract.ts +1 -1
- package/plugins/ragents.reference/run-scripts/word-game/src/server.ts +0 -1
- package/plugins/ragents.reference/run-scripts/word-game/tests/program.test.ts +1 -2
- package/plugins/ragents.reference/skills/80-actor-text-analysis/SKILL.md +1 -1
- package/plugins/ragents.reference/skills/90-actor-notes/SKILL.md +1 -1
- package/plugins/ragents.reference/walkthroughs.ts +13 -14
- package/apps/web/dist/assets/highlighted-body-KPVGNVTW-BwD4uYEe.js +0 -1
- package/apps/web/dist/assets/main-KBrc5Q77.js +0 -11
- package/apps/web/dist/assets/mermaid-HWGCJPDP-CSCkaArr.js +0 -608
- package/apps/web/dist/assets/runPanel-BjG5NBKm.js +0 -26
- package/apps/web/src/App.tsx +0 -318
- package/apps/web/src/SessionList.tsx +0 -157
- package/apps/web/src/SurfaceShortcuts.tsx +0 -60
- package/apps/web/src/WorkspacePanel.tsx +0 -309
- package/apps/web/src/run-panel.tsx +0 -52
- package/bundles/ragents.orchestration/server/chunks/chunk-QS3WJ3D7.js +0 -11
- package/bundles/ragents.orchestration/server/chunks/chunk-QS3WJ3D7.js.map +0 -7
- package/bundles/ragents.orchestration/server/exports/server/contract.js +0 -9
- package/bundles/ragents.orchestration/server/exports/server/contract.js.map +0 -7
- package/bundles/ragents.orchestration/surface.hbs +0 -39
- package/bundles/ragents.orchestration/web/chunks/chunk-CFMJD5ZI.js +0 -2
- package/bundles/ragents.orchestration/web/chunks/chunk-CFMJD5ZI.js.map +0 -7
- package/bundles/ragents.orchestration/web/chunks/chunk-HOBLI364.js +0 -2
- package/bundles/ragents.orchestration/web/chunks/chunk-HOBLI364.js.map +0 -7
- package/bundles/ragents.orchestration/web/chunks/chunk-UCIMT2R4.js +0 -2
- package/bundles/ragents.orchestration/web/chunks/chunk-UCIMT2R4.js.map +0 -7
- package/bundles/ragents.orchestration/web/chunks/chunk-XGPPQCZR.js +0 -2
- package/bundles/ragents.orchestration/web/chunks/chunk-XGPPQCZR.js.map +0 -7
- package/bundles/ragents.orchestration/web/exports/web/surface-entities.js +0 -2
- package/bundles/ragents.orchestration/web/exports/web/surface-entities.js.map +0 -7
- package/bundles/ragents.orchestration/web/exports/web/tile-docking.js +0 -2
- package/bundles/ragents.orchestration/web/exports/web/tile-docking.js.map +0 -7
- package/plugins/ragents.actor-programs/web/ExpandIcon.tsx +0 -5
- package/plugins/ragents.actor-programs/web/FullscreenHost.tsx +0 -31
- package/plugins/ragents.orchestration/contract.ts +0 -51
- package/plugins/ragents.orchestration/server/contract.ts +0 -14
- package/plugins/ragents.orchestration/server/surface-tool.ts +0 -198
- package/plugins/ragents.orchestration/surface.hbs +0 -39
- package/plugins/ragents.orchestration/tiled-layout.ts +0 -55
- package/plugins/ragents.orchestration/web/ActorChatPreview.tsx +0 -29
- package/plugins/ragents.orchestration/web/ActorShortcut.tsx +0 -74
- package/plugins/ragents.orchestration/web/ActorSurfaceControls.tsx +0 -130
- package/plugins/ragents.orchestration/web/ActorTile.tsx +0 -23
- package/plugins/ragents.orchestration/web/Center.tsx +0 -133
- package/plugins/ragents.orchestration/web/SurfaceTiles.tsx +0 -47
- package/plugins/ragents.orchestration/web/TiledSurface.tsx +0 -280
- package/plugins/ragents.orchestration/web/actor-header-settings.ts +0 -41
- package/plugins/ragents.orchestration/web/run-panel/RunPanelSettings.tsx +0 -50
- package/plugins/ragents.orchestration/web/run-panel/run-panel-settings.ts +0 -47
- package/plugins/ragents.orchestration/web/run-panel/sheet-status.ts +0 -30
- package/plugins/ragents.orchestration/web/surface-entities.ts +0 -21
- package/plugins/ragents.orchestration/web/surface-view-settings.ts +0 -42
- package/plugins/ragents.orchestration/web/tile-docking.ts +0 -105
- package/plugins/ragents.orchestration/web/tiled-view-settings.ts +0 -74
- /package/apps/web/dist/assets/{mermaid-HWGCJPDP-BPn4aV2r.css → main-BPn4aV2r.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../plugins/ragents.orchestration/server/index.ts", "../../../plugins/ragents.orchestration/server/
|
|
4
|
-
"sourcesContent": ["import {\n actorInputSchema,\n agentTools,\n enqueueActorInput,\n eventResultSchemaOf,\n ScriptDriver,\n type ActorInputRequest,\n type RAgentsPlugin,\n} from \"@ragents/engine\";\nimport { runtimeProviderToken } from \"@ragents/host/ragents/host-services.js\";\nimport { pluginAsset } from \"@ragents/host/plugin-support/plugin-folder.js\";\nimport type { PluginModule } from \"@ragents/host/plugin-support/plugin-module.js\";\nimport { boundToTools, handlebarsPrompt } from \"@ragents/host/plugin-support/prompt.js\";\nimport { createSurfaceToolContributor, placeOnSurface } from \"./surface-tool.js\";\nimport { surfacePlacementToken } from \"./contract.js\";\nimport { createRunStopContributor } from \"./run-stop-tool.js\";\nimport { runManagementToken } from \"@ragents/host/ragents/global-chat.js\";\n\nconst orchestrationPlugin: RAgentsPlugin = {\n manifest: { id: \"ragents.orchestration\" },\n register: (host) => {\n host.functions(createSurfaceToolContributor());\n host.provide(surfacePlacementToken, placeOnSurface(host.service(runtimeProviderToken)));\n host.functions(createRunStopContributor(\n (runId) => host.service(runManagementToken)().stop(runId),\n (error) => console.error(\"Run stop by the coordinator failed\", error),\n ));\n host.operations({\n id: \"actor_input\",\n label: \"Enqueue actor input\",\n description: \"Enqueues a normal text input for an actor under the bound identity - \"\n + \"as an agent or, from an app action, as the owner of the run. Only confirms the enqueueing. TypeScript actors understand only their programmed input protocol, no free-form tasks.\",\n schema: actorInputSchema,\n resultSchema: eventResultSchemaOf(\"actor.input.enqueued\"),\n operator: \"direct\",\n execute: (context, input) =>\n enqueueActorInput(host.service(runtimeProviderToken)(), {\n actorId: context.principal.actorId,\n commandId: context.invocationId,\n ...(context.principal.kind === \"agent\" && context.principal.turnId\n ? { turnId: context.principal.turnId }\n : {}),\n correlationId: context.invocationId,\n causationId: context.invocationId,\n }, context.runId, input as ActorInputRequest),\n });\n host.script({\n id: \"typescript\",\n create: (context) => ({\n driver: new ScriptDriver({ runtime: context.runtime }),\n }),\n });\n host.prompts(\n handlebarsPrompt(\"ragents.orchestration.prompt\", 600, pluginAsset(\"ragents.orchestration\", \"orchestration.hbs\")),\n boundToTools(\n handlebarsPrompt(\"ragents.orchestration.surface\", 650, pluginAsset(\"ragents.orchestration\", \"surface.hbs\")),\n \"canvas_layout_replace\",\n \"canvas_layout_place\",\n ),\n );\n },\n};\n\nexport const plugin: PluginModule = { create: () => orchestrationPlugin };\n", "import { Type } from \"typebox\";\nimport {\n DomainError,\n actorByHandle,\n defineRunFunction,\n defineToolAvailability,\n holdsUsable,\n type CommandContext,\n type Orchestration,\n type RunFunction,\n type RunView,\n type ToolContributor,\n} from \"@ragents/engine\";\nimport { toolDescriptorFrom } from \"@ragents/host/plugin-support/agent-tool.js\";\nimport { ACTOR_PROGRAMS_STATE_ID, resolveActorView, type ActorProgramState } from \"@ragents/host/plugin-support/actor-programs/contract.js\";\nimport {\n ORCHESTRATION_PLUGIN_ID,\n surfaceEntityOf,\n surfaceLayoutOf,\n type SurfaceLayout,\n} from \"../contract.js\";\nimport { surfaceTileEntities, mapSurfaceTileEntities } from \"../tiled-layout.js\";\nimport type { SurfacePlacement, SurfacePlacementRequest } from \"./contract.js\";\n\nexport const surfaceToolMetadata = {\n name: \"canvas_layout_replace\",\n label: \"Replace Surface Layout\",\n description: \"Arrange actors and mini-apps as tiles on the viewport-filling work surface, using a binary tree of weighted splits.\",\n longDescription: \"root is the whole arrangement and replaces the stored one. A tile is {entity:'@helper'} or \"\n + \"{entity:'app:@workspace/main'}; a split is {direction:'horizontal',weights:[1,1],children:[tile,tile]}. \"\n + \"horizontal means left/right, vertical means top/bottom, and weights give the ratio of the two children. \"\n + \"App left, chat right at 50:50: {root:{direction:'horizontal',weights:[1,1],children:[\"\n + \"{entity:'app:@workspace/main'},{entity:'@helper'}]}}. One tile above two tiles at 2:1: \"\n + \"{root:{direction:'vertical',weights:[2,1],children:[{entity:'@lead'},\"\n + \"{direction:'horizontal',weights:[1,1],children:[{entity:'@first'},{entity:'@second'}]}]}}. \"\n + \"root:null clears the surface. Dividers are draggable, so do not resend a layout to fight a personal arrangement. \"\n + \"Participants you do not place stay reachable through the run header.\",\n} as const;\n\nexport const placeToolMetadata = {\n name: \"canvas_layout_place\",\n label: \"Place on Surface\",\n description: \"Place one actor or mini-app next to the current surface layout instead of replacing it.\",\n longDescription: \"entity is {entity} of a tile: '@helper' or 'app:@workspace/main'. The current arrangement becomes one side of a new split \"\n + \"and the entity the other: direction 'horizontal' (default) puts it to the right, 'vertical' below. weight is its share against \"\n + \"the existing arrangement's weight 1, default 1. An entity the layout already shows stays where it is; placed is then false. \"\n + \"On an empty surface the entity becomes the only tile. Use it when you join a running run, such as a run script started with \"\n + \"start.embedded, so that the tiles others arranged stay.\",\n} as const;\n\nexport const canDesignSurface = defineToolAvailability({\n availability: \"conditional\",\n availabilityDetail: \"Only for agents and TypeScript actors with the capability plugin.state.write.\",\n requiredCapabilities: [\"plugin.state.write\"],\n}, (actor) => actor.kind !== \"human\" && holdsUsable(actor, \"plugin.state.write\"));\n\nconst tileSchema = Type.Cyclic({\n SurfaceTile: Type.Union([\n Type.Object({\n entity: Type.String({ minLength: 1, description: \"Actor @handle or activated mini-app app:@handle/view-key or app:program-name/view-key; the server resolves the view ID\" }),\n chatInput: Type.Optional(Type.Boolean({ description: \"Actor tiles only: false hides the chat composer in the tile; default true. Does not change permissions or the inspector\" })),\n }, { additionalProperties: false }),\n Type.Object({\n direction: Type.Union([Type.Literal(\"horizontal\"), Type.Literal(\"vertical\")]),\n weights: Type.Tuple([Type.Number({ exclusiveMinimum: 0 }), Type.Number({ exclusiveMinimum: 0 })]),\n children: Type.Tuple([Type.Ref(\"SurfaceTile\"), Type.Ref(\"SurfaceTile\")]),\n }, { additionalProperties: false }),\n ]),\n}, \"SurfaceTile\");\n\nconst surfaceLayoutSchema = Type.Object({\n root: Type.Union([tileSchema, Type.Null()], { description: \"The whole arrangement: a tile or a binary split. Maximum 64 unique tiles and 16 nested splits. null clears the surface\" }),\n});\n\nconst invalid = (message: string) => new DomainError(\"invalid-surface-layout\", message, 400);\n\nconst parsedLayout = (input: unknown): SurfaceLayout => {\n try {\n return surfaceLayoutOf(input);\n } catch (caught) {\n throw invalid(caught instanceof Error ? caught.message : String(caught));\n }\n};\n\nconst isStopped = (actor: RunView[\"actors\"][number]) => actor.kind !== \"human\" && actor.lifecycle.kind === \"stopped\";\n\nconst surfaceActorOf = (view: RunView, reference: string, where: string) => {\n const entity = surfaceEntityOf(reference);\n if (entity.kind !== \"actor\") throw invalid(`${where}: ${reference} is not an actor`);\n const handle = entity.handle;\n const found = actorByHandle(view.actors, handle);\n if (!found) {\n const known = view.actors.filter((actor) => actor.kind !== \"human\").map((actor) => `@${actor.handle}`);\n throw invalid(`${where}: @${handle} is not an actor of this run. Present: ${known.join(\", \") || \"none\"}`);\n }\n if (found.kind === \"human\") {\n throw invalid(`${where}: @${handle} is the human in the chat; the chat is fixed to the left of the surface`);\n }\n return found;\n};\n\nconst isActorReference = (reference: string) => surfaceEntityOf(reference).kind === \"actor\";\n\nconst resolveAppReferences = (view: RunView, layout: SurfaceLayout): SurfaceLayout => {\n const programs = view.pluginStates.flatMap((entry) => {\n if (entry.pluginId !== ACTOR_PROGRAMS_STATE_ID || entry.scope.kind !== \"actor\") return [];\n const actorId = entry.scope.actorId;\n const actor = view.actors.find((candidate) => candidate.id === actorId);\n if (!actor || actor.kind === \"human\" || isStopped(actor)) return [];\n const { program } = entry.state as unknown as ActorProgramState;\n return program ? [program] : [];\n });\n const resolve = (reference: string, where: string): string => {\n const entity = surfaceEntityOf(reference);\n if (entity.kind !== \"app\") return reference;\n try {\n return `app:${resolveActorView(programs, entity.id).view.id}`;\n } catch (error) {\n throw invalid(`${where}: ${reference}: ${error instanceof Error ? error.message : String(error)} Surface entities get the prefix app:.`);\n }\n };\n return parsedLayout({ root: layout.root ? mapSurfaceTileEntities(layout.root, (entity) => resolve(entity, \"root\")) : null });\n};\n\n/** Resolve app names and validate the placed actors before any layout is stored. */\nexport const checkLayoutAgainstRun = (view: RunView, input: SurfaceLayout): SurfaceLayout => {\n const layout = resolveAppReferences(view, input);\n for (const reference of surfaceTileEntities(layout.root)) {\n if (isActorReference(reference)) surfaceActorOf(view, reference, \"root\");\n }\n return layout;\n};\n\nconst currentLayout = (view: RunView): SurfaceLayout => {\n const state = view.pluginStates.find((entry) => entry.pluginId === ORCHESTRATION_PLUGIN_ID && entry.scope.kind === \"run\")?.state;\n return state === undefined || state === null ? { root: null } : surfaceLayoutOf(state);\n};\n\n/** Splits the root once: the existing arrangement keeps weight 1, the placed tile gets its own. */\nconst placed = (view: RunView, request: SurfacePlacementRequest): SurfaceLayout | undefined => {\n const current = currentLayout(view);\n const [tile] = surfaceTileEntities(checkLayoutAgainstRun(view, parsedLayout({ root: { entity: request.entity } })).root);\n if (surfaceTileEntities(current.root).includes(tile!)) return undefined;\n const root = current.root === null ? { entity: tile! } : {\n direction: request.direction ?? \"horizontal\",\n weights: [1, request.weight ?? 1],\n children: [current.root, { entity: tile! }],\n };\n return parsedLayout({ root });\n};\n\nexport const placeOnSurface = (runtime: () => Orchestration): SurfacePlacement => ({\n place: (context: CommandContext, runId: string, request: SurfacePlacementRequest) => {\n const layout = placed(runtime().view(runId), request);\n if (!layout) return { placed: false };\n runtime().replacePluginState(context, runId, { pluginId: ORCHESTRATION_PLUGIN_ID, scope: { kind: \"run\" }, state: layout });\n return { placed: true };\n },\n});\n\nconst placeSchema = Type.Object({\n entity: Type.String({ minLength: 1, description: \"Actor @handle or activated mini-app app:@handle/view-key or app:program-name/view-key\" }),\n direction: Type.Optional(Type.Union([Type.Literal(\"horizontal\"), Type.Literal(\"vertical\")], { description: \"horizontal: to the right of the current layout (default); vertical: below it\" })),\n weight: Type.Optional(Type.Number({ exclusiveMinimum: 0, description: \"Share of the placed tile against the existing arrangement's weight 1; default 1\" })),\n}, { additionalProperties: false });\n\nexport const createPlaceTool = (): RunFunction =>\n defineRunFunction({\n ...placeToolMetadata,\n schema: placeSchema,\n resultSchema: Type.Object({ placed: Type.Boolean() }, { additionalProperties: false }),\n available: canDesignSurface,\n run: ({ runtime, caller, context }, toolCallId, input) => placeOnSurface(() => runtime).place(context(toolCallId), caller.runId, input),\n });\n\nexport const createSurfaceTool = (): RunFunction =>\n defineRunFunction({\n ...surfaceToolMetadata,\n schema: surfaceLayoutSchema,\n resultSchema: Type.Null(),\n available: canDesignSurface,\n run: ({ runtime, caller, context }, toolCallId, input) => {\n const view = runtime.view(caller.runId);\n const layout = checkLayoutAgainstRun(view, parsedLayout(input));\n runtime.replacePluginState(context(toolCallId), caller.runId, {\n pluginId: ORCHESTRATION_PLUGIN_ID,\n scope: { kind: \"run\" },\n state: layout,\n });\n return null;\n },\n });\n\nexport const createSurfaceToolContributor = (): ToolContributor => ({\n name: \"ragents.orchestration.surface\",\n descriptors: [toolDescriptorFrom(surfaceToolMetadata, canDesignSurface), toolDescriptorFrom(placeToolMetadata, canDesignSurface)],\n tools: () => [createSurfaceTool(), createPlaceTool()],\n});\n", "import { handleKey } from \"@ragents/engine/src/http/contracts\";\nimport { surfaceTileNodeOf } from \"./tiled-layout.js\";\n\nexport const ORCHESTRATION_PLUGIN_ID = \"ragents.orchestration\";\n\nexport type SurfaceEntity =\n | { kind: \"actor\"; handle: string }\n | { kind: \"app\"; id: string };\n\nexport type SurfaceTileNode =\n | { entity: string; chatInput?: boolean }\n | { direction: \"horizontal\" | \"vertical\"; weights: [number, number]; children: [SurfaceTileNode, SurfaceTileNode] };\n\nexport type SurfaceLayout = {\n root: SurfaceTileNode | null;\n};\n\nconst isRecord = (value: unknown): value is Record<string, unknown> => typeof value === \"object\" && value !== null && !Array.isArray(value);\n\nexport const surfaceEntityOf = (text: string): SurfaceEntity => {\n const trimmed = text.trim();\n if (trimmed.startsWith(\"@\")) {\n const handle = handleKey(trimmed);\n if (!handle || /\\s/.test(handle)) throw new Error(`Entity ${JSON.stringify(text)}: a handle is missing after the @`);\n return { kind: \"actor\", handle };\n }\n const match = /^app:(.+)$/s.exec(trimmed);\n if (!match) {\n throw new Error(`Entity ${JSON.stringify(text)}: expected @handle or app:<id>`);\n }\n const id = match[1].trim();\n if (!id) throw new Error(`Entity ${JSON.stringify(text)}: the ID after the colon is empty`);\n return { kind: \"app\", id };\n};\n\nexport const surfaceEntityKey = (entity: SurfaceEntity): string =>\n entity.kind === \"actor\" ? `@${entity.handle}` : `app:${entity.id}`;\n\nconst LEGACY_KEYS = [\"nodes\", \"shapes\", \"lines\", \"mode\"] as const;\n\n/** Parses and validates a tile layout; throws an error naming the first violation. */\nexport const surfaceLayoutOf = (value: unknown): SurfaceLayout => {\n if (!isRecord(value)) throw new Error(\"The arrangement must be an object with root\");\n const legacy = LEGACY_KEYS.filter((key) => key in value);\n if (legacy.length > 0) {\n throw new Error(`The program arrangement comes from the removed free surface (${legacy.join(\", \")}); `\n + \"canvas_layout_replace with root sets it anew as a tile layout\");\n }\n if (!(\"root\" in value)) throw new Error(\"root is missing; expected a tile, a split or null\");\n return { root: value.root === null ? null : surfaceTileNodeOf(value.root) };\n};\n", "import { surfaceEntityKey, surfaceEntityOf, type SurfaceTileNode } from \"./contract.js\";\n\nexport type { SurfaceTileNode } from \"./contract.js\";\n\nexport const MAX_SURFACE_TILE_DEPTH = 16;\nexport const MAX_SURFACE_TILES = 64;\n\nexport const surfaceTileNodeOf = (input: unknown): SurfaceTileNode => {\n const entities = new Set<string>();\n const parse = (value: unknown, where: string, depth: number): SurfaceTileNode => {\n if (depth > MAX_SURFACE_TILE_DEPTH) throw new Error(`${where}: at most ${MAX_SURFACE_TILE_DEPTH} nested splits are allowed`);\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) throw new Error(`${where} must be a tile or a split`);\n const node = value as Record<string, unknown>;\n if (Object.hasOwn(node, \"entity\")) {\n if (Object.keys(node).some((key) => key !== \"entity\" && key !== \"chatInput\")) throw new Error(`${where}: a tile carries only entity and chatInput; a split direction, weights and children`);\n if (typeof node.entity !== \"string\") throw new Error(`${where}.entity must be @handle or app:<name>/<view>`);\n const entity = surfaceEntityOf(node.entity);\n const key = surfaceEntityKey(entity);\n if (node.chatInput !== undefined && (entity.kind !== \"actor\" || typeof node.chatInput !== \"boolean\")) {\n throw new Error(`${where}.chatInput is only allowed for actors, as a boolean`);\n }\n if (entities.has(key)) throw new Error(`${where}: ${key} is placed as a tile more than once`);\n entities.add(key);\n if (entities.size > MAX_SURFACE_TILES) throw new Error(`At most ${MAX_SURFACE_TILES} tiles are allowed`);\n return node.chatInput === undefined ? { entity: key } : { entity: key, chatInput: node.chatInput as boolean };\n }\n if (Object.keys(node).some((key) => ![\"direction\", \"weights\", \"children\"].includes(key))) throw new Error(`${where}: a split carries only direction, weights and children`);\n if (node.direction !== \"horizontal\" && node.direction !== \"vertical\") throw new Error(`${where}.direction must be horizontal or vertical`);\n if (!Array.isArray(node.weights) || node.weights.length !== 2 || node.weights.some((weight) => typeof weight !== \"number\" || !Number.isFinite(weight) || weight <= 0)) {\n throw new Error(`${where}.weights must contain exactly two finite positive numbers`);\n }\n if (!Array.isArray(node.children) || node.children.length !== 2) throw new Error(`${where}.children must contain exactly two tiles or splits`);\n return {\n direction: node.direction,\n weights: [node.weights[0], node.weights[1]],\n children: [parse(node.children[0], `${where}.children[0]`, depth + 1), parse(node.children[1], `${where}.children[1]`, depth + 1)],\n };\n };\n return parse(input, \"root\", 0);\n};\n\n/** A tile hides the chat composer of its actor only when its leaf says chatInput: false. */\nexport const surfaceTileChatInput = (root: SurfaceTileNode | null | undefined, entity: string): boolean =>\n !root ? true : \"entity\" in root\n ? root.entity !== entity || root.chatInput !== false\n : surfaceTileChatInput(root.children[0], entity) && surfaceTileChatInput(root.children[1], entity);\n\nexport const surfaceTileEntities = (root: SurfaceTileNode | null | undefined): string[] =>\n !root ? [] : \"entity\" in root ? [root.entity] : root.children.flatMap(surfaceTileEntities);\n\nexport const mapSurfaceTileEntities = (root: SurfaceTileNode, resolve: (entity: string) => string): SurfaceTileNode =>\n \"entity\" in root ? { ...root, entity: resolve(root.entity) } : {\n ...root,\n children: [mapSurfaceTileEntities(root.children[0], resolve), mapSurfaceTileEntities(root.children[1], resolve)],\n };\n", "import { Type } from \"typebox\";\nimport { defineRunFunction, defineToolAvailability, holdsUsable, type ToolContributor } from \"@ragents/engine\";\nimport { toolDescriptorFrom } from \"@ragents/host/plugin-support/agent-tool.js\";\n\nconst available = defineToolAvailability({\n availability: \"conditional\",\n availabilityDetail: \"For the primary actor with execution.stopOwned in its own run.\",\n requiredCapabilities: [\"execution.stopOwned\"],\n}, (actor, view) => actor.kind !== \"human\" && actor.id === view.primaryActorId && holdsUsable(actor, \"execution.stopOwned\"));\n\nexport const createRunStopContributor = (stop: (runId: string) => Promise<void>, onError: (error: unknown) => void): ToolContributor => {\n const definition = defineRunFunction({\n name: \"run_stop\",\n label: \"Stop run\",\n description: \"Initiates the complete stop of your own run: running turns, tools, subagents and plugin services. Conversation and files are kept. Also cancels your own turn; acceptance is not a confirmation of completed cleanup. Use immediately when the user wants a complete cancellation; do not send a cancel message to busy agents.\",\n schema: Type.Object({}, { additionalProperties: false }),\n resultSchema: Type.Object({ requested: Type.Literal(true) }, { additionalProperties: false }),\n available,\n run: ({ caller, signal }) => {\n signal?.throwIfAborted();\n void stop(caller.runId).catch(onError);\n return { requested: true as const };\n },\n });\n return {\n name: \"ragents.orchestration.run-stop\",\n descriptors: [toolDescriptorFrom(definition, available)],\n tools: () => [definition],\n };\n};\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../../plugins/ragents.orchestration/server/index.ts", "../../../plugins/ragents.orchestration/server/run-stop-tool.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n actorInputSchema,\n enqueueActorInput,\n eventResultSchemaOf,\n ScriptDriver,\n type ActorInputRequest,\n type RAgentsPlugin,\n} from \"@ragents/engine\";\nimport { runtimeProviderToken } from \"@ragents/host/ragents/host-services.js\";\nimport { pluginAsset } from \"@ragents/host/plugin-support/plugin-folder.js\";\nimport type { PluginModule } from \"@ragents/host/plugin-support/plugin-module.js\";\nimport { handlebarsPrompt } from \"@ragents/host/plugin-support/prompt.js\";\nimport { createRunStopContributor } from \"./run-stop-tool.js\";\nimport { runManagementToken } from \"@ragents/host/ragents/global-chat.js\";\n\nconst orchestrationPlugin: RAgentsPlugin = {\n manifest: { id: \"ragents.orchestration\" },\n register: (host) => {\n host.functions(createRunStopContributor(\n (runId) => host.service(runManagementToken)().stop(runId),\n (error) => console.error(\"Run stop by the coordinator failed\", error),\n ));\n host.operations({\n id: \"actor_input\",\n label: \"Enqueue actor input\",\n description: \"Enqueues a normal text input for an actor under the bound identity - \"\n + \"as an agent or, from an app action, as the owner of the run. Only confirms the enqueueing. TypeScript actors understand only their programmed input protocol, no free-form tasks.\",\n schema: actorInputSchema,\n resultSchema: eventResultSchemaOf(\"actor.input.enqueued\"),\n operator: \"direct\",\n execute: (context, input) =>\n enqueueActorInput(host.service(runtimeProviderToken)(), {\n actorId: context.principal.actorId,\n commandId: context.invocationId,\n ...(context.principal.kind === \"agent\" && context.principal.turnId\n ? { turnId: context.principal.turnId }\n : {}),\n correlationId: context.invocationId,\n causationId: context.invocationId,\n }, context.runId, input as ActorInputRequest),\n });\n host.script({\n id: \"typescript\",\n create: (context) => ({\n driver: new ScriptDriver({ runtime: context.runtime }),\n }),\n });\n host.prompts(\n handlebarsPrompt(\"ragents.orchestration.prompt\", 600, pluginAsset(\"ragents.orchestration\", \"orchestration.hbs\")),\n );\n },\n};\n\nexport const plugin: PluginModule = { create: () => orchestrationPlugin };\n", "import { Type } from \"typebox\";\nimport { defineRunFunction, defineToolAvailability, holdsUsable, type ToolContributor } from \"@ragents/engine\";\nimport { toolDescriptorFrom } from \"@ragents/host/plugin-support/agent-tool.js\";\n\nconst available = defineToolAvailability({\n availability: \"conditional\",\n availabilityDetail: \"For the primary actor with execution.stopOwned in its own run.\",\n requiredCapabilities: [\"execution.stopOwned\"],\n}, (actor, view) => actor.kind !== \"human\" && actor.id === view.primaryActorId && holdsUsable(actor, \"execution.stopOwned\"));\n\nexport const createRunStopContributor = (stop: (runId: string) => Promise<void>, onError: (error: unknown) => void): ToolContributor => {\n const definition = defineRunFunction({\n name: \"run_stop\",\n label: \"Stop run\",\n description: \"Initiates the complete stop of your own run: running turns, tools, subagents and plugin services. Conversation and files are kept. Also cancels your own turn; acceptance is not a confirmation of completed cleanup. Use immediately when the user wants a complete cancellation; do not send a cancel message to busy agents.\",\n schema: Type.Object({}, { additionalProperties: false }),\n resultSchema: Type.Object({ requested: Type.Literal(true) }, { additionalProperties: false }),\n available,\n run: ({ caller, signal }) => {\n signal?.throwIfAborted();\n void stop(caller.runId).catch(onError);\n return { requested: true as const };\n },\n });\n return {\n name: \"ragents.orchestration.run-stop\",\n descriptors: [toolDescriptorFrom(definition, available)],\n tools: () => [definition],\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAE5B,SAAS,wBAAwB;;;ACXjC,SAAS,YAAY;AACrB,SAAS,mBAAmB,wBAAwB,mBAAyC;AAC7F,SAAS,0BAA0B;AAEnC,IAAM,YAAY,uBAAuB;AAAA,EACvC,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,sBAAsB,CAAC,qBAAqB;AAC9C,GAAG,CAAC,OAAO,SAAS,MAAM,SAAS,WAAW,MAAM,OAAO,KAAK,kBAAkB,YAAY,OAAO,qBAAqB,CAAC;AAEpH,IAAM,2BAA2B,CAAC,MAAwC,YAAuD;AACtI,QAAM,aAAa,kBAAkB;AAAA,IACnC,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,QAAQ,KAAK,OAAO,CAAC,GAAG,EAAE,sBAAsB,MAAM,CAAC;AAAA,IACvD,cAAc,KAAK,OAAO,EAAE,WAAW,KAAK,QAAQ,IAAI,EAAE,GAAG,EAAE,sBAAsB,MAAM,CAAC;AAAA,IAC5F;AAAA,IACA,KAAK,CAAC,EAAE,QAAQ,OAAO,MAAM;AAC3B,cAAQ,eAAe;AACvB,WAAK,KAAK,OAAO,KAAK,EAAE,MAAM,OAAO;AACrC,aAAO,EAAE,WAAW,KAAc;AAAA,IACpC;AAAA,EACF,CAAC;AACD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,aAAa,CAAC,mBAAmB,YAAY,SAAS,CAAC;AAAA,IACvD,OAAO,MAAM,CAAC,UAAU;AAAA,EAC1B;AACF;;;ADhBA,SAAS,0BAA0B;AAEnC,IAAM,sBAAqC;AAAA,EACzC,UAAU,EAAE,IAAI,wBAAwB;AAAA,EACxC,UAAU,CAAC,SAAS;AAClB,SAAK,UAAU;AAAA,MACb,CAAC,UAAU,KAAK,QAAQ,kBAAkB,EAAE,EAAE,KAAK,KAAK;AAAA,MACxD,CAAC,UAAU,QAAQ,MAAM,sCAAsC,KAAK;AAAA,IACtE,CAAC;AACD,SAAK,WAAW;AAAA,MACd,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aAAa;AAAA,MAEb,QAAQ;AAAA,MACR,cAAc,oBAAoB,sBAAsB;AAAA,MACxD,UAAU;AAAA,MACV,SAAS,CAAC,SAAS,UACjB,kBAAkB,KAAK,QAAQ,oBAAoB,EAAE,GAAG;AAAA,QACtD,SAAS,QAAQ,UAAU;AAAA,QAC3B,WAAW,QAAQ;AAAA,QACnB,GAAI,QAAQ,UAAU,SAAS,WAAW,QAAQ,UAAU,SACxD,EAAE,QAAQ,QAAQ,UAAU,OAAO,IACnC,CAAC;AAAA,QACL,eAAe,QAAQ;AAAA,QACvB,aAAa,QAAQ;AAAA,MACvB,GAAG,QAAQ,OAAO,KAA0B;AAAA,IAChD,CAAC;AACD,SAAK,OAAO;AAAA,MACV,IAAI;AAAA,MACJ,QAAQ,CAAC,aAAa;AAAA,QACpB,QAAQ,IAAI,aAAa,EAAE,SAAS,QAAQ,QAAQ,CAAC;AAAA,MACvD;AAAA,IACF,CAAC;AACD,SAAK;AAAA,MACH,iBAAiB,gCAAgC,KAAK,YAAY,yBAAyB,mBAAmB,CAAC;AAAA,IACjH;AAAA,EACF;AACF;AAEO,IAAM,SAAuB,EAAE,QAAQ,MAAM,oBAAoB;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=(t,r)=>{let o=globalThis.__ragentsHostModules?.[t];if(o===void 0)throw new Error(`The host does not provide ${t}`);if(!(r in o))throw new Error(`The host does not provide ${r} from ${t}; the bundle was built against a newer host`);return o[r]};var a=e("react","createContext");var u=e("react","createElement");var s=e("react","forwardRef");var d=e("react","useCallback");var f=e("react","useContext");var m=e("react","useEffect");var l=e("react","useId");var p=e("react","useMemo");var x=e("react","useRef");var n=e("react","useState");var i=a(void 0),Q=()=>f(i);export{e as a,a as b,u as c,s as d,d as e,f,m as g,l as h,p as i,x as j,n as k,i as l,Q as m};
|
|
2
|
+
//# sourceMappingURL=/plugins/ragents.orchestration/web/chunks/chunk-KU7O6MEX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["ragents-host-read:read", "ragents-host-value:react#createContext", "ragents-host-value:react#createElement", "ragents-host-value:react#forwardRef", "ragents-host-value:react#useCallback", "ragents-host-value:react#useContext", "ragents-host-value:react#useEffect", "ragents-host-value:react#useId", "ragents-host-value:react#useMemo", "ragents-host-value:react#useRef", "ragents-host-value:react#useState", "../../../../plugins/ragents.orchestration/web/program-slot.ts"],
|
|
4
|
+
"sourcesContent": ["export const read = (specifier, name) => {\n const module = globalThis[\"__ragentsHostModules\"]?.[specifier];\n if (module === undefined) throw new Error(`The host does not provide ${specifier}`);\n if (!(name in module)) throw new Error(`The host does not provide ${name} from ${specifier}; the bundle was built against a newer host`);\n return module[name];\n};", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"createContext\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"createElement\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"forwardRef\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useCallback\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useContext\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useEffect\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useId\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useMemo\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useRef\");\n", "import { read } from \"ragents-host-read:read\";\nexport default read(\"react\", \"useState\");\n", "import { createContext, useContext, type ReactNode } from \"react\";\nimport type { RunView } from \"@ragents/web/run-view\";\n\n/** What an actor-program extension adds to the run panel and the inspector; without one both show no programs. */\nexport interface ProgramSlot {\n runId: string;\n source: (view: RunView, actorId: string) => ReactNode;\n}\n\nexport const ProgramSlotContext = createContext<ProgramSlot | undefined>(undefined);\nexport const useProgramSlot = () => useContext(ProgramSlotContext);\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAAO,CAACC,EAAWC,IAAS,CACvC,IAAMC,EAAS,WAAW,uBAA0BF,CAAS,EAC7D,GAAIE,IAAW,OAAW,MAAM,IAAI,MAAM,6BAA6BF,CAAS,EAAE,EAClF,GAAI,EAAEC,KAAQC,GAAS,MAAM,IAAI,MAAM,6BAA6BD,CAAI,SAASD,CAAS,6CAA6C,EACvI,OAAOE,EAAOD,CAAI,CACpB,ECJA,IAAOE,EAAQC,EAAK,QAAS,eAAe,ECA5C,IAAOC,EAAQC,EAAK,QAAS,eAAe,ECA5C,IAAOC,EAAQC,EAAK,QAAS,YAAY,ECAzC,IAAOC,EAAQC,EAAK,QAAS,aAAa,ECA1C,IAAOC,EAAQC,EAAK,QAAS,YAAY,ECAzC,IAAOC,EAAQC,EAAK,QAAS,WAAW,ECAxC,IAAOC,EAAQC,EAAK,QAAS,OAAO,ECApC,IAAOC,EAAQC,EAAK,QAAS,SAAS,ECAtC,IAAOC,EAAQC,EAAK,QAAS,QAAQ,ECArC,IAAOC,EAAQC,EAAK,QAAS,UAAU,ECQhC,IAAMC,EAAqBC,EAAuC,MAAS,EACrEC,EAAiB,IAAMC,EAAWH,CAAkB",
|
|
6
|
+
"names": ["read", "specifier", "name", "module", "react_createContext_default", "read", "react_createElement_default", "read", "react_forwardRef_default", "read", "react_useCallback_default", "read", "react_useContext_default", "read", "react_useEffect_default", "read", "react_useId_default", "read", "react_useMemo_default", "read", "react_useRef_default", "read", "react_useState_default", "read", "ProgramSlotContext", "react_createContext_default", "useProgramSlot", "react_useContext_default"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
["!after","!composer","!driver","!error","!grab","!group","!hasElement","!hasVisibleContent","!narrow","!root","!search","!selectedActor","!showStartup","!technical","!view","!writable","--available-height","--available-width","--border","--color-glass-agent","--color-glass-app","--color-glass-primary","--color-glass-script","--material-edge","--material-face","--primary","--qsl-chat-horizontal-padding","--qsl-composer-height","--qsl-panel-height","--sheet-available-height","--surface-backdrop","--surface-visible-width","-chat","-chat-tab","-details","-tab","-translate-x-1/2","-translate-y-1/2","@handle","[&::-webkit-details-marker]:hidden","[&:focus-visible>span]:bg-foreground","[&:focus-visible>span]:ring-2","[&:focus-visible>span]:ring-ring/60","[&:hover>span]:bg-foreground","[&:not([data-expanded])_[data-slot=card-sections]]:hidden","[&>*]:flex-1","[&>*]:min-h-0","[&>*]:min-w-0","[&>h3]:font-[650]","[&>h3]:font-semibold","[&>h3]:mb-1.5","[&>h3]:mt-3","[&>h3]:text-[0.72rem]","[&>h3]:text-muted-foreground","[&>h3]:tracking-[0.05em]","[&>h3]:uppercase","[&>p]:my-1","[&>p]:text-[0.72rem]","[&>p]:text-muted-foreground","[&>small]:text-muted-foreground","[&>span[data-diff=added]]:bg-success-soft","[&>span[data-diff=removed]]:bg-destructive-soft","[&>span]:bg-border-strong","[&>span]:block","[&>span]:flex-1","[&>span]:pointer-events-none","[&>span]:rounded-[4px]","[&>span]:truncate","[&>span]:whitespace-pre","[&>svg]:pointer-events-none","[&>svg]:size-3","[&[data-sheet-resizing]_[data-slot=card-sections]]:hidden","[&[draggable=true]]:cursor-grab","[&[hidden]]:hidden","[&_[data-chat=composer]]:[--qsl-panel-height:var(--sheet-available-height)]","[&_dd]:[overflow-wrap:anywhere]","[&_dt]:text-muted-foreground","[&_h2]:leading-[1.3]","[&_h2]:text-[0.95rem]","[&_input[type=checkbox]]:accent-primary","[&_input[type=checkbox]]:flex-none","[&_input[type=checkbox]]:m-0","[&_small]:text-[0.66rem]","[&_small]:text-muted-foreground","[&_strong]:text-[0.76rem]","[&_strong]:truncate","[--material-edge:#514657]","[--material-face:var(--color-glass-agent)]","[--material-face:var(--color-glass-app)]","[--material-face:var(--color-glass-primary)]","[--material-face:var(--color-glass-script)]","[overflow-wrap:anywhere]","a","above","absolute","acceptSelection","access","according","across","action","actionById","actionClass","actionId","actions","active","activeActors","activeElement","activeIds","actor","actor-chat","actor-program","actorById","actorChatMessages","actorConversations","actorHandle","actorHeaderStorageKey","actorId","actorIds","actorInputLabel","actorLabel","actorName","actorOnStage","actorStatus","actorType","actorVisibility","actorVisibleInHeader","actorVisibleOnSurface","actors","added","addressee","addresseeMatches","addresseeNodeContains","addresseeParentId","addresseeStatus","addresseeStatusCounts","addresseeStatusWord","addresseeSummaries","addresseeTree","adds","after","afterText","afterwards","agent","agents","alert","align","all","allowed","along","alt","always","an","anchor","anchorActorId","and","anew","another","answer","answering","any","app","appActorIds","appId","appear","appearance","appears","application/x-ragents-surface-tile","approved","are","aria-controls","aria-current","aria-current:bg-primary/10","aria-expanded","aria-expanded:bg-primary/12","aria-expanded:border-primary","aria-haspopup","aria-hidden","aria-label","aria-orientation","aria-pressed","aria-pressed:bg-accent","aria-pressed:bg-primary/10","aria-pressed:border-primary","aria-pressed:text-primary","aria-valuemax","aria-valuemin","aria-valuenow","arranged","arrangement","artifact","artifactById","artifactId","artifactIds","artifacts","as","askedBy","assigned","assistant","async","at","attachments","attention","auto","available","availableHeight","availableWidth","await","back","background","bar","baseFrequency","be","becomes","been","before","before:absolute","before:border-b-[1.5px]","before:border-current","before:border-r-[1.5px]","before:border-solid","before:content-['']","before:left-2.5","before:rotate-[-45deg]","before:size-[5px]","before:top-[15px]","beforeText","behind","being","belong","below","between","bg-(--material-face)","bg-[color-mix(in_srgb,var(--material-face)_96%,black)]","bg-[image:var(--surface-backdrop)]","bg-accent","bg-app","bg-backdrop","bg-background","bg-border-soft/22","bg-border-strong","bg-card","bg-destructive-soft","bg-foreground/4","bg-foreground/8","bg-glass-agent","bg-glass-app","bg-glass-primary","bg-glass-script","bg-primary/22","bg-primary/5","bg-secondary","bg-shell","bg-success-soft","bg-surface","bg-transparent","bg-warning","bg-warning-soft","bg-white/9","block","blocked","blur","boolean","border","border-(--material-edge)","border-0","border-2","border-[#51465738]","border-[#5146578a]","border-[1.5px]","border-[color-mix(in_srgb,var(--primary)_35%,var(--border))]","border-b","border-b-0","border-border","border-border-soft","border-border-strong","border-dashed","border-foreground/15","border-l","border-primary","border-r","border-t","border-t-0","both","bottom","bottom-0","bottom-2","bounded","bounds","branch","branchClass","bridges","brings","busy","busyClass","busyPending","busyTitle","button","buttonRef","by","byId","cacheReadTokens","cacheRef","cacheWriteTokens","call","calm","can","canArrange","canGoBack","cancel","cancelActivation","cancelResize","candidates","cannot","canvas_layout_replace","capabilities","card","card-sections","cardSections","cardSectionsClass","carriedOn","carries","catch","category","caught","cause","center","centered","change","changeEvent","changeTiles","chat","chatDisplay","chatElementClassName","chatInput","chatLayoutClass","chatLayoutFor","chatModeButtonClass","chatModeOf","chatModeSwitch","chatModes","chatScrollerRef","chatShowsContent","chatSurfaceClass","chatView","chatWidth","checkbox","checked","children","chip","chipClass","chipRowClass","choose","chosen","claimed","clamp","clampChatWidth","className","clientHeight","clientWidth","clientX","clientY","close","closeDelay","closeLabel","closeLater","closed","closest","cn","code","col-span-full","collapsed","collapses","collisionPadding","colon","column","combines","comes","commandId","commit","common","compact","compared","comparison","completed","composer","composerVisible","config","configuredMode","confirmation","confirmationPending","connected","const","contain","container","containing","contains","content","contentClass","contentSeen","contents","contribution","contributions","controller","controlsClass","conversation","conversationActor","conversationError","coordinate","coordinator","cost","costUsd","costs","could","count","counts","createContext","createLocalStorageSetting","createPortal","created","createdBy","creation","creator","creators","current","currentColor","currentTarget","cursor-col-resize","cursor-pointer","cursor-row-resize","cut","dark:[--material-edge:#b7a8bd]","data-[active]:bg-primary","data-[active]:text-surface","data-[direction=horizontal]:[&>span]:h-8","data-[direction=horizontal]:[&>span]:w-[3px]","data-[direction=horizontal]:cursor-col-resize","data-[direction=vertical]:[&>span]:h-[3px]","data-[direction=vertical]:[&>span]:w-8","data-[direction=vertical]:cursor-row-resize","data-[dragging]:[&_iframe]:pointer-events-none","data-[placement=top]:rounded-b-none","data-[placement=top]:rounded-t-sm","data-[resizing]:[&_iframe]:pointer-events-none","data-active","data-actor-handle","data-addressee-group","data-addressee-status","data-chat-layout","data-diff","data-direction","data-dock-entity","data-dock-side","data-dragging","data-expanded","data-expanded:opacity-100","data-expanded:pointer-events-auto","data-icon","data-placement","data-resizing","data-run-panel","data-sheet-resizing","data-slot","data-staged","data-surface-scroll","data-tile-entity","data-tone","data-view","date","dateTime","day","decision","default","defaults","definition","delay","delays","delegable","deliver","depth","described","description","destructive","detail","detailMode","details","determine","dialog","did","differing","dim","direction","disabled","disabled:cursor-not-allowed","disabled:opacity-50","disabledReason","discarded","dismissed","display","displayName","distance","divider","dividerClass","dividers","dock","dockEntity","dockSide","dockTargetClass","docked","document","documents","does","doing","download","drag","dragEntity","dragend","draggable","dragging","dragstart","driver","driverLabel","drop","dropEffect","duration-200","duration-300","during","ease-[cubic-bezier(.32,.72,0,1)]","effectAllowed","element","elementNeedsAttention","elements","else","emitted","empty","empty:hidden","emptyMessages","emptyState","en-US","end","ended","ends","enqueueActorInput","entities","entity","entries","entry","entryClass","envelope","error","errorClass","event","eventId","events","every","exactly","exclamation","executed","execution","executionDuration","executionEventsFrom","executionKey","executionStatusLabel","executions","expandable","expanded","expandedHeight","expected","export","extends","extension","eyebrow","failed","fallbackActor","fallbackRoot","false","fields","fill","fills","filter","filterExecutions","filtered","finally","find","finish","finishResize","finished","finishedAt","finite","first","firstInputs","firstLine","firstMinimum","firstWeight","fixed","flex","flex-1","flex-[0_0_120px]","flex-[0_0_30px]","flex-[0_0_49px]","flex-[0_1_auto]","flex-[1_1_360px]","flex-col","flex-none","flex-nowrap","flex-shrink-0","flex-wrap","floating","flow","flows","focus","focus-visible:-outline-offset-2","focus-visible:[&>span]:bg-primary","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-primary","focus-visible:outline-ring/60","focus:outline-none","focusInput","focusableScroller","follow","font-[650]","font-[730]","font-bold","font-mono","font-semibold","for","formatBytes","formatCostUsd","formatTime","fractalNoise","free","from","front","full","function","further","gap-0","gap-0.5","gap-1","gap-1.5","gap-2","gap-2.5","gap-3","gap-[5px]","gap-x-2","gap-x-2.5","gap-x-3","gap-y-0.5","gap-y-1","gap-y-1.5","gap-y-[7px]","geometry","ghost","grab","grabRef","grants","grid","grid-cols-[32px_minmax(130px,1fr)_minmax(70px,140px)_auto]","grid-cols-[auto_1fr]","grid-cols-[minmax(0,1fr)_auto]","grid-rows-[minmax(0,1fr)_auto_minmax(var(--qsl-composer-height,0px),1fr)]","gridTemplateColumns","grip","group","group-focus-within/stage:opacity-100","group-hover/stage:opacity-100","group/stage","groupLabel","guard","h-1","h-10","h-3","h-4","h-6","h-7","h-auto","h-full","halted","handle","handleKey","handleSelect","handleStem","handles","has","has-[>[data-slot=card-sections]:not(:empty)]:min-h-[260px]","has-[[data-chat=actions]:not(:empty)]:min-h-[260px]","hasElement","hasVisibleContent","have","headClass","header","headers","height","held","hidden","hiddenActorIds","hiddenListed","hiddenMatches","hiddenOpen","hiddenTree","hides","historical","history","historyError","horizontal","host","hour","hover:[&>span]:bg-primary","hover:bg-accent","hover:bg-glass-group","hover:bg-primary/12","hover:bg-primary/6","hover:border-[color-mix(in_srgb,var(--primary)_45%,var(--border))]","hover:text-foreground","how","href","human","icon","icon-sm","iconClass","id","idle","if","image","img","immediately","import","in","in-data-[compact=true]:hidden","in-data-expanded:opacity-0","in-data-expanded:pointer-events-none","inRange","includeSelf","included","including","index","indexOf","info","initialFocus","inline-flex","inline-start","inner","input","inputById","inputDeliveryLabel","inputId","inputTokens","inputs","inputsConfig","insert","inset-0","inset-2","inset-x-2","inset-x-2.5","inset-y-0","inspect","inspector","inspectorClass","instanceof","instead","interface","interrupted","interrupts","into","invalid","is","isPrimary","isRecord","isTextMedia","isTextOrNull","iso","isolate","it","item","itemMap","items","items-baseline","items-center","items-end","items-start","items-stretch","its","itself","journal","js","json","justify-between","justify-center","justify-end","justify-items-center","justify-start","keepMounted","keeps","kept","key","keyOf","keydown","keyof","kind","kinds","knew","known","label","language","large","last","lastRunView","layout","leading-[1.3]","leading-[1.5]","leading-[1.6]","leaf","leaves","leaving","left","left-0","left-1/2","left-[40px]","left-[calc(50%_-_18px)]","legacy","length","lengths","let","level","lifecycle","limit","line","lineDiff","lineNumbers","lines","linkClass","list","list-none","listClass","listener","listeners","loaded","loading","logClass","logs","long","longer","look","lower","lucide-react","m-0","m-auto","m12","m13","m7","m8","makes","manual","many","mapSurfaceTileEntities","mapped","mark","marks","match","matches","matchesKey","matching","material","materialBaseClass","materialCardClass","materialFaceRect","materialHeadClass","materialIconClass","materialTitleClass","materialToneClass","matte","max","max-[550px]:col-start-2","max-[550px]:col-start-3","max-[550px]:gap-x-2","max-[550px]:gap-y-1","max-[550px]:grid-cols-[24px_minmax(0,1fr)_auto]","max-[550px]:row-start-1","max-[550px]:row-start-2","max-h-[24rem]","max-h-[28rem]","max-h-[40%]","max-h-[45%]","max-w-[120px]","max-w-[200px]","max-w-[220px]","max-w-[260px]","max-w-[60%]","max-w-full","max-w-none","maxHeight","maxRows","maxWidth","maximum","maximumFractionDigits","mb-0.5","mb-1.5","mb-2","mb-4","measure","measured","mediaType","members","message","messages","middle","milliseconds","min","min-h-0","min-h-[106px]","min-w-0","min-w-4","min-w-[120px]","min-w-[70px]","min-w-statusbar","mini-app","minimum","minimumFractionDigits","minute","missing","ml-[18px]","mode","model","modes","month","more","most","motion-reduce:transition-none","mountedEntities","mouse","move","moved","moves","ms","mt-1","mt-1.5","mt-2.5","must","mutedClass","mx-0.5","mx-3.5","my-1.5","my-2","my-4.5","name","nameClass","naming","narrow","narrower","navigate","navigation","nearest","needed","needs","needsAnswer","needsRunView","negative","nested","new","newest","next","nextDirection","no","node","nodes","noise","none","not","noteClass","notice","now","null","numOctaves","number","numbers","object","observer","occurredAt","of","off","on","onBack","onBlurCapture","onChange","onClick","onClose","onCommit","onDragLeave","onDragOver","onDragStart","onDrop","onError","onFocusCapture","onKeyDown","onLinkClick","onLostPointerCapture","onNavigate","onOpenChange","onPick","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerUp","onPreferencesChange","onReveal","onSelect","onSend","onStage","onStop","onSubmit","onToggle","onValueChange","once","one","ones","only","onto","opacity","opacity-0","opacity-10","opacity-80","open","open:[&>summary]:before:rotate-45","open:[&>summary]:text-primary","openByDefault","openDelay","openDocument","openFullscreen","openKey","openLater","openLink","opens","operator","or","orchestration","order","ordered","other","otherwise","outer","outline","outline-none","output","outputTokens","outside-press","over","overflow-auto","overflow-clip","overflow-hidden","overflow-visible","overflow-x-auto","overflow-y-auto","overlap","override","overscroll-contain","own","owner","p-0","p-0.5","p-1","p-2","p-2.5","p-3","p-4","p-4.5","p-6","paddingBottom","panel","panelId","panelRef","parent","parentId","parse","parsedRunView","participants","partitionRunPanelActors","pass","patch","path","pauseResize","payload","pb-2","pb-2.5","pb-3","pb-3.5","peek","pending","pendingActionCount","pendingFrame","pendingInputCount","per","personal","personalLayout","pick","piece","pillClass","pillToneClass","pinned","pixels","pl-1","pl-[25px]","place-items-center","placed","placeholder","placement","plugin","pluginId","pointer-events-auto","pointer-events-none","pointerId","pointerType","pop-out","popout","positioned","positive","pr-2","pr-2.5","preferences","prefix","prepared","preparing","presentation","preserveAspectRatio","pressedAnchor","preventScroll","preview","previewMinimum","previewRoot","previous","previousVersionId","primary","primaryActorId","primaryId","primaryMessages","primaryRunning","primarySelected","processing","program","programBasis","programChatNotice","programLayout","programSource","programs","projectExecutions","prompt","propertiesClass","props","provider","pt-2","pt-2.5","pt-3","pt-3.5","publishSurfaceEntities","px","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-5","px-[5px]","px-[var(--qsl-chat-horizontal-padding,24px)]","px-workspace-inset","py-0.5","py-1","py-1.5","py-2","py-2.5","quassel","quassel/events","query","querySelector","questions","queued","ragents-actor-header-change","ragents-actor-visibility-change","ragents-run-panel-change","ragents-run-panel-settings-change","ragents-tile-presentation-change","raise","range","ratio","raw","react","react-dom","reacts","read","readRight","readonly","real","reason","record","rect","ref","region","registers","relatedTarget","relates","relative","reload","remaining","remembered","remove","removed","render","renderAction","renderTool","reported","requested","required","resize","resizeFrame","resizePreview","resizeRef","resizing","resolve","resolveAction","resolvedAt","response","rest","restartActor","result","retry","return","reveal","revealActor","revealSelected","revision","right","right-0","right-2","role","room","root","rootRef","rotate-180","rotate-90","round","rounded","rounded-[11px]","rounded-[15.5px]","rounded-[4px]","rounded-[5px]","rounded-b-[16px]","rounded-b-none","rounded-b-sm","rounded-full","rounded-lg","rounded-md","rounded-none","rounded-panel","rounded-sm","rounded-t-2xl","rounded-t-[15.5px]","rounded-t-sm","row","row-start-2","rowClass","rowCopyClass","rows","rowsClass","rpc","run","run-app","run-panel-settings","runContracts","runCost","runCostUsd","runId","runIsWorking","runPanel","runPanelActors","runPanelStorageKey","runView","runViewFrom","running","runs","s","said","same","save","saveSurfacePresentation","says","scale","scope","script","scrollClass","scrollTop","scroller","scrollerRef","search","searchRef","searching","second","secondMinimum","secondary","seconds","sectionClass","sectionIconPaths","sections","select","select-none","selectActor","selected","selectedActor","selectedElement","selectedEntity","selectedId","selection","self-center","self-stretch","sendActorMessage","sender","senderOf","separately","separator","sequence","serialize","server","session","sessionHeaders","sessionStatus","set","setAddresseeOpen","setArmed","setAvailable","setBusy","setChatWidth","setContentSeen","setDraft","setDragEntity","setError","setEvents","setExpanded","setGeometry","setHeight","setHeld","setHiddenListed","setJournal","setLimit","setLoading","setMessage","setNow","setOpen","setOpenId","setOpenKey","setPresentationError","setQuery","setReload","setResizePreview","setResizing","setResponse","setSelected","setSelection","setSize","setStatus","setStopError","setTarget","setToggled","setVersion","setVisited","setWidth","sets","setting","settings","setup","shadow-[0_-16px_60px_#00000080]","shadow-[0_2px_8px_#0002]","shadow-glass-icon","shapes","sheet","sheet-grip","sheetExpandedHeight","sheetPeekExtra","sheetRef","sheetStatus","short","shortId","shortcut","shortcutFillClass","shortcutIconClass","shortened","show","showName","showStartup","showTimestamps","shown","shownTree","shows","shrink-0","siblings","side","sideIcons","sideNames","sidePlacement","sideWidth","sides","signal","similar","single","sits","size","size-3","size-3.5","size-4","size-5","size-8","size-[116px]","size-[26px]","size-[30px]","size-[36px]","size-full","slides","slot","sm","snippet","snippets","so","soon","source","sourceActorIds","sourceClass","space","spacing","span","split","splits","spoken","src","stage","stageEntities","stageHeight","stageRef","staged","stages","stands","start","startHeight","startWidth","startX","startY","started","startedAt","starts","startup","startupState","state","stateKey","states","status","statusBadgeClass","statusClass","statusControlClass","statusOptions","statusRef","statuses","stay","stays","stem","step","steps","stepsExpandable","still","stitch","stitchTiles","stop","stopActor","stopRun","stopped","stored","storedLayout","straight","string","stroke","strokeLinecap","strokeLinejoin","strokeWidth","style","subagents","submit","subscribe","subscriberId","subscription","subscriptionById","subscriptionId","subscriptions","subtitle","subtitleClass","suffix","sum","summary","summaryClass","suppressClick","suppressed","surface","surface-grain","surfaceElements","surfaceEntityKey","surfaceEntityOf","surfaceLayoutOf","surfacePresentationStorageKey","surfaceProgramBasis","surfaceStartupState","surfaceTileChatInput","surfaceTileEntities","surfaceTileNodeOf","surfaceViewStorageKey","switches","system","tabClass","tabIndex","tabular-nums","target","targets","task","technical","text","text-[0.62rem]","text-[0.64rem]","text-[0.65rem]","text-[0.66rem]","text-[0.68rem]","text-[0.6rem]","text-[0.72rem]","text-[0.74rem]","text-[0.76rem]","text-[0.78rem]","text-[0.7rem]","text-[0.8rem]","text-[0.92rem]","text-[17px]","text-background","text-center","text-destructive","text-foreground","text-info","text-left","text-muted-foreground","text-muted-foreground/70","text-primary","text-right","text-success","text-warning","textBlockClass","texts","than","that","the","their","them","themselves","then","there","they","thinking","thinkingLabel","this","three","throw","throws","tile","tileEntities","tiled","tiles","timer","title","to","toBottom","toDraft","today","together","toggle","toggled","tokens","tone","too","tool","toolCallId","toolNames","toolbar","toolbarContainer","toolbarLeft","toolbarRight","tools","top","top-0","top-1.5","top-1/2","top-2","top-[40px]","top-[calc(50%_-_18px)]","touch","touch-none","tracking-[-.5px]","tracking-[0.08em]","transition","transition-[height]","transition-colors","transition-opacity","transition-transform","tree","treeProps","trimmed","true","truncate","try","ts","turn","turnById","turnId","turnKey","turnUsageOf","turns","two","type","typeof","types","typescript","typescript_eval","undefined","under","underline","unit","unknown","unreachable","until","up","updateResize","uppercase","usable","usage","useAccess","useActorHeaderMode","useAttachmentCapabilities","useCallback","useChatViewSettings","useMemo","useProgramSlot","useRef","useRunPanelHost","useRunPanelSettings","useRunPanelStartup","useState","useSurfaceEntities","useSurfacePresentation","useSurfacePresentationOverride","useSurfaceViewPreferences","useSyncExternalStore","useToolRenderer","user","using","valid","validates","value","variant","version","versions","vertical","view","viewBox","views","visibility","visible","visibleApps","visibleEntities","visibleRoot","visibleStageSize","visit","visited","void","vscode","w-1","w-2.5","w-9","w-[120px]","w-[130px]","w-[var(--surface-visible-width,100%)]","w-auto","w-full","waiting","waits","was","webPlugin","weight","weights","well","what","when","where","which","while","whitespace-nowrap","whitespace-pre-wrap","whole","whom","whose","wide","width","window","with","without","words","work","working","workspace","workspace-panel","workspaceTabs","would","wrap","writable","write","written","xml","yaml","yes","yet","your","z-0","z-10","z-2","z-20","z-3","z-4","z-5","z-6","z-7","z-[15]","z-[5]"]
|
|
1
|
+
["!after","!driver","!error","!group","!search","!technical","!writable","--available-height","--available-width","--border","--primary","--qsl-composer-height","-chat","-chat-tab","-details","-tab","[&::-webkit-details-marker]:hidden","[&>h3]:font-[650]","[&>h3]:font-semibold","[&>h3]:mb-1.5","[&>h3]:mt-3","[&>h3]:text-[0.72rem]","[&>h3]:text-muted-foreground","[&>h3]:tracking-[0.05em]","[&>h3]:uppercase","[&>p]:my-1","[&>p]:text-[0.72rem]","[&>p]:text-muted-foreground","[&>small]:text-muted-foreground","[&>span[data-diff=added]]:bg-success-soft","[&>span[data-diff=removed]]:bg-destructive-soft","[&>span]:block","[&>span]:flex-1","[&>span]:truncate","[&>span]:whitespace-pre","[&>svg]:size-3","[&_dd]:[overflow-wrap:anywhere]","[&_dt]:text-muted-foreground","[&_h2]:leading-[1.3]","[&_h2]:text-[0.95rem]","[&_input[type=checkbox]]:accent-primary","[&_input[type=checkbox]]:flex-none","[&_input[type=checkbox]]:m-0","[&_small]:text-[0.66rem]","[&_small]:text-muted-foreground","[&_strong]:text-[0.76rem]","[&_strong]:truncate","[overflow-wrap:anywhere]","a","acceptSelection","access","across","action","actionById","actionClass","actionId","actions","active","activeActors","activeIds","actor","actor-chat","actor-program","actorById","actorChatMessages","actorConversations","actorHandle","actorId","actorIds","actorInputLabel","actorLabel","actorName","actorType","actors","added","addressee","addresseeMatches","addresseeNodeContains","addresseeParentId","addresseeStatus","addresseeStatusCounts","addresseeStatusWord","addresseeSummaries","addresseeTree","adds","after","afterText","afterwards","agent","agents","alert","align","all","along","alt","an","anchor","and","another","answer","app","appear","appears","approved","are","aria-controls","aria-current","aria-current:bg-primary/10","aria-expanded","aria-expanded:bg-primary/12","aria-expanded:border-primary","aria-haspopup","aria-hidden","aria-label","aria-selected","aria-selected:bg-primary/10","aria-selected:border-primary","artifact","artifactById","artifactId","artifactIds","artifacts","as","askedBy","assigned","assistant","async","at","attachments","available","await","background","bar","be","been","before","before:absolute","before:border-b-[1.5px]","before:border-current","before:border-r-[1.5px]","before:border-solid","before:content-['']","before:left-2.5","before:rotate-[-45deg]","before:size-[5px]","before:top-[15px]","beforeText","being","belong","bg-accent","bg-app","bg-background","bg-border-soft/22","bg-card","bg-destructive-soft","bg-foreground/4","bg-foreground/8","bg-glass-agent","bg-glass-app","bg-glass-primary","bg-glass-script","bg-primary/5","bg-secondary","bg-shell","bg-success-soft","bg-transparent","bg-warning-soft","block","boolean","border","border-0","border-[color-mix(in_srgb,var(--primary)_35%,var(--border))]","border-b","border-border","border-border-soft","border-l","border-t","border-t-0","both","bottom","branch","branchClass","bridges","brings","browser","busy","busyClass","busyPending","busyTitle","button","buttonRef","by","byId","cacheReadTokens","cacheRef","cacheWriteTokens","call","calm","can","canGoBack","candidates","capabilities","card-sections","cardSections","cardSectionsClass","carriedOn","catch","caught","cause","centered","changeEvent","chat","chatElementClassName","chatShowsContent","chatSurfaceClass","chatView","children","chip","chipClass","choose","claimed","className","close","closeLabel","code","col-span-full","collapses","collisionPadding","column","combines","commandId","common","compared","comparison","completed","composer","composerVisible","config","configuredMode","connected","const","containing","contains","content","contentClass","contentSeen","contents","contribution","contributions","controller","controlsClass","conversation","conversationActor","conversationError","coordinator","cost","costUsd","costs","could","count","counts","createContext","createLocalStorageSetting","created","createdBy","creation","creator","creators","current","currentColor","cursor-pointer","cut","data-[placement=top]:rounded-b-none","data-[placement=top]:rounded-t-sm","data-actor-handle","data-addressee-group","data-addressee-status","data-diff","data-icon","data-placement","data-run-panel","data-slot","data-surface-scroll","data-view","date","dateTime","day","decision","defaults","definition","delegable","deliver","described","description","destructive","detail","detailMode","details","dialog","did","differing","dim","disabled","disabled:cursor-not-allowed","disabled:opacity-50","disabledReason","discarded","dismissed","display","displayName","document","documents","does","download","driver","driverLabel","during","element","elements","else","emitted","empty:hidden","emptyMessages","emptyState","en-US","end","ended","ends","enqueueActorInput","entries","entry","entryClass","envelope","error","errorClass","event","eventId","events","every","executed","execution","executionDuration","executionEventsFrom","executionKey","executionStatusLabel","executions","expandable","expanded","export","extension","eyebrow","failed","fallbackActor","false","fill","filterExecutions","filtered","finally","finished","finishedAt","first","firstInputs","fixed","flex","flex-1","flex-[0_0_30px]","flex-[0_1_auto]","flex-col","flex-none","flex-nowrap","flex-shrink-0","flex-wrap","flow","flows","focus-visible:-outline-offset-2","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-primary","focus-visible:outline-ring/60","focus:outline-none","focusInput","font-[650]","font-mono","font-semibold","for","formatBytes","formatCostUsd","formatTime","from","full","function","further","gap-0","gap-1","gap-1.5","gap-2","gap-2.5","gap-3","gap-x-2","gap-x-2.5","gap-x-3","gap-y-0.5","gap-y-1","gap-y-1.5","gap-y-[7px]","ghost","grants","grid","grid-cols-[32px_minmax(130px,1fr)_minmax(70px,140px)_auto]","grid-cols-[auto_1fr]","grid-cols-[minmax(0,1fr)_auto]","grid-rows-[minmax(0,1fr)_auto_minmax(var(--qsl-composer-height,0px),1fr)]","group","groupLabel","h-4","h-7","h-auto","h-full","halted","handle","handleStem","handles","has","have","headClass","headers","height","hidden","historical","history","historyError","host","hour","hover:bg-accent","hover:bg-primary/12","hover:bg-primary/6","hover:border-[color-mix(in_srgb,var(--primary)_45%,var(--border))]","hover:text-foreground","href","human","icon","icon-sm","iconClass","id","idle","if","image","import","in","in-data-[compact=true]:hidden","includeSelf","included","including","index","indexOf","inert","info","initialFocus","inline-flex","inline-start","input","inputById","inputDeliveryLabel","inputId","inputTokens","inputs","inputsConfig","inspect","inspection","inspector","inspectorClass","instanceof","interface","interrupted","interrupts","into","is","isTextMedia","isTextOrNull","iso","it","items","items-baseline","items-center","items-start","items-stretch","its","itself","journal","json","justify-between","justify-center","justify-end","justify-items-center","justify-start","keepMounted","kept","key","keyOf","keyof","kind","kinds","known","label","language","large","last","leading-[1.5]","leading-[1.6]","left","length","lengths","let","level","lifecycle","limit","line","lineDiff","lineNumbers","lines","linkClass","list-none","listClass","loaded","loading","logClass","logs","long","lower","lucide-react","m-0","m12","m13","m7","m8","makes","manual","many","marks","match","matches","matchesKey","matching","max-[550px]:col-start-2","max-[550px]:col-start-3","max-[550px]:gap-x-2","max-[550px]:gap-y-1","max-[550px]:grid-cols-[24px_minmax(0,1fr)_auto]","max-[550px]:row-start-1","max-[550px]:row-start-2","max-h-[24rem]","max-h-[28rem]","max-h-[40%]","max-w-[200px]","max-w-[220px]","max-w-[260px]","max-w-full","max-w-none","maxHeight","maxRows","maxWidth","maximumFractionDigits","mb-0.5","mb-1.5","mb-2","mb-4","mediaType","members","message","messages","milliseconds","min","min-h-0","min-w-0","min-w-4","min-w-[70px]","min-w-statusbar","mini-apps","minimumFractionDigits","minute","ml-[18px]","model","month","more","moves","ms","mt-1","mt-1.5","mt-2.5","mutedClass","mx-0.5","mx-3.5","my-1.5","my-2","my-4.5","name","navigate","navigation","nearest","needed","needsRunView","new","newest","next","no","node","nodes","none","not","noteClass","notice","now","null","number","object","occurredAt","of","off","on","onBack","onChange","onClick","onClose","onError","onLinkClick","onNavigate","onOpenChange","onPick","onSelect","onSend","onStop","onToggle","onValueChange","one","only","open","open:[&>summary]:before:rotate-45","open:[&>summary]:text-primary","openByDefault","openDocument","openLink","opens","operator","or","orchestration","order","ordered","otherwise","outline","output","outputTokens","outside-press","overflow-auto","overflow-hidden","overflow-x-auto","overflow-y-auto","overscroll-contain","own","owner","p-0","p-2","p-6","panel","panelId","panelRef","parent","parentId","parse","participants","pass","patch","path","payload","pb-2","pb-2.5","pb-3","pb-3.5","pending","pendingInputCount","per","pick","pillClass","pillToneClass","pl-1","pl-[25px]","place-items-center","placeholder","placement","plugin","pop-out","pr-2","pr-2.5","prefix","prepared","preparing","presentation","pressedAnchor","preventScroll","preview","previous","previousVersionId","primary","primaryActorId","primaryId","primaryMessages","primaryRunning","primarySelected","processing","programChatNotice","programSource","programs","projectExecutions","prompt","propertiesClass","props","provider","pt-2","pt-2.5","pt-3","pt-3.5","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-5","px-[5px]","px-workspace-inset","py-0.5","py-1","py-1.5","py-2","py-2.5","quassel","quassel/events","query","questions","queued","ragents-run-panel-change","raw","react","read","readRight","readonly","reason","record","ref","region","relative","reload","remembered","removed","render","renderAction","renderTool","report","required","resolve","resolveAction","resolvedAt","response","restartActor","result","retry","return","revealSelected","revision","right","role","rotate-90","round","rounded-[5px]","rounded-b-none","rounded-b-sm","rounded-full","rounded-lg","rounded-md","rounded-none","rounded-sm","rounded-t-sm","row","row-start-2","rowClass","rowCopyClass","rows","rowsClass","rpc","run","run-app","runContracts","runCost","runCostUsd","runId","runPanelActors","runPanelStorageKey","runView","runViewFrom","running","s","same","save","scope","script","scrollClass","scrollerRef","search","searchRef","searching","second","secondary","seconds","sectionClass","sectionIconPaths","sections","selectActor","selected","selectedActor","selectedElement","selectedId","selection","self-center","self-stretch","sendActorMessage","sequence","serialize","server","session","sessionHeaders","sessionStatus","set","setArmed","setBusy","setContentSeen","setError","setEvents","setExpanded","setHeld","setJournal","setLimit","setLoading","setNow","setOpen","setOpenId","setQuery","setReload","setResponse","setSelection","setStatus","setStopError","setToggled","setVersion","setVisited","setVisitedActors","setting","settings","setup","short","shortId","shortened","show","showName","showTimestamps","shows","shrink-0","siblings","side","signal","similar","size","size-3","size-3.5","size-5","size-[30px]","sm","snippet","snippets","so","soon","source","sourceActorIds","sourceClass","space","spacing","src","stands","start","started","startedAt","starts","startup","state","states","status","statusBadgeClass","statusClass","statusControlClass","statusOptions","statuses","stays","stem","step","steps","stepsExpandable","still","stop","stopActor","stopRun","stopped","stored","string","stroke","strokeLinecap","strokeLinejoin","strokeWidth","style","subagents","subscriberId","subscription","subscriptionById","subscriptionId","subscriptions","subtitle","subtitleClass","suffix","sum","summary","summaryClass","surface","switches","system","tab","tabClass","tabIndex","tablist","tabpanel","tabular-nums","target","task","technical","text","text-[0.64rem]","text-[0.65rem]","text-[0.66rem]","text-[0.68rem]","text-[0.6rem]","text-[0.72rem]","text-[0.74rem]","text-[0.76rem]","text-[0.78rem]","text-[0.7rem]","text-[0.92rem]","text-destructive","text-foreground","text-info","text-left","text-muted-foreground","text-muted-foreground/70","text-primary","text-right","text-success","text-warning","textBlockClass","texts","than","that","the","their","them","then","thinking","thinkingLabel","this","throw","timer","title","to","together","toggle","toggled","tokens","tone","too","toolCallId","toolNames","toolbar","toolbarLeft","toolbarRight","tools","top","tracking-[0.08em]","transition-transform","tree","treeProps","true","truncate","try","ts","turn","turnById","turnId","turnKey","turnUsageOf","turns","type","typeof","types","typescript","typescript_eval","undefined","under","underline","unknown","unreachable","until","up","uppercase","usable","usage","useAccess","useAttachmentCapabilities","useChatViewSettings","useMemo","useProgramSlot","useRef","useRunPanelHost","useRunPanelStartup","useState","useToolRenderer","user","valid","value","variant","version","versions","view","viewBox","viewClass","views","visited","void","vscode","w-auto","w-full","waiting","was","webPlugin","where","while","whitespace-nowrap","whitespace-pre-wrap","whole","whom","whose","width","with","without","words","work","working","workspace","workspaceTabs","would","writable","write","written","xml","xs","yaml","yes","yet","your"]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"/plugins/ragents.orchestration/web/chunks/chunk-
|
|
1
|
+
import{l as a,m as b}from"/plugins/ragents.orchestration/web/chunks/chunk-KU7O6MEX.js";export{a as ProgramSlotContext,b as useProgramSlot};
|
|
2
2
|
//# sourceMappingURL=/plugins/ragents.orchestration/web/exports/web/program-slot.js.map
|