@1agh/maude 0.46.0 → 0.47.0
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/apps/studio/acp/bootstrap-brief.ts +8 -0
- package/apps/studio/acp/bridge.ts +113 -5
- package/apps/studio/annotations-layer.tsx +42 -0
- package/apps/studio/api.ts +417 -2
- package/apps/studio/bin/_agent-browser-safe-config.json +1 -0
- package/apps/studio/bin/_agent-browser-safe.mjs +228 -0
- package/apps/studio/bin/_agent-browser-safe.test.mjs +165 -0
- package/apps/studio/bin/_curl-local.mjs +349 -0
- package/apps/studio/bin/_curl-local.test.mjs +280 -0
- package/apps/studio/bin/agent-browser-safe.sh +29 -0
- package/apps/studio/bin/curl-local.sh +28 -0
- package/apps/studio/canvas-cursors.ts +6 -0
- package/apps/studio/canvas-edit.ts +678 -11
- package/apps/studio/canvas-icons.tsx +13 -0
- package/apps/studio/canvas-lib.tsx +3 -0
- package/apps/studio/canvas-shell.tsx +646 -26
- package/apps/studio/client/app.jsx +898 -52
- package/apps/studio/client/panels/ChatPanel.jsx +47 -2
- package/apps/studio/client/styles/3-shell-maude.css +39 -0
- package/apps/studio/contextual-toolbar.tsx +5 -3
- package/apps/studio/dist/client.bundle.js +1103 -1103
- package/apps/studio/dist/comment-mount.js +2 -2
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/grid-track-handles.ts +179 -0
- package/apps/studio/handoff.ts +35 -0
- package/apps/studio/http.ts +118 -0
- package/apps/studio/input-router.tsx +73 -17
- package/apps/studio/test/acp-session-allowed-tools.test.ts +107 -11
- package/apps/studio/test/browse-posture.test.tsx +107 -0
- package/apps/studio/test/canvas-hide-chrome.test.ts +58 -0
- package/apps/studio/test/canvas-meta-api.test.ts +70 -0
- package/apps/studio/test/canvas-origin-gate.test.ts +4 -0
- package/apps/studio/test/comment-mount.test.ts +2 -1
- package/apps/studio/test/component-map.test.ts +48 -0
- package/apps/studio/test/convert-to-absolute.test.ts +333 -0
- package/apps/studio/test/detach-component.test.ts +94 -0
- package/apps/studio/test/edit-scope-api.test.ts +8 -4
- package/apps/studio/test/element-structural-api.test.ts +74 -0
- package/apps/studio/test/element-structural-edit.test.ts +113 -0
- package/apps/studio/test/grid-track-handles.test.ts +160 -0
- package/apps/studio/test/handoff.test.ts +48 -0
- package/apps/studio/test/input-router.test.ts +82 -8
- package/apps/studio/test/layers-synthetic-groups.test.ts +96 -0
- package/apps/studio/test/pdf-print-boxes.test.ts +54 -0
- package/apps/studio/test/use-tool-mode.test.tsx +10 -2
- package/apps/studio/tool-palette.tsx +3 -1
- package/apps/studio/use-canvas-media-drop.tsx +126 -0
- package/apps/studio/use-element-resize.tsx +3 -1
- package/apps/studio/use-grid-track-handles.tsx +364 -0
- package/apps/studio/use-keyboard-discipline.tsx +15 -0
- package/apps/studio/use-tool-mode.tsx +30 -3
- package/apps/studio/web-overlay-content.tsx +52 -0
- package/apps/studio/whats-new.json +27 -0
- package/cli/commands/design.mjs +16 -0
- package/package.json +8 -8
- package/plugins/design/templates/_shell.html +4 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# curl-local.sh — loopback-only curl. Thin shim over _curl-local.mjs; reached
|
|
3
|
+
# via `maude design curl-local` (DDR-062), never a raw bin path. See
|
|
4
|
+
# _curl-local.mjs for the full security rationale (DDR-185).
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# curl-local.sh <curl-args...>
|
|
8
|
+
#
|
|
9
|
+
# Resolves every http(s) target among the given curl args and refuses to run
|
|
10
|
+
# curl at all unless EVERY resolved address is loopback (127.0.0.0/8 or ::1).
|
|
11
|
+
# Exit: curl's own exit code · 2 usage · 3 non-loopback target rejected · 1 other.
|
|
12
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
13
|
+
|
|
14
|
+
if ! command -v curl >/dev/null 2>&1; then
|
|
15
|
+
echo "curl-local.sh: curl is required." >&2
|
|
16
|
+
exit 1
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
# Prefer node (always present with a maude install); fall back to bun in a dev
|
|
20
|
+
# tree that has bun but a shimmed node. The module is pure Node ESM — no .ts.
|
|
21
|
+
if command -v node >/dev/null 2>&1; then
|
|
22
|
+
exec node "$SCRIPT_DIR/_curl-local.mjs" "$@"
|
|
23
|
+
elif command -v bun >/dev/null 2>&1; then
|
|
24
|
+
exec bun run "$SCRIPT_DIR/_curl-local.mjs" "$@"
|
|
25
|
+
else
|
|
26
|
+
echo "curl-local.sh: node (or bun) is required." >&2
|
|
27
|
+
exit 1
|
|
28
|
+
fi
|
|
@@ -167,6 +167,12 @@ const STICKY = svgCursor(
|
|
|
167
167
|
// shell-side code ever mutating an entry out from under the lookup (the canvas
|
|
168
168
|
// runs cross-origin and can't reach it regardless — this is belt-and-braces).
|
|
169
169
|
export const TOOL_CURSORS: Record<Tool, string> = Object.freeze({
|
|
170
|
+
// feature-4 (browse/move split) — the browse tool is a pure native
|
|
171
|
+
// pass-through, so it shows the SYSTEM cursor: `default` over the shell
|
|
172
|
+
// chrome, and (special-cased in use-tool-mode.tsx) native element cursors
|
|
173
|
+
// — pointer over buttons, text over inputs — over the live mock, so the
|
|
174
|
+
// canvas reads as ALIVE. Never a forced custom glyph.
|
|
175
|
+
browse: 'default',
|
|
170
176
|
move: MOVE,
|
|
171
177
|
hand: HAND,
|
|
172
178
|
comment: COMMENT,
|