paseo-office 0.2.0 → 0.2.2
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/OVERVIEW.md +27 -0
- package/README.md +65 -134
- package/client/action-button.tsx +4 -1
- package/client/activity-panel.tsx +6 -4
- package/client/agent-appearance.tsx +257 -0
- package/client/agent-card.tsx +2 -1
- package/client/agent-picker-text.ts +23 -4
- package/client/agent-picker.tsx +5 -8
- package/client/board-sheet.tsx +48 -16
- package/client/board-text.ts +12 -2
- package/client/brand.ts +1 -0
- package/client/chat-chrome.tsx +318 -0
- package/client/chat-compose-tools.tsx +314 -0
- package/client/chat-dictation.tsx +133 -0
- package/client/chat-more.tsx +119 -0
- package/client/chat-panel.tsx +401 -146
- package/client/chat-quick.tsx +198 -0
- package/client/chat-text.ts +25 -6
- package/client/column-sheet.tsx +93 -23
- package/client/conversation-model.ts +19 -5
- package/client/duty-sheet.tsx +321 -0
- package/client/duty-text.ts +20 -0
- package/client/fullscreen-header.tsx +28 -13
- package/client/fullscreen-theme.ts +38 -0
- package/client/host-details.tsx +269 -0
- package/client/host-styles.ts +129 -0
- package/client/host-switches.tsx +212 -83
- package/client/incidents-card.tsx +2 -1
- package/client/janitor-card.tsx +1 -1
- package/client/library-card.tsx +2 -1
- package/client/list-text.ts +8 -6
- package/client/lobby-board.tsx +73 -53
- package/client/machine-card.tsx +225 -85
- package/client/messenger-styles.ts +216 -0
- package/client/new-agent-form.tsx +153 -61
- package/client/new-agent-model.ts +2 -0
- package/client/notes-card.tsx +111 -83
- package/client/notes-days.tsx +1 -1
- package/client/office-brand-context.ts +44 -0
- package/client/office-column.tsx +2 -1
- package/client/office-keyboard.ts +79 -0
- package/client/office-link.ts +7 -1
- package/client/office-mark.tsx +29 -0
- package/client/office-modal.tsx +440 -0
- package/client/office-settings.tsx +75 -30
- package/client/office-state.ts +12 -2
- package/client/office-surface.tsx +591 -81
- package/client/pixel/actors.ts +2 -1
- package/client/pixel/art.ts +33 -19
- package/client/pixel/pixel-office.tsx +2 -2
- package/client/prompt-coach.tsx +152 -0
- package/client/qa-card.tsx +2 -1
- package/client/review-card.tsx +2 -1
- package/client/room-board.tsx +26 -2
- package/client/scene-picker.tsx +158 -0
- package/client/scene-previews.ts +10 -0
- package/client/session-pane.tsx +25 -5
- package/client/session-panel-detail.tsx +238 -0
- package/client/session-panel.tsx +222 -137
- package/client/session-styles.ts +224 -1
- package/client/session-transcript.tsx +243 -0
- package/client/sessions-panel.tsx +181 -22
- package/client/sessions-text.ts +18 -0
- package/client/settings-sections.tsx +126 -0
- package/client/sidebar-launcher.ts +29 -0
- package/client/ssh-hosts.tsx +331 -0
- package/client/ssh-metrics.ts +76 -0
- package/client/standup-card.tsx +2 -1
- package/client/structure-view.tsx +20 -3
- package/client/styles.ts +170 -62
- package/client/team-chat-preview.tsx +96 -0
- package/client/tracker-connections.tsx +252 -0
- package/client/transcript-styles.ts +90 -0
- package/client/use-device-switch.ts +21 -12
- package/client/use-duty-actions.ts +43 -0
- package/client/use-group-photo.ts +48 -0
- package/client/use-new-agent.ts +4 -0
- package/client/use-street.ts +8 -0
- package/client/workspace-office-tools.tsx +102 -0
- package/client/workspace-overlay-route.web.ts +47 -0
- package/client/workspace-overlay.tsx +195 -0
- package/client/world/adapter.ts +37 -2
- package/client/world/escape.ts +58 -0
- package/client/world/use-world-feed.ts +6 -2
- package/client/world/workspace-dock.ts +6 -0
- package/client/world/world-api.ts +45 -4
- package/client/world/world-bridge-page.ts +14 -3
- package/client/world/world-bridge.ts +50 -5
- package/client/world/world-frame.web.ts +8 -0
- package/client/world/world-view-native.tsx +31 -10
- package/client/world/world-view-shared.ts +36 -7
- package/client/world/world-view.tsx +93 -21
- package/docs/office.md +165 -64
- package/index.client.tsx +13 -6
- package/index.server.ts +232 -16
- package/package.json +2 -1
- package/server/activity.ts +42 -19
- package/server/agent-tools.ts +11 -5
- package/server/board-service.ts +381 -10
- package/server/brand-logo.ts +34 -0
- package/server/chat-group.ts +83 -0
- package/server/chat-service.ts +406 -62
- package/server/chat-store.ts +1 -4
- package/server/directory.ts +22 -7
- package/server/duty-service.ts +230 -0
- package/server/group-photo.ts +39 -0
- package/server/home-departure.ts +47 -0
- package/server/hub.ts +43 -1
- package/server/incidents-jira.ts +19 -7
- package/server/incidents-schedule.ts +10 -10
- package/server/incidents-sentry.ts +34 -8
- package/server/live-ports.ts +114 -18
- package/server/lobby-pickup.ts +170 -0
- package/server/machine/details.ts +91 -0
- package/server/mention-queue.ts +14 -0
- package/server/office.ts +110 -6
- package/server/paths.ts +14 -0
- package/server/ssh/LICENSE.paseo +211 -0
- package/server/ssh/client.ts +401 -0
- package/server/ssh/discovery.ts +230 -0
- package/server/ssh/installed.ts +104 -0
- package/server/ssh/monitor.ts +104 -0
- package/server/ssh/pid-files.ts +194 -0
- package/server/ssh/read.ts +136 -0
- package/server/subagent-names.ts +4 -0
- package/server/tracker-credentials.ts +141 -0
- package/server/words.generated.ts +1 -1
- package/server/world.generated.ts +1 -1
- package/shared/appearance.ts +43 -0
- package/shared/branding.ts +53 -0
- package/shared/chat-words.ts +2 -2
- package/shared/contracts.ts +199 -5
- package/shared/duties.ts +100 -0
- package/shared/host-details.ts +25 -0
- package/shared/lobby-assignment.ts +34 -0
- package/shared/model.ts +9 -1
- package/shared/names.ts +2 -0
- package/shared/settings.ts +14 -3
- package/shared/ssh.ts +34 -0
- package/shared/upstream/README.md +1 -3
- package/shared/upstream/chat-engine.d.ts +4 -0
- package/shared/upstream/prompt-coach.d.ts +6 -0
- package/shared/upstream/prompt-coach.js +178 -0
package/docs/office.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Office 3D guide
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
as a screen, and "Open office" in the Command Center opens it as a workspace tab, which lists that
|
|
5
|
-
workspace's room first. Each workspace is a room, and the lobby holds agents without a workspace.
|
|
3
|
+
Open **Office 3D** from the Paseo sidebar to see the host’s workspaces and agents. **Open office** in the Command Center opens a tab with the current workspace’s room first. Agents without a workspace appear in the lobby.
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
## Work in fullscreen
|
|
6
|
+
|
|
7
|
+
1. Choose **3D** and **Full screen**. **Sessions** on the left shows who is working, resting or waiting for you. **Details** on the right shows activity or the selected conversation. Toggle either sidebar in the header to give the floor more room. [Office with both sidebars](fullscreen-office.png) · [Floor with both sidebars hidden](fullscreen-floor.png)
|
|
8
|
+
2. Select a session row to read its conversation. Click the **↗** beside the row to open the agent’s full Paseo workspace over the floor. In **Walk in**, press **E** at an agent’s desk for the same workspace. The minimize button keeps it available from the camera toolbar. Closing it returns you to the floor. [Embedded workbench](fullscreen-workspace.webp)
|
|
9
|
+
3. Inside the workspace dialog, choose **Office controls** for the conversation, steps and subagents. A reply can join the running turn. **Workspace** switches back to the embedded workbench. On clients without an embeddable workbench, Office shows the session controls directly. [Desktop controls](workspace-controls.webp) · [Controls at phone width](workspace-controls-mobile.webp)
|
|
10
|
+
4. Choose **Team chat** in the header for the shared conversation. Address a session through **To** when you want it to take an action. An assignment that should remain visible until completion belongs on the lobby board. [Floating team chat](fullscreen-team-chat.webp)
|
|
11
|
+
|
|
12
|
+
For configuration, see [Office settings](#settings), [branding](#custom-branding), [boards and wakes](#boards-and-wakes) and the [duty board](#the-duty-board). The port’s upstream revision and asset credits are recorded in [the vendor sources](../vendor/SOURCES.md).
|
|
9
13
|
|
|
10
14
|
## Where the code is
|
|
11
15
|
|
|
@@ -78,10 +82,7 @@ turn, and is offered only on a host whose SDK has an agent's
|
|
|
78
82
|
`cancel()` (`shared/host-extras.ts`); stock Paseo 0.16 does not.
|
|
79
83
|
|
|
80
84
|
"Open session" shows the session in the office's column (see below) in every app, and the card
|
|
81
|
-
closes as it does.
|
|
82
|
-
the 3D office's walk-in) calls the surface's one `openSession`. Leaving for the agent's workspace
|
|
83
|
-
is the session panel's own "Open in workspace", drawn only where the app gives the plugin
|
|
84
|
-
`navigation`.
|
|
85
|
+
closes as it does. In walk-in mode, face an agent and press **E** or tap the on-screen prompt to open their workspace. The same action wakes a sleeping character. **Open in workspace** also opens the selected session’s Paseo workbench over the office. In the browser it uses the paired host’s own workspace, including files, diffs, terminals and session tools. **Office controls** offers session replies, permissions and the room board on native clients and when the workspace cannot be embedded. Closing the overlay returns to the same floor and camera.
|
|
85
86
|
|
|
86
87
|
## Views
|
|
87
88
|
|
|
@@ -111,8 +112,7 @@ that `/` focuses on the web. Each row adds its context, its turn's clock or how
|
|
|
111
112
|
rested, and its cost (`client/list-text.ts`).
|
|
112
113
|
|
|
113
114
|
In browsers that support fullscreen, the Full screen button beside the view switch expands the
|
|
114
|
-
office. Wide screens show Sessions on the left, the floor in the center, and Activity,
|
|
115
|
-
open conversations on the right. Select an agent to read the conversation, reply, or answer a
|
|
115
|
+
office. Wide screens show Sessions on the left, the floor in the center, and Activity or an open conversation on the right. **Team chat** opens a floating messenger over the floor. Select an agent to read the conversation, reply, or answer a
|
|
116
116
|
permission request. Use **Sessions** and **Details** in the top bar to hide either sidebar or both.
|
|
117
117
|
The device remembers your choice. Restoring Sessions brings back its search and filter, and
|
|
118
118
|
restoring Details brings back the conversation and reply draft. Narrow screens open these panels
|
|
@@ -133,31 +133,26 @@ from `office-device` because that one is saved whole.
|
|
|
133
133
|
An open session is a tab after the four, with the agent's status dot and title and a button to
|
|
134
134
|
close it (`client/session-panel.tsx`, `client/use-conversation.ts`). Tabs past the column's edge
|
|
135
135
|
scroll sideways: with a mouse the scroll bar shows, and the tab of the session just shown is
|
|
136
|
-
scrolled into view.
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
scrolled into view. Chat shows formatted replies and folds consecutive tool calls into an
|
|
137
|
+
expandable row. Failed and canceled calls stay visible. **Steps** lists each tool call individually.
|
|
138
|
+
A lobby assignment shows the task and expands to reveal the original instructions.
|
|
139
|
+
The session also shows requests with Approve and Deny, a reply box, and Stop while
|
|
139
140
|
a turn runs on a host that can stop one. A reply joins the running turn (it does not interrupt
|
|
140
141
|
it); while a request waits, the daemon denies that request when the reply goes in, and the box
|
|
141
142
|
says so. What is half typed in a reply box is the surface's, by agent, as the Chat box is: a
|
|
142
|
-
tab switch or a dismissed sheet keeps it, and a sent reply or a closed tab clears it.
|
|
143
|
-
question is answered in the workspace, where the app gives one: the panel then says "Answer this in
|
|
144
|
-
the workspace." and offers
|
|
145
|
-
"Open in workspace"; in an app that gives none it says "This cannot be answered here."
|
|
146
|
-
Attachments, images, slash commands, a changed model or mode and sub-agent tracks are not
|
|
147
|
-
there. A tab leaves only when it is closed: an agent the office does not list (closed, archived, or
|
|
148
|
-
created a moment ago and not yet in the list) keeps its tab, which says so, with "Open in
|
|
149
|
-
workspace" where the app gives one and no reply box; the tab is the normal panel once the agent is
|
|
150
|
-
listed. On a compact layout the sheet shows the session with a Back to Sessions button;
|
|
143
|
+
tab switch or a dismissed sheet keeps it, and a sent reply or a closed tab clears it. For a plan, a question, attachments, model changes or terminal work, choose **Open in workspace**. A session that leaves the directory keeps its tab until you close it. On a compact layout the sheet shows the session with a Back to Sessions button;
|
|
151
144
|
dismissing the sheet leaves the session open, and the Sessions tab on the bar carries the count.
|
|
152
145
|
Open sessions and the chosen tab last while the office is mounted, not across a reload.
|
|
153
146
|
|
|
147
|
+
[Desktop Office controls](workspace-controls.webp) · [Phone Office controls](workspace-controls-mobile.webp)
|
|
148
|
+
|
|
154
149
|
- **Attention** lists the agents that need you, then the office's cards, each only while it has
|
|
155
150
|
something to say: Incidents, Settings (while a schedule cannot follow the settings), Host,
|
|
156
151
|
Janitor, Stand-up, Reviews, QA and Library.
|
|
157
|
-
- **Sessions**
|
|
152
|
+
- **Sessions** groups agents by status. Green marks working agents, amber marks agents that need you and gray marks resting agents. Task bars count completed checklist items. When only context usage is available it has its own label. Searching and status filters work together. Its "New agent"
|
|
158
153
|
button opens a form in the tab's place (`client/new-agent-form.tsx`, `client/use-new-agent.ts`):
|
|
159
|
-
|
|
160
|
-
|
|
154
|
+
enter an optional agent name and open **Customize character** to choose gender, avatar and color.
|
|
155
|
+
Choose a workspace, provider and model, then enter the first prompt. Create starts the agent in
|
|
161
156
|
that workspace (not in a new one for its folder), closes the form and opens the agent's session
|
|
162
157
|
as a tab. The workspaces and providers are read when the form opens, not when the office does; a
|
|
163
158
|
provider still loading after five seconds is left out of the choices.
|
|
@@ -166,14 +161,25 @@ Open sessions and the chosen tab last while the office is mounted, not across a
|
|
|
166
161
|
first provider's default model when that choice is gone. A failure shows its reason with
|
|
167
162
|
everything typed kept. Whether the form is open, the workspace, provider and model chosen and
|
|
168
163
|
the prompt typed are the surface's, as the Chat box is: another tab, Back and a dismissed phone
|
|
169
|
-
sheet keep them while the office is mounted, and a
|
|
164
|
+
sheet keep them while the office is mounted, and a successful creation clears the name, character and prompt. A new project folder,
|
|
170
165
|
a new worktree, attachments and modes
|
|
171
166
|
stay in the app's own screen.
|
|
172
167
|
- **Activity** is a feed derived on the client from the office's state, kept in memory for this
|
|
173
168
|
app run. It fills only while an office surface is open.
|
|
174
169
|
- **Chat** is my-office's team chat engine, running on the office's server
|
|
175
|
-
(`server/chat-service.ts`, with the engine in `shared/upstream/`).
|
|
176
|
-
|
|
170
|
+
(`server/chat-service.ts`, with the engine in `shared/upstream/`). In **Whole group**, one
|
|
171
|
+
available session can answer a conversational message using recent group chat. To give a
|
|
172
|
+
session work, choose it in **To**, `@mention` it, or reply to its message.
|
|
173
|
+
Ask “What is done?” or “What is left?” for a summary from the Director, or repeat a lobby
|
|
174
|
+
task’s text to see its ID, status and owner when known. In fullscreen, **Team chat** floats
|
|
175
|
+
over the floor. On the web you can attach up to four images to a chosen session's prompt. The shared chat shows the image count and the session’s reply. The image files go
|
|
176
|
+
to the chosen session. Use the toolbar to mention someone, send a sticker or create a poll.
|
|
177
|
+
Polls take two to six choices and pin themselves. You can also pin a message from its row.
|
|
178
|
+
Select the pinned banner to read it, or use **Search chat** to find an earlier message.
|
|
179
|
+
The member count opens the team directory with each session’s status. **More chat actions**
|
|
180
|
+
opens the lobby board, starts an agent, or takes a group photo when the floor is available.
|
|
181
|
+
**Quick messages** saves reusable drafts on this device. Browsers with speech recognition
|
|
182
|
+
also offer dictation. With an empty composer, the thumbs-up button sends a quick reply. Messages support quoted replies, reactions, pins, search and polls. On web, selecting a recipient also lets you attach images. The chosen session receives the images and the group sees an attachment label. Open the group header to browse members and open a session. **More** contains saved quick messages, the lobby board and the new-agent form. On a live 3D floor, **Take office photo** captures a 480 × 360 view and posts it to the group. The chat keeps the six most recent photos. Compatible browsers offer dictation. Local draft suggestions use upstream’s English and Vietnamese rules and can be undone.
|
|
177
183
|
|
|
178
184
|
The panels read the surface's one `office.state` subscription.
|
|
179
185
|
|
|
@@ -200,7 +206,7 @@ titles for the banner. It receives its language, its dictionary and the daily-li
|
|
|
200
206
|
writes scene state to the app origin's `localStorage` under keys that start with `office-`:
|
|
201
207
|
which team sits where, the plants, the graphics level, the Sound switch (`office-sound`, which
|
|
202
208
|
the host's setting overwrites at each start), that the tour was seen (`office-tips`), and the
|
|
203
|
-
clip's shape and music choice (`office-clip-shape`, `office-clip-music`), the duty
|
|
209
|
+
clip's shape and music choice (`office-clip-shape`, `office-clip-music`), the cups in the pantry's sink (`office-duty`), drill and farewell history. It reads
|
|
204
210
|
`office-autocam`.
|
|
205
211
|
|
|
206
212
|
The shops, apps and products the scene's text and the team chat name (the cafés and stores people
|
|
@@ -264,8 +270,7 @@ prompt.
|
|
|
264
270
|
|
|
265
271
|
Opening the stand-up rings the bell on the meeting table: everyone the scene counts as free walks
|
|
266
272
|
there and says what they are on. A click on the bell does the same and also starts the stand-up
|
|
267
|
-
notes writer; opening the stand-up writes nothing.
|
|
268
|
-
screen opens the notes card.
|
|
273
|
+
notes writer; opening the stand-up writes nothing. Click or tap the meeting room’s **Sprint review** screen to read the stand-up notes. Its **Stand-up notes** label also opens the reader from the keyboard.
|
|
269
274
|
|
|
270
275
|
From 08:00 to 21:00 by the device's clock an agent at rest does not stay asleep at its desk: after
|
|
271
276
|
30 to 90 seconds there it gets up for a game of pool, foosball or the games TV with another resting
|
|
@@ -276,6 +281,10 @@ rest the gaps are 10 to 20 minutes. The games are my-office's; the office's plan
|
|
|
276
281
|
during a gathering or with reduced motion. After 21:00 an agent that has rested 30 minutes walks
|
|
277
282
|
home, its rest counted from the host's last change of the agent.
|
|
278
283
|
|
|
284
|
+
By default, heading home only affects the scene. Turn on **Office settings → Automation → Archive idle sessions** to archive an eligible idle agent’s Paseo session when it heads home at the end of its shift. Sessions with a pending approval or a working subagent stay active.
|
|
285
|
+
An agent out for evening drinks can still return to work. With the setting enabled, Office archives its still-idle session when it finishes the trip home.
|
|
286
|
+
Archived conversations keep their history and stay off the floor when Office reopens.
|
|
287
|
+
|
|
279
288
|
The viewing device’s date selects decorations when the scene starts. Halloween runs from 20 October through 1 November, Christmas from 12 through 31 December, and Lunar New Year from 14 days before through seven days after its date in Vietnam’s calendar. The upstream table covers 2026 through 2033. These dates apply in both hemispheres.
|
|
280
289
|
|
|
281
290
|
### Languages
|
|
@@ -366,8 +375,15 @@ lounge, and the janitor stays at the cart. The 2D floor has no incident alarm.
|
|
|
366
375
|
|
|
367
376
|
Each room has a board, and the lobby has one for the host: posts are tasks (open, claimed, done) or
|
|
368
377
|
notes, kept in `<PASEO_HOME>/office/boards.json` (200 per board, done tasks dropped after 7 days).
|
|
369
|
-
The lobby's
|
|
370
|
-
|
|
378
|
+
The lobby's to-do list defaults to **Any idle agent**. An available interactive session picks up
|
|
379
|
+
each open task and appears on the board as its claimant. The claim stays until the task is marked
|
|
380
|
+
done or reopened. Choose a specific agent to send it the task when idle. Turning off **Wake agents**
|
|
381
|
+
pauses both automatic pickup and named wakes. Automatic pickup also requires **Agent tools** so the recipient can finish the task on the board. Open tasks stay on the board between host restarts.
|
|
382
|
+
A session whose board tools became unavailable after a reload can finish its own assignment using the exact completion line in its prompt. Other replies keep the task claimed. **Clear finished** deletes completed to-dos.
|
|
383
|
+
|
|
384
|
+
New lobby to-dos addressed to a specific agent use the same tracked assignment and completion confirmation as automatic pickups. Older addressed messages are not sent a second time. When an agent with a workspace claims a lobby task, a copy of the task appears on that workspace's board, linked to the lobby task. Marking either one done marks both done; reopening either one frees the lobby task and deletes the copy, and deleting the lobby task deletes its copy. Lobby tasks already claimed when the office starts get their copy then.
|
|
385
|
+
|
|
386
|
+
The lobby also shows each agent's unfinished checklist steps, text included, which the
|
|
371
387
|
"doing now" read takes from the newest `todo` item among the agent's newest timeline items. The
|
|
372
388
|
steps stay after the agent stops and go when it is archived or closed. The server keeps them in
|
|
373
389
|
memory, and only while an office surface is open: after the last one closes or the daemon restarts,
|
|
@@ -383,16 +399,82 @@ off gets none of them, and a provider that lists `send_agent_prompt` in
|
|
|
383
399
|
A post that names an agent wakes it when it is idle, at most 6 times an hour per agent. Posts that
|
|
384
400
|
wait for an agent go out as one prompt per author: an agent's posts carry that agent as the source,
|
|
385
401
|
the user's posts arrive as a user prompt. A post naming an agent that has not run a turn yet is
|
|
386
|
-
delivered after that agent's first turn or the next post that names it.
|
|
387
|
-
|
|
402
|
+
delivered after that agent's first turn or the next post that names it. Pending mention
|
|
403
|
+
notifications are held in memory.
|
|
404
|
+
|
|
405
|
+
## The duty board
|
|
406
|
+
|
|
407
|
+
The pantry's duty board is kept on the host. You choose its duties: up to 12, each with a name (up
|
|
408
|
+
to 40 characters), the weekdays it is due and, if an agent should do it, instructions (up to 2,000
|
|
409
|
+
characters). A host starts with the four pantry chores, Monday to Friday, without instructions. The
|
|
410
|
+
list is kept in `<PASEO_HOME>/office/duties.json` (`server/duty-service.ts`). A file the office
|
|
411
|
+
cannot read, or one written by a newer version, is moved aside to `duties.json.corrupt-<time>` and
|
|
412
|
+
the list starts again from the four chores; your old list is in that file.
|
|
413
|
+
|
|
414
|
+
At 8:00 in the notes' time zone ("Time zone", the host's when empty or not a zone the host knows)
|
|
415
|
+
each duty due that day is posted as a task on the board `duty`, a host-wide board like the lobby's.
|
|
416
|
+
The run also takes the duties finished on earlier days off the board. When the office starts, and
|
|
417
|
+
when you save the list, a duty due today that has no post yet is posted at once if it is past 8:00.
|
|
418
|
+
A duty still open or claimed when its day ends is owed: it stays on the board and is not posted
|
|
419
|
+
again. An owed duty finished today counts for today, so it is not posted again until its next day.
|
|
420
|
+
Removing a duty takes its open post off the board, and a claimed one stays until it is done. A new
|
|
421
|
+
name or new instructions change today's open post.
|
|
422
|
+
|
|
423
|
+
A duty with instructions goes to an idle agent as a lobby to-do does, under the same rules: one
|
|
424
|
+
task or duty at a time per agent, the wake limits, **Wake agents** and **Agent tools**. Its prompt
|
|
425
|
+
starts "The office assigned you duty p12 from the duty board." and ends with the lobby's two
|
|
426
|
+
completion lines. Agents read the board with `office_read` and `board: "duty"` and claim or finish
|
|
427
|
+
a duty with `office_update`. An agent finishes or reopens only a duty it holds; from the duty board
|
|
428
|
+
you mark any. Nobody posts to the duty board, not even from the office. A duty is never addressed
|
|
429
|
+
to one agent, and unlike a lobby to-do, a claimed duty gets no copy on its agent's workspace board.
|
|
430
|
+
|
|
431
|
+
A duty without instructions is pretend. No agent is asked, and an agent can neither claim nor
|
|
432
|
+
finish it. On the 3D floor a person acts it out as soon as it is idle (resting at its desk with
|
|
433
|
+
nothing else on), at any hour: no duty waits for a time of day. Owed duties go first, then the
|
|
434
|
+
board's order, each to the idle person that has done fewest today, one duty at a time. Work coming
|
|
435
|
+
in calls the person back and the duty waits for the next idle one. Only the cups wait for something
|
|
436
|
+
else, a cup in the sink, unless they are owed. The view tells
|
|
437
|
+
the host, which records it as done by that agent. When two devices both act it out, the first to
|
|
438
|
+
report wins. With no 3D office open, or nobody idle, before its day ends, it stays open and is owed.
|
|
439
|
+
|
|
440
|
+
A click on the 3D pantry's board opens the duty board, and so does **Duty board** on the List's
|
|
441
|
+
lobby card and in the chat's More menu, so the 2D floor and a phone without WebGL can reach it too.
|
|
442
|
+
It shows today's duties with who has each, with Mark done and, for one someone has or that is done,
|
|
443
|
+
Reopen (so a duty an agent that has gone still holds can be handed out again), and the list with
|
|
444
|
+
each duty's name, instructions and day buttons, saved whole. Unticking today's day on a duty takes
|
|
445
|
+
its open post of today off the board when you save; a claimed one stays until it is done, as for a
|
|
446
|
+
removed duty. The scene is told each duty's name, its chore, its holder's title cut to 24 characters
|
|
447
|
+
and its state, never its instructions (`worldDuties` in `client/world/adapter.ts`). The board and
|
|
448
|
+
its tooltip show them, and the scene keeps no rota of its own. Until the host has sent its list (an
|
|
449
|
+
older host has none) nothing offers the duty board, and the scene keeps upstream's rota and its
|
|
450
|
+
note. The four starting duties keep the cups, bin, plants and tables chores. For a duty you add, the
|
|
451
|
+
person walks to the board and back. The person of an agent that holds a duty acts its chore out
|
|
452
|
+
once. HR posts the day's list in the chat in the morning. The scene's part is `paseo-duty-plan.js`
|
|
453
|
+
and `people/duty.js`.
|
|
454
|
+
|
|
455
|
+
## Custom branding
|
|
456
|
+
|
|
457
|
+
Open **Office settings → Appearance → Branding** to preview the current brand and change the office name, logo URL or mark color for everyone on this host. Each field saves on Enter or when you leave it. Clear a field to restore its host default. Branding appears in the fullscreen header and on the 3D floor. The office name also appears in team chat.
|
|
458
|
+
|
|
459
|
+
| Office setting | Daemon environment variable | Example |
|
|
460
|
+
| -------------- | --------------------------- | --------------------------------------- |
|
|
461
|
+
| Office name | `PASEO_BRAND_NAME` | `Acme Studio` |
|
|
462
|
+
| Logo URL | `PASEO_BRAND_LOGO_URL` | `https://assets.example.org/office.png` |
|
|
463
|
+
| Brand color | `PASEO_BRAND_COLOR` | `#e8865f` |
|
|
464
|
+
|
|
465
|
+
Each saved value overrides its environment variable. On web, the name and logo can also come from the Paseo page when both values for that field are empty. Otherwise Office uses its built-in defaults. The mark color tints the built-in icon. Use an HTTPS image URL that clients can reach and enable cross-origin image access on its server so the 3D sign and photos can use it.
|
|
388
466
|
|
|
389
467
|
## Settings
|
|
390
468
|
|
|
391
|
-
The
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
469
|
+
The gear in fullscreen opens **Office settings** over the floor. You can also open the plugin’s settings from Paseo settings or the Command Center.
|
|
470
|
+
|
|
471
|
+
| Section | Controls |
|
|
472
|
+
| ---------- | -------------------------------------------------------------------------------------------- |
|
|
473
|
+
| Appearance | Office view, floor plan, outdoor scene, lighting, sound, scene language and shared branding. |
|
|
474
|
+
| Automation | Agent wake-ups, agent tools, stand-up notes folder, time zone and scheduled days. |
|
|
475
|
+
| Services | Jira and Sentry connections and projects, and the optional weather service. |
|
|
476
|
+
|
|
477
|
+
View and sound preferences apply to the device. The host stores the floor plan, branding, automation and integration settings. The [branding defaults](#custom-branding) can also come from the daemon environment.
|
|
396
478
|
|
|
397
479
|
## The host
|
|
398
480
|
|
|
@@ -400,7 +482,15 @@ While an office surface is open, the `office.machine` subscription sends a readi
|
|
|
400
482
|
memory (the daemon's cgroup when it has a cap, else the host's), CPU, and for each agent the
|
|
401
483
|
memory, the process count and the TCP ports of the processes that carry its `PASEO_AGENT_ID`. The
|
|
402
484
|
Host entry in the Attention tab shows the memory in use and opens a card with the agents by memory.
|
|
403
|
-
|
|
485
|
+
In **Host → This instance → Details**, inspect system swap, disk space on the home filesystem, load averages and the largest process groups by resident memory. RAM and CPU history covers up to 30 minutes of Office readings. The same view lists workspace services, agent listening ports, workspaces with changed lines and measured npm and pip cache sizes. **Refresh** takes another snapshot.
|
|
486
|
+
|
|
487
|
+
Local process readings require Linux. On other platforms the Host card is available when Office
|
|
488
|
+
finds a configured SSH-MCP installation.
|
|
489
|
+
|
|
490
|
+
**Host → SSH** shows the hosts provided by SSH-MCP. Select a host to see its readings in detail.
|
|
491
|
+
Load is the one-minute load average relative to the number of cores, so it can exceed 100%.
|
|
492
|
+
The disk gauge shows the fullest reported mount. Office reads these metrics while the SSH tab is
|
|
493
|
+
open. If Office finds no installed SSH-MCP configuration, the card shows the local reading on its own.
|
|
404
494
|
|
|
405
495
|
An agent has left something running when it has been idle for 30 minutes with a port open, or when
|
|
406
496
|
it is closed or archived and processes of it remain: the daemon collects an idle runtime after an
|
|
@@ -441,8 +531,8 @@ the workspace descriptor the daemon keeps current for the sidebar (`projectWorks
|
|
|
441
531
|
`server/directory.ts`). A blocker is an agent that waits for your answer or stopped on an error, or
|
|
442
532
|
a pull request with failing checks, requested changes or conflicts.
|
|
443
533
|
|
|
444
|
-
"Ask for an update" posts one note per idle agent on its room's board, each naming its agent
|
|
445
|
-
|
|
534
|
+
"Ask for an update" posts one note per idle agent on its room's board, each naming its agent.
|
|
535
|
+
The agent answers with `office_post`, and its note shows in the
|
|
446
536
|
report. An agent is asked once per opening of the card, and the button is off while "Wake agents"
|
|
447
537
|
is off. "Copy as text" copies the report.
|
|
448
538
|
|
|
@@ -475,16 +565,14 @@ archives the writer. A writer that fails, is stopped or closed, or ends without
|
|
|
475
565
|
it is and stays named, with an "Open the writer" button that opens its session in the office's
|
|
476
566
|
column, on the Stand-up card and the notes card; while it is at
|
|
477
567
|
its turn again, no new writer starts. "Stand-up notes" under the Stand-up card's line opens the
|
|
478
|
-
notes
|
|
479
|
-
link to one of the file's own headers, such as the Contents' `- [18 November 2026](#18-november-2026)`,
|
|
480
|
-
scrolls the card to that entry; the app's Markdown would hand the link to its file opener. The
|
|
568
|
+
notes reader at the month’s newest entry. Select a date to read that entry, or use the month arrows to browse earlier files. The entry strip also includes the file’s introduction and Contents when present. Contents links open their entries. The
|
|
481
569
|
server reads only `daily-standup-YYYYMM.md` directly in the notes folder.
|
|
482
570
|
|
|
483
571
|
## Schedules
|
|
484
572
|
|
|
485
|
-
The office runs
|
|
486
|
-
on the "Stand-up days" in the notes' zone, while a notes folder and a day are set,
|
|
487
|
-
incidents check every 5 minutes, while a tracker is on. They are timers in the plugin's process,
|
|
573
|
+
The office runs three schedules of its own (`server/local-schedules.ts`): the stand-up notes at 08:00
|
|
574
|
+
on the "Stand-up days" in the notes' zone, while a notes folder and a day are set, the duty board
|
|
575
|
+
at 08:00 every day in the same zone, and the incidents check every 5 minutes, while a tracker is on. They are timers in the plugin's process,
|
|
488
576
|
not Paseo schedules, so they are not in the app, `paseo schedule ls` or `list_schedules`. The
|
|
489
577
|
office sets them from its settings each time it starts and at each save, and stores nothing.
|
|
490
578
|
|
|
@@ -494,16 +582,30 @@ office sets them from its settings each time it starts and at each save, and sto
|
|
|
494
582
|
it. The plugin's log says when a run is waiting.
|
|
495
583
|
- A notes run that could only start on a later day than it was due is dropped, so no entry is
|
|
496
584
|
written for the wrong day.
|
|
585
|
+
- The duty board's run needs no Paseo API: it posts at once, and only handing a duty to an idle
|
|
586
|
+
agent waits for the API. When the office starts, today's duties not yet posted are posted;
|
|
587
|
+
an earlier day's are not.
|
|
497
588
|
|
|
498
589
|
## Incidents
|
|
499
590
|
|
|
500
591
|
The office rings my-office's incident alarm for a new Jira bug or Sentry issue. "Jira projects"
|
|
501
|
-
takes project keys, and a new issue of type Bug in one of them rings
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
592
|
+
takes project keys, and a new issue of type Bug in one of them rings. "Sentry organisation",
|
|
593
|
+
"Sentry projects" and "Sentry address" (`https://sentry.io` by default) do the same for a new
|
|
594
|
+
unresolved Sentry issue. Jira does not refuse a project key it does not know, so a mistyped key
|
|
595
|
+
rings nothing and shows no problem.
|
|
596
|
+
|
|
597
|
+
Each tracker needs a sign-in, set under Services in the office's settings. Jira takes its
|
|
598
|
+
address, the account's email and an API token; Sentry takes an auth token. "Save connection"
|
|
599
|
+
writes them to `office/trackers.json` in Paseo's home on the host, a file only the daemon's user
|
|
600
|
+
can read (mode 600). The tokens are stored there as typed, not encrypted. A saved token is never
|
|
601
|
+
sent back to the app: its field stays empty, and the settings say only where the sign-in comes
|
|
602
|
+
from. "Test connection" sends one signed-in request with what is typed and saves nothing; a
|
|
603
|
+
Sentry test asks the organisation and address already set. "Remove" deletes a saved connection.
|
|
604
|
+
A save holds from the next check, with no daemon restart.
|
|
605
|
+
|
|
606
|
+
A host with no saved connection reads `ATLASSIAN_BASE_URL`, `ATLASSIAN_EMAIL` and
|
|
607
|
+
`ATLASSIAN_API_TOKEN`, and `SENTRY_AUTH_TOKEN`, from the daemon's environment, as before. A saved
|
|
608
|
+
connection comes first, and a changed variable takes a daemon restart.
|
|
507
609
|
|
|
508
610
|
The first check records what exists and rings nothing. Each check reads from the last successful
|
|
509
611
|
one less 10 minutes, because Jira compares `created` to the minute; the office writes the time in
|
|
@@ -559,8 +661,7 @@ The Reviews entry is in the Attention tab while a workspace has an open or draft
|
|
|
559
661
|
card is a queue: what waits for a review first, then what was sent back, the approved and the
|
|
560
662
|
drafts, each with its branch, its base, the size of the checkout's changes, its checks and its
|
|
561
663
|
conflicts, from the same descriptor as the stand-up. No SDK call fetches a diff or submits a
|
|
562
|
-
verdict
|
|
563
|
-
diff, and the link opens the pull request on its forge.
|
|
664
|
+
verdict. **Open workspace** opens the workbench over the office to show the diff. The pull request link opens its forge.
|
|
564
665
|
|
|
565
666
|
"Ask for a review" posts a note to the team's newest idle agent. The note's first line starts with
|
|
566
667
|
`Review request:` and its second is the pull request's address; that is how the office finds the
|
|
@@ -599,7 +700,7 @@ the workspace, where it is in the changes to review. The office installs and rem
|
|
|
599
700
|
|
|
600
701
|
## Data
|
|
601
702
|
|
|
602
|
-
The office keeps its files in `<PASEO_HOME>/office/`: `boards.json`, `chat.json`,
|
|
703
|
+
The office keeps its files in `<PASEO_HOME>/office/`: `boards.json`, `duties.json`, `chat.json`,
|
|
603
704
|
`notes-writer.json`, `incidents.json`, `tenure.json` (the team ledger) and `lift.json` (the build last serviced). Its settings are Paseo settings documents
|
|
604
705
|
(`shared/settings.ts`): `office` for the host, and `office-device` and `office-column` for each
|
|
605
706
|
device. The host's are in `<PASEO_HOME>/plugin-settings/office/office.json`; an earlier version of
|
|
@@ -609,7 +710,7 @@ refuses a document that holds `undefined`, and the device then keeps nothing.
|
|
|
609
710
|
|
|
610
711
|
## Staff and daily life
|
|
611
712
|
|
|
612
|
-
The indoor scenes cover packed lunches at the microwave, duty
|
|
713
|
+
The indoor scenes cover packed lunches at the microwave, the duty board, tea, the accountant, rounds,
|
|
613
714
|
HR, farewells, interns, reception and delivery staff, the altar, lift servicing, the post and the
|
|
614
715
|
quarterly fire drill. They run on the office clock. During the 12:30–13:30 desk nap, the lively
|
|
615
716
|
floor pauses new activities. Street outings are separate.
|
|
@@ -628,14 +729,14 @@ remaining and a sticker containing its short build ID and the servicing timestam
|
|
|
628
729
|
| ---------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
629
730
|
| HR | Stand-up, birthday, trophy, promotion, farewell and its photo caption, drill notice and report, duty roster |
|
|
630
731
|
| Receptionist | Parcel, lift back in service, altar |
|
|
631
|
-
| Named agent | Stairs, goodbye, parcel acknowledgement
|
|
632
|
-
| Named or resting agent | Nap, wake, tea, returning team, microwave, make-up day, long break
|
|
732
|
+
| Named agent | Stairs, goodbye, parcel acknowledgement |
|
|
733
|
+
| Named or resting agent | Nap, wake, tea, returning team, microwave, make-up day, long break |
|
|
633
734
|
|
|
634
735
|
For most agent lines, reception can speak when nobody is resting. Chat photos are omitted.
|
|
635
736
|
|
|
636
737
|
## The street
|
|
637
738
|
|
|
638
|
-
|
|
739
|
+
Open **Outdoor scene** in Office settings. Select **City**, **Countryside**, **Beach** or **Plain**. **Lighting** offers **App theme**, **Day** and **Night**. Countryside with Day lighting gives the green landscape shown in my-office. Choosing a different environment rebuilds the floor; changing the lighting keeps the camera. Each device remembers its choices. Older devices retain their saved street preference as City or Plain. The city supports taking the lift to the pavement in Walk mode.
|
|
639
740
|
|
|
640
741
|
The device requests the CC0 car models from `office.world.street` and passes the string to the isolated scene in the `street.kit` start option. A failed request leaves procedural traffic and shops available and shows a floor note. The day’s street activities include shopping trips, the guard, lunch, evening drinks, the photo studio and pickleball. The upstream chain modules and branded artwork are excluded. Plain canvas signs carry the names from `scripts/street-brands.mjs`. See the street section of [the source inventory](../vendor/SOURCES.md) when importing upstream changes.
|
|
641
742
|
|
package/index.client.tsx
CHANGED
|
@@ -3,21 +3,28 @@ import type { PluginClientContext, PluginSidebarItemProps } from "@getpaseo/plug
|
|
|
3
3
|
import { SidebarRow } from "@getpaseo/plugin/client/ui";
|
|
4
4
|
import { OfficeSettings } from "./client/office-settings.js";
|
|
5
5
|
import { createOfficeSurface } from "./client/office-surface.js";
|
|
6
|
+
import { createSidebarLauncher } from "./client/sidebar-launcher.js";
|
|
6
7
|
|
|
7
8
|
const SCREEN_ID = "office";
|
|
8
9
|
const PANEL_ID = "office";
|
|
9
10
|
const ICON = "Building2";
|
|
10
11
|
|
|
11
|
-
function OfficeItem({ currentScreen, openScreen }: PluginSidebarItemProps) {
|
|
12
|
-
const open = useCallback(() => openScreen({ screenId: SCREEN_ID }), [openScreen]);
|
|
13
|
-
return <SidebarRow icon={ICON} active={currentScreen?.screenId === SCREEN_ID} onPress={open} />;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
12
|
// The sidebar item and the two Command Center items (the office, its settings) are the ways in;
|
|
17
13
|
// Settings > Sidebar can hide the sidebar item. The office's settings are a screen of the app's
|
|
18
14
|
// Settings.
|
|
19
15
|
export default function contribute(client: PluginClientContext) {
|
|
20
|
-
const
|
|
16
|
+
const launcher = createSidebarLauncher();
|
|
17
|
+
const Surface = createOfficeSurface(() => client.openSettings(SCREEN_ID), launcher);
|
|
18
|
+
function OfficeItem({ currentScreen, layout, openScreen }: PluginSidebarItemProps) {
|
|
19
|
+
const open = useCallback(() => {
|
|
20
|
+
if (layout.platform !== "web") {
|
|
21
|
+
openScreen({ screenId: SCREEN_ID });
|
|
22
|
+
} else if (!launcher.open()) {
|
|
23
|
+
openScreen({ screenId: SCREEN_ID, params: { layout: "fullscreen" } });
|
|
24
|
+
}
|
|
25
|
+
}, [layout.platform, openScreen]);
|
|
26
|
+
return <SidebarRow icon={ICON} active={currentScreen?.screenId === SCREEN_ID} onPress={open} />;
|
|
27
|
+
}
|
|
21
28
|
const removers = [
|
|
22
29
|
client.addScreen({ id: SCREEN_ID, title: "Office 3D", Component: Surface }),
|
|
23
30
|
client.addSettingsScreen({
|