@xynogen/pix-ssh 0.2.3 → 0.2.5
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/package.json +2 -2
- package/src/index.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynogen/pix-ssh",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Pi tool — ssh_run: run remote commands over SSH with password/key auth and remote sudo",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"typebox": "^1.1.38",
|
|
40
40
|
"@xynogen/pix-pretty": "^1.16.0",
|
|
41
|
-
"@xynogen/pix-runtime": "^0.
|
|
41
|
+
"@xynogen/pix-runtime": "^0.8.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@earendil-works/pi-coding-agent": "*",
|
package/src/index.ts
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
ruleFrame,
|
|
44
44
|
termW,
|
|
45
45
|
} from "@xynogen/pix-pretty/utils";
|
|
46
|
-
import { withAgentBlock } from "@xynogen/pix-runtime";
|
|
46
|
+
import { getUnattendedMode, withAgentBlock } from "@xynogen/pix-runtime";
|
|
47
47
|
import { type CollapseState, tickCollapse } from "@xynogen/pix-runtime/collapse";
|
|
48
48
|
import { Type } from "typebox";
|
|
49
49
|
import {
|
|
@@ -284,9 +284,9 @@ export default function (pi: ExtensionAPI): void {
|
|
|
284
284
|
const key = cacheKey(effectiveSpec);
|
|
285
285
|
const creds = credCache.get(key) ?? {};
|
|
286
286
|
|
|
287
|
-
const
|
|
288
|
-
const yolo =
|
|
289
|
-
if (
|
|
287
|
+
const mode = getUnattendedMode(pi.events);
|
|
288
|
+
const yolo = mode === "yolo";
|
|
289
|
+
if (mode === "afk") {
|
|
290
290
|
return {
|
|
291
291
|
content: [{ type: "text", text: "ssh_run denied immediately — AFK mode is active." }],
|
|
292
292
|
details: makeDetails(command, host, sudo, reason, {
|