veryfront 0.1.1122 → 0.1.1123
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/esm/deno.js +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.js +5 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-lifecycle.js +1 -12
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts +38 -0
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts.map +1 -0
- package/esm/src/agent/hosted/cloud-agent-chat-execution.js +349 -0
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts +80 -0
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts.map +1 -0
- package/esm/src/agent/hosted/cloud-agent-child-tools.js +280 -0
- package/esm/src/agent/hosted/cloud-agent-config.d.ts +69 -0
- package/esm/src/agent/hosted/cloud-agent-config.d.ts.map +1 -0
- package/esm/src/agent/hosted/cloud-agent-config.js +129 -0
- package/esm/src/agent/hosted/cloud-agent-paths.d.ts +42 -0
- package/esm/src/agent/hosted/cloud-agent-paths.d.ts.map +1 -0
- package/esm/src/agent/hosted/cloud-agent-paths.js +117 -0
- package/esm/src/agent/hosted/cloud-agent-provider-bootstrap.d.ts +49 -0
- package/esm/src/agent/hosted/cloud-agent-provider-bootstrap.d.ts.map +1 -0
- package/esm/src/agent/hosted/cloud-agent-provider-bootstrap.js +96 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.js +1 -12
- package/esm/src/agent/hosted/runtime-request-config.js +2 -2
- package/esm/src/agent/hosted/stream-finalization.d.ts.map +1 -1
- package/esm/src/agent/hosted/stream-finalization.js +2 -26
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts +11 -93
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +8 -901
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.js +3 -0
- package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -1
- package/esm/src/agent/runtime/chat-stream-handler.js +1 -28
- package/esm/src/agent/streaming/stream-outcome.d.ts +30 -0
- package/esm/src/agent/streaming/stream-outcome.d.ts.map +1 -0
- package/esm/src/agent/streaming/stream-outcome.js +62 -0
- package/esm/src/agent/types.d.ts +3 -0
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/eval/studio.d.ts +1 -1
- package/esm/src/html/styles-builder/plugin-loader.d.ts.map +1 -1
- package/esm/src/html/styles-builder/plugin-loader.js +4 -2
- package/esm/src/modules/server/classify.d.ts +54 -0
- package/esm/src/modules/server/classify.d.ts.map +1 -0
- package/esm/src/modules/server/classify.js +50 -0
- package/esm/src/modules/server/fs-probe.d.ts +14 -0
- package/esm/src/modules/server/fs-probe.d.ts.map +1 -0
- package/esm/src/modules/server/fs-probe.js +17 -0
- package/esm/src/modules/server/module-batch-handler.d.ts.map +1 -1
- package/esm/src/modules/server/module-batch-handler.js +31 -45
- package/esm/src/modules/server/module-server.d.ts.map +1 -1
- package/esm/src/modules/server/module-server.js +77 -93
- package/esm/src/modules/server/module-transform.d.ts +73 -0
- package/esm/src/modules/server/module-transform.d.ts.map +1 -0
- package/esm/src/modules/server/module-transform.js +64 -0
- package/esm/src/modules/server/ssr-import-rewriter.d.ts +1 -1
- package/esm/src/modules/server/ssr-import-rewriter.d.ts.map +1 -1
- package/esm/src/observability/error-collector.d.ts.map +1 -1
- package/esm/src/observability/error-collector.js +4 -11
- package/esm/src/observability/log-buffer.d.ts.map +1 -1
- package/esm/src/observability/log-buffer.js +4 -11
- package/esm/src/observability/request-profiler.d.ts +4 -0
- package/esm/src/observability/request-profiler.d.ts.map +1 -1
- package/esm/src/observability/request-profiler.js +9 -4
- package/esm/src/proxy/server-timing.d.ts.map +1 -1
- package/esm/src/proxy/server-timing.js +2 -14
- package/esm/src/react/components/chat/agent-card.d.ts +2 -3
- package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-card.js +3 -12
- package/esm/src/react/components/chat/agent-picker-context.d.ts +2 -3
- package/esm/src/react/components/chat/agent-picker-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-picker-context.js +3 -13
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +2 -6
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachment-pill.js +3 -15
- package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts +2 -12
- package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachments-panel.js +3 -21
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/branch-picker.js +2 -11
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inline-citation.js +2 -11
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-actions.js +2 -11
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-feedback.js +2 -11
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts +2 -3
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/reasoning.js +3 -12
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts +2 -3
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sidebar.js +4 -22
- package/esm/src/react/components/chat/chat/components/sources.d.ts +2 -3
- package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sources.js +3 -12
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +2 -6
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/step-indicator.js +3 -15
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +2 -3
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.js +3 -12
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-message-list.js +2 -11
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/chat-context.js +3 -12
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/composer-context.js +3 -12
- package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/conversations-context.js +3 -12
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/message-context.js +3 -12
- package/esm/src/react/components/chat/chat-actions.d.ts +2 -6
- package/esm/src/react/components/chat/chat-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-actions.js +3 -15
- package/esm/src/react/components/chat/model-selector.d.ts +2 -6
- package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
- package/esm/src/react/components/chat/model-selector.js +3 -15
- package/esm/src/react/components/create-strict-context.d.ts +44 -0
- package/esm/src/react/components/create-strict-context.d.ts.map +1 -0
- package/esm/src/react/components/create-strict-context.js +56 -0
- package/esm/src/react/components/ui/app-shell.d.ts +2 -2
- package/esm/src/react/components/ui/app-shell.d.ts.map +1 -1
- package/esm/src/react/components/ui/app-shell.js +3 -7
- package/esm/src/react/components/ui/color-mode.d.ts +2 -2
- package/esm/src/react/components/ui/color-mode.d.ts.map +1 -1
- package/esm/src/react/components/ui/color-mode.js +3 -11
- package/esm/src/react/components/ui/command.d.ts.map +1 -1
- package/esm/src/react/components/ui/command.js +2 -7
- package/esm/src/react/components/ui/select.d.ts.map +1 -1
- package/esm/src/react/components/ui/select.js +2 -7
- package/esm/src/react/components/ui/tabs.d.ts.map +1 -1
- package/esm/src/react/components/ui/tabs.js +3 -4
- package/esm/src/runs/schemas.d.ts +9 -9
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +79 -106
- package/esm/src/server/reload-notifier.d.ts +0 -1
- package/esm/src/server/reload-notifier.d.ts.map +1 -1
- package/esm/src/server/reload-notifier.js +7 -25
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +1 -1
- package/esm/src/utils/base64url.d.ts +9 -1
- package/esm/src/utils/base64url.d.ts.map +1 -1
- package/esm/src/utils/base64url.js +25 -11
- package/esm/src/utils/index.d.ts +2 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +2 -1
- package/esm/src/utils/subscriber-set.d.ts +19 -0
- package/esm/src/utils/subscriber-set.d.ts.map +1 -0
- package/esm/src/utils/subscriber-set.js +38 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/workflow/claude-code/websocket-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/websocket-publisher.js +8 -15
- package/esm/src/workflow/schemas/workflow.schema.d.ts +4 -4
- package/package.json +5 -5
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* createStrictContext: factory for React context + strict-use hook pairs.
|
|
3
|
+
*
|
|
4
|
+
* Eliminates the repeated "read context, throw if missing" pattern across
|
|
5
|
+
* `chat/` and `ui/` components. Every compound component that wraps a
|
|
6
|
+
* `React.Context<T | null>` and exposes a throwing hook can use this factory
|
|
7
|
+
* instead of hand-writing the same 9-line block.
|
|
8
|
+
*
|
|
9
|
+
* @module react/components/create-strict-context
|
|
10
|
+
*/
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { COMPONENT_ERROR } from "../../errors/error-registry.js";
|
|
13
|
+
/**
|
|
14
|
+
* Create a `React.Context<T | null>` together with a hook that throws a
|
|
15
|
+
* `COMPONENT_ERROR` when the context is absent.
|
|
16
|
+
*
|
|
17
|
+
* @param hookName Subject phrase used in the error detail, e.g. `"useFoo"` or
|
|
18
|
+
* `"Foo parts"`. Combined as: `"${hookName} must be used within ${parentHint}"`.
|
|
19
|
+
* @param parentHint Completion of "…must be used within …", e.g. `"a <FooProvider>"`.
|
|
20
|
+
* @returns Readonly tuple `[Context, useStrictHook]`.
|
|
21
|
+
* - `Context`: the raw `React.Context`. Expose its `.Provider` via a named
|
|
22
|
+
* alias (e.g. `export const FooProvider = FooContext.Provider`). Pass the
|
|
23
|
+
* context value through a memoised variable to satisfy the inline-context
|
|
24
|
+
* lint ratchet.
|
|
25
|
+
* - `useStrictHook`: throws `COMPONENT_ERROR` when called outside a provider.
|
|
26
|
+
* Export it under the canonical hook name (e.g. `export { useStrictHook as useFoo }`
|
|
27
|
+
* or rename directly in the destructuring).
|
|
28
|
+
*
|
|
29
|
+
* Optional read path: where a `null`-returning variant is needed, write a
|
|
30
|
+
* three-line wrapper, `return React.useContext(FooContext)`, using the
|
|
31
|
+
* returned `Context` directly. This keeps the factory focused on the one
|
|
32
|
+
* repeated pattern without bloating its API.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const [FooContext, useFoo] = createStrictContext<FooContextValue>(
|
|
37
|
+
* "useFoo",
|
|
38
|
+
* "a <FooProvider>",
|
|
39
|
+
* );
|
|
40
|
+
* export const FooContextProvider = FooContext.Provider;
|
|
41
|
+
* export { useFoo };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export function createStrictContext(hookName, parentHint) {
|
|
45
|
+
const Context = React.createContext(null);
|
|
46
|
+
function useStrictContext() {
|
|
47
|
+
const value = React.useContext(Context);
|
|
48
|
+
if (value === null) {
|
|
49
|
+
throw COMPONENT_ERROR.create({
|
|
50
|
+
detail: `${hookName} must be used within ${parentHint}`,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return [Context, useStrictContext];
|
|
56
|
+
}
|
|
@@ -33,8 +33,9 @@ interface AppShellContextValue {
|
|
|
33
33
|
/** Stable DOM id for a side's sidebar (for `aria-controls`). */
|
|
34
34
|
sidebarId: (side: AppShellSide) => string;
|
|
35
35
|
}
|
|
36
|
+
declare const useAppShell: () => AppShellContextValue;
|
|
36
37
|
/** Access the enclosing {@link AppShell}'s state (external triggers, etc.). */
|
|
37
|
-
export
|
|
38
|
+
export { useAppShell };
|
|
38
39
|
/** Per-side visibility map. */
|
|
39
40
|
export interface AppShellOpenState {
|
|
40
41
|
left?: boolean;
|
|
@@ -152,5 +153,4 @@ export declare const AppShell: typeof AppShellRoot & {
|
|
|
152
153
|
Content: typeof AppShellContent;
|
|
153
154
|
Trigger: typeof AppShellTrigger;
|
|
154
155
|
};
|
|
155
|
-
export {};
|
|
156
156
|
//# sourceMappingURL=app-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/app-shell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sour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a,EAAE,OAAO,qBAAqB,CAAC;IAC5C,cAAc,EAAE,OAAO,sBAAsB,CAAC;IAC9C,aAAa,EAAE,OAAO,qBAAqB,CAAC;IAC5C,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,OAAO,EAAE,OAAO,eAAe,CAAC;IAChC,OAAO,EAAE,OAAO,eAAe,CAAC;CAUhC,CAAC"}
|
|
@@ -18,20 +18,16 @@
|
|
|
18
18
|
* @module react/components/ui/app-shell
|
|
19
19
|
*/
|
|
20
20
|
import * as React from "react";
|
|
21
|
+
import { createStrictContext } from "../create-strict-context.js";
|
|
21
22
|
import { cx as cn } from "./cva.js";
|
|
22
23
|
import { DesignTokenStyle } from "./tokens.js";
|
|
23
24
|
import { UI_SCOPE_ATTRS } from "./design-tokens.js";
|
|
24
25
|
import { PanelLeftIcon, PanelRightIcon } from "./icons/index.js";
|
|
25
26
|
import { Button } from "./button.js";
|
|
26
27
|
const FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
27
|
-
const AppShellContext =
|
|
28
|
+
const [AppShellContext, useAppShell] = createStrictContext("AppShell parts", "<AppShell>");
|
|
28
29
|
/** Access the enclosing {@link AppShell}'s state (external triggers, etc.). */
|
|
29
|
-
export
|
|
30
|
-
const ctx = React.useContext(AppShellContext);
|
|
31
|
-
if (!ctx)
|
|
32
|
-
throw new Error("AppShell parts must be used within <AppShell>");
|
|
33
|
-
return ctx;
|
|
34
|
-
}
|
|
30
|
+
export { useAppShell };
|
|
35
31
|
/** Reactive `< sm` viewport check (matches Tailwind `max-sm`). SSR-safe. */
|
|
36
32
|
function useIsMobile() {
|
|
37
33
|
const [isMobile, setIsMobile] = React.useState(false);
|
|
@@ -7,6 +7,8 @@ interface ColorModeContextValue {
|
|
|
7
7
|
setMode: (mode: ColorMode) => void;
|
|
8
8
|
toggleMode: () => void;
|
|
9
9
|
}
|
|
10
|
+
declare const useColorMode: () => ColorModeContextValue;
|
|
11
|
+
export { useColorMode };
|
|
10
12
|
export interface ColorModeProviderProps {
|
|
11
13
|
children: React.ReactNode;
|
|
12
14
|
defaultMode?: ColorMode;
|
|
@@ -17,7 +19,6 @@ export declare function ColorModeProvider({ children, defaultMode, storageKey, a
|
|
|
17
19
|
export declare namespace ColorModeProvider {
|
|
18
20
|
var displayName: string;
|
|
19
21
|
}
|
|
20
|
-
export declare function useColorMode(): ColorModeContextValue;
|
|
21
22
|
/**
|
|
22
23
|
* Non-throwing variant — returns `null` when there is no `ColorModeProvider`.
|
|
23
24
|
* Use for components that should render standalone (e.g. a `CodeBlock` dropped
|
|
@@ -42,5 +43,4 @@ export declare namespace ColorModeScript {
|
|
|
42
43
|
* Simple toggle button for color mode.
|
|
43
44
|
*/
|
|
44
45
|
export declare const ColorModeToggle: any;
|
|
45
|
-
export {};
|
|
46
46
|
//# sourceMappingURL=color-mode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-mode.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/color-mode.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAC7C,KAAK,iBAAiB,GAAG,OAAO,GAAG,MAAM,CAAC;AAE1C,UAAU,qBAAqB;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"color-mode.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/color-mode.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAA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StrictContext } from "../create-strict-context.js";
|
|
10
10
|
import { jsonForInlineScript } from "../../../security/client/html-sanitizer.js";
|
|
11
|
-
const ColorModeContext =
|
|
11
|
+
const [ColorModeContext, useColorMode] = createStrictContext("useColorMode", "a ColorModeProvider");
|
|
12
|
+
export { useColorMode };
|
|
12
13
|
function getSystemPreference() {
|
|
13
14
|
if (typeof globalThis === "undefined")
|
|
14
15
|
return "light";
|
|
@@ -68,15 +69,6 @@ export function ColorModeProvider({ children, defaultMode = "system", storageKey
|
|
|
68
69
|
return (React.createElement(ColorModeContext.Provider, { value: value }, children));
|
|
69
70
|
}
|
|
70
71
|
ColorModeProvider.displayName = "ColorModeProvider";
|
|
71
|
-
export function useColorMode() {
|
|
72
|
-
const context = React.useContext(ColorModeContext);
|
|
73
|
-
if (!context) {
|
|
74
|
-
throw COMPONENT_ERROR.create({
|
|
75
|
-
detail: "useColorMode must be used within a ColorModeProvider",
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return context;
|
|
79
|
-
}
|
|
80
72
|
/**
|
|
81
73
|
* Non-throwing variant — returns `null` when there is no `ColorModeProvider`.
|
|
82
74
|
* Use for components that should render standalone (e.g. a `CodeBlock` dropped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/command.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/command.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,kEAAkE;AAClE,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,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BAAgB,eAAe,CAC7B,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAC7D,KAAK,CAAC,YAAY,CAUpB"}
|
|
@@ -12,16 +12,11 @@
|
|
|
12
12
|
* @module react/components/ui/command
|
|
13
13
|
*/
|
|
14
14
|
import * as React from "react";
|
|
15
|
+
import { createStrictContext } from "../create-strict-context.js";
|
|
15
16
|
import { cx as cn } from "./cva.js";
|
|
16
17
|
import { SearchIcon, XIcon } from "./icons/index.js";
|
|
17
18
|
import { Dialog, DialogContent, DialogTitle } from "./dialog.js";
|
|
18
|
-
const CommandContext =
|
|
19
|
-
function useCommand() {
|
|
20
|
-
const ctx = React.useContext(CommandContext);
|
|
21
|
-
if (!ctx)
|
|
22
|
-
throw new Error("Command parts must be used within <Command>");
|
|
23
|
-
return ctx;
|
|
24
|
-
}
|
|
19
|
+
const [CommandContext, useCommand] = createStrictContext("Command parts", "<Command>");
|
|
25
20
|
/** Command root — owns the filter query and the item registry. */
|
|
26
21
|
export function Command({ className, children, ...props }) {
|
|
27
22
|
const [search, setSearch] = React.useState("");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAIlD,QAAA,MAAM,qBAAqB;;;;;yBAoB1B,CAAC;AAgBF,oCAAoC;AACpC,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC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CACpB;AAED,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CA6BtC;AAED,qCAAqC;AACrC,wBAAgB,WAAW,CACzB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC5D,KAAK,CAAC,YAAY,CAUpB;AAED,qCAAqC;AACrC,wBAAgB,eAAe,CAC7B,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC,KAAK,CAAC,YAAY,CAEpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACzE,KAAK,CAAC,YAAY,CAEpB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* @module react/components/ui/select
|
|
13
13
|
*/
|
|
14
14
|
import * as React from "react";
|
|
15
|
+
import { createStrictContext } from "../create-strict-context.js";
|
|
15
16
|
import { cx as cn } from "./cva.js";
|
|
16
17
|
import { cva } from "./cva.js";
|
|
17
18
|
import { CheckIcon, ChevronDownIcon } from "./icons/index.js";
|
|
@@ -34,13 +35,7 @@ const selectTriggerVariants = cva([
|
|
|
34
35
|
},
|
|
35
36
|
defaultVariants: { size: "lg" },
|
|
36
37
|
});
|
|
37
|
-
const SelectContext =
|
|
38
|
-
function useSelect() {
|
|
39
|
-
const ctx = React.useContext(SelectContext);
|
|
40
|
-
if (!ctx)
|
|
41
|
-
throw new Error("Select components must be used within <Select>");
|
|
42
|
-
return ctx;
|
|
43
|
-
}
|
|
38
|
+
const [SelectContext, useSelect] = createStrictContext("Select components", "<Select>");
|
|
44
39
|
/** Select root — owns the selected value, open state, and label registry. */
|
|
45
40
|
export function Select({ children, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, }) {
|
|
46
41
|
const [internalValue, setInternalValue] = React.useState(defaultValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAUjC,0DAA0D;AAC1D,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACvF,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,4EAA4E;AAC5E,eAAO,MAAM,IAAI,KAsBf,CAAC;AAGH,sCAAsC;AACtC,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,KA6CpB,CAAC"}
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
* @module react/components/ui/tabs
|
|
18
18
|
*/
|
|
19
19
|
import * as React from "react";
|
|
20
|
+
import { createStrictContext } from "../create-strict-context.js";
|
|
20
21
|
import { cx as cn } from "./cva.js";
|
|
21
|
-
const TabsContext =
|
|
22
|
+
const [TabsContext, useTabs] = createStrictContext("TabsItem", "Tabs");
|
|
22
23
|
/** Tablist container — manages active state and passes context to items. */
|
|
23
24
|
export const Tabs = React.forwardRef(function Tabs({ value, onValueChange, size = "default", className, children, ...props }, ref) {
|
|
24
25
|
return (React.createElement(TabsContext.Provider, { value: { value, onValueChange, size } },
|
|
@@ -34,9 +35,7 @@ Tabs.displayName = "Tabs";
|
|
|
34
35
|
* consumer-supplied handler adds to — never overrides — selection.
|
|
35
36
|
*/
|
|
36
37
|
export const TabsItem = React.forwardRef(function TabsItem({ value, href, children, className, onClick, ...props }, ref) {
|
|
37
|
-
const ctx =
|
|
38
|
-
if (!ctx)
|
|
39
|
-
throw new Error("TabsItem must be used within Tabs");
|
|
38
|
+
const ctx = useTabs();
|
|
40
39
|
const isActive = ctx.value === value;
|
|
41
40
|
const Comp = (href ? "a" : "button");
|
|
42
41
|
return (React.createElement(Comp, { ref: ref, ...(href ? { href } : { type: "button" }), ...props, role: "tab", "aria-selected": isActive, onClick: (e) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InferSchema } from "../extensions/schema/index.js";
|
|
2
2
|
export declare const getRunKindSchema: () => import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
3
|
-
export declare const getRunStatusSchema: () => import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
3
|
+
export declare const getRunStatusSchema: () => import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
4
4
|
export declare const getRunOwnerSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
5
5
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
6
6
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -15,7 +15,7 @@ export declare const getRunExecutionErrorSchema: () => import("../internal-agent
|
|
|
15
15
|
export declare const getRunSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
16
16
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
17
17
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
18
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
18
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
19
19
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
20
20
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
21
21
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -60,7 +60,7 @@ export declare const getCreateRunResponseSchema: () => import("../internal-agent
|
|
|
60
60
|
run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
61
61
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
62
62
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
63
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
63
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
64
64
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
65
65
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
66
66
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -105,7 +105,7 @@ export declare const getCancelRunResponseSchema: () => import("../internal-agent
|
|
|
105
105
|
run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
106
106
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
107
107
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
108
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
108
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
109
109
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
110
110
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
111
111
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -175,7 +175,7 @@ export declare const getRunListSchema: () => import("../internal-agents/schema.j
|
|
|
175
175
|
data: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
176
176
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
177
177
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
178
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
178
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
179
179
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
180
180
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
181
181
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -225,7 +225,7 @@ export declare const getRunListSchema: () => import("../internal-agents/schema.j
|
|
|
225
225
|
export declare const RunSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
226
226
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
227
227
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
228
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
228
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
229
229
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
230
230
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
231
231
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -271,7 +271,7 @@ export declare const CreateRunResponseSchema: import("../internal-agents/schema.
|
|
|
271
271
|
run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
272
272
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
273
273
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
274
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
274
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
275
275
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
276
276
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
277
277
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -317,7 +317,7 @@ export declare const CancelRunResponseSchema: import("../internal-agents/schema.
|
|
|
317
317
|
run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
318
318
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
319
319
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
320
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
320
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
321
321
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
322
322
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
323
323
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -384,7 +384,7 @@ export declare const RunListSchema: import("../internal-agents/schema.js").Schem
|
|
|
384
384
|
data: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
385
385
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
386
386
|
kind: import("../internal-agents/schema.js").Schema<"eval" | "agent" | "task" | "workflow">;
|
|
387
|
-
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "
|
|
387
|
+
status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
|
|
388
388
|
owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
389
389
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
390
390
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-candidates.generated.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/dev/framework-candidates.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"framework-candidates.generated.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/dev/framework-candidates.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EA28ajD,CAAC"}
|