robisie 0.5.25 → 0.5.27

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.
@@ -7,9 +7,12 @@ export type EngineRoleRegistry = Record<typeof ROLES[number], {
7
7
  provider: typeof PROVIDERS[number];
8
8
  model: string;
9
9
  effort: string;
10
+ requireIndependentProvider?: boolean;
10
11
  }>;
11
12
  /** Separate from K2 roles (names/inflections) and K7's resource RoleRegistry. */
12
13
  export declare function parseRoleRegistry(raw: unknown, configPath: string): EngineRoleRegistry;
14
+ /** Shared client execution contract; host registries retain their existing choices. */
15
+ export declare function validateClientRoles(worker: EngineRoleRegistry["worker-client"], reviewer: EngineRoleRegistry["reviewer-client"]): void;
13
16
  /** Select CLI/model/effort from the parsed registry; manufacturer and profile metadata belong to the caller. */
14
17
  export declare function resolveRoleExecution(registry: EngineRoleRegistry, role: string): {
15
18
  provider: typeof PROVIDERS[number];
@@ -21,5 +24,5 @@ export declare function loadRoleRegistryConfig(path: string): {
21
24
  config: EngineConfig;
22
25
  roleRegistry: EngineRoleRegistry;
23
26
  };
24
- export declare function doctorEngineConfig(ctx: Ctx, path: string, afterLoad?: (config: EngineConfig) => void): number;
27
+ export declare function doctorEngineConfig(ctx: Ctx, path: string, afterLoad?: (config: EngineConfig, registry: EngineRoleRegistry) => void): number;
25
28
  export {};
@@ -29,7 +29,7 @@ export function parseRoleRegistry(raw, configPath) {
29
29
  fail(configPath, path, "wymagany własny wpis {name, provider, model, effort}");
30
30
  const entry = registry[role];
31
31
  for (const key of Object.keys(entry)) {
32
- if (!FIELDS.includes(key))
32
+ if (!FIELDS.includes(key) && !(role === "reviewer-client" && key === "requireIndependentProvider"))
33
33
  fail(configPath, path, "nieznane pole; dozwolone: " + FIELDS.join(", "));
34
34
  }
35
35
  for (const field of FIELDS) {
@@ -40,11 +40,25 @@ export function parseRoleRegistry(raw, configPath) {
40
40
  if (!PROVIDERS.includes(entry.provider)) {
41
41
  fail(configPath, `${path}.provider`, "dozwoleni dostawcy: " + PROVIDERS.join(", "));
42
42
  }
43
+ if (Object.hasOwn(entry, "requireIndependentProvider") && typeof entry.requireIndependentProvider !== "boolean")
44
+ fail(configPath, `${path}.requireIndependentProvider`, "wymagany boolean true albo false");
43
45
  result[role] = { name: entry.name, provider: entry.provider,
44
- model: entry.model, effort: entry.effort };
46
+ model: entry.model, effort: entry.effort,
47
+ ...(Object.hasOwn(entry, "requireIndependentProvider") ? { requireIndependentProvider: entry.requireIndependentProvider } : {}) };
45
48
  }
46
49
  return result;
47
50
  }
51
+ /** Shared client execution contract; host registries retain their existing choices. */
52
+ export function validateClientRoles(worker, reviewer) {
53
+ if (worker.provider !== "codex" || !["codex", "claude", "grok"].includes(reviewer.provider))
54
+ throw new RobisieError("Worker klienta wymaga Codex; recenzent klienta: Codex, Claude albo Grok.", "Wybierz obsługiwanego dostawcę w rejestrze.");
55
+ if (Object.hasOwn(reviewer, "requireIndependentProvider") && typeof reviewer.requireIndependentProvider !== "boolean")
56
+ throw new RobisieError("requireIndependentProvider wymaga boolean true albo false.", "Popraw konfigurację recenzenta.");
57
+ if (reviewer.provider === "grok" && (reviewer.model !== "grok-cli" || reviewer.effort !== "none"))
58
+ throw new RobisieError("Recenzent Grok wymaga grok-cli/none.", "Popraw model i effort recenzenta.");
59
+ if (reviewer.provider === worker.provider && reviewer.requireIndependentProvider !== false)
60
+ throw new RobisieError("Wymagana niezależność: wybierz innego dostawcę lub jawnie wyłącz wymóg przez requireIndependentProvider=false.", "Wybierz innego dostawcę lub jawne false.");
61
+ }
48
62
  /** Select CLI/model/effort from the parsed registry; manufacturer and profile metadata belong to the caller. */
49
63
  export function resolveRoleExecution(registry, role) {
50
64
  if (!ROLES.includes(role) || !Object.hasOwn(registry, role)) {
@@ -84,7 +98,7 @@ export function loadRoleRegistryConfig(path) {
84
98
  }
85
99
  export function doctorEngineConfig(ctx, path, afterLoad) {
86
100
  const { roleRegistry, config } = loadRoleRegistryConfig(resolve(ctx.cwd, path));
87
- afterLoad?.(config);
101
+ afterLoad?.(config, roleRegistry);
88
102
  for (const role of ROLES) {
89
103
  const { name, provider, model, effort } = roleRegistry[role];
90
104
  ctx.out(`${role} → ${name} / ${provider} / ${model} / ${effort}`);
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.5.25 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
20
+ export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.27 \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.5.25) <!-- x-release-please-version -->
1
+ # robisie — from account to accepted card (package 0.5.27) <!-- 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
 
@@ -276,7 +276,7 @@ git commit -m "Przygotuj lokalne powitanie"
276
276
  ```
277
277
  <!-- local-repo-setup:end -->
278
278
 
279
- Save the entire JSON below as `robisie.config.json` in the repo directory, without overwriting existing configuration. **Replace** fictitious `project` with the UUID from authenticated `list_projects`, and the `tracks` UUID and name with a real track from that project’s board. Replace `engine.repo` with the absolute current repo path and `stateDir` with a separate directory **outside the repo**. Complete all four `roleRegistry` entries. In the local flow, `worker-client` must use `provider: codex`, and `reviewer-client` must use `provider: grok`, `model: grok-cli`, `effort: none`. Another pair will stop at `HOLD clientPair`, even if it passes configuration validation. For Codex roles, choose a real model available on your account and supported effort; this example uses `gpt-6.1-sol` / `high`, not fixture models. The installed Grok CLI selects the reviewer model; keep `grok-cli` / `none`. The local flow needs available, signed-in `codex` and `grok` programs; the installer provider’s program alone is insufficient. Parsing and offline doctor do not prove model/provider availability. This execution registry is separate from the installer’s CEO/Builder/Quality Officer map.
279
+ Save the entire JSON below as `robisie.config.json` in the repo directory, without overwriting existing configuration. **Replace** fictitious `project` with the UUID from authenticated `list_projects`, and the `tracks` UUID and name with a real track from that project’s board. Replace `engine.repo` with the absolute current repo path and `stateDir` with a separate directory **outside the repo**. Complete all four `roleRegistry` entries. In the local flow, `worker-client` must use `provider: codex`, and `reviewer-client` can select Codex, Claude or Grok. Grok still requires `provider: grok`, `model: grok-cli`, `effort: none`. Only the reviewer supports optional boolean `requireIndependentProvider`: absent or `true` requires another provider; Codex requires explicit `false`. Every `false`, including Claude or Grok, marks review and acceptance as `partial` with the note “częściowa: bez niezależnego sprawdzenia”. Review always runs in a separate process. An unsupported pair or a configuration change during the card causes `HOLD clientPair`. For Codex roles, choose a real model available on your account and supported effort; this example uses `gpt-6.1-sol` / `high`, not fixture models. Set the Codex or Claude reviewer model and effort in the registry; the installed Grok CLI selects its model (`grok-cli` / `none`). The local flow needs an available, signed-in Codex Worker, the selected reviewer, and Grok for acceptance. `doctor --engine-config` checks this pair and login (`claude auth status` for Claude), without a paid model call; a missing CLI or unconfirmed login prevents readiness. Parsing and offline doctor do not prove model/provider availability. This execution registry is separate from the installer’s CEO/Builder/Quality Officer map.
280
280
 
281
281
  <!-- local-engine-config:start -->
282
282
  ```json
package/docs/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # robisie — od konta do odebranej karty (paczka 0.5.25) <!-- x-release-please-version -->
1
+ # robisie — od konta do odebranej karty (paczka 0.5.27) <!-- 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
 
@@ -321,7 +321,7 @@ git commit -m "Przygotuj lokalne powitanie"
321
321
  ```
322
322
  <!-- local-repo-setup:end -->
323
323
 
324
- Zapisz cały poniższy JSON jako `robisie.config.json` w katalogu repo, bez nadpisywania istniejącej konfiguracji. **Podmień** fikcyjne `project` na UUID z uwierzytelnionego `list_projects`, a UUID i nazwę `tracks` na rzeczywisty tor z tablicy tego projektu. Podmień `engine.repo` na absolutną ścieżkę bieżącego repo, a `stateDir` na osobny katalog **poza repo**. Uzupełnij wszystkie cztery wpisy `roleRegistry`. W lokalnym przebiegu `worker-client` musi używać `provider: codex`, a `reviewer-client` musi używać `provider: grok`, `model: grok-cli`, `effort: none`. Inna para zostanie zatrzymana przez `HOLD clientPair`, nawet jeśli przejdzie walidację konfiguracji. Dla ról Codex wybierz rzeczywisty model dostępny na swoim koncie i obsługiwany effort; przykład używa `gpt-6.1-sol` / `high`, nie modeli fixture. Model recenzenta wybiera zainstalowany Grok CLI; zachowaj `grok-cli` / `none`. Lokalny przebieg wymaga dostępnych i zalogowanych programów `codex` i `grok`; sam program dostawcy instalatora nie wystarcza. Same parsowanie i doctor offline nie dowodzą dostępności modeli ani dostawców. Rejestr wykonania jest odrębny od mapy instalatora CEO/Builder/Quality Officer.
324
+ Zapisz cały poniższy JSON jako `robisie.config.json` w katalogu repo, bez nadpisywania istniejącej konfiguracji. **Podmień** fikcyjne `project` na UUID z uwierzytelnionego `list_projects`, a UUID i nazwę `tracks` na rzeczywisty tor z tablicy tego projektu. Podmień `engine.repo` na absolutną ścieżkę bieżącego repo, a `stateDir` na osobny katalog **poza repo**. Uzupełnij wszystkie cztery wpisy `roleRegistry`. W lokalnym przebiegu `worker-client` musi używać `provider: codex`, a `reviewer-client` może wybrać Codex, Claude albo Grok. Grok nadal wymaga `provider: grok`, `model: grok-cli`, `effort: none`. Tylko recenzent ma opcjonalne boolean `requireIndependentProvider`: brak lub `true` wymaga innego dostawcy; Codex wymaga jawnego `false`. Każde `false`, także przy Claude lub Groku, zapisuje review i acceptance jako `partial` z notą „częściowa: bez niezależnego sprawdzenia”. Recenzja zawsze działa w osobnym procesie. Niedozwolona para lub zmiana konfiguracji w trakcie karty daje `HOLD clientPair`. Dla ról Codex wybierz rzeczywisty model dostępny na swoim koncie i obsługiwany effort; przykład używa `gpt-6.1-sol` / `high`, nie modeli fixture. Dla Codex i Claude ustaw model oraz effort recenzenta w rejestrze; model Groka wybiera zainstalowany Grok CLI (`grok-cli` / `none`). Lokalny przebieg wymaga dostępnego i zalogowanego Codexa Workera, wybranego recenzenta oraz Groka odbiorcy. `doctor --engine-config` sprawdza tę parę i logowanie (`claude auth status` dla Claude), bez płatnego wywołania modelu; brak CLI lub potwierdzenia logowania nie daje gotowości. Same parsowanie i doctor offline nie dowodzą dostępności modeli ani dostawców. Rejestr wykonania jest odrębny od mapy instalatora CEO/Builder/Quality Officer.
325
325
 
326
326
  Worker Codex na Linuksie może uruchamiać testy tworzące procesy, ale proxy deny-all blokuje dostęp do internetu: komenda próbująca ruchu sieciowego zostanie PRZERWANA (exit −1), zamiast zwrócić zwykły błąd. Zależności przygotuj poza Workerem. Runner dopisuje `127.0.0.1,localhost` osobno do `NO_PROXY` i `no_proxy`, zachowując istniejące listy użytkownika i dostęp HTTP do localhost. Pomiar dotyczy Codex 0.166.0 na Linux aarch64; nie potwierdza rzeczywistego użycia u Dota na Linux x64 po wydaniu.
327
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robisie",
3
- "version": "0.5.25",
3
+ "version": "0.5.27",
4
4
  "description": "Instalator klienta robisie: łączy agenta (Claude Code, Codex CLI, OpenCode) z tablicą robisie i instaluje role klienta.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",