robisie 0.6.11 → 0.6.12

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,13 @@
1
1
  # Historia zmian klienta / Client changelog
2
2
 
3
+ ## [0.6.12](https://github.com/chuppa12/robisie-app/compare/client-v0.6.11...client-v0.6.12) (2026-11-19)
4
+
5
+
6
+ ### Factory Cards
7
+
8
+ * Komenda update odracza bez alarmu, gdy claim Testera lub odbiorcy jest młodszy niż 10 minut i czeka na rozliczenie przez takt; odmowa z alarmem zostaje dla claima osieroconego ([6e57f12](https://github.com/chuppa12/robisie-app/commit/6e57f12ef352c766074e24a8073ff23622283713))
9
+ * praca workera task-mwntr8cx-dcqk3k (auto-commit) ([e8c074a](https://github.com/chuppa12/robisie-app/commit/e8c074a41b5401ab19fa6d180595d6d98257b8b7))
10
+
3
11
  ## [0.6.11](https://github.com/chuppa12/robisie-app/compare/client-v0.6.10...client-v0.6.11) (2026-11-19)
4
12
 
5
13
 
@@ -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.11";
3
+ export declare const PACKAGE_VERSION = "0.6.12";
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.11"; // x-release-please-version
3
+ export const PACKAGE_VERSION = "0.6.12"; // 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":"48ff19bb2f02c711fbbc22a40ffebd6cf3084eec","dirty":false}
1
+ {"schema":1,"sha":"c80e15613130c94c95c51181943e93c870a0602f","dirty":false}
@@ -1725,6 +1725,6 @@
1725
1725
  "status": 0,
1726
1726
  "signal": null,
1727
1727
  "stdout": "v24.3.0\n",
1728
- "stderr": "(node:24454) 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:24533) 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.11";
37655
+ PACKAGE_VERSION = "0.6.12";
37656
37656
  SUPPORTED_CONTRACT_MAJOR = 1;
37657
37657
  DEFAULT_ORIGIN = "https://robisie.app";
37658
37658
  MCP_SERVER_NAME = "robisie";
@@ -460,6 +460,8 @@ export async function runInstallationUpdate(ctx, options, overrides = {}) {
460
460
  ctx.err(`Alarm: ${message}`);
461
461
  alarm(message);
462
462
  }
463
+ if (reason.startsWith('claim '))
464
+ audit('deferred', { reason });
463
465
  ctx.out(`Aktualizacja odroczona: ${reason}.`);
464
466
  return 0;
465
467
  };
@@ -566,15 +568,20 @@ export async function runInstallationUpdate(ctx, options, overrides = {}) {
566
568
  if (!file)
567
569
  continue;
568
570
  exists = true;
569
- if (!['.tester-job.lock', 'receiver-jobs/local/claim.json'].includes(claim) || !file.isFile())
570
- throw new Error('unsupported claim');
571
- const value = json(regular(path)), pid = value.pid;
572
- if (typeof pid !== 'number' || !Number.isSafeInteger(pid) || pid <= 0
573
- || !(runtime.now() - file.mtimeMs <= 600_000))
571
+ if (!file.isFile() || !(runtime.now() - file.mtimeMs <= 600_000))
574
572
  throw new Error('unsafe claim');
575
- if (!alive(pid, name))
576
- throw new Error('dead claim');
577
- busy ??= `claim ${name}`;
573
+ let live = false;
574
+ if (claim === '.tester-job.lock' || claim === 'receiver-jobs/local/claim.json') {
575
+ const bytes = regular(path);
576
+ let pid;
577
+ try {
578
+ pid = json(bytes).pid;
579
+ }
580
+ catch { /* Successfully read bytes may not yet contain a usable PID. */ }
581
+ // process.kill accepts only signed 32-bit PIDs.
582
+ live = typeof pid === 'number' && Number.isInteger(pid) && pid > 0 && pid <= 2_147_483_647 && alive(pid, name);
583
+ }
584
+ busy ??= live ? `claim ${name}` : `claim ${name} czeka na rozliczenie przez takt`;
578
585
  }
579
586
  catch {
580
587
  refuse(`${exists ? 'Nierozliczony' : 'Nieczytelny'} claim ${name}; zachowaj stan.`);
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.11 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
20
+ export declare const MANAGED_LINE = "<!-- robisie:managed 0.6.12 \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.11) <!-- x-release-please-version -->
1
+ # robisie — from account to accepted card (package 0.6.12) <!-- 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.11) <!-- x-release-please-version -->
1
+ # robisie — od konta do odebranej karty (paczka 0.6.12) <!-- 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.11",
3
+ "version": "0.6.12",
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",