robisie 0.5.40 → 0.5.42

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,20 @@
1
1
  # Historia zmian klienta / Client changelog
2
2
 
3
+ ## [0.5.42](https://github.com/chuppa12/robisie-app/compare/client-v0.5.41...client-v0.5.42) (2026-11-15)
4
+
5
+
6
+ ### Factory Cards
7
+
8
+ * praca workera task-mwi0sapk-nfy3wj (auto-commit) ([068282b](https://github.com/chuppa12/robisie-app/commit/068282b3cec169aabdd753e0c4f48099cbab4535))
9
+ * praca workera task-mwi4v4q0-t7g4ft (auto-commit) ([7f4c77d](https://github.com/chuppa12/robisie-app/commit/7f4c77d13a02cd4ad53067c9ea92768bf2ec4893))
10
+
11
+ ## [0.5.41](https://github.com/chuppa12/robisie-app/compare/client-v0.5.40...client-v0.5.41) (2026-11-15)
12
+
13
+
14
+ ### Factory Cards
15
+
16
+ * praca workera task-mwhwt08l-20osh8 (auto-commit) ([2a2ae21](https://github.com/chuppa12/robisie-app/commit/2a2ae216e9d56550022f89a79eb70b2f4b7737dd))
17
+
3
18
  ## [0.5.40](https://github.com/chuppa12/robisie-app/compare/client-v0.5.39...client-v0.5.40) (2026-11-15)
4
19
 
5
20
 
@@ -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.5.40";
3
+ export declare const PACKAGE_VERSION = "0.5.42";
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.5.40"; // x-release-please-version
3
+ export const PACKAGE_VERSION = "0.5.42"; // 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":"ab77f3f7094c91381c2be537874f910781bf1252","dirty":false}
1
+ {"schema":1,"sha":"b411a912c1d755170021711757fbfeec1ef7b234","dirty":false}
@@ -1713,6 +1713,6 @@
1713
1713
  "status": 0,
1714
1714
  "signal": null,
1715
1715
  "stdout": "v24.3.0\n",
1716
- "stderr": "(node:21025) 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"
1716
+ "stderr": "(node:21594) 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"
1717
1717
  }
1718
1718
  }
@@ -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.5.40";
37655
+ PACKAGE_VERSION = "0.5.42";
37656
37656
  SUPPORTED_CONTRACT_MAJOR = 1;
37657
37657
  DEFAULT_ORIGIN = "https://robisie.app";
37658
37658
  MCP_SERVER_NAME = "robisie";
@@ -76872,11 +76872,11 @@ function owned(root, file3) {
76872
76872
  }
76873
76873
  function runLocalUsage(input) {
76874
76874
  let stage = "wej\u015Bcie", published = false, lock, pending;
76875
- let root, run, worktree, attempted = false, result;
76875
+ let root, run, result;
76876
76876
  const errors = [];
76877
76877
  const env = { PATH: "/usr/bin:/bin", LANG: "C.UTF-8" };
76878
- const git2 = (cwd, args) => {
76879
- const r = (0, import_node_child_process8.spawnSync)("git", args, { cwd, env, encoding: "utf8", shell: false });
76878
+ const git2 = (cwd, args, input2) => {
76879
+ const r = (0, import_node_child_process8.spawnSync)("git", args, { cwd, env, input: input2, encoding: "utf8", shell: false });
76880
76880
  if (r.error || r.status !== 0 || r.signal) throw new Error(`git ${args[0]}: status=${r.status}, signal=${r.signal}: ${r.stderr ?? ""}`, { cause: r.error });
76881
76881
  return r.stdout.trim();
76882
76882
  };
@@ -76902,32 +76902,69 @@ function runLocalUsage(input) {
76902
76902
  readLocalUsageEvents(root, { ...input, source: sourceRef, readAt: (/* @__PURE__ */ new Date()).toISOString() });
76903
76903
  previous = boundedBytes(source);
76904
76904
  }
76905
- stage = "worktree";
76905
+ stage = "SHA przed wykonaniem";
76906
+ const verifyCommit = () => {
76907
+ const sha6 = git2(input.repo, ["rev-parse", "--verify", "--end-of-options", `${input.landed.sha}^{commit}`]);
76908
+ if (sha6 !== input.landed.sha) throw new Error("Obcy SHA u\u017Cycia");
76909
+ return sha6;
76910
+ };
76911
+ const sha5 = verifyCommit();
76906
76912
  run = (0, import_node_fs19.mkdtempSync)(import_node_path22.default.join(directory(root, ".runs"), "usage-"));
76907
- worktree = import_node_path22.default.join(run, "wt");
76908
- attempted = true;
76909
- git2(input.repo, ["worktree", "add", "--detach", "--quiet", worktree, input.landed.sha]);
76913
+ const copy = import_node_path22.default.join(run, "copy");
76914
+ stage = "archiwum";
76915
+ const archive = import_node_path22.default.join(run, "landed.tar");
76916
+ git2(input.repo, ["archive", "--format=tar", `--output=${archive}`, sha5]);
76917
+ (0, import_node_fs19.mkdirSync)(copy, { mode: 448 });
76918
+ const extracted = (0, import_node_child_process8.spawnSync)("tar", ["-xf", archive, "-C", copy], { cwd: run, env, encoding: "utf8", shell: false });
76919
+ if (extracted.error || extracted.status !== 0 || extracted.signal) throw new Error(
76920
+ `tar: status=${extracted.status}, signal=${extracted.signal}: ${extracted.stderr ?? ""}`,
76921
+ { cause: extracted.error }
76922
+ );
76923
+ stage = "drzewo";
76924
+ const tree = /* @__PURE__ */ new Map();
76925
+ for (const record20 of git2(input.repo, ["ls-tree", "-r", "-z", "--full-tree", sha5]).split("\0").filter(Boolean)) {
76926
+ const tab = record20.indexOf(" "), header = /^(100644|100755|120000) blob ([a-f0-9]{40})$/.exec(record20.slice(0, tab));
76927
+ if (tab < 0 || !header) throw new Error("Nieobs\u0142ugiwany typ \u015Bledzonego kodu u\u017Cycia");
76928
+ const ref2 = record20.slice(tab + 1);
76929
+ relative2(ref2);
76930
+ tree.set(ref2, { mode: header[1], blob: header[2] });
76931
+ }
76910
76932
  const verify2 = () => {
76911
- if (git2(worktree, ["rev-parse", "HEAD"]) !== input.landed.sha) throw new Error("Obcy SHA u\u017Cycia");
76912
- if (git2(worktree, ["status", "--porcelain", "--untracked-files=no"])) throw new Error("Zmieniony \u015Bledzony kod u\u017Cycia");
76913
- };
76914
- stage = "SHA przed wykonaniem";
76933
+ for (const [ref2, { mode, blob }] of tree) {
76934
+ const file3 = import_node_path22.default.join(copy, ref2), parent = import_node_path22.default.dirname(ref2);
76935
+ if ((0, import_node_fs19.realpathSync)(copy) !== copy || parent !== "." && within(copy, parent) !== import_node_path22.default.dirname(file3)) throw new Error("Zmieniony katalog kodu u\u017Cycia");
76936
+ const stat = (0, import_node_fs19.lstatSync)(file3, { throwIfNoEntry: false });
76937
+ if (!stat) throw new Error("Zmieniony \u015Bledzony kod u\u017Cycia");
76938
+ let actual;
76939
+ if (mode === "120000" && stat.isSymbolicLink()) {
76940
+ actual = git2(input.repo, ["hash-object", "--stdin"], (0, import_node_fs19.readlinkSync)(file3, { encoding: "buffer" }));
76941
+ within(copy, ref2);
76942
+ } else if (stat.isFile() && mode === (stat.mode & 73 ? "100755" : "100644")) {
76943
+ actual = git2(input.repo, ["hash-object", "--no-filters", "--", file3]);
76944
+ } else throw new Error("Zmieniony \u015Bledzony kod u\u017Cycia");
76945
+ if (actual !== blob) throw new Error("Zmieniony \u015Bledzony kod u\u017Cycia");
76946
+ }
76947
+ };
76948
+ stage = "weryfikacja przed wykonaniem";
76915
76949
  verify2();
76916
- const entry2 = within(worktree, input.program.entry);
76917
- git2(worktree, ["--literal-pathspecs", "ls-files", "--error-unmatch", "--", input.program.entry, import_node_path22.default.relative(worktree, entry2)]);
76918
- const artifact = destination(worktree, input.program.artifact);
76950
+ if (!tree.has(input.program.entry)) throw new Error("Nie\u015Bledzony program u\u017Cycia");
76951
+ const entry2 = within(copy, input.program.entry);
76952
+ if (!tree.has(import_node_path22.default.relative(copy, entry2))) throw new Error("Nie\u015Bledzony program u\u017Cycia");
76953
+ const artifact = destination(copy, input.program.artifact);
76919
76954
  if ((0, import_node_fs19.lstatSync)(artifact, { throwIfNoEntry: false })) throw new Error("Artefakt istnieje przed u\u017Cyciem");
76920
76955
  stage = "proces";
76921
- const executed = (0, import_node_child_process8.spawnSync)(process.execPath, [entry2, ...input.program.args], { cwd: worktree, env, encoding: "utf8", shell: false });
76956
+ const executed = (0, import_node_child_process8.spawnSync)(process.execPath, [entry2, ...input.program.args], { cwd: copy, env, encoding: "utf8", shell: false });
76922
76957
  const finishedAt = (/* @__PURE__ */ new Date()).toISOString();
76923
76958
  if (executed.error || executed.status !== 0 || executed.signal) throw new Error(
76924
76959
  `Proces u\u017Cycia: status=${executed.status}, signal=${executed.signal}; stdout=${executed.stdout ?? ""}; stderr=${executed.stderr ?? ""}`,
76925
76960
  { cause: executed.error }
76926
76961
  );
76927
- stage = "SHA po wykonaniu";
76962
+ stage = "weryfikacja po wykonaniu";
76928
76963
  verify2();
76964
+ stage = "SHA po wykonaniu";
76965
+ verifyCommit();
76929
76966
  stage = "artefakt";
76930
- const bytes = boundedBytes(within(worktree, input.program.artifact));
76967
+ const bytes = boundedBytes(within(copy, input.program.artifact));
76931
76968
  const id2 = (0, import_node_crypto10.randomUUID)(), ref = `artifacts/${id2}/${import_node_path22.default.basename(input.program.artifact)}`;
76932
76969
  const saved = destination(root, ref);
76933
76970
  (0, import_node_fs19.writeFileSync)(saved, bytes, { flag: "wx", mode: 384, flush: true });
@@ -76936,7 +76973,7 @@ function runLocalUsage(input) {
76936
76973
  result = eventSchema.parse({
76937
76974
  id: id2,
76938
76975
  at: finishedAt,
76939
- sha: git2(worktree, ["rev-parse", "HEAD"]),
76976
+ sha: sha5,
76940
76977
  ref,
76941
76978
  operation: input.operation,
76942
76979
  result: JSON.stringify({ exit: executed.status, stdout: executed.stdout ?? "", stderr: executed.stderr ?? "" })
@@ -76970,10 +77007,7 @@ function runLocalUsage(input) {
76970
77007
  errors.push(new Error(`U\u017Cycie \u2014 cleanup ${label2}: ${String(cause)}`, { cause }));
76971
77008
  }
76972
77009
  };
76973
- if (attempted && worktree) cleanup2("worktree", () => {
76974
- git2(input.repo, ["worktree", "remove", "--force", owned(root, worktree)]);
76975
- });
76976
- if (run) cleanup2("katalog przebiegu", () => (0, import_node_fs19.rmdirSync)(owned(root, run)));
77010
+ if (run) cleanup2("katalog przebiegu", () => (0, import_node_fs19.rmSync)(owned(root, run), { recursive: true }));
76977
77011
  if (pending) cleanup2("plik tymczasowy", () => (0, import_node_fs19.unlinkSync)(owned(root, pending)));
76978
77012
  if (lock) cleanup2("blokada", () => (0, import_node_fs19.unlinkSync)(owned(root, lock)));
76979
77013
  }
@@ -93021,7 +93055,23 @@ function readReviewSource(input, request2, deadline) {
93021
93055
  const detail = error48;
93022
93056
  if (noMatches && detail.status === 1) return Buffer.alloc(0);
93023
93057
  if (detail.code === "ENOBUFS") throw new RangeError("source result exceeds retrieval limit");
93024
- throw new Error(`source-read-git: ${error48 instanceof Error ? error48.message : String(error48)}`);
93058
+ const failure3 = new Error(`source-read-git: ${error48 instanceof Error ? error48.message : String(error48)}`);
93059
+ if (detail.code === "EINTR") throw Object.assign(failure3, { code: "EINTR" });
93060
+ let diagnostic = "";
93061
+ if ("stderr" in detail) {
93062
+ if (typeof detail.stderr === "string") diagnostic = detail.stderr;
93063
+ else if (Buffer.isBuffer(detail.stderr)) {
93064
+ try {
93065
+ diagnostic = new TextDecoder("utf-8", { fatal: true }).decode(detail.stderr);
93066
+ } catch {
93067
+ }
93068
+ }
93069
+ } else if (error48 instanceof Error) diagnostic = error48.message;
93070
+ diagnostic = diagnostic.split(`git ${args.join(" ")}`).join("");
93071
+ if (detail.code !== "EPERM" && detail.code !== "EACCES" && /Interrupted system call|Unable to read current working directory/i.test(diagnostic)) {
93072
+ throw Object.assign(failure3, { code: "EINTR" });
93073
+ }
93074
+ throw failure3;
93025
93075
  }
93026
93076
  };
93027
93077
  const decode3 = (bytes) => {
@@ -94174,7 +94224,7 @@ function runReview(input) {
94174
94224
  transcript.events.push(...responses);
94175
94225
  } catch (error48) {
94176
94226
  if (errorText4(error48).startsWith("source-read-git:")) {
94177
- errorClass = "source-read-git";
94227
+ errorClass = record15(error48).code === "EINTR" ? "transport-unavailable" : "source-read-git";
94178
94228
  finalText = errorText4(error48);
94179
94229
  finalVerdict = "UNAVAILABLE";
94180
94230
  break;
@@ -1,6 +1,6 @@
1
1
  import { spawnSync } from "node:child_process";
2
2
  import { createHash, randomUUID } from "node:crypto";
3
- import { closeSync, fsyncSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readSync, realpathSync, renameSync, rmdirSync, unlinkSync, writeFileSync } from "node:fs";
3
+ import { closeSync, fsyncSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readlinkSync, readSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
4
4
  import path from "node:path";
5
5
  import { z } from "zod";
6
6
  const text = z.string().trim().min(1), at = z.iso.datetime({ offset: true });
@@ -108,13 +108,13 @@ function owned(root, file) {
108
108
  /** One synchronous Node invocation; no shell, card commands, inherited credentials or control env. */
109
109
  export function runLocalUsage(input) {
110
110
  let stage = "wejście", published = false, lock, pending;
111
- let root, run, worktree, attempted = false, result;
111
+ let root, run, result;
112
112
  const errors = [];
113
113
  // Deliberately small environment; no HOME/config, NODE_OPTIONS, GIT_* or Planner credentials from the caller.
114
114
  // The host Next.js types require NODE_ENV; this Node-only child intentionally omits it.
115
115
  const env = { PATH: "/usr/bin:/bin", LANG: "C.UTF-8" };
116
- const git = (cwd, args) => {
117
- const r = spawnSync("git", args, { cwd, env, encoding: "utf8", shell: false });
116
+ const git = (cwd, args, input) => {
117
+ const r = spawnSync("git", args, { cwd, env, input, encoding: "utf8", shell: false });
118
118
  if (r.error || r.status !== 0 || r.signal)
119
119
  throw new Error(`git ${args[0]}: status=${r.status}, signal=${r.signal}: ${r.stderr ?? ""}`, { cause: r.error });
120
120
  return r.stdout.trim();
@@ -143,39 +143,82 @@ export function runLocalUsage(input) {
143
143
  readLocalUsageEvents(root, { ...input, source: sourceRef, readAt: new Date().toISOString() });
144
144
  previous = boundedBytes(source);
145
145
  }
146
- stage = "worktree";
146
+ stage = "SHA przed wykonaniem";
147
+ const verifyCommit = () => {
148
+ const sha = git(input.repo, ["rev-parse", "--verify", "--end-of-options", `${input.landed.sha}^{commit}`]);
149
+ if (sha !== input.landed.sha)
150
+ throw new Error("Obcy SHA użycia");
151
+ return sha;
152
+ };
153
+ const sha = verifyCommit();
147
154
  run = mkdtempSync(path.join(directory(root, ".runs"), "usage-"));
148
- worktree = path.join(run, "wt");
149
- attempted = true;
150
- git(input.repo, ["worktree", "add", "--detach", "--quiet", worktree, input.landed.sha]);
155
+ const copy = path.join(run, "copy");
156
+ stage = "archiwum";
157
+ const archive = path.join(run, "landed.tar");
158
+ git(input.repo, ["archive", "--format=tar", `--output=${archive}`, sha]);
159
+ mkdirSync(copy, { mode: 0o700 });
160
+ const extracted = spawnSync("tar", ["-xf", archive, "-C", copy], { cwd: run, env, encoding: "utf8", shell: false });
161
+ if (extracted.error || extracted.status !== 0 || extracted.signal)
162
+ throw new Error(`tar: status=${extracted.status}, signal=${extracted.signal}: ${extracted.stderr ?? ""}`, { cause: extracted.error });
163
+ stage = "drzewo";
164
+ const tree = new Map();
165
+ for (const record of git(input.repo, ["ls-tree", "-r", "-z", "--full-tree", sha]).split("\0").filter(Boolean)) {
166
+ const tab = record.indexOf("\t"), header = /^(100644|100755|120000) blob ([a-f0-9]{40})$/.exec(record.slice(0, tab));
167
+ if (tab < 0 || !header)
168
+ throw new Error("Nieobsługiwany typ śledzonego kodu użycia");
169
+ const ref = record.slice(tab + 1);
170
+ relative(ref);
171
+ tree.set(ref, { mode: header[1], blob: header[2] });
172
+ }
151
173
  const verify = () => {
152
- if (git(worktree, ["rev-parse", "HEAD"]) !== input.landed.sha)
153
- throw new Error("Obcy SHA użycia");
154
- if (git(worktree, ["status", "--porcelain", "--untracked-files=no"]))
155
- throw new Error("Zmieniony śledzony kod użycia");
174
+ for (const [ref, { mode, blob }] of tree) {
175
+ const file = path.join(copy, ref), parent = path.dirname(ref);
176
+ if (realpathSync(copy) !== copy || (parent !== "." && within(copy, parent) !== path.dirname(file)))
177
+ throw new Error("Zmieniony katalog kodu użycia");
178
+ const stat = lstatSync(file, { throwIfNoEntry: false });
179
+ if (!stat)
180
+ throw new Error("Zmieniony śledzony kod użycia");
181
+ let actual;
182
+ if (mode === "120000" && stat.isSymbolicLink()) {
183
+ actual = git(input.repo, ["hash-object", "--stdin"], readlinkSync(file, { encoding: "buffer" }));
184
+ within(copy, ref);
185
+ }
186
+ else if (stat.isFile() && mode === (stat.mode & 0o111 ? "100755" : "100644")) {
187
+ actual = git(input.repo, ["hash-object", "--no-filters", "--", file]);
188
+ }
189
+ else
190
+ throw new Error("Zmieniony śledzony kod użycia");
191
+ if (actual !== blob)
192
+ throw new Error("Zmieniony śledzony kod użycia");
193
+ }
156
194
  };
157
- stage = "SHA przed wykonaniem";
195
+ stage = "weryfikacja przed wykonaniem";
158
196
  verify();
159
- const entry = within(worktree, input.program.entry);
160
- git(worktree, ["--literal-pathspecs", "ls-files", "--error-unmatch", "--", input.program.entry, path.relative(worktree, entry)]);
161
- const artifact = destination(worktree, input.program.artifact);
197
+ if (!tree.has(input.program.entry))
198
+ throw new Error("Nieśledzony program użycia");
199
+ const entry = within(copy, input.program.entry);
200
+ if (!tree.has(path.relative(copy, entry)))
201
+ throw new Error("Nieśledzony program użycia");
202
+ const artifact = destination(copy, input.program.artifact);
162
203
  if (lstatSync(artifact, { throwIfNoEntry: false }))
163
204
  throw new Error("Artefakt istnieje przed użyciem");
164
205
  stage = "proces";
165
- const executed = spawnSync(process.execPath, [entry, ...input.program.args], { cwd: worktree, env, encoding: "utf8", shell: false });
206
+ const executed = spawnSync(process.execPath, [entry, ...input.program.args], { cwd: copy, env, encoding: "utf8", shell: false });
166
207
  const finishedAt = new Date().toISOString();
167
208
  if (executed.error || executed.status !== 0 || executed.signal)
168
209
  throw new Error(`Proces użycia: status=${executed.status}, signal=${executed.signal}; stdout=${executed.stdout ?? ""}; stderr=${executed.stderr ?? ""}`, { cause: executed.error });
169
- stage = "SHA po wykonaniu";
210
+ stage = "weryfikacja po wykonaniu";
170
211
  verify();
212
+ stage = "SHA po wykonaniu";
213
+ verifyCommit();
171
214
  stage = "artefakt";
172
- const bytes = boundedBytes(within(worktree, input.program.artifact));
215
+ const bytes = boundedBytes(within(copy, input.program.artifact));
173
216
  const id = randomUUID(), ref = `artifacts/${id}/${path.basename(input.program.artifact)}`;
174
217
  const saved = destination(root, ref);
175
218
  writeFileSync(saved, bytes, { flag: "wx", mode: 0o600, flush: true });
176
219
  within(root, ref);
177
220
  syncDirectory(path.dirname(saved));
178
- result = eventSchema.parse({ id, at: finishedAt, sha: git(worktree, ["rev-parse", "HEAD"]), ref,
221
+ result = eventSchema.parse({ id, at: finishedAt, sha, ref,
179
222
  operation: input.operation, result: JSON.stringify({ exit: executed.status, stdout: executed.stdout ?? "", stderr: executed.stderr ?? "" }) });
180
223
  stage = "walidacja zapisu";
181
224
  // Stable key order; validate JSON before serializing so undefined never silently disappears.
@@ -214,10 +257,8 @@ export function runLocalUsage(input) {
214
257
  errors.push(new Error(`Użycie — cleanup ${label}: ${String(cause)}`, { cause }));
215
258
  }
216
259
  };
217
- if (attempted && worktree)
218
- cleanup("worktree", () => { git(input.repo, ["worktree", "remove", "--force", owned(root, worktree)]); });
219
260
  if (run)
220
- cleanup("katalog przebiegu", () => rmdirSync(owned(root, run)));
261
+ cleanup("katalog przebiegu", () => rmSync(owned(root, run), { recursive: true }));
221
262
  if (pending)
222
263
  cleanup("plik tymczasowy", () => unlinkSync(owned(root, pending)));
223
264
  if (lock)
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.40 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
20
+ export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.42 \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.40) <!-- x-release-please-version -->
1
+ # robisie — from account to accepted card (package 0.5.42) <!-- 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
 
@@ -365,7 +365,7 @@ Start the CEO in this directory: `claude --agent ceo-client`, or `codex` with th
365
365
 
366
366
  > CEO, create a local card to change greet.cjs using the goal and literal details object below. Use the real project from list_projects and its board track. Change only greet.cjs, without dependencies, accounts or publication. Use my existing authorization if it covers this goal, directory, scope and acceptance; otherwise ask before dependent work. Supply actual authoring providers and a future deadline, then prepare the card as ready. After execution I need an independent tester and ACK, three uses for Ala/Bartek/Celina, and separate final acceptance.
367
367
 
368
- Choose a project with policy `enforced` and `engine.delivery: "local"` using the [engine configuration](ENGINE-CONFIG.md). The CEO creates a card through the board tools with the literal `details` object below; the dashboard cannot edit `details`. The only list of all promised criteria is `done_when`; Builder evidence goes to `verification` and `summary` without overwriting criteria. Goal: change the greeting in an existing tracked `greet.cjs`; without arguments print `Witaj z fabryki`, and with one argument Ala, Bartek or Celina create a new `greeting.txt` containing `Witaj z fabryki, <name>!` and a trailing newline. No dependencies, accounts or publication. The code write scope is only `greet.cjs`; `greeting.txt` is a usage artifact in a separate worktree.
368
+ Choose a project with policy `enforced` and `engine.delivery: "local"` using the [engine configuration](ENGINE-CONFIG.md). The CEO creates a card through the board tools with the literal `details` object below; the dashboard cannot edit `details`. The only list of all promised criteria is `done_when`; Builder evidence goes to `verification` and `summary` without overwriting criteria. Goal: change the greeting in an existing tracked `greet.cjs`; without arguments print `Witaj z fabryki`, and with one argument Ala, Bartek or Celina create a new `greeting.txt` containing `Witaj z fabryki, <name>!` and a trailing newline. No dependencies, accounts or publication. The code write scope is only `greet.cjs`; `greeting.txt` is a usage artifact in a copy of the landed SHA in a run directory under `stateDir`.
369
369
 
370
370
  <!-- local-card-details:start -->
371
371
  ```json
@@ -412,7 +412,7 @@ Save the complete input below as `usage.json` in the current directory. Take `re
412
412
  npx robisie usage --input ./usage.json
413
413
  ```
414
414
 
415
- Success prints one JSON `UsageEvent` with exit 0. Change `operation` to `powitanie:Bartek` and `program.args` to `["Bartek"]`, run the same command, then repeat with `powitanie:Celina` and `["Celina"]`. The equivalent `--input=./usage.json` form is supported. Three distinct operations and distinct artifact bytes are required; three identical operations do not count as three. Do not append events manually. The CLI executes the landed SHA in a separate worktree; it does not judge the result or set `done`.
415
+ Success prints one JSON `UsageEvent` with exit 0. Change `operation` to `powitanie:Bartek` and `program.args` to `["Bartek"]`, run the same command, then repeat with `powitanie:Celina` and `["Celina"]`. The equivalent `--input=./usage.json` form is supported. Three distinct operations and distinct artifact bytes are required; three identical operations do not count as three. Do not append events manually. The CLI executes the program in a copy of the landed SHA in a run directory under `stateDir`; it does not judge the result or set `done`.
416
416
 
417
417
  Refusal or IO failure returns exit 1 and a next step. An entry may already exist: inspect `stateDir/evidence/<source>` and the referenced artifacts before retrying, preserve evidence and resolve the cause. Never retry the program automatically. After three accepted uses, another `factory run --once` tick starts/settles independent acceptance; only a fresh `get_task({id, include:[], fullDetails:true})` confirms `details.local_receiver.outcome=PASS` and `status=done`. The package fixture does not prove actual customer use.
418
418
 
package/docs/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # robisie — od konta do odebranej karty (paczka 0.5.40) <!-- x-release-please-version -->
1
+ # robisie — od konta do odebranej karty (paczka 0.5.42) <!-- 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
 
@@ -412,7 +412,7 @@ Uruchom CEO w tym katalogu: `claude --agent ceo-client`, albo `codex` z rolą ro
412
412
 
413
413
  > CEO, utwórz lokalną kartę zmiany greet.cjs według celu i literalnego obiektu details poniżej. Użyj rzeczywistego projektu z list_projects i toru z tablicy. Zmień wyłącznie greet.cjs, bez zależności, kont i publikacji. Korzystaj z wcześniejszej zgody, jeśli obejmuje ten cel, katalog, zakres i odbiór; inaczej zapytaj przed zależnym krokiem. Wstaw prawdziwych dostawców autorstwa i przyszły deadline, przygotuj kartę do ready. Po pracy potrzebuję niezależnego testera i ACK, trzech użyć Ala/Bartek/Celina oraz osobnego końcowego odbioru.
414
414
 
415
- Wybierz projekt z polityką `enforced` i konfiguracją `engine.delivery: "local"` według [konfiguracji silnika](ENGINE-CONFIG.md). CEO tworzy kartę przez narzędzia tablicy, z poniższym literalnym obiektem `details`. Panel nie edytuje `details`. Jedyną listą wszystkich obiecanych kryteriów jest `done_when`; dowody wykonania trafiają do `verification` i `summary`, bez nadpisywania kryteriów. Cel: zmień powitanie w istniejącym, śledzonym `greet.cjs`; bez argumentu wypisz `Witaj z fabryki`, a dla jednego argumentu Ala, Bartek lub Celina zapisz nowe `greeting.txt` z `Witaj z fabryki, <imię>!` i końcowym znakiem nowej linii. Bez zależności, kont i publikacji. Zakres zapisu kodu obejmuje tylko `greet.cjs`; `greeting.txt` jest artefaktem użycia w osobnym worktree.
415
+ Wybierz projekt z polityką `enforced` i konfiguracją `engine.delivery: "local"` według [konfiguracji silnika](ENGINE-CONFIG.md). CEO tworzy kartę przez narzędzia tablicy, z poniższym literalnym obiektem `details`. Panel nie edytuje `details`. Jedyną listą wszystkich obiecanych kryteriów jest `done_when`; dowody wykonania trafiają do `verification` i `summary`, bez nadpisywania kryteriów. Cel: zmień powitanie w istniejącym, śledzonym `greet.cjs`; bez argumentu wypisz `Witaj z fabryki`, a dla jednego argumentu Ala, Bartek lub Celina zapisz nowe `greeting.txt` z `Witaj z fabryki, <imię>!` i końcowym znakiem nowej linii. Bez zależności, kont i publikacji. Zakres zapisu kodu obejmuje tylko `greet.cjs`; `greeting.txt` jest artefaktem użycia w kopii landed SHA w katalogu przebiegu pod `stateDir`.
416
416
 
417
417
  <!-- local-card-details:start -->
418
418
  ```json
@@ -459,7 +459,7 @@ Zapisz poniższy pełny input jako `usage.json` w bieżącym katalogu. `repo` we
459
459
  npx robisie usage --input ./usage.json
460
460
  ```
461
461
 
462
- Po sukcesie otrzymasz jeden `UsageEvent` JSON i exit 0. Zmień `operation` na `powitanie:Bartek` oraz `program.args` na `["Bartek"]` i wykonaj to samo polecenie, potem analogicznie `powitanie:Celina` i `["Celina"]`. Możesz użyć równoważnego `--input=./usage.json`. Potrzebne są trzy różne operacje i różne bajty artefaktów; trzy identyczne operacje nie liczą się jako trzy. Nie dopisuj zdarzeń ręcznie. CLI wykonuje program na landed SHA w osobnym worktree, nie ocenia wyniku i nie ustawia `done`.
462
+ Po sukcesie otrzymasz jeden `UsageEvent` JSON i exit 0. Zmień `operation` na `powitanie:Bartek` oraz `program.args` na `["Bartek"]` i wykonaj to samo polecenie, potem analogicznie `powitanie:Celina` i `["Celina"]`. Możesz użyć równoważnego `--input=./usage.json`. Potrzebne są trzy różne operacje i różne bajty artefaktów; trzy identyczne operacje nie liczą się jako trzy. Nie dopisuj zdarzeń ręcznie. CLI wykonuje program w kopii landed SHA w katalogu przebiegu pod `stateDir`, nie ocenia wyniku i nie ustawia `done`.
463
463
 
464
464
  Przy odmowie lub błędzie IO polecenie zwraca exit 1 z następnym krokiem. Wpis może już istnieć: przed ponowieniem sprawdź `stateDir/evidence/<source>` oraz wskazane artefakty, zachowaj dowody i wyjaśnij przyczynę. Nie ponawiaj programu automatycznie. Po trzech przyjętych użyciach kolejny takt `factory run --once` uruchamia/rozlicza niezależny odbiór; dopiero świeży `get_task({id, include:[], fullDetails:true})` potwierdza `details.local_receiver.outcome=PASS` i `status=done`. Lokalny przykład w testach paczki nie dowodzi użycia u klienta.
465
465
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robisie",
3
- "version": "0.5.40",
3
+ "version": "0.5.42",
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",