robisie 0.4.3 → 0.4.5
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 +15 -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 +43 -13
- 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,20 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.5](https://github.com/chuppa12/robisie-app/compare/client-v0.4.4...client-v0.4.5) (2026-11-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **client:** dziecko recenzji hosta dziedziczy ścieżkę konfiguracji instalacji ([f61e14f](https://github.com/chuppa12/robisie-app/commit/f61e14f5ae7594e73e25c0643ec0f135e62c8506))
|
|
9
|
+
* **client:** dziecko recenzji hosta dziedziczy ścieżkę konfiguracji instalacji (Z2-A) ([c4533ae](https://github.com/chuppa12/robisie-app/commit/c4533ae9782575e170c2be94062ce97d00073d30))
|
|
10
|
+
|
|
11
|
+
## [0.4.4](https://github.com/chuppa12/robisie-app/compare/client-v0.4.3...client-v0.4.4) (2026-11-10)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **client:** odbiorca lokalny czeka zamiast blokować (brak źródła dowodów = WAIT) ([1a4d214](https://github.com/chuppa12/robisie-app/commit/1a4d2142dd1e95a21532a83854c027d6d8ab6410))
|
|
17
|
+
|
|
3
18
|
## [0.4.3](https://github.com/chuppa12/robisie-app/compare/client-v0.4.2...client-v0.4.3) (2026-11-10)
|
|
4
19
|
|
|
5
20
|
|
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.4.
|
|
3
|
+
export declare const PACKAGE_VERSION = "0.4.5";
|
|
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.4.
|
|
3
|
+
export const PACKAGE_VERSION = "0.4.5"; // 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":"87710b7f93b8f7f00169b876395bb0d375f2e801","dirty":false}
|
|
@@ -1655,14 +1655,14 @@
|
|
|
1655
1655
|
"staticOperations": {
|
|
1656
1656
|
"beforePreflight": {
|
|
1657
1657
|
"module": "maszynista/tick.ts",
|
|
1658
|
-
"startLine":
|
|
1659
|
-
"endLine":
|
|
1658
|
+
"startLine": 9188,
|
|
1659
|
+
"endLine": 9300,
|
|
1660
1660
|
"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 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();"
|
|
1661
1661
|
},
|
|
1662
1662
|
"finalization": {
|
|
1663
1663
|
"module": "maszynista/tick.ts",
|
|
1664
|
-
"startLine":
|
|
1665
|
-
"endLine":
|
|
1664
|
+
"startLine": 9589,
|
|
1665
|
+
"endLine": 9641,
|
|
1666
1666
|
"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 && process.argv[2] !== \"--opencode-runner\") {"
|
|
1667
1667
|
},
|
|
1668
1668
|
"refreshTickReport": {
|
|
@@ -1688,6 +1688,6 @@
|
|
|
1688
1688
|
"status": 0,
|
|
1689
1689
|
"signal": null,
|
|
1690
1690
|
"stdout": "v24.3.0\n",
|
|
1691
|
-
"stderr": "(node:
|
|
1691
|
+
"stderr": "(node:14895) 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"
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
package/dist/engine/tick.cjs
CHANGED
|
@@ -14529,7 +14529,7 @@ function instrumentEgress(client, role3) {
|
|
|
14529
14529
|
try {
|
|
14530
14530
|
const file3 = process.env.ROBISIE_EGRESS_COUNTER_FILE;
|
|
14531
14531
|
if (!file3) return;
|
|
14532
|
-
const { appendFileSync: appendFileSync8, statSync:
|
|
14532
|
+
const { appendFileSync: appendFileSync8, statSync: statSync5 } = require("node:fs");
|
|
14533
14533
|
const { basename, isAbsolute: isAbsolute8 } = require("node:path");
|
|
14534
14534
|
if (!isAbsolute8(file3)) return;
|
|
14535
14535
|
const started = Date.now();
|
|
@@ -14539,7 +14539,7 @@ function instrumentEgress(client, role3) {
|
|
|
14539
14539
|
try {
|
|
14540
14540
|
let size = 0;
|
|
14541
14541
|
try {
|
|
14542
|
-
size =
|
|
14542
|
+
size = statSync5(file3).size;
|
|
14543
14543
|
} catch {
|
|
14544
14544
|
}
|
|
14545
14545
|
if (size < EGRESS_FILE_MAX_BYTES) {
|
|
@@ -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.4.
|
|
37631
|
+
PACKAGE_VERSION = "0.4.5";
|
|
37632
37632
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37633
37633
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37634
37634
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -77297,6 +77297,7 @@ __export2(local_receiver_exports, {
|
|
|
77297
77297
|
localReceiverPatch: () => localReceiverPatch,
|
|
77298
77298
|
localReceiverPid: () => localReceiverPid,
|
|
77299
77299
|
localReceiverSchema: () => localReceiverSchema,
|
|
77300
|
+
localReceiverWaitUnchanged: () => localReceiverWaitUnchanged,
|
|
77300
77301
|
localUsageEvents: () => localUsageEvents,
|
|
77301
77302
|
readLocalReceiverJob: () => readLocalReceiverJob,
|
|
77302
77303
|
runLocalReceiverJob: () => runLocalReceiverJob,
|
|
@@ -77322,7 +77323,7 @@ function localEffectCheck(card) {
|
|
|
77322
77323
|
return c;
|
|
77323
77324
|
}
|
|
77324
77325
|
function localUsageEvents(root, card, c, readAt) {
|
|
77325
|
-
return
|
|
77326
|
+
return localUsageEvidence(root, card, c, readAt).events;
|
|
77326
77327
|
}
|
|
77327
77328
|
function authors(card) {
|
|
77328
77329
|
const declared = record10(record10(card.details?.seed_provenance).authoring_providers);
|
|
@@ -77358,7 +77359,7 @@ function localReceiverInput(ctx, card, readAt = (/* @__PURE__ */ new Date()).toI
|
|
|
77358
77359
|
reportSha256,
|
|
77359
77360
|
authors: proof,
|
|
77360
77361
|
contract,
|
|
77361
|
-
|
|
77362
|
+
...localUsageEvidence(ctx.evidenceDir, card, contract, readAt),
|
|
77362
77363
|
readAt
|
|
77363
77364
|
};
|
|
77364
77365
|
return structuredClone({ card, prepared });
|
|
@@ -77391,7 +77392,7 @@ function completion(dir, claim, response, timestamp3, stop = "") {
|
|
|
77391
77392
|
if (!reason && p) {
|
|
77392
77393
|
if (p.events.length < p.contract.min) {
|
|
77393
77394
|
outcome = Date.parse(p.readAt) < Date.parse(p.contract.deadline) ? "WAIT" : "STOP";
|
|
77394
|
-
reason = `U\u017Cycia ${p.events.length}/${p.contract.min}; termin ${p.contract.deadline}; wyzwalacz: nowe zdarzenie lub deadline`;
|
|
77395
|
+
reason = `U\u017Cycia ${p.events.length}/${p.contract.min}; termin ${p.contract.deadline}; wyzwalacz: nowe zdarzenie lub deadline${p.sourceMissing ? "; \u017Ar\xF3d\u0142o jeszcze nie istnieje" : ""}`;
|
|
77395
77396
|
} else {
|
|
77396
77397
|
const raw = record10(response), invocation = record10(raw.invocation), model = text6.parse(invocation.actualModel);
|
|
77397
77398
|
if (invocation.provider !== "xai" || !/^grok-/.test(model) || invocation.exit !== 0 || invocation.effort !== "none" && invocation.effort !== "low" || !(0, import_node_util6.isDeepStrictEqual)(Object.keys(record10(invocation.modelUsage)), [model]) || !at2.safeParse(invocation.startedAt).success || !at2.safeParse(invocation.finishedAt).success || !Array.isArray(invocation.command)) throw new Error("Brak rzeczywistego wywo\u0142ania Groka");
|
|
@@ -77697,6 +77698,29 @@ function runLocalReceiverJob(dir, run) {
|
|
|
77697
77698
|
failed(dir, `IO receivera: ${failure2(error48)}; zachowano pliki do rozliczenia`);
|
|
77698
77699
|
}
|
|
77699
77700
|
}
|
|
77701
|
+
function localUsageEvidence(root, card, c, readAt) {
|
|
77702
|
+
let missing;
|
|
77703
|
+
try {
|
|
77704
|
+
relative2(c.source);
|
|
77705
|
+
const base2 = (0, import_node_fs23.realpathSync)(root), parentRef = import_node_path26.default.dirname(c.source);
|
|
77706
|
+
const parent = parentRef === "." ? base2 : within(base2, parentRef);
|
|
77707
|
+
if (!(0, import_node_fs23.statSync)(parent).isDirectory()) throw new Error("Brak katalogu dowod\xF3w");
|
|
77708
|
+
missing = (0, import_node_fs23.lstatSync)(import_node_path26.default.join(parent, import_node_path26.default.basename(c.source)), { throwIfNoEntry: false }) === void 0;
|
|
77709
|
+
} catch (cause) {
|
|
77710
|
+
throw new Error(`Odmowa dowod\xF3w u\u017Cycia: ${failure2(cause)}`);
|
|
77711
|
+
}
|
|
77712
|
+
return missing ? { events: [], sourceMissing: true } : { events: readLocalUsageEvents(root, { landed: record10(card.details?.landed), source: c.source, deadline: c.deadline, readAt }) };
|
|
77713
|
+
}
|
|
77714
|
+
function localReceiverWaitUnchanged(ctx, card, readAt = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
77715
|
+
const previous = record10(card.details?.local_receiver);
|
|
77716
|
+
if (previous.outcome !== "WAIT") return false;
|
|
77717
|
+
try {
|
|
77718
|
+
if (Date.parse(at2.parse(readAt)) >= Date.parse(at2.parse(previous.deadline))) return false;
|
|
77719
|
+
return localUsageEvents(ctx.evidenceDir, card, localEffectCheck(card), readAt).length === previous.count;
|
|
77720
|
+
} catch {
|
|
77721
|
+
return false;
|
|
77722
|
+
}
|
|
77723
|
+
}
|
|
77700
77724
|
var import_node_crypto14, import_node_fs23, import_node_path26, import_node_util6, text6, at2, contractSchema, record10, digest4, json5, hash6, failure2, answerSchema, localReceiverSchema;
|
|
77701
77725
|
var init_local_receiver = __esm({
|
|
77702
77726
|
"maszynista/local-receiver.ts"() {
|
|
@@ -111077,7 +111101,7 @@ ${lanes.join("\n")}
|
|
|
111077
111101
|
return process.memoryUsage().heapUsed;
|
|
111078
111102
|
},
|
|
111079
111103
|
getFileSize(path34) {
|
|
111080
|
-
const stat =
|
|
111104
|
+
const stat = statSync5(path34);
|
|
111081
111105
|
if (stat == null ? void 0 : stat.isFile()) {
|
|
111082
111106
|
return stat.size;
|
|
111083
111107
|
}
|
|
@@ -111121,7 +111145,7 @@ ${lanes.join("\n")}
|
|
|
111121
111145
|
}
|
|
111122
111146
|
};
|
|
111123
111147
|
return nodeSystem;
|
|
111124
|
-
function
|
|
111148
|
+
function statSync5(path34) {
|
|
111125
111149
|
try {
|
|
111126
111150
|
return _fs.statSync(path34, statSyncOptions);
|
|
111127
111151
|
} catch {
|
|
@@ -111180,7 +111204,7 @@ ${lanes.join("\n")}
|
|
|
111180
111204
|
activeSession.post("Profiler.stop", (err, { profile }) => {
|
|
111181
111205
|
var _a2;
|
|
111182
111206
|
if (!err) {
|
|
111183
|
-
if ((_a2 =
|
|
111207
|
+
if ((_a2 = statSync5(profilePath)) == null ? void 0 : _a2.isDirectory()) {
|
|
111184
111208
|
profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
|
|
111185
111209
|
}
|
|
111186
111210
|
try {
|
|
@@ -111300,7 +111324,7 @@ ${lanes.join("\n")}
|
|
|
111300
111324
|
let stat;
|
|
111301
111325
|
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
|
111302
111326
|
const name3 = combinePaths(path34, entry2);
|
|
111303
|
-
stat =
|
|
111327
|
+
stat = statSync5(name3);
|
|
111304
111328
|
if (!stat) {
|
|
111305
111329
|
continue;
|
|
111306
111330
|
}
|
|
@@ -111324,7 +111348,7 @@ ${lanes.join("\n")}
|
|
|
111324
111348
|
return matchFiles(path34, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath2);
|
|
111325
111349
|
}
|
|
111326
111350
|
function fileSystemEntryExists(path34, entryKind) {
|
|
111327
|
-
const stat =
|
|
111351
|
+
const stat = statSync5(path34);
|
|
111328
111352
|
if (!stat) {
|
|
111329
111353
|
return false;
|
|
111330
111354
|
}
|
|
@@ -111366,7 +111390,7 @@ ${lanes.join("\n")}
|
|
|
111366
111390
|
}
|
|
111367
111391
|
function getModifiedTime3(path34) {
|
|
111368
111392
|
var _a2;
|
|
111369
|
-
return (_a2 =
|
|
111393
|
+
return (_a2 = statSync5(path34)) == null ? void 0 : _a2.mtime;
|
|
111370
111394
|
}
|
|
111371
111395
|
function setModifiedTime(path34, time5) {
|
|
111372
111396
|
try {
|
|
@@ -319417,10 +319441,15 @@ async function reviewActive(s, uid, card, a, landing, installation = tickInstall
|
|
|
319417
319441
|
}), { flag: "wx", mode: 384 });
|
|
319418
319442
|
try {
|
|
319419
319443
|
await new Promise((resolve7, reject) => {
|
|
319444
|
+
const reviewConfigPath = clientPair ? null : currentEngine().configPath;
|
|
319420
319445
|
const child = (0, import_node_child_process19.spawn)(
|
|
319421
319446
|
process.execPath,
|
|
319422
319447
|
engineJobArgv(__filename, "review", file3),
|
|
319423
|
-
{ cwd: REPO, env: clientPair ? { ...installation.controlEnv(), ROBISIE_ENGINE_CONFIG: clientPair.config.path } : {
|
|
319448
|
+
{ cwd: REPO, env: clientPair ? { ...installation.controlEnv(), ROBISIE_ENGINE_CONFIG: clientPair.config.path } : {
|
|
319449
|
+
...executionEnv2(),
|
|
319450
|
+
MASZYNISTA_HOST_STATE_DIR: hostStateDir(),
|
|
319451
|
+
...reviewConfigPath ? { ROBISIE_ENGINE_CONFIG: reviewConfigPath } : {}
|
|
319452
|
+
}, detached: true, stdio: "ignore" }
|
|
319424
319453
|
);
|
|
319425
319454
|
child.once("error", reject);
|
|
319426
319455
|
child.once("spawn", () => {
|
|
@@ -320437,6 +320466,7 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
|
|
|
320437
320466
|
continue;
|
|
320438
320467
|
}
|
|
320439
320468
|
}
|
|
320469
|
+
if (receiver.localReceiverWaitUnchanged(installation.localReceiver, card)) continue;
|
|
320440
320470
|
const input = receiver.localReceiverInput(installation.localReceiver, card);
|
|
320441
320471
|
if (!processSlot(s)) return false;
|
|
320442
320472
|
return await receiver.startLocalReceiverJob(dir, input);
|
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.4.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.4.5 \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.4.
|
|
1
|
+
# robisie — from account to accepted card (package 0.4.5) <!-- 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.4.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.4.5) <!-- 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