robisie 0.4.2 → 0.4.4
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 +14 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/engine/build-id.json +1 -0
- package/dist/engine/bundle-report.json +1 -1
- package/dist/engine/tick.cjs +42 -12
- 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,19 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.4](https://github.com/chuppa12/robisie-app/compare/client-v0.4.3...client-v0.4.4) (2026-11-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **client:** odbiorca lokalny czeka zamiast blokować (brak źródła dowodów = WAIT) ([1a4d214](https://github.com/chuppa12/robisie-app/commit/1a4d2142dd1e95a21532a83854c027d6d8ab6410))
|
|
9
|
+
|
|
10
|
+
## [0.4.3](https://github.com/chuppa12/robisie-app/compare/client-v0.4.2...client-v0.4.3) (2026-11-10)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **client:** tożsamość loaded silnika z paczki (stempel budowy build-id.json) ([ddf0599](https://github.com/chuppa12/robisie-app/commit/ddf05995fb4ac2b7807e99a5d3770279499bda77))
|
|
16
|
+
|
|
3
17
|
## [0.4.2](https://github.com/chuppa12/robisie-app/compare/client-v0.4.1...client-v0.4.2) (2026-11-10)
|
|
4
18
|
|
|
5
19
|
|
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.4";
|
|
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.4"; // 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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"schema":1,"sha":"3f0ddffed366378eb3c3f7a5152d5cf7f0d487c2","dirty":false}
|
|
@@ -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:14545) 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.4";
|
|
37632
37632
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37633
37633
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37634
37634
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -53396,6 +53396,10 @@ function finishTickState(state, outcome, tick, at3, facts = {}) {
|
|
|
53396
53396
|
}
|
|
53397
53397
|
function readLoadedSha(repo, git2 = quietGit) {
|
|
53398
53398
|
try {
|
|
53399
|
+
if (isStandaloneFile(__filename)) {
|
|
53400
|
+
const id2 = record6(JSON.parse((0, import_node_fs11.readFileSync)(import_node_path13.default.join(repo, "engine", "build-id.json"), "utf8")));
|
|
53401
|
+
return id2.schema === 1 && typeof id2.sha === "string" && /^[a-f0-9]{40}$/.test(id2.sha) && typeof id2.dirty === "boolean" ? `${id2.sha}${id2.dirty ? "+dirty" : ""}` : "UNKNOWN";
|
|
53402
|
+
}
|
|
53399
53403
|
const head = git2(["rev-parse", "HEAD"], repo);
|
|
53400
53404
|
const dirty = git2(["status", "--porcelain", "-z", "--", ":(glob)maszynista/*.ts", "services", "src/lib"], repo);
|
|
53401
53405
|
return `${head}${codeDirtyPaths(dirty).length ? "+dirty" : ""}`;
|
|
@@ -54146,6 +54150,7 @@ var init_host_activation = __esm({
|
|
|
54146
54150
|
import_node_path13 = __toESM(require("node:path"));
|
|
54147
54151
|
init_lib();
|
|
54148
54152
|
init_service_reload();
|
|
54153
|
+
init_engine_standalone();
|
|
54149
54154
|
STATE_FILE = "host-activation.json";
|
|
54150
54155
|
MODE_FILE = "HOST-ACTIVATION.mode";
|
|
54151
54156
|
BREAKER_WINDOW_TICKS = 3;
|
|
@@ -77292,6 +77297,7 @@ __export2(local_receiver_exports, {
|
|
|
77292
77297
|
localReceiverPatch: () => localReceiverPatch,
|
|
77293
77298
|
localReceiverPid: () => localReceiverPid,
|
|
77294
77299
|
localReceiverSchema: () => localReceiverSchema,
|
|
77300
|
+
localReceiverWaitUnchanged: () => localReceiverWaitUnchanged,
|
|
77295
77301
|
localUsageEvents: () => localUsageEvents,
|
|
77296
77302
|
readLocalReceiverJob: () => readLocalReceiverJob,
|
|
77297
77303
|
runLocalReceiverJob: () => runLocalReceiverJob,
|
|
@@ -77317,7 +77323,7 @@ function localEffectCheck(card) {
|
|
|
77317
77323
|
return c;
|
|
77318
77324
|
}
|
|
77319
77325
|
function localUsageEvents(root, card, c, readAt) {
|
|
77320
|
-
return
|
|
77326
|
+
return localUsageEvidence(root, card, c, readAt).events;
|
|
77321
77327
|
}
|
|
77322
77328
|
function authors(card) {
|
|
77323
77329
|
const declared = record10(record10(card.details?.seed_provenance).authoring_providers);
|
|
@@ -77353,7 +77359,7 @@ function localReceiverInput(ctx, card, readAt = (/* @__PURE__ */ new Date()).toI
|
|
|
77353
77359
|
reportSha256,
|
|
77354
77360
|
authors: proof,
|
|
77355
77361
|
contract,
|
|
77356
|
-
|
|
77362
|
+
...localUsageEvidence(ctx.evidenceDir, card, contract, readAt),
|
|
77357
77363
|
readAt
|
|
77358
77364
|
};
|
|
77359
77365
|
return structuredClone({ card, prepared });
|
|
@@ -77386,7 +77392,7 @@ function completion(dir, claim, response, timestamp3, stop = "") {
|
|
|
77386
77392
|
if (!reason && p) {
|
|
77387
77393
|
if (p.events.length < p.contract.min) {
|
|
77388
77394
|
outcome = Date.parse(p.readAt) < Date.parse(p.contract.deadline) ? "WAIT" : "STOP";
|
|
77389
|
-
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" : ""}`;
|
|
77390
77396
|
} else {
|
|
77391
77397
|
const raw = record10(response), invocation = record10(raw.invocation), model = text6.parse(invocation.actualModel);
|
|
77392
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");
|
|
@@ -77692,6 +77698,29 @@ function runLocalReceiverJob(dir, run) {
|
|
|
77692
77698
|
failed(dir, `IO receivera: ${failure2(error48)}; zachowano pliki do rozliczenia`);
|
|
77693
77699
|
}
|
|
77694
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
|
+
}
|
|
77695
77724
|
var import_node_crypto14, import_node_fs23, import_node_path26, import_node_util6, text6, at2, contractSchema, record10, digest4, json5, hash6, failure2, answerSchema, localReceiverSchema;
|
|
77696
77725
|
var init_local_receiver = __esm({
|
|
77697
77726
|
"maszynista/local-receiver.ts"() {
|
|
@@ -111072,7 +111101,7 @@ ${lanes.join("\n")}
|
|
|
111072
111101
|
return process.memoryUsage().heapUsed;
|
|
111073
111102
|
},
|
|
111074
111103
|
getFileSize(path34) {
|
|
111075
|
-
const stat =
|
|
111104
|
+
const stat = statSync5(path34);
|
|
111076
111105
|
if (stat == null ? void 0 : stat.isFile()) {
|
|
111077
111106
|
return stat.size;
|
|
111078
111107
|
}
|
|
@@ -111116,7 +111145,7 @@ ${lanes.join("\n")}
|
|
|
111116
111145
|
}
|
|
111117
111146
|
};
|
|
111118
111147
|
return nodeSystem;
|
|
111119
|
-
function
|
|
111148
|
+
function statSync5(path34) {
|
|
111120
111149
|
try {
|
|
111121
111150
|
return _fs.statSync(path34, statSyncOptions);
|
|
111122
111151
|
} catch {
|
|
@@ -111175,7 +111204,7 @@ ${lanes.join("\n")}
|
|
|
111175
111204
|
activeSession.post("Profiler.stop", (err, { profile }) => {
|
|
111176
111205
|
var _a2;
|
|
111177
111206
|
if (!err) {
|
|
111178
|
-
if ((_a2 =
|
|
111207
|
+
if ((_a2 = statSync5(profilePath)) == null ? void 0 : _a2.isDirectory()) {
|
|
111179
111208
|
profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
|
|
111180
111209
|
}
|
|
111181
111210
|
try {
|
|
@@ -111295,7 +111324,7 @@ ${lanes.join("\n")}
|
|
|
111295
111324
|
let stat;
|
|
111296
111325
|
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
|
111297
111326
|
const name3 = combinePaths(path34, entry2);
|
|
111298
|
-
stat =
|
|
111327
|
+
stat = statSync5(name3);
|
|
111299
111328
|
if (!stat) {
|
|
111300
111329
|
continue;
|
|
111301
111330
|
}
|
|
@@ -111319,7 +111348,7 @@ ${lanes.join("\n")}
|
|
|
111319
111348
|
return matchFiles(path34, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath2);
|
|
111320
111349
|
}
|
|
111321
111350
|
function fileSystemEntryExists(path34, entryKind) {
|
|
111322
|
-
const stat =
|
|
111351
|
+
const stat = statSync5(path34);
|
|
111323
111352
|
if (!stat) {
|
|
111324
111353
|
return false;
|
|
111325
111354
|
}
|
|
@@ -111361,7 +111390,7 @@ ${lanes.join("\n")}
|
|
|
111361
111390
|
}
|
|
111362
111391
|
function getModifiedTime3(path34) {
|
|
111363
111392
|
var _a2;
|
|
111364
|
-
return (_a2 =
|
|
111393
|
+
return (_a2 = statSync5(path34)) == null ? void 0 : _a2.mtime;
|
|
111365
111394
|
}
|
|
111366
111395
|
function setModifiedTime(path34, time5) {
|
|
111367
111396
|
try {
|
|
@@ -320432,6 +320461,7 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
|
|
|
320432
320461
|
continue;
|
|
320433
320462
|
}
|
|
320434
320463
|
}
|
|
320464
|
+
if (receiver.localReceiverWaitUnchanged(installation.localReceiver, card)) continue;
|
|
320435
320465
|
const input = receiver.localReceiverInput(installation.localReceiver, card);
|
|
320436
320466
|
if (!processSlot(s)) return false;
|
|
320437
320467
|
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.4 \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.4) <!-- 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.4) <!-- 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