veryfront 0.1.118 → 0.1.120
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/src/agent/runtime/input-utils.js +1 -1
- package/esm/src/agent/types.js +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.js +1 -1
- package/esm/src/react/components/ai/chat/contexts/chat-context.js +1 -1
- package/esm/src/react/components/ai/chat/contexts/composer-context.js +1 -1
- package/esm/src/react/components/ai/chat/contexts/message-context.js +1 -1
- package/esm/src/react/components/ai/chat/contexts/thread-list-context.js +1 -1
- package/esm/src/rendering/rsc/client-hydrator.ts +2 -2
- package/esm/src/routing/client/page-loader.js +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/agent/runtime/input-utils.ts +1 -1
- package/src/src/agent/types.ts +1 -1
- package/src/src/react/compat/ssr-adapter/server-loader.ts +1 -1
- package/src/src/react/components/ai/chat/contexts/chat-context.tsx +1 -1
- package/src/src/react/components/ai/chat/contexts/composer-context.tsx +1 -1
- package/src/src/react/components/ai/chat/contexts/message-context.tsx +1 -1
- package/src/src/react/components/ai/chat/contexts/thread-list-context.tsx +1 -1
- package/src/src/routing/client/page-loader.ts +1 -1
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +1 -1
- package/src/src/utils/version-constant.ts +1 -1
package/esm/deno.js
CHANGED
package/esm/src/agent/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getReactVersionInfo } from "../version-detector/index.js";
|
|
2
|
-
import { INITIALIZATION_ERROR } from "../../../errors/
|
|
2
|
+
import { INITIALIZATION_ERROR } from "../../../errors/error-registry.js";
|
|
3
3
|
import { Singleflight } from "../../../utils/singleflight.js";
|
|
4
4
|
import { cacheModuleToLocal } from "../../../transforms/esm/http-cache.js";
|
|
5
5
|
import { getReactUrls } from "../../../transforms/esm/package-registry.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/react/components/chat/contexts/chat-context
|
|
7
7
|
*/
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
9
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
10
10
|
const ChatContext = React.createContext(null);
|
|
11
11
|
export function useChatContext() {
|
|
12
12
|
const context = React.useContext(ChatContext);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module ai/react/components/chat/contexts/composer-context
|
|
8
8
|
*/
|
|
9
9
|
import * as React from "react";
|
|
10
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
10
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
11
11
|
const ComposerContext = React.createContext(null);
|
|
12
12
|
export function useComposerContext() {
|
|
13
13
|
const context = React.useContext(ComposerContext);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module ai/react/components/chat/contexts/message-context
|
|
8
8
|
*/
|
|
9
9
|
import * as React from "react";
|
|
10
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
10
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
11
11
|
const MessageContext = React.createContext(null);
|
|
12
12
|
export function useMessageContext() {
|
|
13
13
|
const context = React.useContext(MessageContext);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module ai/react/components/chat/contexts/thread-list-context
|
|
8
8
|
*/
|
|
9
9
|
import * as React from "react";
|
|
10
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
10
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
11
11
|
const ThreadListContext = React.createContext(null);
|
|
12
12
|
export function useThreadListContext() {
|
|
13
13
|
const context = React.useContext(ThreadListContext);
|
|
@@ -3,10 +3,10 @@ import { createRoot, hydrateRoot } from "react-dom/client";
|
|
|
3
3
|
import { rscLogger } from "../client/browser-logger.ts";
|
|
4
4
|
import {
|
|
5
5
|
COMPILATION_ERROR,
|
|
6
|
-
isVeryfrontError,
|
|
7
6
|
MODULE_NOT_FOUND,
|
|
8
7
|
NETWORK_ERROR,
|
|
9
|
-
} from "#veryfront/errors/
|
|
8
|
+
} from "#veryfront/errors/error-registry.ts";
|
|
9
|
+
import { isVeryfrontError } from "#veryfront/errors/http-error.ts";
|
|
10
10
|
import { createErrorDisplay } from "#veryfront/security/client/html-sanitizer.ts";
|
|
11
11
|
import type { RSCHydratorOptions } from "./types.ts";
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { rendererLogger } from "../../utils/index.js";
|
|
3
|
-
import { NETWORK_ERROR } from "../../errors/
|
|
3
|
+
import { NETWORK_ERROR } from "../../errors/error-registry.js";
|
|
4
4
|
import { parsePageDataFromHTML } from "./dom-utils.js";
|
|
5
5
|
const logger = rendererLogger.component("veryfront");
|
|
6
6
|
const MAX_CACHE_SIZE = 50;
|
|
@@ -5127,7 +5127,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
5127
5127
|
"veryfront/agent",
|
|
5128
5128
|
"veryfront/agent/react",
|
|
5129
5129
|
"veryfront/chat",
|
|
5130
|
-
"veryfront/errors",
|
|
5130
|
+
"veryfront/errors/error-registry.ts",
|
|
5131
5131
|
"veryfront/platform/compat/runtime.ts",
|
|
5132
5132
|
"veryfront/security/client/html-sanitizer.ts",
|
|
5133
5133
|
"veryfront/testing/assert.ts",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.120";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Message } from "../types.js";
|
|
2
|
-
import { INVALID_ARGUMENT } from "../../errors/
|
|
2
|
+
import { INVALID_ARGUMENT } from "../../errors/error-registry.js";
|
|
3
3
|
|
|
4
4
|
export function normalizeInput(input: string | Message[]): Message[] {
|
|
5
5
|
const now = Date.now();
|
package/src/src/agent/types.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as dntShim from "../../_dnt.shims.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
import type { Tool } from "../tool/index.js";
|
|
8
|
-
import { INVALID_ARGUMENT } from "../errors/
|
|
8
|
+
import { INVALID_ARGUMENT } from "../errors/error-registry.js";
|
|
9
9
|
import type { Memory } from "./memory/memory-interface.js";
|
|
10
10
|
|
|
11
11
|
// Re-export schema-based types
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getReactVersionInfo } from "../version-detector/index.js";
|
|
2
|
-
import { INITIALIZATION_ERROR } from "../../../errors/
|
|
2
|
+
import { INITIALIZATION_ERROR } from "../../../errors/error-registry.js";
|
|
3
3
|
import { Singleflight } from "../../../utils/singleflight.js";
|
|
4
4
|
import { cacheModuleToLocal } from "../../../transforms/esm/http-cache.js";
|
|
5
5
|
import { getReactUrls } from "../../../transforms/esm/package-registry.js";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as React from "react";
|
|
10
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
10
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
11
11
|
import type { UIMessage } from "../../../../../agent/react/index.js";
|
|
12
12
|
import type { ChatTheme } from "../../theme.js";
|
|
13
13
|
import type { ModelOption } from "../../model-selector.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import * as React from "react";
|
|
11
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
11
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
12
12
|
import type { AttachmentInfo } from "../components/attachment-pill.js";
|
|
13
13
|
import type { ModelOption } from "../../model-selector.js";
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import * as React from "react";
|
|
11
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
11
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
12
12
|
import type { BranchInfo, UIMessage } from "../../../../../agent/react/index.js";
|
|
13
13
|
import type { FeedbackValue } from "../components/message-feedback.js";
|
|
14
14
|
import type { PartGroup } from "../utils/message-parts.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import * as React from "react";
|
|
11
|
-
import { COMPONENT_ERROR } from "../../../../../errors/
|
|
11
|
+
import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
|
|
12
12
|
import type { Thread } from "../hooks/use-threads.js";
|
|
13
13
|
|
|
14
14
|
export interface ThreadListContextValue {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { rendererLogger } from "../../utils/index.js";
|
|
3
|
-
import { NETWORK_ERROR } from "../../errors/
|
|
3
|
+
import { NETWORK_ERROR } from "../../errors/error-registry.js";
|
|
4
4
|
import { parsePageDataFromHTML } from "./dom-utils.js";
|
|
5
5
|
|
|
6
6
|
export type {
|
|
@@ -5128,7 +5128,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
|
|
|
5128
5128
|
"veryfront/agent",
|
|
5129
5129
|
"veryfront/agent/react",
|
|
5130
5130
|
"veryfront/chat",
|
|
5131
|
-
"veryfront/errors",
|
|
5131
|
+
"veryfront/errors/error-registry.ts",
|
|
5132
5132
|
"veryfront/platform/compat/runtime.ts",
|
|
5133
5133
|
"veryfront/security/client/html-sanitizer.ts",
|
|
5134
5134
|
"veryfront/testing/assert.ts",
|