jules-orchestrator-kit 0.23.0 → 1.0.0
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/README.md +143 -255
- package/bin/agentctl.mjs +3 -3
- package/bin/init.js +2 -3
- package/index.mjs +3 -1
- package/package.json +9 -14
- package/scripts/jules-queue-runner.mjs +3 -22
- package/scripts/utils.mjs +65 -0
- package/src/engine.mjs +93 -17
- package/src/envelope.mjs +3 -3
- package/src/flaky-ledger.mjs +0 -2
- package/src/git.mjs +1 -6
- package/src/mcp.mjs +1 -1
- package/src/merge-verify.mjs +7 -7
- package/src/state.mjs +4 -2
- package/src/telemetry.mjs +55 -19
- package/.agent/jules-queue/README.md +0 -30
- package/.agent/jules.yml +0 -13
- package/.env.example +0 -73
- package/.github/workflows/jules-audit.yml +0 -49
- package/scripts/jules-cleanup.mjs +0 -49
- package/scripts/jules-swarm.mjs +0 -38
- package/scripts/lock-manager.mjs +0 -22
package/scripts/jules-swarm.mjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Backward compatibility shim for jules-swarm.mjs in v0.9.0.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
8
|
-
import { join } from "node:path";
|
|
9
|
-
|
|
10
|
-
export function buildSyncManifest(tasks = []) {
|
|
11
|
-
const reservations = tasks.map((t) => ({ id: t.id, title: t.title, scope: t.scope }));
|
|
12
|
-
return {
|
|
13
|
-
version: 1,
|
|
14
|
-
totalTasks: tasks.length,
|
|
15
|
-
reservations,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export async function pushReservationManifest(manifest, projectRoot = process.cwd()) {
|
|
20
|
-
const isDry = process.env.JULES_DRY_RUN === "true" || process.env.JULES_DRY_RUN === "1";
|
|
21
|
-
const isRemote = process.env.JULES_SWARM_REMOTE_PUSH === "true";
|
|
22
|
-
|
|
23
|
-
const agentDir = join(projectRoot, ".agent");
|
|
24
|
-
if (!existsSync(agentDir)) {
|
|
25
|
-
try { mkdirSync(agentDir, { recursive: true }); } catch (_) {}
|
|
26
|
-
}
|
|
27
|
-
const manifestPath = join(agentDir, "sync-manifest.json");
|
|
28
|
-
try { writeFileSync(manifestPath, JSON.stringify(manifest, null, 2), "utf-8"); } catch (_) {}
|
|
29
|
-
|
|
30
|
-
if (isDry) return { status: "DRY_RUN", path: manifestPath };
|
|
31
|
-
if (isRemote) return { status: "PUSHED", path: manifestPath };
|
|
32
|
-
return { status: "SAVED_LOCAL", path: manifestPath };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (process.argv[1] && process.argv[1].endsWith("jules-swarm.mjs")) {
|
|
36
|
-
console.log("[Shim] Running swarm via engine.run()...");
|
|
37
|
-
process.exit(0);
|
|
38
|
-
}
|
package/scripts/lock-manager.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backward compatibility shim for lock-manager.mjs in v0.9.0.
|
|
3
|
-
* Delegates to src/state.mjs.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { acquireLock, releaseLock, lockStatus } from "../src/state.mjs";
|
|
7
|
-
|
|
8
|
-
export function acquire(agent, taskId, filePaths = [], opts = {}) {
|
|
9
|
-
return acquireLock(agent, taskId, filePaths, opts);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function release(agent, taskId, opts = {}) {
|
|
13
|
-
return releaseLock(agent, taskId, opts);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function status(opts = {}) {
|
|
17
|
-
return lockStatus(opts);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function cleanup() {
|
|
21
|
-
return { removed: 0 };
|
|
22
|
-
}
|