robisie 0.5.42 → 0.5.43
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 +19 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/delivery-local.d.ts +9 -3
- package/dist/delivery-local.js +25 -3
- package/dist/engine/build-id.json +1 -1
- package/dist/engine/bundle-report.json +290 -278
- package/dist/engine/tick.cjs +1046 -837
- package/dist/local-usage.js +9 -7
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +17 -3
- package/dist/roles.d.ts +1 -1
- package/dist/roles.js +1 -0
- package/dist/tester-result-reader.d.ts +7 -0
- package/dist/tester-result-reader.js +7 -0
- package/docs/README.en.md +1 -1
- package/docs/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.43](https://github.com/chuppa12/robisie-app/compare/client-v0.5.42...client-v0.5.43) (2026-11-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Factory Cards
|
|
7
|
+
|
|
8
|
+
* praca workera task-mwi17rqe-dgshp6 (auto-commit) ([996b637](https://github.com/chuppa12/robisie-app/commit/996b637e96e9719c4c0c5b5140a13f87cf96d67a))
|
|
9
|
+
* praca workera task-mwi54qhs-yuib3q (auto-commit) ([65d7bfa](https://github.com/chuppa12/robisie-app/commit/65d7bfa90d0a86e6855eaa027a36a0e9e73ef036))
|
|
10
|
+
* praca workera task-mwi5rcqo-yzi4hj (auto-commit) ([25c78fc](https://github.com/chuppa12/robisie-app/commit/25c78fc8a03e469d68923bda85bc442a917799f4))
|
|
11
|
+
* praca workera task-mwi6tm00-lmmvpi (auto-commit) ([7a98cdc](https://github.com/chuppa12/robisie-app/commit/7a98cdcaa8c1a71279b5439bdeb23db08cc7f130))
|
|
12
|
+
* praca workera task-mwi76545-x2xfdh (auto-commit) ([400015e](https://github.com/chuppa12/robisie-app/commit/400015e2c7432eea43225cdf2ae852c5618a7ae7))
|
|
13
|
+
* praca workera task-mwi7ghct-33iyzl (auto-commit) ([71c80d6](https://github.com/chuppa12/robisie-app/commit/71c80d6dcb20533d9db7f853ca508fc72b35c438))
|
|
14
|
+
* praca workera task-mwiar8ha-thxyl6 (auto-commit) ([68444db](https://github.com/chuppa12/robisie-app/commit/68444db7673f9900d3e9c7b2a67e9264f766c03f))
|
|
15
|
+
* praca workera task-mwib84bg-m0fciy (auto-commit) ([4aef8c4](https://github.com/chuppa12/robisie-app/commit/4aef8c4d79f3867cd536be2ee4356a3c65dba050))
|
|
16
|
+
* praca workera task-mwibv9qn-xedwxq (auto-commit) ([271daaf](https://github.com/chuppa12/robisie-app/commit/271daaf212cb1ac8d060e5e33db66d74a9c4d481))
|
|
17
|
+
* praca workera task-mwibvgps-gl8nor (auto-commit) ([6e303f0](https://github.com/chuppa12/robisie-app/commit/6e303f017509b96adf498ca7649fbdb60d4590da))
|
|
18
|
+
* praca workera task-mwie5azu-cro9mp (auto-commit) ([bc37b4e](https://github.com/chuppa12/robisie-app/commit/bc37b4ecd63869fd84ac936ce5f80492664b6778))
|
|
19
|
+
* praca workera task-mwiefu97-ej66n7 (auto-commit) ([eb28b97](https://github.com/chuppa12/robisie-app/commit/eb28b97f2caa3981a65c20a4d1ee0684ff9170aa))
|
|
20
|
+
* praca workera task-mwig5g1e-epaxwu (auto-commit) ([4aba023](https://github.com/chuppa12/robisie-app/commit/4aba023f3689cf35480e6d18bc39201ad652e359))
|
|
21
|
+
|
|
3
22
|
## [0.5.42](https://github.com/chuppa12/robisie-app/compare/client-v0.5.41...client-v0.5.42) (2026-11-15)
|
|
4
23
|
|
|
5
24
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
export declare const PACKAGE_VERSION = "0.5.43";
|
|
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.
|
|
3
|
+
export const PACKAGE_VERSION = "0.5.43"; // 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.
|
package/dist/delivery-local.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/delivery-local.js
CHANGED
|
@@ -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
|
-
|
|
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":"
|
|
1
|
+
{"schema":1,"sha":"e39f58f495bdde33a61139bd8f2a1be8e0ef85b1","dirty":false}
|