@ricsam/r5d-worker 0.0.159 → 0.0.161
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/dist/cjs/package.json
CHANGED
|
@@ -20605,7 +20605,7 @@ function resolveEntrypointPath(entrypoint) {
|
|
|
20605
20605
|
}
|
|
20606
20606
|
}
|
|
20607
20607
|
function getR5dctlVersion() {
|
|
20608
|
-
if (true) return "0.0.
|
|
20608
|
+
if (true) return "0.0.161";
|
|
20609
20609
|
const entrypoint = process.argv[1] ? resolveEntrypointPath(process.argv[1]) : null;
|
|
20610
20610
|
let current = entrypoint ? import_node_path2.default.dirname(entrypoint) : process.cwd();
|
|
20611
20611
|
for (let index = 0; index < 12; index += 1) {
|
package/dist/mjs/main.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { startManagerRpc } from "./runtime/releases/rpc-main.mjs";
|
|
|
7
7
|
import { ManagerRpcConfig } from "./runtime/releases/rpc-protocol.mjs";
|
|
8
8
|
const args = process.argv.slice(2);
|
|
9
9
|
if (args.includes("--version")) {
|
|
10
|
-
console.log(`r5d-worker ${true ? "0.0.
|
|
10
|
+
console.log(`r5d-worker ${true ? "0.0.161" : "development"}`);
|
|
11
11
|
} else if (!args.length || args.includes("--help")) {
|
|
12
12
|
console.log(
|
|
13
13
|
"Usage: r5d-worker start --label <label> [--root <dir>] [--base-url <url>] [--token <worker-token>]\n r5d-worker executor /absolute/private/config.json\n r5d-worker manager /absolute/private/config.json\n\nRun independently supervised durable runtime services. Provision configuration with r5dinfra."
|
|
@@ -15,7 +15,7 @@ if (args.includes("--version")) {
|
|
|
15
15
|
} else if (args[0] === "start") {
|
|
16
16
|
const runtime = await startPersonalWorker(
|
|
17
17
|
parsePersonalWorkerOptions(args.slice(1)),
|
|
18
|
-
true ? "0.0.
|
|
18
|
+
true ? "0.0.161" : "development"
|
|
19
19
|
);
|
|
20
20
|
console.log(`Worker connected: ${runtime.resourceId}`);
|
|
21
21
|
let closing = false;
|
package/dist/mjs/package.json
CHANGED
|
@@ -291,9 +291,12 @@ exec ${quote(executable)} ${quote(cli)} "$@"
|
|
|
291
291
|
const fingerprint = canonicalJson({ code, startingHead, outcome });
|
|
292
292
|
let attempt = failedPublicationAttempts.get(workbenchId);
|
|
293
293
|
if (!attempt || attempt.fingerprint !== fingerprint) {
|
|
294
|
-
attempt = { fingerprint, attemptId: randomUUID() };
|
|
294
|
+
attempt = { fingerprint, attemptId: randomUUID(), observations: 1 };
|
|
295
295
|
failedPublicationAttempts.set(workbenchId, attempt);
|
|
296
|
+
} else {
|
|
297
|
+
attempt.observations++;
|
|
296
298
|
}
|
|
299
|
+
if (code === "unsafe_file" && attempt.observations < 2) continue;
|
|
297
300
|
try {
|
|
298
301
|
await options.publicationReport(WorkspacePublicationReport.parse({
|
|
299
302
|
protocol: 1,
|
|
@@ -254,6 +254,18 @@ async function materializeTree(repo, destination, entries, limit, message) {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
async function snapshotTree(repo, cwd, canonicalHead, maxBytes = 128 * 1024 * 1024) {
|
|
257
|
+
const exposedRootDependencies = await git(repo, [
|
|
258
|
+
`--work-tree=${cwd}`,
|
|
259
|
+
"ls-files",
|
|
260
|
+
"--others",
|
|
261
|
+
"--exclude-standard",
|
|
262
|
+
"--directory",
|
|
263
|
+
"-z",
|
|
264
|
+
"--",
|
|
265
|
+
":(glob)**/node_modules/**"
|
|
266
|
+
]);
|
|
267
|
+
if (exposedRootDependencies.length)
|
|
268
|
+
throw new WorkspaceError("too_large", "An unignored dependency tree exceeds the automatic publication limit");
|
|
257
269
|
const metadata = path.join(cwd, ".git");
|
|
258
270
|
let workbenchIndex = null;
|
|
259
271
|
if (await fs.lstat(metadata).then(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ricsam/r5d-worker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.161",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/mjs/main.mjs",
|
|
6
6
|
"module": "./dist/mjs/main.mjs",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"r5d-worker": "dist/mjs/main.mjs"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ricsam/r5d-api": "^0.0.
|
|
24
|
+
"@ricsam/r5d-api": "^0.0.161",
|
|
25
25
|
"node-pty": "1.1.0",
|
|
26
26
|
"zod": "^4.1.13",
|
|
27
27
|
"picomatch": "^4.0.3"
|