robisie 0.5.42 → 0.5.44

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,32 @@
1
1
  # Historia zmian klienta / Client changelog
2
2
 
3
+ ## [0.5.44](https://github.com/chuppa12/robisie-app/compare/client-v0.5.43...client-v0.5.44) (2026-11-16)
4
+
5
+
6
+ ### Factory Cards
7
+
8
+ * praca workera task-mwii3ufq-ifyded (auto-commit) ([7d13db0](https://github.com/chuppa12/robisie-app/commit/7d13db0b54f485a828c384e9bec7e0d0b22d228e))
9
+ * praca workera task-mwiksik6-imfxio (auto-commit) ([66ffaaa](https://github.com/chuppa12/robisie-app/commit/66ffaaa60b7780a3407c5ad1ff66e339c3650d20))
10
+
11
+ ## [0.5.43](https://github.com/chuppa12/robisie-app/compare/client-v0.5.42...client-v0.5.43) (2026-11-16)
12
+
13
+
14
+ ### Factory Cards
15
+
16
+ * praca workera task-mwi17rqe-dgshp6 (auto-commit) ([996b637](https://github.com/chuppa12/robisie-app/commit/996b637e96e9719c4c0c5b5140a13f87cf96d67a))
17
+ * praca workera task-mwi54qhs-yuib3q (auto-commit) ([65d7bfa](https://github.com/chuppa12/robisie-app/commit/65d7bfa90d0a86e6855eaa027a36a0e9e73ef036))
18
+ * praca workera task-mwi5rcqo-yzi4hj (auto-commit) ([25c78fc](https://github.com/chuppa12/robisie-app/commit/25c78fc8a03e469d68923bda85bc442a917799f4))
19
+ * praca workera task-mwi6tm00-lmmvpi (auto-commit) ([7a98cdc](https://github.com/chuppa12/robisie-app/commit/7a98cdcaa8c1a71279b5439bdeb23db08cc7f130))
20
+ * praca workera task-mwi76545-x2xfdh (auto-commit) ([400015e](https://github.com/chuppa12/robisie-app/commit/400015e2c7432eea43225cdf2ae852c5618a7ae7))
21
+ * praca workera task-mwi7ghct-33iyzl (auto-commit) ([71c80d6](https://github.com/chuppa12/robisie-app/commit/71c80d6dcb20533d9db7f853ca508fc72b35c438))
22
+ * praca workera task-mwiar8ha-thxyl6 (auto-commit) ([68444db](https://github.com/chuppa12/robisie-app/commit/68444db7673f9900d3e9c7b2a67e9264f766c03f))
23
+ * praca workera task-mwib84bg-m0fciy (auto-commit) ([4aef8c4](https://github.com/chuppa12/robisie-app/commit/4aef8c4d79f3867cd536be2ee4356a3c65dba050))
24
+ * praca workera task-mwibv9qn-xedwxq (auto-commit) ([271daaf](https://github.com/chuppa12/robisie-app/commit/271daaf212cb1ac8d060e5e33db66d74a9c4d481))
25
+ * praca workera task-mwibvgps-gl8nor (auto-commit) ([6e303f0](https://github.com/chuppa12/robisie-app/commit/6e303f017509b96adf498ca7649fbdb60d4590da))
26
+ * praca workera task-mwie5azu-cro9mp (auto-commit) ([bc37b4e](https://github.com/chuppa12/robisie-app/commit/bc37b4ecd63869fd84ac936ce5f80492664b6778))
27
+ * praca workera task-mwiefu97-ej66n7 (auto-commit) ([eb28b97](https://github.com/chuppa12/robisie-app/commit/eb28b97f2caa3981a65c20a4d1ee0684ff9170aa))
28
+ * praca workera task-mwig5g1e-epaxwu (auto-commit) ([4aba023](https://github.com/chuppa12/robisie-app/commit/4aba023f3689cf35480e6d18bc39201ad652e359))
29
+
3
30
  ## [0.5.42](https://github.com/chuppa12/robisie-app/compare/client-v0.5.41...client-v0.5.42) (2026-11-15)
4
31
 
5
32
 
@@ -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.42";
3
+ export declare const PACKAGE_VERSION = "0.5.44";
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.42"; // x-release-please-version
3
+ export const PACKAGE_VERSION = "0.5.44"; // 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.
@@ -102,12 +102,18 @@ export type EvidenceResult = {
102
102
  reason: "invalid-kind" | "invalid-sha" | "evidence-read-failed" | "error";
103
103
  message: string;
104
104
  };
105
+ export type CheckOptions = {
106
+ timeoutMs?: number;
107
+ tester?: {
108
+ env: NodeJS.ProcessEnv;
109
+ beforeCommand(cwd: string, command: CheckCommand): NodeJS.ProcessEnv;
110
+ afterCheck?(cwd: string): void;
111
+ };
112
+ };
105
113
  export interface Delivery {
106
114
  prepare(input: PrepareInput): PrepareResult;
107
115
  /** Komendy biegną w izolowanym worktree na `prepared.taskSha` (cwd = ten worktree), nie w repo klienta. */
108
- check(prepared: Prepared, commands: readonly CheckCommand[], options?: {
109
- timeoutMs?: number;
110
- }): CheckResult;
116
+ check(prepared: Prepared, commands: readonly CheckCommand[], options?: CheckOptions): CheckResult;
111
117
  deliver(prepared: Prepared): DeliverResult;
112
118
  attachEvidence(sha: string, kind: EvidenceKind, evidence: unknown): EvidenceResult;
113
119
  }
@@ -110,7 +110,14 @@ function check(repo, prepared, commands, options = {}) {
110
110
  let outcome;
111
111
  let failed = [];
112
112
  try {
113
- outcome = runChecks(worktree, commands, options.timeoutMs ?? 600_000, results);
113
+ outcome = runChecks(worktree, commands, options.timeoutMs ?? 600_000, results, options.tester);
114
+ // Tester must measure HEAD/dirty even when a failed command stopped its interleaved guards.
115
+ try {
116
+ options.tester?.afterCheck?.(worktree);
117
+ }
118
+ catch (error) {
119
+ outcome = { ok: false, reason: "check-failed", message: String(error), results };
120
+ }
114
121
  }
115
122
  finally {
116
123
  failed = removeWorktree(repo, tmp, worktree, true);
@@ -147,18 +154,33 @@ function withCleanup(outcome, failed, tmp, worktree) {
147
154
  }
148
155
  return { ok: false, reason: "cleanup-failed", message, results: outcome.results, detail };
149
156
  }
150
- function runChecks(cwd, commands, timeoutMs, results) {
157
+ function runChecks(cwd, commands, timeoutMs, results, tester) {
151
158
  for (const entry of commands) {
152
159
  const command = typeof entry?.command === "string" ? entry.command : "";
153
160
  const args = Array.isArray(entry?.args) ? entry.args.map(String) : [];
154
161
  if (!command) {
155
162
  return { ok: false, reason: "check-failed", message: "Pusta komenda sprawdzenia.", results };
156
163
  }
157
- const run = spawnSync(command, args, { cwd, encoding: "utf8", shell: false, timeout: timeoutMs, maxBuffer: 20 * 1024 * 1024 });
164
+ let env = tester?.env;
165
+ try {
166
+ if (tester)
167
+ env = tester.beforeCommand(cwd, entry);
168
+ }
169
+ catch (error) {
170
+ return { ok: false, reason: "check-failed", message: String(error), results };
171
+ }
172
+ const run = spawnSync(command, args, { cwd, ...(env ? { env } : {}), encoding: "utf8", shell: false, timeout: timeoutMs, maxBuffer: 20 * 1024 * 1024 });
158
173
  const output = `${run.stdout ?? ""}${run.stderr ?? ""}${run.error ? run.error.message : ""}`.slice(-OUTPUT_LIMIT);
159
174
  const outcome = { command, args, status: run.status, signal: run.signal, output };
160
175
  results.push(outcome);
161
176
  if (run.error || run.status !== 0) {
177
+ try {
178
+ if (tester)
179
+ tester.beforeCommand(cwd, entry);
180
+ }
181
+ catch (error) {
182
+ return { ok: false, reason: "check-failed", message: String(error), results };
183
+ }
162
184
  return { ok: false, reason: "check-failed", message: `Sprawdzenie ${[command, ...args].join(" ")} nie przeszło (status=${run.status}, sygnał=${run.signal}).`, results };
163
185
  }
164
186
  }
@@ -1 +1 @@
1
- {"schema":1,"sha":"b411a912c1d755170021711757fbfeec1ef7b234","dirty":false}
1
+ {"schema":1,"sha":"26cd1623594b71037d31b847076be5126f48f80e","dirty":false}