Merge main into proxy branch (formatting and docs)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-03-13 12:09:59 -07:00
parent 3c4035097a
commit 7314aedc71
712 changed files with 13408 additions and 13322 deletions

View File

@@ -1,6 +1,6 @@
import type { ActionInvocation, ActionMetadata } from '@yaakapp-internal/proxy-lib';
import { useEffect, useState } from 'react';
import { rpc } from '../lib/rpc';
import type { ActionInvocation, ActionMetadata } from "@yaakapp-internal/proxy-lib";
import { useEffect, useState } from "react";
import { rpc } from "../lib/rpc";
/** Look up metadata for a specific action invocation. */
export function useActionMetadata(action: ActionInvocation): ActionMetadata | null {
@@ -23,7 +23,7 @@ let cachedActions: [ActionInvocation, ActionMetadata][] | null = null;
/** Fetch and cache all action metadata. */
async function getActions(): Promise<[ActionInvocation, ActionMetadata][]> {
if (!cachedActions) {
const { actions } = await rpc('list_actions', {});
const { actions } = await rpc("list_actions", {});
cachedActions = actions;
}
return cachedActions;