@centralu/host-linux-x64 0.1.0-beta.29 → 0.1.0-beta.31
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/host/app-template/AGENTS.md +16 -0
- package/host/app-template/runtime/centralu-app-runtime.mjs +13 -13
- package/host/app-template/runtime/centralu-app-runtime.mjs.map +1 -1
- package/host/bundle-info.json +2 -2
- package/host/centralu-package.json +5 -5
- package/host/main.mjs +14136 -6012
- package/package.json +1 -1
|
@@ -79,6 +79,22 @@ when an agent's call started it, on this app's screen when the screen did — an
|
|
|
79
79
|
until the manifest's `uses` changes. The call waits while the person decides (up to 5 minutes). A
|
|
80
80
|
refusal comes back as that error: show it plainly instead of retrying.
|
|
81
81
|
|
|
82
|
+
**Background work.** Centralu stops an app with no open screen and no call for 5 minutes. An app
|
|
83
|
+
with work on its own clock (a timer that polls, a queue it drives) declares it in the manifest,
|
|
84
|
+
`"uses": { "background": "what it does, in a few words" }`, and calls `centralu.busy('what it is
|
|
85
|
+
doing now')` while there is work and `centralu.busy(false)` once there is none: anywhere, a timer
|
|
86
|
+
included. Meanwhile it keeps running, and its row says "Running: <what it is doing now>"; the person
|
|
87
|
+
can stop it. It resolves false (said on stderr) when Centralu did not take it. Hold it only while
|
|
88
|
+
there is work.
|
|
89
|
+
|
|
90
|
+
**Telling a session later.** To tell the session that asked for work when that work ends (a job
|
|
91
|
+
finished, something needs it), declare `"uses": { "notices": true }`, keep
|
|
92
|
+
`centralu.noticeAddress()` (inside the tool handler of that session's call) with the work, and when
|
|
93
|
+
it is done call `await centralu.notify(address, 'what happened')`: anywhere, a timer included. The
|
|
94
|
+
session receives it as your app's message. It resolves false (said on stderr) when Centralu did not
|
|
95
|
+
take it: the session is gone, Centralu is restarting (try again later), or more than 10 a minute.
|
|
96
|
+
The address is null when a view called, or the manifest does not declare it.
|
|
97
|
+
|
|
82
98
|
## Dragging an item out of the screen
|
|
83
99
|
|
|
84
100
|
An item the person may want to hand to a session (a card, a row, a record) should be draggable and
|