robisie 0.6.13 → 0.6.14

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Historia zmian klienta / Client changelog
2
2
 
3
+ ## [0.6.14](https://github.com/chuppa12/robisie-app/compare/client-v0.6.13...client-v0.6.14) (2026-11-19)
4
+
5
+
6
+ ### Factory Cards
7
+
8
+ * Aktualizacja klienta w kontenerze bez systemd jako init (z binarką systemctl, z włączoną zgodą lub bez niej) przechodzi jednorazowo i kończy się kodem 0; host z systemd i zepsutą sesją nadal odmawia — jedna wersja dla wszystkich ([765232b](https://github.com/chuppa12/robisie-app/commit/765232bcf909796a60f26eb0a116c3f01adf4981))
9
+
3
10
  ## [0.6.13](https://github.com/chuppa12/robisie-app/compare/client-v0.6.12...client-v0.6.13) (2026-11-19)
4
11
 
5
12
 
@@ -1,6 +1,6 @@
1
1
  /** Package identity and the server contract it speaks. */
2
2
  export declare const PACKAGE_NAME = "robisie";
3
- export declare const PACKAGE_VERSION = "0.6.13";
3
+ export declare const PACKAGE_VERSION = "0.6.14";
4
4
  /**
5
5
  * MAJOR of the agent-API contract this package understands.
6
6
  * PARITY: src/lib/mcp/contract-version.ts (AGENT_API_CONTRACT_VERSION) on the server.
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /** Package identity and the server contract it speaks. */
2
2
  export const PACKAGE_NAME = "robisie";
3
- export const PACKAGE_VERSION = "0.6.13"; // x-release-please-version
3
+ export const PACKAGE_VERSION = "0.6.14"; // x-release-please-version
4
4
  /**
5
5
  * MAJOR of the agent-API contract this package understands.
6
6
  * PARITY: src/lib/mcp/contract-version.ts (AGENT_API_CONTRACT_VERSION) on the server.
@@ -1 +1 @@
1
- {"schema":1,"sha":"c3f98f15a38e5d0bd2f2492fb4df4905e6a162dd","dirty":false}
1
+ {"schema":1,"sha":"099c017febcfb191a7cf402d46bcafcfb001b257","dirty":false}
@@ -1725,6 +1725,6 @@
1725
1725
  "status": 0,
1726
1726
  "signal": null,
1727
1727
  "stdout": "v24.3.0\n",
1728
- "stderr": "(node:24482) ExperimentalWarning: SQLite is an experimental feature and might change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
1728
+ "stderr": "(node:24522) ExperimentalWarning: SQLite is an experimental feature and might change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
1729
1729
  }
1730
1730
  }
@@ -37652,7 +37652,7 @@ var init_constants = __esm({
37652
37652
  "packages/client/src/constants.ts"() {
37653
37653
  "use strict";
37654
37654
  PACKAGE_NAME = "robisie";
37655
- PACKAGE_VERSION = "0.6.13";
37655
+ PACKAGE_VERSION = "0.6.14";
37656
37656
  SUPPORTED_CONTRACT_MAJOR = 1;
37657
37657
  DEFAULT_ORIGIN = "https://robisie.app";
37658
37658
  MCP_SERVER_NAME = "robisie";
@@ -6,6 +6,7 @@ export type UpdateBoard = Pick<PlanerClient, 'listTasks' | 'getTask' | 'updateTa
6
6
  /** External effects only; no alternative update policy or hidden CLI flags. */
7
7
  export interface UpdateRuntime {
8
8
  fs: typeof fs;
9
+ systemdBooted(): boolean;
9
10
  exec: (command: string, args: readonly string[], cwd: string, env: NodeJS.ProcessEnv) => {
10
11
  status: number | null;
11
12
  signal: string | null;
@@ -14,6 +14,9 @@ function refuse(message) {
14
14
  throw new RobisieError(message, 'Sprawdź konfigurację i prywatny audyt w <stateDir>/update; usuń przyczynę przed kolejnym wywołaniem update.');
15
15
  }
16
16
  function code(error) { return error?.code; }
17
+ function probeExitedNonzero(outcome) {
18
+ return Number.isInteger(outcome.status) && outcome.status !== 0 && outcome.signal === null && outcome.errorCode === undefined;
19
+ }
17
20
  function object(raw) { return raw !== null && typeof raw === 'object' && !Array.isArray(raw); }
18
21
  function json(bytes) {
19
22
  const raw = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes).replace(/^\uFEFF/, ''));
@@ -52,11 +55,21 @@ async function connectBoard(ctx) {
52
55
  }
53
56
  export async function runInstallationUpdate(ctx, options, overrides = {}) {
54
57
  const runtime = {
55
- fs, exec: (command, args, cwd, env) => {
58
+ fs,
59
+ systemdBooted() {
60
+ try {
61
+ this.fs.lstatSync('/run/systemd/system');
62
+ return true;
63
+ }
64
+ catch (error) {
65
+ return code(error) !== 'ENOENT';
66
+ }
67
+ },
68
+ exec: (command, args, cwd, env) => {
56
69
  const result = spawnSync(command, args, { cwd, env, encoding: 'utf8', shell: false, timeout: 120_000, maxBuffer: 4 * 1024 * 1024 });
57
70
  const errorCode = code(result.error);
58
71
  return { status: result.status, signal: result.signal, stdout: result.stdout, stderr: result.stderr,
59
- errorCode: typeof errorCode === 'string' ? errorCode : undefined };
72
+ errorCode: typeof errorCode === 'string' ? errorCode : result.error ? 'UNKNOWN' : undefined };
60
73
  }, kill: process.kill, now: Date.now, sleep: ms => new Promise(done => setTimeout(done, ms)),
61
74
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
62
75
  ask: async (question) => {
@@ -264,6 +277,14 @@ export async function runInstallationUpdate(ctx, options, overrides = {}) {
264
277
  const probeClient = () => {
265
278
  const outcome = runtime.exec(manager, probeArgs, ctx.cwd, env);
266
279
  oneShot = outcome.errorCode === 'ENOENT' && outcome.status === null && outcome.signal === null;
280
+ if (probeExitedNonzero(outcome)) {
281
+ try {
282
+ oneShot = runtime.systemdBooted() === false;
283
+ }
284
+ catch {
285
+ oneShot = false;
286
+ }
287
+ }
267
288
  return outcome;
268
289
  };
269
290
  const clientProbe = linuxClient && !config.update?.enabled ? probeClient() : undefined;
@@ -282,6 +303,8 @@ export async function runInstallationUpdate(ctx, options, overrides = {}) {
282
303
  }
283
304
  managerProbed = true;
284
305
  };
306
+ if (clientProbe && !oneShot && probeExitedNonzero(clientProbe))
307
+ probeManager();
285
308
  if (!oneShot && !config.update?.enabled) {
286
309
  if (!runtime.interactive || config.update?.enabled === false) {
287
310
  ctx.out('Aktualizacja pominięta: brak włączonej zgody w konfiguracji.');
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.6.13 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
20
+ export declare const MANAGED_LINE = "<!-- robisie:managed 0.6.14 \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.6.13) <!-- x-release-please-version -->
1
+ # robisie — from account to accepted card (package 0.6.14) <!-- 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
 
package/docs/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # robisie — od konta do odebranej karty (paczka 0.6.13) <!-- x-release-please-version -->
1
+ # robisie — od konta do odebranej karty (paczka 0.6.14) <!-- 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robisie",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
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",