@h-rig/cli-surface-plugin 0.0.6-alpha.146
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 +1 -0
- package/dist/src/app/drone-ui.d.ts +34 -0
- package/dist/src/app/drone-ui.js +278 -0
- package/dist/src/commands/_async-ui.d.ts +10 -0
- package/dist/src/commands/_async-ui.js +121 -0
- package/dist/src/commands/_cli-format.d.ts +56 -0
- package/dist/src/commands/_cli-format.js +332 -0
- package/dist/src/commands/_connection-state.d.ts +54 -0
- package/dist/src/commands/_connection-state.js +187 -0
- package/dist/src/commands/_doctor-checks.d.ts +9 -0
- package/dist/src/commands/_doctor-checks.js +24 -0
- package/dist/src/commands/_help-catalog.d.ts +29 -0
- package/dist/src/commands/_help-catalog.js +157 -0
- package/dist/src/commands/_inprocess-services.d.ts +33 -0
- package/dist/src/commands/_inprocess-services.js +102 -0
- package/dist/src/commands/_json-output.d.ts +11 -0
- package/dist/src/commands/_json-output.js +54 -0
- package/dist/src/commands/_parsers.d.ts +15 -0
- package/dist/src/commands/_parsers.js +114 -0
- package/dist/src/commands/_paths.d.ts +11 -0
- package/dist/src/commands/_paths.js +50 -0
- package/dist/src/commands/_pi-frontend.d.ts +35 -0
- package/dist/src/commands/_pi-frontend.js +64 -0
- package/dist/src/commands/_pi-install.d.ts +42 -0
- package/dist/src/commands/_pi-install.js +167 -0
- package/dist/src/commands/_policy.d.ts +8 -0
- package/dist/src/commands/_policy.js +138 -0
- package/dist/src/commands/_probes.d.ts +1 -0
- package/dist/src/commands/_probes.js +13 -0
- package/dist/src/commands/_run-driver-helpers.d.ts +26 -0
- package/dist/src/commands/_run-driver-helpers.js +132 -0
- package/dist/src/commands/_run-subcommands.d.ts +3 -0
- package/dist/src/commands/_run-subcommands.js +31 -0
- package/dist/src/commands/_spinner.d.ts +25 -0
- package/dist/src/commands/_spinner.js +65 -0
- package/dist/src/commands/agent.d.ts +3 -0
- package/dist/src/commands/agent.js +322 -0
- package/dist/src/commands/config.d.ts +3 -0
- package/dist/src/commands/config.js +193 -0
- package/dist/src/commands/dist.d.ts +28 -0
- package/dist/src/commands/dist.js +435 -0
- package/dist/src/commands/doctor.d.ts +3 -0
- package/dist/src/commands/doctor.js +171 -0
- package/dist/src/commands/github.d.ts +3 -0
- package/dist/src/commands/github.js +342 -0
- package/dist/src/commands/inbox.d.ts +19 -0
- package/dist/src/commands/inbox.js +241 -0
- package/dist/src/commands/init.d.ts +64 -0
- package/dist/src/commands/init.js +1449 -0
- package/dist/src/commands/inspect.d.ts +20 -0
- package/dist/src/commands/inspect.js +337 -0
- package/dist/src/commands/pi.d.ts +3 -0
- package/dist/src/commands/pi.js +177 -0
- package/dist/src/commands/plugin.d.ts +20 -0
- package/dist/src/commands/plugin.js +238 -0
- package/dist/src/commands/profile-and-review.d.ts +4 -0
- package/dist/src/commands/profile-and-review.js +223 -0
- package/dist/src/commands/queue.d.ts +3 -0
- package/dist/src/commands/queue.js +197 -0
- package/dist/src/commands/remote.d.ts +3 -0
- package/dist/src/commands/remote.js +516 -0
- package/dist/src/commands/repo-git-harness.d.ts +5 -0
- package/dist/src/commands/repo-git-harness.js +282 -0
- package/dist/src/commands/run.d.ts +22 -0
- package/dist/src/commands/run.js +645 -0
- package/dist/src/commands/server.d.ts +3 -0
- package/dist/src/commands/server.js +155 -0
- package/dist/src/commands/setup.d.ts +16 -0
- package/dist/src/commands/setup.js +356 -0
- package/dist/src/commands/stats.d.ts +11 -0
- package/dist/src/commands/stats.js +219 -0
- package/dist/src/commands/task-run-driver.d.ts +93 -0
- package/dist/src/commands/task-run-driver.js +136 -0
- package/dist/src/commands/task.d.ts +46 -0
- package/dist/src/commands/task.js +555 -0
- package/dist/src/commands/test.d.ts +3 -0
- package/dist/src/commands/test.js +46 -0
- package/dist/src/commands/triage.d.ts +11 -0
- package/dist/src/commands/triage.js +224 -0
- package/dist/src/commands/workspace.d.ts +3 -0
- package/dist/src/commands/workspace.js +130 -0
- package/dist/src/kernel-dispatch.d.ts +15 -0
- package/dist/src/kernel-dispatch.js +16 -0
- package/dist/src/plugin.d.ts +3 -0
- package/dist/src/plugin.js +5440 -0
- package/dist/src/rig-config-package-deps.d.ts +10 -0
- package/dist/src/rig-config-package-deps.js +272 -0
- package/dist/src/runner.d.ts +47 -0
- package/dist/src/runner.js +267 -0
- package/dist/src/version.d.ts +8 -0
- package/dist/src/version.js +47 -0
- package/dist/src/withMutedConsole.d.ts +2 -0
- package/dist/src/withMutedConsole.js +42 -0
- package/package.json +34 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// packages/cli-surface-plugin/src/withMutedConsole.ts
|
|
3
|
+
function isPromise(value) {
|
|
4
|
+
if (typeof value !== "object" && typeof value !== "function") {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return value !== null && typeof value.then === "function";
|
|
8
|
+
}
|
|
9
|
+
function withMutedConsole(mute, fn) {
|
|
10
|
+
if (!mute) {
|
|
11
|
+
return fn();
|
|
12
|
+
}
|
|
13
|
+
const originalLog = console.log;
|
|
14
|
+
const originalWarn = console.warn;
|
|
15
|
+
const originalInfo = console.info;
|
|
16
|
+
const restore = () => {
|
|
17
|
+
console.log = originalLog;
|
|
18
|
+
console.warn = originalWarn;
|
|
19
|
+
console.info = originalInfo;
|
|
20
|
+
};
|
|
21
|
+
console.log = () => {};
|
|
22
|
+
console.warn = () => {};
|
|
23
|
+
console.info = () => {};
|
|
24
|
+
try {
|
|
25
|
+
const result = fn();
|
|
26
|
+
if (isPromise(result)) {
|
|
27
|
+
return result.finally(restore);
|
|
28
|
+
}
|
|
29
|
+
restore();
|
|
30
|
+
return result;
|
|
31
|
+
} catch (error) {
|
|
32
|
+
restore();
|
|
33
|
+
throw error;
|
|
34
|
+
} finally {
|
|
35
|
+
if (console.log === originalLog) {
|
|
36
|
+
restore();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
withMutedConsole
|
|
42
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@h-rig/cli-surface-plugin",
|
|
3
|
+
"version": "0.0.6-alpha.146",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Standard executable Rig CLI surface plugin facade.",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/src/plugin.d.ts",
|
|
14
|
+
"import": "./dist/src/plugin.js"
|
|
15
|
+
},
|
|
16
|
+
"./plugin": {
|
|
17
|
+
"types": "./dist/src/plugin.d.ts",
|
|
18
|
+
"import": "./dist/src/plugin.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"bun": ">=1.3.11"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@rig/client": "npm:@h-rig/client@0.0.6-alpha.146",
|
|
26
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.146",
|
|
27
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.146",
|
|
28
|
+
"@rig/kernel": "npm:@h-rig/kernel@0.0.6-alpha.146",
|
|
29
|
+
"@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.146",
|
|
30
|
+
"@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.146",
|
|
31
|
+
"effect": "4.0.0-beta.90",
|
|
32
|
+
"picocolors": "^1.1.1"
|
|
33
|
+
}
|
|
34
|
+
}
|