@1agh/maude 2.2.1 → 2.3.2
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/agents/auth.ts +241 -0
- package/apps/studio/acp/agents/catalog.ts +308 -0
- package/apps/studio/acp/agents/chat-key.ts +64 -0
- package/apps/studio/acp/agents/conformance.ts +1853 -0
- package/apps/studio/acp/agents/consent.ts +92 -0
- package/apps/studio/acp/agents/descriptor.ts +188 -0
- package/apps/studio/acp/agents/discover.ts +491 -0
- package/apps/studio/acp/agents/e2e-model.ts +58 -0
- package/apps/studio/acp/agents/health.ts +46 -0
- package/apps/studio/acp/agents/link-scan.ts +230 -0
- package/apps/studio/acp/agents/spawn.ts +164 -0
- package/apps/studio/acp/agents/state.ts +132 -0
- package/apps/studio/acp/ask-queue.ts +13 -4
- package/apps/studio/acp/bootstrap-brief.ts +16 -3
- package/apps/studio/acp/bridge.ts +709 -99
- package/apps/studio/acp/env.ts +43 -1
- package/apps/studio/acp/index.ts +428 -43
- package/apps/studio/acp/may-scope.ts +244 -21
- package/apps/studio/acp/policy/agent-home.ts +202 -0
- package/apps/studio/acp/policy/bridge-gate.ts +68 -0
- package/apps/studio/acp/policy/codex-home.ts +228 -0
- package/apps/studio/acp/policy/enforce.ts +620 -0
- package/apps/studio/acp/policy/gate-types.ts +41 -0
- package/apps/studio/acp/policy/launch-codex.ts +351 -0
- package/apps/studio/acp/policy/launch-copilot.ts +119 -0
- package/apps/studio/acp/policy/launch-gemini.ts +120 -0
- package/apps/studio/acp/policy/launch-opencode.ts +131 -0
- package/apps/studio/acp/policy/opencode-user-config.ts +240 -0
- package/apps/studio/acp/probe.ts +78 -14
- package/apps/studio/acp/transcript.ts +14 -0
- package/apps/studio/acp/write-scope.ts +62 -2
- package/apps/studio/annotations-layer.tsx +8 -0
- package/apps/studio/bin/_capture-init.js +5 -0
- package/apps/studio/bin/screenshot.sh +7 -1
- package/apps/studio/bridge/dgn-protocol.ts +3 -2
- package/apps/studio/canvas-shell.tsx +54 -0
- package/apps/studio/client/panels/ChatPanel.jsx +19 -4
- package/apps/studio/client/panels/PermissionPrompt.jsx +11 -6
- package/apps/studio/client/panels/SyncConsentDialog.jsx +4 -1
- package/apps/studio/client/panels/acp-runtime.js +95 -7
- package/apps/studio/client/v2/ai/Advanced.jsx +4 -3
- package/apps/studio/client/v2/ai/AgentNotice.jsx +138 -0
- package/apps/studio/client/v2/ai/AgentOffer.jsx +110 -0
- package/apps/studio/client/v2/ai/AgentPicker.jsx +121 -0
- package/apps/studio/client/v2/ai/Composer.jsx +4 -0
- package/apps/studio/client/v2/ai/ConnectSheet.jsx +13 -0
- package/apps/studio/client/v2/ai/Feed.jsx +8 -0
- package/apps/studio/client/v2/ai/NeedsYouSlot.jsx +24 -1
- package/apps/studio/client/v2/ai/Suggest.jsx +5 -1
- package/apps/studio/client/v2/ai/advanced-model.js +17 -6
- package/apps/studio/client/v2/ai/agents-model.js +333 -0
- package/apps/studio/client/v2/ai/agents-store.js +223 -0
- package/apps/studio/client/v2/ai/ai.css +63 -0
- package/apps/studio/client/v2/ai/needs-you.js +1 -1
- package/apps/studio/client/v2/empty/empty-host.jsx +11 -2
- package/apps/studio/client/v2/empty/use-empty-canvas.js +22 -7
- package/apps/studio/client/v2/fold/fold-store.js +1 -0
- package/apps/studio/client/v2/preview/preview-chrome-host.jsx +1 -0
- package/apps/studio/client/v2/settings/agent-keys.js +88 -0
- package/apps/studio/client/v2/settings/agents-card.jsx +408 -0
- package/apps/studio/client/v2/settings/connections-model.js +1 -1
- package/apps/studio/client/v2/settings/connections-section.jsx +4 -0
- package/apps/studio/client/v2/settings/settings-cards.js +2 -1
- package/apps/studio/client/v2/settings/settings-model.js +1 -0
- package/apps/studio/client/v2/settings/settings.css +7 -0
- package/apps/studio/client/v2/shell/served-routes.js +1 -0
- package/apps/studio/client/v2/undo/zoom-undo.jsx +19 -2
- package/apps/studio/cloud-build.ts +5 -0
- package/apps/studio/comments/reveal.ts +13 -0
- package/apps/studio/comments-overlay.tsx +36 -0
- package/apps/studio/dist/client.bundle.js +535 -535
- package/apps/studio/dist/comment-mount.js +2 -2
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/editing/annotation-count.ts +25 -0
- package/apps/studio/editing/empty-report.ts +8 -3
- package/apps/studio/editing/empty-reporter.tsx +10 -1
- package/apps/studio/generation/keys.ts +197 -11
- package/apps/studio/outbox/policy.ts +8 -2
- package/apps/studio/outbox/types.ts +5 -0
- package/apps/studio/routes/agents.ts +479 -0
- package/apps/studio/routes/index.ts +3 -0
- package/apps/studio/scripts/acp-conformance-local.ts +95 -0
- package/apps/studio/scripts/acp-e2e-local.ts +1026 -0
- package/apps/studio/server.ts +9 -0
- package/apps/studio/sync/index.ts +9 -1
- package/apps/studio/sync/writer-registry.ts +12 -0
- package/apps/studio/whats-new.json +19 -0
- package/apps/studio/ws.ts +3 -0
- package/cli/commands/codex.mjs +36 -2
- package/cli/lib/harness/codex-runtime.mjs +98 -11
- package/package.json +9 -8
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
//
|
|
8
8
|
// Undo and Redo run the same verbs as ⌘Z / ⇧⌘Z (`edit.undo` / `edit.redo` through the menu runner), so
|
|
9
9
|
// the stack that takes back an AI edit, a timeline cut and a move is the one these buttons use. The
|
|
10
|
-
// percentage is a button: it fits the canvas (⌘0), which is what a person asks of the number.
|
|
10
|
+
// percentage is a button: it fits the canvas (⌘0), which is what a person asks of the number. Last, behind
|
|
11
|
+
// a hairline, Report a bug (#228) — Help › Report a bug… (`help.report-bug`) from where the person already is.
|
|
11
12
|
|
|
12
13
|
import { modeCell } from '../../../bridge/mode-shows.ts';
|
|
13
14
|
import { StIcon } from '../../shell/icons.jsx';
|
|
@@ -29,7 +30,7 @@ export function zoomPctLabel(zoom, fit) {
|
|
|
29
30
|
return fit ? `Zoom to fit · ${zoomLabel(zoom)}` : zoomLabel(zoom);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
export function ZoomUndo({ zoom, fit = false, form = 'full', onUndo, onRedo, onFit }) {
|
|
33
|
+
export function ZoomUndo({ zoom, fit = false, form = 'full', onUndo, onRedo, onFit, onReportBug }) {
|
|
33
34
|
const full = form === 'full';
|
|
34
35
|
return (
|
|
35
36
|
<div
|
|
@@ -74,6 +75,22 @@ export function ZoomUndo({ zoom, fit = false, form = 'full', onUndo, onRedo, onF
|
|
|
74
75
|
>
|
|
75
76
|
{zoomPctLabel(zoom, fit)}
|
|
76
77
|
</button>
|
|
78
|
+
{/* #228 — Report a bug, one press away in every form of the island (it was three menus deep, in Help). */}
|
|
79
|
+
{onReportBug ? (
|
|
80
|
+
<>
|
|
81
|
+
<span className="sh-zoomundo-div" aria-hidden="true" />
|
|
82
|
+
<button
|
|
83
|
+
type="button"
|
|
84
|
+
className="icon-btn"
|
|
85
|
+
data-testid="zoom-undo-report-bug"
|
|
86
|
+
aria-label="Report a bug"
|
|
87
|
+
title="Report a bug"
|
|
88
|
+
onClick={onReportBug}
|
|
89
|
+
>
|
|
90
|
+
<StIcon name="bug" size={16} />
|
|
91
|
+
</button>
|
|
92
|
+
</>
|
|
93
|
+
) : null}
|
|
77
94
|
</div>
|
|
78
95
|
);
|
|
79
96
|
}
|
|
@@ -46,6 +46,10 @@ export const CLOUD_ELIMINATED = Object.freeze([
|
|
|
46
46
|
'acp/login-state.ts', // the `bash -c` native installer
|
|
47
47
|
'acp/probe.ts', // resolves + trusts a `claude` binary path
|
|
48
48
|
'acp/plugin-bootstrap.ts',
|
|
49
|
+
// Other ACP agents (DDR-252): discovery runs vendor binaries, connect runs the conformance probe and
|
|
50
|
+
// vendor sign-in, the key routes hold BYOK chat keys. All of it is `/_api/agents`; stubbing the
|
|
51
|
+
// route module takes acp/agents/* and acp/policy/* out of the graph with it.
|
|
52
|
+
'routes/agents.ts',
|
|
49
53
|
// Shell probes — `$SHELL -ilc "command -v …"`. A login shell on a server is
|
|
50
54
|
// an execution surface with a tenant-shaped input near it.
|
|
51
55
|
'readiness.ts',
|
|
@@ -80,6 +84,7 @@ export const CLOUD_ELIMINATED = Object.freeze([
|
|
|
80
84
|
*/
|
|
81
85
|
export const CLOUD_FORBIDDEN_STRINGS = Object.freeze([
|
|
82
86
|
'claude-agent-acp', // the ACP adapter package
|
|
87
|
+
'@agentclientprotocol/codex-acp', // the Codex ACP adapter (DDR-252)
|
|
83
88
|
'-ilc', // the login-shell probe
|
|
84
89
|
'application/vnd.github+json', // the REST client that speaks for a user's account
|
|
85
90
|
'generativelanguage.googleapis.com', // BYOK image generation
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// apps/studio/comments/reveal.ts — #229: "bring this comment into view".
|
|
2
|
+
//
|
|
3
|
+
// The comments overlay knows the comment (where its pin sits, which artboard it is on); canvas-shell.tsx
|
|
4
|
+
// holds the camera. The overlay asks over a document event so neither imports the other.
|
|
5
|
+
|
|
6
|
+
export const COMMENT_REVEAL_EVENT = 'cm:reveal';
|
|
7
|
+
|
|
8
|
+
export interface CommentRevealDetail {
|
|
9
|
+
/** The artboard the comment is on, when known (Pages turns to its page first). */
|
|
10
|
+
artboard: string | null;
|
|
11
|
+
/** Where the comment sits NOW, client px — measured by the camera's owner after any page turn. */
|
|
12
|
+
locate: () => { x: number; y: number; w: number; h: number } | null;
|
|
13
|
+
}
|
|
@@ -78,6 +78,7 @@ import {
|
|
|
78
78
|
import { handleOfName } from './comments/mentions.ts';
|
|
79
79
|
import { mineIdsOf, restampMine, viewerFor } from './comments/mine-stamp.ts';
|
|
80
80
|
import { committerRows, type MentionRow } from './comments/people.ts';
|
|
81
|
+
import { COMMENT_REVEAL_EVENT, type CommentRevealDetail } from './comments/reveal.ts';
|
|
81
82
|
import { mmAtArtboardPx, trimOfPrint, videoPinVisible, whereOf } from './comments/where.ts';
|
|
82
83
|
import { resolveByDomPath } from './dom-selection.ts';
|
|
83
84
|
import { frameCaf, frameRaf } from './frame-clock.ts';
|
|
@@ -698,9 +699,24 @@ export function CommentsOverlay(): React.ReactNode {
|
|
|
698
699
|
// Keep the latest comments list reachable from the message handler without
|
|
699
700
|
// re-attaching the listener on every comments mutation.
|
|
700
701
|
const commentsRef = useRef<OverlayComment[]>(comments);
|
|
702
|
+
// #229 — the thread the shell asked to see, until its comment is known and its place has been asked for
|
|
703
|
+
const revealWantRef = useRef<string | null>(null);
|
|
704
|
+
const revealWanted = useCallback(() => {
|
|
705
|
+
const id = revealWantRef.current;
|
|
706
|
+
if (!id || typeof document === 'undefined') return;
|
|
707
|
+
const c = commentsRef.current.find((x) => x.id === id);
|
|
708
|
+
if (!c) return;
|
|
709
|
+
revealWantRef.current = null;
|
|
710
|
+
// next frame: the pin and the selection this focus made are laid out by then
|
|
711
|
+
frameRaf(() => requestCommentReveal(c));
|
|
712
|
+
}, []);
|
|
701
713
|
/** the comment / reply ids the shell's last `comments-set` marked as the viewer's */
|
|
702
714
|
const mineIdsRef = useRef<ReadonlySet<string>>(new Set());
|
|
703
715
|
commentsRef.current = comments;
|
|
716
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: `comments` arriving is the trigger
|
|
717
|
+
useEffect(() => {
|
|
718
|
+
revealWanted();
|
|
719
|
+
}, [comments, revealWanted]);
|
|
704
720
|
|
|
705
721
|
// Phase 8 Task 3 — when a collab room is connected, the Y.Array of comments
|
|
706
722
|
// is the live source of truth. observe() fires on every remote mutation
|
|
@@ -762,6 +778,10 @@ export function CommentsOverlay(): React.ReactNode {
|
|
|
762
778
|
else setReplyFocus(0);
|
|
763
779
|
const target = id ? commentsRef.current.find((c) => c.id === id) : undefined;
|
|
764
780
|
mirrorSelection(target);
|
|
781
|
+
// #229 — and bring its place into view (a newly opened tab has no comments yet: asked again
|
|
782
|
+
// when they arrive, below)
|
|
783
|
+
revealWantRef.current = id;
|
|
784
|
+
revealWanted();
|
|
765
785
|
}
|
|
766
786
|
};
|
|
767
787
|
window.addEventListener('message', onMessage);
|
|
@@ -1450,6 +1470,22 @@ export function locateComment(comment: OverlayComment): {
|
|
|
1450
1470
|
return { pos, missing: anchored };
|
|
1451
1471
|
}
|
|
1452
1472
|
|
|
1473
|
+
/** #229 — the overlay asks the canvas (canvas-shell.tsx, which holds the camera) to bring a comment into view. */
|
|
1474
|
+
/** The artboard a comment is on: its v2 anchor, else the `data-dc-screen` in its element selector. */
|
|
1475
|
+
export function commentArtboard(c: OverlayComment): string | null {
|
|
1476
|
+
const own = c.artboard;
|
|
1477
|
+
if (typeof own === 'string' && own) return own;
|
|
1478
|
+
return c.selector?.match(/data-dc-screen="([^"]+)"/)?.[1] ?? null;
|
|
1479
|
+
}
|
|
1480
|
+
export function requestCommentReveal(comment: OverlayComment): void {
|
|
1481
|
+
if (typeof document === 'undefined') return;
|
|
1482
|
+
const detail: CommentRevealDetail = {
|
|
1483
|
+
artboard: commentArtboard(comment),
|
|
1484
|
+
locate: () => locateComment(comment).pos,
|
|
1485
|
+
};
|
|
1486
|
+
document.dispatchEvent(new CustomEvent(COMMENT_REVEAL_EVENT, { detail }));
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1453
1489
|
/** The one letter a pin wears: the author's initial — the letter the Comments list's avatar wears too. */
|
|
1454
1490
|
export function pinInitial(author: string): string {
|
|
1455
1491
|
return authorFace(author).letter;
|