@h-rig/runtime 0.0.6-alpha.22 → 0.0.6-alpha.23
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/bin/rig-agent-dispatch.js +333 -23
- package/dist/src/control-plane/agent-wrapper.js +336 -23
- package/dist/src/control-plane/harness-main.js +142 -17
- package/dist/src/control-plane/hooks/completion-verification.js +142 -17
- package/dist/src/control-plane/native/harness-cli.js +142 -17
- package/dist/src/control-plane/native/pr-automation.js +142 -17
- package/dist/src/control-plane/native/pr-review-gate.js +142 -17
- package/dist/src/control-plane/native/run-ops.js +1 -1
- package/dist/src/control-plane/native/task-ops.js +142 -17
- package/dist/src/control-plane/native/verifier.js +142 -17
- package/dist/src/control-plane/pi-sessiond/bin.js +793 -0
- package/dist/src/control-plane/pi-sessiond/client.js +41 -0
- package/dist/src/control-plane/pi-sessiond/event-hub.js +59 -0
- package/dist/src/control-plane/pi-sessiond/extension-ui-context.js +198 -0
- package/dist/src/control-plane/pi-sessiond/launcher.js +163 -0
- package/dist/src/control-plane/pi-sessiond/server.js +802 -0
- package/dist/src/control-plane/pi-sessiond/session-service.js +540 -0
- package/dist/src/control-plane/pi-sessiond/types.js +1 -0
- package/dist/src/control-plane/runtime/index.js +17 -0
- package/dist/src/control-plane/runtime/isolation/home.js +17 -0
- package/dist/src/control-plane/runtime/isolation/index.js +17 -0
- package/dist/src/control-plane/runtime/isolation/runner.js +17 -0
- package/dist/src/control-plane/runtime/isolation.js +17 -0
- package/dist/src/control-plane/runtime/queue.js +17 -0
- package/package.json +7 -7
|
@@ -5518,6 +5518,21 @@ var GITHUB_KNOWN_HOSTS = [
|
|
|
5518
5518
|
"github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk="
|
|
5519
5519
|
].join(`
|
|
5520
5520
|
`);
|
|
5521
|
+
function resolveControlPlaneSourceRoot(projectRoot) {
|
|
5522
|
+
const candidates = [
|
|
5523
|
+
process.env.RIG_CONTROL_PLANE_SOURCE_ROOT?.trim(),
|
|
5524
|
+
process.env.RIG_HOST_PROJECT_ROOT?.trim(),
|
|
5525
|
+
resolve25(import.meta.dir, "../../../../.."),
|
|
5526
|
+
projectRoot
|
|
5527
|
+
].filter((value) => Boolean(value));
|
|
5528
|
+
for (const candidate of candidates) {
|
|
5529
|
+
const root = resolve25(candidate);
|
|
5530
|
+
if (existsSync24(resolve25(root, "packages/runtime/src/control-plane/pi-sessiond/bin.ts"))) {
|
|
5531
|
+
return root;
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
return "";
|
|
5535
|
+
}
|
|
5521
5536
|
async function runtimeEnv(projectRoot, runtime) {
|
|
5522
5537
|
const bunBinaryPath = resolveBunBinaryPath();
|
|
5523
5538
|
const bunDir = resolveBunInstallDir(bunBinaryPath);
|
|
@@ -5563,9 +5578,11 @@ async function runtimeEnv(projectRoot, runtime) {
|
|
|
5563
5578
|
const runtimeRigGit = resolve25(runtime.binDir, runtimeRigGitFileName());
|
|
5564
5579
|
const preferredShell = existsSync24(runtimeBash) ? runtimeBash : "/bin/bash";
|
|
5565
5580
|
const nativeRuntimeLibraryPath = await materializeNativeRuntimeLibrary(runtime.binDir);
|
|
5581
|
+
const controlPlaneSourceRoot = resolveControlPlaneSourceRoot(projectRoot);
|
|
5566
5582
|
const env = {
|
|
5567
5583
|
PROJECT_RIG_ROOT: projectRoot,
|
|
5568
5584
|
RIG_HOST_PROJECT_ROOT: projectRoot,
|
|
5585
|
+
...controlPlaneSourceRoot ? { RIG_CONTROL_PLANE_SOURCE_ROOT: controlPlaneSourceRoot } : {},
|
|
5569
5586
|
HOME: runtime.homeDir,
|
|
5570
5587
|
TMPDIR: runtime.tmpDir,
|
|
5571
5588
|
XDG_CACHE_HOME: runtime.cacheDir,
|
|
@@ -6242,6 +6242,21 @@ var GITHUB_KNOWN_HOSTS = [
|
|
|
6242
6242
|
"github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk="
|
|
6243
6243
|
].join(`
|
|
6244
6244
|
`);
|
|
6245
|
+
function resolveControlPlaneSourceRoot(projectRoot) {
|
|
6246
|
+
const candidates = [
|
|
6247
|
+
process.env.RIG_CONTROL_PLANE_SOURCE_ROOT?.trim(),
|
|
6248
|
+
process.env.RIG_HOST_PROJECT_ROOT?.trim(),
|
|
6249
|
+
resolve27(import.meta.dir, "../../../../.."),
|
|
6250
|
+
projectRoot
|
|
6251
|
+
].filter((value) => Boolean(value));
|
|
6252
|
+
for (const candidate of candidates) {
|
|
6253
|
+
const root = resolve27(candidate);
|
|
6254
|
+
if (existsSync25(resolve27(root, "packages/runtime/src/control-plane/pi-sessiond/bin.ts"))) {
|
|
6255
|
+
return root;
|
|
6256
|
+
}
|
|
6257
|
+
}
|
|
6258
|
+
return "";
|
|
6259
|
+
}
|
|
6245
6260
|
async function runtimeEnv(projectRoot, runtime) {
|
|
6246
6261
|
const bunBinaryPath = resolveBunBinaryPath();
|
|
6247
6262
|
const bunDir = resolveBunInstallDir(bunBinaryPath);
|
|
@@ -6287,9 +6302,11 @@ async function runtimeEnv(projectRoot, runtime) {
|
|
|
6287
6302
|
const runtimeRigGit = resolve27(runtime.binDir, runtimeRigGitFileName());
|
|
6288
6303
|
const preferredShell = existsSync25(runtimeBash) ? runtimeBash : "/bin/bash";
|
|
6289
6304
|
const nativeRuntimeLibraryPath = await materializeNativeRuntimeLibrary(runtime.binDir);
|
|
6305
|
+
const controlPlaneSourceRoot = resolveControlPlaneSourceRoot(projectRoot);
|
|
6290
6306
|
const env = {
|
|
6291
6307
|
PROJECT_RIG_ROOT: projectRoot,
|
|
6292
6308
|
RIG_HOST_PROJECT_ROOT: projectRoot,
|
|
6309
|
+
...controlPlaneSourceRoot ? { RIG_CONTROL_PLANE_SOURCE_ROOT: controlPlaneSourceRoot } : {},
|
|
6293
6310
|
HOME: runtime.homeDir,
|
|
6294
6311
|
TMPDIR: runtime.tmpDir,
|
|
6295
6312
|
XDG_CACHE_HOME: runtime.cacheDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/runtime",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Rig package",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"main": "./dist/src/index.js",
|
|
64
64
|
"module": "./dist/src/index.js",
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@earendil-works/pi-coding-agent": "
|
|
66
|
+
"@earendil-works/pi-coding-agent": "npm:@h-rig/pi-coding-agent@0.0.6-alpha.23",
|
|
67
67
|
"@libsql/client": "^0.17.2",
|
|
68
|
-
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.
|
|
69
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
70
|
-
"@rig/hook-kit": "npm:@h-rig/hook-kit@0.0.6-alpha.
|
|
71
|
-
"@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.
|
|
72
|
-
"@rig/validator-kit": "npm:@h-rig/validator-kit@0.0.6-alpha.
|
|
68
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.23",
|
|
69
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.23",
|
|
70
|
+
"@rig/hook-kit": "npm:@h-rig/hook-kit@0.0.6-alpha.23",
|
|
71
|
+
"@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.23",
|
|
72
|
+
"@rig/validator-kit": "npm:@h-rig/validator-kit@0.0.6-alpha.23",
|
|
73
73
|
"effect": "4.0.0-beta.78",
|
|
74
74
|
"smol-toml": "^1.6.0"
|
|
75
75
|
}
|