overlord-cli 0.2611261141.0 → 0.2611271353.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/dist/connectors/adapters/antigravity/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/claude/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/codex/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/codex-app-server/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/cursor/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
- package/dist/index.js +167 -11
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46599,6 +46599,42 @@ var init_latch_binary = __esm({
|
|
|
46599
46599
|
}
|
|
46600
46600
|
});
|
|
46601
46601
|
|
|
46602
|
+
// ../packages/core/dist/service/latch-host-identity.js
|
|
46603
|
+
import { execFile } from "node:child_process";
|
|
46604
|
+
import { createHash as createHash16 } from "node:crypto";
|
|
46605
|
+
import { promisify } from "node:util";
|
|
46606
|
+
function isLatchHostPublicKey(value2) {
|
|
46607
|
+
return typeof value2 === "string" && /^[0-9a-f]{64}$/.test(value2) && !/^0+$/.test(value2);
|
|
46608
|
+
}
|
|
46609
|
+
function latchHostKeyDigest(key) {
|
|
46610
|
+
return createHash16("sha256").update(Buffer.from(key, "hex")).digest("hex");
|
|
46611
|
+
}
|
|
46612
|
+
async function readLatchHostIdentity() {
|
|
46613
|
+
const binary = resolveLatchBinaryPath();
|
|
46614
|
+
if (!binary)
|
|
46615
|
+
return null;
|
|
46616
|
+
try {
|
|
46617
|
+
const { stdout } = await execFileAsync(binary, ["remote-access", "status", "--json"], {
|
|
46618
|
+
env: latchChildEnvironment(),
|
|
46619
|
+
timeout: 5e3,
|
|
46620
|
+
maxBuffer: 16384
|
|
46621
|
+
});
|
|
46622
|
+
const status = JSON.parse(stdout);
|
|
46623
|
+
return status?.formatVersion === 2 && status.enabled === true && isLatchHostPublicKey(status.publicKey) ? { hostKeyDigest: latchHostKeyDigest(status.publicKey) } : null;
|
|
46624
|
+
} catch {
|
|
46625
|
+
return null;
|
|
46626
|
+
}
|
|
46627
|
+
}
|
|
46628
|
+
var execFileAsync;
|
|
46629
|
+
var init_latch_host_identity = __esm({
|
|
46630
|
+
"../packages/core/dist/service/latch-host-identity.js"() {
|
|
46631
|
+
"use strict";
|
|
46632
|
+
init_latch_binary();
|
|
46633
|
+
init_latch_environment();
|
|
46634
|
+
execFileAsync = promisify(execFile);
|
|
46635
|
+
}
|
|
46636
|
+
});
|
|
46637
|
+
|
|
46602
46638
|
// ../packages/core/dist/service/latch-gateway.js
|
|
46603
46639
|
import { existsSync as existsSync31, readFileSync as readFileSync24 } from "node:fs";
|
|
46604
46640
|
import os7 from "node:os";
|
|
@@ -46994,7 +47030,7 @@ var init_latch_session_absent = __esm({
|
|
|
46994
47030
|
});
|
|
46995
47031
|
|
|
46996
47032
|
// ../packages/core/dist/service/latch-session.js
|
|
46997
|
-
import { execFile } from "node:child_process";
|
|
47033
|
+
import { execFile as execFile2 } from "node:child_process";
|
|
46998
47034
|
function latchSessionCommandError(detail) {
|
|
46999
47035
|
const message = detail || "Latch command failed.";
|
|
47000
47036
|
return isLatchSessionAbsentMessage(message) ? new LatchSessionAbsentError(message) : new LatchSessionCommandError(message);
|
|
@@ -47018,7 +47054,7 @@ async function runLatchJson({ executable, args }) {
|
|
|
47018
47054
|
if (!binary)
|
|
47019
47055
|
throw new LatchSessionCommandError(latchBinaryMissingMessage(executable));
|
|
47020
47056
|
const result = await new Promise((resolve, reject) => {
|
|
47021
|
-
|
|
47057
|
+
execFile2(binary, args, {
|
|
47022
47058
|
encoding: "utf8",
|
|
47023
47059
|
timeout: 1e4,
|
|
47024
47060
|
maxBuffer: 1024 * 1024,
|
|
@@ -48876,6 +48912,7 @@ var init_in_process_provider = __esm({
|
|
|
48876
48912
|
"use strict";
|
|
48877
48913
|
init_git_tree();
|
|
48878
48914
|
init_latch_discovery();
|
|
48915
|
+
init_latch_host_identity();
|
|
48879
48916
|
init_latch_session();
|
|
48880
48917
|
init_terminal_profile_types();
|
|
48881
48918
|
init_branch_actions_git();
|
|
@@ -49061,6 +49098,12 @@ var init_in_process_provider = __esm({
|
|
|
49061
49098
|
return fail(this.target, "TARGET_OPERATION_FAILED", error62 instanceof Error ? error62.message : "Latch discovery failed on this device.");
|
|
49062
49099
|
}
|
|
49063
49100
|
}
|
|
49101
|
+
async readLatchHostIdentity() {
|
|
49102
|
+
const identity = await readLatchHostIdentity();
|
|
49103
|
+
if (identity)
|
|
49104
|
+
return ok(this.target, identity);
|
|
49105
|
+
return fail(this.target, "TARGET_OPERATION_FAILED", "Latch Remote Link has no identity on this runner.");
|
|
49106
|
+
}
|
|
49064
49107
|
async inspectLatchSession(input2) {
|
|
49065
49108
|
try {
|
|
49066
49109
|
return ok(this.target, await inspectLatchSession(input2));
|
|
@@ -49173,6 +49216,7 @@ var init_types2 = __esm({
|
|
|
49173
49216
|
"generateCommitMessageFromLocalDiff",
|
|
49174
49217
|
"launchAgent",
|
|
49175
49218
|
"discoverLatch",
|
|
49219
|
+
"readLatchHostIdentity",
|
|
49176
49220
|
"inspectLatchSession",
|
|
49177
49221
|
"openLatchSession",
|
|
49178
49222
|
"stopLatchSession",
|
|
@@ -49344,6 +49388,115 @@ var init_context = __esm({
|
|
|
49344
49388
|
}
|
|
49345
49389
|
});
|
|
49346
49390
|
|
|
49391
|
+
// ../packages/core/dist/service/local-target/runner-queue-provider.js
|
|
49392
|
+
var init_runner_queue_provider = __esm({
|
|
49393
|
+
"../packages/core/dist/service/local-target/runner-queue-provider.js"() {
|
|
49394
|
+
"use strict";
|
|
49395
|
+
init_errors4();
|
|
49396
|
+
init_local_target_mutations();
|
|
49397
|
+
init_result();
|
|
49398
|
+
}
|
|
49399
|
+
});
|
|
49400
|
+
|
|
49401
|
+
// ../packages/core/dist/service/local-target/default-registry.js
|
|
49402
|
+
var init_default_registry = __esm({
|
|
49403
|
+
"../packages/core/dist/service/local-target/default-registry.js"() {
|
|
49404
|
+
"use strict";
|
|
49405
|
+
init_in_process_provider();
|
|
49406
|
+
init_registry();
|
|
49407
|
+
init_runner_queue_provider();
|
|
49408
|
+
}
|
|
49409
|
+
});
|
|
49410
|
+
|
|
49411
|
+
// ../packages/core/dist/service/local-target/desktop-bridge.js
|
|
49412
|
+
var init_desktop_bridge = __esm({
|
|
49413
|
+
"../packages/core/dist/service/local-target/desktop-bridge.js"() {
|
|
49414
|
+
"use strict";
|
|
49415
|
+
init_branch_observe_git();
|
|
49416
|
+
init_result();
|
|
49417
|
+
}
|
|
49418
|
+
});
|
|
49419
|
+
|
|
49420
|
+
// ../packages/core/dist/service/local-target/fake-provider.js
|
|
49421
|
+
var init_fake_provider = __esm({
|
|
49422
|
+
"../packages/core/dist/service/local-target/fake-provider.js"() {
|
|
49423
|
+
"use strict";
|
|
49424
|
+
init_result();
|
|
49425
|
+
}
|
|
49426
|
+
});
|
|
49427
|
+
|
|
49428
|
+
// ../packages/core/dist/service/local-target/git-status.js
|
|
49429
|
+
var init_git_status = __esm({
|
|
49430
|
+
"../packages/core/dist/service/local-target/git-status.js"() {
|
|
49431
|
+
"use strict";
|
|
49432
|
+
}
|
|
49433
|
+
});
|
|
49434
|
+
|
|
49435
|
+
// ../packages/core/dist/service/local-target/resource-status.js
|
|
49436
|
+
var init_resource_status = __esm({
|
|
49437
|
+
"../packages/core/dist/service/local-target/resource-status.js"() {
|
|
49438
|
+
"use strict";
|
|
49439
|
+
init_in_process_provider();
|
|
49440
|
+
init_registry();
|
|
49441
|
+
}
|
|
49442
|
+
});
|
|
49443
|
+
|
|
49444
|
+
// ../packages/core/dist/service/local-target/index.js
|
|
49445
|
+
var init_local_target = __esm({
|
|
49446
|
+
"../packages/core/dist/service/local-target/index.js"() {
|
|
49447
|
+
"use strict";
|
|
49448
|
+
init_branch_actions_git();
|
|
49449
|
+
init_branch_observe_git();
|
|
49450
|
+
init_branch_status_git();
|
|
49451
|
+
init_commit_message_diff_git();
|
|
49452
|
+
init_default_registry();
|
|
49453
|
+
init_desktop_bridge();
|
|
49454
|
+
init_doctor_checks();
|
|
49455
|
+
init_fake_provider();
|
|
49456
|
+
init_git_run();
|
|
49457
|
+
init_git_status();
|
|
49458
|
+
init_in_process_provider();
|
|
49459
|
+
init_project_metadata();
|
|
49460
|
+
init_registry();
|
|
49461
|
+
init_resource_status();
|
|
49462
|
+
init_result();
|
|
49463
|
+
init_runner_queue_provider();
|
|
49464
|
+
init_types2();
|
|
49465
|
+
init_worktree_git();
|
|
49466
|
+
}
|
|
49467
|
+
});
|
|
49468
|
+
|
|
49469
|
+
// ../packages/core/dist/service/devices.js
|
|
49470
|
+
var init_devices = __esm({
|
|
49471
|
+
"../packages/core/dist/service/devices.js"() {
|
|
49472
|
+
"use strict";
|
|
49473
|
+
init_change_feed();
|
|
49474
|
+
init_util3();
|
|
49475
|
+
}
|
|
49476
|
+
});
|
|
49477
|
+
|
|
49478
|
+
// ../packages/core/dist/service/profiles.js
|
|
49479
|
+
var init_profiles = __esm({
|
|
49480
|
+
"../packages/core/dist/service/profiles.js"() {
|
|
49481
|
+
"use strict";
|
|
49482
|
+
init_terminal_profile_types();
|
|
49483
|
+
}
|
|
49484
|
+
});
|
|
49485
|
+
|
|
49486
|
+
// ../packages/core/dist/service/execution-targets.js
|
|
49487
|
+
var init_execution_targets = __esm({
|
|
49488
|
+
"../packages/core/dist/service/execution-targets.js"() {
|
|
49489
|
+
"use strict";
|
|
49490
|
+
init_local_target();
|
|
49491
|
+
init_change_feed();
|
|
49492
|
+
init_devices();
|
|
49493
|
+
init_errors4();
|
|
49494
|
+
init_profiles();
|
|
49495
|
+
init_terminal_profile_types();
|
|
49496
|
+
init_util3();
|
|
49497
|
+
}
|
|
49498
|
+
});
|
|
49499
|
+
|
|
49347
49500
|
// ../packages/core/dist/service/latch-provider-session.js
|
|
49348
49501
|
var init_latch_provider_session = __esm({
|
|
49349
49502
|
"../packages/core/dist/service/latch-provider-session.js"() {
|
|
@@ -49391,6 +49544,8 @@ var init_local_target_mutations = __esm({
|
|
|
49391
49544
|
init_change_feed();
|
|
49392
49545
|
init_context();
|
|
49393
49546
|
init_errors4();
|
|
49547
|
+
init_execution_targets();
|
|
49548
|
+
init_latch_host_identity();
|
|
49394
49549
|
init_latch_provider_session();
|
|
49395
49550
|
init_records2();
|
|
49396
49551
|
init_util3();
|
|
@@ -49449,6 +49604,7 @@ var init_local_target_mutation_runner = __esm({
|
|
|
49449
49604
|
}
|
|
49450
49605
|
};
|
|
49451
49606
|
RESOURCE_BINDINGS = {
|
|
49607
|
+
readLatchHostIdentity: () => ({}),
|
|
49452
49608
|
observeResource: (input2, dir) => ({ ...input2, path: dir }),
|
|
49453
49609
|
readRepositoryTree: (input2, dir) => ({ ...input2, repoPath: dir }),
|
|
49454
49610
|
listBranches: (input2, dir) => ({ ...input2, repoPath: dir }),
|
|
@@ -50272,7 +50428,7 @@ var init_discover_project_local = __esm({
|
|
|
50272
50428
|
});
|
|
50273
50429
|
|
|
50274
50430
|
// src/hook-event.ts
|
|
50275
|
-
import { createHash as
|
|
50431
|
+
import { createHash as createHash17 } from "node:crypto";
|
|
50276
50432
|
import { statSync as statSync10 } from "node:fs";
|
|
50277
50433
|
import path45 from "node:path";
|
|
50278
50434
|
function isNativeHookType(value2) {
|
|
@@ -50320,7 +50476,7 @@ function stopContinueOutput(agent, reason) {
|
|
|
50320
50476
|
return { decision: STOP_CONTINUE_DECISION[agent] ?? "block", reason };
|
|
50321
50477
|
}
|
|
50322
50478
|
function promptDigest(prompt) {
|
|
50323
|
-
return
|
|
50479
|
+
return createHash17("sha256").update(prompt).digest("hex");
|
|
50324
50480
|
}
|
|
50325
50481
|
async function runNativeHookEvent({
|
|
50326
50482
|
backend,
|
|
@@ -51607,7 +51763,7 @@ var init_local_objective_changes = __esm({
|
|
|
51607
51763
|
});
|
|
51608
51764
|
|
|
51609
51765
|
// src/operation-attempts.ts
|
|
51610
|
-
import { createHash as
|
|
51766
|
+
import { createHash as createHash18, randomUUID as randomUUID3 } from "node:crypto";
|
|
51611
51767
|
import {
|
|
51612
51768
|
chmodSync as chmodSync9,
|
|
51613
51769
|
existsSync as existsSync38,
|
|
@@ -51630,7 +51786,7 @@ function attemptsDirectory() {
|
|
|
51630
51786
|
return path50.join(resolveGlobalDataDir(), "operation-attempts");
|
|
51631
51787
|
}
|
|
51632
51788
|
function sha2562(value2) {
|
|
51633
|
-
return
|
|
51789
|
+
return createHash18("sha256").update(value2).digest("hex");
|
|
51634
51790
|
}
|
|
51635
51791
|
function canonical(value2) {
|
|
51636
51792
|
if (Array.isArray(value2)) return value2.map(canonical);
|
|
@@ -53477,7 +53633,7 @@ var init_runner_identity = __esm({
|
|
|
53477
53633
|
});
|
|
53478
53634
|
|
|
53479
53635
|
// src/runner-service.ts
|
|
53480
|
-
import { execFile as
|
|
53636
|
+
import { execFile as execFile3 } from "node:child_process";
|
|
53481
53637
|
import {
|
|
53482
53638
|
chmodSync as chmodSync10,
|
|
53483
53639
|
existsSync as existsSync40,
|
|
@@ -53489,7 +53645,7 @@ import {
|
|
|
53489
53645
|
} from "node:fs";
|
|
53490
53646
|
import os10 from "node:os";
|
|
53491
53647
|
import path53 from "node:path";
|
|
53492
|
-
import { promisify } from "node:util";
|
|
53648
|
+
import { promisify as promisify2 } from "node:util";
|
|
53493
53649
|
function writeServiceFile(filePath, contents) {
|
|
53494
53650
|
writeFileSync17(filePath, contents, { mode: 384 });
|
|
53495
53651
|
chmodSync10(filePath, 384);
|
|
@@ -53746,7 +53902,7 @@ function systemdUserDir() {
|
|
|
53746
53902
|
return path53.join(base, "systemd", "user");
|
|
53747
53903
|
}
|
|
53748
53904
|
async function runCommand(program, args) {
|
|
53749
|
-
const { stdout } = await
|
|
53905
|
+
const { stdout } = await execFileAsync2(program, args);
|
|
53750
53906
|
return { stdout: stdout.toString() };
|
|
53751
53907
|
}
|
|
53752
53908
|
function launchdDomainTarget(uid) {
|
|
@@ -53774,12 +53930,12 @@ function resolveServiceManager(platform2 = process.platform) {
|
|
|
53774
53930
|
if (platform2 === "linux") return new SystemdUserManager();
|
|
53775
53931
|
return null;
|
|
53776
53932
|
}
|
|
53777
|
-
var
|
|
53933
|
+
var execFileAsync2, RUNNER_SERVICE_STATE_FILENAME, LAUNCHD_LABEL, SYSTEMD_UNIT_NAME, FALLBACK_POLL_INTERVAL_MS, LAUNCHD_PROCESS_TYPE, RUNNER_SERVICE_SYSTEM_PATH_DIRS, RUNNER_SERVICE_PATH_PREFIX_DIRS, LaunchdManager, SystemdUserManager;
|
|
53778
53934
|
var init_runner_service = __esm({
|
|
53779
53935
|
"src/runner-service.ts"() {
|
|
53780
53936
|
"use strict";
|
|
53781
53937
|
init_config();
|
|
53782
|
-
|
|
53938
|
+
execFileAsync2 = promisify2(execFile3);
|
|
53783
53939
|
RUNNER_SERVICE_STATE_FILENAME = "runner-service.json";
|
|
53784
53940
|
LAUNCHD_LABEL = "io.overlord.runner";
|
|
53785
53941
|
SYSTEMD_UNIT_NAME = "overlord-runner";
|