robisie 0.4.3 → 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 +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 +1 -1
- package/dist/engine/tick.cjs +37 -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,12 @@
|
|
|
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
|
+
|
|
3
10
|
## [0.4.3](https://github.com/chuppa12/robisie-app/compare/client-v0.4.2...client-v0.4.3) (2026-11-10)
|
|
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.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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"sha":"
|
|
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";
|
|
@@ -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 {
|
|
@@ -320437,6 +320461,7 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
|
|
|
320437
320461
|
continue;
|
|
320438
320462
|
}
|
|
320439
320463
|
}
|
|
320464
|
+
if (receiver.localReceiverWaitUnchanged(installation.localReceiver, card)) continue;
|
|
320440
320465
|
const input = receiver.localReceiverInput(installation.localReceiver, card);
|
|
320441
320466
|
if (!processSlot(s)) return false;
|
|
320442
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