robisie 0.5.33 → 0.5.34
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 +8 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/engine/build-id.json +1 -1
- package/dist/engine/bundle-report.json +5 -5
- package/dist/engine/tick.cjs +69 -51
- package/dist/roles.d.ts +1 -1
- 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,13 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.34](https://github.com/chuppa12/robisie-app/compare/client-v0.5.33...client-v0.5.34) (2026-11-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Factory Cards
|
|
7
|
+
|
|
8
|
+
* praca workera task-mwgly51e-yminuq (auto-commit) ([1876d1c](https://github.com/chuppa12/robisie-app/commit/1876d1cccb14b28ce9d14a04f9e6b9099bb7a022))
|
|
9
|
+
* praca workera task-mwgmjwpl-zl7hif (auto-commit) ([7bc852e](https://github.com/chuppa12/robisie-app/commit/7bc852ef008748d23214222ad70cd320f33ed15c))
|
|
10
|
+
|
|
3
11
|
## [0.5.33](https://github.com/chuppa12/robisie-app/compare/client-v0.5.32...client-v0.5.33) (2026-11-14)
|
|
4
12
|
|
|
5
13
|
|
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.34";
|
|
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.34"; // 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":"
|
|
1
|
+
{"schema":1,"sha":"5ca24f7e387c473b414abd6c10161ff2f5df5b03","dirty":false}
|
|
@@ -1673,14 +1673,14 @@
|
|
|
1673
1673
|
"staticOperations": {
|
|
1674
1674
|
"beforePreflight": {
|
|
1675
1675
|
"module": "maszynista/tick.ts",
|
|
1676
|
-
"startLine":
|
|
1677
|
-
"endLine":
|
|
1676
|
+
"startLine": 9807,
|
|
1677
|
+
"endLine": 9920,
|
|
1678
1678
|
"text": "export async function main(): Promise<number> {\n const start = standaloneStartCheck({ filename: __filename, env: process.env });\n if (start.standalone && !start.ok) {\n console.error(start.message);\n process.exitCode = 78;\n return 78;\n }\n let installation: EngineContext;\n try { installation = createEngineContext(currentEngine(), {\n loadEnvironment: loadEnvFiles, preflight, baseRef: engineBaseRef, refreshBase: fetchMain,\n disk: defaultDiskPressureDependencies, workerContext: loadNorthStar,\n controlEnv: hostEnv, workerEnv: executionEnv, prepareWorktree: prepareHostWorktree, workerArtifacts: createWorkerTmpdir,\n notify: async (card, reason) => { decisionForReksio(card, reason, \"Rozstrzygnij na karcie\", \"\", \"\"); return { outcome: \"recorded\", ref: DECISIONS_REKSIO }; },\n hostOperations: hostOperationsPhase,\n activation: { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto },\n }, git, log); }\n catch (error) {\n if (!engineClient()) throw error;\n console.error(`HOLD kontekst klienta: ${clientTickFailure(error)}`);\n process.exitCode = 78;\n return 78;\n }\n const previousInstallation = tickInstallation;\n const hostErrorText = errorText;\n const client = engineClient();\n const result: { outcome: \"ok\" | \"retry\" | \"stop\"; reason: string; cleanup: boolean } = { outcome: \"ok\", reason: \"\", cleanup: false };\n const stopClient = (reason = clientTickFailure()): void => {\n if (client && result.outcome !== \"stop\") { result.outcome = \"stop\"; result.reason = reason; }\n };\n let code = 2;\n try { code = await q.withPlannerQueries(installation.planner, async () => {\n tickInstallation = installation;\n const seedGateSettings = installationSeedGateSettings();\n const errorText = client ? clientTickFailure : hostErrorText;\n const loadEnvFiles = installation.loadEnvironment;\n const preflight = () => {\n const actor = installation.preflight();\n return { uid: actor.kind === \"db\" ? actor.uid : API_ACTOR };\n };\n const { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto } = installation.activation;\n const smokeOnly = DRY && process.env.MASZYNISTA_SMOKE === \"1\";\n if (!DRY) {\n const acquire = (): boolean => tryCreateTickLock(LOCK);\n if (!acquire()) {\n const raw = readFileSync(LOCK, \"utf8\"), pid = Number(raw);\n if (!Number.isSafeInteger(pid) || pid <= 0) { console.log(\"tick lock bez poprawnego PID — HOLD\"); return 0; }\n try { process.kill(pid, 0); console.log(`tick już trwa (pid ${pid})`); return 0; }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ESRCH\") throw error; }\n if (readFileSync(LOCK, \"utf8\") === raw) unlinkSync(LOCK);\n if (!acquire()) { console.log(\"tick już trwa\"); return 0; }\n }\n }\n skippedCardEvents.clear();\n let s = parseState(null).state;\n // Internal smoke handoff: the child cannot outlive the parent's reserved budget.\n const smokeLimit = DRY ? Number(process.env.MASZYNISTA_SMOKE_TIMEOUT_MS) : NaN;\n let stateLoaded = false;\n let tickStarted: string | undefined;\n let outcome: \"ok\" | \"failed\" = \"ok\";\n let runtimeFailed = false;\n let observedLoaded = \"UNKNOWN\";\n let tickPhase = \"startup\";\n const deadlineAlarm = armTickDeadline(() => s, Number.isSafeInteger(smokeLimit) && smokeLimit > 0\n ? Math.min(TICK_LIMIT_MS, smokeLimit) : TICK_LIMIT_MS, () => ({ phase: tickPhase, observedLoaded }));\n let hostReady = false;\n let hostBoard: { uid: string; projectId: string } | undefined;\n let activationCards: CardLike[] = [];\n let activationCardsKnown = false;\n let blockedBefore = 0;\n const clientStopped = (): boolean => {\n if (client && (outcome === \"failed\" || (!DRY && s.blocked > blockedBefore))) stopClient();\n if (client && result.outcome === \"stop\") outcome = \"failed\";\n return client && result.outcome === \"stop\";\n };\n let hostPhaseStarted = false;\n const hostPhase = async (): Promise<boolean> => {\n if (smokeOnly || !hostReady || hostPhaseStarted) return false;\n hostPhaseStarted = true;\n tickPhase = \"host\";\n if (hostBoard) {\n const { uid: boardUid, projectId: boardProject } = hostBoard;\n try {\n await runEnabledAuto({ state: s, loadedSha: observedLoaded, repo: REPO, logPath: LOG, tick: s.tick, stateDir: hostStateDir(),\n now: new Date().toISOString(), activation: readActivationState(hostStateDir()), dryRun: DRY }, {\n listCards: async () => scanTasks(boardUid, boardProject, { full: true, statuses: [\"delivered\"],\n detailsKeys: ENABLED_SCAN_DETAILS_KEYS }),\n getTask: id => q.getTask(boardUid, id),\n appendDetail: async (id, patch) => { await appendBoundedDetail(boardUid, id, patch); },\n saveState: writeState,\n alarm: hostActivationAlarm,\n log,\n });\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL ENABLED auto: ${errorText(error)}`); }\n } else log(\"ENABLED auto: UNKNOWN — brak odczytu projektu; dowód karty czeka na dostęp do tablicy\");\n try {\n const result = await engineRunHostActivation({ repo: REPO, stateDir: hostStateDir(), cards: activationCards, cardsKnown: activationCardsKnown, tick: s.tick, dryRun: DRY }, {\n git, remainingTickMs, alarm: hostActivationAlarm, infrastructureChecks, infrastructurePullRequest, log: line => log(`host-activation: ${line}`),\n });\n log(`host-activation: code=${result.code} target=${result.target ?? \"UNKNOWN\"}${result.detail ? ` reason=${result.detail}` : \"\"}`);\n if (result.code === \"activate\" && result.target) {\n lastTick(s, \"activation\", `aktywacja ${result.target}; ogon odroczony`, outcome === \"ok\");\n return true;\n }\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL aktywacja: ${errorText(error)}`); }\n return false;\n };\n try {\n observedLoaded = loadedSha = readLoadedSha(REPO);\n s = readState((await engineFjConfig()).enabled);\n stateLoaded = true; blockedBefore = s.blocked;\n s.tick++; tickStarted = new Date().toISOString(); s.lastTickAt = tickStarted;\n log(`tick_started tick=${s.tick} at=${tickStarted} duration=UNKNOWN loaded=${loadedSha}`);\n loadEnvFiles();\n const { uid } = preflight();"
|
|
1679
1679
|
},
|
|
1680
1680
|
"finalization": {
|
|
1681
1681
|
"module": "maszynista/tick.ts",
|
|
1682
|
-
"startLine":
|
|
1683
|
-
"endLine":
|
|
1682
|
+
"startLine": 10211,
|
|
1683
|
+
"endLine": 10263,
|
|
1684
1684
|
"text": " } finally {\n // A persisted terminal FAIL is a card result; every unexpected exception above\n // remains a runtime failure, including DB errors inside card handling.\n if (!DRY && s.blocked > blockedBefore) {\n outcome = \"failed\";\n try { log(`FAIL: licznik blocked wzrósł ${blockedBefore} → ${s.blocked}; outcome=failed`); }\n catch (error) { console.error(`zapis licznika blocked: ${errorText(error)}`); }\n }\n clientStopped();\n // Early board failure still reaches the same host phase, at most once per tick.\n await hostPhase();\n tickPhase = \"finalizing\";\n try { if (!DRY) await finishHostActivation({ stateDir: hostStateDir(), outcome, tick: s.tick, runtimeFailed, observedLoaded }, { alarm: hostActivationAlarm, log }); }\n catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL breaker aktywacji: ${errorText(error)}`); }\n clientStopped();\n try { if (stateLoaded) writeState(s); }\n catch (error) { runtimeFailed = true; outcome = \"failed\"; if (!client) throw error; stopClient(); result.cleanup = true; }\n finally {\n if (!DRY) {\n try { if (readFileSync(LOCK, \"utf8\") === String(process.pid)) unlinkSync(LOCK); }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ENOENT\") { if (!client) throw error; stopClient(); result.cleanup = true; } }\n }\n const at = new Date().toISOString();\n const duration = tickStarted ? `${(Date.parse(at) - Date.parse(tickStarted)) / 1000}s` : \"UNKNOWN\";\n try {\n const { total, ops } = drainEgressCounters();\n const sorted = Object.entries(ops).sort(([, a], [, b]) => b.bytes - a.bytes);\n const summary = sorted.filter(([op]) => !op.includes(\":\")).slice(0, 12)\n .map(([op, counter]) => `${op}:${counter.calls}:${counter.bytes}`).join(\",\");\n const variants = sorted.filter(([op]) => op.includes(\":\")).slice(0, 6)\n .map(([op, counter]) => `${op}:${counter.calls}:${counter.bytes}`).join(\",\");\n log(`egress tick=${s.tick} total=${total} ops=${summary} variants=${variants}`);\n } catch { /* Optional metrics must never interrupt tick cleanup. */ }\n try { refreshTickReport(observedLoaded); log(`tick_finished tick=${s.tick} at=${at} outcome=${client && result.outcome === \"retry\" ? \"retry\" : outcome} duration=${duration} loaded=${loadedSha}`); }\n finally { clearTimeout(deadlineAlarm); tickDeadline = Number.POSITIVE_INFINITY; }\n }\n }\n }); } catch (error) {\n if (!client) throw error;\n stopClient(); result.cleanup = true;\n } finally {\n tickInstallation = previousInstallation;\n try { await installation.close(); }\n catch (error) {\n if (client) { stopClient(); result.cleanup = true; }\n else safeLog(`Zamknięcie instalacji nieudane: ${String(error)}`);\n }\n }\n if (client && result.outcome !== \"ok\") console.error(`Fabryka ${result.outcome === \"stop\" ? \"zatrzymana\" : \"retry\"}: ${result.reason}${result.cleanup ? \"; finalizacja niepotwierdzona — sprawdź stan i blokadę\" : \"\"}`);\n return client && result.outcome === \"stop\" ? 2 : code;\n}\n\nif (require.main === module && !([\"--opencode-runner\", \"--grok-runner\"].includes(process.argv[2] ?? \"\"))) {"
|
|
1685
1685
|
},
|
|
1686
1686
|
"refreshTickReport": {
|
|
@@ -1706,6 +1706,6 @@
|
|
|
1706
1706
|
"status": 0,
|
|
1707
1707
|
"signal": null,
|
|
1708
1708
|
"stdout": "v24.3.0\n",
|
|
1709
|
-
"stderr": "(node:
|
|
1709
|
+
"stderr": "(node:18241) 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"
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
package/dist/engine/tick.cjs
CHANGED
|
@@ -37628,7 +37628,7 @@ var init_constants = __esm({
|
|
|
37628
37628
|
"packages/client/src/constants.ts"() {
|
|
37629
37629
|
"use strict";
|
|
37630
37630
|
PACKAGE_NAME = "robisie";
|
|
37631
|
-
PACKAGE_VERSION = "0.5.
|
|
37631
|
+
PACKAGE_VERSION = "0.5.34";
|
|
37632
37632
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37633
37633
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37634
37634
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -319284,7 +319284,7 @@ async function land(s, uid, card, a, sha5, diskDependencies, landing = { availab
|
|
|
319284
319284
|
const runIds = [...new Set(failed2.map((f) => f.url.match(/\/actions\/runs\/(\d+)/)?.[1]).filter((x) => Boolean(x)))];
|
|
319285
319285
|
const retry = asRecord3(asRecord3(card.details?.maszynista).ciRetry);
|
|
319286
319286
|
const failedJobs = failedJobSteps(a.worktree, repository, failed2, sha5);
|
|
319287
|
-
|
|
319287
|
+
let klass = classifyCiFailure(failedJobs);
|
|
319288
319288
|
const diskMarker = failedJobs.some(hasCiDiskHold);
|
|
319289
319289
|
if (klass === "disk" || diskRecoveryPending && klass !== "code") {
|
|
319290
319290
|
if (retry.sha === sha5 && retry.reason === "disk" && retry.startedAt === failed2[0].startedAt && Date.now() - Date.parse(String(retry.at)) < 5 * 6e4) {
|
|
@@ -319350,6 +319350,73 @@ async function land(s, uid, card, a, sha5, diskDependencies, landing = { availab
|
|
|
319350
319350
|
lastTick(s, "landing", note, false, card.id);
|
|
319351
319351
|
return;
|
|
319352
319352
|
}
|
|
319353
|
+
const onlyUnitTestFailures = failedJobs.every((job) => {
|
|
319354
|
+
const failedSteps = job.steps.filter((step) => step.conclusion === "failure");
|
|
319355
|
+
return !job.evidenceMissing && failedSteps.length > 0 && failedSteps.every((step) => step.name.startsWith("Unit tests"));
|
|
319356
|
+
});
|
|
319357
|
+
const interruptedCandidate = klass === "code" && !diskMarker && onlyUnitTestFailures && runIds.length > 0 && failed2.every((check5) => check5.url.startsWith(`https://github.com/${repository}/actions/runs/`)) && failedJobs.every((job) => failed2.filter((check5) => check5.name === job.name).length === 1 && job.steps.every((step) => step.name && step.conclusion && (step.conclusion !== "failure" || /^Unit tests(?:$| \()/.test(step.name))));
|
|
319358
|
+
let interruptedLogs = interruptedCandidate;
|
|
319359
|
+
const tails = [];
|
|
319360
|
+
const tests = /* @__PURE__ */ new Set();
|
|
319361
|
+
const testNames = {};
|
|
319362
|
+
let logReadFailed = false;
|
|
319363
|
+
if (Date.now() - Date.parse(String(failed2[0].startedAt)) < 45 * 6e4) {
|
|
319364
|
+
for (const runId2 of runIds) {
|
|
319365
|
+
let status2;
|
|
319366
|
+
try {
|
|
319367
|
+
status2 = (0, import_node_child_process20.execFileSync)("gh", ["run", "view", runId2, "--repo", repository, "--json", "status", "--jq", ".status"], {
|
|
319368
|
+
cwd: a.worktree,
|
|
319369
|
+
encoding: "utf-8",
|
|
319370
|
+
env: hostEnv(),
|
|
319371
|
+
timeout: remainingTickMs(6e4)
|
|
319372
|
+
}).trim();
|
|
319373
|
+
} catch (error48) {
|
|
319374
|
+
log2(`gh run view ${runId2} --json status: ${errorText5(error48)}`);
|
|
319375
|
+
break;
|
|
319376
|
+
}
|
|
319377
|
+
if (status2 !== "completed") {
|
|
319378
|
+
lastTick(s, "landing", `CI: czekam na koniec runu ${runId2} (log pad\u0142ych test\xF3w dost\u0119pny dopiero po zako\u0144czeniu ca\u0142ego runu)`, false, card.id);
|
|
319379
|
+
return;
|
|
319380
|
+
}
|
|
319381
|
+
}
|
|
319382
|
+
}
|
|
319383
|
+
if (klass !== "infra" && klass !== "host" || diskMarker) {
|
|
319384
|
+
for (const runId2 of runIds) {
|
|
319385
|
+
try {
|
|
319386
|
+
const raw = (0, import_node_child_process20.execFileSync)("gh", ["run", "view", runId2, "--log-failed", "--repo", repository], {
|
|
319387
|
+
cwd: a.worktree,
|
|
319388
|
+
encoding: "utf-8",
|
|
319389
|
+
env: hostEnv(),
|
|
319390
|
+
timeout: remainingTickMs(6e4),
|
|
319391
|
+
maxBuffer: 20 * 1024 * 1024
|
|
319392
|
+
});
|
|
319393
|
+
for (const file3 of failedTestFiles(raw)) tests.add(file3);
|
|
319394
|
+
for (const line2 of raw.replace(/\x1b\[[0-9;]*m/g, "").split("\n")) {
|
|
319395
|
+
const match2 = line2.match(/\bFAIL\s+(\S+\.(?:test|spec)\.(?:ts|tsx|mts|mjs|js))\s+>\s+(.+)$/);
|
|
319396
|
+
if (match2) (testNames[match2[1]] ??= []).push(match2[2]);
|
|
319397
|
+
}
|
|
319398
|
+
if (interruptedCandidate) {
|
|
319399
|
+
const runJobs = failedJobs.filter((job) => failed2.some((check5) => check5.name === job.name && check5.url.match(/\/actions\/runs\/(\d+)/)?.[1] === runId2));
|
|
319400
|
+
const unitSteps = runJobs.flatMap((job) => job.steps.filter((step) => step.conclusion === "failure").map((step) => ({ job: job.name, step: step.name })));
|
|
319401
|
+
const interrupted = unitSteps.length > 0 && unitSteps.every((source) => {
|
|
319402
|
+
const lines2 = raw.split(/\r?\n/).filter((line2) => {
|
|
319403
|
+
const prefix = line2.replace(/\x1b\[[0-9;]*[A-Za-z]/g, "").match(/^([^\t]*)\t([^\t]*)\t/);
|
|
319404
|
+
return prefix ? prefix[1] === source.job && prefix[2] === source.step : unitSteps.length === 1;
|
|
319405
|
+
}).join("\n");
|
|
319406
|
+
const full = normalizeCiLogTail(lines2, Infinity, Infinity);
|
|
319407
|
+
return /^[\t ]*RUN[\t ]+v\d+(?:\.\d+)+(?:[\t ]|$)/m.test(full) && !/^[\t ]*Test Files(?:[\t ]|$)/m.test(full);
|
|
319408
|
+
});
|
|
319409
|
+
interruptedLogs &&= interrupted;
|
|
319410
|
+
}
|
|
319411
|
+
const tail2 = normalizeCiLogTail(raw);
|
|
319412
|
+
if (tail2) tails.push({ runId: runId2, tail: tail2 });
|
|
319413
|
+
} catch (error48) {
|
|
319414
|
+
logReadFailed = true;
|
|
319415
|
+
log2(`gh run view ${runId2} --log-failed: ${errorText5(error48)}`);
|
|
319416
|
+
}
|
|
319417
|
+
}
|
|
319418
|
+
}
|
|
319419
|
+
if (interruptedLogs && !logReadFailed && tests.size === 0) klass = "infra";
|
|
319353
319420
|
if ((klass === "infra" || klass === "host") && !diskMarker) {
|
|
319354
319421
|
const label2 = klass === "infra" ? "INFRA" : "HOST";
|
|
319355
319422
|
if (runIds.length === 1 && retry.sha !== sha5 && retry.runId !== runIds[0]) {
|
|
@@ -319377,56 +319444,7 @@ async function land(s, uid, card, a, sha5, diskDependencies, landing = { availab
|
|
|
319377
319444
|
lastTick(s, "landing", note, false, card.id);
|
|
319378
319445
|
return;
|
|
319379
319446
|
}
|
|
319380
|
-
if (Date.now() - Date.parse(String(failed2[0].startedAt)) < 45 * 6e4) {
|
|
319381
|
-
for (const runId2 of runIds) {
|
|
319382
|
-
let status2;
|
|
319383
|
-
try {
|
|
319384
|
-
status2 = (0, import_node_child_process20.execFileSync)("gh", ["run", "view", runId2, "--repo", repository, "--json", "status", "--jq", ".status"], {
|
|
319385
|
-
cwd: a.worktree,
|
|
319386
|
-
encoding: "utf-8",
|
|
319387
|
-
env: hostEnv(),
|
|
319388
|
-
timeout: remainingTickMs(6e4)
|
|
319389
|
-
}).trim();
|
|
319390
|
-
} catch (error48) {
|
|
319391
|
-
log2(`gh run view ${runId2} --json status: ${errorText5(error48)}`);
|
|
319392
|
-
break;
|
|
319393
|
-
}
|
|
319394
|
-
if (status2 !== "completed") {
|
|
319395
|
-
lastTick(s, "landing", `CI: czekam na koniec runu ${runId2} (log pad\u0142ych test\xF3w dost\u0119pny dopiero po zako\u0144czeniu ca\u0142ego runu)`, false, card.id);
|
|
319396
|
-
return;
|
|
319397
|
-
}
|
|
319398
|
-
}
|
|
319399
|
-
}
|
|
319400
|
-
const tails = [];
|
|
319401
|
-
const tests = /* @__PURE__ */ new Set();
|
|
319402
|
-
const testNames = {};
|
|
319403
|
-
let logReadFailed = false;
|
|
319404
|
-
for (const runId2 of runIds) {
|
|
319405
|
-
try {
|
|
319406
|
-
const raw = (0, import_node_child_process20.execFileSync)("gh", ["run", "view", runId2, "--log-failed", "--repo", repository], {
|
|
319407
|
-
cwd: a.worktree,
|
|
319408
|
-
encoding: "utf-8",
|
|
319409
|
-
env: hostEnv(),
|
|
319410
|
-
timeout: remainingTickMs(6e4),
|
|
319411
|
-
maxBuffer: 20 * 1024 * 1024
|
|
319412
|
-
});
|
|
319413
|
-
for (const file3 of failedTestFiles(raw)) tests.add(file3);
|
|
319414
|
-
for (const line2 of raw.replace(/\x1b\[[0-9;]*m/g, "").split("\n")) {
|
|
319415
|
-
const match2 = line2.match(/\bFAIL\s+(\S+\.(?:test|spec)\.(?:ts|tsx|mts|mjs|js))\s+>\s+(.+)$/);
|
|
319416
|
-
if (match2) (testNames[match2[1]] ??= []).push(match2[2]);
|
|
319417
|
-
}
|
|
319418
|
-
const tail2 = normalizeCiLogTail(raw);
|
|
319419
|
-
if (tail2) tails.push({ runId: runId2, tail: tail2 });
|
|
319420
|
-
} catch (error48) {
|
|
319421
|
-
logReadFailed = true;
|
|
319422
|
-
log2(`gh run view ${runId2} --log-failed: ${errorText5(error48)}`);
|
|
319423
|
-
}
|
|
319424
|
-
}
|
|
319425
319447
|
let outsideDiff = false;
|
|
319426
|
-
const onlyUnitTestFailures = failedJobs.every((job) => {
|
|
319427
|
-
const failedSteps = job.steps.filter((step) => step.conclusion === "failure");
|
|
319428
|
-
return !job.evidenceMissing && failedSteps.length > 0 && failedSteps.every((step) => step.name.startsWith("Unit tests"));
|
|
319429
|
-
});
|
|
319430
319448
|
if (klass === "code" && onlyUnitTestFailures && !diskMarker && !logReadFailed && tests.size > 0) {
|
|
319431
319449
|
try {
|
|
319432
319450
|
const changed = git(["diff", "--name-only", `${engineBaseRef()}...${sha5}`], a.worktree).split("\n").filter(Boolean);
|
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.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.34 \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.
|
|
1
|
+
# robisie — from account to accepted card (package 0.5.34) <!-- 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.5.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.5.34) <!-- 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