@agimon-ai/po-session 0.0.0-alpha.194 → 0.0.0-alpha.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -149
- package/dist/extensions/native.mjs +14 -11
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/web.mjs +15 -12
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/package.json +12 -12
package/LICENSE
CHANGED
|
@@ -1,149 +1,21 @@
|
|
|
1
|
-
License
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
other Organization. Use by an individual in the course of employment
|
|
23
|
-
or engagement by an Organization is use by that Organization.
|
|
24
|
-
|
|
25
|
-
(b) Small Organization Use. Use by or on behalf of an Organization whose
|
|
26
|
-
Annual Revenue is less than USD 1,000,000.
|
|
27
|
-
|
|
28
|
-
(c) Non-profit, Education and Research Use. Use, regardless of Annual
|
|
29
|
-
Revenue, by (i) an Organization registered or recognized as a
|
|
30
|
-
non-profit or charitable organization under the laws of its
|
|
31
|
-
jurisdiction, for its non-profit purposes; (ii) an accredited school,
|
|
32
|
-
college, or university, for teaching, learning, or academic research;
|
|
33
|
-
or (iii) a publicly funded research institution, for its research.
|
|
34
|
-
|
|
35
|
-
(d) Service Provider Use. Use by a consultant, contractor, agency, or other
|
|
36
|
-
service provider, regardless of its own Annual Revenue, solely to
|
|
37
|
-
build, deploy, host, operate, or support the Licensed Work for a client
|
|
38
|
-
whose own use would be Eligible Use under (a), (b), or (c). A service
|
|
39
|
-
provider's use for its own purposes is Eligible Use only if the service
|
|
40
|
-
provider itself qualifies under (b) or (c).
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Hosted services. Offering the Licensed Work to third parties as a hosted
|
|
44
|
-
or managed service whose primary value is the Licensed Work is Eligible
|
|
45
|
-
Use only if each such third party's own use would be Eligible Use.
|
|
46
|
-
|
|
47
|
-
Definitions. "Organization" means any company, partnership, sole
|
|
48
|
-
proprietorship, trust, association, government body, or other entity, and
|
|
49
|
-
includes an individual acting in a business or professional capacity.
|
|
50
|
-
"Affiliate" means any entity that directly or indirectly controls, is
|
|
51
|
-
controlled by, or is under common control with an Organization, where
|
|
52
|
-
"control" means ownership of more than 50% of the voting interests of an
|
|
53
|
-
entity or the power to direct its management and policies by contract or
|
|
54
|
-
otherwise. "Annual Revenue" means the total gross revenue of an
|
|
55
|
-
Organization and all of its Affiliates combined, from all sources and
|
|
56
|
-
whether or not related to the Licensed Work, for its most recently
|
|
57
|
-
completed fiscal year, or, if it has not completed a fiscal year, for the
|
|
58
|
-
twelve months before the use (or since its formation, if shorter),
|
|
59
|
-
converted into US dollars at the average exchange rate for that period.
|
|
60
|
-
Proceeds of equity or debt financing are not revenue.
|
|
61
|
-
|
|
62
|
-
Threshold. If an Organization stops qualifying under (b), its existing
|
|
63
|
-
production use remains Eligible Use for 90 days after it stops
|
|
64
|
-
qualifying, after which it must obtain a commercial license or stop
|
|
65
|
-
production use. Use that was Eligible Use when it occurred never requires
|
|
66
|
-
a commercial license after the fact.
|
|
67
|
-
Change Date: Four years from the date a version of the Licensed Work
|
|
68
|
-
is first publicly released by the Licensor.
|
|
69
|
-
Change License: Apache License, Version 2.0
|
|
70
|
-
|
|
71
|
-
For information about alternative licensing arrangements for the Licensed
|
|
72
|
-
Work, please visit: https://agimon.ai/licensing
|
|
73
|
-
|
|
74
|
-
Notice
|
|
75
|
-
|
|
76
|
-
The Business Source License (this document, or the "License") is not an Open
|
|
77
|
-
Source license. However, the Licensed Work will eventually be made available
|
|
78
|
-
under an Open Source License, as stated in this License.
|
|
79
|
-
|
|
80
|
-
-----------------------------------------------------------------------------
|
|
81
|
-
|
|
82
|
-
Business Source License 1.1
|
|
83
|
-
|
|
84
|
-
Terms
|
|
85
|
-
|
|
86
|
-
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
87
|
-
works, redistribute, and make non-production use of the Licensed Work. The
|
|
88
|
-
Licensor may make an Additional Use Grant, above, permitting limited
|
|
89
|
-
production use.
|
|
90
|
-
|
|
91
|
-
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
92
|
-
available distribution of a specific version of the Licensed Work under this
|
|
93
|
-
License, whichever comes first, the Licensor hereby grants you rights under
|
|
94
|
-
the terms of the Change License, and the rights granted in the paragraph
|
|
95
|
-
above terminate.
|
|
96
|
-
|
|
97
|
-
If your use of the Licensed Work does not comply with the requirements
|
|
98
|
-
currently in effect as described in this License, you must purchase a
|
|
99
|
-
commercial license from the Licensor, its affiliated entities, or authorized
|
|
100
|
-
resellers, or you must refrain from using the Licensed Work.
|
|
101
|
-
|
|
102
|
-
All copies of the original and modified Licensed Work, and derivative works
|
|
103
|
-
of the Licensed Work, are subject to this License. This License applies
|
|
104
|
-
separately for each version of the Licensed Work and the Change Date may vary
|
|
105
|
-
for each version of the Licensed Work released by Licensor.
|
|
106
|
-
|
|
107
|
-
You must conspicuously display this License on each original or modified copy
|
|
108
|
-
of the Licensed Work. If you receive the Licensed Work in original or
|
|
109
|
-
modified form from a third party, the terms and conditions set forth in this
|
|
110
|
-
License apply to your use of that work.
|
|
111
|
-
|
|
112
|
-
Any use of the Licensed Work in violation of this License will automatically
|
|
113
|
-
terminate your rights under this License for the current and all other
|
|
114
|
-
versions of the Licensed Work.
|
|
115
|
-
|
|
116
|
-
This License does not grant you any right in any trademark or logo of
|
|
117
|
-
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
118
|
-
Licensor as expressly required by this License).
|
|
119
|
-
|
|
120
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
121
|
-
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
122
|
-
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
123
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
124
|
-
TITLE.
|
|
125
|
-
|
|
126
|
-
MariaDB hereby grants you permission to use this License’s text to license
|
|
127
|
-
your works, and to refer to it using the trademark “Business Source License”,
|
|
128
|
-
as long as you comply with the Covenants of Licensor below.
|
|
129
|
-
|
|
130
|
-
Covenants of Licensor
|
|
131
|
-
|
|
132
|
-
In consideration of the right to use this License’s text and the “Business
|
|
133
|
-
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
|
134
|
-
other recipients of the licensed work to be provided by Licensor:
|
|
135
|
-
|
|
136
|
-
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
137
|
-
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
138
|
-
where “compatible” means that software provided under the Change License can
|
|
139
|
-
be included in a program with software provided under GPL Version 2.0 or a
|
|
140
|
-
later version. Licensor may specify additional Change Licenses without
|
|
141
|
-
limitation.
|
|
142
|
-
|
|
143
|
-
2. To either: (a) specify an additional grant of rights to use that does not
|
|
144
|
-
impose any additional restriction on the right granted in this License, as
|
|
145
|
-
the Additional Use Grant; or (b) insert the text “None”.
|
|
146
|
-
|
|
147
|
-
3. To specify a Change Date.
|
|
148
|
-
|
|
149
|
-
4. Not to modify this License in any other way.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agimon Pty Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineFill, defineHostStore, defineNativePlugin, defineToolRenderer, defineWebLifecycle } from "@agimon-ai/po-core/native";
|
|
1
|
+
import { defineFill, defineHostStore, defineNativePlugin, defineToolRenderer, defineWebLifecycle, useT } from "@agimon-ai/po-core/native";
|
|
2
2
|
import { View } from "react-native-unistyles/components/native/View";
|
|
3
3
|
import { Text } from "react-native-unistyles/components/native/Text";
|
|
4
4
|
import { Button, Dot, EmptyState, Input, ListRow, MessageIcon, MessageItem, MessageItemBody, MessageItemHeader, MessageItemStatus, SearchIcon, SheetBody, SheetDescription, SheetFooter, fontOf, resultTextLines, toolTone } from "@agimon-ai/po-native-components";
|
|
@@ -97,6 +97,7 @@ const TONE = {
|
|
|
97
97
|
};
|
|
98
98
|
/** The Insert sheet page: lists the computer's live sessions and steers the composer's text into one. */
|
|
99
99
|
function SendToSessionPanel({ sessionId, listSessions, takeComposerDraft, appendComposerDraft }) {
|
|
100
|
+
const t = useT();
|
|
100
101
|
const [sessions] = useState(() => listSessions?.() ?? []);
|
|
101
102
|
const [to, setTo] = useState();
|
|
102
103
|
const [busy, setBusy] = useState(false);
|
|
@@ -122,7 +123,7 @@ function SendToSessionPanel({ sessionId, listSessions, takeComposerDraft, append
|
|
|
122
123
|
const state = held.current;
|
|
123
124
|
const text = state.text ?? takeComposerDraft?.() ?? "";
|
|
124
125
|
if (text.trim() === "") {
|
|
125
|
-
setError("Write something to send.");
|
|
126
|
+
setError(t("session.ui.writeSomethingToSend", "Write something to send."));
|
|
126
127
|
return;
|
|
127
128
|
}
|
|
128
129
|
state.text = text;
|
|
@@ -157,6 +158,7 @@ function SendToSessionPanel({ sessionId, listSessions, takeComposerDraft, append
|
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
160
|
function SendToSessionView({ sessions, to, busy, error, onPick, onSend }) {
|
|
161
|
+
const t = useT();
|
|
160
162
|
const [filter, setFilter] = useState("");
|
|
161
163
|
const shown = useMemo(() => {
|
|
162
164
|
const query = filter.trim().toLowerCase();
|
|
@@ -164,7 +166,7 @@ function SendToSessionView({ sessions, to, busy, error, onPick, onSend }) {
|
|
|
164
166
|
}, [filter, sessions]);
|
|
165
167
|
const target = sessions.find((session) => session.id === to);
|
|
166
168
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(SheetBody, { children: [
|
|
167
|
-
/* @__PURE__ */ jsx(SheetDescription, { children: "Send what you typed to another session. It arrives there from you." }),
|
|
169
|
+
/* @__PURE__ */ jsx(SheetDescription, { children: t("session.ui.sendDraftDescription", "Send what you typed to another session. It arrives there from you.") }),
|
|
168
170
|
error === "" ? null : /* @__PURE__ */ jsx(Text, {
|
|
169
171
|
accessibilityRole: "alert",
|
|
170
172
|
style: styles$1.alert,
|
|
@@ -173,19 +175,19 @@ function SendToSessionView({ sessions, to, busy, error, onPick, onSend }) {
|
|
|
173
175
|
sessions.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
174
176
|
size: "compact",
|
|
175
177
|
icon: /* @__PURE__ */ jsx(MessageIcon, { size: 16 }),
|
|
176
|
-
title: "No other session is running",
|
|
177
|
-
description: "Open one, then send."
|
|
178
|
+
title: t("session.ui.noOtherSessionRunning", "No other session is running"),
|
|
179
|
+
description: t("session.ui.openThenSend", "Open one, then send.")
|
|
178
180
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Input, {
|
|
179
|
-
accessibilityLabel: "Filter sessions",
|
|
180
|
-
placeholder: "Filter sessions",
|
|
181
|
+
accessibilityLabel: t("session.ui.filterSessions", "Filter sessions"),
|
|
182
|
+
placeholder: t("session.ui.filterSessions", "Filter sessions"),
|
|
181
183
|
value: filter,
|
|
182
184
|
onChangeText: setFilter
|
|
183
185
|
}), shown.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
184
186
|
size: "compact",
|
|
185
187
|
icon: /* @__PURE__ */ jsx(SearchIcon, { size: 16 }),
|
|
186
|
-
title: "Nothing matches that filter",
|
|
188
|
+
title: t("session.ui.noFilterMatches", "Nothing matches that filter"),
|
|
187
189
|
secondaryAction: {
|
|
188
|
-
label: "Clear filter",
|
|
190
|
+
label: t("session.ui.clearFilter", "Clear filter"),
|
|
189
191
|
onAction: () => setFilter("")
|
|
190
192
|
}
|
|
191
193
|
}) : /* @__PURE__ */ jsx(View, {
|
|
@@ -213,7 +215,7 @@ function SendToSessionView({ sessions, to, busy, error, onPick, onSend }) {
|
|
|
213
215
|
variant: "primary",
|
|
214
216
|
disabled: busy || target === void 0,
|
|
215
217
|
onPress: onSend,
|
|
216
|
-
children: busy ? "Sending…" : target === void 0 ? "Pick a session" :
|
|
218
|
+
children: busy ? t("session.ui.sending", "Sending…") : target === void 0 ? t("session.ui.pickSession", "Pick a session") : t("session.ui.sendToName", "Send to {name}", { name: target.name })
|
|
217
219
|
}) })] });
|
|
218
220
|
}
|
|
219
221
|
const styles$1 = StyleSheet.create((theme) => {
|
|
@@ -289,6 +291,7 @@ function networkActivity({ toolName, args, isError }) {
|
|
|
289
291
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.native.tsx
|
|
290
292
|
/** A network.send, network.ask or network.reply recorded inside an exec. Collapsed to its summary; the body is the result text. */
|
|
291
293
|
function NetworkToolMessage({ args, result, output, running, isError, toolName }) {
|
|
294
|
+
const t = useT();
|
|
292
295
|
const lines = resultTextLines(result, output);
|
|
293
296
|
return /* @__PURE__ */ jsx(MessageItem, {
|
|
294
297
|
tone: toolTone({
|
|
@@ -312,7 +315,7 @@ function NetworkToolMessage({ args, result, output, running, isError, toolName }
|
|
|
312
315
|
style: styles.body,
|
|
313
316
|
children: [running ? /* @__PURE__ */ jsx(MessageItemStatus, {
|
|
314
317
|
tone: "running",
|
|
315
|
-
children: "working"
|
|
318
|
+
children: t("session.ui.working", "working")
|
|
316
319
|
}) : null, lines.map((line, index) => /* @__PURE__ */ jsx(Text, {
|
|
317
320
|
selectable: true,
|
|
318
321
|
style: isError ? styles.error : styles.dim,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.mjs","names":["WebPluginSessionOption","WebPluginSlotProps","Button","Dot","EmptyState","fontOf","Input","ListRow","MessageIcon","SearchIcon","SheetBody","SheetDescription","SheetFooter","useEffect","useMemo","useRef","useState","StyleSheet","sendToSession","TONE","running","waiting","idle","const","SendToSessionPanel","sessionId","listSessions","takeComposerDraft","appendComposerDraft","sessions","to","setTo","busy","setBusy","error","setError","held","text","inFlight","live","giveBack","current","state","undefined","send","Promise","trim","refusal","from","SendToSessionViewProps","onPick","id","onSend","SendToSessionView","filter","setFilter","shown","query","toLowerCase","session","name","detail","includes","target","find","styles","alert","length","label","onAction","rows","map","index","separator","row","create","theme","small","fontFamily","sans","fontSize","sm","lineHeight","borderTopWidth","hairlineWidth","borderBottomWidth","borderColor","colors","uni__dependencies","paddingHorizontal","spacing","height","backgroundColor","color","dim","red","styles","ToolMessageRenderProps","fontOf","MessageItem","MessageItemBody","MessageItemHeader","MessageItemStatus","resultTextLines","toolTone","PoNativeTheme","StyleSheet","networkSummary","NetworkToolMessage","args","result","output","running","isError","toolName","lines","length","expanded","styles","summary","primary","body","map","line","index","String","error","dim","create","theme","flex","flexDirection","alignItems","minWidth","flexShrink","color","colors","text","fontFamily","sans","fontSize","base","uni__dependencies","gap","spacing","red","fillSendToSession","lifecycleStart","toolNetwork"],"sources":["../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionDelivery.ts","../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.native.ts","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionPanel.native.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.native.tsx","../../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.native.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_lib/networkActivity.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.native.tsx","../../src/extensions/workspaces/sessions/(frontend)/tool/network.native.tsx","../../generated/native.ts"],"sourcesContent":["import type { WebPluginRuntime } from '@agimon-ai/po-core/web';\n\n/**\n * Delivers one send through the started runtime that owns the sending session.\n *\n * DESIGN PATTERNS:\n * - Host-neutral and stateless: the web and native request files each keep\n * their own runtime list (from their own po-core entry) and pass it in.\n * The phone starts one runtime per computer; a send goes through the one\n * that owns the sending session, with that computer's local ids.\n *\n * AVOID:\n * - Value imports from a po-core entry here. Native plugins may not import\n * `po-core/web`, and web plugins may not import `po-core/native`.\n */\n\n/** The runtime that owns `from`, with both ids as its computer knows them; undefined when none does. */\nfunction route(runtimes: readonly WebPluginRuntime[], input: { from: string; to: string }) {\n const owners = runtimes.flatMap((runtime) => {\n try {\n const from = runtime.localSessionId?.(input.from) ?? input.from;\n const to = runtime.localSessionId?.(input.to) ?? input.to;\n // An unqualified id belongs to the computer that would leave it unqualified (the local hub).\n const owns = from !== input.from || (runtime.qualifySessionId?.(input.from) ?? input.from) === input.from;\n return owns ? [{ runtime, from, to }] : [];\n } catch {\n // localSessionId refuses an id of another computer: this runtime does not own the send.\n return [];\n }\n });\n return owners.at(-1);\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport async function deliverToSession(\n runtimes: readonly WebPluginRuntime[],\n input: { from: string; to: string; text: string },\n): Promise<string | undefined> {\n const owner = route(runtimes, input);\n if (!owner) return 'Po is not connected. Your text is kept; try again.';\n try {\n await owner.runtime.invokeServerMethod({\n mount: { scope: 'host' },\n service: 'sessions',\n method: 'sendToSession',\n input: { from: owner.from, to: owner.to, text: input.text },\n });\n return undefined;\n } catch (error) {\n return error instanceof Error && error.message !== '' ? error.message : 'The message was not delivered.';\n }\n}\n","import { defineHostStore, type WebPluginRuntime } from '@agimon-ai/po-core/native';\n\nimport { deliverToSession } from './sendToSessionDelivery';\n\n/**\n * The phone's started runtimes, one per computer, for the send-to-session panel.\n *\n * DESIGN PATTERNS:\n * - The native twin of sendToSessionRequest.ts: a native plugin may import\n * po-core/native only. The phone has no menu-to-overlay handoff, so only the\n * runtime list and the send live here.\n */\n\nconst runtimes = defineHostStore<readonly WebPluginRuntime[]>([]);\n\nexport function startSendToSessionRuntime(runtime: WebPluginRuntime): () => void {\n runtimes.update((current) => [...current, runtime]);\n return () => runtimes.update((current) => current.filter((entry) => entry !== runtime));\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport function sendToSession(input: { from: string; to: string; text: string }): Promise<string | undefined> {\n return deliverToSession(runtimes.store.state, input);\n}\n","import type { WebPluginSessionOption, WebPluginSlotProps } from '@agimon-ai/po-core/native';\nimport {\n Button,\n Dot,\n EmptyState,\n fontOf,\n Input,\n ListRow,\n MessageIcon,\n SearchIcon,\n SheetBody,\n SheetDescription,\n SheetFooter,\n} from '@agimon-ai/po-native-components';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { Text, View } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { sendToSession } from '../../_lib/sendToSessionRequest.native';\n\n/**\n * The phone's \"Send to session…\" page of the composer's Insert sheet: pick a\n * live session, then Send steers what the person typed into it.\n *\n * DESIGN PATTERNS:\n * - The draft is taken only at Send, so opening and leaving the page never\n * touches it. A refused send keeps the taken text for a retry and hands it\n * back to the composer when the page goes away.\n * - The sheet closes when the page appends to the draft; an empty append\n * closes it and leaves the draft alone.\n *\n * AVOID:\n * - Sending on a row tap. On a phone a mis-tap would send; Send is its own button.\n */\n\nconst TONE = { running: 'green', waiting: 'magenta', idle: 'neutral' } as const;\n\n/** The Insert sheet page: lists the computer's live sessions and steers the composer's text into one. */\nexport function SendToSessionPanel({\n sessionId,\n listSessions,\n takeComposerDraft,\n appendComposerDraft,\n}: WebPluginSlotProps) {\n const [sessions] = useState(() => listSessions?.() ?? []);\n const [to, setTo] = useState<string>();\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState('');\n // Text taken from the composer and not yet delivered; `live` is false once the page is gone.\n const held = useRef<{ text?: string; inFlight: boolean; live: boolean }>({ inFlight: false, live: true });\n const giveBack = useRef(appendComposerDraft);\n useEffect(() => {\n giveBack.current = appendComposerDraft;\n }, [appendComposerDraft]);\n useEffect(() => {\n const state = held.current;\n state.live = true;\n return () => {\n state.live = false;\n if (state.text !== undefined && !state.inFlight) giveBack.current(state.text);\n };\n }, []);\n\n const send = async (): Promise<void> => {\n if (to === undefined || sessionId === null) return;\n const state = held.current;\n const text = state.text ?? takeComposerDraft?.() ?? '';\n if (text.trim() === '') {\n setError('Write something to send.');\n return;\n }\n state.text = text;\n state.inFlight = true;\n setBusy(true);\n setError('');\n const refusal = await sendToSession({ from: sessionId, to, text: text.trim() });\n state.inFlight = false;\n if (refusal === undefined) state.text = undefined;\n if (!state.live) {\n if (state.text !== undefined) giveBack.current(state.text);\n return;\n }\n if (refusal === undefined) {\n giveBack.current('');\n return;\n }\n setBusy(false);\n setError(refusal);\n };\n\n return (\n <SendToSessionView\n sessions={sessions}\n to={to}\n busy={busy}\n error={error}\n onPick={setTo}\n onSend={() => void send()}\n />\n );\n}\n\nexport interface SendToSessionViewProps {\n sessions: readonly WebPluginSessionOption[];\n to: string | undefined;\n busy: boolean;\n /** The server's refusal, shown above the list; empty when there is none. */\n error: string;\n onPick: (id: string) => void;\n onSend: () => void;\n}\n\nexport function SendToSessionView({ sessions, to, busy, error, onPick, onSend }: SendToSessionViewProps) {\n const [filter, setFilter] = useState('');\n const shown = useMemo(() => {\n const query = filter.trim().toLowerCase();\n return query === ''\n ? sessions\n : sessions.filter((session) => `${session.name} ${session.detail}`.toLowerCase().includes(query));\n }, [filter, sessions]);\n const target = sessions.find((session) => session.id === to);\n\n return (\n <>\n <SheetBody>\n <SheetDescription>Send what you typed to another session. It arrives there from you.</SheetDescription>\n {error === '' ? null : (\n <Text accessibilityRole=\"alert\" style={styles.alert}>\n {error}\n </Text>\n )}\n {sessions.length === 0 ? (\n <EmptyState\n size=\"compact\"\n icon={<MessageIcon size={16} />}\n title=\"No other session is running\"\n description=\"Open one, then send.\"\n />\n ) : (\n <>\n <Input\n accessibilityLabel=\"Filter sessions\"\n placeholder=\"Filter sessions\"\n value={filter}\n onChangeText={setFilter}\n />\n {shown.length === 0 ? (\n <EmptyState\n size=\"compact\"\n icon={<SearchIcon size={16} />}\n title=\"Nothing matches that filter\"\n secondaryAction={{ label: 'Clear filter', onAction: () => setFilter('') }}\n />\n ) : (\n <View style={styles.rows}>\n {shown.map((session, index) => (\n <View key={session.id}>\n {index > 0 ? <View style={styles.separator} /> : null}\n <ListRow\n accessibilityLabel={`${session.name}, ${session.detail}`}\n selected={session.id === to}\n disabled={busy}\n onPress={() => onPick(session.id)}\n disclosure={false}\n style={styles.row}\n leading={<Dot tone={TONE[session.state]} size=\"md\" />}\n title={session.name}\n description={\n <Text numberOfLines={1} style={styles.detail}>\n {session.detail}\n </Text>\n }\n />\n </View>\n ))}\n </View>\n )}\n </>\n )}\n </SheetBody>\n <SheetFooter>\n <Button variant=\"primary\" disabled={busy || target === undefined} onPress={onSend}>\n {busy ? 'Sending…' : target === undefined ? 'Pick a session' : `Send to ${target.name}`}\n </Button>\n </SheetFooter>\n </>\n );\n}\n\nconst styles = StyleSheet.create((theme) => {\n const small = {\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n };\n return {\n rows: {\n borderTopWidth: StyleSheet.hairlineWidth,\n borderBottomWidth: StyleSheet.hairlineWidth,\n borderColor: theme.colors['border-soft'],\n },\n row: { paddingHorizontal: theme.spacing(1) },\n separator: { height: StyleSheet.hairlineWidth, backgroundColor: theme.colors['border-soft'] },\n detail: { ...small, color: theme.colors.dim },\n alert: { ...small, color: theme.colors.red },\n };\n});\n","import { defineFill } from '@agimon-ai/po-core/native';\n\nimport { SendToSessionPanel } from './_components/SendToSessionPanel.native';\n\n/** The phone's Insert sheet draws `data` as the row and `component` as the page it opens. */\nexport default defineFill({\n data: { title: 'Send to session…', hint: 'Steer another session with what you typed' },\n component: SendToSessionPanel,\n});\n","import { defineWebLifecycle } from '@agimon-ai/po-core/native';\n\nimport { startSendToSessionRuntime } from '../_lib/sendToSessionRequest.native';\n\nexport default defineWebLifecycle(startSendToSessionRuntime);\n","import type { ToolMessageRenderProps } from '@agimon-ai/po-core/web';\n\nconst ACTIVITY_CHARS = 72;\n\nfunction asString(value: unknown): string {\n return typeof value === 'string' ? value : '';\n}\n\nfunction clip(text: string): string {\n const flat = text.replace(/\\s+/g, ' ').trim();\n return flat.length > ACTIVITY_CHARS ? `${flat.slice(0, ACTIVITY_CHARS - 1)}…` : flat;\n}\n\n/** Who a message is for, or what it answers. */\nexport function networkSummary(toolName: string, args: Record<string, unknown>): string {\n const verb = toolName.split('.').at(-1) ?? toolName;\n return toolName === 'network.reply' ? 'reply' : `${verb} ${asString(args.to)}`.trim();\n}\n\n/** One line per outgoing session message: who it went to and what it said. */\nexport function networkActivity({\n toolName,\n args,\n isError,\n}: Pick<ToolMessageRenderProps, 'toolName' | 'args' | 'isError'>): string[] {\n const text = clip(asString(args.text));\n if (isError || !text) return [];\n if (toolName === 'network.reply') return [`Replied \"${text}\"`];\n const to = asString(args.to) || 'session';\n return [`→ ${to}${toolName === 'network.ask' ? ' asks' : ''} \"${text}\"`];\n}\n","import type { ToolMessageRenderProps } from '@agimon-ai/po-core/native';\nimport {\n fontOf,\n MessageItem,\n MessageItemBody,\n MessageItemHeader,\n MessageItemStatus,\n resultTextLines,\n toolTone,\n} from '@agimon-ai/po-native-components';\nimport type { PoNativeTheme } from '@agimon-ai/po-web-components/nativeTheme';\nimport { Text, View } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { networkSummary } from '../_lib/networkActivity';\n\n/** A network.send, network.ask or network.reply recorded inside an exec. Collapsed to its summary; the body is the result text. */\nexport function NetworkToolMessage({ args, result, output, running, isError, toolName }: ToolMessageRenderProps) {\n const lines = resultTextLines(result, output);\n return (\n <MessageItem tone={toolTone({ running, isError })} expandable={lines.length > 0}>\n {({ expanded }) => (\n <>\n <MessageItemHeader title=\"network\">\n <View testID=\"tool-call-network\" style={styles.summary}>\n <Text numberOfLines={1} style={styles.primary}>\n {networkSummary(toolName, args)}\n </Text>\n </View>\n </MessageItemHeader>\n {expanded ? (\n <MessageItemBody testID=\"tool-result-network\" style={styles.body}>\n {running ? <MessageItemStatus tone=\"running\">working</MessageItemStatus> : null}\n {lines.map((line, index) => (\n <Text key={`${String(index)}-${line}`} selectable style={isError ? styles.error : styles.dim}>\n {line}\n </Text>\n ))}\n </MessageItemBody>\n ) : null}\n </>\n )}\n </MessageItem>\n );\n}\n\nconst styles = StyleSheet.create((theme: PoNativeTheme) => ({\n summary: { flex: 1, flexDirection: 'row', alignItems: 'center', minWidth: 0 },\n primary: {\n flexShrink: 1,\n minWidth: 0,\n color: theme.colors.text,\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.base,\n },\n body: { gap: theme.spacing(1) },\n dim: { color: theme.colors.dim, fontFamily: fontOf(theme.fontFamily.sans), fontSize: theme.fontSize.base },\n error: { color: theme.colors.red, fontFamily: fontOf(theme.fontFamily.sans), fontSize: theme.fontSize.base },\n}));\n","import { defineToolRenderer } from '@agimon-ai/po-core/native';\n\nimport { NetworkToolMessage } from './_components/NetworkToolMessage.native';\nimport { networkActivity } from './_lib/networkActivity';\n\n/** The network namespace's recorded calls. Named by hand: the dotted tool names are not a filename. */\nexport default defineToolRenderer({\n tools: ['network.send', 'network.ask', 'network.reply'],\n message: NetworkToolMessage,\n activity: networkActivity,\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineNativePlugin, type WebPluginContributions } from '@agimon-ai/po-core/native';\n\nimport fillSendToSession from '../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.native';\nimport lifecycleStart from '../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.native';\nimport toolNetwork from '../src/extensions/workspaces/sessions/(frontend)/tool/network.native';\n\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T =>\n (value === undefined ? undefined : { ...identity, ...(value as object) }) as T;\n\nexport const nativePlugin = defineNativePlugin({\n id: 'sessions',\n packageName: '@agimon-ai/po-session',\n session: {\n get fills(): WebPluginContributions['fills'] { return [via({ slot: 'composer-menu', id: 'send-to-session' }, fillSendToSession)]; },\n get start(): WebPluginContributions['start'] { return lifecycleStart; },\n get toolRenderers(): WebPluginContributions['toolRenderers'] { return [via({ tools: ['network'] }, toolNetwork)]; },\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,SAAS,MAAM,UAAuC,OAAqC;CAazF,OAZe,SAAS,SAAS,YAAY;EAC3C,IAAI;GACF,MAAM,OAAO,QAAQ,iBAAiB,MAAM,IAAI,KAAK,MAAM;GAC3D,MAAM,KAAK,QAAQ,iBAAiB,MAAM,EAAE,KAAK,MAAM;GAGvD,OADa,SAAS,MAAM,SAAS,QAAQ,mBAAmB,MAAM,IAAI,KAAK,MAAM,UAAU,MAAM,OACvF,CAAC;IAAE;IAAS;I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,EAAE;;;;ACpDF,IAAA,yBAAe,mBAAmB;CAChC,OAAO;EAAC;EAAgB;EAAe;CAAe;CACtD,SAAS;CACT,UAAU;AACZ,CAAC;;;ACHD,MAAM,OAAU,UAAmC,UAChD,UAAU,KAAA,IAAY,KAAA,IAAY;CAAE,GAAG;CAAU,GAAI;AAAiB;AAEzE,MAAa,eAAe,mBAAmB;CAC7C,IAAI;CACJ,aAAa;CACb,SAAS;EACP,IAAI,QAAyC;GAAE,OAAO,CAAC,IAAI;IAAE,MAAM;IAAiB,IAAI;GAAkB,GAAGI,0CAAiB,CAAC;EAAG;EAClI,IAAI,QAAyC;GAAE,OAAOC;EAAgB;EACtE,IAAI,gBAAyD;GAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,GAAGC,sBAAW,CAAC;EAAG;CACpH;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"native.mjs","names":["useT","WebPluginSessionOption","WebPluginSlotProps","Button","Dot","EmptyState","fontOf","Input","ListRow","MessageIcon","SearchIcon","SheetBody","SheetDescription","SheetFooter","useEffect","useMemo","useRef","useState","StyleSheet","sendToSession","TONE","running","waiting","idle","const","SendToSessionPanel","sessionId","listSessions","takeComposerDraft","appendComposerDraft","t","sessions","to","setTo","busy","setBusy","error","setError","held","text","inFlight","live","giveBack","current","state","undefined","send","Promise","trim","refusal","from","SendToSessionViewProps","onPick","id","onSend","SendToSessionView","filter","setFilter","shown","query","toLowerCase","session","name","detail","includes","target","find","styles","alert","length","label","onAction","rows","map","index","separator","row","create","theme","small","fontFamily","sans","fontSize","sm","lineHeight","borderTopWidth","hairlineWidth","borderBottomWidth","borderColor","colors","uni__dependencies","paddingHorizontal","spacing","height","backgroundColor","color","dim","red","styles","useT","ToolMessageRenderProps","fontOf","MessageItem","MessageItemBody","MessageItemHeader","MessageItemStatus","resultTextLines","toolTone","PoNativeTheme","StyleSheet","networkSummary","NetworkToolMessage","args","result","output","running","isError","toolName","t","lines","length","expanded","styles","summary","primary","body","map","line","index","String","error","dim","create","theme","flex","flexDirection","alignItems","minWidth","flexShrink","color","colors","text","fontFamily","sans","fontSize","base","uni__dependencies","gap","spacing","red","fillSendToSession","lifecycleStart","toolNetwork"],"sources":["../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionDelivery.ts","../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.native.ts","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionPanel.native.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.native.tsx","../../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.native.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_lib/networkActivity.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.native.tsx","../../src/extensions/workspaces/sessions/(frontend)/tool/network.native.tsx","../../generated/native.ts"],"sourcesContent":["import type { WebPluginRuntime } from '@agimon-ai/po-core/web';\n\n/**\n * Delivers one send through the started runtime that owns the sending session.\n *\n * DESIGN PATTERNS:\n * - Host-neutral and stateless: the web and native request files each keep\n * their own runtime list (from their own po-core entry) and pass it in.\n * The phone starts one runtime per computer; a send goes through the one\n * that owns the sending session, with that computer's local ids.\n *\n * AVOID:\n * - Value imports from a po-core entry here. Native plugins may not import\n * `po-core/web`, and web plugins may not import `po-core/native`.\n */\n\n/** The runtime that owns `from`, with both ids as its computer knows them; undefined when none does. */\nfunction route(runtimes: readonly WebPluginRuntime[], input: { from: string; to: string }) {\n const owners = runtimes.flatMap((runtime) => {\n try {\n const from = runtime.localSessionId?.(input.from) ?? input.from;\n const to = runtime.localSessionId?.(input.to) ?? input.to;\n // An unqualified id belongs to the computer that would leave it unqualified (the local hub).\n const owns = from !== input.from || (runtime.qualifySessionId?.(input.from) ?? input.from) === input.from;\n return owns ? [{ runtime, from, to }] : [];\n } catch {\n // localSessionId refuses an id of another computer: this runtime does not own the send.\n return [];\n }\n });\n return owners.at(-1);\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport async function deliverToSession(\n runtimes: readonly WebPluginRuntime[],\n input: { from: string; to: string; text: string },\n): Promise<string | undefined> {\n const owner = route(runtimes, input);\n if (!owner) return 'Po is not connected. Your text is kept; try again.';\n try {\n await owner.runtime.invokeServerMethod({\n mount: { scope: 'host' },\n service: 'sessions',\n method: 'sendToSession',\n input: { from: owner.from, to: owner.to, text: input.text },\n });\n return undefined;\n } catch (error) {\n return error instanceof Error && error.message !== '' ? error.message : 'The message was not delivered.';\n }\n}\n","import { defineHostStore, type WebPluginRuntime } from '@agimon-ai/po-core/native';\n\nimport { deliverToSession } from './sendToSessionDelivery';\n\n/**\n * The phone's started runtimes, one per computer, for the send-to-session panel.\n *\n * DESIGN PATTERNS:\n * - The native twin of sendToSessionRequest.ts: a native plugin may import\n * po-core/native only. The phone has no menu-to-overlay handoff, so only the\n * runtime list and the send live here.\n */\n\nconst runtimes = defineHostStore<readonly WebPluginRuntime[]>([]);\n\nexport function startSendToSessionRuntime(runtime: WebPluginRuntime): () => void {\n runtimes.update((current) => [...current, runtime]);\n return () => runtimes.update((current) => current.filter((entry) => entry !== runtime));\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport function sendToSession(input: { from: string; to: string; text: string }): Promise<string | undefined> {\n return deliverToSession(runtimes.store.state, input);\n}\n","import { useT } from '@agimon-ai/po-core/native';\nimport type { WebPluginSessionOption, WebPluginSlotProps } from '@agimon-ai/po-core/native';\nimport {\n Button,\n Dot,\n EmptyState,\n fontOf,\n Input,\n ListRow,\n MessageIcon,\n SearchIcon,\n SheetBody,\n SheetDescription,\n SheetFooter,\n} from '@agimon-ai/po-native-components';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { Text, View } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { sendToSession } from '../../_lib/sendToSessionRequest.native';\n\n/**\n * The phone's \"Send to session…\" page of the composer's Insert sheet: pick a\n * live session, then Send steers what the person typed into it.\n *\n * DESIGN PATTERNS:\n * - The draft is taken only at Send, so opening and leaving the page never\n * touches it. A refused send keeps the taken text for a retry and hands it\n * back to the composer when the page goes away.\n * - The sheet closes when the page appends to the draft; an empty append\n * closes it and leaves the draft alone.\n *\n * AVOID:\n * - Sending on a row tap. On a phone a mis-tap would send; Send is its own button.\n */\n\nconst TONE = { running: 'green', waiting: 'magenta', idle: 'neutral' } as const;\n\n/** The Insert sheet page: lists the computer's live sessions and steers the composer's text into one. */\nexport function SendToSessionPanel({\n sessionId,\n listSessions,\n takeComposerDraft,\n appendComposerDraft,\n}: WebPluginSlotProps) {\n const t = useT();\n const [sessions] = useState(() => listSessions?.() ?? []);\n const [to, setTo] = useState<string>();\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState('');\n // Text taken from the composer and not yet delivered; `live` is false once the page is gone.\n const held = useRef<{ text?: string; inFlight: boolean; live: boolean }>({ inFlight: false, live: true });\n const giveBack = useRef(appendComposerDraft);\n useEffect(() => {\n giveBack.current = appendComposerDraft;\n }, [appendComposerDraft]);\n useEffect(() => {\n const state = held.current;\n state.live = true;\n return () => {\n state.live = false;\n if (state.text !== undefined && !state.inFlight) giveBack.current(state.text);\n };\n }, []);\n\n const send = async (): Promise<void> => {\n if (to === undefined || sessionId === null) return;\n const state = held.current;\n const text = state.text ?? takeComposerDraft?.() ?? '';\n if (text.trim() === '') {\n setError(t('session.ui.writeSomethingToSend', 'Write something to send.'));\n return;\n }\n state.text = text;\n state.inFlight = true;\n setBusy(true);\n setError('');\n const refusal = await sendToSession({ from: sessionId, to, text: text.trim() });\n state.inFlight = false;\n if (refusal === undefined) state.text = undefined;\n if (!state.live) {\n if (state.text !== undefined) giveBack.current(state.text);\n return;\n }\n if (refusal === undefined) {\n giveBack.current('');\n return;\n }\n setBusy(false);\n setError(refusal);\n };\n\n return (\n <SendToSessionView\n sessions={sessions}\n to={to}\n busy={busy}\n error={error}\n onPick={setTo}\n onSend={() => void send()}\n />\n );\n}\n\nexport interface SendToSessionViewProps {\n sessions: readonly WebPluginSessionOption[];\n to: string | undefined;\n busy: boolean;\n /** The server's refusal, shown above the list; empty when there is none. */\n error: string;\n onPick: (id: string) => void;\n onSend: () => void;\n}\n\nexport function SendToSessionView({ sessions, to, busy, error, onPick, onSend }: SendToSessionViewProps) {\n const t = useT();\n const [filter, setFilter] = useState('');\n const shown = useMemo(() => {\n const query = filter.trim().toLowerCase();\n return query === ''\n ? sessions\n : sessions.filter((session) => `${session.name} ${session.detail}`.toLowerCase().includes(query));\n }, [filter, sessions]);\n const target = sessions.find((session) => session.id === to);\n\n return (\n <>\n <SheetBody>\n <SheetDescription>\n {t('session.ui.sendDraftDescription', 'Send what you typed to another session. It arrives there from you.')}\n </SheetDescription>\n {error === '' ? null : (\n <Text accessibilityRole=\"alert\" style={styles.alert}>\n {error}\n </Text>\n )}\n {sessions.length === 0 ? (\n <EmptyState\n size=\"compact\"\n icon={<MessageIcon size={16} />}\n title={t('session.ui.noOtherSessionRunning', 'No other session is running')}\n description={t('session.ui.openThenSend', 'Open one, then send.')}\n />\n ) : (\n <>\n <Input\n accessibilityLabel={t('session.ui.filterSessions', 'Filter sessions')}\n placeholder={t('session.ui.filterSessions', 'Filter sessions')}\n value={filter}\n onChangeText={setFilter}\n />\n {shown.length === 0 ? (\n <EmptyState\n size=\"compact\"\n icon={<SearchIcon size={16} />}\n title={t('session.ui.noFilterMatches', 'Nothing matches that filter')}\n secondaryAction={{ label: t('session.ui.clearFilter', 'Clear filter'), onAction: () => setFilter('') }}\n />\n ) : (\n <View style={styles.rows}>\n {shown.map((session, index) => (\n <View key={session.id}>\n {index > 0 ? <View style={styles.separator} /> : null}\n <ListRow\n accessibilityLabel={`${session.name}, ${session.detail}`}\n selected={session.id === to}\n disabled={busy}\n onPress={() => onPick(session.id)}\n disclosure={false}\n style={styles.row}\n leading={<Dot tone={TONE[session.state]} size=\"md\" />}\n title={session.name}\n description={\n <Text numberOfLines={1} style={styles.detail}>\n {session.detail}\n </Text>\n }\n />\n </View>\n ))}\n </View>\n )}\n </>\n )}\n </SheetBody>\n <SheetFooter>\n <Button variant=\"primary\" disabled={busy || target === undefined} onPress={onSend}>\n {busy\n ? t('session.ui.sending', 'Sending…')\n : target === undefined\n ? t('session.ui.pickSession', 'Pick a session')\n : t('session.ui.sendToName', 'Send to {name}', { name: target.name })}\n </Button>\n </SheetFooter>\n </>\n );\n}\n\nconst styles = StyleSheet.create((theme) => {\n const small = {\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n };\n return {\n rows: {\n borderTopWidth: StyleSheet.hairlineWidth,\n borderBottomWidth: StyleSheet.hairlineWidth,\n borderColor: theme.colors['border-soft'],\n },\n row: { paddingHorizontal: theme.spacing(1) },\n separator: { height: StyleSheet.hairlineWidth, backgroundColor: theme.colors['border-soft'] },\n detail: { ...small, color: theme.colors.dim },\n alert: { ...small, color: theme.colors.red },\n };\n});\n","import { defineFill } from '@agimon-ai/po-core/native';\n\nimport { SendToSessionPanel } from './_components/SendToSessionPanel.native';\n\n/** The phone's Insert sheet draws `data` as the row and `component` as the page it opens. */\nexport default defineFill({\n data: { title: 'Send to session…', hint: 'Steer another session with what you typed' },\n component: SendToSessionPanel,\n});\n","import { defineWebLifecycle } from '@agimon-ai/po-core/native';\n\nimport { startSendToSessionRuntime } from '../_lib/sendToSessionRequest.native';\n\nexport default defineWebLifecycle(startSendToSessionRuntime);\n","import type { ToolMessageRenderProps } from '@agimon-ai/po-core/web';\n\nconst ACTIVITY_CHARS = 72;\n\nfunction asString(value: unknown): string {\n return typeof value === 'string' ? value : '';\n}\n\nfunction clip(text: string): string {\n const flat = text.replace(/\\s+/g, ' ').trim();\n return flat.length > ACTIVITY_CHARS ? `${flat.slice(0, ACTIVITY_CHARS - 1)}…` : flat;\n}\n\n/** Who a message is for, or what it answers. */\nexport function networkSummary(toolName: string, args: Record<string, unknown>): string {\n const verb = toolName.split('.').at(-1) ?? toolName;\n return toolName === 'network.reply' ? 'reply' : `${verb} ${asString(args.to)}`.trim();\n}\n\n/** One line per outgoing session message: who it went to and what it said. */\nexport function networkActivity({\n toolName,\n args,\n isError,\n}: Pick<ToolMessageRenderProps, 'toolName' | 'args' | 'isError'>): string[] {\n const text = clip(asString(args.text));\n if (isError || !text) return [];\n if (toolName === 'network.reply') return [`Replied \"${text}\"`];\n const to = asString(args.to) || 'session';\n return [`→ ${to}${toolName === 'network.ask' ? ' asks' : ''} \"${text}\"`];\n}\n","import { useT } from '@agimon-ai/po-core/native';\nimport type { ToolMessageRenderProps } from '@agimon-ai/po-core/native';\nimport {\n fontOf,\n MessageItem,\n MessageItemBody,\n MessageItemHeader,\n MessageItemStatus,\n resultTextLines,\n toolTone,\n} from '@agimon-ai/po-native-components';\nimport type { PoNativeTheme } from '@agimon-ai/po-web-components/nativeTheme';\nimport { Text, View } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { networkSummary } from '../_lib/networkActivity';\n\n/** A network.send, network.ask or network.reply recorded inside an exec. Collapsed to its summary; the body is the result text. */\nexport function NetworkToolMessage({ args, result, output, running, isError, toolName }: ToolMessageRenderProps) {\n const t = useT();\n const lines = resultTextLines(result, output);\n return (\n <MessageItem tone={toolTone({ running, isError })} expandable={lines.length > 0}>\n {({ expanded }) => (\n <>\n {/* no-untranslated-jsx: ignore - Preserve the technical tool identifier. */}\n <MessageItemHeader title=\"network\">\n <View testID=\"tool-call-network\" style={styles.summary}>\n <Text numberOfLines={1} style={styles.primary}>\n {networkSummary(toolName, args)}\n </Text>\n </View>\n </MessageItemHeader>\n {expanded ? (\n <MessageItemBody testID=\"tool-result-network\" style={styles.body}>\n {running ? (\n <MessageItemStatus tone=\"running\">{t('session.ui.working', 'working')}</MessageItemStatus>\n ) : null}\n {lines.map((line, index) => (\n <Text key={`${String(index)}-${line}`} selectable style={isError ? styles.error : styles.dim}>\n {line}\n </Text>\n ))}\n </MessageItemBody>\n ) : null}\n </>\n )}\n </MessageItem>\n );\n}\n\nconst styles = StyleSheet.create((theme: PoNativeTheme) => ({\n summary: { flex: 1, flexDirection: 'row', alignItems: 'center', minWidth: 0 },\n primary: {\n flexShrink: 1,\n minWidth: 0,\n color: theme.colors.text,\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.base,\n },\n body: { gap: theme.spacing(1) },\n dim: { color: theme.colors.dim, fontFamily: fontOf(theme.fontFamily.sans), fontSize: theme.fontSize.base },\n error: { color: theme.colors.red, fontFamily: fontOf(theme.fontFamily.sans), fontSize: theme.fontSize.base },\n}));\n","import { defineToolRenderer } from '@agimon-ai/po-core/native';\n\nimport { NetworkToolMessage } from './_components/NetworkToolMessage.native';\nimport { networkActivity } from './_lib/networkActivity';\n\n/** The network namespace's recorded calls. Named by hand: the dotted tool names are not a filename. */\nexport default defineToolRenderer({\n tools: ['network.send', 'network.ask', 'network.reply'],\n message: NetworkToolMessage,\n activity: networkActivity,\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineNativePlugin, type WebPluginContributions } from '@agimon-ai/po-core/native';\n\nimport fillSendToSession from '../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.native';\nimport lifecycleStart from '../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.native';\nimport toolNetwork from '../src/extensions/workspaces/sessions/(frontend)/tool/network.native';\n\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T =>\n (value === undefined ? undefined : { ...identity, ...(value as object) }) as T;\n\nexport const nativePlugin = defineNativePlugin({\n id: 'sessions',\n packageName: '@agimon-ai/po-session',\n session: {\n get fills(): WebPluginContributions['fills'] { return [via({ slot: 'composer-menu', id: 'send-to-session' }, fillSendToSession)]; },\n get start(): WebPluginContributions['start'] { return lifecycleStart; },\n get toolRenderers(): WebPluginContributions['toolRenderers'] { return [via({ tools: ['network'] }, toolNetwork)]; },\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,SAAS,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 -1,4 +1,4 @@
|
|
|
1
|
-
import { defineFill, defineHostStore, defineToolRenderer, defineWebLifecycle, defineWebPlugin } from "@agimon-ai/po-core/web";
|
|
1
|
+
import { defineFill, defineHostStore, defineToolRenderer, defineWebLifecycle, defineWebPlugin, useT } from "@agimon-ai/po-core/web";
|
|
2
2
|
import { Button, Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Dot, EmptyState, MessageIcon, MessageItem, MessageItemBody, MessageItemHeader, MessageItemStatus, OptionLabel, OptionRow, PickerList, SendIcon, Textarea, resultTextLines, toolTone } from "@agimon-ai/po-web-components";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
@@ -89,6 +89,7 @@ function sendToSession(input) {
|
|
|
89
89
|
* - Hidden in hosts that cannot list sessions or take the draft.
|
|
90
90
|
*/
|
|
91
91
|
function SendToSessionMenuItem({ takeComposerDraft, listSessions }) {
|
|
92
|
+
const t = useT();
|
|
92
93
|
if (!takeComposerDraft || !listSessions) return null;
|
|
93
94
|
return /* @__PURE__ */ jsxs(OptionRow, {
|
|
94
95
|
role: "menuitem",
|
|
@@ -101,7 +102,7 @@ function SendToSessionMenuItem({ takeComposerDraft, listSessions }) {
|
|
|
101
102
|
className: "h-3 w-3 shrink-0"
|
|
102
103
|
}), /* @__PURE__ */ jsx(OptionLabel, {
|
|
103
104
|
density: "compact",
|
|
104
|
-
children: "Send to session…"
|
|
105
|
+
children: t("session.ui.sendToSessionMenu", "Send to session…")
|
|
105
106
|
})]
|
|
106
107
|
});
|
|
107
108
|
}
|
|
@@ -125,6 +126,7 @@ const TONE = {
|
|
|
125
126
|
* - One jade primary action; red only for a real refusal.
|
|
126
127
|
*/
|
|
127
128
|
function SendToSessionDialog({ open, sessions, to, text, error, sending, onPick, onTextChange, onCancel, onSend }) {
|
|
129
|
+
const t = useT();
|
|
128
130
|
const target = sessions.find((session) => session.id === to);
|
|
129
131
|
return /* @__PURE__ */ jsx(Dialog, {
|
|
130
132
|
open,
|
|
@@ -132,17 +134,17 @@ function SendToSessionDialog({ open, sessions, to, text, error, sending, onPick,
|
|
|
132
134
|
children: /* @__PURE__ */ jsxs(DialogContent, {
|
|
133
135
|
width: "md",
|
|
134
136
|
"data-testid": "send-to-session-dialog",
|
|
135
|
-
children: [/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Send to session" }) }), /* @__PURE__ */ jsxs(DialogBody, {
|
|
137
|
+
children: [/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: t("session.ui.sendToSession", "Send to session") }) }), /* @__PURE__ */ jsxs(DialogBody, {
|
|
136
138
|
className: "flex flex-col gap-3",
|
|
137
139
|
children: [
|
|
138
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: "It reaches that session right away, in its current turn, as a message from you." }),
|
|
140
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: t("session.ui.sendImmediatelyDescription", "It reaches that session right away, in its current turn, as a message from you.") }),
|
|
139
141
|
sessions.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
140
142
|
size: "compact",
|
|
141
143
|
icon: /* @__PURE__ */ jsx(MessageIcon, {}),
|
|
142
|
-
title: "No other session is running",
|
|
143
|
-
description: "Open one, then send."
|
|
144
|
+
title: t("session.ui.noOtherSessionRunning", "No other session is running"),
|
|
145
|
+
description: t("session.ui.openThenSend", "Open one, then send.")
|
|
144
146
|
}) : /* @__PURE__ */ jsx(PickerList, {
|
|
145
|
-
label: "Sessions",
|
|
147
|
+
label: t("session.ui.sessions", "Sessions"),
|
|
146
148
|
items: sessions.map((session) => ({
|
|
147
149
|
value: session.id,
|
|
148
150
|
title: session.name,
|
|
@@ -154,12 +156,12 @@ function SendToSessionDialog({ open, sessions, to, text, error, sending, onPick,
|
|
|
154
156
|
})),
|
|
155
157
|
value: to === void 0 ? [] : [to],
|
|
156
158
|
filterable: true,
|
|
157
|
-
filterPlaceholder: "Search sessions",
|
|
159
|
+
filterPlaceholder: t("session.ui.searchSessions", "Search sessions"),
|
|
158
160
|
onSelect: onPick,
|
|
159
161
|
className: "max-h-56 rounded-md border border-po-border"
|
|
160
162
|
}),
|
|
161
163
|
/* @__PURE__ */ jsx(Textarea, {
|
|
162
|
-
"aria-label": "Message",
|
|
164
|
+
"aria-label": t("session.ui.message", "Message"),
|
|
163
165
|
rows: 3,
|
|
164
166
|
value: text,
|
|
165
167
|
"data-testid": "send-to-session-text",
|
|
@@ -174,7 +176,7 @@ function SendToSessionDialog({ open, sessions, to, text, error, sending, onPick,
|
|
|
174
176
|
variant: "outline",
|
|
175
177
|
size: "md",
|
|
176
178
|
onClick: onCancel,
|
|
177
|
-
children: "Cancel"
|
|
179
|
+
children: t("session.ui.cancel", "Cancel")
|
|
178
180
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
179
181
|
variant: "primary",
|
|
180
182
|
size: "md",
|
|
@@ -185,7 +187,7 @@ function SendToSessionDialog({ open, sessions, to, text, error, sending, onPick,
|
|
|
185
187
|
children: [/* @__PURE__ */ jsx(SendIcon, {
|
|
186
188
|
"aria-hidden": true,
|
|
187
189
|
className: "size-3.5"
|
|
188
|
-
}), target === void 0 ? "Send" :
|
|
190
|
+
}), target === void 0 ? t("session.ui.send", "Send") : t("session.ui.sendToName", "Send to {name}", { name: target.name })]
|
|
189
191
|
})] })
|
|
190
192
|
]
|
|
191
193
|
})]
|
|
@@ -278,6 +280,7 @@ function networkActivity({ toolName, args, isError }) {
|
|
|
278
280
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.tsx
|
|
279
281
|
/** A network.send, network.ask or network.reply recorded inside an exec. Collapsed to its summary; the body is the result text. */
|
|
280
282
|
function NetworkToolMessage({ args, result, output, running, isError, toolName }) {
|
|
283
|
+
const t = useT();
|
|
281
284
|
const lines = resultTextLines(result, output);
|
|
282
285
|
return /* @__PURE__ */ jsx(MessageItem, {
|
|
283
286
|
tone: toolTone({
|
|
@@ -297,7 +300,7 @@ function NetworkToolMessage({ args, result, output, running, isError, toolName }
|
|
|
297
300
|
className: "flex flex-col gap-1",
|
|
298
301
|
children: [running ? /* @__PURE__ */ jsx(MessageItemStatus, {
|
|
299
302
|
tone: "running",
|
|
300
|
-
children: "working"
|
|
303
|
+
children: t("session.ui.working", "working")
|
|
301
304
|
}) : null, lines.map((line, index) => /* @__PURE__ */ jsx("span", {
|
|
302
305
|
className: `whitespace-pre-wrap break-words ${isError ? "text-po-red" : "text-po-dim"}`,
|
|
303
306
|
children: line
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.mjs","names":["fillSendToSession","fillSendToSessionDialog","lifecycleStart","toolNetwork"],"sources":["../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionDelivery.ts","../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.ts","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionMenuItem.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.web.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialog.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialogHost.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/SendToSessionDialog.overlay.web.tsx","../../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.web.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_lib/networkActivity.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.tsx","../../src/extensions/workspaces/sessions/(frontend)/tool/network.web.tsx","../../generated/web.ts"],"sourcesContent":["import type { WebPluginRuntime } from '@agimon-ai/po-core/web';\n\n/**\n * Delivers one send through the started runtime that owns the sending session.\n *\n * DESIGN PATTERNS:\n * - Host-neutral and stateless: the web and native request files each keep\n * their own runtime list (from their own po-core entry) and pass it in.\n * The phone starts one runtime per computer; a send goes through the one\n * that owns the sending session, with that computer's local ids.\n *\n * AVOID:\n * - Value imports from a po-core entry here. Native plugins may not import\n * `po-core/web`, and web plugins may not import `po-core/native`.\n */\n\n/** The runtime that owns `from`, with both ids as its computer knows them; undefined when none does. */\nfunction route(runtimes: readonly WebPluginRuntime[], input: { from: string; to: string }) {\n const owners = runtimes.flatMap((runtime) => {\n try {\n const from = runtime.localSessionId?.(input.from) ?? input.from;\n const to = runtime.localSessionId?.(input.to) ?? input.to;\n // An unqualified id belongs to the computer that would leave it unqualified (the local hub).\n const owns = from !== input.from || (runtime.qualifySessionId?.(input.from) ?? input.from) === input.from;\n return owns ? [{ runtime, from, to }] : [];\n } catch {\n // localSessionId refuses an id of another computer: this runtime does not own the send.\n return [];\n }\n });\n return owners.at(-1);\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport async function deliverToSession(\n runtimes: readonly WebPluginRuntime[],\n input: { from: string; to: string; text: string },\n): Promise<string | undefined> {\n const owner = route(runtimes, input);\n if (!owner) return 'Po is not connected. Your text is kept; try again.';\n try {\n await owner.runtime.invokeServerMethod({\n mount: { scope: 'host' },\n service: 'sessions',\n method: 'sendToSession',\n input: { from: owner.from, to: owner.to, text: input.text },\n });\n return undefined;\n } catch (error) {\n return error instanceof Error && error.message !== '' ? error.message : 'The message was not delivered.';\n }\n}\n","import { defineHostStore, type WebPluginRuntime } from '@agimon-ai/po-core/web';\n\nimport { deliverToSession } from './sendToSessionDelivery';\n\n/**\n * Package-local handoff from the composer's '+' row to the dialog that sends,\n * plus the page runtime the dialog calls the server through.\n *\n * DESIGN PATTERNS:\n * - The menu row unmounts the moment the menu closes, so it publishes one\n * short-lived request carrying the draft it took; the overlay owns the dialog.\n * - The lifecycle keeps each started runtime here, because slot props carry no\n * server method call. sendToSessionDelivery picks the one that owns the send.\n * - sendToSessionRequest.native.ts is the phone's copy of the runtime list; it\n * imports po-core/native, which a native plugin may load and this file may not.\n *\n * AVOID:\n * - Persisting the taken draft. Cancel hands it back to the composer instead.\n */\n\n/** One ask to send; `text` is the draft the row took, possibly empty. */\nexport interface SendToSessionRequest {\n text: string;\n}\n\nconst request = defineHostStore<SendToSessionRequest | undefined>(undefined);\nconst runtimes = defineHostStore<readonly WebPluginRuntime[]>([]);\n\nexport function startSendToSessionRuntime(runtime: WebPluginRuntime): () => void {\n runtimes.update((current) => [...current, runtime]);\n return () => runtimes.update((current) => current.filter((entry) => entry !== runtime));\n}\n\nexport function requestSendToSession(text: string): void {\n request.update(() => ({ text }));\n}\n\nexport function subscribeSendToSessionRequest(listener: (request: SendToSessionRequest) => void): () => void {\n const deliver = (): void => {\n const next = request.store.state;\n if (!next) return;\n request.reset();\n listener(next);\n };\n const subscription = request.store.subscribe(deliver);\n deliver();\n return () => subscription.unsubscribe();\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport function sendToSession(input: { from: string; to: string; text: string }): Promise<string | undefined> {\n return deliverToSession(runtimes.store.state, input);\n}\n","import type { WebPluginSlotProps } from '@agimon-ai/po-core/web';\nimport { OptionLabel, OptionRow, SendIcon } from '@agimon-ai/po-web-components';\n\nimport { requestSendToSession } from '../../_lib/sendToSessionRequest';\n\n/**\n * \"Send to session…\" in the composer's '+' menu.\n *\n * DESIGN PATTERNS:\n * - Stateless on purpose. The menu unmounts this on close, so the click takes\n * the draft and publishes it; the dialog lives in the overlay.\n * - Hidden in hosts that cannot list sessions or take the draft.\n */\nexport function SendToSessionMenuItem({ takeComposerDraft, listSessions }: WebPluginSlotProps) {\n if (!takeComposerDraft || !listSessions) return null;\n return (\n <OptionRow\n role=\"menuitem\"\n density=\"compact\"\n data-testid=\"composer-menu-send-to-session\"\n className=\"w-full text-po-text hover:bg-po-tint-blue\"\n onClick={() => requestSendToSession(takeComposerDraft())}\n >\n <SendIcon aria-hidden className=\"h-3 w-3 shrink-0\" />\n <OptionLabel density=\"compact\">Send to session…</OptionLabel>\n </OptionRow>\n );\n}\n","import { defineFill } from '@agimon-ai/po-core/web';\n\nimport { SendToSessionMenuItem } from './_components/SendToSessionMenuItem';\nexport default defineFill({ component: SendToSessionMenuItem });\n","import type { WebPluginSessionOption } from '@agimon-ai/po-core/web';\nimport {\n Button,\n Dialog,\n DialogBody,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n Dot,\n EmptyState,\n MessageIcon,\n PickerList,\n SendIcon,\n Textarea,\n} from '@agimon-ai/po-web-components';\n\n/** Running is Po at work (jade); waiting is a gentle ask of the person (rose). */\nconst TONE = { running: 'green', waiting: 'magenta', idle: 'neutral' } as const;\n\nexport interface SendToSessionDialogProps {\n open: boolean;\n sessions: readonly WebPluginSessionOption[];\n to: string | undefined;\n text: string;\n error: string;\n sending: boolean;\n onPick: (to: string) => void;\n onTextChange: (text: string) => void;\n onCancel: () => void;\n onSend: () => void;\n}\n\n/**\n * The \"Send to session\" dialog, drawn from the approved SessionMessagingDesign story.\n *\n * DESIGN PATTERNS:\n * - Controlled: the overlay host owns the text, pick and error, so a refusal\n * keeps what the person wrote.\n * - One jade primary action; red only for a real refusal.\n */\nexport function SendToSessionDialog({\n open,\n sessions,\n to,\n text,\n error,\n sending,\n onPick,\n onTextChange,\n onCancel,\n onSend,\n}: SendToSessionDialogProps) {\n const target = sessions.find((session) => session.id === to);\n return (\n <Dialog open={open} onOpenChange={(next) => (next ? undefined : onCancel())}>\n <DialogContent width=\"md\" data-testid=\"send-to-session-dialog\">\n <DialogHeader>\n <DialogTitle>Send to session</DialogTitle>\n </DialogHeader>\n <DialogBody className=\"flex flex-col gap-3\">\n <DialogDescription>\n It reaches that session right away, in its current turn, as a message from you.\n </DialogDescription>\n {sessions.length === 0 ? (\n <EmptyState\n size=\"compact\"\n icon={<MessageIcon />}\n title=\"No other session is running\"\n description=\"Open one, then send.\"\n />\n ) : (\n <PickerList\n label=\"Sessions\"\n items={sessions.map((session) => ({\n value: session.id,\n title: session.name,\n subtitle: session.detail,\n lead: <Dot tone={TONE[session.state]} size=\"md\" />,\n }))}\n value={to === undefined ? [] : [to]}\n filterable\n filterPlaceholder=\"Search sessions\"\n onSelect={onPick}\n className=\"max-h-56 rounded-md border border-po-border\"\n />\n )}\n <Textarea\n aria-label=\"Message\"\n rows={3}\n value={text}\n data-testid=\"send-to-session-text\"\n onChange={(event) => onTextChange(event.currentTarget.value)}\n />\n {error === '' ? null : (\n <p role=\"alert\" className=\"text-sm text-po-red\">\n {error}\n </p>\n )}\n <DialogFooter>\n <Button variant=\"outline\" size=\"md\" onClick={onCancel}>\n Cancel\n </Button>\n <Button\n variant=\"primary\"\n size=\"md\"\n className=\"gap-1.5\"\n data-testid=\"send-to-session-send\"\n disabled={target === undefined || text.trim() === '' || sending}\n onClick={onSend}\n >\n <SendIcon aria-hidden className=\"size-3.5\" />\n {target === undefined ? 'Send' : `Send to ${target.name}`}\n </Button>\n </DialogFooter>\n </DialogBody>\n </DialogContent>\n </Dialog>\n );\n}\n","import type { WebPluginSessionOption, WebPluginSlotProps } from '@agimon-ai/po-core/web';\nimport { useEffect, useState } from 'react';\n\nimport { sendToSession, subscribeSendToSessionRequest } from '../../_lib/sendToSessionRequest';\nimport { SendToSessionDialog } from './SendToSessionDialog';\n\n/**\n * The send dialog's state. It fills an overlay, which stays mounted for the\n * page, because the '+' row that opens it unmounts when the menu closes.\n *\n * AVOID:\n * - Rendering anything while closed. This sits over the whole cockpit.\n */\nexport function SendToSessionDialogHost({ sessionId, listSessions, appendComposerDraft }: WebPluginSlotProps) {\n const [open, setOpen] = useState(false);\n const [sessions, setSessions] = useState<readonly WebPluginSessionOption[]>([]);\n const [to, setTo] = useState<string | undefined>(undefined);\n const [text, setText] = useState('');\n const [error, setError] = useState('');\n const [sending, setSending] = useState(false);\n\n useEffect(\n () =>\n subscribeSendToSessionRequest((request) => {\n setSessions(listSessions?.() ?? []);\n setTo(undefined);\n setText(request.text);\n setError('');\n setOpen(true);\n }),\n [listSessions],\n );\n\n if (!open || sessionId === null) return null;\n\n const cancel = (): void => {\n if (sending) return;\n // The text came out of the composer; a cancel puts it back.\n appendComposerDraft(text);\n setOpen(false);\n };\n\n const send = async (): Promise<void> => {\n if (to === undefined) return;\n setSending(true);\n const refusal = await sendToSession({ from: sessionId, to, text: text.trim() });\n setSending(false);\n if (refusal === undefined) setOpen(false);\n else setError(refusal);\n };\n\n return (\n <SendToSessionDialog\n open\n sessions={sessions}\n to={to}\n text={text}\n error={error}\n sending={sending}\n onPick={setTo}\n onTextChange={setText}\n onCancel={cancel}\n onSend={() => void send()}\n />\n );\n}\n","import { defineFill } from '@agimon-ai/po-core/web';\n\nimport { SendToSessionDialogHost } from './_components/SendToSessionDialogHost';\nexport default defineFill({ component: SendToSessionDialogHost });\n","import { defineWebLifecycle } from '@agimon-ai/po-core/web';\n\nimport { startSendToSessionRuntime } from '../_lib/sendToSessionRequest';\n\nexport default defineWebLifecycle(startSendToSessionRuntime);\n","import type { ToolMessageRenderProps } from '@agimon-ai/po-core/web';\n\nconst ACTIVITY_CHARS = 72;\n\nfunction asString(value: unknown): string {\n return typeof value === 'string' ? value : '';\n}\n\nfunction clip(text: string): string {\n const flat = text.replace(/\\s+/g, ' ').trim();\n return flat.length > ACTIVITY_CHARS ? `${flat.slice(0, ACTIVITY_CHARS - 1)}…` : flat;\n}\n\n/** Who a message is for, or what it answers. */\nexport function networkSummary(toolName: string, args: Record<string, unknown>): string {\n const verb = toolName.split('.').at(-1) ?? toolName;\n return toolName === 'network.reply' ? 'reply' : `${verb} ${asString(args.to)}`.trim();\n}\n\n/** One line per outgoing session message: who it went to and what it said. */\nexport function networkActivity({\n toolName,\n args,\n isError,\n}: Pick<ToolMessageRenderProps, 'toolName' | 'args' | 'isError'>): string[] {\n const text = clip(asString(args.text));\n if (isError || !text) return [];\n if (toolName === 'network.reply') return [`Replied \"${text}\"`];\n const to = asString(args.to) || 'session';\n return [`→ ${to}${toolName === 'network.ask' ? ' asks' : ''} \"${text}\"`];\n}\n","import type { ToolMessageRenderProps } from '@agimon-ai/po-core/web';\nimport {\n MessageItem,\n MessageItemBody,\n MessageItemHeader,\n MessageItemStatus,\n resultTextLines,\n toolTone,\n} from '@agimon-ai/po-web-components';\n\nimport { networkSummary } from '../_lib/networkActivity';\n\n/** A network.send, network.ask or network.reply recorded inside an exec. Collapsed to its summary; the body is the result text. */\nexport function NetworkToolMessage({ args, result, output, running, isError, toolName }: ToolMessageRenderProps) {\n const lines = resultTextLines(result, output);\n return (\n <MessageItem tone={toolTone({ running, isError })} expandable={lines.length > 0}>\n {({ expanded }) => (\n <>\n <MessageItemHeader title=\"network\">\n <span data-testid=\"tool-call-network\" className=\"min-w-0 flex-1 truncate text-po-text\">\n {networkSummary(toolName, args)}\n </span>\n </MessageItemHeader>\n {expanded ? (\n <MessageItemBody data-testid=\"tool-result-network\" className=\"flex flex-col gap-1\">\n {running ? <MessageItemStatus tone=\"running\">working</MessageItemStatus> : null}\n {lines.map((line, index) => (\n <span\n key={`${String(index)}-${line}`}\n className={`whitespace-pre-wrap break-words ${isError ? 'text-po-red' : 'text-po-dim'}`}\n >\n {line}\n </span>\n ))}\n </MessageItemBody>\n ) : null}\n </>\n )}\n </MessageItem>\n );\n}\n","import { defineToolRenderer } from '@agimon-ai/po-core/web';\n\nimport { NetworkToolMessage } from './_components/NetworkToolMessage';\nimport { networkActivity } from './_lib/networkActivity';\n\n/** The network namespace's recorded calls. Named by hand: the dotted tool names are not a filename. */\nexport default defineToolRenderer({\n tools: ['network.send', 'network.ask', 'network.reply'],\n message: NetworkToolMessage,\n activity: networkActivity,\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineWebPlugin, type WebPluginContributions } from '@agimon-ai/po-core/web';\n\nimport fillSendToSession from '../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.web';\nimport fillSendToSessionDialog from '../src/extensions/workspaces/sessions/(frontend)/fill/SendToSessionDialog.overlay.web';\nimport lifecycleStart from '../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.web';\nimport toolNetwork from '../src/extensions/workspaces/sessions/(frontend)/tool/network.web';\n\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T =>\n (value === undefined ? undefined : { ...identity, ...(value as object) }) as T;\n\nexport const webPlugin = defineWebPlugin({\n id: 'sessions',\n packageName: '@agimon-ai/po-session',\n session: {\n get fills(): WebPluginContributions['fills'] { return [via({ slot: 'composer-menu', id: 'send-to-session' }, fillSendToSession), via({ slot: 'overlay', id: 'send-to-session-dialog' }, fillSendToSessionDialog)]; },\n get start(): WebPluginContributions['start'] { return lifecycleStart; },\n get toolRenderers(): WebPluginContributions['toolRenderers'] { return [via({ tools: ['network'] }, toolNetwork)]; },\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAS,MAAM,UAAuC,OAAqC;CAazF,OAZe,SAAS,SAAS,YAAY;EAC3C,IAAI;GACF,MAAM,OAAO,QAAQ,iBAAiB,MAAM,IAAI,KAAK,MAAM;GAC3D,MAAM,KAAK,QAAQ,iBAAiB,MAAM,EAAE,KAAK,MAAM;GAGvD,OADa,SAAS,MAAM,SAAS,QAAQ,mBAAmB,MAAM,IAAI,KAAK,MAAM,UAAU,MAAM,OACvF,CAAC;IAAE;IAAS;IAAM;GAAG,CAAC,IAAI,CAAC;EAC3C,QAAQ;GAEN,OAAO,CAAC;EACV;CACF,CACY,CAAC,CAAC,GAAG,EAAE;AACrB;;AAGA,eAAsB,iBACpB,UACA,OAC6B;CAC7B,MAAM,QAAQ,MAAM,UAAU,KAAK;CACnC,IAAI,CAAC,OAAO,OAAO;CACnB,IAAI;EACF,MAAM,MAAM,QAAQ,mBAAmB;GACrC,OAAO,EAAE,OAAO,OAAO;GACvB,SAAS;GACT,QAAQ;GACR,OAAO;IAAE,MAAM,MAAM;IAAM,IAAI,MAAM;IAAI,MAAM,MAAM;GAAK;EAC5D,CAAC;EACD;CACF,SAAS,OAAO;EACd,OAAO,iBAAiB,SAAS,MAAM,YAAY,KAAK,MAAM,UAAU;CAC1E;AACF;;;AC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A,CACG,UAAU,oBAAC,mBAAD;IAAmB,MAAK;IAAU,UAAA;GAA0B,CAAA,IAAI,MAC1E,MAAM,KAAK,MAAM,UAChB,oBAAC,QAAD;IAEE,WAAW,mCAAmC,UAAU,gBAAgB;IAEvE,UAAA;GACG,GAJC,GAAG,OAAO,KAAK,EAAE,GAAG,MAIrB,CACP,CACc;EACf,CAAA,IAAA,IACJ,EAAA,CAAA;CAEO,CAAA;AAEjB;;;;ACnCA,IAAA,sBAAe,mBAAmB;CAChC,OAAO;EAAC;EAAgB;EAAe;CAAe;CACtD,SAAS;CACT,UAAU;AACZ,CAAC;;;ACFD,MAAM,OAAU,UAAmC,UAChD,UAAU,KAAA,IAAY,KAAA,IAAY;CAAE,GAAG;CAAU,GAAI;AAAiB;AAEzE,MAAa,YAAY,gBAAgB;CACvC,IAAI;CACJ,aAAa;CACb,SAAS;EACP,IAAI,QAAyC;GAAE,OAAO,CAAC,IAAI;IAAE,MAAM;IAAiB,IAAI;GAAkB,GAAGA,uCAAiB,GAAG,IAAI;IAAE,MAAM;IAAW,IAAI;GAAyB,GAAGC,uCAAuB,CAAC;EAAG;EACnN,IAAI,QAAyC;GAAE,OAAOC;EAAgB;EACtE,IAAI,gBAAyD;GAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,GAAGC,mBAAW,CAAC;EAAG;CACpH;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"web.mjs","names":["fillSendToSession","fillSendToSessionDialog","lifecycleStart","toolNetwork"],"sources":["../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionDelivery.ts","../../src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.ts","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionMenuItem.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.web.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialog.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialogHost.tsx","../../src/extensions/workspaces/sessions/(frontend)/fill/SendToSessionDialog.overlay.web.tsx","../../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.web.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_lib/networkActivity.ts","../../src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.tsx","../../src/extensions/workspaces/sessions/(frontend)/tool/network.web.tsx","../../generated/web.ts"],"sourcesContent":["import type { WebPluginRuntime } from '@agimon-ai/po-core/web';\n\n/**\n * Delivers one send through the started runtime that owns the sending session.\n *\n * DESIGN PATTERNS:\n * - Host-neutral and stateless: the web and native request files each keep\n * their own runtime list (from their own po-core entry) and pass it in.\n * The phone starts one runtime per computer; a send goes through the one\n * that owns the sending session, with that computer's local ids.\n *\n * AVOID:\n * - Value imports from a po-core entry here. Native plugins may not import\n * `po-core/web`, and web plugins may not import `po-core/native`.\n */\n\n/** The runtime that owns `from`, with both ids as its computer knows them; undefined when none does. */\nfunction route(runtimes: readonly WebPluginRuntime[], input: { from: string; to: string }) {\n const owners = runtimes.flatMap((runtime) => {\n try {\n const from = runtime.localSessionId?.(input.from) ?? input.from;\n const to = runtime.localSessionId?.(input.to) ?? input.to;\n // An unqualified id belongs to the computer that would leave it unqualified (the local hub).\n const owns = from !== input.from || (runtime.qualifySessionId?.(input.from) ?? input.from) === input.from;\n return owns ? [{ runtime, from, to }] : [];\n } catch {\n // localSessionId refuses an id of another computer: this runtime does not own the send.\n return [];\n }\n });\n return owners.at(-1);\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport async function deliverToSession(\n runtimes: readonly WebPluginRuntime[],\n input: { from: string; to: string; text: string },\n): Promise<string | undefined> {\n const owner = route(runtimes, input);\n if (!owner) return 'Po is not connected. Your text is kept; try again.';\n try {\n await owner.runtime.invokeServerMethod({\n mount: { scope: 'host' },\n service: 'sessions',\n method: 'sendToSession',\n input: { from: owner.from, to: owner.to, text: input.text },\n });\n return undefined;\n } catch (error) {\n return error instanceof Error && error.message !== '' ? error.message : 'The message was not delivered.';\n }\n}\n","import { defineHostStore, type WebPluginRuntime } from '@agimon-ai/po-core/web';\n\nimport { deliverToSession } from './sendToSessionDelivery';\n\n/**\n * Package-local handoff from the composer's '+' row to the dialog that sends,\n * plus the page runtime the dialog calls the server through.\n *\n * DESIGN PATTERNS:\n * - The menu row unmounts the moment the menu closes, so it publishes one\n * short-lived request carrying the draft it took; the overlay owns the dialog.\n * - The lifecycle keeps each started runtime here, because slot props carry no\n * server method call. sendToSessionDelivery picks the one that owns the send.\n * - sendToSessionRequest.native.ts is the phone's copy of the runtime list; it\n * imports po-core/native, which a native plugin may load and this file may not.\n *\n * AVOID:\n * - Persisting the taken draft. Cancel hands it back to the composer instead.\n */\n\n/** One ask to send; `text` is the draft the row took, possibly empty. */\nexport interface SendToSessionRequest {\n text: string;\n}\n\nconst request = defineHostStore<SendToSessionRequest | undefined>(undefined);\nconst runtimes = defineHostStore<readonly WebPluginRuntime[]>([]);\n\nexport function startSendToSessionRuntime(runtime: WebPluginRuntime): () => void {\n runtimes.update((current) => [...current, runtime]);\n return () => runtimes.update((current) => current.filter((entry) => entry !== runtime));\n}\n\nexport function requestSendToSession(text: string): void {\n request.update(() => ({ text }));\n}\n\nexport function subscribeSendToSessionRequest(listener: (request: SendToSessionRequest) => void): () => void {\n const deliver = (): void => {\n const next = request.store.state;\n if (!next) return;\n request.reset();\n listener(next);\n };\n const subscription = request.store.subscribe(deliver);\n deliver();\n return () => subscription.unsubscribe();\n}\n\n/** Steers `text` into session `to`. Resolves to the reason shown when it was refused, or undefined once delivered. */\nexport function sendToSession(input: { from: string; to: string; text: string }): Promise<string | undefined> {\n return deliverToSession(runtimes.store.state, input);\n}\n","import { useT } from '@agimon-ai/po-core/web';\nimport type { WebPluginSlotProps } from '@agimon-ai/po-core/web';\nimport { OptionLabel, OptionRow, SendIcon } from '@agimon-ai/po-web-components';\n\nimport { requestSendToSession } from '../../_lib/sendToSessionRequest';\n\n/**\n * \"Send to session…\" in the composer's '+' menu.\n *\n * DESIGN PATTERNS:\n * - Stateless on purpose. The menu unmounts this on close, so the click takes\n * the draft and publishes it; the dialog lives in the overlay.\n * - Hidden in hosts that cannot list sessions or take the draft.\n */\nexport function SendToSessionMenuItem({ takeComposerDraft, listSessions }: WebPluginSlotProps) {\n const t = useT();\n if (!takeComposerDraft || !listSessions) return null;\n return (\n <OptionRow\n role=\"menuitem\"\n density=\"compact\"\n data-testid=\"composer-menu-send-to-session\"\n className=\"w-full text-po-text hover:bg-po-tint-blue\"\n onClick={() => requestSendToSession(takeComposerDraft())}\n >\n <SendIcon aria-hidden className=\"h-3 w-3 shrink-0\" />\n <OptionLabel density=\"compact\">{t('session.ui.sendToSessionMenu', 'Send to session…')}</OptionLabel>\n </OptionRow>\n );\n}\n","import { defineFill } from '@agimon-ai/po-core/web';\n\nimport { SendToSessionMenuItem } from './_components/SendToSessionMenuItem';\nexport default defineFill({ component: SendToSessionMenuItem });\n","import { useT } from '@agimon-ai/po-core/web';\nimport type { WebPluginSessionOption } from '@agimon-ai/po-core/web';\nimport {\n Button,\n Dialog,\n DialogBody,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n Dot,\n EmptyState,\n MessageIcon,\n PickerList,\n SendIcon,\n Textarea,\n} from '@agimon-ai/po-web-components';\n\n/** Running is Po at work (jade); waiting is a gentle ask of the person (rose). */\nconst TONE = { running: 'green', waiting: 'magenta', idle: 'neutral' } as const;\n\nexport interface SendToSessionDialogProps {\n open: boolean;\n sessions: readonly WebPluginSessionOption[];\n to: string | undefined;\n text: string;\n error: string;\n sending: boolean;\n onPick: (to: string) => void;\n onTextChange: (text: string) => void;\n onCancel: () => void;\n onSend: () => void;\n}\n\n/**\n * The \"Send to session\" dialog, drawn from the approved SessionMessagingDesign story.\n *\n * DESIGN PATTERNS:\n * - Controlled: the overlay host owns the text, pick and error, so a refusal\n * keeps what the person wrote.\n * - One jade primary action; red only for a real refusal.\n */\nexport function SendToSessionDialog({\n open,\n sessions,\n to,\n text,\n error,\n sending,\n onPick,\n onTextChange,\n onCancel,\n onSend,\n}: SendToSessionDialogProps) {\n const t = useT();\n const target = sessions.find((session) => session.id === to);\n return (\n <Dialog open={open} onOpenChange={(next) => (next ? undefined : onCancel())}>\n <DialogContent width=\"md\" data-testid=\"send-to-session-dialog\">\n <DialogHeader>\n <DialogTitle>{t('session.ui.sendToSession', 'Send to session')}</DialogTitle>\n </DialogHeader>\n <DialogBody className=\"flex flex-col gap-3\">\n <DialogDescription>\n {t(\n 'session.ui.sendImmediatelyDescription',\n 'It reaches that session right away, in its current turn, as a message from you.',\n )}\n </DialogDescription>\n {sessions.length === 0 ? (\n <EmptyState\n size=\"compact\"\n icon={<MessageIcon />}\n title={t('session.ui.noOtherSessionRunning', 'No other session is running')}\n description={t('session.ui.openThenSend', 'Open one, then send.')}\n />\n ) : (\n <PickerList\n label={t('session.ui.sessions', 'Sessions')}\n items={sessions.map((session) => ({\n value: session.id,\n title: session.name,\n subtitle: session.detail,\n lead: <Dot tone={TONE[session.state]} size=\"md\" />,\n }))}\n value={to === undefined ? [] : [to]}\n filterable\n filterPlaceholder={t('session.ui.searchSessions', 'Search sessions')}\n onSelect={onPick}\n className=\"max-h-56 rounded-md border border-po-border\"\n />\n )}\n <Textarea\n aria-label={t('session.ui.message', 'Message')}\n rows={3}\n value={text}\n data-testid=\"send-to-session-text\"\n onChange={(event) => onTextChange(event.currentTarget.value)}\n />\n {error === '' ? null : (\n <p role=\"alert\" className=\"text-sm text-po-red\">\n {error}\n </p>\n )}\n <DialogFooter>\n <Button variant=\"outline\" size=\"md\" onClick={onCancel}>\n {t('session.ui.cancel', 'Cancel')}\n </Button>\n <Button\n variant=\"primary\"\n size=\"md\"\n className=\"gap-1.5\"\n data-testid=\"send-to-session-send\"\n disabled={target === undefined || text.trim() === '' || sending}\n onClick={onSend}\n >\n <SendIcon aria-hidden className=\"size-3.5\" />\n {target === undefined\n ? t('session.ui.send', 'Send')\n : t('session.ui.sendToName', 'Send to {name}', { name: target.name })}\n </Button>\n </DialogFooter>\n </DialogBody>\n </DialogContent>\n </Dialog>\n );\n}\n","import type { WebPluginSessionOption, WebPluginSlotProps } from '@agimon-ai/po-core/web';\nimport { useEffect, useState } from 'react';\n\nimport { sendToSession, subscribeSendToSessionRequest } from '../../_lib/sendToSessionRequest';\nimport { SendToSessionDialog } from './SendToSessionDialog';\n\n/**\n * The send dialog's state. It fills an overlay, which stays mounted for the\n * page, because the '+' row that opens it unmounts when the menu closes.\n *\n * AVOID:\n * - Rendering anything while closed. This sits over the whole cockpit.\n */\nexport function SendToSessionDialogHost({ sessionId, listSessions, appendComposerDraft }: WebPluginSlotProps) {\n const [open, setOpen] = useState(false);\n const [sessions, setSessions] = useState<readonly WebPluginSessionOption[]>([]);\n const [to, setTo] = useState<string | undefined>(undefined);\n const [text, setText] = useState('');\n const [error, setError] = useState('');\n const [sending, setSending] = useState(false);\n\n useEffect(\n () =>\n subscribeSendToSessionRequest((request) => {\n setSessions(listSessions?.() ?? []);\n setTo(undefined);\n setText(request.text);\n setError('');\n setOpen(true);\n }),\n [listSessions],\n );\n\n if (!open || sessionId === null) return null;\n\n const cancel = (): void => {\n if (sending) return;\n // The text came out of the composer; a cancel puts it back.\n appendComposerDraft(text);\n setOpen(false);\n };\n\n const send = async (): Promise<void> => {\n if (to === undefined) return;\n setSending(true);\n const refusal = await sendToSession({ from: sessionId, to, text: text.trim() });\n setSending(false);\n if (refusal === undefined) setOpen(false);\n else setError(refusal);\n };\n\n return (\n <SendToSessionDialog\n open\n sessions={sessions}\n to={to}\n text={text}\n error={error}\n sending={sending}\n onPick={setTo}\n onTextChange={setText}\n onCancel={cancel}\n onSend={() => void send()}\n />\n );\n}\n","import { defineFill } from '@agimon-ai/po-core/web';\n\nimport { SendToSessionDialogHost } from './_components/SendToSessionDialogHost';\nexport default defineFill({ component: SendToSessionDialogHost });\n","import { defineWebLifecycle } from '@agimon-ai/po-core/web';\n\nimport { startSendToSessionRuntime } from '../_lib/sendToSessionRequest';\n\nexport default defineWebLifecycle(startSendToSessionRuntime);\n","import type { ToolMessageRenderProps } from '@agimon-ai/po-core/web';\n\nconst ACTIVITY_CHARS = 72;\n\nfunction asString(value: unknown): string {\n return typeof value === 'string' ? value : '';\n}\n\nfunction clip(text: string): string {\n const flat = text.replace(/\\s+/g, ' ').trim();\n return flat.length > ACTIVITY_CHARS ? `${flat.slice(0, ACTIVITY_CHARS - 1)}…` : flat;\n}\n\n/** Who a message is for, or what it answers. */\nexport function networkSummary(toolName: string, args: Record<string, unknown>): string {\n const verb = toolName.split('.').at(-1) ?? toolName;\n return toolName === 'network.reply' ? 'reply' : `${verb} ${asString(args.to)}`.trim();\n}\n\n/** One line per outgoing session message: who it went to and what it said. */\nexport function networkActivity({\n toolName,\n args,\n isError,\n}: Pick<ToolMessageRenderProps, 'toolName' | 'args' | 'isError'>): string[] {\n const text = clip(asString(args.text));\n if (isError || !text) return [];\n if (toolName === 'network.reply') return [`Replied \"${text}\"`];\n const to = asString(args.to) || 'session';\n return [`→ ${to}${toolName === 'network.ask' ? ' asks' : ''} \"${text}\"`];\n}\n","import { useT } from '@agimon-ai/po-core/web';\nimport type { ToolMessageRenderProps } from '@agimon-ai/po-core/web';\nimport {\n MessageItem,\n MessageItemBody,\n MessageItemHeader,\n MessageItemStatus,\n resultTextLines,\n toolTone,\n} from '@agimon-ai/po-web-components';\n\nimport { networkSummary } from '../_lib/networkActivity';\n\n/** A network.send, network.ask or network.reply recorded inside an exec. Collapsed to its summary; the body is the result text. */\nexport function NetworkToolMessage({ args, result, output, running, isError, toolName }: ToolMessageRenderProps) {\n const t = useT();\n const lines = resultTextLines(result, output);\n return (\n <MessageItem tone={toolTone({ running, isError })} expandable={lines.length > 0}>\n {({ expanded }) => (\n <>\n {/* no-untranslated-jsx: ignore - Preserve the technical tool identifier. */}\n <MessageItemHeader title=\"network\">\n <span data-testid=\"tool-call-network\" className=\"min-w-0 flex-1 truncate text-po-text\">\n {networkSummary(toolName, args)}\n </span>\n </MessageItemHeader>\n {expanded ? (\n <MessageItemBody data-testid=\"tool-result-network\" className=\"flex flex-col gap-1\">\n {running ? (\n <MessageItemStatus tone=\"running\">{t('session.ui.working', 'working')}</MessageItemStatus>\n ) : null}\n {lines.map((line, index) => (\n <span\n key={`${String(index)}-${line}`}\n className={`whitespace-pre-wrap break-words ${isError ? 'text-po-red' : 'text-po-dim'}`}\n >\n {line}\n </span>\n ))}\n </MessageItemBody>\n ) : null}\n </>\n )}\n </MessageItem>\n );\n}\n","import { defineToolRenderer } from '@agimon-ai/po-core/web';\n\nimport { NetworkToolMessage } from './_components/NetworkToolMessage';\nimport { networkActivity } from './_lib/networkActivity';\n\n/** The network namespace's recorded calls. Named by hand: the dotted tool names are not a filename. */\nexport default defineToolRenderer({\n tools: ['network.send', 'network.ask', 'network.reply'],\n message: NetworkToolMessage,\n activity: networkActivity,\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineWebPlugin, type WebPluginContributions } from '@agimon-ai/po-core/web';\n\nimport fillSendToSession from '../src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.web';\nimport fillSendToSessionDialog from '../src/extensions/workspaces/sessions/(frontend)/fill/SendToSessionDialog.overlay.web';\nimport lifecycleStart from '../src/extensions/workspaces/sessions/(frontend)/lifecycle/start.web';\nimport toolNetwork from '../src/extensions/workspaces/sessions/(frontend)/tool/network.web';\n\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T =>\n (value === undefined ? undefined : { ...identity, ...(value as object) }) as T;\n\nexport const webPlugin = defineWebPlugin({\n id: 'sessions',\n packageName: '@agimon-ai/po-session',\n session: {\n get fills(): WebPluginContributions['fills'] { return [via({ slot: 'composer-menu', id: 'send-to-session' }, fillSendToSession), via({ slot: 'overlay', id: 'send-to-session-dialog' }, fillSendToSessionDialog)]; },\n get start(): WebPluginContributions['start'] { return lifecycleStart; },\n get toolRenderers(): WebPluginContribut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IAAW,UAAA,EAAE,sBAAsB,SAAS;GAAqB,CAAA,IACvF,MACH,MAAM,KAAK,MAAM,UAChB,oBAAC,QAAD;IAEE,WAAW,mCAAmC,UAAU,gBAAgB;IAEvE,UAAA;GACG,GAJC,GAAG,OAAO,KAAK,EAAE,GAAG,MAIrB,CACP,CACc;EACf,CAAA,IAAA,IACJ,EAAA,CAAA;CAEO,CAAA;AAEjB;;;;ACxCA,IAAA,sBAAe,mBAAmB;CAChC,OAAO;EAAC;EAAgB;EAAe;CAAe;CACtD,SAAS;CACT,UAAU;AACZ,CAAC;;;ACFD,MAAM,OAAU,UAAmC,UAChD,UAAU,KAAA,IAAY,KAAA,IAAY;CAAE,GAAG;CAAU,GAAI;AAAiB;AAEzE,MAAa,YAAY,gBAAgB;CACvC,IAAI;CACJ,aAAa;CACb,SAAS;EACP,IAAI,QAAyC;GAAE,OAAO,CAAC,IAAI;IAAE,MAAM;IAAiB,IAAI;GAAkB,GAAGA,uCAAiB,GAAG,IAAI;IAAE,MAAM;IAAW,IAAI;GAAyB,GAAGC,uCAAuB,CAAC;EAAG;EACnN,IAAI,QAAyC;GAAE,OAAOC;EAAgB;EACtE,IAAI,gBAAyD;GAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,GAAGC,mBAAW,CAAC;EAAG;CACpH;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","README.md","generated/native.ts","generated/server.ts","generated/web.ts","llms.txt","package.json","src/exports/apiContracts.ts","src/exports/index.ts","src/extensions/(backend)/_lib/sendToSession.server.ts","src/extensions/(backend)/api/session-peer/route.server.ts","src/extensions/(backend)/method/send-to-session.server.ts","src/extensions/(backend)/root.server.ts","src/extensions/workspaces/sessions/(backend)/contract/agentRun.server.ts","src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-network.server.ts","src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-session.server.ts","src/extensions/workspaces/sessions/(backend)/root.server.ts","src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionDelivery.ts","src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.native.ts","src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.ts","src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.native.tsx","src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.web.tsx","src/extensions/workspaces/sessions/(frontend)/fill/SendToSessionDialog.overlay.web.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialog.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialogHost.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionMenuItem.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionPanel.native.stories.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionPanel.native.tsx","src/extensions/workspaces/sessions/(frontend)/lifecycle/start.native.ts","src/extensions/workspaces/sessions/(frontend)/lifecycle/start.web.ts","src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.native.tsx","src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.tsx","src/extensions/workspaces/sessions/(frontend)/tool/_lib/networkActivity.ts","src/extensions/workspaces/sessions/(frontend)/tool/network.native.tsx","src/extensions/workspaces/sessions/(frontend)/tool/network.web.tsx","src/prompts/codemode-how-to-network/SKILL.md","src/prompts/codemode-how-to-session/SKILL.md","src/schemas/apiContracts.ts","src/schemas/sendToSession.ts","src/schemas/startSession.ts","src/services/agentRunner/index.ts","src/services/agentRunner/type.ts","src/services/backgroundWorkService/index.ts","src/services/childReportGate/index.ts","src/services/childReportGate/type.ts","src/services/childReportLedger/index.ts","src/services/childReportLedger/type.ts","src/services/coordinatorSessions/index.ts","src/services/coordinatorSessions/type.ts","src/services/logbook/index.ts","src/services/logbook/type.ts","src/services/networkNamespace/index.ts","src/services/networkNamespace/type.ts","src/services/peerInbox/index.ts","src/services/peerInboxApi/index.ts","src/services/peerLink/index.ts","src/services/peerLink/roster.ts","src/services/peerLink/type.ts","src/services/peerTransport/config.ts","src/services/peerTransport/index.ts","src/services/peerTransport/sync.edge.ts","src/services/peerTransport/sync.ts","src/services/sealedPeerChannel/index.ts","src/services/sealedPeerChannel/type.ts","src/services/sessionCoordination/index.ts","src/services/sessionCoordination/policy.ts","src/services/sessionCoordination/type.ts","src/services/sessionDelivery/index.ts","src/services/sessionDelivery/type.ts","src/services/sessionDirectory/index.ts","src/services/sessionDirectory/type.ts","src/services/sessionGroupBridge/index.ts","src/services/sessionGroupBridge/type.ts","src/services/sessionGroups/index.ts","src/services/sessionGroups/type.ts","src/services/sessionIntercom/index.ts","src/services/sessionIntercom/type.ts","src/services/sessionPeers/index.ts","src/services/sessionPeers/type.ts","src/services/sessionsNamespace/index.ts","src/services/sessionsNamespace/nodeOperations.ts","src/services/sessionsNamespace/type.ts","tsdown.config.ts"],"sourceRevision":"
|
|
1
|
+
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","README.md","generated/native.ts","generated/server.ts","generated/web.ts","llms.txt","package.json","src/exports/apiContracts.ts","src/exports/index.ts","src/extensions/(backend)/_lib/sendToSession.server.ts","src/extensions/(backend)/api/session-peer/route.server.ts","src/extensions/(backend)/method/send-to-session.server.ts","src/extensions/(backend)/root.server.ts","src/extensions/workspaces/sessions/(backend)/contract/agentRun.server.ts","src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-network.server.ts","src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-session.server.ts","src/extensions/workspaces/sessions/(backend)/root.server.ts","src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionDelivery.ts","src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.native.ts","src/extensions/workspaces/sessions/(frontend)/_lib/sendToSessionRequest.ts","src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.native.tsx","src/extensions/workspaces/sessions/(frontend)/fill/SendToSession.composer-menu.web.tsx","src/extensions/workspaces/sessions/(frontend)/fill/SendToSessionDialog.overlay.web.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialog.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionDialogHost.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionMenuItem.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionPanel.native.stories.tsx","src/extensions/workspaces/sessions/(frontend)/fill/_components/SendToSessionPanel.native.tsx","src/extensions/workspaces/sessions/(frontend)/lifecycle/start.native.ts","src/extensions/workspaces/sessions/(frontend)/lifecycle/start.web.ts","src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.native.tsx","src/extensions/workspaces/sessions/(frontend)/tool/_components/NetworkToolMessage.tsx","src/extensions/workspaces/sessions/(frontend)/tool/_lib/networkActivity.ts","src/extensions/workspaces/sessions/(frontend)/tool/network.native.tsx","src/extensions/workspaces/sessions/(frontend)/tool/network.web.tsx","src/prompts/codemode-how-to-network/SKILL.md","src/prompts/codemode-how-to-session/SKILL.md","src/schemas/apiContracts.ts","src/schemas/sendToSession.ts","src/schemas/startSession.ts","src/services/agentRunner/index.ts","src/services/agentRunner/type.ts","src/services/backgroundWorkService/index.ts","src/services/childReportGate/index.ts","src/services/childReportGate/type.ts","src/services/childReportLedger/index.ts","src/services/childReportLedger/type.ts","src/services/coordinatorSessions/index.ts","src/services/coordinatorSessions/type.ts","src/services/logbook/index.ts","src/services/logbook/type.ts","src/services/networkNamespace/index.ts","src/services/networkNamespace/type.ts","src/services/peerInbox/index.ts","src/services/peerInboxApi/index.ts","src/services/peerLink/index.ts","src/services/peerLink/roster.ts","src/services/peerLink/type.ts","src/services/peerTransport/config.ts","src/services/peerTransport/index.ts","src/services/peerTransport/sync.edge.ts","src/services/peerTransport/sync.ts","src/services/sealedPeerChannel/index.ts","src/services/sealedPeerChannel/type.ts","src/services/sessionCoordination/index.ts","src/services/sessionCoordination/policy.ts","src/services/sessionCoordination/type.ts","src/services/sessionDelivery/index.ts","src/services/sessionDelivery/type.ts","src/services/sessionDirectory/index.ts","src/services/sessionDirectory/type.ts","src/services/sessionGroupBridge/index.ts","src/services/sessionGroupBridge/type.ts","src/services/sessionGroups/index.ts","src/services/sessionGroups/type.ts","src/services/sessionIntercom/index.ts","src/services/sessionIntercom/type.ts","src/services/sessionPeers/index.ts","src/services/sessionPeers/type.ts","src/services/sessionsNamespace/index.ts","src/services/sessionsNamespace/nodeOperations.ts","src/services/sessionsNamespace/type.ts","tsdown.config.ts"],"sourceRevision":"560c3082e4912745d133b5bc023f6aeb","manifestRevision":"648e2db5cd533295a5b7a2d8ddfc695f","outputFiles":["LICENSE","README.md","dist/apiContracts.cjs","dist/apiContracts.mjs","dist/extensions/native.mjs","dist/extensions/server.cjs","dist/extensions/server.mjs","dist/extensions/web.mjs","dist/index.cjs","dist/index.mjs","dist/type-BlbiS10p.mjs","dist/type-DZtqhE4a.cjs","llms.txt","src/prompts/codemode-how-to-network/SKILL.md","src/prompts/codemode-how-to-session/SKILL.md"],"outputRevision":"93d267ef90a02ef942b4ccad7daa97c7"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-session",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.196",
|
|
4
4
|
"description": "Shared session coordination services for Po.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/AgiFlow/po/issues"
|
|
18
18
|
},
|
|
19
|
-
"license": "
|
|
19
|
+
"license": "MIT",
|
|
20
20
|
"author": "Vuong Ngo",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -64,19 +64,19 @@
|
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@agimon-ai/po-approval": "0.0.0-alpha.
|
|
68
|
-
"@agimon-ai/po-config": "0.0.0-alpha.
|
|
69
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
70
|
-
"@agimon-ai/po-web-components": "0.0.0-alpha.
|
|
71
|
-
"@agimon-ai/po-web-security": "0.0.0-alpha.
|
|
67
|
+
"@agimon-ai/po-approval": "0.0.0-alpha.196",
|
|
68
|
+
"@agimon-ai/po-config": "0.0.0-alpha.196",
|
|
69
|
+
"@agimon-ai/po-core": "0.0.0-alpha.196",
|
|
70
|
+
"@agimon-ai/po-web-components": "0.0.0-alpha.196",
|
|
71
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.196",
|
|
72
72
|
"@deepseek-ai/cordis": "4.0.5",
|
|
73
73
|
"typebox": "1.4.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
77
|
-
"@agimon-ai/po-native-components": "0.0.0-alpha.
|
|
78
|
-
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.
|
|
79
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
76
|
+
"@agimon-ai/po-build": "0.0.0-alpha.196",
|
|
77
|
+
"@agimon-ai/po-native-components": "0.0.0-alpha.196",
|
|
78
|
+
"@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.196",
|
|
79
|
+
"@earendil-works/pi-coding-agent": "1.6.1",
|
|
80
80
|
"@types/node": "26.6.5",
|
|
81
81
|
"@types/react": "19.3.0",
|
|
82
82
|
"@types/react-dom": "19.3.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"vitest": "5.0.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
93
|
+
"@earendil-works/pi-coding-agent": "1.6.1"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"@earendil-works/pi-coding-agent": {
|