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.
Files changed (88) hide show
  1. package/README.md +5 -5
  2. package/dist/agents/agy/nudge.js +58 -5
  3. package/dist/agents/agy/nudge.js.map +1 -1
  4. package/dist/agents/codex/index.js +1 -1
  5. package/dist/agents/codex/index.js.map +1 -1
  6. package/dist/agents/hermes/index.js +2 -2
  7. package/dist/agents/hermes/index.js.map +1 -1
  8. package/dist/agents/hermes/nudge.d.ts +1 -0
  9. package/dist/agents/hermes/nudge.js +5 -0
  10. package/dist/agents/hermes/nudge.js.map +1 -1
  11. package/dist/agents/types.d.ts +4 -0
  12. package/dist/cli/index.js +47 -3
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/client/http.d.ts +2 -2
  15. package/dist/client/http.js +1 -1
  16. package/dist/client/http.js.map +1 -1
  17. package/dist/core/dialogs.d.ts +4 -1
  18. package/dist/core/dialogs.js +25 -5
  19. package/dist/core/dialogs.js.map +1 -1
  20. package/dist/core/mailbox.d.ts +25 -4
  21. package/dist/core/mailbox.js +36 -5
  22. package/dist/core/mailbox.js.map +1 -1
  23. package/dist/core/manager.d.ts +1 -0
  24. package/dist/core/manager.js +5 -1
  25. package/dist/core/manager.js.map +1 -1
  26. package/dist/core/policy.d.ts +5 -3
  27. package/dist/core/policy.js +25 -23
  28. package/dist/core/policy.js.map +1 -1
  29. package/dist/core/readingContext.d.ts +9 -0
  30. package/dist/core/readingContext.js +4 -0
  31. package/dist/core/readingContext.js.map +1 -0
  32. package/dist/core/reasoning.d.ts +2 -1
  33. package/dist/core/reasoning.js +33 -11
  34. package/dist/core/reasoning.js.map +1 -1
  35. package/dist/core/renderer.d.ts +5 -0
  36. package/dist/core/renderer.js +31 -2
  37. package/dist/core/renderer.js.map +1 -1
  38. package/dist/core/session.d.ts +50 -32
  39. package/dist/core/session.js +333 -164
  40. package/dist/core/session.js.map +1 -1
  41. package/dist/daemon/config.d.ts +11 -1
  42. package/dist/daemon/config.js +42 -20
  43. package/dist/daemon/config.js.map +1 -1
  44. package/dist/daemon/configReload.d.ts +55 -0
  45. package/dist/daemon/configReload.js +284 -0
  46. package/dist/daemon/configReload.js.map +1 -0
  47. package/dist/daemon/configWatcher.d.ts +55 -0
  48. package/dist/daemon/configWatcher.js +313 -0
  49. package/dist/daemon/configWatcher.js.map +1 -0
  50. package/dist/daemon/homeOwner.d.ts +2 -1
  51. package/dist/daemon/homeOwner.js +33 -8
  52. package/dist/daemon/homeOwner.js.map +1 -1
  53. package/dist/daemon/index.js +3 -50
  54. package/dist/daemon/index.js.map +1 -1
  55. package/dist/daemon/launchProfiles.d.ts +5 -3
  56. package/dist/daemon/launchProfiles.js +12 -7
  57. package/dist/daemon/launchProfiles.js.map +1 -1
  58. package/dist/daemon/nudgeScheduler.d.ts +4 -4
  59. package/dist/daemon/nudgeScheduler.js +16 -15
  60. package/dist/daemon/nudgeScheduler.js.map +1 -1
  61. package/dist/daemon/paths.d.ts +22 -4
  62. package/dist/daemon/paths.js +126 -24
  63. package/dist/daemon/paths.js.map +1 -1
  64. package/dist/daemon/restartSource.d.ts +3 -3
  65. package/dist/daemon/restartSource.js +5 -4
  66. package/dist/daemon/restartSource.js.map +1 -1
  67. package/dist/daemon/schedules.d.ts +6 -5
  68. package/dist/daemon/schedules.js +15 -51
  69. package/dist/daemon/schedules.js.map +1 -1
  70. package/dist/daemon/server.d.ts +27 -17
  71. package/dist/daemon/server.js +576 -453
  72. package/dist/daemon/server.js.map +1 -1
  73. package/dist/daemon/standaloneOptions.d.ts +4 -0
  74. package/dist/daemon/standaloneOptions.js +29 -0
  75. package/dist/daemon/standaloneOptions.js.map +1 -0
  76. package/dist/mcp/index.js +0 -4
  77. package/dist/mcp/index.js.map +1 -1
  78. package/dist/mcp/tools.d.ts +0 -6
  79. package/dist/mcp/tools.js +90 -85
  80. package/dist/mcp/tools.js.map +1 -1
  81. package/dist/viewer/dashboard.css +24 -2
  82. package/dist/viewer/dashboard.html +1 -1
  83. package/dist/viewer/dashboard.js +127 -16
  84. package/dist/viewer/index.html +4 -3
  85. package/dist/viewer/pane.js +91 -395
  86. package/dist/viewer/viewer.css +23 -4
  87. package/dist/viewer/viewer.js +2 -0
  88. package/package.json +1 -1
@@ -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
- flex: 1 1 auto; min-height: 0; padding: 6px 8px; box-sizing: border-box;
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 pane keeps the cursor's resting row clear. */
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(> :not([hidden])) { border: 1px solid #27313d; }
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; }
@@ -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.1",
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",