shellpuppet 0.5.1 → 0.5.3
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 +5 -5
- package/dist/agents/agy/nudge.js +58 -5
- package/dist/agents/agy/nudge.js.map +1 -1
- package/dist/agents/codex/index.js +1 -1
- package/dist/agents/codex/index.js.map +1 -1
- package/dist/agents/hermes/index.js +2 -2
- package/dist/agents/hermes/index.js.map +1 -1
- package/dist/agents/hermes/nudge.d.ts +1 -0
- package/dist/agents/hermes/nudge.js +5 -0
- package/dist/agents/hermes/nudge.js.map +1 -1
- package/dist/agents/types.d.ts +4 -0
- package/dist/cli/index.js +47 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/client/http.d.ts +2 -2
- package/dist/client/http.js +1 -1
- package/dist/client/http.js.map +1 -1
- package/dist/core/dialogs.d.ts +4 -1
- package/dist/core/dialogs.js +25 -5
- package/dist/core/dialogs.js.map +1 -1
- package/dist/core/mailbox.d.ts +25 -4
- package/dist/core/mailbox.js +36 -5
- package/dist/core/mailbox.js.map +1 -1
- package/dist/core/manager.d.ts +1 -0
- package/dist/core/manager.js +5 -1
- package/dist/core/manager.js.map +1 -1
- package/dist/core/policy.d.ts +5 -3
- package/dist/core/policy.js +25 -23
- package/dist/core/policy.js.map +1 -1
- package/dist/core/readingContext.d.ts +9 -0
- package/dist/core/readingContext.js +4 -0
- package/dist/core/readingContext.js.map +1 -0
- package/dist/core/reasoning.d.ts +2 -1
- package/dist/core/reasoning.js +33 -11
- package/dist/core/reasoning.js.map +1 -1
- package/dist/core/renderer.d.ts +5 -0
- package/dist/core/renderer.js +31 -2
- package/dist/core/renderer.js.map +1 -1
- package/dist/core/session.d.ts +50 -32
- package/dist/core/session.js +333 -164
- package/dist/core/session.js.map +1 -1
- package/dist/daemon/config.d.ts +11 -1
- package/dist/daemon/config.js +42 -20
- package/dist/daemon/config.js.map +1 -1
- package/dist/daemon/configReload.d.ts +55 -0
- package/dist/daemon/configReload.js +284 -0
- package/dist/daemon/configReload.js.map +1 -0
- package/dist/daemon/configWatcher.d.ts +55 -0
- package/dist/daemon/configWatcher.js +313 -0
- package/dist/daemon/configWatcher.js.map +1 -0
- package/dist/daemon/homeOwner.d.ts +2 -1
- package/dist/daemon/homeOwner.js +33 -8
- package/dist/daemon/homeOwner.js.map +1 -1
- package/dist/daemon/index.js +3 -50
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/launchProfiles.d.ts +5 -3
- package/dist/daemon/launchProfiles.js +12 -7
- package/dist/daemon/launchProfiles.js.map +1 -1
- package/dist/daemon/nudgeScheduler.d.ts +4 -4
- package/dist/daemon/nudgeScheduler.js +16 -15
- package/dist/daemon/nudgeScheduler.js.map +1 -1
- package/dist/daemon/paths.d.ts +22 -4
- package/dist/daemon/paths.js +126 -24
- package/dist/daemon/paths.js.map +1 -1
- package/dist/daemon/restartSource.d.ts +3 -3
- package/dist/daemon/restartSource.js +5 -4
- package/dist/daemon/restartSource.js.map +1 -1
- package/dist/daemon/schedules.d.ts +6 -5
- package/dist/daemon/schedules.js +15 -51
- package/dist/daemon/schedules.js.map +1 -1
- package/dist/daemon/server.d.ts +27 -17
- package/dist/daemon/server.js +576 -453
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/standaloneOptions.d.ts +4 -0
- package/dist/daemon/standaloneOptions.js +29 -0
- package/dist/daemon/standaloneOptions.js.map +1 -0
- package/dist/mcp/index.js +0 -4
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +0 -6
- package/dist/mcp/tools.js +90 -85
- package/dist/mcp/tools.js.map +1 -1
- package/dist/viewer/dashboard.css +24 -2
- package/dist/viewer/dashboard.html +1 -1
- package/dist/viewer/dashboard.js +127 -16
- package/dist/viewer/index.html +4 -3
- package/dist/viewer/pane.js +91 -395
- package/dist/viewer/viewer.css +23 -4
- package/dist/viewer/viewer.js +2 -0
- package/package.json +1 -1
package/dist/viewer/viewer.css
CHANGED
|
@@ -37,6 +37,7 @@ button.active { background: #3d2c14; border-color: #8a6d3b; color: #e8c284; }
|
|
|
37
37
|
border-bottom: 1px solid #22303c; font-size: 12px;
|
|
38
38
|
display: flex; gap: 14px; align-items: center; white-space: nowrap; overflow: hidden;
|
|
39
39
|
}
|
|
40
|
+
#identity:has(+ .prompt-toggle:not([hidden])) { flex-basis: 13px; height: 13px; padding-block: 0; font-size: 11px; line-height: 12px; }
|
|
40
41
|
#identity-purpose { color: #d7e3ee; font-weight: 600; }
|
|
41
42
|
#identity-meta { color: #7d93a6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
42
43
|
overflow: hidden; text-overflow: ellipsis; }
|
|
@@ -63,19 +64,27 @@ button.active { background: #3d2c14; border-color: #8a6d3b; color: #e8c284; }
|
|
|
63
64
|
by FONT SIZE rather than by changing the grid: see fitGridByFont in viewer.js.
|
|
64
65
|
Centring keeps any leftover margin even instead of stranding the content in
|
|
65
66
|
the top-left corner. */
|
|
67
|
+
#viewport { flex: 1; min-height: 0; position: relative; }
|
|
66
68
|
#wrap {
|
|
67
|
-
|
|
69
|
+
height: 100%; padding: 6px 8px; box-sizing: border-box;
|
|
68
70
|
overflow: hidden; position: relative;
|
|
69
71
|
}
|
|
70
72
|
/* Notices paint above the terminal and never participate in its fit box.
|
|
71
|
-
The
|
|
73
|
+
The heading uses the fixed-height space above the grid. */
|
|
72
74
|
#notices {
|
|
73
75
|
position: absolute; z-index: 2; left: 8px; right: 8px;
|
|
76
|
+
top: 0; max-height: calc(100% - 6px); overflow-wrap: anywhere;
|
|
74
77
|
box-sizing: border-box; overflow-y: auto; pointer-events: none;
|
|
75
78
|
box-shadow: 0 4px 14px #0009;
|
|
76
79
|
}
|
|
77
|
-
#notices:has(
|
|
80
|
+
#notices:has(:is(#banner, #copy-notice, #prompt-alert):not([hidden])) { border: 1px solid #27313d; }
|
|
78
81
|
#notices :is(button, a) { pointer-events: auto; }
|
|
82
|
+
@media (any-pointer: coarse) {
|
|
83
|
+
#notices.scrollable { pointer-events: auto; touch-action: pan-y pinch-zoom; overscroll-behavior-y: contain; }
|
|
84
|
+
}
|
|
85
|
+
.prompt-announcement-heading {
|
|
86
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
87
|
+
}
|
|
79
88
|
/* #term must keep filling the available box so the fit addon measures the real
|
|
80
89
|
space. So the centring has to happen INSIDE it, on the .xterm element
|
|
81
90
|
the addon actually sizes. Centring #wrap's children does nothing, because
|
|
@@ -83,7 +92,7 @@ button.active { background: #3d2c14; border-color: #8a6d3b; color: #e8c284; }
|
|
|
83
92
|
#term { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
|
|
84
93
|
|
|
85
94
|
/* Capture mode (headless screenshot): the terminal and nothing else. */
|
|
86
|
-
body.capture header, body.capture #identity, body.capture #notices {
|
|
95
|
+
body.capture header, body.capture #identity, body.capture .prompt-toggle, body.capture #notices {
|
|
87
96
|
display: none;
|
|
88
97
|
}
|
|
89
98
|
#term .xterm { margin: 0 auto; }
|
|
@@ -93,3 +102,13 @@ body.capture header, body.capture #identity, body.capture #notices {
|
|
|
93
102
|
.xterm-viewport { overflow-y: auto !important; }
|
|
94
103
|
.xterm-viewport::-webkit-scrollbar { width: 10px; }
|
|
95
104
|
.xterm-viewport::-webkit-scrollbar-thumb { background: #2d3542; border-radius: 5px; }
|
|
105
|
+
|
|
106
|
+
.prompt-toggle {
|
|
107
|
+
flex: 0 0 16px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
108
|
+
border: 0; border-radius: 0; padding: 0 7px; background: #3d2f14; color: #ffd479;
|
|
109
|
+
text-align: left; font: inherit; font-size: 12px; line-height: 16px;
|
|
110
|
+
}
|
|
111
|
+
.prompt-toggle::before { content: ''; display: inline-block; width: 0; height: 0; margin-right: 6px;
|
|
112
|
+
border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid currentColor; }
|
|
113
|
+
.prompt-toggle[aria-expanded="false"]::before { transform: rotate(-90deg); }
|
|
114
|
+
.prompt-toggle:focus-visible { outline: 2px solid #79b8f5; outline-offset: -2px; }
|
package/dist/viewer/viewer.js
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
elements: {
|
|
59
|
+
notices: document.getElementById('notices'),
|
|
59
60
|
dot: document.getElementById('dot'),
|
|
60
61
|
banner,
|
|
61
62
|
copyNotice: document.getElementById('copy-notice'),
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
identityPurpose: document.getElementById('identity-purpose'),
|
|
69
70
|
identityMeta: document.getElementById('identity-meta'),
|
|
70
71
|
sessionAgent: document.getElementById('session-agent'),
|
|
72
|
+
promptToggle: document.getElementById('prompt-toggle'),
|
|
71
73
|
promptAlert: document.getElementById('prompt-alert'),
|
|
72
74
|
},
|
|
73
75
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shellpuppet",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Supervised terminal sessions for AI agents: an agent drives a real terminal while you watch, type and approve. Like Playwright, but for the terminal. An MCP server and CLI over a per-user daemon, with a live browser viewer on the same session.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Red Eagle Tech Ltd",
|