robisie 0.5.53 → 0.6.0
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/CHANGELOG.md +16 -0
- package/README.md +3 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/engine/build-id.json +1 -1
- package/dist/engine/bundle-report.json +1 -1
- package/dist/engine/tick.cjs +283 -17
- package/dist/installation-update.js +418 -70
- package/dist/roles.d.ts +1 -1
- package/docs/README.en.md +4 -2
- package/docs/README.md +4 -2
- package/package.json +1 -1
package/dist/roles.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface Role {
|
|
|
17
17
|
export declare function rolesDir(): string;
|
|
18
18
|
export declare function parseRole(file: Role["file"], text: string): Role;
|
|
19
19
|
export declare function loadRoles(dir?: string): Role[];
|
|
20
|
-
export declare const MANAGED_LINE = "<!-- robisie:managed 0.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.6.0 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
|
|
21
21
|
export type AgentFlavor = "claude" | "codex" | "opencode";
|
|
22
22
|
/** How the operator starts the Builder for one card in its own session (the card id is not a secret). */
|
|
23
23
|
export declare function builderStartCommand(flavor: AgentFlavor, codexRolePath?: string): string;
|
package/docs/README.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — from account to accepted card (package 0.
|
|
1
|
+
# robisie — from account to accepted card (package 0.6.0) <!-- x-release-please-version -->
|
|
2
2
|
|
|
3
3
|
In the project directory with its engine configuration, run `npx robisie init`, then `npx robisie doctor`: init prepares the project goal and tester protection list, and doctor checks both inputs.
|
|
4
4
|
|
|
@@ -580,7 +580,9 @@ cp -p -- "$backup/entries/$entry_id" "$entry_path"
|
|
|
580
580
|
|
|
581
581
|
Once the tgz and selected copies are ready, update. After login, init and doctor use A/B from the installation files and ignore different stale ENV with a warning. For manual installation without login, init reuses saved A/B with ENV-first; explicit `--key-stdin` selects input for A. Manual doctor requires both environment variables; agent credentials depend on the provider as described above. Load the old key BEFORE init/doctor using the same XDG_CONFIG_HOME; separate assignment before export and `&&` retain read failures without printing the key:
|
|
582
582
|
|
|
583
|
-
The normal update is `npx robisie update` (host: add `--engine-config /absolute/path/robisie.config.json`). The first interactive invocation visibly asks for consent and saves `update={consentedAt, enabled:true}` while preserving other configuration fields. Without consent or with `enabled:false`, background invocations exit 0 without changes. After consent, launchd `com.robisie.update` or `robisie-update.timer` runs the same command every 120 seconds; factory runs `factory run --once` on its own 120-second timer. The package prepares an exact npm version in a separate directory, verifies its build-id and integrity, then switches its private current pointer. Health requires two distinct fresh OK ticks with the expected loaded build-id within 1200 seconds (polling every 20 seconds). Failure starts a separate 1200-second health window for the previous version; both confirmed and unconfirmed rollback exit nonzero. New work prevents switching or rollback.
|
|
583
|
+
The normal update is `npx robisie update` (host: add `--engine-config /absolute/path/robisie.config.json`). The first interactive invocation visibly asks for consent and saves `update={consentedAt, enabled:true}` while preserving other configuration fields. Without consent or with `enabled:false`, background invocations exit 0 without changes. After consent, launchd `com.robisie.update` or `robisie-update.timer` runs the same command every 120 seconds; factory runs `factory run --once` on its own 120-second timer. The package prepares an exact npm version in a separate directory, verifies its build-id and integrity, then switches its private current pointer. Health requires two distinct fresh OK ticks with the expected loaded build-id within 1200 seconds (polling every 20 seconds). Failure starts a separate 1200-second health window for the previous version; both confirmed and unconfirmed rollback exit nonzero. New work prevents switching or rollback. On the macOS host, the same command updates the package without board or DB access. It preserves the existing `com.robisie.maszynista` label, environment, logs and interval; it does not create a second factory clock. A fresh LAST-TICK with running Workers or an unknown execution count defers the switch. A private byte-for-byte mode backup and its SHA-256 protect the activation HOLD (`off`); the original mode must be restored with a matching hash. Failure restores the old service and package under the tick lock; real new work prevents an unsafe rollback and raises an alarm. After releasing HOLD, update observes the checkout for up to 480 seconds; the existing pinned activator performs the FF. Read the private audit and attempts in `<stateDir>/update/`; a failed preparation also records the version. To retry only after resolving the cause, remove that version’s one line from `attempts.jsonl`. Deferral is not a failed attempt; after 7200 seconds it records one alarm. `AUTO-UPDATE.off` in `HU_HOME` or the canonical host configuration directory stops host updates. The shared `auto-update.lock.d` and legacy `auto-update.state` also exclude the old updater; before a justified retry, reconcile both attempt registries. Host notifications use the existing CEO inbox and CTO surface; missing delivery is recorded in the audit. Keep the private backup and separate archive restore below. Restart the assistant after roles refresh.
|
|
584
|
+
|
|
585
|
+
For the first upgrade from robisie ≤0.5.45, run `npm install robisie@latest` manually in the installation, then `npx robisie update` (on the host, include its `--engine-config`). Later upgrades use the same update command. Live host activation and retirement of the old updater require separate operator acceptance.
|
|
584
586
|
|
|
585
587
|
<!-- update:start -->
|
|
586
588
|
```sh
|
package/docs/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — od konta do odebranej karty (paczka 0.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.6.0) <!-- x-release-please-version -->
|
|
2
2
|
|
|
3
3
|
W katalogu projektu z konfiguracją silnika uruchom `npx robisie init`, potem `npx robisie doctor`: init przygotuje cel projektu i listę ochrony testera, a doctor sprawdzi oba wejścia.
|
|
4
4
|
|
|
@@ -628,7 +628,9 @@ Gdy tgz i wszystkie wybrane kopie są gotowe, aktualizuj. Po login init i doctor
|
|
|
628
628
|
|
|
629
629
|
Kopia i odtworzenie obejmują oba pliki key i review-key z prywatnymi uprawnieniami; przed init/doctor wczytaj oba odtworzone klucze. Uninstall raportuje osobno stan obu plików i usuwa je z zachowaniem dotychczasowej ochrony ewidencji oraz konfiguracji. Nie unieważnia żadnego klucza na serwerze.
|
|
630
630
|
|
|
631
|
-
Zwykła aktualizacja to `npx robisie update` (host: dodaj `--engine-config /absolutna/sciezka/robisie.config.json`). Pierwsze interaktywne wywołanie pyta jawnie o zgodę i zapisuje `update={consentedAt, enabled:true}`, zachowując pozostałe pola konfiguracji. Bez zgody lub przy `enabled:false` wywołanie w tle kończy się kodem 0 bez zmian. Po zgodzie launchd `com.robisie.update` albo `robisie-update.timer` uruchamia tę samą komendę co 120 sekund; fabryka wykonuje `factory run --once` na osobnym cyklu 120 sekund. Paczka przygotowuje dokładną wersję npm w osobnym katalogu, sprawdza build-id i integralność, potem wymienia prywatny wskaźnik current. Zdrowie wymaga dwóch różnych świeżych taktów OK z loaded oczekiwanego build-id w 1200 sekund, odczytywanych co 20 sekund. Przy błędzie powrót ma osobne okno 1200 sekund dla starego wydania; zarówno potwierdzony, jak i niepotwierdzony powrót ma kod niezerowy. Nowa praca blokuje przełączenie lub powrót.
|
|
631
|
+
Zwykła aktualizacja to `npx robisie update` (host: dodaj `--engine-config /absolutna/sciezka/robisie.config.json`). Pierwsze interaktywne wywołanie pyta jawnie o zgodę i zapisuje `update={consentedAt, enabled:true}`, zachowując pozostałe pola konfiguracji. Bez zgody lub przy `enabled:false` wywołanie w tle kończy się kodem 0 bez zmian. Po zgodzie launchd `com.robisie.update` albo `robisie-update.timer` uruchamia tę samą komendę co 120 sekund; fabryka wykonuje `factory run --once` na osobnym cyklu 120 sekund. Paczka przygotowuje dokładną wersję npm w osobnym katalogu, sprawdza build-id i integralność, potem wymienia prywatny wskaźnik current. Zdrowie wymaga dwóch różnych świeżych taktów OK z loaded oczekiwanego build-id w 1200 sekund, odczytywanych co 20 sekund. Przy błędzie powrót ma osobne okno 1200 sekund dla starego wydania; zarówno potwierdzony, jak i niepotwierdzony powrót ma kod niezerowy. Nowa praca blokuje przełączenie lub powrót. Na hoście macOS ta sama komenda aktualizuje paczkę bez dostępu do tablicy i DB. Zachowuje istniejący label `com.robisie.maszynista`, środowisko, logi i interwał; nie tworzy drugiego zegara fabryki. Świeży LAST-TICK z pracującym Workerem albo nieznanym licznikiem wykonań odracza switch. Prywatna kopia bajtów mode i jej SHA-256 chronią HOLD aktywacji (`off`); oryginalny mode musi wrócić ze zgodnym hashem. Awaria odtwarza starą usługę i paczkę pod blokadą taktu; nowa rzeczywista praca powstrzymuje niebezpieczny powrót i wywołuje alarm. Po zdjęciu HOLD update obserwuje checkout do 480 sekund; FF wykonuje istniejący pinned aktywator. Prywatny audyt i próby znajdziesz w `<stateDir>/update/`; błąd przygotowania też zapisuje wersję. Aby ponowić po wyjaśnieniu przyczyny, usuń jedną linię tej wersji z `attempts.jsonl`. Odroczenie nie oznacza nieudanej próby; po 7200 sekund zapisuje jeden alarm. `AUTO-UPDATE.off` w HU_HOME albo katalogu kanonicznego configu hosta zatrzymuje hostowe aktualizacje. Wspólne `auto-update.lock.d` i legacy `auto-update.state` wykluczają też stary aktualizator; przed uzasadnionym ponowieniem rozlicz oba rejestry prób. Powiadomienia hosta korzystają z istniejącej skrzynki CEO i adresu CTO; brak dostawy trafia do audytu. Zachowaj prywatną kopię i osobny awaryjny restore archiwum. Po odświeżeniu ról uruchom ponownie asystenta.
|
|
632
|
+
|
|
633
|
+
Pierwsze przejście z robisie ≤0.5.45 wykonaj ręcznie: `npm install robisie@latest` w instalacji, potem `npx robisie update` (na hoście z jego `--engine-config`). Kolejne wydania obsługuje ta sama komenda update. Aktywacja żywego hosta i wyłączenie starego aktualizatora wymagają osobnego odbioru operatora.
|
|
632
634
|
|
|
633
635
|
<!-- update:start -->
|
|
634
636
|
```sh
|
package/package.json
CHANGED