@valbuild/core 0.151.0 → 0.153.5
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/CHANGELOG.md +26 -0
- package/dist/declarations/src/source/settings.d.ts +12 -0
- package/dist/{index-ba451135.esm.js → index-3d811c89.esm.js} +3 -2
- package/dist/{index-39015f1c.cjs.dev.js → index-448b7c26.cjs.dev.js} +3 -2
- package/dist/{index-91c10460.cjs.prod.js → index-6a63e2dc.cjs.prod.js} +3 -2
- package/dist/valbuild-core.cjs.dev.js +1 -1
- package/dist/valbuild-core.cjs.prod.js +1 -1
- package/dist/valbuild-core.esm.js +1 -1
- package/package.json +1 -1
- package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -1
- package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -1
- package/patch/dist/valbuild-core-patch.esm.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @valbuild/core
|
|
2
2
|
|
|
3
|
+
## 0.153.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1045](https://github.com/valbuild/val/pull/1045) [`6b3f4c5`](https://github.com/valbuild/val/commit/6b3f4c53ad51a86027654f64da5fb332f40df37f) Thanks [@freekh](https://github.com/freekh)! - The assistant can ask you to turn on web search, when it needs it.
|
|
8
|
+
|
|
9
|
+
If **Search the web** (Settings → Assistant) has not been decided yet and a question needs something from outside your project, the assistant now asks you to turn it on. The question comes from Val, with the assistant's reason quoted.
|
|
10
|
+
|
|
11
|
+
- **Turn on web search** turns it on for the project. Searching works from your next message.
|
|
12
|
+
- **Don't turn on** turns it off, and the assistant will not ask again.
|
|
13
|
+
- Closing the card decides nothing.
|
|
14
|
+
|
|
15
|
+
If web search is off, the assistant never asks. The assistant cannot change this setting itself: only you can, from that card or in Settings.
|
|
16
|
+
|
|
17
|
+
## 0.153.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#1023](https://github.com/valbuild/val/pull/1023) [`67145fd`](https://github.com/valbuild/val/commit/67145fd16e35f2e3e0988ca5690fe5a4f84c1a41) Thanks [@freekh](https://github.com/freekh)! - The assistant can search the web, if you turn it on.
|
|
22
|
+
|
|
23
|
+
Settings → Assistant has a new switch, **Search the web**. It is off unless someone turns it on (`assistant.webSearch: true` in `settings.val.ts`). When it is on, the assistant can look things up online with your AI provider's own search, and each search is billed to your project's AI key. You can see each search in the chat.
|
|
24
|
+
|
|
25
|
+
Web pages can contain instructions written for AI assistants, so after the assistant has searched the web, it asks you before it changes the site's code or builds it. The question comes from Val, not from the assistant. Content edits are not affected: they stay drafts you can review and revert, as before.
|
|
26
|
+
|
|
27
|
+
Needs a Val Build version with web search. With an older one, nothing changes.
|
|
28
|
+
|
|
3
29
|
## 0.151.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -248,6 +248,18 @@ export type AssistantSettingsSource = {
|
|
|
248
248
|
* field unset and nothing is required.
|
|
249
249
|
*/
|
|
250
250
|
translation?: Record<string, string | null> | null;
|
|
251
|
+
/**
|
|
252
|
+
* Whether the assistant may search the web.
|
|
253
|
+
*
|
|
254
|
+
* Three states, like `enabled`. `true`: it searches, and each search is
|
|
255
|
+
* billed to the project's own AI key; after a search it asks the editor
|
|
256
|
+
* before it changes any code. `false`: it does not search, and does not ask.
|
|
257
|
+
* Unset: it does not search, but when an answer needs the web it asks the
|
|
258
|
+
* editor to turn this on, in a card the Studio words, and the answer is
|
|
259
|
+
* written here. The assistant cannot change this field any other way. See
|
|
260
|
+
* `webSearchSetting.ts` and `webSearchGate.ts` in the Studio.
|
|
261
|
+
*/
|
|
262
|
+
webSearch?: boolean | null;
|
|
251
263
|
};
|
|
252
264
|
/**
|
|
253
265
|
* The cap on each of the assistant's prose fields, in characters.
|
|
@@ -10487,7 +10487,8 @@ function settings() {
|
|
|
10487
10487
|
enabled: _boolean().nullable().describe("Whether editors have an assistant in this project. Unset means nobody has decided: it is offered, and turned on when someone accepts."),
|
|
10488
10488
|
context: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("Background the assistant would otherwise have to guess: what this site is, who runs it, names and spellings that matter."),
|
|
10489
10489
|
tone: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("How the assistant should write when it writes content: formal or playful, British or American, how headings are cased."),
|
|
10490
|
-
translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated.")
|
|
10490
|
+
translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated."),
|
|
10491
|
+
webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Unset: it asks you when it needs to. Off: it never asks. After a search it asks before changing code.")
|
|
10491
10492
|
}),
|
|
10492
10493
|
theme: new SettingsSchema({
|
|
10493
10494
|
accent: color({
|
|
@@ -17001,7 +17002,7 @@ function isInlineRender(container) {
|
|
|
17001
17002
|
|
|
17002
17003
|
var corePackageJson = {
|
|
17003
17004
|
name: "@valbuild/core",
|
|
17004
|
-
version: "0.
|
|
17005
|
+
version: "0.153.5",
|
|
17005
17006
|
"private": false,
|
|
17006
17007
|
description: "Val - supercharged hard-coded content",
|
|
17007
17008
|
repository: {
|
|
@@ -10489,7 +10489,8 @@ function settings() {
|
|
|
10489
10489
|
enabled: _boolean().nullable().describe("Whether editors have an assistant in this project. Unset means nobody has decided: it is offered, and turned on when someone accepts."),
|
|
10490
10490
|
context: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("Background the assistant would otherwise have to guess: what this site is, who runs it, names and spellings that matter."),
|
|
10491
10491
|
tone: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("How the assistant should write when it writes content: formal or playful, British or American, how headings are cased."),
|
|
10492
|
-
translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated.")
|
|
10492
|
+
translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated."),
|
|
10493
|
+
webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Unset: it asks you when it needs to. Off: it never asks. After a search it asks before changing code.")
|
|
10493
10494
|
}),
|
|
10494
10495
|
theme: new SettingsSchema({
|
|
10495
10496
|
accent: color({
|
|
@@ -17003,7 +17004,7 @@ function isInlineRender(container) {
|
|
|
17003
17004
|
|
|
17004
17005
|
var corePackageJson = {
|
|
17005
17006
|
name: "@valbuild/core",
|
|
17006
|
-
version: "0.
|
|
17007
|
+
version: "0.153.5",
|
|
17007
17008
|
"private": false,
|
|
17008
17009
|
description: "Val - supercharged hard-coded content",
|
|
17009
17010
|
repository: {
|
|
@@ -10489,7 +10489,8 @@ function settings() {
|
|
|
10489
10489
|
enabled: _boolean().nullable().describe("Whether editors have an assistant in this project. Unset means nobody has decided: it is offered, and turned on when someone accepts."),
|
|
10490
10490
|
context: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("Background the assistant would otherwise have to guess: what this site is, who runs it, names and spellings that matter."),
|
|
10491
10491
|
tone: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("How the assistant should write when it writes content: formal or playful, British or American, how headings are cased."),
|
|
10492
|
-
translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated.")
|
|
10492
|
+
translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated."),
|
|
10493
|
+
webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Unset: it asks you when it needs to. Off: it never asks. After a search it asks before changing code.")
|
|
10493
10494
|
}),
|
|
10494
10495
|
theme: new SettingsSchema({
|
|
10495
10496
|
accent: color({
|
|
@@ -17003,7 +17004,7 @@ function isInlineRender(container) {
|
|
|
17003
17004
|
|
|
17004
17005
|
var corePackageJson = {
|
|
17005
17006
|
name: "@valbuild/core",
|
|
17006
|
-
version: "0.
|
|
17007
|
+
version: "0.153.5",
|
|
17007
17008
|
"private": false,
|
|
17008
17009
|
description: "Val - supercharged hard-coded content",
|
|
17009
17010
|
repository: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, av as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ar as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, ao as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, as as isCheckableScheme, ai as isInlineRender, ap as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, an as matchRoutePattern, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, at as rejectScheme, W as resolveSettingsModule, aq as routePatternOf, au as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-
|
|
1
|
+
export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, av as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ar as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, ao as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, as as isCheckableScheme, ai as isInlineRender, ap as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, an as matchRoutePattern, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, at as rejectScheme, W as resolveSettingsModule, aq as routePatternOf, au as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-3d811c89.esm.js';
|
|
2
2
|
import './result-daff1cae.esm.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-448b7c26.cjs.dev.js');
|
|
6
6
|
var result = require('../../dist/result-bb1f436e.cjs.dev.js');
|
|
7
7
|
var util = require('../../dist/util-b213092b.cjs.dev.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-6a63e2dc.cjs.prod.js');
|
|
6
6
|
var result = require('../../dist/result-787e35f6.cjs.prod.js');
|
|
7
7
|
var util = require('../../dist/util-030d8a1f.cjs.prod.js');
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-
|
|
2
|
-
export { P as PatchError } from '../../dist/index-
|
|
1
|
+
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-3d811c89.esm.js';
|
|
2
|
+
export { P as PatchError } from '../../dist/index-3d811c89.esm.js';
|
|
3
3
|
import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-daff1cae.esm.js';
|
|
4
4
|
import { p as pipe } from '../../dist/util-18613e99.esm.js';
|
|
5
5
|
|