robisie 0.6.5 → 0.6.7
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 +25 -0
- package/dist/commands.js +2 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/dispatch-scope.d.ts +2 -1
- package/dist/dispatch-scope.js +3 -2
- package/dist/engine/build-id.json +1 -1
- package/dist/engine/bundle-report.json +5 -5
- package/dist/engine/tick.cjs +19 -5
- package/dist/installation-update.js +3 -1
- package/dist/roles.d.ts +1 -1
- package/docs/README.en.md +2 -2
- package/docs/README.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.7](https://github.com/chuppa12/robisie-app/compare/client-v0.6.6...client-v0.6.7) (2026-11-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Factory Cards
|
|
7
|
+
|
|
8
|
+
* Aktualizacja klienta na Linuksie z systemd nie pada: jednostki paczki zapisują WorkingDirectory jako gołą ścieżkę bez cudzysłowu ([34d7ff1](https://github.com/chuppa12/robisie-app/commit/34d7ff10a9ad134361acb4d18c5e6393fc4cd336))
|
|
9
|
+
* praca workera task-mwm1tzx7-ktsndv (auto-commit) ([a2615e4](https://github.com/chuppa12/robisie-app/commit/a2615e46ef0cfb686614a3c2e65bc579754c9d36))
|
|
10
|
+
* praca workera task-mwm8o0mx-9chgsf (auto-commit) ([4efe2e2](https://github.com/chuppa12/robisie-app/commit/4efe2e26bce66c592e96eb4c890adf8e517dd1d8))
|
|
11
|
+
|
|
12
|
+
## [0.6.6](https://github.com/chuppa12/robisie-app/compare/client-v0.6.5...client-v0.6.6) (2026-11-18)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **client:** engine.lock nie blokuje promocji kart o rozłącznych plikach kodu (sznurek) ([196f912](https://github.com/chuppa12/robisie-app/commit/196f9127e3646080287db5782dac8cea6596af5f))
|
|
18
|
+
* **client:** engine.lock nie blokuje promocji kart o rozłącznych plikach kodu (sznurek) ([7df9e8a](https://github.com/chuppa12/robisie-app/commit/7df9e8ae683d5bc4650aef81e0233b43b1b5a147))
|
|
19
|
+
* **client:** engine.lock nie blokuje promocji kart o rozłącznych plikach kodu (sznurek) ([#1091](https://github.com/chuppa12/robisie-app/issues/1091)) ([196f912](https://github.com/chuppa12/robisie-app/commit/196f9127e3646080287db5782dac8cea6596af5f))
|
|
20
|
+
* **client:** host zapisuje tożsamość Workera (backend, model, dostawca) w każdym zapisie maszynisty ([ec53bc1](https://github.com/chuppa12/robisie-app/commit/ec53bc1de1e2173b4d6f5bb8d42be5e43700a990))
|
|
21
|
+
* **client:** host zapisuje tożsamość Workera (backend, model, dostawca) w każdym zapisie maszynisty ([#1082](https://github.com/chuppa12/robisie-app/issues/1082)) ([ec53bc1](https://github.com/chuppa12/robisie-app/commit/ec53bc1de1e2173b4d6f5bb8d42be5e43700a990))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Factory Cards
|
|
25
|
+
|
|
26
|
+
* Doctor klienta nie mówi „gotowe”, gdy projekt ma tryb odbioru legacy, w którym karta nigdy nie dojdzie do „zrobione” ([9588af2](https://github.com/chuppa12/robisie-app/commit/9588af298b76816f0dec659f736d722bb236f107))
|
|
27
|
+
|
|
3
28
|
## [0.6.5](https://github.com/chuppa12/robisie-app/compare/client-v0.6.4...client-v0.6.5) (2026-11-18)
|
|
4
29
|
|
|
5
30
|
|
package/dist/commands.js
CHANGED
|
@@ -458,6 +458,8 @@ export async function doctor(ctx) {
|
|
|
458
458
|
policyLine = policy === "enforced" ? "✓ Polityka enforced: TAK"
|
|
459
459
|
: policy === "legacy" ? "! Polityka enforced: NIE (projekt ma politykę legacy) — odbiór B (accept_review) będzie odmawiany; poproś operatora Robisie o ustawienie enforced dla tego projektu"
|
|
460
460
|
: "! Polityka enforced: NIE SPRAWDZONO — serwer nie zwraca polityki.";
|
|
461
|
+
if (policy === "legacy")
|
|
462
|
+
problems.push(recoveryStep(ctx, "Poproś obsługę robisie o włączenie trybu enforced dla tego projektu; dopiero wtedy będzie można zamknąć kartę przez odbiór B (accept_review)."));
|
|
461
463
|
}
|
|
462
464
|
finally {
|
|
463
465
|
await client.close().catch(() => undefined);
|
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.6.
|
|
3
|
+
export declare const PACKAGE_VERSION = "0.6.7";
|
|
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.6.
|
|
3
|
+
export const PACKAGE_VERSION = "0.6.7"; // 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/dispatch-scope.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare const SCOPE_DETAILS_KEYS: readonly ["scope"];
|
|
|
7
7
|
/** Ścieżka przed opisem i numerem linii; porównujemy całe segmenty katalogu. */
|
|
8
8
|
export declare function scopePaths(card: CardLike): string[];
|
|
9
9
|
export declare function scopesOverlap(a: readonly string[], b: readonly string[]): boolean;
|
|
10
|
-
/**
|
|
10
|
+
/** Promotion/dispatch collisions concern code, ignoring tests and the generated engine.lock.
|
|
11
|
+
* Write permissions and land diffs stay complete. */
|
|
11
12
|
export declare function collisionScope(scope: readonly string[]): string[];
|
|
12
13
|
/** Dispatch only, normalized paths. ownerChanges: omitted = candidate, array = owner delta, null = unknown IO. */
|
|
13
14
|
export declare function dispatchScope(paths: readonly string[], confirmedTestDirectories: readonly string[], ownerChanges?: readonly string[] | null): string[];
|
package/dist/dispatch-scope.js
CHANGED
|
@@ -11,9 +11,10 @@ export function scopePaths(card) {
|
|
|
11
11
|
export function scopesOverlap(a, b) {
|
|
12
12
|
return a.some(x => b.some(y => x === "." || y === "." || x === y || x.startsWith(`${y}/`) || y.startsWith(`${x}/`)));
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/** Promotion/dispatch collisions concern code, ignoring tests and the generated engine.lock.
|
|
15
|
+
* Write permissions and land diffs stay complete. */
|
|
15
16
|
export function collisionScope(scope) {
|
|
16
|
-
return scope.filter(file => !/(^|\/)(?:__tests__|tests)(?:\/|$)|\.(?:test|spec)\.[^/]+$/.test(file));
|
|
17
|
+
return scope.filter(file => posix.normalize(file).replace(/\/$/, "") !== "packages/client/engine.lock" && !/(^|\/)(?:__tests__|tests)(?:\/|$)|\.(?:test|spec)\.[^/]+$/.test(file));
|
|
17
18
|
}
|
|
18
19
|
/** Dispatch only, normalized paths. ownerChanges: omitted = candidate, array = owner delta, null = unknown IO. */
|
|
19
20
|
export function dispatchScope(paths, confirmedTestDirectories, ownerChanges) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"sha":"
|
|
1
|
+
{"schema":1,"sha":"ecab7848938aefc2798695cefa13f0354f424afe","dirty":false}
|
|
@@ -1692,14 +1692,14 @@
|
|
|
1692
1692
|
"staticOperations": {
|
|
1693
1693
|
"beforePreflight": {
|
|
1694
1694
|
"module": "maszynista/tick.ts",
|
|
1695
|
-
"startLine":
|
|
1696
|
-
"endLine":
|
|
1695
|
+
"startLine": 10272,
|
|
1696
|
+
"endLine": 10385,
|
|
1697
1697
|
"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();"
|
|
1698
1698
|
},
|
|
1699
1699
|
"finalization": {
|
|
1700
1700
|
"module": "maszynista/tick.ts",
|
|
1701
|
-
"startLine":
|
|
1702
|
-
"endLine":
|
|
1701
|
+
"startLine": 10676,
|
|
1702
|
+
"endLine": 10728,
|
|
1703
1703
|
"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] ?? \"\"))) {"
|
|
1704
1704
|
},
|
|
1705
1705
|
"refreshTickReport": {
|
|
@@ -1725,6 +1725,6 @@
|
|
|
1725
1725
|
"status": 0,
|
|
1726
1726
|
"signal": null,
|
|
1727
1727
|
"stdout": "v24.3.0\n",
|
|
1728
|
-
"stderr": "(node:
|
|
1728
|
+
"stderr": "(node:24538) 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"
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
package/dist/engine/tick.cjs
CHANGED
|
@@ -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.6.
|
|
37655
|
+
PACKAGE_VERSION = "0.6.7";
|
|
37656
37656
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37657
37657
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37658
37658
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -48143,7 +48143,7 @@ function scopesOverlap(a, b) {
|
|
|
48143
48143
|
return a.some((x) => b.some((y) => x === "." || y === "." || x === y || x.startsWith(`${y}/`) || y.startsWith(`${x}/`)));
|
|
48144
48144
|
}
|
|
48145
48145
|
function collisionScope(scope) {
|
|
48146
|
-
return scope.filter((file3) => !/(^|\/)(?:__tests__|tests)(?:\/|$)|\.(?:test|spec)\.[^/]+$/.test(file3));
|
|
48146
|
+
return scope.filter((file3) => import_node_path5.posix.normalize(file3).replace(/\/$/, "") !== "packages/client/engine.lock" && !/(^|\/)(?:__tests__|tests)(?:\/|$)|\.(?:test|spec)\.[^/]+$/.test(file3));
|
|
48147
48147
|
}
|
|
48148
48148
|
function dispatchScope(paths, confirmedTestDirectories2, ownerChanges) {
|
|
48149
48149
|
if (ownerChanges !== void 0 && !paths.length) return ["."];
|
|
@@ -49603,6 +49603,8 @@ function reconcileActive(input) {
|
|
|
49603
49603
|
if ("engine" in meta4) stamp2.engine = meta4.engine;
|
|
49604
49604
|
if (fromState.backend) stamp2.backend = fromState.backend;
|
|
49605
49605
|
if (fromState.model) stamp2.model = fromState.model;
|
|
49606
|
+
const provider = fromState.provider ?? meta4.provider;
|
|
49607
|
+
if (nonempty(provider)) stamp2.provider = provider;
|
|
49606
49608
|
if (fromState.opencode) stamp2.opencode = fromState.opencode;
|
|
49607
49609
|
actives.push(active);
|
|
49608
49610
|
adopted.push({ active, stamp: stamp2 });
|
|
@@ -50451,9 +50453,9 @@ var init_lib = __esm({
|
|
|
50451
50453
|
STALL_EXCLUDED_STATUSES = ["ready", "delivered", "done", "draft"];
|
|
50452
50454
|
RULING_VERDICTS = ["UCHYLONE", "PODTRZYMANE"];
|
|
50453
50455
|
RULING_TEXT_FIELDS = ["znalezisko", "powod", "at"];
|
|
50454
|
-
CODEX_DEFAULT_MODEL = "gpt-6-sol";
|
|
50456
|
+
CODEX_DEFAULT_MODEL = "gpt-6.2-sol";
|
|
50455
50457
|
CODEX_DEFAULT_EFFORT = "high";
|
|
50456
|
-
CODEX_STRATEGIC_MODEL = "gpt-6-astra";
|
|
50458
|
+
CODEX_STRATEGIC_MODEL = "gpt-6.2-astra";
|
|
50457
50459
|
EFFORTS = /^(none|minimal|low|medium|high|xhigh)$/;
|
|
50458
50460
|
MODEL_RE = /^[A-Za-z0-9._-]{3,40}$/;
|
|
50459
50461
|
CI_DISK_HOLD_STEP = "Robisie disk HOLD v1";
|
|
@@ -94760,7 +94762,7 @@ function runReview(input) {
|
|
|
94760
94762
|
args.push("--effort", effort);
|
|
94761
94763
|
}
|
|
94762
94764
|
} else {
|
|
94763
|
-
model = policy ? "gpt-6-astra" : "gpt-6-sol";
|
|
94765
|
+
model = policy ? "gpt-6.2-astra" : "gpt-6.2-sol";
|
|
94764
94766
|
effort = solEffort;
|
|
94765
94767
|
if (unknownEffort) fallbackReason = `${fallbackReason ? `${fallbackReason}; ` : ""}effort UNKNOWN: conservative high`;
|
|
94766
94768
|
bin = "codex";
|
|
@@ -323047,6 +323049,12 @@ async function reconcileBoardActives(s, uid, boardCards2, installation = tickIns
|
|
|
323047
323049
|
}
|
|
323048
323050
|
return handled;
|
|
323049
323051
|
}
|
|
323052
|
+
function workerIdentity(meta4, client = engineClient()) {
|
|
323053
|
+
return {
|
|
323054
|
+
...Object.fromEntries(["backend", "model", "engine", "grok", "opencode"].filter((key) => meta4[key] !== void 0).map((key) => [key, meta4[key]])),
|
|
323055
|
+
...typeof meta4.provider === "string" && meta4.provider.trim() ? { provider: meta4.provider } : !client && meta4.backend === "codex" ? { provider: "openai" } : {}
|
|
323056
|
+
};
|
|
323057
|
+
}
|
|
323050
323058
|
async function consumeActive(s, uid, a = s.actives[0], landing = { available: true }, bootAt, installation = tickInstallation) {
|
|
323051
323059
|
if (!a) return false;
|
|
323052
323060
|
const diagnostic = (phase, reason) => {
|
|
@@ -323180,6 +323188,7 @@ async function consumeActive(s, uid, a = s.actives[0], landing = { available: tr
|
|
|
323180
323188
|
engine: metadata.engine,
|
|
323181
323189
|
startedAt: metadata.startedAt
|
|
323182
323190
|
} : {},
|
|
323191
|
+
...engineClient() ? {} : workerIdentity(metadata),
|
|
323183
323192
|
branchLease: metadata.branchLease ?? null,
|
|
323184
323193
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
323185
323194
|
jobId: a.jobId,
|
|
@@ -323540,6 +323549,7 @@ async function consumeActive(s, uid, a = s.actives[0], landing = { available: tr
|
|
|
323540
323549
|
...atCapacity && !openCodeJob ? { codex_model: capacityModel } : {},
|
|
323541
323550
|
maszynista: {
|
|
323542
323551
|
...clientPair ? { clientPair, ...metadata.clientReceiver !== void 0 ? { clientReceiver: metadata.clientReceiver } : {}, backend: metadata.backend, model: metadata.model, engine: metadata.engine, startedAt: metadata.startedAt } : {},
|
|
323552
|
+
...clientPair ? {} : workerIdentity(metadata),
|
|
323543
323553
|
branchLease: metadata.branchLease ?? null,
|
|
323544
323554
|
artifacts: metadata.artifacts ?? null,
|
|
323545
323555
|
input_sha256: metadata.input_sha256 ?? null,
|
|
@@ -323576,6 +323586,8 @@ async function consumeActive(s, uid, a = s.actives[0], landing = { available: tr
|
|
|
323576
323586
|
} : {}
|
|
323577
323587
|
}
|
|
323578
323588
|
};
|
|
323589
|
+
if (!engineClient() && (typeof evidence2.maszynista.provider !== "string" || !evidence2.maszynista.provider.trim()))
|
|
323590
|
+
log2(`ALARM stempel ${card.id}: brak dostawcy Workera`);
|
|
323579
323591
|
const event = await prepareCardEvent(uid, card, "terminal", JSON.stringify([a.jobId, a.attempts]), { key: "maszynista", value: { jobId: a.jobId, attempts: a.attempts, outcome: workerOutcome }, statuses: [move.status === "retry" ? "ready" : move.status, "delivered", "done"] }, evidence2.maszynista);
|
|
323580
323592
|
if (!DRY2) await appendBoundedDetail(uid, a.taskId, evidence2);
|
|
323581
323593
|
card.details = { ...card.details, ...evidence2 };
|
|
@@ -325911,6 +325923,7 @@ TMPDIR tej pr\xF3by: ${localArtifacts.tmpdir}. Kopie tw\xF3rz przez mktemp -d "$
|
|
|
325911
325923
|
engine: { model: job.model, effort: clientConfig || job.backend === "codex" ? engine.effort : "n/a", note: job.backend === "codex" ? engine.note : null },
|
|
325912
325924
|
backend: job.backend,
|
|
325913
325925
|
model: job.model,
|
|
325926
|
+
...!clientConfig && job.backend === "codex" ? { provider: "openai" } : {},
|
|
325914
325927
|
...job.grok ? { grok: job.grok, provider: "xai" } : {},
|
|
325915
325928
|
...asRecord3(c.details?.maszynista).grokStartFallback ? { grokStartFallback: {
|
|
325916
325929
|
reason: asRecord3(asRecord3(c.details?.maszynista).grokStartFallback).reason,
|
|
@@ -327713,6 +327726,7 @@ async function dispatchNext(s, uid, projectId2, diskDependencies, cards = /* @__
|
|
|
327713
327726
|
worktree: worker.worktree,
|
|
327714
327727
|
branch: worker.branch
|
|
327715
327728
|
} : {},
|
|
327729
|
+
...engineClient() ? {} : workerIdentity(worker),
|
|
327716
327730
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
327717
327731
|
verdict: "human",
|
|
327718
327732
|
reason: verdict.reason,
|
|
@@ -805,12 +805,14 @@ try {
|
|
|
805
805
|
const unitEnv = Object.entries({ ...(host ? Object.fromEntries(Object.entries(env).filter(([key]) => /^HU_(?:HOME|MODE|LASTTICK|SK|REPO|APP|PLIST|CHECKOUT|LOG|STATE|NPM|ALARM)$/.test(key))) : {}), HOME: ctx.home, PATH: ctx.env.PATH, CODEX_HOME: ctx.env.CODEX_HOME, XDG_CONFIG_HOME: ctx.env.XDG_CONFIG_HOME })
|
|
806
806
|
.filter((entry) => entry[1] !== undefined);
|
|
807
807
|
let hostUpdateUnit;
|
|
808
|
+
if (ctx.platform === 'linux' && (!isAbsolute(ctx.cwd) || /[\n\r]/.test(ctx.cwd)))
|
|
809
|
+
refuse('WorkingDirectory wymaga absolutnej ścieżki bez LF i CR.');
|
|
808
810
|
for (const [name, args] of [['factory', factoryArgs], ['update', updateArgs]]) {
|
|
809
811
|
if (host && name === 'factory')
|
|
810
812
|
continue;
|
|
811
813
|
if (ctx.platform === 'linux') {
|
|
812
814
|
// Tick and update own their deadlines, including the separate rollback health window.
|
|
813
|
-
writeManaged(join(unitDir, `robisie-${name}.service`), `# robisie:update-managed\n[Unit]\nDescription=robisie ${name}\n[Service]\nType=oneshot\nTimeoutStartSec=infinity\n${unitEnv.map(([key, value]) => `Environment=${systemArg(`${key}=${value}`)}\n`).join('')}WorkingDirectory=${
|
|
815
|
+
writeManaged(join(unitDir, `robisie-${name}.service`), `# robisie:update-managed\n[Unit]\nDescription=robisie ${name}\n[Service]\nType=oneshot\nTimeoutStartSec=infinity\n${unitEnv.map(([key, value]) => `Environment=${systemArg(`${key}=${value}`)}\n`).join('')}WorkingDirectory=${ctx.cwd.replace(/%/g, '%%')}\nExecStart=${[runtime.node, launcher, ...args].map(arg => systemArg(arg, true)).join(' ')}\n`);
|
|
814
816
|
writeManaged(join(unitDir, `robisie-${name}.timer`), `# robisie:update-managed\n[Unit]\nDescription=robisie ${name}\n[Timer]\nOnBootSec=120s\nOnUnitInactiveSec=120s\nUnit=robisie-${name}.service\n[Install]\nWantedBy=timers.target\n`);
|
|
815
817
|
}
|
|
816
818
|
else {
|
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.6.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.6.7 \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.6.
|
|
1
|
+
# robisie — from account to accepted card (package 0.6.7) <!-- 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
|
|
|
@@ -594,7 +594,7 @@ Once the tgz and selected copies are ready, update. After login, init and doctor
|
|
|
594
594
|
|
|
595
595
|
The normal update is `npx robisie update` (host: add `--engine-config /absolute/path/robisie.config.json`). The first interactive invocation visibly asks for consent and saves `update={consentedAt, enabled:true}` while preserving other configuration fields. Without consent or with `enabled:false`, background invocations exit 0 without changes. After consent, launchd `com.robisie.update` or `robisie-update.timer` runs the same command every 120 seconds; factory runs `factory run --once` on its own 120-second timer. The package prepares an exact npm version in a separate directory, verifies its build-id and integrity, then switches its private current pointer. Health requires two distinct fresh OK ticks with the expected loaded build-id within 1200 seconds (polling every 20 seconds). Failure starts a separate 1200-second health window for the previous version; both confirmed and unconfirmed rollback exit nonzero. New work prevents switching or rollback. On the macOS host, the same command updates the package without board or DB access. It preserves the existing `com.robisie.maszynista` label, environment, logs and interval; it does not create a second factory clock. A fresh LAST-TICK with running Workers or an unknown execution count defers the switch. A private byte-for-byte mode backup and its SHA-256 protect the activation HOLD (`off`); the original mode must be restored with a matching hash. Failure restores the old service and package under the tick lock; real new work prevents an unsafe rollback and raises an alarm. After releasing HOLD, update observes the checkout for up to 480 seconds; the existing pinned activator performs the FF. Read the private audit and attempts in `<stateDir>/update/`; a failed preparation also records the version. To retry only after resolving the cause, remove that version’s one line from `attempts.jsonl`. Deferral is not a failed attempt; after 7200 seconds it records one alarm. `AUTO-UPDATE.off` in `HU_HOME` or the canonical host configuration directory stops host updates. The shared `auto-update.lock.d` and legacy `auto-update.state` also exclude the old updater; before a justified retry, reconcile both attempt registries. Host notifications use the existing CEO inbox and CTO surface; missing delivery is recorded in the audit. Keep the private backup and separate archive restore below. Restart the assistant after roles refresh.
|
|
596
596
|
|
|
597
|
-
For the first upgrade from robisie ≤0.5.48, run `npm install robisie@latest` manually in the installation, then `npx robisie update` (on the host, include its `--engine-config`). Later upgrades use the same update command. Live host activation and retirement of the old updater require separate operator acceptance.
|
|
597
|
+
For the first upgrade from robisie ≤0.5.48, or on Linux with systemd also from robisie ≤0.6.4 (the older updater writes units that systemd rejects), run `npm install robisie@latest` manually in the installation, then `npx robisie update` (on the host, include its `--engine-config`). Later upgrades use the same update command. Live host activation and retirement of the old updater require separate operator acceptance.
|
|
598
598
|
|
|
599
599
|
The update needs Node.js 24 or newer on the PATH of the shell that runs the command and of the service; check `node -v` and `command -v node`, because an older Node on the PATH ends the command with a version message.
|
|
600
600
|
|
package/docs/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — od konta do odebranej karty (paczka 0.6.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.6.7) <!-- 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
|
|
|
@@ -642,7 +642,7 @@ Kopia i odtworzenie obejmują oba pliki key i review-key z prywatnymi uprawnieni
|
|
|
642
642
|
|
|
643
643
|
Zwykła aktualizacja to `npx robisie update` (host: dodaj `--engine-config /absolutna/sciezka/robisie.config.json`). Pierwsze interaktywne wywołanie pyta jawnie o zgodę i zapisuje `update={consentedAt, enabled:true}`, zachowując pozostałe pola konfiguracji. Bez zgody lub przy `enabled:false` wywołanie w tle kończy się kodem 0 bez zmian. Po zgodzie launchd `com.robisie.update` albo `robisie-update.timer` uruchamia tę samą komendę co 120 sekund; fabryka wykonuje `factory run --once` na osobnym cyklu 120 sekund. Paczka przygotowuje dokładną wersję npm w osobnym katalogu, sprawdza build-id i integralność, potem wymienia prywatny wskaźnik current. Zdrowie wymaga dwóch różnych świeżych taktów OK z loaded oczekiwanego build-id w 1200 sekund, odczytywanych co 20 sekund. Przy błędzie powrót ma osobne okno 1200 sekund dla starego wydania; zarówno potwierdzony, jak i niepotwierdzony powrót ma kod niezerowy. Nowa praca blokuje przełączenie lub powrót. Na hoście macOS ta sama komenda aktualizuje paczkę bez dostępu do tablicy i DB. Zachowuje istniejący label `com.robisie.maszynista`, środowisko, logi i interwał; nie tworzy drugiego zegara fabryki. Świeży LAST-TICK z pracującym Workerem albo nieznanym licznikiem wykonań odracza switch. Prywatna kopia bajtów mode i jej SHA-256 chronią HOLD aktywacji (`off`); oryginalny mode musi wrócić ze zgodnym hashem. Awaria odtwarza starą usługę i paczkę pod blokadą taktu; nowa rzeczywista praca powstrzymuje niebezpieczny powrót i wywołuje alarm. Po zdjęciu HOLD update obserwuje checkout do 480 sekund; FF wykonuje istniejący pinned aktywator. Prywatny audyt i próby znajdziesz w `<stateDir>/update/`; błąd przygotowania też zapisuje wersję. Aby ponowić po wyjaśnieniu przyczyny, usuń jedną linię tej wersji z `attempts.jsonl`. Odroczenie nie oznacza nieudanej próby; po 7200 sekund zapisuje jeden alarm. `AUTO-UPDATE.off` w HU_HOME albo katalogu kanonicznego configu hosta zatrzymuje hostowe aktualizacje. Wspólne `auto-update.lock.d` i legacy `auto-update.state` wykluczają też stary aktualizator; przed uzasadnionym ponowieniem rozlicz oba rejestry prób. Powiadomienia hosta korzystają z istniejącej skrzynki CEO i adresu CTO; brak dostawy trafia do audytu. Zachowaj prywatną kopię i osobny awaryjny restore archiwum. Po odświeżeniu ról uruchom ponownie asystenta.
|
|
644
644
|
|
|
645
|
-
Pierwsze przejście z robisie ≤0.5.48 wykonaj ręcznie: `npm install robisie@latest` w instalacji, potem `npx robisie update` (na hoście z jego `--engine-config`). Kolejne wydania obsługuje ta sama komenda update. Aktywacja żywego hosta i wyłączenie starego aktualizatora wymagają osobnego odbioru operatora.
|
|
645
|
+
Pierwsze przejście z robisie ≤0.5.48, a na Linuxie z systemd także z robisie ≤0.6.4 (starszy aktualizator zapisuje jednostki nieprzyjmowane przez systemd), wykonaj ręcznie: `npm install robisie@latest` w instalacji, potem `npx robisie update` (na hoście z jego `--engine-config`). Kolejne wydania obsługuje ta sama komenda update. Aktywacja żywego hosta i wyłączenie starego aktualizatora wymagają osobnego odbioru operatora.
|
|
646
646
|
|
|
647
647
|
Aktualizacja wymaga Node.js 24 lub nowszego na PATH powłoki, w której uruchamiasz komendę, i usługi; sprawdź `node -v` i `command -v node`, bo starszy Node na PATH kończy komendę komunikatem o wersji.
|
|
648
648
|
|
package/package.json
CHANGED