@h-rig/runtime 0.0.6-alpha.3 → 0.0.6-alpha.30
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 +1165 -785
- package/dist/bin/rig-agent.js +458 -389
- package/dist/src/control-plane/agent-wrapper.js +1191 -504
- package/dist/src/control-plane/authority-files.js +12 -6
- package/dist/src/control-plane/harness-main.js +2186 -1786
- package/dist/src/control-plane/hooks/completion-verification.js +2084 -1019
- package/dist/src/control-plane/hooks/inject-context.js +193 -139
- package/dist/src/control-plane/hooks/submodule-branch.js +603 -545
- package/dist/src/control-plane/hooks/task-runtime-start.js +603 -545
- package/dist/src/control-plane/materialize-task-config.js +64 -8
- package/dist/src/control-plane/native/git-ops.js +90 -64
- package/dist/src/control-plane/native/harness-cli.js +1989 -682
- package/dist/src/control-plane/native/pr-automation.js +1657 -54
- package/dist/src/control-plane/native/pr-review-gate.js +1455 -0
- package/dist/src/control-plane/native/repo-ops.js +3 -0
- package/dist/src/control-plane/native/run-ops.js +39 -13
- package/dist/src/control-plane/native/task-ops.js +1819 -527
- package/dist/src/control-plane/native/validator.js +163 -109
- package/dist/src/control-plane/native/verifier.js +1616 -323
- package/dist/src/control-plane/native/workspace-ops.js +12 -6
- 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 +173 -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/plugin-host-context.js +54 -0
- package/dist/src/control-plane/runtime/image/fingerprint-sidecar.js +3 -0
- package/dist/src/control-plane/runtime/image/index.js +3 -0
- package/dist/src/control-plane/runtime/image-fingerprint-sidecar.js +3 -0
- package/dist/src/control-plane/runtime/image.js +3 -0
- package/dist/src/control-plane/runtime/index.js +517 -722
- package/dist/src/control-plane/runtime/isolation/home.js +28 -6
- package/dist/src/control-plane/runtime/isolation/index.js +541 -461
- package/dist/src/control-plane/runtime/isolation/runner.js +28 -6
- package/dist/src/control-plane/runtime/isolation/shared.js +9 -6
- package/dist/src/control-plane/runtime/isolation.js +541 -461
- package/dist/src/control-plane/runtime/plugin-mode.js +3 -27
- package/dist/src/control-plane/runtime/queue.js +458 -385
- package/dist/src/control-plane/runtime/snapshot/task-run.js +3 -0
- package/dist/src/control-plane/runtime/task-run-snapshot.js +3 -0
- package/dist/src/control-plane/skill-materializer.js +46 -0
- package/dist/src/control-plane/tasks/source-aware-task-config-source.js +14 -2
- package/dist/src/control-plane/tasks/source-lifecycle.js +86 -32
- package/dist/src/index.js +27 -298
- package/dist/src/layout.js +12 -7
- package/dist/src/local-server.js +20 -14
- package/native/darwin-arm64/rig-git +0 -0
- package/native/darwin-arm64/rig-git.build-manifest.json +1 -1
- package/native/darwin-arm64/rig-shell +0 -0
- package/native/darwin-arm64/rig-shell.build-manifest.json +1 -1
- package/native/darwin-arm64/rig-tools +0 -0
- package/native/darwin-arm64/rig-tools.build-manifest.json +1 -1
- package/native/darwin-arm64/runtime-native.dylib +0 -0
- package/package.json +8 -6
- package/dist/src/control-plane/runtime/plugins.js +0 -1131
- package/dist/src/plugins.js +0 -329
|
@@ -1,41 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// packages/runtime/src/control-plane/runtime/plugin-mode.ts
|
|
3
|
-
var LEGACY_PLUGIN_SCAN_ENV = "RIG_LEGACY_PLUGIN_SCAN";
|
|
4
|
-
function isLegacyPluginScanEnabled(env = process.env) {
|
|
5
|
-
const value = env[LEGACY_PLUGIN_SCAN_ENV]?.trim().toLowerCase();
|
|
6
|
-
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
7
|
-
}
|
|
8
3
|
function resolveHarnessPluginMode(options) {
|
|
9
|
-
const legacyScanEnabled = isLegacyPluginScanEnabled(options.env);
|
|
10
|
-
if (options.hasDeclarativeConfig && legacyScanEnabled) {
|
|
11
|
-
return {
|
|
12
|
-
kind: "declarative-with-legacy-compat",
|
|
13
|
-
legacyScanEnabled: true,
|
|
14
|
-
diagnostic: `[harness] plugin mode: declarative rig.config.ts plugins + legacy compatibility scan (${LEGACY_PLUGIN_SCAN_ENV}=1)`
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
4
|
if (options.hasDeclarativeConfig) {
|
|
18
5
|
return {
|
|
19
6
|
kind: "declarative",
|
|
20
|
-
|
|
21
|
-
diagnostic: `[harness] plugin mode: declarative rig.config.ts plugins (legacy scan disabled; set ${LEGACY_PLUGIN_SCAN_ENV}=1 only for compatibility)`
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
if (legacyScanEnabled) {
|
|
25
|
-
return {
|
|
26
|
-
kind: "legacy-compat",
|
|
27
|
-
legacyScanEnabled: true,
|
|
28
|
-
diagnostic: `[harness] plugin mode: legacy compatibility scan (${LEGACY_PLUGIN_SCAN_ENV}=1; add rig.config.ts to use declarative plugins)`
|
|
7
|
+
diagnostic: "[harness] plugin mode: declarative rig.config.ts plugins"
|
|
29
8
|
};
|
|
30
9
|
}
|
|
31
10
|
return {
|
|
32
11
|
kind: "none",
|
|
33
|
-
|
|
34
|
-
diagnostic: `[harness] plugin mode: none (no rig.config.ts found; legacy scan disabled; set ${LEGACY_PLUGIN_SCAN_ENV}=1 only for compatibility)`
|
|
12
|
+
diagnostic: "[harness] plugin mode: none (no rig.config.ts found; add one to load plugins)"
|
|
35
13
|
};
|
|
36
14
|
}
|
|
37
15
|
export {
|
|
38
|
-
resolveHarnessPluginMode
|
|
39
|
-
isLegacyPluginScanEnabled,
|
|
40
|
-
LEGACY_PLUGIN_SCAN_ENV
|
|
16
|
+
resolveHarnessPluginMode
|
|
41
17
|
};
|