robisie 0.7.0 → 0.7.1
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 +7 -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 +9 -6
- 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,12 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.1](https://github.com/chuppa12/robisie-app/compare/client-v0.7.0...client-v0.7.1) (2026-11-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **maszynista:** świeża karta human u klienta nie zatrzymuje dispatchu wszystkich kart (stempel bez undefined) ([305f66c](https://github.com/chuppa12/robisie-app/commit/305f66c4cd24f9923317b3ab12f9e2e52e940616))
|
|
9
|
+
|
|
3
10
|
## [0.7.0](https://github.com/chuppa12/robisie-app/compare/client-v0.6.15...client-v0.7.0) (2026-11-20)
|
|
4
11
|
|
|
5
12
|
|
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.7.
|
|
3
|
+
export declare const PACKAGE_VERSION = "0.7.1";
|
|
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.7.
|
|
3
|
+
export const PACKAGE_VERSION = "0.7.1"; // 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":"bfd296712a2dc216f11ab22121421d1f22f2e2d9","dirty":false}
|
|
@@ -1704,14 +1704,14 @@
|
|
|
1704
1704
|
"staticOperations": {
|
|
1705
1705
|
"beforePreflight": {
|
|
1706
1706
|
"module": "maszynista/tick.ts",
|
|
1707
|
-
"startLine":
|
|
1708
|
-
"endLine":
|
|
1707
|
+
"startLine": 10290,
|
|
1708
|
+
"endLine": 10403,
|
|
1709
1709
|
"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();"
|
|
1710
1710
|
},
|
|
1711
1711
|
"finalization": {
|
|
1712
1712
|
"module": "maszynista/tick.ts",
|
|
1713
|
-
"startLine":
|
|
1714
|
-
"endLine":
|
|
1713
|
+
"startLine": 10694,
|
|
1714
|
+
"endLine": 10746,
|
|
1715
1715
|
"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] ?? \"\"))) {"
|
|
1716
1716
|
},
|
|
1717
1717
|
"refreshTickReport": {
|
|
@@ -1737,6 +1737,6 @@
|
|
|
1737
1737
|
"status": 0,
|
|
1738
1738
|
"signal": null,
|
|
1739
1739
|
"stdout": "v24.3.0\n",
|
|
1740
|
-
"stderr": "(node:
|
|
1740
|
+
"stderr": "(node:24450) 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"
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
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.7.
|
|
37655
|
+
PACKAGE_VERSION = "0.7.1";
|
|
37656
37656
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37657
37657
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37658
37658
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -323178,7 +323178,7 @@ async function reconcileBoardActives(s, uid, boardCards2, installation = tickIns
|
|
|
323178
323178
|
const worker = asRecord3(boardCards2.find((card) => card.id === active.taskId)?.details?.maszynista);
|
|
323179
323179
|
await appendBoundedDetail(uid, active.taskId, { maszynista: {
|
|
323180
323180
|
...stamp2,
|
|
323181
|
-
...engineClient() ? { clientPair: worker.clientPair, ...worker.clientReceiver !== void 0 ? { clientReceiver: worker.clientReceiver } : {}, startedAt: worker.startedAt } : {},
|
|
323181
|
+
...engineClient() ? definedOnly({ clientPair: worker.clientPair, ...worker.clientReceiver !== void 0 ? { clientReceiver: worker.clientReceiver } : {}, startedAt: worker.startedAt }) : {},
|
|
323182
323182
|
artifacts
|
|
323183
323183
|
} });
|
|
323184
323184
|
} catch (err) {
|
|
@@ -323207,6 +323207,9 @@ function workerIdentity(meta4, client = engineClient()) {
|
|
|
323207
323207
|
...typeof meta4.provider === "string" && meta4.provider.trim() ? { provider: meta4.provider } : !client && meta4.backend === "codex" ? { provider: "openai" } : {}
|
|
323208
323208
|
};
|
|
323209
323209
|
}
|
|
323210
|
+
function definedOnly(record20) {
|
|
323211
|
+
return Object.fromEntries(Object.entries(record20).filter(([, value]) => value !== void 0));
|
|
323212
|
+
}
|
|
323210
323213
|
function hasCompoundLearningLine(report) {
|
|
323211
323214
|
return /^[ \t]*(?:[-*][ \t]*)?compound_learning:[ \t]*(?:zero|one|attempted_unavailable)\.?[ \t]*$/im.test(report);
|
|
323212
323215
|
}
|
|
@@ -323335,14 +323338,14 @@ async function consumeActive(s, uid, a = s.actives[0], landing = { available: tr
|
|
|
323335
323338
|
if (decision.action === "recover_to_review") {
|
|
323336
323339
|
const evidence3 = {
|
|
323337
323340
|
maszynista: {
|
|
323338
|
-
...engineClient() ? {
|
|
323341
|
+
...engineClient() ? definedOnly({
|
|
323339
323342
|
clientPair: metadata.clientPair,
|
|
323340
323343
|
...metadata.clientReceiver !== void 0 ? { clientReceiver: metadata.clientReceiver } : {},
|
|
323341
323344
|
backend: metadata.backend,
|
|
323342
323345
|
model: metadata.model,
|
|
323343
323346
|
engine: metadata.engine,
|
|
323344
323347
|
startedAt: metadata.startedAt
|
|
323345
|
-
} : {},
|
|
323348
|
+
}) : {},
|
|
323346
323349
|
...engineClient() ? {} : workerIdentity(metadata),
|
|
323347
323350
|
branchLease: metadata.branchLease ?? null,
|
|
323348
323351
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -327869,7 +327872,7 @@ async function dispatchNext(s, uid, projectId2, diskDependencies, cards = /* @__
|
|
|
327869
327872
|
if (!DRY2) {
|
|
327870
327873
|
const worker = asRecord3(c.details?.maszynista);
|
|
327871
327874
|
await appendBoundedDetail(uid, c.id, { maszynista: {
|
|
327872
|
-
...engineClient() ? {
|
|
327875
|
+
...engineClient() ? definedOnly({
|
|
327873
327876
|
clientPair: worker.clientPair,
|
|
327874
327877
|
...worker.clientReceiver !== void 0 ? { clientReceiver: worker.clientReceiver } : {},
|
|
327875
327878
|
backend: worker.backend,
|
|
@@ -327880,7 +327883,7 @@ async function dispatchNext(s, uid, projectId2, diskDependencies, cards = /* @__
|
|
|
327880
327883
|
attempts: worker.attempts,
|
|
327881
327884
|
worktree: worker.worktree,
|
|
327882
327885
|
branch: worker.branch
|
|
327883
|
-
} : {},
|
|
327886
|
+
}) : {},
|
|
327884
327887
|
...engineClient() ? {} : workerIdentity(worker),
|
|
327885
327888
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
327886
327889
|
verdict: "human",
|
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.7.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.7.1 \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.7.
|
|
1
|
+
# robisie — from account to accepted card (package 0.7.1) <!-- 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.7.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.7.1) <!-- 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