@schlenkr/ragents 0.1.18 → 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.
Files changed (209) hide show
  1. package/apps/server/src/host-api.json +6 -2
  2. package/apps/server/src/host-api.ts +3 -2
  3. package/apps/server/src/host-web.ts +3 -0
  4. package/apps/server/src/plugin-support/actor-programs/contract.ts +0 -3
  5. package/apps/server/src/plugin-support/removed-layout.ts +94 -0
  6. package/apps/server/src/ragents/engine.ts +2 -1
  7. package/apps/server/src/title-compactor.ts +5 -7
  8. package/apps/web/dist/assets/highlighted-body-KPVGNVTW-k67VKdbw.js +1 -0
  9. package/apps/web/dist/assets/main-CVjIz7BS.js +674 -0
  10. package/apps/web/dist/help/guide-clients.html +22 -42
  11. package/apps/web/dist/help/guide-clients.md +24 -45
  12. package/apps/web/dist/help/guide-functions.html +1 -1
  13. package/apps/web/dist/help/guide-functions.md +1 -1
  14. package/apps/web/dist/help/guide-getting-started.html +14 -22
  15. package/apps/web/dist/help/guide-getting-started.md +17 -24
  16. package/apps/web/dist/help/guide-ideas.html +1 -1
  17. package/apps/web/dist/help/guide-ideas.md +1 -1
  18. package/apps/web/dist/help/guide-plugins.html +1 -1
  19. package/apps/web/dist/help/guide-plugins.md +1 -1
  20. package/apps/web/dist/help/guide-programs.html +1 -1
  21. package/apps/web/dist/help/guide-programs.md +1 -1
  22. package/apps/web/dist/help/index.html +12 -79
  23. package/apps/web/dist/help/mini-app.css +8 -502
  24. package/apps/web/dist/host-web.json +28 -23
  25. package/apps/web/dist/index.html +2 -3
  26. package/apps/web/dist/run-panel.html +3 -4
  27. package/apps/web/src/Overview.tsx +4 -143
  28. package/apps/web/src/PluginChat.tsx +22 -116
  29. package/apps/web/src/PluginRegistry.tsx +4 -9
  30. package/apps/web/src/RunPreparationChat.tsx +4 -1
  31. package/apps/web/src/host-modules.ts +2 -0
  32. package/apps/web/src/main.tsx +23 -3
  33. package/apps/web/src/panel/RunLine.tsx +5 -2
  34. package/apps/web/src/panel/RunsPage.tsx +6 -6
  35. package/apps/web/src/panel/StartPage.tsx +6 -5
  36. package/apps/web/src/panel/contract.ts +3 -0
  37. package/apps/web/src/panel/page-props.ts +2 -0
  38. package/apps/web/src/run-apps.ts +34 -0
  39. package/apps/web/src/run-overview.ts +0 -27
  40. package/apps/web/src/run-panel/PanelContributions.tsx +41 -0
  41. package/apps/web/src/run-panel/RunPanelApp.tsx +172 -91
  42. package/apps/web/src/run-panel/RunPanelMenu.tsx +4 -3
  43. package/apps/web/src/run-panel/RunPanelWorkspace.tsx +8 -2
  44. package/apps/web/src/run-panel/clipboard.ts +17 -14
  45. package/apps/web/src/run-panel/host-contract.ts +8 -9
  46. package/apps/web/src/run-panel/host.ts +5 -31
  47. package/apps/web/src/run-panel/input-bridge.ts +15 -7
  48. package/bundles/ragents.activity/ragents-bundle.json +2 -2
  49. package/bundles/ragents.actor-programs/prompt.hbs +4 -5
  50. package/bundles/ragents.actor-programs/ragents-bundle.json +4 -14
  51. package/bundles/ragents.actor-programs/server/index.js +2 -14
  52. package/bundles/ragents.actor-programs/server/index.js.map +2 -2
  53. package/bundles/ragents.actor-programs/web/classes.json +1 -1
  54. package/bundles/ragents.actor-programs/web/index.js +1 -3
  55. package/bundles/ragents.actor-programs/web/index.js.map +4 -4
  56. package/bundles/ragents.ask/ragents-bundle.json +2 -2
  57. package/bundles/ragents.browser/ragents-bundle.json +2 -2
  58. package/bundles/ragents.documents/ragents-bundle.json +2 -2
  59. package/bundles/ragents.lsp-fsharp/ragents-bundle.json +2 -2
  60. package/bundles/ragents.lsp-roslyn/ragents-bundle.json +2 -2
  61. package/bundles/ragents.lsp-typescript/ragents-bundle.json +2 -2
  62. package/bundles/ragents.model-relay/ragents-bundle.json +2 -2
  63. package/bundles/ragents.orchestration/ragents-bundle.json +15 -41
  64. package/bundles/ragents.orchestration/server/index.js +10 -249
  65. package/bundles/ragents.orchestration/server/index.js.map +4 -4
  66. package/bundles/ragents.orchestration/web/chunks/chunk-KU7O6MEX.js +2 -0
  67. package/bundles/ragents.orchestration/web/chunks/chunk-KU7O6MEX.js.map +7 -0
  68. package/bundles/ragents.orchestration/web/classes.json +1 -1
  69. package/bundles/ragents.orchestration/web/exports/web/program-slot.js +1 -1
  70. package/bundles/ragents.orchestration/web/index.js +10 -18
  71. package/bundles/ragents.orchestration/web/index.js.map +4 -4
  72. package/bundles/ragents.overseer/ragents-bundle.json +3 -3
  73. package/bundles/ragents.overseer/server/index.js +0 -1
  74. package/bundles/ragents.overseer/server/index.js.map +2 -2
  75. package/bundles/ragents.processes/ragents-bundle.json +2 -2
  76. package/bundles/ragents.product/ragents-bundle.json +2 -2
  77. package/bundles/ragents.profile-distribution/ragents-bundle.json +2 -2
  78. package/bundles/ragents.reference/ragents-bundle.json +3 -3
  79. package/bundles/ragents.reference/run-scripts/balcony-wizard/RUN.md +1 -1
  80. package/bundles/ragents.reference/run-scripts/balcony-wizard/src/server.ts +1 -2
  81. package/bundles/ragents.reference/run-scripts/balcony-wizard/tests/program.test.ts +6 -7
  82. package/bundles/ragents.reference/run-scripts/conversation-circle/RUN.md +3 -3
  83. package/bundles/ragents.reference/run-scripts/conversation-circle/src/server.ts +3 -13
  84. package/bundles/ragents.reference/run-scripts/conversation-circle/tests/helpers.ts +1 -1
  85. package/bundles/ragents.reference/run-scripts/conversation-circle/tests/program.test.ts +1 -6
  86. package/bundles/ragents.reference/run-scripts/learning-afternoon/src/server.ts +1 -15
  87. package/bundles/ragents.reference/run-scripts/learning-afternoon/tests/program.test.ts +1 -1
  88. package/bundles/ragents.reference/run-scripts/moderated-round/tests/helpers.ts +1 -1
  89. package/bundles/ragents.reference/run-scripts/quick-note/RUN.md +1 -1
  90. package/bundles/ragents.reference/run-scripts/quick-note/src/server.ts +1 -2
  91. package/bundles/ragents.reference/run-scripts/quick-note/tests/program.test.ts +0 -2
  92. package/bundles/ragents.reference/run-scripts/run-roster/RUN.md +2 -2
  93. package/bundles/ragents.reference/run-scripts/run-roster/src/server.ts +1 -2
  94. package/bundles/ragents.reference/run-scripts/run-roster/tests/program.test.ts +0 -2
  95. package/bundles/ragents.reference/run-scripts/shared-actor-list/src/server.ts +1 -1
  96. package/bundles/ragents.reference/run-scripts/shared-actor-list/tests/helpers.ts +1 -1
  97. package/bundles/ragents.reference/run-scripts/word-game/src/contract.ts +1 -1
  98. package/bundles/ragents.reference/run-scripts/word-game/src/server.ts +0 -1
  99. package/bundles/ragents.reference/run-scripts/word-game/tests/program.test.ts +1 -2
  100. package/bundles/ragents.reference/skills/80-actor-text-analysis/SKILL.md +1 -1
  101. package/bundles/ragents.reference/skills/90-actor-notes/SKILL.md +1 -1
  102. package/bundles/ragents.todo/ragents-bundle.json +2 -2
  103. package/bundles/ragents.transcript/ragents-bundle.json +2 -2
  104. package/bundles/ragents.watch/ragents-bundle.json +2 -2
  105. package/bundles/ragents.workspace/ragents-bundle.json +2 -2
  106. package/package.json +8 -8
  107. package/packages/agent/dist/core/agent-settings.d.ts +1 -1
  108. package/packages/agent/src/core/agent-settings.ts +2 -2
  109. package/packages/ai/dist/types.d.ts +2 -1
  110. package/packages/ai/src/api/ai-sdk.ts +15 -2
  111. package/packages/ai/src/types.ts +2 -1
  112. package/packages/ragents/src/runtime/journal.ts +4 -0
  113. package/plugins/ragents.actor-programs/prompt.hbs +4 -5
  114. package/plugins/ragents.actor-programs/server/access-projections.ts +1 -1
  115. package/plugins/ragents.actor-programs/server/index.ts +0 -2
  116. package/plugins/ragents.actor-programs/server/runtime.ts +2 -10
  117. package/plugins/ragents.actor-programs/web/ActorViewFrame.tsx +5 -20
  118. package/plugins/ragents.actor-programs/web/AppsPanel.tsx +3 -79
  119. package/plugins/ragents.actor-programs/web/EmbeddedApps.tsx +0 -9
  120. package/plugins/ragents.actor-programs/web/api.ts +0 -20
  121. package/plugins/ragents.actor-programs/web/context.ts +0 -3
  122. package/plugins/ragents.actor-programs/web/index.tsx +0 -9
  123. package/plugins/ragents.orchestration/ragents-plugin.json +1 -2
  124. package/plugins/ragents.orchestration/server/index.ts +1 -11
  125. package/plugins/ragents.orchestration/web/ActorChat.tsx +1 -1
  126. package/plugins/ragents.orchestration/web/ActorChatControls.tsx +1 -1
  127. package/plugins/ragents.orchestration/web/FlowInspector.tsx +2 -4
  128. package/plugins/ragents.orchestration/web/InspectionPanel.tsx +21 -0
  129. package/plugins/ragents.orchestration/web/index.tsx +13 -9
  130. package/plugins/ragents.orchestration/web/program-slot.ts +0 -3
  131. package/plugins/ragents.orchestration/web/run-panel/AddresseeControl.tsx +15 -36
  132. package/plugins/ragents.orchestration/web/run-panel/RunPanel.tsx +76 -451
  133. package/plugins/ragents.orchestration/web/run-panel/run-panel-actors.ts +0 -27
  134. package/plugins/ragents.orchestration/web/run-panel/run-panel-state.ts +7 -40
  135. package/plugins/ragents.overseer/server/coordinator-prompt.ts +0 -1
  136. package/plugins/ragents.reference/examples.ts +1 -2
  137. package/plugins/ragents.reference/run-scripts/balcony-wizard/RUN.md +1 -1
  138. package/plugins/ragents.reference/run-scripts/balcony-wizard/src/server.ts +1 -2
  139. package/plugins/ragents.reference/run-scripts/balcony-wizard/tests/program.test.ts +6 -7
  140. package/plugins/ragents.reference/run-scripts/conversation-circle/RUN.md +3 -3
  141. package/plugins/ragents.reference/run-scripts/conversation-circle/src/server.ts +3 -13
  142. package/plugins/ragents.reference/run-scripts/conversation-circle/tests/helpers.ts +1 -1
  143. package/plugins/ragents.reference/run-scripts/conversation-circle/tests/program.test.ts +1 -6
  144. package/plugins/ragents.reference/run-scripts/learning-afternoon/src/server.ts +1 -15
  145. package/plugins/ragents.reference/run-scripts/learning-afternoon/tests/program.test.ts +1 -1
  146. package/plugins/ragents.reference/run-scripts/moderated-round/tests/helpers.ts +1 -1
  147. package/plugins/ragents.reference/run-scripts/quick-note/RUN.md +1 -1
  148. package/plugins/ragents.reference/run-scripts/quick-note/src/server.ts +1 -2
  149. package/plugins/ragents.reference/run-scripts/quick-note/tests/program.test.ts +0 -2
  150. package/plugins/ragents.reference/run-scripts/run-roster/RUN.md +2 -2
  151. package/plugins/ragents.reference/run-scripts/run-roster/src/server.ts +1 -2
  152. package/plugins/ragents.reference/run-scripts/run-roster/tests/program.test.ts +0 -2
  153. package/plugins/ragents.reference/run-scripts/shared-actor-list/src/server.ts +1 -1
  154. package/plugins/ragents.reference/run-scripts/shared-actor-list/tests/helpers.ts +1 -1
  155. package/plugins/ragents.reference/run-scripts/word-game/src/contract.ts +1 -1
  156. package/plugins/ragents.reference/run-scripts/word-game/src/server.ts +0 -1
  157. package/plugins/ragents.reference/run-scripts/word-game/tests/program.test.ts +1 -2
  158. package/plugins/ragents.reference/skills/80-actor-text-analysis/SKILL.md +1 -1
  159. package/plugins/ragents.reference/skills/90-actor-notes/SKILL.md +1 -1
  160. package/plugins/ragents.reference/walkthroughs.ts +13 -14
  161. package/apps/web/dist/assets/highlighted-body-KPVGNVTW-BwD4uYEe.js +0 -1
  162. package/apps/web/dist/assets/main-KBrc5Q77.js +0 -11
  163. package/apps/web/dist/assets/mermaid-HWGCJPDP-CSCkaArr.js +0 -608
  164. package/apps/web/dist/assets/runPanel-BjG5NBKm.js +0 -26
  165. package/apps/web/src/App.tsx +0 -318
  166. package/apps/web/src/SessionList.tsx +0 -157
  167. package/apps/web/src/SurfaceShortcuts.tsx +0 -60
  168. package/apps/web/src/WorkspacePanel.tsx +0 -309
  169. package/apps/web/src/run-panel.tsx +0 -52
  170. package/bundles/ragents.orchestration/server/chunks/chunk-QS3WJ3D7.js +0 -11
  171. package/bundles/ragents.orchestration/server/chunks/chunk-QS3WJ3D7.js.map +0 -7
  172. package/bundles/ragents.orchestration/server/exports/server/contract.js +0 -9
  173. package/bundles/ragents.orchestration/server/exports/server/contract.js.map +0 -7
  174. package/bundles/ragents.orchestration/surface.hbs +0 -39
  175. package/bundles/ragents.orchestration/web/chunks/chunk-CFMJD5ZI.js +0 -2
  176. package/bundles/ragents.orchestration/web/chunks/chunk-CFMJD5ZI.js.map +0 -7
  177. package/bundles/ragents.orchestration/web/chunks/chunk-HOBLI364.js +0 -2
  178. package/bundles/ragents.orchestration/web/chunks/chunk-HOBLI364.js.map +0 -7
  179. package/bundles/ragents.orchestration/web/chunks/chunk-UCIMT2R4.js +0 -2
  180. package/bundles/ragents.orchestration/web/chunks/chunk-UCIMT2R4.js.map +0 -7
  181. package/bundles/ragents.orchestration/web/chunks/chunk-XGPPQCZR.js +0 -2
  182. package/bundles/ragents.orchestration/web/chunks/chunk-XGPPQCZR.js.map +0 -7
  183. package/bundles/ragents.orchestration/web/exports/web/surface-entities.js +0 -2
  184. package/bundles/ragents.orchestration/web/exports/web/surface-entities.js.map +0 -7
  185. package/bundles/ragents.orchestration/web/exports/web/tile-docking.js +0 -2
  186. package/bundles/ragents.orchestration/web/exports/web/tile-docking.js.map +0 -7
  187. package/plugins/ragents.actor-programs/web/ExpandIcon.tsx +0 -5
  188. package/plugins/ragents.actor-programs/web/FullscreenHost.tsx +0 -31
  189. package/plugins/ragents.orchestration/contract.ts +0 -51
  190. package/plugins/ragents.orchestration/server/contract.ts +0 -14
  191. package/plugins/ragents.orchestration/server/surface-tool.ts +0 -198
  192. package/plugins/ragents.orchestration/surface.hbs +0 -39
  193. package/plugins/ragents.orchestration/tiled-layout.ts +0 -55
  194. package/plugins/ragents.orchestration/web/ActorChatPreview.tsx +0 -29
  195. package/plugins/ragents.orchestration/web/ActorShortcut.tsx +0 -74
  196. package/plugins/ragents.orchestration/web/ActorSurfaceControls.tsx +0 -130
  197. package/plugins/ragents.orchestration/web/ActorTile.tsx +0 -23
  198. package/plugins/ragents.orchestration/web/Center.tsx +0 -133
  199. package/plugins/ragents.orchestration/web/SurfaceTiles.tsx +0 -47
  200. package/plugins/ragents.orchestration/web/TiledSurface.tsx +0 -280
  201. package/plugins/ragents.orchestration/web/actor-header-settings.ts +0 -41
  202. package/plugins/ragents.orchestration/web/run-panel/RunPanelSettings.tsx +0 -50
  203. package/plugins/ragents.orchestration/web/run-panel/run-panel-settings.ts +0 -47
  204. package/plugins/ragents.orchestration/web/run-panel/sheet-status.ts +0 -30
  205. package/plugins/ragents.orchestration/web/surface-entities.ts +0 -21
  206. package/plugins/ragents.orchestration/web/surface-view-settings.ts +0 -42
  207. package/plugins/ragents.orchestration/web/tile-docking.ts +0 -105
  208. package/plugins/ragents.orchestration/web/tiled-view-settings.ts +0 -74
  209. /package/apps/web/dist/assets/{mermaid-HWGCJPDP-BPn4aV2r.css → main-BPn4aV2r.css} +0 -0
@@ -1,12 +1,12 @@
1
1
  import { createClipboardReader, installClipboardBridge } from "./clipboard";
2
2
  import { installKeyboardBridge } from "./keyboard";
3
- import { isClipboardRunPanelMessage, isRunPanelClipboardMessage, isRunPanelKeyboardMessage, type ClipboardRunPanelMessage, type RunPanelKeyboardMessage } from "./host-contract";
3
+ import { isClipboardRunPanelMessage, isRunPanelClipboardMessage, isRunPanelKeyboardMessage, type ClipboardContent, type ClipboardRunPanelMessage, type RunPanelKeyboardMessage } from "./host-contract";
4
4
 
5
5
  export { keyboardMessage } from "./keyboard";
6
6
  export { isRunPanelKeyboardMessage } from "./host-contract";
7
7
 
8
8
  interface InputTransport {
9
- readClipboard: () => Promise<string>;
9
+ readClipboard: () => Promise<ClipboardContent>;
10
10
  keyboard: (message: RunPanelKeyboardMessage) => void;
11
11
  }
12
12
 
@@ -44,22 +44,30 @@ export function relayFrameInput(browser: Window, value: unknown, reply: (message
44
44
  if (!transport) return true;
45
45
  const message = value.message;
46
46
  if (isRunPanelKeyboardMessage(message)) transport.keyboard(message);
47
- else if (isRunPanelClipboardMessage(message)) void transport.readClipboard().then((text) => reply({ type: "clipboardText", id: message.id, text }));
47
+ else if (isRunPanelClipboardMessage(message)) {
48
+ const frame = browser.document.activeElement;
49
+ void transport.readClipboard().then((content) => {
50
+ if (transportOf(browser) === transport && frame?.tagName === "IFRAME" && frame.isConnected) {
51
+ (frame as HTMLIFrameElement).focus({ preventScroll: true });
52
+ }
53
+ reply({ type: "clipboardContent", id: message.id, ...content });
54
+ });
55
+ }
48
56
  return true;
49
57
  }
50
58
 
51
59
  export function installFrameInputBridge(browser: Window, port: MessagePort): () => void {
52
- const pending = new Map<string, (text: string) => void>();
60
+ const pending = new Map<string, (content: ClipboardContent) => void>();
53
61
  const onMessage = ({ data }: MessageEvent) => {
54
62
  if (!isClipboardRunPanelMessage(data)) return;
55
63
  const settle = pending.get(data.id);
56
64
  pending.delete(data.id);
57
- settle?.(data.text);
65
+ settle?.({ text: data.text, files: data.files });
58
66
  };
59
67
  port.addEventListener("message", onMessage);
60
68
  const send = (message: unknown) => port.postMessage({ type: inputType, version: 1, message });
61
69
  const dispose = installInputTransport(browser, {
62
- readClipboard: () => new Promise<string>((resolve) => {
70
+ readClipboard: () => new Promise<ClipboardContent>((resolve) => {
63
71
  const id = crypto.randomUUID();
64
72
  pending.set(id, resolve);
65
73
  send({ type: "clipboardRead", id });
@@ -69,7 +77,7 @@ export function installFrameInputBridge(browser: Window, port: MessagePort): ()
69
77
  return () => {
70
78
  dispose();
71
79
  port.removeEventListener("message", onMessage);
72
- pending.forEach((settle) => settle(""));
80
+ pending.forEach((settle) => settle({ text: "", files: [] }));
73
81
  pending.clear();
74
82
  };
75
83
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": 5,
3
3
  "id": "ragents.activity",
4
- "api": 7,
4
+ "api": 10,
5
5
  "hostNames": {
6
6
  "server": {},
7
7
  "web": {
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "revision": "b7b04d050f5f4bcb0980880167b8e2cdd3ad533ba07f589dd0de471b9e55c0fd",
26
- "sourceRevision": "51444903dfadf6f23f55ad0369575949aec7fd1696b5f34450834d06a3fd23ed",
26
+ "sourceRevision": "f3b70fc31ea39e21884ce1862c261e9255a001a771980985700ca8a7024644be",
27
27
  "server": "server/index.js",
28
28
  "web": {
29
29
  "entry": "web/index.js",
@@ -68,11 +68,10 @@ The actor enforces completion and extensions; see learning-afternoon.
68
68
  Use `FlowDiagram` for other graphs (star layout, fit, actions). Keep local IDs stable.
69
69
  See `controls`. For custom SVG use `SvgEdge`, Tailwind utilities, responsive `viewBox` and
70
70
  accessible descriptions.
71
- Address view visibility with `package-name/view-key`, `@handle/view-key` or a unique title;
72
- a tile uses the same names with the `app:` prefix.
73
- The host sizes the tile and offers the full view. Views appear as tiles; owner cards are not
74
- placed by themselves but stay in the Actors list. Personal actor visibility is separate from
75
- `actor_view_set_visibility` and cannot be changed by layouts.
71
+ Address view visibility with `package-name/view-key`, `@handle/view-key` or a unique title.
72
+ Visible apps enter the catalog automatically: browser tabs beside Chat, editor tabs in VS Code.
73
+ The host sizes each view. Use the addressee selector to inspect an app's owner.
74
+ `actor_view_set_visibility` controls whether a view is available.
76
75
 
77
76
  Tests call `program.functions.<name>(input, context)` or `program.onInput(input, context)`.
78
77
  `createTestContext` from `@ragents/server/testing` supplies state and explicit typed `functions` mocks.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": 5,
3
3
  "id": "ragents.actor-programs",
4
- "api": 7,
4
+ "api": 10,
5
5
  "hostNames": {
6
6
  "server": {
7
7
  "@ragents/engine": [
@@ -130,8 +130,7 @@
130
130
  "isRecord"
131
131
  ],
132
132
  "@ragents/web/PluginRegistry": [
133
- "pluginRoutePrefixFrom",
134
- "useSurfaceController"
133
+ "pluginRoutePrefixFrom"
135
134
  ],
136
135
  "@ragents/web/rpc": [
137
136
  "rpc"
@@ -151,19 +150,10 @@
151
150
  "@ragents/web/theme": [
152
151
  "useResolvedTheme"
153
152
  ],
154
- "@ragents/web/Toolbar": [
155
- "ToolbarCopy",
156
- "ToolbarItem",
157
- "ToolbarLabel",
158
- "ToolbarText"
159
- ],
160
153
  "@ragents/web/ui": [
161
154
  "Alert",
162
155
  "Badge",
163
156
  "Button",
164
- "Dialog",
165
- "DialogContent",
166
- "DialogTitle",
167
157
  "Empty",
168
158
  "EmptyContent",
169
159
  "EmptyDescription",
@@ -194,8 +184,8 @@
194
184
  ]
195
185
  }
196
186
  },
197
- "revision": "15fc5afb9aac414335069c28989cae4fa95fec8a2937584f8497a42ce01ffaba",
198
- "sourceRevision": "1e6b4725db96bd433b77a1f09f751a41152f77d2d394736bc51886b32ccdd691",
187
+ "revision": "bb10a453f9f7c921aa038099c5d16044ffbfe8ab7beb8cbb595b075a26fe8587",
188
+ "sourceRevision": "aaf55fd643f2aa05cc5bd8816825bb0c4bd6b2b753e44234e2a1bf640ccbb4a9",
199
189
  "server": "server/index.js",
200
190
  "web": {
201
191
  "entry": "web/index.js",
@@ -5,7 +5,6 @@ const require = __ragentsCreateRequire(import.meta.url);
5
5
  import path3 from "node:path";
6
6
  import { runtimeProviderToken as runtimeProviderToken2, runGuardToken } from "@ragents/host/ragents/host-services.js";
7
7
  import { askServiceToken } from "@ragents/plugins/ragents.ask/server/contract";
8
- import { surfacePlacementToken } from "@ragents/plugins/ragents.orchestration/server/contract";
9
8
 
10
9
  // server/agent-tools.ts
11
10
  import { ToolRegistry } from "@ragents/engine";
@@ -1443,9 +1442,6 @@ var ActorProgramRuntime = class {
1443
1442
  const recorded = this.#script(runId).packages[handle];
1444
1443
  if (!recorded)
1445
1444
  throw new Error(`The package ${handle} was not installed by a run script.`);
1446
- const view = program.views[0];
1447
- if (start.embedded && view)
1448
- this.#options.placeView(this.operatorContext(runId, "place"), runId, `app:${view.id}`);
1449
1445
  const state = this.#script(runId);
1450
1446
  const record2 = state.packages[handle];
1451
1447
  const count = record2.count + 1;
@@ -1694,7 +1690,6 @@ var ActorProgramRuntime = class {
1694
1690
  key: view.id,
1695
1691
  title: view.title ?? pkg.title,
1696
1692
  visible: previous?.views.find((item) => item.key === view.id)?.visible ?? true,
1697
- placements: [{ kind: "canvas", anchorActorId: actorId }],
1698
1693
  html: `<!doctype html><html class="${FRAME_DOCUMENT_CLASS}"><head><meta charset="utf-8"></head><body class="${FRAME_BODY_CLASS}"><div id="root" class="${FRAME_ROOT_CLASS}"></div></body></html>`,
1699
1694
  styles,
1700
1695
  clientFile
@@ -1829,9 +1824,6 @@ var ActorProgramRuntime = class {
1829
1824
  const actor = this.resolveActor(runId, context.actorId, `@${name2}`);
1830
1825
  definition.actorId = actor.id;
1831
1826
  definition.actorHandle = actor.handle;
1832
- for (const view of definition.views)
1833
- for (const placement of view.placements)
1834
- placement.anchorActorId = actor.id;
1835
1827
  for (const fn of definition.functions)
1836
1828
  if (fn.tool?.targets)
1837
1829
  fn.tool.targets = fn.tool.targets.map((target) => target === "pending" ? actor.id : target);
@@ -1888,7 +1880,6 @@ var ActorProgramRuntime = class {
1888
1880
  description: program.description,
1889
1881
  revision: program.revision,
1890
1882
  actions: program.functions.map(({ id, label, description, confirmation }) => ({ id, label, description, confirmation })),
1891
- placements: view.placements,
1892
1883
  visible: view.visible,
1893
1884
  state: this.data(runId, program.actorId),
1894
1885
  invocations: this.#invocations(runId).invocations.filter((invocation) => invocation.actorId === program.actorId && invocation.revision === program.revision)
@@ -2435,7 +2426,7 @@ var visibleProgram = (state) => {
2435
2426
  if (!program) return state;
2436
2427
  const views = Array.isArray(program.views) ? program.views.map((value) => {
2437
2428
  const view = record(value);
2438
- return view ? { id: view.id, key: view.key, title: view.title, visible: view.visible, placements: view.placements } : value;
2429
+ return view ? { id: view.id, key: view.key, title: view.title, visible: view.visible } : value;
2439
2430
  }) : [];
2440
2431
  return {
2441
2432
  version: 1,
@@ -2470,10 +2461,7 @@ var actorProgramsPlugin = (pluginHost) => ({
2470
2461
  const script = pluginHost.startEntries.scriptPackage(entryId);
2471
2462
  return !script ? void 0 : script.handle === name2 ? script.files : script.programs.find((program) => program.name === name2)?.files;
2472
2463
  },
2473
- sharedPackage: (name2) => pluginHost.actorPackages.get(name2),
2474
- placeView: (context, runId, entity) => {
2475
- host.service(surfacePlacementToken).place(context, runId, { entity });
2476
- }
2464
+ sharedPackage: (name2) => pluginHost.actorPackages.get(name2)
2477
2465
  });
2478
2466
  host.provide(actorProgramsToken, runtime);
2479
2467
  const diagnostics = createProjectDiagnostics({