@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.
- 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/agent/src/core/agent-settings.ts +2 -2
- package/packages/ai/dist/types.d.ts +2 -1
- package/packages/ai/src/api/ai-sdk.ts +15 -2
- package/packages/ai/src/types.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,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<
|
|
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))
|
|
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, (
|
|
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<
|
|
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":
|
|
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": "
|
|
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
|
-
|
|
73
|
-
The host sizes
|
|
74
|
-
|
|
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":
|
|
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": "
|
|
198
|
-
"sourceRevision": "
|
|
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
|
|
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({
|