@acryldev/workspace 0.2.2 → 0.2.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.
@@ -19,6 +19,8 @@ export interface KnownAgent {
19
19
  readonly yoloEnv?: Readonly<Record<string, string>>;
20
20
  /** Where the agent's install instructions live. */
21
21
  readonly homepageUrl: string;
22
+ /** The one command that installs it, shown when the executable is not on PATH (only agents that have a single npm install). */
23
+ readonly installCommand?: string;
22
24
  /** How this agent reports what it is doing, when it can (hooks): its own launch settings carry the reporting. */
23
25
  readonly statusHooks?: 'claude';
24
26
  /** The letter and colour of its tab icon when no drawn mark exists. */
@@ -40,6 +42,8 @@ export declare const KNOWN_AGENTS: readonly [{
40
42
  readonly yoloEnv?: Readonly<Record<string, string>>;
41
43
  /** Where the agent's install instructions live. */
42
44
  readonly homepageUrl: string;
45
+ /** The one command that installs it, shown when the executable is not on PATH (only agents that have a single npm install). */
46
+ readonly installCommand?: string;
43
47
  /** The letter and colour of its tab icon when no drawn mark exists. */
44
48
  readonly badge: {
45
49
  readonly letter: string;
@@ -3,11 +3,13 @@
3
3
  * ACRYL's design, and dismissible; the Models settings page stays the place for every other provider.
4
4
  */
5
5
  import type { ModelConnectControl } from './model-connect.ts';
6
+ /** Set on the page by the sign-in plugin's first-run dialog while it is open (plugins/sign-in, ConnectChoice.tsx); that dialog asks for the key itself. */
7
+ export declare const CONNECT_DIALOG_ATTRIBUTE = "data-acryl-connect-dialog";
6
8
  export interface ModelConnectProps {
7
9
  readonly control: ModelConnectControl;
8
10
  }
9
11
  /**
10
12
  * @param props.control - the workspace's model-connection controller.
11
- * @returns the card while no model can serve a request, and nothing otherwise.
13
+ * @returns the card while no model can serve a request and the first-run dialog is not open, and nothing otherwise.
12
14
  */
13
15
  export declare function ModelConnect({ control }: ModelConnectProps): import("react").JSX.Element | null;
package/lib/ui.js CHANGED
@@ -10396,13 +10396,14 @@ function isSearchShortcut(event, mac) {
10396
10396
  }
10397
10397
  //#endregion
10398
10398
  //#region src/agents/known-agents.ts
10399
- const agent = (id, label, command, homepageUrl, color, yoloArgs = [], yoloEnv) => ({
10399
+ const agent = (id, label, command, homepageUrl, color, yoloArgs = [], yoloEnv, installCommand) => ({
10400
10400
  id,
10401
10401
  label,
10402
10402
  command,
10403
10403
  homepageUrl,
10404
10404
  yoloArgs,
10405
10405
  ...yoloEnv === void 0 ? {} : { yoloEnv },
10406
+ ...installCommand === void 0 ? {} : { installCommand },
10406
10407
  badge: {
10407
10408
  letter: [...label][0]?.toUpperCase() ?? "?",
10408
10409
  color
@@ -10411,15 +10412,15 @@ const agent = (id, label, command, homepageUrl, color, yoloArgs = [], yoloEnv) =
10411
10412
  /** In the order the lists show them. Ids of agents that shipped earlier keep their spelling. */
10412
10413
  const KNOWN_AGENTS = [
10413
10414
  {
10414
- ...agent("claude", "Claude", "claude", "https://code.claude.com/docs", "#d97757", ["--dangerously-skip-permissions"]),
10415
+ ...agent("claude", "Claude", "claude", "https://code.claude.com/docs", "#d97757", ["--dangerously-skip-permissions"], void 0, "npm i -g @anthropic-ai/claude-code"),
10415
10416
  statusHooks: "claude"
10416
10417
  },
10417
- agent("codex", "Codex", "codex", "https://github.com/openai/codex", "#10a37f", ["--dangerously-bypass-approvals-and-sandbox"]),
10418
+ agent("codex", "Codex", "codex", "https://github.com/openai/codex", "#10a37f", ["--dangerously-bypass-approvals-and-sandbox"], void 0, "npm i -g @openai/codex"),
10418
10419
  agent("grok", "Grok", "grok", "https://x.ai/cli", "#94a3b8", ["--permission-mode", "bypassPermissions"]),
10419
10420
  agent("copilot", "GitHub Copilot", "copilot", "https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli", "#a78bfa", ["--yolo"]),
10420
10421
  agent("opencode", "OpenCode", "opencode", "https://opencode.ai/docs/cli/", "#94a3b8"),
10421
10422
  agent("ante", "Ante", "ante", "https://github.com/AntigmaLabs/ante-preview", "#fb923c", ["--yolo"]),
10422
- agent("pi", "Pi", "pi", "https://pi.dev", "#a78bfa"),
10423
+ agent("pi", "Pi", "pi", "https://pi.dev", "#a78bfa", [], void 0, "npm i -g @earendil-works/pi-coding-agent"),
10423
10424
  agent("omp", "OMP", "omp", "https://omp.sh", "#a78bfa"),
10424
10425
  agent("gemini", "Gemini", "gemini", "https://github.com/google-gemini/gemini-cli", "#4285f4", ["--yolo"]),
10425
10426
  agent("antigravity", "Antigravity", "agy", "https://antigravity.google/docs/cli-overview", "#4285f4", ["--dangerously-skip-permissions"]),