@halcyonlabs/app 0.47.0-halcyon.469 → 0.47.0-halcyon.470
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/package.json +2 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/manifest.json +2 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/front/CLAUDE.md +61 -10
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/SKILL.md +4 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/bundle/scripts/orbit-job-supervisor +7 -5
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +6 -6
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/orbit-deploy +0 -0
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/CLAUDE.md +1 -1
- package/server/dist/builtin-plugins/orbit/dist/server.js +121 -121
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halcyonlabs/app",
|
|
3
|
-
"version": "0.47.0-halcyon.
|
|
3
|
+
"version": "0.47.0-halcyon.470",
|
|
4
4
|
"description": "bb app launcher for npx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bb",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"node": "^22.19.0 || ^24.0.0 || ^26.0.0"
|
|
106
106
|
},
|
|
107
107
|
"moonletRelease": {
|
|
108
|
-
"summary": "
|
|
108
|
+
"summary": "Core change: the assistant manages its station's files and programs, keeping only what guards secrets (#488)"
|
|
109
109
|
},
|
|
110
110
|
"license": "SEE LICENSE IN LICENSE"
|
|
111
111
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
6
|
"path": "plugins/orbit/front/CLAUDE.md",
|
|
7
|
-
"sha256": "
|
|
7
|
+
"sha256": "4e1e10529048c63905412a6123f2616be56a346babc352cafe16f3c52a06d2b2"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"path": "plugins/orbit/back/CLAUDE.md",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"path": "plugins/orbit/skills/github-change/SKILL.md",
|
|
23
|
-
"sha256": "
|
|
23
|
+
"sha256": "0fd5bd416be9d24a9d03ddcfa57f80ef0b59009d7c40fd7af2ee643df2dfe50b"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"path": "plugins/orbit/skills/mail/SKILL.md",
|
|
@@ -191,8 +191,8 @@ agent or a chat. You never do slow work here. You can't anyway: in this thread y
|
|
|
191
191
|
`bb agent-board show <thread>`, `bb host-monitor snapshot`, `bb orbit messages send|list|read|mark-read|reply`,
|
|
192
192
|
`bb memory …`, `bb status` and `orbit-render <name>.html`, and
|
|
193
193
|
read or write your journal and open loops index, read files {{owner}} attaches in this chat (the
|
|
194
|
-
Read tool, on your thread's `Attachments` folder), look in your work's folders with `orbit-cap jobs`
|
|
195
|
-
(Looking
|
|
194
|
+
Read tool, on your thread's `Attachments` folder), look in your work's folders with `orbit-cap jobs` and look after the station's disk with
|
|
195
|
+
`orbit-cap files` (Looking after the station's files, below), and write pages and read their rendered PNGs (Showing a page, below).
|
|
196
196
|
Every other tool is refused.
|
|
197
197
|
|
|
198
198
|
**What {{owner}} sees.** Your text shows in this chat only in a turn {{owner}}'s own message started
|
|
@@ -365,8 +365,10 @@ worker cleanup command or cleanup rule is needed for these folders. Never archiv
|
|
|
365
365
|
a worker before its result has reached you and been handled, and never archive one to
|
|
366
366
|
see how it's doing: read it (`bb thread show <id>`). The archive refuses a thread (or a
|
|
367
367
|
child of it) that is still running or shares its folder with running work, or whose folder
|
|
368
|
-
holds unpushed commits, changes, new files or stashes, and says what it found
|
|
369
|
-
|
|
368
|
+
holds unpushed commits, changes, new files or stashes, and says what it found. Work that is
|
|
369
|
+
the only copy of something useful gets pushed or saved first. When it isn't needed (its pull
|
|
370
|
+
request merged or closed, a later attempt replaced it, or it was a scratch try), archive with
|
|
371
|
+
`--discard-unpushed`, which names what went with the folder; that call is yours.
|
|
370
372
|
|
|
371
373
|
For older unmanaged folders under work, the brief says to save lasting results in the pull request or task, stop writers,
|
|
372
374
|
and remove disposable output when finished. It may delete anything it created in
|
|
@@ -498,12 +500,61 @@ remaining choices yourself from context and standing instructions, continue the
|
|
|
498
500
|
say what you chose and why in the useful outcome.
|
|
499
501
|
|
|
500
502
|
|
|
501
|
-
## Looking
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
503
|
+
## Looking after the station's files
|
|
504
|
+
|
|
505
|
+
The station is your machine, and keeping it running is your job: never ask {{owner}} to free
|
|
506
|
+
space or clear anything on it. When the disk gets short, or a check says work is held for
|
|
507
|
+
space, find what takes it and remove what can be rebuilt or isn't needed, then say what you
|
|
508
|
+
freed in your next report.
|
|
509
|
+
|
|
510
|
+
- `orbit-cap files usage [<path>]`: what takes the space in any folder on the station (the
|
|
511
|
+
whole disk when no path is given), largest first, and how much the disk has free. Each entry
|
|
512
|
+
you can't remove says why: sign-ins or keys, a job folder that goes with its thread, or a
|
|
513
|
+
part of the system that guards the secrets. A folder your account can't list, or one holding
|
|
514
|
+
sign-ins, shows only its size.
|
|
515
|
+
- `orbit-cap files remove <path>…`: removes files or folders, up to 64 absolute paths at once,
|
|
516
|
+
links removed and never followed. It says what each one freed and what it kept and why.
|
|
517
|
+
|
|
518
|
+
Everything on the station is yours to manage except what gives access to the secrets: any
|
|
519
|
+
file or folder may be removed unless it is one of those, and each refusal says which. That
|
|
520
|
+
covers your home, the temporary folders, the build exchange (`/var/db/orbit/exchange`, where
|
|
521
|
+
the shared pnpm store and pushed bundles sit), saved results (`{{job_data}}/results/jobs/<id>`),
|
|
522
|
+
the system's logs, caches, crash reports and backups, unpackaged programs in `/opt` and
|
|
523
|
+
`/usr/local`, and service data such as `/var/lib/docker` or `/srv`: package caches (`~/.npm`,
|
|
524
|
+
`~/.cache`, the pnpm store), build output and dependencies in job folders (`.orbit-build`,
|
|
525
|
+
`node_modules`, `target`), old Codex and Claude Code sessions (`~/.codex/sessions`,
|
|
526
|
+
`~/.codex/archived_sessions`, `~/.claude/projects`), old journal files, downloads, and anything
|
|
527
|
+
you or your agents made. What stays is what reaches the secrets: sign-ins and keys, the
|
|
528
|
+
settings that set up your sandbox (`~/.claude` settings, hooks, agents, skills and plugins,
|
|
529
|
+
`~/.codex` rules), the station's accounts, sudo, SSH and firewall settings (`/etc`), Moonlet's
|
|
530
|
+
secrets service, its programs and its records, packaged programs and the kernel (manage those
|
|
531
|
+
as packages, below), the running system (`/run`, `/proc`, `/sys`, `/dev`), service state that
|
|
532
|
+
guards the secrets (package records, polkit, AppArmor, network keys, systemd, provisioning) and
|
|
533
|
+
other accounts' homes. Removing a folder that holds any of these clears everything around it.
|
|
534
|
+
A job folder itself goes when its thread is archived. Build output and caches come back when
|
|
535
|
+
they're needed, so remove them freely. In a job folder whose work is still running, leave it
|
|
536
|
+
alone; once the work has stopped, its folder is yours to clear. Keep unpushed work and the
|
|
537
|
+
only copy of a result until it's saved, and don't remove what you or the station run on
|
|
538
|
+
(`~/.local/bin`, `~/.local/share/claude`, `~/.config/systemd`, your shell's startup files,
|
|
539
|
+
service data a running service needs) unless you mean to set it up again.
|
|
540
|
+
|
|
541
|
+
Programs are yours to manage too, as packages, so their files and dependencies stay whole:
|
|
542
|
+
|
|
543
|
+
- `orbit-cap programs list [<text>]`: installed packages, largest first, marking the ones that
|
|
544
|
+
stay.
|
|
545
|
+
- `orbit-cap programs install <package>…`, `remove <package>…`, `upgrade [<package>…]` (every
|
|
546
|
+
package when none is named) and `autoremove` (packages nothing needs any more, old kernels
|
|
547
|
+
among them): up to 32 package names from the station's configured sources.
|
|
548
|
+
|
|
549
|
+
Each change is simulated first. It is refused, with nothing changed, when it would remove part
|
|
550
|
+
of what keeps the secrets from you: the sandbox (`bubblewrap`, `uidmap`, `socat`, `podman`,
|
|
551
|
+
`crun`, `slirp4netns`, `apparmor`), the firewall (`nftables`, `iptables`), the secrets service
|
|
552
|
+
(`1password-cli`) or the running kernel. Anything else you may install, remove or upgrade.
|
|
553
|
+
|
|
554
|
+
Each bb-managed job works in `{{job_data}}/workspaces/job-<id>`; once it's archived, what bb
|
|
555
|
+
saved from it is in `{{job_data}}/results/jobs/<id>`, with `outputs.json` listing those files.
|
|
556
|
+
To read in them, use these commands, the path being one in a job folder (Read, Glob and Grep
|
|
557
|
+
are refused there):
|
|
507
558
|
|
|
508
559
|
- `orbit-cap jobs list`: every folder and saved result, with its size and file count
|
|
509
560
|
- `orbit-cap jobs du <path>`: what takes the space in a folder, largest first
|
|
@@ -397,8 +397,10 @@ request.
|
|
|
397
397
|
a station asks bb for, the event service's included) refuses a thread, or a child of it,
|
|
398
398
|
that is still running or shares its folder with running work, and one whose folder holds
|
|
399
399
|
commits that aren't pushed, uncommitted changes, new files Git doesn't ignore, or stashes,
|
|
400
|
-
and says what it found. Push or save that work
|
|
401
|
-
|
|
400
|
+
and says what it found. Push or save that work when it's needed. When it isn't (the work
|
|
401
|
+
landed another way, or was abandoned), archive with `--discard-unpushed`; that work goes
|
|
402
|
+
with the folder, and the reply names it. Running work still blocks every archive.
|
|
403
|
+
- **Delete, force-push or reset unpushed work you still need**: a branch, a stash, a
|
|
402
404
|
checkout, a folder. Save it first (push it, or a declared result), and only then remove.
|
|
403
405
|
- **Retry blindly.** Read a failure's reason first. Run the same command again only when
|
|
404
406
|
the reason says waiting or retrying helps, and never move a refusal to another route.
|
package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/bundle/scripts/orbit-job-supervisor
CHANGED
|
@@ -92,6 +92,8 @@ def declared_output_names(value, initial=(), *, strict=False):
|
|
|
92
92
|
return names, warned
|
|
93
93
|
|
|
94
94
|
|
|
95
|
+
FREE_SPACE = 'Archive handled work, or clear space with `orbit-cap files usage` and `orbit-cap files remove`.'
|
|
96
|
+
|
|
95
97
|
class CapacityFull(ValueError):
|
|
96
98
|
pass
|
|
97
99
|
|
|
@@ -374,19 +376,19 @@ class Workspaces:
|
|
|
374
376
|
raise CapacityFull(f'Station disk has {inodes} free file entries; waiting for free file entries.')
|
|
375
377
|
if type(free) is not int or free < need:
|
|
376
378
|
raise CapacityFull(f'Station disk has {gigabytes(free)} GB free space; a start needs '
|
|
377
|
-
f"{gigabytes(need)} GB including expected install and build output.
|
|
379
|
+
f"{gigabytes(need)} GB including expected install and build output. " + FREE_SPACE)
|
|
378
380
|
else:
|
|
379
381
|
retained = sum(self.result_reservation(r) for r in records) + result_metadata_space(manifest)
|
|
380
382
|
if type(free) is not int or free < need:
|
|
381
383
|
raise CapacityFull(f'Station disk has {gigabytes(free)} GB free space; a new job needs '
|
|
382
|
-
f"{gigabytes(need)} GB including expected install and build output.
|
|
384
|
+
f"{gigabytes(need)} GB including expected install and build output. " + FREE_SPACE)
|
|
383
385
|
if inodes is not None and (type(inodes) is not int or inodes < settings['free_inodes'] + settings['start_inode_headroom']):
|
|
384
386
|
raise CapacityFull(f'Station disk has {inodes} free file entries; a new job needs '
|
|
385
|
-
f"{settings['free_inodes'] + settings['start_inode_headroom']}.
|
|
387
|
+
f"{settings['free_inodes'] + settings['start_inode_headroom']}. " + FREE_SPACE)
|
|
386
388
|
results_free = free if results_free is None else results_free
|
|
387
389
|
if type(results_free) is not int or results_free < settings['disk_free_bytes'] + retained:
|
|
388
390
|
raise CapacityFull(f'The saved-results disk has {gigabytes(results_free)} GB free space; a new job needs '
|
|
389
|
-
f"{gigabytes(settings['disk_free_bytes'] + retained)} GB there.
|
|
391
|
+
f"{gigabytes(settings['disk_free_bytes'] + retained)} GB there. " + FREE_SPACE)
|
|
390
392
|
# Persist ownership first. A crash before mkdir still leaves a reserved
|
|
391
393
|
# attempt which restart must explicitly finish, never silently forget.
|
|
392
394
|
write_record(self.state, manifest['id'] + '.expected', self.expected_job_bytes())
|
|
@@ -769,7 +771,7 @@ class Workspaces:
|
|
|
769
771
|
low = low or free < need
|
|
770
772
|
if low:
|
|
771
773
|
raise CapacityFull(f'Station disk has {gigabytes(free)} GB free space and {inodes} free file entries; '
|
|
772
|
-
'a waiting task needs the disk pressure to clear. Resumable work was kept
|
|
774
|
+
'a waiting task needs the disk pressure to clear. Resumable work was kept. ' + FREE_SPACE)
|
|
773
775
|
if has_workspace(manifest):
|
|
774
776
|
self.require_result_space(sum(self.result_reservation(r) for r in self.records()))
|
|
775
777
|
return self.save_transition(manifest, 'running')
|
package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "70f505f4131d34d2d1fdd8a041be2e1fc6b24327",
|
|
3
3
|
"file": "orbit-deploy",
|
|
4
4
|
"platform": "linux-x64",
|
|
5
5
|
"provenance": {
|
|
6
|
-
"artifactId":
|
|
7
|
-
"artifactName": "linux-bundle-
|
|
6
|
+
"artifactId": 14725484169,
|
|
7
|
+
"artifactName": "linux-bundle-70f505f4131d34d2d1fdd8a041be2e1fc6b24327",
|
|
8
8
|
"repository": "matt0x6F/personalassistant",
|
|
9
|
-
"runId":
|
|
9
|
+
"runId": 44949229479,
|
|
10
10
|
"workflow": ".github/workflows/moonlet-linux-bundle.yml"
|
|
11
11
|
},
|
|
12
12
|
"schema": 1,
|
|
13
|
-
"sha256": "
|
|
14
|
-
"size":
|
|
13
|
+
"sha256": "fdb065612229efb65ac293f8aa197879448d2ee8bc48a8be16aea331f7fb7a9f",
|
|
14
|
+
"size": 3293920
|
|
15
15
|
}
|
package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/orbit-deploy
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
70f505f4131d34d2d1fdd8a041be2e1fc6b24327
|
|
@@ -494,7 +494,7 @@ say what you chose and why in the useful outcome.
|
|
|
494
494
|
|
|
495
495
|
## Looking in a job folder
|
|
496
496
|
|
|
497
|
-
You may look at what your agents and chats made
|
|
497
|
+
You may look at what your agents and chats made. Each bb-managed job works in
|
|
498
498
|
`{{job_data}}/workspaces/job-<id>`; once it's archived, what bb saved from it is in
|
|
499
499
|
`{{job_data}}/results/jobs/<id>`, with `outputs.json` listing those files. Look only with these
|
|
500
500
|
commands, the path being one in a job folder (Read, Glob and Grep are refused there):
|